@turnkey/core 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/__clients__/core.d.ts +1 -0
  2. package/dist/__clients__/core.d.ts.map +1 -1
  3. package/dist/__clients__/core.js +72 -23
  4. package/dist/__clients__/core.js.map +1 -1
  5. package/dist/__clients__/core.mjs +73 -24
  6. package/dist/__clients__/core.mjs.map +1 -1
  7. package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
  8. package/dist/__generated__/sdk-client-base.js +144 -216
  9. package/dist/__generated__/sdk-client-base.js.map +1 -1
  10. package/dist/__generated__/sdk-client-base.mjs +144 -216
  11. package/dist/__generated__/sdk-client-base.mjs.map +1 -1
  12. package/dist/__generated__/version.d.ts +1 -1
  13. package/dist/__generated__/version.js +1 -1
  14. package/dist/__generated__/version.mjs +1 -1
  15. package/dist/__types__/external-wallets.d.ts +19 -0
  16. package/dist/__types__/external-wallets.d.ts.map +1 -1
  17. package/dist/__types__/method-types.d.ts +4 -0
  18. package/dist/__types__/method-types.d.ts.map +1 -1
  19. package/dist/__wallet__/mobile/manager.d.ts.map +1 -1
  20. package/dist/__wallet__/mobile/manager.js +5 -2
  21. package/dist/__wallet__/mobile/manager.js.map +1 -1
  22. package/dist/__wallet__/mobile/manager.mjs +5 -2
  23. package/dist/__wallet__/mobile/manager.mjs.map +1 -1
  24. package/dist/__wallet__/wallet-connect/base.d.ts +25 -11
  25. package/dist/__wallet__/wallet-connect/base.d.ts.map +1 -1
  26. package/dist/__wallet__/wallet-connect/base.js +112 -30
  27. package/dist/__wallet__/wallet-connect/base.js.map +1 -1
  28. package/dist/__wallet__/wallet-connect/base.mjs +112 -30
  29. package/dist/__wallet__/wallet-connect/base.mjs.map +1 -1
  30. package/dist/__wallet__/wallet-connect/client.d.ts.map +1 -1
  31. package/dist/__wallet__/wallet-connect/client.js +4 -0
  32. package/dist/__wallet__/wallet-connect/client.js.map +1 -1
  33. package/dist/__wallet__/wallet-connect/client.mjs +4 -0
  34. package/dist/__wallet__/wallet-connect/client.mjs.map +1 -1
  35. package/dist/__wallet__/web/manager.d.ts +11 -0
  36. package/dist/__wallet__/web/manager.d.ts.map +1 -1
  37. package/dist/__wallet__/web/manager.js +36 -21
  38. package/dist/__wallet__/web/manager.js.map +1 -1
  39. package/dist/__wallet__/web/manager.mjs +36 -21
  40. package/dist/__wallet__/web/manager.mjs.map +1 -1
  41. package/dist/__wallet__/web/native/ethereum.d.ts.map +1 -1
  42. package/dist/__wallet__/web/native/ethereum.js +38 -7
  43. package/dist/__wallet__/web/native/ethereum.js.map +1 -1
  44. package/dist/__wallet__/web/native/ethereum.mjs +38 -7
  45. package/dist/__wallet__/web/native/ethereum.mjs.map +1 -1
  46. package/package.json +5 -5
