@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.
- package/CHANGELOG.md +277 -1
- package/dist/__fixtures__/shared.d.ts +6 -0
- package/dist/__fixtures__/shared.d.ts.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +375 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +626 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +626 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +69430 -3921
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +600 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +551 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +1462 -33
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/__tests__/async-test.d.ts +2 -0
- package/dist/__tests__/async-test.d.ts.map +1 -0
- package/dist/__tests__/request-test.d.ts +2 -0
- package/dist/__tests__/request-test.d.ts.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +3 -3
|
@@ -206,6 +206,31 @@ class TurnkeyClient {
|
|
|
206
206
|
url: fullUrl,
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
+
/**
|
|
210
|
+
* Get IP allowlist and rules for an organization.
|
|
211
|
+
*
|
|
212
|
+
* Sign the provided `TGetIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_ip_allowlist).
|
|
213
|
+
*
|
|
214
|
+
* See also {@link stampGetIpAllowlist}.
|
|
215
|
+
*/
|
|
216
|
+
this.getIpAllowlist = async (input) => {
|
|
217
|
+
return this.request("/public/v1/query/get_ip_allowlist", input);
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Produce a `SignedRequest` from `TGetIpAllowlistBody` by using the client's `stamp` function.
|
|
221
|
+
*
|
|
222
|
+
* See also {@link GetIpAllowlist}.
|
|
223
|
+
*/
|
|
224
|
+
this.stampGetIpAllowlist = async (input) => {
|
|
225
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_ip_allowlist";
|
|
226
|
+
const body = JSON.stringify(input);
|
|
227
|
+
const stamp = await this.stamper.stamp(body);
|
|
228
|
+
return {
|
|
229
|
+
body: body,
|
|
230
|
+
stamp: stamp,
|
|
231
|
+
url: fullUrl,
|
|
232
|
+
};
|
|
233
|
+
};
|
|
209
234
|
/**
|
|
210
235
|
* Get the latest boot proof for a given enclave app name.
|
|
211
236
|
*
|
|
@@ -331,6 +356,31 @@ class TurnkeyClient {
|
|
|
331
356
|
url: fullUrl,
|
|
332
357
|
};
|
|
333
358
|
};
|
|
359
|
+
/**
|
|
360
|
+
* Get details about an organization.
|
|
361
|
+
*
|
|
362
|
+
* Sign the provided `TGetOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_organization).
|
|
363
|
+
*
|
|
364
|
+
* See also {@link stampGetOrganization}.
|
|
365
|
+
*/
|
|
366
|
+
this.getOrganization = async (input) => {
|
|
367
|
+
return this.request("/public/v1/query/get_organization", input);
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Produce a `SignedRequest` from `TGetOrganizationBody` by using the client's `stamp` function.
|
|
371
|
+
*
|
|
372
|
+
* See also {@link GetOrganization}.
|
|
373
|
+
*/
|
|
374
|
+
this.stampGetOrganization = async (input) => {
|
|
375
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_organization";
|
|
376
|
+
const body = JSON.stringify(input);
|
|
377
|
+
const stamp = await this.stamper.stamp(body);
|
|
378
|
+
return {
|
|
379
|
+
body: body,
|
|
380
|
+
stamp: stamp,
|
|
381
|
+
url: fullUrl,
|
|
382
|
+
};
|
|
383
|
+
};
|
|
334
384
|
/**
|
|
335
385
|
* Get quorum settings and features for an organization.
|
|
336
386
|
*
|
|
@@ -481,6 +531,82 @@ class TurnkeyClient {
|
|
|
481
531
|
url: fullUrl,
|
|
482
532
|
};
|
|
483
533
|
};
|
|
534
|
+
/**
|
|
535
|
+
* Get details about a single TVC App
|
|
536
|
+
*
|
|
537
|
+
* Sign the provided `TGetTvcAppBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_app).
|
|
538
|
+
*
|
|
539
|
+
* See also {@link stampGetTvcApp}.
|
|
540
|
+
*/
|
|
541
|
+
this.getTvcApp = async (input) => {
|
|
542
|
+
return this.request("/public/v1/query/get_tvc_app", input);
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Produce a `SignedRequest` from `TGetTvcAppBody` by using the client's `stamp` function.
|
|
546
|
+
*
|
|
547
|
+
* See also {@link GetTvcApp}.
|
|
548
|
+
*/
|
|
549
|
+
this.stampGetTvcApp = async (input) => {
|
|
550
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_tvc_app";
|
|
551
|
+
const body = JSON.stringify(input);
|
|
552
|
+
const stamp = await this.stamper.stamp(body);
|
|
553
|
+
return {
|
|
554
|
+
body: body,
|
|
555
|
+
stamp: stamp,
|
|
556
|
+
url: fullUrl,
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Get details about a single TVC Deployment
|
|
561
|
+
*
|
|
562
|
+
* Sign the provided `TGetTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_deployment).
|
|
563
|
+
*
|
|
564
|
+
* See also {@link stampGetTvcDeployment}.
|
|
565
|
+
*/
|
|
566
|
+
this.getTvcDeployment = async (input) => {
|
|
567
|
+
return this.request("/public/v1/query/get_tvc_deployment", input);
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* Produce a `SignedRequest` from `TGetTvcDeploymentBody` by using the client's `stamp` function.
|
|
571
|
+
*
|
|
572
|
+
* See also {@link GetTvcDeployment}.
|
|
573
|
+
*/
|
|
574
|
+
this.stampGetTvcDeployment = async (input) => {
|
|
575
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_tvc_deployment";
|
|
576
|
+
const body = JSON.stringify(input);
|
|
577
|
+
const stamp = await this.stamper.stamp(body);
|
|
578
|
+
return {
|
|
579
|
+
body: body,
|
|
580
|
+
stamp: stamp,
|
|
581
|
+
url: fullUrl,
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Get the attestation document and manifest envelope of the provisioning enclave for a TVC deployment
|
|
586
|
+
*
|
|
587
|
+
* Sign the provided `TGetTvcDeploymentProvisioningDetailsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_deployment_provisioning_details).
|
|
588
|
+
*
|
|
589
|
+
* See also {@link stampGetTvcDeploymentProvisioningDetails}.
|
|
590
|
+
*/
|
|
591
|
+
this.getTvcDeploymentProvisioningDetails = async (input) => {
|
|
592
|
+
return this.request("/public/v1/query/get_tvc_deployment_provisioning_details", input);
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Produce a `SignedRequest` from `TGetTvcDeploymentProvisioningDetailsBody` by using the client's `stamp` function.
|
|
596
|
+
*
|
|
597
|
+
* See also {@link GetTvcDeploymentProvisioningDetails}.
|
|
598
|
+
*/
|
|
599
|
+
this.stampGetTvcDeploymentProvisioningDetails = async (input) => {
|
|
600
|
+
const fullUrl = this.config.baseUrl +
|
|
601
|
+
"/public/v1/query/get_tvc_deployment_provisioning_details";
|
|
602
|
+
const body = JSON.stringify(input);
|
|
603
|
+
const stamp = await this.stamper.stamp(body);
|
|
604
|
+
return {
|
|
605
|
+
body: body,
|
|
606
|
+
stamp: stamp,
|
|
607
|
+
url: fullUrl,
|
|
608
|
+
};
|
|
609
|
+
};
|
|
484
610
|
/**
|
|
485
611
|
* Get details about a user.
|
|
486
612
|
*
|
|
@@ -831,6 +957,56 @@ class TurnkeyClient {
|
|
|
831
957
|
url: fullUrl,
|
|
832
958
|
};
|
|
833
959
|
};
|
|
960
|
+
/**
|
|
961
|
+
* List all deployments for a given TVC App
|
|
962
|
+
*
|
|
963
|
+
* Sign the provided `TGetTvcAppDeploymentsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_tvc_app_deployments).
|
|
964
|
+
*
|
|
965
|
+
* See also {@link stampGetTvcAppDeployments}.
|
|
966
|
+
*/
|
|
967
|
+
this.getTvcAppDeployments = async (input) => {
|
|
968
|
+
return this.request("/public/v1/query/list_tvc_app_deployments", input);
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* Produce a `SignedRequest` from `TGetTvcAppDeploymentsBody` by using the client's `stamp` function.
|
|
972
|
+
*
|
|
973
|
+
* See also {@link GetTvcAppDeployments}.
|
|
974
|
+
*/
|
|
975
|
+
this.stampGetTvcAppDeployments = async (input) => {
|
|
976
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_tvc_app_deployments";
|
|
977
|
+
const body = JSON.stringify(input);
|
|
978
|
+
const stamp = await this.stamper.stamp(body);
|
|
979
|
+
return {
|
|
980
|
+
body: body,
|
|
981
|
+
stamp: stamp,
|
|
982
|
+
url: fullUrl,
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* List all TVC Apps within an organization.
|
|
987
|
+
*
|
|
988
|
+
* Sign the provided `TGetTvcAppsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_tvc_apps).
|
|
989
|
+
*
|
|
990
|
+
* See also {@link stampGetTvcApps}.
|
|
991
|
+
*/
|
|
992
|
+
this.getTvcApps = async (input) => {
|
|
993
|
+
return this.request("/public/v1/query/list_tvc_apps", input);
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* Produce a `SignedRequest` from `TGetTvcAppsBody` by using the client's `stamp` function.
|
|
997
|
+
*
|
|
998
|
+
* See also {@link GetTvcApps}.
|
|
999
|
+
*/
|
|
1000
|
+
this.stampGetTvcApps = async (input) => {
|
|
1001
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_tvc_apps";
|
|
1002
|
+
const body = JSON.stringify(input);
|
|
1003
|
+
const stamp = await this.stamper.stamp(body);
|
|
1004
|
+
return {
|
|
1005
|
+
body: body,
|
|
1006
|
+
stamp: stamp,
|
|
1007
|
+
url: fullUrl,
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
834
1010
|
/**
|
|
835
1011
|
* List all user tags within an organization.
|
|
836
1012
|
*
|
|
@@ -981,6 +1157,31 @@ class TurnkeyClient {
|
|
|
981
1157
|
url: fullUrl,
|
|
982
1158
|
};
|
|
983
1159
|
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Validate a container image URL and pull secret for TVC deployment
|
|
1162
|
+
*
|
|
1163
|
+
* Sign the provided `TValidateTvcImageBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/validate_tvc_image).
|
|
1164
|
+
*
|
|
1165
|
+
* See also {@link stampValidateTvcImage}.
|
|
1166
|
+
*/
|
|
1167
|
+
this.validateTvcImage = async (input) => {
|
|
1168
|
+
return this.request("/public/v1/query/validate_tvc_image", input);
|
|
1169
|
+
};
|
|
1170
|
+
/**
|
|
1171
|
+
* Produce a `SignedRequest` from `TValidateTvcImageBody` by using the client's `stamp` function.
|
|
1172
|
+
*
|
|
1173
|
+
* See also {@link ValidateTvcImage}.
|
|
1174
|
+
*/
|
|
1175
|
+
this.stampValidateTvcImage = async (input) => {
|
|
1176
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/validate_tvc_image";
|
|
1177
|
+
const body = JSON.stringify(input);
|
|
1178
|
+
const stamp = await this.stamper.stamp(body);
|
|
1179
|
+
return {
|
|
1180
|
+
body: body,
|
|
1181
|
+
stamp: stamp,
|
|
1182
|
+
url: fullUrl,
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
984
1185
|
/**
|
|
985
1186
|
* Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
|
|
986
1187
|
*
|
|
@@ -1406,6 +1607,81 @@ class TurnkeyClient {
|
|
|
1406
1607
|
url: fullUrl,
|
|
1407
1608
|
};
|
|
1408
1609
|
};
|
|
1610
|
+
/**
|
|
1611
|
+
* Create a new TVC application
|
|
1612
|
+
*
|
|
1613
|
+
* Sign the provided `TCreateTvcAppBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_app).
|
|
1614
|
+
*
|
|
1615
|
+
* See also {@link stampCreateTvcApp}.
|
|
1616
|
+
*/
|
|
1617
|
+
this.createTvcApp = async (input) => {
|
|
1618
|
+
return this.request("/public/v1/submit/create_tvc_app", input);
|
|
1619
|
+
};
|
|
1620
|
+
/**
|
|
1621
|
+
* Produce a `SignedRequest` from `TCreateTvcAppBody` by using the client's `stamp` function.
|
|
1622
|
+
*
|
|
1623
|
+
* See also {@link CreateTvcApp}.
|
|
1624
|
+
*/
|
|
1625
|
+
this.stampCreateTvcApp = async (input) => {
|
|
1626
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_app";
|
|
1627
|
+
const body = JSON.stringify(input);
|
|
1628
|
+
const stamp = await this.stamper.stamp(body);
|
|
1629
|
+
return {
|
|
1630
|
+
body: body,
|
|
1631
|
+
stamp: stamp,
|
|
1632
|
+
url: fullUrl,
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
/**
|
|
1636
|
+
* Create a new TVC Deployment
|
|
1637
|
+
*
|
|
1638
|
+
* Sign the provided `TCreateTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_deployment).
|
|
1639
|
+
*
|
|
1640
|
+
* See also {@link stampCreateTvcDeployment}.
|
|
1641
|
+
*/
|
|
1642
|
+
this.createTvcDeployment = async (input) => {
|
|
1643
|
+
return this.request("/public/v1/submit/create_tvc_deployment", input);
|
|
1644
|
+
};
|
|
1645
|
+
/**
|
|
1646
|
+
* Produce a `SignedRequest` from `TCreateTvcDeploymentBody` by using the client's `stamp` function.
|
|
1647
|
+
*
|
|
1648
|
+
* See also {@link CreateTvcDeployment}.
|
|
1649
|
+
*/
|
|
1650
|
+
this.stampCreateTvcDeployment = async (input) => {
|
|
1651
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_deployment";
|
|
1652
|
+
const body = JSON.stringify(input);
|
|
1653
|
+
const stamp = await this.stamper.stamp(body);
|
|
1654
|
+
return {
|
|
1655
|
+
body: body,
|
|
1656
|
+
stamp: stamp,
|
|
1657
|
+
url: fullUrl,
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* Post one or more manifest approvals for a TVC Manifest
|
|
1662
|
+
*
|
|
1663
|
+
* Sign the provided `TCreateTvcManifestApprovalsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_manifest_approvals).
|
|
1664
|
+
*
|
|
1665
|
+
* See also {@link stampCreateTvcManifestApprovals}.
|
|
1666
|
+
*/
|
|
1667
|
+
this.createTvcManifestApprovals = async (input) => {
|
|
1668
|
+
return this.request("/public/v1/submit/create_tvc_manifest_approvals", input);
|
|
1669
|
+
};
|
|
1670
|
+
/**
|
|
1671
|
+
* Produce a `SignedRequest` from `TCreateTvcManifestApprovalsBody` by using the client's `stamp` function.
|
|
1672
|
+
*
|
|
1673
|
+
* See also {@link CreateTvcManifestApprovals}.
|
|
1674
|
+
*/
|
|
1675
|
+
this.stampCreateTvcManifestApprovals = async (input) => {
|
|
1676
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_tvc_manifest_approvals";
|
|
1677
|
+
const body = JSON.stringify(input);
|
|
1678
|
+
const stamp = await this.stamper.stamp(body);
|
|
1679
|
+
return {
|
|
1680
|
+
body: body,
|
|
1681
|
+
stamp: stamp,
|
|
1682
|
+
url: fullUrl,
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1409
1685
|
/**
|
|
1410
1686
|
* Create a user tag and add it to users.
|
|
1411
1687
|
*
|
|
@@ -1831,6 +2107,56 @@ class TurnkeyClient {
|
|
|
1831
2107
|
url: fullUrl,
|
|
1832
2108
|
};
|
|
1833
2109
|
};
|
|
2110
|
+
/**
|
|
2111
|
+
* Delete a TVC App and all of its deployments
|
|
2112
|
+
*
|
|
2113
|
+
* Sign the provided `TDeleteTvcAppAndDeploymentsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_tvc_app_and_deployments).
|
|
2114
|
+
*
|
|
2115
|
+
* See also {@link stampDeleteTvcAppAndDeployments}.
|
|
2116
|
+
*/
|
|
2117
|
+
this.deleteTvcAppAndDeployments = async (input) => {
|
|
2118
|
+
return this.request("/public/v1/submit/delete_tvc_app_and_deployments", input);
|
|
2119
|
+
};
|
|
2120
|
+
/**
|
|
2121
|
+
* Produce a `SignedRequest` from `TDeleteTvcAppAndDeploymentsBody` by using the client's `stamp` function.
|
|
2122
|
+
*
|
|
2123
|
+
* See also {@link DeleteTvcAppAndDeployments}.
|
|
2124
|
+
*/
|
|
2125
|
+
this.stampDeleteTvcAppAndDeployments = async (input) => {
|
|
2126
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_tvc_app_and_deployments";
|
|
2127
|
+
const body = JSON.stringify(input);
|
|
2128
|
+
const stamp = await this.stamper.stamp(body);
|
|
2129
|
+
return {
|
|
2130
|
+
body: body,
|
|
2131
|
+
stamp: stamp,
|
|
2132
|
+
url: fullUrl,
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
/**
|
|
2136
|
+
* Delete a TVC Deployment
|
|
2137
|
+
*
|
|
2138
|
+
* Sign the provided `TDeleteTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_tvc_deployment).
|
|
2139
|
+
*
|
|
2140
|
+
* See also {@link stampDeleteTvcDeployment}.
|
|
2141
|
+
*/
|
|
2142
|
+
this.deleteTvcDeployment = async (input) => {
|
|
2143
|
+
return this.request("/public/v1/submit/delete_tvc_deployment", input);
|
|
2144
|
+
};
|
|
2145
|
+
/**
|
|
2146
|
+
* Produce a `SignedRequest` from `TDeleteTvcDeploymentBody` by using the client's `stamp` function.
|
|
2147
|
+
*
|
|
2148
|
+
* See also {@link DeleteTvcDeployment}.
|
|
2149
|
+
*/
|
|
2150
|
+
this.stampDeleteTvcDeployment = async (input) => {
|
|
2151
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_tvc_deployment";
|
|
2152
|
+
const body = JSON.stringify(input);
|
|
2153
|
+
const stamp = await this.stamper.stamp(body);
|
|
2154
|
+
return {
|
|
2155
|
+
body: body,
|
|
2156
|
+
stamp: stamp,
|
|
2157
|
+
url: fullUrl,
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
1834
2160
|
/**
|
|
1835
2161
|
* Delete user tags within an organization.
|
|
1836
2162
|
*
|
|
@@ -1981,6 +2307,31 @@ class TurnkeyClient {
|
|
|
1981
2307
|
url: fullUrl,
|
|
1982
2308
|
};
|
|
1983
2309
|
};
|
|
2310
|
+
/**
|
|
2311
|
+
* Submit a raw transaction (serialized and signed) for broadcasting to the network.
|
|
2312
|
+
*
|
|
2313
|
+
* Sign the provided `TEthSendRawTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/eth_send_raw_transaction).
|
|
2314
|
+
*
|
|
2315
|
+
* See also {@link stampEthSendRawTransaction}.
|
|
2316
|
+
*/
|
|
2317
|
+
this.ethSendRawTransaction = async (input) => {
|
|
2318
|
+
return this.request("/public/v1/submit/eth_send_raw_transaction", input);
|
|
2319
|
+
};
|
|
2320
|
+
/**
|
|
2321
|
+
* Produce a `SignedRequest` from `TEthSendRawTransactionBody` by using the client's `stamp` function.
|
|
2322
|
+
*
|
|
2323
|
+
* See also {@link EthSendRawTransaction}.
|
|
2324
|
+
*/
|
|
2325
|
+
this.stampEthSendRawTransaction = async (input) => {
|
|
2326
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/eth_send_raw_transaction";
|
|
2327
|
+
const body = JSON.stringify(input);
|
|
2328
|
+
const stamp = await this.stamper.stamp(body);
|
|
2329
|
+
return {
|
|
2330
|
+
body: body,
|
|
2331
|
+
stamp: stamp,
|
|
2332
|
+
url: fullUrl,
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
1984
2335
|
/**
|
|
1985
2336
|
* Submit a transaction intent describing an EVM transaction you would like to broadcast.
|
|
1986
2337
|
*
|
|
@@ -2406,6 +2757,31 @@ class TurnkeyClient {
|
|
|
2406
2757
|
url: fullUrl,
|
|
2407
2758
|
};
|
|
2408
2759
|
};
|
|
2760
|
+
/**
|
|
2761
|
+
* Post re-encrypted quorum key share for a TVC deployment.
|
|
2762
|
+
*
|
|
2763
|
+
* Sign the provided `TPostTvcQuorumKeyShareBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/post_tvc_quorum_key_share).
|
|
2764
|
+
*
|
|
2765
|
+
* See also {@link stampPostTvcQuorumKeyShare}.
|
|
2766
|
+
*/
|
|
2767
|
+
this.postTvcQuorumKeyShare = async (input) => {
|
|
2768
|
+
return this.request("/public/v1/submit/post_tvc_quorum_key_share", input);
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* Produce a `SignedRequest` from `TPostTvcQuorumKeyShareBody` by using the client's `stamp` function.
|
|
2772
|
+
*
|
|
2773
|
+
* See also {@link PostTvcQuorumKeyShare}.
|
|
2774
|
+
*/
|
|
2775
|
+
this.stampPostTvcQuorumKeyShare = async (input) => {
|
|
2776
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/post_tvc_quorum_key_share";
|
|
2777
|
+
const body = JSON.stringify(input);
|
|
2778
|
+
const stamp = await this.stamper.stamp(body);
|
|
2779
|
+
return {
|
|
2780
|
+
body: body,
|
|
2781
|
+
stamp: stamp,
|
|
2782
|
+
url: fullUrl,
|
|
2783
|
+
};
|
|
2784
|
+
};
|
|
2409
2785
|
/**
|
|
2410
2786
|
* Complete the process of recovering a user by adding an authenticator.
|
|
2411
2787
|
*
|
|
@@ -2456,6 +2832,31 @@ class TurnkeyClient {
|
|
|
2456
2832
|
url: fullUrl,
|
|
2457
2833
|
};
|
|
2458
2834
|
};
|
|
2835
|
+
/**
|
|
2836
|
+
* 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).
|
|
2837
|
+
*
|
|
2838
|
+
* Sign the provided `TRemoveIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/remove_ip_allowlist).
|
|
2839
|
+
*
|
|
2840
|
+
* See also {@link stampRemoveIpAllowlist}.
|
|
2841
|
+
*/
|
|
2842
|
+
this.removeIpAllowlist = async (input) => {
|
|
2843
|
+
return this.request("/public/v1/submit/remove_ip_allowlist", input);
|
|
2844
|
+
};
|
|
2845
|
+
/**
|
|
2846
|
+
* Produce a `SignedRequest` from `TRemoveIpAllowlistBody` by using the client's `stamp` function.
|
|
2847
|
+
*
|
|
2848
|
+
* See also {@link RemoveIpAllowlist}.
|
|
2849
|
+
*/
|
|
2850
|
+
this.stampRemoveIpAllowlist = async (input) => {
|
|
2851
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/remove_ip_allowlist";
|
|
2852
|
+
const body = JSON.stringify(input);
|
|
2853
|
+
const stamp = await this.stamper.stamp(body);
|
|
2854
|
+
return {
|
|
2855
|
+
body: body,
|
|
2856
|
+
stamp: stamp,
|
|
2857
|
+
url: fullUrl,
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2459
2860
|
/**
|
|
2460
2861
|
* Remove an organization feature. This activity must be approved by the current root quorum.
|
|
2461
2862
|
*
|
|
@@ -2481,6 +2882,56 @@ class TurnkeyClient {
|
|
|
2481
2882
|
url: fullUrl,
|
|
2482
2883
|
};
|
|
2483
2884
|
};
|
|
2885
|
+
/**
|
|
2886
|
+
* Restore a deleted TVC Deployment
|
|
2887
|
+
*
|
|
2888
|
+
* Sign the provided `TRestoreTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/restore_tvc_deployment).
|
|
2889
|
+
*
|
|
2890
|
+
* See also {@link stampRestoreTvcDeployment}.
|
|
2891
|
+
*/
|
|
2892
|
+
this.restoreTvcDeployment = async (input) => {
|
|
2893
|
+
return this.request("/public/v1/submit/restore_tvc_deployment", input);
|
|
2894
|
+
};
|
|
2895
|
+
/**
|
|
2896
|
+
* Produce a `SignedRequest` from `TRestoreTvcDeploymentBody` by using the client's `stamp` function.
|
|
2897
|
+
*
|
|
2898
|
+
* See also {@link RestoreTvcDeployment}.
|
|
2899
|
+
*/
|
|
2900
|
+
this.stampRestoreTvcDeployment = async (input) => {
|
|
2901
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/restore_tvc_deployment";
|
|
2902
|
+
const body = JSON.stringify(input);
|
|
2903
|
+
const stamp = await this.stamper.stamp(body);
|
|
2904
|
+
return {
|
|
2905
|
+
body: body,
|
|
2906
|
+
stamp: stamp,
|
|
2907
|
+
url: fullUrl,
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
/**
|
|
2911
|
+
* 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.
|
|
2912
|
+
*
|
|
2913
|
+
* Sign the provided `TSetIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/set_ip_allowlist).
|
|
2914
|
+
*
|
|
2915
|
+
* See also {@link stampSetIpAllowlist}.
|
|
2916
|
+
*/
|
|
2917
|
+
this.setIpAllowlist = async (input) => {
|
|
2918
|
+
return this.request("/public/v1/submit/set_ip_allowlist", input);
|
|
2919
|
+
};
|
|
2920
|
+
/**
|
|
2921
|
+
* Produce a `SignedRequest` from `TSetIpAllowlistBody` by using the client's `stamp` function.
|
|
2922
|
+
*
|
|
2923
|
+
* See also {@link SetIpAllowlist}.
|
|
2924
|
+
*/
|
|
2925
|
+
this.stampSetIpAllowlist = async (input) => {
|
|
2926
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/set_ip_allowlist";
|
|
2927
|
+
const body = JSON.stringify(input);
|
|
2928
|
+
const stamp = await this.stamper.stamp(body);
|
|
2929
|
+
return {
|
|
2930
|
+
body: body,
|
|
2931
|
+
stamp: stamp,
|
|
2932
|
+
url: fullUrl,
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2484
2935
|
/**
|
|
2485
2936
|
* Set an organization feature. This activity must be approved by the current root quorum.
|
|
2486
2937
|
*
|
|
@@ -2506,6 +2957,31 @@ class TurnkeyClient {
|
|
|
2506
2957
|
url: fullUrl,
|
|
2507
2958
|
};
|
|
2508
2959
|
};
|
|
2960
|
+
/**
|
|
2961
|
+
* Set the live deployment for a TVC App
|
|
2962
|
+
*
|
|
2963
|
+
* Sign the provided `TUpdateTvcAppLiveDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/set_tvc_app_live_deployment).
|
|
2964
|
+
*
|
|
2965
|
+
* See also {@link stampUpdateTvcAppLiveDeployment}.
|
|
2966
|
+
*/
|
|
2967
|
+
this.updateTvcAppLiveDeployment = async (input) => {
|
|
2968
|
+
return this.request("/public/v1/submit/set_tvc_app_live_deployment", input);
|
|
2969
|
+
};
|
|
2970
|
+
/**
|
|
2971
|
+
* Produce a `SignedRequest` from `TUpdateTvcAppLiveDeploymentBody` by using the client's `stamp` function.
|
|
2972
|
+
*
|
|
2973
|
+
* See also {@link UpdateTvcAppLiveDeployment}.
|
|
2974
|
+
*/
|
|
2975
|
+
this.stampUpdateTvcAppLiveDeployment = async (input) => {
|
|
2976
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/set_tvc_app_live_deployment";
|
|
2977
|
+
const body = JSON.stringify(input);
|
|
2978
|
+
const stamp = await this.stamper.stamp(body);
|
|
2979
|
+
return {
|
|
2980
|
+
body: body,
|
|
2981
|
+
stamp: stamp,
|
|
2982
|
+
url: fullUrl,
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2509
2985
|
/**
|
|
2510
2986
|
* Sign a raw payload.
|
|
2511
2987
|
*
|
|
@@ -2606,6 +3082,106 @@ class TurnkeyClient {
|
|
|
2606
3082
|
url: fullUrl,
|
|
2607
3083
|
};
|
|
2608
3084
|
};
|
|
3085
|
+
/**
|
|
3086
|
+
* Construct receiver-side encrypted operator packages to claim a Spark transfer. Does not perform FROST signing.
|
|
3087
|
+
*
|
|
3088
|
+
* Sign the provided `TSparkClaimTransferBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/spark_claim_transfer).
|
|
3089
|
+
*
|
|
3090
|
+
* See also {@link stampSparkClaimTransfer}.
|
|
3091
|
+
*/
|
|
3092
|
+
this.sparkClaimTransfer = async (input) => {
|
|
3093
|
+
return this.request("/public/v1/submit/spark_claim_transfer", input);
|
|
3094
|
+
};
|
|
3095
|
+
/**
|
|
3096
|
+
* Produce a `SignedRequest` from `TSparkClaimTransferBody` by using the client's `stamp` function.
|
|
3097
|
+
*
|
|
3098
|
+
* See also {@link SparkClaimTransfer}.
|
|
3099
|
+
*/
|
|
3100
|
+
this.stampSparkClaimTransfer = async (input) => {
|
|
3101
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/spark_claim_transfer";
|
|
3102
|
+
const body = JSON.stringify(input);
|
|
3103
|
+
const stamp = await this.stamper.stamp(body);
|
|
3104
|
+
return {
|
|
3105
|
+
body: body,
|
|
3106
|
+
stamp: stamp,
|
|
3107
|
+
url: fullUrl,
|
|
3108
|
+
};
|
|
3109
|
+
};
|
|
3110
|
+
/**
|
|
3111
|
+
* Generate a Lightning preimage and distribute Feldman shares to operators for a Spark Lightning receive. Does not perform FROST signing.
|
|
3112
|
+
*
|
|
3113
|
+
* Sign the provided `TSparkPrepareLightningReceiveBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/spark_prepare_lightning_receive).
|
|
3114
|
+
*
|
|
3115
|
+
* See also {@link stampSparkPrepareLightningReceive}.
|
|
3116
|
+
*/
|
|
3117
|
+
this.sparkPrepareLightningReceive = async (input) => {
|
|
3118
|
+
return this.request("/public/v1/submit/spark_prepare_lightning_receive", input);
|
|
3119
|
+
};
|
|
3120
|
+
/**
|
|
3121
|
+
* Produce a `SignedRequest` from `TSparkPrepareLightningReceiveBody` by using the client's `stamp` function.
|
|
3122
|
+
*
|
|
3123
|
+
* See also {@link SparkPrepareLightningReceive}.
|
|
3124
|
+
*/
|
|
3125
|
+
this.stampSparkPrepareLightningReceive = async (input) => {
|
|
3126
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/spark_prepare_lightning_receive";
|
|
3127
|
+
const body = JSON.stringify(input);
|
|
3128
|
+
const stamp = await this.stamper.stamp(body);
|
|
3129
|
+
return {
|
|
3130
|
+
body: body,
|
|
3131
|
+
stamp: stamp,
|
|
3132
|
+
url: fullUrl,
|
|
3133
|
+
};
|
|
3134
|
+
};
|
|
3135
|
+
/**
|
|
3136
|
+
* Construct sender-side encrypted operator packages for a Spark BTC transfer. Does not perform FROST signing.
|
|
3137
|
+
*
|
|
3138
|
+
* Sign the provided `TSparkPrepareTransferBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/spark_prepare_transfer).
|
|
3139
|
+
*
|
|
3140
|
+
* See also {@link stampSparkPrepareTransfer}.
|
|
3141
|
+
*/
|
|
3142
|
+
this.sparkPrepareTransfer = async (input) => {
|
|
3143
|
+
return this.request("/public/v1/submit/spark_prepare_transfer", input);
|
|
3144
|
+
};
|
|
3145
|
+
/**
|
|
3146
|
+
* Produce a `SignedRequest` from `TSparkPrepareTransferBody` by using the client's `stamp` function.
|
|
3147
|
+
*
|
|
3148
|
+
* See also {@link SparkPrepareTransfer}.
|
|
3149
|
+
*/
|
|
3150
|
+
this.stampSparkPrepareTransfer = async (input) => {
|
|
3151
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/spark_prepare_transfer";
|
|
3152
|
+
const body = JSON.stringify(input);
|
|
3153
|
+
const stamp = await this.stamper.stamp(body);
|
|
3154
|
+
return {
|
|
3155
|
+
body: body,
|
|
3156
|
+
stamp: stamp,
|
|
3157
|
+
url: fullUrl,
|
|
3158
|
+
};
|
|
3159
|
+
};
|
|
3160
|
+
/**
|
|
3161
|
+
* Perform pure FROST partial signing for a Spark wallet. Produces partial signatures without constructing operator packages.
|
|
3162
|
+
*
|
|
3163
|
+
* Sign the provided `TSparkSignFrostBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/spark_sign_frost).
|
|
3164
|
+
*
|
|
3165
|
+
* See also {@link stampSparkSignFrost}.
|
|
3166
|
+
*/
|
|
3167
|
+
this.sparkSignFrost = async (input) => {
|
|
3168
|
+
return this.request("/public/v1/submit/spark_sign_frost", input);
|
|
3169
|
+
};
|
|
3170
|
+
/**
|
|
3171
|
+
* Produce a `SignedRequest` from `TSparkSignFrostBody` by using the client's `stamp` function.
|
|
3172
|
+
*
|
|
3173
|
+
* See also {@link SparkSignFrost}.
|
|
3174
|
+
*/
|
|
3175
|
+
this.stampSparkSignFrost = async (input) => {
|
|
3176
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/spark_sign_frost";
|
|
3177
|
+
const body = JSON.stringify(input);
|
|
3178
|
+
const stamp = await this.stamper.stamp(body);
|
|
3179
|
+
return {
|
|
3180
|
+
body: body,
|
|
3181
|
+
stamp: stamp,
|
|
3182
|
+
url: fullUrl,
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
2609
3185
|
/**
|
|
2610
3186
|
* Create a session for a user through stamping client side (API key, wallet client, or passkey client).
|
|
2611
3187
|
*
|
|
@@ -2981,6 +3557,56 @@ class TurnkeyClient {
|
|
|
2981
3557
|
url: fullUrl,
|
|
2982
3558
|
};
|
|
2983
3559
|
};
|
|
3560
|
+
/**
|
|
3561
|
+
* Refresh feature flags by triggering a DB read to flush the in-memory cache.
|
|
3562
|
+
*
|
|
3563
|
+
* Sign the provided `TRefreshFeatureFlagsBody` with the client's `stamp` function, and submit the request (POST /tkhq/api/v1/refresh_feature_flags).
|
|
3564
|
+
*
|
|
3565
|
+
* See also {@link stampRefreshFeatureFlags}.
|
|
3566
|
+
*/
|
|
3567
|
+
this.refreshFeatureFlags = async (input) => {
|
|
3568
|
+
return this.request("/tkhq/api/v1/refresh_feature_flags", input);
|
|
3569
|
+
};
|
|
3570
|
+
/**
|
|
3571
|
+
* Produce a `SignedRequest` from `TRefreshFeatureFlagsBody` by using the client's `stamp` function.
|
|
3572
|
+
*
|
|
3573
|
+
* See also {@link RefreshFeatureFlags}.
|
|
3574
|
+
*/
|
|
3575
|
+
this.stampRefreshFeatureFlags = async (input) => {
|
|
3576
|
+
const fullUrl = this.config.baseUrl + "/tkhq/api/v1/refresh_feature_flags";
|
|
3577
|
+
const body = JSON.stringify(input);
|
|
3578
|
+
const stamp = await this.stamper.stamp(body);
|
|
3579
|
+
return {
|
|
3580
|
+
body: body,
|
|
3581
|
+
stamp: stamp,
|
|
3582
|
+
url: fullUrl,
|
|
3583
|
+
};
|
|
3584
|
+
};
|
|
3585
|
+
/**
|
|
3586
|
+
* Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite.
|
|
3587
|
+
*
|
|
3588
|
+
* Sign the provided `TTestRateLimitsBody` with the client's `stamp` function, and submit the request (POST /tkhq/api/v1/test_rate_limits).
|
|
3589
|
+
*
|
|
3590
|
+
* See also {@link stampTestRateLimits}.
|
|
3591
|
+
*/
|
|
3592
|
+
this.testRateLimits = async (input) => {
|
|
3593
|
+
return this.request("/tkhq/api/v1/test_rate_limits", input);
|
|
3594
|
+
};
|
|
3595
|
+
/**
|
|
3596
|
+
* Produce a `SignedRequest` from `TTestRateLimitsBody` by using the client's `stamp` function.
|
|
3597
|
+
*
|
|
3598
|
+
* See also {@link TestRateLimits}.
|
|
3599
|
+
*/
|
|
3600
|
+
this.stampTestRateLimits = async (input) => {
|
|
3601
|
+
const fullUrl = this.config.baseUrl + "/tkhq/api/v1/test_rate_limits";
|
|
3602
|
+
const body = JSON.stringify(input);
|
|
3603
|
+
const stamp = await this.stamper.stamp(body);
|
|
3604
|
+
return {
|
|
3605
|
+
body: body,
|
|
3606
|
+
stamp: stamp,
|
|
3607
|
+
url: fullUrl,
|
|
3608
|
+
};
|
|
3609
|
+
};
|
|
2984
3610
|
if (!config.baseUrl) {
|
|
2985
3611
|
throw new Error(`Missing base URL. Please verify env vars.`);
|
|
2986
3612
|
}
|