@turnkey/sdk-browser 5.16.1 → 6.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.
@@ -257,6 +257,37 @@ class TurnkeySDKClientBase {
257
257
  url: fullUrl,
258
258
  };
259
259
  };
260
+ this.getIpAllowlist = async (input) => {
261
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
262
+ const session = sessionData ? utils.parseSession(sessionData) : null;
263
+ return this.request("/public/v1/query/get_ip_allowlist", {
264
+ ...input,
265
+ organizationId: input.organizationId ??
266
+ session?.organizationId ??
267
+ this.config.organizationId,
268
+ });
269
+ };
270
+ this.stampGetIpAllowlist = async (input) => {
271
+ if (!this.stamper) {
272
+ return undefined;
273
+ }
274
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
275
+ const session = sessionData ? utils.parseSession(sessionData) : null;
276
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_ip_allowlist";
277
+ const body = {
278
+ ...input,
279
+ organizationId: input.organizationId ??
280
+ session?.organizationId ??
281
+ this.config.organizationId,
282
+ };
283
+ const stringifiedBody = JSON.stringify(body);
284
+ const stamp = await this.stamper.stamp(stringifiedBody);
285
+ return {
286
+ body: stringifiedBody,
287
+ stamp: stamp,
288
+ url: fullUrl,
289
+ };
290
+ };
260
291
  this.getLatestBootProof = async (input) => {
261
292
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
262
293
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -598,6 +629,68 @@ class TurnkeySDKClientBase {
598
629
  url: fullUrl,
599
630
  };
600
631
  };
632
+ this.getTvcApp = async (input) => {
633
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
634
+ const session = sessionData ? utils.parseSession(sessionData) : null;
635
+ return this.request("/public/v1/query/get_tvc_app", {
636
+ ...input,
637
+ organizationId: input.organizationId ??
638
+ session?.organizationId ??
639
+ this.config.organizationId,
640
+ });
641
+ };
642
+ this.stampGetTvcApp = async (input) => {
643
+ if (!this.stamper) {
644
+ return undefined;
645
+ }
646
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
647
+ const session = sessionData ? utils.parseSession(sessionData) : null;
648
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_app";
649
+ const body = {
650
+ ...input,
651
+ organizationId: input.organizationId ??
652
+ session?.organizationId ??
653
+ this.config.organizationId,
654
+ };
655
+ const stringifiedBody = JSON.stringify(body);
656
+ const stamp = await this.stamper.stamp(stringifiedBody);
657
+ return {
658
+ body: stringifiedBody,
659
+ stamp: stamp,
660
+ url: fullUrl,
661
+ };
662
+ };
663
+ this.getTvcDeployment = async (input) => {
664
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
665
+ const session = sessionData ? utils.parseSession(sessionData) : null;
666
+ return this.request("/public/v1/query/get_tvc_deployment", {
667
+ ...input,
668
+ organizationId: input.organizationId ??
669
+ session?.organizationId ??
670
+ this.config.organizationId,
671
+ });
672
+ };
673
+ this.stampGetTvcDeployment = async (input) => {
674
+ if (!this.stamper) {
675
+ return undefined;
676
+ }
677
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
678
+ const session = sessionData ? utils.parseSession(sessionData) : null;
679
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_tvc_deployment";
680
+ const body = {
681
+ ...input,
682
+ organizationId: input.organizationId ??
683
+ session?.organizationId ??
684
+ this.config.organizationId,
685
+ };
686
+ const stringifiedBody = JSON.stringify(body);
687
+ const stamp = await this.stamper.stamp(stringifiedBody);
688
+ return {
689
+ body: stringifiedBody,
690
+ stamp: stamp,
691
+ url: fullUrl,
692
+ };
693
+ };
601
694
  this.getUser = async (input) => {
602
695
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
603
696
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -1033,6 +1126,68 @@ class TurnkeySDKClientBase {
1033
1126
  url: fullUrl,
1034
1127
  };
1035
1128
  };
1129
+ this.getTvcAppDeployments = async (input) => {
1130
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1131
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1132
+ return this.request("/public/v1/query/list_tvc_app_deployments", {
1133
+ ...input,
1134
+ organizationId: input.organizationId ??
1135
+ session?.organizationId ??
1136
+ this.config.organizationId,
1137
+ });
1138
+ };
1139
+ this.stampGetTvcAppDeployments = async (input) => {
1140
+ if (!this.stamper) {
1141
+ return undefined;
1142
+ }
1143
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1144
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1145
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_app_deployments";
1146
+ const body = {
1147
+ ...input,
1148
+ organizationId: input.organizationId ??
1149
+ session?.organizationId ??
1150
+ this.config.organizationId,
1151
+ };
1152
+ const stringifiedBody = JSON.stringify(body);
1153
+ const stamp = await this.stamper.stamp(stringifiedBody);
1154
+ return {
1155
+ body: stringifiedBody,
1156
+ stamp: stamp,
1157
+ url: fullUrl,
1158
+ };
1159
+ };
1160
+ this.getTvcApps = async (input) => {
1161
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1162
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1163
+ return this.request("/public/v1/query/list_tvc_apps", {
1164
+ ...input,
1165
+ organizationId: input.organizationId ??
1166
+ session?.organizationId ??
1167
+ this.config.organizationId,
1168
+ });
1169
+ };
1170
+ this.stampGetTvcApps = async (input) => {
1171
+ if (!this.stamper) {
1172
+ return undefined;
1173
+ }
1174
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1175
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1176
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/list_tvc_apps";
1177
+ const body = {
1178
+ ...input,
1179
+ organizationId: input.organizationId ??
1180
+ session?.organizationId ??
1181
+ this.config.organizationId,
1182
+ };
1183
+ const stringifiedBody = JSON.stringify(body);
1184
+ const stamp = await this.stamper.stamp(stringifiedBody);
1185
+ return {
1186
+ body: stringifiedBody,
1187
+ stamp: stamp,
1188
+ url: fullUrl,
1189
+ };
1190
+ };
1036
1191
  this.listUserTags = async (input = {}) => {
1037
1192
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1038
1193
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -1219,6 +1374,37 @@ class TurnkeySDKClientBase {
1219
1374
  url: fullUrl,
1220
1375
  };
1221
1376
  };
