1/*
2 * Copyright (c) 2021 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 * Indicates the defined permission details in file config.json
23 *
24 * @typedef PermissionDef
25 * @syscap SystemCapability.BundleManager.BundleFramework
26 * @systemapi
27 * @since 8
28 * @deprecated since 9
29 * @useinstead ohos.bundle.bundleManager.PermissionDef
30 */
31export interface PermissionDef {
32  /**
33   * @type { string }
34   * @default Indicates the name of this permission
35   * @syscap SystemCapability.BundleManager.BundleFramework
36   * @systemapi
37   * @since 8
38   * @deprecated since 9
39   */
40  permissionName: string;
41
42  /**
43   * @type { number }
44   * @default Indicates the grant mode of this permission
45   * @syscap SystemCapability.BundleManager.BundleFramework
46   * @systemapi
47   * @since 8
48   * @deprecated since 9
49   */
50  grantMode: number;
51
52  /**
53   * @type { number }
54   * @default Indicates the labelId of this permission
55   * @syscap SystemCapability.BundleManager.BundleFramework
56   * @systemapi
57   * @since 8
58   * @deprecated since 9
59   */
60  labelId: number;
61
62  /**
63   * @type { number }
64   * @default Indicates the descriptionId of this permission
65   * @syscap SystemCapability.BundleManager.BundleFramework
66   * @systemapi
67   * @since 8
68   * @deprecated since 9
69   */
70  descriptionId: number;
71}
72