@turnkey/http 3.18.1 → 4.1.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +277 -1
  2. package/dist/__fixtures__/shared.d.ts +6 -0
  3. package/dist/__fixtures__/shared.d.ts.map +1 -0
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +375 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +626 -0
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +626 -0
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +69430 -3921
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +600 -0
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +551 -1
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  16. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +1462 -33
  17. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  18. package/dist/__tests__/async-test.d.ts +2 -0
  19. package/dist/__tests__/async-test.d.ts.map +1 -0
  20. package/dist/__tests__/request-test.d.ts +2 -0
  21. package/dist/__tests__/request-test.d.ts.map +1 -0
  22. package/dist/version.d.ts +1 -1
  23. package/dist/version.d.ts.map +1 -1
  24. package/dist/version.js +1 -1
  25. package/dist/version.mjs +1 -1
  26. package/package.json +3 -3
@@ -179,6 +179,28 @@ const signGetGasUsage = (input, options) => base.signedRequest({
179
179
  body: input.body,
180
180
  options,
181
181
  });
182
+ /**
183
+ * Get IP Allowlist
184
+ *
185
+ * Get IP allowlist and rules for an organization.
186
+ *
187
+ * `POST /public/v1/query/get_ip_allowlist`
188
+ */
189
+ const getIpAllowlist = (input) => base.request({
190
+ uri: "/public/v1/query/get_ip_allowlist",
191
+ method: "POST",
192
+ body: input.body,
193
+ });
194
+ /**
195
+ * Request a WebAuthn assertion and return a signed `GetIpAllowlist` request, ready to be POSTed to Turnkey.
196
+ *
197
+ * See {@link GetIpAllowlist}
198
+ */
199
+ const signGetIpAllowlist = (input, options) => base.signedRequest({
200
+ uri: "/public/v1/query/get_ip_allowlist",
201
+ body: input.body,
202
+ options,
203
+ });
182
204
  /**
183
205
  * Get the latest boot proof for an app
184
206
  *
@@ -289,6 +311,28 @@ const signGetOnRampTransactionStatus = (input, options) => base.signedRequest({
289
311
  body: input.body,
290
312
  options,
291
313
  });
314
+ /**
315
+ * Get organization
316
+ *
317
+ * Get details about an organization.
318
+ *
319
+ * `POST /public/v1/query/get_organization`
320
+ */
321
+ const getOrganization = (input) => base.request({
322
+ uri: "/public/v1/query/get_organization",
323
+ method: "POST",
324
+ body: input.body,
325
+ });
326
+ /**
327
+ * Request a WebAuthn assertion and return a signed `GetOrganization` request, ready to be POSTed to Turnkey.
328
+ *
329
+ * See {@link GetOrganization}
330
+ */
331
+ const signGetOrganization = (input, options) => base.signedRequest({
332
+ uri: "/public/v1/query/get_organization",
333
+ body: input.body,
334
+ options,
335
+ });
292
336
  /**
293
337
  * Get configs
294
338
  *
@@ -421,6 +465,72 @@ const signGetSmartContractInterface = (input, options) => base.signedRequest({
421
465
  body: input.body,
422
466
  options,
423
467
  });
468
+ /**
469
+ * Get TVC App
470
+ *
471
+ * Get details about a single TVC App
472
+ *
473
+ * `POST /public/v1/query/get_tvc_app`
474
+ */
475
+ const getTvcApp = (input) => base.request({
476
+ uri: "/public/v1/query/get_tvc_app",
477
+ method: "POST",
478
+ body: input.body,
479
+ });
480
+ /**
481
+ * Request a WebAuthn assertion and return a signed `GetTvcApp` request, ready to be POSTed to Turnkey.
482
+ *
483
+ * See {@link GetTvcApp}
484
+ */
485
+ const signGetTvcApp = (input, options) => base.signedRequest({
486
+ uri: "/public/v1/query/get_tvc_app",
487
+ body: input.body,
488
+ options,
489
+ });
490
+ /**
491
+ * Get TVC Deployment
492
+ *
493
+ * Get details about a single TVC Deployment
494
+ *
495
+ * `POST /public/v1/query/get_tvc_deployment`
496
+ */
497
+ const getTvcDeployment = (input) => base.request({
498
+ uri: "/public/v1/query/get_tvc_deployment",
499
+ method: "POST",
500
+ body: input.body,
501
+ });
502
+ /**
503
+ * Request a WebAuthn assertion and return a signed `GetTvcDeployment` request, ready to be POSTed to Turnkey.
504
+ *
505
+ * See {@link GetTvcDeployment}
506
+ */
507
+ const signGetTvcDeployment = (input, options) => base.signedRequest({
508
+ uri: "/public/v1/query/get_tvc_deployment",
509
+ body: input.body,
510
+ options,
511
+ });
512
+ /**
513
+ * Get TVC Deployment's Provisioning Details
514
+ *
515
+ * Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment
516
+ *
517
+ * `POST /public/v1/query/get_tvc_deployment_provisioning_details`
518
+ */
519
+ const getTvcDeploymentProvisioningDetails = (input) => base.request({
520
+ uri: "/public/v1/query/get_tvc_deployment_provisioning_details",
521
+ method: "POST",
522
+ body: input.body,
523
+ });
524
+ /**
525
+ * Request a WebAuthn assertion and return a signed `GetTvcDeploymentProvisioningDetails` request, ready to be POSTed to Turnkey.
526
+ *
527
+ * See {@link GetTvcDeploymentProvisioningDetails}
528
+ */
529
+ const signGetTvcDeploymentProvisioningDetails = (input, options) => base.signedRequest({
530
+ uri: "/public/v1/query/get_tvc_deployment_provisioning_details",
531
+ body: input.body,
532
+ options,
533
+ });
424
534
  /**
425
535
  * Get user
426
536
  *
@@ -729,6 +839,50 @@ const signListSupportedAssets = (input, options) => base.signedRequest({
729
839
  body: input.body,
730
840
  options,
731
841
  });
842
+ /**
843
+ * List TVC Deployments
844
+ *
845
+ * List all deployments for a given TVC App
846
+ *
847
+ * `POST /public/v1/query/list_tvc_app_deployments`
848
+ */
849
+ const getTvcAppDeployments = (input) => base.request({
850
+ uri: "/public/v1/query/list_tvc_app_deployments",
851
+ method: "POST",
852
+ body: input.body,
853
+ });
854
+ /**
855
+ * Request a WebAuthn assertion and return a signed `GetTvcAppDeployments` request, ready to be POSTed to Turnkey.
856
+ *
857
+ * See {@link GetTvcAppDeployments}
858
+ */
859
+ const signGetTvcAppDeployments = (input, options) => base.signedRequest({
860
+ uri: "/public/v1/query/list_tvc_app_deployments",
861
+ body: input.body,
862
+ options,
863
+ });
864
+ /**
865
+ * List TVC Apps
866
+ *
867
+ * List all TVC Apps within an organization.
868
+ *
869
+ * `POST /public/v1/query/list_tvc_apps`
870
+ */
871
+ const getTvcApps = (input) => base.request({
872
+ uri: "/public/v1/query/list_tvc_apps",
873
+ method: "POST",
874
+ body: input.body,
875
+ });
876
+ /**
877
+ * Request a WebAuthn assertion and return a signed `GetTvcApps` request, ready to be POSTed to Turnkey.
878
+ *
879
+ * See {@link GetTvcApps}
880
+ */
881
+ const signGetTvcApps = (input, options) => base.signedRequest({
882
+ uri: "/public/v1/query/list_tvc_apps",
883
+ body: input.body,
884
+ options,
885
+ });
732
886
  /**
733
887
  * List user tags
734
888
  *
@@ -861,6 +1015,28 @@ const signListWebhookEndpoints = (input, options) => base.signedRequest({
861
1015
  body: input.body,
862
1016
  options,
863
1017
  });
1018
+ /**
1019
+ * Validate Container Image for TVC
1020
+ *
1021
+ * Validate a container image URL and pull secret for TVC deployment
1022
+ *
1023
+ * `POST /public/v1/query/validate_tvc_image`
1024
+ */
1025
+ const validateTvcImage = (input) => base.request({
1026
+ uri: "/public/v1/query/validate_tvc_image",
1027
+ method: "POST",
1028
+ body: input.body,
1029
+ });
1030
+ /**
1031
+ * Request a WebAuthn assertion and return a signed `ValidateTvcImage` request, ready to be POSTed to Turnkey.
1032
+ *
1033
+ * See {@link ValidateTvcImage}
1034
+ */
1035
+ const signValidateTvcImage = (input, options) => base.signedRequest({
1036
+ uri: "/public/v1/query/validate_tvc_image",
1037
+ body: input.body,
1038
+ options,
1039
+ });
864
1040
  /**
865
1041
  * Who am I?
866
1042
  *
@@ -1235,6 +1411,72 @@ const signCreateSubOrganization = (input, options) => base.signedRequest({
1235
1411
  body: input.body,
1236
1412
  options,
1237
1413
  });
1414
+ /**
1415
+ * Create a TVC App
1416
+ *
1417
+ * Create a new TVC application
1418
+ *
1419
+ * `POST /public/v1/submit/create_tvc_app`
1420
+ */
1421
+ const createTvcApp = (input) => base.request({
1422
+ uri: "/public/v1/submit/create_tvc_app",
1423
+ method: "POST",
1424
+ body: input.body,
1425
+ });
1426
+ /**
1427
+ * Request a WebAuthn assertion and return a signed `CreateTvcApp` request, ready to be POSTed to Turnkey.
1428
+ *
1429
+ * See {@link CreateTvcApp}
1430
+ */
1431
+ const signCreateTvcApp = (input, options) => base.signedRequest({
1432
+ uri: "/public/v1/submit/create_tvc_app",
1433
+ body: input.body,
1434
+ options,
1435
+ });
1436
+ /**
1437
+ * Create a TVC Deployment
1438
+ *
1439
+ * Create a new TVC Deployment
1440
+ *
1441
+ * `POST /public/v1/submit/create_tvc_deployment`
1442
+ */
1443
+ const createTvcDeployment = (input) => base.request({
1444
+ uri: "/public/v1/submit/create_tvc_deployment",
1445
+ method: "POST",
1446
+ body: input.body,
1447
+ });
1448
+ /**
1449
+ * Request a WebAuthn assertion and return a signed `CreateTvcDeployment` request, ready to be POSTed to Turnkey.
1450
+ *
1451
+ * See {@link CreateTvcDeployment}
1452
+ */
1453
+ const signCreateTvcDeployment = (input, options) => base.signedRequest({
1454
+ uri: "/public/v1/submit/create_tvc_deployment",
1455
+ body: input.body,
1456
+ options,
1457
+ });
1458
+ /**
1459
+ * Create TVC Manifest Approvals
1460
+ *
1461
+ * Post one or more manifest approvals for a TVC Manifest
1462
+ *
1463
+ * `POST /public/v1/submit/create_tvc_manifest_approvals`
1464
+ */
1465
+ const createTvcManifestApprovals = (input) => base.request({
1466
+ uri: "/public/v1/submit/create_tvc_manifest_approvals",
1467
+ method: "POST",
1468
+ body: input.body,
1469
+ });
1470
+ /**
1471
+ * Request a WebAuthn assertion and return a signed `CreateTvcManifestApprovals` request, ready to be POSTed to Turnkey.
1472
+ *
1473
+ * See {@link CreateTvcManifestApprovals}
1474
+ */
1475
+ const signCreateTvcManifestApprovals = (input, options) => base.signedRequest({
1476
+ uri: "/public/v1/submit/create_tvc_manifest_approvals",
1477
+ body: input.body,
1478
+ options,
1479
+ });
1238
1480
  /**
1239
1481
  * Create user tag
1240
1482
  *
@@ -1609,6 +1851,50 @@ const signDeleteSubOrganization = (input, options) => base.signedRequest({
1609
1851
  body: input.body,
1610
1852
  options,
1611
1853
  });
1854
+ /**
1855
+ * Delete a TVC App and all of its deployments
1856
+ *
1857
+ * Delete a TVC App and all of its deployments
1858
+ *
1859
+ * `POST /public/v1/submit/delete_tvc_app_and_deployments`
1860
+ */
1861
+ const deleteTvcAppAndDeployments = (input) => base.request({
1862
+ uri: "/public/v1/submit/delete_tvc_app_and_deployments",
1863
+ method: "POST",
1864
+ body: input.body,
1865
+ });
1866
+ /**
1867
+ * Request a WebAuthn assertion and return a signed `DeleteTvcAppAndDeployments` request, ready to be POSTed to Turnkey.
1868
+ *
1869
+ * See {@link DeleteTvcAppAndDeployments}
1870
+ */
1871
+ const signDeleteTvcAppAndDeployments = (input, options) => base.signedRequest({
1872
+ uri: "/public/v1/submit/delete_tvc_app_and_deployments",
1873
+ body: input.body,
1874
+ options,
1875
+ });
1876
+ /**
1877
+ * Delete a TVC Deployment
1878
+ *
1879
+ * Delete a TVC Deployment
1880
+ *
1881
+ * `POST /public/v1/submit/delete_tvc_deployment`
1882
+ */
1883
+ const deleteTvcDeployment = (input) => base.request({
1884
+ uri: "/public/v1/submit/delete_tvc_deployment",
1885
+ method: "POST",
1886
+ body: input.body,
1887
+ });
1888
+ /**
1889
+ * Request a WebAuthn assertion and return a signed `DeleteTvcDeployment` request, ready to be POSTed to Turnkey.
1890
+ *
1891
+ * See {@link DeleteTvcDeployment}
1892
+ */
1893
+ const signDeleteTvcDeployment = (input, options) => base.signedRequest({
1894
+ uri: "/public/v1/submit/delete_tvc_deployment",
1895
+ body: input.body,
1896
+ options,
1897
+ });
1612
1898
  /**
1613
1899
  * Delete user tags
1614
1900
  *
@@ -1741,6 +2027,28 @@ const signEmailAuth = (input, options) => base.signedRequest({
1741
2027
  body: input.body,
1742
2028
  options,
1743
2029
  });
2030
+ /**
2031
+ * Submit a raw transaction for broadcasting.
2032
+ *
2033
+ * Submit a raw transaction (serialized and signed) for broadcasting to the network.
2034
+ *
2035
+ * `POST /public/v1/submit/eth_send_raw_transaction`
2036
+ */
2037
+ const ethSendRawTransaction = (input) => base.request({
2038
+ uri: "/public/v1/submit/eth_send_raw_transaction",
2039
+ method: "POST",
2040
+ body: input.body,
2041
+ });
2042
+ /**
2043
+ * Request a WebAuthn assertion and return a signed `EthSendRawTransaction` request, ready to be POSTed to Turnkey.
2044
+ *
2045
+ * See {@link EthSendRawTransaction}
2046
+ */
2047
+ const signEthSendRawTransaction = (input, options) => base.signedRequest({
2048
+ uri: "/public/v1/submit/eth_send_raw_transaction",
2049
+ body: input.body,
2050
+ options,
2051
+ });
1744
2052
  /**
1745
2053
  * Broadcast EVM transaction
1746
2054
  *
@@ -2115,6 +2423,28 @@ const signOtpLogin = (input, options) => base.signedRequest({
2115
2423
  body: input.body,
2116
2424
  options,
2117
2425
  });
2426
+ /**
2427
+ * Post TVC Quorum Key Share
2428
+ *
2429
+ * Post re-encrypted quorum key share for a TVC deployment.
2430
+ *
2431
+ * `POST /public/v1/submit/post_tvc_quorum_key_share`
2432
+ */
2433
+ const postTvcQuorumKeyShare = (input) => base.request({
2434
+ uri: "/public/v1/submit/post_tvc_quorum_key_share",
2435
+ method: "POST",
2436
+ body: input.body,
2437
+ });
2438
+ /**
2439
+ * Request a WebAuthn assertion and return a signed `PostTvcQuorumKeyShare` request, ready to be POSTed to Turnkey.
2440
+ *
2441
+ * See {@link PostTvcQuorumKeyShare}
2442
+ */
2443
+ const signPostTvcQuorumKeyShare = (input, options) => base.signedRequest({
2444
+ uri: "/public/v1/submit/post_tvc_quorum_key_share",
2445
+ body: input.body,
2446
+ options,
2447
+ });
2118
2448
  /**
2119
2449
  * Recover a user
2120
2450
  *
@@ -2159,6 +2489,28 @@ const signRejectActivity = (input, options) => base.signedRequest({
2159
2489
  body: input.body,
2160
2490
  options,
2161
2491
  });
2492
+ /**
2493
+ * Remove IP Allowlist
2494
+ *
2495
+ * Delete IP allowlist and all associated rules for organization or API key. After removal, access will be determined by organization-level allowlist (for API keys) or allowed from all IPs (for organizations).
2496
+ *
2497
+ * `POST /public/v1/submit/remove_ip_allowlist`
2498
+ */
2499
+ const removeIpAllowlist = (input) => base.request({
2500
+ uri: "/public/v1/submit/remove_ip_allowlist",
2501
+ method: "POST",
2502
+ body: input.body,
2503
+ });
2504
+ /**
2505
+ * Request a WebAuthn assertion and return a signed `RemoveIpAllowlist` request, ready to be POSTed to Turnkey.
2506
+ *
2507
+ * See {@link RemoveIpAllowlist}
2508
+ */
2509
+ const signRemoveIpAllowlist = (input, options) => base.signedRequest({
2510
+ uri: "/public/v1/submit/remove_ip_allowlist",
2511
+ body: input.body,
2512
+ options,
2513
+ });
2162
2514
  /**
2163
2515
  * Remove organization feature
2164
2516
  *
@@ -2181,6 +2533,50 @@ const signRemoveOrganizationFeature = (input, options) => base.signedRequest({
2181
2533
  body: input.body,
2182
2534
  options,
2183
2535
  });
2536
+ /**
2537
+ * Restore a TVC Deployment
2538
+ *
2539
+ * Restore a deleted TVC Deployment
2540
+ *
2541
+ * `POST /public/v1/submit/restore_tvc_deployment`
2542
+ */
2543
+ const restoreTvcDeployment = (input) => base.request({
2544
+ uri: "/public/v1/submit/restore_tvc_deployment",
2545
+ method: "POST",
2546
+ body: input.body,
2547
+ });
2548
+ /**
2549
+ * Request a WebAuthn assertion and return a signed `RestoreTvcDeployment` request, ready to be POSTed to Turnkey.
2550
+ *
2551
+ * See {@link RestoreTvcDeployment}
2552
+ */
2553
+ const signRestoreTvcDeployment = (input, options) => base.signedRequest({
2554
+ uri: "/public/v1/submit/restore_tvc_deployment",
2555
+ body: input.body,
2556
+ options,
2557
+ });
2558
+ /**
2559
+ * Set IP Allowlist
2560
+ *
2561
+ * 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.
2562
+ *
2563
+ * `POST /public/v1/submit/set_ip_allowlist`
2564
+ */
2565
+ const setIpAllowlist = (input) => base.request({
2566
+ uri: "/public/v1/submit/set_ip_allowlist",
2567
+ method: "POST",
2568
+ body: input.body,
2569
+ });
2570
+ /**
2571
+ * Request a WebAuthn assertion and return a signed `SetIpAllowlist` request, ready to be POSTed to Turnkey.
2572
+ *
2573
+ * See {@link SetIpAllowlist}
2574
+ */
2575
+ const signSetIpAllowlist = (input, options) => base.signedRequest({
2576
+ uri: "/public/v1/submit/set_ip_allowlist",
2577
+ body: input.body,
2578
+ options,
2579
+ });
2184
2580
  /**
2185
2581
  * Set organization feature
2186
2582
  *
@@ -2203,6 +2599,28 @@ const signSetOrganizationFeature = (input, options) => base.signedRequest({
2203
2599
  body: input.body,
2204
2600
  options,
2205
2601
  });
2602
+ /**
2603
+ * Set TVC App live deployment
2604
+ *
2605
+ * Set the live deployment for a TVC App
2606
+ *
2607
+ * `POST /public/v1/submit/set_tvc_app_live_deployment`
2608
+ */
2609
+ const updateTvcAppLiveDeployment = (input) => base.request({
2610
+ uri: "/public/v1/submit/set_tvc_app_live_deployment",
2611
+ method: "POST",
2612
+ body: input.body,
2613
+ });
2614
+ /**
2615
+ * Request a WebAuthn assertion and return a signed `UpdateTvcAppLiveDeployment` request, ready to be POSTed to Turnkey.
2616
+ *
2617
+ * See {@link UpdateTvcAppLiveDeployment}
2618
+ */
2619
+ const signUpdateTvcAppLiveDeployment = (input, options) => base.signedRequest({
2620
+ uri: "/public/v1/submit/set_tvc_app_live_deployment",
2621
+ body: input.body,
2622
+ options,
2623
+ });
2206
2624
  /**
2207
2625
  * Sign raw payload
2208
2626
  *
@@ -2291,6 +2709,94 @@ const signSolSendTransaction = (input, options) => base.signedRequest({
2291
2709
  body: input.body,
2292
2710
  options,
2293
2711
  });
2712
+ /**
2713
+ * Claim Spark transfer
2714
+ *
2715
+ * Construct receiver-side encrypted operator packages to claim a Spark transfer. Does not perform FROST signing.
2716
+ *
2717
+ * `POST /public/v1/submit/spark_claim_transfer`
2718
+ */
2719
+ const sparkClaimTransfer = (input) => base.request({
2720
+ uri: "/public/v1/submit/spark_claim_transfer",
2721
+ method: "POST",
2722
+ body: input.body,
2723
+ });
2724
+ /**
2725
+ * Request a WebAuthn assertion and return a signed `SparkClaimTransfer` request, ready to be POSTed to Turnkey.
2726
+ *
2727
+ * See {@link SparkClaimTransfer}
2728
+ */
2729
+ const signSparkClaimTransfer = (input, options) => base.signedRequest({
2730
+ uri: "/public/v1/submit/spark_claim_transfer",
2731
+ body: input.body,
2732
+ options,
2733
+ });
2734
+ /**
2735
+ * Spark prepare Lightning receive
2736
+ *
2737
+ * Generate a Lightning preimage and distribute Feldman shares to operators for a Spark Lightning receive. Does not perform FROST signing.
2738
+ *
2739
+ * `POST /public/v1/submit/spark_prepare_lightning_receive`
2740
+ */
2741
+ const sparkPrepareLightningReceive = (input) => base.request({
2742
+ uri: "/public/v1/submit/spark_prepare_lightning_receive",
2743
+ method: "POST",
2744
+ body: input.body,
2745
+ });
2746
+ /**
2747
+ * Request a WebAuthn assertion and return a signed `SparkPrepareLightningReceive` request, ready to be POSTed to Turnkey.
2748
+ *
2749
+ * See {@link SparkPrepareLightningReceive}
2750
+ */
2751
+ const signSparkPrepareLightningReceive = (input, options) => base.signedRequest({
2752
+ uri: "/public/v1/submit/spark_prepare_lightning_receive",
2753
+ body: input.body,
2754
+ options,
2755
+ });
2756
+ /**
2757
+ * Prepare Spark transfer
2758
+ *
2759
+ * Construct sender-side encrypted operator packages for a Spark BTC transfer. Does not perform FROST signing.
2760
+ *
2761
+ * `POST /public/v1/submit/spark_prepare_transfer`
2762
+ */
2763
+ const sparkPrepareTransfer = (input) => base.request({
2764
+ uri: "/public/v1/submit/spark_prepare_transfer",
2765
+ method: "POST",
2766
+ body: input.body,
2767
+ });
2768
+ /**
2769
+ * Request a WebAuthn assertion and return a signed `SparkPrepareTransfer` request, ready to be POSTed to Turnkey.
2770
+ *
2771
+ * See {@link SparkPrepareTransfer}
2772
+ */
2773
+ const signSparkPrepareTransfer = (input, options) => base.signedRequest({
2774
+ uri: "/public/v1/submit/spark_prepare_transfer",
2775
+ body: input.body,
2776
+ options,
2777
+ });
2778
+ /**
2779
+ * Sign Frost Spark
2780
+ *
2781
+ * Perform pure FROST partial signing for a Spark wallet. Produces partial signatures without constructing operator packages.
2782
+ *
2783
+ * `POST /public/v1/submit/spark_sign_frost`
2784
+ */
2785
+ const sparkSignFrost = (input) => base.request({
2786
+ uri: "/public/v1/submit/spark_sign_frost",
2787
+ method: "POST",
2788
+ body: input.body,
2789
+ });
2790
+ /**
2791
+ * Request a WebAuthn assertion and return a signed `SparkSignFrost` request, ready to be POSTed to Turnkey.
2792
+ *
2793
+ * See {@link SparkSignFrost}
2794
+ */
2795
+ const signSparkSignFrost = (input, options) => base.signedRequest({
2796
+ uri: "/public/v1/submit/spark_sign_frost",
2797
+ body: input.body,
2798
+ options,
2799
+ });
2294
2800
  /**
2295
2801
  * Login with a stamp
2296
2802
  *
@@ -2636,6 +3142,50 @@ const nOOPCodegenAnchor = () => base.request({
2636
3142
  const signNOOPCodegenAnchor = () => base.signedRequest({
2637
3143
  uri: "/tkhq/api/v1/noop-codegen-anchor",
2638
3144
  });
3145
+ /**
3146
+ * Refresh feature flags
3147
+ *
3148
+ * Refresh feature flags by triggering a DB read to flush the in-memory cache.
3149
+ *
3150
+ * `POST /tkhq/api/v1/refresh_feature_flags`
3151
+ */
3152
+ const refreshFeatureFlags = (input) => base.request({
3153
+ uri: "/tkhq/api/v1/refresh_feature_flags",
3154
+ method: "POST",
3155
+ body: input.body,
3156
+ });
3157
+ /**
3158
+ * Request a WebAuthn assertion and return a signed `RefreshFeatureFlags` request, ready to be POSTed to Turnkey.
3159
+ *
3160
+ * See {@link RefreshFeatureFlags}
3161
+ */
3162
+ const signRefreshFeatureFlags = (input, options) => base.signedRequest({
3163
+ uri: "/tkhq/api/v1/refresh_feature_flags",
3164
+ body: input.body,
3165
+ options,
3166
+ });
3167
+ /**
3168
+ * Test rate limit
3169
+ *
3170
+ * Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite.
3171
+ *
3172
+ * `POST /tkhq/api/v1/test_rate_limits`
3173
+ */
3174
+ const testRateLimits = (input) => base.request({
3175
+ uri: "/tkhq/api/v1/test_rate_limits",
3176
+ method: "POST",
3177
+ body: input.body,
3178
+ });
3179
+ /**
3180
+ * Request a WebAuthn assertion and return a signed `TestRateLimits` request, ready to be POSTed to Turnkey.
3181
+ *
3182
+ * See {@link TestRateLimits}
3183
+ */
3184
+ const signTestRateLimits = (input, options) => base.signedRequest({
3185
+ uri: "/tkhq/api/v1/test_rate_limits",
3186
+ body: input.body,
3187
+ options,
3188
+ });
2639
3189
 
