@turnkey/sdk-types 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,7 +183,7 @@ export type v1ActivityResponse = {
183
183
  activity: v1Activity;
184
184
  };
185
185
  export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
186
- export type v1ActivityType = "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" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME";
186
+ export type v1ActivityType = "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" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG" | "ACTIVITY_TYPE_CREATE_TVC_APP" | "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS" | "ACTIVITY_TYPE_SOL_SEND_TRANSACTION" | "ACTIVITY_TYPE_INIT_OTP_V3" | "ACTIVITY_TYPE_VERIFY_OTP_V2" | "ACTIVITY_TYPE_OTP_LOGIN_V2" | "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2" | "ACTIVITY_TYPE_CREATE_USERS_V4" | "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT" | "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT";
187
187
  export type v1AddressFormat = "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" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP";
188
188
  export type v1ApiKey = {
189
189
  /** A User credential that can be used to authenticate to Turnkey. */
@@ -228,6 +228,14 @@ export type v1AppProof = {
228
228
  /** Signature over hashed proof_payload. */
229
229
  signature: string;
230
230
  };
231
+ export type v1AppStatus = {
232
+ /** Unique identifier for this TVC App */
233
+ appId: string;
234
+ /** List of deployment statuses for this app */
235
+ deployments: v1DeploymentStatus[];
236
+ /** The deployment ID currently serving traffic for this app */
237
+ targetedDeploymentId: string;
238
+ };
231
239
  export type v1ApproveActivityIntent = {
232
240
  /** An artifact verifying a User's action. */
233
241
  fingerprint: string;
@@ -499,19 +507,29 @@ export type v1CreateOauthProvidersIntent = {
499
507
  /** A list of Oauth providers. */
500
508
  oauthProviders: v1OauthProviderParams[];
501
509
  };
510
+ export type v1CreateOauthProvidersIntentV2 = {
511
+ /** The ID of the User to add an Oauth provider to */
512
+ userId: string;
513
+ /** A list of Oauth providers. */
514
+ oauthProviders: v1OauthProviderParamsV2[];
515
+ };
502
516
  export type v1CreateOauthProvidersRequest = {
503
517
  type: string;
504
518
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
505
519
  timestampMs: string;
506
520
  /** Unique identifier for a given Organization. */
507
521
  organizationId: string;
508
- parameters: v1CreateOauthProvidersIntent;
522
+ parameters: v1CreateOauthProvidersIntentV2;
509
523
  generateAppProofs?: boolean;
510
524
  };
511
525
  export type v1CreateOauthProvidersResult = {
512
526
  /** A list of unique identifiers for Oauth Providers */
513
527
  providerIds: string[];
514
528
  };
529
+ export type v1CreateOauthProvidersResultV2 = {
530
+ /** A list of unique identifiers for Oauth Providers */
531
+ providerIds: string[];
532
+ };
515
533
  export type v1CreateOrganizationIntent = {
516
534
  /** Human-readable name for an Organization. */
517
535
  organizationName: string;
@@ -837,13 +855,35 @@ export type v1CreateSubOrganizationIntentV7 = {
837
855
  /** Optional signature proving authorization for this sub-organization creation. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
838
856
  clientSignature?: v1ClientSignature;
839
857
  };
858
+ export type v1CreateSubOrganizationIntentV8 = {
859
+ /** Name for this sub-organization */
860
+ subOrganizationName: string;
861
+ /** Root users to create within this sub-organization */
862
+ rootUsers: v1RootUserParamsV5[];
863
+ /** The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users */
864
+ rootQuorumThreshold: number;
865
+ /** The wallet to create for the sub-organization */
866
+ wallet?: v1WalletParams;
867
+ /** Disable email recovery for the sub-organization */
868
+ disableEmailRecovery?: boolean;
869
+ /** Disable email auth for the sub-organization */
870
+ disableEmailAuth?: boolean;
871
+ /** Disable OTP SMS auth for the sub-organization */
872
+ disableSmsAuth?: boolean;
873
+ /** Disable OTP email auth for the sub-organization */
874
+ disableOtpEmailAuth?: boolean;
875
+ /** Signed JWT containing a unique id, expiry, verification type, contact */
876
+ verificationToken?: string;
877
+ /** Optional signature proving authorization for this sub-organization creation. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
878
+ clientSignature?: v1ClientSignature;
879
+ };
840
880
  export type v1CreateSubOrganizationRequest = {
841
881
  type: string;
842
882
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
843
883
  timestampMs: string;
844
884
  /** Unique identifier for a given Organization. */
845
885
  organizationId: string;
846
- parameters: v1CreateSubOrganizationIntentV7;
886
+ parameters: v1CreateSubOrganizationIntentV8;
847
887
  generateAppProofs?: boolean;
848
888
  };
849
889
  export type v1CreateSubOrganizationResult = {
@@ -876,6 +916,11 @@ export type v1CreateSubOrganizationResultV7 = {
876
916
  wallet?: v1WalletResult;
877
917
  rootUserIds?: string[];
878
918
  };
919
+ export type v1CreateSubOrganizationResultV8 = {
920
+ subOrganizationId: string;
921
+ wallet?: v1WalletResult;
922
+ rootUserIds?: string[];
923
+ };
879
924
  export type v1CreateTvcAppIntent = {
880
925
  /** The name of the new TVC application */
881
926
  name: string;
@@ -889,8 +934,8 @@ export type v1CreateTvcAppIntent = {
889
934
  shareSetId?: string;
890
935
  /** Configuration to create a new TVC operator set, used as the Share Set for this TVC application. If left empty, a Share Set ID is required */
891
936
  shareSetParams?: v1TvcOperatorSetParams;
892
- /** Enables external connectivity for this TVC app. Default if not provided: false. */
893
- externalConnectivity?: boolean;
937
+ /** Enables network egress for this TVC app. Default if not provided: false. */
938
+ enableEgress?: boolean;
894
939
  };
895
940
  export type v1CreateTvcAppResult = {
896
941
  /** The unique identifier for the TVC application */
@@ -919,10 +964,14 @@ export type v1CreateTvcDeploymentIntent = {
919
964
  nonce?: number;
920
965
  /** Optional encrypted pull secret to authorize Turnkey to pull the pivot container image. If your image is public, leave this empty. */
921
966
  pivotContainerEncryptedPullSecret?: string;
922
- /** Address(es) on which the pivot binary listens. A bind address can be a port alone (e.g. "3000") or an ip:port (e.g. "127.0.0.1:3000"). If provided as a port alone, the IP is assumed to be 0.0.0.0 */
923
- pivotBindAddresses?: string[];
924
967
  /** Optional flag to indicate whether to deploy the TVC app in debug mode, which includes additional logging and debugging tools. Default is false. */
925
968
  debugMode?: boolean;
969
+ /** Heath check type (TVC_HEALTH_CHECK_TYPE_HTTP or TVC_HEALTH_CHECK_TYPE_GRPC). HTTP health checks are made with a GET request on /health, and gRPC health checks follow the standard gRPC health checking protocol. */
970
+ healthCheckType: v1TvcHealthCheckType;
971
+ /** Port to use for health checks. */
972
+ healthCheckPort: number;
973
+ /** Port to use for public ingress. */
974
+ publicIngressPort: number;
926
975
  };
927
976
  export type v1CreateTvcDeploymentResult = {
928
977
  /** The unique identifier for the TVC deployment */
@@ -973,13 +1022,17 @@ export type v1CreateUsersIntentV3 = {
973
1022
  /** A list of Users. */
974
1023
  users: v1UserParamsV3[];
975
1024
  };
1025
+ export type v1CreateUsersIntentV4 = {
1026
+ /** A list of Users. */
1027
+ users: v1UserParamsV4[];
1028
+ };
976
1029
  export type v1CreateUsersRequest = {
977
1030
  type: string;
978
1031
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
979
1032
  timestampMs: string;
980
1033
  /** Unique identifier for a given Organization. */
981
1034
  organizationId: string;
982
- parameters: v1CreateUsersIntentV3;
1035
+ parameters: v1CreateUsersIntentV4;
983
1036
  generateAppProofs?: boolean;
984
1037
  };
985
1038
  export type v1CreateUsersResult = {
@@ -1030,6 +1083,29 @@ export type v1CreateWalletResult = {
1030
1083
  /** A list of account addresses. */
1031
1084
  addresses: string[];
1032
1085
  };
1086
+ export type v1CreateWebhookEndpointIntent = {
1087
+ /** The destination URL for webhook delivery. */
1088
+ url: string;
1089
+ /** Human-readable name for this webhook endpoint. */
1090
+ name: string;
1091
+ /** Event subscriptions to create for this endpoint. */
1092
+ subscriptions?: v1WebhookSubscriptionParams[];
1093
+ };
1094
+ export type v1CreateWebhookEndpointRequest = {
1095
+ type: string;
1096
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1097
+ timestampMs: string;
1098
+ /** Unique identifier for a given Organization. */
1099
+ organizationId: string;
1100
+ parameters: v1CreateWebhookEndpointIntent;
1101
+ generateAppProofs?: boolean;
1102
+ };
1103
+ export type v1CreateWebhookEndpointResult = {
1104
+ /** Unique identifier of the created webhook endpoint. */
1105
+ endpointId: string;
1106
+ /** The created webhook endpoint data. */
1107
+ webhookEndpoint: v1WebhookEndpointData;
1108
+ };
1033
1109
  export type v1CredPropsAuthenticationExtensionsClientOutputs = {
1034
1110
  rk: boolean;
1035
1111
  };
@@ -1337,6 +1413,33 @@ export type v1DeleteWalletsResult = {
1337
1413
  /** A list of wallet unique identifiers that were removed */
1338
1414
  walletIds: string[];
1339
1415
  };
1416
+ export type v1DeleteWebhookEndpointIntent = {
1417
+ /** Unique identifier of the webhook endpoint to delete. */
1418
+ endpointId: string;
1419
+ };
1420
+ export type v1DeleteWebhookEndpointRequest = {
1421
+ type: string;
1422
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1423
+ timestampMs: string;
1424
+ /** Unique identifier for a given Organization. */
1425
+ organizationId: string;
1426
+ parameters: v1DeleteWebhookEndpointIntent;
1427
+ generateAppProofs?: boolean;
1428
+ };
1429
+ export type v1DeleteWebhookEndpointResult = {
1430
+ /** Unique identifier of the deleted webhook endpoint. */
1431
+ endpointId: string;
1432
+ };
1433
+ export type v1DeploymentStatus = {
1434
+ /** Unique identifier for this deployment (corresponds to k8s deployment label) */
1435
+ deploymentId: string;
1436
+ /** Number of ready replicas */
1437
+ readyReplicas: number;
1438
+ /** Desired number of replicas */
1439
+ desiredReplicas: number;
1440
+ /** Last time this deployment was updated */
1441
+ lastUpdatedTime: externaldatav1Timestamp;
1442
+ };
1340
1443
  export type v1DisableAuthProxyIntent = {};
1341
1444
  export type v1DisableAuthProxyResult = {};
1342
1445
  export type v1DisablePrivateKeyIntent = {
@@ -1462,6 +1565,10 @@ export type v1EnableAuthProxyResult = {
1462
1565
  /** A User ID with permission to initiate authentication. */
1463
1566
  userId: string;
1464
1567
  };
1568
+ export type v1EthFailureDetails = {
1569
+ /** Ethereum revert chain, ordered from outermost to innermost. */
1570
+ revertChain?: v1RevertChainEntry[];
1571
+ };
1465
1572
  export type v1EthSendRawTransactionIntent = {
1466
1573
  /** The raw, signed transaction to be sent. */
1467
1574
  signedTransaction: string;
@@ -1582,7 +1689,7 @@ export type v1Feature = {
1582
1689
  name?: v1FeatureName;
1583
1690
  value?: string;
1584
1691
  };
1585
- export type v1FeatureName = "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" | "FEATURE_NAME_AUTH_PROXY";
1692
+ export type v1FeatureName = "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" | "FEATURE_NAME_AUTH_PROXY" | "FEATURE_NAME_SOLANA_RENT_PREFUND_ENABLED";
1586
1693
  export type v1FiatOnRampBlockchainNetwork = "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA" | "FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE";
1587
1694
  export type v1FiatOnRampCredential = {
1588
1695
  /** Unique identifier for a given Fiat On-Ramp Credential. */
@@ -1657,6 +1764,16 @@ export type v1GetAppProofsRequest = {
1657
1764
  export type v1GetAppProofsResponse = {
1658
1765
  appProofs: v1AppProof[];
1659
1766
  };
1767
+ export type v1GetAppStatusRequest = {
1768
+ /** Unique identifier for a given Organization. */
1769
+ organizationId: string;
1770
+ /** Unique identifier for a given TVC App. */
1771
+ appId: string;
1772
+ };
1773
+ export type v1GetAppStatusResponse = {
1774
+ /** Live runtime status for the TVC App */
1775
+ appStatus: v1AppStatus;
1776
+ };
1660
1777
  export type v1GetAuthenticatorRequest = {
1661
1778
  /** Unique identifier for a given organization. */
1662
1779
  organizationId: string;
@@ -1814,6 +1931,8 @@ export type v1GetSendTransactionStatusResponse = {
1814
1931
  txStatus: string;
1815
1932
  /** Ethereum-specific transaction status. */
1816
1933
  eth?: v1EthSendTransactionStatus;
1934
+ /** Solana-specific transaction status. */
1935
+ solana?: v1SolanaSendTransactionStatus;
1817
1936
  /** The error encountered when broadcasting or confirming the transaction, if any. */
1818
1937
  txError?: string;
1819
1938
  /** Structured error information including revert details, if available. */
@@ -2009,7 +2128,7 @@ export type v1ImportWalletResult = {
2009
2128
  addresses: string[];
2010
2129
  };
2011
2130
  export type v1InitFiatOnRampIntent = {
2012
- /** Enum to specifiy which on-ramp provider to use */
2131
+ /** Enum to specify which on-ramp provider to use */
2013
2132
  onrampProvider: v1FiatOnRampProvider;
2014
2133
  /** Destination wallet address for the buy transaction. */
2015
2134
  walletAddress: string;
@@ -2084,7 +2203,7 @@ export type v1InitImportWalletResult = {
2084
2203
  importBundle: string;
2085
2204
  };
2086
2205
  export type v1InitOtpAuthIntent = {
2087
- /** Enum to specifiy whether to send OTP via SMS or email */
2206
+ /** Enum to specify whether to send OTP via SMS or email */
2088
2207
  otpType: string;
2089
2208
  /** Email or phone number to send the OTP code to */
2090
2209
  contact: string;
@@ -2102,7 +2221,7 @@ export type v1InitOtpAuthIntent = {
2102
2221
  replyToEmailAddress?: string;
2103
2222
  };
2104
2223
  export type v1InitOtpAuthIntentV2 = {
2105
- /** Enum to specifiy whether to send OTP via SMS or email */
2224
+ /** Enum to specify whether to send OTP via SMS or email */
2106
2225
  otpType: string;
2107
2226
  /** Email or phone number to send the OTP code to */
2108
2227
  contact: string;
@@ -2248,13 +2367,19 @@ export type v1InitOtpRequest = {
2248
2367
  timestampMs: string;
2249
2368
  /** Unique identifier for a given Organization. */
2250
2369
  organizationId: string;
2251
- parameters: v1InitOtpIntentV2;
2370
+ parameters: v1InitOtpIntentV3;
2252
2371
  generateAppProofs?: boolean;
2253
2372
  };
2254
2373
  export type v1InitOtpResult = {
2255
2374
  /** Unique identifier for an OTP authentication */
2256
2375
  otpId: string;
2257
2376
  };
2377
+ export type v1InitOtpResultV2 = {
2378
+ /** Unique identifier for an OTP flow */
2379
+ otpId: string;
2380
+ /** Signed bundle containing a target encryption key to use when submitting OTP codes. */
2381
+ otpEncryptionTargetBundle: string;
2382
+ };
2258
2383
  export type v1InitUserEmailRecoveryIntent = {
2259
2384
  /** Email of the user starting recovery */
2260
2385
  email: string;
@@ -2418,7 +2543,16 @@ export type v1Intent = {
2418
2543
  createTvcDeploymentIntent?: v1CreateTvcDeploymentIntent;
2419
2544
  createTvcManifestApprovalsIntent?: v1CreateTvcManifestApprovalsIntent;
2420
2545
  solSendTransactionIntent?: v1SolSendTransactionIntent;
2546
+ initOtpIntentV3?: v1InitOtpIntentV3;
2547
+ verifyOtpIntentV2?: v1VerifyOtpIntentV2;
2548
+ otpLoginIntentV2?: v1OtpLoginIntentV2;
2421
2549
  updateOrganizationNameIntent?: v1UpdateOrganizationNameIntent;
2550
+ createSubOrganizationIntentV8?: v1CreateSubOrganizationIntentV8;
2551
+ createOauthProvidersIntentV2?: v1CreateOauthProvidersIntentV2;
2552
+ createUsersIntentV4?: v1CreateUsersIntentV4;
2553
+ createWebhookEndpointIntent?: v1CreateWebhookEndpointIntent;
2554
+ updateWebhookEndpointIntent?: v1UpdateWebhookEndpointIntent;
2555
+ deleteWebhookEndpointIntent?: v1DeleteWebhookEndpointIntent;
2422
2556
  };
2423
2557
  export type v1InvitationParams = {
2424
2558
  /** The name of the intended Invitation recipient. */
@@ -2472,6 +2606,13 @@ export type v1ListUserTagsResponse = {
2472
2606
  /** A list of user tags. */
2473
2607
  userTags: datav1Tag[];
2474
2608
  };
2609
+ export type v1ListWebhookEndpointsRequest = {
2610
+ /** Unique identifier for a given Organization. */
2611
+ organizationId: string;
2612
+ };
2613
+ export type v1ListWebhookEndpointsResponse = {
2614
+ webhookEndpoints: v1WebhookEndpointData[];
2615
+ };
2475
2616
  export type v1LoginUsage = {
2476
2617
  /** Public key for authentication */
2477
2618
  publicKey: string;
@@ -2586,6 +2727,14 @@ export type v1OauthProviderParams = {
2586
2727
  /** Base64 encoded OIDC token */
2587
2728
  oidcToken: string;
2588
2729
  };
2730
+ export type v1OauthProviderParamsV2 = {
2731
+ /** Human-readable name to identify a Provider. */
2732
+ providerName: string;
2733
+ /** Base64 encoded OIDC token */
2734
+ oidcToken?: string;
2735
+ /** OIDC claims (iss, sub, aud) to uniquely identify the user */
2736
+ oidcClaims?: v1OidcClaims;
2737
+ };
2589
2738
  export type v1OauthRequest = {
2590
2739
  type: string;
2591
2740
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
@@ -2603,6 +2752,14 @@ export type v1OauthResult = {
2603
2752
  /** HPKE encrypted credential bundle */
2604
2753
  credentialBundle: string;
2605
2754
  };
2755
+ export type v1OidcClaims = {
2756
+ /** The issuer identifier from the OIDC token (iss claim) */
2757
+ iss: string;
2758
+ /** The subject identifier from the OIDC token (sub claim) */
2759
+ sub: string;
2760
+ /** The audience from the OIDC token (aud claim) */
2761
+ aud: string;
2762
+ };
2606
2763
  export type v1Operator = "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";
2607
2764
  export type v1OtpAuthIntent = {
2608
2765
  /** ID representing the result of an init OTP activity. */
@@ -2647,13 +2804,25 @@ export type v1OtpLoginIntent = {
2647
2804
  /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
2648
2805
  clientSignature?: v1ClientSignature;
2649
2806
  };
2807
+ export type v1OtpLoginIntentV2 = {
2808
+ /** Signed Verification Token containing a unique id, expiry, verification type, contact */
2809
+ verificationToken: string;
2810
+ /** Client-side public key generated by the user, used as the session public key upon successful login */
2811
+ publicKey: string;
2812
+ /** Required signature proving authorization for this login. The signature is over the verification token ID and the public key. Required for secure OTP login process. */
2813
+ clientSignature: v1ClientSignature;
2814
+ /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
2815
+ expirationSeconds?: string;
2816
+ /** Invalidate all other previously generated Login sessions */
2817
+ invalidateExisting?: boolean;
2818
+ };
2650
2819
  export type v1OtpLoginRequest = {
2651
2820
  type: string;
2652
2821
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2653
2822
  timestampMs: string;
2654
2823
  /** Unique identifier for a given Organization. */
2655
2824
  organizationId: string;
2656
- parameters: v1OtpLoginIntent;
2825
+ parameters: v1OtpLoginIntentV2;
2657
2826
  generateAppProofs?: boolean;
2658
2827
  };
2659
2828
  export type v1OtpLoginResult = {
@@ -2877,7 +3046,13 @@ export type v1Result = {
2877
3046
  createTvcDeploymentResult?: v1CreateTvcDeploymentResult;
2878
3047
  createTvcManifestApprovalsResult?: v1CreateTvcManifestApprovalsResult;
2879
3048
  solSendTransactionResult?: v1SolSendTransactionResult;
3049
+ initOtpResultV2?: v1InitOtpResultV2;
2880
3050
  updateOrganizationNameResult?: v1UpdateOrganizationNameResult;
3051
+ createSubOrganizationResultV8?: v1CreateSubOrganizationResultV8;
3052
+ createOauthProvidersResultV2?: v1CreateOauthProvidersResultV2;
3053
+ createWebhookEndpointResult?: v1CreateWebhookEndpointResult;
3054
+ updateWebhookEndpointResult?: v1UpdateWebhookEndpointResult;
3055
+ deleteWebhookEndpointResult?: v1DeleteWebhookEndpointResult;
2881
3056
  };
2882
3057
  export type v1RevertChainEntry = {
2883
3058
  /** The contract address where the revert occurred. */
@@ -2941,6 +3116,20 @@ export type v1RootUserParamsV4 = {
2941
3116
  /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
2942
3117
  oauthProviders: v1OauthProviderParams[];
2943
3118
  };
3119
+ export type v1RootUserParamsV5 = {
3120
+ /** Human-readable name for a User. */
3121
+ userName: string;
3122
+ /** The user's email address. */
3123
+ userEmail?: string;
3124
+ /** The user's phone number in E.164 format e.g. +13214567890 */
3125
+ userPhoneNumber?: string;
3126
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
3127
+ apiKeys: v1ApiKeyParamsV2[];
3128
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
3129
+ authenticators: v1AuthenticatorParamsV2[];
3130
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
3131
+ oauthProviders: v1OauthProviderParamsV2[];
3132
+ };
2944
3133
  export type v1Selector = {
2945
3134
  subject?: string;
2946
3135
  operator?: v1Operator;
@@ -3062,6 +3251,13 @@ export type v1SignupUsage = {
3062
3251
  authenticators?: v1AuthenticatorParamsV2[];
3063
3252
  oauthProviders?: v1OauthProviderParams[];
3064
3253
  };
3254
+ export type v1SignupUsageV2 = {
3255
+ email?: string;
3256
+ phoneNumber?: string;
3257
+ apiKeys?: v1ApiKeyParamsV2[];
3258
+ authenticators?: v1AuthenticatorParamsV2[];
3259
+ oauthProviders?: v1OauthProviderParamsV2[];
3260
+ };
3065
3261
  export type v1SimpleClientExtensionResults = {
3066
3262
  appid?: boolean;
3067
3263
  appidExclude?: boolean;
@@ -3097,6 +3293,30 @@ export type v1SolSendTransactionResult = {
3097
3293
  /** The send_transaction_status ID associated with the transaction submission */
3098
3294
  sendTransactionStatusId: string;
3099
3295
  };
3296
+ export type v1SolanaConfig = {
3297
+ /** Whether Solana rent prefunding is enabled for the organization. When omitted, the existing rent-prefund state is left unchanged. */
3298
+ rentPrefundEnabled?: boolean;
3299
+ };
3300
+ export type v1SolanaFailureDetails = {
3301
+ /** Where the Solana failure occurred, such as simulation or preflight. */
3302
+ source?: string;
3303
+ /** The Solana JSON-RPC error code, if available. */
3304
+ rpcCode?: number;
3305
+ /** The Solana JSON-RPC error message, if available. */
3306
+ rpcMessage?: string;
3307
+ /** The raw Solana transaction error object serialized as JSON, if available. */
3308
+ transactionErrorJson?: string;
3309
+ /** Program logs returned by Solana simulation or preflight, if available. */
3310
+ logs?: string[];
3311
+ /** Compute units consumed during simulation or preflight, if available. */
3312
+ unitsConsumed?: string;
3313
+ /** The raw Solana inner instructions payload serialized as JSON, if available. */
3314
+ innerInstructionsJson?: string;
3315
+ };
3316
+ export type v1SolanaSendTransactionStatus = {
3317
+ /** The Solana transaction signature, if available. */
3318
+ signature?: string;
3319
+ };
3100
3320
  export type v1StampLoginIntent = {
3101
3321
  /** Client-side public key generated by the user, which will be conditionally added to org data based on the passkey stamp associated with this request */
3102
3322
  publicKey: string;
@@ -3126,8 +3346,10 @@ export type v1TokenUsage = {
3126
3346
  tokenId: string;
3127
3347
  signup?: v1SignupUsage;
3128
3348
  login?: v1LoginUsage;
3349
+ signupV2?: v1SignupUsageV2;
3129
3350
  };
3130
3351
  export type v1TransactionType = "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA" | "TRANSACTION_TYPE_TRON" | "TRANSACTION_TYPE_BITCOIN" | "TRANSACTION_TYPE_TEMPO";
3352
+ export type v1TvcHealthCheckType = "TVC_HEALTH_CHECK_TYPE_HTTP" | "TVC_HEALTH_CHECK_TYPE_GRPC";
3131
3353
  export type v1TvcManifestApproval = {
3132
3354
  /** Unique identifier of the operator providing this approval */
3133
3355
  operatorId: string;
@@ -3155,6 +3377,10 @@ export type v1TxError = {
3155
3377
  message?: string;
3156
3378
  /** Chain of revert errors from nested contract calls, ordered from outermost to innermost. */
3157
3379
  revertChain?: v1RevertChainEntry[];
3380
+ /** Solana-specific failure details for simulation or preflight errors, if available. */
3381
+ solana?: v1SolanaFailureDetails;
3382
+ /** Ethereum-specific failure details, if available. */
3383
+ eth?: v1EthFailureDetails;
3158
3384
  };
3159
3385
  export type v1UnknownRevertError = {
3160
3386
  /** The 4-byte error selector, if available. */
@@ -3200,6 +3426,8 @@ export type v1UpdateAuthProxyConfigIntent = {
3200
3426
  sendFromEmailSenderName?: string;
3201
3427
  /** Verification token required for get account with PII (email/phone number). Default false. */
3202
3428
  verificationTokenRequiredForGetAccountPii?: boolean;
3429
+ /** Whitelisted OAuth client IDs for social account linking. When a user authenticates via a social provider with an email matching an existing account, the accounts will be linked if the client ID is in this list and the issuer is considered a trusted provider. */
3430
+ socialLinkingClientIds?: string[];
3203
3431
  };
3204
3432
  export type v1UpdateAuthProxyConfigResult = {
3205
3433
  /** Unique identifier for a given User. (representing the turnkey signer user id) */
@@ -3485,6 +3713,31 @@ export type v1UpdateWalletResult = {
3485
3713
  /** A Wallet ID. */
3486
3714
  walletId: string;
3487
3715
  };
3716
+ export type v1UpdateWebhookEndpointIntent = {
3717
+ /** Unique identifier of the webhook endpoint to update. */
3718
+ endpointId: string;
3719
+ /** Updated destination URL for webhook delivery. */
3720
+ url?: string;
3721
+ /** Updated human-readable name for this webhook endpoint. */
3722
+ name?: string;
3723
+ /** Whether this webhook endpoint is active. */
3724
+ isActive?: boolean;
3725
+ };
3726
+ export type v1UpdateWebhookEndpointRequest = {
3727
+ type: string;
3728
+ /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3729
+ timestampMs: string;
3730
+ /** Unique identifier for a given Organization. */
3731
+ organizationId: string;
3732
+ parameters: v1UpdateWebhookEndpointIntent;
3733
+ generateAppProofs?: boolean;
3734
+ };
3735
+ export type v1UpdateWebhookEndpointResult = {
3736
+ /** Unique identifier of the updated webhook endpoint. */
3737
+ endpointId: string;
3738
+ /** The updated webhook endpoint data. */
3739
+ webhookEndpoint: v1WebhookEndpointData;
3740
+ };
3488
3741
  export type v1UpsertGasUsageConfigIntent = {
3489
3742
  /** Gas sponsorship USD limit for the billing organization window. */
3490
3743
  orgWindowLimitUsd: string;
@@ -3494,6 +3747,8 @@ export type v1UpsertGasUsageConfigIntent = {
3494
3747
  windowDurationMinutes: string;
3495
3748
  /** Whether gas sponsorship is enabled for the organization. */
3496
3749
  enabled?: boolean;
3750
+ /** Optional Solana sponsorship settings. If omitted, the existing Solana sponsorship state is left unchanged. */
3751
+ solanaConfig?: v1SolanaConfig;
3497
3752
  };
3498
3753
  export type v1UpsertGasUsageConfigResult = {
3499
3754
  /** Unique identifier for the gas usage configuration that was created or updated. */
@@ -3562,6 +3817,22 @@ export type v1UserParamsV3 = {
3562
3817
  /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
3563
3818
  userTags: string[];
3564
3819
  };
3820
+ export type v1UserParamsV4 = {
3821
+ /** Human-readable name for a User. */
3822
+ userName: string;
3823
+ /** The user's email address. */
3824
+ userEmail?: string;
3825
+ /** The user's phone number in E.164 format e.g. +13214567890 */
3826
+ userPhoneNumber?: string;
3827
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
3828
+ apiKeys: v1ApiKeyParamsV2[];
3829
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
3830
+ authenticators: v1AuthenticatorParamsV2[];
3831
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
3832
+ oauthProviders: v1OauthProviderParamsV2[];
3833
+ /** A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
3834
+ userTags: string[];
3835
+ };
3565
3836
  export type v1VerifyOtpIntent = {
3566
3837
  /** ID representing the result of an init OTP activity. */
3567
3838
  otpId: string;
@@ -3572,13 +3843,21 @@ export type v1VerifyOtpIntent = {
3572
3843
  /** Client-side public key generated by the user, which will be added to the JWT response and verified in subsequent requests via a client proof signature */
3573
3844
  publicKey?: string;
3574
3845
  };
3846
+ export type v1VerifyOtpIntentV2 = {
3847
+ /** UUID representing an OTP flow. A new UUID is created for each init OTP activity. */
3848
+ otpId: string;
3849
+ /** Encrypted bundle containing the OTP code and a client-generated public key. Turnkey's secure enclaves will decrypt this bundle, verify the OTP code, and issue a new Verification Token. Encrypted using the target encryption key provided in the INIT_OTP activity result. */
3850
+ encryptedOtpBundle: string;
3851
+ /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
3852
+ expirationSeconds?: string;
3853
+ };
3575
3854
  export type v1VerifyOtpRequest = {
3576
3855
  type: string;
3577
3856
  /** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3578
3857
  timestampMs: string;
3579
3858
  /** Unique identifier for a given Organization. */
3580
3859
  organizationId: string;
3581
- parameters: v1VerifyOtpIntent;
3860
+ parameters: v1VerifyOtpIntentV2;
3582
3861
  generateAppProofs?: boolean;
3583
3862
  };
3584
3863
  export type v1VerifyOtpResult = {
@@ -3682,6 +3961,28 @@ export type v1WebAuthnStamp = {
3682
3961
  /** The base64 url encoded signature bytes contained within the WebAuthn assertion response. */
3683
3962
  signature: string;
3684
3963
  };
3964
+ export type v1WebhookEndpointData = {
3965
+ /** Unique identifier of the webhook endpoint. */
3966
+ endpointId: string;
3967
+ /** Unique identifier for a given Organization. */
3968
+ organizationId: string;
3969
+ /** The destination URL for webhook delivery. */
3970
+ url: string;
3971
+ /** Human-readable name for this webhook endpoint. */
3972
+ name: string;
3973
+ /** Whether this webhook endpoint is active. */
3974
+ isActive: boolean;
3975
+ /** Current subscriptions attached to this endpoint. */
3976
+ subscriptions?: v1WebhookSubscriptionParams[];
3977
+ };
3978
+ export type v1WebhookSubscriptionParams = {
3979
+ /** The event type to subscribe to (for example, ACTIVITY_UPDATES or BALANCE_UPDATES). */
3980
+ eventType: string;
3981
+ /** JSON-encoded filter criteria for this subscription. */
3982
+ filtersJson?: string;
3983
+ /** Whether this subscription is active. */
3984
+ isActive?: boolean;
3985
+ };
3685
3986
  export type TGetActivityResponse = {
3686
3987
  /** An action that can be taken within the Turnkey infrastructure. */
3687
3988
  activity: v1Activity;
@@ -3718,6 +4019,18 @@ export type TGetApiKeysBody = {
3718
4019
  export type TGetApiKeysInput = {
3719
4020
  body: TGetApiKeysBody;
3720
4021
  };
4022
+ export type TGetAppStatusResponse = {
4023
+ /** Live runtime status for the TVC App */
4024
+ appStatus: v1AppStatus;
4025
+ };
4026
+ export type TGetAppStatusBody = {
4027
+ organizationId?: string;
4028
+ /** Unique identifier for a given TVC App. */
4029
+ appId: string;
4030
+ };
4031
+ export type TGetAppStatusInput = {
4032
+ body: TGetAppStatusBody;
4033
+ };
3721
4034
  export type TGetAuthenticatorResponse = {
3722
4035
  /** An authenticator. */
3723
4036
  authenticator: v1Authenticator;
@@ -3885,6 +4198,8 @@ export type TGetSendTransactionStatusResponse = {
3885
4198
  txStatus: string;
3886
4199
  /** Ethereum-specific transaction status. */
3887
4200
  eth?: v1EthSendTransactionStatus;
4201
+ /** Solana-specific transaction status. */
4202
+ solana?: v1SolanaSendTransactionStatus;
3888
4203
  /** The error encountered when broadcasting or confirming the transaction, if any. */
3889
4204
  txError?: string;
3890
4205
  /** Structured error information including revert details, if available. */
@@ -4139,6 +4454,15 @@ export type TGetWalletsBody = {
4139
4454
  export type TGetWalletsInput = {
4140
4455
  body: TGetWalletsBody;
4141
4456
  };
4457
+ export type TListWebhookEndpointsResponse = {
4458
+ webhookEndpoints: v1WebhookEndpointData[];
4459
+ };
4460
+ export type TListWebhookEndpointsBody = {
4461
+ organizationId?: string;
4462
+ };
4463
+ export type TListWebhookEndpointsInput = {
4464
+ body: TListWebhookEndpointsBody;
4465
+ };
4142
4466
  export type TGetWhoamiResponse = {
4143
4467
  /** Unique identifier for a given organization. */
4144
4468
  organizationId: string;
@@ -4531,6 +4855,26 @@ export type TCreateWalletAccountsBody = {
4531
4855
  export type TCreateWalletAccountsInput = {
4532
4856
  body: TCreateWalletAccountsBody;
4533
4857
  };
4858
+ export type TCreateWebhookEndpointResponse = {
4859
+ activity: v1Activity;
4860
+ /** Unique identifier of the created webhook endpoint. */
4861
+ endpointId: string;
4862
+ /** The created webhook endpoint data. */
4863
+ webhookEndpoint: v1WebhookEndpointData;
4864
+ };
4865
+ export type TCreateWebhookEndpointBody = {
4866
+ timestampMs?: string;
4867
+ organizationId?: string;
4868
+ /** The destination URL for webhook delivery. */
4869
+ url: string;
4870
+ /** Human-readable name for this webhook endpoint. */
4871
+ name: string;
4872
+ /** Event subscriptions to create for this endpoint. */
4873
+ subscriptions?: v1WebhookSubscriptionParams[];
4874
+ };
4875
+ export type TCreateWebhookEndpointInput = {
4876
+ body: TCreateWebhookEndpointBody;
4877
+ };
4534
4878
  export type TDeleteApiKeysResponse = {
4535
4879
  activity: v1Activity;
4536
4880
  /** A list of API Key IDs. */
@@ -4771,6 +5115,20 @@ export type TDeleteWalletsBody = {
4771
5115
  export type TDeleteWalletsInput = {
4772
5116
  body: TDeleteWalletsBody;
4773
5117
  };
5118
+ export type TDeleteWebhookEndpointResponse = {
5119
+ activity: v1Activity;
5120
+ /** Unique identifier of the deleted webhook endpoint. */
5121
+ endpointId: string;
5122
+ };
5123
+ export type TDeleteWebhookEndpointBody = {
5124
+ timestampMs?: string;
5125
+ organizationId?: string;
5126
+ /** Unique identifier of the webhook endpoint to delete. */
5127
+ endpointId: string;
5128
+ };
5129
+ export type TDeleteWebhookEndpointInput = {
5130
+ body: TDeleteWebhookEndpointBody;
5131
+ };
4774
5132
  export type TEmailAuthResponse = {
4775
5133
  activity: v1Activity;
4776
5134
  /** Unique identifier for the authenticating User. */
@@ -4951,7 +5309,7 @@ export type TInitFiatOnRampResponse = {
4951
5309
  export type TInitFiatOnRampBody = {
4952
5310
  timestampMs?: string;
4953
5311
  organizationId?: string;
4954
- /** Enum to specifiy which on-ramp provider to use */
5312
+ /** Enum to specify which on-ramp provider to use */
4955
5313
  onrampProvider: v1FiatOnRampProvider;
4956
5314
  /** Destination wallet address for the buy transaction. */
4957
5315
  walletAddress: string;
@@ -5209,16 +5567,16 @@ export type TOtpLoginResponse = {
5209
5567
  export type TOtpLoginBody = {
5210
5568
  timestampMs?: string;
5211
5569
  organizationId?: string;
5212
- /** Signed JWT containing a unique id, expiry, verification type, contact */
5570
+ /** Signed Verification Token containing a unique id, expiry, verification type, contact */
5213
5571
  verificationToken: string;
5214
- /** Client-side public key generated by the user, which will be conditionally added to org data based on the validity of the verification token */
5572
+ /** Client-side public key generated by the user, used as the session public key upon successful login */
5215
5573
  publicKey: string;
5574
+ /** Required signature proving authorization for this login. The signature is over the verification token ID and the public key. Required for secure OTP login process. */
5575
+ clientSignature: v1ClientSignature;
5216
5576
  /** Expiration window (in seconds) indicating how long the Session is valid for. If not provided, a default of 15 minutes will be used. */
5217
5577
  expirationSeconds?: string;
5218
- /** Invalidate all other previously generated Login API keys */
5578
+ /** Invalidate all other previously generated Login sessions */
5219
5579
  invalidateExisting?: boolean;
5220
- /** Optional signature proving authorization for this login. The signature is over the verification token ID and the public key. Only required if a public key was provided during the verification step. */
5221
- clientSignature?: v1ClientSignature;
5222
5580
  };
5223
5581
  export type TOtpLoginInput = {
5224
5582
  body: TOtpLoginBody;
@@ -5608,6 +5966,28 @@ export type TUpdateWalletBody = {
5608
5966
  export type TUpdateWalletInput = {
5609
5967
  body: TUpdateWalletBody;
5610
5968
  };
5969
+ export type TUpdateWebhookEndpointResponse = {
5970
+ activity: v1Activity;
5971
+ /** Unique identifier of the updated webhook endpoint. */
5972
+ endpointId: string;
5973
+ /** The updated webhook endpoint data. */
5974
+ webhookEndpoint: v1WebhookEndpointData;
5975
+ };
5976
+ export type TUpdateWebhookEndpointBody = {
5977
+ timestampMs?: string;
5978
+ organizationId?: string;
5979
+ /** Unique identifier of the webhook endpoint to update. */
5980
+ endpointId: string;
5981
+ /** Updated destination URL for webhook delivery. */
5982
+ url?: string;
5983
+ /** Updated human-readable name for this webhook endpoint. */
5984
+ name?: string;
5985
+ /** Whether this webhook endpoint is active. */
5986
+ isActive?: boolean;
5987
+ };
5988
+ export type TUpdateWebhookEndpointInput = {
5989
+ body: TUpdateWebhookEndpointBody;
5990
+ };
5611
5991
  export type TVerifyOtpResponse = {
5612
5992
  activity: v1Activity;
5613
5993
  /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
@@ -5616,14 +5996,12 @@ export type TVerifyOtpResponse = {
5616
5996
  export type TVerifyOtpBody = {
5617
5997
  timestampMs?: string;
5618
5998
  organizationId?: string;
5619
- /** ID representing the result of an init OTP activity. */
5999
+ /** UUID representing an OTP flow. A new UUID is created for each init OTP activity. */
5620
6000
  otpId: string;
5621
- /** OTP sent out to a user's contact (email or SMS) */
5622
- otpCode: string;
6001
+ /** Encrypted bundle containing the OTP code and a client-generated public key. Turnkey's secure enclaves will decrypt this bundle, verify the OTP code, and issue a new Verification Token. Encrypted using the target encryption key provided in the INIT_OTP activity result. */
6002
+ encryptedOtpBundle: string;
5623
6003
  /** Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
5624
6004
  expirationSeconds?: string;
5625
- /** Client-side public key generated by the user, which will be added to the JWT response and verified in subsequent requests via a client proof signature */
5626
- publicKey?: string;
5627
6005
  };
5628
6006
  export type TVerifyOtpInput = {
5629
6007
  body: TVerifyOtpBody;
@@ -5690,7 +6068,7 @@ export type ProxyTInitOtpResponse = {
5690
6068
  otpId: string;
5691
6069
  };
5692
6070
  export type ProxyTInitOtpBody = {
5693
- /** Enum to specifiy whether to send OTP via SMS or email */
6071
+ /** Enum to specify whether to send OTP via SMS or email */
5694
6072
  otpType: string;
5695
6073
  /** Email or phone number to send the OTP code to */
5696
6074
  contact: string;
@@ -5698,6 +6076,21 @@ export type ProxyTInitOtpBody = {
5698
6076
  export type ProxyTInitOtpInput = {
5699
6077
  body: ProxyTInitOtpBody;
5700
6078
  };
6079
+ export type ProxyTInitOtpV2Response = {
6080
+ /** Unique identifier for an OTP flow. */
6081
+ otpId: string;
6082
+ /** Signed bundle containing a target encryption key to use when submitting OTP codes. */
6083
+ otpEncryptionTargetBundle: string;
6084
+ };
6085
+ export type ProxyTInitOtpV2Body = {
6086
+ /** Enum to specify whether to send OTP code via SMS or email */
6087
+ otpType: string;
6088
+ /** Email or phone number to send the OTP code to */
6089
+ contact: string;
6090
+ };
6091
+ export type ProxyTInitOtpV2Input = {
6092
+ body: ProxyTInitOtpV2Body;
6093
+ };
5701
6094
  export type ProxyTOtpLoginResponse = {
5702
6095
  /** Signed JWT containing an expiry, public key, session type, user id, and organization id */
5703
6096
  session: string;
@@ -5717,6 +6110,25 @@ export type ProxyTOtpLoginBody = {
5717
6110
  export type ProxyTOtpLoginInput = {
5718
6111
  body: ProxyTOtpLoginBody;
5719
6112
  };
6113
+ export type ProxyTOtpLoginV2Response = {
6114
+ /** Session containing an expiry, public key, session type, user id, and organization id */
6115
+ session: string;
6116
+ };
6117
+ export type ProxyTOtpLoginV2Body = {
6118
+ /** Session containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
6119
+ verificationToken: string;
6120
+ /** Client-side public key generated by the user, used as the session public key upon successful login. */
6121
+ publicKey: string;
6122
+ /** Signature proving authorization for this login. The signature is over the verification token ID and the new session public key. */
6123
+ clientSignature: v1ClientSignature;
6124
+ /** Invalidate all other previously generated Login sessions */
6125
+ invalidateExisting?: boolean;
6126
+ /** Unique identifier for a given Organization. If provided, this organization id will be used directly. If omitted, uses the verification token to look up the verified sub-organization based on the contact and verification type. */
6127
+ organizationId?: string;
6128
+ };
6129
+ export type ProxyTOtpLoginV2Input = {
6130
+ body: ProxyTOtpLoginV2Body;
6131
+ };
5720
6132
  export type ProxyTVerifyOtpResponse = {
5721
6133
  /** Signed JWT containing a unique id, expiry, verification type, contact. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
5722
6134
  verificationToken: string;
@@ -5732,6 +6144,19 @@ export type ProxyTVerifyOtpBody = {
5732
6144
  export type ProxyTVerifyOtpInput = {
5733
6145
  body: ProxyTVerifyOtpBody;
5734
6146
  };
6147
+ export type ProxyTVerifyOtpV2Response = {
6148
+ /** Verification Token containing a unique id, expiry, verification type, contact signed by Turnkey's enclaves. Verification status of a user is updated when the token is consumed (in OTP_LOGIN requests) */
6149
+ verificationToken: string;
6150
+ };
6151
+ export type ProxyTVerifyOtpV2Body = {
6152
+ /** ID representing the result of an init OTP activity. */
6153
+ otpId: string;
6154
+ /** Encrypted bundle containing the OTP code and a client-generated public key. Turnkey's secure enclaves will decrypt this bundle, verify the OTP code, and issue a new Verification Token. Encrypted using the target encryption key provided in the INIT_OTP activity result. */
6155
+ encryptedOtpBundle: string;
6156
+ };
6157
+ export type ProxyTVerifyOtpV2Input = {
6158
+ body: ProxyTVerifyOtpV2Body;
6159
+ };
5735
6160
  export type ProxyTSignupResponse = {
5736
6161
  organizationId: string;
5737
6162
  /** Wallet created for the sub-organization, if provided in the request */
@@ -5762,6 +6187,36 @@ export type ProxyTSignupBody = {
5762
6187
  export type ProxyTSignupInput = {
5763
6188
  body: ProxyTSignupBody;
5764
6189
  };
6190
+ export type ProxyTSignupV2Response = {
6191
+ organizationId: string;
6192
+ /** Wallet created for the sub-organization, if provided in the request */
6193
+ wallet?: v1WalletResult;
6194
+ /** Root user ID created for this sub-organization */
6195
+ userId: string;
6196
+ /** A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
6197
+ appProofs?: v1AppProof[];
6198
+ };
6199
+ export type ProxyTSignupV2Body = {
6200
+ userEmail?: string;
6201
+ userPhoneNumber?: string;
6202
+ userTag?: string;
6203
+ userName?: string;
6204
+ organizationName?: string;
6205
+ verificationToken?: string;
6206
+ /** A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
6207
+ apiKeys: v1ApiKeyParamsV2[];
6208
+ /** A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
6209
+ authenticators: v1AuthenticatorParamsV2[];
6210
+ /** A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
6211
+ oauthProviders: v1OauthProviderParamsV2[];
6212
+ /** The wallet to create for the sub-organization */
6213
+ wallet?: v1WalletParams;
6214
+ /** Optional signature proving authorization for this signup. The signature is over the verification token ID and the root user parameters for the root user associated with the verification token. Only required if a public key was provided during the verification step. */
6215
+ clientSignature?: v1ClientSignature;
6216
+ };
6217
+ export type ProxyTSignupV2Input = {
6218
+ body: ProxyTSignupV2Body;
6219
+ };
5765
6220
  export type ProxyTGetWalletKitConfigResponse = {
5766
6221
  /** List of enabled authentication providers (e.g., 'facebook', 'google', 'apple', 'email', 'sms', 'passkey', 'wallet') */
5767
6222
  enabledProviders: string[];