diff --git a/examples/solana-sweeper/.env.local.example b/examples/solana-sweeper/.env.local.example new file mode 100644 index 000000000..99c713fe9 --- /dev/null +++ b/examples/solana-sweeper/.env.local.example @@ -0,0 +1,7 @@ +API_PUBLIC_KEY="your-api-public-key" +API_PRIVATE_KEY="your-api-private-key" +BASE_URL="https://api.preprod.turnkey.engineering" +ORGANIZATION_ID="your-org-id" +SIGN_WITH="your-solana-address" +DESTINATION_ADDRESS="destination-solana-address" +SOLANA_NETWORK="devnet" diff --git a/examples/solana-sweeper/package.json b/examples/solana-sweeper/package.json new file mode 100644 index 000000000..78cb8e91e --- /dev/null +++ b/examples/solana-sweeper/package.json @@ -0,0 +1,21 @@ +{ + "name": "@turnkey/example-solana-sweeper", + "private": true, + "version": "0.1.0", + "scripts": { + "start": "tsx src/index.ts", + "clean": "rimraf ./dist ./.cache", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@solana/spl-token": "^0.4.9", + "@solana/web3.js": "^1.95.8", + "@turnkey/sdk-server": "workspace:*", + "dotenv": "^16.0.3", + "prompts": "^2.4.2" + }, + "devDependencies": { + "@types/prompts": "^2.4.2", + "typescript": "5.4.3" + } +} diff --git a/examples/solana-sweeper/src/index.ts b/examples/solana-sweeper/src/index.ts new file mode 100644 index 000000000..ab8132a8e --- /dev/null +++ b/examples/solana-sweeper/src/index.ts @@ -0,0 +1,299 @@ +import * as path from "path"; +import * as dotenv from "dotenv"; + +dotenv.config({ path: path.resolve(process.cwd(), ".env.local") }); + +import { + Connection, + PublicKey, + SystemProgram, + TransactionMessage, + VersionedTransaction, +} from "@solana/web3.js"; +import { + getAssociatedTokenAddressSync, + getAccount, + createAssociatedTokenAccountInstruction, + createTransferInstruction, + TokenAccountNotFoundError, +} from "@solana/spl-token"; +import prompts from "prompts"; +import { getTurnkeyClient, pollTransactionStatus } from "./turnkey"; +import { toReadableAmount, lamportsToSol } from "./utils"; +import { + type SplToken, + USDC_DEVNET, + USDC_MAINNET, +} from "./tokens"; + +const SOLANA_NETWORKS = { + mainnet: { + rpc: "https://api.mainnet-beta.solana.com", + caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", + tokens: [USDC_MAINNET], + explorerBase: "https://explorer.solana.com/tx", + explorerSuffix: "", + }, + devnet: { + rpc: "https://api.devnet.solana.com", + caip2: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", + tokens: [USDC_DEVNET], + explorerBase: "https://explorer.solana.com/tx", + explorerSuffix: "?cluster=devnet", + }, +} as const; + +type SolanaNetwork = keyof typeof SOLANA_NETWORKS; + +async function main() { + const organizationId = process.env.ORGANIZATION_ID!; + const signWith = process.env.SIGN_WITH!; + const destination = process.env.DESTINATION_ADDRESS!; + const networkEnv = (process.env.SOLANA_NETWORK ?? "mainnet").toLowerCase(); + + if (networkEnv !== "mainnet" && networkEnv !== "devnet") { + console.error( + `Invalid SOLANA_NETWORK "${networkEnv}". Must be "mainnet" or "devnet".`, + ); + process.exit(1); + } + + const network = SOLANA_NETWORKS[networkEnv as SolanaNetwork]; + + if (!organizationId || !signWith || !destination) { + console.error( + "Missing required environment variables. Please check your .env.local file.", + ); + console.error("Required: ORGANIZATION_ID, SIGN_WITH, DESTINATION_ADDRESS"); + console.error("Optional: SOLANA_NETWORK (mainnet|devnet)"); + process.exit(1); + } + + const turnkey = getTurnkeyClient(); + const connection = new Connection(network.rpc, "confirmed"); + + const balance = await connection.getBalance(new PublicKey(signWith)); + + console.log("Address:", signWith); + console.log("SOL Balance:", lamportsToSol(balance)); + + let sponsor = false; + const { useSponsor } = await prompts({ + type: "confirm", + name: "useSponsor", + message: "Use Turnkey gas sponsorship for sweep transactions?", + initial: false, + }); + sponsor = !!useSponsor; + + if (!sponsor && balance === 0) { + console.warn("Not enough SOL for transaction fees."); + return; + } + + await sweepTokens( + turnkey, + organizationId, + signWith, + destination, + [...network.tokens], + sponsor, + connection, + network, + ); + await sweepSol( + turnkey, + organizationId, + signWith, + destination, + sponsor, + connection, + network, + ); +} + +async function sweepTokens( + turnkey: any, + organizationId: string, + signWith: string, + destination: string, + tokens: SplToken[], + sponsor: boolean, + connection: Connection, + network: (typeof SOLANA_NETWORKS)[SolanaNetwork], +) { + const ownerPubkey = new PublicKey(signWith); + const destPubkey = new PublicKey(destination); + + for (const token of tokens) { + const mintPubkey = new PublicKey(token.mint); + const sourceAta = getAssociatedTokenAddressSync(mintPubkey, ownerPubkey); + + let balance: bigint; + try { + const account = await getAccount(connection, sourceAta); + balance = account.amount; + } catch (err) { + if (err instanceof TokenAccountNotFoundError) { + console.log(`No ${token.symbol} account found. Skipping...`); + continue; + } + throw err; + } + + if (balance === 0n) { + console.log(`No ${token.symbol}. Skipping...`); + continue; + } + + const { confirmed } = await prompts({ + type: "confirm", + name: "confirmed", + message: `Transfer ${toReadableAmount(balance, token.decimals)} ${token.symbol} to ${destination}?`, + }); + + if (!confirmed) continue; + + const destAta = getAssociatedTokenAddressSync(mintPubkey, destPubkey); + + const instructions = []; + + // Create destination ATA if it doesn't exist + const destAccountInfo = await connection.getAccountInfo(destAta); + if (!destAccountInfo) { + instructions.push( + createAssociatedTokenAccountInstruction( + ownerPubkey, + destAta, + destPubkey, + mintPubkey, + ), + ); + } + + instructions.push( + createTransferInstruction(sourceAta, destAta, ownerPubkey, balance), + ); + + const { blockhash } = await connection.getLatestBlockhash(); + + const txMessage = new TransactionMessage({ + payerKey: ownerPubkey, + recentBlockhash: blockhash, + instructions, + }); + + const versionedTx = new VersionedTransaction( + txMessage.compileToV0Message(), + ); + const unsignedTransaction = Buffer.from(versionedTx.serialize()).toString( + "hex", + ); + + const { sendTransactionStatusId } = await turnkey + .apiClient() + .solSendTransaction({ + organizationId, + unsignedTransaction, + signWith, + caip2: network.caip2, + sponsor, + }); + + const status = await pollTransactionStatus({ + apiClient: turnkey.apiClient(), + organizationId, + sendTransactionStatusId, + }); + + if (status.txStatus !== "INCLUDED" && status.txStatus !== "COMPLETED") { + throw new Error( + `${token.symbol} sweep failed with status: ${status.txStatus}`, + ); + } + + console.log( + `Sent ${token.symbol}: ${network.explorerBase}/${status.eth?.txHash}${network.explorerSuffix}`, + ); + } +} + +async function sweepSol( + turnkey: any, + organizationId: string, + signWith: string, + destination: string, + sponsor: boolean, + connection: Connection, + network: (typeof SOLANA_NETWORKS)[SolanaNetwork], +) { + const ownerPubkey = new PublicKey(signWith); + const balance = BigInt(await connection.getBalance(ownerPubkey)); + + // Reserve ~5000 lamports for the transaction fee when not sponsored + const fee = sponsor ? 0n : 5000n; + const value = balance - fee; + + if (value <= 0n) { + console.warn("Not enough SOL to sweep."); + return; + } + + const { confirmed } = await prompts({ + type: "confirm", + name: "confirmed", + message: `Sweep ${lamportsToSol(value)} SOL to ${destination}?`, + }); + + if (!confirmed) return; + + const { blockhash } = await connection.getLatestBlockhash(); + + const txMessage = new TransactionMessage({ + payerKey: ownerPubkey, + recentBlockhash: blockhash, + instructions: [ + SystemProgram.transfer({ + fromPubkey: ownerPubkey, + toPubkey: new PublicKey(destination), + lamports: value, + }), + ], + }); + + const versionedTx = new VersionedTransaction( + txMessage.compileToV0Message(), + ); + const unsignedTransaction = Buffer.from(versionedTx.serialize()).toString( + "hex", + ); + + const { sendTransactionStatusId } = await turnkey + .apiClient() + .solSendTransaction({ + organizationId, + unsignedTransaction, + signWith, + caip2: network.caip2, + sponsor, + }); + + const status = await pollTransactionStatus({ + apiClient: turnkey.apiClient(), + organizationId, + sendTransactionStatusId, + }); + + if (status.txStatus !== "INCLUDED" && status.txStatus !== "COMPLETED") { + throw new Error(`SOL sweep failed with status: ${status.txStatus}`); + } + + console.log( + `Sent SOL: ${network.explorerBase}/${status.eth?.txHash}${network.explorerSuffix}`, + ); +} + +main().catch((error) => { + console.error(error); + process.exit(1); +}); diff --git a/examples/solana-sweeper/src/tokens.ts b/examples/solana-sweeper/src/tokens.ts new file mode 100644 index 000000000..a144cd0fa --- /dev/null +++ b/examples/solana-sweeper/src/tokens.ts @@ -0,0 +1,20 @@ +export type SplToken = { + mint: string; + decimals: number; + symbol: string; + name: string; +}; + +export const USDC_DEVNET: SplToken = { + mint: "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU", + decimals: 6, + symbol: "USDC", + name: "USD Coin", +}; + +export const USDC_MAINNET: SplToken = { + mint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", + decimals: 6, + symbol: "USDC", + name: "USD Coin", +}; diff --git a/examples/solana-sweeper/src/turnkey.ts b/examples/solana-sweeper/src/turnkey.ts new file mode 100644 index 000000000..409fac3ff --- /dev/null +++ b/examples/solana-sweeper/src/turnkey.ts @@ -0,0 +1,72 @@ +import { Turnkey as TurnkeySDKServer } from "@turnkey/sdk-server"; +import * as path from "path"; +import * as dotenv from "dotenv"; + +dotenv.config({ path: path.resolve(process.cwd(), ".env.local") }); + +export function getTurnkeyClient() { + return new TurnkeySDKServer({ + apiBaseUrl: process.env.BASE_URL! ?? "https://api.turnkey.com", + apiPublicKey: process.env.API_PUBLIC_KEY!, + apiPrivateKey: process.env.API_PRIVATE_KEY!, + defaultOrganizationId: process.env.ORGANIZATION_ID!, + }); +} + +export async function pollTransactionStatus({ + apiClient, + organizationId, + sendTransactionStatusId, + intervalMs = 200, + timeoutMs = 60_000, +}: { + apiClient: any; + organizationId: string; + sendTransactionStatusId: string; + intervalMs?: number; + timeoutMs?: number; +}): Promise<{ eth?: { txHash?: string }; txStatus: string }> { + const start = Date.now(); + console.log(`Polling transaction status for ${sendTransactionStatusId}...`); + return new Promise((resolve, reject) => { + const ref = setInterval(async () => { + try { + if (Date.now() - start > timeoutMs) { + clearInterval(ref); + reject(new Error("Polling timed out")); + return; + } + + const resp = await apiClient.getSendTransactionStatus({ + organizationId, + sendTransactionStatusId, + }); + + const status = resp?.txStatus; + const txError = resp?.txError; + + if (!status) return; + + if (txError || status === "FAILED" || status === "CANCELLED") { + clearInterval(ref); + reject( + new Error( + txError || `Transaction ${status} (no explicit error returned)`, + ), + ); + return; + } + + if (status === "COMPLETED" || status === "INCLUDED") { + clearInterval(ref); + resolve({ + eth: resp.eth, + txStatus: status, + }); + } + } catch (err) { + console.warn("Polling error:", err); + } + }, intervalMs); + }); +} diff --git a/examples/solana-sweeper/src/utils.ts b/examples/solana-sweeper/src/utils.ts new file mode 100644 index 000000000..e58539c4b --- /dev/null +++ b/examples/solana-sweeper/src/utils.ts @@ -0,0 +1,25 @@ +/** + * Convert a raw bigint token balance into a human-readable decimal string. + * + * Works for both SPL tokens (arbitrary decimals) and native SOL (9 decimals). + */ +export function toReadableAmount( + raw: bigint, + decimals: number, + precision = 4, +): string { + const divisor = 10n ** BigInt(decimals); + const intPart = raw / divisor; + const fracPart = raw % divisor; + + const fracStr = fracPart.toString().padStart(decimals, "0"); + + return precision > 0 + ? `${intPart}.${fracStr.slice(0, precision)}` + : intPart.toString(); +} + +/** Format lamports as a human-readable SOL string. */ +export function lamportsToSol(lamports: number | bigint): string { + return toReadableAmount(BigInt(lamports), 9); +} diff --git a/examples/solana-sweeper/tsconfig.json b/examples/solana-sweeper/tsconfig.json new file mode 100644 index 000000000..6d4b83714 --- /dev/null +++ b/examples/solana-sweeper/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "noEmit": true, + "tsBuildInfoFile": "./.cache/.tsbuildinfo" + }, + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"] +} diff --git a/packages/core/src/__inputs__/public_api.swagger.json b/packages/core/src/__inputs__/public_api.swagger.json index 14047a28d..185eab608 100644 --- a/packages/core/src/__inputs__/public_api.swagger.json +++ b/packages/core/src/__inputs__/public_api.swagger.json @@ -644,6 +644,70 @@ "tags": ["Policies"] } }, + "/public/v1/query/get_tvc_app": { + "post": { + "summary": "Get TVC App", + "description": "Get details about a single TVC App", + "operationId": "PublicApiService_GetTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcAppResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/query/get_tvc_deployment": { + "post": { + "summary": "Get TVC Deployment", + "description": "Get details about a single TVC Deployment", + "operationId": "PublicApiService_GetTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/query/get_user": { "post": { "summary": "Get user", @@ -1764,6 +1828,102 @@ "tags": ["Organizations"] } }, + "/public/v1/submit/create_tvc_app": { + "post": { + "summary": "Create a TVC App", + "description": "Create a new TVC application", + "operationId": "PublicApiService_CreateTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_deployment": { + "post": { + "summary": "Create a TVC Deployment", + "description": "Create a new TVC Deployment", + "operationId": "PublicApiService_CreateTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_manifest_approvals": { + "post": { + "summary": "Create TVC Manifest Approvals", + "description": "Post one or more manifest approvals for a TVC Manifest", + "operationId": "PublicApiService_CreateTvcManifestApprovals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcManifestApprovalsRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/submit/create_user_tag": { "post": { "summary": "Create user tag", @@ -8851,6 +9011,106 @@ }, "required": ["organizationIds"] }, + "v1GetTvcAppDeploymentsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "appId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "appId"] + }, + "v1GetTvcAppDeploymentsResponse": { + "type": "object", + "properties": { + "tvcDeployments": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcDeployment" + }, + "description": "List of deployments for this TVC App" + } + }, + "required": ["tvcDeployments"] + }, + "v1GetTvcAppRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "tvcAppId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "tvcAppId"] + }, + "v1GetTvcAppResponse": { + "type": "object", + "properties": { + "tvcApp": { + "$ref": "#/definitions/v1TvcApp", + "description": "Details about a single TVC App" + } + }, + "required": ["tvcApp"] + }, + "v1GetTvcAppsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + } + }, + "required": ["organizationId"] + }, + "v1GetTvcAppsResponse": { + "type": "object", + "properties": { + "tvcApps": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcApp" + }, + "description": "A list of TVC Apps." + } + }, + "required": ["tvcApps"] + }, + "v1GetTvcDeploymentRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "deploymentId": { + "type": "string", + "description": "Unique identifier for a given TVC Deployment." + } + }, + "required": ["organizationId", "deploymentId"] + }, + "v1GetTvcDeploymentResponse": { + "type": "object", + "properties": { + "tvcDeployment": { + "$ref": "#/definitions/v1TvcDeployment", + "description": "Details about a single TVC Deployment" + } + }, + "required": ["tvcDeployment"] + }, "v1GetUserRequest": { "type": "object", "properties": { @@ -11155,6 +11415,12 @@ }, "required": ["authenticatorId"] }, + "v1RefreshFeatureFlagsRequest": { + "type": "object" + }, + "v1RefreshFeatureFlagsResponse": { + "type": "object" + }, "v1RejectActivityIntent": { "type": "object", "properties": { diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.client.ts b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.client.ts index fabc5b7a1..abb3be151 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.client.ts +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.client.ts @@ -479,7 +479,7 @@ export class TurnkeyClient { } async request( url: string, - body: TBodyType, + body: TBodyType ): Promise { const fullUrl = this.config.baseUrl + url; const stringifiedBody = JSON.stringify(body); @@ -519,7 +519,7 @@ export class TurnkeyClient { * See also {@link stampGetActivity}. */ getActivity = async ( - input: TGetActivityBody, + input: TGetActivityBody ): Promise => { return this.request("/public/v1/query/get_activity", input); }; @@ -530,7 +530,7 @@ export class TurnkeyClient { * See also {@link GetActivity}. */ stampGetActivity = async ( - input: TGetActivityBody, + input: TGetActivityBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_activity"; const body = JSON.stringify(input); @@ -604,7 +604,7 @@ export class TurnkeyClient { * See also {@link stampGetAuthenticator}. */ getAuthenticator = async ( - input: TGetAuthenticatorBody, + input: TGetAuthenticatorBody ): Promise => { return this.request("/public/v1/query/get_authenticator", input); }; @@ -615,7 +615,7 @@ export class TurnkeyClient { * See also {@link GetAuthenticator}. */ stampGetAuthenticator = async ( - input: TGetAuthenticatorBody, + input: TGetAuthenticatorBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticator"; const body = JSON.stringify(input); @@ -635,7 +635,7 @@ export class TurnkeyClient { * See also {@link stampGetAuthenticators}. */ getAuthenticators = async ( - input: TGetAuthenticatorsBody, + input: TGetAuthenticatorsBody ): Promise => { return this.request("/public/v1/query/get_authenticators", input); }; @@ -646,7 +646,7 @@ export class TurnkeyClient { * See also {@link GetAuthenticators}. */ stampGetAuthenticators = async ( - input: TGetAuthenticatorsBody, + input: TGetAuthenticatorsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticators"; const body = JSON.stringify(input); @@ -666,7 +666,7 @@ export class TurnkeyClient { * See also {@link stampGetBootProof}. */ getBootProof = async ( - input: TGetBootProofBody, + input: TGetBootProofBody ): Promise => { return this.request("/public/v1/query/get_boot_proof", input); }; @@ -677,7 +677,7 @@ export class TurnkeyClient { * See also {@link GetBootProof}. */ stampGetBootProof = async ( - input: TGetBootProofBody, + input: TGetBootProofBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_boot_proof"; const body = JSON.stringify(input); @@ -697,7 +697,7 @@ export class TurnkeyClient { * See also {@link stampGetGasUsage}. */ getGasUsage = async ( - input: TGetGasUsageBody, + input: TGetGasUsageBody ): Promise => { return this.request("/public/v1/query/get_gas_usage", input); }; @@ -708,7 +708,7 @@ export class TurnkeyClient { * See also {@link GetGasUsage}. */ stampGetGasUsage = async ( - input: TGetGasUsageBody, + input: TGetGasUsageBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_gas_usage"; const body = JSON.stringify(input); @@ -728,7 +728,7 @@ export class TurnkeyClient { * See also {@link stampGetLatestBootProof}. */ getLatestBootProof = async ( - input: TGetLatestBootProofBody, + input: TGetLatestBootProofBody ): Promise => { return this.request("/public/v1/query/get_latest_boot_proof", input); }; @@ -739,7 +739,7 @@ export class TurnkeyClient { * See also {@link GetLatestBootProof}. */ stampGetLatestBootProof = async ( - input: TGetLatestBootProofBody, + input: TGetLatestBootProofBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_latest_boot_proof"; @@ -787,7 +787,7 @@ export class TurnkeyClient { * See also {@link stampGetOauth2Credential}. */ getOauth2Credential = async ( - input: TGetOauth2CredentialBody, + input: TGetOauth2CredentialBody ): Promise => { return this.request("/public/v1/query/get_oauth2_credential", input); }; @@ -798,7 +798,7 @@ export class TurnkeyClient { * See also {@link GetOauth2Credential}. */ stampGetOauth2Credential = async ( - input: TGetOauth2CredentialBody, + input: TGetOauth2CredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_oauth2_credential"; @@ -819,7 +819,7 @@ export class TurnkeyClient { * See also {@link stampGetOauthProviders}. */ getOauthProviders = async ( - input: TGetOauthProvidersBody, + input: TGetOauthProvidersBody ): Promise => { return this.request("/public/v1/query/get_oauth_providers", input); }; @@ -830,7 +830,7 @@ export class TurnkeyClient { * See also {@link GetOauthProviders}. */ stampGetOauthProviders = async ( - input: TGetOauthProvidersBody, + input: TGetOauthProvidersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_oauth_providers"; @@ -851,11 +851,11 @@ export class TurnkeyClient { * See also {@link stampGetOnRampTransactionStatus}. */ getOnRampTransactionStatus = async ( - input: TGetOnRampTransactionStatusBody, + input: TGetOnRampTransactionStatusBody ): Promise => { return this.request( "/public/v1/query/get_onramp_transaction_status", - input, + input ); }; @@ -865,7 +865,7 @@ export class TurnkeyClient { * See also {@link GetOnRampTransactionStatus}. */ stampGetOnRampTransactionStatus = async ( - input: TGetOnRampTransactionStatusBody, + input: TGetOnRampTransactionStatusBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_onramp_transaction_status"; @@ -886,7 +886,7 @@ export class TurnkeyClient { * See also {@link stampGetOrganization}. */ getOrganization = async ( - input: TGetOrganizationBody, + input: TGetOrganizationBody ): Promise => { return this.request("/public/v1/query/get_organization", input); }; @@ -897,7 +897,7 @@ export class TurnkeyClient { * See also {@link GetOrganization}. */ stampGetOrganization = async ( - input: TGetOrganizationBody, + input: TGetOrganizationBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_organization"; const body = JSON.stringify(input); @@ -917,7 +917,7 @@ export class TurnkeyClient { * See also {@link stampGetOrganizationConfigs}. */ getOrganizationConfigs = async ( - input: TGetOrganizationConfigsBody, + input: TGetOrganizationConfigsBody ): Promise => { return this.request("/public/v1/query/get_organization_configs", input); }; @@ -928,7 +928,7 @@ export class TurnkeyClient { * See also {@link GetOrganizationConfigs}. */ stampGetOrganizationConfigs = async ( - input: TGetOrganizationConfigsBody, + input: TGetOrganizationConfigsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_organization_configs"; @@ -976,7 +976,7 @@ export class TurnkeyClient { * See also {@link stampGetPolicyEvaluations}. */ getPolicyEvaluations = async ( - input: TGetPolicyEvaluationsBody, + input: TGetPolicyEvaluationsBody ): Promise => { return this.request("/public/v1/query/get_policy_evaluations", input); }; @@ -987,7 +987,7 @@ export class TurnkeyClient { * See also {@link GetPolicyEvaluations}. */ stampGetPolicyEvaluations = async ( - input: TGetPolicyEvaluationsBody, + input: TGetPolicyEvaluationsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_policy_evaluations"; @@ -1008,7 +1008,7 @@ export class TurnkeyClient { * See also {@link stampGetPrivateKey}. */ getPrivateKey = async ( - input: TGetPrivateKeyBody, + input: TGetPrivateKeyBody ): Promise => { return this.request("/public/v1/query/get_private_key", input); }; @@ -1019,7 +1019,7 @@ export class TurnkeyClient { * See also {@link GetPrivateKey}. */ stampGetPrivateKey = async ( - input: TGetPrivateKeyBody, + input: TGetPrivateKeyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_private_key"; const body = JSON.stringify(input); @@ -1039,7 +1039,7 @@ export class TurnkeyClient { * See also {@link stampGetSendTransactionStatus}. */ getSendTransactionStatus = async ( - input: TGetSendTransactionStatusBody, + input: TGetSendTransactionStatusBody ): Promise => { return this.request("/public/v1/query/get_send_transaction_status", input); }; @@ -1050,7 +1050,7 @@ export class TurnkeyClient { * See also {@link GetSendTransactionStatus}. */ stampGetSendTransactionStatus = async ( - input: TGetSendTransactionStatusBody, + input: TGetSendTransactionStatusBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_send_transaction_status"; @@ -1071,7 +1071,7 @@ export class TurnkeyClient { * See also {@link stampGetSmartContractInterface}. */ getSmartContractInterface = async ( - input: TGetSmartContractInterfaceBody, + input: TGetSmartContractInterfaceBody ): Promise => { return this.request("/public/v1/query/get_smart_contract_interface", input); }; @@ -1082,7 +1082,7 @@ export class TurnkeyClient { * See also {@link GetSmartContractInterface}. */ stampGetSmartContractInterface = async ( - input: TGetSmartContractInterfaceBody, + input: TGetSmartContractInterfaceBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_smart_contract_interface"; @@ -1215,7 +1215,7 @@ export class TurnkeyClient { * See also {@link stampGetWalletAccount}. */ getWalletAccount = async ( - input: TGetWalletAccountBody, + input: TGetWalletAccountBody ): Promise => { return this.request("/public/v1/query/get_wallet_account", input); }; @@ -1226,7 +1226,7 @@ export class TurnkeyClient { * See also {@link GetWalletAccount}. */ stampGetWalletAccount = async ( - input: TGetWalletAccountBody, + input: TGetWalletAccountBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet_account"; const body = JSON.stringify(input); @@ -1278,7 +1278,7 @@ export class TurnkeyClient { * See also {@link stampGetActivities}. */ getActivities = async ( - input: TGetActivitiesBody, + input: TGetActivitiesBody ): Promise => { return this.request("/public/v1/query/list_activities", input); }; @@ -1289,7 +1289,7 @@ export class TurnkeyClient { * See also {@link GetActivities}. */ stampGetActivities = async ( - input: TGetActivitiesBody, + input: TGetActivitiesBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_activities"; const body = JSON.stringify(input); @@ -1309,7 +1309,7 @@ export class TurnkeyClient { * See also {@link stampGetAppProofs}. */ getAppProofs = async ( - input: TGetAppProofsBody, + input: TGetAppProofsBody ): Promise => { return this.request("/public/v1/query/list_app_proofs", input); }; @@ -1320,7 +1320,7 @@ export class TurnkeyClient { * See also {@link GetAppProofs}. */ stampGetAppProofs = async ( - input: TGetAppProofsBody, + input: TGetAppProofsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_app_proofs"; const body = JSON.stringify(input); @@ -1340,11 +1340,11 @@ export class TurnkeyClient { * See also {@link stampListFiatOnRampCredentials}. */ listFiatOnRampCredentials = async ( - input: TListFiatOnRampCredentialsBody, + input: TListFiatOnRampCredentialsBody ): Promise => { return this.request( "/public/v1/query/list_fiat_on_ramp_credentials", - input, + input ); }; @@ -1354,7 +1354,7 @@ export class TurnkeyClient { * See also {@link ListFiatOnRampCredentials}. */ stampListFiatOnRampCredentials = async ( - input: TListFiatOnRampCredentialsBody, + input: TListFiatOnRampCredentialsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_fiat_on_ramp_credentials"; @@ -1375,7 +1375,7 @@ export class TurnkeyClient { * See also {@link stampListOauth2Credentials}. */ listOauth2Credentials = async ( - input: TListOauth2CredentialsBody, + input: TListOauth2CredentialsBody ): Promise => { return this.request("/public/v1/query/list_oauth2_credentials", input); }; @@ -1386,7 +1386,7 @@ export class TurnkeyClient { * See also {@link ListOauth2Credentials}. */ stampListOauth2Credentials = async ( - input: TListOauth2CredentialsBody, + input: TListOauth2CredentialsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_oauth2_credentials"; @@ -1407,7 +1407,7 @@ export class TurnkeyClient { * See also {@link stampGetPolicies}. */ getPolicies = async ( - input: TGetPoliciesBody, + input: TGetPoliciesBody ): Promise => { return this.request("/public/v1/query/list_policies", input); }; @@ -1418,7 +1418,7 @@ export class TurnkeyClient { * See also {@link GetPolicies}. */ stampGetPolicies = async ( - input: TGetPoliciesBody, + input: TGetPoliciesBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_policies"; const body = JSON.stringify(input); @@ -1438,7 +1438,7 @@ export class TurnkeyClient { * See also {@link stampListPrivateKeyTags}. */ listPrivateKeyTags = async ( - input: TListPrivateKeyTagsBody, + input: TListPrivateKeyTagsBody ): Promise => { return this.request("/public/v1/query/list_private_key_tags", input); }; @@ -1449,7 +1449,7 @@ export class TurnkeyClient { * See also {@link ListPrivateKeyTags}. */ stampListPrivateKeyTags = async ( - input: TListPrivateKeyTagsBody, + input: TListPrivateKeyTagsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_private_key_tags"; @@ -1470,7 +1470,7 @@ export class TurnkeyClient { * See also {@link stampGetPrivateKeys}. */ getPrivateKeys = async ( - input: TGetPrivateKeysBody, + input: TGetPrivateKeysBody ): Promise => { return this.request("/public/v1/query/list_private_keys", input); }; @@ -1481,7 +1481,7 @@ export class TurnkeyClient { * See also {@link GetPrivateKeys}. */ stampGetPrivateKeys = async ( - input: TGetPrivateKeysBody, + input: TGetPrivateKeysBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_private_keys"; const body = JSON.stringify(input); @@ -1501,11 +1501,11 @@ export class TurnkeyClient { * See also {@link stampGetSmartContractInterfaces}. */ getSmartContractInterfaces = async ( - input: TGetSmartContractInterfacesBody, + input: TGetSmartContractInterfacesBody ): Promise => { return this.request( "/public/v1/query/list_smart_contract_interfaces", - input, + input ); }; @@ -1515,7 +1515,7 @@ export class TurnkeyClient { * See also {@link GetSmartContractInterfaces}. */ stampGetSmartContractInterfaces = async ( - input: TGetSmartContractInterfacesBody, + input: TGetSmartContractInterfacesBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_smart_contract_interfaces"; @@ -1536,7 +1536,7 @@ export class TurnkeyClient { * See also {@link stampGetSubOrgIds}. */ getSubOrgIds = async ( - input: TGetSubOrgIdsBody, + input: TGetSubOrgIdsBody ): Promise => { return this.request("/public/v1/query/list_suborgs", input); }; @@ -1547,7 +1547,7 @@ export class TurnkeyClient { * See also {@link GetSubOrgIds}. */ stampGetSubOrgIds = async ( - input: TGetSubOrgIdsBody, + input: TGetSubOrgIdsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_suborgs"; const body = JSON.stringify(input); @@ -1658,7 +1658,7 @@ export class TurnkeyClient { * See also {@link stampListUserTags}. */ listUserTags = async ( - input: TListUserTagsBody, + input: TListUserTagsBody ): Promise => { return this.request("/public/v1/query/list_user_tags", input); }; @@ -1669,7 +1669,7 @@ export class TurnkeyClient { * See also {@link ListUserTags}. */ stampListUserTags = async ( - input: TListUserTagsBody, + input: TListUserTagsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_user_tags"; const body = JSON.stringify(input); @@ -1716,7 +1716,7 @@ export class TurnkeyClient { * See also {@link stampGetVerifiedSubOrgIds}. */ getVerifiedSubOrgIds = async ( - input: TGetVerifiedSubOrgIdsBody, + input: TGetVerifiedSubOrgIdsBody ): Promise => { return this.request("/public/v1/query/list_verified_suborgs", input); }; @@ -1727,7 +1727,7 @@ export class TurnkeyClient { * See also {@link GetVerifiedSubOrgIds}. */ stampGetVerifiedSubOrgIds = async ( - input: TGetVerifiedSubOrgIdsBody, + input: TGetVerifiedSubOrgIdsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_verified_suborgs"; @@ -1748,7 +1748,7 @@ export class TurnkeyClient { * See also {@link stampGetWalletAccounts}. */ getWalletAccounts = async ( - input: TGetWalletAccountsBody, + input: TGetWalletAccountsBody ): Promise => { return this.request("/public/v1/query/list_wallet_accounts", input); }; @@ -1759,7 +1759,7 @@ export class TurnkeyClient { * See also {@link GetWalletAccounts}. */ stampGetWalletAccounts = async ( - input: TGetWalletAccountsBody, + input: TGetWalletAccountsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallet_accounts"; @@ -1834,7 +1834,7 @@ export class TurnkeyClient { * See also {@link stampApproveActivity}. */ approveActivity = async ( - input: TApproveActivityBody, + input: TApproveActivityBody ): Promise => { return this.request("/public/v1/submit/approve_activity", input); }; @@ -1845,7 +1845,7 @@ export class TurnkeyClient { * See also {@link ApproveActivity}. */ stampApproveActivity = async ( - input: TApproveActivityBody, + input: TApproveActivityBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/approve_activity"; const body = JSON.stringify(input); @@ -1865,7 +1865,7 @@ export class TurnkeyClient { * See also {@link stampCreateApiKeys}. */ createApiKeys = async ( - input: TCreateApiKeysBody, + input: TCreateApiKeysBody ): Promise => { return this.request("/public/v1/submit/create_api_keys", input); }; @@ -1876,7 +1876,7 @@ export class TurnkeyClient { * See also {@link CreateApiKeys}. */ stampCreateApiKeys = async ( - input: TCreateApiKeysBody, + input: TCreateApiKeysBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_api_keys"; const body = JSON.stringify(input); @@ -1896,7 +1896,7 @@ export class TurnkeyClient { * See also {@link stampCreateApiOnlyUsers}. */ createApiOnlyUsers = async ( - input: TCreateApiOnlyUsersBody, + input: TCreateApiOnlyUsersBody ): Promise => { return this.request("/public/v1/submit/create_api_only_users", input); }; @@ -1907,7 +1907,7 @@ export class TurnkeyClient { * See also {@link CreateApiOnlyUsers}. */ stampCreateApiOnlyUsers = async ( - input: TCreateApiOnlyUsersBody, + input: TCreateApiOnlyUsersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_api_only_users"; @@ -1928,7 +1928,7 @@ export class TurnkeyClient { * See also {@link stampCreateAuthenticators}. */ createAuthenticators = async ( - input: TCreateAuthenticatorsBody, + input: TCreateAuthenticatorsBody ): Promise => { return this.request("/public/v1/submit/create_authenticators", input); }; @@ -1939,7 +1939,7 @@ export class TurnkeyClient { * See also {@link CreateAuthenticators}. */ stampCreateAuthenticators = async ( - input: TCreateAuthenticatorsBody, + input: TCreateAuthenticatorsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_authenticators"; @@ -1960,11 +1960,11 @@ export class TurnkeyClient { * See also {@link stampCreateFiatOnRampCredential}. */ createFiatOnRampCredential = async ( - input: TCreateFiatOnRampCredentialBody, + input: TCreateFiatOnRampCredentialBody ): Promise => { return this.request( "/public/v1/submit/create_fiat_on_ramp_credential", - input, + input ); }; @@ -1974,7 +1974,7 @@ export class TurnkeyClient { * See also {@link CreateFiatOnRampCredential}. */ stampCreateFiatOnRampCredential = async ( - input: TCreateFiatOnRampCredentialBody, + input: TCreateFiatOnRampCredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_fiat_on_ramp_credential"; @@ -1995,7 +1995,7 @@ export class TurnkeyClient { * See also {@link stampCreateInvitations}. */ createInvitations = async ( - input: TCreateInvitationsBody, + input: TCreateInvitationsBody ): Promise => { return this.request("/public/v1/submit/create_invitations", input); }; @@ -2006,7 +2006,7 @@ export class TurnkeyClient { * See also {@link CreateInvitations}. */ stampCreateInvitations = async ( - input: TCreateInvitationsBody, + input: TCreateInvitationsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_invitations"; @@ -2027,7 +2027,7 @@ export class TurnkeyClient { * See also {@link stampCreateOauth2Credential}. */ createOauth2Credential = async ( - input: TCreateOauth2CredentialBody, + input: TCreateOauth2CredentialBody ): Promise => { return this.request("/public/v1/submit/create_oauth2_credential", input); }; @@ -2038,7 +2038,7 @@ export class TurnkeyClient { * See also {@link CreateOauth2Credential}. */ stampCreateOauth2Credential = async ( - input: TCreateOauth2CredentialBody, + input: TCreateOauth2CredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_oauth2_credential"; @@ -2059,7 +2059,7 @@ export class TurnkeyClient { * See also {@link stampCreateOauthProviders}. */ createOauthProviders = async ( - input: TCreateOauthProvidersBody, + input: TCreateOauthProvidersBody ): Promise => { return this.request("/public/v1/submit/create_oauth_providers", input); }; @@ -2070,7 +2070,7 @@ export class TurnkeyClient { * See also {@link CreateOauthProviders}. */ stampCreateOauthProviders = async ( - input: TCreateOauthProvidersBody, + input: TCreateOauthProvidersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_oauth_providers"; @@ -2091,7 +2091,7 @@ export class TurnkeyClient { * See also {@link stampCreatePolicies}. */ createPolicies = async ( - input: TCreatePoliciesBody, + input: TCreatePoliciesBody ): Promise => { return this.request("/public/v1/submit/create_policies", input); }; @@ -2102,7 +2102,7 @@ export class TurnkeyClient { * See also {@link CreatePolicies}. */ stampCreatePolicies = async ( - input: TCreatePoliciesBody, + input: TCreatePoliciesBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_policies"; const body = JSON.stringify(input); @@ -2122,7 +2122,7 @@ export class TurnkeyClient { * See also {@link stampCreatePolicy}. */ createPolicy = async ( - input: TCreatePolicyBody, + input: TCreatePolicyBody ): Promise => { return this.request("/public/v1/submit/create_policy", input); }; @@ -2133,7 +2133,7 @@ export class TurnkeyClient { * See also {@link CreatePolicy}. */ stampCreatePolicy = async ( - input: TCreatePolicyBody, + input: TCreatePolicyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_policy"; const body = JSON.stringify(input); @@ -2153,7 +2153,7 @@ export class TurnkeyClient { * See also {@link stampCreatePrivateKeyTag}. */ createPrivateKeyTag = async ( - input: TCreatePrivateKeyTagBody, + input: TCreatePrivateKeyTagBody ): Promise => { return this.request("/public/v1/submit/create_private_key_tag", input); }; @@ -2164,7 +2164,7 @@ export class TurnkeyClient { * See also {@link CreatePrivateKeyTag}. */ stampCreatePrivateKeyTag = async ( - input: TCreatePrivateKeyTagBody, + input: TCreatePrivateKeyTagBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_private_key_tag"; @@ -2185,7 +2185,7 @@ export class TurnkeyClient { * See also {@link stampCreatePrivateKeys}. */ createPrivateKeys = async ( - input: TCreatePrivateKeysBody, + input: TCreatePrivateKeysBody ): Promise => { return this.request("/public/v1/submit/create_private_keys", input); }; @@ -2196,7 +2196,7 @@ export class TurnkeyClient { * See also {@link CreatePrivateKeys}. */ stampCreatePrivateKeys = async ( - input: TCreatePrivateKeysBody, + input: TCreatePrivateKeysBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_private_keys"; @@ -2217,7 +2217,7 @@ export class TurnkeyClient { * See also {@link stampCreateReadOnlySession}. */ createReadOnlySession = async ( - input: TCreateReadOnlySessionBody, + input: TCreateReadOnlySessionBody ): Promise => { return this.request("/public/v1/submit/create_read_only_session", input); }; @@ -2228,7 +2228,7 @@ export class TurnkeyClient { * See also {@link CreateReadOnlySession}. */ stampCreateReadOnlySession = async ( - input: TCreateReadOnlySessionBody, + input: TCreateReadOnlySessionBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_read_only_session"; @@ -2249,7 +2249,7 @@ export class TurnkeyClient { * See also {@link stampCreateReadWriteSession}. */ createReadWriteSession = async ( - input: TCreateReadWriteSessionBody, + input: TCreateReadWriteSessionBody ): Promise => { return this.request("/public/v1/submit/create_read_write_session", input); }; @@ -2260,7 +2260,7 @@ export class TurnkeyClient { * See also {@link CreateReadWriteSession}. */ stampCreateReadWriteSession = async ( - input: TCreateReadWriteSessionBody, + input: TCreateReadWriteSessionBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_read_write_session"; @@ -2281,11 +2281,11 @@ export class TurnkeyClient { * See also {@link stampCreateSmartContractInterface}. */ createSmartContractInterface = async ( - input: TCreateSmartContractInterfaceBody, + input: TCreateSmartContractInterfaceBody ): Promise => { return this.request( "/public/v1/submit/create_smart_contract_interface", - input, + input ); }; @@ -2295,7 +2295,7 @@ export class TurnkeyClient { * See also {@link CreateSmartContractInterface}. */ stampCreateSmartContractInterface = async ( - input: TCreateSmartContractInterfaceBody, + input: TCreateSmartContractInterfaceBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_smart_contract_interface"; @@ -2316,7 +2316,7 @@ export class TurnkeyClient { * See also {@link stampCreateSubOrganization}. */ createSubOrganization = async ( - input: TCreateSubOrganizationBody, + input: TCreateSubOrganizationBody ): Promise => { return this.request("/public/v1/submit/create_sub_organization", input); }; @@ -2327,7 +2327,7 @@ export class TurnkeyClient { * See also {@link CreateSubOrganization}. */ stampCreateSubOrganization = async ( - input: TCreateSubOrganizationBody, + input: TCreateSubOrganizationBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_sub_organization"; @@ -2446,7 +2446,7 @@ export class TurnkeyClient { * See also {@link stampCreateUserTag}. */ createUserTag = async ( - input: TCreateUserTagBody, + input: TCreateUserTagBody ): Promise => { return this.request("/public/v1/submit/create_user_tag", input); }; @@ -2457,7 +2457,7 @@ export class TurnkeyClient { * See also {@link CreateUserTag}. */ stampCreateUserTag = async ( - input: TCreateUserTagBody, + input: TCreateUserTagBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_user_tag"; const body = JSON.stringify(input); @@ -2477,7 +2477,7 @@ export class TurnkeyClient { * See also {@link stampCreateUsers}. */ createUsers = async ( - input: TCreateUsersBody, + input: TCreateUsersBody ): Promise => { return this.request("/public/v1/submit/create_users", input); }; @@ -2488,7 +2488,7 @@ export class TurnkeyClient { * See also {@link CreateUsers}. */ stampCreateUsers = async ( - input: TCreateUsersBody, + input: TCreateUsersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_users"; const body = JSON.stringify(input); @@ -2508,7 +2508,7 @@ export class TurnkeyClient { * See also {@link stampCreateWallet}. */ createWallet = async ( - input: TCreateWalletBody, + input: TCreateWalletBody ): Promise => { return this.request("/public/v1/submit/create_wallet", input); }; @@ -2519,7 +2519,7 @@ export class TurnkeyClient { * See also {@link CreateWallet}. */ stampCreateWallet = async ( - input: TCreateWalletBody, + input: TCreateWalletBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_wallet"; const body = JSON.stringify(input); @@ -2539,7 +2539,7 @@ export class TurnkeyClient { * See also {@link stampCreateWalletAccounts}. */ createWalletAccounts = async ( - input: TCreateWalletAccountsBody, + input: TCreateWalletAccountsBody ): Promise => { return this.request("/public/v1/submit/create_wallet_accounts", input); }; @@ -2550,7 +2550,7 @@ export class TurnkeyClient { * See also {@link CreateWalletAccounts}. */ stampCreateWalletAccounts = async ( - input: TCreateWalletAccountsBody, + input: TCreateWalletAccountsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/create_wallet_accounts"; @@ -2571,7 +2571,7 @@ export class TurnkeyClient { * See also {@link stampDeleteApiKeys}. */ deleteApiKeys = async ( - input: TDeleteApiKeysBody, + input: TDeleteApiKeysBody ): Promise => { return this.request("/public/v1/submit/delete_api_keys", input); }; @@ -2582,7 +2582,7 @@ export class TurnkeyClient { * See also {@link DeleteApiKeys}. */ stampDeleteApiKeys = async ( - input: TDeleteApiKeysBody, + input: TDeleteApiKeysBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_api_keys"; const body = JSON.stringify(input); @@ -2602,7 +2602,7 @@ export class TurnkeyClient { * See also {@link stampDeleteAuthenticators}. */ deleteAuthenticators = async ( - input: TDeleteAuthenticatorsBody, + input: TDeleteAuthenticatorsBody ): Promise => { return this.request("/public/v1/submit/delete_authenticators", input); }; @@ -2613,7 +2613,7 @@ export class TurnkeyClient { * See also {@link DeleteAuthenticators}. */ stampDeleteAuthenticators = async ( - input: TDeleteAuthenticatorsBody, + input: TDeleteAuthenticatorsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_authenticators"; @@ -2634,11 +2634,11 @@ export class TurnkeyClient { * See also {@link stampDeleteFiatOnRampCredential}. */ deleteFiatOnRampCredential = async ( - input: TDeleteFiatOnRampCredentialBody, + input: TDeleteFiatOnRampCredentialBody ): Promise => { return this.request( "/public/v1/submit/delete_fiat_on_ramp_credential", - input, + input ); }; @@ -2648,7 +2648,7 @@ export class TurnkeyClient { * See also {@link DeleteFiatOnRampCredential}. */ stampDeleteFiatOnRampCredential = async ( - input: TDeleteFiatOnRampCredentialBody, + input: TDeleteFiatOnRampCredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_fiat_on_ramp_credential"; @@ -2669,7 +2669,7 @@ export class TurnkeyClient { * See also {@link stampDeleteInvitation}. */ deleteInvitation = async ( - input: TDeleteInvitationBody, + input: TDeleteInvitationBody ): Promise => { return this.request("/public/v1/submit/delete_invitation", input); }; @@ -2680,7 +2680,7 @@ export class TurnkeyClient { * See also {@link DeleteInvitation}. */ stampDeleteInvitation = async ( - input: TDeleteInvitationBody, + input: TDeleteInvitationBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_invitation"; const body = JSON.stringify(input); @@ -2700,7 +2700,7 @@ export class TurnkeyClient { * See also {@link stampDeleteOauth2Credential}. */ deleteOauth2Credential = async ( - input: TDeleteOauth2CredentialBody, + input: TDeleteOauth2CredentialBody ): Promise => { return this.request("/public/v1/submit/delete_oauth2_credential", input); }; @@ -2711,7 +2711,7 @@ export class TurnkeyClient { * See also {@link DeleteOauth2Credential}. */ stampDeleteOauth2Credential = async ( - input: TDeleteOauth2CredentialBody, + input: TDeleteOauth2CredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_oauth2_credential"; @@ -2732,7 +2732,7 @@ export class TurnkeyClient { * See also {@link stampDeleteOauthProviders}. */ deleteOauthProviders = async ( - input: TDeleteOauthProvidersBody, + input: TDeleteOauthProvidersBody ): Promise => { return this.request("/public/v1/submit/delete_oauth_providers", input); }; @@ -2743,7 +2743,7 @@ export class TurnkeyClient { * See also {@link DeleteOauthProviders}. */ stampDeleteOauthProviders = async ( - input: TDeleteOauthProvidersBody, + input: TDeleteOauthProvidersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_oauth_providers"; @@ -2764,7 +2764,7 @@ export class TurnkeyClient { * See also {@link stampDeletePolicies}. */ deletePolicies = async ( - input: TDeletePoliciesBody, + input: TDeletePoliciesBody ): Promise => { return this.request("/public/v1/submit/delete_policies", input); }; @@ -2775,7 +2775,7 @@ export class TurnkeyClient { * See also {@link DeletePolicies}. */ stampDeletePolicies = async ( - input: TDeletePoliciesBody, + input: TDeletePoliciesBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_policies"; const body = JSON.stringify(input); @@ -2795,7 +2795,7 @@ export class TurnkeyClient { * See also {@link stampDeletePolicy}. */ deletePolicy = async ( - input: TDeletePolicyBody, + input: TDeletePolicyBody ): Promise => { return this.request("/public/v1/submit/delete_policy", input); }; @@ -2806,7 +2806,7 @@ export class TurnkeyClient { * See also {@link DeletePolicy}. */ stampDeletePolicy = async ( - input: TDeletePolicyBody, + input: TDeletePolicyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_policy"; const body = JSON.stringify(input); @@ -2826,7 +2826,7 @@ export class TurnkeyClient { * See also {@link stampDeletePrivateKeyTags}. */ deletePrivateKeyTags = async ( - input: TDeletePrivateKeyTagsBody, + input: TDeletePrivateKeyTagsBody ): Promise => { return this.request("/public/v1/submit/delete_private_key_tags", input); }; @@ -2837,7 +2837,7 @@ export class TurnkeyClient { * See also {@link DeletePrivateKeyTags}. */ stampDeletePrivateKeyTags = async ( - input: TDeletePrivateKeyTagsBody, + input: TDeletePrivateKeyTagsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_private_key_tags"; @@ -2858,7 +2858,7 @@ export class TurnkeyClient { * See also {@link stampDeletePrivateKeys}. */ deletePrivateKeys = async ( - input: TDeletePrivateKeysBody, + input: TDeletePrivateKeysBody ): Promise => { return this.request("/public/v1/submit/delete_private_keys", input); }; @@ -2869,7 +2869,7 @@ export class TurnkeyClient { * See also {@link DeletePrivateKeys}. */ stampDeletePrivateKeys = async ( - input: TDeletePrivateKeysBody, + input: TDeletePrivateKeysBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_private_keys"; @@ -2890,11 +2890,11 @@ export class TurnkeyClient { * See also {@link stampDeleteSmartContractInterface}. */ deleteSmartContractInterface = async ( - input: TDeleteSmartContractInterfaceBody, + input: TDeleteSmartContractInterfaceBody ): Promise => { return this.request( "/public/v1/submit/delete_smart_contract_interface", - input, + input ); }; @@ -2904,7 +2904,7 @@ export class TurnkeyClient { * See also {@link DeleteSmartContractInterface}. */ stampDeleteSmartContractInterface = async ( - input: TDeleteSmartContractInterfaceBody, + input: TDeleteSmartContractInterfaceBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_smart_contract_interface"; @@ -2925,7 +2925,7 @@ export class TurnkeyClient { * See also {@link stampDeleteSubOrganization}. */ deleteSubOrganization = async ( - input: TDeleteSubOrganizationBody, + input: TDeleteSubOrganizationBody ): Promise => { return this.request("/public/v1/submit/delete_sub_organization", input); }; @@ -2936,7 +2936,7 @@ export class TurnkeyClient { * See also {@link DeleteSubOrganization}. */ stampDeleteSubOrganization = async ( - input: TDeleteSubOrganizationBody, + input: TDeleteSubOrganizationBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_sub_organization"; @@ -2957,7 +2957,7 @@ export class TurnkeyClient { * See also {@link stampDeleteUserTags}. */ deleteUserTags = async ( - input: TDeleteUserTagsBody, + input: TDeleteUserTagsBody ): Promise => { return this.request("/public/v1/submit/delete_user_tags", input); }; @@ -2968,7 +2968,7 @@ export class TurnkeyClient { * See also {@link DeleteUserTags}. */ stampDeleteUserTags = async ( - input: TDeleteUserTagsBody, + input: TDeleteUserTagsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_user_tags"; const body = JSON.stringify(input); @@ -2988,7 +2988,7 @@ export class TurnkeyClient { * See also {@link stampDeleteUsers}. */ deleteUsers = async ( - input: TDeleteUsersBody, + input: TDeleteUsersBody ): Promise => { return this.request("/public/v1/submit/delete_users", input); }; @@ -2999,7 +2999,7 @@ export class TurnkeyClient { * See also {@link DeleteUsers}. */ stampDeleteUsers = async ( - input: TDeleteUsersBody, + input: TDeleteUsersBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_users"; const body = JSON.stringify(input); @@ -3019,7 +3019,7 @@ export class TurnkeyClient { * See also {@link stampDeleteWalletAccounts}. */ deleteWalletAccounts = async ( - input: TDeleteWalletAccountsBody, + input: TDeleteWalletAccountsBody ): Promise => { return this.request("/public/v1/submit/delete_wallet_accounts", input); }; @@ -3030,7 +3030,7 @@ export class TurnkeyClient { * See also {@link DeleteWalletAccounts}. */ stampDeleteWalletAccounts = async ( - input: TDeleteWalletAccountsBody, + input: TDeleteWalletAccountsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_wallet_accounts"; @@ -3051,7 +3051,7 @@ export class TurnkeyClient { * See also {@link stampDeleteWallets}. */ deleteWallets = async ( - input: TDeleteWalletsBody, + input: TDeleteWalletsBody ): Promise => { return this.request("/public/v1/submit/delete_wallets", input); }; @@ -3062,7 +3062,7 @@ export class TurnkeyClient { * See also {@link DeleteWallets}. */ stampDeleteWallets = async ( - input: TDeleteWalletsBody, + input: TDeleteWalletsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_wallets"; const body = JSON.stringify(input); @@ -3109,7 +3109,7 @@ export class TurnkeyClient { * See also {@link stampEthSendRawTransaction}. */ ethSendRawTransaction = async ( - input: TEthSendRawTransactionBody, + input: TEthSendRawTransactionBody ): Promise => { return this.request("/public/v1/submit/eth_send_raw_transaction", input); }; @@ -3120,7 +3120,7 @@ export class TurnkeyClient { * See also {@link EthSendRawTransaction}. */ stampEthSendRawTransaction = async ( - input: TEthSendRawTransactionBody, + input: TEthSendRawTransactionBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/eth_send_raw_transaction"; @@ -3141,7 +3141,7 @@ export class TurnkeyClient { * See also {@link stampEthSendTransaction}. */ ethSendTransaction = async ( - input: TEthSendTransactionBody, + input: TEthSendTransactionBody ): Promise => { return this.request("/public/v1/submit/eth_send_transaction", input); }; @@ -3152,7 +3152,7 @@ export class TurnkeyClient { * See also {@link EthSendTransaction}. */ stampEthSendTransaction = async ( - input: TEthSendTransactionBody, + input: TEthSendTransactionBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/eth_send_transaction"; @@ -3173,7 +3173,7 @@ export class TurnkeyClient { * See also {@link stampExportPrivateKey}. */ exportPrivateKey = async ( - input: TExportPrivateKeyBody, + input: TExportPrivateKeyBody ): Promise => { return this.request("/public/v1/submit/export_private_key", input); }; @@ -3184,7 +3184,7 @@ export class TurnkeyClient { * See also {@link ExportPrivateKey}. */ stampExportPrivateKey = async ( - input: TExportPrivateKeyBody, + input: TExportPrivateKeyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/export_private_key"; @@ -3205,7 +3205,7 @@ export class TurnkeyClient { * See also {@link stampExportWallet}. */ exportWallet = async ( - input: TExportWalletBody, + input: TExportWalletBody ): Promise => { return this.request("/public/v1/submit/export_wallet", input); }; @@ -3216,7 +3216,7 @@ export class TurnkeyClient { * See also {@link ExportWallet}. */ stampExportWallet = async ( - input: TExportWalletBody, + input: TExportWalletBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/export_wallet"; const body = JSON.stringify(input); @@ -3236,7 +3236,7 @@ export class TurnkeyClient { * See also {@link stampExportWalletAccount}. */ exportWalletAccount = async ( - input: TExportWalletAccountBody, + input: TExportWalletAccountBody ): Promise => { return this.request("/public/v1/submit/export_wallet_account", input); }; @@ -3247,7 +3247,7 @@ export class TurnkeyClient { * See also {@link ExportWalletAccount}. */ stampExportWalletAccount = async ( - input: TExportWalletAccountBody, + input: TExportWalletAccountBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/export_wallet_account"; @@ -3268,7 +3268,7 @@ export class TurnkeyClient { * See also {@link stampImportPrivateKey}. */ importPrivateKey = async ( - input: TImportPrivateKeyBody, + input: TImportPrivateKeyBody ): Promise => { return this.request("/public/v1/submit/import_private_key", input); }; @@ -3279,7 +3279,7 @@ export class TurnkeyClient { * See also {@link ImportPrivateKey}. */ stampImportPrivateKey = async ( - input: TImportPrivateKeyBody, + input: TImportPrivateKeyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/import_private_key"; @@ -3300,7 +3300,7 @@ export class TurnkeyClient { * See also {@link stampImportWallet}. */ importWallet = async ( - input: TImportWalletBody, + input: TImportWalletBody ): Promise => { return this.request("/public/v1/submit/import_wallet", input); }; @@ -3311,7 +3311,7 @@ export class TurnkeyClient { * See also {@link ImportWallet}. */ stampImportWallet = async ( - input: TImportWalletBody, + input: TImportWalletBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/import_wallet"; const body = JSON.stringify(input); @@ -3331,7 +3331,7 @@ export class TurnkeyClient { * See also {@link stampInitFiatOnRamp}. */ initFiatOnRamp = async ( - input: TInitFiatOnRampBody, + input: TInitFiatOnRampBody ): Promise => { return this.request("/public/v1/submit/init_fiat_on_ramp", input); }; @@ -3342,7 +3342,7 @@ export class TurnkeyClient { * See also {@link InitFiatOnRamp}. */ stampInitFiatOnRamp = async ( - input: TInitFiatOnRampBody, + input: TInitFiatOnRampBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/init_fiat_on_ramp"; const body = JSON.stringify(input); @@ -3362,7 +3362,7 @@ export class TurnkeyClient { * See also {@link stampInitImportPrivateKey}. */ initImportPrivateKey = async ( - input: TInitImportPrivateKeyBody, + input: TInitImportPrivateKeyBody ): Promise => { return this.request("/public/v1/submit/init_import_private_key", input); }; @@ -3373,7 +3373,7 @@ export class TurnkeyClient { * See also {@link InitImportPrivateKey}. */ stampInitImportPrivateKey = async ( - input: TInitImportPrivateKeyBody, + input: TInitImportPrivateKeyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_private_key"; @@ -3394,7 +3394,7 @@ export class TurnkeyClient { * See also {@link stampInitImportWallet}. */ initImportWallet = async ( - input: TInitImportWalletBody, + input: TInitImportWalletBody ): Promise => { return this.request("/public/v1/submit/init_import_wallet", input); }; @@ -3405,7 +3405,7 @@ export class TurnkeyClient { * See also {@link InitImportWallet}. */ stampInitImportWallet = async ( - input: TInitImportWalletBody, + input: TInitImportWalletBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_wallet"; @@ -3453,7 +3453,7 @@ export class TurnkeyClient { * See also {@link stampInitOtpAuth}. */ initOtpAuth = async ( - input: TInitOtpAuthBody, + input: TInitOtpAuthBody ): Promise => { return this.request("/public/v1/submit/init_otp_auth", input); }; @@ -3464,7 +3464,7 @@ export class TurnkeyClient { * See also {@link InitOtpAuth}. */ stampInitOtpAuth = async ( - input: TInitOtpAuthBody, + input: TInitOtpAuthBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/init_otp_auth"; const body = JSON.stringify(input); @@ -3484,7 +3484,7 @@ export class TurnkeyClient { * See also {@link stampInitUserEmailRecovery}. */ initUserEmailRecovery = async ( - input: TInitUserEmailRecoveryBody, + input: TInitUserEmailRecoveryBody ): Promise => { return this.request("/public/v1/submit/init_user_email_recovery", input); }; @@ -3495,7 +3495,7 @@ export class TurnkeyClient { * See also {@link InitUserEmailRecovery}. */ stampInitUserEmailRecovery = async ( - input: TInitUserEmailRecoveryBody, + input: TInitUserEmailRecoveryBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/init_user_email_recovery"; @@ -3543,7 +3543,7 @@ export class TurnkeyClient { * See also {@link stampOauth2Authenticate}. */ oauth2Authenticate = async ( - input: TOauth2AuthenticateBody, + input: TOauth2AuthenticateBody ): Promise => { return this.request("/public/v1/submit/oauth2_authenticate", input); }; @@ -3554,7 +3554,7 @@ export class TurnkeyClient { * See also {@link Oauth2Authenticate}. */ stampOauth2Authenticate = async ( - input: TOauth2AuthenticateBody, + input: TOauth2AuthenticateBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/oauth2_authenticate"; @@ -3656,7 +3656,7 @@ export class TurnkeyClient { * See also {@link stampRecoverUser}. */ recoverUser = async ( - input: TRecoverUserBody, + input: TRecoverUserBody ): Promise => { return this.request("/public/v1/submit/recover_user", input); }; @@ -3667,7 +3667,7 @@ export class TurnkeyClient { * See also {@link RecoverUser}. */ stampRecoverUser = async ( - input: TRecoverUserBody, + input: TRecoverUserBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/recover_user"; const body = JSON.stringify(input); @@ -3687,7 +3687,7 @@ export class TurnkeyClient { * See also {@link stampRejectActivity}. */ rejectActivity = async ( - input: TRejectActivityBody, + input: TRejectActivityBody ): Promise => { return this.request("/public/v1/submit/reject_activity", input); }; @@ -3698,7 +3698,7 @@ export class TurnkeyClient { * See also {@link RejectActivity}. */ stampRejectActivity = async ( - input: TRejectActivityBody, + input: TRejectActivityBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/reject_activity"; const body = JSON.stringify(input); @@ -3718,7 +3718,7 @@ export class TurnkeyClient { * See also {@link stampRemoveOrganizationFeature}. */ removeOrganizationFeature = async ( - input: TRemoveOrganizationFeatureBody, + input: TRemoveOrganizationFeatureBody ): Promise => { return this.request("/public/v1/submit/remove_organization_feature", input); }; @@ -3729,7 +3729,7 @@ export class TurnkeyClient { * See also {@link RemoveOrganizationFeature}. */ stampRemoveOrganizationFeature = async ( - input: TRemoveOrganizationFeatureBody, + input: TRemoveOrganizationFeatureBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/remove_organization_feature"; @@ -3750,7 +3750,7 @@ export class TurnkeyClient { * See also {@link stampSetOrganizationFeature}. */ setOrganizationFeature = async ( - input: TSetOrganizationFeatureBody, + input: TSetOrganizationFeatureBody ): Promise => { return this.request("/public/v1/submit/set_organization_feature", input); }; @@ -3761,7 +3761,7 @@ export class TurnkeyClient { * See also {@link SetOrganizationFeature}. */ stampSetOrganizationFeature = async ( - input: TSetOrganizationFeatureBody, + input: TSetOrganizationFeatureBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/set_organization_feature"; @@ -3782,7 +3782,7 @@ export class TurnkeyClient { * See also {@link stampSignRawPayload}. */ signRawPayload = async ( - input: TSignRawPayloadBody, + input: TSignRawPayloadBody ): Promise => { return this.request("/public/v1/submit/sign_raw_payload", input); }; @@ -3793,7 +3793,7 @@ export class TurnkeyClient { * See also {@link SignRawPayload}. */ stampSignRawPayload = async ( - input: TSignRawPayloadBody, + input: TSignRawPayloadBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payload"; const body = JSON.stringify(input); @@ -3813,7 +3813,7 @@ export class TurnkeyClient { * See also {@link stampSignRawPayloads}. */ signRawPayloads = async ( - input: TSignRawPayloadsBody, + input: TSignRawPayloadsBody ): Promise => { return this.request("/public/v1/submit/sign_raw_payloads", input); }; @@ -3824,7 +3824,7 @@ export class TurnkeyClient { * See also {@link SignRawPayloads}. */ stampSignRawPayloads = async ( - input: TSignRawPayloadsBody, + input: TSignRawPayloadsBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payloads"; const body = JSON.stringify(input); @@ -3844,7 +3844,7 @@ export class TurnkeyClient { * See also {@link stampSignTransaction}. */ signTransaction = async ( - input: TSignTransactionBody, + input: TSignTransactionBody ): Promise => { return this.request("/public/v1/submit/sign_transaction", input); }; @@ -3855,7 +3855,7 @@ export class TurnkeyClient { * See also {@link SignTransaction}. */ stampSignTransaction = async ( - input: TSignTransactionBody, + input: TSignTransactionBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_transaction"; const body = JSON.stringify(input); @@ -3934,11 +3934,11 @@ export class TurnkeyClient { * See also {@link stampUpdateFiatOnRampCredential}. */ updateFiatOnRampCredential = async ( - input: TUpdateFiatOnRampCredentialBody, + input: TUpdateFiatOnRampCredentialBody ): Promise => { return this.request( "/public/v1/submit/update_fiat_on_ramp_credential", - input, + input ); }; @@ -3948,7 +3948,7 @@ export class TurnkeyClient { * See also {@link UpdateFiatOnRampCredential}. */ stampUpdateFiatOnRampCredential = async ( - input: TUpdateFiatOnRampCredentialBody, + input: TUpdateFiatOnRampCredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_fiat_on_ramp_credential"; @@ -3969,7 +3969,7 @@ export class TurnkeyClient { * See also {@link stampUpdateOauth2Credential}. */ updateOauth2Credential = async ( - input: TUpdateOauth2CredentialBody, + input: TUpdateOauth2CredentialBody ): Promise => { return this.request("/public/v1/submit/update_oauth2_credential", input); }; @@ -3980,7 +3980,7 @@ export class TurnkeyClient { * See also {@link UpdateOauth2Credential}. */ stampUpdateOauth2Credential = async ( - input: TUpdateOauth2CredentialBody, + input: TUpdateOauth2CredentialBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_oauth2_credential"; @@ -4001,7 +4001,7 @@ export class TurnkeyClient { * See also {@link stampUpdatePolicy}. */ updatePolicy = async ( - input: TUpdatePolicyBody, + input: TUpdatePolicyBody ): Promise => { return this.request("/public/v1/submit/update_policy", input); }; @@ -4012,7 +4012,7 @@ export class TurnkeyClient { * See also {@link UpdatePolicy}. */ stampUpdatePolicy = async ( - input: TUpdatePolicyBody, + input: TUpdatePolicyBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_policy"; const body = JSON.stringify(input); @@ -4032,7 +4032,7 @@ export class TurnkeyClient { * See also {@link stampUpdatePrivateKeyTag}. */ updatePrivateKeyTag = async ( - input: TUpdatePrivateKeyTagBody, + input: TUpdatePrivateKeyTagBody ): Promise => { return this.request("/public/v1/submit/update_private_key_tag", input); }; @@ -4043,7 +4043,7 @@ export class TurnkeyClient { * See also {@link UpdatePrivateKeyTag}. */ stampUpdatePrivateKeyTag = async ( - input: TUpdatePrivateKeyTagBody, + input: TUpdatePrivateKeyTagBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_private_key_tag"; @@ -4064,7 +4064,7 @@ export class TurnkeyClient { * See also {@link stampUpdateRootQuorum}. */ updateRootQuorum = async ( - input: TUpdateRootQuorumBody, + input: TUpdateRootQuorumBody ): Promise => { return this.request("/public/v1/submit/update_root_quorum", input); }; @@ -4075,7 +4075,7 @@ export class TurnkeyClient { * See also {@link UpdateRootQuorum}. */ stampUpdateRootQuorum = async ( - input: TUpdateRootQuorumBody, + input: TUpdateRootQuorumBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_root_quorum"; @@ -4123,7 +4123,7 @@ export class TurnkeyClient { * See also {@link stampUpdateUserEmail}. */ updateUserEmail = async ( - input: TUpdateUserEmailBody, + input: TUpdateUserEmailBody ): Promise => { return this.request("/public/v1/submit/update_user_email", input); }; @@ -4134,7 +4134,7 @@ export class TurnkeyClient { * See also {@link UpdateUserEmail}. */ stampUpdateUserEmail = async ( - input: TUpdateUserEmailBody, + input: TUpdateUserEmailBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_email"; const body = JSON.stringify(input); @@ -4154,7 +4154,7 @@ export class TurnkeyClient { * See also {@link stampUpdateUserName}. */ updateUserName = async ( - input: TUpdateUserNameBody, + input: TUpdateUserNameBody ): Promise => { return this.request("/public/v1/submit/update_user_name", input); }; @@ -4165,7 +4165,7 @@ export class TurnkeyClient { * See also {@link UpdateUserName}. */ stampUpdateUserName = async ( - input: TUpdateUserNameBody, + input: TUpdateUserNameBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_name"; const body = JSON.stringify(input); @@ -4185,7 +4185,7 @@ export class TurnkeyClient { * See also {@link stampUpdateUserPhoneNumber}. */ updateUserPhoneNumber = async ( - input: TUpdateUserPhoneNumberBody, + input: TUpdateUserPhoneNumberBody ): Promise => { return this.request("/public/v1/submit/update_user_phone_number", input); }; @@ -4196,7 +4196,7 @@ export class TurnkeyClient { * See also {@link UpdateUserPhoneNumber}. */ stampUpdateUserPhoneNumber = async ( - input: TUpdateUserPhoneNumberBody, + input: TUpdateUserPhoneNumberBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_phone_number"; @@ -4217,7 +4217,7 @@ export class TurnkeyClient { * See also {@link stampUpdateUserTag}. */ updateUserTag = async ( - input: TUpdateUserTagBody, + input: TUpdateUserTagBody ): Promise => { return this.request("/public/v1/submit/update_user_tag", input); }; @@ -4228,7 +4228,7 @@ export class TurnkeyClient { * See also {@link UpdateUserTag}. */ stampUpdateUserTag = async ( - input: TUpdateUserTagBody, + input: TUpdateUserTagBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_tag"; const body = JSON.stringify(input); @@ -4248,7 +4248,7 @@ export class TurnkeyClient { * See also {@link stampUpdateWallet}. */ updateWallet = async ( - input: TUpdateWalletBody, + input: TUpdateWalletBody ): Promise => { return this.request("/public/v1/submit/update_wallet", input); }; @@ -4259,7 +4259,7 @@ export class TurnkeyClient { * See also {@link UpdateWallet}. */ stampUpdateWallet = async ( - input: TUpdateWalletBody, + input: TUpdateWalletBody ): Promise => { const fullUrl = this.config.baseUrl + "/public/v1/submit/update_wallet"; const body = JSON.stringify(input); @@ -4337,7 +4337,7 @@ export class TurnkeyClient { * See also {@link stampTestRateLimits}. */ testRateLimits = async ( - input: TTestRateLimitsBody, + input: TTestRateLimitsBody ): Promise => { return this.request("/tkhq/api/v1/test_rate_limits", input); }; @@ -4348,7 +4348,7 @@ export class TurnkeyClient { * See also {@link TestRateLimits}. */ stampTestRateLimits = async ( - input: TTestRateLimitsBody, + input: TTestRateLimitsBody ): Promise => { const fullUrl = this.config.baseUrl + "/tkhq/api/v1/test_rate_limits"; const body = JSON.stringify(input); diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts index 216e337c2..ea8d5cca2 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts @@ -45,7 +45,7 @@ export const getActivity = (input: TGetActivityInput) => */ export const signGetActivity = ( input: TGetActivityInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_activity", @@ -91,7 +91,7 @@ export const getApiKey = (input: TGetApiKeyInput) => */ export const signGetApiKey = ( input: TGetApiKeyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_api_key", @@ -137,7 +137,7 @@ export const getApiKeys = (input: TGetApiKeysInput) => */ export const signGetApiKeys = ( input: TGetApiKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_api_keys", @@ -189,7 +189,7 @@ export const getAuthenticator = (input: TGetAuthenticatorInput) => */ export const signGetAuthenticator = ( input: TGetAuthenticatorInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_authenticator", @@ -241,7 +241,7 @@ export const getAuthenticators = (input: TGetAuthenticatorsInput) => */ export const signGetAuthenticators = ( input: TGetAuthenticatorsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_authenticators", @@ -287,7 +287,7 @@ export const getBootProof = (input: TGetBootProofInput) => */ export const signGetBootProof = ( input: TGetBootProofInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_boot_proof", @@ -333,7 +333,7 @@ export const getGasUsage = (input: TGetGasUsageInput) => */ export const signGetGasUsage = ( input: TGetGasUsageInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_gas_usage", @@ -385,7 +385,7 @@ export const getLatestBootProof = (input: TGetLatestBootProofInput) => */ export const signGetLatestBootProof = ( input: TGetLatestBootProofInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_latest_boot_proof", @@ -431,7 +431,7 @@ export const getNonces = (input: TGetNoncesInput) => */ export const signGetNonces = ( input: TGetNoncesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_nonces", @@ -483,7 +483,7 @@ export const getOauth2Credential = (input: TGetOauth2CredentialInput) => */ export const signGetOauth2Credential = ( input: TGetOauth2CredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_oauth2_credential", @@ -535,7 +535,7 @@ export const getOauthProviders = (input: TGetOauthProvidersInput) => */ export const signGetOauthProviders = ( input: TGetOauthProvidersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_oauth_providers", @@ -570,7 +570,7 @@ export type TGetOnRampTransactionStatusBody = * `POST /public/v1/query/get_onramp_transaction_status` */ export const getOnRampTransactionStatus = ( - input: TGetOnRampTransactionStatusInput, + input: TGetOnRampTransactionStatusInput ) => request< TGetOnRampTransactionStatusResponse, @@ -591,7 +591,7 @@ export const getOnRampTransactionStatus = ( */ export const signGetOnRampTransactionStatus = ( input: TGetOnRampTransactionStatusInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_onramp_transaction_status", @@ -637,7 +637,7 @@ export const getOrganization = (input: TGetOrganizationInput) => */ export const signGetOrganization = ( input: TGetOrganizationInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_organization", @@ -691,7 +691,7 @@ export const getOrganizationConfigs = (input: TGetOrganizationConfigsInput) => */ export const signGetOrganizationConfigs = ( input: TGetOrganizationConfigsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_organization_configs", @@ -737,7 +737,7 @@ export const getPolicy = (input: TGetPolicyInput) => */ export const signGetPolicy = ( input: TGetPolicyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_policy", @@ -789,7 +789,7 @@ export const getPolicyEvaluations = (input: TGetPolicyEvaluationsInput) => */ export const signGetPolicyEvaluations = ( input: TGetPolicyEvaluationsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_policy_evaluations", @@ -835,7 +835,7 @@ export const getPrivateKey = (input: TGetPrivateKeyInput) => */ export const signGetPrivateKey = ( input: TGetPrivateKeyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_private_key", @@ -870,7 +870,7 @@ export type TGetSendTransactionStatusBody = * `POST /public/v1/query/get_send_transaction_status` */ export const getSendTransactionStatus = ( - input: TGetSendTransactionStatusInput, + input: TGetSendTransactionStatusInput ) => request< TGetSendTransactionStatusResponse, @@ -891,7 +891,7 @@ export const getSendTransactionStatus = ( */ export const signGetSendTransactionStatus = ( input: TGetSendTransactionStatusInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_send_transaction_status", @@ -926,7 +926,7 @@ export type TGetSmartContractInterfaceBody = * `POST /public/v1/query/get_smart_contract_interface` */ export const getSmartContractInterface = ( - input: TGetSmartContractInterfaceInput, + input: TGetSmartContractInterfaceInput ) => request< TGetSmartContractInterfaceResponse, @@ -947,7 +947,7 @@ export const getSmartContractInterface = ( */ export const signGetSmartContractInterface = ( input: TGetSmartContractInterfaceInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_smart_contract_interface", @@ -1091,7 +1091,7 @@ export const getUser = (input: TGetUserInput) => */ export const signGetUser = ( input: TGetUserInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_user", @@ -1137,7 +1137,7 @@ export const getWallet = (input: TGetWalletInput) => */ export const signGetWallet = ( input: TGetWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_wallet", @@ -1189,7 +1189,7 @@ export const getWalletAccount = (input: TGetWalletAccountInput) => */ export const signGetWalletAccount = ( input: TGetWalletAccountInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/get_wallet_account", @@ -1291,7 +1291,7 @@ export const getActivities = (input: TGetActivitiesInput) => */ export const signGetActivities = ( input: TGetActivitiesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_activities", @@ -1337,7 +1337,7 @@ export const getAppProofs = (input: TGetAppProofsInput) => */ export const signGetAppProofs = ( input: TGetAppProofsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_app_proofs", @@ -1372,7 +1372,7 @@ export type TListFiatOnRampCredentialsBody = * `POST /public/v1/query/list_fiat_on_ramp_credentials` */ export const listFiatOnRampCredentials = ( - input: TListFiatOnRampCredentialsInput, + input: TListFiatOnRampCredentialsInput ) => request< TListFiatOnRampCredentialsResponse, @@ -1393,7 +1393,7 @@ export const listFiatOnRampCredentials = ( */ export const signListFiatOnRampCredentials = ( input: TListFiatOnRampCredentialsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_fiat_on_ramp_credentials", @@ -1445,7 +1445,7 @@ export const listOauth2Credentials = (input: TListOauth2CredentialsInput) => */ export const signListOauth2Credentials = ( input: TListOauth2CredentialsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_oauth2_credentials", @@ -1491,7 +1491,7 @@ export const getPolicies = (input: TGetPoliciesInput) => */ export const signGetPolicies = ( input: TGetPoliciesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_policies", @@ -1543,7 +1543,7 @@ export const listPrivateKeyTags = (input: TListPrivateKeyTagsInput) => */ export const signListPrivateKeyTags = ( input: TListPrivateKeyTagsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_private_key_tags", @@ -1589,7 +1589,7 @@ export const getPrivateKeys = (input: TGetPrivateKeysInput) => */ export const signGetPrivateKeys = ( input: TGetPrivateKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_private_keys", @@ -1624,7 +1624,7 @@ export type TGetSmartContractInterfacesBody = * `POST /public/v1/query/list_smart_contract_interfaces` */ export const getSmartContractInterfaces = ( - input: TGetSmartContractInterfacesInput, + input: TGetSmartContractInterfacesInput ) => request< TGetSmartContractInterfacesResponse, @@ -1645,7 +1645,7 @@ export const getSmartContractInterfaces = ( */ export const signGetSmartContractInterfaces = ( input: TGetSmartContractInterfacesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_smart_contract_interfaces", @@ -1691,7 +1691,7 @@ export const getSubOrgIds = (input: TGetSubOrgIdsInput) => */ export const signGetSubOrgIds = ( input: TGetSubOrgIdsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_suborgs", @@ -1887,7 +1887,7 @@ export const listUserTags = (input: TListUserTagsInput) => */ export const signListUserTags = ( input: TListUserTagsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_user_tags", @@ -1933,7 +1933,7 @@ export const getUsers = (input: TGetUsersInput) => */ export const signGetUsers = ( input: TGetUsersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_users", @@ -1985,7 +1985,7 @@ export const getVerifiedSubOrgIds = (input: TGetVerifiedSubOrgIdsInput) => */ export const signGetVerifiedSubOrgIds = ( input: TGetVerifiedSubOrgIdsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_verified_suborgs", @@ -2037,7 +2037,7 @@ export const getWalletAccounts = (input: TGetWalletAccountsInput) => */ export const signGetWalletAccounts = ( input: TGetWalletAccountsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_wallet_accounts", @@ -2083,7 +2083,7 @@ export const getWallets = (input: TGetWalletsInput) => */ export const signGetWallets = ( input: TGetWalletsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/list_wallets", @@ -2129,7 +2129,7 @@ export const getWhoami = (input: TGetWhoamiInput) => */ export const signGetWhoami = ( input: TGetWhoamiInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/query/whoami", @@ -2175,7 +2175,7 @@ export const approveActivity = (input: TApproveActivityInput) => */ export const signApproveActivity = ( input: TApproveActivityInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/approve_activity", @@ -2221,7 +2221,7 @@ export const createApiKeys = (input: TCreateApiKeysInput) => */ export const signCreateApiKeys = ( input: TCreateApiKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_api_keys", @@ -2273,7 +2273,7 @@ export const createApiOnlyUsers = (input: TCreateApiOnlyUsersInput) => */ export const signCreateApiOnlyUsers = ( input: TCreateApiOnlyUsersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_api_only_users", @@ -2325,7 +2325,7 @@ export const createAuthenticators = (input: TCreateAuthenticatorsInput) => */ export const signCreateAuthenticators = ( input: TCreateAuthenticatorsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_authenticators", @@ -2360,7 +2360,7 @@ export type TCreateFiatOnRampCredentialBody = * `POST /public/v1/submit/create_fiat_on_ramp_credential` */ export const createFiatOnRampCredential = ( - input: TCreateFiatOnRampCredentialInput, + input: TCreateFiatOnRampCredentialInput ) => request< TCreateFiatOnRampCredentialResponse, @@ -2381,7 +2381,7 @@ export const createFiatOnRampCredential = ( */ export const signCreateFiatOnRampCredential = ( input: TCreateFiatOnRampCredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_fiat_on_ramp_credential", @@ -2433,7 +2433,7 @@ export const createInvitations = (input: TCreateInvitationsInput) => */ export const signCreateInvitations = ( input: TCreateInvitationsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_invitations", @@ -2487,7 +2487,7 @@ export const createOauth2Credential = (input: TCreateOauth2CredentialInput) => */ export const signCreateOauth2Credential = ( input: TCreateOauth2CredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_oauth2_credential", @@ -2539,7 +2539,7 @@ export const createOauthProviders = (input: TCreateOauthProvidersInput) => */ export const signCreateOauthProviders = ( input: TCreateOauthProvidersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_oauth_providers", @@ -2585,7 +2585,7 @@ export const createPolicies = (input: TCreatePoliciesInput) => */ export const signCreatePolicies = ( input: TCreatePoliciesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_policies", @@ -2631,7 +2631,7 @@ export const createPolicy = (input: TCreatePolicyInput) => */ export const signCreatePolicy = ( input: TCreatePolicyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_policy", @@ -2683,7 +2683,7 @@ export const createPrivateKeyTag = (input: TCreatePrivateKeyTagInput) => */ export const signCreatePrivateKeyTag = ( input: TCreatePrivateKeyTagInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_private_key_tag", @@ -2735,7 +2735,7 @@ export const createPrivateKeys = (input: TCreatePrivateKeysInput) => */ export const signCreatePrivateKeys = ( input: TCreatePrivateKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_private_keys", @@ -2787,7 +2787,7 @@ export const createReadOnlySession = (input: TCreateReadOnlySessionInput) => */ export const signCreateReadOnlySession = ( input: TCreateReadOnlySessionInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_read_only_session", @@ -2841,7 +2841,7 @@ export const createReadWriteSession = (input: TCreateReadWriteSessionInput) => */ export const signCreateReadWriteSession = ( input: TCreateReadWriteSessionInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_read_write_session", @@ -2876,7 +2876,7 @@ export type TCreateSmartContractInterfaceBody = * `POST /public/v1/submit/create_smart_contract_interface` */ export const createSmartContractInterface = ( - input: TCreateSmartContractInterfaceInput, + input: TCreateSmartContractInterfaceInput ) => request< TCreateSmartContractInterfaceResponse, @@ -2897,7 +2897,7 @@ export const createSmartContractInterface = ( */ export const signCreateSmartContractInterface = ( input: TCreateSmartContractInterfaceInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_smart_contract_interface", @@ -2949,7 +2949,7 @@ export const createSubOrganization = (input: TCreateSubOrganizationInput) => */ export const signCreateSubOrganization = ( input: TCreateSubOrganizationInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_sub_organization", @@ -3149,7 +3149,7 @@ export const createUserTag = (input: TCreateUserTagInput) => */ export const signCreateUserTag = ( input: TCreateUserTagInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_user_tag", @@ -3195,7 +3195,7 @@ export const createUsers = (input: TCreateUsersInput) => */ export const signCreateUsers = ( input: TCreateUsersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_users", @@ -3241,7 +3241,7 @@ export const createWallet = (input: TCreateWalletInput) => */ export const signCreateWallet = ( input: TCreateWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_wallet", @@ -3293,7 +3293,7 @@ export const createWalletAccounts = (input: TCreateWalletAccountsInput) => */ export const signCreateWalletAccounts = ( input: TCreateWalletAccountsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/create_wallet_accounts", @@ -3339,7 +3339,7 @@ export const deleteApiKeys = (input: TDeleteApiKeysInput) => */ export const signDeleteApiKeys = ( input: TDeleteApiKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_api_keys", @@ -3391,7 +3391,7 @@ export const deleteAuthenticators = (input: TDeleteAuthenticatorsInput) => */ export const signDeleteAuthenticators = ( input: TDeleteAuthenticatorsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_authenticators", @@ -3426,7 +3426,7 @@ export type TDeleteFiatOnRampCredentialBody = * `POST /public/v1/submit/delete_fiat_on_ramp_credential` */ export const deleteFiatOnRampCredential = ( - input: TDeleteFiatOnRampCredentialInput, + input: TDeleteFiatOnRampCredentialInput ) => request< TDeleteFiatOnRampCredentialResponse, @@ -3447,7 +3447,7 @@ export const deleteFiatOnRampCredential = ( */ export const signDeleteFiatOnRampCredential = ( input: TDeleteFiatOnRampCredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_fiat_on_ramp_credential", @@ -3499,7 +3499,7 @@ export const deleteInvitation = (input: TDeleteInvitationInput) => */ export const signDeleteInvitation = ( input: TDeleteInvitationInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_invitation", @@ -3553,7 +3553,7 @@ export const deleteOauth2Credential = (input: TDeleteOauth2CredentialInput) => */ export const signDeleteOauth2Credential = ( input: TDeleteOauth2CredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_oauth2_credential", @@ -3605,7 +3605,7 @@ export const deleteOauthProviders = (input: TDeleteOauthProvidersInput) => */ export const signDeleteOauthProviders = ( input: TDeleteOauthProvidersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_oauth_providers", @@ -3651,7 +3651,7 @@ export const deletePolicies = (input: TDeletePoliciesInput) => */ export const signDeletePolicies = ( input: TDeletePoliciesInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_policies", @@ -3697,7 +3697,7 @@ export const deletePolicy = (input: TDeletePolicyInput) => */ export const signDeletePolicy = ( input: TDeletePolicyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_policy", @@ -3749,7 +3749,7 @@ export const deletePrivateKeyTags = (input: TDeletePrivateKeyTagsInput) => */ export const signDeletePrivateKeyTags = ( input: TDeletePrivateKeyTagsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_private_key_tags", @@ -3801,7 +3801,7 @@ export const deletePrivateKeys = (input: TDeletePrivateKeysInput) => */ export const signDeletePrivateKeys = ( input: TDeletePrivateKeysInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_private_keys", @@ -3836,7 +3836,7 @@ export type TDeleteSmartContractInterfaceBody = * `POST /public/v1/submit/delete_smart_contract_interface` */ export const deleteSmartContractInterface = ( - input: TDeleteSmartContractInterfaceInput, + input: TDeleteSmartContractInterfaceInput ) => request< TDeleteSmartContractInterfaceResponse, @@ -3857,7 +3857,7 @@ export const deleteSmartContractInterface = ( */ export const signDeleteSmartContractInterface = ( input: TDeleteSmartContractInterfaceInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_smart_contract_interface", @@ -3909,7 +3909,7 @@ export const deleteSubOrganization = (input: TDeleteSubOrganizationInput) => */ export const signDeleteSubOrganization = ( input: TDeleteSubOrganizationInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_sub_organization", @@ -3955,7 +3955,7 @@ export const deleteUserTags = (input: TDeleteUserTagsInput) => */ export const signDeleteUserTags = ( input: TDeleteUserTagsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_user_tags", @@ -4001,7 +4001,7 @@ export const deleteUsers = (input: TDeleteUsersInput) => */ export const signDeleteUsers = ( input: TDeleteUsersInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_users", @@ -4053,7 +4053,7 @@ export const deleteWalletAccounts = (input: TDeleteWalletAccountsInput) => */ export const signDeleteWalletAccounts = ( input: TDeleteWalletAccountsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_wallet_accounts", @@ -4099,7 +4099,7 @@ export const deleteWallets = (input: TDeleteWalletsInput) => */ export const signDeleteWallets = ( input: TDeleteWalletsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/delete_wallets", @@ -4145,7 +4145,7 @@ export const emailAuth = (input: TEmailAuthInput) => */ export const signEmailAuth = ( input: TEmailAuthInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/email_auth", @@ -4197,7 +4197,7 @@ export const ethSendRawTransaction = (input: TEthSendRawTransactionInput) => */ export const signEthSendRawTransaction = ( input: TEthSendRawTransactionInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/eth_send_raw_transaction", @@ -4249,7 +4249,7 @@ export const ethSendTransaction = (input: TEthSendTransactionInput) => */ export const signEthSendTransaction = ( input: TEthSendTransactionInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/eth_send_transaction", @@ -4301,7 +4301,7 @@ export const exportPrivateKey = (input: TExportPrivateKeyInput) => */ export const signExportPrivateKey = ( input: TExportPrivateKeyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/export_private_key", @@ -4347,7 +4347,7 @@ export const exportWallet = (input: TExportWalletInput) => */ export const signExportWallet = ( input: TExportWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/export_wallet", @@ -4399,7 +4399,7 @@ export const exportWalletAccount = (input: TExportWalletAccountInput) => */ export const signExportWalletAccount = ( input: TExportWalletAccountInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/export_wallet_account", @@ -4451,7 +4451,7 @@ export const importPrivateKey = (input: TImportPrivateKeyInput) => */ export const signImportPrivateKey = ( input: TImportPrivateKeyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/import_private_key", @@ -4497,7 +4497,7 @@ export const importWallet = (input: TImportWalletInput) => */ export const signImportWallet = ( input: TImportWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/import_wallet", @@ -4543,7 +4543,7 @@ export const initFiatOnRamp = (input: TInitFiatOnRampInput) => */ export const signInitFiatOnRamp = ( input: TInitFiatOnRampInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_fiat_on_ramp", @@ -4595,7 +4595,7 @@ export const initImportPrivateKey = (input: TInitImportPrivateKeyInput) => */ export const signInitImportPrivateKey = ( input: TInitImportPrivateKeyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_import_private_key", @@ -4647,7 +4647,7 @@ export const initImportWallet = (input: TInitImportWalletInput) => */ export const signInitImportWallet = ( input: TInitImportWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_import_wallet", @@ -4693,7 +4693,7 @@ export const initOtp = (input: TInitOtpInput) => */ export const signInitOtp = ( input: TInitOtpInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_otp", @@ -4739,7 +4739,7 @@ export const initOtpAuth = (input: TInitOtpAuthInput) => */ export const signInitOtpAuth = ( input: TInitOtpAuthInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_otp_auth", @@ -4791,7 +4791,7 @@ export const initUserEmailRecovery = (input: TInitUserEmailRecoveryInput) => */ export const signInitUserEmailRecovery = ( input: TInitUserEmailRecoveryInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/init_user_email_recovery", @@ -4837,7 +4837,7 @@ export const oauth = (input: TOauthInput) => */ export const signOauth = ( input: TOauthInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/oauth", @@ -4889,7 +4889,7 @@ export const oauth2Authenticate = (input: TOauth2AuthenticateInput) => */ export const signOauth2Authenticate = ( input: TOauth2AuthenticateInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/oauth2_authenticate", @@ -4935,7 +4935,7 @@ export const oauthLogin = (input: TOauthLoginInput) => */ export const signOauthLogin = ( input: TOauthLoginInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/oauth_login", @@ -4981,7 +4981,7 @@ export const otpAuth = (input: TOtpAuthInput) => */ export const signOtpAuth = ( input: TOtpAuthInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/otp_auth", @@ -5027,7 +5027,7 @@ export const otpLogin = (input: TOtpLoginInput) => */ export const signOtpLogin = ( input: TOtpLoginInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/otp_login", @@ -5073,7 +5073,7 @@ export const recoverUser = (input: TRecoverUserInput) => */ export const signRecoverUser = ( input: TRecoverUserInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/recover_user", @@ -5119,7 +5119,7 @@ export const rejectActivity = (input: TRejectActivityInput) => */ export const signRejectActivity = ( input: TRejectActivityInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/reject_activity", @@ -5154,7 +5154,7 @@ export type TRemoveOrganizationFeatureBody = * `POST /public/v1/submit/remove_organization_feature` */ export const removeOrganizationFeature = ( - input: TRemoveOrganizationFeatureInput, + input: TRemoveOrganizationFeatureInput ) => request< TRemoveOrganizationFeatureResponse, @@ -5175,7 +5175,7 @@ export const removeOrganizationFeature = ( */ export const signRemoveOrganizationFeature = ( input: TRemoveOrganizationFeatureInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/remove_organization_feature", @@ -5229,7 +5229,7 @@ export const setOrganizationFeature = (input: TSetOrganizationFeatureInput) => */ export const signSetOrganizationFeature = ( input: TSetOrganizationFeatureInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/set_organization_feature", @@ -5275,7 +5275,7 @@ export const signRawPayload = (input: TSignRawPayloadInput) => */ export const signSignRawPayload = ( input: TSignRawPayloadInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/sign_raw_payload", @@ -5321,7 +5321,7 @@ export const signRawPayloads = (input: TSignRawPayloadsInput) => */ export const signSignRawPayloads = ( input: TSignRawPayloadsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/sign_raw_payloads", @@ -5367,7 +5367,7 @@ export const signTransaction = (input: TSignTransactionInput) => */ export const signSignTransaction = ( input: TSignTransactionInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/sign_transaction", @@ -5465,7 +5465,7 @@ export const stampLogin = (input: TStampLoginInput) => */ export const signStampLogin = ( input: TStampLoginInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/stamp_login", @@ -5500,7 +5500,7 @@ export type TUpdateFiatOnRampCredentialBody = * `POST /public/v1/submit/update_fiat_on_ramp_credential` */ export const updateFiatOnRampCredential = ( - input: TUpdateFiatOnRampCredentialInput, + input: TUpdateFiatOnRampCredentialInput ) => request< TUpdateFiatOnRampCredentialResponse, @@ -5521,7 +5521,7 @@ export const updateFiatOnRampCredential = ( */ export const signUpdateFiatOnRampCredential = ( input: TUpdateFiatOnRampCredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_fiat_on_ramp_credential", @@ -5575,7 +5575,7 @@ export const updateOauth2Credential = (input: TUpdateOauth2CredentialInput) => */ export const signUpdateOauth2Credential = ( input: TUpdateOauth2CredentialInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_oauth2_credential", @@ -5621,7 +5621,7 @@ export const updatePolicy = (input: TUpdatePolicyInput) => */ export const signUpdatePolicy = ( input: TUpdatePolicyInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_policy", @@ -5673,7 +5673,7 @@ export const updatePrivateKeyTag = (input: TUpdatePrivateKeyTagInput) => */ export const signUpdatePrivateKeyTag = ( input: TUpdatePrivateKeyTagInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_private_key_tag", @@ -5725,7 +5725,7 @@ export const updateRootQuorum = (input: TUpdateRootQuorumInput) => */ export const signUpdateRootQuorum = ( input: TUpdateRootQuorumInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_root_quorum", @@ -5771,7 +5771,7 @@ export const updateUser = (input: TUpdateUserInput) => */ export const signUpdateUser = ( input: TUpdateUserInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_user", @@ -5817,7 +5817,7 @@ export const updateUserEmail = (input: TUpdateUserEmailInput) => */ export const signUpdateUserEmail = ( input: TUpdateUserEmailInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_user_email", @@ -5863,7 +5863,7 @@ export const updateUserName = (input: TUpdateUserNameInput) => */ export const signUpdateUserName = ( input: TUpdateUserNameInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_user_name", @@ -5915,7 +5915,7 @@ export const updateUserPhoneNumber = (input: TUpdateUserPhoneNumberInput) => */ export const signUpdateUserPhoneNumber = ( input: TUpdateUserPhoneNumberInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_user_phone_number", @@ -5961,7 +5961,7 @@ export const updateUserTag = (input: TUpdateUserTagInput) => */ export const signUpdateUserTag = ( input: TUpdateUserTagInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_user_tag", @@ -6007,7 +6007,7 @@ export const updateWallet = (input: TUpdateWalletInput) => */ export const signUpdateWallet = ( input: TUpdateWalletInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/update_wallet", @@ -6053,7 +6053,7 @@ export const verifyOtp = (input: TVerifyOtpInput) => */ export const signVerifyOtp = ( input: TVerifyOtpInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/public/v1/submit/verify_otp", @@ -6176,7 +6176,7 @@ export const testRateLimits = (input: TTestRateLimitsInput) => */ export const signTestRateLimits = ( input: TTestRateLimitsInput, - options?: TurnkeyCredentialRequestOptions, + options?: TurnkeyCredentialRequestOptions ) => signedRequest({ uri: "/tkhq/api/v1/test_rate_limits", diff --git a/packages/sdk-browser/src/__inputs__/public_api.swagger.json b/packages/sdk-browser/src/__inputs__/public_api.swagger.json index 14047a28d..185eab608 100644 --- a/packages/sdk-browser/src/__inputs__/public_api.swagger.json +++ b/packages/sdk-browser/src/__inputs__/public_api.swagger.json @@ -644,6 +644,70 @@ "tags": ["Policies"] } }, + "/public/v1/query/get_tvc_app": { + "post": { + "summary": "Get TVC App", + "description": "Get details about a single TVC App", + "operationId": "PublicApiService_GetTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcAppResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/query/get_tvc_deployment": { + "post": { + "summary": "Get TVC Deployment", + "description": "Get details about a single TVC Deployment", + "operationId": "PublicApiService_GetTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/query/get_user": { "post": { "summary": "Get user", @@ -1764,6 +1828,102 @@ "tags": ["Organizations"] } }, + "/public/v1/submit/create_tvc_app": { + "post": { + "summary": "Create a TVC App", + "description": "Create a new TVC application", + "operationId": "PublicApiService_CreateTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_deployment": { + "post": { + "summary": "Create a TVC Deployment", + "description": "Create a new TVC Deployment", + "operationId": "PublicApiService_CreateTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_manifest_approvals": { + "post": { + "summary": "Create TVC Manifest Approvals", + "description": "Post one or more manifest approvals for a TVC Manifest", + "operationId": "PublicApiService_CreateTvcManifestApprovals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcManifestApprovalsRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/submit/create_user_tag": { "post": { "summary": "Create user tag", @@ -8851,6 +9011,106 @@ }, "required": ["organizationIds"] }, + "v1GetTvcAppDeploymentsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "appId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "appId"] + }, + "v1GetTvcAppDeploymentsResponse": { + "type": "object", + "properties": { + "tvcDeployments": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcDeployment" + }, + "description": "List of deployments for this TVC App" + } + }, + "required": ["tvcDeployments"] + }, + "v1GetTvcAppRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "tvcAppId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "tvcAppId"] + }, + "v1GetTvcAppResponse": { + "type": "object", + "properties": { + "tvcApp": { + "$ref": "#/definitions/v1TvcApp", + "description": "Details about a single TVC App" + } + }, + "required": ["tvcApp"] + }, + "v1GetTvcAppsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + } + }, + "required": ["organizationId"] + }, + "v1GetTvcAppsResponse": { + "type": "object", + "properties": { + "tvcApps": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcApp" + }, + "description": "A list of TVC Apps." + } + }, + "required": ["tvcApps"] + }, + "v1GetTvcDeploymentRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "deploymentId": { + "type": "string", + "description": "Unique identifier for a given TVC Deployment." + } + }, + "required": ["organizationId", "deploymentId"] + }, + "v1GetTvcDeploymentResponse": { + "type": "object", + "properties": { + "tvcDeployment": { + "$ref": "#/definitions/v1TvcDeployment", + "description": "Details about a single TVC Deployment" + } + }, + "required": ["tvcDeployment"] + }, "v1GetUserRequest": { "type": "object", "properties": { @@ -11155,6 +11415,12 @@ }, "required": ["authenticatorId"] }, + "v1RefreshFeatureFlagsRequest": { + "type": "object" + }, + "v1RefreshFeatureFlagsResponse": { + "type": "object" + }, "v1RejectActivityIntent": { "type": "object", "properties": { diff --git a/packages/sdk-server/src/__generated__/sdk-client-base.ts b/packages/sdk-server/src/__generated__/sdk-client-base.ts index 8743214ed..852e7cb27 100644 --- a/packages/sdk-server/src/__generated__/sdk-client-base.ts +++ b/packages/sdk-server/src/__generated__/sdk-client-base.ts @@ -1,25 +1,16 @@ /* @generated by codegen. DO NOT EDIT BY HAND */ -import { - TERMINAL_ACTIVITY_STATUSES, - TActivityResponse, - TActivityStatus, - TSignedRequest, -} from "@turnkey/http"; +import { TERMINAL_ACTIVITY_STATUSES, TActivityResponse, TActivityStatus, TSignedRequest } from "@turnkey/http"; import type { definitions } from "../__inputs__/public_api.types"; -import { - GrpcStatus, - TStamper, - TurnkeyRequestError, - TurnkeySDKClientConfig, -} from "../__types__/base"; +import { GrpcStatus, TStamper, TurnkeyRequestError, TurnkeySDKClientConfig } from "../__types__/base"; import { VERSION } from "../__generated__/version"; import type * as SdkApiTypes from "./sdk_api_types"; + export class TurnkeySDKClientBase { config: TurnkeySDKClientConfig; @@ -32,7 +23,7 @@ export class TurnkeySDKClientBase { async request( url: string, - body: TBodyType, + body: TBodyType ): Promise { const fullUrl = this.config.apiBaseUrl + url; const stringifiedBody = JSON.stringify(body); @@ -46,7 +37,7 @@ export class TurnkeySDKClientBase { "X-Client-Version": VERSION, }, body: stringifiedBody, - redirect: "follow", + redirect: "follow" }); if (!response.ok) { @@ -67,13 +58,12 @@ export class TurnkeySDKClientBase { async command( url: string, body: TBodyType, - resultKey: string, + resultKey: string ): Promise { const pollingDuration = this.config.activityPoller?.intervalMs ?? 1000; const maxRetries = this.config.activityPoller?.numRetries ?? 3; - const sleep = (ms: number) => - new Promise((resolve) => setTimeout(resolve, ms)); + const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); const handleResponse = (activityData: TActivityResponse): TResponseType => { const { result, status } = activityData.activity; @@ -81,7 +71,7 @@ export class TurnkeySDKClientBase { if (status === "ACTIVITY_STATUS_COMPLETED") { return { ...result[`${resultKey}` as keyof definitions["v1Result"]], - ...activityData, + ...activityData } as TResponseType; } @@ -90,24 +80,17 @@ export class TurnkeySDKClientBase { let attempts = 0; - const pollStatus = async ( - activityId: string, - organizationId: string, - ): Promise => { + const pollStatus = async (activityId: string, organizationId: string): Promise => { const pollBody = { activityId, organizationId }; - const pollData = (await this.getActivity(pollBody)) as TActivityResponse; + const pollData = await this.getActivity(pollBody) as TActivityResponse; if (attempts > maxRetries) { return handleResponse(pollData); } attempts += 1; - - if ( - !TERMINAL_ACTIVITY_STATUSES.includes( - pollData.activity.status as TActivityStatus, - ) - ) { + + if (!TERMINAL_ACTIVITY_STATUSES.includes(pollData.activity.status as TActivityStatus)) { await sleep(pollingDuration); return pollStatus(activityId, organizationId); } @@ -115,20 +98,10 @@ export class TurnkeySDKClientBase { return handleResponse(pollData); }; - const responseData = (await this.request( - url, - body, - )) as TActivityResponse; - - if ( - !TERMINAL_ACTIVITY_STATUSES.includes( - responseData.activity.status as TActivityStatus, - ) - ) { - return pollStatus( - responseData.activity.id, - responseData.activity.organizationId, - ); + const responseData = await this.request(url, body) as TActivityResponse; + + if (!TERMINAL_ACTIVITY_STATUSES.includes(responseData.activity.status as TActivityStatus)) { + return pollStatus(responseData.activity.id, responseData.activity.organizationId); } return handleResponse(responseData); @@ -136,28 +109,26 @@ export class TurnkeySDKClientBase { async activityDecision( url: string, - body: TBodyType, + body: TBodyType ): Promise { - const activityData = (await this.request(url, body)) as TActivityResponse; + const activityData = await this.request(url, body) as TActivityResponse; return { ...activityData["activity"]["result"], - ...activityData, + ...activityData } as TResponseType; } - getActivity = async ( - input: SdkApiTypes.TGetActivityBody, - ): Promise => { + + getActivity = async (input: SdkApiTypes.TGetActivityBody): Promise => { return this.request("/public/v1/query/get_activity", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetActivity = async ( - input: SdkApiTypes.TGetActivityBody, - ): Promise => { + + stampGetActivity = async (input: SdkApiTypes.TGetActivityBody): Promise => { if (!this.stamper) { return undefined; } @@ -165,7 +136,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_activity"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -175,20 +146,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getApiKey = async ( - input: SdkApiTypes.TGetApiKeyBody, - ): Promise => { + getApiKey = async (input: SdkApiTypes.TGetApiKeyBody): Promise => { return this.request("/public/v1/query/get_api_key", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetApiKey = async ( - input: SdkApiTypes.TGetApiKeyBody, - ): Promise => { + + stampGetApiKey = async (input: SdkApiTypes.TGetApiKeyBody): Promise => { if (!this.stamper) { return undefined; } @@ -196,7 +165,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_key"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -206,20 +175,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getApiKeys = async ( - input: SdkApiTypes.TGetApiKeysBody = {}, - ): Promise => { + + getApiKeys = async (input: SdkApiTypes.TGetApiKeysBody = {}): Promise => { return this.request("/public/v1/query/get_api_keys", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetApiKeys = async ( - input: SdkApiTypes.TGetApiKeysBody, - ): Promise => { + + stampGetApiKeys = async (input: SdkApiTypes.TGetApiKeysBody): Promise => { if (!this.stamper) { return undefined; } @@ -227,7 +194,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_keys"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -237,29 +204,27 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } getAuthenticator = async ( input: SdkApiTypes.TGetAuthenticatorBody, ): Promise => { return this.request("/public/v1/query/get_authenticator", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetAuthenticator = async ( - input: SdkApiTypes.TGetAuthenticatorBody, - ): Promise => { + + stampGetAuthenticator = async (input: SdkApiTypes.TGetAuthenticatorBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_authenticator"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticator"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -269,29 +234,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getAuthenticators = async ( - input: SdkApiTypes.TGetAuthenticatorsBody, - ): Promise => { + getAuthenticators = async (input: SdkApiTypes.TGetAuthenticatorsBody): Promise => { return this.request("/public/v1/query/get_authenticators", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetAuthenticators = async ( - input: SdkApiTypes.TGetAuthenticatorsBody, - ): Promise => { + + stampGetAuthenticators = async (input: SdkApiTypes.TGetAuthenticatorsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_authenticators"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticators"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -301,20 +263,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getBootProof = async ( - input: SdkApiTypes.TGetBootProofBody, - ): Promise => { + getBootProof = async (input: SdkApiTypes.TGetBootProofBody): Promise => { return this.request("/public/v1/query/get_boot_proof", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetBootProof = async ( - input: SdkApiTypes.TGetBootProofBody, - ): Promise => { + + stampGetBootProof = async (input: SdkApiTypes.TGetBootProofBody): Promise => { if (!this.stamper) { return undefined; } @@ -322,7 +282,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_boot_proof"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -332,20 +292,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getGasUsage = async ( - input: SdkApiTypes.TGetGasUsageBody, - ): Promise => { + + getGasUsage = async (input: SdkApiTypes.TGetGasUsageBody): Promise => { return this.request("/public/v1/query/get_gas_usage", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetGasUsage = async ( - input: SdkApiTypes.TGetGasUsageBody, - ): Promise => { + + stampGetGasUsage = async (input: SdkApiTypes.TGetGasUsageBody): Promise => { if (!this.stamper) { return undefined; } @@ -353,7 +311,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_gas_usage"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -363,29 +321,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getLatestBootProof = async ( - input: SdkApiTypes.TGetLatestBootProofBody, - ): Promise => { + getLatestBootProof = async (input: SdkApiTypes.TGetLatestBootProofBody): Promise => { return this.request("/public/v1/query/get_latest_boot_proof", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetLatestBootProof = async ( - input: SdkApiTypes.TGetLatestBootProofBody, - ): Promise => { + + stampGetLatestBootProof = async (input: SdkApiTypes.TGetLatestBootProofBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_latest_boot_proof"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_latest_boot_proof"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -395,20 +350,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getNonces = async ( - input: SdkApiTypes.TGetNoncesBody, - ): Promise => { + getNonces = async (input: SdkApiTypes.TGetNoncesBody): Promise => { return this.request("/public/v1/query/get_nonces", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetNonces = async ( - input: SdkApiTypes.TGetNoncesBody, - ): Promise => { + + stampGetNonces = async (input: SdkApiTypes.TGetNoncesBody): Promise => { if (!this.stamper) { return undefined; } @@ -416,7 +369,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_nonces"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -426,29 +379,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getOauth2Credential = async ( - input: SdkApiTypes.TGetOauth2CredentialBody, - ): Promise => { + + getOauth2Credential = async (input: SdkApiTypes.TGetOauth2CredentialBody): Promise => { return this.request("/public/v1/query/get_oauth2_credential", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetOauth2Credential = async ( - input: SdkApiTypes.TGetOauth2CredentialBody, - ): Promise => { + + stampGetOauth2Credential = async (input: SdkApiTypes.TGetOauth2CredentialBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_oauth2_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth2_credential"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -458,29 +408,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getOauthProviders = async ( - input: SdkApiTypes.TGetOauthProvidersBody, - ): Promise => { + + getOauthProviders = async (input: SdkApiTypes.TGetOauthProvidersBody): Promise => { return this.request("/public/v1/query/get_oauth_providers", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetOauthProviders = async ( - input: SdkApiTypes.TGetOauthProvidersBody, - ): Promise => { + + stampGetOauthProviders = async (input: SdkApiTypes.TGetOauthProvidersBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_oauth_providers"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth_providers"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -490,29 +437,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getOnRampTransactionStatus = async ( - input: SdkApiTypes.TGetOnRampTransactionStatusBody, - ): Promise => { + + getOnRampTransactionStatus = async (input: SdkApiTypes.TGetOnRampTransactionStatusBody): Promise => { return this.request("/public/v1/query/get_onramp_transaction_status", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetOnRampTransactionStatus = async ( - input: SdkApiTypes.TGetOnRampTransactionStatusBody, - ): Promise => { + + stampGetOnRampTransactionStatus = async (input: SdkApiTypes.TGetOnRampTransactionStatusBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_onramp_transaction_status"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_onramp_transaction_status"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -522,29 +466,27 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } getOrganizationConfigs = async ( input: SdkApiTypes.TGetOrganizationConfigsBody, ): Promise => { return this.request("/public/v1/query/get_organization_configs", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetOrganizationConfigs = async ( - input: SdkApiTypes.TGetOrganizationConfigsBody, - ): Promise => { + + stampGetOrganizationConfigs = async (input: SdkApiTypes.TGetOrganizationConfigsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_organization_configs"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization_configs"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -554,20 +496,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getPolicy = async ( - input: SdkApiTypes.TGetPolicyBody, - ): Promise => { + + getPolicy = async (input: SdkApiTypes.TGetPolicyBody): Promise => { return this.request("/public/v1/query/get_policy", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetPolicy = async ( - input: SdkApiTypes.TGetPolicyBody, - ): Promise => { + + stampGetPolicy = async (input: SdkApiTypes.TGetPolicyBody): Promise => { if (!this.stamper) { return undefined; } @@ -575,7 +515,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -585,29 +525,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getPolicyEvaluations = async ( - input: SdkApiTypes.TGetPolicyEvaluationsBody, - ): Promise => { + getPolicyEvaluations = async (input: SdkApiTypes.TGetPolicyEvaluationsBody): Promise => { return this.request("/public/v1/query/get_policy_evaluations", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetPolicyEvaluations = async ( - input: SdkApiTypes.TGetPolicyEvaluationsBody, - ): Promise => { + + stampGetPolicyEvaluations = async (input: SdkApiTypes.TGetPolicyEvaluationsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_policy_evaluations"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy_evaluations"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -617,20 +554,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getPrivateKey = async ( - input: SdkApiTypes.TGetPrivateKeyBody, - ): Promise => { + getPrivateKey = async (input: SdkApiTypes.TGetPrivateKeyBody): Promise => { return this.request("/public/v1/query/get_private_key", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetPrivateKey = async ( - input: SdkApiTypes.TGetPrivateKeyBody, - ): Promise => { + + stampGetPrivateKey = async (input: SdkApiTypes.TGetPrivateKeyBody): Promise => { if (!this.stamper) { return undefined; } @@ -638,7 +573,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_private_key"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -648,29 +583,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getSendTransactionStatus = async ( - input: SdkApiTypes.TGetSendTransactionStatusBody, - ): Promise => { + + getSendTransactionStatus = async (input: SdkApiTypes.TGetSendTransactionStatusBody): Promise => { return this.request("/public/v1/query/get_send_transaction_status", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetSendTransactionStatus = async ( - input: SdkApiTypes.TGetSendTransactionStatusBody, - ): Promise => { + + stampGetSendTransactionStatus = async (input: SdkApiTypes.TGetSendTransactionStatusBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_send_transaction_status"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_send_transaction_status"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -680,29 +612,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getSmartContractInterface = async ( - input: SdkApiTypes.TGetSmartContractInterfaceBody, - ): Promise => { + + getSmartContractInterface = async (input: SdkApiTypes.TGetSmartContractInterfaceBody): Promise => { return this.request("/public/v1/query/get_smart_contract_interface", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetSmartContractInterface = async ( - input: SdkApiTypes.TGetSmartContractInterfaceBody, - ): Promise => { + + stampGetSmartContractInterface = async (input: SdkApiTypes.TGetSmartContractInterfaceBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_smart_contract_interface"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_smart_contract_interface"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -712,28 +641,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getUser = async ( - input: SdkApiTypes.TGetUserBody, - ): Promise => { - return this.request("/public/v1/query/get_user", { + + getTvcApp = async (input: SdkApiTypes.TGetTvcAppBody): Promise => { + return this.request("/public/v1/query/get_tvc_app", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetUser = async ( - input: SdkApiTypes.TGetUserBody, - ): Promise => { + + stampGetTvcApp = async (input: SdkApiTypes.TGetTvcAppBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_user"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_app"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -743,28 +670,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getWallet = async ( - input: SdkApiTypes.TGetWalletBody, - ): Promise => { - return this.request("/public/v1/query/get_wallet", { + + getTvcDeployment = async (input: SdkApiTypes.TGetTvcDeploymentBody): Promise => { + return this.request("/public/v1/query/get_tvc_deployment", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWallet = async ( - input: SdkApiTypes.TGetWalletBody, - ): Promise => { + + stampGetTvcDeployment = async (input: SdkApiTypes.TGetTvcDeploymentBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_deployment"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -774,29 +699,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getWalletAccount = async ( - input: SdkApiTypes.TGetWalletAccountBody, - ): Promise => { - return this.request("/public/v1/query/get_wallet_account", { + + getUser = async (input: SdkApiTypes.TGetUserBody): Promise => { + return this.request("/public/v1/query/get_user", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWalletAccount = async ( - input: SdkApiTypes.TGetWalletAccountBody, - ): Promise => { + + stampGetUser = async (input: SdkApiTypes.TGetUserBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_wallet_account"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_user"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -806,29 +728,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getWalletAddressBalances = async ( - input: SdkApiTypes.TGetWalletAddressBalancesBody, - ): Promise => { - return this.request("/public/v1/query/get_wallet_address_balances", { + + getWallet = async (input: SdkApiTypes.TGetWalletBody): Promise => { + return this.request("/public/v1/query/get_wallet", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWalletAddressBalances = async ( - input: SdkApiTypes.TGetWalletAddressBalancesBody, - ): Promise => { + + stampGetWallet = async (input: SdkApiTypes.TGetWalletBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_wallet_address_balances"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -838,28 +757,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getActivities = async ( - input: SdkApiTypes.TGetActivitiesBody = {}, - ): Promise => { - return this.request("/public/v1/query/list_activities", { + + getWalletAccount = async (input: SdkApiTypes.TGetWalletAccountBody): Promise => { + return this.request("/public/v1/query/get_wallet_account", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetActivities = async ( - input: SdkApiTypes.TGetActivitiesBody, - ): Promise => { + + stampGetWalletAccount = async (input: SdkApiTypes.TGetWalletAccountBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_activities"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet_account"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -869,25 +786,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getAppProofs = async ( - input: SdkApiTypes.TGetAppProofsBody, - ): Promise => { - return this.request("/public/v1/query/list_app_proofs", { + getWalletAddressBalances = async ( + input: SdkApiTypes.TGetWalletAddressBalancesBody, + ): Promise => { + return this.request("/public/v1/query/get_wallet_address_balances", { ...input, organizationId: input.organizationId ?? this.config.organizationId, }); }; - stampGetAppProofs = async ( - input: SdkApiTypes.TGetAppProofsBody, + stampGetWalletAddressBalances = async ( + input: SdkApiTypes.TGetWalletAddressBalancesBody, ): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_app_proofs"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/query/get_wallet_address_balances"; const body = { ...input, organizationId: input.organizationId ?? this.config.organizationId, @@ -902,27 +820,25 @@ export class TurnkeySDKClientBase { }; }; - listFiatOnRampCredentials = async ( - input: SdkApiTypes.TListFiatOnRampCredentialsBody, - ): Promise => { - return this.request("/public/v1/query/list_fiat_on_ramp_credentials", { + getActivities = async ( + input: SdkApiTypes.TGetActivitiesBody = {}, + ): Promise => { + return this.request("/public/v1/query/list_activities", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampListFiatOnRampCredentials = async ( - input: SdkApiTypes.TListFiatOnRampCredentialsBody, - ): Promise => { + + stampGetActivities = async (input: SdkApiTypes.TGetActivitiesBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_fiat_on_ramp_credentials"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_activities"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -932,29 +848,84 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + + + getAppProofs = async (input: SdkApiTypes.TGetAppProofsBody): Promise => { + return this.request("/public/v1/query/list_app_proofs", { + ...input, + organizationId: input.organizationId ?? this.config.organizationId + }); + } + + + stampGetAppProofs = async (input: SdkApiTypes.TGetAppProofsBody): Promise => { + if (!this.stamper) { + return undefined; + } + + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_app_proofs"; + const body = { + ...input, + organizationId: input.organizationId ?? this.config.organizationId + }; + + const stringifiedBody = JSON.stringify(body); + const stamp = await this.stamper.stamp(stringifiedBody); + return { + body: stringifiedBody, + stamp: stamp, + url: fullUrl, + }; + } + + + listFiatOnRampCredentials = async (input: SdkApiTypes.TListFiatOnRampCredentialsBody): Promise => { + return this.request("/public/v1/query/list_fiat_on_ramp_credentials", { + ...input, + organizationId: input.organizationId ?? this.config.organizationId + }); + } + + + stampListFiatOnRampCredentials = async (input: SdkApiTypes.TListFiatOnRampCredentialsBody): Promise => { + if (!this.stamper) { + return undefined; + } + + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_fiat_on_ramp_credentials"; + const body = { + ...input, + organizationId: input.organizationId ?? this.config.organizationId + }; + + const stringifiedBody = JSON.stringify(body); + const stamp = await this.stamper.stamp(stringifiedBody); + return { + body: stringifiedBody, + stamp: stamp, + url: fullUrl, + }; + } + - listOauth2Credentials = async ( - input: SdkApiTypes.TListOauth2CredentialsBody, - ): Promise => { + listOauth2Credentials = async (input: SdkApiTypes.TListOauth2CredentialsBody): Promise => { return this.request("/public/v1/query/list_oauth2_credentials", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampListOauth2Credentials = async ( - input: SdkApiTypes.TListOauth2CredentialsBody, - ): Promise => { + + stampListOauth2Credentials = async (input: SdkApiTypes.TListOauth2CredentialsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_oauth2_credentials"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_oauth2_credentials"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -964,20 +935,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getPolicies = async ( - input: SdkApiTypes.TGetPoliciesBody = {}, - ): Promise => { + getPolicies = async (input: SdkApiTypes.TGetPoliciesBody = {}): Promise => { return this.request("/public/v1/query/list_policies", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetPolicies = async ( - input: SdkApiTypes.TGetPoliciesBody, - ): Promise => { + + stampGetPolicies = async (input: SdkApiTypes.TGetPoliciesBody): Promise => { if (!this.stamper) { return undefined; } @@ -985,7 +954,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_policies"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -995,29 +964,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - listPrivateKeyTags = async ( - input: SdkApiTypes.TListPrivateKeyTagsBody, - ): Promise => { + + listPrivateKeyTags = async (input: SdkApiTypes.TListPrivateKeyTagsBody): Promise => { return this.request("/public/v1/query/list_private_key_tags", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampListPrivateKeyTags = async ( - input: SdkApiTypes.TListPrivateKeyTagsBody, - ): Promise => { + + stampListPrivateKeyTags = async (input: SdkApiTypes.TListPrivateKeyTagsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_private_key_tags"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_key_tags"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1027,29 +993,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getPrivateKeys = async ( - input: SdkApiTypes.TGetPrivateKeysBody = {}, - ): Promise => { + + getPrivateKeys = async (input: SdkApiTypes.TGetPrivateKeysBody = {}): Promise => { return this.request("/public/v1/query/list_private_keys", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetPrivateKeys = async ( - input: SdkApiTypes.TGetPrivateKeysBody, - ): Promise => { + + stampGetPrivateKeys = async (input: SdkApiTypes.TGetPrivateKeysBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_private_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_keys"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1059,30 +1022,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getSmartContractInterfaces = async ( - input: SdkApiTypes.TGetSmartContractInterfacesBody, - ): Promise => { + + getSmartContractInterfaces = async (input: SdkApiTypes.TGetSmartContractInterfacesBody): Promise => { return this.request("/public/v1/query/list_smart_contract_interfaces", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetSmartContractInterfaces = async ( - input: SdkApiTypes.TGetSmartContractInterfacesBody, - ): Promise => { + + stampGetSmartContractInterfaces = async (input: SdkApiTypes.TGetSmartContractInterfacesBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/query/list_smart_contract_interfaces"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_smart_contract_interfaces"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1092,20 +1051,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getSubOrgIds = async ( - input: SdkApiTypes.TGetSubOrgIdsBody = {}, - ): Promise => { + + getSubOrgIds = async (input: SdkApiTypes.TGetSubOrgIdsBody = {}): Promise => { return this.request("/public/v1/query/list_suborgs", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetSubOrgIds = async ( - input: SdkApiTypes.TGetSubOrgIdsBody, - ): Promise => { + + stampGetSubOrgIds = async (input: SdkApiTypes.TGetSubOrgIdsBody): Promise => { if (!this.stamper) { return undefined; } @@ -1113,7 +1070,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_suborgs"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1123,7 +1080,7 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } listSupportedAssets = async ( input: SdkApiTypes.TListSupportedAssetsBody, @@ -1162,13 +1119,12 @@ export class TurnkeySDKClientBase { ): Promise => { return this.request("/public/v1/query/list_user_tags", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampListUserTags = async ( - input: SdkApiTypes.TListUserTagsBody, - ): Promise => { + + stampListUserTags = async (input: SdkApiTypes.TListUserTagsBody): Promise => { if (!this.stamper) { return undefined; } @@ -1176,7 +1132,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_user_tags"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1186,20 +1142,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getUsers = async ( - input: SdkApiTypes.TGetUsersBody = {}, - ): Promise => { + getUsers = async (input: SdkApiTypes.TGetUsersBody = {}): Promise => { return this.request("/public/v1/query/list_users", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetUsers = async ( - input: SdkApiTypes.TGetUsersBody, - ): Promise => { + + stampGetUsers = async (input: SdkApiTypes.TGetUsersBody): Promise => { if (!this.stamper) { return undefined; } @@ -1207,7 +1161,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_users"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1217,29 +1171,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getVerifiedSubOrgIds = async ( - input: SdkApiTypes.TGetVerifiedSubOrgIdsBody, - ): Promise => { + + getVerifiedSubOrgIds = async (input: SdkApiTypes.TGetVerifiedSubOrgIdsBody): Promise => { return this.request("/public/v1/query/list_verified_suborgs", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetVerifiedSubOrgIds = async ( - input: SdkApiTypes.TGetVerifiedSubOrgIdsBody, - ): Promise => { + + stampGetVerifiedSubOrgIds = async (input: SdkApiTypes.TGetVerifiedSubOrgIdsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_verified_suborgs"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_verified_suborgs"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1249,29 +1200,26 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getWalletAccounts = async ( - input: SdkApiTypes.TGetWalletAccountsBody, - ): Promise => { + + getWalletAccounts = async (input: SdkApiTypes.TGetWalletAccountsBody): Promise => { return this.request("/public/v1/query/list_wallet_accounts", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWalletAccounts = async ( - input: SdkApiTypes.TGetWalletAccountsBody, - ): Promise => { + + stampGetWalletAccounts = async (input: SdkApiTypes.TGetWalletAccountsBody): Promise => { if (!this.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/list_wallet_accounts"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallet_accounts"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1281,20 +1229,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - getWallets = async ( - input: SdkApiTypes.TGetWalletsBody = {}, - ): Promise => { + + getWallets = async (input: SdkApiTypes.TGetWalletsBody = {}): Promise => { return this.request("/public/v1/query/list_wallets", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWallets = async ( - input: SdkApiTypes.TGetWalletsBody, - ): Promise => { + + stampGetWallets = async (input: SdkApiTypes.TGetWalletsBody): Promise => { if (!this.stamper) { return undefined; } @@ -1302,7 +1248,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallets"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1312,20 +1258,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getWhoami = async ( - input: SdkApiTypes.TGetWhoamiBody = {}, - ): Promise => { + getWhoami = async (input: SdkApiTypes.TGetWhoamiBody = {}): Promise => { return this.request("/public/v1/query/whoami", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } - stampGetWhoami = async ( - input: SdkApiTypes.TGetWhoamiBody, - ): Promise => { + + stampGetWhoami = async (input: SdkApiTypes.TGetWhoamiBody): Promise => { if (!this.stamper) { return undefined; } @@ -1333,7 +1277,7 @@ export class TurnkeySDKClientBase { const fullUrl = this.config.apiBaseUrl + "/public/v1/query/whoami"; const body = { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }; const stringifiedBody = JSON.stringify(body); @@ -1343,35 +1287,33 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - approveActivity = async ( - input: SdkApiTypes.TApproveActivityBody, - ): Promise => { + + approveActivity = async (input: SdkApiTypes.TApproveActivityBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.activityDecision("/public/v1/submit/approve_activity", { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_APPROVE_ACTIVITY", - }); - }; + return this.activityDecision("/public/v1/submit/approve_activity", + { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_APPROVE_ACTIVITY" + }); + } - stampApproveActivity = async ( - input: SdkApiTypes.TApproveActivityBody, - ): Promise => { + + stampApproveActivity = async (input: SdkApiTypes.TApproveActivityBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_APPROVE_ACTIVITY", + type: "ACTIVITY_TYPE_APPROVE_ACTIVITY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1381,39 +1323,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createApiKeys = async ( - input: SdkApiTypes.TCreateApiKeysBody, - ): Promise => { + + createApiKeys = async (input: SdkApiTypes.TCreateApiKeysBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_api_keys", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2", - }, - "createApiKeysResult", - ); - }; + return this.command("/public/v1/submit/create_api_keys", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2" + }, "createApiKeysResult"); + } - stampCreateApiKeys = async ( - input: SdkApiTypes.TCreateApiKeysBody, - ): Promise => { + + stampCreateApiKeys = async (input: SdkApiTypes.TCreateApiKeysBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2", + type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1423,39 +1358,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createAuthenticators = async ( - input: SdkApiTypes.TCreateAuthenticatorsBody, - ): Promise => { + + createApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_authenticators", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2", - }, - "createAuthenticatorsResult", - ); - }; + return this.command("/public/v1/submit/create_api_only_users", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" + }, "createApiOnlyUsersResult"); + } - stampCreateAuthenticators = async ( - input: SdkApiTypes.TCreateAuthenticatorsBody, - ): Promise => { + + stampCreateApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_authenticators"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2", + type: "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1465,40 +1393,33 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createFiatOnRampCredential = async ( - input: SdkApiTypes.TCreateFiatOnRampCredentialBody, - ): Promise => { + createAuthenticators = async ( + input: SdkApiTypes.TCreateAuthenticatorsBody, + ): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_fiat_on_ramp_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL", - }, - "createFiatOnRampCredentialResult", - ); - }; + return this.command("/public/v1/submit/create_fiat_on_ramp_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" + }, "createFiatOnRampCredentialResult"); + } - stampCreateFiatOnRampCredential = async ( - input: SdkApiTypes.TCreateFiatOnRampCredentialBody, - ): Promise => { + + stampCreateFiatOnRampCredential = async (input: SdkApiTypes.TCreateFiatOnRampCredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/submit/create_fiat_on_ramp_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_fiat_on_ramp_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL", + type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1508,39 +1429,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createInvitations = async ( - input: SdkApiTypes.TCreateInvitationsBody, - ): Promise => { + + createInvitations = async (input: SdkApiTypes.TCreateInvitationsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_invitations", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_INVITATIONS", - }, - "createInvitationsResult", - ); - }; + return this.command("/public/v1/submit/create_invitations", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_INVITATIONS" + }, "createInvitationsResult"); + } - stampCreateInvitations = async ( - input: SdkApiTypes.TCreateInvitationsBody, - ): Promise => { + + stampCreateInvitations = async (input: SdkApiTypes.TCreateInvitationsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_INVITATIONS", + type: "ACTIVITY_TYPE_CREATE_INVITATIONS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1550,39 +1464,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createOauth2Credential = async ( - input: SdkApiTypes.TCreateOauth2CredentialBody, - ): Promise => { + + createOauth2Credential = async (input: SdkApiTypes.TCreateOauth2CredentialBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_oauth2_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL", - }, - "createOauth2CredentialResult", - ); - }; + return this.command("/public/v1/submit/create_oauth2_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" + }, "createOauth2CredentialResult"); + } - stampCreateOauth2Credential = async ( - input: SdkApiTypes.TCreateOauth2CredentialBody, - ): Promise => { + + stampCreateOauth2Credential = async (input: SdkApiTypes.TCreateOauth2CredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_oauth2_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_oauth2_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL", + type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1592,39 +1499,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createOauthProviders = async ( - input: SdkApiTypes.TCreateOauthProvidersBody, - ): Promise => { + + createOauthProviders = async (input: SdkApiTypes.TCreateOauthProvidersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_oauth_providers", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS", - }, - "createOauthProvidersResult", - ); - }; + return this.command("/public/v1/submit/create_oauth_providers", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" + }, "createOauthProvidersResult"); + } - stampCreateOauthProviders = async ( - input: SdkApiTypes.TCreateOauthProvidersBody, - ): Promise => { + + stampCreateOauthProviders = async (input: SdkApiTypes.TCreateOauthProvidersBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS", + type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1634,39 +1534,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createPolicies = async ( - input: SdkApiTypes.TCreatePoliciesBody, - ): Promise => { + + createPolicies = async (input: SdkApiTypes.TCreatePoliciesBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_policies", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_POLICIES", - }, - "createPoliciesResult", - ); - }; + return this.command("/public/v1/submit/create_policies", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_POLICIES" + }, "createPoliciesResult"); + } - stampCreatePolicies = async ( - input: SdkApiTypes.TCreatePoliciesBody, - ): Promise => { + + stampCreatePolicies = async (input: SdkApiTypes.TCreatePoliciesBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_policies"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_policies"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_POLICIES", + type: "ACTIVITY_TYPE_CREATE_POLICIES" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1676,27 +1569,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createPolicy = async ( - input: SdkApiTypes.TCreatePolicyBody, - ): Promise => { + createPolicy = async (input: SdkApiTypes.TCreatePolicyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_policy", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_POLICY_V3", - }, - "createPolicyResult", - ); - }; + return this.command("/public/v1/submit/create_policy", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_POLICY_V3" + }, "createPolicyResult"); + } - stampCreatePolicy = async ( - input: SdkApiTypes.TCreatePolicyBody, - ): Promise => { + + stampCreatePolicy = async (input: SdkApiTypes.TCreatePolicyBody): Promise => { if (!this.stamper) { return undefined; } @@ -1707,7 +1594,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_POLICY_V3", + type: "ACTIVITY_TYPE_CREATE_POLICY_V3" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1717,39 +1604,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createPrivateKeyTag = async ( - input: SdkApiTypes.TCreatePrivateKeyTagBody, - ): Promise => { + + createPrivateKeyTag = async (input: SdkApiTypes.TCreatePrivateKeyTagBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_private_key_tag", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG", - }, - "createPrivateKeyTagResult", - ); - }; + return this.command("/public/v1/submit/create_private_key_tag", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" + }, "createPrivateKeyTagResult"); + } - stampCreatePrivateKeyTag = async ( - input: SdkApiTypes.TCreatePrivateKeyTagBody, - ): Promise => { + + stampCreatePrivateKeyTag = async (input: SdkApiTypes.TCreatePrivateKeyTagBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_private_key_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_key_tag"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG", + type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1759,39 +1639,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createPrivateKeys = async ( - input: SdkApiTypes.TCreatePrivateKeysBody, - ): Promise => { + createPrivateKeys = async (input: SdkApiTypes.TCreatePrivateKeysBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_private_keys", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2", - }, - "createPrivateKeysResultV2", - ); - }; + return this.command("/public/v1/submit/create_private_keys", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" + }, "createPrivateKeysResultV2"); + } - stampCreatePrivateKeys = async ( - input: SdkApiTypes.TCreatePrivateKeysBody, - ): Promise => { + + stampCreatePrivateKeys = async (input: SdkApiTypes.TCreatePrivateKeysBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2", + type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1801,39 +1674,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createReadOnlySession = async ( - input: SdkApiTypes.TCreateReadOnlySessionBody, - ): Promise => { + createReadOnlySession = async (input: SdkApiTypes.TCreateReadOnlySessionBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_read_only_session", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION", - }, - "createReadOnlySessionResult", - ); - }; + return this.command("/public/v1/submit/create_read_only_session", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" + }, "createReadOnlySessionResult"); + } - stampCreateReadOnlySession = async ( - input: SdkApiTypes.TCreateReadOnlySessionBody, - ): Promise => { + + stampCreateReadOnlySession = async (input: SdkApiTypes.TCreateReadOnlySessionBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_read_only_session"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_read_only_session"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION", + type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1843,39 +1709,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createReadWriteSession = async ( - input: SdkApiTypes.TCreateReadWriteSessionBody, - ): Promise => { + + createReadWriteSession = async (input: SdkApiTypes.TCreateReadWriteSessionBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_read_write_session", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2", - }, - "createReadWriteSessionResultV2", - ); - }; + return this.command("/public/v1/submit/create_read_write_session", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" + }, "createReadWriteSessionResultV2"); + } - stampCreateReadWriteSession = async ( - input: SdkApiTypes.TCreateReadWriteSessionBody, - ): Promise => { + + stampCreateReadWriteSession = async (input: SdkApiTypes.TCreateReadWriteSessionBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_read_write_session"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_read_write_session"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2", + type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1885,40 +1744,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createSmartContractInterface = async ( - input: SdkApiTypes.TCreateSmartContractInterfaceBody, - ): Promise => { + + createSmartContractInterface = async (input: SdkApiTypes.TCreateSmartContractInterfaceBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_smart_contract_interface", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE", - }, - "createSmartContractInterfaceResult", - ); - }; + return this.command("/public/v1/submit/create_smart_contract_interface", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" + }, "createSmartContractInterfaceResult"); + } - stampCreateSmartContractInterface = async ( - input: SdkApiTypes.TCreateSmartContractInterfaceBody, - ): Promise => { + + stampCreateSmartContractInterface = async (input: SdkApiTypes.TCreateSmartContractInterfaceBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/submit/create_smart_contract_interface"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_smart_contract_interface"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE", + type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1928,39 +1779,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createSubOrganization = async ( - input: SdkApiTypes.TCreateSubOrganizationBody, - ): Promise => { + + createSubOrganization = async (input: SdkApiTypes.TCreateSubOrganizationBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_sub_organization", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7", - }, - "createSubOrganizationResultV7", - ); - }; + return this.command("/public/v1/submit/create_sub_organization", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" + }, "createSubOrganizationResultV7"); + } - stampCreateSubOrganization = async ( - input: SdkApiTypes.TCreateSubOrganizationBody, - ): Promise => { + + stampCreateSubOrganization = async (input: SdkApiTypes.TCreateSubOrganizationBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7", + type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -1970,39 +1814,137 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + + + createTvcApp = async (input: SdkApiTypes.TCreateTvcAppBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/create_tvc_app", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_APP" + }, "createTvcAppResult"); + } + + + stampCreateTvcApp = async (input: SdkApiTypes.TCreateTvcAppBody): Promise => { + if (!this.stamper) { + return undefined; + } + + const { organizationId, timestampMs, ...parameters } = input; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_app"; + const bodyWithType = { + parameters, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_APP" + }; + + const stringifiedBody = JSON.stringify(bodyWithType); + const stamp = await this.stamper.stamp(stringifiedBody); + return { + body: stringifiedBody, + stamp: stamp, + url: fullUrl, + }; + } + + + createTvcDeployment = async (input: SdkApiTypes.TCreateTvcDeploymentBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/create_tvc_deployment", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" + }, "createTvcDeploymentResult"); + } + + + stampCreateTvcDeployment = async (input: SdkApiTypes.TCreateTvcDeploymentBody): Promise => { + if (!this.stamper) { + return undefined; + } + + const { organizationId, timestampMs, ...parameters } = input; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_deployment"; + const bodyWithType = { + parameters, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" + }; + + const stringifiedBody = JSON.stringify(bodyWithType); + const stamp = await this.stamper.stamp(stringifiedBody); + return { + body: stringifiedBody, + stamp: stamp, + url: fullUrl, + }; + } + + + createTvcManifestApprovals = async (input: SdkApiTypes.TCreateTvcManifestApprovalsBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/create_tvc_manifest_approvals", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" + }, "createTvcManifestApprovalsResult"); + } + + + stampCreateTvcManifestApprovals = async (input: SdkApiTypes.TCreateTvcManifestApprovalsBody): Promise => { + if (!this.stamper) { + return undefined; + } + + const { organizationId, timestampMs, ...parameters } = input; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_manifest_approvals"; + const bodyWithType = { + parameters, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" + }; + + const stringifiedBody = JSON.stringify(bodyWithType); + const stamp = await this.stamper.stamp(stringifiedBody); + return { + body: stringifiedBody, + stamp: stamp, + url: fullUrl, + }; + } + + + createUserTag = async (input: SdkApiTypes.TCreateUserTagBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/create_user_tag", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_USER_TAG" + }, "createUserTagResult"); + } - createUserTag = async ( - input: SdkApiTypes.TCreateUserTagBody, - ): Promise => { - const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_user_tag", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_USER_TAG", - }, - "createUserTagResult", - ); - }; - stampCreateUserTag = async ( - input: SdkApiTypes.TCreateUserTagBody, - ): Promise => { + stampCreateUserTag = async (input: SdkApiTypes.TCreateUserTagBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_USER_TAG", + type: "ACTIVITY_TYPE_CREATE_USER_TAG" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2012,27 +1954,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createUsers = async ( - input: SdkApiTypes.TCreateUsersBody, - ): Promise => { + createUsers = async (input: SdkApiTypes.TCreateUsersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_users", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_USERS_V3", - }, - "createUsersResult", - ); - }; + return this.command("/public/v1/submit/create_users", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_USERS_V3" + }, "createUsersResult"); + } - stampCreateUsers = async ( - input: SdkApiTypes.TCreateUsersBody, - ): Promise => { + + stampCreateUsers = async (input: SdkApiTypes.TCreateUsersBody): Promise => { if (!this.stamper) { return undefined; } @@ -2043,7 +1979,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_USERS_V3", + type: "ACTIVITY_TYPE_CREATE_USERS_V3" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2053,27 +1989,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - createWallet = async ( - input: SdkApiTypes.TCreateWalletBody, - ): Promise => { + + createWallet = async (input: SdkApiTypes.TCreateWalletBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_wallet", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_WALLET", - }, - "createWalletResult", - ); - }; + return this.command("/public/v1/submit/create_wallet", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_WALLET" + }, "createWalletResult"); + } - stampCreateWallet = async ( - input: SdkApiTypes.TCreateWalletBody, - ): Promise => { + + stampCreateWallet = async (input: SdkApiTypes.TCreateWalletBody): Promise => { if (!this.stamper) { return undefined; } @@ -2084,7 +2014,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_WALLET", + type: "ACTIVITY_TYPE_CREATE_WALLET" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2094,39 +2024,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createWalletAccounts = async ( - input: SdkApiTypes.TCreateWalletAccountsBody, - ): Promise => { + createWalletAccounts = async (input: SdkApiTypes.TCreateWalletAccountsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/create_wallet_accounts", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS", - }, - "createWalletAccountsResult", - ); - }; + return this.command("/public/v1/submit/create_wallet_accounts", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" + }, "createWalletAccountsResult"); + } - stampCreateWalletAccounts = async ( - input: SdkApiTypes.TCreateWalletAccountsBody, - ): Promise => { + + stampCreateWalletAccounts = async (input: SdkApiTypes.TCreateWalletAccountsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS", + type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2136,39 +2059,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteApiKeys = async ( - input: SdkApiTypes.TDeleteApiKeysBody, - ): Promise => { + deleteApiKeys = async (input: SdkApiTypes.TDeleteApiKeysBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_api_keys", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_API_KEYS", - }, - "deleteApiKeysResult", - ); - }; + return this.command("/public/v1/submit/delete_api_keys", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_API_KEYS" + }, "deleteApiKeysResult"); + } - stampDeleteApiKeys = async ( - input: SdkApiTypes.TDeleteApiKeysBody, - ): Promise => { + + stampDeleteApiKeys = async (input: SdkApiTypes.TDeleteApiKeysBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_API_KEYS", + type: "ACTIVITY_TYPE_DELETE_API_KEYS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2178,39 +2094,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteAuthenticators = async ( - input: SdkApiTypes.TDeleteAuthenticatorsBody, - ): Promise => { + deleteAuthenticators = async (input: SdkApiTypes.TDeleteAuthenticatorsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_authenticators", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS", - }, - "deleteAuthenticatorsResult", - ); - }; + return this.command("/public/v1/submit/delete_authenticators", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" + }, "deleteAuthenticatorsResult"); + } - stampDeleteAuthenticators = async ( - input: SdkApiTypes.TDeleteAuthenticatorsBody, - ): Promise => { + + stampDeleteAuthenticators = async (input: SdkApiTypes.TDeleteAuthenticatorsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS", + type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2220,40 +2129,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteFiatOnRampCredential = async ( - input: SdkApiTypes.TDeleteFiatOnRampCredentialBody, - ): Promise => { + deleteFiatOnRampCredential = async (input: SdkApiTypes.TDeleteFiatOnRampCredentialBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_fiat_on_ramp_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL", - }, - "deleteFiatOnRampCredentialResult", - ); - }; + return this.command("/public/v1/submit/delete_fiat_on_ramp_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" + }, "deleteFiatOnRampCredentialResult"); + } - stampDeleteFiatOnRampCredential = async ( - input: SdkApiTypes.TDeleteFiatOnRampCredentialBody, - ): Promise => { + + stampDeleteFiatOnRampCredential = async (input: SdkApiTypes.TDeleteFiatOnRampCredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/submit/delete_fiat_on_ramp_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_fiat_on_ramp_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL", + type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2263,39 +2164,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteInvitation = async ( - input: SdkApiTypes.TDeleteInvitationBody, - ): Promise => { + deleteInvitation = async (input: SdkApiTypes.TDeleteInvitationBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_invitation", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_INVITATION", - }, - "deleteInvitationResult", - ); - }; + return this.command("/public/v1/submit/delete_invitation", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_INVITATION" + }, "deleteInvitationResult"); + } - stampDeleteInvitation = async ( - input: SdkApiTypes.TDeleteInvitationBody, - ): Promise => { + + stampDeleteInvitation = async (input: SdkApiTypes.TDeleteInvitationBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_INVITATION", + type: "ACTIVITY_TYPE_DELETE_INVITATION" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2305,39 +2199,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteOauth2Credential = async ( - input: SdkApiTypes.TDeleteOauth2CredentialBody, - ): Promise => { + deleteOauth2Credential = async (input: SdkApiTypes.TDeleteOauth2CredentialBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_oauth2_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL", - }, - "deleteOauth2CredentialResult", - ); - }; + return this.command("/public/v1/submit/delete_oauth2_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" + }, "deleteOauth2CredentialResult"); + } - stampDeleteOauth2Credential = async ( - input: SdkApiTypes.TDeleteOauth2CredentialBody, - ): Promise => { + + stampDeleteOauth2Credential = async (input: SdkApiTypes.TDeleteOauth2CredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_oauth2_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_oauth2_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL", + type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2347,39 +2234,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteOauthProviders = async ( - input: SdkApiTypes.TDeleteOauthProvidersBody, - ): Promise => { + deleteOauthProviders = async (input: SdkApiTypes.TDeleteOauthProvidersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_oauth_providers", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS", - }, - "deleteOauthProvidersResult", - ); - }; + return this.command("/public/v1/submit/delete_oauth_providers", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" + }, "deleteOauthProvidersResult"); + } - stampDeleteOauthProviders = async ( - input: SdkApiTypes.TDeleteOauthProvidersBody, - ): Promise => { + + stampDeleteOauthProviders = async (input: SdkApiTypes.TDeleteOauthProvidersBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS", + type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2389,39 +2269,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deletePolicies = async ( - input: SdkApiTypes.TDeletePoliciesBody, - ): Promise => { + deletePolicies = async (input: SdkApiTypes.TDeletePoliciesBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_policies", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_POLICIES", - }, - "deletePoliciesResult", - ); - }; + return this.command("/public/v1/submit/delete_policies", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_POLICIES" + }, "deletePoliciesResult"); + } - stampDeletePolicies = async ( - input: SdkApiTypes.TDeletePoliciesBody, - ): Promise => { + + stampDeletePolicies = async (input: SdkApiTypes.TDeletePoliciesBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_policies"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_policies"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_POLICIES", + type: "ACTIVITY_TYPE_DELETE_POLICIES" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2431,27 +2304,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deletePolicy = async ( - input: SdkApiTypes.TDeletePolicyBody, - ): Promise => { + deletePolicy = async (input: SdkApiTypes.TDeletePolicyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_policy", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_POLICY", - }, - "deletePolicyResult", - ); - }; + return this.command("/public/v1/submit/delete_policy", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_POLICY" + }, "deletePolicyResult"); + } - stampDeletePolicy = async ( - input: SdkApiTypes.TDeletePolicyBody, - ): Promise => { + + stampDeletePolicy = async (input: SdkApiTypes.TDeletePolicyBody): Promise => { if (!this.stamper) { return undefined; } @@ -2462,7 +2329,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_POLICY", + type: "ACTIVITY_TYPE_DELETE_POLICY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2472,39 +2339,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - deletePrivateKeyTags = async ( - input: SdkApiTypes.TDeletePrivateKeyTagsBody, - ): Promise => { + + deletePrivateKeyTags = async (input: SdkApiTypes.TDeletePrivateKeyTagsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_private_key_tags", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS", - }, - "deletePrivateKeyTagsResult", - ); - }; + return this.command("/public/v1/submit/delete_private_key_tags", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" + }, "deletePrivateKeyTagsResult"); + } - stampDeletePrivateKeyTags = async ( - input: SdkApiTypes.TDeletePrivateKeyTagsBody, - ): Promise => { + + stampDeletePrivateKeyTags = async (input: SdkApiTypes.TDeletePrivateKeyTagsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_private_key_tags"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_key_tags"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS", + type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2514,39 +2374,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - deletePrivateKeys = async ( - input: SdkApiTypes.TDeletePrivateKeysBody, - ): Promise => { + + deletePrivateKeys = async (input: SdkApiTypes.TDeletePrivateKeysBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_private_keys", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS", - }, - "deletePrivateKeysResult", - ); - }; + return this.command("/public/v1/submit/delete_private_keys", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" + }, "deletePrivateKeysResult"); + } - stampDeletePrivateKeys = async ( - input: SdkApiTypes.TDeletePrivateKeysBody, - ): Promise => { + + stampDeletePrivateKeys = async (input: SdkApiTypes.TDeletePrivateKeysBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS", + type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2556,40 +2409,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; - - deleteSmartContractInterface = async ( - input: SdkApiTypes.TDeleteSmartContractInterfaceBody, - ): Promise => { - const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_smart_contract_interface", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE", - }, - "deleteSmartContractInterfaceResult", - ); - }; + } - stampDeleteSmartContractInterface = async ( - input: SdkApiTypes.TDeleteSmartContractInterfaceBody, - ): Promise => { + + deleteSmartContractInterface = async (input: SdkApiTypes.TDeleteSmartContractInterfaceBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/delete_smart_contract_interface", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" + }, "deleteSmartContractInterfaceResult"); + } + + + stampDeleteSmartContractInterface = async (input: SdkApiTypes.TDeleteSmartContractInterfaceBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/submit/delete_smart_contract_interface"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_smart_contract_interface"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE", + type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2599,39 +2444,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - deleteSubOrganization = async ( - input: SdkApiTypes.TDeleteSubOrganizationBody, - ): Promise => { + + deleteSubOrganization = async (input: SdkApiTypes.TDeleteSubOrganizationBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_sub_organization", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION", - }, - "deleteSubOrganizationResult", - ); - }; + return this.command("/public/v1/submit/delete_sub_organization", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" + }, "deleteSubOrganizationResult"); + } - stampDeleteSubOrganization = async ( - input: SdkApiTypes.TDeleteSubOrganizationBody, - ): Promise => { + + stampDeleteSubOrganization = async (input: SdkApiTypes.TDeleteSubOrganizationBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION", + type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2641,39 +2479,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - deleteUserTags = async ( - input: SdkApiTypes.TDeleteUserTagsBody, - ): Promise => { + + deleteUserTags = async (input: SdkApiTypes.TDeleteUserTagsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_user_tags", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_USER_TAGS", - }, - "deleteUserTagsResult", - ); - }; + return this.command("/public/v1/submit/delete_user_tags", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_USER_TAGS" + }, "deleteUserTagsResult"); + } - stampDeleteUserTags = async ( - input: SdkApiTypes.TDeleteUserTagsBody, - ): Promise => { + + stampDeleteUserTags = async (input: SdkApiTypes.TDeleteUserTagsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_USER_TAGS", + type: "ACTIVITY_TYPE_DELETE_USER_TAGS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2683,27 +2514,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - deleteUsers = async ( - input: SdkApiTypes.TDeleteUsersBody, - ): Promise => { + + deleteUsers = async (input: SdkApiTypes.TDeleteUsersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_users", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_USERS", - }, - "deleteUsersResult", - ); - }; + return this.command("/public/v1/submit/delete_users", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_USERS" + }, "deleteUsersResult"); + } - stampDeleteUsers = async ( - input: SdkApiTypes.TDeleteUsersBody, - ): Promise => { + + stampDeleteUsers = async (input: SdkApiTypes.TDeleteUsersBody): Promise => { if (!this.stamper) { return undefined; } @@ -2714,7 +2539,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_USERS", + type: "ACTIVITY_TYPE_DELETE_USERS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2724,39 +2549,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteWalletAccounts = async ( - input: SdkApiTypes.TDeleteWalletAccountsBody, - ): Promise => { + deleteWalletAccounts = async (input: SdkApiTypes.TDeleteWalletAccountsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_wallet_accounts", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS", - }, - "deleteWalletAccountsResult", - ); - }; + return this.command("/public/v1/submit/delete_wallet_accounts", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" + }, "deleteWalletAccountsResult"); + } - stampDeleteWalletAccounts = async ( - input: SdkApiTypes.TDeleteWalletAccountsBody, - ): Promise => { + + stampDeleteWalletAccounts = async (input: SdkApiTypes.TDeleteWalletAccountsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_wallet_accounts"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_wallet_accounts"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS", + type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2766,27 +2584,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - deleteWallets = async ( - input: SdkApiTypes.TDeleteWalletsBody, - ): Promise => { + deleteWallets = async (input: SdkApiTypes.TDeleteWalletsBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/delete_wallets", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_WALLETS", - }, - "deleteWalletsResult", - ); - }; + return this.command("/public/v1/submit/delete_wallets", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_DELETE_WALLETS" + }, "deleteWalletsResult"); + } - stampDeleteWallets = async ( - input: SdkApiTypes.TDeleteWalletsBody, - ): Promise => { + + stampDeleteWallets = async (input: SdkApiTypes.TDeleteWalletsBody): Promise => { if (!this.stamper) { return undefined; } @@ -2797,7 +2609,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_DELETE_WALLETS", + type: "ACTIVITY_TYPE_DELETE_WALLETS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2807,27 +2619,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - emailAuth = async ( - input: SdkApiTypes.TEmailAuthBody, - ): Promise => { + + emailAuth = async (input: SdkApiTypes.TEmailAuthBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/email_auth", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EMAIL_AUTH_V3", - }, - "emailAuthResult", - ); - }; + return this.command("/public/v1/submit/email_auth", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_EMAIL_AUTH_V3" + }, "emailAuthResult"); + } - stampEmailAuth = async ( - input: SdkApiTypes.TEmailAuthBody, - ): Promise => { + + stampEmailAuth = async (input: SdkApiTypes.TEmailAuthBody): Promise => { if (!this.stamper) { return undefined; } @@ -2838,7 +2644,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EMAIL_AUTH_V3", + type: "ACTIVITY_TYPE_EMAIL_AUTH_V3" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2848,39 +2654,33 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } ethSendTransaction = async ( input: SdkApiTypes.TEthSendTransactionBody, ): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/eth_send_transaction", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION", - }, - "ethSendTransactionResult", - ); - }; + return this.command("/public/v1/submit/eth_send_transaction", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" + }, "ethSendTransactionResult"); + } - stampEthSendTransaction = async ( - input: SdkApiTypes.TEthSendTransactionBody, - ): Promise => { + + stampEthSendTransaction = async (input: SdkApiTypes.TEthSendTransactionBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/eth_send_transaction"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/eth_send_transaction"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION", + type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2890,39 +2690,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - exportPrivateKey = async ( - input: SdkApiTypes.TExportPrivateKeyBody, - ): Promise => { + exportPrivateKey = async (input: SdkApiTypes.TExportPrivateKeyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/export_private_key", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY", - }, - "exportPrivateKeyResult", - ); - }; + return this.command("/public/v1/submit/export_private_key", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" + }, "exportPrivateKeyResult"); + } - stampExportPrivateKey = async ( - input: SdkApiTypes.TExportPrivateKeyBody, - ): Promise => { + + stampExportPrivateKey = async (input: SdkApiTypes.TExportPrivateKeyBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY", + type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2932,27 +2725,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - exportWallet = async ( - input: SdkApiTypes.TExportWalletBody, - ): Promise => { + exportWallet = async (input: SdkApiTypes.TExportWalletBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/export_wallet", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_WALLET", - }, - "exportWalletResult", - ); - }; + return this.command("/public/v1/submit/export_wallet", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_EXPORT_WALLET" + }, "exportWalletResult"); + } - stampExportWallet = async ( - input: SdkApiTypes.TExportWalletBody, - ): Promise => { + + stampExportWallet = async (input: SdkApiTypes.TExportWalletBody): Promise => { if (!this.stamper) { return undefined; } @@ -2963,7 +2750,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_WALLET", + type: "ACTIVITY_TYPE_EXPORT_WALLET" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -2973,39 +2760,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - exportWalletAccount = async ( - input: SdkApiTypes.TExportWalletAccountBody, - ): Promise => { + + exportWalletAccount = async (input: SdkApiTypes.TExportWalletAccountBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/export_wallet_account", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT", - }, - "exportWalletAccountResult", - ); - }; + return this.command("/public/v1/submit/export_wallet_account", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" + }, "exportWalletAccountResult"); + } - stampExportWalletAccount = async ( - input: SdkApiTypes.TExportWalletAccountBody, - ): Promise => { + + stampExportWalletAccount = async (input: SdkApiTypes.TExportWalletAccountBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT", + type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3015,39 +2795,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - importPrivateKey = async ( - input: SdkApiTypes.TImportPrivateKeyBody, - ): Promise => { + + importPrivateKey = async (input: SdkApiTypes.TImportPrivateKeyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/import_private_key", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY", - }, - "importPrivateKeyResult", - ); - }; + return this.command("/public/v1/submit/import_private_key", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" + }, "importPrivateKeyResult"); + } - stampImportPrivateKey = async ( - input: SdkApiTypes.TImportPrivateKeyBody, - ): Promise => { + + stampImportPrivateKey = async (input: SdkApiTypes.TImportPrivateKeyBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY", + type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3057,27 +2830,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - importWallet = async ( - input: SdkApiTypes.TImportWalletBody, - ): Promise => { + + importWallet = async (input: SdkApiTypes.TImportWalletBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/import_wallet", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_IMPORT_WALLET", - }, - "importWalletResult", - ); - }; + return this.command("/public/v1/submit/import_wallet", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_IMPORT_WALLET" + }, "importWalletResult"); + } - stampImportWallet = async ( - input: SdkApiTypes.TImportWalletBody, - ): Promise => { + + stampImportWallet = async (input: SdkApiTypes.TImportWalletBody): Promise => { if (!this.stamper) { return undefined; } @@ -3088,7 +2855,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_IMPORT_WALLET", + type: "ACTIVITY_TYPE_IMPORT_WALLET" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3098,39 +2865,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - initFiatOnRamp = async ( - input: SdkApiTypes.TInitFiatOnRampBody, - ): Promise => { + initFiatOnRamp = async (input: SdkApiTypes.TInitFiatOnRampBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_fiat_on_ramp", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP", - }, - "initFiatOnRampResult", - ); - }; + return this.command("/public/v1/submit/init_fiat_on_ramp", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" + }, "initFiatOnRampResult"); + } - stampInitFiatOnRamp = async ( - input: SdkApiTypes.TInitFiatOnRampBody, - ): Promise => { + + stampInitFiatOnRamp = async (input: SdkApiTypes.TInitFiatOnRampBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/init_fiat_on_ramp"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_fiat_on_ramp"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP", + type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3140,39 +2900,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - initImportPrivateKey = async ( - input: SdkApiTypes.TInitImportPrivateKeyBody, - ): Promise => { + initImportPrivateKey = async (input: SdkApiTypes.TInitImportPrivateKeyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_import_private_key", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY", - }, - "initImportPrivateKeyResult", - ); - }; + return this.command("/public/v1/submit/init_import_private_key", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" + }, "initImportPrivateKeyResult"); + } - stampInitImportPrivateKey = async ( - input: SdkApiTypes.TInitImportPrivateKeyBody, - ): Promise => { + + stampInitImportPrivateKey = async (input: SdkApiTypes.TInitImportPrivateKeyBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/init_import_private_key"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_private_key"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY", + type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3182,39 +2935,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - initImportWallet = async ( - input: SdkApiTypes.TInitImportWalletBody, - ): Promise => { + initImportWallet = async (input: SdkApiTypes.TInitImportWalletBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_import_wallet", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET", - }, - "initImportWalletResult", - ); - }; + return this.command("/public/v1/submit/init_import_wallet", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET" + }, "initImportWalletResult"); + } - stampInitImportWallet = async ( - input: SdkApiTypes.TInitImportWalletBody, - ): Promise => { + + stampInitImportWallet = async (input: SdkApiTypes.TInitImportWalletBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET", + type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3224,27 +2970,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - initOtp = async ( - input: SdkApiTypes.TInitOtpBody, - ): Promise => { + initOtp = async (input: SdkApiTypes.TInitOtpBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_otp", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_OTP_V2", - }, - "initOtpResult", - ); - }; + return this.command("/public/v1/submit/init_otp", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_OTP_V2" + }, "initOtpResult"); + } - stampInitOtp = async ( - input: SdkApiTypes.TInitOtpBody, - ): Promise => { + + stampInitOtp = async (input: SdkApiTypes.TInitOtpBody): Promise => { if (!this.stamper) { return undefined; } @@ -3255,7 +2995,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_OTP_V2", + type: "ACTIVITY_TYPE_INIT_OTP_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3265,27 +3005,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - initOtpAuth = async ( - input: SdkApiTypes.TInitOtpAuthBody, - ): Promise => { + + initOtpAuth = async (input: SdkApiTypes.TInitOtpAuthBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_otp_auth", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3", - }, - "initOtpAuthResultV2", - ); - }; + return this.command("/public/v1/submit/init_otp_auth", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" + }, "initOtpAuthResultV2"); + } - stampInitOtpAuth = async ( - input: SdkApiTypes.TInitOtpAuthBody, - ): Promise => { + + stampInitOtpAuth = async (input: SdkApiTypes.TInitOtpAuthBody): Promise => { if (!this.stamper) { return undefined; } @@ -3296,7 +3030,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3", + type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3306,39 +3040,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - initUserEmailRecovery = async ( - input: SdkApiTypes.TInitUserEmailRecoveryBody, - ): Promise => { + initUserEmailRecovery = async (input: SdkApiTypes.TInitUserEmailRecoveryBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/init_user_email_recovery", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2", - }, - "initUserEmailRecoveryResult", - ); - }; + return this.command("/public/v1/submit/init_user_email_recovery", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" + }, "initUserEmailRecoveryResult"); + } - stampInitUserEmailRecovery = async ( - input: SdkApiTypes.TInitUserEmailRecoveryBody, - ): Promise => { + + stampInitUserEmailRecovery = async (input: SdkApiTypes.TInitUserEmailRecoveryBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/init_user_email_recovery"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_user_email_recovery"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2", + type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3348,27 +3075,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - oauth = async ( - input: SdkApiTypes.TOauthBody, - ): Promise => { + oauth = async (input: SdkApiTypes.TOauthBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/oauth", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH", - }, - "oauthResult", - ); - }; + return this.command("/public/v1/submit/oauth", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_OAUTH" + }, "oauthResult"); + } - stampOauth = async ( - input: SdkApiTypes.TOauthBody, - ): Promise => { + + stampOauth = async (input: SdkApiTypes.TOauthBody): Promise => { if (!this.stamper) { return undefined; } @@ -3379,7 +3100,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH", + type: "ACTIVITY_TYPE_OAUTH" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3389,39 +3110,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - oauth2Authenticate = async ( - input: SdkApiTypes.TOauth2AuthenticateBody, - ): Promise => { + + oauth2Authenticate = async (input: SdkApiTypes.TOauth2AuthenticateBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/oauth2_authenticate", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE", - }, - "oauth2AuthenticateResult", - ); - }; + return this.command("/public/v1/submit/oauth2_authenticate", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" + }, "oauth2AuthenticateResult"); + } - stampOauth2Authenticate = async ( - input: SdkApiTypes.TOauth2AuthenticateBody, - ): Promise => { + + stampOauth2Authenticate = async (input: SdkApiTypes.TOauth2AuthenticateBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/oauth2_authenticate"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/oauth2_authenticate"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE", + type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3431,27 +3145,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - oauthLogin = async ( - input: SdkApiTypes.TOauthLoginBody, - ): Promise => { + + oauthLogin = async (input: SdkApiTypes.TOauthLoginBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/oauth_login", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH_LOGIN", - }, - "oauthLoginResult", - ); - }; + return this.command("/public/v1/submit/oauth_login", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_OAUTH_LOGIN" + }, "oauthLoginResult"); + } - stampOauthLogin = async ( - input: SdkApiTypes.TOauthLoginBody, - ): Promise => { + + stampOauthLogin = async (input: SdkApiTypes.TOauthLoginBody): Promise => { if (!this.stamper) { return undefined; } @@ -3462,7 +3170,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OAUTH_LOGIN", + type: "ACTIVITY_TYPE_OAUTH_LOGIN" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3472,27 +3180,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - otpAuth = async ( - input: SdkApiTypes.TOtpAuthBody, - ): Promise => { + otpAuth = async (input: SdkApiTypes.TOtpAuthBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/otp_auth", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OTP_AUTH", - }, - "otpAuthResult", - ); - }; + return this.command("/public/v1/submit/otp_auth", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_OTP_AUTH" + }, "otpAuthResult"); + } - stampOtpAuth = async ( - input: SdkApiTypes.TOtpAuthBody, - ): Promise => { + + stampOtpAuth = async (input: SdkApiTypes.TOtpAuthBody): Promise => { if (!this.stamper) { return undefined; } @@ -3503,7 +3205,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OTP_AUTH", + type: "ACTIVITY_TYPE_OTP_AUTH" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3513,27 +3215,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - otpLogin = async ( - input: SdkApiTypes.TOtpLoginBody, - ): Promise => { + + otpLogin = async (input: SdkApiTypes.TOtpLoginBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/otp_login", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OTP_LOGIN", - }, - "otpLoginResult", - ); - }; + return this.command("/public/v1/submit/otp_login", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_OTP_LOGIN" + }, "otpLoginResult"); + } - stampOtpLogin = async ( - input: SdkApiTypes.TOtpLoginBody, - ): Promise => { + + stampOtpLogin = async (input: SdkApiTypes.TOtpLoginBody): Promise => { if (!this.stamper) { return undefined; } @@ -3544,7 +3240,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_OTP_LOGIN", + type: "ACTIVITY_TYPE_OTP_LOGIN" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3554,27 +3250,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - recoverUser = async ( - input: SdkApiTypes.TRecoverUserBody, - ): Promise => { + recoverUser = async (input: SdkApiTypes.TRecoverUserBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/recover_user", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_RECOVER_USER", - }, - "recoverUserResult", - ); - }; + return this.command("/public/v1/submit/recover_user", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_RECOVER_USER" + }, "recoverUserResult"); + } - stampRecoverUser = async ( - input: SdkApiTypes.TRecoverUserBody, - ): Promise => { + + stampRecoverUser = async (input: SdkApiTypes.TRecoverUserBody): Promise => { if (!this.stamper) { return undefined; } @@ -3585,7 +3275,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_RECOVER_USER", + type: "ACTIVITY_TYPE_RECOVER_USER" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3595,35 +3285,33 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - rejectActivity = async ( - input: SdkApiTypes.TRejectActivityBody, - ): Promise => { + + rejectActivity = async (input: SdkApiTypes.TRejectActivityBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.activityDecision("/public/v1/submit/reject_activity", { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_REJECT_ACTIVITY", - }); - }; + return this.activityDecision("/public/v1/submit/reject_activity", + { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_REJECT_ACTIVITY" + }); + } - stampRejectActivity = async ( - input: SdkApiTypes.TRejectActivityBody, - ): Promise => { + + stampRejectActivity = async (input: SdkApiTypes.TRejectActivityBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_REJECT_ACTIVITY", + type: "ACTIVITY_TYPE_REJECT_ACTIVITY" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3633,39 +3321,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - removeOrganizationFeature = async ( - input: SdkApiTypes.TRemoveOrganizationFeatureBody, - ): Promise => { + + removeOrganizationFeature = async (input: SdkApiTypes.TRemoveOrganizationFeatureBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/remove_organization_feature", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE", - }, - "removeOrganizationFeatureResult", - ); - }; + return this.command("/public/v1/submit/remove_organization_feature", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" + }, "removeOrganizationFeatureResult"); + } - stampRemoveOrganizationFeature = async ( - input: SdkApiTypes.TRemoveOrganizationFeatureBody, - ): Promise => { + + stampRemoveOrganizationFeature = async (input: SdkApiTypes.TRemoveOrganizationFeatureBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE", + type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3675,39 +3356,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - setOrganizationFeature = async ( - input: SdkApiTypes.TSetOrganizationFeatureBody, - ): Promise => { + + setOrganizationFeature = async (input: SdkApiTypes.TSetOrganizationFeatureBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/set_organization_feature", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE", - }, - "setOrganizationFeatureResult", - ); - }; + return this.command("/public/v1/submit/set_organization_feature", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" + }, "setOrganizationFeatureResult"); + } - stampSetOrganizationFeature = async ( - input: SdkApiTypes.TSetOrganizationFeatureBody, - ): Promise => { + + stampSetOrganizationFeature = async (input: SdkApiTypes.TSetOrganizationFeatureBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE", + type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3717,39 +3391,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - signRawPayload = async ( - input: SdkApiTypes.TSignRawPayloadBody, - ): Promise => { + + signRawPayload = async (input: SdkApiTypes.TSignRawPayloadBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/sign_raw_payload", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2", - }, - "signRawPayloadResult", - ); - }; + return this.command("/public/v1/submit/sign_raw_payload", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" + }, "signRawPayloadResult"); + } - stampSignRawPayload = async ( - input: SdkApiTypes.TSignRawPayloadBody, - ): Promise => { + + stampSignRawPayload = async (input: SdkApiTypes.TSignRawPayloadBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2", + type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3759,39 +3426,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - signRawPayloads = async ( - input: SdkApiTypes.TSignRawPayloadsBody, - ): Promise => { - const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/sign_raw_payloads", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS", - }, - "signRawPayloadsResult", - ); - }; - stampSignRawPayloads = async ( - input: SdkApiTypes.TSignRawPayloadsBody, - ): Promise => { + signRawPayloads = async (input: SdkApiTypes.TSignRawPayloadsBody): Promise => { + const { organizationId, timestampMs, ...rest } = input; + return this.command("/public/v1/submit/sign_raw_payloads", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" + }, "signRawPayloadsResult"); + } + + + stampSignRawPayloads = async (input: SdkApiTypes.TSignRawPayloadsBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS", + type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3801,39 +3461,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - signTransaction = async ( - input: SdkApiTypes.TSignTransactionBody, - ): Promise => { + + signTransaction = async (input: SdkApiTypes.TSignTransactionBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/sign_transaction", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2", - }, - "signTransactionResult", - ); - }; + return this.command("/public/v1/submit/sign_transaction", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" + }, "signTransactionResult"); + } - stampSignTransaction = async ( - input: SdkApiTypes.TSignTransactionBody, - ): Promise => { + + stampSignTransaction = async (input: SdkApiTypes.TSignTransactionBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2", + type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3843,7 +3496,8 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + solSendTransaction = async ( input: SdkApiTypes.TSolSendTransactionBody, @@ -3891,21 +3545,16 @@ export class TurnkeySDKClientBase { input: SdkApiTypes.TStampLoginBody, ): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/stamp_login", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_STAMP_LOGIN", - }, - "stampLoginResult", - ); - }; + return this.command("/public/v1/submit/stamp_login", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_STAMP_LOGIN" + }, "stampLoginResult"); + } - stampStampLogin = async ( - input: SdkApiTypes.TStampLoginBody, - ): Promise => { + + stampStampLogin = async (input: SdkApiTypes.TStampLoginBody): Promise => { if (!this.stamper) { return undefined; } @@ -3916,7 +3565,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_STAMP_LOGIN", + type: "ACTIVITY_TYPE_STAMP_LOGIN" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3926,40 +3575,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateFiatOnRampCredential = async ( - input: SdkApiTypes.TUpdateFiatOnRampCredentialBody, - ): Promise => { + + updateFiatOnRampCredential = async (input: SdkApiTypes.TUpdateFiatOnRampCredentialBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_fiat_on_ramp_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL", - }, - "updateFiatOnRampCredentialResult", - ); - }; + return this.command("/public/v1/submit/update_fiat_on_ramp_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" + }, "updateFiatOnRampCredentialResult"); + } - stampUpdateFiatOnRampCredential = async ( - input: SdkApiTypes.TUpdateFiatOnRampCredentialBody, - ): Promise => { + + stampUpdateFiatOnRampCredential = async (input: SdkApiTypes.TUpdateFiatOnRampCredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + - "/public/v1/submit/update_fiat_on_ramp_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_fiat_on_ramp_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL", + type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -3969,39 +3610,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateOauth2Credential = async ( - input: SdkApiTypes.TUpdateOauth2CredentialBody, - ): Promise => { + + updateOauth2Credential = async (input: SdkApiTypes.TUpdateOauth2CredentialBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_oauth2_credential", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL", - }, - "updateOauth2CredentialResult", - ); - }; + return this.command("/public/v1/submit/update_oauth2_credential", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" + }, "updateOauth2CredentialResult"); + } - stampUpdateOauth2Credential = async ( - input: SdkApiTypes.TUpdateOauth2CredentialBody, - ): Promise => { + + stampUpdateOauth2Credential = async (input: SdkApiTypes.TUpdateOauth2CredentialBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_oauth2_credential"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_oauth2_credential"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL", + type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4011,27 +3645,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updatePolicy = async ( - input: SdkApiTypes.TUpdatePolicyBody, - ): Promise => { + + updatePolicy = async (input: SdkApiTypes.TUpdatePolicyBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_policy", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_POLICY_V2", - }, - "updatePolicyResultV2", - ); - }; + return this.command("/public/v1/submit/update_policy", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_POLICY_V2" + }, "updatePolicyResultV2"); + } - stampUpdatePolicy = async ( - input: SdkApiTypes.TUpdatePolicyBody, - ): Promise => { + + stampUpdatePolicy = async (input: SdkApiTypes.TUpdatePolicyBody): Promise => { if (!this.stamper) { return undefined; } @@ -4042,7 +3670,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_POLICY_V2", + type: "ACTIVITY_TYPE_UPDATE_POLICY_V2" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4052,39 +3680,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - updatePrivateKeyTag = async ( - input: SdkApiTypes.TUpdatePrivateKeyTagBody, - ): Promise => { + updatePrivateKeyTag = async (input: SdkApiTypes.TUpdatePrivateKeyTagBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_private_key_tag", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG", - }, - "updatePrivateKeyTagResult", - ); - }; + return this.command("/public/v1/submit/update_private_key_tag", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" + }, "updatePrivateKeyTagResult"); + } - stampUpdatePrivateKeyTag = async ( - input: SdkApiTypes.TUpdatePrivateKeyTagBody, - ): Promise => { + + stampUpdatePrivateKeyTag = async (input: SdkApiTypes.TUpdatePrivateKeyTagBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_private_key_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_private_key_tag"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG", + type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4094,39 +3715,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - updateRootQuorum = async ( - input: SdkApiTypes.TUpdateRootQuorumBody, - ): Promise => { + updateRootQuorum = async (input: SdkApiTypes.TUpdateRootQuorumBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_root_quorum", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM", - }, - "updateRootQuorumResult", - ); - }; + return this.command("/public/v1/submit/update_root_quorum", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" + }, "updateRootQuorumResult"); + } - stampUpdateRootQuorum = async ( - input: SdkApiTypes.TUpdateRootQuorumBody, - ): Promise => { + + stampUpdateRootQuorum = async (input: SdkApiTypes.TUpdateRootQuorumBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM", + type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4136,27 +3750,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - updateUser = async ( - input: SdkApiTypes.TUpdateUserBody, - ): Promise => { + updateUser = async (input: SdkApiTypes.TUpdateUserBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_user", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER", - }, - "updateUserResult", - ); - }; + return this.command("/public/v1/submit/update_user", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_USER" + }, "updateUserResult"); + } - stampUpdateUser = async ( - input: SdkApiTypes.TUpdateUserBody, - ): Promise => { + + stampUpdateUser = async (input: SdkApiTypes.TUpdateUserBody): Promise => { if (!this.stamper) { return undefined; } @@ -4167,7 +3775,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER", + type: "ACTIVITY_TYPE_UPDATE_USER" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4177,39 +3785,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateUserEmail = async ( - input: SdkApiTypes.TUpdateUserEmailBody, - ): Promise => { + + updateUserEmail = async (input: SdkApiTypes.TUpdateUserEmailBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_user_email", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL", - }, - "updateUserEmailResult", - ); - }; + return this.command("/public/v1/submit/update_user_email", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL" + }, "updateUserEmailResult"); + } - stampUpdateUserEmail = async ( - input: SdkApiTypes.TUpdateUserEmailBody, - ): Promise => { + + stampUpdateUserEmail = async (input: SdkApiTypes.TUpdateUserEmailBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_user_email"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_email"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL", + type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4219,39 +3820,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateUserName = async ( - input: SdkApiTypes.TUpdateUserNameBody, - ): Promise => { + + updateUserName = async (input: SdkApiTypes.TUpdateUserNameBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_user_name", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_NAME", - }, - "updateUserNameResult", - ); - }; + return this.command("/public/v1/submit/update_user_name", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_USER_NAME" + }, "updateUserNameResult"); + } - stampUpdateUserName = async ( - input: SdkApiTypes.TUpdateUserNameBody, - ): Promise => { + + stampUpdateUserName = async (input: SdkApiTypes.TUpdateUserNameBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_user_name"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_name"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_NAME", + type: "ACTIVITY_TYPE_UPDATE_USER_NAME" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4261,39 +3855,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateUserPhoneNumber = async ( - input: SdkApiTypes.TUpdateUserPhoneNumberBody, - ): Promise => { + + updateUserPhoneNumber = async (input: SdkApiTypes.TUpdateUserPhoneNumberBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_user_phone_number", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER", - }, - "updateUserPhoneNumberResult", - ); - }; + return this.command("/public/v1/submit/update_user_phone_number", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" + }, "updateUserPhoneNumberResult"); + } - stampUpdateUserPhoneNumber = async ( - input: SdkApiTypes.TUpdateUserPhoneNumberBody, - ): Promise => { + + stampUpdateUserPhoneNumber = async (input: SdkApiTypes.TUpdateUserPhoneNumberBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_user_phone_number"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_phone_number"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER", + type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4303,39 +3890,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateUserTag = async ( - input: SdkApiTypes.TUpdateUserTagBody, - ): Promise => { + + updateUserTag = async (input: SdkApiTypes.TUpdateUserTagBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_user_tag", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_TAG", - }, - "updateUserTagResult", - ); - }; + return this.command("/public/v1/submit/update_user_tag", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_USER_TAG" + }, "updateUserTagResult"); + } - stampUpdateUserTag = async ( - input: SdkApiTypes.TUpdateUserTagBody, - ): Promise => { + + stampUpdateUserTag = async (input: SdkApiTypes.TUpdateUserTagBody): Promise => { if (!this.stamper) { return undefined; } const { organizationId, timestampMs, ...parameters } = input; - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; const bodyWithType = { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_USER_TAG", + type: "ACTIVITY_TYPE_UPDATE_USER_TAG" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4345,27 +3925,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - updateWallet = async ( - input: SdkApiTypes.TUpdateWalletBody, - ): Promise => { + + updateWallet = async (input: SdkApiTypes.TUpdateWalletBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/update_wallet", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_WALLET", - }, - "updateWalletResult", - ); - }; + return this.command("/public/v1/submit/update_wallet", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_UPDATE_WALLET" + }, "updateWalletResult"); + } - stampUpdateWallet = async ( - input: SdkApiTypes.TUpdateWalletBody, - ): Promise => { + + stampUpdateWallet = async (input: SdkApiTypes.TUpdateWalletBody): Promise => { if (!this.stamper) { return undefined; } @@ -4376,7 +3950,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_UPDATE_WALLET", + type: "ACTIVITY_TYPE_UPDATE_WALLET" }; const stringifiedBody = JSON.stringify(bodyWithType); @@ -4386,27 +3960,21 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - verifyOtp = async ( - input: SdkApiTypes.TVerifyOtpBody, - ): Promise => { + verifyOtp = async (input: SdkApiTypes.TVerifyOtpBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - return this.command( - "/public/v1/submit/verify_otp", - { - parameters: rest, - organizationId: organizationId ?? this.config.organizationId, - timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_VERIFY_OTP", - }, - "verifyOtpResult", - ); - }; + return this.command("/public/v1/submit/verify_otp", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_VERIFY_OTP" + }, "verifyOtpResult"); + } - stampVerifyOtp = async ( - input: SdkApiTypes.TVerifyOtpBody, - ): Promise => { + + stampVerifyOtp = async (input: SdkApiTypes.TVerifyOtpBody): Promise => { if (!this.stamper) { return undefined; } @@ -4417,7 +3985,7 @@ export class TurnkeySDKClientBase { parameters, organizationId: organizationId ?? this.config.organizationId, timestampMs: timestampMs ?? String(Date.now()), - type: "ACTIVITY_TYPE_VERIFY_OTP", + type: "ACTIVITY_TYPE_VERIFY_OTP" }; const stringifiedBody = JSON.stringify(bodyWithType); diff --git a/packages/sdk-server/src/__generated__/sdk_api_types.ts b/packages/sdk-server/src/__generated__/sdk_api_types.ts index 3f6abefdc..40d7c823c 100644 --- a/packages/sdk-server/src/__generated__/sdk_api_types.ts +++ b/packages/sdk-server/src/__generated__/sdk_api_types.ts @@ -2,249 +2,147 @@ import type { operations, definitions } from "../__inputs__/public_api.types"; -import type { - queryOverrideParams, - commandOverrideParams, -} from "../__types__/base"; +import type { queryOverrideParams, commandOverrideParams } from "../__types__/base"; -export type TGetActivityResponse = - operations["PublicApiService_GetActivity"]["responses"]["200"]["schema"]; +export type TGetActivityResponse = operations["PublicApiService_GetActivity"]["responses"]["200"]["schema"]; export type TGetActivityInput = { body: TGetActivityBody }; -export type TGetActivityBody = Omit< - operations["PublicApiService_GetActivity"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetActivityBody = Omit & queryOverrideParams; -export type TGetApiKeyResponse = - operations["PublicApiService_GetApiKey"]["responses"]["200"]["schema"]; +export type TGetApiKeyResponse = operations["PublicApiService_GetApiKey"]["responses"]["200"]["schema"]; export type TGetApiKeyInput = { body: TGetApiKeyBody }; -export type TGetApiKeyBody = Omit< - operations["PublicApiService_GetApiKey"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetApiKeyBody = Omit & queryOverrideParams; -export type TGetApiKeysResponse = - operations["PublicApiService_GetApiKeys"]["responses"]["200"]["schema"]; +export type TGetApiKeysResponse = operations["PublicApiService_GetApiKeys"]["responses"]["200"]["schema"]; export type TGetApiKeysInput = { body: TGetApiKeysBody }; -export type TGetApiKeysBody = Omit< - operations["PublicApiService_GetApiKeys"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetApiKeysBody = Omit & queryOverrideParams; export type TGetAuthenticatorResponse = operations["PublicApiService_GetAuthenticator"]["responses"]["200"]["schema"]; export type TGetAuthenticatorInput = { body: TGetAuthenticatorBody }; -export type TGetAuthenticatorBody = Omit< - operations["PublicApiService_GetAuthenticator"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetAuthenticatorBody = Omit & queryOverrideParams; -export type TGetAuthenticatorsResponse = - operations["PublicApiService_GetAuthenticators"]["responses"]["200"]["schema"]; +export type TGetAuthenticatorsResponse = operations["PublicApiService_GetAuthenticators"]["responses"]["200"]["schema"]; export type TGetAuthenticatorsInput = { body: TGetAuthenticatorsBody }; -export type TGetAuthenticatorsBody = Omit< - operations["PublicApiService_GetAuthenticators"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetAuthenticatorsBody = Omit & queryOverrideParams; -export type TGetBootProofResponse = - operations["PublicApiService_GetBootProof"]["responses"]["200"]["schema"]; +export type TGetBootProofResponse = operations["PublicApiService_GetBootProof"]["responses"]["200"]["schema"]; export type TGetBootProofInput = { body: TGetBootProofBody }; -export type TGetBootProofBody = Omit< - operations["PublicApiService_GetBootProof"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetBootProofBody = Omit & queryOverrideParams; -export type TGetGasUsageResponse = - operations["PublicApiService_GetGasUsage"]["responses"]["200"]["schema"]; +export type TGetGasUsageResponse = operations["PublicApiService_GetGasUsage"]["responses"]["200"]["schema"]; export type TGetGasUsageInput = { body: TGetGasUsageBody }; -export type TGetGasUsageBody = Omit< - operations["PublicApiService_GetGasUsage"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetGasUsageBody = Omit & queryOverrideParams; -export type TGetLatestBootProofResponse = - operations["PublicApiService_GetLatestBootProof"]["responses"]["200"]["schema"]; +export type TGetLatestBootProofResponse = operations["PublicApiService_GetLatestBootProof"]["responses"]["200"]["schema"]; export type TGetLatestBootProofInput = { body: TGetLatestBootProofBody }; -export type TGetLatestBootProofBody = Omit< - operations["PublicApiService_GetLatestBootProof"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetLatestBootProofBody = Omit & queryOverrideParams; -export type TGetNoncesResponse = - operations["PublicApiService_GetNonces"]["responses"]["200"]["schema"]; +export type TGetNoncesResponse = operations["PublicApiService_GetNonces"]["responses"]["200"]["schema"]; export type TGetNoncesInput = { body: TGetNoncesBody }; -export type TGetNoncesBody = Omit< - operations["PublicApiService_GetNonces"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetNoncesBody = Omit & queryOverrideParams; -export type TGetOauth2CredentialResponse = - operations["PublicApiService_GetOauth2Credential"]["responses"]["200"]["schema"]; +export type TGetOauth2CredentialResponse = operations["PublicApiService_GetOauth2Credential"]["responses"]["200"]["schema"]; export type TGetOauth2CredentialInput = { body: TGetOauth2CredentialBody }; -export type TGetOauth2CredentialBody = Omit< - operations["PublicApiService_GetOauth2Credential"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetOauth2CredentialBody = Omit & queryOverrideParams; -export type TGetOauthProvidersResponse = - operations["PublicApiService_GetOauthProviders"]["responses"]["200"]["schema"]; +export type TGetOauthProvidersResponse = operations["PublicApiService_GetOauthProviders"]["responses"]["200"]["schema"]; export type TGetOauthProvidersInput = { body: TGetOauthProvidersBody }; -export type TGetOauthProvidersBody = Omit< - operations["PublicApiService_GetOauthProviders"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetOauthProvidersBody = Omit & queryOverrideParams; -export type TGetOnRampTransactionStatusResponse = - operations["PublicApiService_GetOnRampTransactionStatus"]["responses"]["200"]["schema"]; +export type TGetOnRampTransactionStatusResponse = operations["PublicApiService_GetOnRampTransactionStatus"]["responses"]["200"]["schema"]; -export type TGetOnRampTransactionStatusInput = { - body: TGetOnRampTransactionStatusBody; -}; +export type TGetOnRampTransactionStatusInput = { body: TGetOnRampTransactionStatusBody }; -export type TGetOnRampTransactionStatusBody = Omit< - operations["PublicApiService_GetOnRampTransactionStatus"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetOnRampTransactionStatusBody = Omit & queryOverrideParams; export type TGetOrganizationConfigsResponse = operations["PublicApiService_GetOrganizationConfigs"]["responses"]["200"]["schema"]; -export type TGetOrganizationConfigsInput = { - body: TGetOrganizationConfigsBody; -}; +export type TGetOrganizationConfigsInput = { body: TGetOrganizationConfigsBody }; -export type TGetOrganizationConfigsBody = Omit< - operations["PublicApiService_GetOrganizationConfigs"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetOrganizationConfigsBody = Omit & queryOverrideParams; -export type TGetPolicyResponse = - operations["PublicApiService_GetPolicy"]["responses"]["200"]["schema"]; +export type TGetPolicyResponse = operations["PublicApiService_GetPolicy"]["responses"]["200"]["schema"]; export type TGetPolicyInput = { body: TGetPolicyBody }; -export type TGetPolicyBody = Omit< - operations["PublicApiService_GetPolicy"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetPolicyBody = Omit & queryOverrideParams; -export type TGetPolicyEvaluationsResponse = - operations["PublicApiService_GetPolicyEvaluations"]["responses"]["200"]["schema"]; +export type TGetPolicyEvaluationsResponse = operations["PublicApiService_GetPolicyEvaluations"]["responses"]["200"]["schema"]; export type TGetPolicyEvaluationsInput = { body: TGetPolicyEvaluationsBody }; -export type TGetPolicyEvaluationsBody = Omit< - operations["PublicApiService_GetPolicyEvaluations"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetPolicyEvaluationsBody = Omit & queryOverrideParams; -export type TGetPrivateKeyResponse = - operations["PublicApiService_GetPrivateKey"]["responses"]["200"]["schema"]; +export type TGetPrivateKeyResponse = operations["PublicApiService_GetPrivateKey"]["responses"]["200"]["schema"]; export type TGetPrivateKeyInput = { body: TGetPrivateKeyBody }; -export type TGetPrivateKeyBody = Omit< - operations["PublicApiService_GetPrivateKey"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetPrivateKeyBody = Omit & queryOverrideParams; -export type TGetSendTransactionStatusResponse = - operations["PublicApiService_GetSendTransactionStatus"]["responses"]["200"]["schema"]; +export type TGetSendTransactionStatusResponse = operations["PublicApiService_GetSendTransactionStatus"]["responses"]["200"]["schema"]; -export type TGetSendTransactionStatusInput = { - body: TGetSendTransactionStatusBody; -}; +export type TGetSendTransactionStatusInput = { body: TGetSendTransactionStatusBody }; -export type TGetSendTransactionStatusBody = Omit< - operations["PublicApiService_GetSendTransactionStatus"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetSendTransactionStatusBody = Omit & queryOverrideParams; -export type TGetSmartContractInterfaceResponse = - operations["PublicApiService_GetSmartContractInterface"]["responses"]["200"]["schema"]; +export type TGetSmartContractInterfaceResponse = operations["PublicApiService_GetSmartContractInterface"]["responses"]["200"]["schema"]; -export type TGetSmartContractInterfaceInput = { - body: TGetSmartContractInterfaceBody; -}; +export type TGetSmartContractInterfaceInput = { body: TGetSmartContractInterfaceBody }; -export type TGetSmartContractInterfaceBody = Omit< - operations["PublicApiService_GetSmartContractInterface"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetSmartContractInterfaceBody = Omit & queryOverrideParams; + +export type TGetTvcAppResponse = operations["PublicApiService_GetTvcApp"]["responses"]["200"]["schema"]; + +export type TGetTvcAppInput = { body: TGetTvcAppBody }; + +export type TGetTvcAppBody = Omit & queryOverrideParams; + +export type TGetTvcDeploymentResponse = operations["PublicApiService_GetTvcDeployment"]["responses"]["200"]["schema"]; + +export type TGetTvcDeploymentInput = { body: TGetTvcDeploymentBody }; -export type TGetUserResponse = - operations["PublicApiService_GetUser"]["responses"]["200"]["schema"]; +export type TGetTvcDeploymentBody = Omit & queryOverrideParams; + +export type TGetUserResponse = operations["PublicApiService_GetUser"]["responses"]["200"]["schema"]; export type TGetUserInput = { body: TGetUserBody }; -export type TGetUserBody = Omit< - operations["PublicApiService_GetUser"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetUserBody = Omit & queryOverrideParams; -export type TGetWalletResponse = - operations["PublicApiService_GetWallet"]["responses"]["200"]["schema"]; +export type TGetWalletResponse = operations["PublicApiService_GetWallet"]["responses"]["200"]["schema"]; export type TGetWalletInput = { body: TGetWalletBody }; -export type TGetWalletBody = Omit< - operations["PublicApiService_GetWallet"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetWalletBody = Omit & queryOverrideParams; -export type TGetWalletAccountResponse = - operations["PublicApiService_GetWalletAccount"]["responses"]["200"]["schema"]; +export type TGetWalletAccountResponse = operations["PublicApiService_GetWalletAccount"]["responses"]["200"]["schema"]; export type TGetWalletAccountInput = { body: TGetWalletAccountBody }; -export type TGetWalletAccountBody = Omit< - operations["PublicApiService_GetWalletAccount"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetWalletAccountBody = Omit & queryOverrideParams; export type TGetWalletAddressBalancesResponse = operations["PublicApiService_GetWalletAddressBalances"]["responses"]["200"]["schema"]; @@ -264,103 +162,55 @@ export type TGetActivitiesResponse = export type TGetActivitiesInput = { body: TGetActivitiesBody }; -export type TGetActivitiesBody = Omit< - operations["PublicApiService_GetActivities"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetActivitiesBody = Omit & queryOverrideParams; -export type TGetAppProofsResponse = - operations["PublicApiService_GetAppProofs"]["responses"]["200"]["schema"]; +export type TGetAppProofsResponse = operations["PublicApiService_GetAppProofs"]["responses"]["200"]["schema"]; export type TGetAppProofsInput = { body: TGetAppProofsBody }; -export type TGetAppProofsBody = Omit< - operations["PublicApiService_GetAppProofs"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetAppProofsBody = Omit & queryOverrideParams; -export type TListFiatOnRampCredentialsResponse = - operations["PublicApiService_ListFiatOnRampCredentials"]["responses"]["200"]["schema"]; +export type TListFiatOnRampCredentialsResponse = operations["PublicApiService_ListFiatOnRampCredentials"]["responses"]["200"]["schema"]; -export type TListFiatOnRampCredentialsInput = { - body: TListFiatOnRampCredentialsBody; -}; +export type TListFiatOnRampCredentialsInput = { body: TListFiatOnRampCredentialsBody }; -export type TListFiatOnRampCredentialsBody = Omit< - operations["PublicApiService_ListFiatOnRampCredentials"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TListFiatOnRampCredentialsBody = Omit & queryOverrideParams; -export type TListOauth2CredentialsResponse = - operations["PublicApiService_ListOauth2Credentials"]["responses"]["200"]["schema"]; +export type TListOauth2CredentialsResponse = operations["PublicApiService_ListOauth2Credentials"]["responses"]["200"]["schema"]; export type TListOauth2CredentialsInput = { body: TListOauth2CredentialsBody }; -export type TListOauth2CredentialsBody = Omit< - operations["PublicApiService_ListOauth2Credentials"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TListOauth2CredentialsBody = Omit & queryOverrideParams; -export type TGetPoliciesResponse = - operations["PublicApiService_GetPolicies"]["responses"]["200"]["schema"]; +export type TGetPoliciesResponse = operations["PublicApiService_GetPolicies"]["responses"]["200"]["schema"]; export type TGetPoliciesInput = { body: TGetPoliciesBody }; -export type TGetPoliciesBody = Omit< - operations["PublicApiService_GetPolicies"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetPoliciesBody = Omit & queryOverrideParams; -export type TListPrivateKeyTagsResponse = - operations["PublicApiService_ListPrivateKeyTags"]["responses"]["200"]["schema"]; +export type TListPrivateKeyTagsResponse = operations["PublicApiService_ListPrivateKeyTags"]["responses"]["200"]["schema"]; export type TListPrivateKeyTagsInput = { body: TListPrivateKeyTagsBody }; -export type TListPrivateKeyTagsBody = Omit< - operations["PublicApiService_ListPrivateKeyTags"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TListPrivateKeyTagsBody = Omit & queryOverrideParams; -export type TGetPrivateKeysResponse = - operations["PublicApiService_GetPrivateKeys"]["responses"]["200"]["schema"]; +export type TGetPrivateKeysResponse = operations["PublicApiService_GetPrivateKeys"]["responses"]["200"]["schema"]; export type TGetPrivateKeysInput = { body: TGetPrivateKeysBody }; -export type TGetPrivateKeysBody = Omit< - operations["PublicApiService_GetPrivateKeys"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetPrivateKeysBody = Omit & queryOverrideParams; -export type TGetSmartContractInterfacesResponse = - operations["PublicApiService_GetSmartContractInterfaces"]["responses"]["200"]["schema"]; +export type TGetSmartContractInterfacesResponse = operations["PublicApiService_GetSmartContractInterfaces"]["responses"]["200"]["schema"]; -export type TGetSmartContractInterfacesInput = { - body: TGetSmartContractInterfacesBody; -}; +export type TGetSmartContractInterfacesInput = { body: TGetSmartContractInterfacesBody }; -export type TGetSmartContractInterfacesBody = Omit< - operations["PublicApiService_GetSmartContractInterfaces"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetSmartContractInterfacesBody = Omit & queryOverrideParams; -export type TGetSubOrgIdsResponse = - operations["PublicApiService_GetSubOrgIds"]["responses"]["200"]["schema"]; +export type TGetSubOrgIdsResponse = operations["PublicApiService_GetSubOrgIds"]["responses"]["200"]["schema"]; export type TGetSubOrgIdsInput = { body: TGetSubOrgIdsBody }; -export type TGetSubOrgIdsBody = Omit< - operations["PublicApiService_GetSubOrgIds"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetSubOrgIdsBody = Omit & queryOverrideParams; export type TListSupportedAssetsResponse = operations["PublicApiService_ListSupportedAssets"]["responses"]["200"]["schema"]; @@ -378,86 +228,49 @@ export type TListUserTagsResponse = export type TListUserTagsInput = { body: TListUserTagsBody }; -export type TListUserTagsBody = Omit< - operations["PublicApiService_ListUserTags"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TListUserTagsBody = Omit & queryOverrideParams; -export type TGetUsersResponse = - operations["PublicApiService_GetUsers"]["responses"]["200"]["schema"]; +export type TGetUsersResponse = operations["PublicApiService_GetUsers"]["responses"]["200"]["schema"]; export type TGetUsersInput = { body: TGetUsersBody }; -export type TGetUsersBody = Omit< - operations["PublicApiService_GetUsers"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetUsersBody = Omit & queryOverrideParams; -export type TGetVerifiedSubOrgIdsResponse = - operations["PublicApiService_GetVerifiedSubOrgIds"]["responses"]["200"]["schema"]; +export type TGetVerifiedSubOrgIdsResponse = operations["PublicApiService_GetVerifiedSubOrgIds"]["responses"]["200"]["schema"]; export type TGetVerifiedSubOrgIdsInput = { body: TGetVerifiedSubOrgIdsBody }; -export type TGetVerifiedSubOrgIdsBody = Omit< - operations["PublicApiService_GetVerifiedSubOrgIds"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetVerifiedSubOrgIdsBody = Omit & queryOverrideParams; -export type TGetWalletAccountsResponse = - operations["PublicApiService_GetWalletAccounts"]["responses"]["200"]["schema"]; +export type TGetWalletAccountsResponse = operations["PublicApiService_GetWalletAccounts"]["responses"]["200"]["schema"]; export type TGetWalletAccountsInput = { body: TGetWalletAccountsBody }; -export type TGetWalletAccountsBody = Omit< - operations["PublicApiService_GetWalletAccounts"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetWalletAccountsBody = Omit & queryOverrideParams; -export type TGetWalletsResponse = - operations["PublicApiService_GetWallets"]["responses"]["200"]["schema"]; +export type TGetWalletsResponse = operations["PublicApiService_GetWallets"]["responses"]["200"]["schema"]; export type TGetWalletsInput = { body: TGetWalletsBody }; -export type TGetWalletsBody = Omit< - operations["PublicApiService_GetWallets"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetWalletsBody = Omit & queryOverrideParams; -export type TGetWhoamiResponse = - operations["PublicApiService_GetWhoami"]["responses"]["200"]["schema"]; +export type TGetWhoamiResponse = operations["PublicApiService_GetWhoami"]["responses"]["200"]["schema"]; export type TGetWhoamiInput = { body: TGetWhoamiBody }; -export type TGetWhoamiBody = Omit< - operations["PublicApiService_GetWhoami"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetWhoamiBody = Omit & queryOverrideParams; -export type TApproveActivityResponse = - operations["PublicApiService_ApproveActivity"]["responses"]["200"]["schema"]["activity"]["result"] & - definitions["v1ActivityResponse"]; +export type TApproveActivityResponse = operations["PublicApiService_ApproveActivity"]["responses"]["200"]["schema"]["activity"]["result"] & definitions["v1ActivityResponse"]; export type TApproveActivityInput = { body: TApproveActivityBody }; -export type TApproveActivityBody = - operations["PublicApiService_ApproveActivity"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TApproveActivityBody = operations["PublicApiService_ApproveActivity"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateApiKeysResponse = - operations["PublicApiService_CreateApiKeys"]["responses"]["200"]["schema"]["activity"]["result"]["createApiKeysResult"] & - definitions["v1ActivityResponse"]; +export type TCreateApiKeysResponse = operations["PublicApiService_CreateApiKeys"]["responses"]["200"]["schema"]["activity"]["result"]["createApiKeysResult"] & definitions["v1ActivityResponse"]; export type TCreateApiKeysInput = { body: TCreateApiKeysBody }; -export type TCreateApiKeysBody = - operations["PublicApiService_CreateApiKeys"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateApiKeysBody = operations["PublicApiService_CreateApiKeys"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; export type TCreateAuthenticatorsResponse = operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["createAuthenticatorsResult"] & @@ -465,353 +278,223 @@ export type TCreateAuthenticatorsResponse = export type TCreateAuthenticatorsInput = { body: TCreateAuthenticatorsBody }; -export type TCreateAuthenticatorsBody = - operations["PublicApiService_CreateAuthenticators"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateAuthenticatorsBody = operations["PublicApiService_CreateAuthenticators"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateFiatOnRampCredentialResponse = - operations["PublicApiService_CreateFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["createFiatOnRampCredentialResult"] & - definitions["v1ActivityResponse"]; +export type TCreateFiatOnRampCredentialResponse = operations["PublicApiService_CreateFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["createFiatOnRampCredentialResult"] & definitions["v1ActivityResponse"]; -export type TCreateFiatOnRampCredentialInput = { - body: TCreateFiatOnRampCredentialBody; -}; +export type TCreateFiatOnRampCredentialInput = { body: TCreateFiatOnRampCredentialBody }; -export type TCreateFiatOnRampCredentialBody = - operations["PublicApiService_CreateFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateFiatOnRampCredentialBody = operations["PublicApiService_CreateFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateInvitationsResponse = - operations["PublicApiService_CreateInvitations"]["responses"]["200"]["schema"]["activity"]["result"]["createInvitationsResult"] & - definitions["v1ActivityResponse"]; +export type TCreateInvitationsResponse = operations["PublicApiService_CreateInvitations"]["responses"]["200"]["schema"]["activity"]["result"]["createInvitationsResult"] & definitions["v1ActivityResponse"]; export type TCreateInvitationsInput = { body: TCreateInvitationsBody }; -export type TCreateInvitationsBody = - operations["PublicApiService_CreateInvitations"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateInvitationsBody = operations["PublicApiService_CreateInvitations"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateOauth2CredentialResponse = - operations["PublicApiService_CreateOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["createOauth2CredentialResult"] & - definitions["v1ActivityResponse"]; +export type TCreateOauth2CredentialResponse = operations["PublicApiService_CreateOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["createOauth2CredentialResult"] & definitions["v1ActivityResponse"]; -export type TCreateOauth2CredentialInput = { - body: TCreateOauth2CredentialBody; -}; +export type TCreateOauth2CredentialInput = { body: TCreateOauth2CredentialBody }; -export type TCreateOauth2CredentialBody = - operations["PublicApiService_CreateOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateOauth2CredentialBody = operations["PublicApiService_CreateOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateOauthProvidersResponse = - operations["PublicApiService_CreateOauthProviders"]["responses"]["200"]["schema"]["activity"]["result"]["createOauthProvidersResult"] & - definitions["v1ActivityResponse"]; +export type TCreateOauthProvidersResponse = operations["PublicApiService_CreateOauthProviders"]["responses"]["200"]["schema"]["activity"]["result"]["createOauthProvidersResult"] & definitions["v1ActivityResponse"]; export type TCreateOauthProvidersInput = { body: TCreateOauthProvidersBody }; -export type TCreateOauthProvidersBody = - operations["PublicApiService_CreateOauthProviders"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateOauthProvidersBody = operations["PublicApiService_CreateOauthProviders"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreatePoliciesResponse = - operations["PublicApiService_CreatePolicies"]["responses"]["200"]["schema"]["activity"]["result"]["createPoliciesResult"] & - definitions["v1ActivityResponse"]; +export type TCreatePoliciesResponse = operations["PublicApiService_CreatePolicies"]["responses"]["200"]["schema"]["activity"]["result"]["createPoliciesResult"] & definitions["v1ActivityResponse"]; export type TCreatePoliciesInput = { body: TCreatePoliciesBody }; -export type TCreatePoliciesBody = - operations["PublicApiService_CreatePolicies"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreatePoliciesBody = operations["PublicApiService_CreatePolicies"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreatePolicyResponse = - operations["PublicApiService_CreatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["createPolicyResult"] & - definitions["v1ActivityResponse"]; +export type TCreatePolicyResponse = operations["PublicApiService_CreatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["createPolicyResult"] & definitions["v1ActivityResponse"]; export type TCreatePolicyInput = { body: TCreatePolicyBody }; -export type TCreatePolicyBody = - operations["PublicApiService_CreatePolicy"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreatePolicyBody = operations["PublicApiService_CreatePolicy"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreatePrivateKeyTagResponse = - operations["PublicApiService_CreatePrivateKeyTag"]["responses"]["200"]["schema"]["activity"]["result"]["createPrivateKeyTagResult"] & - definitions["v1ActivityResponse"]; +export type TCreatePrivateKeyTagResponse = operations["PublicApiService_CreatePrivateKeyTag"]["responses"]["200"]["schema"]["activity"]["result"]["createPrivateKeyTagResult"] & definitions["v1ActivityResponse"]; export type TCreatePrivateKeyTagInput = { body: TCreatePrivateKeyTagBody }; -export type TCreatePrivateKeyTagBody = - operations["PublicApiService_CreatePrivateKeyTag"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreatePrivateKeyTagBody = operations["PublicApiService_CreatePrivateKeyTag"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreatePrivateKeysResponse = - operations["PublicApiService_CreatePrivateKeys"]["responses"]["200"]["schema"]["activity"]["result"]["createPrivateKeysResultV2"] & - definitions["v1ActivityResponse"]; +export type TCreatePrivateKeysResponse = operations["PublicApiService_CreatePrivateKeys"]["responses"]["200"]["schema"]["activity"]["result"]["createPrivateKeysResultV2"] & definitions["v1ActivityResponse"]; export type TCreatePrivateKeysInput = { body: TCreatePrivateKeysBody }; -export type TCreatePrivateKeysBody = - operations["PublicApiService_CreatePrivateKeys"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreatePrivateKeysBody = operations["PublicApiService_CreatePrivateKeys"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateReadOnlySessionResponse = - operations["PublicApiService_CreateReadOnlySession"]["responses"]["200"]["schema"]["activity"]["result"]["createReadOnlySessionResult"] & - definitions["v1ActivityResponse"]; +export type TCreateReadOnlySessionResponse = operations["PublicApiService_CreateReadOnlySession"]["responses"]["200"]["schema"]["activity"]["result"]["createReadOnlySessionResult"] & definitions["v1ActivityResponse"]; export type TCreateReadOnlySessionInput = { body: TCreateReadOnlySessionBody }; -export type TCreateReadOnlySessionBody = - operations["PublicApiService_CreateReadOnlySession"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateReadOnlySessionBody = operations["PublicApiService_CreateReadOnlySession"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateReadWriteSessionResponse = - operations["PublicApiService_CreateReadWriteSession"]["responses"]["200"]["schema"]["activity"]["result"]["createReadWriteSessionResultV2"] & - definitions["v1ActivityResponse"]; +export type TCreateReadWriteSessionResponse = operations["PublicApiService_CreateReadWriteSession"]["responses"]["200"]["schema"]["activity"]["result"]["createReadWriteSessionResultV2"] & definitions["v1ActivityResponse"]; -export type TCreateReadWriteSessionInput = { - body: TCreateReadWriteSessionBody; -}; +export type TCreateReadWriteSessionInput = { body: TCreateReadWriteSessionBody }; -export type TCreateReadWriteSessionBody = - operations["PublicApiService_CreateReadWriteSession"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateReadWriteSessionBody = operations["PublicApiService_CreateReadWriteSession"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateSmartContractInterfaceResponse = - operations["PublicApiService_CreateSmartContractInterface"]["responses"]["200"]["schema"]["activity"]["result"]["createSmartContractInterfaceResult"] & - definitions["v1ActivityResponse"]; +export type TCreateSmartContractInterfaceResponse = operations["PublicApiService_CreateSmartContractInterface"]["responses"]["200"]["schema"]["activity"]["result"]["createSmartContractInterfaceResult"] & definitions["v1ActivityResponse"]; -export type TCreateSmartContractInterfaceInput = { - body: TCreateSmartContractInterfaceBody; -}; +export type TCreateSmartContractInterfaceInput = { body: TCreateSmartContractInterfaceBody }; -export type TCreateSmartContractInterfaceBody = - operations["PublicApiService_CreateSmartContractInterface"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateSmartContractInterfaceBody = operations["PublicApiService_CreateSmartContractInterface"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateSubOrganizationResponse = - operations["PublicApiService_CreateSubOrganization"]["responses"]["200"]["schema"]["activity"]["result"]["createSubOrganizationResultV7"] & - definitions["v1ActivityResponse"]; +export type TCreateSubOrganizationResponse = operations["PublicApiService_CreateSubOrganization"]["responses"]["200"]["schema"]["activity"]["result"]["createSubOrganizationResultV7"] & definitions["v1ActivityResponse"]; export type TCreateSubOrganizationInput = { body: TCreateSubOrganizationBody }; -export type TCreateSubOrganizationBody = - operations["PublicApiService_CreateSubOrganization"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateSubOrganizationBody = operations["PublicApiService_CreateSubOrganization"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateUserTagResponse = - operations["PublicApiService_CreateUserTag"]["responses"]["200"]["schema"]["activity"]["result"]["createUserTagResult"] & - definitions["v1ActivityResponse"]; +export type TCreateTvcAppResponse = operations["PublicApiService_CreateTvcApp"]["responses"]["200"]["schema"]["activity"]["result"]["createTvcAppResult"] & definitions["v1ActivityResponse"]; + +export type TCreateTvcAppInput = { body: TCreateTvcAppBody }; + +export type TCreateTvcAppBody = operations["PublicApiService_CreateTvcApp"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; + +export type TCreateTvcDeploymentResponse = operations["PublicApiService_CreateTvcDeployment"]["responses"]["200"]["schema"]["activity"]["result"]["createTvcDeploymentResult"] & definitions["v1ActivityResponse"]; + +export type TCreateTvcDeploymentInput = { body: TCreateTvcDeploymentBody }; + +export type TCreateTvcDeploymentBody = operations["PublicApiService_CreateTvcDeployment"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; + +export type TCreateTvcManifestApprovalsResponse = operations["PublicApiService_CreateTvcManifestApprovals"]["responses"]["200"]["schema"]["activity"]["result"]["createTvcManifestApprovalsResult"] & definitions["v1ActivityResponse"]; + +export type TCreateTvcManifestApprovalsInput = { body: TCreateTvcManifestApprovalsBody }; + +export type TCreateTvcManifestApprovalsBody = operations["PublicApiService_CreateTvcManifestApprovals"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; + +export type TCreateUserTagResponse = operations["PublicApiService_CreateUserTag"]["responses"]["200"]["schema"]["activity"]["result"]["createUserTagResult"] & definitions["v1ActivityResponse"]; export type TCreateUserTagInput = { body: TCreateUserTagBody }; -export type TCreateUserTagBody = - operations["PublicApiService_CreateUserTag"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateUserTagBody = operations["PublicApiService_CreateUserTag"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateUsersResponse = - operations["PublicApiService_CreateUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createUsersResult"] & - definitions["v1ActivityResponse"]; +export type TCreateUsersResponse = operations["PublicApiService_CreateUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createUsersResult"] & definitions["v1ActivityResponse"]; export type TCreateUsersInput = { body: TCreateUsersBody }; -export type TCreateUsersBody = - operations["PublicApiService_CreateUsers"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateUsersBody = operations["PublicApiService_CreateUsers"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateWalletResponse = - operations["PublicApiService_CreateWallet"]["responses"]["200"]["schema"]["activity"]["result"]["createWalletResult"] & - definitions["v1ActivityResponse"]; +export type TCreateWalletResponse = operations["PublicApiService_CreateWallet"]["responses"]["200"]["schema"]["activity"]["result"]["createWalletResult"] & definitions["v1ActivityResponse"]; export type TCreateWalletInput = { body: TCreateWalletBody }; -export type TCreateWalletBody = - operations["PublicApiService_CreateWallet"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateWalletBody = operations["PublicApiService_CreateWallet"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateWalletAccountsResponse = - operations["PublicApiService_CreateWalletAccounts"]["responses"]["200"]["schema"]["activity"]["result"]["createWalletAccountsResult"] & - definitions["v1ActivityResponse"]; +export type TCreateWalletAccountsResponse = operations["PublicApiService_CreateWalletAccounts"]["responses"]["200"]["schema"]["activity"]["result"]["createWalletAccountsResult"] & definitions["v1ActivityResponse"]; export type TCreateWalletAccountsInput = { body: TCreateWalletAccountsBody }; -export type TCreateWalletAccountsBody = - operations["PublicApiService_CreateWalletAccounts"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateWalletAccountsBody = operations["PublicApiService_CreateWalletAccounts"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteApiKeysResponse = - operations["PublicApiService_DeleteApiKeys"]["responses"]["200"]["schema"]["activity"]["result"]["deleteApiKeysResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteApiKeysResponse = operations["PublicApiService_DeleteApiKeys"]["responses"]["200"]["schema"]["activity"]["result"]["deleteApiKeysResult"] & definitions["v1ActivityResponse"]; export type TDeleteApiKeysInput = { body: TDeleteApiKeysBody }; -export type TDeleteApiKeysBody = - operations["PublicApiService_DeleteApiKeys"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteApiKeysBody = operations["PublicApiService_DeleteApiKeys"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteAuthenticatorsResponse = - operations["PublicApiService_DeleteAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["deleteAuthenticatorsResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteAuthenticatorsResponse = operations["PublicApiService_DeleteAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["deleteAuthenticatorsResult"] & definitions["v1ActivityResponse"]; export type TDeleteAuthenticatorsInput = { body: TDeleteAuthenticatorsBody }; -export type TDeleteAuthenticatorsBody = - operations["PublicApiService_DeleteAuthenticators"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteAuthenticatorsBody = operations["PublicApiService_DeleteAuthenticators"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteFiatOnRampCredentialResponse = - operations["PublicApiService_DeleteFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["deleteFiatOnRampCredentialResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteFiatOnRampCredentialResponse = operations["PublicApiService_DeleteFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["deleteFiatOnRampCredentialResult"] & definitions["v1ActivityResponse"]; -export type TDeleteFiatOnRampCredentialInput = { - body: TDeleteFiatOnRampCredentialBody; -}; +export type TDeleteFiatOnRampCredentialInput = { body: TDeleteFiatOnRampCredentialBody }; -export type TDeleteFiatOnRampCredentialBody = - operations["PublicApiService_DeleteFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteFiatOnRampCredentialBody = operations["PublicApiService_DeleteFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteInvitationResponse = - operations["PublicApiService_DeleteInvitation"]["responses"]["200"]["schema"]["activity"]["result"]["deleteInvitationResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteInvitationResponse = operations["PublicApiService_DeleteInvitation"]["responses"]["200"]["schema"]["activity"]["result"]["deleteInvitationResult"] & definitions["v1ActivityResponse"]; export type TDeleteInvitationInput = { body: TDeleteInvitationBody }; -export type TDeleteInvitationBody = - operations["PublicApiService_DeleteInvitation"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteInvitationBody = operations["PublicApiService_DeleteInvitation"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteOauth2CredentialResponse = - operations["PublicApiService_DeleteOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["deleteOauth2CredentialResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteOauth2CredentialResponse = operations["PublicApiService_DeleteOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["deleteOauth2CredentialResult"] & definitions["v1ActivityResponse"]; -export type TDeleteOauth2CredentialInput = { - body: TDeleteOauth2CredentialBody; -}; +export type TDeleteOauth2CredentialInput = { body: TDeleteOauth2CredentialBody }; -export type TDeleteOauth2CredentialBody = - operations["PublicApiService_DeleteOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteOauth2CredentialBody = operations["PublicApiService_DeleteOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteOauthProvidersResponse = - operations["PublicApiService_DeleteOauthProviders"]["responses"]["200"]["schema"]["activity"]["result"]["deleteOauthProvidersResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteOauthProvidersResponse = operations["PublicApiService_DeleteOauthProviders"]["responses"]["200"]["schema"]["activity"]["result"]["deleteOauthProvidersResult"] & definitions["v1ActivityResponse"]; export type TDeleteOauthProvidersInput = { body: TDeleteOauthProvidersBody }; -export type TDeleteOauthProvidersBody = - operations["PublicApiService_DeleteOauthProviders"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteOauthProvidersBody = operations["PublicApiService_DeleteOauthProviders"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeletePoliciesResponse = - operations["PublicApiService_DeletePolicies"]["responses"]["200"]["schema"]["activity"]["result"]["deletePoliciesResult"] & - definitions["v1ActivityResponse"]; +export type TDeletePoliciesResponse = operations["PublicApiService_DeletePolicies"]["responses"]["200"]["schema"]["activity"]["result"]["deletePoliciesResult"] & definitions["v1ActivityResponse"]; export type TDeletePoliciesInput = { body: TDeletePoliciesBody }; -export type TDeletePoliciesBody = - operations["PublicApiService_DeletePolicies"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeletePoliciesBody = operations["PublicApiService_DeletePolicies"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeletePolicyResponse = - operations["PublicApiService_DeletePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["deletePolicyResult"] & - definitions["v1ActivityResponse"]; +export type TDeletePolicyResponse = operations["PublicApiService_DeletePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["deletePolicyResult"] & definitions["v1ActivityResponse"]; export type TDeletePolicyInput = { body: TDeletePolicyBody }; -export type TDeletePolicyBody = - operations["PublicApiService_DeletePolicy"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeletePolicyBody = operations["PublicApiService_DeletePolicy"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeletePrivateKeyTagsResponse = - operations["PublicApiService_DeletePrivateKeyTags"]["responses"]["200"]["schema"]["activity"]["result"]["deletePrivateKeyTagsResult"] & - definitions["v1ActivityResponse"]; +export type TDeletePrivateKeyTagsResponse = operations["PublicApiService_DeletePrivateKeyTags"]["responses"]["200"]["schema"]["activity"]["result"]["deletePrivateKeyTagsResult"] & definitions["v1ActivityResponse"]; export type TDeletePrivateKeyTagsInput = { body: TDeletePrivateKeyTagsBody }; -export type TDeletePrivateKeyTagsBody = - operations["PublicApiService_DeletePrivateKeyTags"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeletePrivateKeyTagsBody = operations["PublicApiService_DeletePrivateKeyTags"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeletePrivateKeysResponse = - operations["PublicApiService_DeletePrivateKeys"]["responses"]["200"]["schema"]["activity"]["result"]["deletePrivateKeysResult"] & - definitions["v1ActivityResponse"]; +export type TDeletePrivateKeysResponse = operations["PublicApiService_DeletePrivateKeys"]["responses"]["200"]["schema"]["activity"]["result"]["deletePrivateKeysResult"] & definitions["v1ActivityResponse"]; export type TDeletePrivateKeysInput = { body: TDeletePrivateKeysBody }; -export type TDeletePrivateKeysBody = - operations["PublicApiService_DeletePrivateKeys"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeletePrivateKeysBody = operations["PublicApiService_DeletePrivateKeys"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteSmartContractInterfaceResponse = - operations["PublicApiService_DeleteSmartContractInterface"]["responses"]["200"]["schema"]["activity"]["result"]["deleteSmartContractInterfaceResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteSmartContractInterfaceResponse = operations["PublicApiService_DeleteSmartContractInterface"]["responses"]["200"]["schema"]["activity"]["result"]["deleteSmartContractInterfaceResult"] & definitions["v1ActivityResponse"]; -export type TDeleteSmartContractInterfaceInput = { - body: TDeleteSmartContractInterfaceBody; -}; +export type TDeleteSmartContractInterfaceInput = { body: TDeleteSmartContractInterfaceBody }; -export type TDeleteSmartContractInterfaceBody = - operations["PublicApiService_DeleteSmartContractInterface"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteSmartContractInterfaceBody = operations["PublicApiService_DeleteSmartContractInterface"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteSubOrganizationResponse = - operations["PublicApiService_DeleteSubOrganization"]["responses"]["200"]["schema"]["activity"]["result"]["deleteSubOrganizationResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteSubOrganizationResponse = operations["PublicApiService_DeleteSubOrganization"]["responses"]["200"]["schema"]["activity"]["result"]["deleteSubOrganizationResult"] & definitions["v1ActivityResponse"]; export type TDeleteSubOrganizationInput = { body: TDeleteSubOrganizationBody }; -export type TDeleteSubOrganizationBody = - operations["PublicApiService_DeleteSubOrganization"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteSubOrganizationBody = operations["PublicApiService_DeleteSubOrganization"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteUserTagsResponse = - operations["PublicApiService_DeleteUserTags"]["responses"]["200"]["schema"]["activity"]["result"]["deleteUserTagsResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteUserTagsResponse = operations["PublicApiService_DeleteUserTags"]["responses"]["200"]["schema"]["activity"]["result"]["deleteUserTagsResult"] & definitions["v1ActivityResponse"]; export type TDeleteUserTagsInput = { body: TDeleteUserTagsBody }; -export type TDeleteUserTagsBody = - operations["PublicApiService_DeleteUserTags"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteUserTagsBody = operations["PublicApiService_DeleteUserTags"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteUsersResponse = - operations["PublicApiService_DeleteUsers"]["responses"]["200"]["schema"]["activity"]["result"]["deleteUsersResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteUsersResponse = operations["PublicApiService_DeleteUsers"]["responses"]["200"]["schema"]["activity"]["result"]["deleteUsersResult"] & definitions["v1ActivityResponse"]; export type TDeleteUsersInput = { body: TDeleteUsersBody }; -export type TDeleteUsersBody = - operations["PublicApiService_DeleteUsers"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteUsersBody = operations["PublicApiService_DeleteUsers"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteWalletAccountsResponse = - operations["PublicApiService_DeleteWalletAccounts"]["responses"]["200"]["schema"]["activity"]["result"]["deleteWalletAccountsResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteWalletAccountsResponse = operations["PublicApiService_DeleteWalletAccounts"]["responses"]["200"]["schema"]["activity"]["result"]["deleteWalletAccountsResult"] & definitions["v1ActivityResponse"]; export type TDeleteWalletAccountsInput = { body: TDeleteWalletAccountsBody }; -export type TDeleteWalletAccountsBody = - operations["PublicApiService_DeleteWalletAccounts"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteWalletAccountsBody = operations["PublicApiService_DeleteWalletAccounts"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TDeleteWalletsResponse = - operations["PublicApiService_DeleteWallets"]["responses"]["200"]["schema"]["activity"]["result"]["deleteWalletsResult"] & - definitions["v1ActivityResponse"]; +export type TDeleteWalletsResponse = operations["PublicApiService_DeleteWallets"]["responses"]["200"]["schema"]["activity"]["result"]["deleteWalletsResult"] & definitions["v1ActivityResponse"]; export type TDeleteWalletsInput = { body: TDeleteWalletsBody }; -export type TDeleteWalletsBody = - operations["PublicApiService_DeleteWallets"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TDeleteWalletsBody = operations["PublicApiService_DeleteWallets"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TEmailAuthResponse = - operations["PublicApiService_EmailAuth"]["responses"]["200"]["schema"]["activity"]["result"]["emailAuthResult"] & - definitions["v1ActivityResponse"]; +export type TEmailAuthResponse = operations["PublicApiService_EmailAuth"]["responses"]["200"]["schema"]["activity"]["result"]["emailAuthResult"] & definitions["v1ActivityResponse"]; export type TEmailAuthInput = { body: TEmailAuthBody }; -export type TEmailAuthBody = - operations["PublicApiService_EmailAuth"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TEmailAuthBody = operations["PublicApiService_EmailAuth"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; export type TEthSendTransactionResponse = operations["PublicApiService_EthSendTransaction"]["responses"]["200"]["schema"]["activity"]["result"]["ethSendTransactionResult"] & @@ -819,243 +502,145 @@ export type TEthSendTransactionResponse = export type TEthSendTransactionInput = { body: TEthSendTransactionBody }; -export type TEthSendTransactionBody = - operations["PublicApiService_EthSendTransaction"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TEthSendTransactionBody = operations["PublicApiService_EthSendTransaction"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TExportPrivateKeyResponse = - operations["PublicApiService_ExportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["exportPrivateKeyResult"] & - definitions["v1ActivityResponse"]; +export type TExportPrivateKeyResponse = operations["PublicApiService_ExportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["exportPrivateKeyResult"] & definitions["v1ActivityResponse"]; export type TExportPrivateKeyInput = { body: TExportPrivateKeyBody }; -export type TExportPrivateKeyBody = - operations["PublicApiService_ExportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TExportPrivateKeyBody = operations["PublicApiService_ExportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TExportWalletResponse = - operations["PublicApiService_ExportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["exportWalletResult"] & - definitions["v1ActivityResponse"]; +export type TExportWalletResponse = operations["PublicApiService_ExportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["exportWalletResult"] & definitions["v1ActivityResponse"]; export type TExportWalletInput = { body: TExportWalletBody }; -export type TExportWalletBody = - operations["PublicApiService_ExportWallet"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TExportWalletBody = operations["PublicApiService_ExportWallet"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TExportWalletAccountResponse = - operations["PublicApiService_ExportWalletAccount"]["responses"]["200"]["schema"]["activity"]["result"]["exportWalletAccountResult"] & - definitions["v1ActivityResponse"]; +export type TExportWalletAccountResponse = operations["PublicApiService_ExportWalletAccount"]["responses"]["200"]["schema"]["activity"]["result"]["exportWalletAccountResult"] & definitions["v1ActivityResponse"]; export type TExportWalletAccountInput = { body: TExportWalletAccountBody }; -export type TExportWalletAccountBody = - operations["PublicApiService_ExportWalletAccount"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TExportWalletAccountBody = operations["PublicApiService_ExportWalletAccount"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TImportPrivateKeyResponse = - operations["PublicApiService_ImportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["importPrivateKeyResult"] & - definitions["v1ActivityResponse"]; +export type TImportPrivateKeyResponse = operations["PublicApiService_ImportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["importPrivateKeyResult"] & definitions["v1ActivityResponse"]; export type TImportPrivateKeyInput = { body: TImportPrivateKeyBody }; -export type TImportPrivateKeyBody = - operations["PublicApiService_ImportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TImportPrivateKeyBody = operations["PublicApiService_ImportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TImportWalletResponse = - operations["PublicApiService_ImportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["importWalletResult"] & - definitions["v1ActivityResponse"]; +export type TImportWalletResponse = operations["PublicApiService_ImportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["importWalletResult"] & definitions["v1ActivityResponse"]; export type TImportWalletInput = { body: TImportWalletBody }; -export type TImportWalletBody = - operations["PublicApiService_ImportWallet"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TImportWalletBody = operations["PublicApiService_ImportWallet"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitFiatOnRampResponse = - operations["PublicApiService_InitFiatOnRamp"]["responses"]["200"]["schema"]["activity"]["result"]["initFiatOnRampResult"] & - definitions["v1ActivityResponse"]; +export type TInitFiatOnRampResponse = operations["PublicApiService_InitFiatOnRamp"]["responses"]["200"]["schema"]["activity"]["result"]["initFiatOnRampResult"] & definitions["v1ActivityResponse"]; export type TInitFiatOnRampInput = { body: TInitFiatOnRampBody }; -export type TInitFiatOnRampBody = - operations["PublicApiService_InitFiatOnRamp"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitFiatOnRampBody = operations["PublicApiService_InitFiatOnRamp"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitImportPrivateKeyResponse = - operations["PublicApiService_InitImportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["initImportPrivateKeyResult"] & - definitions["v1ActivityResponse"]; +export type TInitImportPrivateKeyResponse = operations["PublicApiService_InitImportPrivateKey"]["responses"]["200"]["schema"]["activity"]["result"]["initImportPrivateKeyResult"] & definitions["v1ActivityResponse"]; export type TInitImportPrivateKeyInput = { body: TInitImportPrivateKeyBody }; -export type TInitImportPrivateKeyBody = - operations["PublicApiService_InitImportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitImportPrivateKeyBody = operations["PublicApiService_InitImportPrivateKey"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitImportWalletResponse = - operations["PublicApiService_InitImportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["initImportWalletResult"] & - definitions["v1ActivityResponse"]; +export type TInitImportWalletResponse = operations["PublicApiService_InitImportWallet"]["responses"]["200"]["schema"]["activity"]["result"]["initImportWalletResult"] & definitions["v1ActivityResponse"]; export type TInitImportWalletInput = { body: TInitImportWalletBody }; -export type TInitImportWalletBody = - operations["PublicApiService_InitImportWallet"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitImportWalletBody = operations["PublicApiService_InitImportWallet"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitOtpResponse = - operations["PublicApiService_InitOtp"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpResult"] & - definitions["v1ActivityResponse"]; +export type TInitOtpResponse = operations["PublicApiService_InitOtp"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpResult"] & definitions["v1ActivityResponse"]; export type TInitOtpInput = { body: TInitOtpBody }; -export type TInitOtpBody = - operations["PublicApiService_InitOtp"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitOtpBody = operations["PublicApiService_InitOtp"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitOtpAuthResponse = - operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResultV2"] & - definitions["v1ActivityResponse"]; +export type TInitOtpAuthResponse = operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResultV2"] & definitions["v1ActivityResponse"]; export type TInitOtpAuthInput = { body: TInitOtpAuthBody }; -export type TInitOtpAuthBody = - operations["PublicApiService_InitOtpAuth"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitOtpAuthBody = operations["PublicApiService_InitOtpAuth"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TInitUserEmailRecoveryResponse = - operations["PublicApiService_InitUserEmailRecovery"]["responses"]["200"]["schema"]["activity"]["result"]["initUserEmailRecoveryResult"] & - definitions["v1ActivityResponse"]; +export type TInitUserEmailRecoveryResponse = operations["PublicApiService_InitUserEmailRecovery"]["responses"]["200"]["schema"]["activity"]["result"]["initUserEmailRecoveryResult"] & definitions["v1ActivityResponse"]; export type TInitUserEmailRecoveryInput = { body: TInitUserEmailRecoveryBody }; -export type TInitUserEmailRecoveryBody = - operations["PublicApiService_InitUserEmailRecovery"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TInitUserEmailRecoveryBody = operations["PublicApiService_InitUserEmailRecovery"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TOauthResponse = - operations["PublicApiService_Oauth"]["responses"]["200"]["schema"]["activity"]["result"]["oauthResult"] & - definitions["v1ActivityResponse"]; +export type TOauthResponse = operations["PublicApiService_Oauth"]["responses"]["200"]["schema"]["activity"]["result"]["oauthResult"] & definitions["v1ActivityResponse"]; export type TOauthInput = { body: TOauthBody }; -export type TOauthBody = - operations["PublicApiService_Oauth"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TOauthBody = operations["PublicApiService_Oauth"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TOauth2AuthenticateResponse = - operations["PublicApiService_Oauth2Authenticate"]["responses"]["200"]["schema"]["activity"]["result"]["oauth2AuthenticateResult"] & - definitions["v1ActivityResponse"]; +export type TOauth2AuthenticateResponse = operations["PublicApiService_Oauth2Authenticate"]["responses"]["200"]["schema"]["activity"]["result"]["oauth2AuthenticateResult"] & definitions["v1ActivityResponse"]; export type TOauth2AuthenticateInput = { body: TOauth2AuthenticateBody }; -export type TOauth2AuthenticateBody = - operations["PublicApiService_Oauth2Authenticate"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TOauth2AuthenticateBody = operations["PublicApiService_Oauth2Authenticate"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TOauthLoginResponse = - operations["PublicApiService_OauthLogin"]["responses"]["200"]["schema"]["activity"]["result"]["oauthLoginResult"] & - definitions["v1ActivityResponse"]; +export type TOauthLoginResponse = operations["PublicApiService_OauthLogin"]["responses"]["200"]["schema"]["activity"]["result"]["oauthLoginResult"] & definitions["v1ActivityResponse"]; export type TOauthLoginInput = { body: TOauthLoginBody }; -export type TOauthLoginBody = - operations["PublicApiService_OauthLogin"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TOauthLoginBody = operations["PublicApiService_OauthLogin"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TOtpAuthResponse = - operations["PublicApiService_OtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["otpAuthResult"] & - definitions["v1ActivityResponse"]; +export type TOtpAuthResponse = operations["PublicApiService_OtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["otpAuthResult"] & definitions["v1ActivityResponse"]; export type TOtpAuthInput = { body: TOtpAuthBody }; -export type TOtpAuthBody = - operations["PublicApiService_OtpAuth"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TOtpAuthBody = operations["PublicApiService_OtpAuth"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TOtpLoginResponse = - operations["PublicApiService_OtpLogin"]["responses"]["200"]["schema"]["activity"]["result"]["otpLoginResult"] & - definitions["v1ActivityResponse"]; +export type TOtpLoginResponse = operations["PublicApiService_OtpLogin"]["responses"]["200"]["schema"]["activity"]["result"]["otpLoginResult"] & definitions["v1ActivityResponse"]; export type TOtpLoginInput = { body: TOtpLoginBody }; -export type TOtpLoginBody = - operations["PublicApiService_OtpLogin"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TOtpLoginBody = operations["PublicApiService_OtpLogin"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TRecoverUserResponse = - operations["PublicApiService_RecoverUser"]["responses"]["200"]["schema"]["activity"]["result"]["recoverUserResult"] & - definitions["v1ActivityResponse"]; +export type TRecoverUserResponse = operations["PublicApiService_RecoverUser"]["responses"]["200"]["schema"]["activity"]["result"]["recoverUserResult"] & definitions["v1ActivityResponse"]; export type TRecoverUserInput = { body: TRecoverUserBody }; -export type TRecoverUserBody = - operations["PublicApiService_RecoverUser"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TRecoverUserBody = operations["PublicApiService_RecoverUser"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TRejectActivityResponse = - operations["PublicApiService_RejectActivity"]["responses"]["200"]["schema"]["activity"]["result"] & - definitions["v1ActivityResponse"]; +export type TRejectActivityResponse = operations["PublicApiService_RejectActivity"]["responses"]["200"]["schema"]["activity"]["result"] & definitions["v1ActivityResponse"]; export type TRejectActivityInput = { body: TRejectActivityBody }; -export type TRejectActivityBody = - operations["PublicApiService_RejectActivity"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TRejectActivityBody = operations["PublicApiService_RejectActivity"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TRemoveOrganizationFeatureResponse = - operations["PublicApiService_RemoveOrganizationFeature"]["responses"]["200"]["schema"]["activity"]["result"]["removeOrganizationFeatureResult"] & - definitions["v1ActivityResponse"]; +export type TRemoveOrganizationFeatureResponse = operations["PublicApiService_RemoveOrganizationFeature"]["responses"]["200"]["schema"]["activity"]["result"]["removeOrganizationFeatureResult"] & definitions["v1ActivityResponse"]; -export type TRemoveOrganizationFeatureInput = { - body: TRemoveOrganizationFeatureBody; -}; +export type TRemoveOrganizationFeatureInput = { body: TRemoveOrganizationFeatureBody }; -export type TRemoveOrganizationFeatureBody = - operations["PublicApiService_RemoveOrganizationFeature"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TRemoveOrganizationFeatureBody = operations["PublicApiService_RemoveOrganizationFeature"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TSetOrganizationFeatureResponse = - operations["PublicApiService_SetOrganizationFeature"]["responses"]["200"]["schema"]["activity"]["result"]["setOrganizationFeatureResult"] & - definitions["v1ActivityResponse"]; +export type TSetOrganizationFeatureResponse = operations["PublicApiService_SetOrganizationFeature"]["responses"]["200"]["schema"]["activity"]["result"]["setOrganizationFeatureResult"] & definitions["v1ActivityResponse"]; -export type TSetOrganizationFeatureInput = { - body: TSetOrganizationFeatureBody; -}; +export type TSetOrganizationFeatureInput = { body: TSetOrganizationFeatureBody }; -export type TSetOrganizationFeatureBody = - operations["PublicApiService_SetOrganizationFeature"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TSetOrganizationFeatureBody = operations["PublicApiService_SetOrganizationFeature"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TSignRawPayloadResponse = - operations["PublicApiService_SignRawPayload"]["responses"]["200"]["schema"]["activity"]["result"]["signRawPayloadResult"] & - definitions["v1ActivityResponse"]; +export type TSignRawPayloadResponse = operations["PublicApiService_SignRawPayload"]["responses"]["200"]["schema"]["activity"]["result"]["signRawPayloadResult"] & definitions["v1ActivityResponse"]; export type TSignRawPayloadInput = { body: TSignRawPayloadBody }; -export type TSignRawPayloadBody = - operations["PublicApiService_SignRawPayload"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TSignRawPayloadBody = operations["PublicApiService_SignRawPayload"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TSignRawPayloadsResponse = - operations["PublicApiService_SignRawPayloads"]["responses"]["200"]["schema"]["activity"]["result"]["signRawPayloadsResult"] & - definitions["v1ActivityResponse"]; +export type TSignRawPayloadsResponse = operations["PublicApiService_SignRawPayloads"]["responses"]["200"]["schema"]["activity"]["result"]["signRawPayloadsResult"] & definitions["v1ActivityResponse"]; export type TSignRawPayloadsInput = { body: TSignRawPayloadsBody }; -export type TSignRawPayloadsBody = - operations["PublicApiService_SignRawPayloads"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TSignRawPayloadsBody = operations["PublicApiService_SignRawPayloads"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TSignTransactionResponse = - operations["PublicApiService_SignTransaction"]["responses"]["200"]["schema"]["activity"]["result"]["signTransactionResult"] & - definitions["v1ActivityResponse"]; +export type TSignTransactionResponse = operations["PublicApiService_SignTransaction"]["responses"]["200"]["schema"]["activity"]["result"]["signTransactionResult"] & definitions["v1ActivityResponse"]; export type TSignTransactionInput = { body: TSignTransactionBody }; -export type TSignTransactionBody = - operations["PublicApiService_SignTransaction"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TSignTransactionBody = operations["PublicApiService_SignTransaction"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; export type TSolSendTransactionResponse = operations["PublicApiService_SolSendTransaction"]["responses"]["200"]["schema"]["activity"]["result"]["solSendTransactionResult"] & @@ -1073,133 +658,79 @@ export type TStampLoginResponse = export type TStampLoginInput = { body: TStampLoginBody }; -export type TStampLoginBody = - operations["PublicApiService_StampLogin"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TStampLoginBody = operations["PublicApiService_StampLogin"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateFiatOnRampCredentialResponse = - operations["PublicApiService_UpdateFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["updateFiatOnRampCredentialResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateFiatOnRampCredentialResponse = operations["PublicApiService_UpdateFiatOnRampCredential"]["responses"]["200"]["schema"]["activity"]["result"]["updateFiatOnRampCredentialResult"] & definitions["v1ActivityResponse"]; -export type TUpdateFiatOnRampCredentialInput = { - body: TUpdateFiatOnRampCredentialBody; -}; +export type TUpdateFiatOnRampCredentialInput = { body: TUpdateFiatOnRampCredentialBody }; -export type TUpdateFiatOnRampCredentialBody = - operations["PublicApiService_UpdateFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateFiatOnRampCredentialBody = operations["PublicApiService_UpdateFiatOnRampCredential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateOauth2CredentialResponse = - operations["PublicApiService_UpdateOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["updateOauth2CredentialResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateOauth2CredentialResponse = operations["PublicApiService_UpdateOauth2Credential"]["responses"]["200"]["schema"]["activity"]["result"]["updateOauth2CredentialResult"] & definitions["v1ActivityResponse"]; -export type TUpdateOauth2CredentialInput = { - body: TUpdateOauth2CredentialBody; -}; +export type TUpdateOauth2CredentialInput = { body: TUpdateOauth2CredentialBody }; -export type TUpdateOauth2CredentialBody = - operations["PublicApiService_UpdateOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateOauth2CredentialBody = operations["PublicApiService_UpdateOauth2Credential"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdatePolicyResponse = - operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResultV2"] & - definitions["v1ActivityResponse"]; +export type TUpdatePolicyResponse = operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResultV2"] & definitions["v1ActivityResponse"]; export type TUpdatePolicyInput = { body: TUpdatePolicyBody }; -export type TUpdatePolicyBody = - operations["PublicApiService_UpdatePolicy"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdatePolicyBody = operations["PublicApiService_UpdatePolicy"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdatePrivateKeyTagResponse = - operations["PublicApiService_UpdatePrivateKeyTag"]["responses"]["200"]["schema"]["activity"]["result"]["updatePrivateKeyTagResult"] & - definitions["v1ActivityResponse"]; +export type TUpdatePrivateKeyTagResponse = operations["PublicApiService_UpdatePrivateKeyTag"]["responses"]["200"]["schema"]["activity"]["result"]["updatePrivateKeyTagResult"] & definitions["v1ActivityResponse"]; export type TUpdatePrivateKeyTagInput = { body: TUpdatePrivateKeyTagBody }; -export type TUpdatePrivateKeyTagBody = - operations["PublicApiService_UpdatePrivateKeyTag"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdatePrivateKeyTagBody = operations["PublicApiService_UpdatePrivateKeyTag"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateRootQuorumResponse = - operations["PublicApiService_UpdateRootQuorum"]["responses"]["200"]["schema"]["activity"]["result"]["updateRootQuorumResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateRootQuorumResponse = operations["PublicApiService_UpdateRootQuorum"]["responses"]["200"]["schema"]["activity"]["result"]["updateRootQuorumResult"] & definitions["v1ActivityResponse"]; export type TUpdateRootQuorumInput = { body: TUpdateRootQuorumBody }; -export type TUpdateRootQuorumBody = - operations["PublicApiService_UpdateRootQuorum"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateRootQuorumBody = operations["PublicApiService_UpdateRootQuorum"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateUserResponse = - operations["PublicApiService_UpdateUser"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateUserResponse = operations["PublicApiService_UpdateUser"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserResult"] & definitions["v1ActivityResponse"]; export type TUpdateUserInput = { body: TUpdateUserBody }; -export type TUpdateUserBody = - operations["PublicApiService_UpdateUser"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateUserBody = operations["PublicApiService_UpdateUser"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateUserEmailResponse = - operations["PublicApiService_UpdateUserEmail"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserEmailResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateUserEmailResponse = operations["PublicApiService_UpdateUserEmail"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserEmailResult"] & definitions["v1ActivityResponse"]; export type TUpdateUserEmailInput = { body: TUpdateUserEmailBody }; -export type TUpdateUserEmailBody = - operations["PublicApiService_UpdateUserEmail"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateUserEmailBody = operations["PublicApiService_UpdateUserEmail"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateUserNameResponse = - operations["PublicApiService_UpdateUserName"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserNameResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateUserNameResponse = operations["PublicApiService_UpdateUserName"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserNameResult"] & definitions["v1ActivityResponse"]; export type TUpdateUserNameInput = { body: TUpdateUserNameBody }; -export type TUpdateUserNameBody = - operations["PublicApiService_UpdateUserName"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateUserNameBody = operations["PublicApiService_UpdateUserName"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateUserPhoneNumberResponse = - operations["PublicApiService_UpdateUserPhoneNumber"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserPhoneNumberResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateUserPhoneNumberResponse = operations["PublicApiService_UpdateUserPhoneNumber"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserPhoneNumberResult"] & definitions["v1ActivityResponse"]; export type TUpdateUserPhoneNumberInput = { body: TUpdateUserPhoneNumberBody }; -export type TUpdateUserPhoneNumberBody = - operations["PublicApiService_UpdateUserPhoneNumber"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateUserPhoneNumberBody = operations["PublicApiService_UpdateUserPhoneNumber"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateUserTagResponse = - operations["PublicApiService_UpdateUserTag"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserTagResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateUserTagResponse = operations["PublicApiService_UpdateUserTag"]["responses"]["200"]["schema"]["activity"]["result"]["updateUserTagResult"] & definitions["v1ActivityResponse"]; export type TUpdateUserTagInput = { body: TUpdateUserTagBody }; -export type TUpdateUserTagBody = - operations["PublicApiService_UpdateUserTag"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateUserTagBody = operations["PublicApiService_UpdateUserTag"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TUpdateWalletResponse = - operations["PublicApiService_UpdateWallet"]["responses"]["200"]["schema"]["activity"]["result"]["updateWalletResult"] & - definitions["v1ActivityResponse"]; +export type TUpdateWalletResponse = operations["PublicApiService_UpdateWallet"]["responses"]["200"]["schema"]["activity"]["result"]["updateWalletResult"] & definitions["v1ActivityResponse"]; export type TUpdateWalletInput = { body: TUpdateWalletBody }; -export type TUpdateWalletBody = - operations["PublicApiService_UpdateWallet"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TUpdateWalletBody = operations["PublicApiService_UpdateWallet"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TVerifyOtpResponse = - operations["PublicApiService_VerifyOtp"]["responses"]["200"]["schema"]["activity"]["result"]["verifyOtpResult"] & - definitions["v1ActivityResponse"]; +export type TVerifyOtpResponse = operations["PublicApiService_VerifyOtp"]["responses"]["200"]["schema"]["activity"]["result"]["verifyOtpResult"] & definitions["v1ActivityResponse"]; export type TVerifyOtpInput = { body: TVerifyOtpBody }; -export type TVerifyOtpBody = - operations["PublicApiService_VerifyOtp"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TVerifyOtpBody = operations["PublicApiService_VerifyOtp"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; export type TNOOPCodegenAnchorResponse = operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"]; diff --git a/packages/sdk-server/src/__inputs__/public_api.swagger.json b/packages/sdk-server/src/__inputs__/public_api.swagger.json index 14047a28d..185eab608 100644 --- a/packages/sdk-server/src/__inputs__/public_api.swagger.json +++ b/packages/sdk-server/src/__inputs__/public_api.swagger.json @@ -644,6 +644,70 @@ "tags": ["Policies"] } }, + "/public/v1/query/get_tvc_app": { + "post": { + "summary": "Get TVC App", + "description": "Get details about a single TVC App", + "operationId": "PublicApiService_GetTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcAppResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/query/get_tvc_deployment": { + "post": { + "summary": "Get TVC Deployment", + "description": "Get details about a single TVC Deployment", + "operationId": "PublicApiService_GetTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/query/get_user": { "post": { "summary": "Get user", @@ -1764,6 +1828,102 @@ "tags": ["Organizations"] } }, + "/public/v1/submit/create_tvc_app": { + "post": { + "summary": "Create a TVC App", + "description": "Create a new TVC application", + "operationId": "PublicApiService_CreateTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_deployment": { + "post": { + "summary": "Create a TVC Deployment", + "description": "Create a new TVC Deployment", + "operationId": "PublicApiService_CreateTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_manifest_approvals": { + "post": { + "summary": "Create TVC Manifest Approvals", + "description": "Post one or more manifest approvals for a TVC Manifest", + "operationId": "PublicApiService_CreateTvcManifestApprovals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcManifestApprovalsRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/submit/create_user_tag": { "post": { "summary": "Create user tag", @@ -8851,6 +9011,106 @@ }, "required": ["organizationIds"] }, + "v1GetTvcAppDeploymentsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "appId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "appId"] + }, + "v1GetTvcAppDeploymentsResponse": { + "type": "object", + "properties": { + "tvcDeployments": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcDeployment" + }, + "description": "List of deployments for this TVC App" + } + }, + "required": ["tvcDeployments"] + }, + "v1GetTvcAppRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "tvcAppId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "tvcAppId"] + }, + "v1GetTvcAppResponse": { + "type": "object", + "properties": { + "tvcApp": { + "$ref": "#/definitions/v1TvcApp", + "description": "Details about a single TVC App" + } + }, + "required": ["tvcApp"] + }, + "v1GetTvcAppsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + } + }, + "required": ["organizationId"] + }, + "v1GetTvcAppsResponse": { + "type": "object", + "properties": { + "tvcApps": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcApp" + }, + "description": "A list of TVC Apps." + } + }, + "required": ["tvcApps"] + }, + "v1GetTvcDeploymentRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "deploymentId": { + "type": "string", + "description": "Unique identifier for a given TVC Deployment." + } + }, + "required": ["organizationId", "deploymentId"] + }, + "v1GetTvcDeploymentResponse": { + "type": "object", + "properties": { + "tvcDeployment": { + "$ref": "#/definitions/v1TvcDeployment", + "description": "Details about a single TVC Deployment" + } + }, + "required": ["tvcDeployment"] + }, "v1GetUserRequest": { "type": "object", "properties": { @@ -11155,6 +11415,12 @@ }, "required": ["authenticatorId"] }, + "v1RefreshFeatureFlagsRequest": { + "type": "object" + }, + "v1RefreshFeatureFlagsResponse": { + "type": "object" + }, "v1RejectActivityIntent": { "type": "object", "properties": { diff --git a/packages/sdk-types/src/__inputs__/public_api.swagger.json b/packages/sdk-types/src/__inputs__/public_api.swagger.json index 14047a28d..185eab608 100644 --- a/packages/sdk-types/src/__inputs__/public_api.swagger.json +++ b/packages/sdk-types/src/__inputs__/public_api.swagger.json @@ -644,6 +644,70 @@ "tags": ["Policies"] } }, + "/public/v1/query/get_tvc_app": { + "post": { + "summary": "Get TVC App", + "description": "Get details about a single TVC App", + "operationId": "PublicApiService_GetTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcAppResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/query/get_tvc_deployment": { + "post": { + "summary": "Get TVC Deployment", + "description": "Get details about a single TVC Deployment", + "operationId": "PublicApiService_GetTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/query/get_user": { "post": { "summary": "Get user", @@ -1764,6 +1828,102 @@ "tags": ["Organizations"] } }, + "/public/v1/submit/create_tvc_app": { + "post": { + "summary": "Create a TVC App", + "description": "Create a new TVC application", + "operationId": "PublicApiService_CreateTvcApp", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcAppRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_deployment": { + "post": { + "summary": "Create a TVC Deployment", + "description": "Create a new TVC Deployment", + "operationId": "PublicApiService_CreateTvcDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcDeploymentRequest" + } + } + ], + "tags": ["TVC"] + } + }, + "/public/v1/submit/create_tvc_manifest_approvals": { + "post": { + "summary": "Create TVC Manifest Approvals", + "description": "Post one or more manifest approvals for a TVC Manifest", + "operationId": "PublicApiService_CreateTvcManifestApprovals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ActivityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1CreateTvcManifestApprovalsRequest" + } + } + ], + "tags": ["TVC"] + } + }, "/public/v1/submit/create_user_tag": { "post": { "summary": "Create user tag", @@ -8851,6 +9011,106 @@ }, "required": ["organizationIds"] }, + "v1GetTvcAppDeploymentsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "appId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "appId"] + }, + "v1GetTvcAppDeploymentsResponse": { + "type": "object", + "properties": { + "tvcDeployments": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcDeployment" + }, + "description": "List of deployments for this TVC App" + } + }, + "required": ["tvcDeployments"] + }, + "v1GetTvcAppRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "tvcAppId": { + "type": "string", + "description": "Unique identifier for a given TVC App." + } + }, + "required": ["organizationId", "tvcAppId"] + }, + "v1GetTvcAppResponse": { + "type": "object", + "properties": { + "tvcApp": { + "$ref": "#/definitions/v1TvcApp", + "description": "Details about a single TVC App" + } + }, + "required": ["tvcApp"] + }, + "v1GetTvcAppsRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + } + }, + "required": ["organizationId"] + }, + "v1GetTvcAppsResponse": { + "type": "object", + "properties": { + "tvcApps": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1TvcApp" + }, + "description": "A list of TVC Apps." + } + }, + "required": ["tvcApps"] + }, + "v1GetTvcDeploymentRequest": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Unique identifier for a given organization." + }, + "deploymentId": { + "type": "string", + "description": "Unique identifier for a given TVC Deployment." + } + }, + "required": ["organizationId", "deploymentId"] + }, + "v1GetTvcDeploymentResponse": { + "type": "object", + "properties": { + "tvcDeployment": { + "$ref": "#/definitions/v1TvcDeployment", + "description": "Details about a single TVC Deployment" + } + }, + "required": ["tvcDeployment"] + }, "v1GetUserRequest": { "type": "object", "properties": { @@ -11155,6 +11415,12 @@ }, "required": ["authenticatorId"] }, + "v1RefreshFeatureFlagsRequest": { + "type": "object" + }, + "v1RefreshFeatureFlagsResponse": { + "type": "object" + }, "v1RejectActivityIntent": { "type": "object", "properties": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 95d60694c..354100099 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -934,6 +934,31 @@ importers: specifier: ^6.10.0 version: 6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + examples/sol-send-transaction: + dependencies: + '@solana/spl-token': + specifier: ^0.4.9 + version: 0.4.14(@solana/web3.js@1.98.4(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.4.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.4.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.95.8 + version: 1.98.4(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.4.3)(utf-8-validate@5.0.10) + '@turnkey/sdk-server': + specifier: workspace:* + version: link:../../packages/sdk-server + dotenv: + specifier: ^16.0.3 + version: 16.0.3 + prompts: + specifier: ^2.4.2 + version: 2.4.2 + devDependencies: + '@types/prompts': + specifier: ^2.4.2 + version: 2.4.2 + typescript: + specifier: 5.4.3 + version: 5.4.3 + examples/sweeper: dependencies: '@turnkey/ethers': @@ -1018,7 +1043,7 @@ importers: version: 29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)) ts-jest: specifier: ^29.1.2 - version: 29.4.1(@babel/core@7.26.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.9))(jest-util@29.7.0)(jest@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)))(typescript@5.4.3) + version: 29.4.1(@babel/core@7.28.5)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.28.5))(jest-util@29.7.0)(jest@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)))(typescript@5.4.3) tsx: specifier: ^4.7.0 version: 4.20.6 @@ -3299,7 +3324,7 @@ importers: version: 29.5.14 jest: specifier: 29.7.0 - version: 29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)) + version: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) packages/eip-1193-provider: dependencies: @@ -19813,6 +19838,41 @@ snapshots: - supports-color - ts-node + '@jest/core@29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3))': + dependencies: + '@jest/console': 29.7.0 + '@jest/reporters': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 20.3.1 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + ci-info: 3.9.0 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-changed-files: 29.7.0 + jest-config: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + jest-haste-map: 29.7.0 + jest-message-util: 29.7.0 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-resolve-dependencies: 29.7.0 + jest-runner: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + jest-watcher: 29.7.0 + micromatch: 4.0.8 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + - ts-node + '@jest/core@29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3))': dependencies: '@jest/console': 29.7.0 @@ -26571,7 +26631,7 @@ snapshots: '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/jsonrpc-ws-connection': 1.0.16(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 @@ -26615,7 +26675,7 @@ snapshots: '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/jsonrpc-ws-connection': 1.0.16(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 @@ -26748,7 +26808,7 @@ snapshots: '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/jsonrpc-ws-connection': 1.0.16(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 @@ -26792,7 +26852,7 @@ snapshots: '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/jsonrpc-ws-connection': 1.0.16(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 @@ -26967,7 +27027,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/sign-client': 2.21.1(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.1 '@walletconnect/universal-provider': 2.21.1(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@3.25.76) @@ -27008,7 +27068,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/sign-client': 2.21.1(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@4.1.11) '@walletconnect/types': 2.21.1 '@walletconnect/universal-provider': 2.21.1(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@4.1.11) @@ -27730,7 +27790,7 @@ snapshots: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-types': 1.0.4 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 events: 3.3.0 transitivePeerDependencies: @@ -27818,7 +27878,7 @@ snapshots: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-types': 1.0.4 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 events: 3.3.0 transitivePeerDependencies: @@ -28127,7 +28187,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/sign-client': 2.21.0(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.0 @@ -28167,7 +28227,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/sign-client': 2.21.0(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@4.1.11) '@walletconnect/types': 2.21.0 @@ -28288,7 +28348,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/sign-client': 2.21.1(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@3.25.76) '@walletconnect/types': 2.21.1 @@ -28328,7 +28388,7 @@ snapshots: '@walletconnect/jsonrpc-provider': 1.0.14 '@walletconnect/jsonrpc-types': 1.0.4 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/logger': 2.1.2 '@walletconnect/sign-client': 2.21.1(bufferutil@4.0.9)(typescript@5.4.3)(utf-8-validate@5.0.10)(zod@4.1.11) '@walletconnect/types': 2.21.1 @@ -28545,7 +28605,7 @@ snapshots: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 @@ -28589,7 +28649,7 @@ snapshots: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 @@ -28722,7 +28782,7 @@ snapshots: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 @@ -28766,7 +28826,7 @@ snapshots: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@19.2.4)(utf-8-validate@5.0.10))) + '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@1.24.0(react-native@0.76.5(@babel/core@7.28.5)(@babel/preset-env@7.20.2(@babel/core@7.28.5))(@types/react@18.3.24)(bufferutil@4.0.9)(encoding@0.1.13)(react@18.3.1)(utf-8-validate@5.0.10))) '@walletconnect/relay-api': 1.0.11 '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 @@ -30144,6 +30204,21 @@ snapshots: - supports-color - ts-node + create-jest@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)): + dependencies: + '@jest/types': 29.6.3 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-config: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + jest-util: 29.7.0 + prompts: 2.4.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + create-jest@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)): dependencies: '@jest/types': 29.6.3 @@ -32454,6 +32529,25 @@ snapshots: - supports-color - ts-node + jest-cli@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)): + dependencies: + '@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + chalk: 4.1.2 + create-jest: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + exit: 0.1.2 + import-local: 3.2.0 + jest-config: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + jest-util: 29.7.0 + jest-validate: 29.7.0 + yargs: 17.7.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + jest-cli@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)): dependencies: '@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)) @@ -32566,6 +32660,37 @@ snapshots: - babel-plugin-macros - supports-color + jest-config@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)): + dependencies: + '@babel/core': 7.26.9 + '@jest/test-sequencer': 29.7.0 + '@jest/types': 29.6.3 + babel-jest: 29.7.0(@babel/core@7.26.9) + chalk: 4.1.2 + ci-info: 3.9.0 + deepmerge: 4.3.1 + glob: 13.0.0 + graceful-fs: 4.2.11 + jest-circus: 29.7.0(babel-plugin-macros@3.1.0) + jest-environment-node: 29.7.0 + jest-get-type: 29.6.3 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-runner: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + micromatch: 4.0.8 + parse-json: 5.2.0 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-json-comments: 3.1.1 + optionalDependencies: + '@types/node': 20.3.1 + ts-node: 10.9.2(@types/node@20.3.1)(typescript@5.4.3) + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + jest-config@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)): dependencies: '@babel/core': 7.26.9 @@ -32884,6 +33009,18 @@ snapshots: - supports-color - ts-node + jest@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)): + dependencies: + '@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + '@jest/types': 29.6.3 + import-local: 3.2.0 + jest-cli: 29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.4.3)) + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + jest@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)): dependencies: '@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)) @@ -36690,26 +36827,6 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.4.1(@babel/core@7.26.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.9))(jest-util@29.7.0)(jest@29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)))(typescript@5.4.3): - dependencies: - bs-logger: 0.2.6 - fast-json-stable-stringify: 2.1.0 - handlebars: 4.7.8 - jest: 29.7.0(@types/node@24.7.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@24.7.1)(typescript@5.4.3)) - json5: 2.2.3 - lodash.memoize: 4.1.2 - make-error: 1.3.6 - semver: 7.7.2 - type-fest: 4.41.0 - typescript: 5.4.3 - yargs-parser: 21.1.1 - optionalDependencies: - '@babel/core': 7.26.9 - '@jest/transform': 29.7.0 - '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.26.9) - jest-util: 29.7.0 - ts-jest@29.4.1(@babel/core@7.28.5)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.28.5))(jest-util@29.7.0)(jest@29.7.0(@types/node@20.3.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.1.3)))(typescript@5.1.3): dependencies: bs-logger: 0.2.6