2640
3190
  exports.approveActivity = approveActivity;
2641
3191
  exports.createApiKeys = createApiKeys;
@@ -2653,6 +3203,9 @@ exports.createReadOnlySession = createReadOnlySession;
2653
3203
  exports.createReadWriteSession = createReadWriteSession;
2654
3204
  exports.createSmartContractInterface = createSmartContractInterface;
2655
3205
  exports.createSubOrganization = createSubOrganization;
3206
+ exports.createTvcApp = createTvcApp;
3207
+ exports.createTvcDeployment = createTvcDeployment;
3208
+ exports.createTvcManifestApprovals = createTvcManifestApprovals;
2656
3209
  exports.createUserTag = createUserTag;
2657
3210
  exports.createUsers = createUsers;
2658
3211
  exports.createWallet = createWallet;
@@ -2670,12 +3223,15 @@ exports.deletePrivateKeyTags = deletePrivateKeyTags;
2670
3223
  exports.deletePrivateKeys = deletePrivateKeys;
2671
3224
  exports.deleteSmartContractInterface = deleteSmartContractInterface;
2672
3225
  exports.deleteSubOrganization = deleteSubOrganization;
3226
+ exports.deleteTvcAppAndDeployments = deleteTvcAppAndDeployments;
3227
+ exports.deleteTvcDeployment = deleteTvcDeployment;
2673
3228
  exports.deleteUserTags = deleteUserTags;
