• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit AbilityKit
19 */
20
21/**
22 * Obtains configuration information about an skill
23 *
24 * @typedef Skill
25 * @syscap SystemCapability.BundleManager.BundleFramework.Core
26 * @atomicservice
27 * @since 12
28 */
29export interface Skill {
30    /**
31     * Indicates the actions of the skill
32     *
33     * @type { Array<string> }
34     * @readonly
35     * @syscap SystemCapability.BundleManager.BundleFramework.Core
36     * @atomicservice
37     * @since 12
38     */
39    readonly actions: Array<string>;
40
41    /**
42     * Indicates the entities of the skill
43     *
44     * @type { Array<string> }
45     * @readonly
46     * @syscap SystemCapability.BundleManager.BundleFramework.Core
47     * @atomicservice
48     * @since 12
49     */
50    readonly entities: Array<string>;
51
52    /**
53     * Indicates the uris of the skill
54     *
55     * @type { Array<SkillUri> }
56     * @readonly
57     * @syscap SystemCapability.BundleManager.BundleFramework.Core
58     * @atomicservice
59     * @since 12
60     */
61    readonly uris: Array<SkillUri>;
62
63    /**
64     * Indicates the domainVerify of the skill
65     *
66     * @type { boolean }
67     * @readonly
68     * @syscap SystemCapability.BundleManager.BundleFramework.Core
69     * @atomicservice
70     * @since 12
71     */
72    readonly domainVerify: boolean;
73}
74
75/**
76 * Obtains configuration information about an skillUri
77 *
78 * @typedef SkillUri
79 * @syscap SystemCapability.BundleManager.BundleFramework.Core
80 * @atomicservice
81 * @since 12
82 */
83export interface SkillUri {
84    /**
85     * Indicates the scheme of the skillUri
86     *
87     * @type { string }
88     * @readonly
89     * @syscap SystemCapability.BundleManager.BundleFramework.Core
90     * @atomicservice
91     * @since 12
92     */
93    readonly scheme: string;
94
95    /**
96     * Indicates the host of the skillUri
97     *
98     * @type { string }
99     * @readonly
100     * @syscap SystemCapability.BundleManager.BundleFramework.Core
101     * @atomicservice
102     * @since 12
103     */
104    readonly host: string;
105
106    /**
107     * Indicates the port of the skillUri
108     *
109     * @type { number }
110     * @readonly
111     * @syscap SystemCapability.BundleManager.BundleFramework.Core
112     * @atomicservice
113     * @since 12
114     */
115    readonly port: number;
116
117    /**
118     * Indicates the path of the skillUri
119     *
120     * @type { string }
121     * @readonly
122     * @syscap SystemCapability.BundleManager.BundleFramework.Core
123     * @atomicservice
124     * @since 12
125     */
126    readonly path: string;
127
128    /**
129     * Indicates the pathStartWith of the skillUri
130     *
131     * @type { string }
132     * @readonly
133     * @syscap SystemCapability.BundleManager.BundleFramework.Core
134     * @atomicservice
135     * @since 12
136     */
137    readonly pathStartWith: string;
138
139    /**
140     * Indicates the pathRegex of the skillUri
141     *
142     * @type {string }
143     * @readonly
144     * @syscap SystemCapability.BundleManager.BundleFramework.Core
145     * @atomicservice
146     * @since 12
147     */
148    readonly pathRegex: string;
149
150    /**
151     * Indicates the type of the skillUri
152     *
153     * @type { string }
154     * @readonly
155     * @syscap SystemCapability.BundleManager.BundleFramework.Core
156     * @atomicservice
157     * @since 12
158     */
159    readonly type: string;
160
161    /**
162     * Indicates the utd of the skillUri
163     *
164     * @type { string }
165     * @readonly
166     * @syscap SystemCapability.BundleManager.BundleFramework.Core
167     * @atomicservice
168     * @since 12
169     */
170    readonly utd: string;
171
172    /**
173     * Indicates the maxFileSupported of the skillUri
174     *
175     * @type { number }
176     * @readonly
177     * @syscap SystemCapability.BundleManager.BundleFramework.Core
178     * @atomicservice
179     * @since 12
180     */
181    readonly maxFileSupported: number;
182
183    /**
184     * Indicates the linkFeature of the skillUri
185     *
186     * @type { string }
187     * @readonly
188     * @syscap SystemCapability.BundleManager.BundleFramework.Core
189     * @atomicservice
190     * @since 12
191     */
192    readonly linkFeature: string;
193}