@turnkey/core 2.0.0 → 2.2.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 (34) hide show
  1. package/dist/__clients__/core.d.ts.map +1 -1
  2. package/dist/__clients__/core.js +10 -6
  3. package/dist/__clients__/core.js.map +1 -1
  4. package/dist/__clients__/core.mjs +10 -6
  5. package/dist/__clients__/core.mjs.map +1 -1
  6. package/dist/__generated__/sdk-client-base.d.ts +32 -0
  7. package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
  8. package/dist/__generated__/sdk-client-base.js +798 -0
  9. package/dist/__generated__/sdk-client-base.js.map +1 -1
  10. package/dist/__generated__/sdk-client-base.mjs +798 -0
  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/__tests__/poll-transaction-status-test.d.ts +2 -0
  16. package/dist/__tests__/poll-transaction-status-test.d.ts.map +1 -0
  17. package/dist/__tests__/utils-test.d.ts +2 -0
  18. package/dist/__tests__/utils-test.d.ts.map +1 -0
  19. package/dist/__types__/external-wallets.d.ts +50 -0
  20. package/dist/__types__/external-wallets.d.ts.map +1 -1
  21. package/dist/__types__/method-types/shared.d.ts +1 -1
  22. package/dist/__types__/method-types/shared.d.ts.map +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +2 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/utils.d.ts +13 -1
  29. package/dist/utils.d.ts.map +1 -1
  30. package/dist/utils.js +75 -0
  31. package/dist/utils.js.map +1 -1
  32. package/dist/utils.mjs +74 -1
  33. package/dist/utils.mjs.map +1 -1
  34. package/package.json +7 -7
@@ -607,6 +607,66 @@ class TurnkeySDKClientBase {
607
607
  url: fullUrl,
608
608
  };
609
609
  };