2674
3229
  exports.deleteUsers = deleteUsers;
2675
3230
  exports.deleteWalletAccounts = deleteWalletAccounts;
2676
3231
  exports.deleteWallets = deleteWallets;
2677
3232
  exports.deleteWebhookEndpoint = deleteWebhookEndpoint;
2678
3233
  exports.emailAuth = emailAuth;
3234
+ exports.ethSendRawTransaction = ethSendRawTransaction;
2679
3235
  exports.ethSendTransaction = ethSendTransaction;
2680
3236
  exports.exportPrivateKey = exportPrivateKey;
2681
3237
  exports.exportWallet = exportWallet;
@@ -2690,11 +3246,13 @@ exports.getAuthenticator = getAuthenticator;
2690
3246
  exports.getAuthenticators = getAuthenticators;
2691
3247
  exports.getBootProof = getBootProof;
2692
3248
  exports.getGasUsage = getGasUsage;
3249
+ exports.getIpAllowlist = getIpAllowlist;
2693
3250
  exports.getLatestBootProof = getLatestBootProof;
2694
3251
  exports.getNonces = getNonces;
2695
3252
  exports.getOauth2Credential = getOauth2Credential;
2696
3253
  exports.getOauthProviders = getOauthProviders;
2697
3254
  exports.getOnRampTransactionStatus = getOnRampTransactionStatus;
