@turnkey/core 1.7.0 → 1.8.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.
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 +27 -4
  43. package/dist/__wallet__/web/native/ethereum.js.map +1 -1
  44. package/dist/__wallet__/web/native/ethereum.mjs +27 -4
  45. package/dist/__wallet__/web/native/ethereum.mjs.map +1 -1
  46. package/package.json +6 -6
@@ -21,14 +21,12 @@ class TurnkeySDKClientBase {
21
21
  if (!activeStamper) {
22
22
  return undefined;
23
23
  }
24
- const { organizationId, ...parameters } = input;
25
24
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_activity";
26
- const bodyWithType = {
27
- parameters,
28
- organizationId,
29
- type: "ACTIVITY_TYPE_GET_ACTIVITY",
25
+ const body = {
26
+ ...input,
27
+ organizationId: input.organizationId,
30
28
  };
31
- const stringifiedBody = JSON.stringify(bodyWithType);
29
+ const stringifiedBody = JSON.stringify(body);
32
30
  const stamp = await activeStamper.stamp(stringifiedBody);
33
31
  return {
34
32
  body: stringifiedBody,
@@ -50,14 +48,12 @@ class TurnkeySDKClientBase {
50
48
  if (!activeStamper) {
51
49
  return undefined;
52
50
  }
53
- const { organizationId, ...parameters } = input;
54
51
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_key";
55
- const bodyWithType = {
56
- parameters,
57
- organizationId,
58
- type: "ACTIVITY_TYPE_GET_API_KEY",
52
+ const body = {
53
+ ...input,
54
+ organizationId: input.organizationId,
59
55
  };
60
- const stringifiedBody = JSON.stringify(bodyWithType);
56
+ const stringifiedBody = JSON.stringify(body);
61
57
  const stamp = await activeStamper.stamp(stringifiedBody);
62
58
  return {
63
59
  body: stringifiedBody,
@@ -79,14 +75,12 @@ class TurnkeySDKClientBase {
79
75
  if (!activeStamper) {
80
76
  return undefined;
81
77
  }
82
- const { organizationId, ...parameters } = input;
83
78
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_api_keys";
84
- const bodyWithType = {
85
- parameters,
86
- organizationId,
87
- type: "ACTIVITY_TYPE_GET_API_KEYS",
79
+ const body = {
80
+ ...input,
81
+ organizationId: input.organizationId,
88
82
  };
89
- const stringifiedBody = JSON.stringify(bodyWithType);
83
+ const stringifiedBody = JSON.stringify(body);
90
84
  const stamp = await activeStamper.stamp(stringifiedBody);
91
85
  return {
92
86
  body: stringifiedBody,
@@ -108,14 +102,12 @@ class TurnkeySDKClientBase {
108
102
  if (!activeStamper) {
109
103
  return undefined;
110
104
  }
111
- const { organizationId, ...parameters } = input;
112
105
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_attestation";
113
- const bodyWithType = {
114
- parameters,
115
- organizationId,
116
- type: "ACTIVITY_TYPE_GET_ATTESTATION_DOCUMENT",
106
+ const body = {
107
+ ...input,
108
+ organizationId: input.organizationId,
117
109
  };
118
- const stringifiedBody = JSON.stringify(bodyWithType);
110
+ const stringifiedBody = JSON.stringify(body);
119
111
  const stamp = await activeStamper.stamp(stringifiedBody);
120
112
  return {
121
113
  body: stringifiedBody,
@@ -137,14 +129,12 @@ class TurnkeySDKClientBase {
137
129
  if (!activeStamper) {
138
130
  return undefined;
139
131
  }
140
- const { organizationId, ...parameters } = input;
141
132
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticator";
142
- const bodyWithType = {
143
- parameters,
144
- organizationId,
145
- type: "ACTIVITY_TYPE_GET_AUTHENTICATOR",
133
+ const body = {
134
+ ...input,
135
+ organizationId: input.organizationId,
146
136
  };
147
- const stringifiedBody = JSON.stringify(bodyWithType);
137
+ const stringifiedBody = JSON.stringify(body);
148
138
  const stamp = await activeStamper.stamp(stringifiedBody);
149
139
  return {
150
140
  body: stringifiedBody,
@@ -166,14 +156,12 @@ class TurnkeySDKClientBase {
166
156
  if (!activeStamper) {
167
157
  return undefined;
168
158
  }
169
- const { organizationId, ...parameters } = input;
170
159
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_authenticators";
171
- const bodyWithType = {
172
- parameters,
173
- organizationId,
174
- type: "ACTIVITY_TYPE_GET_AUTHENTICATORS",
160
+ const body = {
161
+ ...input,
162
+ organizationId: input.organizationId,
175
163
  };
176
- const stringifiedBody = JSON.stringify(bodyWithType);
164
+ const stringifiedBody = JSON.stringify(body);
177
165
  const stamp = await activeStamper.stamp(stringifiedBody);
178
166
  return {
179
167
  body: stringifiedBody,
@@ -195,14 +183,12 @@ class TurnkeySDKClientBase {
195
183
  if (!activeStamper) {
196
184
  return undefined;
197
185
  }
198
- const { organizationId, ...parameters } = input;
199
186
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_boot_proof";
200
- const bodyWithType = {
201
- parameters,
202
- organizationId,
203
- type: "ACTIVITY_TYPE_GET_BOOT_PROOF",
187
+ const body = {
188
+ ...input,
189
+ organizationId: input.organizationId,
204
190
  };
205
- const stringifiedBody = JSON.stringify(bodyWithType);
191
+ const stringifiedBody = JSON.stringify(body);
206
192
  const stamp = await activeStamper.stamp(stringifiedBody);
207
193
  return {
208
194
  body: stringifiedBody,
@@ -224,14 +210,12 @@ class TurnkeySDKClientBase {
224
210
  if (!activeStamper) {
225
211
  return undefined;
226
212
  }
227
- const { organizationId, ...parameters } = input;
228
213
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_latest_boot_proof";
229
- const bodyWithType = {
230
- parameters,
231
- organizationId,
232
- type: "ACTIVITY_TYPE_GET_LATEST_BOOT_PROOF",
214
+ const body = {
215
+ ...input,
216
+ organizationId: input.organizationId,
233
217
  };
234
- const stringifiedBody = JSON.stringify(bodyWithType);
218
+ const stringifiedBody = JSON.stringify(body);
235
219
  const stamp = await activeStamper.stamp(stringifiedBody);
236
220
  return {
237
221
  body: stringifiedBody,
@@ -253,14 +237,12 @@ class TurnkeySDKClientBase {
253
237
  if (!activeStamper) {
254
238
  return undefined;
255
239
  }
256
- const { organizationId, ...parameters } = input;
257
240
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth2_credential";
258
- const bodyWithType = {
259
- parameters,
260
- organizationId,
261
- type: "ACTIVITY_TYPE_GET_OAUTH2CREDENTIAL",
241
+ const body = {
242
+ ...input,
243
+ organizationId: input.organizationId,
262
244
  };
263
- const stringifiedBody = JSON.stringify(bodyWithType);
245
+ const stringifiedBody = JSON.stringify(body);
264
246
  const stamp = await activeStamper.stamp(stringifiedBody);
265
247
  return {
266
248
  body: stringifiedBody,
@@ -282,14 +264,12 @@ class TurnkeySDKClientBase {
282
264
  if (!activeStamper) {
283
265
  return undefined;
284
266
  }
285
- const { organizationId, ...parameters } = input;
286
267
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_oauth_providers";
287
- const bodyWithType = {
288
- parameters,
289
- organizationId,
290
- type: "ACTIVITY_TYPE_GET_OAUTH_PROVIDERS",
268
+ const body = {
269
+ ...input,
270
+ organizationId: input.organizationId,
291
271
  };
292
- const stringifiedBody = JSON.stringify(bodyWithType);
272
+ const stringifiedBody = JSON.stringify(body);
293
273
  const stamp = await activeStamper.stamp(stringifiedBody);
294
274
  return {
295
275
  body: stringifiedBody,
@@ -311,14 +291,12 @@ class TurnkeySDKClientBase {
311
291
  if (!activeStamper) {
312
292
  return undefined;
313
293
  }
314
- const { organizationId, ...parameters } = input;
315
294
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_onramp_transaction_status";
316
- const bodyWithType = {
317
- parameters,
318
- organizationId,
319
- type: "ACTIVITY_TYPE_GET_ON_RAMP_TRANSACTION_STATUS",
295
+ const body = {
296
+ ...input,
297
+ organizationId: input.organizationId,
320
298
  };
321
- const stringifiedBody = JSON.stringify(bodyWithType);
299
+ const stringifiedBody = JSON.stringify(body);
322
300
  const stamp = await activeStamper.stamp(stringifiedBody);
323
301
  return {
324
302
  body: stringifiedBody,
@@ -340,14 +318,12 @@ class TurnkeySDKClientBase {
340
318
  if (!activeStamper) {
341
319
  return undefined;
342
320
  }
343
- const { organizationId, ...parameters } = input;
344
321
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization";
345
- const bodyWithType = {
346
- parameters,
347
- organizationId,
348
- type: "ACTIVITY_TYPE_GET_ORGANIZATION",
322
+ const body = {
323
+ ...input,
324
+ organizationId: input.organizationId,
349
325
  };
350
- const stringifiedBody = JSON.stringify(bodyWithType);
326
+ const stringifiedBody = JSON.stringify(body);
351
327
  const stamp = await activeStamper.stamp(stringifiedBody);
352
328
  return {
353
329
  body: stringifiedBody,
@@ -369,14 +345,12 @@ class TurnkeySDKClientBase {
369
345
  if (!activeStamper) {
370
346
  return undefined;
371
347
  }
372
- const { organizationId, ...parameters } = input;
373
348
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_organization_configs";
374
- const bodyWithType = {
375
- parameters,
376
- organizationId,
377
- type: "ACTIVITY_TYPE_GET_ORGANIZATION_CONFIGS",
349
+ const body = {
350
+ ...input,
351
+ organizationId: input.organizationId,
378
352
  };
379
- const stringifiedBody = JSON.stringify(bodyWithType);
353
+ const stringifiedBody = JSON.stringify(body);
380
354
  const stamp = await activeStamper.stamp(stringifiedBody);
381
355
  return {
382
356
  body: stringifiedBody,
@@ -398,14 +372,12 @@ class TurnkeySDKClientBase {
398
372
  if (!activeStamper) {
399
373
  return undefined;
400
374
  }
401
- const { organizationId, ...parameters } = input;
402
375
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy";
403
- const bodyWithType = {
404
- parameters,
405
- organizationId,
406
- type: "ACTIVITY_TYPE_GET_POLICY",
376
+ const body = {
377
+ ...input,
378
+ organizationId: input.organizationId,
407
379
  };
408
- const stringifiedBody = JSON.stringify(bodyWithType);
380
+ const stringifiedBody = JSON.stringify(body);
409
381
  const stamp = await activeStamper.stamp(stringifiedBody);
410
382
  return {
411
383
  body: stringifiedBody,
@@ -427,14 +399,12 @@ class TurnkeySDKClientBase {
427
399
  if (!activeStamper) {
428
400
  return undefined;
429
401
  }
430
- const { organizationId, ...parameters } = input;
431
402
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_policy_evaluations";
432
- const bodyWithType = {
433
- parameters,
434
- organizationId,
435
- type: "ACTIVITY_TYPE_GET_POLICY_EVALUATIONS",
403
+ const body = {
404
+ ...input,
405
+ organizationId: input.organizationId,
436
406
  };
437
- const stringifiedBody = JSON.stringify(bodyWithType);
407
+ const stringifiedBody = JSON.stringify(body);
438
408
  const stamp = await activeStamper.stamp(stringifiedBody);
439
409
  return {
440
410
  body: stringifiedBody,
@@ -456,14 +426,12 @@ class TurnkeySDKClientBase {
456
426
  if (!activeStamper) {
457
427
  return undefined;
458
428
  }
459
- const { organizationId, ...parameters } = input;
460
429
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_private_key";
461
- const bodyWithType = {
462
- parameters,
463
- organizationId,
464
- type: "ACTIVITY_TYPE_GET_PRIVATE_KEY",
430
+ const body = {
431
+ ...input,
432
+ organizationId: input.organizationId,
465
433
  };
466
- const stringifiedBody = JSON.stringify(bodyWithType);
434
+ const stringifiedBody = JSON.stringify(body);
467
435
  const stamp = await activeStamper.stamp(stringifiedBody);
468
436
  return {
469
437
  body: stringifiedBody,
@@ -485,14 +453,12 @@ class TurnkeySDKClientBase {
485
453
  if (!activeStamper) {
486
454
  return undefined;
487
455
  }
488
- const { organizationId, ...parameters } = input;
489
456
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_smart_contract_interface";
490
- const bodyWithType = {
491
- parameters,
492
- organizationId,
493
- type: "ACTIVITY_TYPE_GET_SMART_CONTRACT_INTERFACE",
457
+ const body = {
458
+ ...input,
459
+ organizationId: input.organizationId,
494
460
  };
495
- const stringifiedBody = JSON.stringify(bodyWithType);
461
+ const stringifiedBody = JSON.stringify(body);
496
462
  const stamp = await activeStamper.stamp(stringifiedBody);
497
463
  return {
498
464
  body: stringifiedBody,
@@ -514,14 +480,12 @@ class TurnkeySDKClientBase {
514
480
  if (!activeStamper) {
515
481
  return undefined;
516
482
  }
517
- const { organizationId, ...parameters } = input;
518
483
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_user";
519
- const bodyWithType = {
520
- parameters,
521
- organizationId,
522
- type: "ACTIVITY_TYPE_GET_USER",
484
+ const body = {
485
+ ...input,
486
+ organizationId: input.organizationId,
523
487
  };
524
- const stringifiedBody = JSON.stringify(bodyWithType);
488
+ const stringifiedBody = JSON.stringify(body);
525
489
  const stamp = await activeStamper.stamp(stringifiedBody);
526
490
  return {
527
491
  body: stringifiedBody,
@@ -543,14 +507,12 @@ class TurnkeySDKClientBase {
543
507
  if (!activeStamper) {
544
508
  return undefined;
545
509
  }
546
- const { organizationId, ...parameters } = input;
547
510
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet";
548
- const bodyWithType = {
549
- parameters,
550
- organizationId,
551
- type: "ACTIVITY_TYPE_GET_WALLET",
511
+ const body = {
512
+ ...input,
513
+ organizationId: input.organizationId,
552
514
  };
553
- const stringifiedBody = JSON.stringify(bodyWithType);
515
+ const stringifiedBody = JSON.stringify(body);
554
516
  const stamp = await activeStamper.stamp(stringifiedBody);
555
517
  return {
556
518
  body: stringifiedBody,
@@ -572,14 +534,12 @@ class TurnkeySDKClientBase {
572
534
  if (!activeStamper) {
573
535
  return undefined;
574
536
  }
575
- const { organizationId, ...parameters } = input;
576
537
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_wallet_account";
577
- const bodyWithType = {
578
- parameters,
579
- organizationId,
580
- type: "ACTIVITY_TYPE_GET_WALLET_ACCOUNT",
538
+ const body = {
539
+ ...input,
540
+ organizationId: input.organizationId,
581
541
  };
582
- const stringifiedBody = JSON.stringify(bodyWithType);
542
+ const stringifiedBody = JSON.stringify(body);
583
543
  const stamp = await activeStamper.stamp(stringifiedBody);
584
544
  return {
585
545
  body: stringifiedBody,
@@ -601,14 +561,12 @@ class TurnkeySDKClientBase {
601
561
  if (!activeStamper) {
602
562
  return undefined;
603
563
  }
604
- const { organizationId, ...parameters } = input;
605
564
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_activities";
606
- const bodyWithType = {
607
- parameters,
608
- organizationId,
609
- type: "ACTIVITY_TYPE_GET_ACTIVITIES",
565
+ const body = {
566
+ ...input,
567
+ organizationId: input.organizationId,
610
568
  };
611
- const stringifiedBody = JSON.stringify(bodyWithType);
569
+ const stringifiedBody = JSON.stringify(body);
612
570
  const stamp = await activeStamper.stamp(stringifiedBody);
613
571
  return {
614
572
  body: stringifiedBody,
@@ -630,14 +588,12 @@ class TurnkeySDKClientBase {
630
588
  if (!activeStamper) {
631
589
  return undefined;
632
590
  }
633
- const { organizationId, ...parameters } = input;
634
591
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_app_proofs";
635
- const bodyWithType = {
636
- parameters,
637
- organizationId,
638
- type: "ACTIVITY_TYPE_GET_APP_PROOFS",
592
+ const body = {
593
+ ...input,
594
+ organizationId: input.organizationId,
639
595
  };
640
- const stringifiedBody = JSON.stringify(bodyWithType);
596
+ const stringifiedBody = JSON.stringify(body);
641
597
  const stamp = await activeStamper.stamp(stringifiedBody);
642
598
  return {
643
599
  body: stringifiedBody,
@@ -659,14 +615,12 @@ class TurnkeySDKClientBase {
659
615
  if (!activeStamper) {
660
616
  return undefined;
661
617
  }
662
- const { organizationId, ...parameters } = input;
663
618
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_fiat_on_ramp_credentials";
664
- const bodyWithType = {
665
- parameters,
666
- organizationId,
667
- type: "ACTIVITY_TYPE_LIST_FIAT_ON_RAMP_CREDENTIALS",
619
+ const body = {
620
+ ...input,
621
+ organizationId: input.organizationId,
668
622
  };
669
- const stringifiedBody = JSON.stringify(bodyWithType);
623
+ const stringifiedBody = JSON.stringify(body);
670
624
  const stamp = await activeStamper.stamp(stringifiedBody);
671
625
  return {
672
626
  body: stringifiedBody,
@@ -688,14 +642,12 @@ class TurnkeySDKClientBase {
688
642
  if (!activeStamper) {
689
643
  return undefined;
690
644
  }
691
- const { organizationId, ...parameters } = input;
692
645
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_oauth2_credentials";
693
- const bodyWithType = {
694
- parameters,
695
- organizationId,
696
- type: "ACTIVITY_TYPE_LIST_OAUTH2CREDENTIALS",
646
+ const body = {
647
+ ...input,
648
+ organizationId: input.organizationId,
697
649
  };
698
- const stringifiedBody = JSON.stringify(bodyWithType);
650
+ const stringifiedBody = JSON.stringify(body);
699
651
  const stamp = await activeStamper.stamp(stringifiedBody);
700
652
  return {
701
653
  body: stringifiedBody,
@@ -717,14 +669,12 @@ class TurnkeySDKClientBase {
717
669
  if (!activeStamper) {
718
670
  return undefined;
719
671
  }
720
- const { organizationId, ...parameters } = input;
721
672
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_policies";
722
- const bodyWithType = {
723
- parameters,
724
- organizationId,
725
- type: "ACTIVITY_TYPE_GET_POLICIES",
673
+ const body = {
674
+ ...input,
675
+ organizationId: input.organizationId,
726
676
  };
727
- const stringifiedBody = JSON.stringify(bodyWithType);
677
+ const stringifiedBody = JSON.stringify(body);
728
678
  const stamp = await activeStamper.stamp(stringifiedBody);
729
679
  return {
730
680
  body: stringifiedBody,
@@ -746,14 +696,12 @@ class TurnkeySDKClientBase {
746
696
  if (!activeStamper) {
747
697
  return undefined;
748
698
  }
749
- const { organizationId, ...parameters } = input;
750
699
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_key_tags";
751
- const bodyWithType = {
752
- parameters,
753
- organizationId,
754
- type: "ACTIVITY_TYPE_LIST_PRIVATE_KEY_TAGS",
700
+ const body = {
701
+ ...input,
702
+ organizationId: input.organizationId,
755
703
  };
756
- const stringifiedBody = JSON.stringify(bodyWithType);
704
+ const stringifiedBody = JSON.stringify(body);
757
705
  const stamp = await activeStamper.stamp(stringifiedBody);
758
706
  return {
759
707
  body: stringifiedBody,
@@ -775,14 +723,12 @@ class TurnkeySDKClientBase {
775
723
  if (!activeStamper) {
776
724
  return undefined;
777
725
  }
778
- const { organizationId, ...parameters } = input;
779
726
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_private_keys";
780
- const bodyWithType = {
781
- parameters,
782
- organizationId,
783
- type: "ACTIVITY_TYPE_GET_PRIVATE_KEYS",
727
+ const body = {
728
+ ...input,
729
+ organizationId: input.organizationId,
784
730
  };
785
- const stringifiedBody = JSON.stringify(bodyWithType);
731
+ const stringifiedBody = JSON.stringify(body);
786
732
  const stamp = await activeStamper.stamp(stringifiedBody);
787
733
  return {
788
734
  body: stringifiedBody,
@@ -804,15 +750,13 @@ class TurnkeySDKClientBase {
804
750
  if (!activeStamper) {
805
751
  return undefined;
806
752
  }
807
- const { organizationId, ...parameters } = input;
808
753
  const fullUrl = this.config.apiBaseUrl +
809
754
  "/public/v1/query/list_smart_contract_interfaces";
810
- const bodyWithType = {
811
- parameters,
812
- organizationId,
813
- type: "ACTIVITY_TYPE_GET_SMART_CONTRACT_INTERFACES",
755
+ const body = {
756
+ ...input,
757
+ organizationId: input.organizationId,
814
758
  };
815
- const stringifiedBody = JSON.stringify(bodyWithType);
759
+ const stringifiedBody = JSON.stringify(body);
816
760
  const stamp = await activeStamper.stamp(stringifiedBody);
817
761
  return {
818
762
  body: stringifiedBody,
@@ -834,14 +778,12 @@ class TurnkeySDKClientBase {
834
778
  if (!activeStamper) {
835
779
  return undefined;
836
780
  }
837
- const { organizationId, ...parameters } = input;
838
781
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_suborgs";
839
- const bodyWithType = {
840
- parameters,
841
- organizationId,
842
- type: "ACTIVITY_TYPE_GET_SUB_ORG_IDS",
782
+ const body = {
783
+ ...input,
784
+ organizationId: input.organizationId,
843
785
  };
844
- const stringifiedBody = JSON.stringify(bodyWithType);
786
+ const stringifiedBody = JSON.stringify(body);
845
787
  const stamp = await activeStamper.stamp(stringifiedBody);
846
788
  return {
847
789
  body: stringifiedBody,
@@ -863,14 +805,12 @@ class TurnkeySDKClientBase {
863
805
  if (!activeStamper) {
864
806
  return undefined;
865
807
  }
866
- const { organizationId, ...parameters } = input;
867
808
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_user_tags";
868
- const bodyWithType = {
869
- parameters,
870
- organizationId,
871
- type: "ACTIVITY_TYPE_LIST_USER_TAGS",
809
+ const body = {
810
+ ...input,
811
+ organizationId: input.organizationId,
872
812
  };
873
- const stringifiedBody = JSON.stringify(bodyWithType);
813
+ const stringifiedBody = JSON.stringify(body);
874
814
  const stamp = await activeStamper.stamp(stringifiedBody);
875
815
  return {
876
816
  body: stringifiedBody,
@@ -892,14 +832,12 @@ class TurnkeySDKClientBase {
892
832
  if (!activeStamper) {
893
833
  return undefined;
894
834
  }
895
- const { organizationId, ...parameters } = input;
896
835
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_users";
897
- const bodyWithType = {
898
- parameters,
899
- organizationId,
900
- type: "ACTIVITY_TYPE_GET_USERS",
836
+ const body = {
837
+ ...input,
838
+ organizationId: input.organizationId,
901
839
  };
902
- const stringifiedBody = JSON.stringify(bodyWithType);
840
+ const stringifiedBody = JSON.stringify(body);
903
841
  const stamp = await activeStamper.stamp(stringifiedBody);
904
842
  return {
905
843
  body: stringifiedBody,
@@ -921,14 +859,12 @@ class TurnkeySDKClientBase {
921
859
  if (!activeStamper) {
922
860
  return undefined;
923
861
  }
924
- const { organizationId, ...parameters } = input;
925
862
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_verified_suborgs";
926
- const bodyWithType = {
927
- parameters,
928
- organizationId,
929
- type: "ACTIVITY_TYPE_GET_VERIFIED_SUB_ORG_IDS",
863
+ const body = {
864
+ ...input,
865
+ organizationId: input.organizationId,
930
866
  };
931
- const stringifiedBody = JSON.stringify(bodyWithType);
867
+ const stringifiedBody = JSON.stringify(body);
932
868
  const stamp = await activeStamper.stamp(stringifiedBody);
933
869
  return {
934
870
  body: stringifiedBody,
@@ -950,14 +886,12 @@ class TurnkeySDKClientBase {
950
886
  if (!activeStamper) {
951
887
  return undefined;
952
888
  }
953
- const { organizationId, ...parameters } = input;
954
889
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallet_accounts";
955
- const bodyWithType = {
956
- parameters,
957
- organizationId,
958
- type: "ACTIVITY_TYPE_GET_WALLET_ACCOUNTS",
890
+ const body = {
891
+ ...input,
892
+ organizationId: input.organizationId,
959
893
  };
960
- const stringifiedBody = JSON.stringify(bodyWithType);
894
+ const stringifiedBody = JSON.stringify(body);
961
895
  const stamp = await activeStamper.stamp(stringifiedBody);
962
896
  return {
963
897
  body: stringifiedBody,
@@ -979,14 +913,12 @@ class TurnkeySDKClientBase {
979
913
  if (!activeStamper) {
980
914
  return undefined;
981
915
  }
982
- const { organizationId, ...parameters } = input;
983
916
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_wallets";
984
- const bodyWithType = {
985
- parameters,
986
- organizationId,
987
- type: "ACTIVITY_TYPE_GET_WALLETS",
917
+ const body = {
918
+ ...input,
919
+ organizationId: input.organizationId,
988
920
  };
989
- const stringifiedBody = JSON.stringify(bodyWithType);
921
+ const stringifiedBody = JSON.stringify(body);
990
922
  const stamp = await activeStamper.stamp(stringifiedBody);
991
923
  return {
992
924
  body: stringifiedBody,
@@ -1008,14 +940,12 @@ class TurnkeySDKClientBase {
1008
940
  if (!activeStamper) {
1009
941
  return undefined;
1010
942
  }
1011
- const { organizationId, ...parameters } = input;
1012
943
  const fullUrl = this.config.apiBaseUrl + "/public/v1/query/whoami";
1013
- const bodyWithType = {
1014
- parameters,
1015
- organizationId,
1016
- type: "ACTIVITY_TYPE_GET_WHOAMI",
944
+ const body = {
945
+ ...input,
946
+ organizationId: input.organizationId,
1017
947
  };
1018
- const stringifiedBody = JSON.stringify(bodyWithType);
948
+ const stringifiedBody = JSON.stringify(body);
1019
949
  const stamp = await activeStamper.stamp(stringifiedBody);
1020
950
  return {
1021
951
  body: stringifiedBody,
@@ -3517,14 +3447,12 @@ class TurnkeySDKClientBase {
3517
3447
  if (!activeStamper) {
3518
3448
  return undefined;
3519
3449
  }
3520
- const { organizationId, ...parameters } = input;
3521
3450
  const fullUrl = this.config.apiBaseUrl + "/tkhq/api/v1/test_rate_limits";
3522
- const bodyWithType = {
3523
- parameters,
3524
- organizationId,
3525
- type: "ACTIVITY_TYPE_TEST_RATE_LIMITS",
3451
+ const body = {
3452
+ ...input,
3453
+ organizationId: input.organizationId,
3526
3454
  };
3527
- const stringifiedBody = JSON.stringify(bodyWithType);
3455
+ const stringifiedBody = JSON.stringify(body);
3528
3456
  const stamp = await activeStamper.stamp(stringifiedBody);
3529
3457
  return {
3530
3458
  body: stringifiedBody,