1377
+ this.validateTvcImage = async (input) => {
1378
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1379
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1380
+ return this.request("/public/v1/query/validate_tvc_image", {
1381
+ ...input,
1382
+ organizationId: input.organizationId ??
1383
+ session?.organizationId ??
1384
+ this.config.organizationId,
1385
+ });
1386
+ };
1387
+ this.stampValidateTvcImage = async (input) => {
1388
+ if (!this.stamper) {
1389
+ return undefined;
1390
+ }
1391
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1392
+ const session = sessionData ? utils.parseSession(sessionData) : null;
1393
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/query/validate_tvc_image";
1394
+ const body = {
1395
+ ...input,
1396
+ organizationId: input.organizationId ??
1397
+ session?.organizationId ??
1398
+ this.config.organizationId,
1399
+ };
1400
+ const stringifiedBody = JSON.stringify(body);
1401
+ const stamp = await this.stamper.stamp(stringifiedBody);
1402
+ return {
1403
+ body: stringifiedBody,
1404
+ stamp: stamp,
1405
+ url: fullUrl,
1406
+ };
1407
+ };
1222
1408
  this.getWhoami = async (input = {}) => {
1223
1409
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1224
1410
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -1318,41 +1504,6 @@ class TurnkeySDKClientBase {
1318
1504
  url: fullUrl,
1319
1505
  };
1320
1506
  };
1321
- this.createApiOnlyUsers = async (input) => {
1322
- const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1323
- const session = sessionData ? utils.parseSession(sessionData) : null;
1324
- const { organizationId, timestampMs, ...rest } = input;
1325
- return this.command("/public/v1/submit/create_api_only_users", {
1326
- parameters: rest,
1327
- organizationId: organizationId ??
1328
- session?.organizationId ??
1329
- this.config.organizationId,
1330
- timestampMs: timestampMs ?? String(Date.now()),
1331
- type: "ACTIVITY_TYPE_CREATE_API_ONLY_USERS",
1332
- }, "createApiOnlyUsersResult");
1333
- };
1334
- this.stampCreateApiOnlyUsers = async (input) => {
1335
- if (!this.stamper) {
1336
- return undefined;
1337
- }
1338
- const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1339
- const session = sessionData ? utils.parseSession(sessionData) : null;
1340
- const { organizationId, timestampMs, ...parameters } = input;
1341
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_api_only_users";
1342
- const bodyWithType = {
1343
- parameters,
1344
- organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1345
- timestampMs: timestampMs ?? String(Date.now()),
1346
- type: "ACTIVITY_TYPE_CREATE_API_ONLY_USERS",
1347
- };
1348
- const stringifiedBody = JSON.stringify(bodyWithType);
1349
- const stamp = await this.stamper.stamp(stringifiedBody);
1350
- return {
1351
- body: stringifiedBody,
1352
- stamp: stamp,
1353
- url: fullUrl,
1354
- };
1355
- };
1356
1507
  this.createAuthenticators = async (input) => {
1357
1508
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1358
1509
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -1504,8 +1655,8 @@ class TurnkeySDKClientBase {
1504
1655
  session?.organizationId ??
1505
1656
  this.config.organizationId,
1506
1657
  timestampMs: timestampMs ?? String(Date.now()),
1507
- type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS",
1508
- }, "createOauthProvidersResult");
1658
+ type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2",
1659
+ }, "createOauthProvidersResultV2");
1509
1660
  };
1510
1661
  this.stampCreateOauthProviders = async (input) => {
1511
1662
  if (!this.stamper) {
@@ -1519,7 +1670,7 @@ class TurnkeySDKClientBase {
1519
1670
  parameters,
1520
1671
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1521
1672
  timestampMs: timestampMs ?? String(Date.now()),
1522
- type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS",
1673
+ type: "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2",
1523
1674
  };
1524
1675
  const stringifiedBody = JSON.stringify(bodyWithType);
1525
1676
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1785,8 +1936,8 @@ class TurnkeySDKClientBase {
1785
1936
  session?.organizationId ??
1786
1937
  this.config.organizationId,
1787
1938
  timestampMs: timestampMs ?? String(Date.now()),
1788
- type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7",
1789
- }, "createSubOrganizationResultV7");
1939
+ type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8",
1940
+ }, "createSubOrganizationResultV8");
1790
1941
  };