3255
+ exports.getOrganization = getOrganization;
2698
3256
  exports.getOrganizationConfigs = getOrganizationConfigs;
2699
3257
  exports.getPolicies = getPolicies;
2700
3258
  exports.getPolicy = getPolicy;
@@ -2705,6 +3263,11 @@ exports.getSendTransactionStatus = getSendTransactionStatus;
2705
3263
  exports.getSmartContractInterface = getSmartContractInterface;
2706
3264
  exports.getSmartContractInterfaces = getSmartContractInterfaces;
2707
3265
  exports.getSubOrgIds = getSubOrgIds;
3266
+ exports.getTvcApp = getTvcApp;
3267
+ exports.getTvcAppDeployments = getTvcAppDeployments;
3268
+ exports.getTvcApps = getTvcApps;
3269
+ exports.getTvcDeployment = getTvcDeployment;
3270
+ exports.getTvcDeploymentProvisioningDetails = getTvcDeploymentProvisioningDetails;
2708
3271
  exports.getUser = getUser;
2709
3272
  exports.getUsers = getUsers;
2710
3273
  exports.getVerifiedSubOrgIds = getVerifiedSubOrgIds;
@@ -2734,9 +3297,14 @@ exports.oauth2Authenticate = oauth2Authenticate;
2734
3297
  exports.oauthLogin = oauthLogin;
