@turnkey/sdk-browser 1.11.2 → 1.12.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.
@@ -15,12 +15,12 @@ class TurnkeySDKClientBase {
15
15
  });
16
16
  };
17
17
  this.stampGetActivity = async (input) => {
18
- if (!this.config.stamper) {
18
+ if (!this.stamper) {
19
19
  return undefined;
20
20
  }
21
21
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_activity";
22
22
  const body = JSON.stringify(input);
23
- const stamp = await this.config.stamper.stamp(body);
23
+ const stamp = await this.stamper.stamp(body);
24
24
  return {
25
25
  body: body,
26
26
  stamp: stamp,
@@ -34,12 +34,12 @@ class TurnkeySDKClientBase {
34
34
  });
35
35
  };
36
36
  this.stampGetApiKey = async (input) => {
37
- if (!this.config.stamper) {
37
+ if (!this.stamper) {
38
38
  return undefined;
39
39
  }
40
40
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_key";
41
41
  const body = JSON.stringify(input);
42
- const stamp = await this.config.stamper.stamp(body);
42
+ const stamp = await this.stamper.stamp(body);
43
43
  return {
44
44
  body: body,
45
45
  stamp: stamp,
@@ -53,12 +53,12 @@ class TurnkeySDKClientBase {
53
53
  });
54
54
  };
55
55
  this.stampGetApiKeys = async (input) => {
56
- if (!this.config.stamper) {
56
+ if (!this.stamper) {
57
57
  return undefined;
58
58
  }
59
59
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_keys";
60
60
  const body = JSON.stringify(input);
61
- const stamp = await this.config.stamper.stamp(body);
61
+ const stamp = await this.stamper.stamp(body);
62
62
  return {
63
63
  body: body,
64
64
  stamp: stamp,
@@ -72,12 +72,12 @@ class TurnkeySDKClientBase {
72
72
  });
73
73
  };
74
74
  this.stampGetAttestationDocument = async (input) => {
75
- if (!this.config.stamper) {
75
+ if (!this.stamper) {
76
76
  return undefined;
77
77
  }
78
78
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_attestation";
79
79
  const body = JSON.stringify(input);
80
- const stamp = await this.config.stamper.stamp(body);
80
+ const stamp = await this.stamper.stamp(body);
81
81
  return {
82
82
  body: body,
83
83
  stamp: stamp,
@@ -91,12 +91,12 @@ class TurnkeySDKClientBase {
91
91
  });
92
92
  };
93
93
  this.stampGetAuthenticator = async (input) => {
94
- if (!this.config.stamper) {
94
+ if (!this.stamper) {
95
95
  return undefined;
96
96
  }
97
97
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticator";
98
98
  const body = JSON.stringify(input);
99
- const stamp = await this.config.stamper.stamp(body);
99
+ const stamp = await this.stamper.stamp(body);
100
100
  return {
101
101
  body: body,
102
102
  stamp: stamp,
@@ -110,12 +110,12 @@ class TurnkeySDKClientBase {
110
110
  });
111
111
  };
112
112
  this.stampGetAuthenticators = async (input) => {
113
- if (!this.config.stamper) {
113
+ if (!this.stamper) {
114
114
  return undefined;
115
115
  }
116
116
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticators";
117
117
  const body = JSON.stringify(input);
118
- const stamp = await this.config.stamper.stamp(body);
118
+ const stamp = await this.stamper.stamp(body);
119
119
  return {
120
120
  body: body,
121
121
  stamp: stamp,
@@ -129,12 +129,12 @@ class TurnkeySDKClientBase {
129
129
  });
130
130
  };
131
131
  this.stampGetOauthProviders = async (input) => {
132
- if (!this.config.stamper) {
132
+ if (!this.stamper) {
133
133
  return undefined;
134
134
  }
135
135
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth_providers";
136
136
  const body = JSON.stringify(input);
137
- const stamp = await this.config.stamper.stamp(body);
137
+ const stamp = await this.stamper.stamp(body);
138
138
  return {
139
139
  body: body,
140
140
  stamp: stamp,
@@ -148,12 +148,12 @@ class TurnkeySDKClientBase {
148
148
  });
149
149
  };
150
150
  this.stampGetOrganization = async (input) => {
151
- if (!this.config.stamper) {
151
+ if (!this.stamper) {
152
152
  return undefined;
153
153
  }
154
154
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization";
155
155
  const body = JSON.stringify(input);
156
- const stamp = await this.config.stamper.stamp(body);
156
+ const stamp = await this.stamper.stamp(body);
157
157
  return {
158
158
  body: body,
159
159
  stamp: stamp,
@@ -167,12 +167,12 @@ class TurnkeySDKClientBase {
167
167
  });
168
168
  };
169
169
  this.stampGetOrganizationConfigs = async (input) => {
170
- if (!this.config.stamper) {
170
+ if (!this.stamper) {
171
171
  return undefined;
172
172
  }
173
173
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization_configs";
174
174
  const body = JSON.stringify(input);
175
- const stamp = await this.config.stamper.stamp(body);
175
+ const stamp = await this.stamper.stamp(body);
176
176
  return {
177
177
  body: body,
178
178
  stamp: stamp,
@@ -186,12 +186,12 @@ class TurnkeySDKClientBase {
186
186
  });
187
187
  };
188
188
  this.stampGetPolicy = async (input) => {
189
- if (!this.config.stamper) {
189
+ if (!this.stamper) {
190
190
  return undefined;
191
191
  }
192
192
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy";
193
193
  const body = JSON.stringify(input);
194
- const stamp = await this.config.stamper.stamp(body);
194
+ const stamp = await this.stamper.stamp(body);
195
195
  return {
196
196
  body: body,
197
197
  stamp: stamp,
@@ -205,12 +205,12 @@ class TurnkeySDKClientBase {
205
205
  });
206
206
  };
207
207
  this.stampGetPrivateKey = async (input) => {
208
- if (!this.config.stamper) {
208
+ if (!this.stamper) {
209
209
  return undefined;
210
210
  }
211
211
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_private_key";
212
212
  const body = JSON.stringify(input);
213
- const stamp = await this.config.stamper.stamp(body);
213
+ const stamp = await this.stamper.stamp(body);
214
214
  return {
215
215
  body: body,
216
216
  stamp: stamp,
@@ -224,12 +224,12 @@ class TurnkeySDKClientBase {
224
224
  });
225
225
  };
226
226
  this.stampGetUser = async (input) => {
227
- if (!this.config.stamper) {
227
+ if (!this.stamper) {
228
228
  return undefined;
229
229
  }
230
230
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_user";
231
231
  const body = JSON.stringify(input);
232
- const stamp = await this.config.stamper.stamp(body);
232
+ const stamp = await this.stamper.stamp(body);
233
233
  return {
234
234
  body: body,
235
235
  stamp: stamp,
@@ -243,12 +243,12 @@ class TurnkeySDKClientBase {
243
243
  });
244
244
  };
245
245
  this.stampGetWallet = async (input) => {
246
- if (!this.config.stamper) {
246
+ if (!this.stamper) {
247
247
  return undefined;
248
248
  }
249
249
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet";
250
250
  const body = JSON.stringify(input);
251
- const stamp = await this.config.stamper.stamp(body);
251
+ const stamp = await this.stamper.stamp(body);
252
252
  return {
253
253
  body: body,
254
254
  stamp: stamp,
@@ -262,12 +262,12 @@ class TurnkeySDKClientBase {
262
262
  });
263
263
  };
264
264
  this.stampGetActivities = async (input) => {
265
- if (!this.config.stamper) {
265
+ if (!this.stamper) {
266
266
  return undefined;
267
267
  }
268
268
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_activities";
269
269
  const body = JSON.stringify(input);
270
- const stamp = await this.config.stamper.stamp(body);
270
+ const stamp = await this.stamper.stamp(body);
271
271
  return {
272
272
  body: body,
273
273
  stamp: stamp,
@@ -281,12 +281,12 @@ class TurnkeySDKClientBase {
281
281
  });
282
282
  };
283
283
  this.stampGetPolicies = async (input) => {
284
- if (!this.config.stamper) {
284
+ if (!this.stamper) {
285
285
  return undefined;
286
286
  }
287
287
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_policies";
288
288
  const body = JSON.stringify(input);
289
- const stamp = await this.config.stamper.stamp(body);
289
+ const stamp = await this.stamper.stamp(body);
290
290
  return {
291
291
  body: body,
292
292
  stamp: stamp,
@@ -300,12 +300,12 @@ class TurnkeySDKClientBase {
300
300
  });
301
301
  };
302
302
  this.stampListPrivateKeyTags = async (input) => {
303
- if (!this.config.stamper) {
303
+ if (!this.stamper) {
304
304
  return undefined;
305
305
  }
306
306
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_key_tags";
307
307
  const body = JSON.stringify(input);
308
- const stamp = await this.config.stamper.stamp(body);
308
+ const stamp = await this.stamper.stamp(body);
309
309
  return {
310
310
  body: body,
311
311
  stamp: stamp,
@@ -319,12 +319,12 @@ class TurnkeySDKClientBase {
319
319
  });
320
320
  };
321
321
  this.stampGetPrivateKeys = async (input) => {
322
- if (!this.config.stamper) {
322
+ if (!this.stamper) {
323
323
  return undefined;
324
324
  }
325
325
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_keys";
326
326
  const body = JSON.stringify(input);
327
- const stamp = await this.config.stamper.stamp(body);
327
+ const stamp = await this.stamper.stamp(body);
328
328
  return {
329
329
  body: body,
330
330
  stamp: stamp,
@@ -338,12 +338,12 @@ class TurnkeySDKClientBase {
338
338
  });
339
339
  };
340
340
  this.stampGetSubOrgIds = async (input) => {
341
- if (!this.config.stamper) {
341
+ if (!this.stamper) {
342
342
  return undefined;
343
343
  }
344
344
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_suborgs";
345
345
  const body = JSON.stringify(input);
346
- const stamp = await this.config.stamper.stamp(body);
346
+ const stamp = await this.stamper.stamp(body);
347
347
  return {
348
348
  body: body,
349
349
  stamp: stamp,
@@ -357,12 +357,12 @@ class TurnkeySDKClientBase {
357
357
  });
358
358
  };
359
359
  this.stampListUserTags = async (input) => {
360
- if (!this.config.stamper) {
360
+ if (!this.stamper) {
361
361
  return undefined;
362
362
  }
363
363
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_user_tags";
364
364
  const body = JSON.stringify(input);
365
- const stamp = await this.config.stamper.stamp(body);
365
+ const stamp = await this.stamper.stamp(body);
366
366
  return {
367
367
  body: body,
368
368
  stamp: stamp,
@@ -376,12 +376,12 @@ class TurnkeySDKClientBase {
376
376
  });
377
377
  };
378
378
  this.stampGetUsers = async (input) => {
379
- if (!this.config.stamper) {
379
+ if (!this.stamper) {
380
380
  return undefined;
381
381
  }
382
382
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_users";
383
383
  const body = JSON.stringify(input);
384
- const stamp = await this.config.stamper.stamp(body);
384
+ const stamp = await this.stamper.stamp(body);
385
385
  return {
386
386
  body: body,
387
387
  stamp: stamp,
@@ -395,12 +395,12 @@ class TurnkeySDKClientBase {
395
395
  });
396
396
  };
397
397
  this.stampGetVerifiedSubOrgIds = async (input) => {
398
- if (!this.config.stamper) {
398
+ if (!this.stamper) {
399
399
  return undefined;
400
400
  }
401
401
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_verified_suborgs";
402
402
  const body = JSON.stringify(input);
403
- const stamp = await this.config.stamper.stamp(body);
403
+ const stamp = await this.stamper.stamp(body);
404
404
  return {
405
405
  body: body,
406
406
  stamp: stamp,
@@ -414,12 +414,12 @@ class TurnkeySDKClientBase {
414
414
  });
415
415
  };
416
416
  this.stampGetWalletAccounts = async (input) => {
417
- if (!this.config.stamper) {
417
+ if (!this.stamper) {
418
418
  return undefined;
419
419
  }
420
420
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallet_accounts";
421
421
  const body = JSON.stringify(input);
422
- const stamp = await this.config.stamper.stamp(body);
422
+ const stamp = await this.stamper.stamp(body);
423
423
  return {
424
424
  body: body,
425
425
  stamp: stamp,
@@ -433,12 +433,12 @@ class TurnkeySDKClientBase {
433
433
  });
434
434
  };
435
435
  this.stampGetWallets = async (input) => {
436
- if (!this.config.stamper) {
436
+ if (!this.stamper) {
437
437
  return undefined;
438
438
  }
439
439
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallets";
440
440
  const body = JSON.stringify(input);
441
- const stamp = await this.config.stamper.stamp(body);
441
+ const stamp = await this.stamper.stamp(body);
442
442
  return {
443
443
  body: body,
444
444
  stamp: stamp,
@@ -452,12 +452,12 @@ class TurnkeySDKClientBase {
452
452
  });
453
453
  };
454
454
  this.stampGetWhoami = async (input) => {
455
- if (!this.config.stamper) {
455
+ if (!this.stamper) {
456
456
  return undefined;
457
457
  }
458
458
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/whoami";
459
459
  const body = JSON.stringify(input);
460
- const stamp = await this.config.stamper.stamp(body);
460
+ const stamp = await this.stamper.stamp(body);
461
461
  return {
462
462
  body: body,
463
463
  stamp: stamp,
@@ -477,12 +477,12 @@ class TurnkeySDKClientBase {
477
477
  });
478
478
  };
479
479
  this.stampApproveActivity = async (input) => {
480
- if (!this.config.stamper) {
480
+ if (!this.stamper) {
481
481
  return undefined;
482
482
  }
483
483
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/approve_activity";
484
484
  const body = JSON.stringify(input);
485
- const stamp = await this.config.stamper.stamp(body);
485
+ const stamp = await this.stamper.stamp(body);
486
486
  return {
487
487
  body: body,
488
488
  stamp: stamp,
@@ -502,12 +502,12 @@ class TurnkeySDKClientBase {
502
502
  }, "createApiKeysResult");
503
503
  };
504
504
  this.stampCreateApiKeys = async (input) => {
505
- if (!this.config.stamper) {
505
+ if (!this.stamper) {
506
506
  return undefined;
507
507
  }
508
508
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_keys";
509
509
  const body = JSON.stringify(input);
510
- const stamp = await this.config.stamper.stamp(body);
510
+ const stamp = await this.stamper.stamp(body);
511
511
  return {
512
512
  body: body,
513
513
  stamp: stamp,
@@ -527,12 +527,12 @@ class TurnkeySDKClientBase {
527
527
  }, "createApiOnlyUsersResult");
528
528
  };
529
529
  this.stampCreateApiOnlyUsers = async (input) => {
530
- if (!this.config.stamper) {
530
+ if (!this.stamper) {
531
531
  return undefined;
532
532
  }
533
533
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users";
534
534
  const body = JSON.stringify(input);
535
- const stamp = await this.config.stamper.stamp(body);
535
+ const stamp = await this.stamper.stamp(body);
536
536
  return {
537
537
  body: body,
538
538
  stamp: stamp,
@@ -552,12 +552,12 @@ class TurnkeySDKClientBase {
552
552
  }, "createAuthenticatorsResult");
553
553
  };
554
554
  this.stampCreateAuthenticators = async (input) => {
555
- if (!this.config.stamper) {
555
+ if (!this.stamper) {
556
556
  return undefined;
557
557
  }
558
558
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_authenticators";
559
559
  const body = JSON.stringify(input);
560
- const stamp = await this.config.stamper.stamp(body);
560
+ const stamp = await this.stamper.stamp(body);
561
561
  return {
562
562
  body: body,
563
563
  stamp: stamp,
@@ -577,12 +577,12 @@ class TurnkeySDKClientBase {
577
577
  }, "createInvitationsResult");
578
578
  };
579
579
  this.stampCreateInvitations = async (input) => {
580
- if (!this.config.stamper) {
580
+ if (!this.stamper) {
581
581
  return undefined;
582
582
  }
583
583
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_invitations";
584
584
  const body = JSON.stringify(input);
585
- const stamp = await this.config.stamper.stamp(body);
585
+ const stamp = await this.stamper.stamp(body);
586
586
  return {
587
587
  body: body,
588
588
  stamp: stamp,
@@ -602,12 +602,12 @@ class TurnkeySDKClientBase {
602
602
  }, "createOauthProvidersResult");
603
603
  };
604
604
  this.stampCreateOauthProviders = async (input) => {
605
- if (!this.config.stamper) {
605
+ if (!this.stamper) {
606
606
  return undefined;
607
607
  }
608
608
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_oauth_providers";
609
609
  const body = JSON.stringify(input);
610
- const stamp = await this.config.stamper.stamp(body);
610
+ const stamp = await this.stamper.stamp(body);
611
611
  return {
612
612
  body: body,
613
613
  stamp: stamp,
@@ -627,12 +627,12 @@ class TurnkeySDKClientBase {
627
627
  }, "createPoliciesResult");
628
628
  };
629
629
  this.stampCreatePolicies = async (input) => {
630
- if (!this.config.stamper) {
630
+ if (!this.stamper) {
631
631
  return undefined;
632
632
  }
633
633
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_policies";
634
634
  const body = JSON.stringify(input);
635
- const stamp = await this.config.stamper.stamp(body);
635
+ const stamp = await this.stamper.stamp(body);
636
636
  return {
637
637
  body: body,
638
638
  stamp: stamp,
@@ -652,12 +652,12 @@ class TurnkeySDKClientBase {
652
652
  }, "createPolicyResult");
653
653
  };
654
654
  this.stampCreatePolicy = async (input) => {
655
- if (!this.config.stamper) {
655
+ if (!this.stamper) {
656
656
  return undefined;
657
657
  }
658
658
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_policy";
659
659
  const body = JSON.stringify(input);
660
- const stamp = await this.config.stamper.stamp(body);
660
+ const stamp = await this.stamper.stamp(body);
661
661
  return {
662
662
  body: body,
663
663
  stamp: stamp,
@@ -677,12 +677,12 @@ class TurnkeySDKClientBase {
677
677
  }, "createPrivateKeyTagResult");
678
678
  };
679
679
  this.stampCreatePrivateKeyTag = async (input) => {
680
- if (!this.config.stamper) {
680
+ if (!this.stamper) {
681
681
  return undefined;
682
682
  }
683
683
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_key_tag";
684
684
  const body = JSON.stringify(input);
685
- const stamp = await this.config.stamper.stamp(body);
685
+ const stamp = await this.stamper.stamp(body);
686
686
  return {
687
687
  body: body,
688
688
  stamp: stamp,
@@ -702,12 +702,12 @@ class TurnkeySDKClientBase {
702
702
  }, "createPrivateKeysResultV2");
703
703
  };
704
704
  this.stampCreatePrivateKeys = async (input) => {
705
- if (!this.config.stamper) {
705
+ if (!this.stamper) {
706
706
  return undefined;
707
707
  }
708
708
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_private_keys";
709
709
  const body = JSON.stringify(input);
710
- const stamp = await this.config.stamper.stamp(body);
710
+ const stamp = await this.stamper.stamp(body);
711
711
  return {
712
712
  body: body,
713
713
  stamp: stamp,
@@ -727,12 +727,12 @@ class TurnkeySDKClientBase {
727
727
  }, "createReadOnlySessionResult");
728
728
  };
729
729
  this.stampCreateReadOnlySession = async (input) => {
730
- if (!this.config.stamper) {
730
+ if (!this.stamper) {
731
731
  return undefined;
732
732
  }
733
733
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_read_only_session";
734
734
  const body = JSON.stringify(input);
735
- const stamp = await this.config.stamper.stamp(body);
735
+ const stamp = await this.stamper.stamp(body);
736
736
  return {
737
737
  body: body,
738
738
  stamp: stamp,
@@ -752,12 +752,12 @@ class TurnkeySDKClientBase {
752
752
  }, "createReadWriteSessionResultV2");
753
753
  };
754
754
  this.stampCreateReadWriteSession = async (input) => {
755
- if (!this.config.stamper) {
755
+ if (!this.stamper) {
756
756
  return undefined;
757
757
  }
758
758
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_read_write_session";
759
759
  const body = JSON.stringify(input);
760
- const stamp = await this.config.stamper.stamp(body);
760
+ const stamp = await this.stamper.stamp(body);
761
761
  return {
762
762
  body: body,
763
763
  stamp: stamp,
@@ -777,12 +777,12 @@ class TurnkeySDKClientBase {
777
777
  }, "createSubOrganizationResultV7");
778
778
  };
779
779
  this.stampCreateSubOrganization = async (input) => {
780
- if (!this.config.stamper) {
780
+ if (!this.stamper) {
781
781
  return undefined;
782
782
  }
783
783
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_sub_organization";
784
784
  const body = JSON.stringify(input);
785
- const stamp = await this.config.stamper.stamp(body);
785
+ const stamp = await this.stamper.stamp(body);
786
786
  return {
787
787
  body: body,
788
788
  stamp: stamp,
@@ -802,12 +802,12 @@ class TurnkeySDKClientBase {
802
802
  }, "createUserTagResult");
803
803
  };
804
804
  this.stampCreateUserTag = async (input) => {
805
- if (!this.config.stamper) {
805
+ if (!this.stamper) {
806
806
  return undefined;
807
807
  }
808
808
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag";
809
809
  const body = JSON.stringify(input);
810
- const stamp = await this.config.stamper.stamp(body);
810
+ const stamp = await this.stamper.stamp(body);
811
811
  return {
812
812
  body: body,
813
813
  stamp: stamp,
@@ -827,12 +827,12 @@ class TurnkeySDKClientBase {
827
827
  }, "createUsersResult");
828
828
  };
829
829
  this.stampCreateUsers = async (input) => {
830
- if (!this.config.stamper) {
830
+ if (!this.stamper) {
831
831
  return undefined;
832
832
  }
833
833
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_users";
834
834
  const body = JSON.stringify(input);
835
- const stamp = await this.config.stamper.stamp(body);
835
+ const stamp = await this.stamper.stamp(body);
836
836
  return {
837
837
  body: body,
838
838
  stamp: stamp,
@@ -852,12 +852,12 @@ class TurnkeySDKClientBase {
852
852
  }, "createWalletResult");
853
853
  };
854
854
  this.stampCreateWallet = async (input) => {
855
- if (!this.config.stamper) {
855
+ if (!this.stamper) {
856
856
  return undefined;
857
857
  }
858
858
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet";
859
859
  const body = JSON.stringify(input);
860
- const stamp = await this.config.stamper.stamp(body);
860
+ const stamp = await this.stamper.stamp(body);
861
861
  return {
862
862
  body: body,
863
863
  stamp: stamp,
@@ -877,12 +877,12 @@ class TurnkeySDKClientBase {
877
877
  }, "createWalletAccountsResult");
878
878
  };
879
879
  this.stampCreateWalletAccounts = async (input) => {
880
- if (!this.config.stamper) {
880
+ if (!this.stamper) {
881
881
  return undefined;
882
882
  }
883
883
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts";
884
884
  const body = JSON.stringify(input);
885
- const stamp = await this.config.stamper.stamp(body);
885
+ const stamp = await this.stamper.stamp(body);
886
886
  return {
887
887
  body: body,
888
888
  stamp: stamp,
@@ -902,12 +902,12 @@ class TurnkeySDKClientBase {
902
902
  }, "deleteApiKeysResult");
903
903
  };
904
904
  this.stampDeleteApiKeys = async (input) => {
905
- if (!this.config.stamper) {
905
+ if (!this.stamper) {
906
906
  return undefined;
907
907
  }
908
908
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys";
909
909
  const body = JSON.stringify(input);
910
- const stamp = await this.config.stamper.stamp(body);
910
+ const stamp = await this.stamper.stamp(body);
911
911
  return {
912
912
  body: body,
913
913
  stamp: stamp,
@@ -927,12 +927,12 @@ class TurnkeySDKClientBase {
927
927
  }, "deleteAuthenticatorsResult");
928
928
  };
929
929
  this.stampDeleteAuthenticators = async (input) => {
930
- if (!this.config.stamper) {
930
+ if (!this.stamper) {
931
931
  return undefined;
932
932
  }
933
933
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_authenticators";
934
934
  const body = JSON.stringify(input);
935
- const stamp = await this.config.stamper.stamp(body);
935
+ const stamp = await this.stamper.stamp(body);
936
936
  return {
937
937
  body: body,
938
938
  stamp: stamp,
@@ -952,12 +952,12 @@ class TurnkeySDKClientBase {
952
952
  }, "deleteInvitationResult");
953
953
  };
954
954
  this.stampDeleteInvitation = async (input) => {
955
- if (!this.config.stamper) {
955
+ if (!this.stamper) {
956
956
  return undefined;
957
957
  }
958
958
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_invitation";
959
959
  const body = JSON.stringify(input);
960
- const stamp = await this.config.stamper.stamp(body);
960
+ const stamp = await this.stamper.stamp(body);
961
961
  return {
962
962
  body: body,
963
963
  stamp: stamp,
@@ -977,12 +977,12 @@ class TurnkeySDKClientBase {
977
977
  }, "deleteOauthProvidersResult");
978
978
  };
979
979
  this.stampDeleteOauthProviders = async (input) => {
980
- if (!this.config.stamper) {
980
+ if (!this.stamper) {
981
981
  return undefined;
982
982
  }
983
983
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_oauth_providers";
984
984
  const body = JSON.stringify(input);
985
- const stamp = await this.config.stamper.stamp(body);
985
+ const stamp = await this.stamper.stamp(body);
986
986
  return {
987
987
  body: body,
988
988
  stamp: stamp,
@@ -1002,12 +1002,12 @@ class TurnkeySDKClientBase {
1002
1002
  }, "deletePolicyResult");
1003
1003
  };
1004
1004
  this.stampDeletePolicy = async (input) => {
1005
- if (!this.config.stamper) {
1005
+ if (!this.stamper) {
1006
1006
  return undefined;
1007
1007
  }
1008
1008
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_policy";
1009
1009
  const body = JSON.stringify(input);
1010
- const stamp = await this.config.stamper.stamp(body);
1010
+ const stamp = await this.stamper.stamp(body);
1011
1011
  return {
1012
1012
  body: body,
1013
1013
  stamp: stamp,
@@ -1027,12 +1027,12 @@ class TurnkeySDKClientBase {
1027
1027
  }, "deletePrivateKeyTagsResult");
1028
1028
  };
1029
1029
  this.stampDeletePrivateKeyTags = async (input) => {
1030
- if (!this.config.stamper) {
1030
+ if (!this.stamper) {
1031
1031
  return undefined;
1032
1032
  }
1033
1033
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_key_tags";
1034
1034
  const body = JSON.stringify(input);
1035
- const stamp = await this.config.stamper.stamp(body);
1035
+ const stamp = await this.stamper.stamp(body);
1036
1036
  return {
1037
1037
  body: body,
1038
1038
  stamp: stamp,
@@ -1052,12 +1052,12 @@ class TurnkeySDKClientBase {
1052
1052
  }, "deletePrivateKeysResult");
1053
1053
  };
1054
1054
  this.stampDeletePrivateKeys = async (input) => {
1055
- if (!this.config.stamper) {
1055
+ if (!this.stamper) {
1056
1056
  return undefined;
1057
1057
  }
1058
1058
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_private_keys";
1059
1059
  const body = JSON.stringify(input);
1060
- const stamp = await this.config.stamper.stamp(body);
1060
+ const stamp = await this.stamper.stamp(body);
1061
1061
  return {
1062
1062
  body: body,
1063
1063
  stamp: stamp,
@@ -1077,12 +1077,12 @@ class TurnkeySDKClientBase {
1077
1077
  }, "deleteSubOrganizationResult");
1078
1078
  };
1079
1079
  this.stampDeleteSubOrganization = async (input) => {
1080
- if (!this.config.stamper) {
1080
+ if (!this.stamper) {
1081
1081
  return undefined;
1082
1082
  }
1083
1083
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_sub_organization";
1084
1084
  const body = JSON.stringify(input);
1085
- const stamp = await this.config.stamper.stamp(body);
1085
+ const stamp = await this.stamper.stamp(body);
1086
1086
  return {
1087
1087
  body: body,
1088
1088
  stamp: stamp,
@@ -1102,12 +1102,12 @@ class TurnkeySDKClientBase {
1102
1102
  }, "deleteUserTagsResult");
1103
1103
  };
1104
1104
  this.stampDeleteUserTags = async (input) => {
1105
- if (!this.config.stamper) {
1105
+ if (!this.stamper) {
1106
1106
  return undefined;
1107
1107
  }
1108
1108
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_user_tags";
1109
1109
  const body = JSON.stringify(input);
1110
- const stamp = await this.config.stamper.stamp(body);
1110
+ const stamp = await this.stamper.stamp(body);
1111
1111
  return {
1112
1112
  body: body,
1113
1113
  stamp: stamp,
@@ -1127,12 +1127,12 @@ class TurnkeySDKClientBase {
1127
1127
  }, "deleteUsersResult");
1128
1128
  };
1129
1129
  this.stampDeleteUsers = async (input) => {
1130
- if (!this.config.stamper) {
1130
+ if (!this.stamper) {
1131
1131
  return undefined;
1132
1132
  }
1133
1133
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_users";
1134
1134
  const body = JSON.stringify(input);
1135
- const stamp = await this.config.stamper.stamp(body);
1135
+ const stamp = await this.stamper.stamp(body);
1136
1136
  return {
1137
1137
  body: body,
1138
1138
  stamp: stamp,
@@ -1152,12 +1152,12 @@ class TurnkeySDKClientBase {
1152
1152
  }, "deleteWalletsResult");
1153
1153
  };
1154
1154
  this.stampDeleteWallets = async (input) => {
1155
- if (!this.config.stamper) {
1155
+ if (!this.stamper) {
1156
1156
  return undefined;
1157
1157
  }
1158
1158
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_wallets";
1159
1159
  const body = JSON.stringify(input);
1160
- const stamp = await this.config.stamper.stamp(body);
1160
+ const stamp = await this.stamper.stamp(body);
1161
1161
  return {
1162
1162
  body: body,
1163
1163
  stamp: stamp,
@@ -1177,12 +1177,12 @@ class TurnkeySDKClientBase {
1177
1177
  }, "emailAuthResult");
1178
1178
  };
1179
1179
  this.stampEmailAuth = async (input) => {
1180
- if (!this.config.stamper) {
1180
+ if (!this.stamper) {
1181
1181
  return undefined;
1182
1182
  }
1183
1183
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/email_auth";
1184
1184
  const body = JSON.stringify(input);
1185
- const stamp = await this.config.stamper.stamp(body);
1185
+ const stamp = await this.stamper.stamp(body);
1186
1186
  return {
1187
1187
  body: body,
1188
1188
  stamp: stamp,
@@ -1202,12 +1202,12 @@ class TurnkeySDKClientBase {
1202
1202
  }, "exportPrivateKeyResult");
1203
1203
  };
1204
1204
  this.stampExportPrivateKey = async (input) => {
1205
- if (!this.config.stamper) {
1205
+ if (!this.stamper) {
1206
1206
  return undefined;
1207
1207
  }
1208
1208
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_private_key";
1209
1209
  const body = JSON.stringify(input);
1210
- const stamp = await this.config.stamper.stamp(body);
1210
+ const stamp = await this.stamper.stamp(body);
1211
1211
  return {
1212
1212
  body: body,
1213
1213
  stamp: stamp,
@@ -1227,12 +1227,12 @@ class TurnkeySDKClientBase {
1227
1227
  }, "exportWalletResult");
1228
1228
  };
1229
1229
  this.stampExportWallet = async (input) => {
1230
- if (!this.config.stamper) {
1230
+ if (!this.stamper) {
1231
1231
  return undefined;
1232
1232
  }
1233
1233
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_wallet";
1234
1234
  const body = JSON.stringify(input);
1235
- const stamp = await this.config.stamper.stamp(body);
1235
+ const stamp = await this.stamper.stamp(body);
1236
1236
  return {
1237
1237
  body: body,
1238
1238
  stamp: stamp,
@@ -1252,12 +1252,12 @@ class TurnkeySDKClientBase {
1252
1252
  }, "exportWalletAccountResult");
1253
1253
  };
1254
1254
  this.stampExportWalletAccount = async (input) => {
1255
- if (!this.config.stamper) {
1255
+ if (!this.stamper) {
1256
1256
  return undefined;
1257
1257
  }
1258
1258
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/export_wallet_account";
1259
1259
  const body = JSON.stringify(input);
1260
- const stamp = await this.config.stamper.stamp(body);
1260
+ const stamp = await this.stamper.stamp(body);
1261
1261
  return {
1262
1262
  body: body,
1263
1263
  stamp: stamp,
@@ -1277,12 +1277,12 @@ class TurnkeySDKClientBase {
1277
1277
  }, "importPrivateKeyResult");
1278
1278
  };
1279
1279
  this.stampImportPrivateKey = async (input) => {
1280
- if (!this.config.stamper) {
1280
+ if (!this.stamper) {
1281
1281
  return undefined;
1282
1282
  }
1283
1283
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/import_private_key";
1284
1284
  const body = JSON.stringify(input);
1285
- const stamp = await this.config.stamper.stamp(body);
1285
+ const stamp = await this.stamper.stamp(body);
1286
1286
  return {
1287
1287
  body: body,
1288
1288
  stamp: stamp,
@@ -1302,12 +1302,12 @@ class TurnkeySDKClientBase {
1302
1302
  }, "importWalletResult");
1303
1303
  };
1304
1304
  this.stampImportWallet = async (input) => {
1305
- if (!this.config.stamper) {
1305
+ if (!this.stamper) {
1306
1306
  return undefined;
1307
1307
  }
1308
1308
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/import_wallet";
1309
1309
  const body = JSON.stringify(input);
1310
- const stamp = await this.config.stamper.stamp(body);
1310
+ const stamp = await this.stamper.stamp(body);
1311
1311
  return {
1312
1312
  body: body,
1313
1313
  stamp: stamp,
@@ -1327,12 +1327,12 @@ class TurnkeySDKClientBase {
1327
1327
  }, "initImportPrivateKeyResult");
1328
1328
  };
1329
1329
  this.stampInitImportPrivateKey = async (input) => {
1330
- if (!this.config.stamper) {
1330
+ if (!this.stamper) {
1331
1331
  return undefined;
1332
1332
  }
1333
1333
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_private_key";
1334
1334
  const body = JSON.stringify(input);
1335
- const stamp = await this.config.stamper.stamp(body);
1335
+ const stamp = await this.stamper.stamp(body);
1336
1336
  return {
1337
1337
  body: body,
1338
1338
  stamp: stamp,
@@ -1352,12 +1352,12 @@ class TurnkeySDKClientBase {
1352
1352
  }, "initImportWalletResult");
1353
1353
  };
1354
1354
  this.stampInitImportWallet = async (input) => {
1355
- if (!this.config.stamper) {
1355
+ if (!this.stamper) {
1356
1356
  return undefined;
1357
1357
  }
1358
1358
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_import_wallet";
1359
1359
  const body = JSON.stringify(input);
1360
- const stamp = await this.config.stamper.stamp(body);
1360
+ const stamp = await this.stamper.stamp(body);
1361
1361
  return {
1362
1362
  body: body,
1363
1363
  stamp: stamp,
@@ -1377,12 +1377,12 @@ class TurnkeySDKClientBase {
1377
1377
  }, "initOtpAuthResult");
1378
1378
  };
1379
1379
  this.stampInitOtpAuth = async (input) => {
1380
- if (!this.config.stamper) {
1380
+ if (!this.stamper) {
1381
1381
  return undefined;
1382
1382
  }
1383
1383
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_otp_auth";
1384
1384
  const body = JSON.stringify(input);
1385
- const stamp = await this.config.stamper.stamp(body);
1385
+ const stamp = await this.stamper.stamp(body);
1386
1386
  return {
1387
1387
  body: body,
1388
1388
  stamp: stamp,
@@ -1402,12 +1402,12 @@ class TurnkeySDKClientBase {
1402
1402
  }, "initUserEmailRecoveryResult");
1403
1403
  };
1404
1404
  this.stampInitUserEmailRecovery = async (input) => {
1405
- if (!this.config.stamper) {
1405
+ if (!this.stamper) {
1406
1406
  return undefined;
1407
1407
  }
1408
1408
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/init_user_email_recovery";
1409
1409
  const body = JSON.stringify(input);
1410
- const stamp = await this.config.stamper.stamp(body);
1410
+ const stamp = await this.stamper.stamp(body);
1411
1411
  return {
1412
1412
  body: body,
1413
1413
  stamp: stamp,
@@ -1427,12 +1427,12 @@ class TurnkeySDKClientBase {
1427
1427
  }, "oauthResult");
1428
1428
  };
1429
1429
  this.stampOauth = async (input) => {
1430
- if (!this.config.stamper) {
1430
+ if (!this.stamper) {
1431
1431
  return undefined;
1432
1432
  }
1433
1433
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/oauth";
1434
1434
  const body = JSON.stringify(input);
1435
- const stamp = await this.config.stamper.stamp(body);
1435
+ const stamp = await this.stamper.stamp(body);
1436
1436
  return {
1437
1437
  body: body,
1438
1438
  stamp: stamp,
@@ -1452,12 +1452,12 @@ class TurnkeySDKClientBase {
1452
1452
  }, "otpAuthResult");
1453
1453
  };
1454
1454
  this.stampOtpAuth = async (input) => {
1455
- if (!this.config.stamper) {
1455
+ if (!this.stamper) {
1456
1456
  return undefined;
1457
1457
  }
1458
1458
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/otp_auth";
1459
1459
  const body = JSON.stringify(input);
1460
- const stamp = await this.config.stamper.stamp(body);
1460
+ const stamp = await this.stamper.stamp(body);
1461
1461
  return {
1462
1462
  body: body,
1463
1463
  stamp: stamp,
@@ -1477,12 +1477,12 @@ class TurnkeySDKClientBase {
1477
1477
  }, "recoverUserResult");
1478
1478
  };
1479
1479
  this.stampRecoverUser = async (input) => {
1480
- if (!this.config.stamper) {
1480
+ if (!this.stamper) {
1481
1481
  return undefined;
1482
1482
  }
1483
1483
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/recover_user";
1484
1484
  const body = JSON.stringify(input);
1485
- const stamp = await this.config.stamper.stamp(body);
1485
+ const stamp = await this.stamper.stamp(body);
1486
1486
  return {
1487
1487
  body: body,
1488
1488
  stamp: stamp,
@@ -1502,12 +1502,12 @@ class TurnkeySDKClientBase {
1502
1502
  });
1503
1503
  };
1504
1504
  this.stampRejectActivity = async (input) => {
1505
- if (!this.config.stamper) {
1505
+ if (!this.stamper) {
1506
1506
  return undefined;
1507
1507
  }
1508
1508
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/reject_activity";
1509
1509
  const body = JSON.stringify(input);
1510
- const stamp = await this.config.stamper.stamp(body);
1510
+ const stamp = await this.stamper.stamp(body);
1511
1511
  return {
1512
1512
  body: body,
1513
1513
  stamp: stamp,
@@ -1527,12 +1527,12 @@ class TurnkeySDKClientBase {
1527
1527
  }, "removeOrganizationFeatureResult");
1528
1528
  };
1529
1529
  this.stampRemoveOrganizationFeature = async (input) => {
1530
- if (!this.config.stamper) {
1530
+ if (!this.stamper) {
1531
1531
  return undefined;
1532
1532
  }
1533
1533
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/remove_organization_feature";
1534
1534
  const body = JSON.stringify(input);
1535
- const stamp = await this.config.stamper.stamp(body);
1535
+ const stamp = await this.stamper.stamp(body);
1536
1536
  return {
1537
1537
  body: body,
1538
1538
  stamp: stamp,
@@ -1552,12 +1552,12 @@ class TurnkeySDKClientBase {
1552
1552
  }, "setOrganizationFeatureResult");
1553
1553
  };
1554
1554
  this.stampSetOrganizationFeature = async (input) => {
1555
- if (!this.config.stamper) {
1555
+ if (!this.stamper) {
1556
1556
  return undefined;
1557
1557
  }
1558
1558
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_organization_feature";
1559
1559
  const body = JSON.stringify(input);
1560
- const stamp = await this.config.stamper.stamp(body);
1560
+ const stamp = await this.stamper.stamp(body);
1561
1561
  return {
1562
1562
  body: body,
1563
1563
  stamp: stamp,
@@ -1577,12 +1577,12 @@ class TurnkeySDKClientBase {
1577
1577
  }, "signRawPayloadResult");
1578
1578
  };
1579
1579
  this.stampSignRawPayload = async (input) => {
1580
- if (!this.config.stamper) {
1580
+ if (!this.stamper) {
1581
1581
  return undefined;
1582
1582
  }
1583
1583
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payload";
1584
1584
  const body = JSON.stringify(input);
1585
- const stamp = await this.config.stamper.stamp(body);
1585
+ const stamp = await this.stamper.stamp(body);
1586
1586
  return {
1587
1587
  body: body,
1588
1588
  stamp: stamp,
@@ -1602,12 +1602,12 @@ class TurnkeySDKClientBase {
1602
1602
  }, "signRawPayloadsResult");
1603
1603
  };
1604
1604
  this.stampSignRawPayloads = async (input) => {
1605
- if (!this.config.stamper) {
1605
+ if (!this.stamper) {
1606
1606
  return undefined;
1607
1607
  }
1608
1608
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_raw_payloads";
1609
1609
  const body = JSON.stringify(input);
1610
- const stamp = await this.config.stamper.stamp(body);
1610
+ const stamp = await this.stamper.stamp(body);
1611
1611
  return {
1612
1612
  body: body,
1613
1613
  stamp: stamp,
@@ -1627,12 +1627,12 @@ class TurnkeySDKClientBase {
1627
1627
  }, "signTransactionResult");
1628
1628
  };
1629
1629
  this.stampSignTransaction = async (input) => {
1630
- if (!this.config.stamper) {
1630
+ if (!this.stamper) {
1631
1631
  return undefined;
1632
1632
  }
1633
1633
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/sign_transaction";
1634
1634
  const body = JSON.stringify(input);
1635
- const stamp = await this.config.stamper.stamp(body);
1635
+ const stamp = await this.stamper.stamp(body);
1636
1636
  return {
1637
1637
  body: body,
1638
1638
  stamp: stamp,
@@ -1652,12 +1652,12 @@ class TurnkeySDKClientBase {
1652
1652
  }, "updatePolicyResult");
1653
1653
  };
1654
1654
  this.stampUpdatePolicy = async (input) => {
1655
- if (!this.config.stamper) {
1655
+ if (!this.stamper) {
1656
1656
  return undefined;
1657
1657
  }
1658
1658
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_policy";
1659
1659
  const body = JSON.stringify(input);
1660
- const stamp = await this.config.stamper.stamp(body);
1660
+ const stamp = await this.stamper.stamp(body);
1661
1661
  return {
1662
1662
  body: body,
1663
1663
  stamp: stamp,
@@ -1677,12 +1677,12 @@ class TurnkeySDKClientBase {
1677
1677
  }, "updatePrivateKeyTagResult");
1678
1678
  };
1679
1679
  this.stampUpdatePrivateKeyTag = async (input) => {
1680
- if (!this.config.stamper) {
1680
+ if (!this.stamper) {
1681
1681
  return undefined;
1682
1682
  }
1683
1683
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_private_key_tag";
1684
1684
  const body = JSON.stringify(input);
1685
- const stamp = await this.config.stamper.stamp(body);
1685
+ const stamp = await this.stamper.stamp(body);
1686
1686
  return {
1687
1687
  body: body,
1688
1688
  stamp: stamp,
@@ -1702,12 +1702,12 @@ class TurnkeySDKClientBase {
1702
1702
  }, "updateRootQuorumResult");
1703
1703
  };
1704
1704
  this.stampUpdateRootQuorum = async (input) => {
1705
- if (!this.config.stamper) {
1705
+ if (!this.stamper) {
1706
1706
  return undefined;
1707
1707
  }
1708
1708
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_root_quorum";
1709
1709
  const body = JSON.stringify(input);
1710
- const stamp = await this.config.stamper.stamp(body);
1710
+ const stamp = await this.stamper.stamp(body);
1711
1711
  return {
1712
1712
  body: body,
1713
1713
  stamp: stamp,
@@ -1727,12 +1727,12 @@ class TurnkeySDKClientBase {
1727
1727
  }, "updateUserResult");
1728
1728
  };
1729
1729
  this.stampUpdateUser = async (input) => {
1730
- if (!this.config.stamper) {
1730
+ if (!this.stamper) {
1731
1731
  return undefined;
1732
1732
  }
1733
1733
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user";
1734
1734
  const body = JSON.stringify(input);
1735
- const stamp = await this.config.stamper.stamp(body);
1735
+ const stamp = await this.stamper.stamp(body);
1736
1736
  return {
1737
1737
  body: body,
1738
1738
  stamp: stamp,
@@ -1752,12 +1752,37 @@ class TurnkeySDKClientBase {
1752
1752
  }, "updateUserTagResult");
1753
1753
  };
1754
1754
  this.stampUpdateUserTag = async (input) => {
1755
- if (!this.config.stamper) {
1755
+ if (!this.stamper) {
1756
1756
  return undefined;
1757
1757
  }
1758
1758
  const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_user_tag";
1759
1759
  const body = JSON.stringify(input);
1760
- const stamp = await this.config.stamper.stamp(body);
1760
+ const stamp = await this.stamper.stamp(body);
1761
+ return {
1762
+ body: body,
1763
+ stamp: stamp,
1764
+ url: fullUrl,
1765
+ };
1766
+ };
1767
+ this.updateWallet = async (input) => {
1768
+ const { organizationId, timestampMs, ...rest } = input;
1769
+ const currentUser = await storage.getStorageValue(storage.StorageKeys.UserSession);
1770
+ return this.command("/public/v1/submit/update_wallet", {
1771
+ parameters: rest,
1772
+ organizationId: organizationId ??
1773
+ currentUser?.organization?.organizationId ??
1774
+ this.config.organizationId,
1775
+ timestampMs: timestampMs ?? String(Date.now()),
1776
+ type: "ACTIVITY_TYPE_UPDATE_WALLET",
1777
+ }, "updateWalletResult");
1778
+ };
1779
+ this.stampUpdateWallet = async (input) => {
1780
+ if (!this.stamper) {
1781
+ return undefined;
1782
+ }
1783
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/update_wallet";
1784
+ const body = JSON.stringify(input);
1785
+ const stamp = await this.stamper.stamp(body);
1761
1786
  return {
1762
1787
  body: body,
1763
1788
  stamp: stamp,
@@ -1765,6 +1790,9 @@ class TurnkeySDKClientBase {
1765
1790
  };
1766
1791
  };
1767
1792
  this.config = config;
1793
+ if (config.stamper) {
1794
+ this.stamper = config.stamper;
1795
+ }
1768
1796
  }
1769
1797
  async request(url, body) {
1770
1798
  const fullUrl = this.config.apiBaseUrl + url;
@@ -1772,8 +1800,8 @@ class TurnkeySDKClientBase {
1772
1800
  var headers = {
1773
1801
  "X-Client-Version": version.VERSION,
1774
1802
  };
1775
- if (this.config.stamper) {
1776
- const stamp = await this.config.stamper.stamp(stringifiedBody);
1803
+ if (this.stamper) {
1804
+ const stamp = await this.stamper.stamp(stringifiedBody);
1777
1805
  headers[stamp.stampHeaderName] = stamp.stampHeaderValue;
1778
1806
  }
1779
1807
  if (this.config.readOnlySession) {