/** * 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 { BackupKeySharesToLocationsResponse, BackupKeySharesToLocationsWithUserIdRequest, CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse } from '../models'; export interface AuthenticateWaasRequest { environmentId: string; } export interface BackupKeySharesToLocationsForPregenRequest { environmentId: string; walletId: string; backupKeySharesToLocationsWithUserIdRequest: BackupKeySharesToLocationsWithUserIdRequest; } export interface CreateDelegatedCredentialsRequest { environmentId: string; waasDelegationCredentialsRequest: WaasDelegationCredentialsRequest; } export interface CreateWaasPolicyRequest { environmentId: string; waasPolicyCreateRequest: WaasPolicyCreateRequest; } export interface CreateWaasWalletRequest { environmentId: string; createUserWaasWalletsRequest: CreateUserWaasWalletsRequest; } export interface DelegatedSignMessageRequest { environmentId: string; walletId: string; waasDelegateSignMessageRequest: WaasDelegateSignMessageRequest; } export interface DeleteDelegatedAccessRequest { environmentId: string; walletId: string; } export interface DeleteWaasPolicyRequest { environmentId: string; waasPolicyDeleteRequest: WaasPolicyDeleteRequest; } export interface GetDelegatedAccessEncryptionPublicKeyRequest { environmentId: string; } export interface GetDelegatedAccessEncryptionPublicKeyByIdRequest { environmentId: string; keyId: string; } export interface GetDelegatedAccessEncryptionPublicKeysRequest { environmentId: string; includeAll?: boolean; } export interface GetWaasPolicyRequest { environmentId: string; } export interface GetWaasWalletByWalletIdRequest { environmentId: string; walletId: string; } export interface OptionsDelegatedAccessEncryptionPublicKeyRequest { environmentId: string; } export interface RevokeDelegatedAccessOperationRequest { environmentId: string; revokeDelegatedAccessRequest: RevokeDelegatedAccessRequest; } export interface UpdateWaasPolicyRequest { environmentId: string; waasPolicyUpdateRequest: WaasPolicyUpdateRequest; } export interface WaasVerifyApiKeyRequest { environmentId: string; } /** * */ export declare class WaasApi extends runtime.BaseAPI { /** * Authenticates for WaaS using an API key. * Authenticate for WAAS using an API key */ authenticateWaasRaw(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise>; /** * Authenticates for WaaS using an API key. * Authenticate for WAAS using an API key */ authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise; /** * Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users. * Create backup action for key shares using API token authentication */ backupKeySharesToLocationsForPregenRaw(requestParameters: BackupKeySharesToLocationsForPregenRequest, initOverrides?: RequestInit): Promise>; /** * Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users. * Create backup action for key shares using API token authentication */ backupKeySharesToLocationsForPregen(requestParameters: BackupKeySharesToLocationsForPregenRequest, initOverrides?: RequestInit): Promise; /** * Creates new encryption public key credentials for WaaS wallet delegation. * Create credentials for waas wallet delegation */ createDelegatedCredentialsRaw(requestParameters: CreateDelegatedCredentialsRequest, initOverrides?: RequestInit): Promise>; /** * Creates new encryption public key credentials for WaaS wallet delegation. * Create credentials for waas wallet delegation */ createDelegatedCredentials(requestParameters: CreateDelegatedCredentialsRequest, initOverrides?: RequestInit): Promise; /** * Creates a new WaaS policy for the specified environment. * Create a new WAAS policy for an environment or add new rules to an existing policy */ createWaasPolicyRaw(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new WaaS policy for the specified environment. * Create a new WAAS policy for an environment or add new rules to an existing policy */ createWaasPolicy(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise; /** * Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user. * Create a WAAS wallet for a user */ createWaasWalletRaw(requestParameters: CreateWaasWalletRequest, initOverrides?: RequestInit): Promise>; /** * Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user. * Create a WAAS wallet for a user */ createWaasWallet(requestParameters: CreateWaasWalletRequest, initOverrides?: RequestInit): Promise; /** * Signs a message using a delegated WaaS account. * Sign a message with a delegated waas account */ delegatedSignMessageRaw(requestParameters: DelegatedSignMessageRequest, initOverrides?: RequestInit): Promise>; /** * Signs a message using a delegated WaaS account. * Sign a message with a delegated waas account */ delegatedSignMessage(requestParameters: DelegatedSignMessageRequest, initOverrides?: RequestInit): Promise; /** * Allows developers to revoke their own delegated access for a specific wallet * Revoke delegated access for a single wallet */ deleteDelegatedAccessRaw(requestParameters: DeleteDelegatedAccessRequest, initOverrides?: RequestInit): Promise>; /** * Allows developers to revoke their own delegated access for a specific wallet * Revoke delegated access for a single wallet */ deleteDelegatedAccess(requestParameters: DeleteDelegatedAccessRequest, initOverrides?: RequestInit): Promise; /** * Permanently removes the specified WaaS policy rule. * Delete a WAAS policy rule by ruleId */ deleteWaasPolicyRaw(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise>; /** * Permanently removes the specified WaaS policy rule. * Delete a WAAS policy rule by ruleId */ deleteWaasPolicy(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise; /** * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key. * Get delegated access encryption public key for an environment */ getDelegatedAccessEncryptionPublicKeyRaw(requestParameters: GetDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise>; /** * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key. * Get delegated access encryption public key for an environment */ getDelegatedAccessEncryptionPublicKey(requestParameters: GetDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise; /** * Returns a delegated access encryption public key by its ID. * Get a specific delegated access encryption public key by ID */ getDelegatedAccessEncryptionPublicKeyByIdRaw(requestParameters: GetDelegatedAccessEncryptionPublicKeyByIdRequest, initOverrides?: RequestInit): Promise>; /** * Returns a delegated access encryption public key by its ID. * Get a specific delegated access encryption public key by ID */ getDelegatedAccessEncryptionPublicKeyById(requestParameters: GetDelegatedAccessEncryptionPublicKeyByIdRequest, initOverrides?: RequestInit): Promise; /** * Fetches the encryption public keys used for delegated access in a WAAS environment. By default, returns only the latest active key. Use the includeAll query parameter to get all keys. * Get delegated access encryption public keys for an environment */ getDelegatedAccessEncryptionPublicKeysRaw(requestParameters: GetDelegatedAccessEncryptionPublicKeysRequest, initOverrides?: RequestInit): Promise>; /** * Fetches the encryption public keys used for delegated access in a WAAS environment. By default, returns only the latest active key. Use the includeAll query parameter to get all keys. * Get delegated access encryption public keys for an environment */ getDelegatedAccessEncryptionPublicKeys(requestParameters: GetDelegatedAccessEncryptionPublicKeysRequest, initOverrides?: RequestInit): Promise; /** * Returns the WaaS policy for the specified environment. * Get the WAAS policy for an environment */ getWaasPolicyRaw(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise>; /** * Returns the WaaS policy for the specified environment. * Get the WAAS policy for an environment */ getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise; /** * Returns a WaaS wallet by its wallet ID. * Get a specific WAAS wallet by walletId */ getWaasWalletByWalletIdRaw(requestParameters: GetWaasWalletByWalletIdRequest, initOverrides?: RequestInit): Promise>; /** * Returns a WaaS wallet by its wallet ID. * Get a specific WAAS wallet by walletId */ getWaasWalletByWalletId(requestParameters: GetWaasWalletByWalletIdRequest, initOverrides?: RequestInit): Promise; /** * Returns the allowed HTTP methods and CORS headers for this endpoint. * Get CORS and allowed methods for delegated access encryption public keys endpoint */ optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters: OptionsDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise>; /** * Returns the allowed HTTP methods and CORS headers for this endpoint. * Get CORS and allowed methods for delegated access encryption public keys endpoint */ optionsDelegatedAccessEncryptionPublicKey(requestParameters: OptionsDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise; /** * Allows developers to revoke their own delegated access * Revoke delegated access for one or more wallets */ revokeDelegatedAccessRaw(requestParameters: RevokeDelegatedAccessOperationRequest, initOverrides?: RequestInit): Promise>; /** * Allows developers to revoke their own delegated access * Revoke delegated access for one or more wallets */ revokeDelegatedAccess(requestParameters: RevokeDelegatedAccessOperationRequest, initOverrides?: RequestInit): Promise; /** * Updates the WaaS policy for the specified environment. * Update the WAAS policy for an environment by ruleId */ updateWaasPolicyRaw(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise>; /** * Updates the WaaS policy for the specified environment. * Update the WAAS policy for an environment by ruleId */ updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise; /** * Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise. * Verify if an API key is valid for a specific environment */ waasVerifyApiKeyRaw(requestParameters: WaasVerifyApiKeyRequest, initOverrides?: RequestInit): Promise>; /** * Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise. * Verify if an API key is valid for a specific environment */ waasVerifyApiKey(requestParameters: WaasVerifyApiKeyRequest, initOverrides?: RequestInit): Promise; }