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