From d3d6612d5e17e54ac231929a891e84388ea8f6ff Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Mon, 11 Nov 2024 14:46:28 +0700 Subject: [PATCH 1/9] update openapi yaml --- Sources/TurnkeySDK/openapi.yaml | 6488 ++++++++++++++++++++----------- 1 file changed, 4199 insertions(+), 2289 deletions(-) diff --git a/Sources/TurnkeySDK/openapi.yaml b/Sources/TurnkeySDK/openapi.yaml index 4454d2a..a72997a 100644 --- a/Sources/TurnkeySDK/openapi.yaml +++ b/Sources/TurnkeySDK/openapi.yaml @@ -5,128 +5,84 @@ info: contact: {} version: '1.0' servers: - - url: https://api.turnkey.com/ +- url: https://api.turnkey.com/ security: - - ApiKeyAuth: [] - - AuthenticatorAuth: [] +- ApiKeyAuth: [] +- AuthenticatorAuth: [] tags: - - name: Organizations - description: >- - An Organization is the highest level of hierarchy in Turnkey. It can - contain many Users, Private Keys, and Policies managed by a Root Quorum. - The Root Quorum consists of a set of Users with a consensus threshold. - This consensus threshold must be reached by Quorum members in order for - any actions to take place. +- name: PublicApiService +- name: Organizations + description: |- + An Organization is the highest level of hierarchy in Turnkey. It can contain many Users, Private Keys, and Policies managed by a Root Quorum. The Root Quorum consists of a set of Users with a consensus threshold. This consensus threshold must be reached by Quorum members in order for any actions to take place. + See [Root Quorum](../concepts/users/root-quorum) for more information +- name: Invitations + description: |- + Invitations allow you to invite Users into your Organization via email. Alternatively, Users can be added directly without an Invitation if their ApiKey or Authenticator credentials are known ahead of time. - See [Root Quorum](../managing-users/root-quorum) for more information - - name: Invitations - description: >- - Invitations allow you to invite Users into your Organization via email. - Alternatively, Users can be added directly without an Invitation if their - ApiKey or Authenticator credentials are known ahead of time. + See [Users](./api#tag/Users) for more information +- name: Policies + description: |- + Policies allow for deep customization of the security of your Organization. They can be used to grant permissions or restrict usage of Users and Private Keys. The Policy Engine analyzes all of your Policies on each request to determine whether an Activity is allowed. + See [Policy Overview](../managing-policies/overview) for more information +- name: Wallets + description: |- + Wallets contain collections of deterministically generated cryptographic public / private key pairs that share a common seed. Turnkey securely holds the common seed, but only you can access it. In most cases, Wallets should be preferred over Private Keys since they can be represented by a mnemonic phrase, used across a variety of cryptographic curves, and can derive many addresses. - See [Users](./api#tag/Users) for more information - - name: Policies - description: >- - Policies allow for deep customization of the security of your - Organization. They can be used to grant permissions or restrict usage of - Users and Private Keys. The Policy Engine analyzes all of your Policies on - each request to determine whether an Activity is allowed. + Derived addresses can be used to create digital signatures using the corresponding underlying private key. See [Signing](./api#tag/Signing) for more information +- name: Signing + description: Signers allow you to create digital signatures. Signatures are used + to validate the authenticity and integrity of a digital message. Turnkey makes + it easy to produce signatures by allowing you to sign with an address. If Turnkey + doesn't yet support an address format you need, you can generate and sign with + the public key instead by using the address format `ADDRESS_FORMAT_COMPRESSED`. +- name: Private Keys + description: |- + Private Keys are cryptographic public / private key pairs that can be used for cryptocurrency needs or more generalized encryption. Turnkey securely holds all private key materials for you, but only you can access them. + The Private Key ID or any derived address can be used to create digital signatures. See [Signing](./api#tag/Signing) for more information +- name: Private Key Tags + description: Private Key Tags allow you to easily group and permission Private Keys + through Policies. +- name: Users + description: Users are responsible for any action taken within an Organization. + They can have ApiKey or Auuthenticator credentials, allowing you to onboard teammates + to the Organization, or create API-only Users to run as part of your infrastructure. +- name: User Tags + description: User Key Tags allow you to easily group and permission Users through + Policies. +- name: Authenticators + description: Authenticators are WebAuthN hardware devices, such as a Macbook TouchID + or Yubikey, that can be used to authenticate requests. +- name: API Keys + description: |- + API Keys are used to authenticate requests - See [Policy Overview](../managing-policies/overview) for more information - - name: Wallets - description: >- - Wallets contain collections of deterministically generated cryptographic - public / private key pairs that share a common seed. Turnkey securely - holds the common seed, but only you can access it. In most cases, Wallets - should be preferred over Private Keys since they can be represented by a - mnemonic phrase, used across a variety of cryptographic curves, and can - derive many addresses. + See our [CLI](https://github.com/tkhq/tkcli) for instructions on generating API Keys +- name: Activities + description: |- + Activities encapsulate all the possible actions that can be taken with Turnkey. Some examples include adding a new user, creating a private key, and signing a transaction. + Activities that modify your Organization are processed asynchronously. To confirm processing is complete and retrieve the Activity results, these activities must be polled until that status has been updated to a finalized state: `COMPLETED` when the activity is successful or `FAILED` when the activity has failed +- name: Consensus + description: |- + Policies can enforce consensus requirements for Activities. For example, adding a new user requires two admins to approve the request. - Derived addresses can be used to create digital signatures using the - corresponding underlying private key. See [Signing](./api#tag/Signing) for - more information - - name: Signing - description: >- - Signers allow you to create digital signatures. Signatures are used to - validate the authenticity and integrity of a digital message. Turnkey - makes it easy to produce signatures by allowing you to sign with an - address. If Turnkey doesn't yet support an address format you need, you - can generate and sign with the public key instead by using the address - format `ADDRESS_FORMAT_COMPRESSED`. - - name: Private Keys - description: >- - Private Keys are cryptographic public / private key pairs that can be used - for cryptocurrency needs or more generalized encryption. Turnkey securely - holds all private key materials for you, but only you can access them. - - - The Private Key ID or any derived address can be used to create digital - signatures. See [Signing](./api#tag/Signing) for more information - - name: Private Key Tags - description: >- - Private Key Tags allow you to easily group and permission Private Keys - through Policies. - - name: Users - description: >- - Users are responsible for any action taken within an Organization. They - can have ApiKey or Auuthenticator credentials, allowing you to onboard - teammates to the Organization, or create API-only Users to run as part of - your infrastructure. - - name: User Tags - description: >- - User Key Tags allow you to easily group and permission Users through - Policies. - - name: Authenticators - description: >- - Authenticators are WebAuthN hardware devices, such as a Macbook TouchID or - Yubikey, that can be used to authenticate requests. - - name: API Keys - description: >- - API Keys are used to authenticate requests - - - See our [CLI](https://github.com/tkhq/tkcli) for instructions on - generating API Keys - - name: Activities - description: >- - Activities encapsulate all the possible actions that can be taken with - Turnkey. Some examples include adding a new user, creating a private key, - and signing a transaction. - - - Activities that modify your Organization are processed asynchronously. To - confirm processing is complete and retrieve the Activity results, these - activities must be polled until that status has been updated to a - finalized state: `COMPLETED` when the activity is successful or `FAILED` - when the activity has failed - - name: Consensus - description: >- - Policies can enforce consensus requirements for Activities. For example, - adding a new user requires two admins to approve the request. - - - Activities that have been proposed, but don't yet meet the Consesnsus - requirements will have the status: `REQUIRES_CONSENSUS`. Activities in - this state can be approved or rejected using the unique fingerprint - generated when an Activity is created. + Activities that have been proposed, but don't yet meet the Consesnsus requirements will have the status: `REQUIRES_CONSENSUS`. Activities in this state can be approved or rejected using the unique fingerprint generated when an Activity is created. paths: - /public/v1/query/get_activity: + "/public/v1/query/get_activity": post: tags: - - Activities + - Activities summary: Get Activity description: Get details about an Activity - operationId: GetActivity + operationId: PublicApiService_GetActivity requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetActivityRequest' + "$ref": "#/components/schemas/v1GetActivityRequest" required: true responses: '200': @@ -134,20 +90,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_api_key: + "/public/v1/query/get_api_key": post: tags: - - API keys + - API keys summary: Get API key description: Get details about an API key - operationId: GetApiKey + operationId: PublicApiService_GetApiKey requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetApiKeyRequest' + "$ref": "#/components/schemas/v1GetApiKeyRequest" required: true responses: '200': @@ -155,20 +117,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetApiKeyResponse' + "$ref": "#/components/schemas/v1GetApiKeyResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_api_keys: + "/public/v1/query/get_api_keys": post: tags: - - API keys + - API keys summary: Get API key description: Get details about API keys for a user - operationId: GetApiKeys + operationId: PublicApiService_GetApiKeys + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetApiKeysRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetApiKeysResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/query/get_attestation": + post: + tags: + - Attestation + summary: Attestation + description: Get the attestation document corresponding to an enclave. + operationId: PublicApiService_GetAttestationDocument requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetApiKeysRequest' + "$ref": "#/components/schemas/v1GetAttestationDocumentRequest" required: true responses: '200': @@ -176,20 +171,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetApiKeysResponse' + "$ref": "#/components/schemas/v1GetAttestationDocumentResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_authenticator: + "/public/v1/query/get_authenticator": post: tags: - - Authenticators + - Authenticators summary: Get Authenticator description: Get details about an authenticator - operationId: GetAuthenticator + operationId: PublicApiService_GetAuthenticator requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetAuthenticatorRequest' + "$ref": "#/components/schemas/v1GetAuthenticatorRequest" required: true responses: '200': @@ -197,20 +198,107 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAuthenticatorResponse' + "$ref": "#/components/schemas/v1GetAuthenticatorResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_authenticators: + "/public/v1/query/get_authenticators": post: tags: - - Authenticators + - Authenticators summary: Get Authenticators description: Get details about authenticators for a user - operationId: GetAuthenticators + operationId: PublicApiService_GetAuthenticators + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetAuthenticatorsRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetAuthenticatorsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/query/get_oauth_providers": + post: + tags: + - Users + summary: Get Oauth providers + description: Get details about Oauth providers for a user + operationId: PublicApiService_GetOauthProviders + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetOauthProvidersRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetOauthProvidersResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/query/get_organization": + post: + tags: + - Organizations + summary: Get Organization + description: Get details about an Organization + operationId: PublicApiService_GetOrganization + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetOrganizationRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1GetOrganizationResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/query/get_organization_configs": + post: + tags: + - Organizations + summary: Get Configs + description: Get quorum settings and features for an organization + operationId: PublicApiService_GetOrganizationConfigs requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetAuthenticatorsRequest' + "$ref": "#/components/schemas/v1GetOrganizationConfigsRequest" required: true responses: '200': @@ -218,20 +306,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAuthenticatorsResponse' + "$ref": "#/components/schemas/v1GetOrganizationConfigsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_policy: + "/public/v1/query/get_policy": post: tags: - - Policies + - Policies summary: Get Policy description: Get details about a Policy - operationId: GetPolicy + operationId: PublicApiService_GetPolicy requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetPolicyRequest' + "$ref": "#/components/schemas/v1GetPolicyRequest" required: true responses: '200': @@ -239,20 +333,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetPolicyResponse' + "$ref": "#/components/schemas/v1GetPolicyResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_private_key: + "/public/v1/query/get_private_key": post: tags: - - Private Keys + - Private Keys summary: Get Private Key description: Get details about a Private Key - operationId: GetPrivateKey + operationId: PublicApiService_GetPrivateKey requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetPrivateKeyRequest' + "$ref": "#/components/schemas/v1GetPrivateKeyRequest" required: true responses: '200': @@ -260,20 +360,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetPrivateKeyResponse' + "$ref": "#/components/schemas/v1GetPrivateKeyResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_user: + "/public/v1/query/get_user": post: tags: - - Users + - Users summary: Get User description: Get details about a User - operationId: GetUser + operationId: PublicApiService_GetUser requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetUserRequest' + "$ref": "#/components/schemas/v1GetUserRequest" required: true responses: '200': @@ -281,20 +387,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetUserResponse' + "$ref": "#/components/schemas/v1GetUserResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/get_wallet: + "/public/v1/query/get_wallet": post: tags: - - Wallets + - Wallets summary: Get Wallet description: Get details about a Wallet - operationId: GetWallet + operationId: PublicApiService_GetWallet requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetWalletRequest' + "$ref": "#/components/schemas/v1GetWalletRequest" required: true responses: '200': @@ -302,20 +414,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWalletResponse' + "$ref": "#/components/schemas/v1GetWalletResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_activities: + "/public/v1/query/list_activities": post: tags: - - Activities + - Activities summary: List Activities description: List all Activities within an Organization - operationId: GetActivities + operationId: PublicApiService_GetActivities requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetActivitiesRequest' + "$ref": "#/components/schemas/v1GetActivitiesRequest" required: true responses: '200': @@ -323,20 +441,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetActivitiesResponse' + "$ref": "#/components/schemas/v1GetActivitiesResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_policies: + "/public/v1/query/list_policies": post: tags: - - Policies + - Policies summary: List Policies description: List all Policies within an Organization - operationId: GetPolicies + operationId: PublicApiService_GetPolicies requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetPoliciesRequest' + "$ref": "#/components/schemas/v1GetPoliciesRequest" required: true responses: '200': @@ -344,20 +468,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetPoliciesResponse' + "$ref": "#/components/schemas/v1GetPoliciesResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_private_key_tags: + "/public/v1/query/list_private_key_tags": post: tags: - - Private Key Tags + - Private Key Tags summary: List Private Key Tags description: List all Private Key Tags within an Organization - operationId: ListPrivateKeyTags + operationId: PublicApiService_ListPrivateKeyTags requestBody: content: application/json: schema: - $ref: '#/components/schemas/ListPrivateKeyTagsRequest' + "$ref": "#/components/schemas/v1ListPrivateKeyTagsRequest" required: true responses: '200': @@ -365,20 +495,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListPrivateKeyTagsResponse' + "$ref": "#/components/schemas/v1ListPrivateKeyTagsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_private_keys: + "/public/v1/query/list_private_keys": post: tags: - - Private Keys + - Private Keys summary: List Private Keys description: List all Private Keys within an Organization - operationId: GetPrivateKeys + operationId: PublicApiService_GetPrivateKeys requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetPrivateKeysRequest' + "$ref": "#/components/schemas/v1GetPrivateKeysRequest" required: true responses: '200': @@ -386,22 +522,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetPrivateKeysResponse' + "$ref": "#/components/schemas/v1GetPrivateKeysResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_suborgs: + "/public/v1/query/list_suborgs": post: tags: - - Organizations + - Organizations summary: Get Suborgs - description: >- - Get all suborg IDs associated given a parent org ID and an optional + description: Get all suborg IDs associated given a parent org ID and an optional filter. - operationId: GetSubOrgIds + operationId: PublicApiService_GetSubOrgIds requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetSubOrgIdsRequest' + "$ref": "#/components/schemas/v1GetSubOrgIdsRequest" required: true responses: '200': @@ -409,20 +550,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetSubOrgIdsResponse' + "$ref": "#/components/schemas/v1GetSubOrgIdsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_user_tags: + "/public/v1/query/list_user_tags": post: tags: - - User Tags + - User Tags summary: List User Tags description: List all User Tags within an Organization - operationId: ListUserTags + operationId: PublicApiService_ListUserTags requestBody: content: application/json: schema: - $ref: '#/components/schemas/ListUserTagsRequest' + "$ref": "#/components/schemas/v1ListUserTagsRequest" required: true responses: '200': @@ -430,20 +577,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListUserTagsResponse' + "$ref": "#/components/schemas/v1ListUserTagsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_users: + "/public/v1/query/list_users": post: tags: - - Users + - Users summary: List Users description: List all Users within an Organization - operationId: GetUsers + operationId: PublicApiService_GetUsers requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetUsersRequest' + "$ref": "#/components/schemas/v1GetUsersRequest" required: true responses: '200': @@ -451,20 +604,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetUsersResponse' + "$ref": "#/components/schemas/v1GetUsersResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_wallet_accounts: + "/public/v1/query/list_wallet_accounts": post: tags: - - Wallets + - Wallets summary: List Wallets Accounts description: List all Accounts wirhin a Wallet - operationId: GetWalletAccounts + operationId: PublicApiService_GetWalletAccounts requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetWalletAccountsRequest' + "$ref": "#/components/schemas/v1GetWalletAccountsRequest" required: true responses: '200': @@ -472,20 +631,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWalletAccountsResponse' + "$ref": "#/components/schemas/v1GetWalletAccountsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/list_wallets: + "/public/v1/query/list_wallets": post: tags: - - Wallets + - Wallets summary: List Wallets description: List all Wallets within an Organization - operationId: GetWallets + operationId: PublicApiService_GetWallets requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetWalletsRequest' + "$ref": "#/components/schemas/v1GetWalletsRequest" required: true responses: '200': @@ -493,23 +658,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWalletsResponse' + "$ref": "#/components/schemas/v1GetWalletsResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/query/whoami: + "/public/v1/query/whoami": post: tags: - - Sessions + - Sessions summary: Who am I? - description: >- - Get basic information about your current API or WebAuthN user and their - organization. Affords Sub-Organization look ups via Parent Organization + description: Get basic information about your current API or WebAuthN user and + their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN or API key users. - operationId: GetWhoami + operationId: PublicApiService_GetWhoami requestBody: content: application/json: schema: - $ref: '#/components/schemas/GetWhoamiRequest' + "$ref": "#/components/schemas/v1GetWhoamiRequest" required: true responses: '200': @@ -517,20 +687,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetWhoamiResponse' + "$ref": "#/components/schemas/v1GetWhoamiResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/approve_activity: + "/public/v1/submit/approve_activity": post: tags: - - Consensus + - Consensus summary: Approve Activity description: Approve an Activity - operationId: ApproveActivity + operationId: PublicApiService_ApproveActivity requestBody: content: application/json: schema: - $ref: '#/components/schemas/ApproveActivityRequest' + "$ref": "#/components/schemas/v1ApproveActivityRequest" required: true responses: '200': @@ -538,20 +714,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_api_keys: + "/public/v1/submit/create_api_keys": post: tags: - - API Keys + - API Keys summary: Create API Keys description: Add api keys to an existing User - operationId: CreateApiKeys + operationId: PublicApiService_CreateApiKeys requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateApiKeysRequest' + "$ref": "#/components/schemas/v1CreateApiKeysRequest" required: true responses: '200': @@ -559,20 +741,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_authenticators: + "/public/v1/submit/create_api_only_users": post: tags: - - Authenticators - summary: Create Authenticators - description: Create Authenticators to authenticate requests to Turnkey - operationId: CreateAuthenticators + - Users + summary: Create API-only Users + description: Create API-only Users in an existing Organization + operationId: PublicApiService_CreateApiOnlyUsers requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateAuthenticatorsRequest' + "$ref": "#/components/schemas/v1CreateApiOnlyUsersRequest" required: true responses: '200': @@ -580,20 +768,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_invitations: + "/public/v1/submit/create_authenticators": post: tags: - - Invitations - summary: Create Invitations - description: Create Invitations to join an existing Organization - operationId: CreateInvitations + - Authenticators + summary: Create Authenticators + description: Create Authenticators to authenticate requests to Turnkey + operationId: PublicApiService_CreateAuthenticators requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateInvitationsRequest' + "$ref": "#/components/schemas/v1CreateAuthenticatorsRequest" required: true responses: '200': @@ -601,20 +795,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_policies: + "/public/v1/submit/create_invitations": post: tags: - - Policies - summary: Create Policies - description: Create new Policies - operationId: CreatePolicies + - Invitations + summary: Create Invitations + description: Create Invitations to join an existing Organization + operationId: PublicApiService_CreateInvitations requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreatePoliciesRequest' + "$ref": "#/components/schemas/v1CreateInvitationsRequest" required: true responses: '200': @@ -622,20 +822,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_policy: + "/public/v1/submit/create_oauth_providers": post: tags: - - Policies - summary: Create Policy - description: Create a new Policy - operationId: CreatePolicy + - Users + summary: Create Oauth Providers + description: Creates Oauth providers for a specified user - BETA + operationId: PublicApiService_CreateOauthProviders requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreatePolicyRequest' + "$ref": "#/components/schemas/v1CreateOauthProvidersRequest" required: true responses: '200': @@ -643,20 +849,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_private_key_tag: + "/public/v1/submit/create_policies": post: tags: - - Private Key Tags - summary: Create Private Key Tag - description: Create a private key tag and add it to private keys. - operationId: CreatePrivateKeyTag + - Policies + summary: Create Policies + description: Create new Policies + operationId: PublicApiService_CreatePolicies requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreatePrivateKeyTagRequest' + "$ref": "#/components/schemas/v1CreatePoliciesRequest" required: true responses: '200': @@ -664,20 +876,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_private_keys: + "/public/v1/submit/create_policy": post: tags: - - Private Keys - summary: Create Private Keys - description: Create new Private Keys - operationId: CreatePrivateKeys + - Policies + summary: Create Policy + description: Create a new Policy + operationId: PublicApiService_CreatePolicy requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreatePrivateKeysRequest' + "$ref": "#/components/schemas/v1CreatePolicyRequest" required: true responses: '200': @@ -685,20 +903,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_sub_organization: + "/public/v1/submit/create_private_key_tag": post: tags: - - Organizations - summary: Create Sub-Organization - description: Create a new Sub-Organization - operationId: CreateSubOrganization + - Private Key Tags + summary: Create Private Key Tag + description: Create a private key tag and add it to private keys. + operationId: PublicApiService_CreatePrivateKeyTag requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateSubOrganizationRequest' + "$ref": "#/components/schemas/v1CreatePrivateKeyTagRequest" required: true responses: '200': @@ -706,20 +930,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_user_tag: + "/public/v1/submit/create_private_keys": post: tags: - - User Tags - summary: Create User Tag - description: Create a user tag and add it to users. - operationId: CreateUserTag + - Private Keys + summary: Create Private Keys + description: Create new Private Keys + operationId: PublicApiService_CreatePrivateKeys requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateUserTagRequest' + "$ref": "#/components/schemas/v1CreatePrivateKeysRequest" required: true responses: '200': @@ -727,20 +957,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_users: + "/public/v1/submit/create_read_only_session": post: tags: - - Users - summary: Create Users - description: Create Users in an existing Organization - operationId: CreateUsers + - Sessions + summary: Create Read Only Session + description: Create a read only session for a user (valid for 1 hour) + operationId: PublicApiService_CreateReadOnlySession requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateUsersRequest' + "$ref": "#/components/schemas/v1CreateReadOnlySessionRequest" required: true responses: '200': @@ -748,20 +984,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_wallet: + "/public/v1/submit/create_read_write_session": post: tags: - - Wallets - summary: Create Wallet - description: Create a Wallet and derive addresses - operationId: CreateWallet + - Sessions + summary: Create Read Write Session + description: Create a read write session for a user + operationId: PublicApiService_CreateReadWriteSession requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateWalletRequest' + "$ref": "#/components/schemas/v1CreateReadWriteSessionRequest" required: true responses: '200': @@ -769,20 +1011,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/create_wallet_accounts: + "/public/v1/submit/create_sub_organization": post: tags: - - Wallets - summary: Create Wallet Accounts - description: Derive additional addresses using an existing wallet - operationId: CreateWalletAccounts + - Organizations + summary: Create Sub-Organization + description: Create a new Sub-Organization + operationId: PublicApiService_CreateSubOrganization requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateWalletAccountsRequest' + "$ref": "#/components/schemas/v1CreateSubOrganizationRequest" required: true responses: '200': @@ -790,20 +1038,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_api_keys: + "/public/v1/submit/create_user_tag": post: tags: - - API Keys - summary: Delete API Keys - description: Remove api keys from a User - operationId: DeleteApiKeys + - User Tags + summary: Create User Tag + description: Create a user tag and add it to users. + operationId: PublicApiService_CreateUserTag requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeleteApiKeysRequest' + "$ref": "#/components/schemas/v1CreateUserTagRequest" required: true responses: '200': @@ -811,20 +1065,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_authenticators: + "/public/v1/submit/create_users": post: tags: - - Authenticators - summary: Delete Authenticators - description: Remove authenticators from a User - operationId: DeleteAuthenticators + - Users + summary: Create Users + description: Create Users in an existing Organization + operationId: PublicApiService_CreateUsers requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeleteAuthenticatorsRequest' + "$ref": "#/components/schemas/v1CreateUsersRequest" required: true responses: '200': @@ -832,20 +1092,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' - x-codegen-request-body-name: body - /public/v1/submit/delete_invitation: - post: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/create_wallet": + post: tags: - - Invitations - summary: Delete Invitation - description: Delete an existing Invitation - operationId: DeleteInvitation + - Wallets + summary: Create Wallet + description: Create a Wallet and derive addresses + operationId: PublicApiService_CreateWallet requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeleteInvitationRequest' + "$ref": "#/components/schemas/v1CreateWalletRequest" required: true responses: '200': @@ -853,20 +1119,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_policy: + "/public/v1/submit/create_wallet_accounts": post: tags: - - Policies - summary: Delete Policy - description: Delete an existing Policy - operationId: DeletePolicy + - Wallets + summary: Create Wallet Accounts + description: Derive additional addresses using an existing wallet + operationId: PublicApiService_CreateWalletAccounts requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeletePolicyRequest' + "$ref": "#/components/schemas/v1CreateWalletAccountsRequest" required: true responses: '200': @@ -874,20 +1146,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_private_key_tags: + "/public/v1/submit/delete_api_keys": post: tags: - - Private Key Tags - summary: Delete Private Key Tags - description: Delete Private Key Tags within an Organization - operationId: DeletePrivateKeyTags + - API Keys + summary: Delete API Keys + description: Remove api keys from a User + operationId: PublicApiService_DeleteApiKeys requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeletePrivateKeyTagsRequest' + "$ref": "#/components/schemas/v1DeleteApiKeysRequest" required: true responses: '200': @@ -895,20 +1173,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_user_tags: + "/public/v1/submit/delete_authenticators": post: tags: - - User Tags - summary: Delete User Tags - description: Delete User Tags within an Organization - operationId: DeleteUserTags + - Authenticators + summary: Delete Authenticators + description: Remove authenticators from a User + operationId: PublicApiService_DeleteAuthenticators requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeleteUserTagsRequest' + "$ref": "#/components/schemas/v1DeleteAuthenticatorsRequest" required: true responses: '200': @@ -916,20 +1200,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/delete_users: + "/public/v1/submit/delete_invitation": post: tags: - - Users - summary: Delete Users - description: Delete Users within an Organization - operationId: DeleteUsers + - Invitations + summary: Delete Invitation + description: Delete an existing Invitation + operationId: PublicApiService_DeleteInvitation requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeleteUsersRequest' + "$ref": "#/components/schemas/v1DeleteInvitationRequest" required: true responses: '200': @@ -937,20 +1227,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/email_auth: + "/public/v1/submit/delete_oauth_providers": post: tags: - - User Auth - summary: Perform Email Auth - description: Authenticate a user via Email - operationId: EmailAuth + - Users + summary: Delete Oauth Providers + description: Removes Oauth providers for a specified user - BETA + operationId: PublicApiService_DeleteOauthProviders requestBody: content: application/json: schema: - $ref: '#/components/schemas/EmailAuthRequest' + "$ref": "#/components/schemas/v1DeleteOauthProvidersRequest" required: true responses: '200': @@ -958,20 +1254,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/export_private_key: + "/public/v1/submit/delete_policy": post: tags: - - Private Keys - summary: Export Private Key - description: Exports a Private Key - operationId: ExportPrivateKey + - Policies + summary: Delete Policy + description: Delete an existing Policy + operationId: PublicApiService_DeletePolicy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportPrivateKeyRequest' + "$ref": "#/components/schemas/v1DeletePolicyRequest" required: true responses: '200': @@ -979,20 +1281,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/export_wallet: + "/public/v1/submit/delete_private_key_tags": post: tags: - - Wallets - summary: Export Wallet - description: Exports a Wallet - operationId: ExportWallet + - Private Key Tags + summary: Delete Private Key Tags + description: Delete Private Key Tags within an Organization + operationId: PublicApiService_DeletePrivateKeyTags requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportWalletRequest' + "$ref": "#/components/schemas/v1DeletePrivateKeyTagsRequest" required: true responses: '200': @@ -1000,20 +1308,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/export_wallet_account: + "/public/v1/submit/delete_private_keys": post: tags: - - Wallets - summary: Export Wallet Account - description: Exports a Wallet Account - operationId: ExportWalletAccount + - Private Keys + summary: Delete Private Keys + description: Deletes private keys for an organization + operationId: PublicApiService_DeletePrivateKeys requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportWalletAccountRequest' + "$ref": "#/components/schemas/v1DeletePrivateKeysRequest" required: true responses: '200': @@ -1021,20 +1335,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/import_private_key: + "/public/v1/submit/delete_sub_organization": post: tags: - - Private Keys - summary: Import Private Key - description: Imports a private key - operationId: ImportPrivateKey + - Organizations + summary: Delete Sub Organization + description: Deletes a sub organization + operationId: PublicApiService_DeleteSubOrganization requestBody: content: application/json: schema: - $ref: '#/components/schemas/ImportPrivateKeyRequest' + "$ref": "#/components/schemas/v1DeleteSubOrganizationRequest" required: true responses: '200': @@ -1042,20 +1362,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/import_wallet: + "/public/v1/submit/delete_user_tags": post: tags: - - Wallets - summary: Import Wallet - description: Imports a wallet - operationId: ImportWallet + - User Tags + summary: Delete User Tags + description: Delete User Tags within an Organization + operationId: PublicApiService_DeleteUserTags requestBody: content: application/json: schema: - $ref: '#/components/schemas/ImportWalletRequest' + "$ref": "#/components/schemas/v1DeleteUserTagsRequest" required: true responses: '200': @@ -1063,20 +1389,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/init_import_private_key: + "/public/v1/submit/delete_users": post: tags: - - Private Keys - summary: Init Import Private Key - description: Initializes a new private key import - operationId: InitImportPrivateKey + - Users + summary: Delete Users + description: Delete Users within an Organization + operationId: PublicApiService_DeleteUsers requestBody: content: application/json: schema: - $ref: '#/components/schemas/InitImportPrivateKeyRequest' + "$ref": "#/components/schemas/v1DeleteUsersRequest" required: true responses: '200': @@ -1084,20 +1416,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/init_import_wallet: + "/public/v1/submit/delete_wallets": post: tags: - - Wallets - summary: Init Import Wallet - description: Initializes a new wallet import - operationId: InitImportWallet + - Wallets + summary: Delete Wallets + description: Deletes wallets for an organization + operationId: PublicApiService_DeleteWallets requestBody: content: application/json: schema: - $ref: '#/components/schemas/InitImportWalletRequest' + "$ref": "#/components/schemas/v1DeleteWalletsRequest" required: true responses: '200': @@ -1105,20 +1443,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/init_user_email_recovery: + "/public/v1/submit/email_auth": post: tags: - - User Recovery - summary: Init Email Recovery - description: Initializes a new email recovery - operationId: InitUserEmailRecovery + - User Auth + summary: Perform Email Auth + description: Authenticate a user via Email + operationId: PublicApiService_EmailAuth requestBody: content: application/json: schema: - $ref: '#/components/schemas/InitUserEmailRecoveryRequest' + "$ref": "#/components/schemas/v1EmailAuthRequest" required: true responses: '200': @@ -1126,20 +1470,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/recover_user: + "/public/v1/submit/export_private_key": post: tags: - - User Recovery - summary: Recover a user - description: Completes the process of recovering a user by adding an authenticator - operationId: RecoverUser + - Private Keys + summary: Export Private Key + description: Exports a Private Key + operationId: PublicApiService_ExportPrivateKey requestBody: content: application/json: schema: - $ref: '#/components/schemas/RecoverUserRequest' + "$ref": "#/components/schemas/v1ExportPrivateKeyRequest" required: true responses: '200': @@ -1147,20 +1497,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/reject_activity: + "/public/v1/submit/export_wallet": post: tags: - - Consensus - summary: Reject Activity - description: Reject an Activity - operationId: RejectActivity + - Wallets + summary: Export Wallet + description: Exports a Wallet + operationId: PublicApiService_ExportWallet requestBody: content: application/json: schema: - $ref: '#/components/schemas/RejectActivityRequest' + "$ref": "#/components/schemas/v1ExportWalletRequest" required: true responses: '200': @@ -1168,20 +1524,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/remove_organization_feature: + "/public/v1/submit/export_wallet_account": post: tags: - - Features - summary: Remove Organization Feature - description: Removes an organization feature - operationId: RemoveOrganizationFeature + - Wallets + summary: Export Wallet Account + description: Exports a Wallet Account + operationId: PublicApiService_ExportWalletAccount requestBody: content: application/json: schema: - $ref: '#/components/schemas/RemoveOrganizationFeatureRequest' + "$ref": "#/components/schemas/v1ExportWalletAccountRequest" required: true responses: '200': @@ -1189,20 +1551,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/set_organization_feature: + "/public/v1/submit/import_private_key": post: tags: - - Features - summary: Set Organization Feature - description: Sets an organization feature - operationId: SetOrganizationFeature + - Private Keys + summary: Import Private Key + description: Imports a private key + operationId: PublicApiService_ImportPrivateKey requestBody: content: application/json: schema: - $ref: '#/components/schemas/SetOrganizationFeatureRequest' + "$ref": "#/components/schemas/v1ImportPrivateKeyRequest" required: true responses: '200': @@ -1210,20 +1578,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/sign_raw_payload: + "/public/v1/submit/import_wallet": post: tags: - - Signing - summary: Sign Raw Payload - description: Sign a raw payload - operationId: SignRawPayload + - Wallets + summary: Import Wallet + description: Imports a wallet + operationId: PublicApiService_ImportWallet requestBody: content: application/json: schema: - $ref: '#/components/schemas/SignRawPayloadRequest' + "$ref": "#/components/schemas/v1ImportWalletRequest" required: true responses: '200': @@ -1231,20 +1605,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/sign_raw_payloads: + "/public/v1/submit/init_import_private_key": post: tags: - - Signing - summary: Sign Raw Payloads - description: Sign multiple raw payloads with the same signing parameters - operationId: SignRawPayloads + - Private Keys + summary: Init Import Private Key + description: Initializes a new private key import + operationId: PublicApiService_InitImportPrivateKey requestBody: content: application/json: schema: - $ref: '#/components/schemas/SignRawPayloadsRequest' + "$ref": "#/components/schemas/v1InitImportPrivateKeyRequest" required: true responses: '200': @@ -1252,20 +1632,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/sign_transaction: + "/public/v1/submit/init_import_wallet": post: tags: - - Signing - summary: Sign Transaction - description: Sign a transaction - operationId: SignTransaction + - Wallets + summary: Init Import Wallet + description: Initializes a new wallet import + operationId: PublicApiService_InitImportWallet requestBody: content: application/json: schema: - $ref: '#/components/schemas/SignTransactionRequest' + "$ref": "#/components/schemas/v1InitImportWalletRequest" required: true responses: '200': @@ -1273,20 +1659,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/update_policy: + "/public/v1/submit/init_otp_auth": post: tags: - - Policies - summary: Update Policy - description: Update an existing Policy - operationId: UpdatePolicy + - Users + summary: Init OTP auth + description: Initiate an OTP auth activity + operationId: PublicApiService_InitOtpAuth requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdatePolicyRequest' + "$ref": "#/components/schemas/v1InitOtpAuthRequest" required: true responses: '200': @@ -1294,23 +1686,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/update_private_key_tag: + "/public/v1/submit/init_user_email_recovery": post: tags: - - Private Key Tags - summary: Update Private Key Tag - description: >- - Update human-readable name or associated private keys. Note that this - activity is atomic: all of the updates will succeed at once, or all of - them will fail. - operationId: UpdatePrivateKeyTag + - User Recovery + summary: Init Email Recovery + description: Initializes a new email recovery + operationId: PublicApiService_InitUserEmailRecovery requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdatePrivateKeyTagRequest' + "$ref": "#/components/schemas/v1InitUserEmailRecoveryRequest" required: true responses: '200': @@ -1318,22 +1713,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/update_root_quorum: + "/public/v1/submit/oauth": post: tags: - - Organizations - summary: Update Root Quorum - description: >- - Set the threshold and members of the root quorum. This must be approved - by the current root quorum. - operationId: UpdateRootQuorum + - Users + summary: Oauth + description: Authenticate a user with an Oidc token (Oauth) - BETA + operationId: PublicApiService_Oauth requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateRootQuorumRequest' + "$ref": "#/components/schemas/v1OauthRequest" required: true responses: '200': @@ -1341,20 +1740,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/update_user: + "/public/v1/submit/otp_auth": post: tags: - - Users - summary: Update User - description: Update a User in an existing Organization - operationId: UpdateUser + - Users + summary: OTP auth + description: Authenticate a user with an OTP code sent via email or SMS + operationId: PublicApiService_OtpAuth requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateUserRequest' + "$ref": "#/components/schemas/v1OtpAuthRequest" required: true responses: '200': @@ -1362,23 +1767,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body - /public/v1/submit/update_user_tag: + "/public/v1/submit/recover_user": post: tags: - - User Tags - summary: Update User Tag - description: >- - Update human-readable name or associated users. Note that this activity - is atomic: all of the updates will succeed at once, or all of them will - fail. - operationId: UpdateUserTag + - User Recovery + summary: Recover a user + description: Completes the process of recovering a user by adding an authenticator + operationId: PublicApiService_RecoverUser requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateUserTagRequest' + "$ref": "#/components/schemas/v1RecoverUserRequest" required: true responses: '200': @@ -1386,115 +1794,623 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ActivityResponse' + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" x-codegen-request-body-name: body -components: - schemas: - AcceptInvitationIntent: - required: - - authenticator - - invitationId - - userId - type: object - properties: - invitationId: - type: string - description: Unique identifier for a given Invitation object. - userId: - type: string - description: Unique identifier for a given User. - authenticator: - $ref: '#/components/schemas/AuthenticatorParams' - AcceptInvitationIntentV2: - required: - - authenticator - - invitationId - - userId - type: object - properties: - invitationId: - type: string - description: Unique identifier for a given Invitation object. - userId: - type: string - description: Unique identifier for a given User. - authenticator: - $ref: '#/components/schemas/AuthenticatorParamsV2' - AcceptInvitationResult: - required: - - invitationId - - userId - type: object - properties: - invitationId: - type: string - description: Unique identifier for a given Invitation. - userId: - type: string - description: Unique identifier for a given User. - AccessType: - type: string - enum: - - ACCESS_TYPE_WEB - - ACCESS_TYPE_API - - ACCESS_TYPE_ALL - ActivateBillingTierIntent: - required: - - productId - type: object - properties: - productId: - type: string - description: The product that the customer wants to subscribe to. - ActivateBillingTierResult: - required: - - productId - type: object - properties: - productId: - type: string - description: The id of the product being subscribed to. - Activity: - required: - - canApprove - - canReject - - createdAt - - fingerprint - - id - - intent - - organizationId - - result - - status - - type - - updatedAt - - votes - type: object - properties: - id: - type: string - description: Unique identifier for a given Activity object. - organizationId: - type: string - description: Unique identifier for a given Organization. - status: - $ref: '#/components/schemas/ActivityStatus' - type: - $ref: '#/components/schemas/ActivityType' - intent: - $ref: '#/components/schemas/Intent' - result: - $ref: '#/components/schemas/Result' - votes: - type: array - description: >- - A list of objects representing a particular User's approval or - rejection of a Consensus request, including all relevant metadata. - items: - oneOf: - - $ref: '#/components/schemas/Vote' - - type: null - nullable: true - fingerprint: + "/public/v1/submit/reject_activity": + post: + tags: + - Consensus + summary: Reject Activity + description: Reject an Activity + operationId: PublicApiService_RejectActivity + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1RejectActivityRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/remove_organization_feature": + post: + tags: + - Features + summary: Remove Organization Feature + description: Removes an organization feature. This activity must be approved + by the current root quorum. + operationId: PublicApiService_RemoveOrganizationFeature + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1RemoveOrganizationFeatureRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/set_organization_feature": + post: + tags: + - Features + summary: Set Organization Feature + description: Sets an organization feature. This activity must be approved by + the current root quorum. + operationId: PublicApiService_SetOrganizationFeature + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1SetOrganizationFeatureRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/sign_raw_payload": + post: + tags: + - Signing + summary: Sign Raw Payload + description: Sign a raw payload + operationId: PublicApiService_SignRawPayload + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1SignRawPayloadRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/sign_raw_payloads": + post: + tags: + - Signing + summary: Sign Raw Payloads + description: Sign multiple raw payloads with the same signing parameters + operationId: PublicApiService_SignRawPayloads + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1SignRawPayloadsRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/sign_transaction": + post: + tags: + - Signing + summary: Sign Transaction + description: Sign a transaction + operationId: PublicApiService_SignTransaction + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1SignTransactionRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/update_policy": + post: + tags: + - Policies + summary: Update Policy + description: Update an existing Policy + operationId: PublicApiService_UpdatePolicy + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1UpdatePolicyRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/update_private_key_tag": + post: + tags: + - Private Key Tags + summary: Update Private Key Tag + description: 'Update human-readable name or associated private keys. Note that + this activity is atomic: all of the updates will succeed at once, or all of + them will fail.' + operationId: PublicApiService_UpdatePrivateKeyTag + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1UpdatePrivateKeyTagRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/update_root_quorum": + post: + tags: + - Organizations + summary: Update Root Quorum + description: Set the threshold and members of the root quorum. This activity + must be approved by the current root quorum. + operationId: PublicApiService_UpdateRootQuorum + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1UpdateRootQuorumRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/update_user": + post: + tags: + - Users + summary: Update User + description: Update a User in an existing Organization + operationId: PublicApiService_UpdateUser + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1UpdateUserRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/public/v1/submit/update_user_tag": + post: + tags: + - User Tags + summary: Update User Tag + description: 'Update human-readable name or associated users. Note that this + activity is atomic: all of the updates will succeed at once, or all of them + will fail.' + operationId: PublicApiService_UpdateUserTag + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/v1UpdateUserTagRequest" + required: true + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1ActivityResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" + x-codegen-request-body-name: body + "/tkhq/api/v1/noop-codegen-anchor": + post: + tags: + - PublicApiService + operationId: PublicApiService_NOOPCodegenAnchor + responses: + '200': + description: A successful response. + content: + application/json: + schema: + "$ref": "#/components/schemas/v1NOOPCodegenAnchorResponse" + default: + description: An unexpected error response. + content: + application/json: + schema: + "$ref": "#/components/schemas/rpcStatus" +components: + schemas: + apiApiKeyParams: + required: + - apiKeyName + - publicKey + type: object + properties: + apiKeyName: + type: string + description: Human-readable name for an API Key. + publicKey: + type: string + description: The public component of a cryptographic key pair used to sign + messages and transactions. + expirationSeconds: + type: string + description: Optional window (in seconds) indicating how long the API Key + should last. + billingActivateBillingTierIntent: + required: + - productId + type: object + properties: + productId: + type: string + description: The product that the customer wants to subscribe to. + billingActivateBillingTierResult: + required: + - productId + type: object + properties: + productId: + type: string + description: The id of the product being subscribed to. + billingDeletePaymentMethodIntent: + required: + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The payment method that the customer wants to remove. + billingDeletePaymentMethodResult: + required: + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The payment method that was removed. + billingSetPaymentMethodIntent: + required: + - cardHolderEmail + - cardHolderName + - cvv + - expiryMonth + - expiryYear + - number + type: object + properties: + number: + type: string + description: The account number of the customer's credit card. + cvv: + type: string + description: The verification digits of the customer's credit card. + expiryMonth: + type: string + description: The month that the credit card expires. + expiryYear: + type: string + description: The year that the credit card expires. + cardHolderEmail: + type: string + description: The email that will receive invoices for the credit card. + cardHolderName: + type: string + description: The name associated with the credit card. + billingSetPaymentMethodIntentV2: + required: + - cardHolderEmail + - cardHolderName + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The id of the payment method that was created clientside. + cardHolderEmail: + type: string + description: The email that will receive invoices for the credit card. + cardHolderName: + type: string + description: The name associated with the credit card. + billingSetPaymentMethodResult: + required: + - cardHolderEmail + - cardHolderName + - lastFour + type: object + properties: + lastFour: + type: string + description: The last four digits of the credit card added. + cardHolderName: + type: string + description: The name associated with the payment method. + cardHolderEmail: + type: string + description: The email address associated with the payment method. + datav1Tag: + required: + - createdAt + - tagId + - tagName + - tagType + - updatedAt + type: object + properties: + tagId: + type: string + description: Unique identifier for a given Tag. + tagName: + type: string + description: Human-readable name for a Tag. + tagType: + "$ref": "#/components/schemas/v1TagType" + createdAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + updatedAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + externaldatav1Address: + type: object + properties: + format: + "$ref": "#/components/schemas/v1AddressFormat" + address: + type: string + externaldatav1Credential: + required: + - publicKey + - type + type: object + properties: + publicKey: + type: string + description: The public component of a cryptographic key pair used to sign + messages and transactions. + type: + "$ref": "#/components/schemas/v1CredentialType" + externaldatav1Quorum: + required: + - threshold + - userIds + type: object + properties: + threshold: + type: integer + description: Count of unique approvals required to meet quorum. + format: int32 + userIds: + type: array + description: Unique identifiers of quorum set members. + items: + type: string + externaldatav1Timestamp: + required: + - nanos + - seconds + type: object + properties: + seconds: + type: string + nanos: + type: string + immutableactivityv1Address: + type: object + properties: + format: + "$ref": "#/components/schemas/v1AddressFormat" + address: + type: string + protobufAny: + type: object + properties: + "@type": + type: string + additionalProperties: + type: object + rpcStatus: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + "$ref": "#/components/schemas/protobufAny" + v1AcceptInvitationIntent: + required: + - authenticator + - invitationId + - userId + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation object. + userId: + type: string + description: Unique identifier for a given User. + authenticator: + "$ref": "#/components/schemas/v1AuthenticatorParams" + v1AcceptInvitationIntentV2: + required: + - authenticator + - invitationId + - userId + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation object. + userId: + type: string + description: Unique identifier for a given User. + authenticator: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + v1AcceptInvitationResult: + required: + - invitationId + - userId + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation. + userId: + type: string + description: Unique identifier for a given User. + v1AccessType: + type: string + enum: + - ACCESS_TYPE_WEB + - ACCESS_TYPE_API + - ACCESS_TYPE_ALL + v1Activity: + required: + - canApprove + - canReject + - createdAt + - fingerprint + - id + - intent + - organizationId + - result + - status + - type + - updatedAt + - votes + type: object + properties: + id: + type: string + description: Unique identifier for a given Activity object. + organizationId: + type: string + description: Unique identifier for a given Organization. + status: + "$ref": "#/components/schemas/v1ActivityStatus" + type: + "$ref": "#/components/schemas/v1ActivityType" + intent: + "$ref": "#/components/schemas/v1Intent" + result: + "$ref": "#/components/schemas/v1Result" + votes: + type: array + description: A list of objects representing a particular User's approval + or rejection of a Consensus request, including all relevant metadata. + items: + "$ref": "#/components/schemas/v1Vote" + fingerprint: type: string description: An artifact verifying a User's action. canApprove: @@ -1502,111 +2418,157 @@ components: canReject: type: boolean createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - ActivityResponse: + "$ref": "#/components/schemas/externaldatav1Timestamp" + failure: + "$ref": "#/components/schemas/rpcStatus" + v1ActivityResponse: required: - - activity + - activity type: object properties: activity: - $ref: '#/components/schemas/Activity' - ActivityStatus: + "$ref": "#/components/schemas/v1Activity" + v1ActivityStatus: type: string enum: - - ACTIVITY_STATUS_CREATED - - ACTIVITY_STATUS_PENDING - - ACTIVITY_STATUS_COMPLETED - - ACTIVITY_STATUS_FAILED - - ACTIVITY_STATUS_CONSENSUS_NEEDED - - ACTIVITY_STATUS_REJECTED - ActivityType: + - ACTIVITY_STATUS_CREATED + - ACTIVITY_STATUS_PENDING + - ACTIVITY_STATUS_COMPLETED + - ACTIVITY_STATUS_FAILED + - ACTIVITY_STATUS_CONSENSUS_NEEDED + - ACTIVITY_STATUS_REJECTED + v1ActivityType: type: string enum: - - ACTIVITY_TYPE_CREATE_API_KEYS - - ACTIVITY_TYPE_CREATE_USERS - - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS - - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD - - ACTIVITY_TYPE_CREATE_INVITATIONS - - ACTIVITY_TYPE_ACCEPT_INVITATION - - ACTIVITY_TYPE_CREATE_POLICY - - ACTIVITY_TYPE_DISABLE_PRIVATE_KEY - - ACTIVITY_TYPE_DELETE_USERS - - ACTIVITY_TYPE_DELETE_API_KEYS - - ACTIVITY_TYPE_DELETE_INVITATION - - ACTIVITY_TYPE_DELETE_ORGANIZATION - - ACTIVITY_TYPE_DELETE_POLICY - - ACTIVITY_TYPE_CREATE_USER_TAG - - ACTIVITY_TYPE_DELETE_USER_TAGS - - ACTIVITY_TYPE_CREATE_ORGANIZATION - - ACTIVITY_TYPE_SIGN_TRANSACTION - - ACTIVITY_TYPE_APPROVE_ACTIVITY - - ACTIVITY_TYPE_REJECT_ACTIVITY - - ACTIVITY_TYPE_DELETE_AUTHENTICATORS - - ACTIVITY_TYPE_CREATE_AUTHENTICATORS - - ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG - - ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS - - ACTIVITY_TYPE_SET_PAYMENT_METHOD - - ACTIVITY_TYPE_ACTIVATE_BILLING_TIER - - ACTIVITY_TYPE_DELETE_PAYMENT_METHOD - - ACTIVITY_TYPE_CREATE_POLICY_V2 - - ACTIVITY_TYPE_CREATE_POLICY_V3 - - ACTIVITY_TYPE_CREATE_API_ONLY_USERS - - ACTIVITY_TYPE_UPDATE_ROOT_QUORUM - - ACTIVITY_TYPE_UPDATE_USER_TAG - - ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG - - ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2 - - ACTIVITY_TYPE_CREATE_ORGANIZATION_V2 - - ACTIVITY_TYPE_CREATE_USERS_V2 - - ACTIVITY_TYPE_ACCEPT_INVITATION_V2 - - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION - - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2 - - ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS - - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2 - - ACTIVITY_TYPE_UPDATE_USER - - ACTIVITY_TYPE_UPDATE_POLICY - - ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2 - - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3 - - ACTIVITY_TYPE_CREATE_WALLET - - ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS - - ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY - - ACTIVITY_TYPE_RECOVER_USER - - ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE - - ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE - - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2 - - ACTIVITY_TYPE_SIGN_TRANSACTION_V2 - - ACTIVITY_TYPE_EXPORT_PRIVATE_KEY - - ACTIVITY_TYPE_EXPORT_WALLET - - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4 - - ACTIVITY_TYPE_EMAIL_AUTH - - ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT - - ACTIVITY_TYPE_INIT_IMPORT_WALLET - - ACTIVITY_TYPE_IMPORT_WALLET - - ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY - - ACTIVITY_TYPE_IMPORT_PRIVATE_KEY - - ACTIVITY_TYPE_CREATE_POLICIES - - ACTIVITY_TYPE_SIGN_RAW_PAYLOADS - AddressFormat: + - ACTIVITY_TYPE_CREATE_API_KEYS + - ACTIVITY_TYPE_CREATE_USERS + - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS + - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD + - ACTIVITY_TYPE_CREATE_INVITATIONS + - ACTIVITY_TYPE_ACCEPT_INVITATION + - ACTIVITY_TYPE_CREATE_POLICY + - ACTIVITY_TYPE_DISABLE_PRIVATE_KEY + - ACTIVITY_TYPE_DELETE_USERS + - ACTIVITY_TYPE_DELETE_API_KEYS + - ACTIVITY_TYPE_DELETE_INVITATION + - ACTIVITY_TYPE_DELETE_ORGANIZATION + - ACTIVITY_TYPE_DELETE_POLICY + - ACTIVITY_TYPE_CREATE_USER_TAG + - ACTIVITY_TYPE_DELETE_USER_TAGS + - ACTIVITY_TYPE_CREATE_ORGANIZATION + - ACTIVITY_TYPE_SIGN_TRANSACTION + - ACTIVITY_TYPE_APPROVE_ACTIVITY + - ACTIVITY_TYPE_REJECT_ACTIVITY + - ACTIVITY_TYPE_DELETE_AUTHENTICATORS + - ACTIVITY_TYPE_CREATE_AUTHENTICATORS + - ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG + - ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS + - ACTIVITY_TYPE_SET_PAYMENT_METHOD + - ACTIVITY_TYPE_ACTIVATE_BILLING_TIER + - ACTIVITY_TYPE_DELETE_PAYMENT_METHOD + - ACTIVITY_TYPE_CREATE_POLICY_V2 + - ACTIVITY_TYPE_CREATE_POLICY_V3 + - ACTIVITY_TYPE_CREATE_API_ONLY_USERS + - ACTIVITY_TYPE_UPDATE_ROOT_QUORUM + - ACTIVITY_TYPE_UPDATE_USER_TAG + - ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG + - ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2 + - ACTIVITY_TYPE_CREATE_ORGANIZATION_V2 + - ACTIVITY_TYPE_CREATE_USERS_V2 + - ACTIVITY_TYPE_ACCEPT_INVITATION_V2 + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2 + - ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS + - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2 + - ACTIVITY_TYPE_UPDATE_USER + - ACTIVITY_TYPE_UPDATE_POLICY + - ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2 + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3 + - ACTIVITY_TYPE_CREATE_WALLET + - ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS + - ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY + - ACTIVITY_TYPE_RECOVER_USER + - ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE + - ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE + - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2 + - ACTIVITY_TYPE_SIGN_TRANSACTION_V2 + - ACTIVITY_TYPE_EXPORT_PRIVATE_KEY + - ACTIVITY_TYPE_EXPORT_WALLET + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4 + - ACTIVITY_TYPE_EMAIL_AUTH + - ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT + - ACTIVITY_TYPE_INIT_IMPORT_WALLET + - ACTIVITY_TYPE_IMPORT_WALLET + - ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY + - ACTIVITY_TYPE_IMPORT_PRIVATE_KEY + - ACTIVITY_TYPE_CREATE_POLICIES + - ACTIVITY_TYPE_SIGN_RAW_PAYLOADS + - ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION + - ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS + - ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5 + - ACTIVITY_TYPE_OAUTH + - ACTIVITY_TYPE_CREATE_API_KEYS_V2 + - ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION + - ACTIVITY_TYPE_EMAIL_AUTH_V2 + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6 + - ACTIVITY_TYPE_DELETE_PRIVATE_KEYS + - ACTIVITY_TYPE_DELETE_WALLETS + - ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2 + - ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION + - ACTIVITY_TYPE_INIT_OTP_AUTH + - ACTIVITY_TYPE_OTP_AUTH + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7 + v1AddressFormat: type: string enum: - - ADDRESS_FORMAT_UNCOMPRESSED - - ADDRESS_FORMAT_COMPRESSED - - ADDRESS_FORMAT_ETHEREUM - - ADDRESS_FORMAT_SOLANA - - ADDRESS_FORMAT_COSMOS - - ADDRESS_FORMAT_TRON - ApiKey: - required: - - apiKeyId - - apiKeyName - - createdAt - - credential - - updatedAt + - ADDRESS_FORMAT_UNCOMPRESSED + - ADDRESS_FORMAT_COMPRESSED + - ADDRESS_FORMAT_ETHEREUM + - ADDRESS_FORMAT_SOLANA + - ADDRESS_FORMAT_COSMOS + - ADDRESS_FORMAT_TRON + - ADDRESS_FORMAT_SUI + - ADDRESS_FORMAT_APTOS + - ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH + - ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH + - ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH + - ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH + - ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR + - ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH + - ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH + - ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH + - ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH + - ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR + - ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH + - ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH + - ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH + - ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH + - ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR + - ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH + - ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH + - ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH + - ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH + - ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR + - ADDRESS_FORMAT_SEI + - ADDRESS_FORMAT_XLM + - ADDRESS_FORMAT_DOGE_MAINNET + - ADDRESS_FORMAT_DOGE_TESTNET + - ADDRESS_FORMAT_TON_V3R2 + - ADDRESS_FORMAT_TON_V4R2 + v1ApiKey: + required: + - apiKeyId + - apiKeyName + - createdAt + - credential + - updatedAt type: object properties: credential: - $ref: '#/components/schemas/external.data.v1.Credential' + "$ref": "#/components/schemas/externaldatav1Credential" apiKeyId: type: string description: Unique identifier for a given API Key. @@ -1614,19 +2576,25 @@ components: type: string description: Human-readable name for an API Key. createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" expirationSeconds: type: string - description: >- - Optional window (in seconds) indicating how long the API Key should - last. + description: Optional window (in seconds) indicating how long the API Key + should last. format: uint64 - ApiKeyParams: + v1ApiKeyCurve: + type: string + enum: + - API_KEY_CURVE_P256 + - API_KEY_CURVE_SECP256K1 + - API_KEY_CURVE_ED25519 + v1ApiKeyParamsV2: required: - - apiKeyName - - publicKey + - apiKeyName + - curveType + - publicKey type: object properties: apiKeyName: @@ -1634,19 +2602,19 @@ components: description: Human-readable name for an API Key. publicKey: type: string - description: >- - The public component of a cryptographic key pair used to sign + description: The public component of a cryptographic key pair used to sign messages and transactions. + curveType: + "$ref": "#/components/schemas/v1ApiKeyCurve" expirationSeconds: type: string - description: >- - Optional window (in seconds) indicating how long the API Key should - last. - ApiOnlyUserParams: + description: Optional window (in seconds) indicating how long the API Key + should last. + v1ApiOnlyUserParams: required: - - apiKeys - - userName - - userTags + - apiKeys + - userName + - userTags type: object properties: userName: @@ -1664,43 +2632,42 @@ components: type: array description: A list of API Key parameters. items: - $ref: '#/components/schemas/ApiKeyParams' - ApproveActivityIntent: + "$ref": "#/components/schemas/apiApiKeyParams" + v1ApproveActivityIntent: required: - - fingerprint + - fingerprint type: object properties: fingerprint: type: string description: An artifact verifying a User's action. - ApproveActivityRequest: + v1ApproveActivityRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_APPROVE_ACTIVITY + - ACTIVITY_TYPE_APPROVE_ACTIVITY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ApproveActivityIntent' - Attestation: + "$ref": "#/components/schemas/v1ApproveActivityIntent" + v1Attestation: required: - - attestationObject - - clientDataJson - - credentialId - - transports + - attestationObject + - clientDataJson + - credentialId + - transports type: object properties: credentialId: @@ -1708,40 +2675,37 @@ components: description: The cbor encoded then base64 url encoded id of the credential. clientDataJson: type: string - description: >- - A base64 url encoded payload containing metadata about the signing - context and the challenge. + description: A base64 url encoded payload containing metadata about the + signing context and the challenge. attestationObject: type: string - description: >- - A base64 url encoded payload containing authenticator data and any - attestation the webauthn provider chooses. + description: A base64 url encoded payload containing authenticator data + and any attestation the webauthn provider chooses. transports: type: array description: The type of authenticator transports. items: - $ref: '#/components/schemas/AuthenticatorTransport' - Authenticator: + "$ref": "#/components/schemas/v1AuthenticatorTransport" + v1Authenticator: required: - - aaguid - - attestationType - - authenticatorId - - authenticatorName - - createdAt - - credential - - credentialId - - model - - transports - - updatedAt + - aaguid + - attestationType + - authenticatorId + - authenticatorName + - createdAt + - credential + - credentialId + - model + - transports + - updatedAt type: object properties: transports: type: array - description: >- - Types of transports that may be used by an Authenticator (e.g., USB, - NFC, BLE). + description: Types of transports that may be used by an Authenticator (e.g., + USB, NFC, BLE). items: - $ref: '#/components/schemas/AuthenticatorTransport' + "$ref": "#/components/schemas/v1AuthenticatorTransport" attestationType: type: string aaguid: @@ -1754,7 +2718,7 @@ components: type: string description: The type of Authenticator device. credential: - $ref: '#/components/schemas/external.data.v1.Credential' + "$ref": "#/components/schemas/externaldatav1Credential" authenticatorId: type: string description: Unique identifier for a given Authenticator. @@ -1762,13 +2726,13 @@ components: type: string description: Human-readable name for an Authenticator. createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - AuthenticatorAttestationResponse: + "$ref": "#/components/schemas/externaldatav1Timestamp" + v1AuthenticatorAttestationResponse: required: - - attestationObject - - clientDataJson + - attestationObject + - clientDataJson type: object properties: clientDataJson: @@ -1778,19 +2742,19 @@ components: transports: type: array items: - $ref: '#/components/schemas/AuthenticatorTransport' + "$ref": "#/components/schemas/v1AuthenticatorTransport" authenticatorAttachment: type: string nullable: true enum: - - cross-platform - - platform - AuthenticatorParams: + - cross-platform + - platform + v1AuthenticatorParams: required: - - attestation - - authenticatorName - - challenge - - userId + - attestation + - authenticatorName + - challenge + - userId type: object properties: authenticatorName: @@ -1800,15 +2764,15 @@ components: type: string description: Unique identifier for a given User. attestation: - $ref: '#/components/schemas/PublicKeyCredentialWithAttestation' + "$ref": "#/components/schemas/v1PublicKeyCredentialWithAttestation" challenge: type: string description: Challenge presented for authentication purposes. - AuthenticatorParamsV2: + v1AuthenticatorParamsV2: required: - - attestation - - authenticatorName - - challenge + - attestation + - authenticatorName + - challenge type: object properties: authenticatorName: @@ -1818,54 +2782,76 @@ components: type: string description: Challenge presented for authentication purposes. attestation: - $ref: '#/components/schemas/Attestation' - AuthenticatorTransport: + "$ref": "#/components/schemas/v1Attestation" + v1AuthenticatorTransport: type: string enum: - - AUTHENTICATOR_TRANSPORT_BLE - - AUTHENTICATOR_TRANSPORT_INTERNAL - - AUTHENTICATOR_TRANSPORT_NFC - - AUTHENTICATOR_TRANSPORT_USB - - AUTHENTICATOR_TRANSPORT_HYBRID - CreateApiKeysIntent: + - AUTHENTICATOR_TRANSPORT_BLE + - AUTHENTICATOR_TRANSPORT_INTERNAL + - AUTHENTICATOR_TRANSPORT_NFC + - AUTHENTICATOR_TRANSPORT_USB + - AUTHENTICATOR_TRANSPORT_HYBRID + v1Config: + type: object + properties: + features: + type: array + items: + "$ref": "#/components/schemas/v1Feature" + quorum: + "$ref": "#/components/schemas/externaldatav1Quorum" + v1CreateApiKeysIntent: + required: + - apiKeys + - userId + type: object + properties: + apiKeys: + type: array + description: A list of API Keys. + items: + "$ref": "#/components/schemas/apiApiKeyParams" + userId: + type: string + description: Unique identifier for a given User. + v1CreateApiKeysIntentV2: required: - - apiKeys - - userId + - apiKeys + - userId type: object properties: apiKeys: type: array description: A list of API Keys. items: - $ref: '#/components/schemas/ApiKeyParams' + "$ref": "#/components/schemas/v1ApiKeyParamsV2" userId: type: string description: Unique identifier for a given User. - CreateApiKeysRequest: + v1CreateApiKeysRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_API_KEYS + - ACTIVITY_TYPE_CREATE_API_KEYS_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateApiKeysIntent' - CreateApiKeysResult: + "$ref": "#/components/schemas/v1CreateApiKeysIntentV2" + v1CreateApiKeysResult: required: - - apiKeyIds + - apiKeyIds type: object properties: apiKeyIds: @@ -1873,19 +2859,40 @@ components: description: A list of API Key IDs. items: type: string - CreateApiOnlyUsersIntent: + v1CreateApiOnlyUsersIntent: required: - - apiOnlyUsers + - apiOnlyUsers type: object properties: apiOnlyUsers: type: array description: A list of API-only Users to create. items: - $ref: '#/components/schemas/ApiOnlyUserParams' - CreateApiOnlyUsersResult: + "$ref": "#/components/schemas/v1ApiOnlyUserParams" + v1CreateApiOnlyUsersRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_CREATE_API_ONLY_USERS + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1CreateApiOnlyUsersIntent" + v1CreateApiOnlyUsersResult: required: - - userIds + - userIds type: object properties: userIds: @@ -1893,59 +2900,58 @@ components: description: A list of API-only User IDs. items: type: string - CreateAuthenticatorsIntent: + v1CreateAuthenticatorsIntent: required: - - authenticators - - userId + - authenticators + - userId type: object properties: authenticators: type: array description: A list of Authenticators. items: - $ref: '#/components/schemas/AuthenticatorParams' + "$ref": "#/components/schemas/v1AuthenticatorParams" userId: type: string description: Unique identifier for a given User. - CreateAuthenticatorsIntentV2: + v1CreateAuthenticatorsIntentV2: required: - - authenticators - - userId + - authenticators + - userId type: object properties: authenticators: type: array description: A list of Authenticators. items: - $ref: '#/components/schemas/AuthenticatorParamsV2' + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" userId: type: string description: Unique identifier for a given User. - CreateAuthenticatorsRequest: + v1CreateAuthenticatorsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2 + - ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateAuthenticatorsIntentV2' - CreateAuthenticatorsResult: + "$ref": "#/components/schemas/v1CreateAuthenticatorsIntentV2" + v1CreateAuthenticatorsResult: required: - - authenticatorIds + - authenticatorIds type: object properties: authenticatorIds: @@ -1953,41 +2959,40 @@ components: description: A list of Authenticator IDs. items: type: string - CreateInvitationsIntent: + v1CreateInvitationsIntent: required: - - invitations + - invitations type: object properties: invitations: type: array description: A list of Invitations. items: - $ref: '#/components/schemas/InvitationParams' - CreateInvitationsRequest: + "$ref": "#/components/schemas/v1InvitationParams" + v1CreateInvitationsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_INVITATIONS + - ACTIVITY_TYPE_CREATE_INVITATIONS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateInvitationsIntent' - CreateInvitationsResult: + "$ref": "#/components/schemas/v1CreateInvitationsIntent" + v1CreateInvitationsResult: required: - - invitationIds + - invitationIds type: object properties: invitationIds: @@ -1995,11 +3000,56 @@ components: description: A list of Invitation IDs items: type: string - CreateOrganizationIntent: + v1CreateOauthProvidersIntent: + required: + - oauthProviders + - userId + type: object + properties: + userId: + type: string + description: The ID of the User to add an Oauth provider to + oauthProviders: + type: array + description: A list of Oauth providers. + items: + "$ref": "#/components/schemas/v1OauthProviderParams" + v1CreateOauthProvidersRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1CreateOauthProvidersIntent" + v1CreateOauthProvidersResult: + required: + - providerIds + type: object + properties: + providerIds: + type: array + description: A list of unique identifiers for Oauth Providers + items: + type: string + v1CreateOrganizationIntent: required: - - organizationName - - rootAuthenticator - - rootEmail + - organizationName + - rootAuthenticator + - rootEmail type: object properties: organizationName: @@ -2009,15 +3059,15 @@ components: type: string description: The root user's email address. rootAuthenticator: - $ref: '#/components/schemas/AuthenticatorParams' + "$ref": "#/components/schemas/v1AuthenticatorParams" rootUserId: type: string description: Unique identifier for the root user object. - CreateOrganizationIntentV2: + v1CreateOrganizationIntentV2: required: - - organizationName - - rootAuthenticator - - rootEmail + - organizationName + - rootAuthenticator + - rootEmail type: object properties: organizationName: @@ -2027,53 +3077,52 @@ components: type: string description: The root user's email address. rootAuthenticator: - $ref: '#/components/schemas/AuthenticatorParamsV2' + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" rootUserId: type: string description: Unique identifier for the root user object. - CreateOrganizationResult: + v1CreateOrganizationResult: required: - - organizationId + - organizationId type: object properties: organizationId: type: string description: Unique identifier for a given Organization. - CreatePoliciesIntent: + v1CreatePoliciesIntent: required: - - policies + - policies type: object properties: policies: type: array description: An array of policy intents to be created. items: - $ref: '#/components/schemas/CreatePolicyIntentV3' - CreatePoliciesRequest: + "$ref": "#/components/schemas/v1CreatePolicyIntentV3" + v1CreatePoliciesRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_POLICIES + - ACTIVITY_TYPE_CREATE_POLICIES timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreatePoliciesIntent' - CreatePoliciesResult: + "$ref": "#/components/schemas/v1CreatePoliciesIntent" + v1CreatePoliciesResult: required: - - policyIds + - policyIds type: object properties: policyIds: @@ -2081,11 +3130,11 @@ components: description: A list of unique identifiers for the created policies. items: type: string - CreatePolicyIntent: + v1CreatePolicyIntent: required: - - effect - - policyName - - selectors + - effect + - policyName + - selectors type: object properties: policyName: @@ -2093,20 +3142,19 @@ components: description: Human-readable name for a Policy. selectors: type: array - description: >- - A list of simple functions each including a subject, target and - boolean. See Policy Engine Language section for additional details. + description: A list of simple functions each including a subject, target + and boolean. See Policy Engine Language section for additional details. items: - $ref: '#/components/schemas/Selector' + "$ref": "#/components/schemas/v1Selector" effect: - $ref: '#/components/schemas/Effect' + "$ref": "#/components/schemas/v1Effect" notes: type: string - CreatePolicyIntentV2: + v1CreatePolicyIntentV2: required: - - effect - - policyName - - selectors + - effect + - policyName + - selectors type: object properties: policyName: @@ -2114,26 +3162,25 @@ components: description: Human-readable name for a Policy. selectors: type: array - description: >- - A list of simple functions each including a subject, target and - boolean. See Policy Engine Language section for additional details. + description: A list of simple functions each including a subject, target + and boolean. See Policy Engine Language section for additional details. items: - $ref: '#/components/schemas/SelectorV2' + "$ref": "#/components/schemas/v1SelectorV2" effect: - $ref: '#/components/schemas/Effect' + "$ref": "#/components/schemas/v1Effect" notes: type: string - CreatePolicyIntentV3: + v1CreatePolicyIntentV3: required: - - effect - - policyName + - effect + - policyName type: object properties: policyName: type: string description: Human-readable name for a Policy. effect: - $ref: '#/components/schemas/Effect' + "$ref": "#/components/schemas/v1Effect" condition: type: string description: The condition expression that triggers the Effect @@ -2142,40 +3189,39 @@ components: description: The consensus expression that triggers the Effect notes: type: string - CreatePolicyRequest: + v1CreatePolicyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_POLICY_V3 + - ACTIVITY_TYPE_CREATE_POLICY_V3 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreatePolicyIntentV3' - CreatePolicyResult: + "$ref": "#/components/schemas/v1CreatePolicyIntentV3" + v1CreatePolicyResult: required: - - policyId + - policyId type: object properties: policyId: type: string description: Unique identifier for a given Policy. - CreatePrivateKeyTagIntent: + v1CreatePrivateKeyTagIntent: required: - - privateKeyIds - - privateKeyTagName + - privateKeyIds + - privateKeyTagName type: object properties: privateKeyTagName: @@ -2186,32 +3232,31 @@ components: description: A list of Private Key IDs. items: type: string - CreatePrivateKeyTagRequest: + v1CreatePrivateKeyTagRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG + - ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreatePrivateKeyTagIntent' - CreatePrivateKeyTagResult: + "$ref": "#/components/schemas/v1CreatePrivateKeyTagIntent" + v1CreatePrivateKeyTagResult: required: - - privateKeyIds - - privateKeyTagId + - privateKeyIds + - privateKeyTagId type: object properties: privateKeyTagId: @@ -2222,84 +3267,263 @@ components: description: A list of Private Key IDs. items: type: string - CreatePrivateKeysIntent: + v1CreatePrivateKeysIntent: required: - - privateKeys + - privateKeys type: object properties: privateKeys: type: array description: A list of Private Keys. items: - $ref: '#/components/schemas/PrivateKeyParams' - CreatePrivateKeysIntentV2: + "$ref": "#/components/schemas/v1PrivateKeyParams" + v1CreatePrivateKeysIntentV2: required: - - privateKeys + - privateKeys type: object properties: privateKeys: type: array description: A list of Private Keys. items: - $ref: '#/components/schemas/PrivateKeyParams' - CreatePrivateKeysRequest: + "$ref": "#/components/schemas/v1PrivateKeyParams" + v1CreatePrivateKeysRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2 + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1CreatePrivateKeysIntentV2" + v1CreatePrivateKeysResult: + required: + - privateKeyIds + type: object + properties: + privateKeyIds: + type: array + description: A list of Private Key IDs. + items: + type: string + v1CreatePrivateKeysResultV2: + required: + - privateKeys + type: object + properties: + privateKeys: + type: array + description: A list of Private Key IDs and addresses. + items: + "$ref": "#/components/schemas/v1PrivateKeyResult" + v1CreateReadOnlySessionIntent: + type: object + v1CreateReadOnlySessionRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1CreateReadOnlySessionIntent" + v1CreateReadOnlySessionResult: + required: + - organizationId + - organizationName + - session + - sessionExpiry + - userId + - username + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. If the request + is being made by a user and their Sub-Organization ID is unknown, this + can be the Parent Organization ID. However, using the Sub-Organization + ID is preferred due to performance reasons. + organizationName: + type: string + description: Human-readable name for an Organization. + userId: + type: string + description: Unique identifier for a given User. + username: + type: string + description: Human-readable name for a User. + session: + type: string + description: String representing a read only session + sessionExpiry: + type: string + description: UTC timestamp in seconds representing the expiry time for the + read only session. + format: uint64 + v1CreateReadWriteSessionIntent: + required: + - email + - targetPublicKey + type: object + properties: + targetPublicKey: + type: string + description: Client-side public key generated by the user, to which the + read write session bundle (credentials) will be encrypted. + email: + type: string + description: Email of the user to create a read write session for + apiKeyName: + type: string + description: Optional human-readable name for an API Key. If none provided, + default to Read Write Session - + expirationSeconds: + type: string + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. + v1CreateReadWriteSessionIntentV2: + required: + - targetPublicKey + type: object + properties: + targetPublicKey: + type: string + description: Client-side public key generated by the user, to which the + read write session bundle (credentials) will be encrypted. + userId: + type: string + description: Unique identifier for a given User. + apiKeyName: + type: string + description: Optional human-readable name for an API Key. If none provided, + default to Read Write Session - + expirationSeconds: + type: string + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. + v1CreateReadWriteSessionRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2 + - ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreatePrivateKeysIntentV2' - CreatePrivateKeysResult: + "$ref": "#/components/schemas/v1CreateReadWriteSessionIntentV2" + v1CreateReadWriteSessionResult: required: - - privateKeyIds + - apiKeyId + - credentialBundle + - organizationId + - organizationName + - userId + - username type: object properties: - privateKeyIds: - type: array - description: A list of Private Key IDs. - items: - type: string - CreatePrivateKeysResultV2: + organizationId: + type: string + description: Unique identifier for a given Organization. If the request + is being made by a user and their Sub-Organization ID is unknown, this + can be the Parent Organization ID. However, using the Sub-Organization + ID is preferred due to performance reasons. + organizationName: + type: string + description: Human-readable name for an Organization. + userId: + type: string + description: Unique identifier for a given User. + username: + type: string + description: Human-readable name for a User. + apiKeyId: + type: string + description: Unique identifier for the created API key. + credentialBundle: + type: string + description: HPKE encrypted credential bundle + v1CreateReadWriteSessionResultV2: required: - - privateKeys + - apiKeyId + - credentialBundle + - organizationId + - organizationName + - userId + - username type: object properties: - privateKeys: - type: array - description: A list of Private Key IDs and addresses. - items: - $ref: '#/components/schemas/PrivateKeyResult' - CreateSubOrganizationIntent: + organizationId: + type: string + description: Unique identifier for a given Organization. If the request + is being made by a user and their Sub-Organization ID is unknown, this + can be the Parent Organization ID. However, using the Sub-Organization + ID is preferred due to performance reasons. + organizationName: + type: string + description: Human-readable name for an Organization. + userId: + type: string + description: Unique identifier for a given User. + username: + type: string + description: Human-readable name for a User. + apiKeyId: + type: string + description: Unique identifier for the created API key. + credentialBundle: + type: string + description: HPKE encrypted credential bundle + v1CreateSubOrganizationIntent: required: - - name - - rootAuthenticator + - name + - rootAuthenticator type: object properties: name: type: string description: Name for this sub-organization rootAuthenticator: - $ref: '#/components/schemas/AuthenticatorParamsV2' - CreateSubOrganizationIntentV2: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + v1CreateSubOrganizationIntentV2: required: - - rootQuorumThreshold - - rootUsers - - subOrganizationName + - rootQuorumThreshold + - rootUsers + - subOrganizationName type: object properties: subOrganizationName: @@ -2309,19 +3533,18 @@ components: type: array description: Root users to create within this sub-organization items: - $ref: '#/components/schemas/RootUserParams' + "$ref": "#/components/schemas/v1RootUserParams" rootQuorumThreshold: type: integer - description: >- - The threshold of unique approvals to reach root quorum. This value - must be less than or equal to the number of root users + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users format: int32 - CreateSubOrganizationIntentV3: + v1CreateSubOrganizationIntentV3: required: - - privateKeys - - rootQuorumThreshold - - rootUsers - - subOrganizationName + - privateKeys + - rootQuorumThreshold + - rootUsers + - subOrganizationName type: object properties: subOrganizationName: @@ -2331,23 +3554,106 @@ components: type: array description: Root users to create within this sub-organization items: - $ref: '#/components/schemas/RootUserParams' + "$ref": "#/components/schemas/v1RootUserParams" rootQuorumThreshold: type: integer - description: >- - The threshold of unique approvals to reach root quorum. This value - must be less than or equal to the number of root users + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users format: int32 privateKeys: type: array description: A list of Private Keys. items: - $ref: '#/components/schemas/PrivateKeyParams' - CreateSubOrganizationIntentV4: + "$ref": "#/components/schemas/v1PrivateKeyParams" + v1CreateSubOrganizationIntentV4: + required: + - rootQuorumThreshold + - rootUsers + - subOrganizationName + type: object + properties: + subOrganizationName: + type: string + description: Name for this sub-organization + rootUsers: + type: array + description: Root users to create within this sub-organization + items: + "$ref": "#/components/schemas/v1RootUserParams" + rootQuorumThreshold: + type: integer + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users + format: int32 + wallet: + "$ref": "#/components/schemas/v1WalletParams" + disableEmailRecovery: + type: boolean + description: Disable email recovery for the sub-organization + disableEmailAuth: + type: boolean + description: Disable email auth for the sub-organization + v1CreateSubOrganizationIntentV5: + required: + - rootQuorumThreshold + - rootUsers + - subOrganizationName + type: object + properties: + subOrganizationName: + type: string + description: Name for this sub-organization + rootUsers: + type: array + description: Root users to create within this sub-organization + items: + "$ref": "#/components/schemas/v1RootUserParamsV2" + rootQuorumThreshold: + type: integer + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users + format: int32 + wallet: + "$ref": "#/components/schemas/v1WalletParams" + disableEmailRecovery: + type: boolean + description: Disable email recovery for the sub-organization + disableEmailAuth: + type: boolean + description: Disable email auth for the sub-organization + v1CreateSubOrganizationIntentV6: + required: + - rootQuorumThreshold + - rootUsers + - subOrganizationName + type: object + properties: + subOrganizationName: + type: string + description: Name for this sub-organization + rootUsers: + type: array + description: Root users to create within this sub-organization + items: + "$ref": "#/components/schemas/v1RootUserParamsV3" + rootQuorumThreshold: + type: integer + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users + format: int32 + wallet: + "$ref": "#/components/schemas/v1WalletParams" + disableEmailRecovery: + type: boolean + description: Disable email recovery for the sub-organization + disableEmailAuth: + type: boolean + description: Disable email auth for the sub-organization + v1CreateSubOrganizationIntentV7: required: - - rootQuorumThreshold - - rootUsers - - subOrganizationName + - rootQuorumThreshold + - rootUsers + - subOrganizationName type: object properties: subOrganizationName: @@ -2357,46 +3663,50 @@ components: type: array description: Root users to create within this sub-organization items: - $ref: '#/components/schemas/RootUserParams' + "$ref": "#/components/schemas/v1RootUserParamsV4" rootQuorumThreshold: type: integer - description: >- - The threshold of unique approvals to reach root quorum. This value - must be less than or equal to the number of root users + description: The threshold of unique approvals to reach root quorum. This + value must be less than or equal to the number of root users format: int32 wallet: - $ref: '#/components/schemas/WalletParams' + "$ref": "#/components/schemas/v1WalletParams" disableEmailRecovery: type: boolean description: Disable email recovery for the sub-organization disableEmailAuth: type: boolean description: Disable email auth for the sub-organization - CreateSubOrganizationRequest: + disableSmsAuth: + type: boolean + description: Disable OTP SMS auth for the sub-organization + disableOtpEmailAuth: + type: boolean + description: Disable OTP email auth for the sub-organization + v1CreateSubOrganizationRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4 + - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateSubOrganizationIntentV4' - CreateSubOrganizationResult: + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV7" + v1CreateSubOrganizationResult: required: - - subOrganizationId + - subOrganizationId type: object properties: subOrganizationId: @@ -2405,10 +3715,10 @@ components: type: array items: type: string - CreateSubOrganizationResultV3: + v1CreateSubOrganizationResultV3: required: - - privateKeys - - subOrganizationId + - privateKeys + - subOrganizationId type: object properties: subOrganizationId: @@ -2417,28 +3727,67 @@ components: type: array description: A list of Private Key IDs and addresses. items: - $ref: '#/components/schemas/PrivateKeyResult' + "$ref": "#/components/schemas/v1PrivateKeyResult" + rootUserIds: + type: array + items: + type: string + v1CreateSubOrganizationResultV4: + required: + - subOrganizationId + type: object + properties: + subOrganizationId: + type: string + wallet: + "$ref": "#/components/schemas/v1WalletResult" + rootUserIds: + type: array + items: + type: string + v1CreateSubOrganizationResultV5: + required: + - subOrganizationId + type: object + properties: + subOrganizationId: + type: string + wallet: + "$ref": "#/components/schemas/v1WalletResult" + rootUserIds: + type: array + items: + type: string + v1CreateSubOrganizationResultV6: + required: + - subOrganizationId + type: object + properties: + subOrganizationId: + type: string + wallet: + "$ref": "#/components/schemas/v1WalletResult" rootUserIds: type: array items: type: string - CreateSubOrganizationResultV4: + v1CreateSubOrganizationResultV7: required: - - subOrganizationId + - subOrganizationId type: object properties: subOrganizationId: type: string wallet: - $ref: '#/components/schemas/WalletResult' + "$ref": "#/components/schemas/v1WalletResult" rootUserIds: type: array items: type: string - CreateUserTagIntent: + v1CreateUserTagIntent: required: - - userIds - - userTagName + - userIds + - userTagName type: object properties: userTagName: @@ -2449,32 +3798,31 @@ components: description: A list of User IDs. items: type: string - CreateUserTagRequest: + v1CreateUserTagRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_USER_TAG + - ACTIVITY_TYPE_CREATE_USER_TAG timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateUserTagIntent' - CreateUserTagResult: + "$ref": "#/components/schemas/v1CreateUserTagIntent" + v1CreateUserTagResult: required: - - userIds - - userTagId + - userIds + - userTagId type: object properties: userTagId: @@ -2485,51 +3833,50 @@ components: description: A list of User IDs. items: type: string - CreateUsersIntent: + v1CreateUsersIntent: required: - - users + - users type: object properties: users: type: array description: A list of Users. items: - $ref: '#/components/schemas/UserParams' - CreateUsersIntentV2: + "$ref": "#/components/schemas/v1UserParams" + v1CreateUsersIntentV2: required: - - users + - users type: object properties: users: type: array description: A list of Users. items: - $ref: '#/components/schemas/UserParamsV2' - CreateUsersRequest: + "$ref": "#/components/schemas/v1UserParamsV2" + v1CreateUsersRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_USERS_V2 + - ACTIVITY_TYPE_CREATE_USERS_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateUsersIntentV2' - CreateUsersResult: + "$ref": "#/components/schemas/v1CreateUsersIntentV2" + v1CreateUsersResult: required: - - userIds + - userIds type: object properties: userIds: @@ -2537,10 +3884,10 @@ components: description: A list of User IDs. items: type: string - CreateWalletAccountsIntent: + v1CreateWalletAccountsIntent: required: - - accounts - - walletId + - accounts + - walletId type: object properties: walletId: @@ -2550,32 +3897,31 @@ components: type: array description: A list of wallet Accounts. items: - $ref: '#/components/schemas/WalletAccountParams' - CreateWalletAccountsRequest: + "$ref": "#/components/schemas/v1WalletAccountParams" + v1CreateWalletAccountsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS + - ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateWalletAccountsIntent' - CreateWalletAccountsResult: + "$ref": "#/components/schemas/v1CreateWalletAccountsIntent" + v1CreateWalletAccountsResult: required: - - addresses + - addresses type: object properties: addresses: @@ -2583,10 +3929,10 @@ components: description: A list of derived addresses. items: type: string - CreateWalletIntent: + v1CreateWalletIntent: required: - - accounts - - walletName + - accounts + - walletName type: object properties: walletName: @@ -2596,39 +3942,37 @@ components: type: array description: A list of wallet Accounts. items: - $ref: '#/components/schemas/WalletAccountParams' + "$ref": "#/components/schemas/v1WalletAccountParams" mnemonicLength: type: integer - description: >- - Length of mnemonic to generate the Wallet seed. Defaults to 12. - Accepted values: 12, 15, 18, 21, 24. + description: 'Length of mnemonic to generate the Wallet seed. Defaults to + 12. Accepted values: 12, 15, 18, 21, 24.' format: int32 - CreateWalletRequest: + v1CreateWalletRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_CREATE_WALLET + - ACTIVITY_TYPE_CREATE_WALLET timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/CreateWalletIntent' - CreateWalletResult: + "$ref": "#/components/schemas/v1CreateWalletIntent" + v1CreateWalletResult: required: - - addresses - - walletId + - addresses + - walletId type: object properties: walletId: @@ -2639,28 +3983,32 @@ components: description: A list of account addresses. items: type: string - CredPropsAuthenticationExtensionsClientOutputs: + v1CredPropsAuthenticationExtensionsClientOutputs: required: - - rk + - rk type: object properties: rk: type: boolean - CredentialType: + v1CredentialType: type: string enum: - - CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR - - CREDENTIAL_TYPE_API_KEY_P256 - - CREDENTIAL_TYPE_RECOVER_USER_KEY_P256 - Curve: + - CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR + - CREDENTIAL_TYPE_API_KEY_P256 + - CREDENTIAL_TYPE_RECOVER_USER_KEY_P256 + - CREDENTIAL_TYPE_API_KEY_SECP256K1 + - CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256 + - CREDENTIAL_TYPE_API_KEY_ED25519 + - CREDENTIAL_TYPE_OTP_AUTH_KEY_P256 + v1Curve: type: string enum: - - CURVE_SECP256K1 - - CURVE_ED25519 - DeleteApiKeysIntent: + - CURVE_SECP256K1 + - CURVE_ED25519 + v1DeleteApiKeysIntent: required: - - apiKeyIds - - userId + - apiKeyIds + - userId type: object properties: userId: @@ -2671,355 +4019,507 @@ components: description: A list of API Key IDs. items: type: string - DeleteApiKeysRequest: + v1DeleteApiKeysRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_DELETE_API_KEYS + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1DeleteApiKeysIntent" + v1DeleteApiKeysResult: + required: + - apiKeyIds + type: object + properties: + apiKeyIds: + type: array + description: A list of API Key IDs. + items: + type: string + v1DeleteAuthenticatorsIntent: + required: + - authenticatorIds + - userId + type: object + properties: + userId: + type: string + description: Unique identifier for a given User. + authenticatorIds: + type: array + description: A list of Authenticator IDs. + items: + type: string + v1DeleteAuthenticatorsRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_DELETE_AUTHENTICATORS + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1DeleteAuthenticatorsIntent" + v1DeleteAuthenticatorsResult: + required: + - authenticatorIds + type: object + properties: + authenticatorIds: + type: array + description: Unique identifier for a given Authenticator. + items: + type: string + v1DeleteInvitationIntent: + required: + - invitationId + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation object. + v1DeleteInvitationRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_DELETE_INVITATION + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1DeleteInvitationIntent" + v1DeleteInvitationResult: + required: + - invitationId + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation. + v1DeleteOauthProvidersIntent: + required: + - providerIds + - userId + type: object + properties: + userId: + type: string + description: The ID of the User to remove an Oauth provider from + providerIds: + type: array + description: Unique identifier for a given Provider. + items: + type: string + v1DeleteOauthProvidersRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1DeleteOauthProvidersIntent" + v1DeleteOauthProvidersResult: + required: + - providerIds + type: object + properties: + providerIds: + type: array + description: A list of unique identifiers for Oauth Providers + items: + type: string + v1DeleteOrganizationIntent: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1DeleteOrganizationResult: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1DeletePolicyIntent: + required: + - policyId + type: object + properties: + policyId: + type: string + description: Unique identifier for a given Policy. + v1DeletePolicyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_API_KEYS + - ACTIVITY_TYPE_DELETE_POLICY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeleteApiKeysIntent' - DeleteApiKeysResult: + "$ref": "#/components/schemas/v1DeletePolicyIntent" + v1DeletePolicyResult: required: - - apiKeyIds + - policyId type: object properties: - apiKeyIds: - type: array - description: A list of API Key IDs. - items: - type: string - DeleteAuthenticatorsIntent: + policyId: + type: string + description: Unique identifier for a given Policy. + v1DeletePrivateKeyTagsIntent: required: - - authenticatorIds - - userId + - privateKeyTagIds type: object properties: - userId: - type: string - description: Unique identifier for a given User. - authenticatorIds: + privateKeyTagIds: type: array - description: A list of Authenticator IDs. + description: A list of Private Key Tag IDs. items: type: string - DeleteAuthenticatorsRequest: + v1DeletePrivateKeyTagsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_AUTHENTICATORS + - ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeleteAuthenticatorsIntent' - DeleteAuthenticatorsResult: + "$ref": "#/components/schemas/v1DeletePrivateKeyTagsIntent" + v1DeletePrivateKeyTagsResult: required: - - authenticatorIds + - privateKeyIds + - privateKeyTagIds type: object properties: - authenticatorIds: + privateKeyTagIds: type: array - description: Unique identifier for a given Authenticator. + description: A list of Private Key Tag IDs. + items: + type: string + privateKeyIds: + type: array + description: A list of Private Key IDs. items: type: string - DeleteInvitationIntent: + v1DeletePrivateKeysIntent: required: - - invitationId + - privateKeyIds type: object properties: - invitationId: - type: string - description: Unique identifier for a given Invitation object. - DeleteInvitationRequest: + privateKeyIds: + type: array + description: List of unique identifiers for private keys within an organization + items: + type: string + deleteWithoutExport: + type: boolean + description: Optional parameter for deleting the private keys, even if any + have not been previously exported. If they have been exported, this field + is ignored. + v1DeletePrivateKeysRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_INVITATION + - ACTIVITY_TYPE_DELETE_PRIVATE_KEYS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeleteInvitationIntent' - DeleteInvitationResult: + "$ref": "#/components/schemas/v1DeletePrivateKeysIntent" + v1DeletePrivateKeysResult: required: - - invitationId + - privateKeyIds type: object properties: - invitationId: - type: string - description: Unique identifier for a given Invitation. - DeleteOrganizationIntent: - required: - - organizationId - type: object - properties: - organizationId: - type: string - description: Unique identifier for a given Organization. - DeleteOrganizationResult: - required: - - organizationId - type: object - properties: - organizationId: - type: string - description: Unique identifier for a given Organization. - DeletePaymentMethodIntent: - required: - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The payment method that the customer wants to remove. - DeletePaymentMethodResult: - required: - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The payment method that was removed. - DeletePolicyIntent: - required: - - policyId + privateKeyIds: + type: array + description: A list of private key unique identifiers that were removed + items: + type: string + v1DeleteSubOrganizationIntent: type: object properties: - policyId: - type: string - description: Unique identifier for a given Policy. - DeletePolicyRequest: + deleteWithoutExport: + type: boolean + description: 'Sub-organization deletion, by default, requires associated + wallets and private keys to be exported for security reasons. Set this + boolean to true to force sub-organization deletion even if some wallets + or private keys within it have not been exported yet. Default: false.' + v1DeleteSubOrganizationRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_POLICY + - ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeletePolicyIntent' - DeletePolicyResult: + "$ref": "#/components/schemas/v1DeleteSubOrganizationIntent" + v1DeleteSubOrganizationResult: required: - - policyId + - subOrganizationUuid type: object properties: - policyId: + subOrganizationUuid: type: string - description: Unique identifier for a given Policy. - DeletePrivateKeyTagsIntent: + description: Unique identifier of the sub organization that was removed + v1DeleteUserTagsIntent: required: - - privateKeyTagIds + - userTagIds type: object properties: - privateKeyTagIds: + userTagIds: type: array - description: A list of Private Key Tag IDs. + description: A list of User Tag IDs. items: type: string - DeletePrivateKeyTagsRequest: + v1DeleteUserTagsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS + - ACTIVITY_TYPE_DELETE_USER_TAGS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeletePrivateKeyTagsIntent' - DeletePrivateKeyTagsResult: + "$ref": "#/components/schemas/v1DeleteUserTagsIntent" + v1DeleteUserTagsResult: required: - - privateKeyIds - - privateKeyTagIds + - userIds + - userTagIds type: object properties: - privateKeyTagIds: + userTagIds: type: array - description: A list of Private Key Tag IDs. + description: A list of User Tag IDs. items: type: string - privateKeyIds: + userIds: type: array - description: A list of Private Key IDs. + description: A list of User IDs. items: type: string - DeleteUserTagsIntent: + v1DeleteUsersIntent: required: - - userTagIds + - userIds type: object properties: - userTagIds: + userIds: type: array - description: A list of User Tag IDs. + description: A list of User IDs. items: type: string - DeleteUserTagsRequest: + v1DeleteUsersRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_USER_TAGS + - ACTIVITY_TYPE_DELETE_USERS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeleteUserTagsIntent' - DeleteUserTagsResult: + "$ref": "#/components/schemas/v1DeleteUsersIntent" + v1DeleteUsersResult: required: - - userIds - - userTagIds + - userIds type: object properties: - userTagIds: - type: array - description: A list of User Tag IDs. - items: - type: string userIds: type: array description: A list of User IDs. items: type: string - DeleteUsersIntent: + v1DeleteWalletsIntent: required: - - userIds + - walletIds type: object properties: - userIds: + walletIds: type: array - description: A list of User IDs. + description: List of unique identifiers for wallets within an organization items: type: string - DeleteUsersRequest: + deleteWithoutExport: + type: boolean + description: Optional parameter for deleting the wallets, even if any have + not been previously exported. If they have been exported, this field is + ignored. + v1DeleteWalletsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_DELETE_USERS + - ACTIVITY_TYPE_DELETE_WALLETS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/DeleteUsersIntent' - DeleteUsersResult: + "$ref": "#/components/schemas/v1DeleteWalletsIntent" + v1DeleteWalletsResult: required: - - userIds + - walletIds type: object properties: - userIds: + walletIds: type: array - description: A list of User IDs. + description: A list of wallet unique identifiers that were removed items: type: string - DisablePrivateKeyIntent: + v1DisablePrivateKeyIntent: required: - - privateKeyId + - privateKeyId type: object properties: privateKeyId: type: string description: Unique identifier for a given Private Key. - DisablePrivateKeyResult: + v1DisablePrivateKeyResult: required: - - privateKeyId + - privateKeyId type: object properties: privateKeyId: type: string description: Unique identifier for a given Private Key. - Effect: + v1Effect: type: string enum: - - EFFECT_ALLOW - - EFFECT_DENY - EmailAuthIntent: + - EFFECT_ALLOW + - EFFECT_DENY + v1EmailAuthIntent: required: - - email - - targetPublicKey + - email + - targetPublicKey type: object properties: email: @@ -3027,47 +4527,72 @@ components: description: Email of the authenticating user. targetPublicKey: type: string - description: >- - Client-side public key generated by the user, to which the email - auth bundle (credentials) will be encrypted. + description: Client-side public key generated by the user, to which the + email auth bundle (credentials) will be encrypted. apiKeyName: type: string - description: >- - Optional human-readable name for an API Key. If none provided, + description: Optional human-readable name for an API Key. If none provided, default to Email Auth - expirationSeconds: type: string - description: >- - Expiration window (in seconds) indicating how long the API key is - valid. If not provided, a default of 15 minutes will be used. + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. emailCustomization: - $ref: '#/components/schemas/EmailCustomizationParams' - EmailAuthRequest: + "$ref": "#/components/schemas/v1EmailCustomizationParams" + invalidateExisting: + type: boolean + description: Invalidate all other previously generated Email Auth API keys + v1EmailAuthIntentV2: + required: + - email + - targetPublicKey + type: object + properties: + email: + type: string + description: Email of the authenticating user. + targetPublicKey: + type: string + description: Client-side public key generated by the user, to which the + email auth bundle (credentials) will be encrypted. + apiKeyName: + type: string + description: Optional human-readable name for an API Key. If none provided, + default to Email Auth - + expirationSeconds: + type: string + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. + emailCustomization: + "$ref": "#/components/schemas/v1EmailCustomizationParams" + invalidateExisting: + type: boolean + description: Invalidate all other previously generated Email Auth API keys + v1EmailAuthRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_EMAIL_AUTH + - ACTIVITY_TYPE_EMAIL_AUTH_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/EmailAuthIntent' - EmailAuthResult: + "$ref": "#/components/schemas/v1EmailAuthIntentV2" + v1EmailAuthResult: required: - - apiKeyId - - userId + - apiKeyId + - userId type: object properties: userId: @@ -3076,7 +4601,7 @@ components: apiKeyId: type: string description: Unique identifier for the created API key. - EmailCustomizationParams: + v1EmailCustomizationParams: type: object properties: appName: @@ -3084,29 +4609,24 @@ components: description: The name of the application. logoUrl: type: string - description: >- - A URL pointing to a logo in PNG format. Note this logo will be - resized to fit into 340px x 124px. + description: A URL pointing to a logo in PNG format. Note this logo will + be resized to fit into 340px x 124px. magicLinkTemplate: type: string - description: >- - A template for the URL to be used in a magic link button, e.g. - `https://dapp.xyz/%s`. The auth bundle will be interpolated into the - `%s`. + description: A template for the URL to be used in a magic link button, e.g. + `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. templateVariables: type: string - description: >- - JSON object containing key/value pairs to be used with custom + description: JSON object containing key/value pairs to be used with custom templates. templateId: type: string - description: >- - Unique identifier for a given Email Template. If not specified, the - default is the most recent Email Template. - ExportPrivateKeyIntent: + description: Unique identifier for a given Email Template. If not specified, + the default is the most recent Email Template. + v1ExportPrivateKeyIntent: required: - - privateKeyId - - targetPublicKey + - privateKeyId + - targetPublicKey type: object properties: privateKeyId: @@ -3114,35 +4634,33 @@ components: description: Unique identifier for a given Private Key. targetPublicKey: type: string - description: >- - Client-side public key generated by the user, to which the export - bundle will be encrypted. - ExportPrivateKeyRequest: + description: Client-side public key generated by the user, to which the + export bundle will be encrypted. + v1ExportPrivateKeyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_EXPORT_PRIVATE_KEY + - ACTIVITY_TYPE_EXPORT_PRIVATE_KEY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ExportPrivateKeyIntent' - ExportPrivateKeyResult: + "$ref": "#/components/schemas/v1ExportPrivateKeyIntent" + v1ExportPrivateKeyResult: required: - - exportBundle - - privateKeyId + - exportBundle + - privateKeyId type: object properties: privateKeyId: @@ -3150,13 +4668,12 @@ components: description: Unique identifier for a given Private Key. exportBundle: type: string - description: >- - Export bundle containing a private key encrypted to the client's + description: Export bundle containing a private key encrypted to the client's target public key. - ExportWalletAccountIntent: + v1ExportWalletAccountIntent: required: - - address - - targetPublicKey + - address + - targetPublicKey type: object properties: address: @@ -3164,35 +4681,33 @@ components: description: Address to identify Wallet Account. targetPublicKey: type: string - description: >- - Client-side public key generated by the user, to which the export - bundle will be encrypted. - ExportWalletAccountRequest: + description: Client-side public key generated by the user, to which the + export bundle will be encrypted. + v1ExportWalletAccountRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT + - ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ExportWalletAccountIntent' - ExportWalletAccountResult: + "$ref": "#/components/schemas/v1ExportWalletAccountIntent" + v1ExportWalletAccountResult: required: - - address - - exportBundle + - address + - exportBundle type: object properties: address: @@ -3200,13 +4715,12 @@ components: description: Address to identify Wallet Account. exportBundle: type: string - description: >- - Export bundle containing a private key encrypted by the client's + description: Export bundle containing a private key encrypted by the client's target public key. - ExportWalletIntent: + v1ExportWalletIntent: required: - - targetPublicKey - - walletId + - targetPublicKey + - walletId type: object properties: walletId: @@ -3214,37 +4728,35 @@ components: description: Unique identifier for a given Wallet. targetPublicKey: type: string - description: >- - Client-side public key generated by the user, to which the export - bundle will be encrypted. + description: Client-side public key generated by the user, to which the + export bundle will be encrypted. language: - $ref: '#/components/schemas/MnemonicLanguage' - ExportWalletRequest: + "$ref": "#/components/schemas/v1MnemonicLanguage" + v1ExportWalletRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_EXPORT_WALLET + - ACTIVITY_TYPE_EXPORT_WALLET timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ExportWalletIntent' - ExportWalletResult: + "$ref": "#/components/schemas/v1ExportWalletIntent" + v1ExportWalletResult: required: - - exportBundle - - walletId + - exportBundle + - walletId type: object properties: walletId: @@ -3252,27 +4764,28 @@ components: description: Unique identifier for a given Wallet. exportBundle: type: string - description: >- - Export bundle containing a wallet mnemonic + optional newline + description: Export bundle containing a wallet mnemonic + optional newline passphrase encrypted by the client's target public key. - Feature: + v1Feature: type: object properties: name: - $ref: '#/components/schemas/FeatureName' + "$ref": "#/components/schemas/v1FeatureName" value: type: string - FeatureName: + v1FeatureName: type: string enum: - - FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY - - FEATURE_NAME_WEBAUTHN_ORIGINS - - FEATURE_NAME_EMAIL_AUTH - - FEATURE_NAME_EMAIL_RECOVERY - - FEATURE_NAME_WEBHOOK - GetActivitiesRequest: + - FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY + - FEATURE_NAME_WEBAUTHN_ORIGINS + - FEATURE_NAME_EMAIL_AUTH + - FEATURE_NAME_EMAIL_RECOVERY + - FEATURE_NAME_WEBHOOK + - FEATURE_NAME_SMS_AUTH + - FEATURE_NAME_OTP_EMAIL_AUTH + v1GetActivitiesRequest: required: - - organizationId + - organizationId type: object properties: organizationId: @@ -3280,34 +4793,32 @@ components: description: Unique identifier for a given Organization. filterByStatus: type: array - description: >- - Array of Activity Statuses filtering which Activities will be listed - in the response. + description: Array of Activity Statuses filtering which Activities will + be listed in the response. items: - $ref: '#/components/schemas/ActivityStatus' + "$ref": "#/components/schemas/v1ActivityStatus" paginationOptions: - $ref: '#/components/schemas/Pagination' + "$ref": "#/components/schemas/v1Pagination" filterByType: type: array - description: >- - Array of Activity Types filtering which Activities will be listed in - the response. + description: Array of Activity Types filtering which Activities will be + listed in the response. items: - $ref: '#/components/schemas/ActivityType' - GetActivitiesResponse: + "$ref": "#/components/schemas/v1ActivityType" + v1GetActivitiesResponse: required: - - activities + - activities type: object properties: activities: type: array description: A list of Activities. items: - $ref: '#/components/schemas/Activity' - GetActivityRequest: + "$ref": "#/components/schemas/v1Activity" + v1GetActivityRequest: required: - - activityId - - organizationId + - activityId + - organizationId type: object properties: organizationId: @@ -3316,10 +4827,10 @@ components: activityId: type: string description: Unique identifier for a given Activity object. - GetApiKeyRequest: + v1GetApiKeyRequest: required: - - apiKeyId - - organizationId + - apiKeyId + - organizationId type: object properties: organizationId: @@ -3328,16 +4839,16 @@ components: apiKeyId: type: string description: Unique identifier for a given API key. - GetApiKeyResponse: + v1GetApiKeyResponse: required: - - apiKey + - apiKey type: object properties: apiKey: - $ref: '#/components/schemas/ApiKey' - GetApiKeysRequest: + "$ref": "#/components/schemas/v1ApiKey" + v1GetApiKeysRequest: required: - - organizationId + - organizationId type: object properties: organizationId: @@ -3346,20 +4857,42 @@ components: userId: type: string description: Unique identifier for a given User. - GetApiKeysResponse: + v1GetApiKeysResponse: required: - - apiKeys + - apiKeys type: object properties: apiKeys: type: array description: A list of API keys. items: - $ref: '#/components/schemas/ApiKey' - GetAuthenticatorRequest: + "$ref": "#/components/schemas/v1ApiKey" + v1GetAttestationDocumentRequest: required: - - authenticatorId - - organizationId + - enclaveType + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + enclaveType: + type: string + description: 'The enclave type, one of: ump, notarizer, signer, evm-parser' + v1GetAttestationDocumentResponse: + required: + - attestationDocument + type: object + properties: + attestationDocument: + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + type: string + description: Raw (CBOR-encoded) attestation document + format: byte + v1GetAuthenticatorRequest: + required: + - authenticatorId + - organizationId type: object properties: organizationId: @@ -3368,17 +4901,17 @@ components: authenticatorId: type: string description: Unique identifier for a given Authenticator. - GetAuthenticatorResponse: + v1GetAuthenticatorResponse: required: - - authenticator + - authenticator type: object properties: authenticator: - $ref: '#/components/schemas/Authenticator' - GetAuthenticatorsRequest: + "$ref": "#/components/schemas/v1Authenticator" + v1GetAuthenticatorsRequest: required: - - organizationId - - userId + - organizationId + - userId type: object properties: organizationId: @@ -3387,38 +4920,89 @@ components: userId: type: string description: Unique identifier for a given User. - GetAuthenticatorsResponse: + v1GetAuthenticatorsResponse: required: - - authenticators + - authenticators type: object properties: authenticators: type: array description: A list of authenticators. items: - $ref: '#/components/schemas/Authenticator' - GetPoliciesRequest: + "$ref": "#/components/schemas/v1Authenticator" + v1GetOauthProvidersRequest: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + userId: + type: string + description: Unique identifier for a given User. + v1GetOauthProvidersResponse: + required: + - oauthProviders + type: object + properties: + oauthProviders: + type: array + description: A list of Oauth Providers + items: + "$ref": "#/components/schemas/v1OauthProvider" + v1GetOrganizationConfigsRequest: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1GetOrganizationConfigsResponse: + required: + - configs + type: object + properties: + configs: + "$ref": "#/components/schemas/v1Config" + v1GetOrganizationRequest: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1GetOrganizationResponse: required: - - organizationId + - organizationData + type: object + properties: + organizationData: + "$ref": "#/components/schemas/v1OrganizationData" + v1GetPoliciesRequest: + required: + - organizationId type: object properties: organizationId: type: string description: Unique identifier for a given Organization. - GetPoliciesResponse: + v1GetPoliciesResponse: required: - - policies + - policies type: object properties: policies: type: array description: A list of Policies. items: - $ref: '#/components/schemas/Policy' - GetPolicyRequest: + "$ref": "#/components/schemas/v1Policy" + v1GetPolicyRequest: required: - - organizationId - - policyId + - organizationId + - policyId type: object properties: organizationId: @@ -3427,17 +5011,17 @@ components: policyId: type: string description: Unique identifier for a given Policy. - GetPolicyResponse: + v1GetPolicyResponse: required: - - policy + - policy type: object properties: policy: - $ref: '#/components/schemas/Policy' - GetPrivateKeyRequest: + "$ref": "#/components/schemas/v1Policy" + v1GetPrivateKeyRequest: required: - - organizationId - - privateKeyId + - organizationId + - privateKeyId type: object properties: organizationId: @@ -3446,56 +5030,53 @@ components: privateKeyId: type: string description: Unique identifier for a given Private Key. - GetPrivateKeyResponse: + v1GetPrivateKeyResponse: required: - - privateKey + - privateKey type: object properties: privateKey: - $ref: '#/components/schemas/PrivateKey' - GetPrivateKeysRequest: + "$ref": "#/components/schemas/v1PrivateKey" + v1GetPrivateKeysRequest: required: - - organizationId + - organizationId type: object properties: organizationId: type: string description: Unique identifier for a given Organization. - GetPrivateKeysResponse: + v1GetPrivateKeysResponse: required: - - privateKeys + - privateKeys type: object properties: privateKeys: type: array description: A list of Private Keys. items: - $ref: '#/components/schemas/PrivateKey' - GetSubOrgIdsRequest: + "$ref": "#/components/schemas/v1PrivateKey" + v1GetSubOrgIdsRequest: required: - - organizationId + - organizationId type: object properties: organizationId: type: string - description: >- - Unique identifier for the parent Organization. This is used to find - sub-organizations within it. + description: Unique identifier for the parent Organization. This is used + to find sub-organizations within it. filterType: type: string - description: >- - Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', - 'USERNAME', 'EMAIL' or 'PUBLIC_KEY' + description: Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', + 'NAME', 'USERNAME', 'EMAIL', 'OIDC_TOKEN' or 'PUBLIC_KEY' filterValue: type: string - description: >- - The value of the filter to apply for the specified type. For + description: The value of the filter to apply for the specified type. For example, a specific email or name string. paginationOptions: - $ref: '#/components/schemas/Pagination' - GetSubOrgIdsResponse: + "$ref": "#/components/schemas/v1Pagination" + v1GetSubOrgIdsResponse: required: - - organizationIds + - organizationIds type: object properties: organizationIds: @@ -3503,10 +5084,10 @@ components: description: List of unique identifiers for the matching sub-organizations. items: type: string - GetUserRequest: + v1GetUserRequest: required: - - organizationId - - userId + - organizationId + - userId type: object properties: organizationId: @@ -3515,35 +5096,35 @@ components: userId: type: string description: Unique identifier for a given User. - GetUserResponse: + v1GetUserResponse: required: - - user + - user type: object properties: user: - $ref: '#/components/schemas/User' - GetUsersRequest: + "$ref": "#/components/schemas/v1User" + v1GetUsersRequest: required: - - organizationId + - organizationId type: object properties: organizationId: type: string description: Unique identifier for a given Organization. - GetUsersResponse: + v1GetUsersResponse: required: - - users + - users type: object properties: users: type: array description: A list of Users. items: - $ref: '#/components/schemas/User' - GetWalletAccountsRequest: + "$ref": "#/components/schemas/v1User" + v1GetWalletAccountsRequest: required: - - organizationId - - walletId + - organizationId + - walletId type: object properties: organizationId: @@ -3553,21 +5134,22 @@ components: type: string description: Unique identifier for a given Wallet. paginationOptions: - $ref: '#/components/schemas/Pagination' - GetWalletAccountsResponse: + "$ref": "#/components/schemas/v1Pagination" + v1GetWalletAccountsResponse: required: - - accounts + - accounts type: object properties: accounts: type: array - description: A list of Accounts generated from a Wallet that share a common seed + description: A list of Accounts generated from a Wallet that share a common + seed items: - $ref: '#/components/schemas/WalletAccount' - GetWalletRequest: + "$ref": "#/components/schemas/v1WalletAccount" + v1GetWalletRequest: required: - - organizationId - - walletId + - organizationId + - walletId type: object properties: organizationId: @@ -3576,49 +5158,48 @@ components: walletId: type: string description: Unique identifier for a given Wallet. - GetWalletResponse: + v1GetWalletResponse: required: - - wallet + - wallet type: object properties: wallet: - $ref: '#/components/schemas/Wallet' - GetWalletsRequest: + "$ref": "#/components/schemas/v1Wallet" + v1GetWalletsRequest: required: - - organizationId + - organizationId type: object properties: organizationId: type: string description: Unique identifier for a given Organization. - GetWalletsResponse: + v1GetWalletsResponse: required: - - wallets + - wallets type: object properties: wallets: type: array description: A list of Wallets. items: - $ref: '#/components/schemas/Wallet' - GetWhoamiRequest: + "$ref": "#/components/schemas/v1Wallet" + v1GetWhoamiRequest: required: - - organizationId + - organizationId type: object properties: organizationId: type: string - description: >- - Unique identifier for a given Organization. If the request is being - made by a WebAuthN user and their Sub-Organization ID is unknown, - this can be the Parent Organization ID; using the Sub-Organization - ID when possible is preferred due to performance reasons. - GetWhoamiResponse: + description: Unique identifier for a given Organization. If the request + is being made by a WebAuthN user and their Sub-Organization ID is unknown, + this can be the Parent Organization ID; using the Sub-Organization ID + when possible is preferred due to performance reasons. + v1GetWhoamiResponse: required: - - organizationId - - organizationName - - userId - - username + - organizationId + - organizationName + - userId + - username type: object properties: organizationId: @@ -3633,20 +5214,20 @@ components: username: type: string description: Human-readable name for a User. - HashFunction: + v1HashFunction: type: string enum: - - HASH_FUNCTION_NO_OP - - HASH_FUNCTION_SHA256 - - HASH_FUNCTION_KECCAK256 - - HASH_FUNCTION_NOT_APPLICABLE - ImportPrivateKeyIntent: + - HASH_FUNCTION_NO_OP + - HASH_FUNCTION_SHA256 + - HASH_FUNCTION_KECCAK256 + - HASH_FUNCTION_NOT_APPLICABLE + v1ImportPrivateKeyIntent: required: - - addressFormats - - curve - - encryptedBundle - - privateKeyName - - userId + - addressFormats + - curve + - encryptedBundle + - privateKeyName + - userId type: object properties: userId: @@ -3657,44 +5238,41 @@ components: description: Human-readable name for a Private Key. encryptedBundle: type: string - description: >- - Bundle containing a raw private key encrypted to the enclave's + description: Bundle containing a raw private key encrypted to the enclave's target public key. curve: - $ref: '#/components/schemas/Curve' + "$ref": "#/components/schemas/v1Curve" addressFormats: type: array - description: >- - Cryptocurrency-specific formats for a derived address (e.g., + description: Cryptocurrency-specific formats for a derived address (e.g., Ethereum). items: - $ref: '#/components/schemas/AddressFormat' - ImportPrivateKeyRequest: + "$ref": "#/components/schemas/v1AddressFormat" + v1ImportPrivateKeyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_IMPORT_PRIVATE_KEY + - ACTIVITY_TYPE_IMPORT_PRIVATE_KEY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ImportPrivateKeyIntent' - ImportPrivateKeyResult: + "$ref": "#/components/schemas/v1ImportPrivateKeyIntent" + v1ImportPrivateKeyResult: required: - - addresses - - privateKeyId + - addresses + - privateKeyId type: object properties: privateKeyId: @@ -3704,13 +5282,13 @@ components: type: array description: A list of addresses. items: - $ref: '#/components/schemas/activity.v1.Address' - ImportWalletIntent: + "$ref": "#/components/schemas/immutableactivityv1Address" + v1ImportWalletIntent: required: - - accounts - - encryptedBundle - - userId - - walletName + - accounts + - encryptedBundle + - userId + - walletName type: object properties: userId: @@ -3721,40 +5299,38 @@ components: description: Human-readable name for a Wallet. encryptedBundle: type: string - description: >- - Bundle containing a wallet mnemonic encrypted to the enclave's + description: Bundle containing a wallet mnemonic encrypted to the enclave's target public key. accounts: type: array description: A list of wallet Accounts. items: - $ref: '#/components/schemas/WalletAccountParams' - ImportWalletRequest: + "$ref": "#/components/schemas/v1WalletAccountParams" + v1ImportWalletRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_IMPORT_WALLET + - ACTIVITY_TYPE_IMPORT_WALLET timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/ImportWalletIntent' - ImportWalletResult: + "$ref": "#/components/schemas/v1ImportWalletIntent" + v1ImportWalletResult: required: - - addresses - - walletId + - addresses + - walletId type: object properties: walletId: @@ -3765,90 +5341,129 @@ components: description: A list of account addresses. items: type: string - InitImportPrivateKeyIntent: + v1InitImportPrivateKeyIntent: required: - - userId + - userId type: object properties: userId: type: string description: The ID of the User importing a Private Key. - InitImportPrivateKeyRequest: + v1InitImportPrivateKeyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY + - ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/InitImportPrivateKeyIntent' - InitImportPrivateKeyResult: + "$ref": "#/components/schemas/v1InitImportPrivateKeyIntent" + v1InitImportPrivateKeyResult: required: - - importBundle + - importBundle type: object properties: importBundle: type: string - description: >- - Import bundle containing a public key and signature to use for - importing client data. - InitImportWalletIntent: + description: Import bundle containing a public key and signature to use + for importing client data. + v1InitImportWalletIntent: required: - - userId + - userId type: object properties: userId: type: string description: The ID of the User importing a Wallet. - InitImportWalletRequest: + v1InitImportWalletRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_INIT_IMPORT_WALLET + - ACTIVITY_TYPE_INIT_IMPORT_WALLET timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/InitImportWalletIntent' - InitImportWalletResult: + "$ref": "#/components/schemas/v1InitImportWalletIntent" + v1InitImportWalletResult: required: - - importBundle + - importBundle type: object properties: importBundle: type: string - description: >- - Import bundle containing a public key and signature to use for - importing client data. - InitUserEmailRecoveryIntent: + description: Import bundle containing a public key and signature to use + for importing client data. + v1InitOtpAuthIntent: + required: + - contact + - otpType + type: object + properties: + otpType: + type: string + description: Enum to specifiy whether to send OTP via SMS or email + contact: + type: string + description: Email or phone number to send the OTP code to + emailCustomization: + "$ref": "#/components/schemas/v1EmailCustomizationParams" + v1InitOtpAuthRequest: + required: + - organizationId + - parameters + - timestampMs + - type + type: object + properties: + type: + type: string + enum: + - ACTIVITY_TYPE_INIT_OTP_AUTH + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. + organizationId: + type: string + description: Unique identifier for a given Organization. + parameters: + "$ref": "#/components/schemas/v1InitOtpAuthIntent" + v1InitOtpAuthResult: + required: + - otpId + type: object + properties: + otpId: + type: string + description: Unique identifier for an OTP authentication + v1InitUserEmailRecoveryIntent: required: - - email - - targetPublicKey + - email + - targetPublicKey type: object properties: email: @@ -3856,300 +5471,579 @@ components: description: Email of the user starting recovery targetPublicKey: type: string - description: >- - Client-side public key generated by the user, to which the recovery - bundle will be encrypted. + description: Client-side public key generated by the user, to which the + recovery bundle will be encrypted. expirationSeconds: type: string - description: >- - Expiration window (in seconds) indicating how long the recovery - credential is valid. If not provided, a default of 15 minutes will - be used. + description: Expiration window (in seconds) indicating how long the recovery + credential is valid. If not provided, a default of 15 minutes will be + used. emailCustomization: - $ref: '#/components/schemas/EmailCustomizationParams' - InitUserEmailRecoveryRequest: + "$ref": "#/components/schemas/v1EmailCustomizationParams" + v1InitUserEmailRecoveryRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY + - ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/InitUserEmailRecoveryIntent' - InitUserEmailRecoveryResult: + "$ref": "#/components/schemas/v1InitUserEmailRecoveryIntent" + v1InitUserEmailRecoveryResult: required: - - userId + - userId type: object properties: userId: type: string description: Unique identifier for the user being recovered. - Intent: + v1Intent: type: object properties: createOrganizationIntent: - $ref: '#/components/schemas/CreateOrganizationIntent' + "$ref": "#/components/schemas/v1CreateOrganizationIntent" createAuthenticatorsIntent: - $ref: '#/components/schemas/CreateAuthenticatorsIntent' + "$ref": "#/components/schemas/v1CreateAuthenticatorsIntent" createUsersIntent: - $ref: '#/components/schemas/CreateUsersIntent' + "$ref": "#/components/schemas/v1CreateUsersIntent" createPrivateKeysIntent: - $ref: '#/components/schemas/CreatePrivateKeysIntent' + "$ref": "#/components/schemas/v1CreatePrivateKeysIntent" signRawPayloadIntent: - $ref: '#/components/schemas/SignRawPayloadIntent' + "$ref": "#/components/schemas/v1SignRawPayloadIntent" createInvitationsIntent: - $ref: '#/components/schemas/CreateInvitationsIntent' + "$ref": "#/components/schemas/v1CreateInvitationsIntent" acceptInvitationIntent: - $ref: '#/components/schemas/AcceptInvitationIntent' + "$ref": "#/components/schemas/v1AcceptInvitationIntent" createPolicyIntent: - $ref: '#/components/schemas/CreatePolicyIntent' + "$ref": "#/components/schemas/v1CreatePolicyIntent" disablePrivateKeyIntent: - $ref: '#/components/schemas/DisablePrivateKeyIntent' + "$ref": "#/components/schemas/v1DisablePrivateKeyIntent" deleteUsersIntent: - $ref: '#/components/schemas/DeleteUsersIntent' + "$ref": "#/components/schemas/v1DeleteUsersIntent" deleteAuthenticatorsIntent: - $ref: '#/components/schemas/DeleteAuthenticatorsIntent' + "$ref": "#/components/schemas/v1DeleteAuthenticatorsIntent" deleteInvitationIntent: - $ref: '#/components/schemas/DeleteInvitationIntent' + "$ref": "#/components/schemas/v1DeleteInvitationIntent" deleteOrganizationIntent: - $ref: '#/components/schemas/DeleteOrganizationIntent' + "$ref": "#/components/schemas/v1DeleteOrganizationIntent" deletePolicyIntent: - $ref: '#/components/schemas/DeletePolicyIntent' + "$ref": "#/components/schemas/v1DeletePolicyIntent" createUserTagIntent: - $ref: '#/components/schemas/CreateUserTagIntent' + "$ref": "#/components/schemas/v1CreateUserTagIntent" deleteUserTagsIntent: - $ref: '#/components/schemas/DeleteUserTagsIntent' + "$ref": "#/components/schemas/v1DeleteUserTagsIntent" signTransactionIntent: - $ref: '#/components/schemas/SignTransactionIntent' + "$ref": "#/components/schemas/v1SignTransactionIntent" createApiKeysIntent: - $ref: '#/components/schemas/CreateApiKeysIntent' + "$ref": "#/components/schemas/v1CreateApiKeysIntent" deleteApiKeysIntent: - $ref: '#/components/schemas/DeleteApiKeysIntent' + "$ref": "#/components/schemas/v1DeleteApiKeysIntent" approveActivityIntent: - $ref: '#/components/schemas/ApproveActivityIntent' + "$ref": "#/components/schemas/v1ApproveActivityIntent" rejectActivityIntent: - $ref: '#/components/schemas/RejectActivityIntent' + "$ref": "#/components/schemas/v1RejectActivityIntent" createPrivateKeyTagIntent: - $ref: '#/components/schemas/CreatePrivateKeyTagIntent' + "$ref": "#/components/schemas/v1CreatePrivateKeyTagIntent" deletePrivateKeyTagsIntent: - $ref: '#/components/schemas/DeletePrivateKeyTagsIntent' + "$ref": "#/components/schemas/v1DeletePrivateKeyTagsIntent" createPolicyIntentV2: - $ref: '#/components/schemas/CreatePolicyIntentV2' + "$ref": "#/components/schemas/v1CreatePolicyIntentV2" setPaymentMethodIntent: - $ref: '#/components/schemas/SetPaymentMethodIntent' + "$ref": "#/components/schemas/billingSetPaymentMethodIntent" activateBillingTierIntent: - $ref: '#/components/schemas/ActivateBillingTierIntent' + "$ref": "#/components/schemas/billingActivateBillingTierIntent" deletePaymentMethodIntent: - $ref: '#/components/schemas/DeletePaymentMethodIntent' + "$ref": "#/components/schemas/billingDeletePaymentMethodIntent" createPolicyIntentV3: - $ref: '#/components/schemas/CreatePolicyIntentV3' + "$ref": "#/components/schemas/v1CreatePolicyIntentV3" createApiOnlyUsersIntent: - $ref: '#/components/schemas/CreateApiOnlyUsersIntent' + "$ref": "#/components/schemas/v1CreateApiOnlyUsersIntent" updateRootQuorumIntent: - $ref: '#/components/schemas/UpdateRootQuorumIntent' + "$ref": "#/components/schemas/v1UpdateRootQuorumIntent" updateUserTagIntent: - $ref: '#/components/schemas/UpdateUserTagIntent' + "$ref": "#/components/schemas/v1UpdateUserTagIntent" updatePrivateKeyTagIntent: - $ref: '#/components/schemas/UpdatePrivateKeyTagIntent' + "$ref": "#/components/schemas/v1UpdatePrivateKeyTagIntent" createAuthenticatorsIntentV2: - $ref: '#/components/schemas/CreateAuthenticatorsIntentV2' + "$ref": "#/components/schemas/v1CreateAuthenticatorsIntentV2" acceptInvitationIntentV2: - $ref: '#/components/schemas/AcceptInvitationIntentV2' + "$ref": "#/components/schemas/v1AcceptInvitationIntentV2" createOrganizationIntentV2: - $ref: '#/components/schemas/CreateOrganizationIntentV2' + "$ref": "#/components/schemas/v1CreateOrganizationIntentV2" createUsersIntentV2: - $ref: '#/components/schemas/CreateUsersIntentV2' + "$ref": "#/components/schemas/v1CreateUsersIntentV2" createSubOrganizationIntent: - $ref: '#/components/schemas/CreateSubOrganizationIntent' + "$ref": "#/components/schemas/v1CreateSubOrganizationIntent" createSubOrganizationIntentV2: - $ref: '#/components/schemas/CreateSubOrganizationIntentV2' + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV2" updateAllowedOriginsIntent: - $ref: '#/components/schemas/UpdateAllowedOriginsIntent' + "$ref": "#/components/schemas/v1UpdateAllowedOriginsIntent" createPrivateKeysIntentV2: - $ref: '#/components/schemas/CreatePrivateKeysIntentV2' + "$ref": "#/components/schemas/v1CreatePrivateKeysIntentV2" updateUserIntent: - $ref: '#/components/schemas/UpdateUserIntent' + "$ref": "#/components/schemas/v1UpdateUserIntent" updatePolicyIntent: - $ref: '#/components/schemas/UpdatePolicyIntent' + "$ref": "#/components/schemas/v1UpdatePolicyIntent" setPaymentMethodIntentV2: - $ref: '#/components/schemas/SetPaymentMethodIntentV2' + "$ref": "#/components/schemas/billingSetPaymentMethodIntentV2" createSubOrganizationIntentV3: - $ref: '#/components/schemas/CreateSubOrganizationIntentV3' + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV3" createWalletIntent: - $ref: '#/components/schemas/CreateWalletIntent' + "$ref": "#/components/schemas/v1CreateWalletIntent" createWalletAccountsIntent: - $ref: '#/components/schemas/CreateWalletAccountsIntent' + "$ref": "#/components/schemas/v1CreateWalletAccountsIntent" initUserEmailRecoveryIntent: - $ref: '#/components/schemas/InitUserEmailRecoveryIntent' + "$ref": "#/components/schemas/v1InitUserEmailRecoveryIntent" recoverUserIntent: - $ref: '#/components/schemas/RecoverUserIntent' + "$ref": "#/components/schemas/v1RecoverUserIntent" setOrganizationFeatureIntent: - $ref: '#/components/schemas/SetOrganizationFeatureIntent' + "$ref": "#/components/schemas/v1SetOrganizationFeatureIntent" removeOrganizationFeatureIntent: - $ref: '#/components/schemas/RemoveOrganizationFeatureIntent' + "$ref": "#/components/schemas/v1RemoveOrganizationFeatureIntent" signRawPayloadIntentV2: - $ref: '#/components/schemas/SignRawPayloadIntentV2' + "$ref": "#/components/schemas/v1SignRawPayloadIntentV2" signTransactionIntentV2: - $ref: '#/components/schemas/SignTransactionIntentV2' + "$ref": "#/components/schemas/v1SignTransactionIntentV2" exportPrivateKeyIntent: - $ref: '#/components/schemas/ExportPrivateKeyIntent' + "$ref": "#/components/schemas/v1ExportPrivateKeyIntent" exportWalletIntent: - $ref: '#/components/schemas/ExportWalletIntent' + "$ref": "#/components/schemas/v1ExportWalletIntent" createSubOrganizationIntentV4: - $ref: '#/components/schemas/CreateSubOrganizationIntentV4' + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV4" emailAuthIntent: - $ref: '#/components/schemas/EmailAuthIntent' + "$ref": "#/components/schemas/v1EmailAuthIntent" exportWalletAccountIntent: - $ref: '#/components/schemas/ExportWalletAccountIntent' + "$ref": "#/components/schemas/v1ExportWalletAccountIntent" initImportWalletIntent: - $ref: '#/components/schemas/InitImportWalletIntent' + "$ref": "#/components/schemas/v1InitImportWalletIntent" importWalletIntent: - $ref: '#/components/schemas/ImportWalletIntent' + "$ref": "#/components/schemas/v1ImportWalletIntent" initImportPrivateKeyIntent: - $ref: '#/components/schemas/InitImportPrivateKeyIntent' + "$ref": "#/components/schemas/v1InitImportPrivateKeyIntent" importPrivateKeyIntent: - $ref: '#/components/schemas/ImportPrivateKeyIntent' + "$ref": "#/components/schemas/v1ImportPrivateKeyIntent" createPoliciesIntent: - $ref: '#/components/schemas/CreatePoliciesIntent' + "$ref": "#/components/schemas/v1CreatePoliciesIntent" signRawPayloadsIntent: - $ref: '#/components/schemas/SignRawPayloadsIntent' - InvitationParams: + "$ref": "#/components/schemas/v1SignRawPayloadsIntent" + createReadOnlySessionIntent: + "$ref": "#/components/schemas/v1CreateReadOnlySessionIntent" + createOauthProvidersIntent: + "$ref": "#/components/schemas/v1CreateOauthProvidersIntent" + deleteOauthProvidersIntent: + "$ref": "#/components/schemas/v1DeleteOauthProvidersIntent" + createSubOrganizationIntentV5: + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV5" + oauthIntent: + "$ref": "#/components/schemas/v1OauthIntent" + createApiKeysIntentV2: + "$ref": "#/components/schemas/v1CreateApiKeysIntentV2" + createReadWriteSessionIntent: + "$ref": "#/components/schemas/v1CreateReadWriteSessionIntent" + emailAuthIntentV2: + "$ref": "#/components/schemas/v1EmailAuthIntentV2" + createSubOrganizationIntentV6: + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV6" + deletePrivateKeysIntent: + "$ref": "#/components/schemas/v1DeletePrivateKeysIntent" + deleteWalletsIntent: + "$ref": "#/components/schemas/v1DeleteWalletsIntent" + createReadWriteSessionIntentV2: + "$ref": "#/components/schemas/v1CreateReadWriteSessionIntentV2" + deleteSubOrganizationIntent: + "$ref": "#/components/schemas/v1DeleteSubOrganizationIntent" + initOtpAuthIntent: + "$ref": "#/components/schemas/v1InitOtpAuthIntent" + otpAuthIntent: + "$ref": "#/components/schemas/v1OtpAuthIntent" + createSubOrganizationIntentV7: + "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV7" + v1Invitation: + required: + - accessType + - createdAt + - invitationId + - receiverEmail + - receiverUserName + - receiverUserTags + - senderUserId + - status + - updatedAt + type: object + properties: + invitationId: + type: string + description: Unique identifier for a given Invitation object. + receiverUserName: + type: string + description: The name of the intended Invitation recipient. + receiverEmail: + type: string + description: The email address of the intended Invitation recipient. + receiverUserTags: + type: array + description: A list of tags assigned to the Invitation recipient. + items: + type: string + accessType: + "$ref": "#/components/schemas/v1AccessType" + status: + "$ref": "#/components/schemas/v1InvitationStatus" + createdAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + updatedAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + senderUserId: + type: string + description: Unique identifier for the Sender of an Invitation. + v1InvitationParams: + required: + - accessType + - receiverUserEmail + - receiverUserName + - receiverUserTags + - senderUserId + type: object + properties: + receiverUserName: + type: string + description: The name of the intended Invitation recipient. + receiverUserEmail: + type: string + description: The email address of the intended Invitation recipient. + receiverUserTags: + type: array + description: A list of tags assigned to the Invitation recipient. + items: + type: string + accessType: + "$ref": "#/components/schemas/v1AccessType" + senderUserId: + type: string + description: Unique identifier for the Sender of an Invitation. + v1InvitationStatus: + type: string + enum: + - INVITATION_STATUS_CREATED + - INVITATION_STATUS_ACCEPTED + - INVITATION_STATUS_REVOKED + v1ListPrivateKeyTagsRequest: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1ListPrivateKeyTagsResponse: + required: + - privateKeyTags + type: object + properties: + privateKeyTags: + type: array + description: A list of Private Key Tags + items: + "$ref": "#/components/schemas/datav1Tag" + v1ListUserTagsRequest: + required: + - organizationId + type: object + properties: + organizationId: + type: string + description: Unique identifier for a given Organization. + v1ListUserTagsResponse: + required: + - userTags + type: object + properties: + userTags: + type: array + description: A list of User Tags + items: + "$ref": "#/components/schemas/datav1Tag" + v1MnemonicLanguage: + type: string + enum: + - MNEMONIC_LANGUAGE_ENGLISH + - MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE + - MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE + - MNEMONIC_LANGUAGE_CZECH + - MNEMONIC_LANGUAGE_FRENCH + - MNEMONIC_LANGUAGE_ITALIAN + - MNEMONIC_LANGUAGE_JAPANESE + - MNEMONIC_LANGUAGE_KOREAN + - MNEMONIC_LANGUAGE_SPANISH + v1NOOPCodegenAnchorResponse: + required: + - stamp + type: object + properties: + stamp: + "$ref": "#/components/schemas/v1WebAuthnStamp" + v1OauthIntent: + required: + - oidcToken + - targetPublicKey + type: object + properties: + oidcToken: + type: string + description: Base64 encoded OIDC token + targetPublicKey: + type: string + description: Client-side public key generated by the user, to which the + oauth bundle (credentials) will be encrypted. + apiKeyName: + type: string + description: Optional human-readable name for an API Key. If none provided, + default to Oauth - + expirationSeconds: + type: string + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. + v1OauthProvider: required: - - accessType - - receiverUserEmail - - receiverUserName - - receiverUserTags - - senderUserId + - audience + - createdAt + - issuer + - providerId + - providerName + - subject + - updatedAt type: object properties: - receiverUserName: + providerId: type: string - description: The name of the intended Invitation recipient. - receiverUserEmail: + description: Unique identifier for an OAuth Provider + providerName: type: string - description: The email address of the intended Invitation recipient. - receiverUserTags: - type: array - description: A list of tags assigned to the Invitation recipient. - items: - type: string - accessType: - $ref: '#/components/schemas/AccessType' - senderUserId: + description: Human-readable name to identify a Provider. + issuer: type: string - description: Unique identifier for the Sender of an Invitation. - ListPrivateKeyTagsRequest: + description: The issuer of the token, typically a URL indicating the authentication + server, e.g https://accounts.google.com + audience: + type: string + description: Expected audience ('aud' attribute of the signed token) which + represents the app ID + subject: + type: string + description: Expected subject ('sub' attribute of the signed token) which + represents the user ID + createdAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + updatedAt: + "$ref": "#/components/schemas/externaldatav1Timestamp" + v1OauthProviderParams: + required: + - oidcToken + - providerName + type: object + properties: + providerName: + type: string + description: Human-readable name to identify a Provider. + oidcToken: + type: string + description: Base64 encoded OIDC token + v1OauthRequest: required: - - organizationId + - organizationId + - parameters + - timestampMs + - type type: object properties: + type: + type: string + enum: + - ACTIVITY_TYPE_OAUTH + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. - ListPrivateKeyTagsResponse: + parameters: + "$ref": "#/components/schemas/v1OauthIntent" + v1OauthResult: required: - - privateKeyTags + - apiKeyId + - credentialBundle + - userId type: object properties: - privateKeyTags: + userId: + type: string + description: Unique identifier for the authenticating User. + apiKeyId: + type: string + description: Unique identifier for the created API key. + credentialBundle: + type: string + description: HPKE encrypted credential bundle + v1Operator: + type: string + enum: + - OPERATOR_EQUAL + - OPERATOR_MORE_THAN + - OPERATOR_MORE_THAN_OR_EQUAL + - OPERATOR_LESS_THAN + - OPERATOR_LESS_THAN_OR_EQUAL + - OPERATOR_CONTAINS + - OPERATOR_NOT_EQUAL + - OPERATOR_IN + - OPERATOR_NOT_IN + - OPERATOR_CONTAINS_ONE + - OPERATOR_CONTAINS_ALL + v1OrganizationData: + type: object + properties: + organizationId: + type: string + name: + type: string + users: + type: array + items: + "$ref": "#/components/schemas/v1User" + policies: + type: array + items: + "$ref": "#/components/schemas/v1Policy" + privateKeys: + type: array + items: + "$ref": "#/components/schemas/v1PrivateKey" + invitations: + type: array + items: + "$ref": "#/components/schemas/v1Invitation" + tags: + type: array + items: + "$ref": "#/components/schemas/datav1Tag" + rootQuorum: + "$ref": "#/components/schemas/externaldatav1Quorum" + features: type: array - description: A list of Private Key Tags items: - $ref: '#/components/schemas/v1.Tag' - ListUserTagsRequest: + "$ref": "#/components/schemas/v1Feature" + wallets: + type: array + items: + "$ref": "#/components/schemas/v1Wallet" + v1OtpAuthIntent: + required: + - otpCode + - otpId + type: object + properties: + otpId: + type: string + description: ID representing the result of an init OTP activity. + otpCode: + type: string + description: 6 digit OTP code sent out to a user's contact (email or SMS) + targetPublicKey: + type: string + description: Client-side public key generated by the user, to which the + OTP bundle (credentials) will be encrypted. + apiKeyName: + type: string + description: Optional human-readable name for an API Key. If none provided, + default to OTP Auth - + expirationSeconds: + type: string + description: Expiration window (in seconds) indicating how long the API + key is valid. If not provided, a default of 15 minutes will be used. + invalidateExisting: + type: boolean + description: Invalidate all other previously generated OTP Auth API keys + v1OtpAuthRequest: required: - - organizationId + - organizationId + - parameters + - timestampMs + - type type: object properties: + type: + type: string + enum: + - ACTIVITY_TYPE_OTP_AUTH + timestampMs: + type: string + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. - ListUserTagsResponse: + parameters: + "$ref": "#/components/schemas/v1OtpAuthIntent" + v1OtpAuthResult: required: - - userTags + - userId type: object properties: - userTags: - type: array - description: A list of User Tags - items: - $ref: '#/components/schemas/v1.Tag' - MnemonicLanguage: - type: string - enum: - - MNEMONIC_LANGUAGE_ENGLISH - - MNEMONIC_LANGUAGE_SIMPLIFIED_CHINESE - - MNEMONIC_LANGUAGE_TRADITIONAL_CHINESE - - MNEMONIC_LANGUAGE_CZECH - - MNEMONIC_LANGUAGE_FRENCH - - MNEMONIC_LANGUAGE_ITALIAN - - MNEMONIC_LANGUAGE_JAPANESE - - MNEMONIC_LANGUAGE_KOREAN - - MNEMONIC_LANGUAGE_SPANISH - Operator: - type: string - enum: - - OPERATOR_EQUAL - - OPERATOR_MORE_THAN - - OPERATOR_MORE_THAN_OR_EQUAL - - OPERATOR_LESS_THAN - - OPERATOR_LESS_THAN_OR_EQUAL - - OPERATOR_CONTAINS - - OPERATOR_NOT_EQUAL - - OPERATOR_IN - - OPERATOR_NOT_IN - - OPERATOR_CONTAINS_ONE - - OPERATOR_CONTAINS_ALL - Pagination: + userId: + type: string + description: Unique identifier for the authenticating User. + apiKeyId: + type: string + description: Unique identifier for the created API key. + credentialBundle: + type: string + description: HPKE encrypted credential bundle + v1Pagination: type: object properties: limit: type: string - description: >- - A limit of the number of object to be returned, between 1 and 100. - Defaults to 10. + description: A limit of the number of object to be returned, between 1 and + 100. Defaults to 10. before: type: string - description: >- - A pagination cursor. This is an object ID that enables you to fetch - all objects before this ID. + description: A pagination cursor. This is an object ID that enables you + to fetch all objects before this ID. after: type: string - description: >- - A pagination cursor. This is an object ID that enables you to fetch - all objects after this ID. - PathFormat: + description: A pagination cursor. This is an object ID that enables you + to fetch all objects after this ID. + v1PathFormat: type: string enum: - - PATH_FORMAT_BIP32 - PayloadEncoding: + - PATH_FORMAT_BIP32 + v1PayloadEncoding: type: string enum: - - PAYLOAD_ENCODING_HEXADECIMAL - - PAYLOAD_ENCODING_TEXT_UTF8 - Policy: + - PAYLOAD_ENCODING_HEXADECIMAL + - PAYLOAD_ENCODING_TEXT_UTF8 + v1Policy: required: - - condition - - consensus - - createdAt - - effect - - notes - - policyId - - policyName - - updatedAt + - condition + - consensus + - createdAt + - effect + - notes + - policyId + - policyName + - updatedAt type: object properties: policyId: @@ -4159,15 +6053,14 @@ components: type: string description: Human-readable name for a Policy. effect: - $ref: '#/components/schemas/Effect' + "$ref": "#/components/schemas/v1Effect" createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" notes: type: string - description: >- - Human-readable notes added by a User to describe a particular + description: Human-readable notes added by a User to describe a particular policy. consensus: type: string @@ -4175,18 +6068,18 @@ components: condition: type: string description: A condition expression that evalutes to true or false. - PrivateKey: + v1PrivateKey: required: - - addresses - - createdAt - - curve - - exported - - imported - - privateKeyId - - privateKeyName - - privateKeyTags - - publicKey - - updatedAt + - addresses + - createdAt + - curve + - exported + - imported + - privateKeyId + - privateKeyName + - privateKeyTags + - publicKey + - updatedAt type: object properties: privateKeyId: @@ -4194,47 +6087,46 @@ components: description: Unique identifier for a given Private Key. publicKey: type: string - description: >- - The public component of a cryptographic key pair used to sign + description: The public component of a cryptographic key pair used to sign messages and transactions. privateKeyName: type: string description: Human-readable name for a Private Key. curve: - $ref: '#/components/schemas/Curve' + "$ref": "#/components/schemas/v1Curve" addresses: type: array description: Derived cryptocurrency addresses for a given Private Key. items: - $ref: '#/components/schemas/data.v1.Address' + "$ref": "#/components/schemas/externaldatav1Address" privateKeyTags: type: array description: A list of Private Key Tag IDs. items: type: string createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" exported: type: boolean description: True when a given Private Key is exported, false otherwise. imported: type: boolean description: True when a given Private Key is imported, false otherwise. - PrivateKeyParams: + v1PrivateKeyParams: required: - - addressFormats - - curve - - privateKeyName - - privateKeyTags + - addressFormats + - curve + - privateKeyName + - privateKeyTags type: object properties: privateKeyName: type: string description: Human-readable name for a Private Key. curve: - $ref: '#/components/schemas/Curve' + "$ref": "#/components/schemas/v1Curve" privateKeyTags: type: array description: A list of Private Key Tag IDs. @@ -4242,12 +6134,11 @@ components: type: string addressFormats: type: array - description: >- - Cryptocurrency-specific formats for a derived address (e.g., + description: Cryptocurrency-specific formats for a derived address (e.g., Ethereum). items: - $ref: '#/components/schemas/AddressFormat' - PrivateKeyResult: + "$ref": "#/components/schemas/v1AddressFormat" + v1PrivateKeyResult: type: object properties: privateKeyId: @@ -4255,14 +6146,14 @@ components: addresses: type: array items: - $ref: '#/components/schemas/activity.v1.Address' - PublicKeyCredentialWithAttestation: + "$ref": "#/components/schemas/immutableactivityv1Address" + v1PublicKeyCredentialWithAttestation: required: - - clientExtensionResults - - id - - rawId - - response - - type + - clientExtensionResults + - id + - rawId + - response + - type type: object properties: id: @@ -4270,55 +6161,54 @@ components: type: type: string enum: - - public-key + - public-key rawId: type: string authenticatorAttachment: type: string nullable: true enum: - - cross-platform - - platform + - cross-platform + - platform response: - $ref: '#/components/schemas/AuthenticatorAttestationResponse' + "$ref": "#/components/schemas/v1AuthenticatorAttestationResponse" clientExtensionResults: - $ref: '#/components/schemas/SimpleClientExtensionResults' - RecoverUserIntent: + "$ref": "#/components/schemas/v1SimpleClientExtensionResults" + v1RecoverUserIntent: required: - - authenticator - - userId + - authenticator + - userId type: object properties: authenticator: - $ref: '#/components/schemas/AuthenticatorParamsV2' + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" userId: type: string description: Unique identifier for the user performing recovery. - RecoverUserRequest: + v1RecoverUserRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_RECOVER_USER + - ACTIVITY_TYPE_RECOVER_USER timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/RecoverUserIntent' - RecoverUserResult: + "$ref": "#/components/schemas/v1RecoverUserIntent" + v1RecoverUserResult: required: - - authenticatorId + - authenticatorId type: object properties: authenticatorId: @@ -4326,185 +6216,293 @@ components: description: ID of the authenticator created. items: type: string - RejectActivityIntent: + v1RejectActivityIntent: required: - - fingerprint + - fingerprint type: object properties: fingerprint: type: string description: An artifact verifying a User's action. - RejectActivityRequest: + v1RejectActivityRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_REJECT_ACTIVITY + - ACTIVITY_TYPE_REJECT_ACTIVITY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/RejectActivityIntent' - RemoveOrganizationFeatureIntent: + "$ref": "#/components/schemas/v1RejectActivityIntent" + v1RemoveOrganizationFeatureIntent: required: - - name + - name type: object properties: name: - $ref: '#/components/schemas/FeatureName' - RemoveOrganizationFeatureRequest: + "$ref": "#/components/schemas/v1FeatureName" + v1RemoveOrganizationFeatureRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE + - ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/RemoveOrganizationFeatureIntent' - RemoveOrganizationFeatureResult: + "$ref": "#/components/schemas/v1RemoveOrganizationFeatureIntent" + v1RemoveOrganizationFeatureResult: required: - - features + - features type: object properties: features: type: array description: Resulting list of organization features. items: - $ref: '#/components/schemas/Feature' - Result: + "$ref": "#/components/schemas/v1Feature" + v1Result: type: object properties: createOrganizationResult: - $ref: '#/components/schemas/CreateOrganizationResult' + "$ref": "#/components/schemas/v1CreateOrganizationResult" createAuthenticatorsResult: - $ref: '#/components/schemas/CreateAuthenticatorsResult' + "$ref": "#/components/schemas/v1CreateAuthenticatorsResult" createUsersResult: - $ref: '#/components/schemas/CreateUsersResult' + "$ref": "#/components/schemas/v1CreateUsersResult" createPrivateKeysResult: - $ref: '#/components/schemas/CreatePrivateKeysResult' + "$ref": "#/components/schemas/v1CreatePrivateKeysResult" createInvitationsResult: - $ref: '#/components/schemas/CreateInvitationsResult' + "$ref": "#/components/schemas/v1CreateInvitationsResult" acceptInvitationResult: - $ref: '#/components/schemas/AcceptInvitationResult' + "$ref": "#/components/schemas/v1AcceptInvitationResult" signRawPayloadResult: - $ref: '#/components/schemas/SignRawPayloadResult' + "$ref": "#/components/schemas/v1SignRawPayloadResult" createPolicyResult: - $ref: '#/components/schemas/CreatePolicyResult' + "$ref": "#/components/schemas/v1CreatePolicyResult" disablePrivateKeyResult: - $ref: '#/components/schemas/DisablePrivateKeyResult' + "$ref": "#/components/schemas/v1DisablePrivateKeyResult" deleteUsersResult: - $ref: '#/components/schemas/DeleteUsersResult' + "$ref": "#/components/schemas/v1DeleteUsersResult" deleteAuthenticatorsResult: - $ref: '#/components/schemas/DeleteAuthenticatorsResult' + "$ref": "#/components/schemas/v1DeleteAuthenticatorsResult" deleteInvitationResult: - $ref: '#/components/schemas/DeleteInvitationResult' + "$ref": "#/components/schemas/v1DeleteInvitationResult" deleteOrganizationResult: - $ref: '#/components/schemas/DeleteOrganizationResult' + "$ref": "#/components/schemas/v1DeleteOrganizationResult" deletePolicyResult: - $ref: '#/components/schemas/DeletePolicyResult' + "$ref": "#/components/schemas/v1DeletePolicyResult" createUserTagResult: - $ref: '#/components/schemas/CreateUserTagResult' + "$ref": "#/components/schemas/v1CreateUserTagResult" deleteUserTagsResult: - $ref: '#/components/schemas/DeleteUserTagsResult' + "$ref": "#/components/schemas/v1DeleteUserTagsResult" signTransactionResult: - $ref: '#/components/schemas/SignTransactionResult' + "$ref": "#/components/schemas/v1SignTransactionResult" deleteApiKeysResult: - $ref: '#/components/schemas/DeleteApiKeysResult' + "$ref": "#/components/schemas/v1DeleteApiKeysResult" createApiKeysResult: - $ref: '#/components/schemas/CreateApiKeysResult' + "$ref": "#/components/schemas/v1CreateApiKeysResult" createPrivateKeyTagResult: - $ref: '#/components/schemas/CreatePrivateKeyTagResult' + "$ref": "#/components/schemas/v1CreatePrivateKeyTagResult" deletePrivateKeyTagsResult: - $ref: '#/components/schemas/DeletePrivateKeyTagsResult' + "$ref": "#/components/schemas/v1DeletePrivateKeyTagsResult" setPaymentMethodResult: - $ref: '#/components/schemas/SetPaymentMethodResult' + "$ref": "#/components/schemas/billingSetPaymentMethodResult" activateBillingTierResult: - $ref: '#/components/schemas/ActivateBillingTierResult' + "$ref": "#/components/schemas/billingActivateBillingTierResult" deletePaymentMethodResult: - $ref: '#/components/schemas/DeletePaymentMethodResult' + "$ref": "#/components/schemas/billingDeletePaymentMethodResult" createApiOnlyUsersResult: - $ref: '#/components/schemas/CreateApiOnlyUsersResult' + "$ref": "#/components/schemas/v1CreateApiOnlyUsersResult" updateRootQuorumResult: - $ref: '#/components/schemas/UpdateRootQuorumResult' + "$ref": "#/components/schemas/v1UpdateRootQuorumResult" updateUserTagResult: - $ref: '#/components/schemas/UpdateUserTagResult' + "$ref": "#/components/schemas/v1UpdateUserTagResult" updatePrivateKeyTagResult: - $ref: '#/components/schemas/UpdatePrivateKeyTagResult' + "$ref": "#/components/schemas/v1UpdatePrivateKeyTagResult" createSubOrganizationResult: - $ref: '#/components/schemas/CreateSubOrganizationResult' + "$ref": "#/components/schemas/v1CreateSubOrganizationResult" updateAllowedOriginsResult: - $ref: '#/components/schemas/UpdateAllowedOriginsResult' + "$ref": "#/components/schemas/v1UpdateAllowedOriginsResult" createPrivateKeysResultV2: - $ref: '#/components/schemas/CreatePrivateKeysResultV2' + "$ref": "#/components/schemas/v1CreatePrivateKeysResultV2" updateUserResult: - $ref: '#/components/schemas/UpdateUserResult' + "$ref": "#/components/schemas/v1UpdateUserResult" updatePolicyResult: - $ref: '#/components/schemas/UpdatePolicyResult' + "$ref": "#/components/schemas/v1UpdatePolicyResult" createSubOrganizationResultV3: - $ref: '#/components/schemas/CreateSubOrganizationResultV3' + "$ref": "#/components/schemas/v1CreateSubOrganizationResultV3" createWalletResult: - $ref: '#/components/schemas/CreateWalletResult' + "$ref": "#/components/schemas/v1CreateWalletResult" createWalletAccountsResult: - $ref: '#/components/schemas/CreateWalletAccountsResult' + "$ref": "#/components/schemas/v1CreateWalletAccountsResult" initUserEmailRecoveryResult: - $ref: '#/components/schemas/InitUserEmailRecoveryResult' + "$ref": "#/components/schemas/v1InitUserEmailRecoveryResult" recoverUserResult: - $ref: '#/components/schemas/RecoverUserResult' + "$ref": "#/components/schemas/v1RecoverUserResult" setOrganizationFeatureResult: - $ref: '#/components/schemas/SetOrganizationFeatureResult' + "$ref": "#/components/schemas/v1SetOrganizationFeatureResult" removeOrganizationFeatureResult: - $ref: '#/components/schemas/RemoveOrganizationFeatureResult' + "$ref": "#/components/schemas/v1RemoveOrganizationFeatureResult" exportPrivateKeyResult: - $ref: '#/components/schemas/ExportPrivateKeyResult' + "$ref": "#/components/schemas/v1ExportPrivateKeyResult" exportWalletResult: - $ref: '#/components/schemas/ExportWalletResult' + "$ref": "#/components/schemas/v1ExportWalletResult" createSubOrganizationResultV4: - $ref: '#/components/schemas/CreateSubOrganizationResultV4' + "$ref": "#/components/schemas/v1CreateSubOrganizationResultV4" emailAuthResult: - $ref: '#/components/schemas/EmailAuthResult' + "$ref": "#/components/schemas/v1EmailAuthResult" exportWalletAccountResult: - $ref: '#/components/schemas/ExportWalletAccountResult' + "$ref": "#/components/schemas/v1ExportWalletAccountResult" initImportWalletResult: - $ref: '#/components/schemas/InitImportWalletResult' + "$ref": "#/components/schemas/v1InitImportWalletResult" importWalletResult: - $ref: '#/components/schemas/ImportWalletResult' + "$ref": "#/components/schemas/v1ImportWalletResult" initImportPrivateKeyResult: - $ref: '#/components/schemas/InitImportPrivateKeyResult' + "$ref": "#/components/schemas/v1InitImportPrivateKeyResult" importPrivateKeyResult: - $ref: '#/components/schemas/ImportPrivateKeyResult' + "$ref": "#/components/schemas/v1ImportPrivateKeyResult" createPoliciesResult: - $ref: '#/components/schemas/CreatePoliciesResult' + "$ref": "#/components/schemas/v1CreatePoliciesResult" signRawPayloadsResult: - $ref: '#/components/schemas/SignRawPayloadsResult' - RootUserParams: + "$ref": "#/components/schemas/v1SignRawPayloadsResult" + createReadOnlySessionResult: + "$ref": "#/components/schemas/v1CreateReadOnlySessionResult" + createOauthProvidersResult: + "$ref": "#/components/schemas/v1CreateOauthProvidersResult" + deleteOauthProvidersResult: + "$ref": "#/components/schemas/v1DeleteOauthProvidersResult" + createSubOrganizationResultV5: + "$ref": "#/components/schemas/v1CreateSubOrganizationResultV5" + oauthResult: + "$ref": "#/components/schemas/v1OauthResult" + createReadWriteSessionResult: + "$ref": "#/components/schemas/v1CreateReadWriteSessionResult" + createSubOrganizationResultV6: + "$ref": "#/components/schemas/v1CreateSubOrganizationResultV6" + deletePrivateKeysResult: + "$ref": "#/components/schemas/v1DeletePrivateKeysResult" + deleteWalletsResult: + "$ref": "#/components/schemas/v1DeleteWalletsResult" + createReadWriteSessionResultV2: + "$ref": "#/components/schemas/v1CreateReadWriteSessionResultV2" + deleteSubOrganizationResult: + "$ref": "#/components/schemas/v1DeleteSubOrganizationResult" + initOtpAuthResult: + "$ref": "#/components/schemas/v1InitOtpAuthResult" + otpAuthResult: + "$ref": "#/components/schemas/v1OtpAuthResult" + createSubOrganizationResultV7: + "$ref": "#/components/schemas/v1CreateSubOrganizationResultV7" + v1RootUserParams: + required: + - apiKeys + - authenticators + - userName + type: object + properties: + userName: + type: string + description: Human-readable name for a User. + userEmail: + type: string + description: The user's email address. + apiKeys: + type: array + description: A list of API Key parameters. + items: + "$ref": "#/components/schemas/apiApiKeyParams" + authenticators: + type: array + description: A list of Authenticator parameters. + items: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + v1RootUserParamsV2: + required: + - apiKeys + - authenticators + - oauthProviders + - userName + type: object + properties: + userName: + type: string + description: Human-readable name for a User. + userEmail: + type: string + description: The user's email address. + apiKeys: + type: array + description: A list of API Key parameters. + items: + "$ref": "#/components/schemas/apiApiKeyParams" + authenticators: + type: array + description: A list of Authenticator parameters. + items: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + oauthProviders: + type: array + description: A list of Oauth providers. + items: + "$ref": "#/components/schemas/v1OauthProviderParams" + v1RootUserParamsV3: + required: + - apiKeys + - authenticators + - oauthProviders + - userName + type: object + properties: + userName: + type: string + description: Human-readable name for a User. + userEmail: + type: string + description: The user's email address. + apiKeys: + type: array + description: A list of API Key parameters. + items: + "$ref": "#/components/schemas/v1ApiKeyParamsV2" + authenticators: + type: array + description: A list of Authenticator parameters. + items: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + oauthProviders: + type: array + description: A list of Oauth providers. + items: + "$ref": "#/components/schemas/v1OauthProviderParams" + v1RootUserParamsV4: required: - - apiKeys - - authenticators - - userName + - apiKeys + - authenticators + - oauthProviders + - userName type: object properties: userName: @@ -4513,147 +6511,93 @@ components: userEmail: type: string description: The user's email address. + userPhoneNumber: + type: string + description: The user's phone number in E.164 format e.g. +13214567890 apiKeys: type: array description: A list of API Key parameters. items: - $ref: '#/components/schemas/ApiKeyParams' + "$ref": "#/components/schemas/v1ApiKeyParamsV2" authenticators: type: array description: A list of Authenticator parameters. items: - $ref: '#/components/schemas/AuthenticatorParamsV2' - Selector: + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + oauthProviders: + type: array + description: A list of Oauth providers. + items: + "$ref": "#/components/schemas/v1OauthProviderParams" + v1Selector: type: object properties: subject: type: string operator: - $ref: '#/components/schemas/Operator' + "$ref": "#/components/schemas/v1Operator" target: type: string - SelectorV2: + v1SelectorV2: type: object properties: subject: type: string operator: - $ref: '#/components/schemas/Operator' + "$ref": "#/components/schemas/v1Operator" targets: type: array items: type: string - SetOrganizationFeatureIntent: + v1SetOrganizationFeatureIntent: required: - - name - - value + - name + - value type: object properties: name: - $ref: '#/components/schemas/FeatureName' + "$ref": "#/components/schemas/v1FeatureName" value: type: string - description: >- - Optional value for the feature. Will override existing values if - feature is already set. - SetOrganizationFeatureRequest: + description: Optional value for the feature. Will override existing values + if feature is already set. + v1SetOrganizationFeatureRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE + - ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/SetOrganizationFeatureIntent' - SetOrganizationFeatureResult: + "$ref": "#/components/schemas/v1SetOrganizationFeatureIntent" + v1SetOrganizationFeatureResult: required: - - features + - features type: object properties: features: type: array description: Resulting list of organization features. items: - $ref: '#/components/schemas/Feature' - SetPaymentMethodIntent: - required: - - cardHolderEmail - - cardHolderName - - cvv - - expiryMonth - - expiryYear - - number - type: object - properties: - number: - type: string - description: The account number of the customer's credit card. - cvv: - type: string - description: The verification digits of the customer's credit card. - expiryMonth: - type: string - description: The month that the credit card expires. - expiryYear: - type: string - description: The year that the credit card expires. - cardHolderEmail: - type: string - description: The email that will receive invoices for the credit card. - cardHolderName: - type: string - description: The name associated with the credit card. - SetPaymentMethodIntentV2: - required: - - cardHolderEmail - - cardHolderName - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The id of the payment method that was created clientside. - cardHolderEmail: - type: string - description: The email that will receive invoices for the credit card. - cardHolderName: - type: string - description: The name associated with the credit card. - SetPaymentMethodResult: - required: - - cardHolderEmail - - cardHolderName - - lastFour - type: object - properties: - lastFour: - type: string - description: The last four digits of the credit card added. - cardHolderName: - type: string - description: The name associated with the payment method. - cardHolderEmail: - type: string - description: The email address associated with the payment method. - SignRawPayloadIntent: + "$ref": "#/components/schemas/v1Feature" + v1SignRawPayloadIntent: required: - - encoding - - hashFunction - - payload - - privateKeyId + - encoding + - hashFunction + - payload + - privateKeyId type: object properties: privateKeyId: @@ -4663,56 +6607,54 @@ components: type: string description: Raw unsigned payload to be signed. encoding: - $ref: '#/components/schemas/PayloadEncoding' + "$ref": "#/components/schemas/v1PayloadEncoding" hashFunction: - $ref: '#/components/schemas/HashFunction' - SignRawPayloadIntentV2: + "$ref": "#/components/schemas/v1HashFunction" + v1SignRawPayloadIntentV2: required: - - encoding - - hashFunction - - payload - - signWith + - encoding + - hashFunction + - payload + - signWith type: object properties: signWith: type: string - description: >- - A Wallet account address, Private Key address, or Private Key + description: A Wallet account address, Private Key address, or Private Key identifier. payload: type: string description: Raw unsigned payload to be signed. encoding: - $ref: '#/components/schemas/PayloadEncoding' + "$ref": "#/components/schemas/v1PayloadEncoding" hashFunction: - $ref: '#/components/schemas/HashFunction' - SignRawPayloadRequest: + "$ref": "#/components/schemas/v1HashFunction" + v1SignRawPayloadRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2 + - ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/SignRawPayloadIntentV2' - SignRawPayloadResult: + "$ref": "#/components/schemas/v1SignRawPayloadIntentV2" + v1SignRawPayloadResult: required: - - r - - s - - v + - r + - s + - v type: object properties: r: @@ -4724,18 +6666,17 @@ components: v: type: string description: Component of an ECSDA signature. - SignRawPayloadsIntent: + v1SignRawPayloadsIntent: required: - - encoding - - hashFunction - - payloads - - signWith + - encoding + - hashFunction + - payloads + - signWith type: object properties: signWith: type: string - description: >- - A Wallet account address, Private Key address, or Private Key + description: A Wallet account address, Private Key address, or Private Key identifier. payloads: type: array @@ -4743,43 +6684,42 @@ components: items: type: string encoding: - $ref: '#/components/schemas/PayloadEncoding' + "$ref": "#/components/schemas/v1PayloadEncoding" hashFunction: - $ref: '#/components/schemas/HashFunction' - SignRawPayloadsRequest: + "$ref": "#/components/schemas/v1HashFunction" + v1SignRawPayloadsRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_SIGN_RAW_PAYLOADS + - ACTIVITY_TYPE_SIGN_RAW_PAYLOADS timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/SignRawPayloadsIntent' - SignRawPayloadsResult: + "$ref": "#/components/schemas/v1SignRawPayloadsIntent" + v1SignRawPayloadsResult: type: object properties: signatures: type: array items: - $ref: '#/components/schemas/SignRawPayloadResult' - SignTransactionIntent: + "$ref": "#/components/schemas/v1SignRawPayloadResult" + v1SignTransactionIntent: required: - - privateKeyId - - type - - unsignedTransaction + - privateKeyId + - type + - unsignedTransaction type: object properties: privateKeyId: @@ -4787,56 +6727,55 @@ components: description: Unique identifier for a given Private Key. unsignedTransaction: type: string - description: Raw unsigned transaction to be signed by a particular Private Key. + description: Raw unsigned transaction to be signed by a particular Private + Key. type: - $ref: '#/components/schemas/TransactionType' - SignTransactionIntentV2: + "$ref": "#/components/schemas/v1TransactionType" + v1SignTransactionIntentV2: required: - - signWith - - type - - unsignedTransaction + - signWith + - type + - unsignedTransaction type: object properties: signWith: type: string - description: >- - A Wallet account address, Private Key address, or Private Key + description: A Wallet account address, Private Key address, or Private Key identifier. unsignedTransaction: type: string description: Raw unsigned transaction to be signed type: - $ref: '#/components/schemas/TransactionType' - SignTransactionRequest: + "$ref": "#/components/schemas/v1TransactionType" + v1SignTransactionRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_SIGN_TRANSACTION_V2 + - ACTIVITY_TYPE_SIGN_TRANSACTION_V2 timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/SignTransactionIntentV2' - SignTransactionResult: + "$ref": "#/components/schemas/v1SignTransactionIntentV2" + v1SignTransactionResult: required: - - signedTransaction + - signedTransaction type: object properties: signedTransaction: type: string - SimpleClientExtensionResults: + v1SimpleClientExtensionResults: type: object properties: appid: @@ -4844,31 +6783,33 @@ components: appidExclude: type: boolean credProps: - $ref: '#/components/schemas/CredPropsAuthenticationExtensionsClientOutputs' - TagType: + "$ref": "#/components/schemas/v1CredPropsAuthenticationExtensionsClientOutputs" + v1TagType: type: string enum: - - TAG_TYPE_USER - - TAG_TYPE_PRIVATE_KEY - TransactionType: + - TAG_TYPE_USER + - TAG_TYPE_PRIVATE_KEY + v1TransactionType: type: string enum: - - TRANSACTION_TYPE_ETHEREUM - UpdateAllowedOriginsIntent: + - TRANSACTION_TYPE_ETHEREUM + - TRANSACTION_TYPE_SOLANA + v1UpdateAllowedOriginsIntent: required: - - allowedOrigins + - allowedOrigins type: object properties: allowedOrigins: type: array - description: Additional origins requests are allowed from besides Turnkey origins + description: Additional origins requests are allowed from besides Turnkey + origins items: type: string - UpdateAllowedOriginsResult: + v1UpdateAllowedOriginsResult: type: object - UpdatePolicyIntent: + v1UpdatePolicyIntent: required: - - policyId + - policyId type: object properties: policyId: @@ -4878,7 +6819,7 @@ components: type: string description: Human-readable name for a Policy. policyEffect: - $ref: '#/components/schemas/Effect' + "$ref": "#/components/schemas/v1Effect" policyCondition: type: string description: The condition expression that triggers the Effect (optional). @@ -4888,41 +6829,40 @@ components: policyNotes: type: string description: Accompanying notes for a Policy (optional). - UpdatePolicyRequest: + v1UpdatePolicyRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_UPDATE_POLICY + - ACTIVITY_TYPE_UPDATE_POLICY timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/UpdatePolicyIntent' - UpdatePolicyResult: + "$ref": "#/components/schemas/v1UpdatePolicyIntent" + v1UpdatePolicyResult: required: - - policyId + - policyId type: object properties: policyId: type: string description: Unique identifier for a given Policy. - UpdatePrivateKeyTagIntent: + v1UpdatePrivateKeyTagIntent: required: - - addPrivateKeyIds - - privateKeyTagId - - removePrivateKeyIds + - addPrivateKeyIds + - privateKeyTagId + - removePrivateKeyIds type: object properties: privateKeyTagId: @@ -4941,40 +6881,39 @@ components: description: A list of Private Key IDs to remove this tag from. items: type: string - UpdatePrivateKeyTagRequest: + v1UpdatePrivateKeyTagRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG + - ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/UpdatePrivateKeyTagIntent' - UpdatePrivateKeyTagResult: + "$ref": "#/components/schemas/v1UpdatePrivateKeyTagIntent" + v1UpdatePrivateKeyTagResult: required: - - privateKeyTagId + - privateKeyTagId type: object properties: privateKeyTagId: type: string description: Unique identifier for a given Private Key Tag. - UpdateRootQuorumIntent: + v1UpdateRootQuorumIntent: required: - - threshold - - userIds + - threshold + - userIds type: object properties: threshold: @@ -4986,33 +6925,32 @@ components: description: The unique identifiers of users who comprise the quorum set. items: type: string - UpdateRootQuorumRequest: + v1UpdateRootQuorumRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_UPDATE_ROOT_QUORUM + - ACTIVITY_TYPE_UPDATE_ROOT_QUORUM timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/UpdateRootQuorumIntent' - UpdateRootQuorumResult: + "$ref": "#/components/schemas/v1UpdateRootQuorumIntent" + v1UpdateRootQuorumResult: type: object - UpdateUserIntent: + v1UpdateUserIntent: required: - - userId + - userId type: object properties: userId: @@ -5029,41 +6967,43 @@ components: description: An updated list of User Tags to apply to this User. items: type: string - UpdateUserRequest: + userPhoneNumber: + type: string + description: The user's phone number in E.164 format e.g. +13214567890 + v1UpdateUserRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_UPDATE_USER + - ACTIVITY_TYPE_UPDATE_USER timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/UpdateUserIntent' - UpdateUserResult: + "$ref": "#/components/schemas/v1UpdateUserIntent" + v1UpdateUserResult: required: - - userId + - userId type: object properties: userId: type: string description: A User ID. - UpdateUserTagIntent: + v1UpdateUserTagIntent: required: - - addUserIds - - removeUserIds - - userTagId + - addUserIds + - removeUserIds + - userTagId type: object properties: userTagId: @@ -5082,45 +7022,45 @@ components: description: A list of User IDs to remove this tag from. items: type: string - UpdateUserTagRequest: + v1UpdateUserTagRequest: required: - - organizationId - - parameters - - timestampMs - - type + - organizationId + - parameters + - timestampMs + - type type: object properties: type: type: string enum: - - ACTIVITY_TYPE_UPDATE_USER_TAG + - ACTIVITY_TYPE_UPDATE_USER_TAG timestampMs: type: string - description: >- - Timestamp (in milliseconds) of the request, used to verify liveness - of user requests. + description: Timestamp (in milliseconds) of the request, used to verify + liveness of user requests. organizationId: type: string description: Unique identifier for a given Organization. parameters: - $ref: '#/components/schemas/UpdateUserTagIntent' - UpdateUserTagResult: + "$ref": "#/components/schemas/v1UpdateUserTagIntent" + v1UpdateUserTagResult: required: - - userTagId + - userTagId type: object properties: userTagId: type: string description: Unique identifier for a given User Tag. - User: + v1User: required: - - apiKeys - - authenticators - - createdAt - - updatedAt - - userId - - userName - - userTags + - apiKeys + - authenticators + - createdAt + - oauthProviders + - updatedAt + - userId + - userName + - userTags type: object properties: userId: @@ -5132,32 +7072,40 @@ components: userEmail: type: string description: The user's email address. + userPhoneNumber: + type: string + description: The user's phone number in E.164 format e.g. +13214567890 authenticators: type: array description: A list of Authenticator parameters. items: - $ref: '#/components/schemas/Authenticator' + "$ref": "#/components/schemas/v1Authenticator" apiKeys: type: array description: A list of API Key parameters. items: - $ref: '#/components/schemas/ApiKey' + "$ref": "#/components/schemas/v1ApiKey" userTags: type: array description: A list of User Tag IDs. items: type: string + oauthProviders: + type: array + description: A list of Oauth Providers. + items: + "$ref": "#/components/schemas/v1OauthProvider" createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - UserParams: + "$ref": "#/components/schemas/externaldatav1Timestamp" + v1UserParams: required: - - accessType - - apiKeys - - authenticators - - userName - - userTags + - accessType + - apiKeys + - authenticators + - userName + - userTags type: object properties: userName: @@ -5167,28 +7115,28 @@ components: type: string description: The user's email address. accessType: - $ref: '#/components/schemas/AccessType' + "$ref": "#/components/schemas/v1AccessType" apiKeys: type: array description: A list of API Key parameters. items: - $ref: '#/components/schemas/ApiKeyParams' + "$ref": "#/components/schemas/apiApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - $ref: '#/components/schemas/AuthenticatorParams' + "$ref": "#/components/schemas/v1AuthenticatorParams" userTags: type: array description: A list of User Tag IDs. items: type: string - UserParamsV2: + v1UserParamsV2: required: - - apiKeys - - authenticators - - userName - - userTags + - apiKeys + - authenticators + - userName + - userTags type: object properties: userName: @@ -5201,29 +7149,29 @@ components: type: array description: A list of API Key parameters. items: - $ref: '#/components/schemas/ApiKeyParams' + "$ref": "#/components/schemas/apiApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - $ref: '#/components/schemas/AuthenticatorParamsV2' + "$ref": "#/components/schemas/v1AuthenticatorParamsV2" userTags: type: array description: A list of User Tag IDs. items: type: string - Vote: + v1Vote: required: - - activityId - - createdAt - - id - - message - - publicKey - - scheme - - selection - - signature - - user - - userId + - activityId + - createdAt + - id + - message + - publicKey + - scheme + - selection + - signature + - user + - userId type: object properties: id: @@ -5233,22 +7181,21 @@ components: type: string description: Unique identifier for a given User. user: - $ref: '#/components/schemas/User' + "$ref": "#/components/schemas/v1User" activityId: type: string description: Unique identifier for a given Activity object. selection: type: string enum: - - VOTE_SELECTION_APPROVED - - VOTE_SELECTION_REJECTED + - VOTE_SELECTION_APPROVED + - VOTE_SELECTION_REJECTED message: type: string description: The raw message being signed within a Vote. publicKey: type: string - description: >- - The public component of a cryptographic key pair used to sign + description: The public component of a cryptographic key pair used to sign messages and transactions. signature: type: string @@ -5257,15 +7204,15 @@ components: type: string description: Method used to produce a signature. createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - Wallet: + "$ref": "#/components/schemas/externaldatav1Timestamp" + v1Wallet: required: - - createdAt - - exported - - imported - - updatedAt - - walletId - - walletName + - createdAt + - exported + - imported + - updatedAt + - walletId + - walletName type: object properties: walletId: @@ -5275,26 +7222,26 @@ components: type: string description: Human-readable name for a Wallet. createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" exported: type: boolean description: True when a given Wallet is exported, false otherwise. imported: type: boolean description: True when a given Wallet is imported, false otherwise. - WalletAccount: + v1WalletAccount: required: - - address - - addressFormat - - createdAt - - curve - - organizationId - - path - - pathFormat - - updatedAt - - walletId + - address + - addressFormat + - createdAt + - curve + - organizationId + - path + - pathFormat + - updatedAt + - walletId type: object properties: organizationId: @@ -5304,42 +7251,42 @@ components: type: string description: The Wallet the Account was derived from. curve: - $ref: '#/components/schemas/Curve' + "$ref": "#/components/schemas/v1Curve" pathFormat: - $ref: '#/components/schemas/PathFormat' + "$ref": "#/components/schemas/v1PathFormat" path: type: string description: Path used to generate the Account. addressFormat: - $ref: '#/components/schemas/AddressFormat' + "$ref": "#/components/schemas/v1AddressFormat" address: type: string description: Address generated using the Wallet seed and Account parameters. createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + "$ref": "#/components/schemas/externaldatav1Timestamp" updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - WalletAccountParams: + "$ref": "#/components/schemas/externaldatav1Timestamp" + v1WalletAccountParams: required: - - addressFormat - - curve - - path - - pathFormat + - addressFormat + - curve + - path + - pathFormat type: object properties: curve: - $ref: '#/components/schemas/Curve' + "$ref": "#/components/schemas/v1Curve" pathFormat: - $ref: '#/components/schemas/PathFormat' + "$ref": "#/components/schemas/v1PathFormat" path: type: string description: Path used to generate a wallet Account. addressFormat: - $ref: '#/components/schemas/AddressFormat' - WalletParams: + "$ref": "#/components/schemas/v1AddressFormat" + v1WalletParams: required: - - accounts - - walletName + - accounts + - walletName type: object properties: walletName: @@ -5349,17 +7296,16 @@ components: type: array description: A list of wallet Accounts. items: - $ref: '#/components/schemas/WalletAccountParams' + "$ref": "#/components/schemas/v1WalletAccountParams" mnemonicLength: type: integer - description: >- - Length of mnemonic to generate the Wallet seed. Defaults to 12. - Accepted values: 12, 15, 18, 21, 24. + description: 'Length of mnemonic to generate the Wallet seed. Defaults to + 12. Accepted values: 12, 15, 18, 21, 24.' format: int32 - WalletResult: + v1WalletResult: required: - - addresses - - walletId + - addresses + - walletId type: object properties: walletId: @@ -5369,64 +7315,28 @@ components: description: A list of account addresses. items: type: string - activity.v1.Address: - type: object - properties: - format: - $ref: '#/components/schemas/AddressFormat' - address: - type: string - data.v1.Address: - type: object - properties: - format: - $ref: '#/components/schemas/AddressFormat' - address: - type: string - external.data.v1.Credential: + v1WebAuthnStamp: required: - - publicKey - - type + - authenticatorData + - clientDataJson + - credentialId + - signature type: object properties: - publicKey: - type: string - description: >- - The public component of a cryptographic key pair used to sign - messages and transactions. - type: - $ref: '#/components/schemas/CredentialType' - external.data.v1.Timestamp: - required: - - nanos - - seconds - type: object - properties: - seconds: + credentialId: type: string - nanos: + description: A base64 url encoded Unique identifier for a given credential. + clientDataJson: type: string - v1.Tag: - required: - - createdAt - - tagId - - tagName - - tagType - - updatedAt - type: object - properties: - tagId: + description: A base64 encoded payload containing metadata about the signing + context and the challenge. + authenticatorData: type: string - description: Unique identifier for a given Tag. - tagName: + description: A base64 encoded payload containing metadata about the authenticator. + signature: type: string - description: Human-readable name for a Tag. - tagType: - $ref: '#/components/schemas/TagType' - createdAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' - updatedAt: - $ref: '#/components/schemas/external.data.v1.Timestamp' + description: The base64 url encoded signature bytes contained within the + WebAuthn assertion response. securitySchemes: ApiKeyAuth: type: apiKey @@ -5437,31 +7347,31 @@ components: name: X-Stamp-WebAuthn in: header x-tagGroups: - - name: ORGANIZATIONS - tags: - - Organizations - - Invitations - - Policies - - Features - - name: WALLETS AND PRIVATE KEYS - tags: - - Wallets - - Signing - - Private Keys - - Private Key Tags - - name: USERS - tags: - - Users - - User Tags - - User Recovery - - User Auth - - name: CREDENTIALS - tags: - - Authenticators - - API Keys - - Sessions - - name: ACTIVITIES - tags: - - Activities - - Consensus +- name: ORGANIZATIONS + tags: + - Organizations + - Invitations + - Policies + - Features +- name: WALLETS AND PRIVATE KEYS + tags: + - Wallets + - Signing + - Private Keys + - Private Key Tags +- name: USERS + tags: + - Users + - User Tags + - User Recovery + - User Auth +- name: CREDENTIALS + tags: + - Authenticators + - API Keys + - Sessions +- name: ACTIVITIES + tags: + - Activities + - Consensus x-original-swagger-version: '2.0' From ce7df1bcbe70f248ea81fd921ab8f5f9211c89e0 Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Mon, 11 Nov 2024 14:54:07 +0700 Subject: [PATCH 2/9] updated client --- .../TurnkeySDK/TurnkeyClient.generated.swift | 1771 +++++++---------- 1 file changed, 706 insertions(+), 1065 deletions(-) diff --git a/Sources/TurnkeySDK/TurnkeyClient.generated.swift b/Sources/TurnkeySDK/TurnkeyClient.generated.swift index 1819393..d380a84 100644 --- a/Sources/TurnkeySDK/TurnkeyClient.generated.swift +++ b/Sources/TurnkeySDK/TurnkeyClient.generated.swift @@ -1,4 +1,4 @@ -// Generated using Sourcery 2.2.2 — https://github.com/krzysztofzablocki/Sourcery +// Generated using Sourcery 2.2.5 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT import AuthenticationServices @@ -158,1411 +158,1052 @@ public struct TurnkeyClient { return (response, verify) } - public func getActivity(organizationId: String, activityId: String) async throws - -> Operations.GetActivity.Output + public func publicApiService_GetActivity() async throws + -> Operations.PublicApiService_GetActivity.Output { - // Create the GetActivityRequest - let getActivityRequest = Components.Schemas.GetActivityRequest( - organizationId: organizationId, activityId: activityId - ) + // Create the PublicApiService_GetActivityRequest + let publicApiService_GetActivityRequest = Components.Schemas + .PublicApiService_GetActivityRequest() - let input = Operations.GetActivity.Input( + let input = Operations.PublicApiService_GetActivity.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getActivityRequest) + body: .json(publicApiService_GetActivityRequest) ) - return try await underlyingClient.GetActivity(input) + return try await underlyingClient.PublicApiService_GetActivity(input) } - public func getApiKey(organizationId: String, apiKeyId: String) async throws - -> Operations.GetApiKey.Output + public func publicApiService_GetApiKey() async throws + -> Operations.PublicApiService_GetApiKey.Output { - // Create the GetApiKeyRequest - let getApiKeyRequest = Components.Schemas.GetApiKeyRequest( - organizationId: organizationId, apiKeyId: apiKeyId - ) + // Create the PublicApiService_GetApiKeyRequest + let publicApiService_GetApiKeyRequest = Components.Schemas.PublicApiService_GetApiKeyRequest() - let input = Operations.GetApiKey.Input( + let input = Operations.PublicApiService_GetApiKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getApiKeyRequest) + body: .json(publicApiService_GetApiKeyRequest) ) - return try await underlyingClient.GetApiKey(input) + return try await underlyingClient.PublicApiService_GetApiKey(input) } - public func getApiKeys(organizationId: String, userId: String?) async throws - -> Operations.GetApiKeys.Output + public func publicApiService_GetApiKeys() async throws + -> Operations.PublicApiService_GetApiKeys.Output { - // Create the GetApiKeysRequest - let getApiKeysRequest = Components.Schemas.GetApiKeysRequest( - organizationId: organizationId, userId: userId - ) + // Create the PublicApiService_GetApiKeysRequest + let publicApiService_GetApiKeysRequest = Components.Schemas.PublicApiService_GetApiKeysRequest() - let input = Operations.GetApiKeys.Input( + let input = Operations.PublicApiService_GetApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getApiKeysRequest) + body: .json(publicApiService_GetApiKeysRequest) ) - return try await underlyingClient.GetApiKeys(input) + return try await underlyingClient.PublicApiService_GetApiKeys(input) } - public func getAuthenticator(organizationId: String, authenticatorId: String) async throws - -> Operations.GetAuthenticator.Output + public func publicApiService_GetAttestationDocument() async throws + -> Operations.PublicApiService_GetAttestationDocument.Output { - // Create the GetAuthenticatorRequest - let getAuthenticatorRequest = Components.Schemas.GetAuthenticatorRequest( - organizationId: organizationId, authenticatorId: authenticatorId - ) + // Create the PublicApiService_GetAttestationDocumentRequest + let publicApiService_GetAttestationDocumentRequest = Components.Schemas + .PublicApiService_GetAttestationDocumentRequest() - let input = Operations.GetAuthenticator.Input( + let input = Operations.PublicApiService_GetAttestationDocument.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getAuthenticatorRequest) + body: .json(publicApiService_GetAttestationDocumentRequest) ) - return try await underlyingClient.GetAuthenticator(input) + return try await underlyingClient.PublicApiService_GetAttestationDocument(input) } - public func getAuthenticators(organizationId: String, userId: String) async throws - -> Operations.GetAuthenticators.Output + public func publicApiService_GetAuthenticator() async throws + -> Operations.PublicApiService_GetAuthenticator.Output { - // Create the GetAuthenticatorsRequest - let getAuthenticatorsRequest = Components.Schemas.GetAuthenticatorsRequest( - organizationId: organizationId, userId: userId - ) + // Create the PublicApiService_GetAuthenticatorRequest + let publicApiService_GetAuthenticatorRequest = Components.Schemas + .PublicApiService_GetAuthenticatorRequest() - let input = Operations.GetAuthenticators.Input( + let input = Operations.PublicApiService_GetAuthenticator.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getAuthenticatorsRequest) + body: .json(publicApiService_GetAuthenticatorRequest) ) - return try await underlyingClient.GetAuthenticators(input) + return try await underlyingClient.PublicApiService_GetAuthenticator(input) } - public func getPolicy(organizationId: String, policyId: String) async throws - -> Operations.GetPolicy.Output + public func publicApiService_GetAuthenticators() async throws + -> Operations.PublicApiService_GetAuthenticators.Output { - // Create the GetPolicyRequest - let getPolicyRequest = Components.Schemas.GetPolicyRequest( - organizationId: organizationId, policyId: policyId - ) + // Create the PublicApiService_GetAuthenticatorsRequest + let publicApiService_GetAuthenticatorsRequest = Components.Schemas + .PublicApiService_GetAuthenticatorsRequest() - let input = Operations.GetPolicy.Input( + let input = Operations.PublicApiService_GetAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getPolicyRequest) + body: .json(publicApiService_GetAuthenticatorsRequest) ) - return try await underlyingClient.GetPolicy(input) + return try await underlyingClient.PublicApiService_GetAuthenticators(input) } - public func getPrivateKey(organizationId: String, privateKeyId: String) async throws - -> Operations.GetPrivateKey.Output + public func publicApiService_GetOauthProviders() async throws + -> Operations.PublicApiService_GetOauthProviders.Output { - // Create the GetPrivateKeyRequest - let getPrivateKeyRequest = Components.Schemas.GetPrivateKeyRequest( - organizationId: organizationId, privateKeyId: privateKeyId - ) + // Create the PublicApiService_GetOauthProvidersRequest + let publicApiService_GetOauthProvidersRequest = Components.Schemas + .PublicApiService_GetOauthProvidersRequest() - let input = Operations.GetPrivateKey.Input( + let input = Operations.PublicApiService_GetOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getPrivateKeyRequest) + body: .json(publicApiService_GetOauthProvidersRequest) ) - return try await underlyingClient.GetPrivateKey(input) + return try await underlyingClient.PublicApiService_GetOauthProviders(input) } - public func getUser(organizationId: String, userId: String) async throws - -> Operations.GetUser.Output + public func publicApiService_GetOrganization() async throws + -> Operations.PublicApiService_GetOrganization.Output { - // Create the GetUserRequest - let getUserRequest = Components.Schemas.GetUserRequest( - organizationId: organizationId, userId: userId - ) + // Create the PublicApiService_GetOrganizationRequest + let publicApiService_GetOrganizationRequest = Components.Schemas + .PublicApiService_GetOrganizationRequest() - let input = Operations.GetUser.Input( + let input = Operations.PublicApiService_GetOrganization.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getUserRequest) + body: .json(publicApiService_GetOrganizationRequest) ) - return try await underlyingClient.GetUser(input) + return try await underlyingClient.PublicApiService_GetOrganization(input) } - public func getWallet(organizationId: String, walletId: String) async throws - -> Operations.GetWallet.Output + public func publicApiService_GetOrganizationConfigs() async throws + -> Operations.PublicApiService_GetOrganizationConfigs.Output { - // Create the GetWalletRequest - let getWalletRequest = Components.Schemas.GetWalletRequest( - organizationId: organizationId, walletId: walletId - ) + // Create the PublicApiService_GetOrganizationConfigsRequest + let publicApiService_GetOrganizationConfigsRequest = Components.Schemas + .PublicApiService_GetOrganizationConfigsRequest() - let input = Operations.GetWallet.Input( + let input = Operations.PublicApiService_GetOrganizationConfigs.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getWalletRequest) + body: .json(publicApiService_GetOrganizationConfigsRequest) ) - return try await underlyingClient.GetWallet(input) + return try await underlyingClient.PublicApiService_GetOrganizationConfigs(input) } - public func getActivities( - organizationId: String, filterByStatus: [Components.Schemas.ActivityStatus]?, - paginationOptions: Components.Schemas.Pagination?, - filterByType: [Components.Schemas.ActivityType]? - ) async throws -> Operations.GetActivities.Output { + public func publicApiService_GetPolicy() async throws + -> Operations.PublicApiService_GetPolicy.Output + { - // Create the GetActivitiesRequest - let getActivitiesRequest = Components.Schemas.GetActivitiesRequest( - organizationId: organizationId, filterByStatus: filterByStatus, - paginationOptions: paginationOptions, filterByType: filterByType - ) + // Create the PublicApiService_GetPolicyRequest + let publicApiService_GetPolicyRequest = Components.Schemas.PublicApiService_GetPolicyRequest() - let input = Operations.GetActivities.Input( + let input = Operations.PublicApiService_GetPolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getActivitiesRequest) + body: .json(publicApiService_GetPolicyRequest) ) - return try await underlyingClient.GetActivities(input) + return try await underlyingClient.PublicApiService_GetPolicy(input) } - public func getPolicies(organizationId: String) async throws -> Operations.GetPolicies.Output { + public func publicApiService_GetPrivateKey() async throws + -> Operations.PublicApiService_GetPrivateKey.Output + { - // Create the GetPoliciesRequest - let getPoliciesRequest = Components.Schemas.GetPoliciesRequest( - organizationId: organizationId - ) + // Create the PublicApiService_GetPrivateKeyRequest + let publicApiService_GetPrivateKeyRequest = Components.Schemas + .PublicApiService_GetPrivateKeyRequest() - let input = Operations.GetPolicies.Input( + let input = Operations.PublicApiService_GetPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getPoliciesRequest) + body: .json(publicApiService_GetPrivateKeyRequest) ) - return try await underlyingClient.GetPolicies(input) + return try await underlyingClient.PublicApiService_GetPrivateKey(input) } - public func listPrivateKeyTags(organizationId: String) async throws - -> Operations.ListPrivateKeyTags.Output + public func publicApiService_GetUser() async throws -> Operations.PublicApiService_GetUser.Output { - // Create the ListPrivateKeyTagsRequest - let listPrivateKeyTagsRequest = Components.Schemas.ListPrivateKeyTagsRequest( - organizationId: organizationId - ) + // Create the PublicApiService_GetUserRequest + let publicApiService_GetUserRequest = Components.Schemas.PublicApiService_GetUserRequest() - let input = Operations.ListPrivateKeyTags.Input( + let input = Operations.PublicApiService_GetUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(listPrivateKeyTagsRequest) + body: .json(publicApiService_GetUserRequest) ) - return try await underlyingClient.ListPrivateKeyTags(input) + return try await underlyingClient.PublicApiService_GetUser(input) } - public func getPrivateKeys(organizationId: String) async throws - -> Operations.GetPrivateKeys.Output + public func publicApiService_GetWallet() async throws + -> Operations.PublicApiService_GetWallet.Output { - // Create the GetPrivateKeysRequest - let getPrivateKeysRequest = Components.Schemas.GetPrivateKeysRequest( - organizationId: organizationId - ) + // Create the PublicApiService_GetWalletRequest + let publicApiService_GetWalletRequest = Components.Schemas.PublicApiService_GetWalletRequest() - let input = Operations.GetPrivateKeys.Input( + let input = Operations.PublicApiService_GetWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getPrivateKeysRequest) + body: .json(publicApiService_GetWalletRequest) ) - return try await underlyingClient.GetPrivateKeys(input) + return try await underlyingClient.PublicApiService_GetWallet(input) } - public func getSubOrgIds( - organizationId: String, filterType: String?, filterValue: String?, - paginationOptions: Components.Schemas.Pagination? - ) async throws -> Operations.GetSubOrgIds.Output { + public func publicApiService_GetActivities() async throws + -> Operations.PublicApiService_GetActivities.Output + { - // Create the GetSubOrgIdsRequest - let getSubOrgIdsRequest = Components.Schemas.GetSubOrgIdsRequest( - organizationId: organizationId, filterType: filterType, filterValue: filterValue, - paginationOptions: paginationOptions - ) + // Create the PublicApiService_GetActivitiesRequest + let publicApiService_GetActivitiesRequest = Components.Schemas + .PublicApiService_GetActivitiesRequest() - let input = Operations.GetSubOrgIds.Input( + let input = Operations.PublicApiService_GetActivities.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getSubOrgIdsRequest) + body: .json(publicApiService_GetActivitiesRequest) ) - return try await underlyingClient.GetSubOrgIds(input) + return try await underlyingClient.PublicApiService_GetActivities(input) } - public func listUserTags(organizationId: String) async throws -> Operations.ListUserTags.Output { + public func publicApiService_GetPolicies() async throws + -> Operations.PublicApiService_GetPolicies.Output + { - // Create the ListUserTagsRequest - let listUserTagsRequest = Components.Schemas.ListUserTagsRequest( - organizationId: organizationId - ) + // Create the PublicApiService_GetPoliciesRequest + let publicApiService_GetPoliciesRequest = Components.Schemas + .PublicApiService_GetPoliciesRequest() - let input = Operations.ListUserTags.Input( + let input = Operations.PublicApiService_GetPolicies.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(listUserTagsRequest) + body: .json(publicApiService_GetPoliciesRequest) ) - return try await underlyingClient.ListUserTags(input) + return try await underlyingClient.PublicApiService_GetPolicies(input) } - public func getUsers(organizationId: String) async throws -> Operations.GetUsers.Output { + public func publicApiService_ListPrivateKeyTags() async throws + -> Operations.PublicApiService_ListPrivateKeyTags.Output + { - // Create the GetUsersRequest - let getUsersRequest = Components.Schemas.GetUsersRequest( - organizationId: organizationId - ) + // Create the PublicApiService_ListPrivateKeyTagsRequest + let publicApiService_ListPrivateKeyTagsRequest = Components.Schemas + .PublicApiService_ListPrivateKeyTagsRequest() - let input = Operations.GetUsers.Input( + let input = Operations.PublicApiService_ListPrivateKeyTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getUsersRequest) + body: .json(publicApiService_ListPrivateKeyTagsRequest) ) - return try await underlyingClient.GetUsers(input) + return try await underlyingClient.PublicApiService_ListPrivateKeyTags(input) } - public func getWalletAccounts( - organizationId: String, walletId: String, paginationOptions: Components.Schemas.Pagination? - ) async throws -> Operations.GetWalletAccounts.Output { + public func publicApiService_GetPrivateKeys() async throws + -> Operations.PublicApiService_GetPrivateKeys.Output + { - // Create the GetWalletAccountsRequest - let getWalletAccountsRequest = Components.Schemas.GetWalletAccountsRequest( - organizationId: organizationId, walletId: walletId, paginationOptions: paginationOptions - ) + // Create the PublicApiService_GetPrivateKeysRequest + let publicApiService_GetPrivateKeysRequest = Components.Schemas + .PublicApiService_GetPrivateKeysRequest() - let input = Operations.GetWalletAccounts.Input( + let input = Operations.PublicApiService_GetPrivateKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getWalletAccountsRequest) + body: .json(publicApiService_GetPrivateKeysRequest) ) - return try await underlyingClient.GetWalletAccounts(input) + return try await underlyingClient.PublicApiService_GetPrivateKeys(input) } - public func getWallets(organizationId: String) async throws -> Operations.GetWallets.Output { + public func publicApiService_GetSubOrgIds() async throws + -> Operations.PublicApiService_GetSubOrgIds.Output + { - // Create the GetWalletsRequest - let getWalletsRequest = Components.Schemas.GetWalletsRequest( - organizationId: organizationId - ) + // Create the PublicApiService_GetSubOrgIdsRequest + let publicApiService_GetSubOrgIdsRequest = Components.Schemas + .PublicApiService_GetSubOrgIdsRequest() - let input = Operations.GetWallets.Input( + let input = Operations.PublicApiService_GetSubOrgIds.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getWalletsRequest) + body: .json(publicApiService_GetSubOrgIdsRequest) ) - return try await underlyingClient.GetWallets(input) + return try await underlyingClient.PublicApiService_GetSubOrgIds(input) } - public func getWhoami(organizationId: String) async throws -> Operations.GetWhoami.Output { + public func publicApiService_ListUserTags() async throws + -> Operations.PublicApiService_ListUserTags.Output + { - // Create the GetWhoamiRequest - let getWhoamiRequest = Components.Schemas.GetWhoamiRequest( - organizationId: organizationId - ) + // Create the PublicApiService_ListUserTagsRequest + let publicApiService_ListUserTagsRequest = Components.Schemas + .PublicApiService_ListUserTagsRequest() - let input = Operations.GetWhoami.Input( + let input = Operations.PublicApiService_ListUserTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(getWhoamiRequest) + body: .json(publicApiService_ListUserTagsRequest) ) - return try await underlyingClient.GetWhoami(input) + return try await underlyingClient.PublicApiService_ListUserTags(input) } + public func publicApiService_GetUsers() async throws + -> Operations.PublicApiService_GetUsers.Output + { - public func approveActivity( - organizationId: String, - fingerprint: String - ) async throws -> Operations.ApproveActivity.Output { - - // Create the ApproveActivityIntent - let approveActivityIntent = Components.Schemas.ApproveActivityIntent( - fingerprint: fingerprint) - - // Create the ApproveActivityRequest - let approveActivityRequest = Components.Schemas.ApproveActivityRequest( - _type: .ACTIVITY_TYPE_APPROVE_ACTIVITY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: approveActivityIntent - ) + // Create the PublicApiService_GetUsersRequest + let publicApiService_GetUsersRequest = Components.Schemas.PublicApiService_GetUsersRequest() - // Create the input for the ApproveActivity method - let input = Operations.ApproveActivity.Input( + let input = Operations.PublicApiService_GetUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(approveActivityRequest) + body: .json(publicApiService_GetUsersRequest) ) - - // Call the ApproveActivity method using the underlyingClient - return try await underlyingClient.ApproveActivity(input) + return try await underlyingClient.PublicApiService_GetUsers(input) } + public func publicApiService_GetWalletAccounts() async throws + -> Operations.PublicApiService_GetWalletAccounts.Output + { - public func createApiKeys( - organizationId: String, - apiKeys: [Components.Schemas.ApiKeyParams], userId: String - ) async throws -> Operations.CreateApiKeys.Output { - - // Create the CreateApiKeysIntent - let createApiKeysIntent = Components.Schemas.CreateApiKeysIntent( - apiKeys: apiKeys, userId: userId) - - // Create the CreateApiKeysRequest - let createApiKeysRequest = Components.Schemas.CreateApiKeysRequest( - _type: .ACTIVITY_TYPE_CREATE_API_KEYS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createApiKeysIntent - ) + // Create the PublicApiService_GetWalletAccountsRequest + let publicApiService_GetWalletAccountsRequest = Components.Schemas + .PublicApiService_GetWalletAccountsRequest() - // Create the input for the CreateApiKeys method - let input = Operations.CreateApiKeys.Input( + let input = Operations.PublicApiService_GetWalletAccounts.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createApiKeysRequest) + body: .json(publicApiService_GetWalletAccountsRequest) ) - - // Call the CreateApiKeys method using the underlyingClient - return try await underlyingClient.CreateApiKeys(input) + return try await underlyingClient.PublicApiService_GetWalletAccounts(input) } + public func publicApiService_GetWallets() async throws + -> Operations.PublicApiService_GetWallets.Output + { - public func createAuthenticators( - organizationId: String, - authenticators: [Components.Schemas.AuthenticatorParamsV2], userId: String - ) async throws -> Operations.CreateAuthenticators.Output { - - // Create the CreateAuthenticatorsIntentV2 - let createAuthenticatorsIntent = Components.Schemas.CreateAuthenticatorsIntentV2( - authenticators: authenticators, userId: userId) - - // Create the CreateAuthenticatorsRequest - let createAuthenticatorsRequest = Components.Schemas.CreateAuthenticatorsRequest( - _type: .ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createAuthenticatorsIntent - ) + // Create the PublicApiService_GetWalletsRequest + let publicApiService_GetWalletsRequest = Components.Schemas.PublicApiService_GetWalletsRequest() - // Create the input for the CreateAuthenticators method - let input = Operations.CreateAuthenticators.Input( + let input = Operations.PublicApiService_GetWallets.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createAuthenticatorsRequest) + body: .json(publicApiService_GetWalletsRequest) ) - - // Call the CreateAuthenticators method using the underlyingClient - return try await underlyingClient.CreateAuthenticators(input) + return try await underlyingClient.PublicApiService_GetWallets(input) } + public func publicApiService_GetWhoami() async throws + -> Operations.PublicApiService_GetWhoami.Output + { - public func createInvitations( - organizationId: String, - invitations: [Components.Schemas.InvitationParams] - ) async throws -> Operations.CreateInvitations.Output { - - // Create the CreateInvitationsIntent - let createInvitationsIntent = Components.Schemas.CreateInvitationsIntent( - invitations: invitations) + // Create the PublicApiService_GetWhoamiRequest + let publicApiService_GetWhoamiRequest = Components.Schemas.PublicApiService_GetWhoamiRequest() - // Create the CreateInvitationsRequest - let createInvitationsRequest = Components.Schemas.CreateInvitationsRequest( - _type: .ACTIVITY_TYPE_CREATE_INVITATIONS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createInvitationsIntent - ) - - // Create the input for the CreateInvitations method - let input = Operations.CreateInvitations.Input( + let input = Operations.PublicApiService_GetWhoami.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createInvitationsRequest) + body: .json(publicApiService_GetWhoamiRequest) ) - - // Call the CreateInvitations method using the underlyingClient - return try await underlyingClient.CreateInvitations(input) + return try await underlyingClient.PublicApiService_GetWhoami(input) } + public func publicApiService_ApproveActivity() async throws + -> Operations.PublicApiService_ApproveActivity.Output + { - public func createPolicies( - organizationId: String, - policies: [Components.Schemas.CreatePolicyIntentV3] - ) async throws -> Operations.CreatePolicies.Output { - - // Create the CreatePoliciesIntent - let createPoliciesIntent = Components.Schemas.CreatePoliciesIntent( - policies: policies) - - // Create the CreatePoliciesRequest - let createPoliciesRequest = Components.Schemas.CreatePoliciesRequest( - _type: .ACTIVITY_TYPE_CREATE_POLICIES, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createPoliciesIntent - ) + // Create the PublicApiService_ApproveActivityRequest + let publicApiService_ApproveActivityRequest = Components.Schemas + .PublicApiService_ApproveActivityRequest() - // Create the input for the CreatePolicies method - let input = Operations.CreatePolicies.Input( + let input = Operations.PublicApiService_ApproveActivity.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createPoliciesRequest) + body: .json(publicApiService_ApproveActivityRequest) ) - - // Call the CreatePolicies method using the underlyingClient - return try await underlyingClient.CreatePolicies(input) + return try await underlyingClient.PublicApiService_ApproveActivity(input) } + public func publicApiService_CreateApiKeys() async throws + -> Operations.PublicApiService_CreateApiKeys.Output + { - public func createPolicy( - organizationId: String, - policyName: String, effect: Components.Schemas.Effect, condition: String?, consensus: String?, - notes: String? - ) async throws -> Operations.CreatePolicy.Output { - - // Create the CreatePolicyIntentV3 - let createPolicyIntent = Components.Schemas.CreatePolicyIntentV3( - policyName: policyName, effect: effect, condition: condition, consensus: consensus, - notes: notes) + // Create the PublicApiService_CreateApiKeysRequest + let publicApiService_CreateApiKeysRequest = Components.Schemas + .PublicApiService_CreateApiKeysRequest() - // Create the CreatePolicyRequest - let createPolicyRequest = Components.Schemas.CreatePolicyRequest( - _type: .ACTIVITY_TYPE_CREATE_POLICY_V3, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createPolicyIntent - ) - - // Create the input for the CreatePolicy method - let input = Operations.CreatePolicy.Input( + let input = Operations.PublicApiService_CreateApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createPolicyRequest) + body: .json(publicApiService_CreateApiKeysRequest) ) - - // Call the CreatePolicy method using the underlyingClient - return try await underlyingClient.CreatePolicy(input) + return try await underlyingClient.PublicApiService_CreateApiKeys(input) } + public func publicApiService_CreateApiOnlyUsers() async throws + -> Operations.PublicApiService_CreateApiOnlyUsers.Output + { - public func createPrivateKeyTag( - organizationId: String, - privateKeyTagName: String, privateKeyIds: [String] - ) async throws -> Operations.CreatePrivateKeyTag.Output { - - // Create the CreatePrivateKeyTagIntent - let createPrivateKeyTagIntent = Components.Schemas.CreatePrivateKeyTagIntent( - privateKeyTagName: privateKeyTagName, privateKeyIds: privateKeyIds) - - // Create the CreatePrivateKeyTagRequest - let createPrivateKeyTagRequest = Components.Schemas.CreatePrivateKeyTagRequest( - _type: .ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createPrivateKeyTagIntent - ) + // Create the PublicApiService_CreateApiOnlyUsersRequest + let publicApiService_CreateApiOnlyUsersRequest = Components.Schemas + .PublicApiService_CreateApiOnlyUsersRequest() - // Create the input for the CreatePrivateKeyTag method - let input = Operations.CreatePrivateKeyTag.Input( + let input = Operations.PublicApiService_CreateApiOnlyUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createPrivateKeyTagRequest) + body: .json(publicApiService_CreateApiOnlyUsersRequest) ) - - // Call the CreatePrivateKeyTag method using the underlyingClient - return try await underlyingClient.CreatePrivateKeyTag(input) + return try await underlyingClient.PublicApiService_CreateApiOnlyUsers(input) } + public func publicApiService_CreateAuthenticators() async throws + -> Operations.PublicApiService_CreateAuthenticators.Output + { - public func createPrivateKeys( - organizationId: String, - privateKeys: [Components.Schemas.PrivateKeyParams] - ) async throws -> Operations.CreatePrivateKeys.Output { - - // Create the CreatePrivateKeysIntentV2 - let createPrivateKeysIntent = Components.Schemas.CreatePrivateKeysIntentV2( - privateKeys: privateKeys) + // Create the PublicApiService_CreateAuthenticatorsRequest + let publicApiService_CreateAuthenticatorsRequest = Components.Schemas + .PublicApiService_CreateAuthenticatorsRequest() - // Create the CreatePrivateKeysRequest - let createPrivateKeysRequest = Components.Schemas.CreatePrivateKeysRequest( - _type: .ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createPrivateKeysIntent - ) - - // Create the input for the CreatePrivateKeys method - let input = Operations.CreatePrivateKeys.Input( + let input = Operations.PublicApiService_CreateAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createPrivateKeysRequest) + body: .json(publicApiService_CreateAuthenticatorsRequest) ) - - // Call the CreatePrivateKeys method using the underlyingClient - return try await underlyingClient.CreatePrivateKeys(input) + return try await underlyingClient.PublicApiService_CreateAuthenticators(input) } + public func publicApiService_CreateInvitations() async throws + -> Operations.PublicApiService_CreateInvitations.Output + { - public func createSubOrganization( - organizationId: String, - subOrganizationName: String, rootUsers: [Components.Schemas.RootUserParams], - rootQuorumThreshold: Int32, wallet: Components.Schemas.WalletParams?, - disableEmailRecovery: Bool?, disableEmailAuth: Bool? - ) async throws -> Operations.CreateSubOrganization.Output { - - // Create the CreateSubOrganizationIntentV4 - let createSubOrganizationIntent = Components.Schemas.CreateSubOrganizationIntentV4( - subOrganizationName: subOrganizationName, rootUsers: rootUsers, - rootQuorumThreshold: rootQuorumThreshold, wallet: wallet, - disableEmailRecovery: disableEmailRecovery, disableEmailAuth: disableEmailAuth) - - // Create the CreateSubOrganizationRequest - let createSubOrganizationRequest = Components.Schemas.CreateSubOrganizationRequest( - _type: .ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createSubOrganizationIntent - ) + // Create the PublicApiService_CreateInvitationsRequest + let publicApiService_CreateInvitationsRequest = Components.Schemas + .PublicApiService_CreateInvitationsRequest() - // Create the input for the CreateSubOrganization method - let input = Operations.CreateSubOrganization.Input( + let input = Operations.PublicApiService_CreateInvitations.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createSubOrganizationRequest) + body: .json(publicApiService_CreateInvitationsRequest) ) - - // Call the CreateSubOrganization method using the underlyingClient - return try await underlyingClient.CreateSubOrganization(input) + return try await underlyingClient.PublicApiService_CreateInvitations(input) } + public func publicApiService_CreateOauthProviders() async throws + -> Operations.PublicApiService_CreateOauthProviders.Output + { - public func createUserTag( - organizationId: String, - userTagName: String, userIds: [String] - ) async throws -> Operations.CreateUserTag.Output { - - // Create the CreateUserTagIntent - let createUserTagIntent = Components.Schemas.CreateUserTagIntent( - userTagName: userTagName, userIds: userIds) + // Create the PublicApiService_CreateOauthProvidersRequest + let publicApiService_CreateOauthProvidersRequest = Components.Schemas + .PublicApiService_CreateOauthProvidersRequest() - // Create the CreateUserTagRequest - let createUserTagRequest = Components.Schemas.CreateUserTagRequest( - _type: .ACTIVITY_TYPE_CREATE_USER_TAG, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createUserTagIntent - ) - - // Create the input for the CreateUserTag method - let input = Operations.CreateUserTag.Input( + let input = Operations.PublicApiService_CreateOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createUserTagRequest) + body: .json(publicApiService_CreateOauthProvidersRequest) ) - - // Call the CreateUserTag method using the underlyingClient - return try await underlyingClient.CreateUserTag(input) + return try await underlyingClient.PublicApiService_CreateOauthProviders(input) } + public func publicApiService_CreatePolicies() async throws + -> Operations.PublicApiService_CreatePolicies.Output + { - public func createUsers( - organizationId: String, - users: [Components.Schemas.UserParamsV2] - ) async throws -> Operations.CreateUsers.Output { - - // Create the CreateUsersIntentV2 - let createUsersIntent = Components.Schemas.CreateUsersIntentV2( - users: users) - - // Create the CreateUsersRequest - let createUsersRequest = Components.Schemas.CreateUsersRequest( - _type: .ACTIVITY_TYPE_CREATE_USERS_V2, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createUsersIntent - ) + // Create the PublicApiService_CreatePoliciesRequest + let publicApiService_CreatePoliciesRequest = Components.Schemas + .PublicApiService_CreatePoliciesRequest() - // Create the input for the CreateUsers method - let input = Operations.CreateUsers.Input( + let input = Operations.PublicApiService_CreatePolicies.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createUsersRequest) + body: .json(publicApiService_CreatePoliciesRequest) ) - - // Call the CreateUsers method using the underlyingClient - return try await underlyingClient.CreateUsers(input) + return try await underlyingClient.PublicApiService_CreatePolicies(input) } + public func publicApiService_CreatePolicy() async throws + -> Operations.PublicApiService_CreatePolicy.Output + { - public func createWallet( - organizationId: String, - walletName: String, accounts: [Components.Schemas.WalletAccountParams], mnemonicLength: Int32? - ) async throws -> Operations.CreateWallet.Output { - - // Create the CreateWalletIntent - let createWalletIntent = Components.Schemas.CreateWalletIntent( - walletName: walletName, accounts: accounts, mnemonicLength: mnemonicLength) + // Create the PublicApiService_CreatePolicyRequest + let publicApiService_CreatePolicyRequest = Components.Schemas + .PublicApiService_CreatePolicyRequest() - // Create the CreateWalletRequest - let createWalletRequest = Components.Schemas.CreateWalletRequest( - _type: .ACTIVITY_TYPE_CREATE_WALLET, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createWalletIntent - ) - - // Create the input for the CreateWallet method - let input = Operations.CreateWallet.Input( + let input = Operations.PublicApiService_CreatePolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createWalletRequest) + body: .json(publicApiService_CreatePolicyRequest) ) - - // Call the CreateWallet method using the underlyingClient - return try await underlyingClient.CreateWallet(input) + return try await underlyingClient.PublicApiService_CreatePolicy(input) } + public func publicApiService_CreatePrivateKeyTag() async throws + -> Operations.PublicApiService_CreatePrivateKeyTag.Output + { - public func createWalletAccounts( - organizationId: String, - walletId: String, accounts: [Components.Schemas.WalletAccountParams] - ) async throws -> Operations.CreateWalletAccounts.Output { - - // Create the CreateWalletAccountsIntent - let createWalletAccountsIntent = Components.Schemas.CreateWalletAccountsIntent( - walletId: walletId, accounts: accounts) - - // Create the CreateWalletAccountsRequest - let createWalletAccountsRequest = Components.Schemas.CreateWalletAccountsRequest( - _type: .ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: createWalletAccountsIntent - ) + // Create the PublicApiService_CreatePrivateKeyTagRequest + let publicApiService_CreatePrivateKeyTagRequest = Components.Schemas + .PublicApiService_CreatePrivateKeyTagRequest() - // Create the input for the CreateWalletAccounts method - let input = Operations.CreateWalletAccounts.Input( + let input = Operations.PublicApiService_CreatePrivateKeyTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(createWalletAccountsRequest) + body: .json(publicApiService_CreatePrivateKeyTagRequest) ) - - // Call the CreateWalletAccounts method using the underlyingClient - return try await underlyingClient.CreateWalletAccounts(input) + return try await underlyingClient.PublicApiService_CreatePrivateKeyTag(input) } + public func publicApiService_CreatePrivateKeys() async throws + -> Operations.PublicApiService_CreatePrivateKeys.Output + { - public func deleteApiKeys( - organizationId: String, - userId: String, apiKeyIds: [String] - ) async throws -> Operations.DeleteApiKeys.Output { - - // Create the DeleteApiKeysIntent - let deleteApiKeysIntent = Components.Schemas.DeleteApiKeysIntent( - userId: userId, apiKeyIds: apiKeyIds) - - // Create the DeleteApiKeysRequest - let deleteApiKeysRequest = Components.Schemas.DeleteApiKeysRequest( - _type: .ACTIVITY_TYPE_DELETE_API_KEYS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deleteApiKeysIntent - ) + // Create the PublicApiService_CreatePrivateKeysRequest + let publicApiService_CreatePrivateKeysRequest = Components.Schemas + .PublicApiService_CreatePrivateKeysRequest() - // Create the input for the DeleteApiKeys method - let input = Operations.DeleteApiKeys.Input( + let input = Operations.PublicApiService_CreatePrivateKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deleteApiKeysRequest) + body: .json(publicApiService_CreatePrivateKeysRequest) ) - - // Call the DeleteApiKeys method using the underlyingClient - return try await underlyingClient.DeleteApiKeys(input) + return try await underlyingClient.PublicApiService_CreatePrivateKeys(input) } + public func publicApiService_CreateReadOnlySession() async throws + -> Operations.PublicApiService_CreateReadOnlySession.Output + { - public func deleteAuthenticators( - organizationId: String, - userId: String, authenticatorIds: [String] - ) async throws -> Operations.DeleteAuthenticators.Output { - - // Create the DeleteAuthenticatorsIntent - let deleteAuthenticatorsIntent = Components.Schemas.DeleteAuthenticatorsIntent( - userId: userId, authenticatorIds: authenticatorIds) - - // Create the DeleteAuthenticatorsRequest - let deleteAuthenticatorsRequest = Components.Schemas.DeleteAuthenticatorsRequest( - _type: .ACTIVITY_TYPE_DELETE_AUTHENTICATORS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deleteAuthenticatorsIntent - ) + // Create the PublicApiService_CreateReadOnlySessionRequest + let publicApiService_CreateReadOnlySessionRequest = Components.Schemas + .PublicApiService_CreateReadOnlySessionRequest() - // Create the input for the DeleteAuthenticators method - let input = Operations.DeleteAuthenticators.Input( + let input = Operations.PublicApiService_CreateReadOnlySession.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deleteAuthenticatorsRequest) + body: .json(publicApiService_CreateReadOnlySessionRequest) ) - - // Call the DeleteAuthenticators method using the underlyingClient - return try await underlyingClient.DeleteAuthenticators(input) + return try await underlyingClient.PublicApiService_CreateReadOnlySession(input) } + public func publicApiService_CreateReadWriteSession() async throws + -> Operations.PublicApiService_CreateReadWriteSession.Output + { - public func deleteInvitation( - organizationId: String, - invitationId: String - ) async throws -> Operations.DeleteInvitation.Output { - - // Create the DeleteInvitationIntent - let deleteInvitationIntent = Components.Schemas.DeleteInvitationIntent( - invitationId: invitationId) - - // Create the DeleteInvitationRequest - let deleteInvitationRequest = Components.Schemas.DeleteInvitationRequest( - _type: .ACTIVITY_TYPE_DELETE_INVITATION, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deleteInvitationIntent - ) + // Create the PublicApiService_CreateReadWriteSessionRequest + let publicApiService_CreateReadWriteSessionRequest = Components.Schemas + .PublicApiService_CreateReadWriteSessionRequest() - // Create the input for the DeleteInvitation method - let input = Operations.DeleteInvitation.Input( + let input = Operations.PublicApiService_CreateReadWriteSession.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deleteInvitationRequest) + body: .json(publicApiService_CreateReadWriteSessionRequest) ) - - // Call the DeleteInvitation method using the underlyingClient - return try await underlyingClient.DeleteInvitation(input) + return try await underlyingClient.PublicApiService_CreateReadWriteSession(input) } + public func publicApiService_CreateSubOrganization() async throws + -> Operations.PublicApiService_CreateSubOrganization.Output + { - public func deletePolicy( - organizationId: String, - policyId: String - ) async throws -> Operations.DeletePolicy.Output { - - // Create the DeletePolicyIntent - let deletePolicyIntent = Components.Schemas.DeletePolicyIntent( - policyId: policyId) - - // Create the DeletePolicyRequest - let deletePolicyRequest = Components.Schemas.DeletePolicyRequest( - _type: .ACTIVITY_TYPE_DELETE_POLICY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deletePolicyIntent - ) + // Create the PublicApiService_CreateSubOrganizationRequest + let publicApiService_CreateSubOrganizationRequest = Components.Schemas + .PublicApiService_CreateSubOrganizationRequest() - // Create the input for the DeletePolicy method - let input = Operations.DeletePolicy.Input( + let input = Operations.PublicApiService_CreateSubOrganization.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deletePolicyRequest) + body: .json(publicApiService_CreateSubOrganizationRequest) ) - - // Call the DeletePolicy method using the underlyingClient - return try await underlyingClient.DeletePolicy(input) + return try await underlyingClient.PublicApiService_CreateSubOrganization(input) } + public func publicApiService_CreateUserTag() async throws + -> Operations.PublicApiService_CreateUserTag.Output + { - public func deletePrivateKeyTags( - organizationId: String, - privateKeyTagIds: [String] - ) async throws -> Operations.DeletePrivateKeyTags.Output { - - // Create the DeletePrivateKeyTagsIntent - let deletePrivateKeyTagsIntent = Components.Schemas.DeletePrivateKeyTagsIntent( - privateKeyTagIds: privateKeyTagIds) - - // Create the DeletePrivateKeyTagsRequest - let deletePrivateKeyTagsRequest = Components.Schemas.DeletePrivateKeyTagsRequest( - _type: .ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deletePrivateKeyTagsIntent - ) + // Create the PublicApiService_CreateUserTagRequest + let publicApiService_CreateUserTagRequest = Components.Schemas + .PublicApiService_CreateUserTagRequest() - // Create the input for the DeletePrivateKeyTags method - let input = Operations.DeletePrivateKeyTags.Input( + let input = Operations.PublicApiService_CreateUserTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deletePrivateKeyTagsRequest) + body: .json(publicApiService_CreateUserTagRequest) ) - - // Call the DeletePrivateKeyTags method using the underlyingClient - return try await underlyingClient.DeletePrivateKeyTags(input) + return try await underlyingClient.PublicApiService_CreateUserTag(input) } + public func publicApiService_CreateUsers() async throws + -> Operations.PublicApiService_CreateUsers.Output + { - public func deleteUserTags( - organizationId: String, - userTagIds: [String] - ) async throws -> Operations.DeleteUserTags.Output { - - // Create the DeleteUserTagsIntent - let deleteUserTagsIntent = Components.Schemas.DeleteUserTagsIntent( - userTagIds: userTagIds) - - // Create the DeleteUserTagsRequest - let deleteUserTagsRequest = Components.Schemas.DeleteUserTagsRequest( - _type: .ACTIVITY_TYPE_DELETE_USER_TAGS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deleteUserTagsIntent - ) + // Create the PublicApiService_CreateUsersRequest + let publicApiService_CreateUsersRequest = Components.Schemas + .PublicApiService_CreateUsersRequest() - // Create the input for the DeleteUserTags method - let input = Operations.DeleteUserTags.Input( + let input = Operations.PublicApiService_CreateUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deleteUserTagsRequest) + body: .json(publicApiService_CreateUsersRequest) ) - - // Call the DeleteUserTags method using the underlyingClient - return try await underlyingClient.DeleteUserTags(input) + return try await underlyingClient.PublicApiService_CreateUsers(input) } + public func publicApiService_CreateWallet() async throws + -> Operations.PublicApiService_CreateWallet.Output + { - public func deleteUsers( - organizationId: String, - userIds: [String] - ) async throws -> Operations.DeleteUsers.Output { - - // Create the DeleteUsersIntent - let deleteUsersIntent = Components.Schemas.DeleteUsersIntent( - userIds: userIds) + // Create the PublicApiService_CreateWalletRequest + let publicApiService_CreateWalletRequest = Components.Schemas + .PublicApiService_CreateWalletRequest() - // Create the DeleteUsersRequest - let deleteUsersRequest = Components.Schemas.DeleteUsersRequest( - _type: .ACTIVITY_TYPE_DELETE_USERS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: deleteUsersIntent - ) - - // Create the input for the DeleteUsers method - let input = Operations.DeleteUsers.Input( + let input = Operations.PublicApiService_CreateWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(deleteUsersRequest) + body: .json(publicApiService_CreateWalletRequest) ) - - // Call the DeleteUsers method using the underlyingClient - return try await underlyingClient.DeleteUsers(input) + return try await underlyingClient.PublicApiService_CreateWallet(input) } + public func publicApiService_CreateWalletAccounts() async throws + -> Operations.PublicApiService_CreateWalletAccounts.Output + { - public func emailAuth( - organizationId: String, - email: String, targetPublicKey: String, apiKeyName: String?, expirationSeconds: String?, - emailCustomization: Components.Schemas.EmailCustomizationParams? - ) async throws -> Operations.EmailAuth.Output { - - // Create the EmailAuthIntent - let emailAuthIntent = Components.Schemas.EmailAuthIntent( - email: email, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, - expirationSeconds: expirationSeconds, emailCustomization: emailCustomization) - - // Create the EmailAuthRequest - let emailAuthRequest = Components.Schemas.EmailAuthRequest( - _type: .ACTIVITY_TYPE_EMAIL_AUTH, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: emailAuthIntent - ) + // Create the PublicApiService_CreateWalletAccountsRequest + let publicApiService_CreateWalletAccountsRequest = Components.Schemas + .PublicApiService_CreateWalletAccountsRequest() - // Create the input for the EmailAuth method - let input = Operations.EmailAuth.Input( + let input = Operations.PublicApiService_CreateWalletAccounts.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(emailAuthRequest) + body: .json(publicApiService_CreateWalletAccountsRequest) ) - - // Call the EmailAuth method using the underlyingClient - return try await underlyingClient.EmailAuth(input) + return try await underlyingClient.PublicApiService_CreateWalletAccounts(input) } + public func publicApiService_DeleteApiKeys() async throws + -> Operations.PublicApiService_DeleteApiKeys.Output + { - public func exportPrivateKey( - organizationId: String, - privateKeyId: String, targetPublicKey: String - ) async throws -> Operations.ExportPrivateKey.Output { - - // Create the ExportPrivateKeyIntent - let exportPrivateKeyIntent = Components.Schemas.ExportPrivateKeyIntent( - privateKeyId: privateKeyId, targetPublicKey: targetPublicKey) - - // Create the ExportPrivateKeyRequest - let exportPrivateKeyRequest = Components.Schemas.ExportPrivateKeyRequest( - _type: .ACTIVITY_TYPE_EXPORT_PRIVATE_KEY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: exportPrivateKeyIntent - ) + // Create the PublicApiService_DeleteApiKeysRequest + let publicApiService_DeleteApiKeysRequest = Components.Schemas + .PublicApiService_DeleteApiKeysRequest() - // Create the input for the ExportPrivateKey method - let input = Operations.ExportPrivateKey.Input( + let input = Operations.PublicApiService_DeleteApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(exportPrivateKeyRequest) + body: .json(publicApiService_DeleteApiKeysRequest) ) - - // Call the ExportPrivateKey method using the underlyingClient - return try await underlyingClient.ExportPrivateKey(input) + return try await underlyingClient.PublicApiService_DeleteApiKeys(input) } + public func publicApiService_DeleteAuthenticators() async throws + -> Operations.PublicApiService_DeleteAuthenticators.Output + { - public func exportWallet( - organizationId: String, - walletId: String, targetPublicKey: String, language: Components.Schemas.MnemonicLanguage? - ) async throws -> Operations.ExportWallet.Output { - - // Create the ExportWalletIntent - let exportWalletIntent = Components.Schemas.ExportWalletIntent( - walletId: walletId, targetPublicKey: targetPublicKey, language: language) - - // Create the ExportWalletRequest - let exportWalletRequest = Components.Schemas.ExportWalletRequest( - _type: .ACTIVITY_TYPE_EXPORT_WALLET, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: exportWalletIntent - ) + // Create the PublicApiService_DeleteAuthenticatorsRequest + let publicApiService_DeleteAuthenticatorsRequest = Components.Schemas + .PublicApiService_DeleteAuthenticatorsRequest() - // Create the input for the ExportWallet method - let input = Operations.ExportWallet.Input( + let input = Operations.PublicApiService_DeleteAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(exportWalletRequest) + body: .json(publicApiService_DeleteAuthenticatorsRequest) ) - - // Call the ExportWallet method using the underlyingClient - return try await underlyingClient.ExportWallet(input) + return try await underlyingClient.PublicApiService_DeleteAuthenticators(input) } + public func publicApiService_DeleteInvitation() async throws + -> Operations.PublicApiService_DeleteInvitation.Output + { - public func exportWalletAccount( - organizationId: String, - address: String, targetPublicKey: String - ) async throws -> Operations.ExportWalletAccount.Output { - - // Create the ExportWalletAccountIntent - let exportWalletAccountIntent = Components.Schemas.ExportWalletAccountIntent( - address: address, targetPublicKey: targetPublicKey) - - // Create the ExportWalletAccountRequest - let exportWalletAccountRequest = Components.Schemas.ExportWalletAccountRequest( - _type: .ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: exportWalletAccountIntent - ) + // Create the PublicApiService_DeleteInvitationRequest + let publicApiService_DeleteInvitationRequest = Components.Schemas + .PublicApiService_DeleteInvitationRequest() - // Create the input for the ExportWalletAccount method - let input = Operations.ExportWalletAccount.Input( + let input = Operations.PublicApiService_DeleteInvitation.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(exportWalletAccountRequest) + body: .json(publicApiService_DeleteInvitationRequest) ) - - // Call the ExportWalletAccount method using the underlyingClient - return try await underlyingClient.ExportWalletAccount(input) + return try await underlyingClient.PublicApiService_DeleteInvitation(input) } + public func publicApiService_DeleteOauthProviders() async throws + -> Operations.PublicApiService_DeleteOauthProviders.Output + { - public func importPrivateKey( - organizationId: String, - userId: String, privateKeyName: String, encryptedBundle: String, - curve: Components.Schemas.Curve, addressFormats: [Components.Schemas.AddressFormat] - ) async throws -> Operations.ImportPrivateKey.Output { - - // Create the ImportPrivateKeyIntent - let importPrivateKeyIntent = Components.Schemas.ImportPrivateKeyIntent( - userId: userId, privateKeyName: privateKeyName, encryptedBundle: encryptedBundle, - curve: curve, addressFormats: addressFormats) + // Create the PublicApiService_DeleteOauthProvidersRequest + let publicApiService_DeleteOauthProvidersRequest = Components.Schemas + .PublicApiService_DeleteOauthProvidersRequest() - // Create the ImportPrivateKeyRequest - let importPrivateKeyRequest = Components.Schemas.ImportPrivateKeyRequest( - _type: .ACTIVITY_TYPE_IMPORT_PRIVATE_KEY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: importPrivateKeyIntent - ) - - // Create the input for the ImportPrivateKey method - let input = Operations.ImportPrivateKey.Input( + let input = Operations.PublicApiService_DeleteOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(importPrivateKeyRequest) + body: .json(publicApiService_DeleteOauthProvidersRequest) ) - - // Call the ImportPrivateKey method using the underlyingClient - return try await underlyingClient.ImportPrivateKey(input) + return try await underlyingClient.PublicApiService_DeleteOauthProviders(input) } + public func publicApiService_DeletePolicy() async throws + -> Operations.PublicApiService_DeletePolicy.Output + { - public func importWallet( - organizationId: String, - userId: String, walletName: String, encryptedBundle: String, - accounts: [Components.Schemas.WalletAccountParams] - ) async throws -> Operations.ImportWallet.Output { - - // Create the ImportWalletIntent - let importWalletIntent = Components.Schemas.ImportWalletIntent( - userId: userId, walletName: walletName, encryptedBundle: encryptedBundle, accounts: accounts) + // Create the PublicApiService_DeletePolicyRequest + let publicApiService_DeletePolicyRequest = Components.Schemas + .PublicApiService_DeletePolicyRequest() - // Create the ImportWalletRequest - let importWalletRequest = Components.Schemas.ImportWalletRequest( - _type: .ACTIVITY_TYPE_IMPORT_WALLET, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: importWalletIntent + let input = Operations.PublicApiService_DeletePolicy.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_DeletePolicyRequest) ) + return try await underlyingClient.PublicApiService_DeletePolicy(input) + } + public func publicApiService_DeletePrivateKeyTags() async throws + -> Operations.PublicApiService_DeletePrivateKeyTags.Output + { + + // Create the PublicApiService_DeletePrivateKeyTagsRequest + let publicApiService_DeletePrivateKeyTagsRequest = Components.Schemas + .PublicApiService_DeletePrivateKeyTagsRequest() - // Create the input for the ImportWallet method - let input = Operations.ImportWallet.Input( + let input = Operations.PublicApiService_DeletePrivateKeyTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(importWalletRequest) + body: .json(publicApiService_DeletePrivateKeyTagsRequest) ) - - // Call the ImportWallet method using the underlyingClient - return try await underlyingClient.ImportWallet(input) + return try await underlyingClient.PublicApiService_DeletePrivateKeyTags(input) } + public func publicApiService_DeletePrivateKeys() async throws + -> Operations.PublicApiService_DeletePrivateKeys.Output + { - public func initImportPrivateKey( - organizationId: String, - userId: String - ) async throws -> Operations.InitImportPrivateKey.Output { - - // Create the InitImportPrivateKeyIntent - let initImportPrivateKeyIntent = Components.Schemas.InitImportPrivateKeyIntent( - userId: userId) + // Create the PublicApiService_DeletePrivateKeysRequest + let publicApiService_DeletePrivateKeysRequest = Components.Schemas + .PublicApiService_DeletePrivateKeysRequest() - // Create the InitImportPrivateKeyRequest - let initImportPrivateKeyRequest = Components.Schemas.InitImportPrivateKeyRequest( - _type: .ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: initImportPrivateKeyIntent + let input = Operations.PublicApiService_DeletePrivateKeys.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_DeletePrivateKeysRequest) ) + return try await underlyingClient.PublicApiService_DeletePrivateKeys(input) + } + public func publicApiService_DeleteSubOrganization() async throws + -> Operations.PublicApiService_DeleteSubOrganization.Output + { - // Create the input for the InitImportPrivateKey method - let input = Operations.InitImportPrivateKey.Input( + // Create the PublicApiService_DeleteSubOrganizationRequest + let publicApiService_DeleteSubOrganizationRequest = Components.Schemas + .PublicApiService_DeleteSubOrganizationRequest() + + let input = Operations.PublicApiService_DeleteSubOrganization.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(initImportPrivateKeyRequest) + body: .json(publicApiService_DeleteSubOrganizationRequest) ) - - // Call the InitImportPrivateKey method using the underlyingClient - return try await underlyingClient.InitImportPrivateKey(input) + return try await underlyingClient.PublicApiService_DeleteSubOrganization(input) } + public func publicApiService_DeleteUserTags() async throws + -> Operations.PublicApiService_DeleteUserTags.Output + { - public func initImportWallet( - organizationId: String, - userId: String - ) async throws -> Operations.InitImportWallet.Output { - - // Create the InitImportWalletIntent - let initImportWalletIntent = Components.Schemas.InitImportWalletIntent( - userId: userId) + // Create the PublicApiService_DeleteUserTagsRequest + let publicApiService_DeleteUserTagsRequest = Components.Schemas + .PublicApiService_DeleteUserTagsRequest() - // Create the InitImportWalletRequest - let initImportWalletRequest = Components.Schemas.InitImportWalletRequest( - _type: .ACTIVITY_TYPE_INIT_IMPORT_WALLET, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: initImportWalletIntent + let input = Operations.PublicApiService_DeleteUserTags.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_DeleteUserTagsRequest) ) + return try await underlyingClient.PublicApiService_DeleteUserTags(input) + } + public func publicApiService_DeleteUsers() async throws + -> Operations.PublicApiService_DeleteUsers.Output + { - // Create the input for the InitImportWallet method - let input = Operations.InitImportWallet.Input( + // Create the PublicApiService_DeleteUsersRequest + let publicApiService_DeleteUsersRequest = Components.Schemas + .PublicApiService_DeleteUsersRequest() + + let input = Operations.PublicApiService_DeleteUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(initImportWalletRequest) + body: .json(publicApiService_DeleteUsersRequest) ) - - // Call the InitImportWallet method using the underlyingClient - return try await underlyingClient.InitImportWallet(input) + return try await underlyingClient.PublicApiService_DeleteUsers(input) } + public func publicApiService_DeleteWallets() async throws + -> Operations.PublicApiService_DeleteWallets.Output + { - public func initUserEmailRecovery( - organizationId: String, - email: String, targetPublicKey: String, expirationSeconds: String?, - emailCustomization: Components.Schemas.EmailCustomizationParams? - ) async throws -> Operations.InitUserEmailRecovery.Output { - - // Create the InitUserEmailRecoveryIntent - let initUserEmailRecoveryIntent = Components.Schemas.InitUserEmailRecoveryIntent( - email: email, targetPublicKey: targetPublicKey, expirationSeconds: expirationSeconds, - emailCustomization: emailCustomization) + // Create the PublicApiService_DeleteWalletsRequest + let publicApiService_DeleteWalletsRequest = Components.Schemas + .PublicApiService_DeleteWalletsRequest() - // Create the InitUserEmailRecoveryRequest - let initUserEmailRecoveryRequest = Components.Schemas.InitUserEmailRecoveryRequest( - _type: .ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: initUserEmailRecoveryIntent + let input = Operations.PublicApiService_DeleteWallets.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_DeleteWalletsRequest) ) + return try await underlyingClient.PublicApiService_DeleteWallets(input) + } + public func publicApiService_EmailAuth() async throws + -> Operations.PublicApiService_EmailAuth.Output + { + + // Create the PublicApiService_EmailAuthRequest + let publicApiService_EmailAuthRequest = Components.Schemas.PublicApiService_EmailAuthRequest() - // Create the input for the InitUserEmailRecovery method - let input = Operations.InitUserEmailRecovery.Input( + let input = Operations.PublicApiService_EmailAuth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(initUserEmailRecoveryRequest) + body: .json(publicApiService_EmailAuthRequest) ) - - // Call the InitUserEmailRecovery method using the underlyingClient - return try await underlyingClient.InitUserEmailRecovery(input) + return try await underlyingClient.PublicApiService_EmailAuth(input) } + public func publicApiService_ExportPrivateKey() async throws + -> Operations.PublicApiService_ExportPrivateKey.Output + { - public func recoverUser( - organizationId: String, - authenticator: Components.Schemas.AuthenticatorParamsV2, userId: String - ) async throws -> Operations.RecoverUser.Output { - - // Create the RecoverUserIntent - let recoverUserIntent = Components.Schemas.RecoverUserIntent( - authenticator: authenticator, userId: userId) + // Create the PublicApiService_ExportPrivateKeyRequest + let publicApiService_ExportPrivateKeyRequest = Components.Schemas + .PublicApiService_ExportPrivateKeyRequest() - // Create the RecoverUserRequest - let recoverUserRequest = Components.Schemas.RecoverUserRequest( - _type: .ACTIVITY_TYPE_RECOVER_USER, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: recoverUserIntent + let input = Operations.PublicApiService_ExportPrivateKey.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_ExportPrivateKeyRequest) ) + return try await underlyingClient.PublicApiService_ExportPrivateKey(input) + } + public func publicApiService_ExportWallet() async throws + -> Operations.PublicApiService_ExportWallet.Output + { + + // Create the PublicApiService_ExportWalletRequest + let publicApiService_ExportWalletRequest = Components.Schemas + .PublicApiService_ExportWalletRequest() - // Create the input for the RecoverUser method - let input = Operations.RecoverUser.Input( + let input = Operations.PublicApiService_ExportWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(recoverUserRequest) + body: .json(publicApiService_ExportWalletRequest) ) - - // Call the RecoverUser method using the underlyingClient - return try await underlyingClient.RecoverUser(input) + return try await underlyingClient.PublicApiService_ExportWallet(input) } + public func publicApiService_ExportWalletAccount() async throws + -> Operations.PublicApiService_ExportWalletAccount.Output + { - public func rejectActivity( - organizationId: String, - fingerprint: String - ) async throws -> Operations.RejectActivity.Output { - - // Create the RejectActivityIntent - let rejectActivityIntent = Components.Schemas.RejectActivityIntent( - fingerprint: fingerprint) + // Create the PublicApiService_ExportWalletAccountRequest + let publicApiService_ExportWalletAccountRequest = Components.Schemas + .PublicApiService_ExportWalletAccountRequest() - // Create the RejectActivityRequest - let rejectActivityRequest = Components.Schemas.RejectActivityRequest( - _type: .ACTIVITY_TYPE_REJECT_ACTIVITY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: rejectActivityIntent + let input = Operations.PublicApiService_ExportWalletAccount.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_ExportWalletAccountRequest) ) + return try await underlyingClient.PublicApiService_ExportWalletAccount(input) + } + public func publicApiService_ImportPrivateKey() async throws + -> Operations.PublicApiService_ImportPrivateKey.Output + { - // Create the input for the RejectActivity method - let input = Operations.RejectActivity.Input( + // Create the PublicApiService_ImportPrivateKeyRequest + let publicApiService_ImportPrivateKeyRequest = Components.Schemas + .PublicApiService_ImportPrivateKeyRequest() + + let input = Operations.PublicApiService_ImportPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(rejectActivityRequest) + body: .json(publicApiService_ImportPrivateKeyRequest) ) - - // Call the RejectActivity method using the underlyingClient - return try await underlyingClient.RejectActivity(input) + return try await underlyingClient.PublicApiService_ImportPrivateKey(input) } + public func publicApiService_ImportWallet() async throws + -> Operations.PublicApiService_ImportWallet.Output + { - public func removeOrganizationFeature( - organizationId: String, - name: Components.Schemas.FeatureName - ) async throws -> Operations.RemoveOrganizationFeature.Output { - - // Create the RemoveOrganizationFeatureIntent - let removeOrganizationFeatureIntent = Components.Schemas.RemoveOrganizationFeatureIntent( - name: name) + // Create the PublicApiService_ImportWalletRequest + let publicApiService_ImportWalletRequest = Components.Schemas + .PublicApiService_ImportWalletRequest() - // Create the RemoveOrganizationFeatureRequest - let removeOrganizationFeatureRequest = Components.Schemas.RemoveOrganizationFeatureRequest( - _type: .ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: removeOrganizationFeatureIntent + let input = Operations.PublicApiService_ImportWallet.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_ImportWalletRequest) ) + return try await underlyingClient.PublicApiService_ImportWallet(input) + } + public func publicApiService_InitImportPrivateKey() async throws + -> Operations.PublicApiService_InitImportPrivateKey.Output + { + + // Create the PublicApiService_InitImportPrivateKeyRequest + let publicApiService_InitImportPrivateKeyRequest = Components.Schemas + .PublicApiService_InitImportPrivateKeyRequest() - // Create the input for the RemoveOrganizationFeature method - let input = Operations.RemoveOrganizationFeature.Input( + let input = Operations.PublicApiService_InitImportPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(removeOrganizationFeatureRequest) + body: .json(publicApiService_InitImportPrivateKeyRequest) ) - - // Call the RemoveOrganizationFeature method using the underlyingClient - return try await underlyingClient.RemoveOrganizationFeature(input) + return try await underlyingClient.PublicApiService_InitImportPrivateKey(input) } + public func publicApiService_InitImportWallet() async throws + -> Operations.PublicApiService_InitImportWallet.Output + { - public func setOrganizationFeature( - organizationId: String, - name: Components.Schemas.FeatureName, value: String - ) async throws -> Operations.SetOrganizationFeature.Output { - - // Create the SetOrganizationFeatureIntent - let setOrganizationFeatureIntent = Components.Schemas.SetOrganizationFeatureIntent( - name: name, value: value) + // Create the PublicApiService_InitImportWalletRequest + let publicApiService_InitImportWalletRequest = Components.Schemas + .PublicApiService_InitImportWalletRequest() - // Create the SetOrganizationFeatureRequest - let setOrganizationFeatureRequest = Components.Schemas.SetOrganizationFeatureRequest( - _type: .ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: setOrganizationFeatureIntent + let input = Operations.PublicApiService_InitImportWallet.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_InitImportWalletRequest) ) + return try await underlyingClient.PublicApiService_InitImportWallet(input) + } + public func publicApiService_InitOtpAuth() async throws + -> Operations.PublicApiService_InitOtpAuth.Output + { + + // Create the PublicApiService_InitOtpAuthRequest + let publicApiService_InitOtpAuthRequest = Components.Schemas + .PublicApiService_InitOtpAuthRequest() - // Create the input for the SetOrganizationFeature method - let input = Operations.SetOrganizationFeature.Input( + let input = Operations.PublicApiService_InitOtpAuth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(setOrganizationFeatureRequest) + body: .json(publicApiService_InitOtpAuthRequest) ) - - // Call the SetOrganizationFeature method using the underlyingClient - return try await underlyingClient.SetOrganizationFeature(input) + return try await underlyingClient.PublicApiService_InitOtpAuth(input) } + public func publicApiService_InitUserEmailRecovery() async throws + -> Operations.PublicApiService_InitUserEmailRecovery.Output + { - public func signRawPayload( - organizationId: String, - signWith: String, payload: String, encoding: Components.Schemas.PayloadEncoding, - hashFunction: Components.Schemas.HashFunction - ) async throws -> Operations.SignRawPayload.Output { - - // Create the SignRawPayloadIntentV2 - let signRawPayloadIntent = Components.Schemas.SignRawPayloadIntentV2( - signWith: signWith, payload: payload, encoding: encoding, hashFunction: hashFunction) + // Create the PublicApiService_InitUserEmailRecoveryRequest + let publicApiService_InitUserEmailRecoveryRequest = Components.Schemas + .PublicApiService_InitUserEmailRecoveryRequest() - // Create the SignRawPayloadRequest - let signRawPayloadRequest = Components.Schemas.SignRawPayloadRequest( - _type: .ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: signRawPayloadIntent + let input = Operations.PublicApiService_InitUserEmailRecovery.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_InitUserEmailRecoveryRequest) ) + return try await underlyingClient.PublicApiService_InitUserEmailRecovery(input) + } + public func publicApiService_Oauth() async throws -> Operations.PublicApiService_Oauth.Output { + + // Create the PublicApiService_OauthRequest + let publicApiService_OauthRequest = Components.Schemas.PublicApiService_OauthRequest() - // Create the input for the SignRawPayload method - let input = Operations.SignRawPayload.Input( + let input = Operations.PublicApiService_Oauth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(signRawPayloadRequest) + body: .json(publicApiService_OauthRequest) ) - - // Call the SignRawPayload method using the underlyingClient - return try await underlyingClient.SignRawPayload(input) + return try await underlyingClient.PublicApiService_Oauth(input) } + public func publicApiService_OtpAuth() async throws -> Operations.PublicApiService_OtpAuth.Output + { - public func signRawPayloads( - organizationId: String, - signWith: String, payloads: [String], encoding: Components.Schemas.PayloadEncoding, - hashFunction: Components.Schemas.HashFunction - ) async throws -> Operations.SignRawPayloads.Output { - - // Create the SignRawPayloadsIntent - let signRawPayloadsIntent = Components.Schemas.SignRawPayloadsIntent( - signWith: signWith, payloads: payloads, encoding: encoding, hashFunction: hashFunction) + // Create the PublicApiService_OtpAuthRequest + let publicApiService_OtpAuthRequest = Components.Schemas.PublicApiService_OtpAuthRequest() - // Create the SignRawPayloadsRequest - let signRawPayloadsRequest = Components.Schemas.SignRawPayloadsRequest( - _type: .ACTIVITY_TYPE_SIGN_RAW_PAYLOADS, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: signRawPayloadsIntent + let input = Operations.PublicApiService_OtpAuth.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_OtpAuthRequest) ) + return try await underlyingClient.PublicApiService_OtpAuth(input) + } + public func publicApiService_RecoverUser() async throws + -> Operations.PublicApiService_RecoverUser.Output + { + + // Create the PublicApiService_RecoverUserRequest + let publicApiService_RecoverUserRequest = Components.Schemas + .PublicApiService_RecoverUserRequest() - // Create the input for the SignRawPayloads method - let input = Operations.SignRawPayloads.Input( + let input = Operations.PublicApiService_RecoverUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(signRawPayloadsRequest) + body: .json(publicApiService_RecoverUserRequest) ) - - // Call the SignRawPayloads method using the underlyingClient - return try await underlyingClient.SignRawPayloads(input) + return try await underlyingClient.PublicApiService_RecoverUser(input) } + public func publicApiService_RejectActivity() async throws + -> Operations.PublicApiService_RejectActivity.Output + { - public func signTransaction( - organizationId: String, - signWith: String, unsignedTransaction: String, _type: Components.Schemas.TransactionType - ) async throws -> Operations.SignTransaction.Output { - - // Create the SignTransactionIntentV2 - let signTransactionIntent = Components.Schemas.SignTransactionIntentV2( - signWith: signWith, unsignedTransaction: unsignedTransaction, _type: _type) + // Create the PublicApiService_RejectActivityRequest + let publicApiService_RejectActivityRequest = Components.Schemas + .PublicApiService_RejectActivityRequest() - // Create the SignTransactionRequest - let signTransactionRequest = Components.Schemas.SignTransactionRequest( - _type: .ACTIVITY_TYPE_SIGN_TRANSACTION_V2, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: signTransactionIntent + let input = Operations.PublicApiService_RejectActivity.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_RejectActivityRequest) ) + return try await underlyingClient.PublicApiService_RejectActivity(input) + } + public func publicApiService_RemoveOrganizationFeature() async throws + -> Operations.PublicApiService_RemoveOrganizationFeature.Output + { - // Create the input for the SignTransaction method - let input = Operations.SignTransaction.Input( + // Create the PublicApiService_RemoveOrganizationFeatureRequest + let publicApiService_RemoveOrganizationFeatureRequest = Components.Schemas + .PublicApiService_RemoveOrganizationFeatureRequest() + + let input = Operations.PublicApiService_RemoveOrganizationFeature.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(signTransactionRequest) + body: .json(publicApiService_RemoveOrganizationFeatureRequest) ) - - // Call the SignTransaction method using the underlyingClient - return try await underlyingClient.SignTransaction(input) + return try await underlyingClient.PublicApiService_RemoveOrganizationFeature(input) } + public func publicApiService_SetOrganizationFeature() async throws + -> Operations.PublicApiService_SetOrganizationFeature.Output + { - public func updatePolicy( - organizationId: String, - policyId: String, policyName: String?, policyEffect: Components.Schemas.Effect?, - policyCondition: String?, policyConsensus: String?, policyNotes: String? - ) async throws -> Operations.UpdatePolicy.Output { - - // Create the UpdatePolicyIntent - let updatePolicyIntent = Components.Schemas.UpdatePolicyIntent( - policyId: policyId, policyName: policyName, policyEffect: policyEffect, - policyCondition: policyCondition, policyConsensus: policyConsensus, policyNotes: policyNotes) + // Create the PublicApiService_SetOrganizationFeatureRequest + let publicApiService_SetOrganizationFeatureRequest = Components.Schemas + .PublicApiService_SetOrganizationFeatureRequest() - // Create the UpdatePolicyRequest - let updatePolicyRequest = Components.Schemas.UpdatePolicyRequest( - _type: .ACTIVITY_TYPE_UPDATE_POLICY, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: updatePolicyIntent + let input = Operations.PublicApiService_SetOrganizationFeature.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_SetOrganizationFeatureRequest) ) + return try await underlyingClient.PublicApiService_SetOrganizationFeature(input) + } + public func publicApiService_SignRawPayload() async throws + -> Operations.PublicApiService_SignRawPayload.Output + { + + // Create the PublicApiService_SignRawPayloadRequest + let publicApiService_SignRawPayloadRequest = Components.Schemas + .PublicApiService_SignRawPayloadRequest() - // Create the input for the UpdatePolicy method - let input = Operations.UpdatePolicy.Input( + let input = Operations.PublicApiService_SignRawPayload.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(updatePolicyRequest) + body: .json(publicApiService_SignRawPayloadRequest) ) - - // Call the UpdatePolicy method using the underlyingClient - return try await underlyingClient.UpdatePolicy(input) + return try await underlyingClient.PublicApiService_SignRawPayload(input) } + public func publicApiService_SignRawPayloads() async throws + -> Operations.PublicApiService_SignRawPayloads.Output + { - public func updatePrivateKeyTag( - organizationId: String, - privateKeyTagId: String, newPrivateKeyTagName: String?, addPrivateKeyIds: [String], - removePrivateKeyIds: [String] - ) async throws -> Operations.UpdatePrivateKeyTag.Output { - - // Create the UpdatePrivateKeyTagIntent - let updatePrivateKeyTagIntent = Components.Schemas.UpdatePrivateKeyTagIntent( - privateKeyTagId: privateKeyTagId, newPrivateKeyTagName: newPrivateKeyTagName, - addPrivateKeyIds: addPrivateKeyIds, removePrivateKeyIds: removePrivateKeyIds) + // Create the PublicApiService_SignRawPayloadsRequest + let publicApiService_SignRawPayloadsRequest = Components.Schemas + .PublicApiService_SignRawPayloadsRequest() - // Create the UpdatePrivateKeyTagRequest - let updatePrivateKeyTagRequest = Components.Schemas.UpdatePrivateKeyTagRequest( - _type: .ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: updatePrivateKeyTagIntent + let input = Operations.PublicApiService_SignRawPayloads.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_SignRawPayloadsRequest) ) + return try await underlyingClient.PublicApiService_SignRawPayloads(input) + } + public func publicApiService_SignTransaction() async throws + -> Operations.PublicApiService_SignTransaction.Output + { + + // Create the PublicApiService_SignTransactionRequest + let publicApiService_SignTransactionRequest = Components.Schemas + .PublicApiService_SignTransactionRequest() - // Create the input for the UpdatePrivateKeyTag method - let input = Operations.UpdatePrivateKeyTag.Input( + let input = Operations.PublicApiService_SignTransaction.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(updatePrivateKeyTagRequest) + body: .json(publicApiService_SignTransactionRequest) ) - - // Call the UpdatePrivateKeyTag method using the underlyingClient - return try await underlyingClient.UpdatePrivateKeyTag(input) + return try await underlyingClient.PublicApiService_SignTransaction(input) } + public func publicApiService_UpdatePolicy() async throws + -> Operations.PublicApiService_UpdatePolicy.Output + { - public func updateRootQuorum( - organizationId: String, - threshold: Int32, userIds: [String] - ) async throws -> Operations.UpdateRootQuorum.Output { - - // Create the UpdateRootQuorumIntent - let updateRootQuorumIntent = Components.Schemas.UpdateRootQuorumIntent( - threshold: threshold, userIds: userIds) + // Create the PublicApiService_UpdatePolicyRequest + let publicApiService_UpdatePolicyRequest = Components.Schemas + .PublicApiService_UpdatePolicyRequest() - // Create the UpdateRootQuorumRequest - let updateRootQuorumRequest = Components.Schemas.UpdateRootQuorumRequest( - _type: .ACTIVITY_TYPE_UPDATE_ROOT_QUORUM, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: updateRootQuorumIntent + let input = Operations.PublicApiService_UpdatePolicy.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_UpdatePolicyRequest) ) + return try await underlyingClient.PublicApiService_UpdatePolicy(input) + } + public func publicApiService_UpdatePrivateKeyTag() async throws + -> Operations.PublicApiService_UpdatePrivateKeyTag.Output + { + + // Create the PublicApiService_UpdatePrivateKeyTagRequest + let publicApiService_UpdatePrivateKeyTagRequest = Components.Schemas + .PublicApiService_UpdatePrivateKeyTagRequest() - // Create the input for the UpdateRootQuorum method - let input = Operations.UpdateRootQuorum.Input( + let input = Operations.PublicApiService_UpdatePrivateKeyTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(updateRootQuorumRequest) + body: .json(publicApiService_UpdatePrivateKeyTagRequest) ) - - // Call the UpdateRootQuorum method using the underlyingClient - return try await underlyingClient.UpdateRootQuorum(input) + return try await underlyingClient.PublicApiService_UpdatePrivateKeyTag(input) } + public func publicApiService_UpdateRootQuorum() async throws + -> Operations.PublicApiService_UpdateRootQuorum.Output + { - public func updateUser( - organizationId: String, - userId: String, userName: String?, userEmail: String?, userTagIds: [String]? - ) async throws -> Operations.UpdateUser.Output { - - // Create the UpdateUserIntent - let updateUserIntent = Components.Schemas.UpdateUserIntent( - userId: userId, userName: userName, userEmail: userEmail, userTagIds: userTagIds) + // Create the PublicApiService_UpdateRootQuorumRequest + let publicApiService_UpdateRootQuorumRequest = Components.Schemas + .PublicApiService_UpdateRootQuorumRequest() - // Create the UpdateUserRequest - let updateUserRequest = Components.Schemas.UpdateUserRequest( - _type: .ACTIVITY_TYPE_UPDATE_USER, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: updateUserIntent + let input = Operations.PublicApiService_UpdateRootQuorum.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_UpdateRootQuorumRequest) ) + return try await underlyingClient.PublicApiService_UpdateRootQuorum(input) + } + public func publicApiService_UpdateUser() async throws + -> Operations.PublicApiService_UpdateUser.Output + { + + // Create the PublicApiService_UpdateUserRequest + let publicApiService_UpdateUserRequest = Components.Schemas.PublicApiService_UpdateUserRequest() - // Create the input for the UpdateUser method - let input = Operations.UpdateUser.Input( + let input = Operations.PublicApiService_UpdateUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(updateUserRequest) + body: .json(publicApiService_UpdateUserRequest) ) - - // Call the UpdateUser method using the underlyingClient - return try await underlyingClient.UpdateUser(input) + return try await underlyingClient.PublicApiService_UpdateUser(input) } + public func publicApiService_UpdateUserTag() async throws + -> Operations.PublicApiService_UpdateUserTag.Output + { - public func updateUserTag( - organizationId: String, - userTagId: String, newUserTagName: String?, addUserIds: [String], removeUserIds: [String] - ) async throws -> Operations.UpdateUserTag.Output { - - // Create the UpdateUserTagIntent - let updateUserTagIntent = Components.Schemas.UpdateUserTagIntent( - userTagId: userTagId, newUserTagName: newUserTagName, addUserIds: addUserIds, - removeUserIds: removeUserIds) + // Create the PublicApiService_UpdateUserTagRequest + let publicApiService_UpdateUserTagRequest = Components.Schemas + .PublicApiService_UpdateUserTagRequest() - // Create the UpdateUserTagRequest - let updateUserTagRequest = Components.Schemas.UpdateUserTagRequest( - _type: .ACTIVITY_TYPE_UPDATE_USER_TAG, - timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), - organizationId: organizationId, - parameters: updateUserTagIntent + let input = Operations.PublicApiService_UpdateUserTag.Input( + headers: .init(accept: [.init(contentType: .json)]), + body: .json(publicApiService_UpdateUserTagRequest) ) + return try await underlyingClient.PublicApiService_UpdateUserTag(input) + } + public func publicApiService_NOOPCodegenAnchor() async throws + -> Operations.PublicApiService_NOOPCodegenAnchor.Output + { - // Create the input for the UpdateUserTag method - let input = Operations.UpdateUserTag.Input( + // Create the PublicApiService_NOOPCodegenAnchorRequest + let publicApiService_NOOPCodegenAnchorRequest = Components.Schemas + .PublicApiService_NOOPCodegenAnchorRequest() + + let input = Operations.PublicApiService_NOOPCodegenAnchor.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(updateUserTagRequest) + body: .json(publicApiService_NOOPCodegenAnchorRequest) ) - - // Call the UpdateUserTag method using the underlyingClient - return try await underlyingClient.UpdateUserTag(input) + return try await underlyingClient.PublicApiService_NOOPCodegenAnchor(input) } } From ff7c933f8c92979f63537ef5fbd6d4b40ebcd101 Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Mon, 11 Nov 2024 15:07:49 +0700 Subject: [PATCH 3/9] round 2 --- .../TurnkeySDK/TurnkeyClient.generated.swift | 2001 ++++++++---- Sources/TurnkeySDK/openapi.yaml | 2828 +++++++---------- 2 files changed, 2398 insertions(+), 2431 deletions(-) diff --git a/Sources/TurnkeySDK/TurnkeyClient.generated.swift b/Sources/TurnkeySDK/TurnkeyClient.generated.swift index d380a84..f34e74e 100644 --- a/Sources/TurnkeySDK/TurnkeyClient.generated.swift +++ b/Sources/TurnkeySDK/TurnkeyClient.generated.swift @@ -158,1052 +158,1719 @@ public struct TurnkeyClient { return (response, verify) } - public func publicApiService_GetActivity() async throws - -> Operations.PublicApiService_GetActivity.Output + public func getActivity(organizationId: String, activityId: String) async throws + -> Operations.GetActivity.Output { - // Create the PublicApiService_GetActivityRequest - let publicApiService_GetActivityRequest = Components.Schemas - .PublicApiService_GetActivityRequest() + // Create the GetActivityRequest + let getActivityRequest = Components.Schemas.GetActivityRequest( + organizationId: organizationId, activityId: activityId + ) - let input = Operations.PublicApiService_GetActivity.Input( + let input = Operations.GetActivity.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetActivityRequest) + body: .json(getActivityRequest) ) - return try await underlyingClient.PublicApiService_GetActivity(input) + return try await underlyingClient.GetActivity(input) } - public func publicApiService_GetApiKey() async throws - -> Operations.PublicApiService_GetApiKey.Output + public func getApiKey(organizationId: String, apiKeyId: String) async throws + -> Operations.GetApiKey.Output { - // Create the PublicApiService_GetApiKeyRequest - let publicApiService_GetApiKeyRequest = Components.Schemas.PublicApiService_GetApiKeyRequest() + // Create the GetApiKeyRequest + let getApiKeyRequest = Components.Schemas.GetApiKeyRequest( + organizationId: organizationId, apiKeyId: apiKeyId + ) - let input = Operations.PublicApiService_GetApiKey.Input( + let input = Operations.GetApiKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetApiKeyRequest) + body: .json(getApiKeyRequest) ) - return try await underlyingClient.PublicApiService_GetApiKey(input) + return try await underlyingClient.GetApiKey(input) } - public func publicApiService_GetApiKeys() async throws - -> Operations.PublicApiService_GetApiKeys.Output + public func getApiKeys(organizationId: String, userId: String?) async throws + -> Operations.GetApiKeys.Output { - // Create the PublicApiService_GetApiKeysRequest - let publicApiService_GetApiKeysRequest = Components.Schemas.PublicApiService_GetApiKeysRequest() + // Create the GetApiKeysRequest + let getApiKeysRequest = Components.Schemas.GetApiKeysRequest( + organizationId: organizationId, userId: userId + ) - let input = Operations.PublicApiService_GetApiKeys.Input( + let input = Operations.GetApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetApiKeysRequest) + body: .json(getApiKeysRequest) ) - return try await underlyingClient.PublicApiService_GetApiKeys(input) + return try await underlyingClient.GetApiKeys(input) } - public func publicApiService_GetAttestationDocument() async throws - -> Operations.PublicApiService_GetAttestationDocument.Output + public func getAuthenticator(organizationId: String, authenticatorId: String) async throws + -> Operations.GetAuthenticator.Output { - // Create the PublicApiService_GetAttestationDocumentRequest - let publicApiService_GetAttestationDocumentRequest = Components.Schemas - .PublicApiService_GetAttestationDocumentRequest() + // Create the GetAuthenticatorRequest + let getAuthenticatorRequest = Components.Schemas.GetAuthenticatorRequest( + organizationId: organizationId, authenticatorId: authenticatorId + ) - let input = Operations.PublicApiService_GetAttestationDocument.Input( + let input = Operations.GetAuthenticator.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetAttestationDocumentRequest) + body: .json(getAuthenticatorRequest) ) - return try await underlyingClient.PublicApiService_GetAttestationDocument(input) + return try await underlyingClient.GetAuthenticator(input) } - public func publicApiService_GetAuthenticator() async throws - -> Operations.PublicApiService_GetAuthenticator.Output + public func getAuthenticators(organizationId: String, userId: String) async throws + -> Operations.GetAuthenticators.Output { - // Create the PublicApiService_GetAuthenticatorRequest - let publicApiService_GetAuthenticatorRequest = Components.Schemas - .PublicApiService_GetAuthenticatorRequest() + // Create the GetAuthenticatorsRequest + let getAuthenticatorsRequest = Components.Schemas.GetAuthenticatorsRequest( + organizationId: organizationId, userId: userId + ) - let input = Operations.PublicApiService_GetAuthenticator.Input( + let input = Operations.GetAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetAuthenticatorRequest) + body: .json(getAuthenticatorsRequest) ) - return try await underlyingClient.PublicApiService_GetAuthenticator(input) + return try await underlyingClient.GetAuthenticators(input) } - public func publicApiService_GetAuthenticators() async throws - -> Operations.PublicApiService_GetAuthenticators.Output + public func getOauthProviders(organizationId: String, userId: String?) async throws + -> Operations.GetOauthProviders.Output { - // Create the PublicApiService_GetAuthenticatorsRequest - let publicApiService_GetAuthenticatorsRequest = Components.Schemas - .PublicApiService_GetAuthenticatorsRequest() + // Create the GetOauthProvidersRequest + let getOauthProvidersRequest = Components.Schemas.GetOauthProvidersRequest( + organizationId: organizationId, userId: userId + ) - let input = Operations.PublicApiService_GetAuthenticators.Input( + let input = Operations.GetOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetAuthenticatorsRequest) + body: .json(getOauthProvidersRequest) ) - return try await underlyingClient.PublicApiService_GetAuthenticators(input) + return try await underlyingClient.GetOauthProviders(input) } - public func publicApiService_GetOauthProviders() async throws - -> Operations.PublicApiService_GetOauthProviders.Output + public func getOrganizationConfigs(organizationId: String) async throws + -> Operations.GetOrganizationConfigs.Output { - // Create the PublicApiService_GetOauthProvidersRequest - let publicApiService_GetOauthProvidersRequest = Components.Schemas - .PublicApiService_GetOauthProvidersRequest() + // Create the GetOrganizationConfigsRequest + let getOrganizationConfigsRequest = Components.Schemas.GetOrganizationConfigsRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetOauthProviders.Input( + let input = Operations.GetOrganizationConfigs.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetOauthProvidersRequest) + body: .json(getOrganizationConfigsRequest) ) - return try await underlyingClient.PublicApiService_GetOauthProviders(input) + return try await underlyingClient.GetOrganizationConfigs(input) } - public func publicApiService_GetOrganization() async throws - -> Operations.PublicApiService_GetOrganization.Output + public func getPolicy(organizationId: String, policyId: String) async throws + -> Operations.GetPolicy.Output { - // Create the PublicApiService_GetOrganizationRequest - let publicApiService_GetOrganizationRequest = Components.Schemas - .PublicApiService_GetOrganizationRequest() + // Create the GetPolicyRequest + let getPolicyRequest = Components.Schemas.GetPolicyRequest( + organizationId: organizationId, policyId: policyId + ) - let input = Operations.PublicApiService_GetOrganization.Input( + let input = Operations.GetPolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetOrganizationRequest) + body: .json(getPolicyRequest) ) - return try await underlyingClient.PublicApiService_GetOrganization(input) + return try await underlyingClient.GetPolicy(input) } - public func publicApiService_GetOrganizationConfigs() async throws - -> Operations.PublicApiService_GetOrganizationConfigs.Output + public func getPrivateKey(organizationId: String, privateKeyId: String) async throws + -> Operations.GetPrivateKey.Output { - // Create the PublicApiService_GetOrganizationConfigsRequest - let publicApiService_GetOrganizationConfigsRequest = Components.Schemas - .PublicApiService_GetOrganizationConfigsRequest() + // Create the GetPrivateKeyRequest + let getPrivateKeyRequest = Components.Schemas.GetPrivateKeyRequest( + organizationId: organizationId, privateKeyId: privateKeyId + ) - let input = Operations.PublicApiService_GetOrganizationConfigs.Input( + let input = Operations.GetPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetOrganizationConfigsRequest) + body: .json(getPrivateKeyRequest) ) - return try await underlyingClient.PublicApiService_GetOrganizationConfigs(input) + return try await underlyingClient.GetPrivateKey(input) } - public func publicApiService_GetPolicy() async throws - -> Operations.PublicApiService_GetPolicy.Output + public func getUser(organizationId: String, userId: String) async throws + -> Operations.GetUser.Output { - // Create the PublicApiService_GetPolicyRequest - let publicApiService_GetPolicyRequest = Components.Schemas.PublicApiService_GetPolicyRequest() + // Create the GetUserRequest + let getUserRequest = Components.Schemas.GetUserRequest( + organizationId: organizationId, userId: userId + ) - let input = Operations.PublicApiService_GetPolicy.Input( + let input = Operations.GetUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetPolicyRequest) + body: .json(getUserRequest) ) - return try await underlyingClient.PublicApiService_GetPolicy(input) + return try await underlyingClient.GetUser(input) } - public func publicApiService_GetPrivateKey() async throws - -> Operations.PublicApiService_GetPrivateKey.Output + public func getWallet(organizationId: String, walletId: String) async throws + -> Operations.GetWallet.Output { - // Create the PublicApiService_GetPrivateKeyRequest - let publicApiService_GetPrivateKeyRequest = Components.Schemas - .PublicApiService_GetPrivateKeyRequest() + // Create the GetWalletRequest + let getWalletRequest = Components.Schemas.GetWalletRequest( + organizationId: organizationId, walletId: walletId + ) - let input = Operations.PublicApiService_GetPrivateKey.Input( + let input = Operations.GetWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetPrivateKeyRequest) + body: .json(getWalletRequest) ) - return try await underlyingClient.PublicApiService_GetPrivateKey(input) + return try await underlyingClient.GetWallet(input) } - public func publicApiService_GetUser() async throws -> Operations.PublicApiService_GetUser.Output - { + public func getActivities( + organizationId: String, filterByStatus: [Components.Schemas.ActivityStatus]?, + paginationOptions: Components.Schemas.Pagination?, + filterByType: [Components.Schemas.ActivityType]? + ) async throws -> Operations.GetActivities.Output { - // Create the PublicApiService_GetUserRequest - let publicApiService_GetUserRequest = Components.Schemas.PublicApiService_GetUserRequest() + // Create the GetActivitiesRequest + let getActivitiesRequest = Components.Schemas.GetActivitiesRequest( + organizationId: organizationId, filterByStatus: filterByStatus, + paginationOptions: paginationOptions, filterByType: filterByType + ) - let input = Operations.PublicApiService_GetUser.Input( + let input = Operations.GetActivities.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetUserRequest) + body: .json(getActivitiesRequest) ) - return try await underlyingClient.PublicApiService_GetUser(input) + return try await underlyingClient.GetActivities(input) } - public func publicApiService_GetWallet() async throws - -> Operations.PublicApiService_GetWallet.Output - { + public func getPolicies(organizationId: String) async throws -> Operations.GetPolicies.Output { - // Create the PublicApiService_GetWalletRequest - let publicApiService_GetWalletRequest = Components.Schemas.PublicApiService_GetWalletRequest() + // Create the GetPoliciesRequest + let getPoliciesRequest = Components.Schemas.GetPoliciesRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetWallet.Input( + let input = Operations.GetPolicies.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetWalletRequest) + body: .json(getPoliciesRequest) ) - return try await underlyingClient.PublicApiService_GetWallet(input) + return try await underlyingClient.GetPolicies(input) } - public func publicApiService_GetActivities() async throws - -> Operations.PublicApiService_GetActivities.Output + public func listPrivateKeyTags(organizationId: String) async throws + -> Operations.ListPrivateKeyTags.Output { - // Create the PublicApiService_GetActivitiesRequest - let publicApiService_GetActivitiesRequest = Components.Schemas - .PublicApiService_GetActivitiesRequest() + // Create the ListPrivateKeyTagsRequest + let listPrivateKeyTagsRequest = Components.Schemas.ListPrivateKeyTagsRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetActivities.Input( + let input = Operations.ListPrivateKeyTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetActivitiesRequest) + body: .json(listPrivateKeyTagsRequest) ) - return try await underlyingClient.PublicApiService_GetActivities(input) + return try await underlyingClient.ListPrivateKeyTags(input) } - public func publicApiService_GetPolicies() async throws - -> Operations.PublicApiService_GetPolicies.Output + public func getPrivateKeys(organizationId: String) async throws + -> Operations.GetPrivateKeys.Output { - // Create the PublicApiService_GetPoliciesRequest - let publicApiService_GetPoliciesRequest = Components.Schemas - .PublicApiService_GetPoliciesRequest() + // Create the GetPrivateKeysRequest + let getPrivateKeysRequest = Components.Schemas.GetPrivateKeysRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetPolicies.Input( + let input = Operations.GetPrivateKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetPoliciesRequest) + body: .json(getPrivateKeysRequest) ) - return try await underlyingClient.PublicApiService_GetPolicies(input) + return try await underlyingClient.GetPrivateKeys(input) } - public func publicApiService_ListPrivateKeyTags() async throws - -> Operations.PublicApiService_ListPrivateKeyTags.Output - { + public func getSubOrgIds( + organizationId: String, filterType: String?, filterValue: String?, + paginationOptions: Components.Schemas.Pagination? + ) async throws -> Operations.GetSubOrgIds.Output { - // Create the PublicApiService_ListPrivateKeyTagsRequest - let publicApiService_ListPrivateKeyTagsRequest = Components.Schemas - .PublicApiService_ListPrivateKeyTagsRequest() + // Create the GetSubOrgIdsRequest + let getSubOrgIdsRequest = Components.Schemas.GetSubOrgIdsRequest( + organizationId: organizationId, filterType: filterType, filterValue: filterValue, + paginationOptions: paginationOptions + ) - let input = Operations.PublicApiService_ListPrivateKeyTags.Input( + let input = Operations.GetSubOrgIds.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ListPrivateKeyTagsRequest) + body: .json(getSubOrgIdsRequest) ) - return try await underlyingClient.PublicApiService_ListPrivateKeyTags(input) + return try await underlyingClient.GetSubOrgIds(input) } - public func publicApiService_GetPrivateKeys() async throws - -> Operations.PublicApiService_GetPrivateKeys.Output - { + public func listUserTags(organizationId: String) async throws -> Operations.ListUserTags.Output { - // Create the PublicApiService_GetPrivateKeysRequest - let publicApiService_GetPrivateKeysRequest = Components.Schemas - .PublicApiService_GetPrivateKeysRequest() + // Create the ListUserTagsRequest + let listUserTagsRequest = Components.Schemas.ListUserTagsRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetPrivateKeys.Input( + let input = Operations.ListUserTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetPrivateKeysRequest) + body: .json(listUserTagsRequest) ) - return try await underlyingClient.PublicApiService_GetPrivateKeys(input) + return try await underlyingClient.ListUserTags(input) } - public func publicApiService_GetSubOrgIds() async throws - -> Operations.PublicApiService_GetSubOrgIds.Output - { + public func getUsers(organizationId: String) async throws -> Operations.GetUsers.Output { - // Create the PublicApiService_GetSubOrgIdsRequest - let publicApiService_GetSubOrgIdsRequest = Components.Schemas - .PublicApiService_GetSubOrgIdsRequest() + // Create the GetUsersRequest + let getUsersRequest = Components.Schemas.GetUsersRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetSubOrgIds.Input( + let input = Operations.GetUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetSubOrgIdsRequest) + body: .json(getUsersRequest) ) - return try await underlyingClient.PublicApiService_GetSubOrgIds(input) + return try await underlyingClient.GetUsers(input) } - public func publicApiService_ListUserTags() async throws - -> Operations.PublicApiService_ListUserTags.Output - { + public func getWalletAccounts( + organizationId: String, walletId: String, paginationOptions: Components.Schemas.Pagination? + ) async throws -> Operations.GetWalletAccounts.Output { - // Create the PublicApiService_ListUserTagsRequest - let publicApiService_ListUserTagsRequest = Components.Schemas - .PublicApiService_ListUserTagsRequest() + // Create the GetWalletAccountsRequest + let getWalletAccountsRequest = Components.Schemas.GetWalletAccountsRequest( + organizationId: organizationId, walletId: walletId, paginationOptions: paginationOptions + ) - let input = Operations.PublicApiService_ListUserTags.Input( + let input = Operations.GetWalletAccounts.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ListUserTagsRequest) + body: .json(getWalletAccountsRequest) ) - return try await underlyingClient.PublicApiService_ListUserTags(input) + return try await underlyingClient.GetWalletAccounts(input) } - public func publicApiService_GetUsers() async throws - -> Operations.PublicApiService_GetUsers.Output - { + public func getWallets(organizationId: String) async throws -> Operations.GetWallets.Output { - // Create the PublicApiService_GetUsersRequest - let publicApiService_GetUsersRequest = Components.Schemas.PublicApiService_GetUsersRequest() + // Create the GetWalletsRequest + let getWalletsRequest = Components.Schemas.GetWalletsRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetUsers.Input( + let input = Operations.GetWallets.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetUsersRequest) + body: .json(getWalletsRequest) ) - return try await underlyingClient.PublicApiService_GetUsers(input) + return try await underlyingClient.GetWallets(input) } - public func publicApiService_GetWalletAccounts() async throws - -> Operations.PublicApiService_GetWalletAccounts.Output - { + public func getWhoami(organizationId: String) async throws -> Operations.GetWhoami.Output { - // Create the PublicApiService_GetWalletAccountsRequest - let publicApiService_GetWalletAccountsRequest = Components.Schemas - .PublicApiService_GetWalletAccountsRequest() + // Create the GetWhoamiRequest + let getWhoamiRequest = Components.Schemas.GetWhoamiRequest( + organizationId: organizationId + ) - let input = Operations.PublicApiService_GetWalletAccounts.Input( + let input = Operations.GetWhoami.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetWalletAccountsRequest) + body: .json(getWhoamiRequest) ) - return try await underlyingClient.PublicApiService_GetWalletAccounts(input) + return try await underlyingClient.GetWhoami(input) } - public func publicApiService_GetWallets() async throws - -> Operations.PublicApiService_GetWallets.Output - { - // Create the PublicApiService_GetWalletsRequest - let publicApiService_GetWalletsRequest = Components.Schemas.PublicApiService_GetWalletsRequest() + public func approveActivity( + organizationId: String, + fingerprint: String + ) async throws -> Operations.ApproveActivity.Output { - let input = Operations.PublicApiService_GetWallets.Input( - headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetWalletsRequest) - ) - return try await underlyingClient.PublicApiService_GetWallets(input) - } - public func publicApiService_GetWhoami() async throws - -> Operations.PublicApiService_GetWhoami.Output - { + // Create the ApproveActivityIntent + let approveActivityIntent = Components.Schemas.ApproveActivityIntent( + fingerprint: fingerprint) - // Create the PublicApiService_GetWhoamiRequest - let publicApiService_GetWhoamiRequest = Components.Schemas.PublicApiService_GetWhoamiRequest() + // Create the ApproveActivityRequest + let approveActivityRequest = Components.Schemas.ApproveActivityRequest( + _type: .ACTIVITY_TYPE_APPROVE_ACTIVITY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: approveActivityIntent + ) - let input = Operations.PublicApiService_GetWhoami.Input( + // Create the input for the ApproveActivity method + let input = Operations.ApproveActivity.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_GetWhoamiRequest) + body: .json(approveActivityRequest) ) - return try await underlyingClient.PublicApiService_GetWhoami(input) + + // Call the ApproveActivity method using the underlyingClient + return try await underlyingClient.ApproveActivity(input) } - public func publicApiService_ApproveActivity() async throws - -> Operations.PublicApiService_ApproveActivity.Output - { - // Create the PublicApiService_ApproveActivityRequest - let publicApiService_ApproveActivityRequest = Components.Schemas - .PublicApiService_ApproveActivityRequest() + public func createApiKeys( + organizationId: String, + apiKeys: [Components.Schemas.ApiKeyParamsV2], userId: String + ) async throws -> Operations.CreateApiKeys.Output { - let input = Operations.PublicApiService_ApproveActivity.Input( - headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ApproveActivityRequest) - ) - return try await underlyingClient.PublicApiService_ApproveActivity(input) - } - public func publicApiService_CreateApiKeys() async throws - -> Operations.PublicApiService_CreateApiKeys.Output - { + // Create the CreateApiKeysIntentV2 + let createApiKeysIntent = Components.Schemas.CreateApiKeysIntentV2( + apiKeys: apiKeys, userId: userId) - // Create the PublicApiService_CreateApiKeysRequest - let publicApiService_CreateApiKeysRequest = Components.Schemas - .PublicApiService_CreateApiKeysRequest() + // Create the CreateApiKeysRequest + let createApiKeysRequest = Components.Schemas.CreateApiKeysRequest( + _type: .ACTIVITY_TYPE_CREATE_API_KEYS_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createApiKeysIntent + ) - let input = Operations.PublicApiService_CreateApiKeys.Input( + // Create the input for the CreateApiKeys method + let input = Operations.CreateApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateApiKeysRequest) + body: .json(createApiKeysRequest) ) - return try await underlyingClient.PublicApiService_CreateApiKeys(input) + + // Call the CreateApiKeys method using the underlyingClient + return try await underlyingClient.CreateApiKeys(input) } - public func publicApiService_CreateApiOnlyUsers() async throws - -> Operations.PublicApiService_CreateApiOnlyUsers.Output - { - // Create the PublicApiService_CreateApiOnlyUsersRequest - let publicApiService_CreateApiOnlyUsersRequest = Components.Schemas - .PublicApiService_CreateApiOnlyUsersRequest() + public func createAuthenticators( + organizationId: String, + authenticators: [Components.Schemas.AuthenticatorParamsV2], userId: String + ) async throws -> Operations.CreateAuthenticators.Output { - let input = Operations.PublicApiService_CreateApiOnlyUsers.Input( - headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateApiOnlyUsersRequest) - ) - return try await underlyingClient.PublicApiService_CreateApiOnlyUsers(input) - } - public func publicApiService_CreateAuthenticators() async throws - -> Operations.PublicApiService_CreateAuthenticators.Output - { + // Create the CreateAuthenticatorsIntentV2 + let createAuthenticatorsIntent = Components.Schemas.CreateAuthenticatorsIntentV2( + authenticators: authenticators, userId: userId) - // Create the PublicApiService_CreateAuthenticatorsRequest - let publicApiService_CreateAuthenticatorsRequest = Components.Schemas - .PublicApiService_CreateAuthenticatorsRequest() + // Create the CreateAuthenticatorsRequest + let createAuthenticatorsRequest = Components.Schemas.CreateAuthenticatorsRequest( + _type: .ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createAuthenticatorsIntent + ) - let input = Operations.PublicApiService_CreateAuthenticators.Input( + // Create the input for the CreateAuthenticators method + let input = Operations.CreateAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateAuthenticatorsRequest) + body: .json(createAuthenticatorsRequest) ) - return try await underlyingClient.PublicApiService_CreateAuthenticators(input) + + // Call the CreateAuthenticators method using the underlyingClient + return try await underlyingClient.CreateAuthenticators(input) } - public func publicApiService_CreateInvitations() async throws - -> Operations.PublicApiService_CreateInvitations.Output - { - // Create the PublicApiService_CreateInvitationsRequest - let publicApiService_CreateInvitationsRequest = Components.Schemas - .PublicApiService_CreateInvitationsRequest() + public func createInvitations( + organizationId: String, + invitations: [Components.Schemas.InvitationParams] + ) async throws -> Operations.CreateInvitations.Output { + + // Create the CreateInvitationsIntent + let createInvitationsIntent = Components.Schemas.CreateInvitationsIntent( + invitations: invitations) - let input = Operations.PublicApiService_CreateInvitations.Input( - headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateInvitationsRequest) + // Create the CreateInvitationsRequest + let createInvitationsRequest = Components.Schemas.CreateInvitationsRequest( + _type: .ACTIVITY_TYPE_CREATE_INVITATIONS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createInvitationsIntent ) - return try await underlyingClient.PublicApiService_CreateInvitations(input) - } - public func publicApiService_CreateOauthProviders() async throws - -> Operations.PublicApiService_CreateOauthProviders.Output - { - - // Create the PublicApiService_CreateOauthProvidersRequest - let publicApiService_CreateOauthProvidersRequest = Components.Schemas - .PublicApiService_CreateOauthProvidersRequest() - let input = Operations.PublicApiService_CreateOauthProviders.Input( + // Create the input for the CreateInvitations method + let input = Operations.CreateInvitations.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateOauthProvidersRequest) + body: .json(createInvitationsRequest) ) - return try await underlyingClient.PublicApiService_CreateOauthProviders(input) + + // Call the CreateInvitations method using the underlyingClient + return try await underlyingClient.CreateInvitations(input) } - public func publicApiService_CreatePolicies() async throws - -> Operations.PublicApiService_CreatePolicies.Output - { - // Create the PublicApiService_CreatePoliciesRequest - let publicApiService_CreatePoliciesRequest = Components.Schemas - .PublicApiService_CreatePoliciesRequest() + public func createOauthProviders( + organizationId: String, + userId: String, oauthProviders: [Components.Schemas.OauthProviderParams] + ) async throws -> Operations.CreateOauthProviders.Output { + + // Create the CreateOauthProvidersIntent + let createOauthProvidersIntent = Components.Schemas.CreateOauthProvidersIntent( + userId: userId, oauthProviders: oauthProviders) + + // Create the CreateOauthProvidersRequest + let createOauthProvidersRequest = Components.Schemas.CreateOauthProvidersRequest( + _type: .ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createOauthProvidersIntent + ) - let input = Operations.PublicApiService_CreatePolicies.Input( + // Create the input for the CreateOauthProviders method + let input = Operations.CreateOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreatePoliciesRequest) + body: .json(createOauthProvidersRequest) ) - return try await underlyingClient.PublicApiService_CreatePolicies(input) + + // Call the CreateOauthProviders method using the underlyingClient + return try await underlyingClient.CreateOauthProviders(input) } - public func publicApiService_CreatePolicy() async throws - -> Operations.PublicApiService_CreatePolicy.Output - { - // Create the PublicApiService_CreatePolicyRequest - let publicApiService_CreatePolicyRequest = Components.Schemas - .PublicApiService_CreatePolicyRequest() + public func createPolicies( + organizationId: String, + policies: [Components.Schemas.CreatePolicyIntentV3] + ) async throws -> Operations.CreatePolicies.Output { + + // Create the CreatePoliciesIntent + let createPoliciesIntent = Components.Schemas.CreatePoliciesIntent( + policies: policies) + + // Create the CreatePoliciesRequest + let createPoliciesRequest = Components.Schemas.CreatePoliciesRequest( + _type: .ACTIVITY_TYPE_CREATE_POLICIES, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createPoliciesIntent + ) - let input = Operations.PublicApiService_CreatePolicy.Input( + // Create the input for the CreatePolicies method + let input = Operations.CreatePolicies.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreatePolicyRequest) + body: .json(createPoliciesRequest) ) - return try await underlyingClient.PublicApiService_CreatePolicy(input) + + // Call the CreatePolicies method using the underlyingClient + return try await underlyingClient.CreatePolicies(input) } - public func publicApiService_CreatePrivateKeyTag() async throws - -> Operations.PublicApiService_CreatePrivateKeyTag.Output - { - // Create the PublicApiService_CreatePrivateKeyTagRequest - let publicApiService_CreatePrivateKeyTagRequest = Components.Schemas - .PublicApiService_CreatePrivateKeyTagRequest() + public func createPolicy( + organizationId: String, + policyName: String, effect: Components.Schemas.Effect, condition: String?, consensus: String?, + notes: String? + ) async throws -> Operations.CreatePolicy.Output { - let input = Operations.PublicApiService_CreatePrivateKeyTag.Input( + // Create the CreatePolicyIntentV3 + let createPolicyIntent = Components.Schemas.CreatePolicyIntentV3( + policyName: policyName, effect: effect, condition: condition, consensus: consensus, + notes: notes) + + // Create the CreatePolicyRequest + let createPolicyRequest = Components.Schemas.CreatePolicyRequest( + _type: .ACTIVITY_TYPE_CREATE_POLICY_V3, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createPolicyIntent + ) + + // Create the input for the CreatePolicy method + let input = Operations.CreatePolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreatePrivateKeyTagRequest) + body: .json(createPolicyRequest) ) - return try await underlyingClient.PublicApiService_CreatePrivateKeyTag(input) + + // Call the CreatePolicy method using the underlyingClient + return try await underlyingClient.CreatePolicy(input) } - public func publicApiService_CreatePrivateKeys() async throws - -> Operations.PublicApiService_CreatePrivateKeys.Output - { - // Create the PublicApiService_CreatePrivateKeysRequest - let publicApiService_CreatePrivateKeysRequest = Components.Schemas - .PublicApiService_CreatePrivateKeysRequest() + public func createPrivateKeyTag( + organizationId: String, + privateKeyTagName: String, privateKeyIds: [String] + ) async throws -> Operations.CreatePrivateKeyTag.Output { + + // Create the CreatePrivateKeyTagIntent + let createPrivateKeyTagIntent = Components.Schemas.CreatePrivateKeyTagIntent( + privateKeyTagName: privateKeyTagName, privateKeyIds: privateKeyIds) - let input = Operations.PublicApiService_CreatePrivateKeys.Input( + // Create the CreatePrivateKeyTagRequest + let createPrivateKeyTagRequest = Components.Schemas.CreatePrivateKeyTagRequest( + _type: .ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createPrivateKeyTagIntent + ) + + // Create the input for the CreatePrivateKeyTag method + let input = Operations.CreatePrivateKeyTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreatePrivateKeysRequest) + body: .json(createPrivateKeyTagRequest) ) - return try await underlyingClient.PublicApiService_CreatePrivateKeys(input) + + // Call the CreatePrivateKeyTag method using the underlyingClient + return try await underlyingClient.CreatePrivateKeyTag(input) } - public func publicApiService_CreateReadOnlySession() async throws - -> Operations.PublicApiService_CreateReadOnlySession.Output - { - // Create the PublicApiService_CreateReadOnlySessionRequest - let publicApiService_CreateReadOnlySessionRequest = Components.Schemas - .PublicApiService_CreateReadOnlySessionRequest() + public func createPrivateKeys( + organizationId: String, + privateKeys: [Components.Schemas.PrivateKeyParams] + ) async throws -> Operations.CreatePrivateKeys.Output { - let input = Operations.PublicApiService_CreateReadOnlySession.Input( + // Create the CreatePrivateKeysIntentV2 + let createPrivateKeysIntent = Components.Schemas.CreatePrivateKeysIntentV2( + privateKeys: privateKeys) + + // Create the CreatePrivateKeysRequest + let createPrivateKeysRequest = Components.Schemas.CreatePrivateKeysRequest( + _type: .ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createPrivateKeysIntent + ) + + // Create the input for the CreatePrivateKeys method + let input = Operations.CreatePrivateKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateReadOnlySessionRequest) + body: .json(createPrivateKeysRequest) ) - return try await underlyingClient.PublicApiService_CreateReadOnlySession(input) + + // Call the CreatePrivateKeys method using the underlyingClient + return try await underlyingClient.CreatePrivateKeys(input) } - public func publicApiService_CreateReadWriteSession() async throws - -> Operations.PublicApiService_CreateReadWriteSession.Output - { - // Create the PublicApiService_CreateReadWriteSessionRequest - let publicApiService_CreateReadWriteSessionRequest = Components.Schemas - .PublicApiService_CreateReadWriteSessionRequest() + public func createReadOnlySession( + organizationId: String, + ) async throws -> Operations.CreateReadOnlySession.Output { - let input = Operations.PublicApiService_CreateReadWriteSession.Input( + // Create the CreateReadOnlySessionIntent + let createReadOnlySessionIntent = Components.Schemas.CreateReadOnlySessionIntent() + + // Create the CreateReadOnlySessionRequest + let createReadOnlySessionRequest = Components.Schemas.CreateReadOnlySessionRequest( + _type: .ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createReadOnlySessionIntent + ) + + // Create the input for the CreateReadOnlySession method + let input = Operations.CreateReadOnlySession.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateReadWriteSessionRequest) + body: .json(createReadOnlySessionRequest) ) - return try await underlyingClient.PublicApiService_CreateReadWriteSession(input) + + // Call the CreateReadOnlySession method using the underlyingClient + return try await underlyingClient.CreateReadOnlySession(input) } - public func publicApiService_CreateSubOrganization() async throws - -> Operations.PublicApiService_CreateSubOrganization.Output - { - // Create the PublicApiService_CreateSubOrganizationRequest - let publicApiService_CreateSubOrganizationRequest = Components.Schemas - .PublicApiService_CreateSubOrganizationRequest() + public func createReadWriteSession( + organizationId: String, + targetPublicKey: String, userId: String?, apiKeyName: String?, expirationSeconds: String? + ) async throws -> Operations.CreateReadWriteSession.Output { + + // Create the CreateReadWriteSessionIntentV2 + let createReadWriteSessionIntent = Components.Schemas.CreateReadWriteSessionIntentV2( + targetPublicKey: targetPublicKey, userId: userId, apiKeyName: apiKeyName, + expirationSeconds: expirationSeconds) + + // Create the CreateReadWriteSessionRequest + let createReadWriteSessionRequest = Components.Schemas.CreateReadWriteSessionRequest( + _type: .ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createReadWriteSessionIntent + ) - let input = Operations.PublicApiService_CreateSubOrganization.Input( + // Create the input for the CreateReadWriteSession method + let input = Operations.CreateReadWriteSession.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateSubOrganizationRequest) + body: .json(createReadWriteSessionRequest) ) - return try await underlyingClient.PublicApiService_CreateSubOrganization(input) + + // Call the CreateReadWriteSession method using the underlyingClient + return try await underlyingClient.CreateReadWriteSession(input) } - public func publicApiService_CreateUserTag() async throws - -> Operations.PublicApiService_CreateUserTag.Output - { - // Create the PublicApiService_CreateUserTagRequest - let publicApiService_CreateUserTagRequest = Components.Schemas - .PublicApiService_CreateUserTagRequest() + public func createSubOrganization( + organizationId: String, + subOrganizationName: String, rootUsers: [Components.Schemas.RootUserParamsV4], + rootQuorumThreshold: Int32, wallet: Components.Schemas.WalletParams?, + disableEmailRecovery: Bool?, disableEmailAuth: Bool?, disableSmsAuth: Bool?, + disableOtpEmailAuth: Bool? + ) async throws -> Operations.CreateSubOrganization.Output { + + // Create the CreateSubOrganizationIntentV7 + let createSubOrganizationIntent = Components.Schemas.CreateSubOrganizationIntentV7( + subOrganizationName: subOrganizationName, rootUsers: rootUsers, + rootQuorumThreshold: rootQuorumThreshold, wallet: wallet, + disableEmailRecovery: disableEmailRecovery, disableEmailAuth: disableEmailAuth, + disableSmsAuth: disableSmsAuth, disableOtpEmailAuth: disableOtpEmailAuth) - let input = Operations.PublicApiService_CreateUserTag.Input( + // Create the CreateSubOrganizationRequest + let createSubOrganizationRequest = Components.Schemas.CreateSubOrganizationRequest( + _type: .ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createSubOrganizationIntent + ) + + // Create the input for the CreateSubOrganization method + let input = Operations.CreateSubOrganization.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateUserTagRequest) + body: .json(createSubOrganizationRequest) ) - return try await underlyingClient.PublicApiService_CreateUserTag(input) + + // Call the CreateSubOrganization method using the underlyingClient + return try await underlyingClient.CreateSubOrganization(input) } - public func publicApiService_CreateUsers() async throws - -> Operations.PublicApiService_CreateUsers.Output - { - // Create the PublicApiService_CreateUsersRequest - let publicApiService_CreateUsersRequest = Components.Schemas - .PublicApiService_CreateUsersRequest() + public func createUserTag( + organizationId: String, + userTagName: String, userIds: [String] + ) async throws -> Operations.CreateUserTag.Output { + + // Create the CreateUserTagIntent + let createUserTagIntent = Components.Schemas.CreateUserTagIntent( + userTagName: userTagName, userIds: userIds) - let input = Operations.PublicApiService_CreateUsers.Input( + // Create the CreateUserTagRequest + let createUserTagRequest = Components.Schemas.CreateUserTagRequest( + _type: .ACTIVITY_TYPE_CREATE_USER_TAG, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createUserTagIntent + ) + + // Create the input for the CreateUserTag method + let input = Operations.CreateUserTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateUsersRequest) + body: .json(createUserTagRequest) ) - return try await underlyingClient.PublicApiService_CreateUsers(input) + + // Call the CreateUserTag method using the underlyingClient + return try await underlyingClient.CreateUserTag(input) } - public func publicApiService_CreateWallet() async throws - -> Operations.PublicApiService_CreateWallet.Output - { - // Create the PublicApiService_CreateWalletRequest - let publicApiService_CreateWalletRequest = Components.Schemas - .PublicApiService_CreateWalletRequest() + public func createUsers( + organizationId: String, + users: [Components.Schemas.UserParamsV2] + ) async throws -> Operations.CreateUsers.Output { + + // Create the CreateUsersIntentV2 + let createUsersIntent = Components.Schemas.CreateUsersIntentV2( + users: users) + + // Create the CreateUsersRequest + let createUsersRequest = Components.Schemas.CreateUsersRequest( + _type: .ACTIVITY_TYPE_CREATE_USERS_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createUsersIntent + ) - let input = Operations.PublicApiService_CreateWallet.Input( + // Create the input for the CreateUsers method + let input = Operations.CreateUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateWalletRequest) + body: .json(createUsersRequest) ) - return try await underlyingClient.PublicApiService_CreateWallet(input) + + // Call the CreateUsers method using the underlyingClient + return try await underlyingClient.CreateUsers(input) } - public func publicApiService_CreateWalletAccounts() async throws - -> Operations.PublicApiService_CreateWalletAccounts.Output - { - // Create the PublicApiService_CreateWalletAccountsRequest - let publicApiService_CreateWalletAccountsRequest = Components.Schemas - .PublicApiService_CreateWalletAccountsRequest() + public func createWallet( + organizationId: String, + walletName: String, accounts: [Components.Schemas.WalletAccountParams], mnemonicLength: Int32? + ) async throws -> Operations.CreateWallet.Output { + + // Create the CreateWalletIntent + let createWalletIntent = Components.Schemas.CreateWalletIntent( + walletName: walletName, accounts: accounts, mnemonicLength: mnemonicLength) + + // Create the CreateWalletRequest + let createWalletRequest = Components.Schemas.CreateWalletRequest( + _type: .ACTIVITY_TYPE_CREATE_WALLET, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createWalletIntent + ) - let input = Operations.PublicApiService_CreateWalletAccounts.Input( + // Create the input for the CreateWallet method + let input = Operations.CreateWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_CreateWalletAccountsRequest) + body: .json(createWalletRequest) ) - return try await underlyingClient.PublicApiService_CreateWalletAccounts(input) + + // Call the CreateWallet method using the underlyingClient + return try await underlyingClient.CreateWallet(input) } - public func publicApiService_DeleteApiKeys() async throws - -> Operations.PublicApiService_DeleteApiKeys.Output - { - // Create the PublicApiService_DeleteApiKeysRequest - let publicApiService_DeleteApiKeysRequest = Components.Schemas - .PublicApiService_DeleteApiKeysRequest() + public func createWalletAccounts( + organizationId: String, + walletId: String, accounts: [Components.Schemas.WalletAccountParams] + ) async throws -> Operations.CreateWalletAccounts.Output { + + // Create the CreateWalletAccountsIntent + let createWalletAccountsIntent = Components.Schemas.CreateWalletAccountsIntent( + walletId: walletId, accounts: accounts) - let input = Operations.PublicApiService_DeleteApiKeys.Input( + // Create the CreateWalletAccountsRequest + let createWalletAccountsRequest = Components.Schemas.CreateWalletAccountsRequest( + _type: .ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: createWalletAccountsIntent + ) + + // Create the input for the CreateWalletAccounts method + let input = Operations.CreateWalletAccounts.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteApiKeysRequest) + body: .json(createWalletAccountsRequest) ) - return try await underlyingClient.PublicApiService_DeleteApiKeys(input) + + // Call the CreateWalletAccounts method using the underlyingClient + return try await underlyingClient.CreateWalletAccounts(input) } - public func publicApiService_DeleteAuthenticators() async throws - -> Operations.PublicApiService_DeleteAuthenticators.Output - { - // Create the PublicApiService_DeleteAuthenticatorsRequest - let publicApiService_DeleteAuthenticatorsRequest = Components.Schemas - .PublicApiService_DeleteAuthenticatorsRequest() + public func deleteApiKeys( + organizationId: String, + userId: String, apiKeyIds: [String] + ) async throws -> Operations.DeleteApiKeys.Output { + + // Create the DeleteApiKeysIntent + let deleteApiKeysIntent = Components.Schemas.DeleteApiKeysIntent( + userId: userId, apiKeyIds: apiKeyIds) - let input = Operations.PublicApiService_DeleteAuthenticators.Input( + // Create the DeleteApiKeysRequest + let deleteApiKeysRequest = Components.Schemas.DeleteApiKeysRequest( + _type: .ACTIVITY_TYPE_DELETE_API_KEYS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteApiKeysIntent + ) + + // Create the input for the DeleteApiKeys method + let input = Operations.DeleteApiKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteAuthenticatorsRequest) + body: .json(deleteApiKeysRequest) ) - return try await underlyingClient.PublicApiService_DeleteAuthenticators(input) + + // Call the DeleteApiKeys method using the underlyingClient + return try await underlyingClient.DeleteApiKeys(input) } - public func publicApiService_DeleteInvitation() async throws - -> Operations.PublicApiService_DeleteInvitation.Output - { - // Create the PublicApiService_DeleteInvitationRequest - let publicApiService_DeleteInvitationRequest = Components.Schemas - .PublicApiService_DeleteInvitationRequest() + public func deleteAuthenticators( + organizationId: String, + userId: String, authenticatorIds: [String] + ) async throws -> Operations.DeleteAuthenticators.Output { + + // Create the DeleteAuthenticatorsIntent + let deleteAuthenticatorsIntent = Components.Schemas.DeleteAuthenticatorsIntent( + userId: userId, authenticatorIds: authenticatorIds) + + // Create the DeleteAuthenticatorsRequest + let deleteAuthenticatorsRequest = Components.Schemas.DeleteAuthenticatorsRequest( + _type: .ACTIVITY_TYPE_DELETE_AUTHENTICATORS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteAuthenticatorsIntent + ) - let input = Operations.PublicApiService_DeleteInvitation.Input( + // Create the input for the DeleteAuthenticators method + let input = Operations.DeleteAuthenticators.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteInvitationRequest) + body: .json(deleteAuthenticatorsRequest) ) - return try await underlyingClient.PublicApiService_DeleteInvitation(input) + + // Call the DeleteAuthenticators method using the underlyingClient + return try await underlyingClient.DeleteAuthenticators(input) } - public func publicApiService_DeleteOauthProviders() async throws - -> Operations.PublicApiService_DeleteOauthProviders.Output - { - // Create the PublicApiService_DeleteOauthProvidersRequest - let publicApiService_DeleteOauthProvidersRequest = Components.Schemas - .PublicApiService_DeleteOauthProvidersRequest() + public func deleteInvitation( + organizationId: String, + invitationId: String + ) async throws -> Operations.DeleteInvitation.Output { - let input = Operations.PublicApiService_DeleteOauthProviders.Input( + // Create the DeleteInvitationIntent + let deleteInvitationIntent = Components.Schemas.DeleteInvitationIntent( + invitationId: invitationId) + + // Create the DeleteInvitationRequest + let deleteInvitationRequest = Components.Schemas.DeleteInvitationRequest( + _type: .ACTIVITY_TYPE_DELETE_INVITATION, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteInvitationIntent + ) + + // Create the input for the DeleteInvitation method + let input = Operations.DeleteInvitation.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteOauthProvidersRequest) + body: .json(deleteInvitationRequest) ) - return try await underlyingClient.PublicApiService_DeleteOauthProviders(input) + + // Call the DeleteInvitation method using the underlyingClient + return try await underlyingClient.DeleteInvitation(input) } - public func publicApiService_DeletePolicy() async throws - -> Operations.PublicApiService_DeletePolicy.Output - { - // Create the PublicApiService_DeletePolicyRequest - let publicApiService_DeletePolicyRequest = Components.Schemas - .PublicApiService_DeletePolicyRequest() + public func deleteOauthProviders( + organizationId: String, + userId: String, providerIds: [String] + ) async throws -> Operations.DeleteOauthProviders.Output { + + // Create the DeleteOauthProvidersIntent + let deleteOauthProvidersIntent = Components.Schemas.DeleteOauthProvidersIntent( + userId: userId, providerIds: providerIds) + + // Create the DeleteOauthProvidersRequest + let deleteOauthProvidersRequest = Components.Schemas.DeleteOauthProvidersRequest( + _type: .ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteOauthProvidersIntent + ) - let input = Operations.PublicApiService_DeletePolicy.Input( + // Create the input for the DeleteOauthProviders method + let input = Operations.DeleteOauthProviders.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeletePolicyRequest) + body: .json(deleteOauthProvidersRequest) ) - return try await underlyingClient.PublicApiService_DeletePolicy(input) + + // Call the DeleteOauthProviders method using the underlyingClient + return try await underlyingClient.DeleteOauthProviders(input) } - public func publicApiService_DeletePrivateKeyTags() async throws - -> Operations.PublicApiService_DeletePrivateKeyTags.Output - { - // Create the PublicApiService_DeletePrivateKeyTagsRequest - let publicApiService_DeletePrivateKeyTagsRequest = Components.Schemas - .PublicApiService_DeletePrivateKeyTagsRequest() + public func deletePolicy( + organizationId: String, + policyId: String + ) async throws -> Operations.DeletePolicy.Output { + + // Create the DeletePolicyIntent + let deletePolicyIntent = Components.Schemas.DeletePolicyIntent( + policyId: policyId) - let input = Operations.PublicApiService_DeletePrivateKeyTags.Input( + // Create the DeletePolicyRequest + let deletePolicyRequest = Components.Schemas.DeletePolicyRequest( + _type: .ACTIVITY_TYPE_DELETE_POLICY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deletePolicyIntent + ) + + // Create the input for the DeletePolicy method + let input = Operations.DeletePolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeletePrivateKeyTagsRequest) + body: .json(deletePolicyRequest) ) - return try await underlyingClient.PublicApiService_DeletePrivateKeyTags(input) + + // Call the DeletePolicy method using the underlyingClient + return try await underlyingClient.DeletePolicy(input) } - public func publicApiService_DeletePrivateKeys() async throws - -> Operations.PublicApiService_DeletePrivateKeys.Output - { - // Create the PublicApiService_DeletePrivateKeysRequest - let publicApiService_DeletePrivateKeysRequest = Components.Schemas - .PublicApiService_DeletePrivateKeysRequest() + public func deletePrivateKeyTags( + organizationId: String, + privateKeyTagIds: [String] + ) async throws -> Operations.DeletePrivateKeyTags.Output { + + // Create the DeletePrivateKeyTagsIntent + let deletePrivateKeyTagsIntent = Components.Schemas.DeletePrivateKeyTagsIntent( + privateKeyTagIds: privateKeyTagIds) + + // Create the DeletePrivateKeyTagsRequest + let deletePrivateKeyTagsRequest = Components.Schemas.DeletePrivateKeyTagsRequest( + _type: .ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deletePrivateKeyTagsIntent + ) - let input = Operations.PublicApiService_DeletePrivateKeys.Input( + // Create the input for the DeletePrivateKeyTags method + let input = Operations.DeletePrivateKeyTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeletePrivateKeysRequest) + body: .json(deletePrivateKeyTagsRequest) ) - return try await underlyingClient.PublicApiService_DeletePrivateKeys(input) + + // Call the DeletePrivateKeyTags method using the underlyingClient + return try await underlyingClient.DeletePrivateKeyTags(input) } - public func publicApiService_DeleteSubOrganization() async throws - -> Operations.PublicApiService_DeleteSubOrganization.Output - { - // Create the PublicApiService_DeleteSubOrganizationRequest - let publicApiService_DeleteSubOrganizationRequest = Components.Schemas - .PublicApiService_DeleteSubOrganizationRequest() + public func deletePrivateKeys( + organizationId: String, + privateKeyIds: [String], deleteWithoutExport: Bool? + ) async throws -> Operations.DeletePrivateKeys.Output { + + // Create the DeletePrivateKeysIntent + let deletePrivateKeysIntent = Components.Schemas.DeletePrivateKeysIntent( + privateKeyIds: privateKeyIds, deleteWithoutExport: deleteWithoutExport) + + // Create the DeletePrivateKeysRequest + let deletePrivateKeysRequest = Components.Schemas.DeletePrivateKeysRequest( + _type: .ACTIVITY_TYPE_DELETE_PRIVATE_KEYS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deletePrivateKeysIntent + ) - let input = Operations.PublicApiService_DeleteSubOrganization.Input( + // Create the input for the DeletePrivateKeys method + let input = Operations.DeletePrivateKeys.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteSubOrganizationRequest) + body: .json(deletePrivateKeysRequest) ) - return try await underlyingClient.PublicApiService_DeleteSubOrganization(input) + + // Call the DeletePrivateKeys method using the underlyingClient + return try await underlyingClient.DeletePrivateKeys(input) } - public func publicApiService_DeleteUserTags() async throws - -> Operations.PublicApiService_DeleteUserTags.Output - { - // Create the PublicApiService_DeleteUserTagsRequest - let publicApiService_DeleteUserTagsRequest = Components.Schemas - .PublicApiService_DeleteUserTagsRequest() + public func deleteSubOrganization( + organizationId: String, + deleteWithoutExport: Bool? + ) async throws -> Operations.DeleteSubOrganization.Output { + + // Create the DeleteSubOrganizationIntent + let deleteSubOrganizationIntent = Components.Schemas.DeleteSubOrganizationIntent( + deleteWithoutExport: deleteWithoutExport) - let input = Operations.PublicApiService_DeleteUserTags.Input( + // Create the DeleteSubOrganizationRequest + let deleteSubOrganizationRequest = Components.Schemas.DeleteSubOrganizationRequest( + _type: .ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteSubOrganizationIntent + ) + + // Create the input for the DeleteSubOrganization method + let input = Operations.DeleteSubOrganization.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteUserTagsRequest) + body: .json(deleteSubOrganizationRequest) ) - return try await underlyingClient.PublicApiService_DeleteUserTags(input) + + // Call the DeleteSubOrganization method using the underlyingClient + return try await underlyingClient.DeleteSubOrganization(input) } - public func publicApiService_DeleteUsers() async throws - -> Operations.PublicApiService_DeleteUsers.Output - { - // Create the PublicApiService_DeleteUsersRequest - let publicApiService_DeleteUsersRequest = Components.Schemas - .PublicApiService_DeleteUsersRequest() + public func deleteUserTags( + organizationId: String, + userTagIds: [String] + ) async throws -> Operations.DeleteUserTags.Output { + + // Create the DeleteUserTagsIntent + let deleteUserTagsIntent = Components.Schemas.DeleteUserTagsIntent( + userTagIds: userTagIds) - let input = Operations.PublicApiService_DeleteUsers.Input( + // Create the DeleteUserTagsRequest + let deleteUserTagsRequest = Components.Schemas.DeleteUserTagsRequest( + _type: .ACTIVITY_TYPE_DELETE_USER_TAGS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteUserTagsIntent + ) + + // Create the input for the DeleteUserTags method + let input = Operations.DeleteUserTags.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteUsersRequest) + body: .json(deleteUserTagsRequest) ) - return try await underlyingClient.PublicApiService_DeleteUsers(input) + + // Call the DeleteUserTags method using the underlyingClient + return try await underlyingClient.DeleteUserTags(input) } - public func publicApiService_DeleteWallets() async throws - -> Operations.PublicApiService_DeleteWallets.Output - { - // Create the PublicApiService_DeleteWalletsRequest - let publicApiService_DeleteWalletsRequest = Components.Schemas - .PublicApiService_DeleteWalletsRequest() + public func deleteUsers( + organizationId: String, + userIds: [String] + ) async throws -> Operations.DeleteUsers.Output { + + // Create the DeleteUsersIntent + let deleteUsersIntent = Components.Schemas.DeleteUsersIntent( + userIds: userIds) - let input = Operations.PublicApiService_DeleteWallets.Input( + // Create the DeleteUsersRequest + let deleteUsersRequest = Components.Schemas.DeleteUsersRequest( + _type: .ACTIVITY_TYPE_DELETE_USERS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteUsersIntent + ) + + // Create the input for the DeleteUsers method + let input = Operations.DeleteUsers.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_DeleteWalletsRequest) + body: .json(deleteUsersRequest) ) - return try await underlyingClient.PublicApiService_DeleteWallets(input) + + // Call the DeleteUsers method using the underlyingClient + return try await underlyingClient.DeleteUsers(input) } - public func publicApiService_EmailAuth() async throws - -> Operations.PublicApiService_EmailAuth.Output - { - // Create the PublicApiService_EmailAuthRequest - let publicApiService_EmailAuthRequest = Components.Schemas.PublicApiService_EmailAuthRequest() + public func deleteWallets( + organizationId: String, + walletIds: [String], deleteWithoutExport: Bool? + ) async throws -> Operations.DeleteWallets.Output { + + // Create the DeleteWalletsIntent + let deleteWalletsIntent = Components.Schemas.DeleteWalletsIntent( + walletIds: walletIds, deleteWithoutExport: deleteWithoutExport) + + // Create the DeleteWalletsRequest + let deleteWalletsRequest = Components.Schemas.DeleteWalletsRequest( + _type: .ACTIVITY_TYPE_DELETE_WALLETS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: deleteWalletsIntent + ) - let input = Operations.PublicApiService_EmailAuth.Input( + // Create the input for the DeleteWallets method + let input = Operations.DeleteWallets.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_EmailAuthRequest) + body: .json(deleteWalletsRequest) ) - return try await underlyingClient.PublicApiService_EmailAuth(input) + + // Call the DeleteWallets method using the underlyingClient + return try await underlyingClient.DeleteWallets(input) } - public func publicApiService_ExportPrivateKey() async throws - -> Operations.PublicApiService_ExportPrivateKey.Output - { - // Create the PublicApiService_ExportPrivateKeyRequest - let publicApiService_ExportPrivateKeyRequest = Components.Schemas - .PublicApiService_ExportPrivateKeyRequest() + public func emailAuth( + organizationId: String, + email: String, targetPublicKey: String, apiKeyName: String?, expirationSeconds: String?, + emailCustomization: Components.Schemas.EmailCustomizationParams?, invalidateExisting: Bool? + ) async throws -> Operations.EmailAuth.Output { + + // Create the EmailAuthIntentV2 + let emailAuthIntent = Components.Schemas.EmailAuthIntentV2( + email: email, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, + expirationSeconds: expirationSeconds, emailCustomization: emailCustomization, + invalidateExisting: invalidateExisting) - let input = Operations.PublicApiService_ExportPrivateKey.Input( + // Create the EmailAuthRequest + let emailAuthRequest = Components.Schemas.EmailAuthRequest( + _type: .ACTIVITY_TYPE_EMAIL_AUTH_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: emailAuthIntent + ) + + // Create the input for the EmailAuth method + let input = Operations.EmailAuth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ExportPrivateKeyRequest) + body: .json(emailAuthRequest) ) - return try await underlyingClient.PublicApiService_ExportPrivateKey(input) + + // Call the EmailAuth method using the underlyingClient + return try await underlyingClient.EmailAuth(input) } - public func publicApiService_ExportWallet() async throws - -> Operations.PublicApiService_ExportWallet.Output - { - // Create the PublicApiService_ExportWalletRequest - let publicApiService_ExportWalletRequest = Components.Schemas - .PublicApiService_ExportWalletRequest() + public func exportPrivateKey( + organizationId: String, + privateKeyId: String, targetPublicKey: String + ) async throws -> Operations.ExportPrivateKey.Output { + + // Create the ExportPrivateKeyIntent + let exportPrivateKeyIntent = Components.Schemas.ExportPrivateKeyIntent( + privateKeyId: privateKeyId, targetPublicKey: targetPublicKey) - let input = Operations.PublicApiService_ExportWallet.Input( + // Create the ExportPrivateKeyRequest + let exportPrivateKeyRequest = Components.Schemas.ExportPrivateKeyRequest( + _type: .ACTIVITY_TYPE_EXPORT_PRIVATE_KEY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: exportPrivateKeyIntent + ) + + // Create the input for the ExportPrivateKey method + let input = Operations.ExportPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ExportWalletRequest) + body: .json(exportPrivateKeyRequest) ) - return try await underlyingClient.PublicApiService_ExportWallet(input) + + // Call the ExportPrivateKey method using the underlyingClient + return try await underlyingClient.ExportPrivateKey(input) } - public func publicApiService_ExportWalletAccount() async throws - -> Operations.PublicApiService_ExportWalletAccount.Output - { - // Create the PublicApiService_ExportWalletAccountRequest - let publicApiService_ExportWalletAccountRequest = Components.Schemas - .PublicApiService_ExportWalletAccountRequest() + public func exportWallet( + organizationId: String, + walletId: String, targetPublicKey: String, language: Components.Schemas.MnemonicLanguage? + ) async throws -> Operations.ExportWallet.Output { + + // Create the ExportWalletIntent + let exportWalletIntent = Components.Schemas.ExportWalletIntent( + walletId: walletId, targetPublicKey: targetPublicKey, language: language) + + // Create the ExportWalletRequest + let exportWalletRequest = Components.Schemas.ExportWalletRequest( + _type: .ACTIVITY_TYPE_EXPORT_WALLET, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: exportWalletIntent + ) - let input = Operations.PublicApiService_ExportWalletAccount.Input( + // Create the input for the ExportWallet method + let input = Operations.ExportWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ExportWalletAccountRequest) + body: .json(exportWalletRequest) ) - return try await underlyingClient.PublicApiService_ExportWalletAccount(input) + + // Call the ExportWallet method using the underlyingClient + return try await underlyingClient.ExportWallet(input) } - public func publicApiService_ImportPrivateKey() async throws - -> Operations.PublicApiService_ImportPrivateKey.Output - { - // Create the PublicApiService_ImportPrivateKeyRequest - let publicApiService_ImportPrivateKeyRequest = Components.Schemas - .PublicApiService_ImportPrivateKeyRequest() + public func exportWalletAccount( + organizationId: String, + address: String, targetPublicKey: String + ) async throws -> Operations.ExportWalletAccount.Output { + + // Create the ExportWalletAccountIntent + let exportWalletAccountIntent = Components.Schemas.ExportWalletAccountIntent( + address: address, targetPublicKey: targetPublicKey) + + // Create the ExportWalletAccountRequest + let exportWalletAccountRequest = Components.Schemas.ExportWalletAccountRequest( + _type: .ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: exportWalletAccountIntent + ) - let input = Operations.PublicApiService_ImportPrivateKey.Input( + // Create the input for the ExportWalletAccount method + let input = Operations.ExportWalletAccount.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ImportPrivateKeyRequest) + body: .json(exportWalletAccountRequest) ) - return try await underlyingClient.PublicApiService_ImportPrivateKey(input) + + // Call the ExportWalletAccount method using the underlyingClient + return try await underlyingClient.ExportWalletAccount(input) } - public func publicApiService_ImportWallet() async throws - -> Operations.PublicApiService_ImportWallet.Output - { - // Create the PublicApiService_ImportWalletRequest - let publicApiService_ImportWalletRequest = Components.Schemas - .PublicApiService_ImportWalletRequest() + public func importPrivateKey( + organizationId: String, + userId: String, privateKeyName: String, encryptedBundle: String, + curve: Components.Schemas.Curve, addressFormats: [Components.Schemas.AddressFormat] + ) async throws -> Operations.ImportPrivateKey.Output { + + // Create the ImportPrivateKeyIntent + let importPrivateKeyIntent = Components.Schemas.ImportPrivateKeyIntent( + userId: userId, privateKeyName: privateKeyName, encryptedBundle: encryptedBundle, + curve: curve, addressFormats: addressFormats) + + // Create the ImportPrivateKeyRequest + let importPrivateKeyRequest = Components.Schemas.ImportPrivateKeyRequest( + _type: .ACTIVITY_TYPE_IMPORT_PRIVATE_KEY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: importPrivateKeyIntent + ) - let input = Operations.PublicApiService_ImportWallet.Input( + // Create the input for the ImportPrivateKey method + let input = Operations.ImportPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_ImportWalletRequest) + body: .json(importPrivateKeyRequest) ) - return try await underlyingClient.PublicApiService_ImportWallet(input) + + // Call the ImportPrivateKey method using the underlyingClient + return try await underlyingClient.ImportPrivateKey(input) } - public func publicApiService_InitImportPrivateKey() async throws - -> Operations.PublicApiService_InitImportPrivateKey.Output - { - // Create the PublicApiService_InitImportPrivateKeyRequest - let publicApiService_InitImportPrivateKeyRequest = Components.Schemas - .PublicApiService_InitImportPrivateKeyRequest() + public func importWallet( + organizationId: String, + userId: String, walletName: String, encryptedBundle: String, + accounts: [Components.Schemas.WalletAccountParams] + ) async throws -> Operations.ImportWallet.Output { + + // Create the ImportWalletIntent + let importWalletIntent = Components.Schemas.ImportWalletIntent( + userId: userId, walletName: walletName, encryptedBundle: encryptedBundle, accounts: accounts) - let input = Operations.PublicApiService_InitImportPrivateKey.Input( + // Create the ImportWalletRequest + let importWalletRequest = Components.Schemas.ImportWalletRequest( + _type: .ACTIVITY_TYPE_IMPORT_WALLET, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: importWalletIntent + ) + + // Create the input for the ImportWallet method + let input = Operations.ImportWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_InitImportPrivateKeyRequest) + body: .json(importWalletRequest) ) - return try await underlyingClient.PublicApiService_InitImportPrivateKey(input) + + // Call the ImportWallet method using the underlyingClient + return try await underlyingClient.ImportWallet(input) } - public func publicApiService_InitImportWallet() async throws - -> Operations.PublicApiService_InitImportWallet.Output - { - // Create the PublicApiService_InitImportWalletRequest - let publicApiService_InitImportWalletRequest = Components.Schemas - .PublicApiService_InitImportWalletRequest() + public func initImportPrivateKey( + organizationId: String, + userId: String + ) async throws -> Operations.InitImportPrivateKey.Output { + + // Create the InitImportPrivateKeyIntent + let initImportPrivateKeyIntent = Components.Schemas.InitImportPrivateKeyIntent( + userId: userId) - let input = Operations.PublicApiService_InitImportWallet.Input( + // Create the InitImportPrivateKeyRequest + let initImportPrivateKeyRequest = Components.Schemas.InitImportPrivateKeyRequest( + _type: .ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: initImportPrivateKeyIntent + ) + + // Create the input for the InitImportPrivateKey method + let input = Operations.InitImportPrivateKey.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_InitImportWalletRequest) + body: .json(initImportPrivateKeyRequest) ) - return try await underlyingClient.PublicApiService_InitImportWallet(input) + + // Call the InitImportPrivateKey method using the underlyingClient + return try await underlyingClient.InitImportPrivateKey(input) } - public func publicApiService_InitOtpAuth() async throws - -> Operations.PublicApiService_InitOtpAuth.Output - { - // Create the PublicApiService_InitOtpAuthRequest - let publicApiService_InitOtpAuthRequest = Components.Schemas - .PublicApiService_InitOtpAuthRequest() + public func initImportWallet( + organizationId: String, + userId: String + ) async throws -> Operations.InitImportWallet.Output { + + // Create the InitImportWalletIntent + let initImportWalletIntent = Components.Schemas.InitImportWalletIntent( + userId: userId) - let input = Operations.PublicApiService_InitOtpAuth.Input( + // Create the InitImportWalletRequest + let initImportWalletRequest = Components.Schemas.InitImportWalletRequest( + _type: .ACTIVITY_TYPE_INIT_IMPORT_WALLET, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: initImportWalletIntent + ) + + // Create the input for the InitImportWallet method + let input = Operations.InitImportWallet.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_InitOtpAuthRequest) + body: .json(initImportWalletRequest) ) - return try await underlyingClient.PublicApiService_InitOtpAuth(input) + + // Call the InitImportWallet method using the underlyingClient + return try await underlyingClient.InitImportWallet(input) } - public func publicApiService_InitUserEmailRecovery() async throws - -> Operations.PublicApiService_InitUserEmailRecovery.Output - { - // Create the PublicApiService_InitUserEmailRecoveryRequest - let publicApiService_InitUserEmailRecoveryRequest = Components.Schemas - .PublicApiService_InitUserEmailRecoveryRequest() + public func initOtpAuth( + organizationId: String, + otpType: String, contact: String, + emailCustomization: Components.Schemas.EmailCustomizationParams? + ) async throws -> Operations.InitOtpAuth.Output { + + // Create the InitOtpAuthIntent + let initOtpAuthIntent = Components.Schemas.InitOtpAuthIntent( + otpType: otpType, contact: contact, emailCustomization: emailCustomization) - let input = Operations.PublicApiService_InitUserEmailRecovery.Input( + // Create the InitOtpAuthRequest + let initOtpAuthRequest = Components.Schemas.InitOtpAuthRequest( + _type: .ACTIVITY_TYPE_INIT_OTP_AUTH, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: initOtpAuthIntent + ) + + // Create the input for the InitOtpAuth method + let input = Operations.InitOtpAuth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_InitUserEmailRecoveryRequest) + body: .json(initOtpAuthRequest) ) - return try await underlyingClient.PublicApiService_InitUserEmailRecovery(input) + + // Call the InitOtpAuth method using the underlyingClient + return try await underlyingClient.InitOtpAuth(input) } - public func publicApiService_Oauth() async throws -> Operations.PublicApiService_Oauth.Output { - // Create the PublicApiService_OauthRequest - let publicApiService_OauthRequest = Components.Schemas.PublicApiService_OauthRequest() + public func initUserEmailRecovery( + organizationId: String, + email: String, targetPublicKey: String, expirationSeconds: String?, + emailCustomization: Components.Schemas.EmailCustomizationParams? + ) async throws -> Operations.InitUserEmailRecovery.Output { - let input = Operations.PublicApiService_Oauth.Input( + // Create the InitUserEmailRecoveryIntent + let initUserEmailRecoveryIntent = Components.Schemas.InitUserEmailRecoveryIntent( + email: email, targetPublicKey: targetPublicKey, expirationSeconds: expirationSeconds, + emailCustomization: emailCustomization) + + // Create the InitUserEmailRecoveryRequest + let initUserEmailRecoveryRequest = Components.Schemas.InitUserEmailRecoveryRequest( + _type: .ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: initUserEmailRecoveryIntent + ) + + // Create the input for the InitUserEmailRecovery method + let input = Operations.InitUserEmailRecovery.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_OauthRequest) + body: .json(initUserEmailRecoveryRequest) ) - return try await underlyingClient.PublicApiService_Oauth(input) + + // Call the InitUserEmailRecovery method using the underlyingClient + return try await underlyingClient.InitUserEmailRecovery(input) } - public func publicApiService_OtpAuth() async throws -> Operations.PublicApiService_OtpAuth.Output - { - // Create the PublicApiService_OtpAuthRequest - let publicApiService_OtpAuthRequest = Components.Schemas.PublicApiService_OtpAuthRequest() + public func oauth( + organizationId: String, + oidcToken: String, targetPublicKey: String, apiKeyName: String?, expirationSeconds: String? + ) async throws -> Operations.Oauth.Output { + + // Create the OauthIntent + let oauthIntent = Components.Schemas.OauthIntent( + oidcToken: oidcToken, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, + expirationSeconds: expirationSeconds) - let input = Operations.PublicApiService_OtpAuth.Input( + // Create the OauthRequest + let oauthRequest = Components.Schemas.OauthRequest( + _type: .ACTIVITY_TYPE_OAUTH, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: oauthIntent + ) + + // Create the input for the Oauth method + let input = Operations.Oauth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_OtpAuthRequest) + body: .json(oauthRequest) ) - return try await underlyingClient.PublicApiService_OtpAuth(input) + + // Call the Oauth method using the underlyingClient + return try await underlyingClient.Oauth(input) } - public func publicApiService_RecoverUser() async throws - -> Operations.PublicApiService_RecoverUser.Output - { - // Create the PublicApiService_RecoverUserRequest - let publicApiService_RecoverUserRequest = Components.Schemas - .PublicApiService_RecoverUserRequest() + public func otpAuth( + organizationId: String, + otpId: String, otpCode: String, targetPublicKey: String?, apiKeyName: String?, + expirationSeconds: String?, invalidateExisting: Bool? + ) async throws -> Operations.OtpAuth.Output { + + // Create the OtpAuthIntent + let otpAuthIntent = Components.Schemas.OtpAuthIntent( + otpId: otpId, otpCode: otpCode, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, + expirationSeconds: expirationSeconds, invalidateExisting: invalidateExisting) - let input = Operations.PublicApiService_RecoverUser.Input( + // Create the OtpAuthRequest + let otpAuthRequest = Components.Schemas.OtpAuthRequest( + _type: .ACTIVITY_TYPE_OTP_AUTH, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: otpAuthIntent + ) + + // Create the input for the OtpAuth method + let input = Operations.OtpAuth.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_RecoverUserRequest) + body: .json(otpAuthRequest) ) - return try await underlyingClient.PublicApiService_RecoverUser(input) + + // Call the OtpAuth method using the underlyingClient + return try await underlyingClient.OtpAuth(input) } - public func publicApiService_RejectActivity() async throws - -> Operations.PublicApiService_RejectActivity.Output - { - // Create the PublicApiService_RejectActivityRequest - let publicApiService_RejectActivityRequest = Components.Schemas - .PublicApiService_RejectActivityRequest() + public func recoverUser( + organizationId: String, + authenticator: Components.Schemas.AuthenticatorParamsV2, userId: String + ) async throws -> Operations.RecoverUser.Output { + + // Create the RecoverUserIntent + let recoverUserIntent = Components.Schemas.RecoverUserIntent( + authenticator: authenticator, userId: userId) - let input = Operations.PublicApiService_RejectActivity.Input( + // Create the RecoverUserRequest + let recoverUserRequest = Components.Schemas.RecoverUserRequest( + _type: .ACTIVITY_TYPE_RECOVER_USER, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: recoverUserIntent + ) + + // Create the input for the RecoverUser method + let input = Operations.RecoverUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_RejectActivityRequest) + body: .json(recoverUserRequest) ) - return try await underlyingClient.PublicApiService_RejectActivity(input) + + // Call the RecoverUser method using the underlyingClient + return try await underlyingClient.RecoverUser(input) } - public func publicApiService_RemoveOrganizationFeature() async throws - -> Operations.PublicApiService_RemoveOrganizationFeature.Output - { - // Create the PublicApiService_RemoveOrganizationFeatureRequest - let publicApiService_RemoveOrganizationFeatureRequest = Components.Schemas - .PublicApiService_RemoveOrganizationFeatureRequest() + public func rejectActivity( + organizationId: String, + fingerprint: String + ) async throws -> Operations.RejectActivity.Output { - let input = Operations.PublicApiService_RemoveOrganizationFeature.Input( + // Create the RejectActivityIntent + let rejectActivityIntent = Components.Schemas.RejectActivityIntent( + fingerprint: fingerprint) + + // Create the RejectActivityRequest + let rejectActivityRequest = Components.Schemas.RejectActivityRequest( + _type: .ACTIVITY_TYPE_REJECT_ACTIVITY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: rejectActivityIntent + ) + + // Create the input for the RejectActivity method + let input = Operations.RejectActivity.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_RemoveOrganizationFeatureRequest) + body: .json(rejectActivityRequest) ) - return try await underlyingClient.PublicApiService_RemoveOrganizationFeature(input) + + // Call the RejectActivity method using the underlyingClient + return try await underlyingClient.RejectActivity(input) } - public func publicApiService_SetOrganizationFeature() async throws - -> Operations.PublicApiService_SetOrganizationFeature.Output - { - // Create the PublicApiService_SetOrganizationFeatureRequest - let publicApiService_SetOrganizationFeatureRequest = Components.Schemas - .PublicApiService_SetOrganizationFeatureRequest() + public func removeOrganizationFeature( + organizationId: String, + name: Components.Schemas.FeatureName + ) async throws -> Operations.RemoveOrganizationFeature.Output { - let input = Operations.PublicApiService_SetOrganizationFeature.Input( + // Create the RemoveOrganizationFeatureIntent + let removeOrganizationFeatureIntent = Components.Schemas.RemoveOrganizationFeatureIntent( + name: name) + + // Create the RemoveOrganizationFeatureRequest + let removeOrganizationFeatureRequest = Components.Schemas.RemoveOrganizationFeatureRequest( + _type: .ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: removeOrganizationFeatureIntent + ) + + // Create the input for the RemoveOrganizationFeature method + let input = Operations.RemoveOrganizationFeature.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_SetOrganizationFeatureRequest) + body: .json(removeOrganizationFeatureRequest) ) - return try await underlyingClient.PublicApiService_SetOrganizationFeature(input) + + // Call the RemoveOrganizationFeature method using the underlyingClient + return try await underlyingClient.RemoveOrganizationFeature(input) } - public func publicApiService_SignRawPayload() async throws - -> Operations.PublicApiService_SignRawPayload.Output - { - // Create the PublicApiService_SignRawPayloadRequest - let publicApiService_SignRawPayloadRequest = Components.Schemas - .PublicApiService_SignRawPayloadRequest() + public func setOrganizationFeature( + organizationId: String, + name: Components.Schemas.FeatureName, value: String + ) async throws -> Operations.SetOrganizationFeature.Output { + + // Create the SetOrganizationFeatureIntent + let setOrganizationFeatureIntent = Components.Schemas.SetOrganizationFeatureIntent( + name: name, value: value) - let input = Operations.PublicApiService_SignRawPayload.Input( + // Create the SetOrganizationFeatureRequest + let setOrganizationFeatureRequest = Components.Schemas.SetOrganizationFeatureRequest( + _type: .ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: setOrganizationFeatureIntent + ) + + // Create the input for the SetOrganizationFeature method + let input = Operations.SetOrganizationFeature.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_SignRawPayloadRequest) + body: .json(setOrganizationFeatureRequest) ) - return try await underlyingClient.PublicApiService_SignRawPayload(input) + + // Call the SetOrganizationFeature method using the underlyingClient + return try await underlyingClient.SetOrganizationFeature(input) } - public func publicApiService_SignRawPayloads() async throws - -> Operations.PublicApiService_SignRawPayloads.Output - { - // Create the PublicApiService_SignRawPayloadsRequest - let publicApiService_SignRawPayloadsRequest = Components.Schemas - .PublicApiService_SignRawPayloadsRequest() + public func signRawPayload( + organizationId: String, + signWith: String, payload: String, encoding: Components.Schemas.PayloadEncoding, + hashFunction: Components.Schemas.HashFunction + ) async throws -> Operations.SignRawPayload.Output { + + // Create the SignRawPayloadIntentV2 + let signRawPayloadIntent = Components.Schemas.SignRawPayloadIntentV2( + signWith: signWith, payload: payload, encoding: encoding, hashFunction: hashFunction) + + // Create the SignRawPayloadRequest + let signRawPayloadRequest = Components.Schemas.SignRawPayloadRequest( + _type: .ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: signRawPayloadIntent + ) - let input = Operations.PublicApiService_SignRawPayloads.Input( + // Create the input for the SignRawPayload method + let input = Operations.SignRawPayload.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_SignRawPayloadsRequest) + body: .json(signRawPayloadRequest) ) - return try await underlyingClient.PublicApiService_SignRawPayloads(input) + + // Call the SignRawPayload method using the underlyingClient + return try await underlyingClient.SignRawPayload(input) } - public func publicApiService_SignTransaction() async throws - -> Operations.PublicApiService_SignTransaction.Output - { - // Create the PublicApiService_SignTransactionRequest - let publicApiService_SignTransactionRequest = Components.Schemas - .PublicApiService_SignTransactionRequest() + public func signRawPayloads( + organizationId: String, + signWith: String, payloads: [String], encoding: Components.Schemas.PayloadEncoding, + hashFunction: Components.Schemas.HashFunction + ) async throws -> Operations.SignRawPayloads.Output { + + // Create the SignRawPayloadsIntent + let signRawPayloadsIntent = Components.Schemas.SignRawPayloadsIntent( + signWith: signWith, payloads: payloads, encoding: encoding, hashFunction: hashFunction) + + // Create the SignRawPayloadsRequest + let signRawPayloadsRequest = Components.Schemas.SignRawPayloadsRequest( + _type: .ACTIVITY_TYPE_SIGN_RAW_PAYLOADS, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: signRawPayloadsIntent + ) - let input = Operations.PublicApiService_SignTransaction.Input( + // Create the input for the SignRawPayloads method + let input = Operations.SignRawPayloads.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_SignTransactionRequest) + body: .json(signRawPayloadsRequest) ) - return try await underlyingClient.PublicApiService_SignTransaction(input) + + // Call the SignRawPayloads method using the underlyingClient + return try await underlyingClient.SignRawPayloads(input) } - public func publicApiService_UpdatePolicy() async throws - -> Operations.PublicApiService_UpdatePolicy.Output - { - // Create the PublicApiService_UpdatePolicyRequest - let publicApiService_UpdatePolicyRequest = Components.Schemas - .PublicApiService_UpdatePolicyRequest() + public func signTransaction( + organizationId: String, + signWith: String, unsignedTransaction: String, _type: Components.Schemas.TransactionType + ) async throws -> Operations.SignTransaction.Output { + + // Create the SignTransactionIntentV2 + let signTransactionIntent = Components.Schemas.SignTransactionIntentV2( + signWith: signWith, unsignedTransaction: unsignedTransaction, _type: _type) + + // Create the SignTransactionRequest + let signTransactionRequest = Components.Schemas.SignTransactionRequest( + _type: .ACTIVITY_TYPE_SIGN_TRANSACTION_V2, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: signTransactionIntent + ) - let input = Operations.PublicApiService_UpdatePolicy.Input( + // Create the input for the SignTransaction method + let input = Operations.SignTransaction.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_UpdatePolicyRequest) + body: .json(signTransactionRequest) ) - return try await underlyingClient.PublicApiService_UpdatePolicy(input) + + // Call the SignTransaction method using the underlyingClient + return try await underlyingClient.SignTransaction(input) } - public func publicApiService_UpdatePrivateKeyTag() async throws - -> Operations.PublicApiService_UpdatePrivateKeyTag.Output - { - // Create the PublicApiService_UpdatePrivateKeyTagRequest - let publicApiService_UpdatePrivateKeyTagRequest = Components.Schemas - .PublicApiService_UpdatePrivateKeyTagRequest() + public func updatePolicy( + organizationId: String, + policyId: String, policyName: String?, policyEffect: Components.Schemas.Effect?, + policyCondition: String?, policyConsensus: String?, policyNotes: String? + ) async throws -> Operations.UpdatePolicy.Output { + + // Create the UpdatePolicyIntent + let updatePolicyIntent = Components.Schemas.UpdatePolicyIntent( + policyId: policyId, policyName: policyName, policyEffect: policyEffect, + policyCondition: policyCondition, policyConsensus: policyConsensus, policyNotes: policyNotes) - let input = Operations.PublicApiService_UpdatePrivateKeyTag.Input( + // Create the UpdatePolicyRequest + let updatePolicyRequest = Components.Schemas.UpdatePolicyRequest( + _type: .ACTIVITY_TYPE_UPDATE_POLICY, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: updatePolicyIntent + ) + + // Create the input for the UpdatePolicy method + let input = Operations.UpdatePolicy.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_UpdatePrivateKeyTagRequest) + body: .json(updatePolicyRequest) ) - return try await underlyingClient.PublicApiService_UpdatePrivateKeyTag(input) + + // Call the UpdatePolicy method using the underlyingClient + return try await underlyingClient.UpdatePolicy(input) } - public func publicApiService_UpdateRootQuorum() async throws - -> Operations.PublicApiService_UpdateRootQuorum.Output - { - // Create the PublicApiService_UpdateRootQuorumRequest - let publicApiService_UpdateRootQuorumRequest = Components.Schemas - .PublicApiService_UpdateRootQuorumRequest() + public func updatePrivateKeyTag( + organizationId: String, + privateKeyTagId: String, newPrivateKeyTagName: String?, addPrivateKeyIds: [String], + removePrivateKeyIds: [String] + ) async throws -> Operations.UpdatePrivateKeyTag.Output { + + // Create the UpdatePrivateKeyTagIntent + let updatePrivateKeyTagIntent = Components.Schemas.UpdatePrivateKeyTagIntent( + privateKeyTagId: privateKeyTagId, newPrivateKeyTagName: newPrivateKeyTagName, + addPrivateKeyIds: addPrivateKeyIds, removePrivateKeyIds: removePrivateKeyIds) - let input = Operations.PublicApiService_UpdateRootQuorum.Input( + // Create the UpdatePrivateKeyTagRequest + let updatePrivateKeyTagRequest = Components.Schemas.UpdatePrivateKeyTagRequest( + _type: .ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: updatePrivateKeyTagIntent + ) + + // Create the input for the UpdatePrivateKeyTag method + let input = Operations.UpdatePrivateKeyTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_UpdateRootQuorumRequest) + body: .json(updatePrivateKeyTagRequest) ) - return try await underlyingClient.PublicApiService_UpdateRootQuorum(input) + + // Call the UpdatePrivateKeyTag method using the underlyingClient + return try await underlyingClient.UpdatePrivateKeyTag(input) } - public func publicApiService_UpdateUser() async throws - -> Operations.PublicApiService_UpdateUser.Output - { - // Create the PublicApiService_UpdateUserRequest - let publicApiService_UpdateUserRequest = Components.Schemas.PublicApiService_UpdateUserRequest() + public func updateRootQuorum( + organizationId: String, + threshold: Int32, userIds: [String] + ) async throws -> Operations.UpdateRootQuorum.Output { + + // Create the UpdateRootQuorumIntent + let updateRootQuorumIntent = Components.Schemas.UpdateRootQuorumIntent( + threshold: threshold, userIds: userIds) - let input = Operations.PublicApiService_UpdateUser.Input( + // Create the UpdateRootQuorumRequest + let updateRootQuorumRequest = Components.Schemas.UpdateRootQuorumRequest( + _type: .ACTIVITY_TYPE_UPDATE_ROOT_QUORUM, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: updateRootQuorumIntent + ) + + // Create the input for the UpdateRootQuorum method + let input = Operations.UpdateRootQuorum.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_UpdateUserRequest) + body: .json(updateRootQuorumRequest) ) - return try await underlyingClient.PublicApiService_UpdateUser(input) + + // Call the UpdateRootQuorum method using the underlyingClient + return try await underlyingClient.UpdateRootQuorum(input) } - public func publicApiService_UpdateUserTag() async throws - -> Operations.PublicApiService_UpdateUserTag.Output - { - // Create the PublicApiService_UpdateUserTagRequest - let publicApiService_UpdateUserTagRequest = Components.Schemas - .PublicApiService_UpdateUserTagRequest() + public func updateUser( + organizationId: String, + userId: String, userName: String?, userEmail: String?, userTagIds: [String]?, + userPhoneNumber: String? + ) async throws -> Operations.UpdateUser.Output { - let input = Operations.PublicApiService_UpdateUserTag.Input( + // Create the UpdateUserIntent + let updateUserIntent = Components.Schemas.UpdateUserIntent( + userId: userId, userName: userName, userEmail: userEmail, userTagIds: userTagIds, + userPhoneNumber: userPhoneNumber) + + // Create the UpdateUserRequest + let updateUserRequest = Components.Schemas.UpdateUserRequest( + _type: .ACTIVITY_TYPE_UPDATE_USER, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: updateUserIntent + ) + + // Create the input for the UpdateUser method + let input = Operations.UpdateUser.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_UpdateUserTagRequest) + body: .json(updateUserRequest) ) - return try await underlyingClient.PublicApiService_UpdateUserTag(input) + + // Call the UpdateUser method using the underlyingClient + return try await underlyingClient.UpdateUser(input) } - public func publicApiService_NOOPCodegenAnchor() async throws - -> Operations.PublicApiService_NOOPCodegenAnchor.Output - { - // Create the PublicApiService_NOOPCodegenAnchorRequest - let publicApiService_NOOPCodegenAnchorRequest = Components.Schemas - .PublicApiService_NOOPCodegenAnchorRequest() + public func updateUserTag( + organizationId: String, + userTagId: String, newUserTagName: String?, addUserIds: [String], removeUserIds: [String] + ) async throws -> Operations.UpdateUserTag.Output { + + // Create the UpdateUserTagIntent + let updateUserTagIntent = Components.Schemas.UpdateUserTagIntent( + userTagId: userTagId, newUserTagName: newUserTagName, addUserIds: addUserIds, + removeUserIds: removeUserIds) - let input = Operations.PublicApiService_NOOPCodegenAnchor.Input( + // Create the UpdateUserTagRequest + let updateUserTagRequest = Components.Schemas.UpdateUserTagRequest( + _type: .ACTIVITY_TYPE_UPDATE_USER_TAG, + timestampMs: String(Int(Date().timeIntervalSince1970 * 1000)), + organizationId: organizationId, + parameters: updateUserTagIntent + ) + + // Create the input for the UpdateUserTag method + let input = Operations.UpdateUserTag.Input( headers: .init(accept: [.init(contentType: .json)]), - body: .json(publicApiService_NOOPCodegenAnchorRequest) + body: .json(updateUserTagRequest) ) - return try await underlyingClient.PublicApiService_NOOPCodegenAnchor(input) + + // Call the UpdateUserTag method using the underlyingClient + return try await underlyingClient.UpdateUserTag(input) } } diff --git a/Sources/TurnkeySDK/openapi.yaml b/Sources/TurnkeySDK/openapi.yaml index a72997a..0a328ce 100644 --- a/Sources/TurnkeySDK/openapi.yaml +++ b/Sources/TurnkeySDK/openapi.yaml @@ -10,7 +10,6 @@ security: - ApiKeyAuth: [] - AuthenticatorAuth: [] tags: -- name: PublicApiService - name: Organizations description: |- An Organization is the highest level of hierarchy in Turnkey. It can contain many Users, Private Keys, and Policies managed by a Root Quorum. The Root Quorum consists of a set of Users with a consensus threshold. This consensus threshold must be reached by Quorum members in order for any actions to take place. @@ -77,12 +76,12 @@ paths: - Activities summary: Get Activity description: Get details about an Activity - operationId: PublicApiService_GetActivity + operationId: GetActivity requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetActivityRequest" + "$ref": "#/components/schemas/GetActivityRequest" required: true responses: '200': @@ -90,13 +89,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/query/get_api_key": post: @@ -104,12 +97,12 @@ paths: - API keys summary: Get API key description: Get details about an API key - operationId: PublicApiService_GetApiKey + operationId: GetApiKey requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetApiKeyRequest" + "$ref": "#/components/schemas/GetApiKeyRequest" required: true responses: '200': @@ -117,13 +110,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetApiKeyResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetApiKeyResponse" x-codegen-request-body-name: body "/public/v1/query/get_api_keys": post: @@ -131,12 +118,12 @@ paths: - API keys summary: Get API key description: Get details about API keys for a user - operationId: PublicApiService_GetApiKeys + operationId: GetApiKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetApiKeysRequest" + "$ref": "#/components/schemas/GetApiKeysRequest" required: true responses: '200': @@ -144,40 +131,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetApiKeysResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" - x-codegen-request-body-name: body - "/public/v1/query/get_attestation": - post: - tags: - - Attestation - summary: Attestation - description: Get the attestation document corresponding to an enclave. - operationId: PublicApiService_GetAttestationDocument - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/v1GetAttestationDocumentRequest" - required: true - responses: - '200': - description: A successful response. - content: - application/json: - schema: - "$ref": "#/components/schemas/v1GetAttestationDocumentResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetApiKeysResponse" x-codegen-request-body-name: body "/public/v1/query/get_authenticator": post: @@ -185,12 +139,12 @@ paths: - Authenticators summary: Get Authenticator description: Get details about an authenticator - operationId: PublicApiService_GetAuthenticator + operationId: GetAuthenticator requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetAuthenticatorRequest" + "$ref": "#/components/schemas/GetAuthenticatorRequest" required: true responses: '200': @@ -198,13 +152,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetAuthenticatorResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetAuthenticatorResponse" x-codegen-request-body-name: body "/public/v1/query/get_authenticators": post: @@ -212,12 +160,12 @@ paths: - Authenticators summary: Get Authenticators description: Get details about authenticators for a user - operationId: PublicApiService_GetAuthenticators + operationId: GetAuthenticators requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetAuthenticatorsRequest" + "$ref": "#/components/schemas/GetAuthenticatorsRequest" required: true responses: '200': @@ -225,13 +173,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetAuthenticatorsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetAuthenticatorsResponse" x-codegen-request-body-name: body "/public/v1/query/get_oauth_providers": post: @@ -239,12 +181,12 @@ paths: - Users summary: Get Oauth providers description: Get details about Oauth providers for a user - operationId: PublicApiService_GetOauthProviders + operationId: GetOauthProviders requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetOauthProvidersRequest" + "$ref": "#/components/schemas/GetOauthProvidersRequest" required: true responses: '200': @@ -252,40 +194,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetOauthProvidersResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" - x-codegen-request-body-name: body - "/public/v1/query/get_organization": - post: - tags: - - Organizations - summary: Get Organization - description: Get details about an Organization - operationId: PublicApiService_GetOrganization - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/v1GetOrganizationRequest" - required: true - responses: - '200': - description: A successful response. - content: - application/json: - schema: - "$ref": "#/components/schemas/v1GetOrganizationResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetOauthProvidersResponse" x-codegen-request-body-name: body "/public/v1/query/get_organization_configs": post: @@ -293,12 +202,12 @@ paths: - Organizations summary: Get Configs description: Get quorum settings and features for an organization - operationId: PublicApiService_GetOrganizationConfigs + operationId: GetOrganizationConfigs requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetOrganizationConfigsRequest" + "$ref": "#/components/schemas/GetOrganizationConfigsRequest" required: true responses: '200': @@ -306,13 +215,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetOrganizationConfigsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetOrganizationConfigsResponse" x-codegen-request-body-name: body "/public/v1/query/get_policy": post: @@ -320,12 +223,12 @@ paths: - Policies summary: Get Policy description: Get details about a Policy - operationId: PublicApiService_GetPolicy + operationId: GetPolicy requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPolicyRequest" + "$ref": "#/components/schemas/GetPolicyRequest" required: true responses: '200': @@ -333,13 +236,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPolicyResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetPolicyResponse" x-codegen-request-body-name: body "/public/v1/query/get_private_key": post: @@ -347,12 +244,12 @@ paths: - Private Keys summary: Get Private Key description: Get details about a Private Key - operationId: PublicApiService_GetPrivateKey + operationId: GetPrivateKey requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPrivateKeyRequest" + "$ref": "#/components/schemas/GetPrivateKeyRequest" required: true responses: '200': @@ -360,13 +257,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPrivateKeyResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetPrivateKeyResponse" x-codegen-request-body-name: body "/public/v1/query/get_user": post: @@ -374,12 +265,12 @@ paths: - Users summary: Get User description: Get details about a User - operationId: PublicApiService_GetUser + operationId: GetUser requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetUserRequest" + "$ref": "#/components/schemas/GetUserRequest" required: true responses: '200': @@ -387,13 +278,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetUserResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetUserResponse" x-codegen-request-body-name: body "/public/v1/query/get_wallet": post: @@ -401,12 +286,12 @@ paths: - Wallets summary: Get Wallet description: Get details about a Wallet - operationId: PublicApiService_GetWallet + operationId: GetWallet requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletRequest" + "$ref": "#/components/schemas/GetWalletRequest" required: true responses: '200': @@ -414,13 +299,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetWalletResponse" x-codegen-request-body-name: body "/public/v1/query/list_activities": post: @@ -428,12 +307,12 @@ paths: - Activities summary: List Activities description: List all Activities within an Organization - operationId: PublicApiService_GetActivities + operationId: GetActivities requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetActivitiesRequest" + "$ref": "#/components/schemas/GetActivitiesRequest" required: true responses: '200': @@ -441,13 +320,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetActivitiesResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetActivitiesResponse" x-codegen-request-body-name: body "/public/v1/query/list_policies": post: @@ -455,12 +328,12 @@ paths: - Policies summary: List Policies description: List all Policies within an Organization - operationId: PublicApiService_GetPolicies + operationId: GetPolicies requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPoliciesRequest" + "$ref": "#/components/schemas/GetPoliciesRequest" required: true responses: '200': @@ -468,13 +341,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPoliciesResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetPoliciesResponse" x-codegen-request-body-name: body "/public/v1/query/list_private_key_tags": post: @@ -482,12 +349,12 @@ paths: - Private Key Tags summary: List Private Key Tags description: List all Private Key Tags within an Organization - operationId: PublicApiService_ListPrivateKeyTags + operationId: ListPrivateKeyTags requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ListPrivateKeyTagsRequest" + "$ref": "#/components/schemas/ListPrivateKeyTagsRequest" required: true responses: '200': @@ -495,13 +362,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ListPrivateKeyTagsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ListPrivateKeyTagsResponse" x-codegen-request-body-name: body "/public/v1/query/list_private_keys": post: @@ -509,12 +370,12 @@ paths: - Private Keys summary: List Private Keys description: List all Private Keys within an Organization - operationId: PublicApiService_GetPrivateKeys + operationId: GetPrivateKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPrivateKeysRequest" + "$ref": "#/components/schemas/GetPrivateKeysRequest" required: true responses: '200': @@ -522,13 +383,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetPrivateKeysResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetPrivateKeysResponse" x-codegen-request-body-name: body "/public/v1/query/list_suborgs": post: @@ -537,12 +392,12 @@ paths: summary: Get Suborgs description: Get all suborg IDs associated given a parent org ID and an optional filter. - operationId: PublicApiService_GetSubOrgIds + operationId: GetSubOrgIds requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetSubOrgIdsRequest" + "$ref": "#/components/schemas/GetSubOrgIdsRequest" required: true responses: '200': @@ -550,13 +405,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetSubOrgIdsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetSubOrgIdsResponse" x-codegen-request-body-name: body "/public/v1/query/list_user_tags": post: @@ -564,12 +413,12 @@ paths: - User Tags summary: List User Tags description: List all User Tags within an Organization - operationId: PublicApiService_ListUserTags + operationId: ListUserTags requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ListUserTagsRequest" + "$ref": "#/components/schemas/ListUserTagsRequest" required: true responses: '200': @@ -577,13 +426,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ListUserTagsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ListUserTagsResponse" x-codegen-request-body-name: body "/public/v1/query/list_users": post: @@ -591,12 +434,12 @@ paths: - Users summary: List Users description: List all Users within an Organization - operationId: PublicApiService_GetUsers + operationId: GetUsers requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetUsersRequest" + "$ref": "#/components/schemas/GetUsersRequest" required: true responses: '200': @@ -604,13 +447,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetUsersResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetUsersResponse" x-codegen-request-body-name: body "/public/v1/query/list_wallet_accounts": post: @@ -618,12 +455,12 @@ paths: - Wallets summary: List Wallets Accounts description: List all Accounts wirhin a Wallet - operationId: PublicApiService_GetWalletAccounts + operationId: GetWalletAccounts requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletAccountsRequest" + "$ref": "#/components/schemas/GetWalletAccountsRequest" required: true responses: '200': @@ -631,13 +468,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletAccountsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetWalletAccountsResponse" x-codegen-request-body-name: body "/public/v1/query/list_wallets": post: @@ -645,12 +476,12 @@ paths: - Wallets summary: List Wallets description: List all Wallets within an Organization - operationId: PublicApiService_GetWallets + operationId: GetWallets requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletsRequest" + "$ref": "#/components/schemas/GetWalletsRequest" required: true responses: '200': @@ -658,13 +489,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWalletsResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetWalletsResponse" x-codegen-request-body-name: body "/public/v1/query/whoami": post: @@ -674,12 +499,12 @@ paths: description: Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN or API key users. - operationId: PublicApiService_GetWhoami + operationId: GetWhoami requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWhoamiRequest" + "$ref": "#/components/schemas/GetWhoamiRequest" required: true responses: '200': @@ -687,13 +512,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1GetWhoamiResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/GetWhoamiResponse" x-codegen-request-body-name: body "/public/v1/submit/approve_activity": post: @@ -701,12 +520,12 @@ paths: - Consensus summary: Approve Activity description: Approve an Activity - operationId: PublicApiService_ApproveActivity + operationId: ApproveActivity requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ApproveActivityRequest" + "$ref": "#/components/schemas/ApproveActivityRequest" required: true responses: '200': @@ -714,13 +533,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_api_keys": post: @@ -728,12 +541,12 @@ paths: - API Keys summary: Create API Keys description: Add api keys to an existing User - operationId: PublicApiService_CreateApiKeys + operationId: CreateApiKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateApiKeysRequest" + "$ref": "#/components/schemas/CreateApiKeysRequest" required: true responses: '200': @@ -741,40 +554,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" - x-codegen-request-body-name: body - "/public/v1/submit/create_api_only_users": - post: - tags: - - Users - summary: Create API-only Users - description: Create API-only Users in an existing Organization - operationId: PublicApiService_CreateApiOnlyUsers - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/v1CreateApiOnlyUsersRequest" - required: true - responses: - '200': - description: A successful response. - content: - application/json: - schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_authenticators": post: @@ -782,12 +562,12 @@ paths: - Authenticators summary: Create Authenticators description: Create Authenticators to authenticate requests to Turnkey - operationId: PublicApiService_CreateAuthenticators + operationId: CreateAuthenticators requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateAuthenticatorsRequest" + "$ref": "#/components/schemas/CreateAuthenticatorsRequest" required: true responses: '200': @@ -795,13 +575,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_invitations": post: @@ -809,12 +583,12 @@ paths: - Invitations summary: Create Invitations description: Create Invitations to join an existing Organization - operationId: PublicApiService_CreateInvitations + operationId: CreateInvitations requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateInvitationsRequest" + "$ref": "#/components/schemas/CreateInvitationsRequest" required: true responses: '200': @@ -822,13 +596,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_oauth_providers": post: @@ -836,12 +604,12 @@ paths: - Users summary: Create Oauth Providers description: Creates Oauth providers for a specified user - BETA - operationId: PublicApiService_CreateOauthProviders + operationId: CreateOauthProviders requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateOauthProvidersRequest" + "$ref": "#/components/schemas/CreateOauthProvidersRequest" required: true responses: '200': @@ -849,13 +617,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_policies": post: @@ -863,12 +625,12 @@ paths: - Policies summary: Create Policies description: Create new Policies - operationId: PublicApiService_CreatePolicies + operationId: CreatePolicies requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreatePoliciesRequest" + "$ref": "#/components/schemas/CreatePoliciesRequest" required: true responses: '200': @@ -876,13 +638,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_policy": post: @@ -890,12 +646,12 @@ paths: - Policies summary: Create Policy description: Create a new Policy - operationId: PublicApiService_CreatePolicy + operationId: CreatePolicy requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreatePolicyRequest" + "$ref": "#/components/schemas/CreatePolicyRequest" required: true responses: '200': @@ -903,13 +659,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_private_key_tag": post: @@ -917,12 +667,12 @@ paths: - Private Key Tags summary: Create Private Key Tag description: Create a private key tag and add it to private keys. - operationId: PublicApiService_CreatePrivateKeyTag + operationId: CreatePrivateKeyTag requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreatePrivateKeyTagRequest" + "$ref": "#/components/schemas/CreatePrivateKeyTagRequest" required: true responses: '200': @@ -930,13 +680,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_private_keys": post: @@ -944,12 +688,12 @@ paths: - Private Keys summary: Create Private Keys description: Create new Private Keys - operationId: PublicApiService_CreatePrivateKeys + operationId: CreatePrivateKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreatePrivateKeysRequest" + "$ref": "#/components/schemas/CreatePrivateKeysRequest" required: true responses: '200': @@ -957,13 +701,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_read_only_session": post: @@ -971,12 +709,12 @@ paths: - Sessions summary: Create Read Only Session description: Create a read only session for a user (valid for 1 hour) - operationId: PublicApiService_CreateReadOnlySession + operationId: CreateReadOnlySession requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateReadOnlySessionRequest" + "$ref": "#/components/schemas/CreateReadOnlySessionRequest" required: true responses: '200': @@ -984,13 +722,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_read_write_session": post: @@ -998,12 +730,12 @@ paths: - Sessions summary: Create Read Write Session description: Create a read write session for a user - operationId: PublicApiService_CreateReadWriteSession + operationId: CreateReadWriteSession requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateReadWriteSessionRequest" + "$ref": "#/components/schemas/CreateReadWriteSessionRequest" required: true responses: '200': @@ -1011,13 +743,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_sub_organization": post: @@ -1025,12 +751,12 @@ paths: - Organizations summary: Create Sub-Organization description: Create a new Sub-Organization - operationId: PublicApiService_CreateSubOrganization + operationId: CreateSubOrganization requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateSubOrganizationRequest" + "$ref": "#/components/schemas/CreateSubOrganizationRequest" required: true responses: '200': @@ -1038,13 +764,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_user_tag": post: @@ -1052,12 +772,12 @@ paths: - User Tags summary: Create User Tag description: Create a user tag and add it to users. - operationId: PublicApiService_CreateUserTag + operationId: CreateUserTag requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateUserTagRequest" + "$ref": "#/components/schemas/CreateUserTagRequest" required: true responses: '200': @@ -1065,13 +785,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_users": post: @@ -1079,12 +793,12 @@ paths: - Users summary: Create Users description: Create Users in an existing Organization - operationId: PublicApiService_CreateUsers + operationId: CreateUsers requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateUsersRequest" + "$ref": "#/components/schemas/CreateUsersRequest" required: true responses: '200': @@ -1092,13 +806,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_wallet": post: @@ -1106,12 +814,12 @@ paths: - Wallets summary: Create Wallet description: Create a Wallet and derive addresses - operationId: PublicApiService_CreateWallet + operationId: CreateWallet requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateWalletRequest" + "$ref": "#/components/schemas/CreateWalletRequest" required: true responses: '200': @@ -1119,13 +827,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/create_wallet_accounts": post: @@ -1133,12 +835,12 @@ paths: - Wallets summary: Create Wallet Accounts description: Derive additional addresses using an existing wallet - operationId: PublicApiService_CreateWalletAccounts + operationId: CreateWalletAccounts requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1CreateWalletAccountsRequest" + "$ref": "#/components/schemas/CreateWalletAccountsRequest" required: true responses: '200': @@ -1146,13 +848,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_api_keys": post: @@ -1160,12 +856,12 @@ paths: - API Keys summary: Delete API Keys description: Remove api keys from a User - operationId: PublicApiService_DeleteApiKeys + operationId: DeleteApiKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteApiKeysRequest" + "$ref": "#/components/schemas/DeleteApiKeysRequest" required: true responses: '200': @@ -1173,13 +869,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_authenticators": post: @@ -1187,12 +877,12 @@ paths: - Authenticators summary: Delete Authenticators description: Remove authenticators from a User - operationId: PublicApiService_DeleteAuthenticators + operationId: DeleteAuthenticators requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteAuthenticatorsRequest" + "$ref": "#/components/schemas/DeleteAuthenticatorsRequest" required: true responses: '200': @@ -1200,13 +890,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_invitation": post: @@ -1214,12 +898,12 @@ paths: - Invitations summary: Delete Invitation description: Delete an existing Invitation - operationId: PublicApiService_DeleteInvitation + operationId: DeleteInvitation requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteInvitationRequest" + "$ref": "#/components/schemas/DeleteInvitationRequest" required: true responses: '200': @@ -1227,13 +911,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_oauth_providers": post: @@ -1241,12 +919,12 @@ paths: - Users summary: Delete Oauth Providers description: Removes Oauth providers for a specified user - BETA - operationId: PublicApiService_DeleteOauthProviders + operationId: DeleteOauthProviders requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteOauthProvidersRequest" + "$ref": "#/components/schemas/DeleteOauthProvidersRequest" required: true responses: '200': @@ -1254,13 +932,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_policy": post: @@ -1268,12 +940,12 @@ paths: - Policies summary: Delete Policy description: Delete an existing Policy - operationId: PublicApiService_DeletePolicy + operationId: DeletePolicy requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeletePolicyRequest" + "$ref": "#/components/schemas/DeletePolicyRequest" required: true responses: '200': @@ -1281,13 +953,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_private_key_tags": post: @@ -1295,12 +961,12 @@ paths: - Private Key Tags summary: Delete Private Key Tags description: Delete Private Key Tags within an Organization - operationId: PublicApiService_DeletePrivateKeyTags + operationId: DeletePrivateKeyTags requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeletePrivateKeyTagsRequest" + "$ref": "#/components/schemas/DeletePrivateKeyTagsRequest" required: true responses: '200': @@ -1308,13 +974,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_private_keys": post: @@ -1322,12 +982,12 @@ paths: - Private Keys summary: Delete Private Keys description: Deletes private keys for an organization - operationId: PublicApiService_DeletePrivateKeys + operationId: DeletePrivateKeys requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeletePrivateKeysRequest" + "$ref": "#/components/schemas/DeletePrivateKeysRequest" required: true responses: '200': @@ -1335,13 +995,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_sub_organization": post: @@ -1349,12 +1003,12 @@ paths: - Organizations summary: Delete Sub Organization description: Deletes a sub organization - operationId: PublicApiService_DeleteSubOrganization + operationId: DeleteSubOrganization requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteSubOrganizationRequest" + "$ref": "#/components/schemas/DeleteSubOrganizationRequest" required: true responses: '200': @@ -1362,13 +1016,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_user_tags": post: @@ -1376,12 +1024,12 @@ paths: - User Tags summary: Delete User Tags description: Delete User Tags within an Organization - operationId: PublicApiService_DeleteUserTags + operationId: DeleteUserTags requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteUserTagsRequest" + "$ref": "#/components/schemas/DeleteUserTagsRequest" required: true responses: '200': @@ -1389,13 +1037,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_users": post: @@ -1403,12 +1045,12 @@ paths: - Users summary: Delete Users description: Delete Users within an Organization - operationId: PublicApiService_DeleteUsers + operationId: DeleteUsers requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteUsersRequest" + "$ref": "#/components/schemas/DeleteUsersRequest" required: true responses: '200': @@ -1416,13 +1058,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/delete_wallets": post: @@ -1430,12 +1066,12 @@ paths: - Wallets summary: Delete Wallets description: Deletes wallets for an organization - operationId: PublicApiService_DeleteWallets + operationId: DeleteWallets requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1DeleteWalletsRequest" + "$ref": "#/components/schemas/DeleteWalletsRequest" required: true responses: '200': @@ -1443,13 +1079,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/email_auth": post: @@ -1457,12 +1087,12 @@ paths: - User Auth summary: Perform Email Auth description: Authenticate a user via Email - operationId: PublicApiService_EmailAuth + operationId: EmailAuth requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1EmailAuthRequest" + "$ref": "#/components/schemas/EmailAuthRequest" required: true responses: '200': @@ -1470,13 +1100,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/export_private_key": post: @@ -1484,12 +1108,12 @@ paths: - Private Keys summary: Export Private Key description: Exports a Private Key - operationId: PublicApiService_ExportPrivateKey + operationId: ExportPrivateKey requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ExportPrivateKeyRequest" + "$ref": "#/components/schemas/ExportPrivateKeyRequest" required: true responses: '200': @@ -1497,13 +1121,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/export_wallet": post: @@ -1511,12 +1129,12 @@ paths: - Wallets summary: Export Wallet description: Exports a Wallet - operationId: PublicApiService_ExportWallet + operationId: ExportWallet requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ExportWalletRequest" + "$ref": "#/components/schemas/ExportWalletRequest" required: true responses: '200': @@ -1524,13 +1142,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/export_wallet_account": post: @@ -1538,12 +1150,12 @@ paths: - Wallets summary: Export Wallet Account description: Exports a Wallet Account - operationId: PublicApiService_ExportWalletAccount + operationId: ExportWalletAccount requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ExportWalletAccountRequest" + "$ref": "#/components/schemas/ExportWalletAccountRequest" required: true responses: '200': @@ -1551,13 +1163,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/import_private_key": post: @@ -1565,12 +1171,12 @@ paths: - Private Keys summary: Import Private Key description: Imports a private key - operationId: PublicApiService_ImportPrivateKey + operationId: ImportPrivateKey requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ImportPrivateKeyRequest" + "$ref": "#/components/schemas/ImportPrivateKeyRequest" required: true responses: '200': @@ -1578,13 +1184,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/import_wallet": post: @@ -1592,12 +1192,12 @@ paths: - Wallets summary: Import Wallet description: Imports a wallet - operationId: PublicApiService_ImportWallet + operationId: ImportWallet requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1ImportWalletRequest" + "$ref": "#/components/schemas/ImportWalletRequest" required: true responses: '200': @@ -1605,13 +1205,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/init_import_private_key": post: @@ -1619,12 +1213,12 @@ paths: - Private Keys summary: Init Import Private Key description: Initializes a new private key import - operationId: PublicApiService_InitImportPrivateKey + operationId: InitImportPrivateKey requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1InitImportPrivateKeyRequest" + "$ref": "#/components/schemas/InitImportPrivateKeyRequest" required: true responses: '200': @@ -1632,13 +1226,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/init_import_wallet": post: @@ -1646,12 +1234,12 @@ paths: - Wallets summary: Init Import Wallet description: Initializes a new wallet import - operationId: PublicApiService_InitImportWallet + operationId: InitImportWallet requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1InitImportWalletRequest" + "$ref": "#/components/schemas/InitImportWalletRequest" required: true responses: '200': @@ -1659,13 +1247,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/init_otp_auth": post: @@ -1673,12 +1255,12 @@ paths: - Users summary: Init OTP auth description: Initiate an OTP auth activity - operationId: PublicApiService_InitOtpAuth + operationId: InitOtpAuth requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1InitOtpAuthRequest" + "$ref": "#/components/schemas/InitOtpAuthRequest" required: true responses: '200': @@ -1686,13 +1268,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/init_user_email_recovery": post: @@ -1700,12 +1276,12 @@ paths: - User Recovery summary: Init Email Recovery description: Initializes a new email recovery - operationId: PublicApiService_InitUserEmailRecovery + operationId: InitUserEmailRecovery requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1InitUserEmailRecoveryRequest" + "$ref": "#/components/schemas/InitUserEmailRecoveryRequest" required: true responses: '200': @@ -1713,13 +1289,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/oauth": post: @@ -1727,12 +1297,12 @@ paths: - Users summary: Oauth description: Authenticate a user with an Oidc token (Oauth) - BETA - operationId: PublicApiService_Oauth + operationId: Oauth requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1OauthRequest" + "$ref": "#/components/schemas/OauthRequest" required: true responses: '200': @@ -1740,13 +1310,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/otp_auth": post: @@ -1754,12 +1318,12 @@ paths: - Users summary: OTP auth description: Authenticate a user with an OTP code sent via email or SMS - operationId: PublicApiService_OtpAuth + operationId: OtpAuth requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1OtpAuthRequest" + "$ref": "#/components/schemas/OtpAuthRequest" required: true responses: '200': @@ -1767,13 +1331,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/recover_user": post: @@ -1781,12 +1339,12 @@ paths: - User Recovery summary: Recover a user description: Completes the process of recovering a user by adding an authenticator - operationId: PublicApiService_RecoverUser + operationId: RecoverUser requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1RecoverUserRequest" + "$ref": "#/components/schemas/RecoverUserRequest" required: true responses: '200': @@ -1794,13 +1352,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/reject_activity": post: @@ -1808,12 +1360,12 @@ paths: - Consensus summary: Reject Activity description: Reject an Activity - operationId: PublicApiService_RejectActivity + operationId: RejectActivity requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1RejectActivityRequest" + "$ref": "#/components/schemas/RejectActivityRequest" required: true responses: '200': @@ -1821,13 +1373,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/remove_organization_feature": post: @@ -1836,12 +1382,12 @@ paths: summary: Remove Organization Feature description: Removes an organization feature. This activity must be approved by the current root quorum. - operationId: PublicApiService_RemoveOrganizationFeature + operationId: RemoveOrganizationFeature requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1RemoveOrganizationFeatureRequest" + "$ref": "#/components/schemas/RemoveOrganizationFeatureRequest" required: true responses: '200': @@ -1849,13 +1395,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/set_organization_feature": post: @@ -1864,12 +1404,12 @@ paths: summary: Set Organization Feature description: Sets an organization feature. This activity must be approved by the current root quorum. - operationId: PublicApiService_SetOrganizationFeature + operationId: SetOrganizationFeature requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1SetOrganizationFeatureRequest" + "$ref": "#/components/schemas/SetOrganizationFeatureRequest" required: true responses: '200': @@ -1877,13 +1417,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/sign_raw_payload": post: @@ -1891,12 +1425,12 @@ paths: - Signing summary: Sign Raw Payload description: Sign a raw payload - operationId: PublicApiService_SignRawPayload + operationId: SignRawPayload requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1SignRawPayloadRequest" + "$ref": "#/components/schemas/SignRawPayloadRequest" required: true responses: '200': @@ -1904,13 +1438,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/sign_raw_payloads": post: @@ -1918,12 +1446,12 @@ paths: - Signing summary: Sign Raw Payloads description: Sign multiple raw payloads with the same signing parameters - operationId: PublicApiService_SignRawPayloads + operationId: SignRawPayloads requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1SignRawPayloadsRequest" + "$ref": "#/components/schemas/SignRawPayloadsRequest" required: true responses: '200': @@ -1931,13 +1459,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/sign_transaction": post: @@ -1945,12 +1467,12 @@ paths: - Signing summary: Sign Transaction description: Sign a transaction - operationId: PublicApiService_SignTransaction + operationId: SignTransaction requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1SignTransactionRequest" + "$ref": "#/components/schemas/SignTransactionRequest" required: true responses: '200': @@ -1958,13 +1480,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/update_policy": post: @@ -1972,12 +1488,12 @@ paths: - Policies summary: Update Policy description: Update an existing Policy - operationId: PublicApiService_UpdatePolicy + operationId: UpdatePolicy requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1UpdatePolicyRequest" + "$ref": "#/components/schemas/UpdatePolicyRequest" required: true responses: '200': @@ -1985,13 +1501,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/update_private_key_tag": post: @@ -2001,12 +1511,12 @@ paths: description: 'Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.' - operationId: PublicApiService_UpdatePrivateKeyTag + operationId: UpdatePrivateKeyTag requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1UpdatePrivateKeyTagRequest" + "$ref": "#/components/schemas/UpdatePrivateKeyTagRequest" required: true responses: '200': @@ -2014,13 +1524,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/update_root_quorum": post: @@ -2029,12 +1533,12 @@ paths: summary: Update Root Quorum description: Set the threshold and members of the root quorum. This activity must be approved by the current root quorum. - operationId: PublicApiService_UpdateRootQuorum + operationId: UpdateRootQuorum requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1UpdateRootQuorumRequest" + "$ref": "#/components/schemas/UpdateRootQuorumRequest" required: true responses: '200': @@ -2042,13 +1546,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/update_user": post: @@ -2056,12 +1554,12 @@ paths: - Users summary: Update User description: Update a User in an existing Organization - operationId: PublicApiService_UpdateUser + operationId: UpdateUser requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1UpdateUserRequest" + "$ref": "#/components/schemas/UpdateUserRequest" required: true responses: '200': @@ -2069,13 +1567,7 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body "/public/v1/submit/update_user_tag": post: @@ -2085,12 +1577,12 @@ paths: description: 'Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.' - operationId: PublicApiService_UpdateUserTag + operationId: UpdateUserTag requestBody: content: application/json: schema: - "$ref": "#/components/schemas/v1UpdateUserTagRequest" + "$ref": "#/components/schemas/UpdateUserTagRequest" required: true responses: '200': @@ -2098,235 +1590,11 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/v1ActivityResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" + "$ref": "#/components/schemas/ActivityResponse" x-codegen-request-body-name: body - "/tkhq/api/v1/noop-codegen-anchor": - post: - tags: - - PublicApiService - operationId: PublicApiService_NOOPCodegenAnchor - responses: - '200': - description: A successful response. - content: - application/json: - schema: - "$ref": "#/components/schemas/v1NOOPCodegenAnchorResponse" - default: - description: An unexpected error response. - content: - application/json: - schema: - "$ref": "#/components/schemas/rpcStatus" components: schemas: - apiApiKeyParams: - required: - - apiKeyName - - publicKey - type: object - properties: - apiKeyName: - type: string - description: Human-readable name for an API Key. - publicKey: - type: string - description: The public component of a cryptographic key pair used to sign - messages and transactions. - expirationSeconds: - type: string - description: Optional window (in seconds) indicating how long the API Key - should last. - billingActivateBillingTierIntent: - required: - - productId - type: object - properties: - productId: - type: string - description: The product that the customer wants to subscribe to. - billingActivateBillingTierResult: - required: - - productId - type: object - properties: - productId: - type: string - description: The id of the product being subscribed to. - billingDeletePaymentMethodIntent: - required: - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The payment method that the customer wants to remove. - billingDeletePaymentMethodResult: - required: - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The payment method that was removed. - billingSetPaymentMethodIntent: - required: - - cardHolderEmail - - cardHolderName - - cvv - - expiryMonth - - expiryYear - - number - type: object - properties: - number: - type: string - description: The account number of the customer's credit card. - cvv: - type: string - description: The verification digits of the customer's credit card. - expiryMonth: - type: string - description: The month that the credit card expires. - expiryYear: - type: string - description: The year that the credit card expires. - cardHolderEmail: - type: string - description: The email that will receive invoices for the credit card. - cardHolderName: - type: string - description: The name associated with the credit card. - billingSetPaymentMethodIntentV2: - required: - - cardHolderEmail - - cardHolderName - - paymentMethodId - type: object - properties: - paymentMethodId: - type: string - description: The id of the payment method that was created clientside. - cardHolderEmail: - type: string - description: The email that will receive invoices for the credit card. - cardHolderName: - type: string - description: The name associated with the credit card. - billingSetPaymentMethodResult: - required: - - cardHolderEmail - - cardHolderName - - lastFour - type: object - properties: - lastFour: - type: string - description: The last four digits of the credit card added. - cardHolderName: - type: string - description: The name associated with the payment method. - cardHolderEmail: - type: string - description: The email address associated with the payment method. - datav1Tag: - required: - - createdAt - - tagId - - tagName - - tagType - - updatedAt - type: object - properties: - tagId: - type: string - description: Unique identifier for a given Tag. - tagName: - type: string - description: Human-readable name for a Tag. - tagType: - "$ref": "#/components/schemas/v1TagType" - createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - externaldatav1Address: - type: object - properties: - format: - "$ref": "#/components/schemas/v1AddressFormat" - address: - type: string - externaldatav1Credential: - required: - - publicKey - - type - type: object - properties: - publicKey: - type: string - description: The public component of a cryptographic key pair used to sign - messages and transactions. - type: - "$ref": "#/components/schemas/v1CredentialType" - externaldatav1Quorum: - required: - - threshold - - userIds - type: object - properties: - threshold: - type: integer - description: Count of unique approvals required to meet quorum. - format: int32 - userIds: - type: array - description: Unique identifiers of quorum set members. - items: - type: string - externaldatav1Timestamp: - required: - - nanos - - seconds - type: object - properties: - seconds: - type: string - nanos: - type: string - immutableactivityv1Address: - type: object - properties: - format: - "$ref": "#/components/schemas/v1AddressFormat" - address: - type: string - protobufAny: - type: object - properties: - "@type": - type: string - additionalProperties: - type: object - rpcStatus: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - "$ref": "#/components/schemas/protobufAny" - v1AcceptInvitationIntent: + AcceptInvitationIntent: required: - authenticator - invitationId @@ -2340,8 +1608,8 @@ components: type: string description: Unique identifier for a given User. authenticator: - "$ref": "#/components/schemas/v1AuthenticatorParams" - v1AcceptInvitationIntentV2: + "$ref": "#/components/schemas/AuthenticatorParams" + AcceptInvitationIntentV2: required: - authenticator - invitationId @@ -2355,8 +1623,8 @@ components: type: string description: Unique identifier for a given User. authenticator: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" - v1AcceptInvitationResult: + "$ref": "#/components/schemas/AuthenticatorParamsV2" + AcceptInvitationResult: required: - invitationId - userId @@ -2368,13 +1636,29 @@ components: userId: type: string description: Unique identifier for a given User. - v1AccessType: + AccessType: type: string enum: - ACCESS_TYPE_WEB - ACCESS_TYPE_API - ACCESS_TYPE_ALL - v1Activity: + ActivateBillingTierIntent: + required: + - productId + type: object + properties: + productId: + type: string + description: The product that the customer wants to subscribe to. + ActivateBillingTierResult: + required: + - productId + type: object + properties: + productId: + type: string + description: The id of the product being subscribed to. + Activity: required: - canApprove - canReject @@ -2397,19 +1681,19 @@ components: type: string description: Unique identifier for a given Organization. status: - "$ref": "#/components/schemas/v1ActivityStatus" + "$ref": "#/components/schemas/ActivityStatus" type: - "$ref": "#/components/schemas/v1ActivityType" + "$ref": "#/components/schemas/ActivityType" intent: - "$ref": "#/components/schemas/v1Intent" + "$ref": "#/components/schemas/Intent" result: - "$ref": "#/components/schemas/v1Result" + "$ref": "#/components/schemas/Result" votes: type: array description: A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. items: - "$ref": "#/components/schemas/v1Vote" + "$ref": "#/components/schemas/Vote" fingerprint: type: string description: An artifact verifying a User's action. @@ -2418,19 +1702,19 @@ components: canReject: type: boolean createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" failure: - "$ref": "#/components/schemas/rpcStatus" - v1ActivityResponse: + "$ref": "#/components/schemas/Status" + ActivityResponse: required: - activity type: object properties: activity: - "$ref": "#/components/schemas/v1Activity" - v1ActivityStatus: + "$ref": "#/components/schemas/Activity" + ActivityStatus: type: string enum: - ACTIVITY_STATUS_CREATED @@ -2439,7 +1723,7 @@ components: - ACTIVITY_STATUS_FAILED - ACTIVITY_STATUS_CONSENSUS_NEEDED - ACTIVITY_STATUS_REJECTED - v1ActivityType: + ActivityType: type: string enum: - ACTIVITY_TYPE_CREATE_API_KEYS @@ -2521,7 +1805,7 @@ components: - ACTIVITY_TYPE_INIT_OTP_AUTH - ACTIVITY_TYPE_OTP_AUTH - ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7 - v1AddressFormat: + AddressFormat: type: string enum: - ADDRESS_FORMAT_UNCOMPRESSED @@ -2558,7 +1842,14 @@ components: - ADDRESS_FORMAT_DOGE_TESTNET - ADDRESS_FORMAT_TON_V3R2 - ADDRESS_FORMAT_TON_V4R2 - v1ApiKey: + Any: + type: object + properties: + "@type": + type: string + additionalProperties: + type: object + ApiKey: required: - apiKeyId - apiKeyName @@ -2568,29 +1859,46 @@ components: type: object properties: credential: - "$ref": "#/components/schemas/externaldatav1Credential" + "$ref": "#/components/schemas/external.data.v1.Credential" apiKeyId: type: string description: Unique identifier for a given API Key. apiKeyName: type: string description: Human-readable name for an API Key. - createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + createdAt: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + updatedAt: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + expirationSeconds: + type: string + description: Optional window (in seconds) indicating how long the API Key + should last. + format: uint64 + ApiKeyCurve: + type: string + enum: + - API_KEY_CURVE_P256 + - API_KEY_CURVE_SECP256K1 + - API_KEY_CURVE_ED25519 + ApiKeyParams: + required: + - apiKeyName + - publicKey + type: object + properties: + apiKeyName: + type: string + description: Human-readable name for an API Key. + publicKey: + type: string + description: The public component of a cryptographic key pair used to sign + messages and transactions. expirationSeconds: type: string description: Optional window (in seconds) indicating how long the API Key should last. - format: uint64 - v1ApiKeyCurve: - type: string - enum: - - API_KEY_CURVE_P256 - - API_KEY_CURVE_SECP256K1 - - API_KEY_CURVE_ED25519 - v1ApiKeyParamsV2: + ApiKeyParamsV2: required: - apiKeyName - curveType @@ -2605,12 +1913,12 @@ components: description: The public component of a cryptographic key pair used to sign messages and transactions. curveType: - "$ref": "#/components/schemas/v1ApiKeyCurve" + "$ref": "#/components/schemas/ApiKeyCurve" expirationSeconds: type: string description: Optional window (in seconds) indicating how long the API Key should last. - v1ApiOnlyUserParams: + ApiOnlyUserParams: required: - apiKeys - userName @@ -2632,8 +1940,8 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/apiApiKeyParams" - v1ApproveActivityIntent: + "$ref": "#/components/schemas/ApiKeyParams" + ApproveActivityIntent: required: - fingerprint type: object @@ -2641,7 +1949,7 @@ components: fingerprint: type: string description: An artifact verifying a User's action. - v1ApproveActivityRequest: + ApproveActivityRequest: required: - organizationId - parameters @@ -2661,8 +1969,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ApproveActivityIntent" - v1Attestation: + "$ref": "#/components/schemas/ApproveActivityIntent" + Attestation: required: - attestationObject - clientDataJson @@ -2685,8 +1993,8 @@ components: type: array description: The type of authenticator transports. items: - "$ref": "#/components/schemas/v1AuthenticatorTransport" - v1Authenticator: + "$ref": "#/components/schemas/AuthenticatorTransport" + Authenticator: required: - aaguid - attestationType @@ -2705,7 +2013,7 @@ components: description: Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). items: - "$ref": "#/components/schemas/v1AuthenticatorTransport" + "$ref": "#/components/schemas/AuthenticatorTransport" attestationType: type: string aaguid: @@ -2718,7 +2026,7 @@ components: type: string description: The type of Authenticator device. credential: - "$ref": "#/components/schemas/externaldatav1Credential" + "$ref": "#/components/schemas/external.data.v1.Credential" authenticatorId: type: string description: Unique identifier for a given Authenticator. @@ -2726,10 +2034,10 @@ components: type: string description: Human-readable name for an Authenticator. createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - v1AuthenticatorAttestationResponse: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + AuthenticatorAttestationResponse: required: - attestationObject - clientDataJson @@ -2742,14 +2050,14 @@ components: transports: type: array items: - "$ref": "#/components/schemas/v1AuthenticatorTransport" + "$ref": "#/components/schemas/AuthenticatorTransport" authenticatorAttachment: type: string nullable: true enum: - cross-platform - platform - v1AuthenticatorParams: + AuthenticatorParams: required: - attestation - authenticatorName @@ -2764,11 +2072,11 @@ components: type: string description: Unique identifier for a given User. attestation: - "$ref": "#/components/schemas/v1PublicKeyCredentialWithAttestation" + "$ref": "#/components/schemas/PublicKeyCredentialWithAttestation" challenge: type: string description: Challenge presented for authentication purposes. - v1AuthenticatorParamsV2: + AuthenticatorParamsV2: required: - attestation - authenticatorName @@ -2782,8 +2090,8 @@ components: type: string description: Challenge presented for authentication purposes. attestation: - "$ref": "#/components/schemas/v1Attestation" - v1AuthenticatorTransport: + "$ref": "#/components/schemas/Attestation" + AuthenticatorTransport: type: string enum: - AUTHENTICATOR_TRANSPORT_BLE @@ -2791,16 +2099,16 @@ components: - AUTHENTICATOR_TRANSPORT_NFC - AUTHENTICATOR_TRANSPORT_USB - AUTHENTICATOR_TRANSPORT_HYBRID - v1Config: + Config: type: object properties: features: type: array items: - "$ref": "#/components/schemas/v1Feature" + "$ref": "#/components/schemas/Feature" quorum: - "$ref": "#/components/schemas/externaldatav1Quorum" - v1CreateApiKeysIntent: + "$ref": "#/components/schemas/external.data.v1.Quorum" + CreateApiKeysIntent: required: - apiKeys - userId @@ -2810,11 +2118,11 @@ components: type: array description: A list of API Keys. items: - "$ref": "#/components/schemas/apiApiKeyParams" + "$ref": "#/components/schemas/ApiKeyParams" userId: type: string description: Unique identifier for a given User. - v1CreateApiKeysIntentV2: + CreateApiKeysIntentV2: required: - apiKeys - userId @@ -2824,11 +2132,11 @@ components: type: array description: A list of API Keys. items: - "$ref": "#/components/schemas/v1ApiKeyParamsV2" + "$ref": "#/components/schemas/ApiKeyParamsV2" userId: type: string description: Unique identifier for a given User. - v1CreateApiKeysRequest: + CreateApiKeysRequest: required: - organizationId - parameters @@ -2848,8 +2156,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateApiKeysIntentV2" - v1CreateApiKeysResult: + "$ref": "#/components/schemas/CreateApiKeysIntentV2" + CreateApiKeysResult: required: - apiKeyIds type: object @@ -2859,7 +2167,7 @@ components: description: A list of API Key IDs. items: type: string - v1CreateApiOnlyUsersIntent: + CreateApiOnlyUsersIntent: required: - apiOnlyUsers type: object @@ -2868,29 +2176,8 @@ components: type: array description: A list of API-only Users to create. items: - "$ref": "#/components/schemas/v1ApiOnlyUserParams" - v1CreateApiOnlyUsersRequest: - required: - - organizationId - - parameters - - timestampMs - - type - type: object - properties: - type: - type: string - enum: - - ACTIVITY_TYPE_CREATE_API_ONLY_USERS - timestampMs: - type: string - description: Timestamp (in milliseconds) of the request, used to verify - liveness of user requests. - organizationId: - type: string - description: Unique identifier for a given Organization. - parameters: - "$ref": "#/components/schemas/v1CreateApiOnlyUsersIntent" - v1CreateApiOnlyUsersResult: + "$ref": "#/components/schemas/ApiOnlyUserParams" + CreateApiOnlyUsersResult: required: - userIds type: object @@ -2900,7 +2187,7 @@ components: description: A list of API-only User IDs. items: type: string - v1CreateAuthenticatorsIntent: + CreateAuthenticatorsIntent: required: - authenticators - userId @@ -2910,11 +2197,11 @@ components: type: array description: A list of Authenticators. items: - "$ref": "#/components/schemas/v1AuthenticatorParams" + "$ref": "#/components/schemas/AuthenticatorParams" userId: type: string description: Unique identifier for a given User. - v1CreateAuthenticatorsIntentV2: + CreateAuthenticatorsIntentV2: required: - authenticators - userId @@ -2924,11 +2211,11 @@ components: type: array description: A list of Authenticators. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" userId: type: string description: Unique identifier for a given User. - v1CreateAuthenticatorsRequest: + CreateAuthenticatorsRequest: required: - organizationId - parameters @@ -2948,8 +2235,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateAuthenticatorsIntentV2" - v1CreateAuthenticatorsResult: + "$ref": "#/components/schemas/CreateAuthenticatorsIntentV2" + CreateAuthenticatorsResult: required: - authenticatorIds type: object @@ -2959,7 +2246,7 @@ components: description: A list of Authenticator IDs. items: type: string - v1CreateInvitationsIntent: + CreateInvitationsIntent: required: - invitations type: object @@ -2968,8 +2255,8 @@ components: type: array description: A list of Invitations. items: - "$ref": "#/components/schemas/v1InvitationParams" - v1CreateInvitationsRequest: + "$ref": "#/components/schemas/InvitationParams" + CreateInvitationsRequest: required: - organizationId - parameters @@ -2989,8 +2276,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateInvitationsIntent" - v1CreateInvitationsResult: + "$ref": "#/components/schemas/CreateInvitationsIntent" + CreateInvitationsResult: required: - invitationIds type: object @@ -3000,7 +2287,7 @@ components: description: A list of Invitation IDs items: type: string - v1CreateOauthProvidersIntent: + CreateOauthProvidersIntent: required: - oauthProviders - userId @@ -3013,8 +2300,8 @@ components: type: array description: A list of Oauth providers. items: - "$ref": "#/components/schemas/v1OauthProviderParams" - v1CreateOauthProvidersRequest: + "$ref": "#/components/schemas/OauthProviderParams" + CreateOauthProvidersRequest: required: - organizationId - parameters @@ -3034,8 +2321,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateOauthProvidersIntent" - v1CreateOauthProvidersResult: + "$ref": "#/components/schemas/CreateOauthProvidersIntent" + CreateOauthProvidersResult: required: - providerIds type: object @@ -3045,7 +2332,7 @@ components: description: A list of unique identifiers for Oauth Providers items: type: string - v1CreateOrganizationIntent: + CreateOrganizationIntent: required: - organizationName - rootAuthenticator @@ -3059,11 +2346,11 @@ components: type: string description: The root user's email address. rootAuthenticator: - "$ref": "#/components/schemas/v1AuthenticatorParams" + "$ref": "#/components/schemas/AuthenticatorParams" rootUserId: type: string description: Unique identifier for the root user object. - v1CreateOrganizationIntentV2: + CreateOrganizationIntentV2: required: - organizationName - rootAuthenticator @@ -3077,11 +2364,11 @@ components: type: string description: The root user's email address. rootAuthenticator: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" rootUserId: type: string description: Unique identifier for the root user object. - v1CreateOrganizationResult: + CreateOrganizationResult: required: - organizationId type: object @@ -3089,7 +2376,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1CreatePoliciesIntent: + CreatePoliciesIntent: required: - policies type: object @@ -3098,8 +2385,8 @@ components: type: array description: An array of policy intents to be created. items: - "$ref": "#/components/schemas/v1CreatePolicyIntentV3" - v1CreatePoliciesRequest: + "$ref": "#/components/schemas/CreatePolicyIntentV3" + CreatePoliciesRequest: required: - organizationId - parameters @@ -3119,8 +2406,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreatePoliciesIntent" - v1CreatePoliciesResult: + "$ref": "#/components/schemas/CreatePoliciesIntent" + CreatePoliciesResult: required: - policyIds type: object @@ -3130,7 +2417,7 @@ components: description: A list of unique identifiers for the created policies. items: type: string - v1CreatePolicyIntent: + CreatePolicyIntent: required: - effect - policyName @@ -3145,12 +2432,12 @@ components: description: A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. items: - "$ref": "#/components/schemas/v1Selector" + "$ref": "#/components/schemas/Selector" effect: - "$ref": "#/components/schemas/v1Effect" + "$ref": "#/components/schemas/Effect" notes: type: string - v1CreatePolicyIntentV2: + CreatePolicyIntentV2: required: - effect - policyName @@ -3165,12 +2452,12 @@ components: description: A list of simple functions each including a subject, target and boolean. See Policy Engine Language section for additional details. items: - "$ref": "#/components/schemas/v1SelectorV2" + "$ref": "#/components/schemas/SelectorV2" effect: - "$ref": "#/components/schemas/v1Effect" + "$ref": "#/components/schemas/Effect" notes: type: string - v1CreatePolicyIntentV3: + CreatePolicyIntentV3: required: - effect - policyName @@ -3180,7 +2467,7 @@ components: type: string description: Human-readable name for a Policy. effect: - "$ref": "#/components/schemas/v1Effect" + "$ref": "#/components/schemas/Effect" condition: type: string description: The condition expression that triggers the Effect @@ -3189,7 +2476,7 @@ components: description: The consensus expression that triggers the Effect notes: type: string - v1CreatePolicyRequest: + CreatePolicyRequest: required: - organizationId - parameters @@ -3209,8 +2496,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreatePolicyIntentV3" - v1CreatePolicyResult: + "$ref": "#/components/schemas/CreatePolicyIntentV3" + CreatePolicyResult: required: - policyId type: object @@ -3218,7 +2505,7 @@ components: policyId: type: string description: Unique identifier for a given Policy. - v1CreatePrivateKeyTagIntent: + CreatePrivateKeyTagIntent: required: - privateKeyIds - privateKeyTagName @@ -3232,7 +2519,7 @@ components: description: A list of Private Key IDs. items: type: string - v1CreatePrivateKeyTagRequest: + CreatePrivateKeyTagRequest: required: - organizationId - parameters @@ -3252,8 +2539,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreatePrivateKeyTagIntent" - v1CreatePrivateKeyTagResult: + "$ref": "#/components/schemas/CreatePrivateKeyTagIntent" + CreatePrivateKeyTagResult: required: - privateKeyIds - privateKeyTagId @@ -3267,7 +2554,7 @@ components: description: A list of Private Key IDs. items: type: string - v1CreatePrivateKeysIntent: + CreatePrivateKeysIntent: required: - privateKeys type: object @@ -3276,8 +2563,8 @@ components: type: array description: A list of Private Keys. items: - "$ref": "#/components/schemas/v1PrivateKeyParams" - v1CreatePrivateKeysIntentV2: + "$ref": "#/components/schemas/PrivateKeyParams" + CreatePrivateKeysIntentV2: required: - privateKeys type: object @@ -3286,8 +2573,8 @@ components: type: array description: A list of Private Keys. items: - "$ref": "#/components/schemas/v1PrivateKeyParams" - v1CreatePrivateKeysRequest: + "$ref": "#/components/schemas/PrivateKeyParams" + CreatePrivateKeysRequest: required: - organizationId - parameters @@ -3307,8 +2594,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreatePrivateKeysIntentV2" - v1CreatePrivateKeysResult: + "$ref": "#/components/schemas/CreatePrivateKeysIntentV2" + CreatePrivateKeysResult: required: - privateKeyIds type: object @@ -3318,7 +2605,7 @@ components: description: A list of Private Key IDs. items: type: string - v1CreatePrivateKeysResultV2: + CreatePrivateKeysResultV2: required: - privateKeys type: object @@ -3327,10 +2614,10 @@ components: type: array description: A list of Private Key IDs and addresses. items: - "$ref": "#/components/schemas/v1PrivateKeyResult" - v1CreateReadOnlySessionIntent: + "$ref": "#/components/schemas/PrivateKeyResult" + CreateReadOnlySessionIntent: type: object - v1CreateReadOnlySessionRequest: + CreateReadOnlySessionRequest: required: - organizationId - parameters @@ -3350,8 +2637,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateReadOnlySessionIntent" - v1CreateReadOnlySessionResult: + "$ref": "#/components/schemas/CreateReadOnlySessionIntent" + CreateReadOnlySessionResult: required: - organizationId - organizationName @@ -3384,7 +2671,7 @@ components: description: UTC timestamp in seconds representing the expiry time for the read only session. format: uint64 - v1CreateReadWriteSessionIntent: + CreateReadWriteSessionIntent: required: - email - targetPublicKey @@ -3405,7 +2692,7 @@ components: type: string description: Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. - v1CreateReadWriteSessionIntentV2: + CreateReadWriteSessionIntentV2: required: - targetPublicKey type: object @@ -3425,7 +2712,7 @@ components: type: string description: Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. - v1CreateReadWriteSessionRequest: + CreateReadWriteSessionRequest: required: - organizationId - parameters @@ -3445,8 +2732,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateReadWriteSessionIntentV2" - v1CreateReadWriteSessionResult: + "$ref": "#/components/schemas/CreateReadWriteSessionIntentV2" + CreateReadWriteSessionResult: required: - apiKeyId - credentialBundle @@ -3477,7 +2764,7 @@ components: credentialBundle: type: string description: HPKE encrypted credential bundle - v1CreateReadWriteSessionResultV2: + CreateReadWriteSessionResultV2: required: - apiKeyId - credentialBundle @@ -3508,7 +2795,7 @@ components: credentialBundle: type: string description: HPKE encrypted credential bundle - v1CreateSubOrganizationIntent: + CreateSubOrganizationIntent: required: - name - rootAuthenticator @@ -3518,8 +2805,8 @@ components: type: string description: Name for this sub-organization rootAuthenticator: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" - v1CreateSubOrganizationIntentV2: + "$ref": "#/components/schemas/AuthenticatorParamsV2" + CreateSubOrganizationIntentV2: required: - rootQuorumThreshold - rootUsers @@ -3533,13 +2820,13 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParams" + "$ref": "#/components/schemas/RootUserParams" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users format: int32 - v1CreateSubOrganizationIntentV3: + CreateSubOrganizationIntentV3: required: - privateKeys - rootQuorumThreshold @@ -3554,7 +2841,7 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParams" + "$ref": "#/components/schemas/RootUserParams" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This @@ -3564,8 +2851,8 @@ components: type: array description: A list of Private Keys. items: - "$ref": "#/components/schemas/v1PrivateKeyParams" - v1CreateSubOrganizationIntentV4: + "$ref": "#/components/schemas/PrivateKeyParams" + CreateSubOrganizationIntentV4: required: - rootQuorumThreshold - rootUsers @@ -3579,21 +2866,21 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParams" + "$ref": "#/components/schemas/RootUserParams" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users format: int32 wallet: - "$ref": "#/components/schemas/v1WalletParams" + "$ref": "#/components/schemas/WalletParams" disableEmailRecovery: type: boolean description: Disable email recovery for the sub-organization disableEmailAuth: type: boolean description: Disable email auth for the sub-organization - v1CreateSubOrganizationIntentV5: + CreateSubOrganizationIntentV5: required: - rootQuorumThreshold - rootUsers @@ -3607,21 +2894,21 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParamsV2" + "$ref": "#/components/schemas/RootUserParamsV2" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users format: int32 wallet: - "$ref": "#/components/schemas/v1WalletParams" + "$ref": "#/components/schemas/WalletParams" disableEmailRecovery: type: boolean description: Disable email recovery for the sub-organization disableEmailAuth: type: boolean description: Disable email auth for the sub-organization - v1CreateSubOrganizationIntentV6: + CreateSubOrganizationIntentV6: required: - rootQuorumThreshold - rootUsers @@ -3635,21 +2922,21 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParamsV3" + "$ref": "#/components/schemas/RootUserParamsV3" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users format: int32 wallet: - "$ref": "#/components/schemas/v1WalletParams" + "$ref": "#/components/schemas/WalletParams" disableEmailRecovery: type: boolean description: Disable email recovery for the sub-organization disableEmailAuth: type: boolean description: Disable email auth for the sub-organization - v1CreateSubOrganizationIntentV7: + CreateSubOrganizationIntentV7: required: - rootQuorumThreshold - rootUsers @@ -3663,14 +2950,14 @@ components: type: array description: Root users to create within this sub-organization items: - "$ref": "#/components/schemas/v1RootUserParamsV4" + "$ref": "#/components/schemas/RootUserParamsV4" rootQuorumThreshold: type: integer description: The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users format: int32 wallet: - "$ref": "#/components/schemas/v1WalletParams" + "$ref": "#/components/schemas/WalletParams" disableEmailRecovery: type: boolean description: Disable email recovery for the sub-organization @@ -3683,7 +2970,7 @@ components: disableOtpEmailAuth: type: boolean description: Disable OTP email auth for the sub-organization - v1CreateSubOrganizationRequest: + CreateSubOrganizationRequest: required: - organizationId - parameters @@ -3703,8 +2990,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV7" - v1CreateSubOrganizationResult: + "$ref": "#/components/schemas/CreateSubOrganizationIntentV7" + CreateSubOrganizationResult: required: - subOrganizationId type: object @@ -3715,7 +3002,7 @@ components: type: array items: type: string - v1CreateSubOrganizationResultV3: + CreateSubOrganizationResultV3: required: - privateKeys - subOrganizationId @@ -3727,12 +3014,12 @@ components: type: array description: A list of Private Key IDs and addresses. items: - "$ref": "#/components/schemas/v1PrivateKeyResult" + "$ref": "#/components/schemas/PrivateKeyResult" rootUserIds: type: array items: type: string - v1CreateSubOrganizationResultV4: + CreateSubOrganizationResultV4: required: - subOrganizationId type: object @@ -3740,12 +3027,12 @@ components: subOrganizationId: type: string wallet: - "$ref": "#/components/schemas/v1WalletResult" + "$ref": "#/components/schemas/WalletResult" rootUserIds: type: array items: type: string - v1CreateSubOrganizationResultV5: + CreateSubOrganizationResultV5: required: - subOrganizationId type: object @@ -3753,12 +3040,12 @@ components: subOrganizationId: type: string wallet: - "$ref": "#/components/schemas/v1WalletResult" + "$ref": "#/components/schemas/WalletResult" rootUserIds: type: array items: type: string - v1CreateSubOrganizationResultV6: + CreateSubOrganizationResultV6: required: - subOrganizationId type: object @@ -3766,12 +3053,12 @@ components: subOrganizationId: type: string wallet: - "$ref": "#/components/schemas/v1WalletResult" + "$ref": "#/components/schemas/WalletResult" rootUserIds: type: array items: type: string - v1CreateSubOrganizationResultV7: + CreateSubOrganizationResultV7: required: - subOrganizationId type: object @@ -3779,12 +3066,12 @@ components: subOrganizationId: type: string wallet: - "$ref": "#/components/schemas/v1WalletResult" + "$ref": "#/components/schemas/WalletResult" rootUserIds: type: array items: type: string - v1CreateUserTagIntent: + CreateUserTagIntent: required: - userIds - userTagName @@ -3798,7 +3085,7 @@ components: description: A list of User IDs. items: type: string - v1CreateUserTagRequest: + CreateUserTagRequest: required: - organizationId - parameters @@ -3818,8 +3105,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateUserTagIntent" - v1CreateUserTagResult: + "$ref": "#/components/schemas/CreateUserTagIntent" + CreateUserTagResult: required: - userIds - userTagId @@ -3833,7 +3120,7 @@ components: description: A list of User IDs. items: type: string - v1CreateUsersIntent: + CreateUsersIntent: required: - users type: object @@ -3842,8 +3129,8 @@ components: type: array description: A list of Users. items: - "$ref": "#/components/schemas/v1UserParams" - v1CreateUsersIntentV2: + "$ref": "#/components/schemas/UserParams" + CreateUsersIntentV2: required: - users type: object @@ -3852,8 +3139,8 @@ components: type: array description: A list of Users. items: - "$ref": "#/components/schemas/v1UserParamsV2" - v1CreateUsersRequest: + "$ref": "#/components/schemas/UserParamsV2" + CreateUsersRequest: required: - organizationId - parameters @@ -3873,8 +3160,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateUsersIntentV2" - v1CreateUsersResult: + "$ref": "#/components/schemas/CreateUsersIntentV2" + CreateUsersResult: required: - userIds type: object @@ -3884,7 +3171,7 @@ components: description: A list of User IDs. items: type: string - v1CreateWalletAccountsIntent: + CreateWalletAccountsIntent: required: - accounts - walletId @@ -3897,8 +3184,8 @@ components: type: array description: A list of wallet Accounts. items: - "$ref": "#/components/schemas/v1WalletAccountParams" - v1CreateWalletAccountsRequest: + "$ref": "#/components/schemas/WalletAccountParams" + CreateWalletAccountsRequest: required: - organizationId - parameters @@ -3918,8 +3205,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateWalletAccountsIntent" - v1CreateWalletAccountsResult: + "$ref": "#/components/schemas/CreateWalletAccountsIntent" + CreateWalletAccountsResult: required: - addresses type: object @@ -3929,7 +3216,7 @@ components: description: A list of derived addresses. items: type: string - v1CreateWalletIntent: + CreateWalletIntent: required: - accounts - walletName @@ -3942,13 +3229,13 @@ components: type: array description: A list of wallet Accounts. items: - "$ref": "#/components/schemas/v1WalletAccountParams" + "$ref": "#/components/schemas/WalletAccountParams" mnemonicLength: type: integer description: 'Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24.' format: int32 - v1CreateWalletRequest: + CreateWalletRequest: required: - organizationId - parameters @@ -3968,8 +3255,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1CreateWalletIntent" - v1CreateWalletResult: + "$ref": "#/components/schemas/CreateWalletIntent" + CreateWalletResult: required: - addresses - walletId @@ -3983,14 +3270,14 @@ components: description: A list of account addresses. items: type: string - v1CredPropsAuthenticationExtensionsClientOutputs: + CredPropsAuthenticationExtensionsClientOutputs: required: - rk type: object properties: rk: type: boolean - v1CredentialType: + CredentialType: type: string enum: - CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR @@ -4000,12 +3287,12 @@ components: - CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256 - CREDENTIAL_TYPE_API_KEY_ED25519 - CREDENTIAL_TYPE_OTP_AUTH_KEY_P256 - v1Curve: + Curve: type: string enum: - CURVE_SECP256K1 - CURVE_ED25519 - v1DeleteApiKeysIntent: + DeleteApiKeysIntent: required: - apiKeyIds - userId @@ -4019,7 +3306,7 @@ components: description: A list of API Key IDs. items: type: string - v1DeleteApiKeysRequest: + DeleteApiKeysRequest: required: - organizationId - parameters @@ -4039,8 +3326,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteApiKeysIntent" - v1DeleteApiKeysResult: + "$ref": "#/components/schemas/DeleteApiKeysIntent" + DeleteApiKeysResult: required: - apiKeyIds type: object @@ -4050,7 +3337,7 @@ components: description: A list of API Key IDs. items: type: string - v1DeleteAuthenticatorsIntent: + DeleteAuthenticatorsIntent: required: - authenticatorIds - userId @@ -4064,7 +3351,7 @@ components: description: A list of Authenticator IDs. items: type: string - v1DeleteAuthenticatorsRequest: + DeleteAuthenticatorsRequest: required: - organizationId - parameters @@ -4084,8 +3371,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteAuthenticatorsIntent" - v1DeleteAuthenticatorsResult: + "$ref": "#/components/schemas/DeleteAuthenticatorsIntent" + DeleteAuthenticatorsResult: required: - authenticatorIds type: object @@ -4095,7 +3382,7 @@ components: description: Unique identifier for a given Authenticator. items: type: string - v1DeleteInvitationIntent: + DeleteInvitationIntent: required: - invitationId type: object @@ -4103,7 +3390,7 @@ components: invitationId: type: string description: Unique identifier for a given Invitation object. - v1DeleteInvitationRequest: + DeleteInvitationRequest: required: - organizationId - parameters @@ -4123,8 +3410,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteInvitationIntent" - v1DeleteInvitationResult: + "$ref": "#/components/schemas/DeleteInvitationIntent" + DeleteInvitationResult: required: - invitationId type: object @@ -4132,7 +3419,7 @@ components: invitationId: type: string description: Unique identifier for a given Invitation. - v1DeleteOauthProvidersIntent: + DeleteOauthProvidersIntent: required: - providerIds - userId @@ -4146,7 +3433,7 @@ components: description: Unique identifier for a given Provider. items: type: string - v1DeleteOauthProvidersRequest: + DeleteOauthProvidersRequest: required: - organizationId - parameters @@ -4166,8 +3453,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteOauthProvidersIntent" - v1DeleteOauthProvidersResult: + "$ref": "#/components/schemas/DeleteOauthProvidersIntent" + DeleteOauthProvidersResult: required: - providerIds type: object @@ -4177,7 +3464,7 @@ components: description: A list of unique identifiers for Oauth Providers items: type: string - v1DeleteOrganizationIntent: + DeleteOrganizationIntent: required: - organizationId type: object @@ -4185,7 +3472,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1DeleteOrganizationResult: + DeleteOrganizationResult: required: - organizationId type: object @@ -4193,7 +3480,23 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1DeletePolicyIntent: + DeletePaymentMethodIntent: + required: + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The payment method that the customer wants to remove. + DeletePaymentMethodResult: + required: + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The payment method that was removed. + DeletePolicyIntent: required: - policyId type: object @@ -4201,7 +3504,7 @@ components: policyId: type: string description: Unique identifier for a given Policy. - v1DeletePolicyRequest: + DeletePolicyRequest: required: - organizationId - parameters @@ -4221,8 +3524,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeletePolicyIntent" - v1DeletePolicyResult: + "$ref": "#/components/schemas/DeletePolicyIntent" + DeletePolicyResult: required: - policyId type: object @@ -4230,7 +3533,7 @@ components: policyId: type: string description: Unique identifier for a given Policy. - v1DeletePrivateKeyTagsIntent: + DeletePrivateKeyTagsIntent: required: - privateKeyTagIds type: object @@ -4240,7 +3543,7 @@ components: description: A list of Private Key Tag IDs. items: type: string - v1DeletePrivateKeyTagsRequest: + DeletePrivateKeyTagsRequest: required: - organizationId - parameters @@ -4260,8 +3563,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeletePrivateKeyTagsIntent" - v1DeletePrivateKeyTagsResult: + "$ref": "#/components/schemas/DeletePrivateKeyTagsIntent" + DeletePrivateKeyTagsResult: required: - privateKeyIds - privateKeyTagIds @@ -4277,7 +3580,7 @@ components: description: A list of Private Key IDs. items: type: string - v1DeletePrivateKeysIntent: + DeletePrivateKeysIntent: required: - privateKeyIds type: object @@ -4292,7 +3595,7 @@ components: description: Optional parameter for deleting the private keys, even if any have not been previously exported. If they have been exported, this field is ignored. - v1DeletePrivateKeysRequest: + DeletePrivateKeysRequest: required: - organizationId - parameters @@ -4312,8 +3615,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeletePrivateKeysIntent" - v1DeletePrivateKeysResult: + "$ref": "#/components/schemas/DeletePrivateKeysIntent" + DeletePrivateKeysResult: required: - privateKeyIds type: object @@ -4323,7 +3626,7 @@ components: description: A list of private key unique identifiers that were removed items: type: string - v1DeleteSubOrganizationIntent: + DeleteSubOrganizationIntent: type: object properties: deleteWithoutExport: @@ -4332,7 +3635,7 @@ components: wallets and private keys to be exported for security reasons. Set this boolean to true to force sub-organization deletion even if some wallets or private keys within it have not been exported yet. Default: false.' - v1DeleteSubOrganizationRequest: + DeleteSubOrganizationRequest: required: - organizationId - parameters @@ -4352,8 +3655,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteSubOrganizationIntent" - v1DeleteSubOrganizationResult: + "$ref": "#/components/schemas/DeleteSubOrganizationIntent" + DeleteSubOrganizationResult: required: - subOrganizationUuid type: object @@ -4361,7 +3664,7 @@ components: subOrganizationUuid: type: string description: Unique identifier of the sub organization that was removed - v1DeleteUserTagsIntent: + DeleteUserTagsIntent: required: - userTagIds type: object @@ -4371,7 +3674,7 @@ components: description: A list of User Tag IDs. items: type: string - v1DeleteUserTagsRequest: + DeleteUserTagsRequest: required: - organizationId - parameters @@ -4391,8 +3694,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteUserTagsIntent" - v1DeleteUserTagsResult: + "$ref": "#/components/schemas/DeleteUserTagsIntent" + DeleteUserTagsResult: required: - userIds - userTagIds @@ -4408,7 +3711,7 @@ components: description: A list of User IDs. items: type: string - v1DeleteUsersIntent: + DeleteUsersIntent: required: - userIds type: object @@ -4418,7 +3721,7 @@ components: description: A list of User IDs. items: type: string - v1DeleteUsersRequest: + DeleteUsersRequest: required: - organizationId - parameters @@ -4438,8 +3741,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteUsersIntent" - v1DeleteUsersResult: + "$ref": "#/components/schemas/DeleteUsersIntent" + DeleteUsersResult: required: - userIds type: object @@ -4449,7 +3752,7 @@ components: description: A list of User IDs. items: type: string - v1DeleteWalletsIntent: + DeleteWalletsIntent: required: - walletIds type: object @@ -4464,7 +3767,7 @@ components: description: Optional parameter for deleting the wallets, even if any have not been previously exported. If they have been exported, this field is ignored. - v1DeleteWalletsRequest: + DeleteWalletsRequest: required: - organizationId - parameters @@ -4484,8 +3787,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1DeleteWalletsIntent" - v1DeleteWalletsResult: + "$ref": "#/components/schemas/DeleteWalletsIntent" + DeleteWalletsResult: required: - walletIds type: object @@ -4495,7 +3798,7 @@ components: description: A list of wallet unique identifiers that were removed items: type: string - v1DisablePrivateKeyIntent: + DisablePrivateKeyIntent: required: - privateKeyId type: object @@ -4503,7 +3806,7 @@ components: privateKeyId: type: string description: Unique identifier for a given Private Key. - v1DisablePrivateKeyResult: + DisablePrivateKeyResult: required: - privateKeyId type: object @@ -4511,12 +3814,12 @@ components: privateKeyId: type: string description: Unique identifier for a given Private Key. - v1Effect: + Effect: type: string enum: - EFFECT_ALLOW - EFFECT_DENY - v1EmailAuthIntent: + EmailAuthIntent: required: - email - targetPublicKey @@ -4538,11 +3841,11 @@ components: description: Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. emailCustomization: - "$ref": "#/components/schemas/v1EmailCustomizationParams" + "$ref": "#/components/schemas/EmailCustomizationParams" invalidateExisting: type: boolean description: Invalidate all other previously generated Email Auth API keys - v1EmailAuthIntentV2: + EmailAuthIntentV2: required: - email - targetPublicKey @@ -4564,11 +3867,11 @@ components: description: Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. emailCustomization: - "$ref": "#/components/schemas/v1EmailCustomizationParams" + "$ref": "#/components/schemas/EmailCustomizationParams" invalidateExisting: type: boolean description: Invalidate all other previously generated Email Auth API keys - v1EmailAuthRequest: + EmailAuthRequest: required: - organizationId - parameters @@ -4588,8 +3891,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1EmailAuthIntentV2" - v1EmailAuthResult: + "$ref": "#/components/schemas/EmailAuthIntentV2" + EmailAuthResult: required: - apiKeyId - userId @@ -4601,7 +3904,7 @@ components: apiKeyId: type: string description: Unique identifier for the created API key. - v1EmailCustomizationParams: + EmailCustomizationParams: type: object properties: appName: @@ -4623,7 +3926,7 @@ components: type: string description: Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. - v1ExportPrivateKeyIntent: + ExportPrivateKeyIntent: required: - privateKeyId - targetPublicKey @@ -4636,7 +3939,7 @@ components: type: string description: Client-side public key generated by the user, to which the export bundle will be encrypted. - v1ExportPrivateKeyRequest: + ExportPrivateKeyRequest: required: - organizationId - parameters @@ -4656,8 +3959,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ExportPrivateKeyIntent" - v1ExportPrivateKeyResult: + "$ref": "#/components/schemas/ExportPrivateKeyIntent" + ExportPrivateKeyResult: required: - exportBundle - privateKeyId @@ -4670,7 +3973,7 @@ components: type: string description: Export bundle containing a private key encrypted to the client's target public key. - v1ExportWalletAccountIntent: + ExportWalletAccountIntent: required: - address - targetPublicKey @@ -4683,7 +3986,7 @@ components: type: string description: Client-side public key generated by the user, to which the export bundle will be encrypted. - v1ExportWalletAccountRequest: + ExportWalletAccountRequest: required: - organizationId - parameters @@ -4703,8 +4006,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ExportWalletAccountIntent" - v1ExportWalletAccountResult: + "$ref": "#/components/schemas/ExportWalletAccountIntent" + ExportWalletAccountResult: required: - address - exportBundle @@ -4717,7 +4020,7 @@ components: type: string description: Export bundle containing a private key encrypted by the client's target public key. - v1ExportWalletIntent: + ExportWalletIntent: required: - targetPublicKey - walletId @@ -4731,8 +4034,8 @@ components: description: Client-side public key generated by the user, to which the export bundle will be encrypted. language: - "$ref": "#/components/schemas/v1MnemonicLanguage" - v1ExportWalletRequest: + "$ref": "#/components/schemas/MnemonicLanguage" + ExportWalletRequest: required: - organizationId - parameters @@ -4752,8 +4055,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ExportWalletIntent" - v1ExportWalletResult: + "$ref": "#/components/schemas/ExportWalletIntent" + ExportWalletResult: required: - exportBundle - walletId @@ -4766,14 +4069,14 @@ components: type: string description: Export bundle containing a wallet mnemonic + optional newline passphrase encrypted by the client's target public key. - v1Feature: + Feature: type: object properties: name: - "$ref": "#/components/schemas/v1FeatureName" + "$ref": "#/components/schemas/FeatureName" value: type: string - v1FeatureName: + FeatureName: type: string enum: - FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY @@ -4783,7 +4086,7 @@ components: - FEATURE_NAME_WEBHOOK - FEATURE_NAME_SMS_AUTH - FEATURE_NAME_OTP_EMAIL_AUTH - v1GetActivitiesRequest: + GetActivitiesRequest: required: - organizationId type: object @@ -4796,16 +4099,16 @@ components: description: Array of Activity Statuses filtering which Activities will be listed in the response. items: - "$ref": "#/components/schemas/v1ActivityStatus" + "$ref": "#/components/schemas/ActivityStatus" paginationOptions: - "$ref": "#/components/schemas/v1Pagination" + "$ref": "#/components/schemas/Pagination" filterByType: type: array description: Array of Activity Types filtering which Activities will be listed in the response. items: - "$ref": "#/components/schemas/v1ActivityType" - v1GetActivitiesResponse: + "$ref": "#/components/schemas/ActivityType" + GetActivitiesResponse: required: - activities type: object @@ -4814,8 +4117,8 @@ components: type: array description: A list of Activities. items: - "$ref": "#/components/schemas/v1Activity" - v1GetActivityRequest: + "$ref": "#/components/schemas/Activity" + GetActivityRequest: required: - activityId - organizationId @@ -4827,7 +4130,7 @@ components: activityId: type: string description: Unique identifier for a given Activity object. - v1GetApiKeyRequest: + GetApiKeyRequest: required: - apiKeyId - organizationId @@ -4839,14 +4142,14 @@ components: apiKeyId: type: string description: Unique identifier for a given API key. - v1GetApiKeyResponse: + GetApiKeyResponse: required: - apiKey type: object properties: apiKey: - "$ref": "#/components/schemas/v1ApiKey" - v1GetApiKeysRequest: + "$ref": "#/components/schemas/ApiKey" + GetApiKeysRequest: required: - organizationId type: object @@ -4857,7 +4160,7 @@ components: userId: type: string description: Unique identifier for a given User. - v1GetApiKeysResponse: + GetApiKeysResponse: required: - apiKeys type: object @@ -4866,30 +4169,8 @@ components: type: array description: A list of API keys. items: - "$ref": "#/components/schemas/v1ApiKey" - v1GetAttestationDocumentRequest: - required: - - enclaveType - - organizationId - type: object - properties: - organizationId: - type: string - description: Unique identifier for a given Organization. - enclaveType: - type: string - description: 'The enclave type, one of: ump, notarizer, signer, evm-parser' - v1GetAttestationDocumentResponse: - required: - - attestationDocument - type: object - properties: - attestationDocument: - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - type: string - description: Raw (CBOR-encoded) attestation document - format: byte - v1GetAuthenticatorRequest: + "$ref": "#/components/schemas/ApiKey" + GetAuthenticatorRequest: required: - authenticatorId - organizationId @@ -4901,14 +4182,14 @@ components: authenticatorId: type: string description: Unique identifier for a given Authenticator. - v1GetAuthenticatorResponse: + GetAuthenticatorResponse: required: - authenticator type: object properties: authenticator: - "$ref": "#/components/schemas/v1Authenticator" - v1GetAuthenticatorsRequest: + "$ref": "#/components/schemas/Authenticator" + GetAuthenticatorsRequest: required: - organizationId - userId @@ -4920,7 +4201,7 @@ components: userId: type: string description: Unique identifier for a given User. - v1GetAuthenticatorsResponse: + GetAuthenticatorsResponse: required: - authenticators type: object @@ -4929,8 +4210,8 @@ components: type: array description: A list of authenticators. items: - "$ref": "#/components/schemas/v1Authenticator" - v1GetOauthProvidersRequest: + "$ref": "#/components/schemas/Authenticator" + GetOauthProvidersRequest: required: - organizationId type: object @@ -4941,7 +4222,7 @@ components: userId: type: string description: Unique identifier for a given User. - v1GetOauthProvidersResponse: + GetOauthProvidersResponse: required: - oauthProviders type: object @@ -4950,8 +4231,8 @@ components: type: array description: A list of Oauth Providers items: - "$ref": "#/components/schemas/v1OauthProvider" - v1GetOrganizationConfigsRequest: + "$ref": "#/components/schemas/OauthProvider" + GetOrganizationConfigsRequest: required: - organizationId type: object @@ -4959,29 +4240,14 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1GetOrganizationConfigsResponse: + GetOrganizationConfigsResponse: required: - configs type: object properties: configs: - "$ref": "#/components/schemas/v1Config" - v1GetOrganizationRequest: - required: - - organizationId - type: object - properties: - organizationId: - type: string - description: Unique identifier for a given Organization. - v1GetOrganizationResponse: - required: - - organizationData - type: object - properties: - organizationData: - "$ref": "#/components/schemas/v1OrganizationData" - v1GetPoliciesRequest: + "$ref": "#/components/schemas/Config" + GetPoliciesRequest: required: - organizationId type: object @@ -4989,7 +4255,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1GetPoliciesResponse: + GetPoliciesResponse: required: - policies type: object @@ -4998,8 +4264,8 @@ components: type: array description: A list of Policies. items: - "$ref": "#/components/schemas/v1Policy" - v1GetPolicyRequest: + "$ref": "#/components/schemas/Policy" + GetPolicyRequest: required: - organizationId - policyId @@ -5011,14 +4277,14 @@ components: policyId: type: string description: Unique identifier for a given Policy. - v1GetPolicyResponse: + GetPolicyResponse: required: - policy type: object properties: policy: - "$ref": "#/components/schemas/v1Policy" - v1GetPrivateKeyRequest: + "$ref": "#/components/schemas/Policy" + GetPrivateKeyRequest: required: - organizationId - privateKeyId @@ -5030,14 +4296,14 @@ components: privateKeyId: type: string description: Unique identifier for a given Private Key. - v1GetPrivateKeyResponse: + GetPrivateKeyResponse: required: - privateKey type: object properties: privateKey: - "$ref": "#/components/schemas/v1PrivateKey" - v1GetPrivateKeysRequest: + "$ref": "#/components/schemas/PrivateKey" + GetPrivateKeysRequest: required: - organizationId type: object @@ -5045,7 +4311,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1GetPrivateKeysResponse: + GetPrivateKeysResponse: required: - privateKeys type: object @@ -5054,8 +4320,8 @@ components: type: array description: A list of Private Keys. items: - "$ref": "#/components/schemas/v1PrivateKey" - v1GetSubOrgIdsRequest: + "$ref": "#/components/schemas/PrivateKey" + GetSubOrgIdsRequest: required: - organizationId type: object @@ -5073,8 +4339,8 @@ components: description: The value of the filter to apply for the specified type. For example, a specific email or name string. paginationOptions: - "$ref": "#/components/schemas/v1Pagination" - v1GetSubOrgIdsResponse: + "$ref": "#/components/schemas/Pagination" + GetSubOrgIdsResponse: required: - organizationIds type: object @@ -5084,7 +4350,7 @@ components: description: List of unique identifiers for the matching sub-organizations. items: type: string - v1GetUserRequest: + GetUserRequest: required: - organizationId - userId @@ -5096,14 +4362,14 @@ components: userId: type: string description: Unique identifier for a given User. - v1GetUserResponse: + GetUserResponse: required: - user type: object properties: user: - "$ref": "#/components/schemas/v1User" - v1GetUsersRequest: + "$ref": "#/components/schemas/User" + GetUsersRequest: required: - organizationId type: object @@ -5111,7 +4377,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1GetUsersResponse: + GetUsersResponse: required: - users type: object @@ -5120,8 +4386,8 @@ components: type: array description: A list of Users. items: - "$ref": "#/components/schemas/v1User" - v1GetWalletAccountsRequest: + "$ref": "#/components/schemas/User" + GetWalletAccountsRequest: required: - organizationId - walletId @@ -5134,8 +4400,8 @@ components: type: string description: Unique identifier for a given Wallet. paginationOptions: - "$ref": "#/components/schemas/v1Pagination" - v1GetWalletAccountsResponse: + "$ref": "#/components/schemas/Pagination" + GetWalletAccountsResponse: required: - accounts type: object @@ -5145,8 +4411,8 @@ components: description: A list of Accounts generated from a Wallet that share a common seed items: - "$ref": "#/components/schemas/v1WalletAccount" - v1GetWalletRequest: + "$ref": "#/components/schemas/WalletAccount" + GetWalletRequest: required: - organizationId - walletId @@ -5158,14 +4424,14 @@ components: walletId: type: string description: Unique identifier for a given Wallet. - v1GetWalletResponse: + GetWalletResponse: required: - wallet type: object properties: wallet: - "$ref": "#/components/schemas/v1Wallet" - v1GetWalletsRequest: + "$ref": "#/components/schemas/Wallet" + GetWalletsRequest: required: - organizationId type: object @@ -5173,7 +4439,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1GetWalletsResponse: + GetWalletsResponse: required: - wallets type: object @@ -5182,8 +4448,8 @@ components: type: array description: A list of Wallets. items: - "$ref": "#/components/schemas/v1Wallet" - v1GetWhoamiRequest: + "$ref": "#/components/schemas/Wallet" + GetWhoamiRequest: required: - organizationId type: object @@ -5194,7 +4460,7 @@ components: is being made by a WebAuthN user and their Sub-Organization ID is unknown, this can be the Parent Organization ID; using the Sub-Organization ID when possible is preferred due to performance reasons. - v1GetWhoamiResponse: + GetWhoamiResponse: required: - organizationId - organizationName @@ -5214,14 +4480,14 @@ components: username: type: string description: Human-readable name for a User. - v1HashFunction: + HashFunction: type: string enum: - HASH_FUNCTION_NO_OP - HASH_FUNCTION_SHA256 - HASH_FUNCTION_KECCAK256 - HASH_FUNCTION_NOT_APPLICABLE - v1ImportPrivateKeyIntent: + ImportPrivateKeyIntent: required: - addressFormats - curve @@ -5241,14 +4507,14 @@ components: description: Bundle containing a raw private key encrypted to the enclave's target public key. curve: - "$ref": "#/components/schemas/v1Curve" + "$ref": "#/components/schemas/Curve" addressFormats: type: array description: Cryptocurrency-specific formats for a derived address (e.g., Ethereum). items: - "$ref": "#/components/schemas/v1AddressFormat" - v1ImportPrivateKeyRequest: + "$ref": "#/components/schemas/AddressFormat" + ImportPrivateKeyRequest: required: - organizationId - parameters @@ -5268,8 +4534,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ImportPrivateKeyIntent" - v1ImportPrivateKeyResult: + "$ref": "#/components/schemas/ImportPrivateKeyIntent" + ImportPrivateKeyResult: required: - addresses - privateKeyId @@ -5282,8 +4548,8 @@ components: type: array description: A list of addresses. items: - "$ref": "#/components/schemas/immutableactivityv1Address" - v1ImportWalletIntent: + "$ref": "#/components/schemas/activity.v1.Address" + ImportWalletIntent: required: - accounts - encryptedBundle @@ -5305,8 +4571,8 @@ components: type: array description: A list of wallet Accounts. items: - "$ref": "#/components/schemas/v1WalletAccountParams" - v1ImportWalletRequest: + "$ref": "#/components/schemas/WalletAccountParams" + ImportWalletRequest: required: - organizationId - parameters @@ -5326,8 +4592,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1ImportWalletIntent" - v1ImportWalletResult: + "$ref": "#/components/schemas/ImportWalletIntent" + ImportWalletResult: required: - addresses - walletId @@ -5341,7 +4607,7 @@ components: description: A list of account addresses. items: type: string - v1InitImportPrivateKeyIntent: + InitImportPrivateKeyIntent: required: - userId type: object @@ -5349,7 +4615,7 @@ components: userId: type: string description: The ID of the User importing a Private Key. - v1InitImportPrivateKeyRequest: + InitImportPrivateKeyRequest: required: - organizationId - parameters @@ -5369,8 +4635,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1InitImportPrivateKeyIntent" - v1InitImportPrivateKeyResult: + "$ref": "#/components/schemas/InitImportPrivateKeyIntent" + InitImportPrivateKeyResult: required: - importBundle type: object @@ -5379,7 +4645,7 @@ components: type: string description: Import bundle containing a public key and signature to use for importing client data. - v1InitImportWalletIntent: + InitImportWalletIntent: required: - userId type: object @@ -5387,7 +4653,7 @@ components: userId: type: string description: The ID of the User importing a Wallet. - v1InitImportWalletRequest: + InitImportWalletRequest: required: - organizationId - parameters @@ -5407,8 +4673,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1InitImportWalletIntent" - v1InitImportWalletResult: + "$ref": "#/components/schemas/InitImportWalletIntent" + InitImportWalletResult: required: - importBundle type: object @@ -5417,7 +4683,7 @@ components: type: string description: Import bundle containing a public key and signature to use for importing client data. - v1InitOtpAuthIntent: + InitOtpAuthIntent: required: - contact - otpType @@ -5430,8 +4696,8 @@ components: type: string description: Email or phone number to send the OTP code to emailCustomization: - "$ref": "#/components/schemas/v1EmailCustomizationParams" - v1InitOtpAuthRequest: + "$ref": "#/components/schemas/EmailCustomizationParams" + InitOtpAuthRequest: required: - organizationId - parameters @@ -5451,8 +4717,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1InitOtpAuthIntent" - v1InitOtpAuthResult: + "$ref": "#/components/schemas/InitOtpAuthIntent" + InitOtpAuthResult: required: - otpId type: object @@ -5460,7 +4726,7 @@ components: otpId: type: string description: Unique identifier for an OTP authentication - v1InitUserEmailRecoveryIntent: + InitUserEmailRecoveryIntent: required: - email - targetPublicKey @@ -5479,8 +4745,8 @@ components: credential is valid. If not provided, a default of 15 minutes will be used. emailCustomization: - "$ref": "#/components/schemas/v1EmailCustomizationParams" - v1InitUserEmailRecoveryRequest: + "$ref": "#/components/schemas/EmailCustomizationParams" + InitUserEmailRecoveryRequest: required: - organizationId - parameters @@ -5500,8 +4766,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1InitUserEmailRecoveryIntent" - v1InitUserEmailRecoveryResult: + "$ref": "#/components/schemas/InitUserEmailRecoveryIntent" + InitUserEmailRecoveryResult: required: - userId type: object @@ -5509,206 +4775,168 @@ components: userId: type: string description: Unique identifier for the user being recovered. - v1Intent: + Intent: type: object properties: createOrganizationIntent: - "$ref": "#/components/schemas/v1CreateOrganizationIntent" + "$ref": "#/components/schemas/CreateOrganizationIntent" createAuthenticatorsIntent: - "$ref": "#/components/schemas/v1CreateAuthenticatorsIntent" + "$ref": "#/components/schemas/CreateAuthenticatorsIntent" createUsersIntent: - "$ref": "#/components/schemas/v1CreateUsersIntent" + "$ref": "#/components/schemas/CreateUsersIntent" createPrivateKeysIntent: - "$ref": "#/components/schemas/v1CreatePrivateKeysIntent" + "$ref": "#/components/schemas/CreatePrivateKeysIntent" signRawPayloadIntent: - "$ref": "#/components/schemas/v1SignRawPayloadIntent" + "$ref": "#/components/schemas/SignRawPayloadIntent" createInvitationsIntent: - "$ref": "#/components/schemas/v1CreateInvitationsIntent" + "$ref": "#/components/schemas/CreateInvitationsIntent" acceptInvitationIntent: - "$ref": "#/components/schemas/v1AcceptInvitationIntent" + "$ref": "#/components/schemas/AcceptInvitationIntent" createPolicyIntent: - "$ref": "#/components/schemas/v1CreatePolicyIntent" + "$ref": "#/components/schemas/CreatePolicyIntent" disablePrivateKeyIntent: - "$ref": "#/components/schemas/v1DisablePrivateKeyIntent" + "$ref": "#/components/schemas/DisablePrivateKeyIntent" deleteUsersIntent: - "$ref": "#/components/schemas/v1DeleteUsersIntent" + "$ref": "#/components/schemas/DeleteUsersIntent" deleteAuthenticatorsIntent: - "$ref": "#/components/schemas/v1DeleteAuthenticatorsIntent" + "$ref": "#/components/schemas/DeleteAuthenticatorsIntent" deleteInvitationIntent: - "$ref": "#/components/schemas/v1DeleteInvitationIntent" + "$ref": "#/components/schemas/DeleteInvitationIntent" deleteOrganizationIntent: - "$ref": "#/components/schemas/v1DeleteOrganizationIntent" + "$ref": "#/components/schemas/DeleteOrganizationIntent" deletePolicyIntent: - "$ref": "#/components/schemas/v1DeletePolicyIntent" + "$ref": "#/components/schemas/DeletePolicyIntent" createUserTagIntent: - "$ref": "#/components/schemas/v1CreateUserTagIntent" + "$ref": "#/components/schemas/CreateUserTagIntent" deleteUserTagsIntent: - "$ref": "#/components/schemas/v1DeleteUserTagsIntent" + "$ref": "#/components/schemas/DeleteUserTagsIntent" signTransactionIntent: - "$ref": "#/components/schemas/v1SignTransactionIntent" + "$ref": "#/components/schemas/SignTransactionIntent" createApiKeysIntent: - "$ref": "#/components/schemas/v1CreateApiKeysIntent" + "$ref": "#/components/schemas/CreateApiKeysIntent" deleteApiKeysIntent: - "$ref": "#/components/schemas/v1DeleteApiKeysIntent" + "$ref": "#/components/schemas/DeleteApiKeysIntent" approveActivityIntent: - "$ref": "#/components/schemas/v1ApproveActivityIntent" + "$ref": "#/components/schemas/ApproveActivityIntent" rejectActivityIntent: - "$ref": "#/components/schemas/v1RejectActivityIntent" + "$ref": "#/components/schemas/RejectActivityIntent" createPrivateKeyTagIntent: - "$ref": "#/components/schemas/v1CreatePrivateKeyTagIntent" + "$ref": "#/components/schemas/CreatePrivateKeyTagIntent" deletePrivateKeyTagsIntent: - "$ref": "#/components/schemas/v1DeletePrivateKeyTagsIntent" + "$ref": "#/components/schemas/DeletePrivateKeyTagsIntent" createPolicyIntentV2: - "$ref": "#/components/schemas/v1CreatePolicyIntentV2" + "$ref": "#/components/schemas/CreatePolicyIntentV2" setPaymentMethodIntent: - "$ref": "#/components/schemas/billingSetPaymentMethodIntent" + "$ref": "#/components/schemas/SetPaymentMethodIntent" activateBillingTierIntent: - "$ref": "#/components/schemas/billingActivateBillingTierIntent" + "$ref": "#/components/schemas/ActivateBillingTierIntent" deletePaymentMethodIntent: - "$ref": "#/components/schemas/billingDeletePaymentMethodIntent" + "$ref": "#/components/schemas/DeletePaymentMethodIntent" createPolicyIntentV3: - "$ref": "#/components/schemas/v1CreatePolicyIntentV3" + "$ref": "#/components/schemas/CreatePolicyIntentV3" createApiOnlyUsersIntent: - "$ref": "#/components/schemas/v1CreateApiOnlyUsersIntent" + "$ref": "#/components/schemas/CreateApiOnlyUsersIntent" updateRootQuorumIntent: - "$ref": "#/components/schemas/v1UpdateRootQuorumIntent" + "$ref": "#/components/schemas/UpdateRootQuorumIntent" updateUserTagIntent: - "$ref": "#/components/schemas/v1UpdateUserTagIntent" + "$ref": "#/components/schemas/UpdateUserTagIntent" updatePrivateKeyTagIntent: - "$ref": "#/components/schemas/v1UpdatePrivateKeyTagIntent" + "$ref": "#/components/schemas/UpdatePrivateKeyTagIntent" createAuthenticatorsIntentV2: - "$ref": "#/components/schemas/v1CreateAuthenticatorsIntentV2" + "$ref": "#/components/schemas/CreateAuthenticatorsIntentV2" acceptInvitationIntentV2: - "$ref": "#/components/schemas/v1AcceptInvitationIntentV2" + "$ref": "#/components/schemas/AcceptInvitationIntentV2" createOrganizationIntentV2: - "$ref": "#/components/schemas/v1CreateOrganizationIntentV2" + "$ref": "#/components/schemas/CreateOrganizationIntentV2" createUsersIntentV2: - "$ref": "#/components/schemas/v1CreateUsersIntentV2" + "$ref": "#/components/schemas/CreateUsersIntentV2" createSubOrganizationIntent: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntent" + "$ref": "#/components/schemas/CreateSubOrganizationIntent" createSubOrganizationIntentV2: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV2" + "$ref": "#/components/schemas/CreateSubOrganizationIntentV2" updateAllowedOriginsIntent: - "$ref": "#/components/schemas/v1UpdateAllowedOriginsIntent" + "$ref": "#/components/schemas/UpdateAllowedOriginsIntent" createPrivateKeysIntentV2: - "$ref": "#/components/schemas/v1CreatePrivateKeysIntentV2" + "$ref": "#/components/schemas/CreatePrivateKeysIntentV2" updateUserIntent: - "$ref": "#/components/schemas/v1UpdateUserIntent" + "$ref": "#/components/schemas/UpdateUserIntent" updatePolicyIntent: - "$ref": "#/components/schemas/v1UpdatePolicyIntent" + "$ref": "#/components/schemas/UpdatePolicyIntent" setPaymentMethodIntentV2: - "$ref": "#/components/schemas/billingSetPaymentMethodIntentV2" + "$ref": "#/components/schemas/SetPaymentMethodIntentV2" createSubOrganizationIntentV3: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV3" + "$ref": "#/components/schemas/CreateSubOrganizationIntentV3" createWalletIntent: - "$ref": "#/components/schemas/v1CreateWalletIntent" + "$ref": "#/components/schemas/CreateWalletIntent" createWalletAccountsIntent: - "$ref": "#/components/schemas/v1CreateWalletAccountsIntent" + "$ref": "#/components/schemas/CreateWalletAccountsIntent" initUserEmailRecoveryIntent: - "$ref": "#/components/schemas/v1InitUserEmailRecoveryIntent" + "$ref": "#/components/schemas/InitUserEmailRecoveryIntent" recoverUserIntent: - "$ref": "#/components/schemas/v1RecoverUserIntent" + "$ref": "#/components/schemas/RecoverUserIntent" setOrganizationFeatureIntent: - "$ref": "#/components/schemas/v1SetOrganizationFeatureIntent" + "$ref": "#/components/schemas/SetOrganizationFeatureIntent" removeOrganizationFeatureIntent: - "$ref": "#/components/schemas/v1RemoveOrganizationFeatureIntent" + "$ref": "#/components/schemas/RemoveOrganizationFeatureIntent" signRawPayloadIntentV2: - "$ref": "#/components/schemas/v1SignRawPayloadIntentV2" + "$ref": "#/components/schemas/SignRawPayloadIntentV2" signTransactionIntentV2: - "$ref": "#/components/schemas/v1SignTransactionIntentV2" + "$ref": "#/components/schemas/SignTransactionIntentV2" exportPrivateKeyIntent: - "$ref": "#/components/schemas/v1ExportPrivateKeyIntent" + "$ref": "#/components/schemas/ExportPrivateKeyIntent" exportWalletIntent: - "$ref": "#/components/schemas/v1ExportWalletIntent" + "$ref": "#/components/schemas/ExportWalletIntent" createSubOrganizationIntentV4: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV4" + "$ref": "#/components/schemas/CreateSubOrganizationIntentV4" emailAuthIntent: - "$ref": "#/components/schemas/v1EmailAuthIntent" + "$ref": "#/components/schemas/EmailAuthIntent" exportWalletAccountIntent: - "$ref": "#/components/schemas/v1ExportWalletAccountIntent" + "$ref": "#/components/schemas/ExportWalletAccountIntent" initImportWalletIntent: - "$ref": "#/components/schemas/v1InitImportWalletIntent" + "$ref": "#/components/schemas/InitImportWalletIntent" importWalletIntent: - "$ref": "#/components/schemas/v1ImportWalletIntent" + "$ref": "#/components/schemas/ImportWalletIntent" initImportPrivateKeyIntent: - "$ref": "#/components/schemas/v1InitImportPrivateKeyIntent" + "$ref": "#/components/schemas/InitImportPrivateKeyIntent" importPrivateKeyIntent: - "$ref": "#/components/schemas/v1ImportPrivateKeyIntent" + "$ref": "#/components/schemas/ImportPrivateKeyIntent" createPoliciesIntent: - "$ref": "#/components/schemas/v1CreatePoliciesIntent" + "$ref": "#/components/schemas/CreatePoliciesIntent" signRawPayloadsIntent: - "$ref": "#/components/schemas/v1SignRawPayloadsIntent" + "$ref": "#/components/schemas/SignRawPayloadsIntent" createReadOnlySessionIntent: - "$ref": "#/components/schemas/v1CreateReadOnlySessionIntent" + "$ref": "#/components/schemas/CreateReadOnlySessionIntent" createOauthProvidersIntent: - "$ref": "#/components/schemas/v1CreateOauthProvidersIntent" + "$ref": "#/components/schemas/CreateOauthProvidersIntent" deleteOauthProvidersIntent: - "$ref": "#/components/schemas/v1DeleteOauthProvidersIntent" + "$ref": "#/components/schemas/DeleteOauthProvidersIntent" createSubOrganizationIntentV5: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV5" + "$ref": "#/components/schemas/CreateSubOrganizationIntentV5" oauthIntent: - "$ref": "#/components/schemas/v1OauthIntent" + "$ref": "#/components/schemas/OauthIntent" createApiKeysIntentV2: - "$ref": "#/components/schemas/v1CreateApiKeysIntentV2" + "$ref": "#/components/schemas/CreateApiKeysIntentV2" createReadWriteSessionIntent: - "$ref": "#/components/schemas/v1CreateReadWriteSessionIntent" + "$ref": "#/components/schemas/CreateReadWriteSessionIntent" emailAuthIntentV2: - "$ref": "#/components/schemas/v1EmailAuthIntentV2" + "$ref": "#/components/schemas/EmailAuthIntentV2" createSubOrganizationIntentV6: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV6" + "$ref": "#/components/schemas/CreateSubOrganizationIntentV6" deletePrivateKeysIntent: - "$ref": "#/components/schemas/v1DeletePrivateKeysIntent" + "$ref": "#/components/schemas/DeletePrivateKeysIntent" deleteWalletsIntent: - "$ref": "#/components/schemas/v1DeleteWalletsIntent" + "$ref": "#/components/schemas/DeleteWalletsIntent" createReadWriteSessionIntentV2: - "$ref": "#/components/schemas/v1CreateReadWriteSessionIntentV2" + "$ref": "#/components/schemas/CreateReadWriteSessionIntentV2" deleteSubOrganizationIntent: - "$ref": "#/components/schemas/v1DeleteSubOrganizationIntent" + "$ref": "#/components/schemas/DeleteSubOrganizationIntent" initOtpAuthIntent: - "$ref": "#/components/schemas/v1InitOtpAuthIntent" + "$ref": "#/components/schemas/InitOtpAuthIntent" otpAuthIntent: - "$ref": "#/components/schemas/v1OtpAuthIntent" + "$ref": "#/components/schemas/OtpAuthIntent" createSubOrganizationIntentV7: - "$ref": "#/components/schemas/v1CreateSubOrganizationIntentV7" - v1Invitation: - required: - - accessType - - createdAt - - invitationId - - receiverEmail - - receiverUserName - - receiverUserTags - - senderUserId - - status - - updatedAt - type: object - properties: - invitationId: - type: string - description: Unique identifier for a given Invitation object. - receiverUserName: - type: string - description: The name of the intended Invitation recipient. - receiverEmail: - type: string - description: The email address of the intended Invitation recipient. - receiverUserTags: - type: array - description: A list of tags assigned to the Invitation recipient. - items: - type: string - accessType: - "$ref": "#/components/schemas/v1AccessType" - status: - "$ref": "#/components/schemas/v1InvitationStatus" - createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - senderUserId: - type: string - description: Unique identifier for the Sender of an Invitation. - v1InvitationParams: + "$ref": "#/components/schemas/CreateSubOrganizationIntentV7" + InvitationParams: required: - accessType - receiverUserEmail @@ -5729,17 +4957,11 @@ components: items: type: string accessType: - "$ref": "#/components/schemas/v1AccessType" + "$ref": "#/components/schemas/AccessType" senderUserId: type: string description: Unique identifier for the Sender of an Invitation. - v1InvitationStatus: - type: string - enum: - - INVITATION_STATUS_CREATED - - INVITATION_STATUS_ACCEPTED - - INVITATION_STATUS_REVOKED - v1ListPrivateKeyTagsRequest: + ListPrivateKeyTagsRequest: required: - organizationId type: object @@ -5747,7 +4969,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1ListPrivateKeyTagsResponse: + ListPrivateKeyTagsResponse: required: - privateKeyTags type: object @@ -5756,8 +4978,8 @@ components: type: array description: A list of Private Key Tags items: - "$ref": "#/components/schemas/datav1Tag" - v1ListUserTagsRequest: + "$ref": "#/components/schemas/v1.Tag" + ListUserTagsRequest: required: - organizationId type: object @@ -5765,7 +4987,7 @@ components: organizationId: type: string description: Unique identifier for a given Organization. - v1ListUserTagsResponse: + ListUserTagsResponse: required: - userTags type: object @@ -5774,8 +4996,8 @@ components: type: array description: A list of User Tags items: - "$ref": "#/components/schemas/datav1Tag" - v1MnemonicLanguage: + "$ref": "#/components/schemas/v1.Tag" + MnemonicLanguage: type: string enum: - MNEMONIC_LANGUAGE_ENGLISH @@ -5787,14 +5009,7 @@ components: - MNEMONIC_LANGUAGE_JAPANESE - MNEMONIC_LANGUAGE_KOREAN - MNEMONIC_LANGUAGE_SPANISH - v1NOOPCodegenAnchorResponse: - required: - - stamp - type: object - properties: - stamp: - "$ref": "#/components/schemas/v1WebAuthnStamp" - v1OauthIntent: + OauthIntent: required: - oidcToken - targetPublicKey @@ -5815,7 +5030,7 @@ components: type: string description: Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. - v1OauthProvider: + OauthProvider: required: - audience - createdAt @@ -5845,10 +5060,10 @@ components: description: Expected subject ('sub' attribute of the signed token) which represents the user ID createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - v1OauthProviderParams: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + OauthProviderParams: required: - oidcToken - providerName @@ -5860,7 +5075,7 @@ components: oidcToken: type: string description: Base64 encoded OIDC token - v1OauthRequest: + OauthRequest: required: - organizationId - parameters @@ -5880,8 +5095,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1OauthIntent" - v1OauthResult: + "$ref": "#/components/schemas/OauthIntent" + OauthResult: required: - apiKeyId - credentialBundle @@ -5897,7 +5112,7 @@ components: credentialBundle: type: string description: HPKE encrypted credential bundle - v1Operator: + Operator: type: string enum: - OPERATOR_EQUAL @@ -5911,44 +5126,7 @@ components: - OPERATOR_NOT_IN - OPERATOR_CONTAINS_ONE - OPERATOR_CONTAINS_ALL - v1OrganizationData: - type: object - properties: - organizationId: - type: string - name: - type: string - users: - type: array - items: - "$ref": "#/components/schemas/v1User" - policies: - type: array - items: - "$ref": "#/components/schemas/v1Policy" - privateKeys: - type: array - items: - "$ref": "#/components/schemas/v1PrivateKey" - invitations: - type: array - items: - "$ref": "#/components/schemas/v1Invitation" - tags: - type: array - items: - "$ref": "#/components/schemas/datav1Tag" - rootQuorum: - "$ref": "#/components/schemas/externaldatav1Quorum" - features: - type: array - items: - "$ref": "#/components/schemas/v1Feature" - wallets: - type: array - items: - "$ref": "#/components/schemas/v1Wallet" - v1OtpAuthIntent: + OtpAuthIntent: required: - otpCode - otpId @@ -5975,7 +5153,7 @@ components: invalidateExisting: type: boolean description: Invalidate all other previously generated OTP Auth API keys - v1OtpAuthRequest: + OtpAuthRequest: required: - organizationId - parameters @@ -5995,8 +5173,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1OtpAuthIntent" - v1OtpAuthResult: + "$ref": "#/components/schemas/OtpAuthIntent" + OtpAuthResult: required: - userId type: object @@ -6010,7 +5188,7 @@ components: credentialBundle: type: string description: HPKE encrypted credential bundle - v1Pagination: + Pagination: type: object properties: limit: @@ -6025,16 +5203,16 @@ components: type: string description: A pagination cursor. This is an object ID that enables you to fetch all objects after this ID. - v1PathFormat: + PathFormat: type: string enum: - PATH_FORMAT_BIP32 - v1PayloadEncoding: + PayloadEncoding: type: string enum: - PAYLOAD_ENCODING_HEXADECIMAL - PAYLOAD_ENCODING_TEXT_UTF8 - v1Policy: + Policy: required: - condition - consensus @@ -6053,11 +5231,11 @@ components: type: string description: Human-readable name for a Policy. effect: - "$ref": "#/components/schemas/v1Effect" + "$ref": "#/components/schemas/Effect" createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" notes: type: string description: Human-readable notes added by a User to describe a particular @@ -6068,7 +5246,7 @@ components: condition: type: string description: A condition expression that evalutes to true or false. - v1PrivateKey: + PrivateKey: required: - addresses - createdAt @@ -6093,28 +5271,28 @@ components: type: string description: Human-readable name for a Private Key. curve: - "$ref": "#/components/schemas/v1Curve" + "$ref": "#/components/schemas/Curve" addresses: type: array description: Derived cryptocurrency addresses for a given Private Key. items: - "$ref": "#/components/schemas/externaldatav1Address" + "$ref": "#/components/schemas/data.v1.Address" privateKeyTags: type: array description: A list of Private Key Tag IDs. items: type: string createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" exported: type: boolean description: True when a given Private Key is exported, false otherwise. imported: type: boolean description: True when a given Private Key is imported, false otherwise. - v1PrivateKeyParams: + PrivateKeyParams: required: - addressFormats - curve @@ -6126,7 +5304,7 @@ components: type: string description: Human-readable name for a Private Key. curve: - "$ref": "#/components/schemas/v1Curve" + "$ref": "#/components/schemas/Curve" privateKeyTags: type: array description: A list of Private Key Tag IDs. @@ -6137,8 +5315,8 @@ components: description: Cryptocurrency-specific formats for a derived address (e.g., Ethereum). items: - "$ref": "#/components/schemas/v1AddressFormat" - v1PrivateKeyResult: + "$ref": "#/components/schemas/AddressFormat" + PrivateKeyResult: type: object properties: privateKeyId: @@ -6146,8 +5324,8 @@ components: addresses: type: array items: - "$ref": "#/components/schemas/immutableactivityv1Address" - v1PublicKeyCredentialWithAttestation: + "$ref": "#/components/schemas/activity.v1.Address" + PublicKeyCredentialWithAttestation: required: - clientExtensionResults - id @@ -6171,21 +5349,21 @@ components: - cross-platform - platform response: - "$ref": "#/components/schemas/v1AuthenticatorAttestationResponse" + "$ref": "#/components/schemas/AuthenticatorAttestationResponse" clientExtensionResults: - "$ref": "#/components/schemas/v1SimpleClientExtensionResults" - v1RecoverUserIntent: + "$ref": "#/components/schemas/SimpleClientExtensionResults" + RecoverUserIntent: required: - authenticator - userId type: object properties: authenticator: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" userId: type: string description: Unique identifier for the user performing recovery. - v1RecoverUserRequest: + RecoverUserRequest: required: - organizationId - parameters @@ -6205,8 +5383,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1RecoverUserIntent" - v1RecoverUserResult: + "$ref": "#/components/schemas/RecoverUserIntent" + RecoverUserResult: required: - authenticatorId type: object @@ -6216,7 +5394,7 @@ components: description: ID of the authenticator created. items: type: string - v1RejectActivityIntent: + RejectActivityIntent: required: - fingerprint type: object @@ -6224,7 +5402,7 @@ components: fingerprint: type: string description: An artifact verifying a User's action. - v1RejectActivityRequest: + RejectActivityRequest: required: - organizationId - parameters @@ -6244,15 +5422,15 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1RejectActivityIntent" - v1RemoveOrganizationFeatureIntent: + "$ref": "#/components/schemas/RejectActivityIntent" + RemoveOrganizationFeatureIntent: required: - name type: object properties: name: - "$ref": "#/components/schemas/v1FeatureName" - v1RemoveOrganizationFeatureRequest: + "$ref": "#/components/schemas/FeatureName" + RemoveOrganizationFeatureRequest: required: - organizationId - parameters @@ -6272,8 +5450,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1RemoveOrganizationFeatureIntent" - v1RemoveOrganizationFeatureResult: + "$ref": "#/components/schemas/RemoveOrganizationFeatureIntent" + RemoveOrganizationFeatureResult: required: - features type: object @@ -6282,141 +5460,141 @@ components: type: array description: Resulting list of organization features. items: - "$ref": "#/components/schemas/v1Feature" - v1Result: + "$ref": "#/components/schemas/Feature" + Result: type: object properties: createOrganizationResult: - "$ref": "#/components/schemas/v1CreateOrganizationResult" + "$ref": "#/components/schemas/CreateOrganizationResult" createAuthenticatorsResult: - "$ref": "#/components/schemas/v1CreateAuthenticatorsResult" + "$ref": "#/components/schemas/CreateAuthenticatorsResult" createUsersResult: - "$ref": "#/components/schemas/v1CreateUsersResult" + "$ref": "#/components/schemas/CreateUsersResult" createPrivateKeysResult: - "$ref": "#/components/schemas/v1CreatePrivateKeysResult" + "$ref": "#/components/schemas/CreatePrivateKeysResult" createInvitationsResult: - "$ref": "#/components/schemas/v1CreateInvitationsResult" + "$ref": "#/components/schemas/CreateInvitationsResult" acceptInvitationResult: - "$ref": "#/components/schemas/v1AcceptInvitationResult" + "$ref": "#/components/schemas/AcceptInvitationResult" signRawPayloadResult: - "$ref": "#/components/schemas/v1SignRawPayloadResult" + "$ref": "#/components/schemas/SignRawPayloadResult" createPolicyResult: - "$ref": "#/components/schemas/v1CreatePolicyResult" + "$ref": "#/components/schemas/CreatePolicyResult" disablePrivateKeyResult: - "$ref": "#/components/schemas/v1DisablePrivateKeyResult" + "$ref": "#/components/schemas/DisablePrivateKeyResult" deleteUsersResult: - "$ref": "#/components/schemas/v1DeleteUsersResult" + "$ref": "#/components/schemas/DeleteUsersResult" deleteAuthenticatorsResult: - "$ref": "#/components/schemas/v1DeleteAuthenticatorsResult" + "$ref": "#/components/schemas/DeleteAuthenticatorsResult" deleteInvitationResult: - "$ref": "#/components/schemas/v1DeleteInvitationResult" + "$ref": "#/components/schemas/DeleteInvitationResult" deleteOrganizationResult: - "$ref": "#/components/schemas/v1DeleteOrganizationResult" + "$ref": "#/components/schemas/DeleteOrganizationResult" deletePolicyResult: - "$ref": "#/components/schemas/v1DeletePolicyResult" + "$ref": "#/components/schemas/DeletePolicyResult" createUserTagResult: - "$ref": "#/components/schemas/v1CreateUserTagResult" + "$ref": "#/components/schemas/CreateUserTagResult" deleteUserTagsResult: - "$ref": "#/components/schemas/v1DeleteUserTagsResult" + "$ref": "#/components/schemas/DeleteUserTagsResult" signTransactionResult: - "$ref": "#/components/schemas/v1SignTransactionResult" + "$ref": "#/components/schemas/SignTransactionResult" deleteApiKeysResult: - "$ref": "#/components/schemas/v1DeleteApiKeysResult" + "$ref": "#/components/schemas/DeleteApiKeysResult" createApiKeysResult: - "$ref": "#/components/schemas/v1CreateApiKeysResult" + "$ref": "#/components/schemas/CreateApiKeysResult" createPrivateKeyTagResult: - "$ref": "#/components/schemas/v1CreatePrivateKeyTagResult" + "$ref": "#/components/schemas/CreatePrivateKeyTagResult" deletePrivateKeyTagsResult: - "$ref": "#/components/schemas/v1DeletePrivateKeyTagsResult" + "$ref": "#/components/schemas/DeletePrivateKeyTagsResult" setPaymentMethodResult: - "$ref": "#/components/schemas/billingSetPaymentMethodResult" + "$ref": "#/components/schemas/SetPaymentMethodResult" activateBillingTierResult: - "$ref": "#/components/schemas/billingActivateBillingTierResult" + "$ref": "#/components/schemas/ActivateBillingTierResult" deletePaymentMethodResult: - "$ref": "#/components/schemas/billingDeletePaymentMethodResult" + "$ref": "#/components/schemas/DeletePaymentMethodResult" createApiOnlyUsersResult: - "$ref": "#/components/schemas/v1CreateApiOnlyUsersResult" + "$ref": "#/components/schemas/CreateApiOnlyUsersResult" updateRootQuorumResult: - "$ref": "#/components/schemas/v1UpdateRootQuorumResult" + "$ref": "#/components/schemas/UpdateRootQuorumResult" updateUserTagResult: - "$ref": "#/components/schemas/v1UpdateUserTagResult" + "$ref": "#/components/schemas/UpdateUserTagResult" updatePrivateKeyTagResult: - "$ref": "#/components/schemas/v1UpdatePrivateKeyTagResult" + "$ref": "#/components/schemas/UpdatePrivateKeyTagResult" createSubOrganizationResult: - "$ref": "#/components/schemas/v1CreateSubOrganizationResult" + "$ref": "#/components/schemas/CreateSubOrganizationResult" updateAllowedOriginsResult: - "$ref": "#/components/schemas/v1UpdateAllowedOriginsResult" + "$ref": "#/components/schemas/UpdateAllowedOriginsResult" createPrivateKeysResultV2: - "$ref": "#/components/schemas/v1CreatePrivateKeysResultV2" + "$ref": "#/components/schemas/CreatePrivateKeysResultV2" updateUserResult: - "$ref": "#/components/schemas/v1UpdateUserResult" + "$ref": "#/components/schemas/UpdateUserResult" updatePolicyResult: - "$ref": "#/components/schemas/v1UpdatePolicyResult" + "$ref": "#/components/schemas/UpdatePolicyResult" createSubOrganizationResultV3: - "$ref": "#/components/schemas/v1CreateSubOrganizationResultV3" + "$ref": "#/components/schemas/CreateSubOrganizationResultV3" createWalletResult: - "$ref": "#/components/schemas/v1CreateWalletResult" + "$ref": "#/components/schemas/CreateWalletResult" createWalletAccountsResult: - "$ref": "#/components/schemas/v1CreateWalletAccountsResult" + "$ref": "#/components/schemas/CreateWalletAccountsResult" initUserEmailRecoveryResult: - "$ref": "#/components/schemas/v1InitUserEmailRecoveryResult" + "$ref": "#/components/schemas/InitUserEmailRecoveryResult" recoverUserResult: - "$ref": "#/components/schemas/v1RecoverUserResult" + "$ref": "#/components/schemas/RecoverUserResult" setOrganizationFeatureResult: - "$ref": "#/components/schemas/v1SetOrganizationFeatureResult" + "$ref": "#/components/schemas/SetOrganizationFeatureResult" removeOrganizationFeatureResult: - "$ref": "#/components/schemas/v1RemoveOrganizationFeatureResult" + "$ref": "#/components/schemas/RemoveOrganizationFeatureResult" exportPrivateKeyResult: - "$ref": "#/components/schemas/v1ExportPrivateKeyResult" + "$ref": "#/components/schemas/ExportPrivateKeyResult" exportWalletResult: - "$ref": "#/components/schemas/v1ExportWalletResult" + "$ref": "#/components/schemas/ExportWalletResult" createSubOrganizationResultV4: - "$ref": "#/components/schemas/v1CreateSubOrganizationResultV4" + "$ref": "#/components/schemas/CreateSubOrganizationResultV4" emailAuthResult: - "$ref": "#/components/schemas/v1EmailAuthResult" + "$ref": "#/components/schemas/EmailAuthResult" exportWalletAccountResult: - "$ref": "#/components/schemas/v1ExportWalletAccountResult" + "$ref": "#/components/schemas/ExportWalletAccountResult" initImportWalletResult: - "$ref": "#/components/schemas/v1InitImportWalletResult" + "$ref": "#/components/schemas/InitImportWalletResult" importWalletResult: - "$ref": "#/components/schemas/v1ImportWalletResult" + "$ref": "#/components/schemas/ImportWalletResult" initImportPrivateKeyResult: - "$ref": "#/components/schemas/v1InitImportPrivateKeyResult" + "$ref": "#/components/schemas/InitImportPrivateKeyResult" importPrivateKeyResult: - "$ref": "#/components/schemas/v1ImportPrivateKeyResult" + "$ref": "#/components/schemas/ImportPrivateKeyResult" createPoliciesResult: - "$ref": "#/components/schemas/v1CreatePoliciesResult" + "$ref": "#/components/schemas/CreatePoliciesResult" signRawPayloadsResult: - "$ref": "#/components/schemas/v1SignRawPayloadsResult" + "$ref": "#/components/schemas/SignRawPayloadsResult" createReadOnlySessionResult: - "$ref": "#/components/schemas/v1CreateReadOnlySessionResult" + "$ref": "#/components/schemas/CreateReadOnlySessionResult" createOauthProvidersResult: - "$ref": "#/components/schemas/v1CreateOauthProvidersResult" + "$ref": "#/components/schemas/CreateOauthProvidersResult" deleteOauthProvidersResult: - "$ref": "#/components/schemas/v1DeleteOauthProvidersResult" + "$ref": "#/components/schemas/DeleteOauthProvidersResult" createSubOrganizationResultV5: - "$ref": "#/components/schemas/v1CreateSubOrganizationResultV5" + "$ref": "#/components/schemas/CreateSubOrganizationResultV5" oauthResult: - "$ref": "#/components/schemas/v1OauthResult" + "$ref": "#/components/schemas/OauthResult" createReadWriteSessionResult: - "$ref": "#/components/schemas/v1CreateReadWriteSessionResult" + "$ref": "#/components/schemas/CreateReadWriteSessionResult" createSubOrganizationResultV6: - "$ref": "#/components/schemas/v1CreateSubOrganizationResultV6" + "$ref": "#/components/schemas/CreateSubOrganizationResultV6" deletePrivateKeysResult: - "$ref": "#/components/schemas/v1DeletePrivateKeysResult" + "$ref": "#/components/schemas/DeletePrivateKeysResult" deleteWalletsResult: - "$ref": "#/components/schemas/v1DeleteWalletsResult" + "$ref": "#/components/schemas/DeleteWalletsResult" createReadWriteSessionResultV2: - "$ref": "#/components/schemas/v1CreateReadWriteSessionResultV2" + "$ref": "#/components/schemas/CreateReadWriteSessionResultV2" deleteSubOrganizationResult: - "$ref": "#/components/schemas/v1DeleteSubOrganizationResult" + "$ref": "#/components/schemas/DeleteSubOrganizationResult" initOtpAuthResult: - "$ref": "#/components/schemas/v1InitOtpAuthResult" + "$ref": "#/components/schemas/InitOtpAuthResult" otpAuthResult: - "$ref": "#/components/schemas/v1OtpAuthResult" + "$ref": "#/components/schemas/OtpAuthResult" createSubOrganizationResultV7: - "$ref": "#/components/schemas/v1CreateSubOrganizationResultV7" - v1RootUserParams: + "$ref": "#/components/schemas/CreateSubOrganizationResultV7" + RootUserParams: required: - apiKeys - authenticators @@ -6433,13 +5611,13 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/apiApiKeyParams" + "$ref": "#/components/schemas/ApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" - v1RootUserParamsV2: + "$ref": "#/components/schemas/AuthenticatorParamsV2" + RootUserParamsV2: required: - apiKeys - authenticators @@ -6457,18 +5635,18 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/apiApiKeyParams" + "$ref": "#/components/schemas/ApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" oauthProviders: type: array description: A list of Oauth providers. items: - "$ref": "#/components/schemas/v1OauthProviderParams" - v1RootUserParamsV3: + "$ref": "#/components/schemas/OauthProviderParams" + RootUserParamsV3: required: - apiKeys - authenticators @@ -6486,18 +5664,18 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/v1ApiKeyParamsV2" + "$ref": "#/components/schemas/ApiKeyParamsV2" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" oauthProviders: type: array description: A list of Oauth providers. items: - "$ref": "#/components/schemas/v1OauthProviderParams" - v1RootUserParamsV4: + "$ref": "#/components/schemas/OauthProviderParams" + RootUserParamsV4: required: - apiKeys - authenticators @@ -6518,50 +5696,50 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/v1ApiKeyParamsV2" + "$ref": "#/components/schemas/ApiKeyParamsV2" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" oauthProviders: type: array description: A list of Oauth providers. items: - "$ref": "#/components/schemas/v1OauthProviderParams" - v1Selector: + "$ref": "#/components/schemas/OauthProviderParams" + Selector: type: object properties: subject: type: string operator: - "$ref": "#/components/schemas/v1Operator" + "$ref": "#/components/schemas/Operator" target: type: string - v1SelectorV2: + SelectorV2: type: object properties: subject: type: string operator: - "$ref": "#/components/schemas/v1Operator" + "$ref": "#/components/schemas/Operator" targets: type: array items: type: string - v1SetOrganizationFeatureIntent: + SetOrganizationFeatureIntent: required: - name - value type: object properties: name: - "$ref": "#/components/schemas/v1FeatureName" + "$ref": "#/components/schemas/FeatureName" value: type: string description: Optional value for the feature. Will override existing values if feature is already set. - v1SetOrganizationFeatureRequest: + SetOrganizationFeatureRequest: required: - organizationId - parameters @@ -6581,8 +5759,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1SetOrganizationFeatureIntent" - v1SetOrganizationFeatureResult: + "$ref": "#/components/schemas/SetOrganizationFeatureIntent" + SetOrganizationFeatureResult: required: - features type: object @@ -6591,8 +5769,68 @@ components: type: array description: Resulting list of organization features. items: - "$ref": "#/components/schemas/v1Feature" - v1SignRawPayloadIntent: + "$ref": "#/components/schemas/Feature" + SetPaymentMethodIntent: + required: + - cardHolderEmail + - cardHolderName + - cvv + - expiryMonth + - expiryYear + - number + type: object + properties: + number: + type: string + description: The account number of the customer's credit card. + cvv: + type: string + description: The verification digits of the customer's credit card. + expiryMonth: + type: string + description: The month that the credit card expires. + expiryYear: + type: string + description: The year that the credit card expires. + cardHolderEmail: + type: string + description: The email that will receive invoices for the credit card. + cardHolderName: + type: string + description: The name associated with the credit card. + SetPaymentMethodIntentV2: + required: + - cardHolderEmail + - cardHolderName + - paymentMethodId + type: object + properties: + paymentMethodId: + type: string + description: The id of the payment method that was created clientside. + cardHolderEmail: + type: string + description: The email that will receive invoices for the credit card. + cardHolderName: + type: string + description: The name associated with the credit card. + SetPaymentMethodResult: + required: + - cardHolderEmail + - cardHolderName + - lastFour + type: object + properties: + lastFour: + type: string + description: The last four digits of the credit card added. + cardHolderName: + type: string + description: The name associated with the payment method. + cardHolderEmail: + type: string + description: The email address associated with the payment method. + SignRawPayloadIntent: required: - encoding - hashFunction @@ -6607,10 +5845,10 @@ components: type: string description: Raw unsigned payload to be signed. encoding: - "$ref": "#/components/schemas/v1PayloadEncoding" + "$ref": "#/components/schemas/PayloadEncoding" hashFunction: - "$ref": "#/components/schemas/v1HashFunction" - v1SignRawPayloadIntentV2: + "$ref": "#/components/schemas/HashFunction" + SignRawPayloadIntentV2: required: - encoding - hashFunction @@ -6626,10 +5864,10 @@ components: type: string description: Raw unsigned payload to be signed. encoding: - "$ref": "#/components/schemas/v1PayloadEncoding" + "$ref": "#/components/schemas/PayloadEncoding" hashFunction: - "$ref": "#/components/schemas/v1HashFunction" - v1SignRawPayloadRequest: + "$ref": "#/components/schemas/HashFunction" + SignRawPayloadRequest: required: - organizationId - parameters @@ -6649,8 +5887,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1SignRawPayloadIntentV2" - v1SignRawPayloadResult: + "$ref": "#/components/schemas/SignRawPayloadIntentV2" + SignRawPayloadResult: required: - r - s @@ -6666,7 +5904,7 @@ components: v: type: string description: Component of an ECSDA signature. - v1SignRawPayloadsIntent: + SignRawPayloadsIntent: required: - encoding - hashFunction @@ -6684,10 +5922,10 @@ components: items: type: string encoding: - "$ref": "#/components/schemas/v1PayloadEncoding" + "$ref": "#/components/schemas/PayloadEncoding" hashFunction: - "$ref": "#/components/schemas/v1HashFunction" - v1SignRawPayloadsRequest: + "$ref": "#/components/schemas/HashFunction" + SignRawPayloadsRequest: required: - organizationId - parameters @@ -6707,15 +5945,15 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1SignRawPayloadsIntent" - v1SignRawPayloadsResult: + "$ref": "#/components/schemas/SignRawPayloadsIntent" + SignRawPayloadsResult: type: object properties: signatures: type: array items: - "$ref": "#/components/schemas/v1SignRawPayloadResult" - v1SignTransactionIntent: + "$ref": "#/components/schemas/SignRawPayloadResult" + SignTransactionIntent: required: - privateKeyId - type @@ -6730,8 +5968,8 @@ components: description: Raw unsigned transaction to be signed by a particular Private Key. type: - "$ref": "#/components/schemas/v1TransactionType" - v1SignTransactionIntentV2: + "$ref": "#/components/schemas/TransactionType" + SignTransactionIntentV2: required: - signWith - type @@ -6746,8 +5984,8 @@ components: type: string description: Raw unsigned transaction to be signed type: - "$ref": "#/components/schemas/v1TransactionType" - v1SignTransactionRequest: + "$ref": "#/components/schemas/TransactionType" + SignTransactionRequest: required: - organizationId - parameters @@ -6767,15 +6005,15 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1SignTransactionIntentV2" - v1SignTransactionResult: + "$ref": "#/components/schemas/SignTransactionIntentV2" + SignTransactionResult: required: - signedTransaction type: object properties: signedTransaction: type: string - v1SimpleClientExtensionResults: + SimpleClientExtensionResults: type: object properties: appid: @@ -6783,18 +6021,30 @@ components: appidExclude: type: boolean credProps: - "$ref": "#/components/schemas/v1CredPropsAuthenticationExtensionsClientOutputs" - v1TagType: + "$ref": "#/components/schemas/CredPropsAuthenticationExtensionsClientOutputs" + Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + "$ref": "#/components/schemas/Any" + TagType: type: string enum: - TAG_TYPE_USER - TAG_TYPE_PRIVATE_KEY - v1TransactionType: + TransactionType: type: string enum: - TRANSACTION_TYPE_ETHEREUM - TRANSACTION_TYPE_SOLANA - v1UpdateAllowedOriginsIntent: + UpdateAllowedOriginsIntent: required: - allowedOrigins type: object @@ -6805,9 +6055,9 @@ components: origins items: type: string - v1UpdateAllowedOriginsResult: + UpdateAllowedOriginsResult: type: object - v1UpdatePolicyIntent: + UpdatePolicyIntent: required: - policyId type: object @@ -6819,7 +6069,7 @@ components: type: string description: Human-readable name for a Policy. policyEffect: - "$ref": "#/components/schemas/v1Effect" + "$ref": "#/components/schemas/Effect" policyCondition: type: string description: The condition expression that triggers the Effect (optional). @@ -6829,7 +6079,7 @@ components: policyNotes: type: string description: Accompanying notes for a Policy (optional). - v1UpdatePolicyRequest: + UpdatePolicyRequest: required: - organizationId - parameters @@ -6849,8 +6099,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1UpdatePolicyIntent" - v1UpdatePolicyResult: + "$ref": "#/components/schemas/UpdatePolicyIntent" + UpdatePolicyResult: required: - policyId type: object @@ -6858,7 +6108,7 @@ components: policyId: type: string description: Unique identifier for a given Policy. - v1UpdatePrivateKeyTagIntent: + UpdatePrivateKeyTagIntent: required: - addPrivateKeyIds - privateKeyTagId @@ -6881,7 +6131,7 @@ components: description: A list of Private Key IDs to remove this tag from. items: type: string - v1UpdatePrivateKeyTagRequest: + UpdatePrivateKeyTagRequest: required: - organizationId - parameters @@ -6901,8 +6151,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1UpdatePrivateKeyTagIntent" - v1UpdatePrivateKeyTagResult: + "$ref": "#/components/schemas/UpdatePrivateKeyTagIntent" + UpdatePrivateKeyTagResult: required: - privateKeyTagId type: object @@ -6910,7 +6160,7 @@ components: privateKeyTagId: type: string description: Unique identifier for a given Private Key Tag. - v1UpdateRootQuorumIntent: + UpdateRootQuorumIntent: required: - threshold - userIds @@ -6925,7 +6175,7 @@ components: description: The unique identifiers of users who comprise the quorum set. items: type: string - v1UpdateRootQuorumRequest: + UpdateRootQuorumRequest: required: - organizationId - parameters @@ -6945,10 +6195,10 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1UpdateRootQuorumIntent" - v1UpdateRootQuorumResult: + "$ref": "#/components/schemas/UpdateRootQuorumIntent" + UpdateRootQuorumResult: type: object - v1UpdateUserIntent: + UpdateUserIntent: required: - userId type: object @@ -6970,7 +6220,7 @@ components: userPhoneNumber: type: string description: The user's phone number in E.164 format e.g. +13214567890 - v1UpdateUserRequest: + UpdateUserRequest: required: - organizationId - parameters @@ -6990,8 +6240,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1UpdateUserIntent" - v1UpdateUserResult: + "$ref": "#/components/schemas/UpdateUserIntent" + UpdateUserResult: required: - userId type: object @@ -6999,7 +6249,7 @@ components: userId: type: string description: A User ID. - v1UpdateUserTagIntent: + UpdateUserTagIntent: required: - addUserIds - removeUserIds @@ -7022,7 +6272,7 @@ components: description: A list of User IDs to remove this tag from. items: type: string - v1UpdateUserTagRequest: + UpdateUserTagRequest: required: - organizationId - parameters @@ -7042,8 +6292,8 @@ components: type: string description: Unique identifier for a given Organization. parameters: - "$ref": "#/components/schemas/v1UpdateUserTagIntent" - v1UpdateUserTagResult: + "$ref": "#/components/schemas/UpdateUserTagIntent" + UpdateUserTagResult: required: - userTagId type: object @@ -7051,7 +6301,7 @@ components: userTagId: type: string description: Unique identifier for a given User Tag. - v1User: + User: required: - apiKeys - authenticators @@ -7079,12 +6329,12 @@ components: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1Authenticator" + "$ref": "#/components/schemas/Authenticator" apiKeys: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/v1ApiKey" + "$ref": "#/components/schemas/ApiKey" userTags: type: array description: A list of User Tag IDs. @@ -7094,12 +6344,12 @@ components: type: array description: A list of Oauth Providers. items: - "$ref": "#/components/schemas/v1OauthProvider" + "$ref": "#/components/schemas/OauthProvider" createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - v1UserParams: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + UserParams: required: - accessType - apiKeys @@ -7115,23 +6365,23 @@ components: type: string description: The user's email address. accessType: - "$ref": "#/components/schemas/v1AccessType" + "$ref": "#/components/schemas/AccessType" apiKeys: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/apiApiKeyParams" + "$ref": "#/components/schemas/ApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParams" + "$ref": "#/components/schemas/AuthenticatorParams" userTags: type: array description: A list of User Tag IDs. items: type: string - v1UserParamsV2: + UserParamsV2: required: - apiKeys - authenticators @@ -7149,18 +6399,18 @@ components: type: array description: A list of API Key parameters. items: - "$ref": "#/components/schemas/apiApiKeyParams" + "$ref": "#/components/schemas/ApiKeyParams" authenticators: type: array description: A list of Authenticator parameters. items: - "$ref": "#/components/schemas/v1AuthenticatorParamsV2" + "$ref": "#/components/schemas/AuthenticatorParamsV2" userTags: type: array description: A list of User Tag IDs. items: type: string - v1Vote: + Vote: required: - activityId - createdAt @@ -7181,7 +6431,7 @@ components: type: string description: Unique identifier for a given User. user: - "$ref": "#/components/schemas/v1User" + "$ref": "#/components/schemas/User" activityId: type: string description: Unique identifier for a given Activity object. @@ -7204,8 +6454,8 @@ components: type: string description: Method used to produce a signature. createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - v1Wallet: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + Wallet: required: - createdAt - exported @@ -7222,16 +6472,16 @@ components: type: string description: Human-readable name for a Wallet. createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" exported: type: boolean description: True when a given Wallet is exported, false otherwise. imported: type: boolean description: True when a given Wallet is imported, false otherwise. - v1WalletAccount: + WalletAccount: required: - address - addressFormat @@ -7251,22 +6501,22 @@ components: type: string description: The Wallet the Account was derived from. curve: - "$ref": "#/components/schemas/v1Curve" + "$ref": "#/components/schemas/Curve" pathFormat: - "$ref": "#/components/schemas/v1PathFormat" + "$ref": "#/components/schemas/PathFormat" path: type: string description: Path used to generate the Account. addressFormat: - "$ref": "#/components/schemas/v1AddressFormat" + "$ref": "#/components/schemas/AddressFormat" address: type: string description: Address generated using the Wallet seed and Account parameters. createdAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" + "$ref": "#/components/schemas/external.data.v1.Timestamp" updatedAt: - "$ref": "#/components/schemas/externaldatav1Timestamp" - v1WalletAccountParams: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + WalletAccountParams: required: - addressFormat - curve @@ -7275,15 +6525,15 @@ components: type: object properties: curve: - "$ref": "#/components/schemas/v1Curve" + "$ref": "#/components/schemas/Curve" pathFormat: - "$ref": "#/components/schemas/v1PathFormat" + "$ref": "#/components/schemas/PathFormat" path: type: string description: Path used to generate a wallet Account. addressFormat: - "$ref": "#/components/schemas/v1AddressFormat" - v1WalletParams: + "$ref": "#/components/schemas/AddressFormat" + WalletParams: required: - accounts - walletName @@ -7296,13 +6546,13 @@ components: type: array description: A list of wallet Accounts. items: - "$ref": "#/components/schemas/v1WalletAccountParams" + "$ref": "#/components/schemas/WalletAccountParams" mnemonicLength: type: integer description: 'Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24.' format: int32 - v1WalletResult: + WalletResult: required: - addresses - walletId @@ -7315,28 +6565,78 @@ components: description: A list of account addresses. items: type: string - v1WebAuthnStamp: + activity.v1.Address: + type: object + properties: + format: + "$ref": "#/components/schemas/AddressFormat" + address: + type: string + data.v1.Address: + type: object + properties: + format: + "$ref": "#/components/schemas/AddressFormat" + address: + type: string + external.data.v1.Credential: required: - - authenticatorData - - clientDataJson - - credentialId - - signature + - publicKey + - type type: object properties: - credentialId: + publicKey: type: string - description: A base64 url encoded Unique identifier for a given credential. - clientDataJson: + description: The public component of a cryptographic key pair used to sign + messages and transactions. + type: + "$ref": "#/components/schemas/CredentialType" + external.data.v1.Quorum: + required: + - threshold + - userIds + type: object + properties: + threshold: + type: integer + description: Count of unique approvals required to meet quorum. + format: int32 + userIds: + type: array + description: Unique identifiers of quorum set members. + items: + type: string + external.data.v1.Timestamp: + required: + - nanos + - seconds + type: object + properties: + seconds: type: string - description: A base64 encoded payload containing metadata about the signing - context and the challenge. - authenticatorData: + nanos: type: string - description: A base64 encoded payload containing metadata about the authenticator. - signature: + v1.Tag: + required: + - createdAt + - tagId + - tagName + - tagType + - updatedAt + type: object + properties: + tagId: + type: string + description: Unique identifier for a given Tag. + tagName: type: string - description: The base64 url encoded signature bytes contained within the - WebAuthn assertion response. + description: Human-readable name for a Tag. + tagType: + "$ref": "#/components/schemas/TagType" + createdAt: + "$ref": "#/components/schemas/external.data.v1.Timestamp" + updatedAt: + "$ref": "#/components/schemas/external.data.v1.Timestamp" securitySchemes: ApiKeyAuth: type: apiKey From dcfc4041baa45d7e488b7507b6cf8b4502002b96 Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Tue, 12 Nov 2024 05:21:19 +0700 Subject: [PATCH 4/9] update codegen --- Sources/TurnkeySDK/TurnkeyClient.generated.swift | 7 ++++--- templates/TurnkeyClient.stencil | 7 ++++--- templates/macros.stencil | 16 ++++++++++------ 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Sources/TurnkeySDK/TurnkeyClient.generated.swift b/Sources/TurnkeySDK/TurnkeyClient.generated.swift index f34e74e..363b0dd 100644 --- a/Sources/TurnkeySDK/TurnkeyClient.generated.swift +++ b/Sources/TurnkeySDK/TurnkeyClient.generated.swift @@ -118,6 +118,7 @@ public struct TurnkeyClient { /// - apiKeyName: Optional. The name of the API key used in the authentication process. /// - expirationSeconds: Optional. The duration in seconds before the authentication request expires. /// - emailCustomization: Optional. Customization parameters for the authentication email. + /// - invalidateExisting: Optional. Invalidates all existing email auth API keys. /// /// - Returns: A tuple containing the `Operations.EmailAuth.Output` and a closure `(String) async throws -> Void` that accepts an encrypted bundle for verification. /// @@ -127,7 +128,7 @@ public struct TurnkeyClient { public func emailAuth( organizationId: String, email: String, apiKeyName: String?, expirationSeconds: String?, - emailCustomization: Components.Schemas.EmailCustomizationParams? + emailCustomization: Components.Schemas.EmailCustomizationParams?, invalidateExisting: Bool? ) async throws -> (Operations.EmailAuth.Output, (String) async throws -> AuthResult) { let ephemeralPrivateKey = P256.KeyAgreement.PrivateKey() let targetPublicKey = try ephemeralPrivateKey.publicKey.toString(representation: .x963) @@ -135,7 +136,7 @@ public struct TurnkeyClient { let response = try await emailAuth( organizationId: organizationId, email: email, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, expirationSeconds: expirationSeconds, - emailCustomization: emailCustomization) + emailCustomization: emailCustomization, invalidateExisting: invalidateExisting) let authResponseOrganizationId = try response.ok.body.json.activity.organizationId let verify: (String) async throws -> AuthResult = { encryptedBundle in @@ -715,7 +716,7 @@ public struct TurnkeyClient { } public func createReadOnlySession( - organizationId: String, + organizationId: String ) async throws -> Operations.CreateReadOnlySession.Output { // Create the CreateReadOnlySessionIntent diff --git a/templates/TurnkeyClient.stencil b/templates/TurnkeyClient.stencil index 5b4a711..f618b1a 100644 --- a/templates/TurnkeyClient.stencil +++ b/templates/TurnkeyClient.stencil @@ -119,6 +119,7 @@ public struct TurnkeyClient { /// - apiKeyName: Optional. The name of the API key used in the authentication process. /// - expirationSeconds: Optional. The duration in seconds before the authentication request expires. /// - emailCustomization: Optional. Customization parameters for the authentication email. + /// - invalidateExisting: Optional. Invalidates all existing email auth API keys. /// /// - Returns: A tuple containing the `Operations.EmailAuth.Output` and a closure `(String) async throws -> Void` that accepts an encrypted bundle for verification. /// @@ -128,7 +129,7 @@ public struct TurnkeyClient { public func emailAuth( organizationId: String, email: String, apiKeyName: String?, expirationSeconds: String?, - emailCustomization: Components.Schemas.EmailCustomizationParams? + emailCustomization: Components.Schemas.EmailCustomizationParams?, invalidateExisting: Bool? ) async throws -> (Operations.EmailAuth.Output, (String) async throws -> AuthResult) { let ephemeralPrivateKey = P256.KeyAgreement.PrivateKey() let targetPublicKey = try ephemeralPrivateKey.publicKey.toString(representation: .x963) @@ -136,7 +137,7 @@ public struct TurnkeyClient { let response = try await emailAuth( organizationId: organizationId, email: email, targetPublicKey: targetPublicKey, apiKeyName: apiKeyName, expirationSeconds: expirationSeconds, - emailCustomization: emailCustomization) + emailCustomization: emailCustomization, invalidateExisting: invalidateExisting) let authResponseOrganizationId = try response.ok.body.json.activity.organizationId @@ -203,4 +204,4 @@ public struct TurnkeyClient { {% endfor %} {% endfor %} -} \ No newline at end of file +} diff --git a/templates/macros.stencil b/templates/macros.stencil index 51c52e2..cedcf55 100644 --- a/templates/macros.stencil +++ b/templates/macros.stencil @@ -23,12 +23,16 @@ {% macro addActivityMethodParams methodName -%} {% for struct in types.structs where struct.localName|split:"Request"|join == methodName -%} {% for method in struct.methods -%} - {% for param in method.parameters where param.name != "_type" and param.name != "timestampMs" -%} - {% if param.name != "parameters" -%} - {{ param.name }}: {{ param.typeName|replace:"Swift.","" }}{% if not forloop.last %}, {% endif %} - {% else -%} - {% map param.type.variables into params %}{{ maploop.item.name }}: {{ maploop.item.typeName|replace:"Swift.","" }}{% endmap %}{{ params|join:", " }} - {%- endif %} + {# First handle non-parameters fields #} + {% for param in method.parameters where param.name != "_type" and param.name != "timestampMs" and param.name != "parameters" -%} + {{ param.name }}: {{ param.typeName|replace:"Swift.","" }} + {%- endfor %} + {# Then handle parameters fields if they exist #} + {% for param in method.parameters where param.name == "parameters" -%} + {% if param.type.variables.count > 0 %}, {% endif %} + {% for var in param.type.variables -%} + {{ var.name }}: {{ var.typeName|replace:"Swift.","" }}{% if not forloop.last %}, {% endif %} + {%- endfor %} {%- endfor %} {%- endfor %} {%- endfor %} From 55d5b9f4177a5f3b9ee03e1d26b5e47cbeadd315 Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Tue, 12 Nov 2024 05:25:59 +0700 Subject: [PATCH 5/9] wip: tests --- Tests/TurnkeySDKTests/TurnkeySDKTests.swift | 52 +++++++++++---------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift index aa75038..56304a2 100644 --- a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift +++ b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift @@ -61,9 +61,9 @@ final class TurnkeySDKTests: XCTestCase { case let .json(whoamiResponse): // Assert the expected properties in the whoamiResponse XCTAssertNotNil(whoamiResponse.organizationId) - XCTAssertEqual(whoamiResponse.organizationName, "SDK E2E") + XCTAssertEqual(whoamiResponse.organizationName, "andrew") XCTAssertEqual(whoamiResponse.userId, expectedUserId!) - XCTAssertEqual(whoamiResponse.username, "Root user") + XCTAssertEqual(whoamiResponse.username, "root user") // Add more assertions based on the expected response } case let .undocumented(statusCode, undocumentedPayload): @@ -117,17 +117,19 @@ final class TurnkeySDKTests: XCTestCase { // Define the test input let subOrganizationName = "Test Sub Organization" - let rootUsers: [Components.Schemas.RootUserParams] = [ + let rootUsers: [Components.Schemas.RootUserParamsV4] = [ .init( userName: "user1", userEmail: "user1@example.com", apiKeys: [ .init( apiKeyName: "turnkey-demo", - publicKey: apiPublicKey! + publicKey: apiPublicKey!, + curveType: .API_KEY_CURVE_P256 ) ], - authenticators: [] + authenticators: [], + oauthProviders: [] ) ] let rootQuorumThreshold: Int32 = 1 @@ -142,8 +144,11 @@ final class TurnkeySDKTests: XCTestCase { ) ] ) + let disableEmailRecovery = false let disableEmailAuth = false + let disableSmsAuth = false + let disableOtpEmailAuth = false // Call the createSubOrganization method on the TurnkeyClient instance let output = try await client.createSubOrganization( @@ -153,7 +158,9 @@ final class TurnkeySDKTests: XCTestCase { rootQuorumThreshold: rootQuorumThreshold, wallet: wallet, disableEmailRecovery: disableEmailRecovery, - disableEmailAuth: disableEmailAuth + disableEmailAuth: disableEmailAuth, + disableSmsAuth: disableSmsAuth, + disableOtpEmailAuth: disableOtpEmailAuth ) // Assert the response @@ -161,23 +168,20 @@ final class TurnkeySDKTests: XCTestCase { case let .ok(response): switch response.body { case let .json(activityResponse): - // Assert the expected properties in the activityResponse + // Simplified validation that focuses on the essential fields + XCTAssertNotNil(activityResponse.activity) XCTAssertEqual(activityResponse.activity.organizationId, organizationId) - - // Assert that the result is not nil - XCTAssertNotNil(activityResponse.activity.result) - - // Assert that the subOrganizationId is not nil - XCTAssertNotNil( - activityResponse.activity.result.createSubOrganizationResultV4?.subOrganizationId) - - // Assert that the rootUserIds is not nil - XCTAssertNotNil(activityResponse.activity.result.createSubOrganizationResultV4?.rootUserIds) - - // Assert that the rootUserIds count matches the expected count - XCTAssertEqual( - activityResponse.activity.result.createSubOrganizationResultV4?.rootUserIds?.count, - rootUsers.count) + + // Validate the result if present + if let result = activityResponse.activity.result.createSubOrganizationResultV7 { + XCTAssertNotNil(result.subOrganizationId) + print("Created sub-organization: \(result.subOrganizationId)") + + if let rootUserIds = result.rootUserIds { + XCTAssertEqual(rootUserIds.count, rootUsers.count) + print("Created root users: \(rootUserIds)") + } + } } case let .undocumented(statusCode, undocumentedPayload): // Handle the undocumented response @@ -207,7 +211,7 @@ final class TurnkeySDKTests: XCTestCase { let expectation = XCTestExpectation(description: "Sign transaction and handle response") // Setup the Ethereum private key and web3 instance - let web3 = Web3(rpcURL: "https://holesky.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID + let web3 = Web3(rpcURL: "https://sepolia.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID let from = try! EthereumAddress(hex: walletFromAddress ?? "", eip55: true) firstly { @@ -229,7 +233,7 @@ final class TurnkeySDKTests: XCTestCase { let gasLimit = transaction.gasLimit?.quantity ?? zeroQuantity let toAddress = transaction.to?.rawAddress ?? Bytes() let transactionValue = transaction.value?.quantity ?? zeroQuantity - let transactionType = transaction.transactionType + let _ = transaction.transactionType // Create an RLPItem representing the transaction for encoding // Important: Order matters here: From 0547cbf1331f6d4cebd2c89ad56a2c77379bf95c Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Mon, 11 Nov 2024 20:25:42 -0800 Subject: [PATCH 6/9] Fix openapi spec --- Sources/TurnkeySDK/openapi.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/TurnkeySDK/openapi.yaml b/Sources/TurnkeySDK/openapi.yaml index 0a328ce..45094a1 100644 --- a/Sources/TurnkeySDK/openapi.yaml +++ b/Sources/TurnkeySDK/openapi.yaml @@ -1690,10 +1690,14 @@ components: "$ref": "#/components/schemas/Result" votes: type: array + nullable: true description: A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. items: - "$ref": "#/components/schemas/Vote" + oneOf: + - $ref: '#/components/schemas/Vote' + - type: null + nullable: true fingerprint: type: string description: An artifact verifying a User's action. From 55a210747b7d67a2e9b63b15f920b70391bcb050 Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Mon, 11 Nov 2024 20:29:09 -0800 Subject: [PATCH 7/9] Remove votes nullable --- Sources/TurnkeySDK/openapi.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/TurnkeySDK/openapi.yaml b/Sources/TurnkeySDK/openapi.yaml index 45094a1..031027d 100644 --- a/Sources/TurnkeySDK/openapi.yaml +++ b/Sources/TurnkeySDK/openapi.yaml @@ -1690,7 +1690,6 @@ components: "$ref": "#/components/schemas/Result" votes: type: array - nullable: true description: A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. items: From 78443069ffcdd702f4772ced507ce32b683fb77c Mon Sep 17 00:00:00 2001 From: Andrew Min Date: Tue, 12 Nov 2024 11:58:34 +0700 Subject: [PATCH 8/9] restore tests --- Tests/TurnkeySDKTests/TurnkeySDKTests.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift index 56304a2..708b411 100644 --- a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift +++ b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift @@ -61,9 +61,9 @@ final class TurnkeySDKTests: XCTestCase { case let .json(whoamiResponse): // Assert the expected properties in the whoamiResponse XCTAssertNotNil(whoamiResponse.organizationId) - XCTAssertEqual(whoamiResponse.organizationName, "andrew") + XCTAssertEqual(whoamiResponse.organizationName, "SDK E2E") XCTAssertEqual(whoamiResponse.userId, expectedUserId!) - XCTAssertEqual(whoamiResponse.username, "root user") + XCTAssertEqual(whoamiResponse.username, "Root user") // Add more assertions based on the expected response } case let .undocumented(statusCode, undocumentedPayload): @@ -211,7 +211,7 @@ final class TurnkeySDKTests: XCTestCase { let expectation = XCTestExpectation(description: "Sign transaction and handle response") // Setup the Ethereum private key and web3 instance - let web3 = Web3(rpcURL: "https://sepolia.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID + let web3 = Web3(rpcURL: "https://holesky.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID let from = try! EthereumAddress(hex: walletFromAddress ?? "", eip55: true) firstly { @@ -320,7 +320,6 @@ final class TurnkeySDKTests: XCTestCase { web3.provider.send(request: request) { (response: Web3Response) in switch response.status { case let .success(result): - // print("Transaction hash: \(result.hex())") seal.fulfill(result.hex()) case let .failure(error): seal.reject(error) From a557403f199fa262773ab7ebc05159fe5b33a973 Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Tue, 12 Nov 2024 10:00:19 -0800 Subject: [PATCH 9/9] Remove authKeyManager --- Package.swift | 7 ------- Tests/TurnkeySDKTests/TurnkeySDKTests.swift | 16 ++++++++-------- .../TurnkeyiOSExample/AccountManager.swift | 19 ++++++++++--------- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/Package.swift b/Package.swift index fb72a36..cd036df 100644 --- a/Package.swift +++ b/Package.swift @@ -64,12 +64,5 @@ let package = Package( .product(name: "Web3PromiseKit", package: "Web3.swift"), ] ), - // Empty target that builds the DocC catalog at /SwiftDocCPluginDocumentation/SwiftDocCPlugin.docc. - // The SwiftDocCPlugin catalog includes high-level, user-facing documentation about using - // the Swift-DocC plugin from the command-line. - .target( - name: "TurnkeySDKDocumentation", - path: "Sources/TurnkeySDKDocumentation" - ) ] ) diff --git a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift index 708b411..10f8ff5 100644 --- a/Tests/TurnkeySDKTests/TurnkeySDKTests.swift +++ b/Tests/TurnkeySDKTests/TurnkeySDKTests.swift @@ -171,16 +171,16 @@ final class TurnkeySDKTests: XCTestCase { // Simplified validation that focuses on the essential fields XCTAssertNotNil(activityResponse.activity) XCTAssertEqual(activityResponse.activity.organizationId, organizationId) - + // Validate the result if present if let result = activityResponse.activity.result.createSubOrganizationResultV7 { - XCTAssertNotNil(result.subOrganizationId) - print("Created sub-organization: \(result.subOrganizationId)") - - if let rootUserIds = result.rootUserIds { - XCTAssertEqual(rootUserIds.count, rootUsers.count) - print("Created root users: \(rootUserIds)") - } + XCTAssertNotNil(result.subOrganizationId) + print("Created sub-organization: \(result.subOrganizationId)") + + if let rootUserIds = result.rootUserIds { + XCTAssertEqual(rootUserIds.count, rootUsers.count) + print("Created root users: \(rootUserIds)") + } } } case let .undocumented(statusCode, undocumentedPayload): diff --git a/example/TurnkeyiOSExample/TurnkeyiOSExample/AccountManager.swift b/example/TurnkeyiOSExample/TurnkeyiOSExample/AccountManager.swift index 2fd3424..c5ae285 100644 --- a/example/TurnkeyiOSExample/TurnkeyiOSExample/AccountManager.swift +++ b/example/TurnkeyiOSExample/TurnkeyiOSExample/AccountManager.swift @@ -30,14 +30,12 @@ class AccountManager: NSObject, ASAuthorizationControllerPresentationContextProv var authenticationAnchor: ASPresentationAnchor? var isPerformingModalRequest = false private var passkeyRegistration: PasskeyManager? - private let authKeyManager: AuthKeyManager private var currentEmail: String? private var modelContext: ModelContext { return AppDelegate.userModelContext } override init() { - authKeyManager = AuthKeyManager(domain: domain) super.init() // Add observers for passkey registration notifications NotificationCenter.default.addObserver( @@ -105,6 +103,12 @@ class AccountManager: NSObject, ASAuthorizationControllerPresentationContextProv isPerformingModalRequest = true } + /// A closure that verifies an encrypted bundle. + /// This closure is set when the `emailAuth` method is called and is used to verify + /// the encrypted bundle received during the email authentication process. + /// It takes a `String` representing the encrypted bundle and returns an `AuthResult` asynchronously. + private var verifyClosure: ((String) async throws -> AuthResult)? + func signInEmailAuth(email: String, anchor: ASPresentationAnchor) async { // For email auth we need to proxy the request to a backend that can stamp it let proxyURL = "http://localhost:3000/api/email-auth" @@ -112,21 +116,18 @@ class AccountManager: NSObject, ASAuthorizationControllerPresentationContextProv let turnkeyClient = TurnkeyClient(proxyURL: proxyURL) do { - let publicKey = try authKeyManager.createKeyPair() - - var targetPublicKey = Data([0x04]) - let rawRepresentation = publicKey.rawRepresentation - targetPublicKey.append(rawRepresentation) - let output = try await turnkeyClient.emailAuth( + let (output, verify) = try await turnkeyClient.emailAuth( organizationId: parentOrgId, email: email, - targetPublicKey: targetPublicKey.map { String(format: "%02x", $0) }.joined(), apiKeyName: "test-api-key-swift-sdk", expirationSeconds: "3600", emailCustomization: Components.Schemas.EmailCustomizationParams() ) + // Store the verify closure for later use + self.verifyClosure = verify + // Assert the response switch output { case let .ok(response):