610
+ this.getTvcApp = async (input, stampWith) => {
611
+ const session = await this.storageManager?.getActiveSession();
612
+ return this.request("/public/v1/query/get_tvc_app", {
613
+ ...input,
614
+ organizationId: input.organizationId ??
615
+ session?.organizationId ??
616
+ this.config.organizationId,
617
+ }, stampWith);
618
+ };
619
+ this.stampGetTvcApp = async (input, stampWith) => {
620
+ const activeStamper = this.getStamper(stampWith);
621
+ if (!activeStamper) {
622
+ return undefined;
623
+ }
624
+ const session = await this.storageManager?.getActiveSession();
625
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_app";
626
+ const body = {
627
+ ...input,
628
+ organizationId: input.organizationId ??
629
+ session?.organizationId ??
630
+ this.config.organizationId,
631
+ };
632
+ const stringifiedBody = JSON.stringify(body);
633
+ const stamp = await activeStamper.stamp(stringifiedBody);
634
+ return {
635
+ body: stringifiedBody,
636
+ stamp: stamp,
637
+ url: fullUrl,
638
+ };
639
+ };
640
+ this.getTvcDeployment = async (input, stampWith) => {
641
+ const session = await this.storageManager?.getActiveSession();
642
+ return this.request("/public/v1/query/get_tvc_deployment", {
643
+ ...input,
644
+ organizationId: input.organizationId ??
645
+ session?.organizationId ??
646
+ this.config.organizationId,
647
+ }, stampWith);
648
+ };
649
+ this.stampGetTvcDeployment = async (input, stampWith) => {
650
+ const activeStamper = this.getStamper(stampWith);
651
+ if (!activeStamper) {
652
+ return undefined;
653
+ }
654
+ const session = await this.storageManager?.getActiveSession();
655
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_deployment";
656
+ const body = {
657
+ ...input,
658
+ organizationId: input.organizationId ??
659
+ session?.organizationId ??
660
+ this.config.organizationId,
661
+ };
662
+ const stringifiedBody = JSON.stringify(body);
663
+ const stamp = await activeStamper.stamp(stringifiedBody);
664
+ return {
665
+ body: stringifiedBody,
666
+ stamp: stamp,
667
+ url: fullUrl,
668
+ };
669
+ };
610
670
  this.getUser = async (input, stampWith) => {
611
671
  const session = await this.storageManager?.getActiveSession();
612
672
  return this.request("/public/v1/query/get_user", {
@@ -1028,6 +1088,66 @@ class TurnkeySDKClientBase {
1028
1088
  url: fullUrl,
1029
1089
  };
1030
1090
  };
1091
+ this.getTvcAppDeployments = async (input, stampWith) => {
1092
+ const session = await this.storageManager?.getActiveSession();
1093
+ return this.request("/public/v1/query/list_tvc_app_deployments", {
1094
+ ...input,
1095
+ organizationId: input.organizationId ??
1096
+ session?.organizationId ??
1097
+ this.config.organizationId,
1098
+ }, stampWith);
1099
+ };
1100
+ this.stampGetTvcAppDeployments = async (input, stampWith) => {
1101
+ const activeStamper = this.getStamper(stampWith);
1102
+ if (!activeStamper) {
1103
+ return undefined;
1104
+ }
1105
+ const session = await this.storageManager?.getActiveSession();
1106
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_app_deployments";
1107
+ const body = {
1108
+ ...input,
1109
+ organizationId: input.organizationId ??
1110
+ session?.organizationId ??
1111
+ this.config.organizationId,
1112
+ };
1113
+ const stringifiedBody = JSON.stringify(body);
1114
+ const stamp = await activeStamper.stamp(stringifiedBody);
1115
+ return {
1116
+ body: stringifiedBody,
1117
+ stamp: stamp,
1118
+ url: fullUrl,
1119
+ };
1120
+ };
1121
+ this.getTvcApps = async (input, stampWith) => {
1122
+ const session = await this.storageManager?.getActiveSession();
1123
+ return this.request("/public/v1/query/list_tvc_apps", {
1124
+ ...input,
1125
+ organizationId: input.organizationId ??
1126
+ session?.organizationId ??
1127
+ this.config.organizationId,
1128
+ }, stampWith);
1129
+ };
1130
+ this.stampGetTvcApps = async (input, stampWith) => {
1131
+ const activeStamper = this.getStamper(stampWith);
1132
+ if (!activeStamper) {
1133
+ return undefined;
1134
+ }
1135
+ const session = await this.storageManager?.getActiveSession();
1136
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_apps";
1137
+ const body = {
1138
+ ...input,
1139
+ organizationId: input.organizationId ??
1140
+ session?.organizationId ??
1141
+ this.config.organizationId,
1142
+ };
1143
+ const stringifiedBody = JSON.stringify(body);
1144
+ const stamp = await activeStamper.stamp(stringifiedBody);
1145
+ return {
1146
+ body: stringifiedBody,
1147
+ stamp: stamp,
1148
+ url: fullUrl,
1149
+ };
1150
+ };
1031
1151
  this.listUserTags = async (input = {}, stampWith) => {
1032
1152
  const session = await this.storageManager?.getActiveSession();
1033
1153
  return this.request("/public/v1/query/list_user_tags", {
@@ -1208,6 +1328,36 @@ class TurnkeySDKClientBase {
1208
1328
  url: fullUrl,
1209
1329
  };
1210
1330
  };
1331
+ this.validateTvcImage = async (input, stampWith) => {
1332
+ const session = await this.storageManager?.getActiveSession();
1333
+ return this.request("/public/v1/query/validate_tvc_image", {
1334
+ ...input,
1335
+ organizationId: input.organizationId ??
1336
+ session?.organizationId ??
1337
+ this.config.organizationId,
1338
+ }, stampWith);
1339
+ };
1340
+ this.stampValidateTvcImage = async (input, stampWith) => {
1341
+ const activeStamper = this.getStamper(stampWith);
1342
+ if (!activeStamper) {
1343
+ return undefined;
1344
+ }
1345
+ const session = await this.storageManager?.getActiveSession();
1346
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/validate_tvc_image";
1347
+ const body = {
1348
+ ...input,
1349
+ organizationId: input.organizationId ??
1350
+ session?.organizationId ??
1351
+ this.config.organizationId,
1352
+ };
1353
+ const stringifiedBody = JSON.stringify(body);
1354
+ const stamp = await activeStamper.stamp(stringifiedBody);
1355
+ return {
1356
+ body: stringifiedBody,
1357
+ stamp: stamp,
1358
+ url: fullUrl,
1359
+ };
1360
+ };
1211
1361
  this.getWhoami = async (input = {}, stampWith) => {
1212
1362
  const session = await this.storageManager?.getActiveSession();
1213
1363
  return this.request("/public/v1/query/whoami", {
@@ -1240,6 +1390,7 @@ class TurnkeySDKClientBase {
1240
1390
  };
1241
1391
  this.approveActivity = async (input, stampWith) => {
1242
1392
  const { organizationId, timestampMs, ...rest } = input;
1393
+ const generateAppProofs = input?.generateAppProofs ?? false;
1243
1394
  const session = await this.storageManager?.getActiveSession();
1244
1395
  return this.activityDecision("/public/v1/submit/approve_activity", {
1245
1396
  parameters: rest,
@@ -1247,6 +1398,7 @@ class TurnkeySDKClientBase {
1247
1398
  session?.organizationId ??
1248
1399
  this.config.organizationId,
1249
1400
  timestampMs: timestampMs ?? String(Date.now()),
1401
+ generateAppProofs: generateAppProofs ?? false,
1250
1402
  type: "ACTIVITY_TYPE_APPROVE_ACTIVITY",
1251
1403
  }, stampWith);
1252
1404
  };
@@ -1274,6 +1426,8 @@ class TurnkeySDKClientBase {
1274
1426
  };
1275
1427
  this.createApiKeys = async (input, stampWith) => {
1276
1428
  const { organizationId, timestampMs, ...rest } = input;
1429
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1430
+ const generateAppProofs = input?.generateAppProofs ?? false;
1277
1431
  const session = await this.storageManager?.getActiveSession();
1278
1432
  return this.activity("/public/v1/submit/create_api_keys", {
1279
1433
  parameters: rest,
@@ -1281,6 +1435,7 @@ class TurnkeySDKClientBase {
1281
1435
  session?.organizationId ??
1282
1436
  this.config.organizationId,
1283
1437
  timestampMs: timestampMs ?? String(Date.now()),
1438
+ generateAppProofs: generateAppProofs ?? false,
1284
1439
  type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2",
1285
1440
  }, "createApiKeysResult", stampWith);
1286
1441
  };
@@ -1308,6 +1463,8 @@ class TurnkeySDKClientBase {
1308
1463
  };
1309
1464
  this.createAuthenticators = async (input, stampWith) => {
1310
1465
  const { organizationId, timestampMs, ...rest } = input;
1466
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1467
+ const generateAppProofs = input?.generateAppProofs ?? false;
1311
1468
  const session = await this.storageManager?.getActiveSession();
1312
1469
  return this.activity("/public/v1/submit/create_authenticators", {
1313
1470
  parameters: rest,
@@ -1315,6 +1472,7 @@ class TurnkeySDKClientBase {
1315
1472
  session?.organizationId ??
1316
1473
  this.config.organizationId,
1317
1474
  timestampMs: timestampMs ?? String(Date.now()),
1475
+ generateAppProofs: generateAppProofs ?? false,
1318
1476
  type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2",
1319
1477
  }, "createAuthenticatorsResult", stampWith);
1320
1478
  };
@@ -1342,6 +1500,8 @@ class TurnkeySDKClientBase {
1342
1500
  };
1343
1501
  this.createFiatOnRampCredential = async (input, stampWith) => {
1344
1502
  const { organizationId, timestampMs, ...rest } = input;
1503
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1504
+ const generateAppProofs = input?.generateAppProofs ?? false;
1345
1505
  const session = await this.storageManager?.getActiveSession();
1346
1506
  return this.activity("/public/v1/submit/create_fiat_on_ramp_credential", {
1347
1507
  parameters: rest,
@@ -1349,6 +1509,7 @@ class TurnkeySDKClientBase {
1349
1509
  session?.organizationId ??
1350
1510
  this.config.organizationId,
1351
1511
  timestampMs: timestampMs ?? String(Date.now()),
1512
+ generateAppProofs: generateAppProofs ?? false,
1352
1513
  type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL",
1353
1514
  }, "createFiatOnRampCredentialResult", stampWith);
1354
1515
  };
@@ -1377,6 +1538,8 @@ class TurnkeySDKClientBase {
1377
1538
  };
1378
1539
  this.createInvitations = async (input, stampWith) => {
1379
1540
  const { organizationId, timestampMs, ...rest } = input;
1541
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1542
+ const generateAppProofs = input?.generateAppProofs ?? false;
1380
1543
  const session = await this.storageManager?.getActiveSession();
1381
1544
  return this.activity("/public/v1/submit/create_invitations", {
1382
1545
  parameters: rest,
@@ -1384,6 +1547,7 @@ class TurnkeySDKClientBase {
1384
1547
  session?.organizationId ??
1385
1548
  this.config.organizationId,
1386
1549
  timestampMs: timestampMs ?? String(Date.now()),
1550
+ generateAppProofs: generateAppProofs ?? false,
1387
1551
  type: "ACTIVITY_TYPE_CREATE_INVITATIONS",
1388
1552
  }, "createInvitationsResult", stampWith);
1389
1553
  };
@@ -1411,6 +1575,8 @@ class TurnkeySDKClientBase {
1411
1575
  };
1412
1576
  this.createOauth2Credential = async (input, stampWith) => {
1413
1577
  const { organizationId, timestampMs, ...rest } = input;
1578
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1579
+ const generateAppProofs = input?.generateAppProofs ?? false;
1414
1580
  const session = await this.storageManager?.getActiveSession();
1415
1581
  return this.activity("/public/v1/submit/create_oauth2_credential", {
1416
1582
  parameters: rest,
@@ -1418,6 +1584,7 @@ class TurnkeySDKClientBase {
1418
1584
  session?.organizationId ??
1419
1585
  this.config.organizationId,
1420
1586
  timestampMs: timestampMs ?? String(Date.now()),
1587
+ generateAppProofs: generateAppProofs ?? false,
1421
1588
  type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL",
1422
1589
  }, "createOauth2CredentialResult", stampWith);
1423
1590
  };
@@ -1445,6 +1612,8 @@ class TurnkeySDKClientBase {
1445
1612
  };
1446
1613
  this.createOauthProviders = async (input, stampWith) => {
1447
1614
  const { organizationId, timestampMs, ...rest } = input;
1615
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1616
+ const generateAppProofs = input?.generateAppProofs ?? false;
1448
1617
  const session = await this.storageManager?.getActiveSession();
1449
1618
  return this.activity("/public/v1/submit/create_oauth_providers", {
1450
1619
  parameters: rest,
@@ -1452,6 +1621,7 @@ class TurnkeySDKClientBase {
1452
1621
  session?.organizationId ??
1453
1622
  this.config.organizationId,
1454
1623
  timestampMs: timestampMs ?? String(Date.now()),
1624
+ generateAppProofs: generateAppProofs ?? false,
1455
1625
  type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2",
1456
1626
  }, "createOauthProvidersResultV2", stampWith);
1457
1627
  };
@@ -1479,6 +1649,8 @@ class TurnkeySDKClientBase {
1479
1649
  };
1480
1650
  this.createPolicies = async (input, stampWith) => {
1481
1651
  const { organizationId, timestampMs, ...rest } = input;
1652
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1653
+ const generateAppProofs = input?.generateAppProofs ?? false;
1482
1654
  const session = await this.storageManager?.getActiveSession();
1483
1655
  return this.activity("/public/v1/submit/create_policies", {
1484
1656
  parameters: rest,
@@ -1486,6 +1658,7 @@ class TurnkeySDKClientBase {
1486
1658
  session?.organizationId ??
1487
1659
  this.config.organizationId,
1488
1660
  timestampMs: timestampMs ?? String(Date.now()),
1661
+ generateAppProofs: generateAppProofs ?? false,
1489
1662
  type: "ACTIVITY_TYPE_CREATE_POLICIES",
1490
1663
  }, "createPoliciesResult", stampWith);
1491
1664
  };
@@ -1513,6 +1686,8 @@ class TurnkeySDKClientBase {
1513
1686
  };
1514
1687
  this.createPolicy = async (input, stampWith) => {
1515
1688
  const { organizationId, timestampMs, ...rest } = input;
1689
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1690
+ const generateAppProofs = input?.generateAppProofs ?? false;
1516
1691
  const session = await this.storageManager?.getActiveSession();
1517
1692
  return this.activity("/public/v1/submit/create_policy", {
1518
1693
  parameters: rest,
@@ -1520,6 +1695,7 @@ class TurnkeySDKClientBase {
1520
1695
  session?.organizationId ??
1521
1696
  this.config.organizationId,
1522
1697
  timestampMs: timestampMs ?? String(Date.now()),
1698
+ generateAppProofs: generateAppProofs ?? false,
1523
1699
  type: "ACTIVITY_TYPE_CREATE_POLICY_V3",
1524
1700
  }, "createPolicyResult", stampWith);
1525
1701
  };
@@ -1547,6 +1723,8 @@ class TurnkeySDKClientBase {
1547
1723
  };
1548
1724
  this.createPrivateKeyTag = async (input, stampWith) => {
1549
1725
  const { organizationId, timestampMs, ...rest } = input;
1726
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1727
+ const generateAppProofs = input?.generateAppProofs ?? false;
1550
1728
  const session = await this.storageManager?.getActiveSession();
1551
1729
  return this.activity("/public/v1/submit/create_private_key_tag", {
1552
1730
  parameters: rest,
@@ -1554,6 +1732,7 @@ class TurnkeySDKClientBase {
1554
1732
  session?.organizationId ??
1555
1733
  this.config.organizationId,
1556
1734
  timestampMs: timestampMs ?? String(Date.now()),
1735
+ generateAppProofs: generateAppProofs ?? false,
1557
1736
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG",
1558
1737
  }, "createPrivateKeyTagResult", stampWith);
1559
1738
  };
@@ -1581,6 +1760,8 @@ class TurnkeySDKClientBase {
1581
1760
  };
1582
1761
  this.createPrivateKeys = async (input, stampWith) => {
1583
1762
  const { organizationId, timestampMs, ...rest } = input;
1763
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1764
+ const generateAppProofs = input?.generateAppProofs ?? false;
1584
1765
  const session = await this.storageManager?.getActiveSession();
1585
1766
  return this.activity("/public/v1/submit/create_private_keys", {
1586
1767
  parameters: rest,
@@ -1588,6 +1769,7 @@ class TurnkeySDKClientBase {
1588
1769
  session?.organizationId ??
1589
1770
  this.config.organizationId,
1590
1771
  timestampMs: timestampMs ?? String(Date.now()),
1772
+ generateAppProofs: generateAppProofs ?? false,
1591
1773
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2",
1592
1774
  }, "createPrivateKeysResultV2", stampWith);
1593
1775
  };
@@ -1615,6 +1797,8 @@ class TurnkeySDKClientBase {
1615
1797
  };
1616
1798
  this.createReadOnlySession = async (input, stampWith) => {
1617
1799
  const { organizationId, timestampMs, ...rest } = input;
1800
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1801
+ const generateAppProofs = input?.generateAppProofs ?? false;
1618
1802
  const session = await this.storageManager?.getActiveSession();
1619
1803
  return this.activity("/public/v1/submit/create_read_only_session", {
1620
1804
  parameters: rest,
@@ -1622,6 +1806,7 @@ class TurnkeySDKClientBase {
1622
1806
  session?.organizationId ??
1623
1807
  this.config.organizationId,
1624
1808
  timestampMs: timestampMs ?? String(Date.now()),
1809
+ generateAppProofs: generateAppProofs ?? false,
1625
1810
  type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION",
1626
1811
  }, "createReadOnlySessionResult", stampWith);
1627
1812
  };
@@ -1649,6 +1834,8 @@ class TurnkeySDKClientBase {
1649
1834
  };
1650
1835
  this.createReadWriteSession = async (input, stampWith) => {
1651
1836
  const { organizationId, timestampMs, ...rest } = input;
1837
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1838
+ const generateAppProofs = input?.generateAppProofs ?? false;
1652
1839
  const session = await this.storageManager?.getActiveSession();
1653
1840
  return this.activity("/public/v1/submit/create_read_write_session", {
1654
1841
  parameters: rest,
@@ -1656,6 +1843,7 @@ class TurnkeySDKClientBase {
1656
1843
  session?.organizationId ??
1657
1844
  this.config.organizationId,
1658
1845
  timestampMs: timestampMs ?? String(Date.now()),
1846
+ generateAppProofs: generateAppProofs ?? false,
1659
1847
  type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2",
1660
1848
  }, "createReadWriteSessionResultV2", stampWith);
1661
1849
  };
@@ -1683,6 +1871,8 @@ class TurnkeySDKClientBase {
1683
1871
  };
1684
1872
  this.createSmartContractInterface = async (input, stampWith) => {
1685
1873
  const { organizationId, timestampMs, ...rest } = input;
1874
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1875
+ const generateAppProofs = input?.generateAppProofs ?? false;
1686
1876
  const session = await this.storageManager?.getActiveSession();
1687
1877
  return this.activity("/public/v1/submit/create_smart_contract_interface", {
1688
1878
  parameters: rest,
@@ -1690,6 +1880,7 @@ class TurnkeySDKClientBase {
1690
1880
  session?.organizationId ??
1691
1881
  this.config.organizationId,
1692
1882
  timestampMs: timestampMs ?? String(Date.now()),
1883
+ generateAppProofs: generateAppProofs ?? false,
1693
1884
  type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE",
1694
1885
  }, "createSmartContractInterfaceResult", stampWith);
1695
1886
  };
@@ -1718,6 +1909,8 @@ class TurnkeySDKClientBase {
1718
1909
  };
1719
1910
  this.createSubOrganization = async (input, stampWith) => {
1720
1911
  const { organizationId, timestampMs, ...rest } = input;
1912
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1913
+ const generateAppProofs = input?.generateAppProofs ?? false;
1721
1914
  const session = await this.storageManager?.getActiveSession();
1722
1915
  return this.activity("/public/v1/submit/create_sub_organization", {
1723
1916
  parameters: rest,
@@ -1725,6 +1918,7 @@ class TurnkeySDKClientBase {
1725
1918
  session?.organizationId ??
1726
1919
  this.config.organizationId,
1727
1920
  timestampMs: timestampMs ?? String(Date.now()),
1921
+ generateAppProofs: generateAppProofs ?? false,
1728
1922
  type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8",
1729
1923
  }, "createSubOrganizationResultV8", stampWith);
1730
1924
  };
@@ -1750,8 +1944,122 @@ class TurnkeySDKClientBase {
1750
1944
  url: fullUrl,
1751
1945
  };
1752
1946
  };
1947
+ this.createTvcApp = async (input, stampWith) => {
1948
+ const { organizationId, timestampMs, ...rest } = input;
1949
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1950
+ const generateAppProofs = input?.generateAppProofs ?? false;
1951
+ const session = await this.storageManager?.getActiveSession();
1952
+ return this.activity("/public/v1/submit/create_tvc_app", {
1953
+ parameters: rest,
1954
+ organizationId: organizationId ??
1955
+ session?.organizationId ??
1956
+ this.config.organizationId,
1957
+ timestampMs: timestampMs ?? String(Date.now()),
1958
+ generateAppProofs: generateAppProofs ?? false,
1959
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1960
+ }, "createTvcAppResult", stampWith);
1961
+ };
1962
+ this.stampCreateTvcApp = async (input, stampWith) => {
1963
+ const activeStamper = this.getStamper(stampWith);
1964
+ if (!activeStamper) {
1965
+ return undefined;
1966
+ }
1967
+ const { organizationId, timestampMs, ...parameters } = input;
1968
+ const session = await this.storageManager?.getActiveSession();
1969
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_app";
1970
+ const bodyWithType = {
1971
+ parameters,
1972
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1973
+ timestampMs: timestampMs ?? String(Date.now()),
1974
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1975
+ };
1976
+ const stringifiedBody = JSON.stringify(bodyWithType);
1977
+ const stamp = await activeStamper.stamp(stringifiedBody);
1978
+ return {
1979
+ body: stringifiedBody,
1980
+ stamp: stamp,
1981
+ url: fullUrl,
1982
+ };
1983
+ };
1984
+ this.createTvcDeployment = async (input, stampWith) => {
1985
+ const { organizationId, timestampMs, ...rest } = input;
1986
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1987
+ const generateAppProofs = input?.generateAppProofs ?? false;
1988
+ const session = await this.storageManager?.getActiveSession();
1989
+ return this.activity("/public/v1/submit/create_tvc_deployment", {
1990
+ parameters: rest,
1991
+ organizationId: organizationId ??
1992
+ session?.organizationId ??
1993
+ this.config.organizationId,
1994
+ timestampMs: timestampMs ?? String(Date.now()),
1995
+ generateAppProofs: generateAppProofs ?? false,
1996
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
1997
+ }, "createTvcDeploymentResult", stampWith);
1998
+ };
1999
+ this.stampCreateTvcDeployment = async (input, stampWith) => {
2000
+ const activeStamper = this.getStamper(stampWith);
2001
+ if (!activeStamper) {
2002
+ return undefined;
2003
+ }
2004
+ const { organizationId, timestampMs, ...parameters } = input;
2005
+ const session = await this.storageManager?.getActiveSession();
2006
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_deployment";
2007
+ const bodyWithType = {
2008
+ parameters,
2009
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2010
+ timestampMs: timestampMs ?? String(Date.now()),
2011
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
2012
+ };
2013
+ const stringifiedBody = JSON.stringify(bodyWithType);
2014
+ const stamp = await activeStamper.stamp(stringifiedBody);
2015
+ return {
2016
+ body: stringifiedBody,
2017
+ stamp: stamp,
2018
+ url: fullUrl,
2019
+ };
2020
+ };
2021
+ this.createTvcManifestApprovals = async (input, stampWith) => {
2022
+ const { organizationId, timestampMs, ...rest } = input;
2023
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2024
+ const generateAppProofs = input?.generateAppProofs ?? false;
2025
+ const session = await this.storageManager?.getActiveSession();
2026
+ return this.activity("/public/v1/submit/create_tvc_manifest_approvals", {
2027
+ parameters: rest,
2028
+ organizationId: organizationId ??
2029
+ session?.organizationId ??
2030
+ this.config.organizationId,
2031
+ timestampMs: timestampMs ?? String(Date.now()),
2032
+ generateAppProofs: generateAppProofs ?? false,
2033
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
2034
+ }, "createTvcManifestApprovalsResult", stampWith);
2035
+ };
2036
+ this.stampCreateTvcManifestApprovals = async (input, stampWith) => {
2037
+ const activeStamper = this.getStamper(stampWith);
2038
+ if (!activeStamper) {
2039
+ return undefined;
2040
+ }
2041
+ const { organizationId, timestampMs, ...parameters } = input;
2042
+ const session = await this.storageManager?.getActiveSession();
2043
+ const fullUrl = this.config.apiBaseUrl +
2044
+ "/public/v1/submit/create_tvc_manifest_approvals";
2045
+ const bodyWithType = {
2046
+ parameters,
2047
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2048
+ timestampMs: timestampMs ?? String(Date.now()),
2049
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
2050
+ };
2051
+ const stringifiedBody = JSON.stringify(bodyWithType);
2052
+ const stamp = await activeStamper.stamp(stringifiedBody);
2053
+ return {
2054
+ body: stringifiedBody,
2055
+ stamp: stamp,
2056
+ url: fullUrl,
2057
+ };
2058
+ };
1753
2059
  this.createUserTag = async (input, stampWith) => {
1754
2060
  const { organizationId, timestampMs, ...rest } = input;
2061
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2062
+ const generateAppProofs = input?.generateAppProofs ?? false;
1755
2063
  const session = await this.storageManager?.getActiveSession();
1756
2064
  return this.activity("/public/v1/submit/create_user_tag", {
1757
2065
  parameters: rest,
@@ -1759,6 +2067,7 @@ class TurnkeySDKClientBase {
1759
2067
  session?.organizationId ??
1760
2068
  this.config.organizationId,
1761
2069
  timestampMs: timestampMs ?? String(Date.now()),
2070
+ generateAppProofs: generateAppProofs ?? false,
1762
2071
  type: "ACTIVITY_TYPE_CREATE_USER_TAG",
1763
2072
  }, "createUserTagResult", stampWith);
1764
2073
  };
@@ -1786,6 +2095,8 @@ class TurnkeySDKClientBase {
1786
2095
  };
1787
2096
  this.createUsers = async (input, stampWith) => {
1788
2097
  const { organizationId, timestampMs, ...rest } = input;
2098
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2099
+ const generateAppProofs = input?.generateAppProofs ?? false;
1789
2100
  const session = await this.storageManager?.getActiveSession();
1790
2101
  return this.activity("/public/v1/submit/create_users", {
1791
2102
  parameters: rest,
@@ -1793,6 +2104,7 @@ class TurnkeySDKClientBase {
1793
2104
  session?.organizationId ??
1794
2105
  this.config.organizationId,
1795
2106
  timestampMs: timestampMs ?? String(Date.now()),
2107
+ generateAppProofs: generateAppProofs ?? false,
1796
2108
  type: "ACTIVITY_TYPE_CREATE_USERS_V4",
1797
2109
  }, "createUsersResult", stampWith);
1798
2110
  };
@@ -1820,6 +2132,8 @@ class TurnkeySDKClientBase {
1820
2132
  };
1821
2133
  this.createWallet = async (input, stampWith) => {
1822
2134
  const { organizationId, timestampMs, ...rest } = input;
2135
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2136
+ const generateAppProofs = input?.generateAppProofs ?? false;
1823
2137
  const session = await this.storageManager?.getActiveSession();
1824
2138
  return this.activity("/public/v1/submit/create_wallet", {
1825
2139
  parameters: rest,
@@ -1827,6 +2141,7 @@ class TurnkeySDKClientBase {
1827
2141
  session?.organizationId ??
1828
2142
  this.config.organizationId,
1829
2143
  timestampMs: timestampMs ?? String(Date.now()),
2144
+ generateAppProofs: generateAppProofs ?? false,
1830
2145
  type: "ACTIVITY_TYPE_CREATE_WALLET",
1831
2146
  }, "createWalletResult", stampWith);
1832
2147
  };
@@ -1854,6 +2169,8 @@ class TurnkeySDKClientBase {
1854
2169
  };
1855
2170
  this.createWalletAccounts = async (input, stampWith) => {
1856
2171
  const { organizationId, timestampMs, ...rest } = input;
2172
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2173
+ const generateAppProofs = input?.generateAppProofs ?? false;
1857
2174
  const session = await this.storageManager?.getActiveSession();
1858
2175
  return this.activity("/public/v1/submit/create_wallet_accounts", {
1859
2176
  parameters: rest,
@@ -1861,6 +2178,7 @@ class TurnkeySDKClientBase {
1861
2178
  session?.organizationId ??
1862
2179
  this.config.organizationId,
1863
2180
  timestampMs: timestampMs ?? String(Date.now()),
2181
+ generateAppProofs: generateAppProofs ?? false,
1864
2182
  type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
1865
2183
  }, "createWalletAccountsResult", stampWith);
1866
2184
  };
@@ -1888,6 +2206,8 @@ class TurnkeySDKClientBase {
1888
2206
  };
1889
2207
  this.createWebhookEndpoint = async (input, stampWith) => {
1890
2208
  const { organizationId, timestampMs, ...rest } = input;
2209
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2210
+ const generateAppProofs = input?.generateAppProofs ?? false;
1891
2211
  const session = await this.storageManager?.getActiveSession();
1892
2212
  return this.activity("/public/v1/submit/create_webhook_endpoint", {
1893
2213
  parameters: rest,
@@ -1895,6 +2215,7 @@ class TurnkeySDKClientBase {
1895
2215
  session?.organizationId ??
1896
2216
  this.config.organizationId,
1897
2217
  timestampMs: timestampMs ?? String(Date.now()),
2218
+ generateAppProofs: generateAppProofs ?? false,
1898
2219
  type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
1899
2220
  }, "createWebhookEndpointResult", stampWith);
1900
2221
  };
@@ -1922,6 +2243,8 @@ class TurnkeySDKClientBase {
1922
2243
  };
1923
2244
  this.deleteApiKeys = async (input, stampWith) => {
1924
2245
  const { organizationId, timestampMs, ...rest } = input;
2246
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2247
+ const generateAppProofs = input?.generateAppProofs ?? false;
1925
2248
  const session = await this.storageManager?.getActiveSession();
1926
2249
  return this.activity("/public/v1/submit/delete_api_keys", {
1927
2250
  parameters: rest,
@@ -1929,6 +2252,7 @@ class TurnkeySDKClientBase {
1929
2252
  session?.organizationId ??
1930
2253
  this.config.organizationId,
1931
2254
  timestampMs: timestampMs ?? String(Date.now()),
2255
+ generateAppProofs: generateAppProofs ?? false,
1932
2256
  type: "ACTIVITY_TYPE_DELETE_API_KEYS",
1933
2257
  }, "deleteApiKeysResult", stampWith);
1934
2258
  };
@@ -1956,6 +2280,8 @@ class TurnkeySDKClientBase {
1956
2280
  };
1957
2281
  this.deleteAuthenticators = async (input, stampWith) => {
1958
2282
  const { organizationId, timestampMs, ...rest } = input;
2283
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2284
+ const generateAppProofs = input?.generateAppProofs ?? false;
1959
2285
  const session = await this.storageManager?.getActiveSession();
1960
2286
  return this.activity("/public/v1/submit/delete_authenticators", {
1961
2287
  parameters: rest,
@@ -1963,6 +2289,7 @@ class TurnkeySDKClientBase {
1963
2289
  session?.organizationId ??
1964
2290
  this.config.organizationId,
1965
2291
  timestampMs: timestampMs ?? String(Date.now()),
2292
+ generateAppProofs: generateAppProofs ?? false,
1966
2293
  type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
1967
2294
  }, "deleteAuthenticatorsResult", stampWith);
1968
2295
  };
@@ -1990,6 +2317,8 @@ class TurnkeySDKClientBase {
1990
2317
  };
1991
2318
  this.deleteFiatOnRampCredential = async (input, stampWith) => {
1992
2319
  const { organizationId, timestampMs, ...rest } = input;
2320
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2321
+ const generateAppProofs = input?.generateAppProofs ?? false;
1993
2322
  const session = await this.storageManager?.getActiveSession();
1994
2323
  return this.activity("/public/v1/submit/delete_fiat_on_ramp_credential", {
1995
2324
  parameters: rest,
@@ -1997,6 +2326,7 @@ class TurnkeySDKClientBase {
1997
2326
  session?.organizationId ??
1998
2327
  this.config.organizationId,
1999
2328
  timestampMs: timestampMs ?? String(Date.now()),
2329
+ generateAppProofs: generateAppProofs ?? false,
2000
2330
  type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL",
2001
2331
  }, "deleteFiatOnRampCredentialResult", stampWith);
2002
2332
  };
@@ -2025,6 +2355,8 @@ class TurnkeySDKClientBase {
2025
2355
  };
2026
2356
  this.deleteInvitation = async (input, stampWith) => {
2027
2357
  const { organizationId, timestampMs, ...rest } = input;
2358
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2359
+ const generateAppProofs = input?.generateAppProofs ?? false;
2028
2360
  const session = await this.storageManager?.getActiveSession();
2029
2361
  return this.activity("/public/v1/submit/delete_invitation", {
2030
2362
  parameters: rest,
@@ -2032,6 +2364,7 @@ class TurnkeySDKClientBase {
2032
2364
  session?.organizationId ??
2033
2365
  this.config.organizationId,
2034
2366
  timestampMs: timestampMs ?? String(Date.now()),
2367
+ generateAppProofs: generateAppProofs ?? false,
2035
2368
  type: "ACTIVITY_TYPE_DELETE_INVITATION",
2036
2369
  }, "deleteInvitationResult", stampWith);
2037
2370
  };
@@ -2059,6 +2392,8 @@ class TurnkeySDKClientBase {
2059
2392
  };
2060
2393
  this.deleteOauth2Credential = async (input, stampWith) => {
2061
2394
  const { organizationId, timestampMs, ...rest } = input;
2395
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2396
+ const generateAppProofs = input?.generateAppProofs ?? false;
2062
2397
  const session = await this.storageManager?.getActiveSession();
2063
2398
  return this.activity("/public/v1/submit/delete_oauth2_credential", {
2064
2399
  parameters: rest,
@@ -2066,6 +2401,7 @@ class TurnkeySDKClientBase {
2066
2401
  session?.organizationId ??
2067
2402
  this.config.organizationId,
2068
2403
  timestampMs: timestampMs ?? String(Date.now()),
2404
+ generateAppProofs: generateAppProofs ?? false,
2069
2405
  type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL",
2070
2406
  }, "deleteOauth2CredentialResult", stampWith);
2071
2407
  };
@@ -2093,6 +2429,8 @@ class TurnkeySDKClientBase {
2093
2429
  };
2094
2430
  this.deleteOauthProviders = async (input, stampWith) => {
2095
2431
  const { organizationId, timestampMs, ...rest } = input;
2432
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2433
+ const generateAppProofs = input?.generateAppProofs ?? false;
2096
2434
  const session = await this.storageManager?.getActiveSession();
2097
2435
  return this.activity("/public/v1/submit/delete_oauth_providers", {
2098
2436
  parameters: rest,
@@ -2100,6 +2438,7 @@ class TurnkeySDKClientBase {
2100
2438
  session?.organizationId ??
2101
2439
  this.config.organizationId,
2102
2440
  timestampMs: timestampMs ?? String(Date.now()),
2441
+ generateAppProofs: generateAppProofs ?? false,
2103
2442
  type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS",
2104
2443
  }, "deleteOauthProvidersResult", stampWith);
2105
2444
  };
@@ -2127,6 +2466,8 @@ class TurnkeySDKClientBase {
2127
2466
  };
2128
2467
  this.deletePolicies = async (input, stampWith) => {
2129
2468
  const { organizationId, timestampMs, ...rest } = input;
2469
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2470
+ const generateAppProofs = input?.generateAppProofs ?? false;
2130
2471
  const session = await this.storageManager?.getActiveSession();
2131
2472
  return this.activity("/public/v1/submit/delete_policies", {
2132
2473
  parameters: rest,
@@ -2134,6 +2475,7 @@ class TurnkeySDKClientBase {
2134
2475
  session?.organizationId ??
2135
2476
  this.config.organizationId,
2136
2477
  timestampMs: timestampMs ?? String(Date.now()),
2478
+ generateAppProofs: generateAppProofs ?? false,
2137
2479
  type: "ACTIVITY_TYPE_DELETE_POLICIES",
2138
2480
  }, "deletePoliciesResult", stampWith);
2139
2481
  };
@@ -2161,6 +2503,8 @@ class TurnkeySDKClientBase {
2161
2503
  };
2162
2504
  this.deletePolicy = async (input, stampWith) => {
2163
2505
  const { organizationId, timestampMs, ...rest } = input;
2506
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2507
+ const generateAppProofs = input?.generateAppProofs ?? false;
2164
2508
  const session = await this.storageManager?.getActiveSession();
2165
2509
  return this.activity("/public/v1/submit/delete_policy", {
2166
2510
  parameters: rest,
@@ -2168,6 +2512,7 @@ class TurnkeySDKClientBase {
2168
2512
  session?.organizationId ??
2169
2513
  this.config.organizationId,
2170
2514
  timestampMs: timestampMs ?? String(Date.now()),
2515
+ generateAppProofs: generateAppProofs ?? false,
2171
2516
  type: "ACTIVITY_TYPE_DELETE_POLICY",
2172
2517
  }, "deletePolicyResult", stampWith);
2173
2518
  };
@@ -2195,6 +2540,8 @@ class TurnkeySDKClientBase {
2195
2540
  };
2196
2541
  this.deletePrivateKeyTags = async (input, stampWith) => {
2197
2542
  const { organizationId, timestampMs, ...rest } = input;
2543
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2544
+ const generateAppProofs = input?.generateAppProofs ?? false;
2198
2545
  const session = await this.storageManager?.getActiveSession();
2199
2546
  return this.activity("/public/v1/submit/delete_private_key_tags", {
2200
2547
  parameters: rest,
@@ -2202,6 +2549,7 @@ class TurnkeySDKClientBase {
2202
2549
  session?.organizationId ??
2203
2550
  this.config.organizationId,
2204
2551
  timestampMs: timestampMs ?? String(Date.now()),
2552
+ generateAppProofs: generateAppProofs ?? false,
2205
2553
  type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS",
2206
2554
  }, "deletePrivateKeyTagsResult", stampWith);
2207
2555
  };
@@ -2229,6 +2577,8 @@ class TurnkeySDKClientBase {
2229
2577
  };
2230
2578
  this.deletePrivateKeys = async (input, stampWith) => {
2231
2579
  const { organizationId, timestampMs, ...rest } = input;
2580
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2581
+ const generateAppProofs = input?.generateAppProofs ?? false;
2232
2582
  const session = await this.storageManager?.getActiveSession();
2233
2583
  return this.activity("/public/v1/submit/delete_private_keys", {
2234
2584
  parameters: rest,
@@ -2236,6 +2586,7 @@ class TurnkeySDKClientBase {
2236
2586
  session?.organizationId ??
2237
2587
  this.config.organizationId,
2238
2588
  timestampMs: timestampMs ?? String(Date.now()),
2589
+ generateAppProofs: generateAppProofs ?? false,
2239
2590
  type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS",
2240
2591
  }, "deletePrivateKeysResult", stampWith);
2241
2592
  };
@@ -2263,6 +2614,8 @@ class TurnkeySDKClientBase {
2263
2614
  };
2264
2615
  this.deleteSmartContractInterface = async (input, stampWith) => {
2265
2616
  const { organizationId, timestampMs, ...rest } = input;
2617
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2618
+ const generateAppProofs = input?.generateAppProofs ?? false;
2266
2619
  const session = await this.storageManager?.getActiveSession();
2267
2620
  return this.activity("/public/v1/submit/delete_smart_contract_interface", {
2268
2621
  parameters: rest,
@@ -2270,6 +2623,7 @@ class TurnkeySDKClientBase {
2270
2623
  session?.organizationId ??
2271
2624
  this.config.organizationId,
2272
2625
  timestampMs: timestampMs ?? String(Date.now()),
2626
+ generateAppProofs: generateAppProofs ?? false,
2273
2627
  type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE",
2274
2628
  }, "deleteSmartContractInterfaceResult", stampWith);
2275
2629
  };
@@ -2298,6 +2652,8 @@ class TurnkeySDKClientBase {
2298
2652
  };
2299
2653
  this.deleteSubOrganization = async (input, stampWith) => {
2300
2654
  const { organizationId, timestampMs, ...rest } = input;
2655
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2656
+ const generateAppProofs = input?.generateAppProofs ?? false;
2301
2657
  const session = await this.storageManager?.getActiveSession();
2302
2658
  return this.activity("/public/v1/submit/delete_sub_organization", {
2303
2659
  parameters: rest,
@@ -2305,6 +2661,7 @@ class TurnkeySDKClientBase {
2305
2661
  session?.organizationId ??
2306
2662
  this.config.organizationId,
2307
2663
  timestampMs: timestampMs ?? String(Date.now()),
2664
+ generateAppProofs: generateAppProofs ?? false,
2308
2665
  type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION",
2309
2666
  }, "deleteSubOrganizationResult", stampWith);
2310
2667
  };
@@ -2330,8 +2687,85 @@ class TurnkeySDKClientBase {
2330
2687
  url: fullUrl,
2331
2688
  };
2332
2689
  };
2690
+ this.deleteTvcAppAndDeployments = async (input, stampWith) => {
2691
+ const { organizationId, timestampMs, ...rest } = input;
2692
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2693
+ const generateAppProofs = input?.generateAppProofs ?? false;
2694
+ const session = await this.storageManager?.getActiveSession();
2695
+ return this.activity("/public/v1/submit/delete_tvc_app_and_deployments", {
2696
+ parameters: rest,
2697
+ organizationId: organizationId ??
2698
+ session?.organizationId ??
2699
+ this.config.organizationId,
2700
+ timestampMs: timestampMs ?? String(Date.now()),
2701
+ generateAppProofs: generateAppProofs ?? false,
2702
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2703
+ }, "deleteTvcAppAndDeploymentsResult", stampWith);
2704
+ };
2705
+ this.stampDeleteTvcAppAndDeployments = async (input, stampWith) => {
2706
+ const activeStamper = this.getStamper(stampWith);
2707
+ if (!activeStamper) {
2708
+ return undefined;
2709
+ }
2710
+ const { organizationId, timestampMs, ...parameters } = input;
2711
+ const session = await this.storageManager?.getActiveSession();
2712
+ const fullUrl = this.config.apiBaseUrl +
2713
+ "/public/v1/submit/delete_tvc_app_and_deployments";
2714
+ const bodyWithType = {
2715
+ parameters,
2716
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2717
+ timestampMs: timestampMs ?? String(Date.now()),
2718
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2719
+ };
2720
+ const stringifiedBody = JSON.stringify(bodyWithType);
2721
+ const stamp = await activeStamper.stamp(stringifiedBody);
2722
+ return {
2723
+ body: stringifiedBody,
2724
+ stamp: stamp,
2725
+ url: fullUrl,
2726
+ };
2727
+ };
2728
+ this.deleteTvcDeployment = async (input, stampWith) => {
2729
+ const { organizationId, timestampMs, ...rest } = input;
2730
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2731
+ const generateAppProofs = input?.generateAppProofs ?? false;
2732
+ const session = await this.storageManager?.getActiveSession();
2733
+ return this.activity("/public/v1/submit/delete_tvc_deployment", {
2734
+ parameters: rest,
2735
+ organizationId: organizationId ??
2736
+ session?.organizationId ??
2737
+ this.config.organizationId,
2738
+ timestampMs: timestampMs ?? String(Date.now()),
2739
+ generateAppProofs: generateAppProofs ?? false,
2740
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2741
+ }, "deleteTvcDeploymentResult", stampWith);
2742
+ };
2743
+ this.stampDeleteTvcDeployment = async (input, stampWith) => {
2744
+ const activeStamper = this.getStamper(stampWith);
2745
+ if (!activeStamper) {
2746
+ return undefined;
2747
+ }
2748
+ const { organizationId, timestampMs, ...parameters } = input;
2749
+ const session = await this.storageManager?.getActiveSession();
2750
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_tvc_deployment";
2751
+ const bodyWithType = {
2752
+ parameters,
2753
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2754
+ timestampMs: timestampMs ?? String(Date.now()),
2755
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2756
+ };
2757
+ const stringifiedBody = JSON.stringify(bodyWithType);
2758
+ const stamp = await activeStamper.stamp(stringifiedBody);
2759
+ return {
2760
+ body: stringifiedBody,
2761
+ stamp: stamp,
2762
+ url: fullUrl,
2763
+ };
2764
+ };
2333
2765
  this.deleteUserTags = async (input, stampWith) => {
2334
2766
  const { organizationId, timestampMs, ...rest } = input;
2767
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2768
+ const generateAppProofs = input?.generateAppProofs ?? false;
2335
2769
  const session = await this.storageManager?.getActiveSession();
2336
2770
  return this.activity("/public/v1/submit/delete_user_tags", {
2337
2771
  parameters: rest,
@@ -2339,6 +2773,7 @@ class TurnkeySDKClientBase {
2339
2773
  session?.organizationId ??
2340
2774
  this.config.organizationId,
2341
2775
  timestampMs: timestampMs ?? String(Date.now()),
2776
+ generateAppProofs: generateAppProofs ?? false,
2342
2777
  type: "ACTIVITY_TYPE_DELETE_USER_TAGS",
2343
2778
  }, "deleteUserTagsResult", stampWith);
2344
2779
  };
@@ -2366,6 +2801,8 @@ class TurnkeySDKClientBase {
2366
2801
  };
2367
2802
  this.deleteUsers = async (input, stampWith) => {
2368
2803
  const { organizationId, timestampMs, ...rest } = input;
2804
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2805
+ const generateAppProofs = input?.generateAppProofs ?? false;
2369
2806
  const session = await this.storageManager?.getActiveSession();
2370
2807
  return this.activity("/public/v1/submit/delete_users", {
2371
2808
  parameters: rest,
@@ -2373,6 +2810,7 @@ class TurnkeySDKClientBase {
2373
2810
  session?.organizationId ??
2374
2811
  this.config.organizationId,
2375
2812
  timestampMs: timestampMs ?? String(Date.now()),
2813
+ generateAppProofs: generateAppProofs ?? false,
2376
2814
  type: "ACTIVITY_TYPE_DELETE_USERS",
2377
2815
  }, "deleteUsersResult", stampWith);
2378
2816
  };
@@ -2400,6 +2838,8 @@ class TurnkeySDKClientBase {
2400
2838
  };
2401
2839
  this.deleteWalletAccounts = async (input, stampWith) => {
2402
2840
  const { organizationId, timestampMs, ...rest } = input;
2841
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2842
+ const generateAppProofs = input?.generateAppProofs ?? false;
2403
2843
  const session = await this.storageManager?.getActiveSession();
2404
2844
  return this.activity("/public/v1/submit/delete_wallet_accounts", {
2405
2845
  parameters: rest,
@@ -2407,6 +2847,7 @@ class TurnkeySDKClientBase {
2407
2847
  session?.organizationId ??
2408
2848
  this.config.organizationId,
2409
2849
  timestampMs: timestampMs ?? String(Date.now()),
2850
+ generateAppProofs: generateAppProofs ?? false,
2410
2851
  type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS",
2411
2852
  }, "deleteWalletAccountsResult", stampWith);
2412
2853
  };
@@ -2434,6 +2875,8 @@ class TurnkeySDKClientBase {
2434
2875
  };
2435
2876
  this.deleteWallets = async (input, stampWith) => {
2436
2877
  const { organizationId, timestampMs, ...rest } = input;
2878
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2879
+ const generateAppProofs = input?.generateAppProofs ?? false;
2437
2880
  const session = await this.storageManager?.getActiveSession();
2438
2881
  return this.activity("/public/v1/submit/delete_wallets", {
2439
2882
  parameters: rest,
@@ -2441,6 +2884,7 @@ class TurnkeySDKClientBase {
2441
2884
  session?.organizationId ??
2442
2885
  this.config.organizationId,
2443
2886
  timestampMs: timestampMs ?? String(Date.now()),
2887
+ generateAppProofs: generateAppProofs ?? false,
2444
2888
  type: "ACTIVITY_TYPE_DELETE_WALLETS",
2445
2889
  }, "deleteWalletsResult", stampWith);
2446
2890
  };
@@ -2468,6 +2912,8 @@ class TurnkeySDKClientBase {
2468
2912
  };
2469
2913
  this.deleteWebhookEndpoint = async (input, stampWith) => {
2470
2914
  const { organizationId, timestampMs, ...rest } = input;
2915
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2916
+ const generateAppProofs = input?.generateAppProofs ?? false;
2471
2917
  const session = await this.storageManager?.getActiveSession();
2472
2918
  return this.activity("/public/v1/submit/delete_webhook_endpoint", {
2473
2919
  parameters: rest,
@@ -2475,6 +2921,7 @@ class TurnkeySDKClientBase {
2475
2921
  session?.organizationId ??
2476
2922
  this.config.organizationId,
2477
2923
  timestampMs: timestampMs ?? String(Date.now()),
2924
+ generateAppProofs: generateAppProofs ?? false,
2478
2925
  type: "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT",
2479
2926
  }, "deleteWebhookEndpointResult", stampWith);
2480
2927
  };
@@ -2502,6 +2949,8 @@ class TurnkeySDKClientBase {
2502
2949
  };
2503
2950
  this.emailAuth = async (input, stampWith) => {
2504
2951
  const { organizationId, timestampMs, ...rest } = input;
2952
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2953
+ const generateAppProofs = input?.generateAppProofs ?? false;
2505
2954
  const session = await this.storageManager?.getActiveSession();
2506
2955
  return this.activity("/public/v1/submit/email_auth", {
2507
2956
  parameters: rest,
@@ -2509,6 +2958,7 @@ class TurnkeySDKClientBase {
2509
2958
  session?.organizationId ??
2510
2959
  this.config.organizationId,
2511
2960
  timestampMs: timestampMs ?? String(Date.now()),
2961
+ generateAppProofs: generateAppProofs ?? false,
2512
2962
  type: "ACTIVITY_TYPE_EMAIL_AUTH_V3",
2513
2963
  }, "emailAuthResult", stampWith);
2514
2964
  };
@@ -2536,6 +2986,8 @@ class TurnkeySDKClientBase {
2536
2986
  };
2537
2987
  this.ethSendTransaction = async (input, stampWith) => {
2538
2988
  const { organizationId, timestampMs, ...rest } = input;
2989
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2990
+ const generateAppProofs = input?.generateAppProofs ?? false;
2539
2991
  const session = await this.storageManager?.getActiveSession();
2540
2992
  return this.activity("/public/v1/submit/eth_send_transaction", {
2541
2993
  parameters: rest,
@@ -2543,6 +2995,7 @@ class TurnkeySDKClientBase {
2543
2995
  session?.organizationId ??
2544
2996
  this.config.organizationId,
2545
2997
  timestampMs: timestampMs ?? String(Date.now()),
2998
+ generateAppProofs: generateAppProofs ?? false,
2546
2999
  type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION",
2547
3000
  }, "ethSendTransactionResult", stampWith);
2548
3001
  };
@@ -2570,6 +3023,8 @@ class TurnkeySDKClientBase {
2570
3023
  };
2571
3024
  this.exportPrivateKey = async (input, stampWith) => {
2572
3025
  const { organizationId, timestampMs, ...rest } = input;
3026
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3027
+ const generateAppProofs = input?.generateAppProofs ?? false;
2573
3028
  const session = await this.storageManager?.getActiveSession();
2574
3029
  return this.activity("/public/v1/submit/export_private_key", {
2575
3030
  parameters: rest,
@@ -2577,6 +3032,7 @@ class TurnkeySDKClientBase {
2577
3032
  session?.organizationId ??
2578
3033
  this.config.organizationId,
2579
3034
  timestampMs: timestampMs ?? String(Date.now()),
3035
+ generateAppProofs: generateAppProofs ?? false,
2580
3036
  type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY",
2581
3037
  }, "exportPrivateKeyResult", stampWith);
2582
3038
  };
@@ -2604,6 +3060,8 @@ class TurnkeySDKClientBase {
2604
3060
  };
2605
3061
  this.exportWallet = async (input, stampWith) => {
2606
3062
  const { organizationId, timestampMs, ...rest } = input;
3063
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3064
+ const generateAppProofs = input?.generateAppProofs ?? false;
2607
3065
  const session = await this.storageManager?.getActiveSession();
2608
3066
  return this.activity("/public/v1/submit/export_wallet", {
2609
3067
  parameters: rest,
@@ -2611,6 +3069,7 @@ class TurnkeySDKClientBase {
2611
3069
  session?.organizationId ??
2612
3070
  this.config.organizationId,
2613
3071
  timestampMs: timestampMs ?? String(Date.now()),
3072
+ generateAppProofs: generateAppProofs ?? false,
2614
3073
  type: "ACTIVITY_TYPE_EXPORT_WALLET",
2615
3074
  }, "exportWalletResult", stampWith);
2616
3075
  };
@@ -2638,6 +3097,8 @@ class TurnkeySDKClientBase {
2638
3097
  };
2639
3098
  this.exportWalletAccount = async (input, stampWith) => {
2640
3099
  const { organizationId, timestampMs, ...rest } = input;
3100
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3101
+ const generateAppProofs = input?.generateAppProofs ?? false;
2641
3102
  const session = await this.storageManager?.getActiveSession();
2642
3103
  return this.activity("/public/v1/submit/export_wallet_account", {
2643
3104
  parameters: rest,
@@ -2645,6 +3106,7 @@ class TurnkeySDKClientBase {
2645
3106
  session?.organizationId ??
2646
3107
  this.config.organizationId,
2647
3108
  timestampMs: timestampMs ?? String(Date.now()),
3109
+ generateAppProofs: generateAppProofs ?? false,
2648
3110
  type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT",
2649
3111
  }, "exportWalletAccountResult", stampWith);
2650
3112
  };
@@ -2672,6 +3134,8 @@ class TurnkeySDKClientBase {
2672
3134
  };
2673
3135
  this.importPrivateKey = async (input, stampWith) => {
2674
3136
  const { organizationId, timestampMs, ...rest } = input;
3137
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3138
+ const generateAppProofs = input?.generateAppProofs ?? false;
2675
3139
  const session = await this.storageManager?.getActiveSession();
2676
3140
  return this.activity("/public/v1/submit/import_private_key", {
2677
3141
  parameters: rest,
@@ -2679,6 +3143,7 @@ class TurnkeySDKClientBase {
2679
3143
  session?.organizationId ??
2680
3144
  this.config.organizationId,
2681
3145
  timestampMs: timestampMs ?? String(Date.now()),
3146
+ generateAppProofs: generateAppProofs ?? false,
2682
3147
  type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY",
2683
3148
  }, "importPrivateKeyResult", stampWith);
2684
3149
  };
@@ -2706,6 +3171,8 @@ class TurnkeySDKClientBase {
2706
3171
  };
2707
3172
  this.importWallet = async (input, stampWith) => {
2708
3173
  const { organizationId, timestampMs, ...rest } = input;
3174
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3175
+ const generateAppProofs = input?.generateAppProofs ?? false;
2709
3176
  const session = await this.storageManager?.getActiveSession();
2710
3177
  return this.activity("/public/v1/submit/import_wallet", {
2711
3178
  parameters: rest,
@@ -2713,6 +3180,7 @@ class TurnkeySDKClientBase {
2713
3180
  session?.organizationId ??
2714
3181
  this.config.organizationId,
2715
3182
  timestampMs: timestampMs ?? String(Date.now()),
3183
+ generateAppProofs: generateAppProofs ?? false,
2716
3184
  type: "ACTIVITY_TYPE_IMPORT_WALLET",
2717
3185
  }, "importWalletResult", stampWith);
2718
3186
  };
@@ -2740,6 +3208,8 @@ class TurnkeySDKClientBase {
2740
3208
  };
2741
3209
  this.initFiatOnRamp = async (input, stampWith) => {
2742
3210
  const { organizationId, timestampMs, ...rest } = input;
3211
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3212
+ const generateAppProofs = input?.generateAppProofs ?? false;
2743
3213
  const session = await this.storageManager?.getActiveSession();
2744
3214
  return this.activity("/public/v1/submit/init_fiat_on_ramp", {
2745
3215
  parameters: rest,
@@ -2747,6 +3217,7 @@ class TurnkeySDKClientBase {
2747
3217
  session?.organizationId ??
2748
3218
  this.config.organizationId,
2749
3219
  timestampMs: timestampMs ?? String(Date.now()),
3220
+ generateAppProofs: generateAppProofs ?? false,
2750
3221
  type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP",
2751
3222
  }, "initFiatOnRampResult", stampWith);
2752
3223
  };
@@ -2774,6 +3245,8 @@ class TurnkeySDKClientBase {
2774
3245
  };
2775
3246
  this.initImportPrivateKey = async (input, stampWith) => {
2776
3247
  const { organizationId, timestampMs, ...rest } = input;
3248
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3249
+ const generateAppProofs = input?.generateAppProofs ?? false;
2777
3250
  const session = await this.storageManager?.getActiveSession();
2778
3251
  return this.activity("/public/v1/submit/init_import_private_key", {
2779
3252
  parameters: rest,
@@ -2781,6 +3254,7 @@ class TurnkeySDKClientBase {
2781
3254
  session?.organizationId ??
2782
3255
  this.config.organizationId,
2783
3256
  timestampMs: timestampMs ?? String(Date.now()),
3257
+ generateAppProofs: generateAppProofs ?? false,
2784
3258
  type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY",
2785
3259
  }, "initImportPrivateKeyResult", stampWith);
2786
3260
  };
@@ -2808,6 +3282,8 @@ class TurnkeySDKClientBase {
2808
3282
  };
2809
3283
  this.initImportWallet = async (input, stampWith) => {
2810
3284
  const { organizationId, timestampMs, ...rest } = input;
3285
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3286
+ const generateAppProofs = input?.generateAppProofs ?? false;
2811
3287
  const session = await this.storageManager?.getActiveSession();
2812
3288
  return this.activity("/public/v1/submit/init_import_wallet", {
2813
3289
  parameters: rest,
@@ -2815,6 +3291,7 @@ class TurnkeySDKClientBase {
2815
3291
  session?.organizationId ??
2816
3292
  this.config.organizationId,
2817
3293
  timestampMs: timestampMs ?? String(Date.now()),
3294
+ generateAppProofs: generateAppProofs ?? false,
2818
3295
  type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET",
2819
3296
  }, "initImportWalletResult", stampWith);
2820
3297
  };
@@ -2842,6 +3319,8 @@ class TurnkeySDKClientBase {
2842
3319
  };
2843
3320
  this.initOtp = async (input, stampWith) => {
2844
3321
  const { organizationId, timestampMs, ...rest } = input;
3322
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3323
+ const generateAppProofs = input?.generateAppProofs ?? false;
2845
3324
  const session = await this.storageManager?.getActiveSession();
2846
3325
  return this.activity("/public/v1/submit/init_otp", {
2847
3326
  parameters: rest,
@@ -2849,6 +3328,7 @@ class TurnkeySDKClientBase {
2849
3328
  session?.organizationId ??
2850
3329
  this.config.organizationId,
2851
3330
  timestampMs: timestampMs ?? String(Date.now()),
3331
+ generateAppProofs: generateAppProofs ?? false,
2852
3332
  type: "ACTIVITY_TYPE_INIT_OTP_V3",
2853
3333
  }, "initOtpResultV2", stampWith);
2854
3334
  };
@@ -2876,6 +3356,8 @@ class TurnkeySDKClientBase {
2876
3356
  };
2877
3357
  this.initOtpAuth = async (input, stampWith) => {
2878
3358
  const { organizationId, timestampMs, ...rest } = input;
3359
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3360
+ const generateAppProofs = input?.generateAppProofs ?? false;
2879
3361
  const session = await this.storageManager?.getActiveSession();
2880
3362
  return this.activity("/public/v1/submit/init_otp_auth", {
2881
3363
  parameters: rest,
@@ -2883,6 +3365,7 @@ class TurnkeySDKClientBase {
2883
3365
  session?.organizationId ??
2884
3366
  this.config.organizationId,
2885
3367
  timestampMs: timestampMs ?? String(Date.now()),
3368
+ generateAppProofs: generateAppProofs ?? false,
2886
3369
  type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3",
2887
3370
  }, "initOtpAuthResultV2", stampWith);
2888
3371
  };
@@ -2910,6 +3393,8 @@ class TurnkeySDKClientBase {
2910
3393
  };
2911
3394
  this.initUserEmailRecovery = async (input, stampWith) => {
2912
3395
  const { organizationId, timestampMs, ...rest } = input;
3396
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3397
+ const generateAppProofs = input?.generateAppProofs ?? false;
2913
3398
  const session = await this.storageManager?.getActiveSession();
2914
3399
  return this.activity("/public/v1/submit/init_user_email_recovery", {
2915
3400
  parameters: rest,
@@ -2917,6 +3402,7 @@ class TurnkeySDKClientBase {
2917
3402
  session?.organizationId ??
2918
3403
  this.config.organizationId,
2919
3404
  timestampMs: timestampMs ?? String(Date.now()),
3405
+ generateAppProofs: generateAppProofs ?? false,
2920
3406
  type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2",
2921
3407
  }, "initUserEmailRecoveryResult", stampWith);
2922
3408
  };
@@ -2944,6 +3430,8 @@ class TurnkeySDKClientBase {
2944
3430
  };
2945
3431
  this.oauth = async (input, stampWith) => {
2946
3432
  const { organizationId, timestampMs, ...rest } = input;
3433
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3434
+ const generateAppProofs = input?.generateAppProofs ?? false;
2947
3435
  const session = await this.storageManager?.getActiveSession();
2948
3436
  return this.activity("/public/v1/submit/oauth", {
2949
3437
  parameters: rest,
@@ -2951,6 +3439,7 @@ class TurnkeySDKClientBase {
2951
3439
  session?.organizationId ??
2952
3440
  this.config.organizationId,
2953
3441
  timestampMs: timestampMs ?? String(Date.now()),
3442
+ generateAppProofs: generateAppProofs ?? false,
2954
3443
  type: "ACTIVITY_TYPE_OAUTH",
2955
3444
  }, "oauthResult", stampWith);
2956
3445
  };
@@ -2978,6 +3467,8 @@ class TurnkeySDKClientBase {
2978
3467
  };
2979
3468
  this.oauth2Authenticate = async (input, stampWith) => {
2980
3469
  const { organizationId, timestampMs, ...rest } = input;
3470
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3471
+ const generateAppProofs = input?.generateAppProofs ?? false;
2981
3472
  const session = await this.storageManager?.getActiveSession();
2982
3473
  return this.activity("/public/v1/submit/oauth2_authenticate", {
2983
3474
  parameters: rest,
@@ -2985,6 +3476,7 @@ class TurnkeySDKClientBase {
2985
3476
  session?.organizationId ??
2986
3477
  this.config.organizationId,
2987
3478
  timestampMs: timestampMs ?? String(Date.now()),
3479
+ generateAppProofs: generateAppProofs ?? false,
2988
3480
  type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE",
2989
3481
  }, "oauth2AuthenticateResult", stampWith);
2990
3482
  };
@@ -3012,6 +3504,8 @@ class TurnkeySDKClientBase {
3012
3504
  };
3013
3505
  this.oauthLogin = async (input, stampWith) => {
3014
3506
  const { organizationId, timestampMs, ...rest } = input;
3507
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3508
+ const generateAppProofs = input?.generateAppProofs ?? false;
3015
3509
  const session = await this.storageManager?.getActiveSession();
3016
3510
  return this.activity("/public/v1/submit/oauth_login", {
3017
3511
  parameters: rest,
@@ -3019,6 +3513,7 @@ class TurnkeySDKClientBase {
3019
3513
  session?.organizationId ??
3020
3514
  this.config.organizationId,
3021
3515
  timestampMs: timestampMs ?? String(Date.now()),
3516
+ generateAppProofs: generateAppProofs ?? false,
3022
3517
  type: "ACTIVITY_TYPE_OAUTH_LOGIN",
3023
3518
  }, "oauthLoginResult", stampWith);
3024
3519
  };
@@ -3046,6 +3541,8 @@ class TurnkeySDKClientBase {
3046
3541
  };
3047
3542
  this.otpAuth = async (input, stampWith) => {
3048
3543
  const { organizationId, timestampMs, ...rest } = input;
3544
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3545
+ const generateAppProofs = input?.generateAppProofs ?? false;
3049
3546
  const session = await this.storageManager?.getActiveSession();
3050
3547
  return this.activity("/public/v1/submit/otp_auth", {
3051
3548
  parameters: rest,
@@ -3053,6 +3550,7 @@ class TurnkeySDKClientBase {
3053
3550
  session?.organizationId ??
3054
3551
  this.config.organizationId,
3055
3552
  timestampMs: timestampMs ?? String(Date.now()),
3553
+ generateAppProofs: generateAppProofs ?? false,
3056
3554
  type: "ACTIVITY_TYPE_OTP_AUTH",
3057
3555
  }, "otpAuthResult", stampWith);
3058
3556
  };
@@ -3080,6 +3578,8 @@ class TurnkeySDKClientBase {
3080
3578
  };
3081
3579
  this.otpLogin = async (input, stampWith) => {
3082
3580
  const { organizationId, timestampMs, ...rest } = input;
3581
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3582
+ const generateAppProofs = input?.generateAppProofs ?? false;
3083
3583
  const session = await this.storageManager?.getActiveSession();
3084
3584
  return this.activity("/public/v1/submit/otp_login", {
3085
3585
  parameters: rest,
@@ -3087,6 +3587,7 @@ class TurnkeySDKClientBase {
3087
3587
  session?.organizationId ??
3088
3588
  this.config.organizationId,
3089
3589
  timestampMs: timestampMs ?? String(Date.now()),
3590
+ generateAppProofs: generateAppProofs ?? false,
3090
3591
  type: "ACTIVITY_TYPE_OTP_LOGIN",
3091
3592
  }, "otpLoginResult", stampWith);
3092
3593
  };
@@ -3114,6 +3615,8 @@ class TurnkeySDKClientBase {
3114
3615
  };
3115
3616
  this.recoverUser = async (input, stampWith) => {
3116
3617
  const { organizationId, timestampMs, ...rest } = input;
3618
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3619
+ const generateAppProofs = input?.generateAppProofs ?? false;
3117
3620
  const session = await this.storageManager?.getActiveSession();
3118
3621
  return this.activity("/public/v1/submit/recover_user", {
3119
3622
  parameters: rest,
@@ -3121,6 +3624,7 @@ class TurnkeySDKClientBase {
3121
3624
  session?.organizationId ??
3122
3625
  this.config.organizationId,
3123
3626
  timestampMs: timestampMs ?? String(Date.now()),
3627
+ generateAppProofs: generateAppProofs ?? false,
3124
3628
  type: "ACTIVITY_TYPE_RECOVER_USER",
3125
3629
  }, "recoverUserResult", stampWith);
3126
3630
  };
@@ -3148,6 +3652,7 @@ class TurnkeySDKClientBase {
3148
3652
  };
3149
3653
  this.rejectActivity = async (input, stampWith) => {
3150
3654
  const { organizationId, timestampMs, ...rest } = input;
3655
+ const generateAppProofs = input?.generateAppProofs ?? false;
3151
3656
  const session = await this.storageManager?.getActiveSession();
3152
3657
  return this.activityDecision("/public/v1/submit/reject_activity", {
3153
3658
  parameters: rest,
@@ -3155,6 +3660,7 @@ class TurnkeySDKClientBase {
3155
3660
  session?.organizationId ??
3156
3661
  this.config.organizationId,
3157
3662
  timestampMs: timestampMs ?? String(Date.now()),
3663
+ generateAppProofs: generateAppProofs ?? false,
3158
3664
  type: "ACTIVITY_TYPE_REJECT_ACTIVITY",
3159
3665
  }, stampWith);
3160
3666
  };
@@ -3182,6 +3688,8 @@ class TurnkeySDKClientBase {
3182
3688
  };
3183
3689
  this.removeIpAllowlist = async (input, stampWith) => {
3184
3690
  const { organizationId, timestampMs, ...rest } = input;
3691
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3692
+ const generateAppProofs = input?.generateAppProofs ?? false;
3185
3693
  const session = await this.storageManager?.getActiveSession();
3186
3694
  return this.activity("/public/v1/submit/remove_ip_allowlist", {
3187
3695
  parameters: rest,
@@ -3189,6 +3697,7 @@ class TurnkeySDKClientBase {
3189
3697
  session?.organizationId ??
3190
3698
  this.config.organizationId,
3191
3699
  timestampMs: timestampMs ?? String(Date.now()),
3700
+ generateAppProofs: generateAppProofs ?? false,
3192
3701
  type: "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST",
3193
3702
  }, "removeIpAllowlistResult", stampWith);
3194
3703
  };
@@ -3216,6 +3725,8 @@ class TurnkeySDKClientBase {
3216
3725
  };
3217
3726
  this.removeOrganizationFeature = async (input, stampWith) => {
3218
3727
  const { organizationId, timestampMs, ...rest } = input;
3728
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3729
+ const generateAppProofs = input?.generateAppProofs ?? false;
3219
3730
  const session = await this.storageManager?.getActiveSession();
3220
3731
  return this.activity("/public/v1/submit/remove_organization_feature", {
3221
3732
  parameters: rest,
@@ -3223,6 +3734,7 @@ class TurnkeySDKClientBase {
3223
3734
  session?.organizationId ??
3224
3735
  this.config.organizationId,
3225
3736
  timestampMs: timestampMs ?? String(Date.now()),
3737
+ generateAppProofs: generateAppProofs ?? false,
3226
3738
  type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE",
3227
3739
  }, "removeOrganizationFeatureResult", stampWith);
3228
3740
  };
@@ -3248,8 +3760,47 @@ class TurnkeySDKClientBase {
3248
3760
  url: fullUrl,
3249
3761
  };
3250
3762
  };
3763
+ this.restoreTvcDeployment = async (input, stampWith) => {
3764
+ const { organizationId, timestampMs, ...rest } = input;
3765
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3766
+ const generateAppProofs = input?.generateAppProofs ?? false;
3767
+ const session = await this.storageManager?.getActiveSession();
3768
+ return this.activity("/public/v1/submit/restore_tvc_deployment", {
3769
+ parameters: rest,
3770
+ organizationId: organizationId ??
3771
+ session?.organizationId ??
3772
+ this.config.organizationId,
3773
+ timestampMs: timestampMs ?? String(Date.now()),
3774
+ generateAppProofs: generateAppProofs ?? false,
3775
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3776
+ }, "restoreTvcDeploymentResult", stampWith);
3777
+ };
3778
+ this.stampRestoreTvcDeployment = async (input, stampWith) => {
3779
+ const activeStamper = this.getStamper(stampWith);
3780
+ if (!activeStamper) {
3781
+ return undefined;
3782
+ }
3783
+ const { organizationId, timestampMs, ...parameters } = input;
3784
+ const session = await this.storageManager?.getActiveSession();
3785
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/restore_tvc_deployment";
3786
+ const bodyWithType = {
3787
+ parameters,
3788
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3789
+ timestampMs: timestampMs ?? String(Date.now()),
3790
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3791
+ };
3792
+ const stringifiedBody = JSON.stringify(bodyWithType);
3793
+ const stamp = await activeStamper.stamp(stringifiedBody);
3794
+ return {
3795
+ body: stringifiedBody,
3796
+ stamp: stamp,
3797
+ url: fullUrl,
3798
+ };
3799
+ };
3251
3800
  this.setIpAllowlist = async (input, stampWith) => {
3252
3801
  const { organizationId, timestampMs, ...rest } = input;
3802
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3803
+ const generateAppProofs = input?.generateAppProofs ?? false;
3253
3804
  const session = await this.storageManager?.getActiveSession();
3254
3805
  return this.activity("/public/v1/submit/set_ip_allowlist", {
3255
3806
  parameters: rest,
@@ -3257,6 +3808,7 @@ class TurnkeySDKClientBase {
3257
3808
  session?.organizationId ??
3258
3809
  this.config.organizationId,
3259
3810
  timestampMs: timestampMs ?? String(Date.now()),
3811
+ generateAppProofs: generateAppProofs ?? false,
3260
3812
  type: "ACTIVITY_TYPE_SET_IP_ALLOWLIST",
3261
3813
  }, "setIpAllowlistResult", stampWith);
3262
3814
  };
@@ -3284,6 +3836,8 @@ class TurnkeySDKClientBase {
3284
3836
  };
3285
3837
  this.setOrganizationFeature = async (input, stampWith) => {
3286
3838
  const { organizationId, timestampMs, ...rest } = input;
3839
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3840
+ const generateAppProofs = input?.generateAppProofs ?? false;
3287
3841
  const session = await this.storageManager?.getActiveSession();
3288
3842
  return this.activity("/public/v1/submit/set_organization_feature", {
3289
3843
  parameters: rest,
@@ -3291,6 +3845,7 @@ class TurnkeySDKClientBase {
3291
3845
  session?.organizationId ??
3292
3846
  this.config.organizationId,
3293
3847
  timestampMs: timestampMs ?? String(Date.now()),
3848
+ generateAppProofs: generateAppProofs ?? false,
3294
3849
  type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE",
3295
3850
  }, "setOrganizationFeatureResult", stampWith);
3296
3851
  };
@@ -3316,8 +3871,47 @@ class TurnkeySDKClientBase {
3316
3871
  url: fullUrl,
3317
3872
  };
3318
3873
  };
3874
+ this.updateTvcAppLiveDeployment = async (input, stampWith) => {
3875
+ const { organizationId, timestampMs, ...rest } = input;
3876
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3877
+ const generateAppProofs = input?.generateAppProofs ?? false;
3878
+ const session = await this.storageManager?.getActiveSession();
3879
+ return this.activity("/public/v1/submit/set_tvc_app_live_deployment", {
3880
+ parameters: rest,
3881
+ organizationId: organizationId ??
3882
+ session?.organizationId ??
3883
+ this.config.organizationId,
3884
+ timestampMs: timestampMs ?? String(Date.now()),
3885
+ generateAppProofs: generateAppProofs ?? false,
3886
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3887
+ }, "updateTvcAppLiveDeploymentResult", stampWith);
3888
+ };
3889
+ this.stampUpdateTvcAppLiveDeployment = async (input, stampWith) => {
3890
+ const activeStamper = this.getStamper(stampWith);
3891
+ if (!activeStamper) {
3892
+ return undefined;
3893
+ }
3894
+ const { organizationId, timestampMs, ...parameters } = input;
3895
+ const session = await this.storageManager?.getActiveSession();
3896
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_tvc_app_live_deployment";
3897
+ const bodyWithType = {
3898
+ parameters,
3899
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3900
+ timestampMs: timestampMs ?? String(Date.now()),
3901
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3902
+ };
3903
+ const stringifiedBody = JSON.stringify(bodyWithType);
3904
+ const stamp = await activeStamper.stamp(stringifiedBody);
3905
+ return {
3906
+ body: stringifiedBody,
3907
+ stamp: stamp,
3908
+ url: fullUrl,
3909
+ };
3910
+ };
3319
3911
  this.signRawPayload = async (input, stampWith) => {
3320
3912
  const { organizationId, timestampMs, ...rest } = input;
3913
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3914
+ const generateAppProofs = input?.generateAppProofs ?? false;
3321
3915
  const session = await this.storageManager?.getActiveSession();
3322
3916
  return this.activity("/public/v1/submit/sign_raw_payload", {
3323
3917
  parameters: rest,
@@ -3325,6 +3919,7 @@ class TurnkeySDKClientBase {
3325
3919
  session?.organizationId ??
3326
3920
  this.config.organizationId,
3327
3921
  timestampMs: timestampMs ?? String(Date.now()),
3922
+ generateAppProofs: generateAppProofs ?? false,
3328
3923
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
3329
3924
  }, "signRawPayloadResult", stampWith);
3330
3925
  };
@@ -3352,6 +3947,8 @@ class TurnkeySDKClientBase {
3352
3947
  };
3353
3948
  this.signRawPayloads = async (input, stampWith) => {
3354
3949
  const { organizationId, timestampMs, ...rest } = input;
3950
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3951
+ const generateAppProofs = input?.generateAppProofs ?? false;
3355
3952
  const session = await this.storageManager?.getActiveSession();
3356
3953
  return this.activity("/public/v1/submit/sign_raw_payloads", {
3357
3954
  parameters: rest,
@@ -3359,6 +3956,7 @@ class TurnkeySDKClientBase {
3359
3956
  session?.organizationId ??
3360
3957
  this.config.organizationId,
3361
3958
  timestampMs: timestampMs ?? String(Date.now()),
3959
+ generateAppProofs: generateAppProofs ?? false,
3362
3960
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS",
3363
3961
  }, "signRawPayloadsResult", stampWith);
3364
3962
  };
@@ -3386,6 +3984,8 @@ class TurnkeySDKClientBase {
3386
3984
  };
3387
3985
  this.signTransaction = async (input, stampWith) => {
3388
3986
  const { organizationId, timestampMs, ...rest } = input;
3987
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3988
+ const generateAppProofs = input?.generateAppProofs ?? false;
3389
3989
  const session = await this.storageManager?.getActiveSession();
3390
3990
  return this.activity("/public/v1/submit/sign_transaction", {
3391
3991
  parameters: rest,
@@ -3393,6 +3993,7 @@ class TurnkeySDKClientBase {
3393
3993
  session?.organizationId ??
3394
3994
  this.config.organizationId,
3395
3995
  timestampMs: timestampMs ?? String(Date.now()),
3996
+ generateAppProofs: generateAppProofs ?? false,
3396
3997
  type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2",
3397
3998
  }, "signTransactionResult", stampWith);
3398
3999
  };
@@ -3420,6 +4021,8 @@ class TurnkeySDKClientBase {
3420
4021
  };
3421
4022
  this.solSendTransaction = async (input, stampWith) => {
3422
4023
  const { organizationId, timestampMs, ...rest } = input;
4024
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4025
+ const generateAppProofs = input?.generateAppProofs ?? false;
3423
4026
  const session = await this.storageManager?.getActiveSession();
3424
4027
  return this.activity("/public/v1/submit/sol_send_transaction", {
3425
4028
  parameters: rest,
@@ -3427,6 +4030,7 @@ class TurnkeySDKClientBase {
3427
4030
  session?.organizationId ??
3428
4031
  this.config.organizationId,
3429
4032
  timestampMs: timestampMs ?? String(Date.now()),
4033
+ generateAppProofs: generateAppProofs ?? false,
3430
4034
  type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION",
3431
4035
  }, "solSendTransactionResult", stampWith);
3432
4036
  };
@@ -3452,8 +4056,159 @@ class TurnkeySDKClientBase {
3452
4056
  url: fullUrl,
3453
4057
  };
3454
4058
  };
4059
+ this.sparkClaimTransfer = async (input, stampWith) => {
4060
+ const { organizationId, timestampMs, ...rest } = input;
4061
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4062
+ const generateAppProofs = input?.generateAppProofs ?? false;
4063
+ const session = await this.storageManager?.getActiveSession();
4064
+ return this.activity("/public/v1/submit/spark_claim_transfer", {
4065
+ parameters: rest,
4066
+ organizationId: organizationId ??
4067
+ session?.organizationId ??
4068
+ this.config.organizationId,
4069
+ timestampMs: timestampMs ?? String(Date.now()),
4070
+ generateAppProofs: generateAppProofs ?? false,
4071
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
4072
+ }, "sparkClaimTransferResult", stampWith);
4073
+ };
4074
+ this.stampSparkClaimTransfer = async (input, stampWith) => {
4075
+ const activeStamper = this.getStamper(stampWith);
4076
+ if (!activeStamper) {
4077
+ return undefined;
4078
+ }
4079
+ const { organizationId, timestampMs, ...parameters } = input;
4080
+ const session = await this.storageManager?.getActiveSession();
4081
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_claim_transfer";
4082
+ const bodyWithType = {
4083
+ parameters,
4084
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4085
+ timestampMs: timestampMs ?? String(Date.now()),
4086
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
4087
+ };
4088
+ const stringifiedBody = JSON.stringify(bodyWithType);
4089
+ const stamp = await activeStamper.stamp(stringifiedBody);
4090
+ return {
4091
+ body: stringifiedBody,
4092
+ stamp: stamp,
4093
+ url: fullUrl,
4094
+ };
4095
+ };
4096
+ this.sparkPrepareLightningReceive = async (input, stampWith) => {
4097
+ const { organizationId, timestampMs, ...rest } = input;
4098
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4099
+ const generateAppProofs = input?.generateAppProofs ?? false;
4100
+ const session = await this.storageManager?.getActiveSession();
4101
+ return this.activity("/public/v1/submit/spark_prepare_lightning_receive", {
4102
+ parameters: rest,
4103
+ organizationId: organizationId ??
4104
+ session?.organizationId ??
4105
+ this.config.organizationId,
4106
+ timestampMs: timestampMs ?? String(Date.now()),
4107
+ generateAppProofs: generateAppProofs ?? false,
4108
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4109
+ }, "sparkPrepareLightningReceiveResult", stampWith);
4110
+ };
4111
+ this.stampSparkPrepareLightningReceive = async (input, stampWith) => {
4112
+ const activeStamper = this.getStamper(stampWith);
4113
+ if (!activeStamper) {
4114
+ return undefined;
4115
+ }
4116
+ const { organizationId, timestampMs, ...parameters } = input;
4117
+ const session = await this.storageManager?.getActiveSession();
4118
+ const fullUrl = this.config.apiBaseUrl +
4119
+ "/public/v1/submit/spark_prepare_lightning_receive";
4120
+ const bodyWithType = {
4121
+ parameters,
4122
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4123
+ timestampMs: timestampMs ?? String(Date.now()),
4124
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4125
+ };
4126
+ const stringifiedBody = JSON.stringify(bodyWithType);
4127
+ const stamp = await activeStamper.stamp(stringifiedBody);
4128
+ return {
4129
+ body: stringifiedBody,
4130
+ stamp: stamp,
4131
+ url: fullUrl,
4132
+ };
4133
+ };
4134
+ this.sparkPrepareTransfer = async (input, stampWith) => {
4135
+ const { organizationId, timestampMs, ...rest } = input;
4136
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4137
+ const generateAppProofs = input?.generateAppProofs ?? false;
4138
+ const session = await this.storageManager?.getActiveSession();
4139
+ return this.activity("/public/v1/submit/spark_prepare_transfer", {
4140
+ parameters: rest,
4141
+ organizationId: organizationId ??
4142
+ session?.organizationId ??
4143
+ this.config.organizationId,
4144
+ timestampMs: timestampMs ?? String(Date.now()),
4145
+ generateAppProofs: generateAppProofs ?? false,
4146
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4147
+ }, "sparkPrepareTransferResult", stampWith);
4148
+ };
4149
+ this.stampSparkPrepareTransfer = async (input, stampWith) => {
4150
+ const activeStamper = this.getStamper(stampWith);
4151
+ if (!activeStamper) {
4152
+ return undefined;
4153
+ }
4154
+ const { organizationId, timestampMs, ...parameters } = input;
4155
+ const session = await this.storageManager?.getActiveSession();
4156
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_prepare_transfer";
4157
+ const bodyWithType = {
4158
+ parameters,
4159
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4160
+ timestampMs: timestampMs ?? String(Date.now()),
4161
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4162
+ };
4163
+ const stringifiedBody = JSON.stringify(bodyWithType);
4164
+ const stamp = await activeStamper.stamp(stringifiedBody);
4165
+ return {
4166
+ body: stringifiedBody,
4167
+ stamp: stamp,
4168
+ url: fullUrl,
4169
+ };
4170
+ };
4171
+ this.sparkSignFrost = async (input, stampWith) => {
4172
+ const { organizationId, timestampMs, ...rest } = input;
4173
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4174
+ const generateAppProofs = input?.generateAppProofs ?? false;
4175
+ const session = await this.storageManager?.getActiveSession();
4176
+ return this.activity("/public/v1/submit/spark_sign_frost", {
4177
+ parameters: rest,
4178
+ organizationId: organizationId ??
4179
+ session?.organizationId ??
4180
+ this.config.organizationId,
4181
+ timestampMs: timestampMs ?? String(Date.now()),
4182
+ generateAppProofs: generateAppProofs ?? false,
4183
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4184
+ }, "sparkSignFrostResult", stampWith);
4185
+ };
4186
+ this.stampSparkSignFrost = async (input, stampWith) => {
4187
+ const activeStamper = this.getStamper(stampWith);
4188
+ if (!activeStamper) {
4189
+ return undefined;
4190
+ }
4191
+ const { organizationId, timestampMs, ...parameters } = input;
4192
+ const session = await this.storageManager?.getActiveSession();
4193
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_sign_frost";
4194
+ const bodyWithType = {
4195
+ parameters,
4196
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4197
+ timestampMs: timestampMs ?? String(Date.now()),
4198
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4199
+ };
4200
+ const stringifiedBody = JSON.stringify(bodyWithType);
4201
+ const stamp = await activeStamper.stamp(stringifiedBody);
4202
+ return {
4203
+ body: stringifiedBody,
4204
+ stamp: stamp,
4205
+ url: fullUrl,
4206
+ };
4207
+ };
3455
4208
  this.stampLogin = async (input, stampWith) => {
3456
4209
  const { organizationId, timestampMs, ...rest } = input;
4210
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4211
+ const generateAppProofs = input?.generateAppProofs ?? false;
3457
4212
  const session = await this.storageManager?.getActiveSession();
3458
4213
  return this.activity("/public/v1/submit/stamp_login", {
3459
4214
  parameters: rest,
@@ -3461,6 +4216,7 @@ class TurnkeySDKClientBase {
3461
4216
  session?.organizationId ??
3462
4217
  this.config.organizationId,
3463
4218
  timestampMs: timestampMs ?? String(Date.now()),
4219
+ generateAppProofs: generateAppProofs ?? false,
3464
4220
  type: "ACTIVITY_TYPE_STAMP_LOGIN",
3465
4221
  }, "stampLoginResult", stampWith);
3466
4222
  };
@@ -3488,6 +4244,8 @@ class TurnkeySDKClientBase {
3488
4244
  };
3489
4245
  this.updateFiatOnRampCredential = async (input, stampWith) => {
3490
4246
  const { organizationId, timestampMs, ...rest } = input;
4247
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4248
+ const generateAppProofs = input?.generateAppProofs ?? false;
3491
4249
  const session = await this.storageManager?.getActiveSession();
3492
4250
  return this.activity("/public/v1/submit/update_fiat_on_ramp_credential", {
3493
4251
  parameters: rest,
@@ -3495,6 +4253,7 @@ class TurnkeySDKClientBase {
3495
4253
  session?.organizationId ??
3496
4254
  this.config.organizationId,
3497
4255
  timestampMs: timestampMs ?? String(Date.now()),
4256
+ generateAppProofs: generateAppProofs ?? false,
3498
4257
  type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL",
3499
4258
  }, "updateFiatOnRampCredentialResult", stampWith);
3500
4259
  };
@@ -3523,6 +4282,8 @@ class TurnkeySDKClientBase {
3523
4282
  };
3524
4283
  this.updateOauth2Credential = async (input, stampWith) => {
3525
4284
  const { organizationId, timestampMs, ...rest } = input;
4285
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4286
+ const generateAppProofs = input?.generateAppProofs ?? false;
3526
4287
  const session = await this.storageManager?.getActiveSession();
3527
4288
  return this.activity("/public/v1/submit/update_oauth2_credential", {
3528
4289
  parameters: rest,
@@ -3530,6 +4291,7 @@ class TurnkeySDKClientBase {
3530
4291
  session?.organizationId ??
3531
4292
  this.config.organizationId,
3532
4293
  timestampMs: timestampMs ?? String(Date.now()),
4294
+ generateAppProofs: generateAppProofs ?? false,
3533
4295
  type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL",
3534
4296
  }, "updateOauth2CredentialResult", stampWith);
3535
4297
  };
@@ -3557,6 +4319,8 @@ class TurnkeySDKClientBase {
3557
4319
  };
3558
4320
  this.updateOrganizationName = async (input, stampWith) => {
3559
4321
  const { organizationId, timestampMs, ...rest } = input;
4322
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4323
+ const generateAppProofs = input?.generateAppProofs ?? false;
3560
4324
  const session = await this.storageManager?.getActiveSession();
3561
4325
  return this.activity("/public/v1/submit/update_organization_name", {
3562
4326
  parameters: rest,
@@ -3564,6 +4328,7 @@ class TurnkeySDKClientBase {
3564
4328
  session?.organizationId ??
3565
4329
  this.config.organizationId,
3566
4330
  timestampMs: timestampMs ?? String(Date.now()),
4331
+ generateAppProofs: generateAppProofs ?? false,
3567
4332
  type: "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME",
3568
4333
  }, "updateOrganizationNameResult", stampWith);
3569
4334
  };
@@ -3591,6 +4356,8 @@ class TurnkeySDKClientBase {
3591
4356
  };
3592
4357
  this.updatePolicy = async (input, stampWith) => {
3593
4358
  const { organizationId, timestampMs, ...rest } = input;
4359
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4360
+ const generateAppProofs = input?.generateAppProofs ?? false;
3594
4361
  const session = await this.storageManager?.getActiveSession();
3595
4362
  return this.activity("/public/v1/submit/update_policy", {
3596
4363
  parameters: rest,
@@ -3598,6 +4365,7 @@ class TurnkeySDKClientBase {
3598
4365
  session?.organizationId ??
3599
4366
  this.config.organizationId,
3600
4367
  timestampMs: timestampMs ?? String(Date.now()),
4368
+ generateAppProofs: generateAppProofs ?? false,
3601
4369
  type: "ACTIVITY_TYPE_UPDATE_POLICY_V2",
3602
4370
  }, "updatePolicyResultV2", stampWith);
3603
4371
  };
@@ -3625,6 +4393,8 @@ class TurnkeySDKClientBase {
3625
4393
  };
3626
4394
  this.updatePrivateKeyTag = async (input, stampWith) => {
3627
4395
  const { organizationId, timestampMs, ...rest } = input;
4396
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4397
+ const generateAppProofs = input?.generateAppProofs ?? false;
3628
4398
  const session = await this.storageManager?.getActiveSession();
3629
4399
  return this.activity("/public/v1/submit/update_private_key_tag", {
3630
4400
  parameters: rest,
@@ -3632,6 +4402,7 @@ class TurnkeySDKClientBase {
3632
4402
  session?.organizationId ??
3633
4403
  this.config.organizationId,
3634
4404
  timestampMs: timestampMs ?? String(Date.now()),
4405
+ generateAppProofs: generateAppProofs ?? false,
3635
4406
  type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG",
3636
4407
  }, "updatePrivateKeyTagResult", stampWith);
3637
4408
  };
@@ -3659,6 +4430,8 @@ class TurnkeySDKClientBase {
3659
4430
  };
3660
4431
  this.updateRootQuorum = async (input, stampWith) => {
3661
4432
  const { organizationId, timestampMs, ...rest } = input;
4433
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4434
+ const generateAppProofs = input?.generateAppProofs ?? false;
3662
4435
  const session = await this.storageManager?.getActiveSession();
3663
4436
  return this.activity("/public/v1/submit/update_root_quorum", {
3664
4437
  parameters: rest,
@@ -3666,6 +4439,7 @@ class TurnkeySDKClientBase {
3666
4439
  session?.organizationId ??
3667
4440
  this.config.organizationId,
3668
4441
  timestampMs: timestampMs ?? String(Date.now()),
4442
+ generateAppProofs: generateAppProofs ?? false,
3669
4443
  type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
3670
4444
  }, "updateRootQuorumResult", stampWith);
3671
4445
  };
@@ -3693,6 +4467,8 @@ class TurnkeySDKClientBase {
3693
4467
  };
3694
4468
  this.updateUser = async (input, stampWith) => {
3695
4469
  const { organizationId, timestampMs, ...rest } = input;
4470
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4471
+ const generateAppProofs = input?.generateAppProofs ?? false;
3696
4472
  const session = await this.storageManager?.getActiveSession();
3697
4473
  return this.activity("/public/v1/submit/update_user", {
3698
4474
  parameters: rest,
@@ -3700,6 +4476,7 @@ class TurnkeySDKClientBase {
3700
4476
  session?.organizationId ??
3701
4477
  this.config.organizationId,
3702
4478
  timestampMs: timestampMs ?? String(Date.now()),
4479
+ generateAppProofs: generateAppProofs ?? false,
3703
4480
  type: "ACTIVITY_TYPE_UPDATE_USER",
3704
4481
  }, "updateUserResult", stampWith);
3705
4482
  };
@@ -3727,6 +4504,8 @@ class TurnkeySDKClientBase {
3727
4504
  };
3728
4505
  this.updateUserEmail = async (input, stampWith) => {
3729
4506
  const { organizationId, timestampMs, ...rest } = input;
4507
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4508
+ const generateAppProofs = input?.generateAppProofs ?? false;
3730
4509
  const session = await this.storageManager?.getActiveSession();
3731
4510
  return this.activity("/public/v1/submit/update_user_email", {
3732
4511
  parameters: rest,
@@ -3734,6 +4513,7 @@ class TurnkeySDKClientBase {
3734
4513
  session?.organizationId ??
3735
4514
  this.config.organizationId,
3736
4515
  timestampMs: timestampMs ?? String(Date.now()),
4516
+ generateAppProofs: generateAppProofs ?? false,
3737
4517
  type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL",
3738
4518
  }, "updateUserEmailResult", stampWith);
3739
4519
  };
@@ -3761,6 +4541,8 @@ class TurnkeySDKClientBase {
3761
4541
  };
3762
4542
  this.updateUserName = async (input, stampWith) => {
3763
4543
  const { organizationId, timestampMs, ...rest } = input;
4544
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4545
+ const generateAppProofs = input?.generateAppProofs ?? false;
3764
4546
  const session = await this.storageManager?.getActiveSession();
3765
4547
  return this.activity("/public/v1/submit/update_user_name", {
3766
4548
  parameters: rest,
@@ -3768,6 +4550,7 @@ class TurnkeySDKClientBase {
3768
4550
  session?.organizationId ??
3769
4551
  this.config.organizationId,
3770
4552
  timestampMs: timestampMs ?? String(Date.now()),
4553
+ generateAppProofs: generateAppProofs ?? false,
3771
4554
  type: "ACTIVITY_TYPE_UPDATE_USER_NAME",
3772
4555
  }, "updateUserNameResult", stampWith);
3773
4556
  };
@@ -3795,6 +4578,8 @@ class TurnkeySDKClientBase {
3795
4578
  };
3796
4579
  this.updateUserPhoneNumber = async (input, stampWith) => {
3797
4580
  const { organizationId, timestampMs, ...rest } = input;
4581
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4582
+ const generateAppProofs = input?.generateAppProofs ?? false;
3798
4583
  const session = await this.storageManager?.getActiveSession();
3799
4584
  return this.activity("/public/v1/submit/update_user_phone_number", {
3800
4585
  parameters: rest,
@@ -3802,6 +4587,7 @@ class TurnkeySDKClientBase {
3802
4587
  session?.organizationId ??
3803
4588
  this.config.organizationId,
3804
4589
  timestampMs: timestampMs ?? String(Date.now()),
4590
+ generateAppProofs: generateAppProofs ?? false,
3805
4591
  type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER",
3806
4592
  }, "updateUserPhoneNumberResult", stampWith);
3807
4593
  };
@@ -3829,6 +4615,8 @@ class TurnkeySDKClientBase {
3829
4615
  };
3830
4616
  this.updateUserTag = async (input, stampWith) => {
3831
4617
  const { organizationId, timestampMs, ...rest } = input;
4618
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4619
+ const generateAppProofs = input?.generateAppProofs ?? false;
3832
4620
  const session = await this.storageManager?.getActiveSession();
3833
4621
  return this.activity("/public/v1/submit/update_user_tag", {
3834
4622
  parameters: rest,
@@ -3836,6 +4624,7 @@ class TurnkeySDKClientBase {
3836
4624
  session?.organizationId ??
3837
4625
  this.config.organizationId,
3838
4626
  timestampMs: timestampMs ?? String(Date.now()),
4627
+ generateAppProofs: generateAppProofs ?? false,
3839
4628
  type: "ACTIVITY_TYPE_UPDATE_USER_TAG",
3840
4629
  }, "updateUserTagResult", stampWith);
3841
4630
  };
@@ -3863,6 +4652,8 @@ class TurnkeySDKClientBase {
3863
4652
  };
3864
4653
  this.updateWallet = async (input, stampWith) => {
3865
4654
  const { organizationId, timestampMs, ...rest } = input;
4655
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4656
+ const generateAppProofs = input?.generateAppProofs ?? false;
3866
4657
  const session = await this.storageManager?.getActiveSession();
3867
4658
  return this.activity("/public/v1/submit/update_wallet", {
3868
4659
  parameters: rest,
@@ -3870,6 +4661,7 @@ class TurnkeySDKClientBase {
3870
4661
  session?.organizationId ??
3871
4662
  this.config.organizationId,
3872
4663
  timestampMs: timestampMs ?? String(Date.now()),
4664
+ generateAppProofs: generateAppProofs ?? false,
3873
4665
  type: "ACTIVITY_TYPE_UPDATE_WALLET",
3874
4666
  }, "updateWalletResult", stampWith);
3875
4667
  };
@@ -3897,6 +4689,8 @@ class TurnkeySDKClientBase {
3897
4689
  };
3898
4690
  this.updateWebhookEndpoint = async (input, stampWith) => {
3899
4691
  const { organizationId, timestampMs, ...rest } = input;
4692
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4693
+ const generateAppProofs = input?.generateAppProofs ?? false;
3900
4694
  const session = await this.storageManager?.getActiveSession();
3901
4695
  return this.activity("/public/v1/submit/update_webhook_endpoint", {
3902
4696
  parameters: rest,
@@ -3904,6 +4698,7 @@ class TurnkeySDKClientBase {
3904
4698
  session?.organizationId ??
3905
4699
  this.config.organizationId,
3906
4700
  timestampMs: timestampMs ?? String(Date.now()),
4701
+ generateAppProofs: generateAppProofs ?? false,
3907
4702
  type: "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT",
3908
4703
  }, "updateWebhookEndpointResult", stampWith);
3909
4704
  };
@@ -3931,6 +4726,8 @@ class TurnkeySDKClientBase {
3931
4726
  };
3932
4727
  this.verifyOtp = async (input, stampWith) => {
3933
4728
  const { organizationId, timestampMs, ...rest } = input;
4729
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4730
+ const generateAppProofs = input?.generateAppProofs ?? false;
3934
4731
  const session = await this.storageManager?.getActiveSession();
3935
4732
  return this.activity("/public/v1/submit/verify_otp", {
3936
4733
  parameters: rest,
@@ -3938,6 +4735,7 @@ class TurnkeySDKClientBase {
3938
4735
  session?.organizationId ??
3939
4736
  this.config.organizationId,
3940
4737
  timestampMs: timestampMs ?? String(Date.now()),
4738
+ generateAppProofs: generateAppProofs ?? false,
3941
4739
  type: "ACTIVITY_TYPE_VERIFY_OTP",
3942
4740
  }, "verifyOtpResult", stampWith);
3943
4741
  };