2735
3298
  exports.otpAuth = otpAuth;
2736
3299
  exports.otpLogin = otpLogin;
3300
+ exports.postTvcQuorumKeyShare = postTvcQuorumKeyShare;
2737
3301
  exports.recoverUser = recoverUser;
3302
+ exports.refreshFeatureFlags = refreshFeatureFlags;
2738
3303
  exports.rejectActivity = rejectActivity;
3304
+ exports.removeIpAllowlist = removeIpAllowlist;
2739
3305
  exports.removeOrganizationFeature = removeOrganizationFeature;
3306
+ exports.restoreTvcDeployment = restoreTvcDeployment;
3307
+ exports.setIpAllowlist = setIpAllowlist;
2740
3308
  exports.setOrganizationFeature = setOrganizationFeature;
2741
3309
  exports.signApproveActivity = signApproveActivity;
2742
3310
  exports.signCreateApiKeys = signCreateApiKeys;
@@ -2754,6 +3322,9 @@ exports.signCreateReadOnlySession = signCreateReadOnlySession;
2754
3322
  exports.signCreateReadWriteSession = signCreateReadWriteSession;
2755
3323
  exports.signCreateSmartContractInterface = signCreateSmartContractInterface;
2756
3324
  exports.signCreateSubOrganization = signCreateSubOrganization;
