1/* 2 * Copyright (c) 2023 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 profile file information of a bundle. 23 * 24 * @typedef AppProvisionInfo 25 * @syscap SystemCapability.BundleManager.BundleFramework.Core 26 * @systemapi 27 * @since 10 28 */ 29export interface AppProvisionInfo { 30 /** 31 * Indicates the version code of the profile file. 32 * 33 * @type { number } 34 * @readonly 35 * @syscap SystemCapability.BundleManager.BundleFramework.Core 36 * @systemapi 37 * @since 10 38 */ 39 readonly versionCode: number; 40 41 /** 42 * Indicates the version name of the profile file. 43 * 44 * @type { string } 45 * @readonly 46 * @syscap SystemCapability.BundleManager.BundleFramework.Core 47 * @systemapi 48 * @since 10 49 */ 50 readonly versionName: string; 51 52 /** 53 * Indicates the uuid of the profile file. 54 * 55 * @type { string } 56 * @readonly 57 * @syscap SystemCapability.BundleManager.BundleFramework.Core 58 * @systemapi 59 * @since 10 60 */ 61 readonly uuid: string; 62 63 /** 64 * Indicates the type of the profile file. 65 * 66 * @type { string } 67 * @readonly 68 * @syscap SystemCapability.BundleManager.BundleFramework.Core 69 * @systemapi 70 * @since 10 71 */ 72 readonly type: string; 73 74 /** 75 * Indicates the app distribution type of the profile file. 76 * 77 * @type { string } 78 * @readonly 79 * @syscap SystemCapability.BundleManager.BundleFramework.Core 80 * @systemapi 81 * @since 10 82 */ 83 readonly appDistributionType: string; 84 85 /** 86 * Indicates the validity of the profile file. 87 * 88 * @type { Validity } 89 * @readonly 90 * @syscap SystemCapability.BundleManager.BundleFramework.Core 91 * @systemapi 92 * @since 10 93 */ 94 readonly validity: Validity; 95 96 /** 97 * Indicates the developer id of the profile file. 98 * 99 * @type { string } 100 * @readonly 101 * @syscap SystemCapability.BundleManager.BundleFramework.Core 102 * @systemapi 103 * @since 10 104 */ 105 readonly developerId: string; 106 107 /** 108 * Indicates the distribution or development certificate of the profile file. 109 * 110 * @type { string } 111 * @readonly 112 * @syscap SystemCapability.BundleManager.BundleFramework.Core 113 * @systemapi 114 * @since 10 115 */ 116 readonly certificate: string; 117 118 /** 119 * Indicates the apl of the profile file. 120 * 121 * @type { string } 122 * @readonly 123 * @syscap SystemCapability.BundleManager.BundleFramework.Core 124 * @systemapi 125 * @since 10 126 */ 127 readonly apl: string; 128 129 /** 130 * Indicates the issuer of the profile file. 131 * 132 * @type { string } 133 * @readonly 134 * @syscap SystemCapability.BundleManager.BundleFramework.Core 135 * @systemapi 136 * @since 10 137 */ 138 readonly issuer: string; 139 140 /** 141 * Globally unique identifier of an application, which is allocated by the cloud. 142 * AppIdentifier does not change along the application lifecycle, including version updates, certificate changes, 143 * public and private key changes, and application transfer. 144 * 145 * @type { string } 146 * @readonly 147 * @syscap SystemCapability.BundleManager.BundleFramework.Core 148 * @systemapi 149 * @since 11 150 */ 151 readonly appIdentifier: string; 152 153 /** 154 * Indicates the organization information of the profile file. 155 * 156 * @type { string } 157 * @readonly 158 * @syscap SystemCapability.BundleManager.BundleFramework.Core 159 * @systemapi 160 * @since 12 161 */ 162 readonly organization: string; 163} 164 165/** 166 * The validity of the profile file. 167 * 168 * @typedef Validity 169 * @syscap SystemCapability.BundleManager.BundleFramework.Core 170 * @systemapi 171 * @since 10 172 */ 173export interface Validity { 174 /** 175 * Indicates the earliest validity of the profile file. 176 * 177 * @type { number } 178 * @readonly 179 * @syscap SystemCapability.BundleManager.BundleFramework.Core 180 * @systemapi 181 * @since 10 182 */ 183 readonly notBefore: number; 184 185 /** 186 * Indicates the latest validity of the profile file. 187 * 188 * @type { number } 189 * @readonly 190 * @syscap SystemCapability.BundleManager.BundleFramework.Core 191 * @systemapi 192 * @since 10 193 */ 194 readonly notAfter: number; 195} 196