@@ -23,14 +23,12 @@ class TurnkeySDKClientBase {
23
23
  if (!activeStamper) {
24
24
  return undefined;
25
25
  }
26
- const { organizationId, ...parameters } = input;
27
26
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_activity";
28
- const bodyWithType = {
29
- parameters,
30
- organizationId,
31
- type: "ACTIVITY_TYPE_GET_ACTIVITY",
27
+ const body = {
28
+ ...input,
29
+ organizationId: input.organizationId,
32
30
  };
33
- const stringifiedBody = JSON.stringify(bodyWithType);
31
+ const stringifiedBody = JSON.stringify(body);
34
32
  const stamp = await activeStamper.stamp(stringifiedBody);
35
33
  return {
36
34
  body: stringifiedBody,
@@ -52,14 +50,12 @@ class TurnkeySDKClientBase {
52
50
  if (!activeStamper) {
53
51
  return undefined;
54
52
  }
55
- const { organizationId, ...parameters } = input;
56
53
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_key";
57
- const bodyWithType = {
58
- parameters,
59
- organizationId,
60
- type: "ACTIVITY_TYPE_GET_API_KEY",
54
+ const body = {
55
+ ...input,
56
+ organizationId: input.organizationId,
61
57
  };
62
- const stringifiedBody = JSON.stringify(bodyWithType);
58
+ const stringifiedBody = JSON.stringify(body);
63
59
  const stamp = await activeStamper.stamp(stringifiedBody);
64
60
  return {
65
61
  body: stringifiedBody,
@@ -81,14 +77,12 @@ class TurnkeySDKClientBase {
81
77
  if (!activeStamper) {
82
78
  return undefined;
83
79
  }
84
- const { organizationId, ...parameters } = input;
85
80
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_keys";
86
- const bodyWithType = {
87
- parameters,
88
- organizationId,
89
- type: "ACTIVITY_TYPE_GET_API_KEYS",
81
+ const body = {
82
+ ...input,
83
+ organizationId: input.organizationId,
90
84
  };
91
- const stringifiedBody = JSON.stringify(bodyWithType);
85
+ const stringifiedBody = JSON.stringify(body);
92
86
  const stamp = await activeStamper.stamp(stringifiedBody);
93
87
  return {
94
88
  body: stringifiedBody,
@@ -110,14 +104,12 @@ class TurnkeySDKClientBase {
110
104
  if (!activeStamper) {
111
105
  return undefined;
112
106
  }
113
- const { organizationId, ...parameters } = input;
114
107
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_attestation";
115
- const bodyWithType = {
116
- parameters,
117
- organizationId,
118
- type: "ACTIVITY_TYPE_GET_ATTESTATION_DOCUMENT",
108
+ const body = {
109
+ ...input,
110
+ organizationId: input.organizationId,
119
111
  };
120
- const stringifiedBody = JSON.stringify(bodyWithType);
112
+ const stringifiedBody = JSON.stringify(body);
121
113
  const stamp = await activeStamper.stamp(stringifiedBody);
122
114
  return {
123
115
  body: stringifiedBody,
@@ -139,14 +131,12 @@ class TurnkeySDKClientBase {
139
131
  if (!activeStamper) {
140
132
  return undefined;
141
133
  }
142
- const { organizationId, ...parameters } = input;
143
134
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticator";
144
- const bodyWithType = {
145
- parameters,
146
- organizationId,
147
- type: "ACTIVITY_TYPE_GET_AUTHENTICATOR",
135
+ const body = {
136
+ ...input,
137
+ organizationId: input.organizationId,
148
138
  };
149
- const stringifiedBody = JSON.stringify(bodyWithType);
139
+ const stringifiedBody = JSON.stringify(body);
150
140
  const stamp = await activeStamper.stamp(stringifiedBody);
151
141
  return {
152
142
  body: stringifiedBody,
@@ -168,14 +158,12 @@ class TurnkeySDKClientBase {
168
158
  if (!activeStamper) {
169
159
  return undefined;
170
160
  }
171
- const { organizationId, ...parameters } = input;
172
161
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticators";
173
- const bodyWithType = {
174
- parameters,
175
- organizationId,
176
- type: "ACTIVITY_TYPE_GET_AUTHENTICATORS",
162
+ const body = {
163
+ ...input,
164
+ organizationId: input.organizationId,
177
165
  };
178
- const stringifiedBody = JSON.stringify(bodyWithType);
166
+ const stringifiedBody = JSON.stringify(body);
179
167
  const stamp = await activeStamper.stamp(stringifiedBody);
180
168
  return {
181
169
  body: stringifiedBody,
@@ -197,14 +185,12 @@ class TurnkeySDKClientBase {
197
185
  if (!activeStamper) {
198
186
  return undefined;
199
187
  }
200
- const { organizationId, ...parameters } = input;
201
188
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_boot_proof";
202
- const bodyWithType = {
203
- parameters,
204
- organizationId,
205
- type: "ACTIVITY_TYPE_GET_BOOT_PROOF",
189
+ const body = {
190
+ ...input,
191
+ organizationId: input.organizationId,
206
192
  };
207
- const stringifiedBody = JSON.stringify(bodyWithType);
193
+ const stringifiedBody = JSON.stringify(body);
208
194
  const stamp = await activeStamper.stamp(stringifiedBody);
209
195
  return {
210
196
  body: stringifiedBody,
@@ -226,14 +212,12 @@ class TurnkeySDKClientBase {
226
212
  if (!activeStamper) {
227
213
  return undefined;
228
214
  }
229
- const { organizationId, ...parameters } = input;
230
215
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_latest_boot_proof";
231
- const bodyWithType = {
232
- parameters,
233
- organizationId,
234
- type: "ACTIVITY_TYPE_GET_LATEST_BOOT_PROOF",
216
+ const body = {
217
+ ...input,
218
+ organizationId: input.organizationId,
235
219
  };
236
- const stringifiedBody = JSON.stringify(bodyWithType);
220
+ const stringifiedBody = JSON.stringify(body);
237
221
  const stamp = await activeStamper.stamp(stringifiedBody);
238
222
  return {
239
223
  body: stringifiedBody,
@@ -255,14 +239,12 @@ class TurnkeySDKClientBase {
255
239
  if (!activeStamper) {
256
240
  return undefined;
257
241
  }
258
- const { organizationId, ...parameters } = input;
259
242
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth2_credential";
260
- const bodyWithType = {
261
- parameters,
262
- organizationId,
263
- type: "ACTIVITY_TYPE_GET_OAUTH2CREDENTIAL",
243
+ const body = {
244
+ ...input,
245
+ organizationId: input.organizationId,
264
246
  };
265
- const stringifiedBody = JSON.stringify(bodyWithType);
247
+ const stringifiedBody = JSON.stringify(body);
266
248
  const stamp = await activeStamper.stamp(stringifiedBody);
267
249
  return {
268
250
  body: stringifiedBody,
@@ -284,14 +266,12 @@ class TurnkeySDKClientBase {
284
266
  if (!activeStamper) {
285
267
  return undefined;
286
268
  }
287
- const { organizationId, ...parameters } = input;
288
269
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth_providers";
289
- const bodyWithType = {
290
- parameters,
291
- organizationId,
292
- type: "ACTIVITY_TYPE_GET_OAUTH_PROVIDERS",
270
+ const body = {
271
+ ...input,
272
+ organizationId: input.organizationId,
293
273
  };
294
- const stringifiedBody = JSON.stringify(bodyWithType);
274
+ const stringifiedBody = JSON.stringify(body);
295
275
  const stamp = await activeStamper.stamp(stringifiedBody);
296
276
  return {
297
277
  body: stringifiedBody,
@@ -313,14 +293,12 @@ class TurnkeySDKClientBase {
313
293
  if (!activeStamper) {
314
294
  return undefined;
315
295
  }
316
- const { organizationId, ...parameters } = input;
317
296
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_onramp_transaction_status";
318
- const bodyWithType = {
319
- parameters,
320
- organizationId,
321
- type: "ACTIVITY_TYPE_GET_ON_RAMP_TRANSACTION_STATUS",
297
+ const body = {
298
+ ...input,
299
+ organizationId: input.organizationId,
322
300
  };
323
- const stringifiedBody = JSON.stringify(bodyWithType);
301
+ const stringifiedBody = JSON.stringify(body);
324
302
  const stamp = await activeStamper.stamp(stringifiedBody);
325
303
  return {
326
304
  body: stringifiedBody,
@@ -342,14 +320,12 @@ class TurnkeySDKClientBase {
342
320
  if (!activeStamper) {
343
321
  return undefined;
344
322
  }
345
- const { organizationId, ...parameters } = input;
346
323
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization";
347
- const bodyWithType = {
348
- parameters,
349
- organizationId,
350
- type: "ACTIVITY_TYPE_GET_ORGANIZATION",
324
+ const body = {
325
+ ...input,
326
+ organizationId: input.organizationId,
351
327
  };
352
- const stringifiedBody = JSON.stringify(bodyWithType);
328
+ const stringifiedBody = JSON.stringify(body);
353
329
  const stamp = await activeStamper.stamp(stringifiedBody);
354
330
  return {
355
331
  body: stringifiedBody,
@@ -371,14 +347,12 @@ class TurnkeySDKClientBase {
371
347
  if (!activeStamper) {
372
348
  return undefined;
373
349
  }
374
- const { organizationId, ...parameters } = input;
375
350
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization_configs";
376
- const bodyWithType = {
377
- parameters,
378
- organizationId,
379
- type: "ACTIVITY_TYPE_GET_ORGANIZATION_CONFIGS",
351
+ const body = {
352
+ ...input,
353
+ organizationId: input.organizationId,
380
354
  };
381
- const stringifiedBody = JSON.stringify(bodyWithType);
355
+ const stringifiedBody = JSON.stringify(body);
382
356
  const stamp = await activeStamper.stamp(stringifiedBody);
383
357
  return {
384
358
  body: stringifiedBody,
@@ -400,14 +374,12 @@ class TurnkeySDKClientBase {
400
374
  if (!activeStamper) {
401
375
  return undefined;
402
376
  }
403
- const { organizationId, ...parameters } = input;
404
377
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy";
405
- const bodyWithType = {
406
- parameters,
407
- organizationId,
408
- type: "ACTIVITY_TYPE_GET_POLICY",
378
+ const body = {
379
+ ...input,
380
+ organizationId: input.organizationId,
409
381
  };
410
- const stringifiedBody = JSON.stringify(bodyWithType);
382
+ const stringifiedBody = JSON.stringify(body);
411
383
  const stamp = await activeStamper.stamp(stringifiedBody);
412
384
  return {
413
385
  body: stringifiedBody,
@@ -429,14 +401,12 @@ class TurnkeySDKClientBase {
429
401
  if (!activeStamper) {
430
402
  return undefined;
431
403
  }
432
- const { organizationId, ...parameters } = input;
433
404
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy_evaluations";
434
- const bodyWithType = {
435
- parameters,
436
- organizationId,
437
- type: "ACTIVITY_TYPE_GET_POLICY_EVALUATIONS",
405
+ const body = {
406
+ ...input,
407
+ organizationId: input.organizationId,
438
408
  };
439
- const stringifiedBody = JSON.stringify(bodyWithType);
409
+ const stringifiedBody = JSON.stringify(body);
440
410
  const stamp = await activeStamper.stamp(stringifiedBody);
441
411
  return {
442
412
  body: stringifiedBody,
@@ -458,14 +428,12 @@ class TurnkeySDKClientBase {
458
428
  if (!activeStamper) {
459
429
  return undefined;
460
430
  }
461
- const { organizationId, ...parameters } = input;
462
431
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_private_key";
463
- const bodyWithType = {
464
- parameters,
465
- organizationId,
466
- type: "ACTIVITY_TYPE_GET_PRIVATE_KEY",
432
+ const body = {
433
+ ...input,
434
+ organizationId: input.organizationId,
467
435
  };
468
- const stringifiedBody = JSON.stringify(bodyWithType);
436
+ const stringifiedBody = JSON.stringify(body);
469
437
  const stamp = await activeStamper.stamp(stringifiedBody);
470
438
  return {
471
439
  body: stringifiedBody,
@@ -487,14 +455,12 @@ class TurnkeySDKClientBase {
487
455
  if (!activeStamper) {
488
456
  return undefined;
489
457
  }
490
- const { organizationId, ...parameters } = input;
491
458
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_smart_contract_interface";
492
- const bodyWithType = {
493
- parameters,
494
- organizationId,
495
- type: "ACTIVITY_TYPE_GET_SMART_CONTRACT_INTERFACE",
459
+ const body = {
460
+ ...input,
461
+ organizationId: input.organizationId,
496
462
  };
497
- const stringifiedBody = JSON.stringify(bodyWithType);
463
+ const stringifiedBody = JSON.stringify(body);
498
464
  const stamp = await activeStamper.stamp(stringifiedBody);
499
465
  return {
500
466
  body: stringifiedBody,
@@ -516,14 +482,12 @@ class TurnkeySDKClientBase {
516
482
  if (!activeStamper) {
517
483
  return undefined;
518
484
  }
519
- const { organizationId, ...parameters } = input;
520
485
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_user";
521
- const bodyWithType = {
522
- parameters,
523
- organizationId,
524
- type: "ACTIVITY_TYPE_GET_USER",
486
+ const body = {
487
+ ...input,
488
+ organizationId: input.organizationId,
525
489
  };
526
- const stringifiedBody = JSON.stringify(bodyWithType);
490
+ const stringifiedBody = JSON.stringify(body);
527
491
  const stamp = await activeStamper.stamp(stringifiedBody);
528
492
  return {
529
493
  body: stringifiedBody,
@@ -545,14 +509,12 @@ class TurnkeySDKClientBase {
545
509
  if (!activeStamper) {
546
510
  return undefined;
547
511
  }
548
- const { organizationId, ...parameters } = input;
549
512
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet";
550
- const bodyWithType = {
551
- parameters,
552
- organizationId,
553
- type: "ACTIVITY_TYPE_GET_WALLET",
513
+ const body = {
514
+ ...input,
515
+ organizationId: input.organizationId,
554
516
  };
555
- const stringifiedBody = JSON.stringify(bodyWithType);
517
+ const stringifiedBody = JSON.stringify(body);
556
518
  const stamp = await activeStamper.stamp(stringifiedBody);
557
519
  return {
558
520
  body: stringifiedBody,
@@ -574,14 +536,12 @@ class TurnkeySDKClientBase {
574
536
  if (!activeStamper) {
575
537
  return undefined;
576
538
  }
577
- const { organizationId, ...parameters } = input;
578
539
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet_account";
579
- const bodyWithType = {
580
- parameters,
581
- organizationId,
582
- type: "ACTIVITY_TYPE_GET_WALLET_ACCOUNT",
540
+ const body = {
541
+ ...input,
542
+ organizationId: input.organizationId,
583
543
  };
584
- const stringifiedBody = JSON.stringify(bodyWithType);
544
+ const stringifiedBody = JSON.stringify(body);
585
545
  const stamp = await activeStamper.stamp(stringifiedBody);
586
546
  return {
587
547
  body: stringifiedBody,
@@ -603,14 +563,12 @@ class TurnkeySDKClientBase {
603
563
  if (!activeStamper) {
604
564
  return undefined;
605
565
  }
606
- const { organizationId, ...parameters } = input;
607
566
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_activities";
608
- const bodyWithType = {
609
- parameters,
610
- organizationId,
611
- type: "ACTIVITY_TYPE_GET_ACTIVITIES",
567
+ const body = {
568
+ ...input,
569
+ organizationId: input.organizationId,
612
570
  };
613
- const stringifiedBody = JSON.stringify(bodyWithType);
571
+ const stringifiedBody = JSON.stringify(body);
614
572
  const stamp = await activeStamper.stamp(stringifiedBody);
615
573
  return {
616
574
  body: stringifiedBody,
@@ -632,14 +590,12 @@ class TurnkeySDKClientBase {
632
590
  if (!activeStamper) {
633
591
  return undefined;
634
592
  }
635
- const { organizationId, ...parameters } = input;
636
593
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_app_proofs";
637
- const bodyWithType = {
638
- parameters,
639
- organizationId,
640
- type: "ACTIVITY_TYPE_GET_APP_PROOFS",
594
+ const body = {
595
+ ...input,
596
+ organizationId: input.organizationId,
641
597
  };
642
- const stringifiedBody = JSON.stringify(bodyWithType);
598
+ const stringifiedBody = JSON.stringify(body);
643
599
  const stamp = await activeStamper.stamp(stringifiedBody);
644
600
  return {
645
601
  body: stringifiedBody,
@@ -661,14 +617,12 @@ class TurnkeySDKClientBase {
661
617
  if (!activeStamper) {
662
618
  return undefined;
663
619
  }
664
- const { organizationId, ...parameters } = input;
665
620
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_fiat_on_ramp_credentials";
666
- const bodyWithType = {
667
- parameters,
668
- organizationId,
669
- type: "ACTIVITY_TYPE_LIST_FIAT_ON_RAMP_CREDENTIALS",
621
+ const body = {
622
+ ...input,
623
+ organizationId: input.organizationId,
670
624
  };
671
- const stringifiedBody = JSON.stringify(bodyWithType);
625
+ const stringifiedBody = JSON.stringify(body);
672
626
  const stamp = await activeStamper.stamp(stringifiedBody);
673
627
  return {
674
628
  body: stringifiedBody,
@@ -690,14 +644,12 @@ class TurnkeySDKClientBase {
690
644
  if (!activeStamper) {
691
645
  return undefined;
692
646
  }
693
- const { organizationId, ...parameters } = input;
694
647
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_oauth2_credentials";
695
- const bodyWithType = {
696
- parameters,
697
- organizationId,
698
- type: "ACTIVITY_TYPE_LIST_OAUTH2CREDENTIALS",
648
+ const body = {
649
+ ...input,
650
+ organizationId: input.organizationId,
699
651
  };
700
- const stringifiedBody = JSON.stringify(bodyWithType);
652
+ const stringifiedBody = JSON.stringify(body);
701
653
  const stamp = await activeStamper.stamp(stringifiedBody);
702
654
  return {
703
655
  body: stringifiedBody,
@@ -719,14 +671,12 @@ class TurnkeySDKClientBase {
719
671
  if (!activeStamper) {
720
672
  return undefined;
721
673
  }
722
- const { organizationId, ...parameters } = input;
723
674
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_policies";
724
- const bodyWithType = {
725
- parameters,
726
- organizationId,
727
- type: "ACTIVITY_TYPE_GET_POLICIES",
675
+ const body = {
676
+ ...input,
677
+ organizationId: input.organizationId,
728
678
  };
729
- const stringifiedBody = JSON.stringify(bodyWithType);
679
+ const stringifiedBody = JSON.stringify(body);
730
680
  const stamp = await activeStamper.stamp(stringifiedBody);
731
681
  return {
732
682
  body: stringifiedBody,
@@ -748,14 +698,12 @@ class TurnkeySDKClientBase {
748
698
  if (!activeStamper) {
749
699
  return undefined;
750
700
  }
751
- const { organizationId, ...parameters } = input;
752
701
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_key_tags";
753
- const bodyWithType = {
754
- parameters,
755
- organizationId,
756
- type: "ACTIVITY_TYPE_LIST_PRIVATE_KEY_TAGS",
702
+ const body = {
703
+ ...input,
704
+ organizationId: input.organizationId,
757
705
  };
758
- const stringifiedBody = JSON.stringify(bodyWithType);
706
+ const stringifiedBody = JSON.stringify(body);
759
707
  const stamp = await activeStamper.stamp(stringifiedBody);
760
708
  return {
761
709
  body: stringifiedBody,
@@ -777,14 +725,12 @@ class TurnkeySDKClientBase {
777
725
  if (!activeStamper) {
778
726
  return undefined;
779
727
  }
780
- const { organizationId, ...parameters } = input;
781
728
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_keys";
782
- const bodyWithType = {
783
- parameters,
784
- organizationId,
785
- type: "ACTIVITY_TYPE_GET_PRIVATE_KEYS",
729
+ const body = {
730
+ ...input,
731
+ organizationId: input.organizationId,
786
732
  };
787
- const stringifiedBody = JSON.stringify(bodyWithType);
733
+ const stringifiedBody = JSON.stringify(body);
788
734
  const stamp = await activeStamper.stamp(stringifiedBody);
789
735
  return {
790
736
  body: stringifiedBody,
@@ -806,15 +752,13 @@ class TurnkeySDKClientBase {
806
752
  if (!activeStamper) {
807
753
  return undefined;
808
754
  }
809
- const { organizationId, ...parameters } = input;
810
755
  const fullUrl = this.config.apiBaseUrl +
811
756
  "/public/v1/query/list_smart_contract_interfaces";
812
- const bodyWithType = {
813
- parameters,
814
- organizationId,
815
- type: "ACTIVITY_TYPE_GET_SMART_CONTRACT_INTERFACES",
757
+ const body = {
758
+ ...input,
759
+ organizationId: input.organizationId,
816
760
  };
817
- const stringifiedBody = JSON.stringify(bodyWithType);
761
+ const stringifiedBody = JSON.stringify(body);
818
762
  const stamp = await activeStamper.stamp(stringifiedBody);
819
763
  return {
820
764
  body: stringifiedBody,
@@ -836,14 +780,12 @@ class TurnkeySDKClientBase {
836
780
  if (!activeStamper) {
837
781
  return undefined;
838
782
  }
839
- const { organizationId, ...parameters } = input;
840
783
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_suborgs";
841
- const bodyWithType = {
842
- parameters,
843
- organizationId,
844
- type: "ACTIVITY_TYPE_GET_SUB_ORG_IDS",
784
+ const body = {
785
+ ...input,
786
+ organizationId: input.organizationId,
845
787
  };
846
- const stringifiedBody = JSON.stringify(bodyWithType);
788
+ const stringifiedBody = JSON.stringify(body);
847
789
  const stamp = await activeStamper.stamp(stringifiedBody);
848
790
  return {
849
791
  body: stringifiedBody,
@@ -865,14 +807,12 @@ class TurnkeySDKClientBase {
865
807
  if (!activeStamper) {
866
808
  return undefined;
867
809
  }
868
- const { organizationId, ...parameters } = input;
869
810
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_user_tags";
870
- const bodyWithType = {
871
- parameters,
872
- organizationId,
873
- type: "ACTIVITY_TYPE_LIST_USER_TAGS",
811
+ const body = {
812
+ ...input,
813
+ organizationId: input.organizationId,
874
814
  };
875
- const stringifiedBody = JSON.stringify(bodyWithType);
815
+ const stringifiedBody = JSON.stringify(body);
876
816
  const stamp = await activeStamper.stamp(stringifiedBody);
877
817
  return {
878
818
  body: stringifiedBody,
@@ -894,14 +834,12 @@ class TurnkeySDKClientBase {
894
834
  if (!activeStamper) {
895
835
  return undefined;
896
836
  }
897
- const { organizationId, ...parameters } = input;
898
837
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_users";
899
- const bodyWithType = {
900
- parameters,
901
- organizationId,
902
- type: "ACTIVITY_TYPE_GET_USERS",
838
+ const body = {
839
+ ...input,
840
+ organizationId: input.organizationId,
903
841
  };
904
- const stringifiedBody = JSON.stringify(bodyWithType);
842
+ const stringifiedBody = JSON.stringify(body);
905
843
  const stamp = await activeStamper.stamp(stringifiedBody);
906
844
  return {
907
845
  body: stringifiedBody,
@@ -923,14 +861,12 @@ class TurnkeySDKClientBase {
923
861
  if (!activeStamper) {
924
862
  return undefined;
925
863
  }
926
- const { organizationId, ...parameters } = input;
927
864
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_verified_suborgs";
928
- const bodyWithType = {
929
- parameters,
930
- organizationId,
931
- type: "ACTIVITY_TYPE_GET_VERIFIED_SUB_ORG_IDS",
865
+ const body = {
866
+ ...input,
867
+ organizationId: input.organizationId,
932
868
  };
933
- const stringifiedBody = JSON.stringify(bodyWithType);
869
+ const stringifiedBody = JSON.stringify(body);
934
870
  const stamp = await activeStamper.stamp(stringifiedBody);
935
871
  return {
936
872
  body: stringifiedBody,
@@ -952,14 +888,12 @@ class TurnkeySDKClientBase {
952
888
  if (!activeStamper) {
953
889
  return undefined;
954
890
  }
955
- const { organizationId, ...parameters } = input;
956
891
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallet_accounts";
957
- const bodyWithType = {
958
- parameters,
959
- organizationId,
960
- type: "ACTIVITY_TYPE_GET_WALLET_ACCOUNTS",
892
+ const body = {
893
+ ...input,
894
+ organizationId: input.organizationId,
961
895
  };
962
- const stringifiedBody = JSON.stringify(bodyWithType);
896
+ const stringifiedBody = JSON.stringify(body);
963
897
  const stamp = await activeStamper.stamp(stringifiedBody);
964
898
  return {
965
899
  body: stringifiedBody,
@@ -981,14 +915,12 @@ class TurnkeySDKClientBase {
981
915
  if (!activeStamper) {
982
916
  return undefined;
983
917
  }
984
- const { organizationId, ...parameters } = input;
985
918
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallets";
986
- const bodyWithType = {
987
- parameters,
988
- organizationId,
989
- type: "ACTIVITY_TYPE_GET_WALLETS",
919
+ const body = {
920
+ ...input,
921
+ organizationId: input.organizationId,
990
922
  };
991
- const stringifiedBody = JSON.stringify(bodyWithType);
923
+ const stringifiedBody = JSON.stringify(body);
992
924
  const stamp = await activeStamper.stamp(stringifiedBody);
993
925
  return {
994
926
  body: stringifiedBody,
@@ -1010,14 +942,12 @@ class TurnkeySDKClientBase {
1010
942
  if (!activeStamper) {
1011
943
  return undefined;
1012
944
  }
1013
- const { organizationId, ...parameters } = input;
1014
945
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/whoami";
1015
- const bodyWithType = {
1016
- parameters,
1017
- organizationId,
1018
- type: "ACTIVITY_TYPE_GET_WHOAMI",
946
+ const body = {
947
+ ...input,
948
+ organizationId: input.organizationId,
1019
949
  };
1020
- const stringifiedBody = JSON.stringify(bodyWithType);
950
+ const stringifiedBody = JSON.stringify(body);
1021
951
  const stamp = await activeStamper.stamp(stringifiedBody);
1022
952
  return {
1023
953
  body: stringifiedBody,
@@ -3519,14 +3449,12 @@ class TurnkeySDKClientBase {
3519
3449
  if (!activeStamper) {
3520
3450
  return undefined;
3521
3451
  }
3522
- const { organizationId, ...parameters } = input;
3523
3452
  const fullUrl = this.config.apiBaseUrl + "/tkhq/api/v1/test_rate_limits";
3524
- const bodyWithType = {
3525
- parameters,
3526
- organizationId,
3527
- type: "ACTIVITY_TYPE_TEST_RATE_LIMITS",
3453
+ const body = {
3454
+ ...input,
3455
+ organizationId: input.organizationId,
3528
3456
  };
3529
- const stringifiedBody = JSON.stringify(bodyWithType);
3457
+ const stringifiedBody = JSON.stringify(body);
3530
3458
  const stamp = await activeStamper.stamp(stringifiedBody);
3531
3459
  return {
3532
3460
  body: stringifiedBody,