3325
+ exports.signCreateTvcApp = signCreateTvcApp;
3326
+ exports.signCreateTvcDeployment = signCreateTvcDeployment;
3327
+ exports.signCreateTvcManifestApprovals = signCreateTvcManifestApprovals;
2757
3328
  exports.signCreateUserTag = signCreateUserTag;
2758
3329
  exports.signCreateUsers = signCreateUsers;
2759
3330
  exports.signCreateWallet = signCreateWallet;
@@ -2771,12 +3342,15 @@ exports.signDeletePrivateKeyTags = signDeletePrivateKeyTags;
2771
3342
  exports.signDeletePrivateKeys = signDeletePrivateKeys;
2772
3343
  exports.signDeleteSmartContractInterface = signDeleteSmartContractInterface;
2773
3344
  exports.signDeleteSubOrganization = signDeleteSubOrganization;
3345
+ exports.signDeleteTvcAppAndDeployments = signDeleteTvcAppAndDeployments;
3346
+ exports.signDeleteTvcDeployment = signDeleteTvcDeployment;
2774
3347
  exports.signDeleteUserTags = signDeleteUserTags;
2775
3348
  exports.signDeleteUsers = signDeleteUsers;
2776
3349
  exports.signDeleteWalletAccounts = signDeleteWalletAccounts;
