diff --git a/api/@ohos.telephony.esim.d.ts b/api/@ohos.telephony.esim.d.ts index ca86c465a025e810c39ee4f9298047bdaed81c69..586e3c5c772ed5527b16b8476a6a7490612cefcd 100644 --- a/api/@ohos.telephony.esim.d.ts +++ b/api/@ohos.telephony.esim.d.ts @@ -379,87 +379,6 @@ declare namespace eSIM { */ function cancelSession(slotId: number, transactionId: string, cancelReason: CancelReason): Promise; - /** - * Get contract info - * - * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { ContractRequestData } requestData - request infomation required to get contract infomation. - * @returns { Promise } Returns the contract info. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 3120001 - Service connection failed. - * @throws { BusinessError } 3120002 - System internal error. - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getContractInfo(slotId: number, requestData: ContractRequestData) : Promise; - - /** - * Get supported pkids - * - * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @returns { Promise } Returns the supported pkids. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 3120001 - Service connection failed. - * @throws { BusinessError } 3120002 - System internal error. - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getSupportedPkids(slotId: number) : Promise; - - /** - * Contract request data - * - * @interface ContractRequestData - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - export interface ContractRequestData { - /** - * Public key required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - publicKey: string; - - /** - * Nonce required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - nonce: string; - - /** - * Euicc Ci PKID to be used, required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - pkid: string; - } - /** * Establishes a single UICC access rule pursuant to the GlobalPlatform Secure Element Access Control specification. * @@ -474,7 +393,7 @@ declare namespace eSIM { * @interface AccessRule * @syscap SystemCapability.Telephony.CoreService.Esim * @since 20 - * arkts 1.1&1.2 + * @arkts 1.1&1.2 */ export interface AccessRule { /** @@ -491,7 +410,7 @@ declare namespace eSIM { * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 20 - * arkts 1.1&1.2 + * @arkts 1.1&1.2 */ certificateHashHexStr: string; @@ -509,7 +428,7 @@ declare namespace eSIM { * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 20 - * arkts 1.1&1.2 + * @arkts 1.1&1.2 */ packageName: string; @@ -527,7 +446,7 @@ declare namespace eSIM { * @type { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 20 - * arkts 1.1&1.2 + * @arkts 1.1&1.2 */ accessType: number; } @@ -991,7 +910,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - RESET_DEFAULT_SMDP_ADDRESS = 1 << 2 + RESET_DEFAULT_SMDP_ADDRESS = 1 << 2, } /** @@ -1046,7 +965,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - EUICC_UPGRADE_SERVICE_UNAVAILABLE = 5 + EUICC_UPGRADE_SERVICE_UNAVAILABLE = 5, } /** @@ -1389,7 +1308,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - RESULT_SGP_22_OTHER = 400 + RESULT_SGP_22_OTHER = 400, } /** @@ -1435,7 +1354,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - CANCEL_REASON_PPR_NOT_ALLOWED = 3 + CANCEL_REASON_PPR_NOT_ALLOWED = 3, } /** @@ -1472,7 +1391,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - PROFILE_STATE_ENABLED = 1 + PROFILE_STATE_ENABLED = 1, } /** @@ -1518,7 +1437,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - PROFILE_CLASS_OPERATIONAL = 2 + PROFILE_CLASS_OPERATIONAL = 2, } /** @@ -1555,7 +1474,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - POLICY_RULE_DISABLE_AND_DELETE = 1 << 2 + POLICY_RULE_DISABLE_AND_DELETE = 1 << 2, } /** @@ -1583,7 +1502,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - SOLVABLE_ERROR_NEED_POLICY_RULE = 1 << 1 + SOLVABLE_ERROR_NEED_POLICY_RULE = 1 << 1, } /**