1791
1942
  this.stampCreateSubOrganization = async (input) => {
1792
1943
  if (!this.stamper) {
@@ -1800,7 +1951,7 @@ class TurnkeySDKClientBase {
1800
1951
  parameters,
1801
1952
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1802
1953
  timestampMs: timestampMs ?? String(Date.now()),
1803
- type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7",
1954
+ type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8",
1804
1955
  };
1805
1956
  const stringifiedBody = JSON.stringify(bodyWithType);
1806
1957
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1810,32 +1961,32 @@ class TurnkeySDKClientBase {
1810
1961
  url: fullUrl,
1811
1962
  };
1812
1963
  };
1813
- this.createUserTag = async (input) => {
1964
+ this.createTvcApp = async (input) => {
1814
1965
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1815
1966
  const session = sessionData ? utils.parseSession(sessionData) : null;
1816
1967
  const { organizationId, timestampMs, ...rest } = input;
1817
- return this.command("/public/v1/submit/create_user_tag", {
1968
+ return this.command("/public/v1/submit/create_tvc_app", {
1818
1969
  parameters: rest,
1819
1970
  organizationId: organizationId ??
1820
1971
  session?.organizationId ??
1821
1972
  this.config.organizationId,
1822
1973
  timestampMs: timestampMs ?? String(Date.now()),
1823
- type: "ACTIVITY_TYPE_CREATE_USER_TAG",
1824
- }, "createUserTagResult");
1974
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1975
+ }, "createTvcAppResult");
1825
1976
  };
1826
- this.stampCreateUserTag = async (input) => {
1977
+ this.stampCreateTvcApp = async (input) => {
1827
1978
  if (!this.stamper) {
1828
1979
  return undefined;
1829
1980
  }
1830
1981
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1831
1982
  const session = sessionData ? utils.parseSession(sessionData) : null;
1832
1983
  const { organizationId, timestampMs, ...parameters } = input;
1833
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag";
1984
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_app";
1834
1985
  const bodyWithType = {
1835
1986
  parameters,
1836
1987
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1837
1988
  timestampMs: timestampMs ?? String(Date.now()),
1838
- type: "ACTIVITY_TYPE_CREATE_USER_TAG",
1989
+ type: "ACTIVITY_TYPE_CREATE_TVC_APP",
1839
1990
  };
1840
1991
  const stringifiedBody = JSON.stringify(bodyWithType);
1841
1992
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1845,32 +1996,32 @@ class TurnkeySDKClientBase {
1845
1996
  url: fullUrl,
1846
1997
  };
1847
1998
  };
1848
- this.createUsers = async (input) => {
1999
+ this.createTvcDeployment = async (input) => {
1849
2000
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1850
2001
  const session = sessionData ? utils.parseSession(sessionData) : null;
1851
2002
  const { organizationId, timestampMs, ...rest } = input;
1852
- return this.command("/public/v1/submit/create_users", {
2003
+ return this.command("/public/v1/submit/create_tvc_deployment", {
1853
2004
  parameters: rest,
1854
2005
  organizationId: organizationId ??
1855
2006
  session?.organizationId ??
1856
2007
  this.config.organizationId,
1857
2008
  timestampMs: timestampMs ?? String(Date.now()),
1858
- type: "ACTIVITY_TYPE_CREATE_USERS_V3",
1859
- }, "createUsersResult");
2009
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
2010
+ }, "createTvcDeploymentResult");
1860
2011
  };
1861
- this.stampCreateUsers = async (input) => {
2012
+ this.stampCreateTvcDeployment = async (input) => {
1862
2013
  if (!this.stamper) {
1863
2014
  return undefined;
1864
2015
  }
1865
2016
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1866
2017
  const session = sessionData ? utils.parseSession(sessionData) : null;
1867
2018
  const { organizationId, timestampMs, ...parameters } = input;
1868
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_users";
2019
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_tvc_deployment";
1869
2020
  const bodyWithType = {
1870
2021
  parameters,
1871
2022
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1872
2023
  timestampMs: timestampMs ?? String(Date.now()),
1873
- type: "ACTIVITY_TYPE_CREATE_USERS_V3",
2024
+ type: "ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT",
1874
2025
  };
1875
2026
  const stringifiedBody = JSON.stringify(bodyWithType);
1876
2027
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1880,32 +2031,33 @@ class TurnkeySDKClientBase {
1880
2031
  url: fullUrl,
1881
2032
  };
1882
2033
  };
1883
- this.createWallet = async (input) => {
2034
+ this.createTvcManifestApprovals = async (input) => {
1884
2035
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1885
2036
  const session = sessionData ? utils.parseSession(sessionData) : null;
1886
2037
  const { organizationId, timestampMs, ...rest } = input;
1887
- return this.command("/public/v1/submit/create_wallet", {
2038
+ return this.command("/public/v1/submit/create_tvc_manifest_approvals", {
1888
2039
  parameters: rest,
1889
2040
  organizationId: organizationId ??
1890
2041
  session?.organizationId ??
1891
2042
  this.config.organizationId,
1892
2043
  timestampMs: timestampMs ?? String(Date.now()),
1893
- type: "ACTIVITY_TYPE_CREATE_WALLET",
1894
- }, "createWalletResult");
2044
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
2045
+ }, "createTvcManifestApprovalsResult");
1895
2046
  };
1896
- this.stampCreateWallet = async (input) => {
2047
+ this.stampCreateTvcManifestApprovals = async (input) => {
1897
2048
  if (!this.stamper) {
1898
2049
  return undefined;
1899
2050
  }
1900
2051
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1901
2052
  const session = sessionData ? utils.parseSession(sessionData) : null;
1902
2053
  const { organizationId, timestampMs, ...parameters } = input;
1903
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet";
2054
+ const fullUrl = this.config.apiBaseUrl +
2055
+ "/public/v1/submit/create_tvc_manifest_approvals";
1904
2056
  const bodyWithType = {
1905
2057
  parameters,
1906
2058
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1907
2059
  timestampMs: timestampMs ?? String(Date.now()),
1908
- type: "ACTIVITY_TYPE_CREATE_WALLET",
2060
+ type: "ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS",
1909
2061
  };
1910
2062
  const stringifiedBody = JSON.stringify(bodyWithType);
1911
2063
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1915,32 +2067,32 @@ class TurnkeySDKClientBase {
1915
2067
  url: fullUrl,
1916
2068
  };
1917
2069
  };
1918
- this.createWalletAccounts = async (input) => {
2070
+ this.createUserTag = async (input) => {
1919
2071
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1920
2072
  const session = sessionData ? utils.parseSession(sessionData) : null;
1921
2073
  const { organizationId, timestampMs, ...rest } = input;
1922
- return this.command("/public/v1/submit/create_wallet_accounts", {
2074
+ return this.command("/public/v1/submit/create_user_tag", {
1923
2075
  parameters: rest,
1924
2076
  organizationId: organizationId ??
1925
2077
  session?.organizationId ??
1926
2078
  this.config.organizationId,
1927
2079
  timestampMs: timestampMs ?? String(Date.now()),
1928
- type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
1929
- }, "createWalletAccountsResult");
2080
+ type: "ACTIVITY_TYPE_CREATE_USER_TAG",
2081
+ }, "createUserTagResult");
1930
2082
  };
1931
- this.stampCreateWalletAccounts = async (input) => {
2083
+ this.stampCreateUserTag = async (input) => {
1932
2084
  if (!this.stamper) {
1933
2085
  return undefined;
1934
2086
  }
1935
2087
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1936
2088
  const session = sessionData ? utils.parseSession(sessionData) : null;
1937
2089
  const { organizationId, timestampMs, ...parameters } = input;
1938
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts";
2090
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_user_tag";
1939
2091
  const bodyWithType = {
1940
2092
  parameters,
1941
2093
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1942
2094
  timestampMs: timestampMs ?? String(Date.now()),
1943
- type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
2095
+ type: "ACTIVITY_TYPE_CREATE_USER_TAG",
1944
2096
  };
1945
2097
  const stringifiedBody = JSON.stringify(bodyWithType);
1946
2098
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1950,32 +2102,32 @@ class TurnkeySDKClientBase {
1950
2102
  url: fullUrl,
1951
2103
  };
1952
2104
  };
1953
- this.createWebhookEndpoint = async (input) => {
2105
+ this.createUsers = async (input) => {
1954
2106
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1955
2107
  const session = sessionData ? utils.parseSession(sessionData) : null;
1956
2108
  const { organizationId, timestampMs, ...rest } = input;
1957
- return this.command("/public/v1/submit/create_webhook_endpoint", {
2109
+ return this.command("/public/v1/submit/create_users", {
1958
2110
  parameters: rest,
1959
2111
  organizationId: organizationId ??
1960
2112
  session?.organizationId ??
1961
2113
  this.config.organizationId,
1962
2114
  timestampMs: timestampMs ?? String(Date.now()),
1963
- type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
1964
- }, "createWebhookEndpointResult");
2115
+ type: "ACTIVITY_TYPE_CREATE_USERS_V4",
2116
+ }, "createUsersResult");
1965
2117
  };
1966
- this.stampCreateWebhookEndpoint = async (input) => {
2118
+ this.stampCreateUsers = async (input) => {
1967
2119
  if (!this.stamper) {
1968
2120
  return undefined;
1969
2121
  }
1970
2122
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1971
2123
  const session = sessionData ? utils.parseSession(sessionData) : null;
1972
2124
  const { organizationId, timestampMs, ...parameters } = input;
1973
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_webhook_endpoint";
2125
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_users";
1974
2126
  const bodyWithType = {
1975
2127
  parameters,
1976
2128
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
1977
2129
  timestampMs: timestampMs ?? String(Date.now()),
1978
- type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
2130
+ type: "ACTIVITY_TYPE_CREATE_USERS_V4",
1979
2131
  };
1980
2132
  const stringifiedBody = JSON.stringify(bodyWithType);
1981
2133
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -1985,32 +2137,32 @@ class TurnkeySDKClientBase {
1985
2137
  url: fullUrl,
1986
2138
  };
1987
2139
  };
1988
- this.deleteApiKeys = async (input) => {
2140
+ this.createWallet = async (input) => {
1989
2141
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
1990
2142
  const session = sessionData ? utils.parseSession(sessionData) : null;
1991
2143
  const { organizationId, timestampMs, ...rest } = input;
1992
- return this.command("/public/v1/submit/delete_api_keys", {
2144
+ return this.command("/public/v1/submit/create_wallet", {
1993
2145
  parameters: rest,
1994
2146
  organizationId: organizationId ??
1995
2147
  session?.organizationId ??
1996
2148
  this.config.organizationId,
1997
2149
  timestampMs: timestampMs ?? String(Date.now()),
1998
- type: "ACTIVITY_TYPE_DELETE_API_KEYS",
1999
- }, "deleteApiKeysResult");
2150
+ type: "ACTIVITY_TYPE_CREATE_WALLET",
2151
+ }, "createWalletResult");
2000
2152
  };
2001
- this.stampDeleteApiKeys = async (input) => {
2153
+ this.stampCreateWallet = async (input) => {
2002
2154
  if (!this.stamper) {
2003
2155
  return undefined;
2004
2156
  }
2005
2157
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2006
2158
  const session = sessionData ? utils.parseSession(sessionData) : null;
2007
2159
  const { organizationId, timestampMs, ...parameters } = input;
2008
- const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys";
2160
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet";
2009
2161
  const bodyWithType = {
2010
2162
  parameters,
2011
2163
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2012
2164
  timestampMs: timestampMs ?? String(Date.now()),
2013
- type: "ACTIVITY_TYPE_DELETE_API_KEYS",
2165
+ type: "ACTIVITY_TYPE_CREATE_WALLET",
2014
2166
  };
2015
2167
  const stringifiedBody = JSON.stringify(bodyWithType);
2016
2168
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -2020,18 +2172,123 @@ class TurnkeySDKClientBase {
2020
2172
  url: fullUrl,
2021
2173
  };
2022
2174
  };
2023
- this.deleteAuthenticators = async (input) => {
2175
+ this.createWalletAccounts = async (input) => {
2024
2176
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2025
2177
  const session = sessionData ? utils.parseSession(sessionData) : null;
2026
2178
  const { organizationId, timestampMs, ...rest } = input;
2027
- return this.command("/public/v1/submit/delete_authenticators", {
2179
+ return this.command("/public/v1/submit/create_wallet_accounts", {
2028
2180
  parameters: rest,
2029
2181
  organizationId: organizationId ??
2030
2182
  session?.organizationId ??
2031
2183
  this.config.organizationId,
2032
2184
  timestampMs: timestampMs ?? String(Date.now()),
2033
- type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
2034
- }, "deleteAuthenticatorsResult");
2185
+ type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
2186
+ }, "createWalletAccountsResult");
2187
+ };
2188
+ this.stampCreateWalletAccounts = async (input) => {
2189
+ if (!this.stamper) {
2190
+ return undefined;
2191
+ }
2192
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2193
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2194
+ const { organizationId, timestampMs, ...parameters } = input;
2195
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_wallet_accounts";
2196
+ const bodyWithType = {
2197
+ parameters,
2198
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2199
+ timestampMs: timestampMs ?? String(Date.now()),
2200
+ type: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
2201
+ };
2202
+ const stringifiedBody = JSON.stringify(bodyWithType);
2203
+ const stamp = await this.stamper.stamp(stringifiedBody);
2204
+ return {
2205
+ body: stringifiedBody,
2206
+ stamp: stamp,
2207
+ url: fullUrl,
2208
+ };
2209
+ };
2210
+ this.createWebhookEndpoint = async (input) => {
2211
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2212
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2213
+ const { organizationId, timestampMs, ...rest } = input;
2214
+ return this.command("/public/v1/submit/create_webhook_endpoint", {
2215
+ parameters: rest,
2216
+ organizationId: organizationId ??
2217
+ session?.organizationId ??
2218
+ this.config.organizationId,
2219
+ timestampMs: timestampMs ?? String(Date.now()),
2220
+ type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
2221
+ }, "createWebhookEndpointResult");
2222
+ };
2223
+ this.stampCreateWebhookEndpoint = async (input) => {
2224
+ if (!this.stamper) {
2225
+ return undefined;
2226
+ }
2227
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2228
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2229
+ const { organizationId, timestampMs, ...parameters } = input;
2230
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/create_webhook_endpoint";
2231
+ const bodyWithType = {
2232
+ parameters,
2233
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2234
+ timestampMs: timestampMs ?? String(Date.now()),
2235
+ type: "ACTIVITY_TYPE_CREATE_WEBHOOK_ENDPOINT",
2236
+ };
2237
+ const stringifiedBody = JSON.stringify(bodyWithType);
2238
+ const stamp = await this.stamper.stamp(stringifiedBody);
2239
+ return {
2240
+ body: stringifiedBody,
2241
+ stamp: stamp,
2242
+ url: fullUrl,
2243
+ };
2244
+ };
2245
+ this.deleteApiKeys = async (input) => {
2246
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2247
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2248
+ const { organizationId, timestampMs, ...rest } = input;
2249
+ return this.command("/public/v1/submit/delete_api_keys", {
2250
+ parameters: rest,
2251
+ organizationId: organizationId ??
2252
+ session?.organizationId ??
2253
+ this.config.organizationId,
2254
+ timestampMs: timestampMs ?? String(Date.now()),
2255
+ type: "ACTIVITY_TYPE_DELETE_API_KEYS",
2256
+ }, "deleteApiKeysResult");
2257
+ };
2258
+ this.stampDeleteApiKeys = async (input) => {
2259
+ if (!this.stamper) {
2260
+ return undefined;
2261
+ }
2262
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2263
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2264
+ const { organizationId, timestampMs, ...parameters } = input;
2265
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_api_keys";
2266
+ const bodyWithType = {
2267
+ parameters,
2268
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2269
+ timestampMs: timestampMs ?? String(Date.now()),
2270
+ type: "ACTIVITY_TYPE_DELETE_API_KEYS",
2271
+ };
2272
+ const stringifiedBody = JSON.stringify(bodyWithType);
2273
+ const stamp = await this.stamper.stamp(stringifiedBody);
2274
+ return {
2275
+ body: stringifiedBody,
2276
+ stamp: stamp,
2277
+ url: fullUrl,
2278
+ };
2279
+ };
2280
+ this.deleteAuthenticators = async (input) => {
2281
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2282
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2283
+ const { organizationId, timestampMs, ...rest } = input;
2284
+ return this.command("/public/v1/submit/delete_authenticators", {
2285
+ parameters: rest,
2286
+ organizationId: organizationId ??
2287
+ session?.organizationId ??
2288
+ this.config.organizationId,
2289
+ timestampMs: timestampMs ?? String(Date.now()),
2290
+ type: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
2291
+ }, "deleteAuthenticatorsResult");
2035
2292
  };
2036
2293
  this.stampDeleteAuthenticators = async (input) => {
2037
2294
  if (!this.stamper) {
@@ -2407,6 +2664,77 @@ class TurnkeySDKClientBase {
2407
2664
  url: fullUrl,
2408
2665
  };
2409
2666
  };
2667
+ this.deleteTvcAppAndDeployments = async (input) => {
2668
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2669
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2670
+ const { organizationId, timestampMs, ...rest } = input;
2671
+ return this.command("/public/v1/submit/delete_tvc_app_and_deployments", {
2672
+ parameters: rest,
2673
+ organizationId: organizationId ??
2674
+ session?.organizationId ??
2675
+ this.config.organizationId,
2676
+ timestampMs: timestampMs ?? String(Date.now()),
2677
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2678
+ }, "deleteTvcAppAndDeploymentsResult");
2679
+ };
2680
+ this.stampDeleteTvcAppAndDeployments = async (input) => {
2681
+ if (!this.stamper) {
2682
+ return undefined;
2683
+ }
2684
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2685
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2686
+ const { organizationId, timestampMs, ...parameters } = input;
2687
+ const fullUrl = this.config.apiBaseUrl +
2688
+ "/public/v1/submit/delete_tvc_app_and_deployments";
2689
+ const bodyWithType = {
2690
+ parameters,
2691
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2692
+ timestampMs: timestampMs ?? String(Date.now()),
2693
+ type: "ACTIVITY_TYPE_DELETE_TVC_APP_AND_DEPLOYMENTS",
2694
+ };
2695
+ const stringifiedBody = JSON.stringify(bodyWithType);
2696
+ const stamp = await this.stamper.stamp(stringifiedBody);
2697
+ return {
2698
+ body: stringifiedBody,
2699
+ stamp: stamp,
2700
+ url: fullUrl,
2701
+ };
2702
+ };
2703
+ this.deleteTvcDeployment = async (input) => {
2704
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2705
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2706
+ const { organizationId, timestampMs, ...rest } = input;
2707
+ return this.command("/public/v1/submit/delete_tvc_deployment", {
2708
+ parameters: rest,
2709
+ organizationId: organizationId ??
2710
+ session?.organizationId ??
2711
+ this.config.organizationId,
2712
+ timestampMs: timestampMs ?? String(Date.now()),
2713
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2714
+ }, "deleteTvcDeploymentResult");
2715
+ };
2716
+ this.stampDeleteTvcDeployment = async (input) => {
2717
+ if (!this.stamper) {
2718
+ return undefined;
2719
+ }
2720
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2721
+ const session = sessionData ? utils.parseSession(sessionData) : null;
2722
+ const { organizationId, timestampMs, ...parameters } = input;
2723
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_tvc_deployment";
2724
+ const bodyWithType = {
2725
+ parameters,
2726
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2727
+ timestampMs: timestampMs ?? String(Date.now()),
2728
+ type: "ACTIVITY_TYPE_DELETE_TVC_DEPLOYMENT",
2729
+ };
2730
+ const stringifiedBody = JSON.stringify(bodyWithType);
2731
+ const stamp = await this.stamper.stamp(stringifiedBody);
2732
+ return {
2733
+ body: stringifiedBody,
2734
+ stamp: stamp,
2735
+ url: fullUrl,
2736
+ };
2737
+ };
2410
2738
  this.deleteUserTags = async (input) => {
2411
2739
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
2412
2740
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -2942,8 +3270,8 @@ class TurnkeySDKClientBase {
2942
3270
  session?.organizationId ??
2943
3271
  this.config.organizationId,
2944
3272
  timestampMs: timestampMs ?? String(Date.now()),
2945
- type: "ACTIVITY_TYPE_INIT_OTP_V2",
2946
- }, "initOtpResult");
3273
+ type: "ACTIVITY_TYPE_INIT_OTP_V3",
3274
+ }, "initOtpResultV2");
2947
3275
  };
2948
3276
  this.stampInitOtp = async (input) => {
2949
3277
  if (!this.stamper) {
@@ -2957,7 +3285,7 @@ class TurnkeySDKClientBase {
2957
3285
  parameters,
2958
3286
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
2959
3287
  timestampMs: timestampMs ?? String(Date.now()),
2960
- type: "ACTIVITY_TYPE_INIT_OTP_V2",
3288
+ type: "ACTIVITY_TYPE_INIT_OTP_V3",
2961
3289
  };
2962
3290
  const stringifiedBody = JSON.stringify(bodyWithType);
2963
3291
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -3187,7 +3515,7 @@ class TurnkeySDKClientBase {
3187
3515
  session?.organizationId ??
3188
3516
  this.config.organizationId,
3189
3517
  timestampMs: timestampMs ?? String(Date.now()),
3190
- type: "ACTIVITY_TYPE_OTP_LOGIN",
3518
+ type: "ACTIVITY_TYPE_OTP_LOGIN_V2",
3191
3519
  }, "otpLoginResult");
3192
3520
  };
3193
3521
  this.stampOtpLogin = async (input) => {
@@ -3202,7 +3530,7 @@ class TurnkeySDKClientBase {
3202
3530
  parameters,
3203
3531
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3204
3532
  timestampMs: timestampMs ?? String(Date.now()),
3205
- type: "ACTIVITY_TYPE_OTP_LOGIN",
3533
+ type: "ACTIVITY_TYPE_OTP_LOGIN_V2",
3206
3534
  };
3207
3535
  const stringifiedBody = JSON.stringify(bodyWithType);
3208
3536
  const stamp = await this.stamper.stamp(stringifiedBody);
@@ -3280,6 +3608,41 @@ class TurnkeySDKClientBase {
3280
3608
  url: fullUrl,
3281
3609
  };
3282
3610
  };
3611
+ this.removeIpAllowlist = async (input) => {
3612
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3613
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3614
+ const { organizationId, timestampMs, ...rest } = input;
3615
+ return this.command("/public/v1/submit/remove_ip_allowlist", {
3616
+ parameters: rest,
3617
+ organizationId: organizationId ??
3618
+ session?.organizationId ??
3619
+ this.config.organizationId,
3620
+ timestampMs: timestampMs ?? String(Date.now()),
3621
+ type: "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST",
3622
+ }, "removeIpAllowlistResult");
3623
+ };
3624
+ this.stampRemoveIpAllowlist = async (input) => {
3625
+ if (!this.stamper) {
3626
+ return undefined;
3627
+ }
3628
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3629
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3630
+ const { organizationId, timestampMs, ...parameters } = input;
3631
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/remove_ip_allowlist";
3632
+ const bodyWithType = {
3633
+ parameters,
3634
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3635
+ timestampMs: timestampMs ?? String(Date.now()),
3636
+ type: "ACTIVITY_TYPE_REMOVE_IP_ALLOWLIST",
3637
+ };
3638
+ const stringifiedBody = JSON.stringify(bodyWithType);
3639
+ const stamp = await this.stamper.stamp(stringifiedBody);
3640
+ return {
3641
+ body: stringifiedBody,
3642
+ stamp: stamp,
3643
+ url: fullUrl,
3644
+ };
3645
+ };
3283
3646
  this.removeOrganizationFeature = async (input) => {
3284
3647
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3285
3648
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -3315,6 +3678,76 @@ class TurnkeySDKClientBase {
3315
3678
  url: fullUrl,
3316
3679
  };
3317
3680
  };
3681
+ this.restoreTvcDeployment = async (input) => {
3682
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3683
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3684
+ const { organizationId, timestampMs, ...rest } = input;
3685
+ return this.command("/public/v1/submit/restore_tvc_deployment", {
3686
+ parameters: rest,
3687
+ organizationId: organizationId ??
3688
+ session?.organizationId ??
3689
+ this.config.organizationId,
3690
+ timestampMs: timestampMs ?? String(Date.now()),
3691
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3692
+ }, "restoreTvcDeploymentResult");
3693
+ };
3694
+ this.stampRestoreTvcDeployment = async (input) => {
3695
+ if (!this.stamper) {
3696
+ return undefined;
3697
+ }
3698
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3699
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3700
+ const { organizationId, timestampMs, ...parameters } = input;
3701
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/restore_tvc_deployment";
3702
+ const bodyWithType = {
3703
+ parameters,
3704
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3705
+ timestampMs: timestampMs ?? String(Date.now()),
3706
+ type: "ACTIVITY_TYPE_RESTORE_TVC_DEPLOYMENT",
3707
+ };
3708
+ const stringifiedBody = JSON.stringify(bodyWithType);
3709
+ const stamp = await this.stamper.stamp(stringifiedBody);
3710
+ return {
3711
+ body: stringifiedBody,
3712
+ stamp: stamp,
3713
+ url: fullUrl,
3714
+ };
3715
+ };
3716
+ this.setIpAllowlist = async (input) => {
3717
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3718
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3719
+ const { organizationId, timestampMs, ...rest } = input;
3720
+ return this.command("/public/v1/submit/set_ip_allowlist", {
3721
+ parameters: rest,
3722
+ organizationId: organizationId ??
3723
+ session?.organizationId ??
3724
+ this.config.organizationId,
3725
+ timestampMs: timestampMs ?? String(Date.now()),
3726
+ type: "ACTIVITY_TYPE_SET_IP_ALLOWLIST",
3727
+ }, "setIpAllowlistResult");
3728
+ };
3729
+ this.stampSetIpAllowlist = async (input) => {
3730
+ if (!this.stamper) {
3731
+ return undefined;
3732
+ }
3733
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3734
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3735
+ const { organizationId, timestampMs, ...parameters } = input;
3736
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_ip_allowlist";
3737
+ const bodyWithType = {
3738
+ parameters,
3739
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3740
+ timestampMs: timestampMs ?? String(Date.now()),
3741
+ type: "ACTIVITY_TYPE_SET_IP_ALLOWLIST",
3742
+ };
3743
+ const stringifiedBody = JSON.stringify(bodyWithType);
3744
+ const stamp = await this.stamper.stamp(stringifiedBody);
3745
+ return {
3746
+ body: stringifiedBody,
3747
+ stamp: stamp,
3748
+ url: fullUrl,
3749
+ };
3750
+ };
3318
3751
  this.setOrganizationFeature = async (input) => {
3319
3752
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3320
3753
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -3350,6 +3783,41 @@ class TurnkeySDKClientBase {
3350
3783
  url: fullUrl,
3351
3784
  };
3352
3785
  };
3786
+ this.updateTvcAppLiveDeployment = async (input) => {
3787
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3788
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3789
+ const { organizationId, timestampMs, ...rest } = input;
3790
+ return this.command("/public/v1/submit/set_tvc_app_live_deployment", {
3791
+ parameters: rest,
3792
+ organizationId: organizationId ??
3793
+ session?.organizationId ??
3794
+ this.config.organizationId,
3795
+ timestampMs: timestampMs ?? String(Date.now()),
3796
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3797
+ }, "updateTvcAppLiveDeploymentResult");
3798
+ };
3799
+ this.stampUpdateTvcAppLiveDeployment = async (input) => {
3800
+ if (!this.stamper) {
3801
+ return undefined;
3802
+ }
3803
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3804
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3805
+ const { organizationId, timestampMs, ...parameters } = input;
3806
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/set_tvc_app_live_deployment";
3807
+ const bodyWithType = {
3808
+ parameters,
3809
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3810
+ timestampMs: timestampMs ?? String(Date.now()),
3811
+ type: "ACTIVITY_TYPE_UPDATE_TVC_APP_LIVE_DEPLOYMENT",
3812
+ };
3813
+ const stringifiedBody = JSON.stringify(bodyWithType);
3814
+ const stamp = await this.stamper.stamp(stringifiedBody);
3815
+ return {
3816
+ body: stringifiedBody,
3817
+ stamp: stamp,
3818
+ url: fullUrl,
3819
+ };
3820
+ };
3353
3821
  this.signRawPayload = async (input) => {
3354
3822
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3355
3823
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -3490,6 +3958,147 @@ class TurnkeySDKClientBase {
3490
3958
  url: fullUrl,
3491
3959
  };
3492
3960
  };
3961
+ this.sparkClaimTransfer = async (input) => {
3962
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3963
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3964
+ const { organizationId, timestampMs, ...rest } = input;
3965
+ return this.command("/public/v1/submit/spark_claim_transfer", {
3966
+ parameters: rest,
3967
+ organizationId: organizationId ??
3968
+ session?.organizationId ??
3969
+ this.config.organizationId,
3970
+ timestampMs: timestampMs ?? String(Date.now()),
3971
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
3972
+ }, "sparkClaimTransferResult");
3973
+ };
3974
+ this.stampSparkClaimTransfer = async (input) => {
3975
+ if (!this.stamper) {
3976
+ return undefined;
3977
+ }
3978
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3979
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3980
+ const { organizationId, timestampMs, ...parameters } = input;
3981
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_claim_transfer";
3982
+ const bodyWithType = {
3983
+ parameters,
3984
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
3985
+ timestampMs: timestampMs ?? String(Date.now()),
3986
+ type: "ACTIVITY_TYPE_SPARK_CLAIM_TRANSFER",
3987
+ };
3988
+ const stringifiedBody = JSON.stringify(bodyWithType);
3989
+ const stamp = await this.stamper.stamp(stringifiedBody);
3990
+ return {
3991
+ body: stringifiedBody,
3992
+ stamp: stamp,
3993
+ url: fullUrl,
3994
+ };
3995
+ };
3996
+ this.sparkPrepareLightningReceive = async (input) => {
3997
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3998
+ const session = sessionData ? utils.parseSession(sessionData) : null;
3999
+ const { organizationId, timestampMs, ...rest } = input;
4000
+ return this.command("/public/v1/submit/spark_prepare_lightning_receive", {
4001
+ parameters: rest,
4002
+ organizationId: organizationId ??
4003
+ session?.organizationId ??
4004
+ this.config.organizationId,
4005
+ timestampMs: timestampMs ?? String(Date.now()),
4006
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4007
+ }, "sparkPrepareLightningReceiveResult");
4008
+ };
4009
+ this.stampSparkPrepareLightningReceive = async (input) => {
4010
+ if (!this.stamper) {
4011
+ return undefined;
4012
+ }
4013
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
4014
+ const session = sessionData ? utils.parseSession(sessionData) : null;
4015
+ const { organizationId, timestampMs, ...parameters } = input;
4016
+ const fullUrl = this.config.apiBaseUrl +
4017
+ "/public/v1/submit/spark_prepare_lightning_receive";
4018
+ const bodyWithType = {
4019
+ parameters,
4020
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4021
+ timestampMs: timestampMs ?? String(Date.now()),
4022
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_LIGHTNING_RECEIVE",
4023
+ };
4024
+ const stringifiedBody = JSON.stringify(bodyWithType);
4025
+ const stamp = await this.stamper.stamp(stringifiedBody);
4026
+ return {
4027
+ body: stringifiedBody,
4028
+ stamp: stamp,
4029
+ url: fullUrl,
4030
+ };
4031
+ };
4032
+ this.sparkPrepareTransfer = async (input) => {
4033
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
4034
+ const session = sessionData ? utils.parseSession(sessionData) : null;
4035
+ const { organizationId, timestampMs, ...rest } = input;
4036
+ return this.command("/public/v1/submit/spark_prepare_transfer", {
4037
+ parameters: rest,
4038
+ organizationId: organizationId ??
4039
+ session?.organizationId ??
4040
+ this.config.organizationId,
4041
+ timestampMs: timestampMs ?? String(Date.now()),
4042
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4043
+ }, "sparkPrepareTransferResult");
4044
+ };
4045
+ this.stampSparkPrepareTransfer = async (input) => {
4046
+ if (!this.stamper) {
4047
+ return undefined;
4048
+ }
4049
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
4050
+ const session = sessionData ? utils.parseSession(sessionData) : null;
4051
+ const { organizationId, timestampMs, ...parameters } = input;
4052
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_prepare_transfer";
4053
+ const bodyWithType = {
4054
+ parameters,
4055
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4056
+ timestampMs: timestampMs ?? String(Date.now()),
4057
+ type: "ACTIVITY_TYPE_SPARK_PREPARE_TRANSFER",
4058
+ };
4059
+ const stringifiedBody = JSON.stringify(bodyWithType);
4060
+ const stamp = await this.stamper.stamp(stringifiedBody);
4061
+ return {
4062
+ body: stringifiedBody,
4063
+ stamp: stamp,
4064
+ url: fullUrl,
4065
+ };
4066
+ };
4067
+ this.sparkSignFrost = async (input) => {
4068
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
4069
+ const session = sessionData ? utils.parseSession(sessionData) : null;
4070
+ const { organizationId, timestampMs, ...rest } = input;
4071
+ return this.command("/public/v1/submit/spark_sign_frost", {
4072
+ parameters: rest,
4073
+ organizationId: organizationId ??
4074
+ session?.organizationId ??
4075
+ this.config.organizationId,
4076
+ timestampMs: timestampMs ?? String(Date.now()),
4077
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4078
+ }, "sparkSignFrostResult");
4079
+ };
4080
+ this.stampSparkSignFrost = async (input) => {
4081
+ if (!this.stamper) {
4082
+ return undefined;
4083
+ }
4084
+ const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
4085
+ const session = sessionData ? utils.parseSession(sessionData) : null;
4086
+ const { organizationId, timestampMs, ...parameters } = input;
4087
+ const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/spark_sign_frost";
4088
+ const bodyWithType = {
4089
+ parameters,
4090
+ organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4091
+ timestampMs: timestampMs ?? String(Date.now()),
4092
+ type: "ACTIVITY_TYPE_SPARK_SIGN_FROST",
4093
+ };
4094
+ const stringifiedBody = JSON.stringify(bodyWithType);
4095
+ const stamp = await this.stamper.stamp(stringifiedBody);
4096
+ return {
4097
+ body: stringifiedBody,
4098
+ stamp: stamp,
4099
+ url: fullUrl,
4100
+ };
4101
+ };
3493
4102
  this.stampLogin = async (input) => {
3494
4103
  const sessionData = await storage.getStorageValue(storage.StorageKeys.Session);
3495
4104
  const session = sessionData ? utils.parseSession(sessionData) : null;
@@ -3991,7 +4600,7 @@ class TurnkeySDKClientBase {
3991
4600
  session?.organizationId ??
3992
4601
  this.config.organizationId,
3993
4602
  timestampMs: timestampMs ?? String(Date.now()),
3994
- type: "ACTIVITY_TYPE_VERIFY_OTP",
4603
+ type: "ACTIVITY_TYPE_VERIFY_OTP_V2",
3995
4604
  }, "verifyOtpResult");
3996
4605
  };
3997
4606
  this.stampVerifyOtp = async (input) => {
@@ -4006,7 +4615,7 @@ class TurnkeySDKClientBase {
4006
4615
  parameters,
4007
4616
  organizationId: organizationId ?? session?.organizationId ?? this.config.organizationId,
4008
4617
  timestampMs: timestampMs ?? String(Date.now()),
4009
- type: "ACTIVITY_TYPE_VERIFY_OTP",
4618
+ type: "ACTIVITY_TYPE_VERIFY_OTP_V2",
4010
4619
  };
4011
4620
  const stringifiedBody = JSON.stringify(bodyWithType);
4012
4621
  const stamp = await this.stamper.stamp(stringifiedBody);