2777
3350
  exports.signDeleteWallets = signDeleteWallets;
2778
3351
  exports.signDeleteWebhookEndpoint = signDeleteWebhookEndpoint;
2779
3352
  exports.signEmailAuth = signEmailAuth;
3353
+ exports.signEthSendRawTransaction = signEthSendRawTransaction;
2780
3354
  exports.signEthSendTransaction = signEthSendTransaction;
2781
3355
  exports.signExportPrivateKey = signExportPrivateKey;
2782
3356
  exports.signExportWallet = signExportWallet;
@@ -2791,11 +3365,13 @@ exports.signGetAuthenticator = signGetAuthenticator;
2791
3365
  exports.signGetAuthenticators = signGetAuthenticators;
2792
3366
  exports.signGetBootProof = signGetBootProof;
2793
3367
  exports.signGetGasUsage = signGetGasUsage;
3368
+ exports.signGetIpAllowlist = signGetIpAllowlist;
2794
3369
  exports.signGetLatestBootProof = signGetLatestBootProof;
2795
3370
  exports.signGetNonces = signGetNonces;
2796
3371
  exports.signGetOauth2Credential = signGetOauth2Credential;
2797
3372
  exports.signGetOauthProviders = signGetOauthProviders;
2798
3373
  exports.signGetOnRampTransactionStatus = signGetOnRampTransactionStatus;
3374
+ exports.signGetOrganization = signGetOrganization;
2799
3375
  exports.signGetOrganizationConfigs = signGetOrganizationConfigs;
2800
3376
  exports.signGetPolicies = signGetPolicies;
2801
3377
  exports.signGetPolicy = signGetPolicy;
@@ -2806,6 +3382,11 @@ exports.signGetSendTransactionStatus = signGetSendTransactionStatus;
2806
3382
  exports.signGetSmartContractInterface = signGetSmartContractInterface;
2807
3383
  exports.signGetSmartContractInterfaces = signGetSmartContractInterfaces;
2808
3384
  exports.signGetSubOrgIds = signGetSubOrgIds;
3385
+ exports.signGetTvcApp = signGetTvcApp;
3386
+ exports.signGetTvcAppDeployments = signGetTvcAppDeployments;
3387
+ exports.signGetTvcApps = signGetTvcApps;
3388
+ exports.signGetTvcDeployment = signGetTvcDeployment;
3389
+ exports.signGetTvcDeploymentProvisioningDetails = signGetTvcDeploymentProvisioningDetails;
2809
3390
  exports.signGetUser = signGetUser;
2810
3391
  exports.signGetUsers = signGetUsers;
