@turnkey/core 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -605,6 +605,66 @@ class TurnkeySDKClientBase {
605
605
  url: fullUrl,
606
606
  };
607
607
  };
608
+ this.getTvcApp = async (input, stampWith) => {
609
+ const session = await this.storageManager?.getActiveSession();
610
+ return this.request("/public/v1/query/get_tvc_app", {
611
+ ...input,
612
+ organizationId: input.organizationId ??
613
+ session?.organizationId ??
614
+ this.config.organizationId,
615
+ }, stampWith);
616
+ };
617
+ this.stampGetTvcApp = async (input, stampWith) => {
618
+ const activeStamper = this.getStamper(stampWith);
619
+ if (!activeStamper) {
620
+ return undefined;
621
+ }
622
+ const session = await this.storageManager?.getActiveSession();
623
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_app";
624
+ const body = {
625
+ ...input,
626
+ organizationId: input.organizationId ??
627
+ session?.organizationId ??
628
+ this.config.organizationId,
629
+ };
630
+ const stringifiedBody = JSON.stringify(body);
631
+ const stamp = await activeStamper.stamp(stringifiedBody);
632
+ return {
633
+ body: stringifiedBody,
634
+ stamp: stamp,
635
+ url: fullUrl,
636
+ };
637
+ };
638
+ this.getTvcDeployment = async (input, stampWith) => {
639
+ const session = await this.storageManager?.getActiveSession();
640
+ return this.request("/public/v1/query/get_tvc_deployment", {
641
+ ...input,
642
+ organizationId: input.organizationId ??
643
+ session?.organizationId ??
644
+ this.config.organizationId,
645
+ }, stampWith);
646
+ };
647
+ this.stampGetTvcDeployment = async (input, stampWith) => {
648
+ const activeStamper = this.getStamper(stampWith);
649
+ if (!activeStamper) {
650
+ return undefined;
651
+ }
652
+ const session = await this.storageManager?.getActiveSession();
653
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_deployment";
654
+ const body = {
655
+ ...input,
656
+ organizationId: input.organizationId ??
657
+ session?.organizationId ??
658
+ this.config.organizationId,
659
+ };
660
+ const stringifiedBody = JSON.stringify(body);
661
+ const stamp = await activeStamper.stamp(stringifiedBody);
662
+ return {
663
+ body: stringifiedBody,
664
+ stamp: stamp,
665
+ url: fullUrl,
666
+ };
667
+ };
608
668
  this.getUser = async (input, stampWith) => {
609
669
  const session = await this.storageManager?.getActiveSession();
610
670
  return this.request("/public/v1/query/get_user", {
@@ -1026,6 +1086,66 @@ class TurnkeySDKClientBase {
1026
1086
  url: fullUrl,
1027
1087
  };
1028
1088
  };
1089
+ this.getTvcAppDeployments = async (input, stampWith) => {
1090
+ const session = await this.storageManager?.getActiveSession();
1091
+ return this.request("/public/v1/query/list_tvc_app_deployments", {
1092
+ ...input,
1093
+ organizationId: input.organizationId ??
1094
+ session?.organizationId ??
1095
+ this.config.organizationId,
1096
+ }, stampWith);
1097
+ };
1098
+ this.stampGetTvcAppDeployments = async (input, stampWith) => {
1099
+ const activeStamper = this.getStamper(stampWith);
1100
+ if (!activeStamper) {
1101
+ return undefined;
1102
+ }
1103
+ const session = await this.storageManager?.getActiveSession();
1104
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_app_deployments";
1105
+ const body = {
1106
+ ...input,
1107
+ organizationId: input.organizationId ??
1108
+ session?.organizationId ??
1109
+ this.config.organizationId,
1110
+ };
1111
+ const stringifiedBody = JSON.stringify(body);
1112
+ const stamp = await activeStamper.stamp(stringifiedBody);
1113
+ return {
1114
+ body: stringifiedBody,
1115
+ stamp: stamp,
1116
+ url: fullUrl,
1117
+ };
1118
+ };
1119
+ this.getTvcApps = async (input, stampWith) => {
1120
+ const session = await this.storageManager?.getActiveSession();
1121
+ return this.request("/public/v1/query/list_tvc_apps", {
1122
+ ...input,
1123
+ organizationId: input.organizationId ??
1124
+ session?.organizationId ??
1125
+ this.config.organizationId,
1126
+ }, stampWith);
1127
+ };
1128
+ this.stampGetTvcApps = async (input, stampWith) => {
1129
+ const activeStamper = this.getStamper(stampWith);
1130
+ if (!activeStamper) {
1131
+ return undefined;
1132
+ }
1133
+ const session = await this.storageManager?.getActiveSession();
1134
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_apps";
1135
+ const body = {
1136
+ ...input,
1137
+ organizationId: input.organizationId ??
1138
+ session?.organizationId ??
1139
+ this.config.organizationId,
1140
+ };
1141
+ const stringifiedBody = JSON.stringify(body);
1142
+ const stamp = await activeStamper.stamp(stringifiedBody);
1143
+ return {
1144
+ body: stringifiedBody,
1145
+ stamp: stamp,
1146
+ url: fullUrl,
1147
+ };
1148
+ };
1029
1149
  this.listUserTags = async (input = {}, stampWith) => {
1030
1150
  const session = await this.storageManager?.getActiveSession();
1031
1151
  return this.request("/public/v1/query/list_user_tags", {
@@ -1206,6 +1326,36 @@ class TurnkeySDKClientBase {
1206
1326
  url: fullUrl,
1207
1327
  };
1208
1328
  };
1329
+ this.validateTvcImage = async (input, stampWith) => {
1330
+ const session = await this.storageManager?.getActiveSession();
1331
+ return this.request("/public/v1/query/validate_tvc_image", {
1332
+ ...input,
1333
+ organizationId: input.organizationId ??
1334
+ session?.organizationId ??
1335
+ this.config.organizationId,
1336
+ }, stampWith);
1337
+ };
1338
+ this.stampValidateTvcImage = async (input, stampWith) => {
1339
+ const activeStamper = this.getStamper(stampWith);
1340
+ if (!activeStamper) {
1341
+ return undefined;
1342
+ }
1343
+ const session = await this.storageManager?.getActiveSession();
1344
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/validate_tvc_image";
1345
+ const body = {
1346
+ ...input,
1347
+ organizationId: input.organizationId ??
1348
+ session?.organizationId ??
1349
+ this.config.organizationId,
1350
+ };
1351
+ const stringifiedBody = JSON.stringify(body);
1352
+ const stamp = await activeStamper.stamp(stringifiedBody);
1353
+ return {
1354
+ body: stringifiedBody,
1355
+ stamp: stamp,
1356
+ url: fullUrl,
1357
+ };
1358
+ };
1209
1359
  this.getWhoami = async (input = {}, stampWith) => {
1210
1360
  const session = await this.storageManager?.getActiveSession();
1211
1361
  return this.request("/public/v1/query/whoami", {
@@ -1238,6 +1388,7 @@ class TurnkeySDKClientBase {
1238
1388
  };
1239
1389
  this.approveActivity = async (input, stampWith) => {
1240
1390
  const { organizationId, timestampMs, ...rest } = input;
1391
+ const generateAppProofs = input?.generateAppProofs ?? false;
1241
1392
  const session = await this.storageManager?.getActiveSession();
1242
1393
  return this.activityDecision("/public/v1/submit/approve_activity", {
1243
1394
  parameters: rest,
@@ -1245,6 +1396,7 @@ class TurnkeySDKClientBase {
1245
1396
  session?.organizationId ??
1246
1397
  this.config.organizationId,
1247
1398
  timestampMs: timestampMs ?? String(Date.now()),
1399
+ generateAppProofs: generateAppProofs ?? false,
1248
1400
  type: "ACTIVITY_TYPE_APPROVE_ACTIVITY",
1249
1401
  }, stampWith);
1250
1402
  };
@@ -1272,6 +1424,8 @@ class TurnkeySDKClientBase {
1272
1424
  };
1273
1425
  this.createApiKeys = async (input, stampWith) => {
1274
1426
  const { organizationId, timestampMs, ...rest } = input;
1427
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1428
+ const generateAppProofs = input?.generateAppProofs ?? false;
1275
1429
  const session = await this.storageManager?.getActiveSession();
1276
1430
  return this.activity("/public/v1/submit/create_api_keys", {
1277
1431
  parameters: rest,
@@ -1279,6 +1433,7 @@ class TurnkeySDKClientBase {
1279
1433
  session?.organizationId ??
1280
1434
  this.config.organizationId,
1281
1435
  timestampMs: timestampMs ?? String(Date.now()),
1436
+ generateAppProofs: generateAppProofs ?? false,
1282
1437
  type: "ACTIVITY_TYPE_CREATE_API_KEYS_V2",
1283
1438
  }, "createApiKeysResult", stampWith);
1284
1439
  };
@@ -1306,6 +1461,8 @@ class TurnkeySDKClientBase {
1306
1461
  };
1307
1462
  this.createAuthenticators = async (input, stampWith) => {
1308
1463
  const { organizationId, timestampMs, ...rest } = input;
1464
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1465
+ const generateAppProofs = input?.generateAppProofs ?? false;
1309
1466
  const session = await this.storageManager?.getActiveSession();
1310
1467
  return this.activity("/public/v1/submit/create_authenticators", {
1311
1468
  parameters: rest,
@@ -1313,6 +1470,7 @@ class TurnkeySDKClientBase {
1313
1470
  session?.organizationId ??
1314
1471
  this.config.organizationId,
1315
1472
  timestampMs: timestampMs ?? String(Date.now()),
1473
+ generateAppProofs: generateAppProofs ?? false,
1316
1474
  type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2",
1317
1475
  }, "createAuthenticatorsResult", stampWith);
1318
1476
  };
@@ -1340,6 +1498,8 @@ class TurnkeySDKClientBase {
1340
1498
  };
1341
1499
  this.createFiatOnRampCredential = async (input, stampWith) => {
1342
1500
  const { organizationId, timestampMs, ...rest } = input;
1501
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1502
+ const generateAppProofs = input?.generateAppProofs ?? false;
1343
1503
  const session = await this.storageManager?.getActiveSession();
1344
1504
  return this.activity("/public/v1/submit/create_fiat_on_ramp_credential", {
1345
1505
  parameters: rest,
@@ -1347,6 +1507,7 @@ class TurnkeySDKClientBase {
1347
1507
  session?.organizationId ??
1348
1508
  this.config.organizationId,
1349
1509
  timestampMs: timestampMs ?? String(Date.now()),
1510
+ generateAppProofs: generateAppProofs ?? false,
1350
1511
  type: "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL",
1351
1512
  }, "createFiatOnRampCredentialResult", stampWith);
1352
1513
  };
@@ -1375,6 +1536,8 @@ class TurnkeySDKClientBase {
1375
1536
  };
1376
1537
  this.createInvitations = async (input, stampWith) => {
1377
1538
  const { organizationId, timestampMs, ...rest } = input;
1539
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1540
+ const generateAppProofs = input?.generateAppProofs ?? false;
1378
1541
  const session = await this.storageManager?.getActiveSession();
1379
1542
  return this.activity("/public/v1/submit/create_invitations", {
1380
1543
  parameters: rest,
@@ -1382,6 +1545,7 @@ class TurnkeySDKClientBase {
1382
1545
  session?.organizationId ??
1383
1546
  this.config.organizationId,
1384
1547
  timestampMs: timestampMs ?? String(Date.now()),
1548
+ generateAppProofs: generateAppProofs ?? false,
1385
1549
  type: "ACTIVITY_TYPE_CREATE_INVITATIONS",
1386
1550
  }, "createInvitationsResult", stampWith);
1387
1551
  };
@@ -1409,6 +1573,8 @@ class TurnkeySDKClientBase {
1409
1573
  };
1410
1574
  this.createOauth2Credential = async (input, stampWith) => {
1411
1575
  const { organizationId, timestampMs, ...rest } = input;
1576
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1577
+ const generateAppProofs = input?.generateAppProofs ?? false;
1412
1578
  const session = await this.storageManager?.getActiveSession();
1413
1579
  return this.activity("/public/v1/submit/create_oauth2_credential", {
1414
1580
  parameters: rest,
@@ -1416,6 +1582,7 @@ class TurnkeySDKClientBase {
1416
1582
  session?.organizationId ??
1417
1583
  this.config.organizationId,
1418
1584
  timestampMs: timestampMs ?? String(Date.now()),
1585
+ generateAppProofs: generateAppProofs ?? false,
1419
1586
  type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL",
1420
1587
  }, "createOauth2CredentialResult", stampWith);
1421
1588
  };
@@ -1443,6 +1610,8 @@ class TurnkeySDKClientBase {
1443
1610
  };
1444
1611
  this.createOauthProviders = async (input, stampWith) => {
1445
1612
  const { organizationId, timestampMs, ...rest } = input;
1613
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1614
+ const generateAppProofs = input?.generateAppProofs ?? false;
1446
1615
  const session = await this.storageManager?.getActiveSession();
1447
1616
  return this.activity("/public/v1/submit/create_oauth_providers", {
1448
1617
  parameters: rest,
@@ -1450,6 +1619,7 @@ class TurnkeySDKClientBase {
1450
1619
  session?.organizationId ??
1451
1620
  this.config.organizationId,
1452
1621
  timestampMs: timestampMs ?? String(Date.now()),
1622
+ generateAppProofs: generateAppProofs ?? false,
1453
1623
  type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2",
1454
1624
  }, "createOauthProvidersResultV2", stampWith);
1455
1625
  };
@@ -1477,6 +1647,8 @@ class TurnkeySDKClientBase {
1477
1647
  };
1478
1648
  this.createPolicies = async (input, stampWith) => {
1479
1649
  const { organizationId, timestampMs, ...rest } = input;
1650
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1651
+ const generateAppProofs = input?.generateAppProofs ?? false;
1480
1652
  const session = await this.storageManager?.getActiveSession();
1481
1653
  return this.activity("/public/v1/submit/create_policies", {
1482
1654
  parameters: rest,
@@ -1484,6 +1656,7 @@ class TurnkeySDKClientBase {
1484
1656
  session?.organizationId ??
1485
1657
  this.config.organizationId,
1486
1658
  timestampMs: timestampMs ?? String(Date.now()),
1659
+ generateAppProofs: generateAppProofs ?? false,
1487
1660
  type: "ACTIVITY_TYPE_CREATE_POLICIES",
1488
1661
  }, "createPoliciesResult", stampWith);
1489
1662
  };
@@ -1511,6 +1684,8 @@ class TurnkeySDKClientBase {
1511
1684
  };
1512
1685
  this.createPolicy = async (input, stampWith) => {
1513
1686
  const { organizationId, timestampMs, ...rest } = input;
1687
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1688
+ const generateAppProofs = input?.generateAppProofs ?? false;
1514
1689
  const session = await this.storageManager?.getActiveSession();
1515
1690
  return this.activity("/public/v1/submit/create_policy", {
1516
1691
  parameters: rest,
@@ -1518,6 +1693,7 @@ class TurnkeySDKClientBase {
1518
1693
  session?.organizationId ??
1519
1694
  this.config.organizationId,
1520
1695
  timestampMs: timestampMs ?? String(Date.now()),
1696
+ generateAppProofs: generateAppProofs ?? false,
1521
1697
  type: "ACTIVITY_TYPE_CREATE_POLICY_V3",
1522
1698
  }, "createPolicyResult", stampWith);
1523
1699
  };
@@ -1545,6 +1721,8 @@ class TurnkeySDKClientBase {
1545
1721
  };
1546
1722
  this.createPrivateKeyTag = async (input, stampWith) => {
1547
1723
  const { organizationId, timestampMs, ...rest } = input;
1724
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1725
+ const generateAppProofs = input?.generateAppProofs ?? false;
1548
1726
  const session = await this.storageManager?.getActiveSession();
1549
1727
  return this.activity("/public/v1/submit/create_private_key_tag", {
1550
1728
  parameters: rest,
@@ -1552,6 +1730,7 @@ class TurnkeySDKClientBase {
1552
1730
  session?.organizationId ??
1553
1731
  this.config.organizationId,
1554
1732
  timestampMs: timestampMs ?? String(Date.now()),
1733
+ generateAppProofs: generateAppProofs ?? false,
1555
1734
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG",
1556
1735
  }, "createPrivateKeyTagResult", stampWith);
1557
1736
  };
@@ -1579,6 +1758,8 @@ class TurnkeySDKClientBase {
1579
1758
  };
1580
1759
  this.createPrivateKeys = async (input, stampWith) => {
1581
1760
  const { organizationId, timestampMs, ...rest } = input;
1761
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1762
+ const generateAppProofs = input?.generateAppProofs ?? false;
1582
1763
  const session = await this.storageManager?.getActiveSession();
1583
1764
  return this.activity("/public/v1/submit/create_private_keys", {
1584
1765
  parameters: rest,
@@ -1586,6 +1767,7 @@ class TurnkeySDKClientBase {
1586
1767
  session?.organizationId ??
1587
1768
  this.config.organizationId,
1588
1769
  timestampMs: timestampMs ?? String(Date.now()),
1770
+ generateAppProofs: generateAppProofs ?? false,
1589
1771
  type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2",
1590
1772
  }, "createPrivateKeysResultV2", stampWith);
1591
1773
  };
@@ -1613,6 +1795,8 @@ class TurnkeySDKClientBase {
1613
1795
  };
1614
1796
  this.createReadOnlySession = async (input, stampWith) => {
1615
1797
  const { organizationId, timestampMs, ...rest } = input;
1798
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1799
+ const generateAppProofs = input?.generateAppProofs ?? false;
1616
1800
  const session = await this.storageManager?.getActiveSession();
1617
1801
  return this.activity("/public/v1/submit/create_read_only_session", {
1618
1802
  parameters: rest,
@@ -1620,6 +1804,7 @@ class TurnkeySDKClientBase {
1620
1804
  session?.organizationId ??
1621
1805
  this.config.organizationId,
1622
1806
  timestampMs: timestampMs ?? String(Date.now()),
1807
+ generateAppProofs: generateAppProofs ?? false,
1623
1808
  type: "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION",
1624
1809
  }, "createReadOnlySessionResult", stampWith);
1625
1810
  };
@@ -1647,6 +1832,8 @@ class TurnkeySDKClientBase {
1647
1832
  };
1648
1833
  this.createReadWriteSession = async (input, stampWith) => {
1649
1834
  const { organizationId, timestampMs, ...rest } = input;
1835
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1836
+ const generateAppProofs = input?.generateAppProofs ?? false;
1650
1837
  const session = await this.storageManager?.getActiveSession();
1651
1838
  return this.activity("/public/v1/submit/create_read_write_session", {
1652
1839
  parameters: rest,
@@ -1654,6 +1841,7 @@ class TurnkeySDKClientBase {
1654
1841
  session?.organizationId ??
1655
1842
  this.config.organizationId,
1656
1843
  timestampMs: timestampMs ?? String(Date.now()),
1844
+ generateAppProofs: generateAppProofs ?? false,
1657
1845
  type: "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2",
1658
1846
  }, "createReadWriteSessionResultV2", stampWith);
1659
1847
  };
@@ -1681,6 +1869,8 @@ class TurnkeySDKClientBase {
1681
1869
  };
1682
1870
  this.createSmartContractInterface = async (input, stampWith) => {
1683
1871
  const { organizationId, timestampMs, ...rest } = input;
1872
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1873
+ const generateAppProofs = input?.generateAppProofs ?? false;
1684
1874
  const session = await this.storageManager?.getActiveSession();
1685
1875
  return this.activity("/public/v1/submit/create_smart_contract_interface", {
1686
1876
  parameters: rest,
@@ -1688,6 +1878,7 @@ class TurnkeySDKClientBase {
1688
1878
  session?.organizationId ??
1689
1879
  this.config.organizationId,
1690
1880
  timestampMs: timestampMs ?? String(Date.now()),
1881
+ generateAppProofs: generateAppProofs ?? false,
1691
1882
  type: "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE",
1692
1883
  }, "createSmartContractInterfaceResult", stampWith);
1693
1884
  };
@@ -1716,6 +1907,8 @@ class TurnkeySDKClientBase {
1716
1907
  };
1717
1908
  this.createSubOrganization = async (input, stampWith) => {
1718
1909
  const { organizationId, timestampMs, ...rest } = input;
1910
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1911
+ const generateAppProofs = input?.generateAppProofs ?? false;
1719
1912
  const session = await this.storageManager?.getActiveSession();
1720
1913
  return this.activity("/public/v1/submit/create_sub_organization", {
1721
1914
  parameters: rest,
@@ -1723,6 +1916,7 @@ class TurnkeySDKClientBase {
1723
1916
  session?.organizationId ??
1724
1917
  this.config.organizationId,
1725
1918
  timestampMs: timestampMs ?? String(Date.now()),
1919
+ generateAppProofs: generateAppProofs ?? false,
1726
1920
  type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8",
1727
1921
  }, "createSubOrganizationResultV8", stampWith);
1728
1922
  };
@@ -1748,8 +1942,122 @@ class TurnkeySDKClientBase {
1748
1942
  url: fullUrl,
1749
1943
  };
1750
1944
  };
1945
+ this.createTvcApp = async (input, stampWith) => {
1946
+ const { organizationId, timestampMs, ...rest } = input;
1947
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1948
+ const generateAppProofs = input?.generateAppProofs ?? false;
1949
+ const session = await this.storageManager?.getActiveSession();
1950
+ return this.activity("/public/v1/submit/create_tvc_app", {
1951
+ parameters: rest,
1952
+ organizationId: organizationId ??
1953
+ session?.organizationId ??
1954
+ this.config.organizationId,
1955
+ timestampMs: timestampMs ?? String(Date.now()),
1956
+ generateAppProofs: generateAppProofs ?? false,
1957
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1958
+ }, "createTvcAppResult", stampWith);
1959
+ };
1960
+ this.stampCreateTvcApp = async (input, stampWith) => {
1961
+ const activeStamper = this.getStamper(stampWith);
1962
+ if (!activeStamper) {
1963
+ return undefined;
1964
+ }
1965
+ const { organizationId, timestampMs, ...parameters } = input;
1966
+ const session = await this.storageManager?.getActiveSession();
1967
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_app";
1968
+ const bodyWithType = {
1969
+ parameters,
1970
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1971
+ timestampMs: timestampMs ?? String(Date.now()),
1972
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1973
+ };
1974
+ const stringifiedBody = JSON.stringify(bodyWithType);
1975
+ const stamp = await activeStamper.stamp(stringifiedBody);
1976
+ return {
1977
+ body: stringifiedBody,
1978
+ stamp: stamp,
1979
+ url: fullUrl,
1980
+ };
1981
+ };
1982
+ this.createTvcDeployment = async (input, stampWith) => {
1983
+ const { organizationId, timestampMs, ...rest } = input;
1984
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
1985
+ const generateAppProofs = input?.generateAppProofs ?? false;
1986
+ const session = await this.storageManager?.getActiveSession();
1987
+ return this.activity("/public/v1/submit/create_tvc_deployment", {
1988
+ parameters: rest,
1989
+ organizationId: organizationId ??
1990
+ session?.organizationId ??
1991
+ this.config.organizationId,
1992
+ timestampMs: timestampMs ?? String(Date.now()),
1993
+ generateAppProofs: generateAppProofs ?? false,
1994
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
1995
+ }, "createTvcDeploymentResult", stampWith);
1996
+ };
1997
+ this.stampCreateTvcDeployment = async (input, stampWith) => {
1998
+ const activeStamper = this.getStamper(stampWith);
1999
+ if (!activeStamper) {
2000
+ return undefined;
2001
+ }
2002
+ const { organizationId, timestampMs, ...parameters } = input;
2003
+ const session = await this.storageManager?.getActiveSession();
2004
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_deployment";
2005
+ const bodyWithType = {
2006
+ parameters,
2007
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2008
+ timestampMs: timestampMs ?? String(Date.now()),
2009
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
2010
+ };
2011
+ const stringifiedBody = JSON.stringify(bodyWithType);
2012
+ const stamp = await activeStamper.stamp(stringifiedBody);
2013
+ return {
2014
+ body: stringifiedBody,
2015
+ stamp: stamp,
2016
+ url: fullUrl,
2017
+ };
2018
+ };
2019
+ this.createTvcManifestApprovals = async (input, stampWith) => {
2020
+ const { organizationId, timestampMs, ...rest } = input;
2021
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2022
+ const generateAppProofs = input?.generateAppProofs ?? false;
2023
+ const session = await this.storageManager?.getActiveSession();
2024
+ return this.activity("/public/v1/submit/create_tvc_manifest_approvals", {
2025
+ parameters: rest,
2026
+ organizationId: organizationId ??
2027
+ session?.organizationId ??
2028
+ this.config.organizationId,
2029
+ timestampMs: timestampMs ?? String(Date.now()),
2030
+ generateAppProofs: generateAppProofs ?? false,
2031
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
2032
+ }, "createTvcManifestApprovalsResult", stampWith);
2033
+ };
2034
+ this.stampCreateTvcManifestApprovals = async (input, stampWith) => {
2035
+ const activeStamper = this.getStamper(stampWith);
2036
+ if (!activeStamper) {
2037
+ return undefined;
2038
+ }
2039
+ const { organizationId, timestampMs, ...parameters } = input;
2040
+ const session = await this.storageManager?.getActiveSession();
2041
+ const fullUrl = this.config.apiBaseUrl +
2042
+ "/public/v1/submit/create_tvc_manifest_approvals";
2043
+ const bodyWithType = {
2044
+ parameters,
2045
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2046
+ timestampMs: timestampMs ?? String(Date.now()),
2047
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
2048
+ };
2049
+ const stringifiedBody = JSON.stringify(bodyWithType);
2050
+ const stamp = await activeStamper.stamp(stringifiedBody);
2051
+ return {
2052
+ body: stringifiedBody,
2053
+ stamp: stamp,
2054
+ url: fullUrl,
2055
+ };
2056
+ };
1751
2057
  this.createUserTag = async (input, stampWith) => {
1752
2058
  const { organizationId, timestampMs, ...rest } = input;
2059
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2060
+ const generateAppProofs = input?.generateAppProofs ?? false;
1753
2061
  const session = await this.storageManager?.getActiveSession();
1754
2062
  return this.activity("/public/v1/submit/create_user_tag", {
1755
2063
  parameters: rest,
@@ -1757,6 +2065,7 @@ class TurnkeySDKClientBase {
1757
2065
  session?.organizationId ??
1758
2066
  this.config.organizationId,
1759
2067
  timestampMs: timestampMs ?? String(Date.now()),
2068
+ generateAppProofs: generateAppProofs ?? false,
1760
2069
  type: "ACTIVITY_TYPE_CREATE_USER_TAG",
1761
2070
  }, "createUserTagResult", stampWith);
1762
2071
  };
@@ -1784,6 +2093,8 @@ class TurnkeySDKClientBase {
1784
2093
  };
1785
2094
  this.createUsers = async (input, stampWith) => {
1786
2095
  const { organizationId, timestampMs, ...rest } = input;
2096
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2097
+ const generateAppProofs = input?.generateAppProofs ?? false;
1787
2098
  const session = await this.storageManager?.getActiveSession();
1788
2099
  return this.activity("/public/v1/submit/create_users", {
1789
2100
  parameters: rest,
@@ -1791,6 +2102,7 @@ class TurnkeySDKClientBase {
1791
2102
  session?.organizationId ??
1792
2103
  this.config.organizationId,
1793
2104
  timestampMs: timestampMs ?? String(Date.now()),
2105
+ generateAppProofs: generateAppProofs ?? false,
1794
2106
  type: "ACTIVITY_TYPE_CREATE_USERS_V4",
1795
2107
  }, "createUsersResult", stampWith);
1796
2108
  };
@@ -1818,6 +2130,8 @@ class TurnkeySDKClientBase {
1818
2130
  };
1819
2131
  this.createWallet = async (input, stampWith) => {
1820
2132
  const { organizationId, timestampMs, ...rest } = input;
2133
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2134
+ const generateAppProofs = input?.generateAppProofs ?? false;
1821
2135
  const session = await this.storageManager?.getActiveSession();
1822
2136
  return this.activity("/public/v1/submit/create_wallet", {
1823
2137
  parameters: rest,
@@ -1825,6 +2139,7 @@ class TurnkeySDKClientBase {
1825
2139
  session?.organizationId ??
1826
2140
  this.config.organizationId,
1827
2141
  timestampMs: timestampMs ?? String(Date.now()),
2142
+ generateAppProofs: generateAppProofs ?? false,
1828
2143
  type: "ACTIVITY_TYPE_CREATE_WALLET",
1829
2144
  }, "createWalletResult", stampWith);
1830
2145
  };
@@ -1852,6 +2167,8 @@ class TurnkeySDKClientBase {
1852
2167
  };
1853
2168
  this.createWalletAccounts = async (input, stampWith) => {
1854
2169
  const { organizationId, timestampMs, ...rest } = input;
2170
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2171
+ const generateAppProofs = input?.generateAppProofs ?? false;
1855
2172
  const session = await this.storageManager?.getActiveSession();
1856
2173
  return this.activity("/public/v1/submit/create_wallet_accounts", {
1857
2174
  parameters: rest,
@@ -1859,6 +2176,7 @@ class TurnkeySDKClientBase {
1859
2176
  session?.organizationId ??
1860
2177
  this.config.organizationId,
1861
2178
  timestampMs: timestampMs ?? String(Date.now()),
2179
+ generateAppProofs: generateAppProofs ?? false,
1862
2180
  type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
1863
2181
  }, "createWalletAccountsResult", stampWith);
1864
2182
  };
@@ -1886,6 +2204,8 @@ class TurnkeySDKClientBase {
1886
2204
  };
1887
2205
  this.createWebhookEndpoint = async (input, stampWith) => {
1888
2206
  const { organizationId, timestampMs, ...rest } = input;
2207
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2208
+ const generateAppProofs = input?.generateAppProofs ?? false;
1889
2209
  const session = await this.storageManager?.getActiveSession();
1890
2210
  return this.activity("/public/v1/submit/create_webhook_endpoint", {
1891
2211
  parameters: rest,
@@ -1893,6 +2213,7 @@ class TurnkeySDKClientBase {
1893
2213
  session?.organizationId ??
1894
2214
  this.config.organizationId,
1895
2215
  timestampMs: timestampMs ?? String(Date.now()),
2216
+ generateAppProofs: generateAppProofs ?? false,
1896
2217
  type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
1897
2218
  }, "createWebhookEndpointResult", stampWith);
1898
2219
  };
@@ -1920,6 +2241,8 @@ class TurnkeySDKClientBase {
1920
2241
  };
1921
2242
  this.deleteApiKeys = async (input, stampWith) => {
1922
2243
  const { organizationId, timestampMs, ...rest } = input;
2244
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2245
+ const generateAppProofs = input?.generateAppProofs ?? false;
1923
2246
  const session = await this.storageManager?.getActiveSession();
1924
2247
  return this.activity("/public/v1/submit/delete_api_keys", {
1925
2248
  parameters: rest,
@@ -1927,6 +2250,7 @@ class TurnkeySDKClientBase {
1927
2250
  session?.organizationId ??
1928
2251
  this.config.organizationId,
1929
2252
  timestampMs: timestampMs ?? String(Date.now()),
2253
+ generateAppProofs: generateAppProofs ?? false,
1930
2254
  type: "ACTIVITY_TYPE_DELETE_API_KEYS",
1931
2255
  }, "deleteApiKeysResult", stampWith);
1932
2256
  };
@@ -1954,6 +2278,8 @@ class TurnkeySDKClientBase {
1954
2278
  };
1955
2279
  this.deleteAuthenticators = async (input, stampWith) => {
1956
2280
  const { organizationId, timestampMs, ...rest } = input;
2281
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2282
+ const generateAppProofs = input?.generateAppProofs ?? false;
1957
2283
  const session = await this.storageManager?.getActiveSession();
1958
2284
  return this.activity("/public/v1/submit/delete_authenticators", {
1959
2285
  parameters: rest,
@@ -1961,6 +2287,7 @@ class TurnkeySDKClientBase {
1961
2287
  session?.organizationId ??
1962
2288
  this.config.organizationId,
1963
2289
  timestampMs: timestampMs ?? String(Date.now()),
2290
+ generateAppProofs: generateAppProofs ?? false,
1964
2291
  type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
1965
2292
  }, "deleteAuthenticatorsResult", stampWith);
1966
2293
  };
@@ -1988,6 +2315,8 @@ class TurnkeySDKClientBase {
1988
2315
  };
1989
2316
  this.deleteFiatOnRampCredential = async (input, stampWith) => {
1990
2317
  const { organizationId, timestampMs, ...rest } = input;
2318
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2319
+ const generateAppProofs = input?.generateAppProofs ?? false;
1991
2320
  const session = await this.storageManager?.getActiveSession();
1992
2321
  return this.activity("/public/v1/submit/delete_fiat_on_ramp_credential", {
1993
2322
  parameters: rest,
@@ -1995,6 +2324,7 @@ class TurnkeySDKClientBase {
1995
2324
  session?.organizationId ??
1996
2325
  this.config.organizationId,
1997
2326
  timestampMs: timestampMs ?? String(Date.now()),
2327
+ generateAppProofs: generateAppProofs ?? false,
1998
2328
  type: "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL",
1999
2329
  }, "deleteFiatOnRampCredentialResult", stampWith);
2000
2330
  };
@@ -2023,6 +2353,8 @@ class TurnkeySDKClientBase {
2023
2353
  };
2024
2354
  this.deleteInvitation = async (input, stampWith) => {
2025
2355
  const { organizationId, timestampMs, ...rest } = input;
2356
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2357
+ const generateAppProofs = input?.generateAppProofs ?? false;
2026
2358
  const session = await this.storageManager?.getActiveSession();
2027
2359
  return this.activity("/public/v1/submit/delete_invitation", {
2028
2360
  parameters: rest,
@@ -2030,6 +2362,7 @@ class TurnkeySDKClientBase {
2030
2362
  session?.organizationId ??
2031
2363
  this.config.organizationId,
2032
2364
  timestampMs: timestampMs ?? String(Date.now()),
2365
+ generateAppProofs: generateAppProofs ?? false,
2033
2366
  type: "ACTIVITY_TYPE_DELETE_INVITATION",
2034
2367
  }, "deleteInvitationResult", stampWith);
2035
2368
  };
@@ -2057,6 +2390,8 @@ class TurnkeySDKClientBase {
2057
2390
  };
2058
2391
  this.deleteOauth2Credential = async (input, stampWith) => {
2059
2392
  const { organizationId, timestampMs, ...rest } = input;
2393
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2394
+ const generateAppProofs = input?.generateAppProofs ?? false;
2060
2395
  const session = await this.storageManager?.getActiveSession();
2061
2396
  return this.activity("/public/v1/submit/delete_oauth2_credential", {
2062
2397
  parameters: rest,
@@ -2064,6 +2399,7 @@ class TurnkeySDKClientBase {
2064
2399
  session?.organizationId ??
2065
2400
  this.config.organizationId,
2066
2401
  timestampMs: timestampMs ?? String(Date.now()),
2402
+ generateAppProofs: generateAppProofs ?? false,
2067
2403
  type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL",
2068
2404
  }, "deleteOauth2CredentialResult", stampWith);
2069
2405
  };
@@ -2091,6 +2427,8 @@ class TurnkeySDKClientBase {
2091
2427
  };
2092
2428
  this.deleteOauthProviders = async (input, stampWith) => {
2093
2429
  const { organizationId, timestampMs, ...rest } = input;
2430
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2431
+ const generateAppProofs = input?.generateAppProofs ?? false;
2094
2432
  const session = await this.storageManager?.getActiveSession();
2095
2433
  return this.activity("/public/v1/submit/delete_oauth_providers", {
2096
2434
  parameters: rest,
@@ -2098,6 +2436,7 @@ class TurnkeySDKClientBase {
2098
2436
  session?.organizationId ??
2099
2437
  this.config.organizationId,
2100
2438
  timestampMs: timestampMs ?? String(Date.now()),
2439
+ generateAppProofs: generateAppProofs ?? false,
2101
2440
  type: "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS",
2102
2441
  }, "deleteOauthProvidersResult", stampWith);
2103
2442
  };
@@ -2125,6 +2464,8 @@ class TurnkeySDKClientBase {
2125
2464
  };
2126
2465
  this.deletePolicies = async (input, stampWith) => {
2127
2466
  const { organizationId, timestampMs, ...rest } = input;
2467
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2468
+ const generateAppProofs = input?.generateAppProofs ?? false;
2128
2469
  const session = await this.storageManager?.getActiveSession();
2129
2470
  return this.activity("/public/v1/submit/delete_policies", {
2130
2471
  parameters: rest,
@@ -2132,6 +2473,7 @@ class TurnkeySDKClientBase {
2132
2473
  session?.organizationId ??
2133
2474
  this.config.organizationId,
2134
2475
  timestampMs: timestampMs ?? String(Date.now()),
2476
+ generateAppProofs: generateAppProofs ?? false,
2135
2477
  type: "ACTIVITY_TYPE_DELETE_POLICIES",
2136
2478
  }, "deletePoliciesResult", stampWith);
2137
2479
  };
@@ -2159,6 +2501,8 @@ class TurnkeySDKClientBase {
2159
2501
  };
2160
2502
  this.deletePolicy = async (input, stampWith) => {
2161
2503
  const { organizationId, timestampMs, ...rest } = input;
2504
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2505
+ const generateAppProofs = input?.generateAppProofs ?? false;
2162
2506
  const session = await this.storageManager?.getActiveSession();
2163
2507
  return this.activity("/public/v1/submit/delete_policy", {
2164
2508
  parameters: rest,
@@ -2166,6 +2510,7 @@ class TurnkeySDKClientBase {
2166
2510
  session?.organizationId ??
2167
2511
  this.config.organizationId,
2168
2512
  timestampMs: timestampMs ?? String(Date.now()),
2513
+ generateAppProofs: generateAppProofs ?? false,
2169
2514
  type: "ACTIVITY_TYPE_DELETE_POLICY",
2170
2515
  }, "deletePolicyResult", stampWith);
2171
2516
  };
@@ -2193,6 +2538,8 @@ class TurnkeySDKClientBase {
2193
2538
  };
2194
2539
  this.deletePrivateKeyTags = async (input, stampWith) => {
2195
2540
  const { organizationId, timestampMs, ...rest } = input;
2541
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2542
+ const generateAppProofs = input?.generateAppProofs ?? false;
2196
2543
  const session = await this.storageManager?.getActiveSession();
2197
2544
  return this.activity("/public/v1/submit/delete_private_key_tags", {
2198
2545
  parameters: rest,
@@ -2200,6 +2547,7 @@ class TurnkeySDKClientBase {
2200
2547
  session?.organizationId ??
2201
2548
  this.config.organizationId,
2202
2549
  timestampMs: timestampMs ?? String(Date.now()),
2550
+ generateAppProofs: generateAppProofs ?? false,
2203
2551
  type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS",
2204
2552
  }, "deletePrivateKeyTagsResult", stampWith);
2205
2553
  };
@@ -2227,6 +2575,8 @@ class TurnkeySDKClientBase {
2227
2575
  };
2228
2576
  this.deletePrivateKeys = async (input, stampWith) => {
2229
2577
  const { organizationId, timestampMs, ...rest } = input;
2578
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2579
+ const generateAppProofs = input?.generateAppProofs ?? false;
2230
2580
  const session = await this.storageManager?.getActiveSession();
2231
2581
  return this.activity("/public/v1/submit/delete_private_keys", {
2232
2582
  parameters: rest,
@@ -2234,6 +2584,7 @@ class TurnkeySDKClientBase {
2234
2584
  session?.organizationId ??
2235
2585
  this.config.organizationId,
2236
2586
  timestampMs: timestampMs ?? String(Date.now()),
2587
+ generateAppProofs: generateAppProofs ?? false,
2237
2588
  type: "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS",
2238
2589
  }, "deletePrivateKeysResult", stampWith);
2239
2590
  };
@@ -2261,6 +2612,8 @@ class TurnkeySDKClientBase {
2261
2612
  };
2262
2613
  this.deleteSmartContractInterface = async (input, stampWith) => {
2263
2614
  const { organizationId, timestampMs, ...rest } = input;
2615
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2616
+ const generateAppProofs = input?.generateAppProofs ?? false;
2264
2617
  const session = await this.storageManager?.getActiveSession();
2265
2618
  return this.activity("/public/v1/submit/delete_smart_contract_interface", {
2266
2619
  parameters: rest,
@@ -2268,6 +2621,7 @@ class TurnkeySDKClientBase {
2268
2621
  session?.organizationId ??
2269
2622
  this.config.organizationId,
2270
2623
  timestampMs: timestampMs ?? String(Date.now()),
2624
+ generateAppProofs: generateAppProofs ?? false,
2271
2625
  type: "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE",
2272
2626
  }, "deleteSmartContractInterfaceResult", stampWith);
2273
2627
  };
@@ -2296,6 +2650,8 @@ class TurnkeySDKClientBase {
2296
2650
  };
2297
2651
  this.deleteSubOrganization = async (input, stampWith) => {
2298
2652
  const { organizationId, timestampMs, ...rest } = input;
2653
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2654
+ const generateAppProofs = input?.generateAppProofs ?? false;
2299
2655
  const session = await this.storageManager?.getActiveSession();
2300
2656
  return this.activity("/public/v1/submit/delete_sub_organization", {
2301
2657
  parameters: rest,
@@ -2303,6 +2659,7 @@ class TurnkeySDKClientBase {
2303
2659
  session?.organizationId ??
2304
2660
  this.config.organizationId,
2305
2661
  timestampMs: timestampMs ?? String(Date.now()),
2662
+ generateAppProofs: generateAppProofs ?? false,
2306
2663
  type: "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION",
2307
2664
  }, "deleteSubOrganizationResult", stampWith);
2308
2665
  };
@@ -2328,8 +2685,85 @@ class TurnkeySDKClientBase {
2328
2685
  url: fullUrl,
2329
2686
  };
2330
2687
  };
2688
+ this.deleteTvcAppAndDeployments = async (input, stampWith) => {
2689
+ const { organizationId, timestampMs, ...rest } = input;
2690
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2691
+ const generateAppProofs = input?.generateAppProofs ?? false;
2692
+ const session = await this.storageManager?.getActiveSession();
2693
+ return this.activity("/public/v1/submit/delete_tvc_app_and_deployments", {
2694
+ parameters: rest,
2695
+ organizationId: organizationId ??
2696
+ session?.organizationId ??
2697
+ this.config.organizationId,
2698
+ timestampMs: timestampMs ?? String(Date.now()),
2699
+ generateAppProofs: generateAppProofs ?? false,
2700
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2701
+ }, "deleteTvcAppAndDeploymentsResult", stampWith);
2702
+ };
2703
+ this.stampDeleteTvcAppAndDeployments = async (input, stampWith) => {
2704
+ const activeStamper = this.getStamper(stampWith);
2705
+ if (!activeStamper) {
2706
+ return undefined;
2707
+ }
2708
+ const { organizationId, timestampMs, ...parameters } = input;
2709
+ const session = await this.storageManager?.getActiveSession();
2710
+ const fullUrl = this.config.apiBaseUrl +
2711
+ "/public/v1/submit/delete_tvc_app_and_deployments";
2712
+ const bodyWithType = {
2713
+ parameters,
2714
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2715
+ timestampMs: timestampMs ?? String(Date.now()),
2716
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2717
+ };
2718
+ const stringifiedBody = JSON.stringify(bodyWithType);
2719
+ const stamp = await activeStamper.stamp(stringifiedBody);
2720
+ return {
2721
+ body: stringifiedBody,
2722
+ stamp: stamp,
2723
+ url: fullUrl,
2724
+ };
2725
+ };
2726
+ this.deleteTvcDeployment = async (input, stampWith) => {
2727
+ const { organizationId, timestampMs, ...rest } = input;
2728
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2729
+ const generateAppProofs = input?.generateAppProofs ?? false;
2730
+ const session = await this.storageManager?.getActiveSession();
2731
+ return this.activity("/public/v1/submit/delete_tvc_deployment", {
2732
+ parameters: rest,
2733
+ organizationId: organizationId ??
2734
+ session?.organizationId ??
2735
+ this.config.organizationId,
2736
+ timestampMs: timestampMs ?? String(Date.now()),
2737
+ generateAppProofs: generateAppProofs ?? false,
2738
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2739
+ }, "deleteTvcDeploymentResult", stampWith);
2740
+ };
2741
+ this.stampDeleteTvcDeployment = async (input, stampWith) => {
2742
+ const activeStamper = this.getStamper(stampWith);
2743
+ if (!activeStamper) {
2744
+ return undefined;
2745
+ }
2746
+ const { organizationId, timestampMs, ...parameters } = input;
2747
+ const session = await this.storageManager?.getActiveSession();
2748
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_tvc_deployment";
2749
+ const bodyWithType = {
2750
+ parameters,
2751
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2752
+ timestampMs: timestampMs ?? String(Date.now()),
2753
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2754
+ };
2755
+ const stringifiedBody = JSON.stringify(bodyWithType);
2756
+ const stamp = await activeStamper.stamp(stringifiedBody);
2757
+ return {
2758
+ body: stringifiedBody,
2759
+ stamp: stamp,
2760
+ url: fullUrl,
2761
+ };
2762
+ };
2331
2763
  this.deleteUserTags = async (input, stampWith) => {
2332
2764
  const { organizationId, timestampMs, ...rest } = input;
2765
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2766
+ const generateAppProofs = input?.generateAppProofs ?? false;
2333
2767
  const session = await this.storageManager?.getActiveSession();
2334
2768
  return this.activity("/public/v1/submit/delete_user_tags", {
2335
2769
  parameters: rest,
@@ -2337,6 +2771,7 @@ class TurnkeySDKClientBase {
2337
2771
  session?.organizationId ??
2338
2772
  this.config.organizationId,
2339
2773
  timestampMs: timestampMs ?? String(Date.now()),
2774
+ generateAppProofs: generateAppProofs ?? false,
2340
2775
  type: "ACTIVITY_TYPE_DELETE_USER_TAGS",
2341
2776
  }, "deleteUserTagsResult", stampWith);
2342
2777
  };
@@ -2364,6 +2799,8 @@ class TurnkeySDKClientBase {
2364
2799
  };
2365
2800
  this.deleteUsers = async (input, stampWith) => {
2366
2801
  const { organizationId, timestampMs, ...rest } = input;
2802
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2803
+ const generateAppProofs = input?.generateAppProofs ?? false;
2367
2804
  const session = await this.storageManager?.getActiveSession();
2368
2805
  return this.activity("/public/v1/submit/delete_users", {
2369
2806
  parameters: rest,
@@ -2371,6 +2808,7 @@ class TurnkeySDKClientBase {
2371
2808
  session?.organizationId ??
2372
2809
  this.config.organizationId,
2373
2810
  timestampMs: timestampMs ?? String(Date.now()),
2811
+ generateAppProofs: generateAppProofs ?? false,
2374
2812
  type: "ACTIVITY_TYPE_DELETE_USERS",
2375
2813
  }, "deleteUsersResult", stampWith);
2376
2814
  };
@@ -2398,6 +2836,8 @@ class TurnkeySDKClientBase {
2398
2836
  };
2399
2837
  this.deleteWalletAccounts = async (input, stampWith) => {
2400
2838
  const { organizationId, timestampMs, ...rest } = input;
2839
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2840
+ const generateAppProofs = input?.generateAppProofs ?? false;
2401
2841
  const session = await this.storageManager?.getActiveSession();
2402
2842
  return this.activity("/public/v1/submit/delete_wallet_accounts", {
2403
2843
  parameters: rest,
@@ -2405,6 +2845,7 @@ class TurnkeySDKClientBase {
2405
2845
  session?.organizationId ??
2406
2846
  this.config.organizationId,
2407
2847
  timestampMs: timestampMs ?? String(Date.now()),
2848
+ generateAppProofs: generateAppProofs ?? false,
2408
2849
  type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS",
2409
2850
  }, "deleteWalletAccountsResult", stampWith);
2410
2851
  };
@@ -2432,6 +2873,8 @@ class TurnkeySDKClientBase {
2432
2873
  };
2433
2874
  this.deleteWallets = async (input, stampWith) => {
2434
2875
  const { organizationId, timestampMs, ...rest } = input;
2876
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2877
+ const generateAppProofs = input?.generateAppProofs ?? false;
2435
2878
  const session = await this.storageManager?.getActiveSession();
2436
2879
  return this.activity("/public/v1/submit/delete_wallets", {
2437
2880
  parameters: rest,
@@ -2439,6 +2882,7 @@ class TurnkeySDKClientBase {
2439
2882
  session?.organizationId ??
2440
2883
  this.config.organizationId,
2441
2884
  timestampMs: timestampMs ?? String(Date.now()),
2885
+ generateAppProofs: generateAppProofs ?? false,
2442
2886
  type: "ACTIVITY_TYPE_DELETE_WALLETS",
2443
2887
  }, "deleteWalletsResult", stampWith);
2444
2888
  };
@@ -2466,6 +2910,8 @@ class TurnkeySDKClientBase {
2466
2910
  };
2467
2911
  this.deleteWebhookEndpoint = async (input, stampWith) => {
2468
2912
  const { organizationId, timestampMs, ...rest } = input;
2913
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2914
+ const generateAppProofs = input?.generateAppProofs ?? false;
2469
2915
  const session = await this.storageManager?.getActiveSession();
2470
2916
  return this.activity("/public/v1/submit/delete_webhook_endpoint", {
2471
2917
  parameters: rest,
@@ -2473,6 +2919,7 @@ class TurnkeySDKClientBase {
2473
2919
  session?.organizationId ??
2474
2920
  this.config.organizationId,
2475
2921
  timestampMs: timestampMs ?? String(Date.now()),
2922
+ generateAppProofs: generateAppProofs ?? false,
2476
2923
  type: "ACTIVITY_TYPE_DELETE_WEBHOOK_ENDPOINT",
2477
2924
  }, "deleteWebhookEndpointResult", stampWith);
2478
2925
  };
@@ -2500,6 +2947,8 @@ class TurnkeySDKClientBase {
2500
2947
  };
2501
2948
  this.emailAuth = async (input, stampWith) => {
2502
2949
  const { organizationId, timestampMs, ...rest } = input;
2950
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2951
+ const generateAppProofs = input?.generateAppProofs ?? false;
2503
2952
  const session = await this.storageManager?.getActiveSession();
2504
2953
  return this.activity("/public/v1/submit/email_auth", {
2505
2954
  parameters: rest,
@@ -2507,6 +2956,7 @@ class TurnkeySDKClientBase {
2507
2956
  session?.organizationId ??
2508
2957
  this.config.organizationId,
2509
2958
  timestampMs: timestampMs ?? String(Date.now()),
2959
+ generateAppProofs: generateAppProofs ?? false,
2510
2960
  type: "ACTIVITY_TYPE_EMAIL_AUTH_V3",
2511
2961
  }, "emailAuthResult", stampWith);
2512
2962
  };
@@ -2534,6 +2984,8 @@ class TurnkeySDKClientBase {
2534
2984
  };
2535
2985
  this.ethSendTransaction = async (input, stampWith) => {
2536
2986
  const { organizationId, timestampMs, ...rest } = input;
2987
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
2988
+ const generateAppProofs = input?.generateAppProofs ?? false;
2537
2989
  const session = await this.storageManager?.getActiveSession();
2538
2990
  return this.activity("/public/v1/submit/eth_send_transaction", {
2539
2991
  parameters: rest,
@@ -2541,6 +2993,7 @@ class TurnkeySDKClientBase {
2541
2993
  session?.organizationId ??
2542
2994
  this.config.organizationId,
2543
2995
  timestampMs: timestampMs ?? String(Date.now()),
2996
+ generateAppProofs: generateAppProofs ?? false,
2544
2997
  type: "ACTIVITY_TYPE_ETH_SEND_TRANSACTION",
2545
2998
  }, "ethSendTransactionResult", stampWith);
2546
2999
  };
@@ -2568,6 +3021,8 @@ class TurnkeySDKClientBase {
2568
3021
  };
2569
3022
  this.exportPrivateKey = async (input, stampWith) => {
2570
3023
  const { organizationId, timestampMs, ...rest } = input;
3024
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3025
+ const generateAppProofs = input?.generateAppProofs ?? false;
2571
3026
  const session = await this.storageManager?.getActiveSession();
2572
3027
  return this.activity("/public/v1/submit/export_private_key", {
2573
3028
  parameters: rest,
@@ -2575,6 +3030,7 @@ class TurnkeySDKClientBase {
2575
3030
  session?.organizationId ??
2576
3031
  this.config.organizationId,
2577
3032
  timestampMs: timestampMs ?? String(Date.now()),
3033
+ generateAppProofs: generateAppProofs ?? false,
2578
3034
  type: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY",
2579
3035
  }, "exportPrivateKeyResult", stampWith);
2580
3036
  };
@@ -2602,6 +3058,8 @@ class TurnkeySDKClientBase {
2602
3058
  };
2603
3059
  this.exportWallet = async (input, stampWith) => {
2604
3060
  const { organizationId, timestampMs, ...rest } = input;
3061
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3062
+ const generateAppProofs = input?.generateAppProofs ?? false;
2605
3063
  const session = await this.storageManager?.getActiveSession();
2606
3064
  return this.activity("/public/v1/submit/export_wallet", {
2607
3065
  parameters: rest,
@@ -2609,6 +3067,7 @@ class TurnkeySDKClientBase {
2609
3067
  session?.organizationId ??
2610
3068
  this.config.organizationId,
2611
3069
  timestampMs: timestampMs ?? String(Date.now()),
3070
+ generateAppProofs: generateAppProofs ?? false,
2612
3071
  type: "ACTIVITY_TYPE_EXPORT_WALLET",
2613
3072
  }, "exportWalletResult", stampWith);
2614
3073
  };
@@ -2636,6 +3095,8 @@ class TurnkeySDKClientBase {
2636
3095
  };
2637
3096
  this.exportWalletAccount = async (input, stampWith) => {
2638
3097
  const { organizationId, timestampMs, ...rest } = input;
3098
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3099
+ const generateAppProofs = input?.generateAppProofs ?? false;
2639
3100
  const session = await this.storageManager?.getActiveSession();
2640
3101
  return this.activity("/public/v1/submit/export_wallet_account", {
2641
3102
  parameters: rest,
@@ -2643,6 +3104,7 @@ class TurnkeySDKClientBase {
2643
3104
  session?.organizationId ??
2644
3105
  this.config.organizationId,
2645
3106
  timestampMs: timestampMs ?? String(Date.now()),
3107
+ generateAppProofs: generateAppProofs ?? false,
2646
3108
  type: "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT",
2647
3109
  }, "exportWalletAccountResult", stampWith);
2648
3110
  };
@@ -2670,6 +3132,8 @@ class TurnkeySDKClientBase {
2670
3132
  };
2671
3133
  this.importPrivateKey = async (input, stampWith) => {
2672
3134
  const { organizationId, timestampMs, ...rest } = input;
3135
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3136
+ const generateAppProofs = input?.generateAppProofs ?? false;
2673
3137
  const session = await this.storageManager?.getActiveSession();
2674
3138
  return this.activity("/public/v1/submit/import_private_key", {
2675
3139
  parameters: rest,
@@ -2677,6 +3141,7 @@ class TurnkeySDKClientBase {
2677
3141
  session?.organizationId ??
2678
3142
  this.config.organizationId,
2679
3143
  timestampMs: timestampMs ?? String(Date.now()),
3144
+ generateAppProofs: generateAppProofs ?? false,
2680
3145
  type: "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY",
2681
3146
  }, "importPrivateKeyResult", stampWith);
2682
3147
  };
@@ -2704,6 +3169,8 @@ class TurnkeySDKClientBase {
2704
3169
  };
2705
3170
  this.importWallet = async (input, stampWith) => {
2706
3171
  const { organizationId, timestampMs, ...rest } = input;
3172
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3173
+ const generateAppProofs = input?.generateAppProofs ?? false;
2707
3174
  const session = await this.storageManager?.getActiveSession();
2708
3175
  return this.activity("/public/v1/submit/import_wallet", {
2709
3176
  parameters: rest,
@@ -2711,6 +3178,7 @@ class TurnkeySDKClientBase {
2711
3178
  session?.organizationId ??
2712
3179
  this.config.organizationId,
2713
3180
  timestampMs: timestampMs ?? String(Date.now()),
3181
+ generateAppProofs: generateAppProofs ?? false,
2714
3182
  type: "ACTIVITY_TYPE_IMPORT_WALLET",
2715
3183
  }, "importWalletResult", stampWith);
2716
3184
  };
@@ -2738,6 +3206,8 @@ class TurnkeySDKClientBase {
2738
3206
  };
2739
3207
  this.initFiatOnRamp = async (input, stampWith) => {
2740
3208
  const { organizationId, timestampMs, ...rest } = input;
3209
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3210
+ const generateAppProofs = input?.generateAppProofs ?? false;
2741
3211
  const session = await this.storageManager?.getActiveSession();
2742
3212
  return this.activity("/public/v1/submit/init_fiat_on_ramp", {
2743
3213
  parameters: rest,
@@ -2745,6 +3215,7 @@ class TurnkeySDKClientBase {
2745
3215
  session?.organizationId ??
2746
3216
  this.config.organizationId,
2747
3217
  timestampMs: timestampMs ?? String(Date.now()),
3218
+ generateAppProofs: generateAppProofs ?? false,
2748
3219
  type: "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP",
2749
3220
  }, "initFiatOnRampResult", stampWith);
2750
3221
  };
@@ -2772,6 +3243,8 @@ class TurnkeySDKClientBase {
2772
3243
  };
2773
3244
  this.initImportPrivateKey = async (input, stampWith) => {
2774
3245
  const { organizationId, timestampMs, ...rest } = input;
3246
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3247
+ const generateAppProofs = input?.generateAppProofs ?? false;
2775
3248
  const session = await this.storageManager?.getActiveSession();
2776
3249
  return this.activity("/public/v1/submit/init_import_private_key", {
2777
3250
  parameters: rest,
@@ -2779,6 +3252,7 @@ class TurnkeySDKClientBase {
2779
3252
  session?.organizationId ??
2780
3253
  this.config.organizationId,
2781
3254
  timestampMs: timestampMs ?? String(Date.now()),
3255
+ generateAppProofs: generateAppProofs ?? false,
2782
3256
  type: "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY",
2783
3257
  }, "initImportPrivateKeyResult", stampWith);
2784
3258
  };
@@ -2806,6 +3280,8 @@ class TurnkeySDKClientBase {
2806
3280
  };
2807
3281
  this.initImportWallet = async (input, stampWith) => {
2808
3282
  const { organizationId, timestampMs, ...rest } = input;
3283
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3284
+ const generateAppProofs = input?.generateAppProofs ?? false;
2809
3285
  const session = await this.storageManager?.getActiveSession();
2810
3286
  return this.activity("/public/v1/submit/init_import_wallet", {
2811
3287
  parameters: rest,
@@ -2813,6 +3289,7 @@ class TurnkeySDKClientBase {
2813
3289
  session?.organizationId ??
2814
3290
  this.config.organizationId,
2815
3291
  timestampMs: timestampMs ?? String(Date.now()),
3292
+ generateAppProofs: generateAppProofs ?? false,
2816
3293
  type: "ACTIVITY_TYPE_INIT_IMPORT_WALLET",
2817
3294
  }, "initImportWalletResult", stampWith);
2818
3295
  };
@@ -2840,6 +3317,8 @@ class TurnkeySDKClientBase {
2840
3317
  };
2841
3318
  this.initOtp = async (input, stampWith) => {
2842
3319
  const { organizationId, timestampMs, ...rest } = input;
3320
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3321
+ const generateAppProofs = input?.generateAppProofs ?? false;
2843
3322
  const session = await this.storageManager?.getActiveSession();
2844
3323
  return this.activity("/public/v1/submit/init_otp", {
2845
3324
  parameters: rest,
@@ -2847,6 +3326,7 @@ class TurnkeySDKClientBase {
2847
3326
  session?.organizationId ??
2848
3327
  this.config.organizationId,
2849
3328
  timestampMs: timestampMs ?? String(Date.now()),
3329
+ generateAppProofs: generateAppProofs ?? false,
2850
3330
  type: "ACTIVITY_TYPE_INIT_OTP_V3",
2851
3331
  }, "initOtpResultV2", stampWith);
2852
3332
  };
@@ -2874,6 +3354,8 @@ class TurnkeySDKClientBase {
2874
3354
  };
2875
3355
  this.initOtpAuth = async (input, stampWith) => {
2876
3356
  const { organizationId, timestampMs, ...rest } = input;
3357
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3358
+ const generateAppProofs = input?.generateAppProofs ?? false;
2877
3359
  const session = await this.storageManager?.getActiveSession();
2878
3360
  return this.activity("/public/v1/submit/init_otp_auth", {
2879
3361
  parameters: rest,
@@ -2881,6 +3363,7 @@ class TurnkeySDKClientBase {
2881
3363
  session?.organizationId ??
2882
3364
  this.config.organizationId,
2883
3365
  timestampMs: timestampMs ?? String(Date.now()),
3366
+ generateAppProofs: generateAppProofs ?? false,
2884
3367
  type: "ACTIVITY_TYPE_INIT_OTP_AUTH_V3",
2885
3368
  }, "initOtpAuthResultV2", stampWith);
2886
3369
  };
@@ -2908,6 +3391,8 @@ class TurnkeySDKClientBase {
2908
3391
  };
2909
3392
  this.initUserEmailRecovery = async (input, stampWith) => {
2910
3393
  const { organizationId, timestampMs, ...rest } = input;
3394
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3395
+ const generateAppProofs = input?.generateAppProofs ?? false;
2911
3396
  const session = await this.storageManager?.getActiveSession();
2912
3397
  return this.activity("/public/v1/submit/init_user_email_recovery", {
2913
3398
  parameters: rest,
@@ -2915,6 +3400,7 @@ class TurnkeySDKClientBase {
2915
3400
  session?.organizationId ??
2916
3401
  this.config.organizationId,
2917
3402
  timestampMs: timestampMs ?? String(Date.now()),
3403
+ generateAppProofs: generateAppProofs ?? false,
2918
3404
  type: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2",
2919
3405
  }, "initUserEmailRecoveryResult", stampWith);
2920
3406
  };
@@ -2942,6 +3428,8 @@ class TurnkeySDKClientBase {
2942
3428
  };
2943
3429
  this.oauth = async (input, stampWith) => {
2944
3430
  const { organizationId, timestampMs, ...rest } = input;
3431
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3432
+ const generateAppProofs = input?.generateAppProofs ?? false;
2945
3433
  const session = await this.storageManager?.getActiveSession();
2946
3434
  return this.activity("/public/v1/submit/oauth", {
2947
3435
  parameters: rest,
@@ -2949,6 +3437,7 @@ class TurnkeySDKClientBase {
2949
3437
  session?.organizationId ??
2950
3438
  this.config.organizationId,
2951
3439
  timestampMs: timestampMs ?? String(Date.now()),
3440
+ generateAppProofs: generateAppProofs ?? false,
2952
3441
  type: "ACTIVITY_TYPE_OAUTH",
2953
3442
  }, "oauthResult", stampWith);
2954
3443
  };
@@ -2976,6 +3465,8 @@ class TurnkeySDKClientBase {
2976
3465
  };
2977
3466
  this.oauth2Authenticate = async (input, stampWith) => {
2978
3467
  const { organizationId, timestampMs, ...rest } = input;
3468
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3469
+ const generateAppProofs = input?.generateAppProofs ?? false;
2979
3470
  const session = await this.storageManager?.getActiveSession();
2980
3471
  return this.activity("/public/v1/submit/oauth2_authenticate", {
2981
3472
  parameters: rest,
@@ -2983,6 +3474,7 @@ class TurnkeySDKClientBase {
2983
3474
  session?.organizationId ??
2984
3475
  this.config.organizationId,
2985
3476
  timestampMs: timestampMs ?? String(Date.now()),
3477
+ generateAppProofs: generateAppProofs ?? false,
2986
3478
  type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE",
2987
3479
  }, "oauth2AuthenticateResult", stampWith);
2988
3480
  };
@@ -3010,6 +3502,8 @@ class TurnkeySDKClientBase {
3010
3502
  };
3011
3503
  this.oauthLogin = async (input, stampWith) => {
3012
3504
  const { organizationId, timestampMs, ...rest } = input;
3505
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3506
+ const generateAppProofs = input?.generateAppProofs ?? false;
3013
3507
  const session = await this.storageManager?.getActiveSession();
3014
3508
  return this.activity("/public/v1/submit/oauth_login", {
3015
3509
  parameters: rest,
@@ -3017,6 +3511,7 @@ class TurnkeySDKClientBase {
3017
3511
  session?.organizationId ??
3018
3512
  this.config.organizationId,
3019
3513
  timestampMs: timestampMs ?? String(Date.now()),
3514
+ generateAppProofs: generateAppProofs ?? false,
3020
3515
  type: "ACTIVITY_TYPE_OAUTH_LOGIN",
3021
3516
  }, "oauthLoginResult", stampWith);
3022
3517
  };
@@ -3044,6 +3539,8 @@ class TurnkeySDKClientBase {
3044
3539
  };
3045
3540
  this.otpAuth = async (input, stampWith) => {
3046
3541
  const { organizationId, timestampMs, ...rest } = input;
3542
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3543
+ const generateAppProofs = input?.generateAppProofs ?? false;
3047
3544
  const session = await this.storageManager?.getActiveSession();
3048
3545
  return this.activity("/public/v1/submit/otp_auth", {
3049
3546
  parameters: rest,
@@ -3051,6 +3548,7 @@ class TurnkeySDKClientBase {
3051
3548
  session?.organizationId ??
3052
3549
  this.config.organizationId,
3053
3550
  timestampMs: timestampMs ?? String(Date.now()),
3551
+ generateAppProofs: generateAppProofs ?? false,
3054
3552
  type: "ACTIVITY_TYPE_OTP_AUTH",
3055
3553
  }, "otpAuthResult", stampWith);
3056
3554
  };
@@ -3078,6 +3576,8 @@ class TurnkeySDKClientBase {
3078
3576
  };
3079
3577
  this.otpLogin = async (input, stampWith) => {
3080
3578
  const { organizationId, timestampMs, ...rest } = input;
3579
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3580
+ const generateAppProofs = input?.generateAppProofs ?? false;
3081
3581
  const session = await this.storageManager?.getActiveSession();
3082
3582
  return this.activity("/public/v1/submit/otp_login", {
3083
3583
  parameters: rest,
@@ -3085,6 +3585,7 @@ class TurnkeySDKClientBase {
3085
3585
  session?.organizationId ??
3086
3586
  this.config.organizationId,
3087
3587
  timestampMs: timestampMs ?? String(Date.now()),
3588
+ generateAppProofs: generateAppProofs ?? false,
3088
3589
  type: "ACTIVITY_TYPE_OTP_LOGIN",
3089
3590
  }, "otpLoginResult", stampWith);
3090
3591
  };
@@ -3112,6 +3613,8 @@ class TurnkeySDKClientBase {
3112
3613
  };
3113
3614
  this.recoverUser = async (input, stampWith) => {
3114
3615
  const { organizationId, timestampMs, ...rest } = input;
3616
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3617
+ const generateAppProofs = input?.generateAppProofs ?? false;
3115
3618
  const session = await this.storageManager?.getActiveSession();
3116
3619
  return this.activity("/public/v1/submit/recover_user", {
3117
3620
  parameters: rest,
@@ -3119,6 +3622,7 @@ class TurnkeySDKClientBase {
3119
3622
  session?.organizationId ??
3120
3623
  this.config.organizationId,
3121
3624
  timestampMs: timestampMs ?? String(Date.now()),
3625
+ generateAppProofs: generateAppProofs ?? false,
3122
3626
  type: "ACTIVITY_TYPE_RECOVER_USER",
3123
3627
  }, "recoverUserResult", stampWith);
3124
3628
  };
@@ -3146,6 +3650,7 @@ class TurnkeySDKClientBase {
3146
3650
  };
3147
3651
  this.rejectActivity = async (input, stampWith) => {
3148
3652
  const { organizationId, timestampMs, ...rest } = input;
3653
+ const generateAppProofs = input?.generateAppProofs ?? false;
3149
3654
  const session = await this.storageManager?.getActiveSession();
3150
3655
  return this.activityDecision("/public/v1/submit/reject_activity", {
3151
3656
  parameters: rest,
@@ -3153,6 +3658,7 @@ class TurnkeySDKClientBase {
3153
3658
  session?.organizationId ??
3154
3659
  this.config.organizationId,
3155
3660
  timestampMs: timestampMs ?? String(Date.now()),
3661
+ generateAppProofs: generateAppProofs ?? false,
3156
3662
  type: "ACTIVITY_TYPE_REJECT_ACTIVITY",
3157
3663
  }, stampWith);
3158
3664
  };
@@ -3180,6 +3686,8 @@ class TurnkeySDKClientBase {
3180
3686
  };
3181
3687
  this.removeIpAllowlist = async (input, stampWith) => {
3182
3688
  const { organizationId, timestampMs, ...rest } = input;
3689
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3690
+ const generateAppProofs = input?.generateAppProofs ?? false;
3183
3691
  const session = await this.storageManager?.getActiveSession();
3184
3692
  return this.activity("/public/v1/submit/remove_ip_allowlist", {
3185
3693
  parameters: rest,
@@ -3187,6 +3695,7 @@ class TurnkeySDKClientBase {
3187
3695
  session?.organizationId ??
3188
3696
  this.config.organizationId,
3189
3697
  timestampMs: timestampMs ?? String(Date.now()),
3698
+ generateAppProofs: generateAppProofs ?? false,
3190
3699
  type: "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST",
3191
3700
  }, "removeIpAllowlistResult", stampWith);
3192
3701
  };
@@ -3214,6 +3723,8 @@ class TurnkeySDKClientBase {
3214
3723
  };
3215
3724
  this.removeOrganizationFeature = async (input, stampWith) => {
3216
3725
  const { organizationId, timestampMs, ...rest } = input;
3726
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3727
+ const generateAppProofs = input?.generateAppProofs ?? false;
3217
3728
  const session = await this.storageManager?.getActiveSession();
3218
3729
  return this.activity("/public/v1/submit/remove_organization_feature", {
3219
3730
  parameters: rest,
@@ -3221,6 +3732,7 @@ class TurnkeySDKClientBase {
3221
3732
  session?.organizationId ??
3222
3733
  this.config.organizationId,
3223
3734
  timestampMs: timestampMs ?? String(Date.now()),
3735
+ generateAppProofs: generateAppProofs ?? false,
3224
3736
  type: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE",
3225
3737
  }, "removeOrganizationFeatureResult", stampWith);
3226
3738
  };
@@ -3246,8 +3758,47 @@ class TurnkeySDKClientBase {
3246
3758
  url: fullUrl,
3247
3759
  };
3248
3760
  };
3761
+ this.restoreTvcDeployment = async (input, stampWith) => {
3762
+ const { organizationId, timestampMs, ...rest } = input;
3763
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3764
+ const generateAppProofs = input?.generateAppProofs ?? false;
3765
+ const session = await this.storageManager?.getActiveSession();
3766
+ return this.activity("/public/v1/submit/restore_tvc_deployment", {
3767
+ parameters: rest,
3768
+ organizationId: organizationId ??
3769
+ session?.organizationId ??
3770
+ this.config.organizationId,
3771
+ timestampMs: timestampMs ?? String(Date.now()),
3772
+ generateAppProofs: generateAppProofs ?? false,
3773
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3774
+ }, "restoreTvcDeploymentResult", stampWith);
3775
+ };
3776
+ this.stampRestoreTvcDeployment = async (input, stampWith) => {
3777
+ const activeStamper = this.getStamper(stampWith);
3778
+ if (!activeStamper) {
3779
+ return undefined;
3780
+ }
3781
+ const { organizationId, timestampMs, ...parameters } = input;
3782
+ const session = await this.storageManager?.getActiveSession();
3783
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/restore_tvc_deployment";
3784
+ const bodyWithType = {
3785
+ parameters,
3786
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3787
+ timestampMs: timestampMs ?? String(Date.now()),
3788
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3789
+ };
3790
+ const stringifiedBody = JSON.stringify(bodyWithType);
3791
+ const stamp = await activeStamper.stamp(stringifiedBody);
3792
+ return {
3793
+ body: stringifiedBody,
3794
+ stamp: stamp,
3795
+ url: fullUrl,
3796
+ };
3797
+ };
3249
3798
  this.setIpAllowlist = async (input, stampWith) => {
3250
3799
  const { organizationId, timestampMs, ...rest } = input;
3800
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3801
+ const generateAppProofs = input?.generateAppProofs ?? false;
3251
3802
  const session = await this.storageManager?.getActiveSession();
3252
3803
  return this.activity("/public/v1/submit/set_ip_allowlist", {
3253
3804
  parameters: rest,
@@ -3255,6 +3806,7 @@ class TurnkeySDKClientBase {
3255
3806
  session?.organizationId ??
3256
3807
  this.config.organizationId,
3257
3808
  timestampMs: timestampMs ?? String(Date.now()),
3809
+ generateAppProofs: generateAppProofs ?? false,
3258
3810
  type: "ACTIVITY_TYPE_SET_IP_ALLOWLIST",
3259
3811
  }, "setIpAllowlistResult", stampWith);
3260
3812
  };
@@ -3282,6 +3834,8 @@ class TurnkeySDKClientBase {
3282
3834
  };
3283
3835
  this.setOrganizationFeature = async (input, stampWith) => {
3284
3836
  const { organizationId, timestampMs, ...rest } = input;
3837
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3838
+ const generateAppProofs = input?.generateAppProofs ?? false;
3285
3839
  const session = await this.storageManager?.getActiveSession();
3286
3840
  return this.activity("/public/v1/submit/set_organization_feature", {
3287
3841
  parameters: rest,
@@ -3289,6 +3843,7 @@ class TurnkeySDKClientBase {
3289
3843
  session?.organizationId ??
3290
3844
  this.config.organizationId,
3291
3845
  timestampMs: timestampMs ?? String(Date.now()),
3846
+ generateAppProofs: generateAppProofs ?? false,
3292
3847
  type: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE",
3293
3848
  }, "setOrganizationFeatureResult", stampWith);
3294
3849
  };
@@ -3314,8 +3869,47 @@ class TurnkeySDKClientBase {
3314
3869
  url: fullUrl,
3315
3870
  };
3316
3871
  };
3872
+ this.updateTvcAppLiveDeployment = async (input, stampWith) => {
3873
+ const { organizationId, timestampMs, ...rest } = input;
3874
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3875
+ const generateAppProofs = input?.generateAppProofs ?? false;
3876
+ const session = await this.storageManager?.getActiveSession();
3877
+ return this.activity("/public/v1/submit/set_tvc_app_live_deployment", {
3878
+ parameters: rest,
3879
+ organizationId: organizationId ??
3880
+ session?.organizationId ??
3881
+ this.config.organizationId,
3882
+ timestampMs: timestampMs ?? String(Date.now()),
3883
+ generateAppProofs: generateAppProofs ?? false,
3884
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3885
+ }, "updateTvcAppLiveDeploymentResult", stampWith);
3886
+ };
3887
+ this.stampUpdateTvcAppLiveDeployment = async (input, stampWith) => {
3888
+ const activeStamper = this.getStamper(stampWith);
3889
+ if (!activeStamper) {
3890
+ return undefined;
3891
+ }
3892
+ const { organizationId, timestampMs, ...parameters } = input;
3893
+ const session = await this.storageManager?.getActiveSession();
3894
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_tvc_app_live_deployment";
3895
+ const bodyWithType = {
3896
+ parameters,
3897
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3898
+ timestampMs: timestampMs ?? String(Date.now()),
3899
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3900
+ };
3901
+ const stringifiedBody = JSON.stringify(bodyWithType);
3902
+ const stamp = await activeStamper.stamp(stringifiedBody);
3903
+ return {
3904
+ body: stringifiedBody,
3905
+ stamp: stamp,
3906
+ url: fullUrl,
3907
+ };
3908
+ };
3317
3909
  this.signRawPayload = async (input, stampWith) => {
3318
3910
  const { organizationId, timestampMs, ...rest } = input;
3911
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3912
+ const generateAppProofs = input?.generateAppProofs ?? false;
3319
3913
  const session = await this.storageManager?.getActiveSession();
3320
3914
  return this.activity("/public/v1/submit/sign_raw_payload", {
3321
3915
  parameters: rest,
@@ -3323,6 +3917,7 @@ class TurnkeySDKClientBase {
3323
3917
  session?.organizationId ??
3324
3918
  this.config.organizationId,
3325
3919
  timestampMs: timestampMs ?? String(Date.now()),
3920
+ generateAppProofs: generateAppProofs ?? false,
3326
3921
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
3327
3922
  }, "signRawPayloadResult", stampWith);
3328
3923
  };
@@ -3350,6 +3945,8 @@ class TurnkeySDKClientBase {
3350
3945
  };
3351
3946
  this.signRawPayloads = async (input, stampWith) => {
3352
3947
  const { organizationId, timestampMs, ...rest } = input;
3948
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3949
+ const generateAppProofs = input?.generateAppProofs ?? false;
3353
3950
  const session = await this.storageManager?.getActiveSession();
3354
3951
  return this.activity("/public/v1/submit/sign_raw_payloads", {
3355
3952
  parameters: rest,
@@ -3357,6 +3954,7 @@ class TurnkeySDKClientBase {
3357
3954
  session?.organizationId ??
3358
3955
  this.config.organizationId,
3359
3956
  timestampMs: timestampMs ?? String(Date.now()),
3957
+ generateAppProofs: generateAppProofs ?? false,
3360
3958
  type: "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS",
3361
3959
  }, "signRawPayloadsResult", stampWith);
3362
3960
  };
@@ -3384,6 +3982,8 @@ class TurnkeySDKClientBase {
3384
3982
  };
3385
3983
  this.signTransaction = async (input, stampWith) => {
3386
3984
  const { organizationId, timestampMs, ...rest } = input;
3985
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
3986
+ const generateAppProofs = input?.generateAppProofs ?? false;
3387
3987
  const session = await this.storageManager?.getActiveSession();
3388
3988
  return this.activity("/public/v1/submit/sign_transaction", {
3389
3989
  parameters: rest,
@@ -3391,6 +3991,7 @@ class TurnkeySDKClientBase {
3391
3991
  session?.organizationId ??
3392
3992
  this.config.organizationId,
3393
3993
  timestampMs: timestampMs ?? String(Date.now()),
3994
+ generateAppProofs: generateAppProofs ?? false,
3394
3995
  type: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2",
3395
3996
  }, "signTransactionResult", stampWith);
3396
3997
  };
@@ -3418,6 +4019,8 @@ class TurnkeySDKClientBase {
3418
4019
  };
3419
4020
  this.solSendTransaction = async (input, stampWith) => {
3420
4021
  const { organizationId, timestampMs, ...rest } = input;
4022
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4023
+ const generateAppProofs = input?.generateAppProofs ?? false;
3421
4024
  const session = await this.storageManager?.getActiveSession();
3422
4025
  return this.activity("/public/v1/submit/sol_send_transaction", {
3423
4026
  parameters: rest,
@@ -3425,6 +4028,7 @@ class TurnkeySDKClientBase {
3425
4028
  session?.organizationId ??
3426
4029
  this.config.organizationId,
3427
4030
  timestampMs: timestampMs ?? String(Date.now()),
4031
+ generateAppProofs: generateAppProofs ?? false,
3428
4032
  type: "ACTIVITY_TYPE_SOL_SEND_TRANSACTION",
3429
4033
  }, "solSendTransactionResult", stampWith);
3430
4034
  };
@@ -3450,8 +4054,159 @@ class TurnkeySDKClientBase {
3450
4054
  url: fullUrl,
3451
4055
  };
3452
4056
  };
4057
+ this.sparkClaimTransfer = async (input, stampWith) => {
4058
+ const { organizationId, timestampMs, ...rest } = input;
4059
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4060
+ const generateAppProofs = input?.generateAppProofs ?? false;
4061
+ const session = await this.storageManager?.getActiveSession();
4062
+ return this.activity("/public/v1/submit/spark_claim_transfer", {
4063
+ parameters: rest,
4064
+ organizationId: organizationId ??
4065
+ session?.organizationId ??
4066
+ this.config.organizationId,
4067
+ timestampMs: timestampMs ?? String(Date.now()),
4068
+ generateAppProofs: generateAppProofs ?? false,
4069
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
4070
+ }, "sparkClaimTransferResult", stampWith);
4071
+ };
4072
+ this.stampSparkClaimTransfer = async (input, stampWith) => {
4073
+ const activeStamper = this.getStamper(stampWith);
4074
+ if (!activeStamper) {
4075
+ return undefined;
4076
+ }
4077
+ const { organizationId, timestampMs, ...parameters } = input;
4078
+ const session = await this.storageManager?.getActiveSession();
4079
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_claim_transfer";
4080
+ const bodyWithType = {
4081
+ parameters,
4082
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4083
+ timestampMs: timestampMs ?? String(Date.now()),
4084
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
4085
+ };
4086
+ const stringifiedBody = JSON.stringify(bodyWithType);
4087
+ const stamp = await activeStamper.stamp(stringifiedBody);
4088
+ return {
4089
+ body: stringifiedBody,
4090
+ stamp: stamp,
4091
+ url: fullUrl,
4092
+ };
4093
+ };
4094
+ this.sparkPrepareLightningReceive = async (input, stampWith) => {
4095
+ const { organizationId, timestampMs, ...rest } = input;
4096
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4097
+ const generateAppProofs = input?.generateAppProofs ?? false;
4098
+ const session = await this.storageManager?.getActiveSession();
4099
+ return this.activity("/public/v1/submit/spark_prepare_lightning_receive", {
4100
+ parameters: rest,
4101
+ organizationId: organizationId ??
4102
+ session?.organizationId ??
4103
+ this.config.organizationId,
4104
+ timestampMs: timestampMs ?? String(Date.now()),
4105
+ generateAppProofs: generateAppProofs ?? false,
4106
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4107
+ }, "sparkPrepareLightningReceiveResult", stampWith);
4108
+ };
4109
+ this.stampSparkPrepareLightningReceive = async (input, stampWith) => {
4110
+ const activeStamper = this.getStamper(stampWith);
4111
+ if (!activeStamper) {
4112
+ return undefined;
4113
+ }
4114
+ const { organizationId, timestampMs, ...parameters } = input;
4115
+ const session = await this.storageManager?.getActiveSession();
4116
+ const fullUrl = this.config.apiBaseUrl +
4117
+ "/public/v1/submit/spark_prepare_lightning_receive";
4118
+ const bodyWithType = {
4119
+ parameters,
4120
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4121
+ timestampMs: timestampMs ?? String(Date.now()),
4122
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4123
+ };
4124
+ const stringifiedBody = JSON.stringify(bodyWithType);
4125
+ const stamp = await activeStamper.stamp(stringifiedBody);
4126
+ return {
4127
+ body: stringifiedBody,
4128
+ stamp: stamp,
4129
+ url: fullUrl,
4130
+ };
4131
+ };
4132
+ this.sparkPrepareTransfer = async (input, stampWith) => {
4133
+ const { organizationId, timestampMs, ...rest } = input;
4134
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4135
+ const generateAppProofs = input?.generateAppProofs ?? false;
4136
+ const session = await this.storageManager?.getActiveSession();
4137
+ return this.activity("/public/v1/submit/spark_prepare_transfer", {
4138
+ parameters: rest,
4139
+ organizationId: organizationId ??
4140
+ session?.organizationId ??
4141
+ this.config.organizationId,
4142
+ timestampMs: timestampMs ?? String(Date.now()),
4143
+ generateAppProofs: generateAppProofs ?? false,
4144
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4145
+ }, "sparkPrepareTransferResult", stampWith);
4146
+ };
4147
+ this.stampSparkPrepareTransfer = async (input, stampWith) => {
4148
+ const activeStamper = this.getStamper(stampWith);
4149
+ if (!activeStamper) {
4150
+ return undefined;
4151
+ }
4152
+ const { organizationId, timestampMs, ...parameters } = input;
4153
+ const session = await this.storageManager?.getActiveSession();
4154
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_prepare_transfer";
4155
+ const bodyWithType = {
4156
+ parameters,
4157
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4158
+ timestampMs: timestampMs ?? String(Date.now()),
4159
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4160
+ };
4161
+ const stringifiedBody = JSON.stringify(bodyWithType);
4162
+ const stamp = await activeStamper.stamp(stringifiedBody);
4163
+ return {
4164
+ body: stringifiedBody,
4165
+ stamp: stamp,
4166
+ url: fullUrl,
4167
+ };
4168
+ };
4169
+ this.sparkSignFrost = async (input, stampWith) => {
4170
+ const { organizationId, timestampMs, ...rest } = input;
4171
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4172
+ const generateAppProofs = input?.generateAppProofs ?? false;
4173
+ const session = await this.storageManager?.getActiveSession();
4174
+ return this.activity("/public/v1/submit/spark_sign_frost", {
4175
+ parameters: rest,
4176
+ organizationId: organizationId ??
4177
+ session?.organizationId ??
4178
+ this.config.organizationId,
4179
+ timestampMs: timestampMs ?? String(Date.now()),
4180
+ generateAppProofs: generateAppProofs ?? false,
4181
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4182
+ }, "sparkSignFrostResult", stampWith);
4183
+ };
4184
+ this.stampSparkSignFrost = async (input, stampWith) => {
4185
+ const activeStamper = this.getStamper(stampWith);
4186
+ if (!activeStamper) {
4187
+ return undefined;
4188
+ }
4189
+ const { organizationId, timestampMs, ...parameters } = input;
4190
+ const session = await this.storageManager?.getActiveSession();
4191
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_sign_frost";
4192
+ const bodyWithType = {
4193
+ parameters,
4194
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4195
+ timestampMs: timestampMs ?? String(Date.now()),
4196
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4197
+ };
4198
+ const stringifiedBody = JSON.stringify(bodyWithType);
4199
+ const stamp = await activeStamper.stamp(stringifiedBody);
4200
+ return {
4201
+ body: stringifiedBody,
4202
+ stamp: stamp,
4203
+ url: fullUrl,
4204
+ };
4205
+ };
3453
4206
  this.stampLogin = async (input, stampWith) => {
3454
4207
  const { organizationId, timestampMs, ...rest } = input;
4208
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4209
+ const generateAppProofs = input?.generateAppProofs ?? false;
3455
4210
  const session = await this.storageManager?.getActiveSession();
3456
4211
  return this.activity("/public/v1/submit/stamp_login", {
3457
4212
  parameters: rest,
@@ -3459,6 +4214,7 @@ class TurnkeySDKClientBase {
3459
4214
  session?.organizationId ??
3460
4215
  this.config.organizationId,
3461
4216
  timestampMs: timestampMs ?? String(Date.now()),
4217
+ generateAppProofs: generateAppProofs ?? false,
3462
4218
  type: "ACTIVITY_TYPE_STAMP_LOGIN",
3463
4219
  }, "stampLoginResult", stampWith);
3464
4220
  };
@@ -3486,6 +4242,8 @@ class TurnkeySDKClientBase {
3486
4242
  };
3487
4243
  this.updateFiatOnRampCredential = async (input, stampWith) => {
3488
4244
  const { organizationId, timestampMs, ...rest } = input;
4245
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4246
+ const generateAppProofs = input?.generateAppProofs ?? false;
3489
4247
  const session = await this.storageManager?.getActiveSession();
3490
4248
  return this.activity("/public/v1/submit/update_fiat_on_ramp_credential", {
3491
4249
  parameters: rest,
@@ -3493,6 +4251,7 @@ class TurnkeySDKClientBase {
3493
4251
  session?.organizationId ??
3494
4252
  this.config.organizationId,
3495
4253
  timestampMs: timestampMs ?? String(Date.now()),
4254
+ generateAppProofs: generateAppProofs ?? false,
3496
4255
  type: "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL",
3497
4256
  }, "updateFiatOnRampCredentialResult", stampWith);
3498
4257
  };
@@ -3521,6 +4280,8 @@ class TurnkeySDKClientBase {
3521
4280
  };
3522
4281
  this.updateOauth2Credential = async (input, stampWith) => {
3523
4282
  const { organizationId, timestampMs, ...rest } = input;
4283
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4284
+ const generateAppProofs = input?.generateAppProofs ?? false;
3524
4285
  const session = await this.storageManager?.getActiveSession();
3525
4286
  return this.activity("/public/v1/submit/update_oauth2_credential", {
3526
4287
  parameters: rest,
@@ -3528,6 +4289,7 @@ class TurnkeySDKClientBase {
3528
4289
  session?.organizationId ??
3529
4290
  this.config.organizationId,
3530
4291
  timestampMs: timestampMs ?? String(Date.now()),
4292
+ generateAppProofs: generateAppProofs ?? false,
3531
4293
  type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL",
3532
4294
  }, "updateOauth2CredentialResult", stampWith);
3533
4295
  };
@@ -3555,6 +4317,8 @@ class TurnkeySDKClientBase {
3555
4317
  };
3556
4318
  this.updateOrganizationName = async (input, stampWith) => {
3557
4319
  const { organizationId, timestampMs, ...rest } = input;
4320
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4321
+ const generateAppProofs = input?.generateAppProofs ?? false;
3558
4322
  const session = await this.storageManager?.getActiveSession();
3559
4323
  return this.activity("/public/v1/submit/update_organization_name", {
3560
4324
  parameters: rest,
@@ -3562,6 +4326,7 @@ class TurnkeySDKClientBase {
3562
4326
  session?.organizationId ??
3563
4327
  this.config.organizationId,
3564
4328
  timestampMs: timestampMs ?? String(Date.now()),
4329
+ generateAppProofs: generateAppProofs ?? false,
3565
4330
  type: "ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME",
3566
4331
  }, "updateOrganizationNameResult", stampWith);
3567
4332
  };
@@ -3589,6 +4354,8 @@ class TurnkeySDKClientBase {
3589
4354
  };
3590
4355
  this.updatePolicy = async (input, stampWith) => {
3591
4356
  const { organizationId, timestampMs, ...rest } = input;
4357
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4358
+ const generateAppProofs = input?.generateAppProofs ?? false;
3592
4359
  const session = await this.storageManager?.getActiveSession();
3593
4360
  return this.activity("/public/v1/submit/update_policy", {
3594
4361
  parameters: rest,
@@ -3596,6 +4363,7 @@ class TurnkeySDKClientBase {
3596
4363
  session?.organizationId ??
3597
4364
  this.config.organizationId,
3598
4365
  timestampMs: timestampMs ?? String(Date.now()),
4366
+ generateAppProofs: generateAppProofs ?? false,
3599
4367
  type: "ACTIVITY_TYPE_UPDATE_POLICY_V2",
3600
4368
  }, "updatePolicyResultV2", stampWith);
3601
4369
  };
@@ -3623,6 +4391,8 @@ class TurnkeySDKClientBase {
3623
4391
  };
3624
4392
  this.updatePrivateKeyTag = async (input, stampWith) => {
3625
4393
  const { organizationId, timestampMs, ...rest } = input;
4394
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4395
+ const generateAppProofs = input?.generateAppProofs ?? false;
3626
4396
  const session = await this.storageManager?.getActiveSession();
3627
4397
  return this.activity("/public/v1/submit/update_private_key_tag", {
3628
4398
  parameters: rest,
@@ -3630,6 +4400,7 @@ class TurnkeySDKClientBase {
3630
4400
  session?.organizationId ??
3631
4401
  this.config.organizationId,
3632
4402
  timestampMs: timestampMs ?? String(Date.now()),
4403
+ generateAppProofs: generateAppProofs ?? false,
3633
4404
  type: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG",
3634
4405
  }, "updatePrivateKeyTagResult", stampWith);
3635
4406
  };
@@ -3657,6 +4428,8 @@ class TurnkeySDKClientBase {
3657
4428
  };
3658
4429
  this.updateRootQuorum = async (input, stampWith) => {
3659
4430
  const { organizationId, timestampMs, ...rest } = input;
4431
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4432
+ const generateAppProofs = input?.generateAppProofs ?? false;
3660
4433
  const session = await this.storageManager?.getActiveSession();
3661
4434
  return this.activity("/public/v1/submit/update_root_quorum", {
3662
4435
  parameters: rest,
@@ -3664,6 +4437,7 @@ class TurnkeySDKClientBase {
3664
4437
  session?.organizationId ??
3665
4438
  this.config.organizationId,
3666
4439
  timestampMs: timestampMs ?? String(Date.now()),
4440
+ generateAppProofs: generateAppProofs ?? false,
3667
4441
  type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
3668
4442
  }, "updateRootQuorumResult", stampWith);
3669
4443
  };
@@ -3691,6 +4465,8 @@ class TurnkeySDKClientBase {
3691
4465
  };
3692
4466
  this.updateUser = async (input, stampWith) => {
3693
4467
  const { organizationId, timestampMs, ...rest } = input;
4468
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4469
+ const generateAppProofs = input?.generateAppProofs ?? false;
3694
4470
  const session = await this.storageManager?.getActiveSession();
3695
4471
  return this.activity("/public/v1/submit/update_user", {
3696
4472
  parameters: rest,
@@ -3698,6 +4474,7 @@ class TurnkeySDKClientBase {
3698
4474
  session?.organizationId ??
3699
4475
  this.config.organizationId,
3700
4476
  timestampMs: timestampMs ?? String(Date.now()),
4477
+ generateAppProofs: generateAppProofs ?? false,
3701
4478
  type: "ACTIVITY_TYPE_UPDATE_USER",
3702
4479
  }, "updateUserResult", stampWith);
3703
4480
  };
@@ -3725,6 +4502,8 @@ class TurnkeySDKClientBase {
3725
4502
  };
3726
4503
  this.updateUserEmail = async (input, stampWith) => {
3727
4504
  const { organizationId, timestampMs, ...rest } = input;
4505
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4506
+ const generateAppProofs = input?.generateAppProofs ?? false;
3728
4507
  const session = await this.storageManager?.getActiveSession();
3729
4508
  return this.activity("/public/v1/submit/update_user_email", {
3730
4509
  parameters: rest,
@@ -3732,6 +4511,7 @@ class TurnkeySDKClientBase {
3732
4511
  session?.organizationId ??
3733
4512
  this.config.organizationId,
3734
4513
  timestampMs: timestampMs ?? String(Date.now()),
4514
+ generateAppProofs: generateAppProofs ?? false,
3735
4515
  type: "ACTIVITY_TYPE_UPDATE_USER_EMAIL",
3736
4516
  }, "updateUserEmailResult", stampWith);
3737
4517
  };
@@ -3759,6 +4539,8 @@ class TurnkeySDKClientBase {
3759
4539
  };
3760
4540
  this.updateUserName = async (input, stampWith) => {
3761
4541
  const { organizationId, timestampMs, ...rest } = input;
4542
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4543
+ const generateAppProofs = input?.generateAppProofs ?? false;
3762
4544
  const session = await this.storageManager?.getActiveSession();
3763
4545
  return this.activity("/public/v1/submit/update_user_name", {
3764
4546
  parameters: rest,
@@ -3766,6 +4548,7 @@ class TurnkeySDKClientBase {
3766
4548
  session?.organizationId ??
3767
4549
  this.config.organizationId,
3768
4550
  timestampMs: timestampMs ?? String(Date.now()),
4551
+ generateAppProofs: generateAppProofs ?? false,
3769
4552
  type: "ACTIVITY_TYPE_UPDATE_USER_NAME",
3770
4553
  }, "updateUserNameResult", stampWith);
3771
4554
  };
@@ -3793,6 +4576,8 @@ class TurnkeySDKClientBase {
3793
4576
  };
3794
4577
  this.updateUserPhoneNumber = async (input, stampWith) => {
3795
4578
  const { organizationId, timestampMs, ...rest } = input;
4579
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4580
+ const generateAppProofs = input?.generateAppProofs ?? false;
3796
4581
  const session = await this.storageManager?.getActiveSession();
3797
4582
  return this.activity("/public/v1/submit/update_user_phone_number", {
3798
4583
  parameters: rest,
@@ -3800,6 +4585,7 @@ class TurnkeySDKClientBase {
3800
4585
  session?.organizationId ??
3801
4586
  this.config.organizationId,
3802
4587
  timestampMs: timestampMs ?? String(Date.now()),
4588
+ generateAppProofs: generateAppProofs ?? false,
3803
4589
  type: "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER",
3804
4590
  }, "updateUserPhoneNumberResult", stampWith);
3805
4591
  };
@@ -3827,6 +4613,8 @@ class TurnkeySDKClientBase {
3827
4613
  };
3828
4614
  this.updateUserTag = async (input, stampWith) => {
3829
4615
  const { organizationId, timestampMs, ...rest } = input;
4616
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4617
+ const generateAppProofs = input?.generateAppProofs ?? false;
3830
4618
  const session = await this.storageManager?.getActiveSession();
3831
4619
  return this.activity("/public/v1/submit/update_user_tag", {
3832
4620
  parameters: rest,
@@ -3834,6 +4622,7 @@ class TurnkeySDKClientBase {
3834
4622
  session?.organizationId ??
3835
4623
  this.config.organizationId,
3836
4624
  timestampMs: timestampMs ?? String(Date.now()),
4625
+ generateAppProofs: generateAppProofs ?? false,
3837
4626
  type: "ACTIVITY_TYPE_UPDATE_USER_TAG",
3838
4627
  }, "updateUserTagResult", stampWith);
3839
4628
  };
@@ -3861,6 +4650,8 @@ class TurnkeySDKClientBase {
3861
4650
  };
3862
4651
  this.updateWallet = async (input, stampWith) => {
3863
4652
  const { organizationId, timestampMs, ...rest } = input;
4653
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4654
+ const generateAppProofs = input?.generateAppProofs ?? false;
3864
4655
  const session = await this.storageManager?.getActiveSession();
3865
4656
  return this.activity("/public/v1/submit/update_wallet", {
3866
4657
  parameters: rest,
@@ -3868,6 +4659,7 @@ class TurnkeySDKClientBase {
3868
4659
  session?.organizationId ??
3869
4660
  this.config.organizationId,
3870
4661
  timestampMs: timestampMs ?? String(Date.now()),
4662
+ generateAppProofs: generateAppProofs ?? false,
3871
4663
  type: "ACTIVITY_TYPE_UPDATE_WALLET",
3872
4664
  }, "updateWalletResult", stampWith);
3873
4665
  };
@@ -3895,6 +4687,8 @@ class TurnkeySDKClientBase {
3895
4687
  };
3896
4688
  this.updateWebhookEndpoint = async (input, stampWith) => {
3897
4689
  const { organizationId, timestampMs, ...rest } = input;
4690
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4691
+ const generateAppProofs = input?.generateAppProofs ?? false;
3898
4692
  const session = await this.storageManager?.getActiveSession();
3899
4693
  return this.activity("/public/v1/submit/update_webhook_endpoint", {
3900
4694
  parameters: rest,
@@ -3902,6 +4696,7 @@ class TurnkeySDKClientBase {
3902
4696
  session?.organizationId ??
3903
4697
  this.config.organizationId,
3904
4698
  timestampMs: timestampMs ?? String(Date.now()),
4699
+ generateAppProofs: generateAppProofs ?? false,
3905
4700
  type: "ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT",
3906
4701
  }, "updateWebhookEndpointResult", stampWith);
3907
4702
  };
@@ -3929,6 +4724,8 @@ class TurnkeySDKClientBase {
3929
4724
  };
3930
4725
  this.verifyOtp = async (input, stampWith) => {
3931
4726
  const { organizationId, timestampMs, ...rest } = input;
4727
+ //@ts-ignore - generateAppProofs does not exist on all request types, so we ignore the type error here for those that are missing it
4728
+ const generateAppProofs = input?.generateAppProofs ?? false;
3932
4729
  const session = await this.storageManager?.getActiveSession();
3933
4730
  return this.activity("/public/v1/submit/verify_otp", {
3934
4731
  parameters: rest,
@@ -3936,6 +4733,7 @@ class TurnkeySDKClientBase {
3936
4733
  session?.organizationId ??
3937
4734
  this.config.organizationId,
3938
4735
  timestampMs: timestampMs ?? String(Date.now()),
4736
+ generateAppProofs: generateAppProofs ?? false,
3939
4737
  type: "ACTIVITY_TYPE_VERIFY_OTP",
3940
4738
  }, "verifyOtpResult", stampWith);
3941
4739
  };