/** * Dashboard API * Dashboard API documentation * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { CreateUserEmbeddedWalletsFromFarcasterRequest, CreateUserEmbeddedWalletsRequest, CreateWalletRequest, EmbeddedWalletVersionEnum, UserResponse, UserWalletsResponse, Wallet, WalletRecoveryRequest, WalletRecoveryResponse, WalletsResponse } from '../models'; export interface CreateEmbeddedWalletRequest { environmentId: string; createUserEmbeddedWalletsRequest: CreateUserEmbeddedWalletsRequest; } export interface CreateEmbeddedWalletFromFarcasterRequest { environmentId: string; createUserEmbeddedWalletsFromFarcasterRequest: CreateUserEmbeddedWalletsFromFarcasterRequest; } export interface CreateWalletOperationRequest { environmentId: string; userId: string; createWalletRequest: CreateWalletRequest; } export interface CreateWalletLegacyRequest { userId: string; createWalletRequest: CreateWalletRequest; } export interface DeleteWalletByIdRequest { environmentId: string; walletId: string; } export interface DeleteWalletByIdLegacyRequest { walletId: string; } export interface GetActiveEmbeddedWalletVersionsForEnvironmentRequest { environmentId: string; } export interface GetWalletByIdRequest { environmentId: string; walletId: string; } export interface GetWalletByIdLegacyRequest { walletId: string; } export interface GetWalletsByEnvironmentIdRequest { environmentId: string; limit?: number; offset?: number; } export interface GetWalletsByUserIdRequest { environmentId: string; userId: string; } export interface GetWalletsByUserIdLegacyRequest { userId: string; } export interface RecoverDeletedWalletsWithEnvironmentRequest { environmentId: string; walletRecoveryRequest: WalletRecoveryRequest; } /** * */ export declare class WalletsApi extends runtime.BaseAPI { /** * Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user. * Creates a new embedded wallet for a user given an identifier (deprecated) */ createEmbeddedWalletRaw(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise>; /** * Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user. * Creates a new embedded wallet for a user given an identifier (deprecated) */ createEmbeddedWallet(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise; /** * Creates a new embedded wallet. This API is meant to be called from a frame server. * Create an embedded wallet from Farcaster */ createEmbeddedWalletFromFarcasterRaw(requestParameters: CreateEmbeddedWalletFromFarcasterRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new embedded wallet. This API is meant to be called from a frame server. * Create an embedded wallet from Farcaster */ createEmbeddedWalletFromFarcaster(requestParameters: CreateEmbeddedWalletFromFarcasterRequest, initOverrides?: RequestInit): Promise; /** * Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that. * Creates a new wallet for the user */ createWalletRaw(requestParameters: CreateWalletOperationRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that. * Creates a new wallet for the user */ createWallet(requestParameters: CreateWalletOperationRequest, initOverrides?: RequestInit): Promise; /** * Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets. To create embedded wallets use the /embeddedWallets endpoint. * Creates a new wallet for the user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead) */ createWalletLegacyRaw(requestParameters: CreateWalletLegacyRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets. To create embedded wallets use the /embeddedWallets endpoint. * Creates a new wallet for the user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead) */ createWalletLegacy(requestParameters: CreateWalletLegacyRequest, initOverrides?: RequestInit): Promise; /** * Permanently removes the specified wallet. * Delete wallet */ deleteWalletByIdRaw(requestParameters: DeleteWalletByIdRequest, initOverrides?: RequestInit): Promise>; /** * Permanently removes the specified wallet. * Delete wallet */ deleteWalletById(requestParameters: DeleteWalletByIdRequest, initOverrides?: RequestInit): Promise; /** * Permanently removes the specified wallet (deprecated). * Delete wallet (deprecated - use /environments/{environmentId}/wallets/{walletId} instead) */ deleteWalletByIdLegacyRaw(requestParameters: DeleteWalletByIdLegacyRequest, initOverrides?: RequestInit): Promise>; /** * Permanently removes the specified wallet (deprecated). * Delete wallet (deprecated - use /environments/{environmentId}/wallets/{walletId} instead) */ deleteWalletByIdLegacy(requestParameters: DeleteWalletByIdLegacyRequest, initOverrides?: RequestInit): Promise; /** * Returns the active embedded wallet versions for the specified environment. * Get the active embedded wallet versions for an environment */ getActiveEmbeddedWalletVersionsForEnvironmentRaw(requestParameters: GetActiveEmbeddedWalletVersionsForEnvironmentRequest, initOverrides?: RequestInit): Promise>>; /** * Returns the active embedded wallet versions for the specified environment. * Get the active embedded wallet versions for an environment */ getActiveEmbeddedWalletVersionsForEnvironment(requestParameters: GetActiveEmbeddedWalletVersionsForEnvironmentRequest, initOverrides?: RequestInit): Promise>; /** * Returns a wallet by its unique identifier. * Get a wallet using the ID */ getWalletByIdRaw(requestParameters: GetWalletByIdRequest, initOverrides?: RequestInit): Promise>; /** * Returns a wallet by its unique identifier. * Get a wallet using the ID */ getWalletById(requestParameters: GetWalletByIdRequest, initOverrides?: RequestInit): Promise; /** * Returns a wallet by its ID (deprecated). * Get a wallet using the ID (deprecated - use /environments/{environmentId}/wallets/{walletId} instead) */ getWalletByIdLegacyRaw(requestParameters: GetWalletByIdLegacyRequest, initOverrides?: RequestInit): Promise>; /** * Returns a wallet by its ID (deprecated). * Get a wallet using the ID (deprecated - use /environments/{environmentId}/wallets/{walletId} instead) */ getWalletByIdLegacy(requestParameters: GetWalletByIdLegacyRequest, initOverrides?: RequestInit): Promise; /** * Retrieve wallets for a specified environment * Get wallets by environment */ getWalletsByEnvironmentIdRaw(requestParameters: GetWalletsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise>; /** * Retrieve wallets for a specified environment * Get wallets by environment */ getWalletsByEnvironmentId(requestParameters: GetWalletsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise; /** * Returns the wallets for the specified user. * Get wallets by user */ getWalletsByUserIdRaw(requestParameters: GetWalletsByUserIdRequest, initOverrides?: RequestInit): Promise>; /** * Returns the wallets for the specified user. * Get wallets by user */ getWalletsByUserId(requestParameters: GetWalletsByUserIdRequest, initOverrides?: RequestInit): Promise; /** * Returns wallets by user (deprecated). * Get wallets by user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead) */ getWalletsByUserIdLegacyRaw(requestParameters: GetWalletsByUserIdLegacyRequest, initOverrides?: RequestInit): Promise>; /** * Returns wallets by user (deprecated). * Get wallets by user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead) */ getWalletsByUserIdLegacy(requestParameters: GetWalletsByUserIdLegacyRequest, initOverrides?: RequestInit): Promise; /** * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets. * Recover deleted wallets for a user in a specific environment */ recoverDeletedWalletsWithEnvironmentRaw(requestParameters: RecoverDeletedWalletsWithEnvironmentRequest, initOverrides?: RequestInit): Promise>; /** * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets. * Recover deleted wallets for a user in a specific environment */ recoverDeletedWalletsWithEnvironment(requestParameters: RecoverDeletedWalletsWithEnvironmentRequest, initOverrides?: RequestInit): Promise; }