import type { CancelablePromise } from "../core/CancelablePromise.js"; import type { BaseHttpRequest } from "../core/BaseHttpRequest.js"; export declare class AuthService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * @returns any Generate an api access token for the given signed challenge * @throws ApiError */ verifyWalletChallenge({ requestBody, }: { requestBody?: ({ message: string; signature: string; signerPublicKey: string; signerPublicKeyType?: string; signedMessage: string; } & { 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'); }); }): CancelablePromise<{ token: string; expiresAt: number; externalCustomerId?: string; identitySessionId?: any; }>; /** * @returns any Get an auth challenge for a specific wallet address * @throws ApiError */ createWalletChallenge({ 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 Generate an api access token for the given workflowId * @throws ApiError */ createSession({ requestBody, }: { requestBody?: { 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<{ token: string; expiresAt: number; externalCustomerId?: string; identitySessionId?: any; }>; /** * @returns any Generate an api access token for the given workflowId * @throws ApiError */ createSessionFromApiRoute({ requestBody, }: { requestBody?: { workflowId: string; customerId?: string; externalCustomerId?: string; }; }): CancelablePromise<{ token: string; expiresAt: number; identitySessionId?: any; }>; /** * @returns any Successfully created auth session * @throws ApiError */ exchangeMobileTokenToAccessToken({ requestBody, }: { requestBody?: { exchangeToken: string; }; }): CancelablePromise<{ token: string; expiresAt: number; externalCustomerId?: string; identitySessionId?: any; }>; /** * @returns any Successfully created mobile exchange token * @throws ApiError */ createMobileExchangeToken({ authorization, requestBody, }: { authorization: string; requestBody?: any; }): CancelablePromise<{ exchangeToken: string; expiresAt: number; }>; }