import type { CancelablePromise } from "../core/CancelablePromise.js"; import type { BaseHttpRequest } from "../core/BaseHttpRequest.js"; export declare class IdentityService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * @returns any Get an auth challenge for a specific wallet address * @throws ApiError */ createWalletChallengeToAddWallet({ requestBody, }: { requestBody?: { address: string; namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano'; blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | '1291' | '295' | '296' | '254' | '2024' | '20241133' | '9990' | '3338' | '2040' | '78600' | '72080' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941' | 'mainnet-bitcoin' | 'testnet-bitcoin' | 'mainnet-aptos' | 'testnet-aptos' | 'polkadot-relay-chain' | 'kusama-relay-chain' | 'polkadot-testnet' | 'solana-mainnet' | 'solana-testnet' | 'solana-devnet' | 'cardano-mainnet' | 'cardano-testnet'); origin: string; workflowId: string; externalCustomerId?: string; additionalInformation?: { email?: string; phone?: string; wallet?: { address: string; namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano' | 'bip122' | 'xrpl' | 'dash' | 'tron' | 'avax'; }; }; }; }): CancelablePromise<{ challenge: string; }>; /** * @returns any Add wallet to identity * @throws ApiError */ addWalletToIdentity({ requestBody, }: { requestBody?: { message: string; signature: string; signerPublicKey: string; signerPublicKeyType?: string; signedMessage: string; }; }): CancelablePromise<{ success: boolean; }>; /** * @returns any List all wallets attached to the identity * @throws ApiError */ listWallets(): CancelablePromise<{ wallets: Array<{ address: string; namespace: string; }>; }>; /** * @returns any Get the identity session IDs * @throws ApiError */ getIdentitySessionIds(): CancelablePromise<{ identityId: string; customerId: string; externalCustomerId?: string; }>; /** * @returns any Active introspected token * @throws ApiError */ introspectToken({ xIdentitySessionId, requestBody, }: { xIdentitySessionId: any; requestBody?: any; }): CancelablePromise<{ introspectedToken: ({ sub: any; flowType: 'web3'; exp: number; customerId: string; /** * The verification mode of the project */ verificationMode: 'full_verification' | 'sandbox'; organizationId: string; workspaceId: string; workflowId: string; ipAddress?: string; timestamp: number; iat: number; hosts: Array; identitySessionId?: any; blockchainAddress: string; blockchainNamespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano' | 'bip122' | 'xrpl' | 'dash' | 'tron' | 'avax'; } | { sub: any; flowType: 'web2'; exp: number; customerId: string; /** * The verification mode of the project */ verificationMode: 'full_verification' | 'sandbox'; organizationId: string; workspaceId: string; workflowId: string; ipAddress?: string; timestamp: number; iat: number; hosts: Array; identitySessionId?: any; deprecated_additionalUserInformation?: { email?: string; phone?: string; wallet?: { address: string; namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano' | 'bip122' | 'xrpl' | 'dash' | 'tron' | 'avax'; }; }; }); expiresAt: number; token: string; }>; }