From 78bc39c24253a1575b21ff00aad05b99d14db800 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 11:40:10 -0500 Subject: [PATCH 1/7] Release 2024.12.0 --- .changeset/happy-beans-pull.md | 7 + .../public/v1/public_api.swagger.json | 5 + .../coordinator/public/v1/public_api.types.ts | 2 + .../src/__generated__/sdk-client-base.ts | 2110 +++++++---------- .../src/__generated__/sdk_api_types.ts | 651 ++--- .../src/__inputs__/public_api.swagger.json | 5 + .../src/__inputs__/public_api.types.ts | 2 + 7 files changed, 1027 insertions(+), 1755 deletions(-) create mode 100644 .changeset/happy-beans-pull.md diff --git a/.changeset/happy-beans-pull.md b/.changeset/happy-beans-pull.md new file mode 100644 index 000000000..6fcc12781 --- /dev/null +++ b/.changeset/happy-beans-pull.md @@ -0,0 +1,7 @@ +--- +"@turnkey/telegram-cloud-storage-stamper": major +"@turnkey/sdk-server": minor +"@turnkey/http": minor +--- + +Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json index 091551dd1..de05730ee 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json @@ -8686,6 +8686,10 @@ "v1WalletAccount": { "type": "object", "properties": { + "walletAccountId": { + "type": "string", + "description": "Unique identifier for a given Wallet Account." + }, "organizationId": { "type": "string", "description": "The Organization the Account belongs to." @@ -8722,6 +8726,7 @@ } }, "required": [ + "walletAccountId", "organizationId", "walletId", "curve", diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts index 3445fdad9..304c25c07 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts @@ -2771,6 +2771,8 @@ export type definitions = { imported: boolean; }; v1WalletAccount: { + /** @description Unique identifier for a given Wallet Account. */ + walletAccountId: string; /** @description The Organization the Account belongs to. */ organizationId: string; /** @description The Wallet the Account was derived from. */ diff --git a/packages/sdk-server/src/__generated__/sdk-client-base.ts b/packages/sdk-server/src/__generated__/sdk-client-base.ts index 45d532b55..5254c612a 100644 --- a/packages/sdk-server/src/__generated__/sdk-client-base.ts +++ b/packages/sdk-server/src/__generated__/sdk-client-base.ts @@ -1,24 +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, - TurnkeyRequestError, - TurnkeySDKClientConfig, -} from "../__types__/base"; +import { GrpcStatus, TurnkeyRequestError, TurnkeySDKClientConfig } from "../__types__/base"; import { VERSION } from "../__generated__/version"; import type * as SdkApiTypes from "./sdk_api_types"; + export class TurnkeySDKClientBase { config: TurnkeySDKClientConfig; @@ -38,10 +30,10 @@ export class TurnkeySDKClientBase { method: "POST", headers: { [stamp.stampHeaderName]: stamp.stampHeaderValue, - "X-Client-Version": VERSION, + "X-Client-Version": VERSION }, body: stringifiedBody, - redirect: "follow", + redirect: "follow" }); if (!response.ok) { @@ -67,8 +59,7 @@ export class TurnkeySDKClientBase { 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; @@ -76,7 +67,7 @@ export class TurnkeySDKClientBase { if (status === "ACTIVITY_STATUS_COMPLETED") { return { ...result[`${resultKey}` as keyof definitions["v1Result"]], - ...activityData, + ...activityData } as TResponseType; } @@ -87,19 +78,15 @@ export class TurnkeySDKClientBase { const pollStatus = async (activityId: string): Promise => { const pollBody = { activityId }; - 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); } @@ -107,16 +94,9 @@ 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 - ) - ) { + const responseData = await this.request(url, body) as TActivityResponse; + + if (!TERMINAL_ACTIVITY_STATUSES.includes(responseData.activity.status as TActivityStatus)) { return pollStatus(responseData.activity.id); } @@ -127,26 +107,24 @@ export class TurnkeySDKClientBase { url: string, 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.config.stamper) { return undefined; } @@ -158,20 +136,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.config.stamper) { return undefined; } @@ -183,20 +159,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.config.stamper) { return undefined; } @@ -208,20 +182,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getAttestationDocument = async ( - input: SdkApiTypes.TGetAttestationDocumentBody - ): Promise => { + getAttestationDocument = async (input: SdkApiTypes.TGetAttestationDocumentBody): Promise => { return this.request("/public/v1/query/get_attestation", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } + - stampGetAttestationDocument = async ( - input: SdkApiTypes.TGetAttestationDocumentBody - ): Promise => { + stampGetAttestationDocument = async (input: SdkApiTypes.TGetAttestationDocumentBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -233,25 +205,22 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getAuthenticator = async ( - input: SdkApiTypes.TGetAuthenticatorBody - ): Promise => { + 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -259,25 +228,22 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -285,25 +251,22 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -311,25 +274,22 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getOrganization = async ( - input: SdkApiTypes.TGetOrganizationBody = {} - ): Promise => { + getOrganization = async (input: SdkApiTypes.TGetOrganizationBody = {}): Promise => { return this.request("/public/v1/query/get_organization", { ...input, - organizationId: input.organizationId ?? this.config.organizationId, + organizationId: input.organizationId ?? this.config.organizationId }); - }; + } + - stampGetOrganization = async ( - input: SdkApiTypes.TGetOrganizationBody - ): Promise => { + stampGetOrganization = async (input: SdkApiTypes.TGetOrganizationBody): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/query/get_organization"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -337,25 +297,22 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getOrganizationConfigs = async ( - input: SdkApiTypes.TGetOrganizationConfigsBody - ): Promise => { + 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -363,20 +320,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.config.stamper) { return undefined; } @@ -388,20 +343,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.config.stamper) { return undefined; } @@ -413,20 +366,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getUser = async ( - input: SdkApiTypes.TGetUserBody - ): Promise => { + 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 }); - }; + } + - stampGetUser = async ( - input: SdkApiTypes.TGetUserBody - ): Promise => { + stampGetUser = async (input: SdkApiTypes.TGetUserBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -438,20 +389,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getWallet = async ( - input: SdkApiTypes.TGetWalletBody - ): Promise => { + 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 }); - }; + } + - stampGetWallet = async ( - input: SdkApiTypes.TGetWalletBody - ): Promise => { + stampGetWallet = async (input: SdkApiTypes.TGetWalletBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -463,20 +412,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - getActivities = async ( - input: SdkApiTypes.TGetActivitiesBody = {} - ): Promise => { + 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 }); - }; + } + - stampGetActivities = async ( - input: SdkApiTypes.TGetActivitiesBody - ): Promise => { + stampGetActivities = async (input: SdkApiTypes.TGetActivitiesBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -488,20 +435,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.config.stamper) { return undefined; } @@ -513,25 +458,22 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -539,25 +481,22 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -565,20 +504,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.config.stamper) { return undefined; } @@ -590,20 +527,18 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - listUserTags = async ( - input: SdkApiTypes.TListUserTagsBody = {} - ): Promise => { + listUserTags = async (input: SdkApiTypes.TListUserTagsBody = {}): 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.config.stamper) { return undefined; } @@ -615,20 +550,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.config.stamper) { return undefined; } @@ -640,25 +573,22 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -666,20 +596,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.config.stamper) { return undefined; } @@ -691,20 +619,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.config.stamper) { return undefined; } @@ -716,28 +642,26 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -745,32 +669,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -778,32 +695,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createApiOnlyUsers = async ( - input: SdkApiTypes.TCreateApiOnlyUsersBody - ): Promise => { + createApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { const { organizationId, timestampMs, ...rest } = input; - 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" - ); - }; + 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"); + } + - stampCreateApiOnlyUsers = async ( - input: SdkApiTypes.TCreateApiOnlyUsersBody - ): Promise => { + stampCreateApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -811,32 +721,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createAuthenticators = async ( - input: SdkApiTypes.TCreateAuthenticatorsBody - ): Promise => { + createAuthenticators = async (input: SdkApiTypes.TCreateAuthenticatorsBody): 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_authenticators", { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" + }, "createAuthenticatorsResult"); + } + - stampCreateAuthenticators = async ( - input: SdkApiTypes.TCreateAuthenticatorsBody - ): Promise => { + stampCreateAuthenticators = async (input: SdkApiTypes.TCreateAuthenticatorsBody): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_authenticators"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_authenticators"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -844,32 +747,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -877,32 +773,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -910,32 +799,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_policies"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_policies"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -943,27 +825,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.config.stamper) { return undefined; } @@ -975,32 +851,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1008,32 +877,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1041,32 +903,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1074,32 +929,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1107,32 +955,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1140,32 +981,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } + - createUserTag = async ( - input: SdkApiTypes.TCreateUserTagBody - ): Promise => { + 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" - ); - }; + 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1173,27 +1007,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_V2", - }, - "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_V2" + }, "createUsersResult"); + } - stampCreateUsers = async ( - input: SdkApiTypes.TCreateUsersBody - ): Promise => { + + stampCreateUsers = async (input: SdkApiTypes.TCreateUsersBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -1205,27 +1033,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.config.stamper) { return undefined; } @@ -1237,32 +1059,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1270,32 +1085,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1303,32 +1111,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1336,32 +1137,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1369,32 +1163,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1402,27 +1189,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.config.stamper) { return undefined; } @@ -1434,32 +1215,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1467,32 +1241,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1500,32 +1267,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1533,32 +1293,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1566,27 +1319,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.config.stamper) { return undefined; } @@ -1598,27 +1345,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.config.stamper) { return undefined; } @@ -1630,27 +1371,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_V2", - }, - "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_V2" + }, "emailAuthResult"); + } + - stampEmailAuth = async ( - input: SdkApiTypes.TEmailAuthBody - ): Promise => { + stampEmailAuth = async (input: SdkApiTypes.TEmailAuthBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -1662,32 +1397,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1695,27 +1423,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.config.stamper) { return undefined; } @@ -1727,32 +1449,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1760,32 +1475,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1793,27 +1501,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.config.stamper) { return undefined; } @@ -1825,32 +1527,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1858,32 +1553,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1891,27 +1579,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", - }, - "initOtpAuthResult" - ); - }; + 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" + }, "initOtpAuthResult"); + } + - stampInitOtpAuth = async ( - input: SdkApiTypes.TInitOtpAuthBody - ): Promise => { + stampInitOtpAuth = async (input: SdkApiTypes.TInitOtpAuthBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -1923,32 +1605,25 @@ 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", - }, - "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" + }, "initUserEmailRecoveryResult"); + } + - stampInitUserEmailRecovery = async ( - input: SdkApiTypes.TInitUserEmailRecoveryBody - ): Promise => { + stampInitUserEmailRecovery = async (input: SdkApiTypes.TInitUserEmailRecoveryBody): Promise => { if (!this.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1956,27 +1631,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.config.stamper) { return undefined; } @@ -1988,27 +1657,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.config.stamper) { return undefined; } @@ -2020,27 +1683,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.config.stamper) { return undefined; } @@ -2052,28 +1709,26 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2081,32 +1736,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2114,32 +1762,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2147,32 +1788,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2180,32 +1814,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; + } - signRawPayloads = 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" - ); - }; + 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 => { + + stampSignRawPayloads = async (input: SdkApiTypes.TSignRawPayloadsBody): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2213,32 +1840,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2246,27 +1866,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", - }, - "updatePolicyResult" - ); - }; + 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" + }, "updatePolicyResult"); + } + - stampUpdatePolicy = async ( - input: SdkApiTypes.TUpdatePolicyBody - ): Promise => { + stampUpdatePolicy = async (input: SdkApiTypes.TUpdatePolicyBody): Promise => { if (!this.config.stamper) { return undefined; } @@ -2278,32 +1892,25 @@ 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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2311,32 +1918,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2344,27 +1944,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.config.stamper) { return undefined; } @@ -2376,32 +1970,25 @@ 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.config.stamper) { return undefined; } - const fullUrl = - this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; + const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -2409,5 +1996,6 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - }; -} + } + +} \ No newline at end of file diff --git a/packages/sdk-server/src/__generated__/sdk_api_types.ts b/packages/sdk-server/src/__generated__/sdk_api_types.ts index acc36539b..a7a6ffa6b 100644 --- a/packages/sdk-server/src/__generated__/sdk_api_types.ts +++ b/packages/sdk-server/src/__generated__/sdk_api_types.ts @@ -2,793 +2,456 @@ 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 TGetAttestationDocumentResponse = - operations["PublicApiService_GetAttestationDocument"]["responses"]["200"]["schema"]; +export type TGetAttestationDocumentResponse = operations["PublicApiService_GetAttestationDocument"]["responses"]["200"]["schema"]; -export type TGetAttestationDocumentInput = { - body: TGetAttestationDocumentBody; -}; +export type TGetAttestationDocumentInput = { body: TGetAttestationDocumentBody }; -export type TGetAttestationDocumentBody = Omit< - operations["PublicApiService_GetAttestationDocument"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetAttestationDocumentBody = Omit & queryOverrideParams; -export type TGetAuthenticatorResponse = - operations["PublicApiService_GetAuthenticator"]["responses"]["200"]["schema"]; +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 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 TGetOrganizationResponse = - operations["PublicApiService_GetOrganization"]["responses"]["200"]["schema"]; +export type TGetOrganizationResponse = operations["PublicApiService_GetOrganization"]["responses"]["200"]["schema"]; export type TGetOrganizationInput = { body: TGetOrganizationBody }; -export type TGetOrganizationBody = Omit< - operations["PublicApiService_GetOrganization"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetOrganizationBody = Omit & queryOverrideParams; -export type TGetOrganizationConfigsResponse = - operations["PublicApiService_GetOrganizationConfigs"]["responses"]["200"]["schema"]; +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 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 TGetUserResponse = - operations["PublicApiService_GetUser"]["responses"]["200"]["schema"]; +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 TGetActivitiesResponse = - operations["PublicApiService_GetActivities"]["responses"]["200"]["schema"]; +export type TGetActivitiesResponse = operations["PublicApiService_GetActivities"]["responses"]["200"]["schema"]; export type TGetActivitiesInput = { body: TGetActivitiesBody }; -export type TGetActivitiesBody = Omit< - operations["PublicApiService_GetActivities"]["parameters"]["body"]["body"], - "organizationId" -> & - queryOverrideParams; +export type TGetActivitiesBody = 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 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 TListUserTagsResponse = - operations["PublicApiService_ListUserTags"]["responses"]["200"]["schema"]; +export type TListUserTagsResponse = operations["PublicApiService_ListUserTags"]["responses"]["200"]["schema"]; 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 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 TCreateApiOnlyUsersResponse = - operations["PublicApiService_CreateApiOnlyUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createApiOnlyUsersResult"] & - definitions["v1ActivityResponse"]; +export type TCreateApiOnlyUsersResponse = operations["PublicApiService_CreateApiOnlyUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createApiOnlyUsersResult"] & definitions["v1ActivityResponse"]; export type TCreateApiOnlyUsersInput = { body: TCreateApiOnlyUsersBody }; -export type TCreateApiOnlyUsersBody = - operations["PublicApiService_CreateApiOnlyUsers"]["parameters"]["body"]["body"]["parameters"] & - commandOverrideParams; +export type TCreateApiOnlyUsersBody = operations["PublicApiService_CreateApiOnlyUsers"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; -export type TCreateAuthenticatorsResponse = - operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["createAuthenticatorsResult"] & - definitions["v1ActivityResponse"]; +export type TCreateAuthenticatorsResponse = operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["createAuthenticatorsResult"] & definitions["v1ActivityResponse"]; 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 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 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 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 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 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 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 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 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 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 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 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 TInitOtpAuthResponse = - operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResult"] & - definitions["v1ActivityResponse"]; +export type TInitOtpAuthResponse = operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResult"] & 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 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 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 TUpdatePolicyResponse = - operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResult"] & - definitions["v1ActivityResponse"]; +export type TUpdatePolicyResponse = operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResult"] & 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 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 TNOOPCodegenAnchorResponse = - operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"]; +export type TNOOPCodegenAnchorResponse = operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"]; \ No newline at end of file diff --git a/packages/sdk-server/src/__inputs__/public_api.swagger.json b/packages/sdk-server/src/__inputs__/public_api.swagger.json index 091551dd1..de05730ee 100644 --- a/packages/sdk-server/src/__inputs__/public_api.swagger.json +++ b/packages/sdk-server/src/__inputs__/public_api.swagger.json @@ -8686,6 +8686,10 @@ "v1WalletAccount": { "type": "object", "properties": { + "walletAccountId": { + "type": "string", + "description": "Unique identifier for a given Wallet Account." + }, "organizationId": { "type": "string", "description": "The Organization the Account belongs to." @@ -8722,6 +8726,7 @@ } }, "required": [ + "walletAccountId", "organizationId", "walletId", "curve", diff --git a/packages/sdk-server/src/__inputs__/public_api.types.ts b/packages/sdk-server/src/__inputs__/public_api.types.ts index 3445fdad9..304c25c07 100644 --- a/packages/sdk-server/src/__inputs__/public_api.types.ts +++ b/packages/sdk-server/src/__inputs__/public_api.types.ts @@ -2771,6 +2771,8 @@ export type definitions = { imported: boolean; }; v1WalletAccount: { + /** @description Unique identifier for a given Wallet Account. */ + walletAccountId: string; /** @description The Organization the Account belongs to. */ organizationId: string; /** @description The Wallet the Account was derived from. */ From 911c6acbaf56312c693659fc11368a38c065c9ab Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 11:57:23 -0500 Subject: [PATCH 2/7] Release 2024.12.0 --- .changeset/happy-beans-pull.md | 7 ------- .changeset/itchy-balloons-call.md | 5 ----- examples/kitchen-sink/package.json | 2 +- examples/with-eth-passkeys-galore/package.json | 2 +- examples/with-solana-passkeys/package.json | 2 +- examples/with-wallet-stamper/package.json | 2 +- packages/cosmjs/CHANGELOG.md | 9 +++++++++ packages/cosmjs/package.json | 2 +- packages/eip-1193-provider/CHANGELOG.md | 7 +++++++ packages/eip-1193-provider/package.json | 2 +- packages/eip-1193-provider/src/version.ts | 2 +- packages/ethers/CHANGELOG.md | 9 +++++++++ packages/ethers/package.json | 2 +- packages/http/CHANGELOG.md | 6 ++++++ packages/http/package.json | 2 +- packages/http/src/version.ts | 2 +- packages/react-native-passkey-stamper/CHANGELOG.md | 7 +++++++ packages/react-native-passkey-stamper/package.json | 2 +- packages/sdk-browser/CHANGELOG.md | 9 +++++++++ packages/sdk-browser/package.json | 2 +- packages/sdk-browser/src/__generated__/version.ts | 2 +- packages/sdk-react/CHANGELOG.md | 7 +++++++ packages/sdk-react/package.json | 2 +- packages/sdk-server/CHANGELOG.md | 11 +++++++++++ packages/sdk-server/package.json | 2 +- packages/sdk-server/src/__generated__/version.ts | 2 +- packages/solana/CHANGELOG.md | 9 +++++++++ packages/solana/package.json | 2 +- packages/telegram-cloud-storage-stamper/CHANGELOG.md | 11 +++++++++++ packages/telegram-cloud-storage-stamper/package.json | 2 +- packages/viem/CHANGELOG.md | 9 +++++++++ packages/viem/package.json | 2 +- 32 files changed, 113 insertions(+), 31 deletions(-) delete mode 100644 .changeset/happy-beans-pull.md delete mode 100644 .changeset/itchy-balloons-call.md create mode 100644 packages/telegram-cloud-storage-stamper/CHANGELOG.md diff --git a/.changeset/happy-beans-pull.md b/.changeset/happy-beans-pull.md deleted file mode 100644 index 6fcc12781..000000000 --- a/.changeset/happy-beans-pull.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@turnkey/telegram-cloud-storage-stamper": major -"@turnkey/sdk-server": minor -"@turnkey/http": minor ---- - -Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. diff --git a/.changeset/itchy-balloons-call.md b/.changeset/itchy-balloons-call.md deleted file mode 100644 index bdb66cd39..000000000 --- a/.changeset/itchy-balloons-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@turnkey/telegram-cloud-storage-stamper": minor ---- - -Initial release of the telegram-cloud-storage-stamper package. This package is to be used alongside Telegram mini-app development and provides a stamping utility and an interface into Telegram Cloud Storage. More can be read in the [README](../packages/telegram-cloud-storage-stamper/README.md). diff --git a/examples/kitchen-sink/package.json b/examples/kitchen-sink/package.json index 969f2f66e..f4ab7dcfa 100644 --- a/examples/kitchen-sink/package.json +++ b/examples/kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/kitchen-sink", - "version": "0.1.2", + "version": "0.1.3", "private": true, "scripts": { "start-sdk-server": "tsx sdkServerClient.ts", diff --git a/examples/with-eth-passkeys-galore/package.json b/examples/with-eth-passkeys-galore/package.json index 922c536b3..dd15ea60d 100644 --- a/examples/with-eth-passkeys-galore/package.json +++ b/examples/with-eth-passkeys-galore/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/with-eth-passkey-signers", - "version": "0.2.2", + "version": "0.2.3", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/with-solana-passkeys/package.json b/examples/with-solana-passkeys/package.json index 568c69573..1f1423951 100644 --- a/examples/with-solana-passkeys/package.json +++ b/examples/with-solana-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/with-solana-passkeys", - "version": "0.1.4", + "version": "0.1.5", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/with-wallet-stamper/package.json b/examples/with-wallet-stamper/package.json index 753beeebc..5743823bf 100644 --- a/examples/with-wallet-stamper/package.json +++ b/examples/with-wallet-stamper/package.json @@ -1,6 +1,6 @@ { "name": "with-wallet-stamper", - "version": "0.1.4", + "version": "0.1.5", "private": true, "type": "module", "scripts": { diff --git a/packages/cosmjs/CHANGELOG.md b/packages/cosmjs/CHANGELOG.md index ec6f7b8ef..4a8437c4c 100644 --- a/packages/cosmjs/CHANGELOG.md +++ b/packages/cosmjs/CHANGELOG.md @@ -1,5 +1,14 @@ # @turnkey/cosmjs +## 0.6.4 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/sdk-server@1.7.0 + - @turnkey/http@2.17.0 + - @turnkey/sdk-browser@1.10.1 + ## 0.6.3 ### Patch Changes diff --git a/packages/cosmjs/package.json b/packages/cosmjs/package.json index 68cee6b27..7389b42fa 100644 --- a/packages/cosmjs/package.json +++ b/packages/cosmjs/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/cosmjs", - "version": "0.6.3", + "version": "0.6.4", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/eip-1193-provider/CHANGELOG.md b/packages/eip-1193-provider/CHANGELOG.md index 59a5f5c5b..07a51731b 100644 --- a/packages/eip-1193-provider/CHANGELOG.md +++ b/packages/eip-1193-provider/CHANGELOG.md @@ -1,5 +1,12 @@ # @turnkey/eip-1193-provider +## 4.0.0 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/http@2.17.0 + ## 3.0.1 ### Patch Changes diff --git a/packages/eip-1193-provider/package.json b/packages/eip-1193-provider/package.json index 8a44de794..85939e282 100644 --- a/packages/eip-1193-provider/package.json +++ b/packages/eip-1193-provider/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/eip-1193-provider", - "version": "3.0.1", + "version": "4.0.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/eip-1193-provider/src/version.ts b/packages/eip-1193-provider/src/version.ts index 3b8b61dec..abcb99dde 100644 --- a/packages/eip-1193-provider/src/version.ts +++ b/packages/eip-1193-provider/src/version.ts @@ -1 +1 @@ -export const VERSION = "@turnkey/eip-1193-provider@3.0.1"; +export const VERSION = "@turnkey/eip-1193-provider@4.0.0"; diff --git a/packages/ethers/CHANGELOG.md b/packages/ethers/CHANGELOG.md index 4015ffb00..6733b0054 100644 --- a/packages/ethers/CHANGELOG.md +++ b/packages/ethers/CHANGELOG.md @@ -1,5 +1,14 @@ # @turnkey/ethers +## 1.1.6 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/sdk-server@1.7.0 + - @turnkey/http@2.17.0 + - @turnkey/sdk-browser@1.10.1 + ## 1.1.5 ### Patch Changes diff --git a/packages/ethers/package.json b/packages/ethers/package.json index 27254c2ae..bee959d8c 100644 --- a/packages/ethers/package.json +++ b/packages/ethers/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/ethers", - "version": "1.1.5", + "version": "1.1.6", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index b56aad89b..0c2b987e0 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,5 +1,11 @@ # @turnkey/http +## 2.17.0 + +### Minor Changes + +- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. + ## 2.16.0 ### Minor Changes diff --git a/packages/http/package.json b/packages/http/package.json index 043ab18d8..1b4ad980e 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/http", - "version": "2.16.0", + "version": "2.17.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/http/src/version.ts b/packages/http/src/version.ts index d8aa63444..ce83a8e79 100644 --- a/packages/http/src/version.ts +++ b/packages/http/src/version.ts @@ -1 +1 @@ -export const VERSION = "@turnkey/http@2.16.0"; +export const VERSION = "@turnkey/http@2.17.0"; diff --git a/packages/react-native-passkey-stamper/CHANGELOG.md b/packages/react-native-passkey-stamper/CHANGELOG.md index b3917a86a..83fe15e13 100644 --- a/packages/react-native-passkey-stamper/CHANGELOG.md +++ b/packages/react-native-passkey-stamper/CHANGELOG.md @@ -1,5 +1,12 @@ # @turnkey/react-native-passkey-stamper +## 1.0.1 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/http@2.17.0 + ## 1.0.0 ### Major Changes diff --git a/packages/react-native-passkey-stamper/package.json b/packages/react-native-passkey-stamper/package.json index 865d05db8..d17f41ed5 100644 --- a/packages/react-native-passkey-stamper/package.json +++ b/packages/react-native-passkey-stamper/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/react-native-passkey-stamper", - "version": "1.0.0", + "version": "1.0.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/sdk-browser/CHANGELOG.md b/packages/sdk-browser/CHANGELOG.md index fef6ff694..0738b34b3 100644 --- a/packages/sdk-browser/CHANGELOG.md +++ b/packages/sdk-browser/CHANGELOG.md @@ -1,5 +1,14 @@ # @turnkey/sdk-browser +## 1.10.1 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/http@2.17.0 + - @turnkey/crypto@2.2.0 + - @turnkey/wallet-stamper@1.0.0 + ## 1.10.0 ### Minor Changes diff --git a/packages/sdk-browser/package.json b/packages/sdk-browser/package.json index 3477dc887..c574a9211 100644 --- a/packages/sdk-browser/package.json +++ b/packages/sdk-browser/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/sdk-browser", - "version": "1.10.0", + "version": "1.10.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/sdk-browser/src/__generated__/version.ts b/packages/sdk-browser/src/__generated__/version.ts index cae163c3c..43255210d 100644 --- a/packages/sdk-browser/src/__generated__/version.ts +++ b/packages/sdk-browser/src/__generated__/version.ts @@ -1 +1 @@ -export const VERSION = "@turnkey/sdk-browser@1.10.0"; +export const VERSION = "@turnkey/sdk-browser@1.10.1"; diff --git a/packages/sdk-react/CHANGELOG.md b/packages/sdk-react/CHANGELOG.md index 5171b6414..b0a07da96 100644 --- a/packages/sdk-react/CHANGELOG.md +++ b/packages/sdk-react/CHANGELOG.md @@ -1,5 +1,12 @@ # @turnkey/sdk-react +## 1.1.1 + +### Patch Changes + +- @turnkey/sdk-browser@1.10.1 +- @turnkey/wallet-stamper@1.0.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/sdk-react/package.json b/packages/sdk-react/package.json index 93f6666e6..4e98d873b 100644 --- a/packages/sdk-react/package.json +++ b/packages/sdk-react/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/sdk-react", - "version": "1.1.0", + "version": "1.1.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/sdk-server/CHANGELOG.md b/packages/sdk-server/CHANGELOG.md index 4dc472320..1c0101a0b 100644 --- a/packages/sdk-server/CHANGELOG.md +++ b/packages/sdk-server/CHANGELOG.md @@ -1,5 +1,16 @@ # @turnkey/sdk-server +## 1.7.0 + +### Minor Changes + +- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/http@2.17.0 + ## 1.6.0 ### Minor Changes diff --git a/packages/sdk-server/package.json b/packages/sdk-server/package.json index c2b0ee236..10e9ff4bd 100644 --- a/packages/sdk-server/package.json +++ b/packages/sdk-server/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/sdk-server", - "version": "1.6.0", + "version": "1.7.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/sdk-server/src/__generated__/version.ts b/packages/sdk-server/src/__generated__/version.ts index b15bb09de..d2618f1b7 100644 --- a/packages/sdk-server/src/__generated__/version.ts +++ b/packages/sdk-server/src/__generated__/version.ts @@ -1 +1 @@ -export const VERSION = "@turnkey/sdk-server@1.6.0"; +export const VERSION = "@turnkey/sdk-server@1.7.0"; diff --git a/packages/solana/CHANGELOG.md b/packages/solana/CHANGELOG.md index 5c61bd69f..3ba19fb41 100644 --- a/packages/solana/CHANGELOG.md +++ b/packages/solana/CHANGELOG.md @@ -1,5 +1,14 @@ # @turnkey/solana +## 1.0.5 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/sdk-server@1.7.0 + - @turnkey/http@2.17.0 + - @turnkey/sdk-browser@1.10.1 + ## 1.0.4 ### Patch Changes diff --git a/packages/solana/package.json b/packages/solana/package.json index e3d23606e..360992a75 100644 --- a/packages/solana/package.json +++ b/packages/solana/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/solana", - "version": "1.0.4", + "version": "1.0.5", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/telegram-cloud-storage-stamper/CHANGELOG.md b/packages/telegram-cloud-storage-stamper/CHANGELOG.md new file mode 100644 index 000000000..b8d912dc8 --- /dev/null +++ b/packages/telegram-cloud-storage-stamper/CHANGELOG.md @@ -0,0 +1,11 @@ +# @turnkey/telegram-cloud-storage-stamper + +## 1.0.0 + +### Major Changes + +- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. + +### Minor Changes + +- 6d17606: Initial release of the telegram-cloud-storage-stamper package. This package is to be used alongside Telegram mini-app development and provides a stamping utility and an interface into Telegram Cloud Storage. More can be read in the [README](../packages/telegram-cloud-storage-stamper/README.md). diff --git a/packages/telegram-cloud-storage-stamper/package.json b/packages/telegram-cloud-storage-stamper/package.json index 6ee8e498d..73bd3c955 100644 --- a/packages/telegram-cloud-storage-stamper/package.json +++ b/packages/telegram-cloud-storage-stamper/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/telegram-cloud-storage-stamper", - "version": "0.1.0", + "version": "1.0.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/viem/CHANGELOG.md b/packages/viem/CHANGELOG.md index 4c6b371b7..47086be46 100644 --- a/packages/viem/CHANGELOG.md +++ b/packages/viem/CHANGELOG.md @@ -1,5 +1,14 @@ # @turnkey/viem +## 0.6.5 + +### Patch Changes + +- Updated dependencies [78bc39c] + - @turnkey/sdk-server@1.7.0 + - @turnkey/http@2.17.0 + - @turnkey/sdk-browser@1.10.1 + ## 0.6.4 ### Patch Changes diff --git a/packages/viem/package.json b/packages/viem/package.json index 28d552ff1..636534ef7 100644 --- a/packages/viem/package.json +++ b/packages/viem/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/viem", - "version": "0.6.4", + "version": "0.6.5", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { From 354b7c553fa9b7d7216a40c11f17eab1e721d0b8 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 12:16:08 -0500 Subject: [PATCH 3/7] prettier --- .../src/__generated__/sdk-client-base.ts | 2110 ++++++++++------- .../src/__generated__/sdk_api_types.ts | 651 +++-- 2 files changed, 1755 insertions(+), 1006 deletions(-) diff --git a/packages/sdk-server/src/__generated__/sdk-client-base.ts b/packages/sdk-server/src/__generated__/sdk-client-base.ts index 5254c612a..45d532b55 100644 --- a/packages/sdk-server/src/__generated__/sdk-client-base.ts +++ b/packages/sdk-server/src/__generated__/sdk-client-base.ts @@ -1,16 +1,24 @@ /* @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, TurnkeyRequestError, TurnkeySDKClientConfig } from "../__types__/base"; +import { + GrpcStatus, + TurnkeyRequestError, + TurnkeySDKClientConfig, +} from "../__types__/base"; import { VERSION } from "../__generated__/version"; import type * as SdkApiTypes from "./sdk_api_types"; - export class TurnkeySDKClientBase { config: TurnkeySDKClientConfig; @@ -30,10 +38,10 @@ export class TurnkeySDKClientBase { method: "POST", headers: { [stamp.stampHeaderName]: stamp.stampHeaderValue, - "X-Client-Version": VERSION + "X-Client-Version": VERSION, }, body: stringifiedBody, - redirect: "follow" + redirect: "follow", }); if (!response.ok) { @@ -59,7 +67,8 @@ export class TurnkeySDKClientBase { 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; @@ -67,7 +76,7 @@ export class TurnkeySDKClientBase { if (status === "ACTIVITY_STATUS_COMPLETED") { return { ...result[`${resultKey}` as keyof definitions["v1Result"]], - ...activityData + ...activityData, } as TResponseType; } @@ -78,15 +87,19 @@ export class TurnkeySDKClientBase { const pollStatus = async (activityId: string): Promise => { const pollBody = { activityId }; - 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); } @@ -94,9 +107,16 @@ 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)) { + const responseData = (await this.request( + url, + body + )) as TActivityResponse; + + if ( + !TERMINAL_ACTIVITY_STATUSES.includes( + responseData.activity.status as TActivityStatus + ) + ) { return pollStatus(responseData.activity.id); } @@ -107,24 +127,26 @@ export class TurnkeySDKClientBase { url: string, 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.config.stamper) { return undefined; } @@ -136,18 +158,20 @@ 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.config.stamper) { return undefined; } @@ -159,18 +183,20 @@ 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.config.stamper) { return undefined; } @@ -182,18 +208,20 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getAttestationDocument = async (input: SdkApiTypes.TGetAttestationDocumentBody): Promise => { + getAttestationDocument = async ( + input: SdkApiTypes.TGetAttestationDocumentBody + ): Promise => { return this.request("/public/v1/query/get_attestation", { ...input, - organizationId: input.organizationId ?? this.config.organizationId + organizationId: input.organizationId ?? this.config.organizationId, }); - } - + }; - stampGetAttestationDocument = async (input: SdkApiTypes.TGetAttestationDocumentBody): Promise => { + stampGetAttestationDocument = async ( + input: SdkApiTypes.TGetAttestationDocumentBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -205,22 +233,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getAuthenticator = async (input: SdkApiTypes.TGetAuthenticatorBody): Promise => { + 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -228,22 +259,25 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -251,22 +285,25 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -274,22 +311,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getOrganization = async (input: SdkApiTypes.TGetOrganizationBody = {}): Promise => { + getOrganization = async ( + input: SdkApiTypes.TGetOrganizationBody = {} + ): Promise => { return this.request("/public/v1/query/get_organization", { ...input, - organizationId: input.organizationId ?? this.config.organizationId + organizationId: input.organizationId ?? this.config.organizationId, }); - } - + }; - stampGetOrganization = async (input: SdkApiTypes.TGetOrganizationBody): Promise => { + stampGetOrganization = async ( + input: SdkApiTypes.TGetOrganizationBody + ): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/query/get_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -297,22 +337,25 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getOrganizationConfigs = async (input: SdkApiTypes.TGetOrganizationConfigsBody): Promise => { + 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -320,18 +363,20 @@ 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.config.stamper) { return undefined; } @@ -343,18 +388,20 @@ 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.config.stamper) { return undefined; } @@ -366,18 +413,20 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getUser = async (input: SdkApiTypes.TGetUserBody): Promise => { + 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, }); - } - + }; - stampGetUser = async (input: SdkApiTypes.TGetUserBody): Promise => { + stampGetUser = async ( + input: SdkApiTypes.TGetUserBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -389,18 +438,20 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getWallet = async (input: SdkApiTypes.TGetWalletBody): Promise => { + 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, }); - } - + }; - stampGetWallet = async (input: SdkApiTypes.TGetWalletBody): Promise => { + stampGetWallet = async ( + input: SdkApiTypes.TGetWalletBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -412,18 +463,20 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - getActivities = async (input: SdkApiTypes.TGetActivitiesBody = {}): Promise => { + 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, }); - } - + }; - stampGetActivities = async (input: SdkApiTypes.TGetActivitiesBody): Promise => { + stampGetActivities = async ( + input: SdkApiTypes.TGetActivitiesBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -435,18 +488,20 @@ 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.config.stamper) { return undefined; } @@ -458,22 +513,25 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -481,22 +539,25 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -504,18 +565,20 @@ 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.config.stamper) { return undefined; } @@ -527,18 +590,20 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - listUserTags = async (input: SdkApiTypes.TListUserTagsBody = {}): Promise => { + listUserTags = async ( + input: SdkApiTypes.TListUserTagsBody = {} + ): 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.config.stamper) { return undefined; } @@ -550,18 +615,20 @@ 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.config.stamper) { return undefined; } @@ -573,22 +640,25 @@ 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.config.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 = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -596,18 +666,20 @@ 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.config.stamper) { return undefined; } @@ -619,18 +691,20 @@ 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.config.stamper) { return undefined; } @@ -642,26 +716,28 @@ 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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/approve_activity"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -669,25 +745,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_api_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -695,25 +778,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - createApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { + createApiOnlyUsers = async ( + input: SdkApiTypes.TCreateApiOnlyUsersBody + ): Promise => { const { organizationId, timestampMs, ...rest } = input; - 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"); - } - + 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" + ); + }; - stampCreateApiOnlyUsers = async (input: SdkApiTypes.TCreateApiOnlyUsersBody): Promise => { + stampCreateApiOnlyUsers = async ( + input: SdkApiTypes.TCreateApiOnlyUsersBody + ): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -721,25 +811,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - createAuthenticators = async (input: SdkApiTypes.TCreateAuthenticatorsBody): Promise => { + createAuthenticators = async ( + input: SdkApiTypes.TCreateAuthenticatorsBody + ): 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_authenticators", + { + parameters: rest, + organizationId: organizationId ?? this.config.organizationId, + timestampMs: timestampMs ?? String(Date.now()), + type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2", + }, + "createAuthenticatorsResult" + ); + }; - stampCreateAuthenticators = async (input: SdkApiTypes.TCreateAuthenticatorsBody): Promise => { + stampCreateAuthenticators = async ( + input: SdkApiTypes.TCreateAuthenticatorsBody + ): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_authenticators"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_authenticators"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -747,25 +844,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_invitations"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -773,25 +877,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -799,25 +910,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_policies"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_policies"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -825,21 +943,27 @@ 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.config.stamper) { return undefined; } @@ -851,25 +975,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -877,25 +1008,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_private_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -903,25 +1041,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -929,25 +1074,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -955,25 +1107,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -981,25 +1140,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - + }; - createUserTag = async (input: SdkApiTypes.TCreateUserTagBody): Promise => { + 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"); - } - + 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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_user_tag"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1007,21 +1173,27 @@ 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_V2" - }, "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_V2", + }, + "createUsersResult" + ); + }; - stampCreateUsers = async (input: SdkApiTypes.TCreateUsersBody): Promise => { + stampCreateUsers = async ( + input: SdkApiTypes.TCreateUsersBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -1033,21 +1205,27 @@ 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.config.stamper) { return undefined; } @@ -1059,25 +1237,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1085,25 +1270,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1111,25 +1303,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1137,25 +1336,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_invitation"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1163,25 +1369,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1189,21 +1402,27 @@ 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.config.stamper) { return undefined; } @@ -1215,25 +1434,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1241,25 +1467,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1267,25 +1500,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1293,25 +1533,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1319,21 +1566,27 @@ 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.config.stamper) { return undefined; } @@ -1345,21 +1598,27 @@ 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.config.stamper) { return undefined; } @@ -1371,21 +1630,27 @@ 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_V2" - }, "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_V2", + }, + "emailAuthResult" + ); + }; - stampEmailAuth = async (input: SdkApiTypes.TEmailAuthBody): Promise => { + stampEmailAuth = async ( + input: SdkApiTypes.TEmailAuthBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -1397,25 +1662,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/export_private_key"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1423,21 +1695,27 @@ 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.config.stamper) { return undefined; } @@ -1449,25 +1727,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1475,25 +1760,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/import_private_key"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1501,21 +1793,27 @@ 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.config.stamper) { return undefined; } @@ -1527,25 +1825,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1553,25 +1858,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1579,21 +1891,27 @@ 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" - }, "initOtpAuthResult"); - } - + 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", + }, + "initOtpAuthResult" + ); + }; - stampInitOtpAuth = async (input: SdkApiTypes.TInitOtpAuthBody): Promise => { + stampInitOtpAuth = async ( + input: SdkApiTypes.TInitOtpAuthBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -1605,25 +1923,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" - }, "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", + }, + "initUserEmailRecoveryResult" + ); + }; - stampInitUserEmailRecovery = async (input: SdkApiTypes.TInitUserEmailRecoveryBody): Promise => { + stampInitUserEmailRecovery = async ( + input: SdkApiTypes.TInitUserEmailRecoveryBody + ): Promise => { if (!this.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1631,21 +1956,27 @@ 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.config.stamper) { return undefined; } @@ -1657,21 +1988,27 @@ 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.config.stamper) { return undefined; } @@ -1683,21 +2020,27 @@ 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.config.stamper) { return undefined; } @@ -1709,26 +2052,28 @@ 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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/reject_activity"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1736,25 +2081,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1762,25 +2114,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1788,25 +2147,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1814,25 +2180,32 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } + }; - - signRawPayloads = 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"); - } - + 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 => { + stampSignRawPayloads = async ( + input: SdkApiTypes.TSignRawPayloadsBody + ): Promise => { if (!this.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1840,25 +2213,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/sign_transaction"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1866,21 +2246,27 @@ 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" - }, "updatePolicyResult"); - } - + 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", + }, + "updatePolicyResult" + ); + }; - stampUpdatePolicy = async (input: SdkApiTypes.TUpdatePolicyBody): Promise => { + stampUpdatePolicy = async ( + input: SdkApiTypes.TUpdatePolicyBody + ): Promise => { if (!this.config.stamper) { return undefined; } @@ -1892,25 +2278,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.config.stamper) { return undefined; } - 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 body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1918,25 +2311,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1944,21 +2344,27 @@ 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.config.stamper) { return undefined; } @@ -1970,25 +2376,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.config.stamper) { return undefined; } - const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; + const fullUrl = + this.config.apiBaseUrl + "/public/v1/submit/update_user_tag"; const body = JSON.stringify(input); const stamp = await this.config.stamper.stamp(body); return { @@ -1996,6 +2409,5 @@ export class TurnkeySDKClientBase { stamp: stamp, url: fullUrl, }; - } - -} \ No newline at end of file + }; +} diff --git a/packages/sdk-server/src/__generated__/sdk_api_types.ts b/packages/sdk-server/src/__generated__/sdk_api_types.ts index a7a6ffa6b..acc36539b 100644 --- a/packages/sdk-server/src/__generated__/sdk_api_types.ts +++ b/packages/sdk-server/src/__generated__/sdk_api_types.ts @@ -2,456 +2,793 @@ 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 & queryOverrideParams; +export type TGetActivityBody = Omit< + operations["PublicApiService_GetActivity"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetApiKeyBody = Omit< + operations["PublicApiService_GetApiKey"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetApiKeysBody = Omit< + operations["PublicApiService_GetApiKeys"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetAttestationDocumentResponse = operations["PublicApiService_GetAttestationDocument"]["responses"]["200"]["schema"]; +export type TGetAttestationDocumentResponse = + operations["PublicApiService_GetAttestationDocument"]["responses"]["200"]["schema"]; -export type TGetAttestationDocumentInput = { body: TGetAttestationDocumentBody }; +export type TGetAttestationDocumentInput = { + body: TGetAttestationDocumentBody; +}; -export type TGetAttestationDocumentBody = Omit & queryOverrideParams; +export type TGetAttestationDocumentBody = Omit< + operations["PublicApiService_GetAttestationDocument"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetAuthenticatorResponse = operations["PublicApiService_GetAuthenticator"]["responses"]["200"]["schema"]; +export type TGetAuthenticatorResponse = + operations["PublicApiService_GetAuthenticator"]["responses"]["200"]["schema"]; export type TGetAuthenticatorInput = { body: TGetAuthenticatorBody }; -export type TGetAuthenticatorBody = Omit & queryOverrideParams; +export type TGetAuthenticatorBody = Omit< + operations["PublicApiService_GetAuthenticator"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetAuthenticatorsBody = Omit< + operations["PublicApiService_GetAuthenticators"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetOauthProvidersBody = Omit< + operations["PublicApiService_GetOauthProviders"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetOrganizationResponse = operations["PublicApiService_GetOrganization"]["responses"]["200"]["schema"]; +export type TGetOrganizationResponse = + operations["PublicApiService_GetOrganization"]["responses"]["200"]["schema"]; export type TGetOrganizationInput = { body: TGetOrganizationBody }; -export type TGetOrganizationBody = Omit & queryOverrideParams; +export type TGetOrganizationBody = Omit< + operations["PublicApiService_GetOrganization"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetOrganizationConfigsResponse = operations["PublicApiService_GetOrganizationConfigs"]["responses"]["200"]["schema"]; +export type TGetOrganizationConfigsResponse = + operations["PublicApiService_GetOrganizationConfigs"]["responses"]["200"]["schema"]; -export type TGetOrganizationConfigsInput = { body: TGetOrganizationConfigsBody }; +export type TGetOrganizationConfigsInput = { + body: TGetOrganizationConfigsBody; +}; -export type TGetOrganizationConfigsBody = Omit & queryOverrideParams; +export type TGetOrganizationConfigsBody = Omit< + operations["PublicApiService_GetOrganizationConfigs"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetPolicyBody = Omit< + operations["PublicApiService_GetPolicy"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetPrivateKeyBody = Omit< + operations["PublicApiService_GetPrivateKey"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetUserResponse = operations["PublicApiService_GetUser"]["responses"]["200"]["schema"]; +export type TGetUserResponse = + operations["PublicApiService_GetUser"]["responses"]["200"]["schema"]; export type TGetUserInput = { body: TGetUserBody }; -export type TGetUserBody = Omit & queryOverrideParams; +export type TGetUserBody = Omit< + operations["PublicApiService_GetUser"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetWalletBody = Omit< + operations["PublicApiService_GetWallet"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TGetActivitiesResponse = operations["PublicApiService_GetActivities"]["responses"]["200"]["schema"]; +export type TGetActivitiesResponse = + operations["PublicApiService_GetActivities"]["responses"]["200"]["schema"]; export type TGetActivitiesInput = { body: TGetActivitiesBody }; -export type TGetActivitiesBody = Omit & queryOverrideParams; +export type TGetActivitiesBody = Omit< + operations["PublicApiService_GetActivities"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetPoliciesBody = Omit< + operations["PublicApiService_GetPolicies"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TListPrivateKeyTagsBody = Omit< + operations["PublicApiService_ListPrivateKeyTags"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetPrivateKeysBody = Omit< + operations["PublicApiService_GetPrivateKeys"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetSubOrgIdsBody = Omit< + operations["PublicApiService_GetSubOrgIds"]["parameters"]["body"]["body"], + "organizationId" +> & + queryOverrideParams; -export type TListUserTagsResponse = operations["PublicApiService_ListUserTags"]["responses"]["200"]["schema"]; +export type TListUserTagsResponse = + operations["PublicApiService_ListUserTags"]["responses"]["200"]["schema"]; export type TListUserTagsInput = { body: TListUserTagsBody }; -export type TListUserTagsBody = Omit & queryOverrideParams; +export type TListUserTagsBody = Omit< + operations["PublicApiService_ListUserTags"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetUsersBody = Omit< + operations["PublicApiService_GetUsers"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetWalletAccountsBody = Omit< + operations["PublicApiService_GetWalletAccounts"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetWalletsBody = Omit< + operations["PublicApiService_GetWallets"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 & queryOverrideParams; +export type TGetWhoamiBody = Omit< + operations["PublicApiService_GetWhoami"]["parameters"]["body"]["body"], + "organizationId" +> & + 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 TCreateApiOnlyUsersResponse = operations["PublicApiService_CreateApiOnlyUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createApiOnlyUsersResult"] & definitions["v1ActivityResponse"]; +export type TCreateApiOnlyUsersResponse = + operations["PublicApiService_CreateApiOnlyUsers"]["responses"]["200"]["schema"]["activity"]["result"]["createApiOnlyUsersResult"] & + definitions["v1ActivityResponse"]; export type TCreateApiOnlyUsersInput = { body: TCreateApiOnlyUsersBody }; -export type TCreateApiOnlyUsersBody = operations["PublicApiService_CreateApiOnlyUsers"]["parameters"]["body"]["body"]["parameters"] & commandOverrideParams; +export type TCreateApiOnlyUsersBody = + operations["PublicApiService_CreateApiOnlyUsers"]["parameters"]["body"]["body"]["parameters"] & + commandOverrideParams; -export type TCreateAuthenticatorsResponse = operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["createAuthenticatorsResult"] & definitions["v1ActivityResponse"]; +export type TCreateAuthenticatorsResponse = + operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"]["activity"]["result"]["createAuthenticatorsResult"] & + definitions["v1ActivityResponse"]; 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 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 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 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 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 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 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 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 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 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 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 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 TInitOtpAuthResponse = operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResult"] & definitions["v1ActivityResponse"]; +export type TInitOtpAuthResponse = + operations["PublicApiService_InitOtpAuth"]["responses"]["200"]["schema"]["activity"]["result"]["initOtpAuthResult"] & + 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 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 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 TUpdatePolicyResponse = operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResult"] & definitions["v1ActivityResponse"]; +export type TUpdatePolicyResponse = + operations["PublicApiService_UpdatePolicy"]["responses"]["200"]["schema"]["activity"]["result"]["updatePolicyResult"] & + 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 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 TNOOPCodegenAnchorResponse = operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"]; \ No newline at end of file +export type TNOOPCodegenAnchorResponse = + operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"]; From 665070f714eec653cf9cf74cb1a9077059fd4b54 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 12:40:19 -0500 Subject: [PATCH 4/7] keep eip-1193 at a patch bump --- packages/eip-1193-provider/CHANGELOG.md | 2 +- packages/eip-1193-provider/package.json | 2 +- packages/eip-1193-provider/src/version.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/eip-1193-provider/CHANGELOG.md b/packages/eip-1193-provider/CHANGELOG.md index 07a51731b..6a076ee72 100644 --- a/packages/eip-1193-provider/CHANGELOG.md +++ b/packages/eip-1193-provider/CHANGELOG.md @@ -1,6 +1,6 @@ # @turnkey/eip-1193-provider -## 4.0.0 +## 3.0.2 ### Patch Changes diff --git a/packages/eip-1193-provider/package.json b/packages/eip-1193-provider/package.json index 85939e282..42974f8fd 100644 --- a/packages/eip-1193-provider/package.json +++ b/packages/eip-1193-provider/package.json @@ -1,6 +1,6 @@ { "name": "@turnkey/eip-1193-provider", - "version": "4.0.0", + "version": "3.0.2", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { diff --git a/packages/eip-1193-provider/src/version.ts b/packages/eip-1193-provider/src/version.ts index abcb99dde..dc7690f8e 100644 --- a/packages/eip-1193-provider/src/version.ts +++ b/packages/eip-1193-provider/src/version.ts @@ -1 +1 @@ -export const VERSION = "@turnkey/eip-1193-provider@4.0.0"; +export const VERSION = "@turnkey/eip-1193-provider@3.0.2"; From b5ec247a603f63db2c3a111bbfeac40ecbe4d802 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 13:34:34 -0500 Subject: [PATCH 5/7] Add a lil somethin extra --- packages/http/CHANGELOG.md | 2 +- packages/sdk-server/CHANGELOG.md | 2 +- packages/telegram-cloud-storage-stamper/CHANGELOG.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index 0c2b987e0..e33e4c635 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. +- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. ## 2.16.0 diff --git a/packages/sdk-server/CHANGELOG.md b/packages/sdk-server/CHANGELOG.md index 1c0101a0b..b91e784bb 100644 --- a/packages/sdk-server/CHANGELOG.md +++ b/packages/sdk-server/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. +- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. ### Patch Changes diff --git a/packages/telegram-cloud-storage-stamper/CHANGELOG.md b/packages/telegram-cloud-storage-stamper/CHANGELOG.md index b8d912dc8..18a245fd4 100644 --- a/packages/telegram-cloud-storage-stamper/CHANGELOG.md +++ b/packages/telegram-cloud-storage-stamper/CHANGELOG.md @@ -4,7 +4,7 @@ ### Major Changes -- 78bc39c: Add default accounts for various address types. Add iniital Telegram Cloud Storage Stamper package. +- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. ### Minor Changes From b712bf9334bc59fce45cbec5d7b7b7b8fbfc56b2 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 13:39:49 -0500 Subject: [PATCH 6/7] One more changelog update --- packages/http/CHANGELOG.md | 3 ++- packages/sdk-server/CHANGELOG.md | 3 ++- packages/telegram-cloud-storage-stamper/CHANGELOG.md | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index e33e4c635..e8287ccaa 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -4,7 +4,8 @@ ### Minor Changes -- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. +- 78bc39c: Add default accounts for various address types + - Add wallet account ID to list wallets endpoint ## 2.16.0 diff --git a/packages/sdk-server/CHANGELOG.md b/packages/sdk-server/CHANGELOG.md index b91e784bb..85bb60767 100644 --- a/packages/sdk-server/CHANGELOG.md +++ b/packages/sdk-server/CHANGELOG.md @@ -4,7 +4,8 @@ ### Minor Changes -- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. +- 78bc39c: Add default accounts for various address types + - Add wallet account ID to list wallets endpoint ### Patch Changes diff --git a/packages/telegram-cloud-storage-stamper/CHANGELOG.md b/packages/telegram-cloud-storage-stamper/CHANGELOG.md index 18a245fd4..2ab91d4d8 100644 --- a/packages/telegram-cloud-storage-stamper/CHANGELOG.md +++ b/packages/telegram-cloud-storage-stamper/CHANGELOG.md @@ -4,7 +4,7 @@ ### Major Changes -- 78bc39c: Add default accounts for various address types. Add wallet account ID to list wallets endpoint. Add initial Telegram Cloud Storage Stamper package. +- 78bc39c: Add initial Telegram Cloud Storage Stamper package. ### Minor Changes From bc15eb6933ace75acfd84198d75eaff806281962 Mon Sep 17 00:00:00 2001 From: Zane Kharitonov Date: Thu, 5 Dec 2024 13:49:23 -0500 Subject: [PATCH 7/7] Clean up a changelog --- packages/telegram-cloud-storage-stamper/CHANGELOG.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/telegram-cloud-storage-stamper/CHANGELOG.md b/packages/telegram-cloud-storage-stamper/CHANGELOG.md index 2ab91d4d8..cb415c5cb 100644 --- a/packages/telegram-cloud-storage-stamper/CHANGELOG.md +++ b/packages/telegram-cloud-storage-stamper/CHANGELOG.md @@ -4,8 +4,4 @@ ### Major Changes -- 78bc39c: Add initial Telegram Cloud Storage Stamper package. - -### Minor Changes - -- 6d17606: Initial release of the telegram-cloud-storage-stamper package. This package is to be used alongside Telegram mini-app development and provides a stamping utility and an interface into Telegram Cloud Storage. More can be read in the [README](../packages/telegram-cloud-storage-stamper/README.md). +- Initial release of the telegram-cloud-storage-stamper package. This package is to be used alongside Telegram mini-app development and provides a stamping utility and an interface into Telegram Cloud Storage. More can be read in the [README](../packages/telegram-cloud-storage-stamper/README.md).