1/* 2 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved. 3 */ 4/** 5 * @file Define capabilities to access app domain verification info. 6 * @kit AbilityKit 7 */ 8 9/** 10 * This module provides app domain verification info. 11 * 12 * @namespace appDomainVerify 13 * @syscap SystemCapability.BundleManager.AppDomainVerify 14 * @systemapi 15 * @stagemodelonly 16 * @since arkts {'1.1':'13','1.2':'20'} 17 * @arkts 1.1&1.2 18 */ 19declare namespace appDomainVerify { 20 21 22 /** 23 * query domains verify associated with bundleName. 24 * @permission ohos.permission.GET_APP_DOMAIN_BUNDLE_INFO 25 * @param { string } bundleName - app bundleName. 26 * @returns { string[] } Result domains. 27 * @throws { BusinessError } 201 - Permission denied. 28 * @throws { BusinessError } 202 - System API accessed by non-system app. 29 * @throws { BusinessError } 401 - Parameter error. 30 * @throws { BusinessError } 29900001 - Internal error. 31 * @syscap SystemCapability.BundleManager.AppDomainVerify 32 * @systemapi 33 * @stagemodelonly 34 * @since arkts {'1.1':'13','1.2':'20'} 35 * @arkts 1.1&1.2 36 */ 37 function queryAssociatedDomains(bundleName: string): string[]; 38 39 /** 40 * query bundleNames associated with domain. 41 * @permission ohos.permission.GET_APP_DOMAIN_BUNDLE_INFO 42 * @param { string } domain - Parameters related to the function. 43 * @returns { string[] } Result bundleNames. 44 * @throws { BusinessError } 201 - Permission denied. 45 * @throws { BusinessError } 202 - System API accessed by non-system app. 46 * @throws { BusinessError } 401 - Parameter error. 47 * @throws { BusinessError } 29900001 - Internal error. 48 * @syscap SystemCapability.BundleManager.AppDomainVerify 49 * @systemapi 50 * @stagemodelonly 51 * @since arkts {'1.1':'13','1.2':'20'} 52 * @arkts 1.1&1.2 53 */ 54 function queryAssociatedBundleNames(domain: string): string[]; 55} 56 57export default appDomainVerify; 58 59