@turnkey/http 1.3.0 → 2.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 +20 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +82 -37
- 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 +134 -59
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2523 -621
- 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 +134 -62
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +530 -113
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +245 -69
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/webauthn.d.ts.map +1 -1
- package/dist/webauthn.js +14 -0
- package/dist/webauthn.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @turnkey/http
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bb6ea0b: Update generated files
|
|
8
|
+
- new query endpoints to retrieve wallets (`/public/v1/query/list_wallets`)
|
|
9
|
+
- new query endpoint to retrieve wallet accounts (`/public/v1/query/list_wallet_accounts`)
|
|
10
|
+
|
|
11
|
+
## 2.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- Synced protos from mono
|
|
16
|
+
|
|
17
|
+
### Upgrade notes
|
|
18
|
+
|
|
19
|
+
- `signRawPayload` and `signTransaction` now expect a `signWith` param instead of `privateKeyId` previously
|
|
20
|
+
- `signRawPayload` and `signTransaction` have been updated to expect a new type: `ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2` and `ACTIVITY_TYPE_SIGN_TRANSACTION_V2`, respectively
|
|
21
|
+
- If you have policies authorizing `ACTIVITY_TYPE_SIGN_RAW_PAYLOAD` or `ACTIVITY_TYPE_SIGN_TRANSACTION` specifically, they will need to be updated to authorize `ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2` and `ACTIVITY_TYPE_SIGN_TRANSACTION_V2` (or better yet, update your policies to allow all signing actions categorically using policy resources and actions. See https://docs.turnkey.com/managing-policies/examples)
|
|
22
|
+
|
|
3
23
|
## 1.3.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -6,10 +6,13 @@ import type { TGetOrganizationBody, TGetOrganizationResponse } from "./public_ap
|
|
|
6
6
|
import type { TGetPolicyBody, TGetPolicyResponse } from "./public_api.fetcher";
|
|
7
7
|
import type { TGetPrivateKeyBody, TGetPrivateKeyResponse } from "./public_api.fetcher";
|
|
8
8
|
import type { TGetUserBody, TGetUserResponse } from "./public_api.fetcher";
|
|
9
|
+
import type { TGetWalletBody, TGetWalletResponse } from "./public_api.fetcher";
|
|
9
10
|
import type { TGetActivitiesBody, TGetActivitiesResponse } from "./public_api.fetcher";
|
|
10
11
|
import type { TGetPoliciesBody, TGetPoliciesResponse } from "./public_api.fetcher";
|
|
11
12
|
import type { TGetPrivateKeysBody, TGetPrivateKeysResponse } from "./public_api.fetcher";
|
|
12
13
|
import type { TGetUsersBody, TGetUsersResponse } from "./public_api.fetcher";
|
|
14
|
+
import type { TGetWalletAccountsBody, TGetWalletAccountsResponse } from "./public_api.fetcher";
|
|
15
|
+
import type { TGetWalletsBody, TGetWalletsResponse } from "./public_api.fetcher";
|
|
13
16
|
import type { TGetWhoamiBody, TGetWhoamiResponse } from "./public_api.fetcher";
|
|
14
17
|
import type { TApproveActivityBody, TApproveActivityResponse } from "./public_api.fetcher";
|
|
15
18
|
import type { TCreateApiKeysBody, TCreateApiKeysResponse } from "./public_api.fetcher";
|
|
@@ -29,14 +32,14 @@ import type { TDeleteAuthenticatorsBody, TDeleteAuthenticatorsResponse } from ".
|
|
|
29
32
|
import type { TDeleteInvitationBody, TDeleteInvitationResponse } from "./public_api.fetcher";
|
|
30
33
|
import type { TDeletePolicyBody, TDeletePolicyResponse } from "./public_api.fetcher";
|
|
31
34
|
import type { TExportPrivateKeyBody, TExportPrivateKeyResponse } from "./public_api.fetcher";
|
|
35
|
+
import type { TExportWalletBody, TExportWalletResponse } from "./public_api.fetcher";
|
|
32
36
|
import type { TInitUserEmailRecoveryBody, TInitUserEmailRecoveryResponse } from "./public_api.fetcher";
|
|
37
|
+
import type { TRecoverUserBody, TRecoverUserResponse } from "./public_api.fetcher";
|
|
33
38
|
import type { TRejectActivityBody, TRejectActivityResponse } from "./public_api.fetcher";
|
|
34
39
|
import type { TRemoveOrganizationFeatureBody, TRemoveOrganizationFeatureResponse } from "./public_api.fetcher";
|
|
35
40
|
import type { TSetOrganizationFeatureBody, TSetOrganizationFeatureResponse } from "./public_api.fetcher";
|
|
36
41
|
import type { TSignRawPayloadBody, TSignRawPayloadResponse } from "./public_api.fetcher";
|
|
37
|
-
import type { TSignRawPayloadV2Body, TSignRawPayloadV2Response } from "./public_api.fetcher";
|
|
38
42
|
import type { TSignTransactionBody, TSignTransactionResponse } from "./public_api.fetcher";
|
|
39
|
-
import type { TSignTransactionV2Body, TSignTransactionV2Response } from "./public_api.fetcher";
|
|
40
43
|
import type { TUpdateAllowedOriginsBody, TUpdateAllowedOriginsResponse } from "./public_api.fetcher";
|
|
41
44
|
import type { TUpdatePolicyBody, TUpdatePolicyResponse } from "./public_api.fetcher";
|
|
42
45
|
import type { TUpdatePrivateKeyTagBody, TUpdatePrivateKeyTagResponse } from "./public_api.fetcher";
|
|
@@ -146,6 +149,20 @@ export declare class TurnkeyClient {
|
|
|
146
149
|
* See also {@link GetUser}.
|
|
147
150
|
*/
|
|
148
151
|
stampGetUser: (input: TGetUserBody) => Promise<TSignedRequest>;
|
|
152
|
+
/**
|
|
153
|
+
* Get details about a Wallet
|
|
154
|
+
*
|
|
155
|
+
* Sign the provided `TGetWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet).
|
|
156
|
+
*
|
|
157
|
+
* See also {@link stampGetWallet}.
|
|
158
|
+
*/
|
|
159
|
+
getWallet: (input: TGetWalletBody) => Promise<TGetWalletResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Produce a `SignedRequest` from `TGetWalletBody` by using the client's `stamp` function.
|
|
162
|
+
*
|
|
163
|
+
* See also {@link GetWallet}.
|
|
164
|
+
*/
|
|
165
|
+
stampGetWallet: (input: TGetWalletBody) => Promise<TSignedRequest>;
|
|
149
166
|
/**
|
|
150
167
|
* List all Activities within an Organization
|
|
151
168
|
*
|
|
@@ -202,6 +219,34 @@ export declare class TurnkeyClient {
|
|
|
202
219
|
* See also {@link GetUsers}.
|
|
203
220
|
*/
|
|
204
221
|
stampGetUsers: (input: TGetUsersBody) => Promise<TSignedRequest>;
|
|
222
|
+
/**
|
|
223
|
+
* List all Accounts wirhin a Wallet
|
|
224
|
+
*
|
|
225
|
+
* Sign the provided `TGetWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallet_accounts).
|
|
226
|
+
*
|
|
227
|
+
* See also {@link stampGetWalletAccounts}.
|
|
228
|
+
*/
|
|
229
|
+
getWalletAccounts: (input: TGetWalletAccountsBody) => Promise<TGetWalletAccountsResponse>;
|
|
230
|
+
/**
|
|
231
|
+
* Produce a `SignedRequest` from `TGetWalletAccountsBody` by using the client's `stamp` function.
|
|
232
|
+
*
|
|
233
|
+
* See also {@link GetWalletAccounts}.
|
|
234
|
+
*/
|
|
235
|
+
stampGetWalletAccounts: (input: TGetWalletAccountsBody) => Promise<TSignedRequest>;
|
|
236
|
+
/**
|
|
237
|
+
* List all Wallets within an Organization
|
|
238
|
+
*
|
|
239
|
+
* Sign the provided `TGetWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallets).
|
|
240
|
+
*
|
|
241
|
+
* See also {@link stampGetWallets}.
|
|
242
|
+
*/
|
|
243
|
+
getWallets: (input: TGetWalletsBody) => Promise<TGetWalletsResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* Produce a `SignedRequest` from `TGetWalletsBody` by using the client's `stamp` function.
|
|
246
|
+
*
|
|
247
|
+
* See also {@link GetWallets}.
|
|
248
|
+
*/
|
|
249
|
+
stampGetWallets: (input: TGetWalletsBody) => Promise<TSignedRequest>;
|
|
205
250
|
/**
|
|
206
251
|
* Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users.
|
|
207
252
|
*
|
|
@@ -371,7 +416,7 @@ export declare class TurnkeyClient {
|
|
|
371
416
|
*/
|
|
372
417
|
stampCreateUsers: (input: TCreateUsersBody) => Promise<TSignedRequest>;
|
|
373
418
|
/**
|
|
374
|
-
* Create a Wallet
|
|
419
|
+
* Create a Wallet and derive addresses
|
|
375
420
|
*
|
|
376
421
|
* Sign the provided `TCreateWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet).
|
|
377
422
|
*
|
|
@@ -385,7 +430,7 @@ export declare class TurnkeyClient {
|
|
|
385
430
|
*/
|
|
386
431
|
stampCreateWallet: (input: TCreateWalletBody) => Promise<TSignedRequest>;
|
|
387
432
|
/**
|
|
388
|
-
*
|
|
433
|
+
* Derive additional addresses using an existing wallet
|
|
389
434
|
*
|
|
390
435
|
* Sign the provided `TCreateWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet_accounts).
|
|
391
436
|
*
|
|
@@ -429,7 +474,7 @@ export declare class TurnkeyClient {
|
|
|
429
474
|
/**
|
|
430
475
|
* Delete an existing Invitation
|
|
431
476
|
*
|
|
432
|
-
* Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/
|
|
477
|
+
* Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_invitation).
|
|
433
478
|
*
|
|
434
479
|
* See also {@link stampDeleteInvitation}.
|
|
435
480
|
*/
|
|
@@ -469,7 +514,21 @@ export declare class TurnkeyClient {
|
|
|
469
514
|
*/
|
|
470
515
|
stampExportPrivateKey: (input: TExportPrivateKeyBody) => Promise<TSignedRequest>;
|
|
471
516
|
/**
|
|
472
|
-
*
|
|
517
|
+
* Exports a Wallet
|
|
518
|
+
*
|
|
519
|
+
* Sign the provided `TExportWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/export_wallet).
|
|
520
|
+
*
|
|
521
|
+
* See also {@link stampExportWallet}.
|
|
522
|
+
*/
|
|
523
|
+
exportWallet: (input: TExportWalletBody) => Promise<TExportWalletResponse>;
|
|
524
|
+
/**
|
|
525
|
+
* Produce a `SignedRequest` from `TExportWalletBody` by using the client's `stamp` function.
|
|
526
|
+
*
|
|
527
|
+
* See also {@link ExportWallet}.
|
|
528
|
+
*/
|
|
529
|
+
stampExportWallet: (input: TExportWalletBody) => Promise<TSignedRequest>;
|
|
530
|
+
/**
|
|
531
|
+
* Initializes a new email recovery
|
|
473
532
|
*
|
|
474
533
|
* Sign the provided `TInitUserEmailRecoveryBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_user_email_recovery).
|
|
475
534
|
*
|
|
@@ -482,6 +541,20 @@ export declare class TurnkeyClient {
|
|
|
482
541
|
* See also {@link InitUserEmailRecovery}.
|
|
483
542
|
*/
|
|
484
543
|
stampInitUserEmailRecovery: (input: TInitUserEmailRecoveryBody) => Promise<TSignedRequest>;
|
|
544
|
+
/**
|
|
545
|
+
* Completes the process of recovering a user by adding an authenticator
|
|
546
|
+
*
|
|
547
|
+
* Sign the provided `TRecoverUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/recover_user).
|
|
548
|
+
*
|
|
549
|
+
* See also {@link stampRecoverUser}.
|
|
550
|
+
*/
|
|
551
|
+
recoverUser: (input: TRecoverUserBody) => Promise<TRecoverUserResponse>;
|
|
552
|
+
/**
|
|
553
|
+
* Produce a `SignedRequest` from `TRecoverUserBody` by using the client's `stamp` function.
|
|
554
|
+
*
|
|
555
|
+
* See also {@link RecoverUser}.
|
|
556
|
+
*/
|
|
557
|
+
stampRecoverUser: (input: TRecoverUserBody) => Promise<TSignedRequest>;
|
|
485
558
|
/**
|
|
486
559
|
* Reject an Activity
|
|
487
560
|
*
|
|
@@ -525,7 +598,7 @@ export declare class TurnkeyClient {
|
|
|
525
598
|
*/
|
|
526
599
|
stampSetOrganizationFeature: (input: TSetOrganizationFeatureBody) => Promise<TSignedRequest>;
|
|
527
600
|
/**
|
|
528
|
-
* Sign a raw payload
|
|
601
|
+
* Sign a raw payload
|
|
529
602
|
*
|
|
530
603
|
* Sign the provided `TSignRawPayloadBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload).
|
|
531
604
|
*
|
|
@@ -539,21 +612,7 @@ export declare class TurnkeyClient {
|
|
|
539
612
|
*/
|
|
540
613
|
stampSignRawPayload: (input: TSignRawPayloadBody) => Promise<TSignedRequest>;
|
|
541
614
|
/**
|
|
542
|
-
* Sign a
|
|
543
|
-
*
|
|
544
|
-
* Sign the provided `TSignRawPayloadV2Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload_v2).
|
|
545
|
-
*
|
|
546
|
-
* See also {@link stampSignRawPayloadV2}.
|
|
547
|
-
*/
|
|
548
|
-
signRawPayloadV2: (input: TSignRawPayloadV2Body) => Promise<TSignRawPayloadV2Response>;
|
|
549
|
-
/**
|
|
550
|
-
* Produce a `SignedRequest` from `TSignRawPayloadV2Body` by using the client's `stamp` function.
|
|
551
|
-
*
|
|
552
|
-
* See also {@link SignRawPayloadV2}.
|
|
553
|
-
*/
|
|
554
|
-
stampSignRawPayloadV2: (input: TSignRawPayloadV2Body) => Promise<TSignedRequest>;
|
|
555
|
-
/**
|
|
556
|
-
* Sign a transaction with a Private Key
|
|
615
|
+
* Sign a transaction
|
|
557
616
|
*
|
|
558
617
|
* Sign the provided `TSignTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction).
|
|
559
618
|
*
|
|
@@ -567,21 +626,7 @@ export declare class TurnkeyClient {
|
|
|
567
626
|
*/
|
|
568
627
|
stampSignTransaction: (input: TSignTransactionBody) => Promise<TSignedRequest>;
|
|
569
628
|
/**
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
* Sign the provided `TSignTransactionV2Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction_v2).
|
|
573
|
-
*
|
|
574
|
-
* See also {@link stampSignTransactionV2}.
|
|
575
|
-
*/
|
|
576
|
-
signTransactionV2: (input: TSignTransactionV2Body) => Promise<TSignTransactionV2Response>;
|
|
577
|
-
/**
|
|
578
|
-
* Produce a `SignedRequest` from `TSignTransactionV2Body` by using the client's `stamp` function.
|
|
579
|
-
*
|
|
580
|
-
* See also {@link SignTransactionV2}.
|
|
581
|
-
*/
|
|
582
|
-
stampSignTransactionV2: (input: TSignTransactionV2Body) => Promise<TSignedRequest>;
|
|
583
|
-
/**
|
|
584
|
-
* Update the allowable origins for credentials and requests
|
|
629
|
+
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations.
|
|
585
630
|
*
|
|
586
631
|
* Sign the provided `TUpdateAllowedOriginsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_allowed_origins).
|
|
587
632
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.client.d.ts","sourceRoot":"","sources":["../../../../../../src/__generated__/services/coordinator/public/v1/public_api.client.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,WAAW,EACX,cAAc,EACd,QAAQ,EAET,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,sBAAsB,CA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MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"public_api.client.d.ts","sourceRoot":"","sources":["../../../../../../src/__generated__/services/coordinator/public/v1/public_api.client.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,WAAW,EACX,cAAc,EACd,QAAQ,EAET,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,qBAAqB,EACrB,yBA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F;;;;;;OAMG;IACH,oBAAoB,UACX,yBAAyB,KAC/B,QAAQ,6BAA6B,CAAC,CAEvC;IAEF;;;;OAIG;IACH,yBAAyB,UAChB,yBAAyB,KAC/B,QAAQ,cAAc,CAAC,CAUxB;IAEF;;;;;;OAMG;IACH,YAAY,UACH,iBAAiB,KACvB,QAAQ,qBAAqB,CAAC,CAE/B;IAEF;;;;OAIG;IACH,iBAAiB,UACR,iBAAiB,KACvB,QAAQ,cAAc,CAAC,CASxB;IAEF;;;;;;OAMG;IACH,mBAAmB,UACV,wBAAwB,KAC9B,QAAQ,4BAA4B,CAAC,CAEtC;IAEF;;;;OAIG;IACH,wBAAwB,UACf,wBAAwB,KAC9B,QAAQ,cAAc,CAAC,CAUxB;IAEF;;;;;;OAMG;IACH,gBAAgB,UACP,qBAAqB,KAC3B,QAAQ,yBAAyB,CAAC,CAEnC;IAEF;;;;OAIG;IACH,qBAAqB,UACZ,qBAAqB,KAC3B,QAAQ,cAAc,CAAC,CAUxB;IAEF;;;;;;OAMG;IACH,UAAU,UAAiB,eAAe,KAAG,QAAQ,mBAAmB,CAAC,CAEvE;IAEF;;;;OAIG;IACH,eAAe,UAAiB,eAAe,KAAG,QAAQ,cAAc,CAAC,CASvE;IAEF;;;;;;OAMG;IACH,aAAa,UACJ,kBAAkB,KACxB,QAAQ,sBAAsB,CAAC,CAEhC;IAEF;;;;OAIG;IACH,kBAAkB,UACT,kBAAkB,KACxB,QAAQ,cAAc,CAAC,CASxB;CACH"}
|
|
@@ -180,6 +180,31 @@ class TurnkeyClient {
|
|
|
180
180
|
url: fullUrl,
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Get details about a Wallet
|
|
185
|
+
*
|
|
186
|
+
* Sign the provided `TGetWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet).
|
|
187
|
+
*
|
|
188
|
+
* See also {@link stampGetWallet}.
|
|
189
|
+
*/
|
|
190
|
+
this.getWallet = async (input) => {
|
|
191
|
+
return this.request("/public/v1/query/get_wallet", input);
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Produce a `SignedRequest` from `TGetWalletBody` by using the client's `stamp` function.
|
|
195
|
+
*
|
|
196
|
+
* See also {@link GetWallet}.
|
|
197
|
+
*/
|
|
198
|
+
this.stampGetWallet = async (input) => {
|
|
199
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet";
|
|
200
|
+
const body = JSON.stringify(input);
|
|
201
|
+
const stamp = await this.stamper.stamp(body);
|
|
202
|
+
return {
|
|
203
|
+
body: body,
|
|
204
|
+
stamp: stamp,
|
|
205
|
+
url: fullUrl,
|
|
206
|
+
};
|
|
207
|
+
};
|
|
183
208
|
/**
|
|
184
209
|
* List all Activities within an Organization
|
|
185
210
|
*
|
|
@@ -280,6 +305,56 @@ class TurnkeyClient {
|
|
|
280
305
|
url: fullUrl,
|
|
281
306
|
};
|
|
282
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* List all Accounts wirhin a Wallet
|
|
310
|
+
*
|
|
311
|
+
* Sign the provided `TGetWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallet_accounts).
|
|
312
|
+
*
|
|
313
|
+
* See also {@link stampGetWalletAccounts}.
|
|
314
|
+
*/
|
|
315
|
+
this.getWalletAccounts = async (input) => {
|
|
316
|
+
return this.request("/public/v1/query/list_wallet_accounts", input);
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Produce a `SignedRequest` from `TGetWalletAccountsBody` by using the client's `stamp` function.
|
|
320
|
+
*
|
|
321
|
+
* See also {@link GetWalletAccounts}.
|
|
322
|
+
*/
|
|
323
|
+
this.stampGetWalletAccounts = async (input) => {
|
|
324
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallet_accounts";
|
|
325
|
+
const body = JSON.stringify(input);
|
|
326
|
+
const stamp = await this.stamper.stamp(body);
|
|
327
|
+
return {
|
|
328
|
+
body: body,
|
|
329
|
+
stamp: stamp,
|
|
330
|
+
url: fullUrl,
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* List all Wallets within an Organization
|
|
335
|
+
*
|
|
336
|
+
* Sign the provided `TGetWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallets).
|
|
337
|
+
*
|
|
338
|
+
* See also {@link stampGetWallets}.
|
|
339
|
+
*/
|
|
340
|
+
this.getWallets = async (input) => {
|
|
341
|
+
return this.request("/public/v1/query/list_wallets", input);
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Produce a `SignedRequest` from `TGetWalletsBody` by using the client's `stamp` function.
|
|
345
|
+
*
|
|
346
|
+
* See also {@link GetWallets}.
|
|
347
|
+
*/
|
|
348
|
+
this.stampGetWallets = async (input) => {
|
|
349
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallets";
|
|
350
|
+
const body = JSON.stringify(input);
|
|
351
|
+
const stamp = await this.stamper.stamp(body);
|
|
352
|
+
return {
|
|
353
|
+
body: body,
|
|
354
|
+
stamp: stamp,
|
|
355
|
+
url: fullUrl,
|
|
356
|
+
};
|
|
357
|
+
};
|
|
283
358
|
/**
|
|
284
359
|
* Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users.
|
|
285
360
|
*
|
|
@@ -581,7 +656,7 @@ class TurnkeyClient {
|
|
|
581
656
|
};
|
|
582
657
|
};
|
|
583
658
|
/**
|
|
584
|
-
* Create a Wallet
|
|
659
|
+
* Create a Wallet and derive addresses
|
|
585
660
|
*
|
|
586
661
|
* Sign the provided `TCreateWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet).
|
|
587
662
|
*
|
|
@@ -606,7 +681,7 @@ class TurnkeyClient {
|
|
|
606
681
|
};
|
|
607
682
|
};
|
|
608
683
|
/**
|
|
609
|
-
*
|
|
684
|
+
* Derive additional addresses using an existing wallet
|
|
610
685
|
*
|
|
611
686
|
* Sign the provided `TCreateWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet_accounts).
|
|
612
687
|
*
|
|
@@ -683,12 +758,12 @@ class TurnkeyClient {
|
|
|
683
758
|
/**
|
|
684
759
|
* Delete an existing Invitation
|
|
685
760
|
*
|
|
686
|
-
* Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/
|
|
761
|
+
* Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_invitation).
|
|
687
762
|
*
|
|
688
763
|
* See also {@link stampDeleteInvitation}.
|
|
689
764
|
*/
|
|
690
765
|
this.deleteInvitation = async (input) => {
|
|
691
|
-
return this.request("/public/v1/submit/
|
|
766
|
+
return this.request("/public/v1/submit/delete_invitation", input);
|
|
692
767
|
};
|
|
693
768
|
/**
|
|
694
769
|
* Produce a `SignedRequest` from `TDeleteInvitationBody` by using the client's `stamp` function.
|
|
@@ -696,7 +771,7 @@ class TurnkeyClient {
|
|
|
696
771
|
* See also {@link DeleteInvitation}.
|
|
697
772
|
*/
|
|
698
773
|
this.stampDeleteInvitation = async (input) => {
|
|
699
|
-
const fullUrl = this.config.baseUrl + "/public/v1/submit/
|
|
774
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_invitation";
|
|
700
775
|
const body = JSON.stringify(input);
|
|
701
776
|
const stamp = await this.stamper.stamp(body);
|
|
702
777
|
return {
|
|
@@ -756,7 +831,32 @@ class TurnkeyClient {
|
|
|
756
831
|
};
|
|
757
832
|
};
|
|
758
833
|
/**
|
|
759
|
-
*
|
|
834
|
+
* Exports a Wallet
|
|
835
|
+
*
|
|
836
|
+
* Sign the provided `TExportWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/export_wallet).
|
|
837
|
+
*
|
|
838
|
+
* See also {@link stampExportWallet}.
|
|
839
|
+
*/
|
|
840
|
+
this.exportWallet = async (input) => {
|
|
841
|
+
return this.request("/public/v1/submit/export_wallet", input);
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Produce a `SignedRequest` from `TExportWalletBody` by using the client's `stamp` function.
|
|
845
|
+
*
|
|
846
|
+
* See also {@link ExportWallet}.
|
|
847
|
+
*/
|
|
848
|
+
this.stampExportWallet = async (input) => {
|
|
849
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/export_wallet";
|
|
850
|
+
const body = JSON.stringify(input);
|
|
851
|
+
const stamp = await this.stamper.stamp(body);
|
|
852
|
+
return {
|
|
853
|
+
body: body,
|
|
854
|
+
stamp: stamp,
|
|
855
|
+
url: fullUrl,
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* Initializes a new email recovery
|
|
760
860
|
*
|
|
761
861
|
* Sign the provided `TInitUserEmailRecoveryBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_user_email_recovery).
|
|
762
862
|
*
|
|
@@ -780,6 +880,31 @@ class TurnkeyClient {
|
|
|
780
880
|
url: fullUrl,
|
|
781
881
|
};
|
|
782
882
|
};
|
|
883
|
+
/**
|
|
884
|
+
* Completes the process of recovering a user by adding an authenticator
|
|
885
|
+
*
|
|
886
|
+
* Sign the provided `TRecoverUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/recover_user).
|
|
887
|
+
*
|
|
888
|
+
* See also {@link stampRecoverUser}.
|
|
889
|
+
*/
|
|
890
|
+
this.recoverUser = async (input) => {
|
|
891
|
+
return this.request("/public/v1/submit/recover_user", input);
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* Produce a `SignedRequest` from `TRecoverUserBody` by using the client's `stamp` function.
|
|
895
|
+
*
|
|
896
|
+
* See also {@link RecoverUser}.
|
|
897
|
+
*/
|
|
898
|
+
this.stampRecoverUser = async (input) => {
|
|
899
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/recover_user";
|
|
900
|
+
const body = JSON.stringify(input);
|
|
901
|
+
const stamp = await this.stamper.stamp(body);
|
|
902
|
+
return {
|
|
903
|
+
body: body,
|
|
904
|
+
stamp: stamp,
|
|
905
|
+
url: fullUrl,
|
|
906
|
+
};
|
|
907
|
+
};
|
|
783
908
|
/**
|
|
784
909
|
* Reject an Activity
|
|
785
910
|
*
|
|
@@ -856,7 +981,7 @@ class TurnkeyClient {
|
|
|
856
981
|
};
|
|
857
982
|
};
|
|
858
983
|
/**
|
|
859
|
-
* Sign a raw payload
|
|
984
|
+
* Sign a raw payload
|
|
860
985
|
*
|
|
861
986
|
* Sign the provided `TSignRawPayloadBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload).
|
|
862
987
|
*
|
|
@@ -881,32 +1006,7 @@ class TurnkeyClient {
|
|
|
881
1006
|
};
|
|
882
1007
|
};
|
|
883
1008
|
/**
|
|
884
|
-
* Sign a
|
|
885
|
-
*
|
|
886
|
-
* Sign the provided `TSignRawPayloadV2Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload_v2).
|
|
887
|
-
*
|
|
888
|
-
* See also {@link stampSignRawPayloadV2}.
|
|
889
|
-
*/
|
|
890
|
-
this.signRawPayloadV2 = async (input) => {
|
|
891
|
-
return this.request("/public/v1/submit/sign_raw_payload_v2", input);
|
|
892
|
-
};
|
|
893
|
-
/**
|
|
894
|
-
* Produce a `SignedRequest` from `TSignRawPayloadV2Body` by using the client's `stamp` function.
|
|
895
|
-
*
|
|
896
|
-
* See also {@link SignRawPayloadV2}.
|
|
897
|
-
*/
|
|
898
|
-
this.stampSignRawPayloadV2 = async (input) => {
|
|
899
|
-
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payload_v2";
|
|
900
|
-
const body = JSON.stringify(input);
|
|
901
|
-
const stamp = await this.stamper.stamp(body);
|
|
902
|
-
return {
|
|
903
|
-
body: body,
|
|
904
|
-
stamp: stamp,
|
|
905
|
-
url: fullUrl,
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
/**
|
|
909
|
-
* Sign a transaction with a Private Key
|
|
1009
|
+
* Sign a transaction
|
|
910
1010
|
*
|
|
911
1011
|
* Sign the provided `TSignTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction).
|
|
912
1012
|
*
|
|
@@ -931,32 +1031,7 @@ class TurnkeyClient {
|
|
|
931
1031
|
};
|
|
932
1032
|
};
|
|
933
1033
|
/**
|
|
934
|
-
*
|
|
935
|
-
*
|
|
936
|
-
* Sign the provided `TSignTransactionV2Body` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction_v2).
|
|
937
|
-
*
|
|
938
|
-
* See also {@link stampSignTransactionV2}.
|
|
939
|
-
*/
|
|
940
|
-
this.signTransactionV2 = async (input) => {
|
|
941
|
-
return this.request("/public/v1/submit/sign_transaction_v2", input);
|
|
942
|
-
};
|
|
943
|
-
/**
|
|
944
|
-
* Produce a `SignedRequest` from `TSignTransactionV2Body` by using the client's `stamp` function.
|
|
945
|
-
*
|
|
946
|
-
* See also {@link SignTransactionV2}.
|
|
947
|
-
*/
|
|
948
|
-
this.stampSignTransactionV2 = async (input) => {
|
|
949
|
-
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_transaction_v2";
|
|
950
|
-
const body = JSON.stringify(input);
|
|
951
|
-
const stamp = await this.stamper.stamp(body);
|
|
952
|
-
return {
|
|
953
|
-
body: body,
|
|
954
|
-
stamp: stamp,
|
|
955
|
-
url: fullUrl,
|
|
956
|
-
};
|
|
957
|
-
};
|
|
958
|
-
/**
|
|
959
|
-
* Update the allowable origins for credentials and requests
|
|
1034
|
+
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations.
|
|
960
1035
|
*
|
|
961
1036
|
* Sign the provided `TUpdateAllowedOriginsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_allowed_origins).
|
|
962
1037
|
*
|