1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|删除|类名:AuthorizationExtensionAbility;<br>方法or属性:onStartAuthorization(request: AuthorizationRequest, callback: AuthorizationCallback): void;|NA|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts| 4|删除|类名:AuthorizationRequest;<br>方法or属性:readonly callerUid: number;|NA|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts| 5|删除|类名:AuthorizationRequest;<br>方法or属性:readonly parameters: appAccount.AccountCapabilityRequest;|NA|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts| 6|删除|类名:AuthorizationCallback;<br>方法or属性:onResult: AsyncCallback\<appAccount.AccountCapabilityResponse, { [key: string]: object }>;|NA|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts| 7|删除|类名:AccountCapabilityType;<br>方法or属性:AUTHORIZATION = 1|NA|@ohos.account.appAccount.d.ts| 8|删除|类名:AccountCapabilityProvider;<br>方法or属性:readonly capabilityType: AccountCapabilityType;|NA|@ohos.account.appAccount.d.ts| 9|删除|类名:AccountCapabilityProvider;<br>方法or属性:constructor(capabilityType: AccountCapabilityType);|NA|@ohos.account.appAccount.d.ts| 10|删除|类名:AuthorizationProvider;<br>方法or属性:constructor(info: AuthorizationProviderInfo);|NA|@ohos.account.appAccount.d.ts| 11|删除|类名:AuthorizationProviderInfo;<br>方法or属性:readonly bundleName: string;|NA|@ohos.account.appAccount.d.ts| 12|删除|类名:AuthorizationProviderInfo;<br>方法or属性:readonly abilityName: string;|NA|@ohos.account.appAccount.d.ts| 13|删除|类名:AccountCapabilityRequest;<br>方法or属性:constructor(provider: AccountCapabilityProvider);|NA|@ohos.account.appAccount.d.ts| 14|删除|类名:AccountCapabilityResponse;<br>方法or属性:readonly request: AccountCapabilityRequest;|NA|@ohos.account.appAccount.d.ts| 15|删除|类名:AccountCapabilityResponse;<br>方法or属性:constructor(request: AccountCapabilityRequest);|NA|@ohos.account.appAccount.d.ts| 16|删除|类名:AccountCapabilityScheduler;<br>方法or属性:executeRequest(<br> request: AccountCapabilityRequest,<br> callback: AsyncCallback\<AccountCapabilityResponse, { [key: string]: object }><br> ): void;|NA|@ohos.account.appAccount.d.ts| 17|删除|类名:AccountCapabilityScheduler;<br>方法or属性:executeRequest(request: AccountCapabilityRequest): Promise\<AccountCapabilityResponse>;|NA|@ohos.account.appAccount.d.ts| 18|新增|NA|类名:AccountManager;<br>方法or属性:getOsAccountLocalIdForUidSync(uid: number): number;|@ohos.account.osAccount.d.ts| 19|新增|NA|类名:AccountManager;<br>方法or属性:getBundleIdForUidSync(uid: number): number;|@ohos.account.osAccount.d.ts| 20|新增|NA|类名:GetDomainAccountInfoOptions;<br>方法or属性:accountName: string;|@ohos.account.osAccount.d.ts| 21|新增|NA|类名:GetDomainAccountInfoOptions;<br>方法or属性:domain?: string;|@ohos.account.osAccount.d.ts| 22|新增|NA|类名:GetDomainAccountInfoPluginOptions;<br>方法or属性:callerUid: number;|@ohos.account.osAccount.d.ts| 23|新增|NA|类名:DomainAccountManager;<br>方法or属性:static getAccountInfo(options: GetDomainAccountInfoOptions, callback: AsyncCallback\<DomainAccountInfo>): void;|@ohos.account.osAccount.d.ts| 24|新增|NA|类名:DomainAccountManager;<br>方法or属性:static getAccountInfo(options: GetDomainAccountInfoOptions): Promise\<DomainAccountInfo>;|@ohos.account.osAccount.d.ts| 25|错误码有变化|类名:UserAuth;<br>方法or属性:auth(<br> challenge: Uint8Array,<br> authType: AuthType,<br> authTrustLevel: AuthTrustLevel,<br> callback: IUserAuthCallback<br> ): Uint8Array;<br>旧版本信息:201,202,401,12300001,12300002,12300101,12300105,12300106,12300110,12300111,12300112|类名:UserAuth;<br>方法or属性:auth(<br> challenge: Uint8Array,<br> authType: AuthType,<br> authTrustLevel: AuthTrustLevel,<br> callback: IUserAuthCallback<br> ): Uint8Array;<br>新版本信息:201,202,401,12300001,12300002,12300101,12300102,12300105,12300106,12300109,12300110,12300111,12300112|@ohos.account.osAccount.d.ts| 26|错误码有变化|类名:UserAuth;<br>方法or属性:authUser(<br> userId: number,<br> challenge: Uint8Array,<br> authType: AuthType,<br> authTrustLevel: AuthTrustLevel,<br> callback: IUserAuthCallback<br> ): Uint8Array;<br>旧版本信息:201,202,401,12300001,12300002,12300101,12300105,12300106,12300110,12300111,12300112|类名:UserAuth;<br>方法or属性:authUser(<br> userId: number,<br> challenge: Uint8Array,<br> authType: AuthType,<br> authTrustLevel: AuthTrustLevel,<br> callback: IUserAuthCallback<br> ): Uint8Array;<br>新版本信息:201,202,401,12300001,12300002,12300101,12300102,12300105,12300106,12300109,12300110,12300111,12300112|@ohos.account.osAccount.d.ts| 27|错误码有变化|类名:DomainAccountManager;<br>方法or属性:static auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUserAuthCallback): void;<br>旧版本信息:201,202,401,12300001,12300002,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|类名:DomainAccountManager;<br>方法or属性:static auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUserAuthCallback): void;<br>新版本信息:201,202,401,801,12300001,12300002,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|@ohos.account.osAccount.d.ts| 28|错误码有变化|类名:DomainAccountManager;<br>方法or属性:static authWithPopup(callback: IUserAuthCallback): void;<br>旧版本信息:201,202,401,12300001,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|类名:DomainAccountManager;<br>方法or属性:static authWithPopup(callback: IUserAuthCallback): void;<br>新版本信息:201,202,401,801,12300001,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|@ohos.account.osAccount.d.ts| 29|错误码有变化|类名:DomainAccountManager;<br>方法or属性:static authWithPopup(localId: number, callback: IUserAuthCallback): void;<br>旧版本信息:201,202,401,12300001,12300002,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|类名:DomainAccountManager;<br>方法or属性:static authWithPopup(localId: number, callback: IUserAuthCallback): void;<br>新版本信息:201,202,401,801,12300001,12300002,12300003,12300013,12300101,12300109,12300110,12300111,12300112,12300113,12300114|@ohos.account.osAccount.d.ts| 30|错误码有变化|类名:DomainAccountManager;<br>方法or属性:static hasAccount(domainAccountInfo: DomainAccountInfo, callback: AsyncCallback\<boolean>): void;<br>旧版本信息:201,202,401,12300001,12300002,12300013|类名:DomainAccountManager;<br>方法or属性:static hasAccount(domainAccountInfo: DomainAccountInfo, callback: AsyncCallback\<boolean>): void;<br>新版本信息:201,202,401,801,12300001,12300002,12300013,12300111|@ohos.account.osAccount.d.ts| 31|错误码有变化|类名:DomainAccountManager;<br>方法or属性:static hasAccount(domainAccountInfo: DomainAccountInfo): Promise\<boolean>;<br>旧版本信息:201,202,401,12300001,12300002,12300013|类名:DomainAccountManager;<br>方法or属性:static hasAccount(domainAccountInfo: DomainAccountInfo): Promise\<boolean>;<br>新版本信息:201,202,401,801,12300001,12300002,12300013,12300111|@ohos.account.osAccount.d.ts| 32|错误码有变化|类名:UserIdentityManager;<br>方法or属性:addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;<br>旧版本信息:201,202,401,12300001,12300002,12300101,12300106|类名:UserIdentityManager;<br>方法or属性:addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;<br>新版本信息:201,202,401,12300001,12300002,12300101,12300106,12300109,12300111,12300115|@ohos.account.osAccount.d.ts| 33|错误码有变化|类名:UserIdentityManager;<br>方法or属性:updateCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;<br>旧版本信息:201,202,401,12300001,12300002,12300101,12300106|类名:UserIdentityManager;<br>方法or属性:updateCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void;<br>新版本信息:201,202,401,12300001,12300002,12300101,12300102,12300106,12300109,12300111|@ohos.account.osAccount.d.ts| 34|错误码有变化|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(callback: AsyncCallback\<Array\<EnrolledCredInfo>>): void;<br>旧版本信息:201,202,401,12300001|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(callback: AsyncCallback\<Array\<EnrolledCredInfo>>): void;<br>新版本信息:201,202,401,12300001,12300102|@ohos.account.osAccount.d.ts| 35|错误码有变化|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(authType: AuthType, callback: AsyncCallback\<Array\<EnrolledCredInfo>>): void;<br>旧版本信息:201,202,401,12300001,12300002|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(authType: AuthType, callback: AsyncCallback\<Array\<EnrolledCredInfo>>): void;<br>新版本信息:201,202,401,12300001,12300002,12300102|@ohos.account.osAccount.d.ts| 36|错误码有变化|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(authType?: AuthType): Promise\<Array\<EnrolledCredInfo>>;<br>旧版本信息:201,202,401,12300001,12300002|类名:UserIdentityManager;<br>方法or属性:getAuthInfo(authType?: AuthType): Promise\<Array\<EnrolledCredInfo>>;<br>新版本信息:201,202,401,12300001,12300002,12300102|@ohos.account.osAccount.d.ts| 37|权限有变化|类名:AccountManager;<br>方法or属性:getCurrentOsAccount(callback: AsyncCallback\<OsAccountInfo>): void;<br>旧版本信息:ohos.permission.MANAGE_LOCAL_ACCOUNTS|类名:AccountManager;<br>方法or属性:getCurrentOsAccount(callback: AsyncCallback\<OsAccountInfo>): void;<br>新版本信息:ohos.permission.MANAGE_LOCAL_ACCOUNTS,ohos.permission.GET_LOCAL_ACCOUNTS|@ohos.account.osAccount.d.ts| 38|权限有变化|类名:AccountManager;<br>方法or属性:getCurrentOsAccount(): Promise\<OsAccountInfo>;<br>旧版本信息:ohos.permission.MANAGE_LOCAL_ACCOUNTS|类名:AccountManager;<br>方法or属性:getCurrentOsAccount(): Promise\<OsAccountInfo>;<br>新版本信息:ohos.permission.MANAGE_LOCAL_ACCOUNTS,ohos.permission.GET_LOCAL_ACCOUNTS|@ohos.account.osAccount.d.ts| 39|函数有变化|类名:DomainPlugin;<br>方法or属性:getAccountInfo(domain: string, accountName: string, callback: AsyncCallback\<DomainAccountInfo>): void;|类名:DomainPlugin;<br>方法or属性:getAccountInfo(options: GetDomainAccountInfoPluginOptions, callback: AsyncCallback\<DomainAccountInfo>): void;|@ohos.account.osAccount.d.ts| 40