@turnkey/http 4.0.0 → 4.1.1

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +1 -1
  3. package/dist/__fixtures__/shared.d.ts +6 -0
  4. package/dist/__fixtures__/shared.d.ts.map +1 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +150 -0
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +251 -0
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +251 -0
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +42450 -5643
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +240 -0
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +221 -1
  16. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  17. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +596 -13
  18. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  19. package/dist/__tests__/async-test.d.ts +2 -0
  20. package/dist/__tests__/async-test.d.ts.map +1 -0
  21. package/dist/__tests__/request-test.d.ts +2 -0
  22. package/dist/__tests__/request-test.d.ts.map +1 -0
  23. package/dist/version.d.ts +1 -1
  24. package/dist/version.js +1 -1
  25. package/dist/version.mjs +1 -1
  26. package/package.json +5 -5
@@ -95,6 +95,10 @@ export type paths = {
95
95
  /** Get details about a single TVC Deployment */
96
96
  post: operations["PublicApiService_GetTvcDeployment"];
97
97
  };
98
+ "/public/v1/query/get_tvc_deployment_provisioning_details": {
99
+ /** Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment */
100
+ post: operations["PublicApiService_GetTvcDeploymentProvisioningDetails"];
101
+ };
98
102
  "/public/v1/query/get_user": {
99
103
  /** Get details about a user. */
100
104
  post: operations["PublicApiService_GetUser"];
@@ -335,6 +339,14 @@ export type paths = {
335
339
  /** Delete a sub-organization. */
336
340
  post: operations["PublicApiService_DeleteSubOrganization"];
337
341
  };
342
+ "/public/v1/submit/delete_tvc_app_and_deployments": {
343
+ /** Delete a TVC App and all of its deployments */
344
+ post: operations["PublicApiService_DeleteTvcAppAndDeployments"];
345
+ };
346
+ "/public/v1/submit/delete_tvc_deployment": {
347
+ /** Delete a TVC Deployment */
348
+ post: operations["PublicApiService_DeleteTvcDeployment"];
349
+ };
338
350
  "/public/v1/submit/delete_user_tags": {
339
351
  /** Delete user tags within an organization. */
340
352
  post: operations["PublicApiService_DeleteUserTags"];
@@ -431,6 +443,10 @@ export type paths = {
431
443
  /** Create an OTP session for a user. */
432
444
  post: operations["PublicApiService_OtpLogin"];
433
445
  };
446
+ "/public/v1/submit/post_tvc_quorum_key_share": {
447
+ /** Post re-encrypted quorum key share for a TVC deployment. */
448
+ post: operations["PublicApiService_PostTvcQuorumKeyShare"];
449
+ };
434
450
  "/public/v1/submit/recover_user": {
435
451
  /** Complete the process of recovering a user by adding an authenticator. */
436
452
  post: operations["PublicApiService_RecoverUser"];
@@ -447,6 +463,10 @@ export type paths = {
447
463
  /** Remove an organization feature. This activity must be approved by the current root quorum. */
448
464
  post: operations["PublicApiService_RemoveOrganizationFeature"];
449
465
  };
466
+ "/public/v1/submit/restore_tvc_deployment": {
467
+ /** Restore a deleted TVC Deployment */
468
+ post: operations["PublicApiService_RestoreTvcDeployment"];
469
+ };
450
470
  "/public/v1/submit/set_ip_allowlist": {
451
471
  /** Create or update IP allowlist and rules for organization or API key. The IP allowlist restricts API access to specific CIDR blocks. Organization-level allowlists apply to all API keys unless overridden by a key-specific allowlist. */
452
472
  post: operations["PublicApiService_SetIpAllowlist"];
@@ -455,6 +475,10 @@ export type paths = {
455
475
  /** Set an organization feature. This activity must be approved by the current root quorum. */
456
476
  post: operations["PublicApiService_SetOrganizationFeature"];
457
477
  };
478
+ "/public/v1/submit/set_tvc_app_live_deployment": {
479
+ /** Set the live deployment for a TVC App */
480
+ post: operations["PublicApiService_UpdateTvcAppLiveDeployment"];
481
+ };
458
482
  "/public/v1/submit/sign_raw_payload": {
459
483
  /** Sign a raw payload. */
460
484
  post: operations["PublicApiService_SignRawPayload"];
@@ -471,6 +495,22 @@ export type paths = {
471
495
  /** Submit a transaction intent describing an SVM transaction you would like to broadcast. */
472
496
  post: operations["PublicApiService_SolSendTransaction"];
473
497
  };
498
+ "/public/v1/submit/spark_claim_transfer": {
499
+ /** Construct receiver-side encrypted operator packages to claim a Spark transfer. Does not perform FROST signing. */
500
+ post: operations["PublicApiService_SparkClaimTransfer"];
501
+ };
502
+ "/public/v1/submit/spark_prepare_lightning_receive": {
503
+ /** Generate a Lightning preimage and distribute Feldman shares to operators for a Spark Lightning receive. Does not perform FROST signing. */
504
+ post: operations["PublicApiService_SparkPrepareLightningReceive"];
505
+ };
506
+ "/public/v1/submit/spark_prepare_transfer": {
507
+ /** Construct sender-side encrypted operator packages for a Spark BTC transfer. Does not perform FROST signing. */
508
+ post: operations["PublicApiService_SparkPrepareTransfer"];
509
+ };
510
+ "/public/v1/submit/spark_sign_frost": {
511
+ /** Perform pure FROST partial signing for a Spark wallet. Produces partial signatures without constructing operator packages. */
512
+ post: operations["PublicApiService_SparkSignFrost"];
513
+ };
474
514
  "/public/v1/submit/stamp_login": {
475
515
  /** Create a session for a user through stamping client side (API key, wallet client, or passkey client). */
476
516
  post: operations["PublicApiService_StampLogin"];
@@ -555,6 +595,7 @@ export type definitions = {
555
595
  billingActivateBillingTierIntent: {
556
596
  /** @description The product that the customer wants to subscribe to. */
557
597
  productId: string;
598
+ orbPlanId?: string;
558
599
  };
559
600
  billingActivateBillingTierResult: {
560
601
  /** @description The id of the product being subscribed to. */
@@ -738,7 +779,7 @@ export type definitions = {
738
779
  /** @enum {string} */
739
780
  v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
740
781
  /** @enum {string} */
741
- 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" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST";
782
+ 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" | "ACTIVITY_TYPE_SET_IP_ALLOWLIST" | "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST" | "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS" | "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT" | "ACTIVITY_TYPE_SPARK_SIGN_FROST" | "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER" | "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER" | "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE" | "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE";
742
783
  /** @enum {string} */
743
784
  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" | "ADDRESS_FORMAT_SPARK_MAINNET" | "ADDRESS_FORMAT_SPARK_REGTEST";
744
785
  v1ApiKey: {
@@ -1284,7 +1325,7 @@ export type definitions = {
1284
1325
  v1CreateReadWriteSessionIntentV2: {
1285
1326
  /** @description Client-side public key generated by the user, to which the read write session bundle (credentials) will be encrypted. */
1286
1327
  targetPublicKey: string;
1287
- /** @description Unique identifier for a given User. */
1328
+ /** @description Optional unique identifier for a given User. If none provided, the read write session will be created for the user who is making the request. */
1288
1329
  userId?: string;
1289
1330
  /** @description Optional human-readable name for an API Key. If none provided, default to Read Write Session - <Timestamp> */
1290
1331
  apiKeyName?: string;
@@ -1628,7 +1669,7 @@ export type definitions = {
1628
1669
  };
1629
1670
  v1CreateTvcManifestApprovalsRequest: {
1630
1671
  /** @enum {string} */
1631
- type: "ACTIVITY_TYPE_APPROVE_TVC_DEPLOYMENT";
1672
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS";
1632
1673
  /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
1633
1674
  timestampMs: string;
1634
1675
  /** @description Unique identifier for a given Organization. */
@@ -2011,6 +2052,42 @@ export type definitions = {
2011
2052
  /** @description Unique identifier of the sub organization that was removed */
2012
2053
  subOrganizationUuid: string;
2013
2054
  };
2055
+ v1DeleteTvcAppAndDeploymentsIntent: {
2056
+ /** @description The unique identifier of the TVC app to delete. The app and all associated deployments will be removed. */
2057
+ appId: string;
2058
+ };
2059
+ v1DeleteTvcAppAndDeploymentsRequest: {
2060
+ /** @enum {string} */
2061
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS";
2062
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2063
+ timestampMs: string;
2064
+ /** @description Unique identifier for a given Organization. */
2065
+ organizationId: string;
2066
+ parameters: definitions["v1DeleteTvcAppAndDeploymentsIntent"];
2067
+ generateAppProofs?: boolean;
2068
+ };
2069
+ v1DeleteTvcAppAndDeploymentsResult: {
2070
+ /** @description The unique identifier of the deleted TVC app. */
2071
+ appId: string;
2072
+ };
2073
+ v1DeleteTvcDeploymentIntent: {
2074
+ /** @description The unique identifier of the TVC deployment to delete. */
2075
+ deploymentId: string;
2076
+ };
2077
+ v1DeleteTvcDeploymentRequest: {
2078
+ /** @enum {string} */
2079
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT";
2080
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
2081
+ timestampMs: string;
2082
+ /** @description Unique identifier for a given Organization. */
2083
+ organizationId: string;
2084
+ parameters: definitions["v1DeleteTvcDeploymentIntent"];
2085
+ generateAppProofs?: boolean;
2086
+ };
2087
+ v1DeleteTvcDeploymentResult: {
2088
+ /** @description The unique identifier of the deleted TVC deployment. */
2089
+ deploymentId: string;
2090
+ };
2014
2091
  v1DeleteUserTagsIntent: {
2015
2092
  /** @description A list of User Tag IDs. */
2016
2093
  userTagIds: string[];
@@ -2307,6 +2384,8 @@ export type definitions = {
2307
2384
  maxFeePerGas?: string;
2308
2385
  /** @description Maximum priority fee (tip) per gas unit in wei. Required for non-sponsored (EIP-1559) transactions. Not used for sponsored transactions. */
2309
2386
  maxPriorityFeePerGas?: string;
2387
+ /** @description Unix timestamp in seconds for EIP-712 execution deadline. Only used when sponsor=true. */
2388
+ deadline?: string;
2310
2389
  /** @description The gas station delegate contract nonce. Only used when sponsor=true. Include this if you want maximal security posture. */
2311
2390
  gasStationNonce?: string;
2312
2391
  };
@@ -2744,6 +2823,24 @@ export type definitions = {
2744
2823
  /** @description A list of TVC Apps. */
2745
2824
  tvcApps: definitions["v1TvcApp"][];
2746
2825
  };
2826
+ v1GetTvcDeploymentProvisioningDetailsRequest: {
2827
+ /** @description Unique identifier for a given Organization. */
2828
+ organizationId: string;
2829
+ /** @description Unique identifier for a given TVC Deployment. */
2830
+ deploymentId: string;
2831
+ };
2832
+ v1GetTvcDeploymentProvisioningDetailsResponse: {
2833
+ /**
2834
+ * Format: byte
2835
+ * @description The attestation document of the provisioning enclave in a TVC deployment.
2836
+ */
2837
+ attestationDocument: string;
2838
+ /**
2839
+ * Format: byte
2840
+ * @description The manifest envelope containing the TVC deployment's manifest and signatures.
2841
+ */
2842
+ manifestEnvelope: string;
2843
+ };
2747
2844
  v1GetTvcDeploymentRequest: {
2748
2845
  /** @description Unique identifier for a given organization. */
2749
2846
  organizationId: string;
@@ -3366,6 +3463,15 @@ export type definitions = {
3366
3463
  deleteWebhookEndpointIntent?: definitions["v1DeleteWebhookEndpointIntent"];
3367
3464
  setIpAllowlistIntent?: definitions["v1SetIpAllowlistIntent"];
3368
3465
  removeIpAllowlistIntent?: definitions["v1RemoveIpAllowlistIntent"];
3466
+ updateTvcAppLiveDeploymentIntent?: definitions["v1UpdateTvcAppLiveDeploymentIntent"];
3467
+ deleteTvcDeploymentIntent?: definitions["v1DeleteTvcDeploymentIntent"];
3468
+ deleteTvcAppAndDeploymentsIntent?: definitions["v1DeleteTvcAppAndDeploymentsIntent"];
3469
+ restoreTvcDeploymentIntent?: definitions["v1RestoreTvcDeploymentIntent"];
3470
+ sparkSignFrostIntent?: definitions["v1SparkSignFrostIntent"];
3471
+ sparkPrepareTransferIntent?: definitions["v1SparkPrepareTransferIntent"];
3472
+ sparkClaimTransferIntent?: definitions["v1SparkClaimTransferIntent"];
3473
+ sparkPrepareLightningReceiveIntent?: definitions["v1SparkPrepareLightningReceiveIntent"];
3474
+ postTvcQuorumKeyShareIntent?: definitions["v1PostTvcQuorumKeyShareIntent"];
3369
3475
  };
3370
3476
  v1Invitation: {
3371
3477
  /** @description Unique identifier for a given Invitation object. */
@@ -3505,8 +3611,8 @@ export type definitions = {
3505
3611
  redirectUri: string;
3506
3612
  /** @description The code verifier used by OAuth 2.0 PKCE providers */
3507
3613
  codeVerifier: string;
3508
- /** @description An optional nonce used by the client to prevent replay/substitution of an ID token */
3509
- nonce?: string;
3614
+ /** @description A nonce value set to sha256(publicKey), used to bind the OIDC token to a specific public key */
3615
+ nonce: string;
3510
3616
  /** @description An optional P256 public key to which, if provided, the bearer token will be encrypted and returned via the `encrypted_bearer_token` claim of the OIDC Token */
3511
3617
  bearerTokenTargetPublicKey?: string;
3512
3618
  };
@@ -3745,6 +3851,27 @@ export type definitions = {
3745
3851
  /** @description A condition expression that evalutes to true or false. */
3746
3852
  condition: string;
3747
3853
  };
3854
+ v1PostTvcQuorumKeyShareIntent: {
3855
+ /** @description Unique identifier of the TVC deployment receiving quorum key share */
3856
+ deploymentId: string;
3857
+ /** @description Hex-encoded ephemeral public key used to encrypt the quorum key share */
3858
+ ephemeralPublicKeyHex: string;
3859
+ /** @description Re-encrypted quorum key share and approval */
3860
+ shareApprovalBundle: definitions["v1QuorumKeyShareApprovalBundle"];
3861
+ };
3862
+ v1PostTvcQuorumKeyShareRequest: {
3863
+ /** @enum {string} */
3864
+ type: "ACTIVITY_TYPE_POST_TVC_QUORUM_KEY_SHARE";
3865
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
3866
+ timestampMs: string;
3867
+ /** @description Unique identifier for a given Organization. */
3868
+ organizationId: string;
3869
+ parameters: definitions["v1PostTvcQuorumKeyShareIntent"];
3870
+ };
3871
+ v1PostTvcQuorumKeyShareResult: {
3872
+ /** @description The unique identifier for the provisioning quorum key share */
3873
+ provisioningShareId: string;
3874
+ };
3748
3875
  v1PrivateKey: {
3749
3876
  /** @description Unique identifier for a given Private Key. */
3750
3877
  privateKeyId: string;
@@ -3789,6 +3916,14 @@ export type definitions = {
3789
3916
  response: definitions["v1AuthenticatorAttestationResponse"];
3790
3917
  clientExtensionResults: definitions["v1SimpleClientExtensionResults"];
3791
3918
  };
3919
+ v1QuorumKeyShareApprovalBundle: {
3920
+ /** @description Unique identifier of the operator providing this quorum key share */
3921
+ operatorId: string;
3922
+ /** @description Hex-encoded re-encrypted quorum key share */
3923
+ reEncryptedShareHex: string;
3924
+ /** @description Signature from the share set operator approving the manifest */
3925
+ signature: string;
3926
+ };
3792
3927
  v1RecoverUserIntent: {
3793
3928
  /** @description The new authenticator to register. */
3794
3929
  authenticator: definitions["v1AuthenticatorParamsV2"];
@@ -3841,6 +3976,7 @@ export type definitions = {
3841
3976
  /** @description Unique identifier for a given Organization. */
3842
3977
  organizationId: string;
3843
3978
  parameters: definitions["v1RemoveIpAllowlistIntent"];
3979
+ generateAppProofs?: boolean;
3844
3980
  };
3845
3981
  v1RemoveIpAllowlistResult: {
3846
3982
  [key: string]: unknown;
@@ -3863,6 +3999,24 @@ export type definitions = {
3863
3999
  /** @description Resulting list of organization features. */
3864
4000
  features: definitions["v1Feature"][];
3865
4001
  };
4002
+ v1RestoreTvcDeploymentIntent: {
4003
+ /** @description The unique identifier of the TVC deployment to restore. */
4004
+ deploymentId: string;
4005
+ };
4006
+ v1RestoreTvcDeploymentRequest: {
4007
+ /** @enum {string} */
4008
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT";
4009
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4010
+ timestampMs: string;
4011
+ /** @description Unique identifier for a given Organization. */
4012
+ organizationId: string;
4013
+ parameters: definitions["v1RestoreTvcDeploymentIntent"];
4014
+ generateAppProofs?: boolean;
4015
+ };
4016
+ v1RestoreTvcDeploymentResult: {
4017
+ /** @description The unique identifier of the restored TVC deployment. */
4018
+ deploymentId: string;
4019
+ };
3866
4020
  v1Result: {
3867
4021
  createOrganizationResult?: definitions["v1CreateOrganizationResult"];
3868
4022
  createAuthenticatorsResult?: definitions["v1CreateAuthenticatorsResult"];
@@ -3971,6 +4125,15 @@ export type definitions = {
3971
4125
  deleteWebhookEndpointResult?: definitions["v1DeleteWebhookEndpointResult"];
3972
4126
  setIpAllowlistResult?: definitions["v1SetIpAllowlistResult"];
3973
4127
  removeIpAllowlistResult?: definitions["v1RemoveIpAllowlistResult"];
4128
+ updateTvcAppLiveDeploymentResult?: definitions["v1UpdateTvcAppLiveDeploymentResult"];
4129
+ deleteTvcDeploymentResult?: definitions["v1DeleteTvcDeploymentResult"];
4130
+ deleteTvcAppAndDeploymentsResult?: definitions["v1DeleteTvcAppAndDeploymentsResult"];
4131
+ restoreTvcDeploymentResult?: definitions["v1RestoreTvcDeploymentResult"];
4132
+ sparkSignFrostResult?: definitions["v1SparkSignFrostResult"];
4133
+ sparkPrepareTransferResult?: definitions["v1SparkPrepareTransferResult"];
4134
+ sparkClaimTransferResult?: definitions["v1SparkClaimTransferResult"];
4135
+ sparkPrepareLightningReceiveResult?: definitions["v1SparkPrepareLightningReceiveResult"];
4136
+ postTvcQuorumKeyShareResult?: definitions["v1PostTvcQuorumKeyShareResult"];
3974
4137
  };
3975
4138
  v1RevertChainEntry: {
3976
4139
  /** @description The contract address where the revert occurred. */
@@ -4076,6 +4239,7 @@ export type definitions = {
4076
4239
  /** @description Unique identifier for a given Organization. */
4077
4240
  organizationId: string;
4078
4241
  parameters: definitions["v1SetIpAllowlistIntent"];
4242
+ generateAppProofs?: boolean;
4079
4243
  };
4080
4244
  v1SetIpAllowlistResult: {
4081
4245
  [key: string]: unknown;
@@ -4226,10 +4390,10 @@ export type definitions = {
4226
4390
  /** @description Whether to sponsor this transaction via Gas Station. */
4227
4391
  sponsor?: boolean;
4228
4392
  /**
4229
- * @description CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet).
4393
+ * @description CAIP-2 chain ID (e.g., 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp' for Solana mainnet). Human-readable Solana aliases ('solana:mainnet', 'solana:devnet') are also accepted and normalized to canonical CAIP-2 values.
4230
4394
  * @enum {string}
4231
4395
  */
4232
- caip2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG" | "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY";
4396
+ caip2: "solana:mainnet" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | "solana:devnet" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG";
4233
4397
  /** @description user-provided blockhash for replay protection / deadline control. If omitted and sponsor=true, we fetch a fresh blockhash during execution */
4234
4398
  recentBlockhash?: string;
4235
4399
  };
@@ -4277,6 +4441,229 @@ export type definitions = {
4277
4441
  /** @description The Solana transaction signature, if available. */
4278
4442
  signature?: string;
4279
4443
  };
4444
+ v1SparkClaimLeaf: {
4445
+ /** @description Leaf identifier (UUID). */
4446
+ leafId: string;
4447
+ /** @description ECIES ciphertext (hex-encoded) containing the inbound transfer secret. Decrypted inside the enclave using the wallet's Identity key. */
4448
+ ciphertext: string;
4449
+ /** @description Hex-encoded 64-byte compact ECDSA signature binding (leaf_id, transfer_id, ciphertext) to the sender's identity key. Verified inside the enclave before decryption. */
4450
+ senderSignature: string;
4451
+ };
4452
+ v1SparkClaimPackage: {
4453
+ /** @description Leaves being claimed. */
4454
+ leaves: definitions["v1SparkClaimLeaf"][];
4455
+ /**
4456
+ * Format: int64
4457
+ * @description Shamir threshold for reconstructing the per-leaf claim secret.
4458
+ */
4459
+ threshold: number;
4460
+ /** @description Operators that will receive Shamir shares. */
4461
+ operatorRecipients: definitions["v1SparkOperatorRecipient"][];
4462
+ /** @description Spark transfer identifier (UUID). Used together with each leaf's sender_signature to verify the sender bound this ciphertext to this transfer. */
4463
+ transferId: string;
4464
+ /** @description Sender's compressed secp256k1 identity public key (hex-encoded, 33 bytes). Used to verify the per-leaf sender_signature fields. */
4465
+ senderIdentityPublicKey: string;
4466
+ };
4467
+ v1SparkClaimTransferIntent: {
4468
+ /** @description A Spark wallet account address identifying the wallet. */
4469
+ signWith: string;
4470
+ /** @description Claim package parameters. */
4471
+ claim: definitions["v1SparkClaimPackage"];
4472
+ };
4473
+ v1SparkClaimTransferRequest: {
4474
+ /** @enum {string} */
4475
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER";
4476
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4477
+ timestampMs: string;
4478
+ /** @description Unique identifier for a given Organization. */
4479
+ organizationId: string;
4480
+ parameters: definitions["v1SparkClaimTransferIntent"];
4481
+ };
4482
+ v1SparkClaimTransferResult: {
4483
+ /** @description Per-operator ECIES-encrypted packages. */
4484
+ operatorPackages: definitions["v1SparkEncryptedOperatorPackage"][];
4485
+ /** @description Newly-derived SigningLeaf public keys, one per leaf, in input order. */
4486
+ newLeafPublicKeys: definitions["v1SparkLeafPublicKey"][];
4487
+ };
4488
+ v1SparkDepositDerivation: {
4489
+ [key: string]: unknown;
4490
+ };
4491
+ v1SparkEncryptedOperatorPackage: {
4492
+ /** @description Spark operator identifier (UUID). */
4493
+ operatorId: string;
4494
+ /** @description ECIES ciphertext (hex-encoded) opaque to Turnkey after emission. */
4495
+ encryptedPackage: string;
4496
+ };
4497
+ v1SparkFrostCommitment: {
4498
+ /** @description FROST participant identifier, hex-encoded (32-byte scalar). */
4499
+ id: string;
4500
+ /** @description Hiding commitment D, hex-encoded compressed secp256k1 point. */
4501
+ hiding: string;
4502
+ /** @description Binding commitment E, hex-encoded compressed secp256k1 point. */
4503
+ binding: string;
4504
+ };
4505
+ v1SparkHtlcPreimageDerivation: {
4506
+ [key: string]: unknown;
4507
+ };
4508
+ v1SparkIdentityDerivation: {
4509
+ [key: string]: unknown;
4510
+ };
4511
+ v1SparkKeyDerivation: {
4512
+ /** @description Spark identity key derivation. */
4513
+ identity?: definitions["v1SparkIdentityDerivation"];
4514
+ /** @description Spark signing leaf key derivation, identified by leaf ID. */
4515
+ signingLeaf?: definitions["v1SparkSigningLeafDerivation"];
4516
+ /** @description Spark deposit key derivation. */
4517
+ deposit?: definitions["v1SparkDepositDerivation"];
4518
+ /** @description Spark static deposit key derivation, identified by index. */
4519
+ staticDeposit?: definitions["v1SparkStaticDepositDerivation"];
4520
+ /** @description Spark HTLC preimage key derivation. */
4521
+ htlcPreimage?: definitions["v1SparkHtlcPreimageDerivation"];
4522
+ };
4523
+ v1SparkLeafPublicKey: {
4524
+ /** @description The Spark leaf_id this public key was derived for. */
4525
+ leafId: string;
4526
+ /** @description Hex-encoded compressed secp256k1 point (33 bytes) for the SigningLeaf derivation at leaf_id. */
4527
+ publicKey: string;
4528
+ };
4529
+ v1SparkLightningReceivePackage: {
4530
+ /**
4531
+ * Format: int64
4532
+ * @description Feldman VSS threshold for reconstructing the preimage.
4533
+ */
4534
+ threshold: number;
4535
+ /** @description Operators that will receive Feldman shares of the preimage. Order must match the operators' numeric IDs in the Spark operator config - share index is the 1-based position in this list. */
4536
+ operatorRecipients: definitions["v1SparkOperatorRecipient"][];
4537
+ };
4538
+ v1SparkOperatorRecipient: {
4539
+ /** @description Spark operator identifier (UUID). */
4540
+ operatorId: string;
4541
+ /** @description Operator's ECIES encryption pubkey (hex-encoded compressed secp256k1 point). */
4542
+ encryptionPublicKey: string;
4543
+ };
4544
+ v1SparkPartialSignature: {
4545
+ /** @description Hex-encoded FROST partial signature. */
4546
+ signatureShare: string;
4547
+ /** @description Turnkey's hiding commitment D (hex-encoded compressed secp256k1 point). Forward to the Spark Operator. */
4548
+ hiding: string;
4549
+ /** @description Turnkey's binding commitment E (hex-encoded compressed secp256k1 point). Forward to the Spark Operator. */
4550
+ binding: string;
4551
+ };
4552
+ v1SparkPrepareLightningReceiveIntent: {
4553
+ /** @description A Spark wallet account address identifying the wallet. */
4554
+ signWith: string;
4555
+ /** @description Lightning receive package parameters: threshold and operator recipients. */
4556
+ lightningReceive: definitions["v1SparkLightningReceivePackage"];
4557
+ };
4558
+ v1SparkPrepareLightningReceiveRequest: {
4559
+ /** @enum {string} */
4560
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE";
4561
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4562
+ timestampMs: string;
4563
+ /** @description Unique identifier for a given Organization. */
4564
+ organizationId: string;
4565
+ parameters: definitions["v1SparkPrepareLightningReceiveIntent"];
4566
+ };
4567
+ v1SparkPrepareLightningReceiveResult: {
4568
+ /** @description Per-operator ECIES-encrypted Feldman share packages. */
4569
+ operatorPackages: definitions["v1SparkEncryptedOperatorPackage"][];
4570
+ /** @description Hex-encoded SHA256(preimage). Forward to the Lightning node. */
4571
+ paymentHash: string;
4572
+ };
4573
+ v1SparkPrepareTransferIntent: {
4574
+ /** @description A Spark wallet account address identifying the wallet. */
4575
+ signWith: string;
4576
+ /** @description Transfer package parameters for HD key tweak splitting. */
4577
+ transfer: definitions["v1SparkTransferPackage"];
4578
+ };
4579
+ v1SparkPrepareTransferRequest: {
4580
+ /** @enum {string} */
4581
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER";
4582
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4583
+ timestampMs: string;
4584
+ /** @description Unique identifier for a given Organization. */
4585
+ organizationId: string;
4586
+ parameters: definitions["v1SparkPrepareTransferIntent"];
4587
+ };
4588
+ v1SparkPrepareTransferResult: {
4589
+ /** @description Per-operator ECIES-encrypted packages. */
4590
+ operatorPackages: definitions["v1SparkEncryptedOperatorPackage"][];
4591
+ /** @description Hex-encoded ECDSA-DER signature of the TransferPackage signing payload, signed with the wallet's IDENTITY key. */
4592
+ transferUserSignature: string;
4593
+ /** @description Newly-derived SigningLeaf public keys, one per leaf, in input order. */
4594
+ newLeafPublicKeys: definitions["v1SparkLeafPublicKey"][];
4595
+ };
4596
+ v1SparkSignFrostIntent: {
4597
+ /** @description A Spark wallet account address identifying the wallet to sign with. */
4598
+ signWith: string;
4599
+ /** @description Batched sign requests. Each produces a partial signature plus Turnkey's public commitments. */
4600
+ signatures: definitions["v1SparkSignatureRequest"][];
4601
+ };
4602
+ v1SparkSignFrostRequest: {
4603
+ /** @enum {string} */
4604
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST";
4605
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
4606
+ timestampMs: string;
4607
+ /** @description Unique identifier for a given Organization. */
4608
+ organizationId: string;
4609
+ parameters: definitions["v1SparkSignFrostIntent"];
4610
+ };
4611
+ v1SparkSignFrostResult: {
4612
+ /** @description Partial signatures plus Turnkey commitments, one per request, in order. */
4613
+ signatures: definitions["v1SparkPartialSignature"][];
4614
+ };
4615
+ v1SparkSignatureRequest: {
4616
+ /** @description Which key to sign with. */
4617
+ derivation: definitions["v1SparkKeyDerivation"];
4618
+ /** @description Hex-encoded 32-byte sighash to sign. */
4619
+ message: string;
4620
+ /** @description Aggregate group verifying key (hex-encoded compressed secp256k1 point), computed as P_ops + P_user. Bound into the nonce HMAC. */
4621
+ verifyingKey: string;
4622
+ /** @description Commitments for every non-Turnkey participant. MUST NOT include an entry under Turnkey's identifier. Bound into the nonce HMAC. */
4623
+ operatorCommitments: definitions["v1SparkFrostCommitment"][];
4624
+ /** @description Optional adaptor point T (hex-encoded 33-byte compressed secp256k1 pubkey). When set, Turnkey produces a Schnorr adaptor pre-signature with the FROST challenge bound to `R+T` (where `R` is the aggregate group nonce commitment from FROST). The party holding the discrete log `t` completes the pre-sig to a valid BIP-340 signature by adding `t` (or `-t`, for parity) to the signature scalar `s`. This is primarily used by Spark leaves-swap and other adaptor-bound flows; absent or empty leads to plain FROST signing (the typical case). */
4625
+ adaptorPublicKey?: string;
4626
+ };
4627
+ v1SparkSigningLeafDerivation: {
4628
+ /** @description Unique identifier for the Spark signing leaf. */
4629
+ leafId: string;
4630
+ };
4631
+ v1SparkStaticDepositDerivation: {
4632
+ /**
4633
+ * Format: int64
4634
+ * @description Index used to derive the static deposit key.
4635
+ */
4636
+ index: number;
4637
+ };
4638
+ v1SparkTransferLeaf: {
4639
+ /** @description Leaf identifier (UUID). */
4640
+ leafId: string;
4641
+ /** @description Derivation for the existing (pre-transfer) leaf key. Always a SigningLeaf derivation. */
4642
+ oldLeafDerivation: definitions["v1SparkKeyDerivation"];
4643
+ /** @description Derivation for the new (post-transfer) leaf key. Always a SigningLeaf derivation. The enclave ECIES-encrypts this private key to receiver_public_key as the per-leaf secret_cipher; HD-derived rather than random so the sender can re-derive on retry (Turnkey's enclave is stateless). */
4644
+ newLeafDerivation: definitions["v1SparkKeyDerivation"];
4645
+ /** @description Client-produced CPFP refund signature (hex-encoded), passed through verbatim into the per-operator SendLeafKeyTweak. Empty omits the field from the operator package. */
4646
+ refundSignature?: string;
4647
+ /** @description Client-produced direct refund signature (hex-encoded). Passed through verbatim. */
4648
+ directRefundSignature?: string;
4649
+ /** @description Client-produced direct-from-CPFP refund signature (hex-encoded). Passed through verbatim. */
4650
+ directFromCpfpRefundSignature?: string;
4651
+ };
4652
+ v1SparkTransferPackage: {
4653
+ /** @description Spark transfer identifier (UUID). */
4654
+ transferId: string;
4655
+ /** @description Leaves being transferred. */
4656
+ leaves: definitions["v1SparkTransferLeaf"][];
4657
+ /**
4658
+ * Format: int64
4659
+ * @description Feldman VSS threshold for reconstructing the per-leaf tweak scalar.
4660
+ */
4661
+ threshold: number;
4662
+ /** @description Operators that will receive Feldman shares of the per-leaf tweak. Order must match the operators' numeric IDs in the Spark operator config - share index is the 1-based position in this list. */
4663
+ operatorRecipients: definitions["v1SparkOperatorRecipient"][];
4664
+ /** @description Recipient's identity pubkey (hex-encoded compressed secp256k1 point). Each leaf's new_priv is ECIES-encrypted to this key and embedded in the per-operator package for claim-time delivery. */
4665
+ receiverPublicKey: string;
4666
+ };
4280
4667
  v1StampLoginIntent: {
4281
4668
  /** @description 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 */
4282
4669
  publicKey: string;
@@ -4345,6 +4732,8 @@ export type definitions = {
4345
4732
  updatedAt: definitions["externaldatav1Timestamp"];
4346
4733
  /** @description The deployment currently designated to receive traffic. Null if no deployment for this app is deployed. */
4347
4734
  liveDeploymentId?: string;
4735
+ /** @description The public domain for ingress to this TVC App (in the format "app-<ID>.turnkey.cloud"). */
4736
+ publicDomain: string;
4348
4737
  };
4349
4738
  v1TvcContainerSpec: {
4350
4739
  /** @description The URL for this container image. */
@@ -4387,16 +4776,12 @@ export type definitions = {
4387
4776
  qosVersion: string;
4388
4777
  /** @description The pivot container spec for this deployment */
4389
4778
  pivotContainer: definitions["v1TvcContainerSpec"];
4390
- /** @description Current stage for this deployment */
4391
- stage: definitions["v1TvcDeploymentStage"];
4392
4779
  createdAt: definitions["externaldatav1Timestamp"];
4393
4780
  updatedAt: definitions["externaldatav1Timestamp"];
4394
4781
  /** @description Whether or not the user wants this deployment deleted from the cluster. */
4395
4782
  delete: boolean;
4396
4783
  };
4397
4784
  /** @enum {string} */
4398
- v1TvcDeploymentStage: "TVC_DEPLOYMENT_STAGE_APPROVE" | "TVC_DEPLOYMENT_STAGE_PROVISION" | "TVC_DEPLOYMENT_STAGE_LIVE" | "TVC_DEPLOYMENT_STAGE_DELETE";
4399
- /** @enum {string} */
4400
4785
  v1TvcHealthCheckType: "TVC_HEALTH_CHECK_TYPE_HTTP" | "TVC_HEALTH_CHECK_TYPE_GRPC";
4401
4786
  v1TvcManifest: {
4402
4787
  /** @description Unique Identifier for this TVC Manifest. */
@@ -4615,6 +5000,7 @@ export type definitions = {
4615
5000
  /** @description Unique identifier for a given Organization. */
4616
5001
  organizationId: string;
4617
5002
  parameters: definitions["v1UpdateOrganizationNameIntent"];
5003
+ generateAppProofs?: boolean;
4618
5004
  };
4619
5005
  v1UpdateOrganizationNameResult: {
4620
5006
  /** @description Unique identifier for the Organization. */
@@ -4714,6 +5100,23 @@ export type definitions = {
4714
5100
  v1UpdateRootQuorumResult: {
4715
5101
  [key: string]: unknown;
4716
5102
  };
5103
+ v1UpdateTvcAppLiveDeploymentIntent: {
5104
+ /** @description The unique identifier of the TVC deployment to set as live for the app. */
5105
+ deploymentId: string;
5106
+ };
5107
+ v1UpdateTvcAppLiveDeploymentRequest: {
5108
+ /** @enum {string} */
5109
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT";
5110
+ /** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
5111
+ timestampMs: string;
5112
+ /** @description Unique identifier for a given Organization. */
5113
+ organizationId: string;
5114
+ parameters: definitions["v1UpdateTvcAppLiveDeploymentIntent"];
5115
+ generateAppProofs?: boolean;
5116
+ };
5117
+ v1UpdateTvcAppLiveDeploymentResult: {
5118
+ [key: string]: unknown;
5119
+ };
4717
5120
  v1UpdateUserEmailIntent: {
4718
5121
  /** @description Unique identifier for a given User. */
4719
5122
  userId: string;
@@ -4879,7 +5282,7 @@ export type definitions = {
4879
5282
  orgWindowLimitUsd: string;
4880
5283
  /** @description Gas sponsorship USD limit for sub-organizations under the billing organization. */
4881
5284
  subOrgWindowLimitUsd: string;
4882
- /** @description Rolling sponsorship window duration, expressed in minutes. */
5285
+ /** @description Rolling sponsorship window duration, expressed in minutes. This value can't exceed 30 days (43200 minutes). */
4883
5286
  windowDurationMinutes: string;
4884
5287
  /** @description Whether gas sponsorship is enabled for the organization. */
4885
5288
  enabled?: boolean;
@@ -5140,7 +5543,7 @@ export type definitions = {
5140
5543
  subscriptions?: definitions["v1WebhookSubscriptionParams"][];
5141
5544
  };
5142
5545
  v1WebhookSubscriptionParams: {
5143
- /** @description The event type to subscribe to (for example, ACTIVITY_UPDATES or BALANCE_CONFIRMED_UPDATES). */
5546
+ /** @description The event type to subscribe to (for example, ACTIVITY_UPDATES, BALANCE_CONFIRMED_UPDATES, or BALANCE_FINALIZED_UPDATES). */
5144
5547
  eventType: string;
5145
5548
  /** @description JSON-encoded filter criteria for this subscription. */
5146
5549
  filtersJson?: string;
@@ -5563,6 +5966,24 @@ export type operations = {
5563
5966
  };
5564
5967
  };
5565
5968
  };
5969
+ /** Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment */
5970
+ PublicApiService_GetTvcDeploymentProvisioningDetails: {
5971
+ parameters: {
5972
+ body: {
5973
+ body: definitions["v1GetTvcDeploymentProvisioningDetailsRequest"];
5974
+ };
5975
+ };
5976
+ responses: {
5977
+ /** A successful response. */
5978
+ 200: {
5979
+ schema: definitions["v1GetTvcDeploymentProvisioningDetailsResponse"];
5980
+ };
5981
+ /** An unexpected error response. */
5982
+ default: {
5983
+ schema: definitions["rpcStatus"];
5984
+ };
5985
+ };
5986
+ };
5566
5987
  /** Get details about a user. */
5567
5988
  PublicApiService_GetUser: {
5568
5989
  parameters: {
@@ -6643,6 +7064,42 @@ export type operations = {
6643
7064
  };
6644
7065
  };
6645
7066
  };
7067
+ /** Delete a TVC App and all of its deployments */
7068
+ PublicApiService_DeleteTvcAppAndDeployments: {
7069
+ parameters: {
7070
+ body: {
7071
+ body: definitions["v1DeleteTvcAppAndDeploymentsRequest"];
7072
+ };
7073
+ };
7074
+ responses: {
7075
+ /** A successful response. */
7076
+ 200: {
7077
+ schema: definitions["v1ActivityResponse"];
7078
+ };
7079
+ /** An unexpected error response. */
7080
+ default: {
7081
+ schema: definitions["rpcStatus"];
7082
+ };
7083
+ };
7084
+ };
7085
+ /** Delete a TVC Deployment */
7086
+ PublicApiService_DeleteTvcDeployment: {
7087
+ parameters: {
7088
+ body: {
7089
+ body: definitions["v1DeleteTvcDeploymentRequest"];
7090
+ };
7091
+ };
7092
+ responses: {
7093
+ /** A successful response. */
7094
+ 200: {
7095
+ schema: definitions["v1ActivityResponse"];
7096
+ };
7097
+ /** An unexpected error response. */
7098
+ default: {
7099
+ schema: definitions["rpcStatus"];
7100
+ };
7101
+ };
7102
+ };
6646
7103
  /** Delete user tags within an organization. */
6647
7104
  PublicApiService_DeleteUserTags: {
6648
7105
  parameters: {
@@ -7075,6 +7532,24 @@ export type operations = {
7075
7532
  };
7076
7533
  };
7077
7534
  };
7535
+ /** Post re-encrypted quorum key share for a TVC deployment. */
7536
+ PublicApiService_PostTvcQuorumKeyShare: {
7537
+ parameters: {
7538
+ body: {
7539
+ body: definitions["v1PostTvcQuorumKeyShareRequest"];
7540
+ };
7541
+ };
7542
+ responses: {
7543
+ /** A successful response. */
7544
+ 200: {
7545
+ schema: definitions["v1ActivityResponse"];
7546
+ };
7547
+ /** An unexpected error response. */
7548
+ default: {
7549
+ schema: definitions["rpcStatus"];
7550
+ };
7551
+ };
7552
+ };
7078
7553
  /** Complete the process of recovering a user by adding an authenticator. */
7079
7554
  PublicApiService_RecoverUser: {
7080
7555
  parameters: {
@@ -7147,6 +7622,24 @@ export type operations = {
7147
7622
  };
7148
7623
  };
7149
7624
  };
7625
+ /** Restore a deleted TVC Deployment */
7626
+ PublicApiService_RestoreTvcDeployment: {
7627
+ parameters: {
7628
+ body: {
7629
+ body: definitions["v1RestoreTvcDeploymentRequest"];
7630
+ };
7631
+ };
7632
+ responses: {
7633
+ /** A successful response. */
7634
+ 200: {
7635
+ schema: definitions["v1ActivityResponse"];
7636
+ };
7637
+ /** An unexpected error response. */
7638
+ default: {
7639
+ schema: definitions["rpcStatus"];
7640
+ };
7641
+ };
7642
+ };
7150
7643
  /** Create or update IP allowlist and rules for organization or API key. The IP allowlist restricts API access to specific CIDR blocks. Organization-level allowlists apply to all API keys unless overridden by a key-specific allowlist. */
7151
7644
  PublicApiService_SetIpAllowlist: {
7152
7645
  parameters: {
@@ -7183,6 +7676,24 @@ export type operations = {
7183
7676
  };
7184
7677
  };
7185
7678
  };
7679
+ /** Set the live deployment for a TVC App */
7680
+ PublicApiService_UpdateTvcAppLiveDeployment: {
7681
+ parameters: {
7682
+ body: {
7683
+ body: definitions["v1UpdateTvcAppLiveDeploymentRequest"];
7684
+ };
7685
+ };
7686
+ responses: {
7687
+ /** A successful response. */
7688
+ 200: {
7689
+ schema: definitions["v1ActivityResponse"];
7690
+ };
7691
+ /** An unexpected error response. */
7692
+ default: {
7693
+ schema: definitions["rpcStatus"];
7694
+ };
7695
+ };
7696
+ };
7186
7697
  /** Sign a raw payload. */
7187
7698
  PublicApiService_SignRawPayload: {
7188
7699
  parameters: {
@@ -7255,6 +7766,78 @@ export type operations = {
7255
7766
  };
7256
7767
  };
7257
7768
  };
7769
+ /** Construct receiver-side encrypted operator packages to claim a Spark transfer. Does not perform FROST signing. */
7770
+ PublicApiService_SparkClaimTransfer: {
7771
+ parameters: {
7772
+ body: {
7773
+ body: definitions["v1SparkClaimTransferRequest"];
7774
+ };
7775
+ };
7776
+ responses: {
7777
+ /** A successful response. */
7778
+ 200: {
7779
+ schema: definitions["v1ActivityResponse"];
7780
+ };
7781
+ /** An unexpected error response. */
7782
+ default: {
7783
+ schema: definitions["rpcStatus"];
7784
+ };
7785
+ };
7786
+ };
7787
+ /** Generate a Lightning preimage and distribute Feldman shares to operators for a Spark Lightning receive. Does not perform FROST signing. */
7788
+ PublicApiService_SparkPrepareLightningReceive: {
7789
+ parameters: {
7790
+ body: {
7791
+ body: definitions["v1SparkPrepareLightningReceiveRequest"];
7792
+ };
7793
+ };
7794
+ responses: {
7795
+ /** A successful response. */
7796
+ 200: {
7797
+ schema: definitions["v1ActivityResponse"];
7798
+ };
7799
+ /** An unexpected error response. */
7800
+ default: {
7801
+ schema: definitions["rpcStatus"];
7802
+ };
7803
+ };
7804
+ };
7805
+ /** Construct sender-side encrypted operator packages for a Spark BTC transfer. Does not perform FROST signing. */
7806
+ PublicApiService_SparkPrepareTransfer: {
7807
+ parameters: {
7808
+ body: {
7809
+ body: definitions["v1SparkPrepareTransferRequest"];
7810
+ };
7811
+ };
7812
+ responses: {
7813
+ /** A successful response. */
7814
+ 200: {
7815
+ schema: definitions["v1ActivityResponse"];
7816
+ };
7817
+ /** An unexpected error response. */
7818
+ default: {
7819
+ schema: definitions["rpcStatus"];
7820
+ };
7821
+ };
7822
+ };
7823
+ /** Perform pure FROST partial signing for a Spark wallet. Produces partial signatures without constructing operator packages. */
7824
+ PublicApiService_SparkSignFrost: {
7825
+ parameters: {
7826
+ body: {
7827
+ body: definitions["v1SparkSignFrostRequest"];
7828
+ };
7829
+ };
7830
+ responses: {
7831
+ /** A successful response. */
7832
+ 200: {
7833
+ schema: definitions["v1ActivityResponse"];
7834
+ };
7835
+ /** An unexpected error response. */
7836
+ default: {
7837
+ schema: definitions["rpcStatus"];
7838
+ };
7839
+ };
7840
+ };
7258
7841
  /** Create a session for a user through stamping client side (API key, wallet client, or passkey client). */
7259
7842
  PublicApiService_StampLogin: {
7260
7843
  parameters: {