2811
3392
  exports.signGetVerifiedSubOrgIds = signGetVerifiedSubOrgIds;
@@ -2835,17 +3416,27 @@ exports.signOauth2Authenticate = signOauth2Authenticate;
2835
3416
  exports.signOauthLogin = signOauthLogin;
2836
3417
  exports.signOtpAuth = signOtpAuth;
2837
3418
  exports.signOtpLogin = signOtpLogin;
3419
+ exports.signPostTvcQuorumKeyShare = signPostTvcQuorumKeyShare;
2838
3420
  exports.signRawPayload = signRawPayload;
2839
3421
  exports.signRawPayloads = signRawPayloads;
2840
3422
  exports.signRecoverUser = signRecoverUser;
3423
+ exports.signRefreshFeatureFlags = signRefreshFeatureFlags;
2841
3424
  exports.signRejectActivity = signRejectActivity;
3425
+ exports.signRemoveIpAllowlist = signRemoveIpAllowlist;
2842
3426
  exports.signRemoveOrganizationFeature = signRemoveOrganizationFeature;
3427
+ exports.signRestoreTvcDeployment = signRestoreTvcDeployment;
3428
+ exports.signSetIpAllowlist = signSetIpAllowlist;
2843
3429
  exports.signSetOrganizationFeature = signSetOrganizationFeature;
2844
3430
  exports.signSignRawPayload = signSignRawPayload;
2845
3431
  exports.signSignRawPayloads = signSignRawPayloads;
2846
3432
  exports.signSignTransaction = signSignTransaction;
2847
3433
  exports.signSolSendTransaction = signSolSendTransaction;
3434
+ exports.signSparkClaimTransfer = signSparkClaimTransfer;
3435
+ exports.signSparkPrepareLightningReceive = signSparkPrepareLightningReceive;
3436
+ exports.signSparkPrepareTransfer = signSparkPrepareTransfer;
3437
+ exports.signSparkSignFrost = signSparkSignFrost;
2848
3438
  exports.signStampLogin = signStampLogin;
3439
+ exports.signTestRateLimits = signTestRateLimits;
2849
3440
  exports.signTransaction = signTransaction;
2850
3441
  exports.signUpdateFiatOnRampCredential = signUpdateFiatOnRampCredential;
2851
3442
  exports.signUpdateOauth2Credential = signUpdateOauth2Credential;
@@ -2853,6 +3444,7 @@ exports.signUpdateOrganizationName = signUpdateOrganizationName;
2853
3444
  exports.signUpdatePolicy = signUpdatePolicy;
2854
3445
  exports.signUpdatePrivateKeyTag = signUpdatePrivateKeyTag;
2855
3446
  exports.signUpdateRootQuorum = signUpdateRootQuorum;
3447
+ exports.signUpdateTvcAppLiveDeployment = signUpdateTvcAppLiveDeployment;
2856
3448
  exports.signUpdateUser = signUpdateUser;
2857
3449
  exports.signUpdateUserEmail = signUpdateUserEmail;
2858
3450
  exports.signUpdateUserName = signUpdateUserName;
@@ -2860,15 +3452,22 @@ exports.signUpdateUserPhoneNumber = signUpdateUserPhoneNumber;
2860
3452
  exports.signUpdateUserTag = signUpdateUserTag;
2861
3453
  exports.signUpdateWallet = signUpdateWallet;
2862
3454
  exports.signUpdateWebhookEndpoint = signUpdateWebhookEndpoint;
3455
+ exports.signValidateTvcImage = signValidateTvcImage;
2863
3456
  exports.signVerifyOtp = signVerifyOtp;
2864
3457
  exports.solSendTransaction = solSendTransaction;
3458
+ exports.sparkClaimTransfer = sparkClaimTransfer;
3459
+ exports.sparkPrepareLightningReceive = sparkPrepareLightningReceive;
3460
+ exports.sparkPrepareTransfer = sparkPrepareTransfer;
3461
+ exports.sparkSignFrost = sparkSignFrost;
2865
3462
  exports.stampLogin = stampLogin;
3463
+ exports.testRateLimits = testRateLimits;
2866
3464
  exports.updateFiatOnRampCredential = updateFiatOnRampCredential;
2867
3465
  exports.updateOauth2Credential = updateOauth2Credential;
2868
3466
  exports.updateOrganizationName = updateOrganizationName;
2869
3467
  exports.updatePolicy = updatePolicy;
2870
3468
  exports.updatePrivateKeyTag = updatePrivateKeyTag;
2871
3469
  exports.updateRootQuorum = updateRootQuorum;
3470
+ exports.updateTvcAppLiveDeployment = updateTvcAppLiveDeployment;
2872
3471
  exports.updateUser = updateUser;
2873
3472
  exports.updateUserEmail = updateUserEmail;
2874
3473
  exports.updateUserName = updateUserName;
@@ -2876,5 +3475,6 @@ exports.updateUserPhoneNumber = updateUserPhoneNumber;
2876
3475
  exports.updateUserTag = updateUserTag;
2877
3476
  exports.updateWallet = updateWallet;
2878
3477
  exports.updateWebhookEndpoint = updateWebhookEndpoint;
3478
+ exports.validateTvcImage = validateTvcImage;
2879
3479
  exports.verifyOtp = verifyOtp;
2880
3480
  //# sourceMappingURL=public_api.fetcher.js.map