@seamapi/http 1.72.0 → 1.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/connect.cjs +372 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +138 -3
  4. package/dist/index.cjs +378 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +2 -0
  8. package/lib/seam/connect/routes/access-grants/access-grants.js +4 -0
  9. package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
  10. package/lib/seam/connect/routes/access-grants/index.d.ts +1 -0
  11. package/lib/seam/connect/routes/access-grants/index.js +1 -0
  12. package/lib/seam/connect/routes/access-grants/index.js.map +1 -1
  13. package/lib/seam/connect/routes/access-grants/unmanaged/index.d.ts +1 -0
  14. package/lib/seam/connect/routes/access-grants/unmanaged/index.js +6 -0
  15. package/lib/seam/connect/routes/access-grants/unmanaged/index.js.map +1 -0
  16. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +47 -0
  17. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +107 -0
  18. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -0
  19. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +2 -0
  20. package/lib/seam/connect/routes/access-methods/access-methods.js +4 -0
  21. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  22. package/lib/seam/connect/routes/access-methods/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/access-methods/index.js +1 -0
  24. package/lib/seam/connect/routes/access-methods/index.js.map +1 -1
  25. package/lib/seam/connect/routes/access-methods/unmanaged/index.d.ts +1 -0
  26. package/lib/seam/connect/routes/access-methods/unmanaged/index.js +6 -0
  27. package/lib/seam/connect/routes/access-methods/unmanaged/index.js.map +1 -0
  28. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +47 -0
  29. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +107 -0
  30. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -0
  31. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +11 -2
  32. package/lib/seam/connect/routes/seam-http-endpoints.js +45 -0
  33. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  34. package/lib/seam/connect/routes/user-identities/index.d.ts +1 -0
  35. package/lib/seam/connect/routes/user-identities/index.js +1 -0
  36. package/lib/seam/connect/routes/user-identities/index.js.map +1 -1
  37. package/lib/seam/connect/routes/user-identities/unmanaged/index.d.ts +1 -0
  38. package/lib/seam/connect/routes/user-identities/unmanaged/index.js +6 -0
  39. package/lib/seam/connect/routes/user-identities/unmanaged/index.js.map +1 -0
  40. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +47 -0
  41. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +107 -0
  42. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -0
  43. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +2 -0
  44. package/lib/seam/connect/routes/user-identities/user-identities.js +4 -0
  45. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
  46. package/lib/version.d.ts +1 -1
  47. package/lib/version.js +1 -1
  48. package/package.json +3 -3
  49. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +6 -0
  50. package/src/lib/seam/connect/routes/access-grants/index.ts +1 -0
  51. package/src/lib/seam/connect/routes/access-grants/unmanaged/index.ts +6 -0
  52. package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +236 -0
  53. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +6 -0
  54. package/src/lib/seam/connect/routes/access-methods/index.ts +1 -0
  55. package/src/lib/seam/connect/routes/access-methods/unmanaged/index.ts +6 -0
  56. package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +237 -0
  57. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +112 -0
  58. package/src/lib/seam/connect/routes/user-identities/index.ts +1 -0
  59. package/src/lib/seam/connect/routes/user-identities/unmanaged/index.ts +6 -0
  60. package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +240 -0
  61. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +8 -0
  62. package/src/lib/version.ts +1 -1
package/dist/index.cjs CHANGED
@@ -57,7 +57,9 @@ __export(index_exports, {
57
57
  SeamHttpAccessCodesSimulate: () => SeamHttpAccessCodesSimulate,
58
58
  SeamHttpAccessCodesUnmanaged: () => SeamHttpAccessCodesUnmanaged,
59
59
  SeamHttpAccessGrants: () => SeamHttpAccessGrants,
60
+ SeamHttpAccessGrantsUnmanaged: () => SeamHttpAccessGrantsUnmanaged,
60
61
  SeamHttpAccessMethods: () => SeamHttpAccessMethods,
62
+ SeamHttpAccessMethodsUnmanaged: () => SeamHttpAccessMethodsUnmanaged,
61
63
  SeamHttpAcs: () => SeamHttpAcs,
62
64
  SeamHttpAcsAccessGroups: () => SeamHttpAcsAccessGroups,
63
65
  SeamHttpAcsAccessGroupsUnmanaged: () => SeamHttpAcsAccessGroupsUnmanaged,
@@ -119,6 +121,7 @@ __export(index_exports, {
119
121
  SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
120
122
  SeamHttpUserIdentities: () => SeamHttpUserIdentities,
121
123
  SeamHttpUserIdentitiesEnrollmentAutomations: () => SeamHttpUserIdentitiesEnrollmentAutomations,
124
+ SeamHttpUserIdentitiesUnmanaged: () => SeamHttpUserIdentitiesUnmanaged,
122
125
  SeamHttpWebhooks: () => SeamHttpWebhooks,
123
126
  SeamHttpWithoutWorkspace: () => SeamHttpWithoutWorkspace,
124
127
  SeamHttpWithoutWorkspaceInvalidOptionsError: () => SeamHttpWithoutWorkspaceInvalidOptionsError,
@@ -159,7 +162,9 @@ __export(connect_exports, {
159
162
  SeamHttpAccessCodesSimulate: () => SeamHttpAccessCodesSimulate,
160
163
  SeamHttpAccessCodesUnmanaged: () => SeamHttpAccessCodesUnmanaged,
161
164
  SeamHttpAccessGrants: () => SeamHttpAccessGrants,
165
+ SeamHttpAccessGrantsUnmanaged: () => SeamHttpAccessGrantsUnmanaged,
162
166
  SeamHttpAccessMethods: () => SeamHttpAccessMethods,
167
+ SeamHttpAccessMethodsUnmanaged: () => SeamHttpAccessMethodsUnmanaged,
163
168
  SeamHttpAcs: () => SeamHttpAcs,
164
169
  SeamHttpAcsAccessGroups: () => SeamHttpAcsAccessGroups,
165
170
  SeamHttpAcsAccessGroupsUnmanaged: () => SeamHttpAcsAccessGroupsUnmanaged,
@@ -221,6 +226,7 @@ __export(connect_exports, {
221
226
  SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
222
227
  SeamHttpUserIdentities: () => SeamHttpUserIdentities,
223
228
  SeamHttpUserIdentitiesEnrollmentAutomations: () => SeamHttpUserIdentitiesEnrollmentAutomations,
229
+ SeamHttpUserIdentitiesUnmanaged: () => SeamHttpUserIdentitiesUnmanaged,
224
230
  SeamHttpWebhooks: () => SeamHttpWebhooks,
225
231
  SeamHttpWithoutWorkspace: () => SeamHttpWithoutWorkspace,
226
232
  SeamHttpWithoutWorkspaceInvalidOptionsError: () => SeamHttpWithoutWorkspaceInvalidOptionsError,
@@ -1633,6 +1639,110 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1633
1639
  }
1634
1640
  };
1635
1641
 
1642
+ // src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts
1643
+ var SeamHttpAccessGrantsUnmanaged = class _SeamHttpAccessGrantsUnmanaged {
1644
+ client;
1645
+ defaults;
1646
+ ltsVersion = seamApiLtsVersion;
1647
+ static ltsVersion = seamApiLtsVersion;
1648
+ constructor(apiKeyOrOptions = {}) {
1649
+ const options = parseOptions(apiKeyOrOptions);
1650
+ this.client = "client" in options ? options.client : createClient(options);
1651
+ this.defaults = limitToSeamHttpRequestOptions(options);
1652
+ }
1653
+ static fromClient(client, options = {}) {
1654
+ const constructorOptions = { ...options, client };
1655
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
1656
+ throw new SeamHttpInvalidOptionsError("Missing client");
1657
+ }
1658
+ return new _SeamHttpAccessGrantsUnmanaged(constructorOptions);
1659
+ }
1660
+ static fromApiKey(apiKey, options = {}) {
1661
+ const constructorOptions = { ...options, apiKey };
1662
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
1663
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
1664
+ }
1665
+ return new _SeamHttpAccessGrantsUnmanaged(constructorOptions);
1666
+ }
1667
+ static fromClientSessionToken(clientSessionToken, options = {}) {
1668
+ const constructorOptions = { ...options, clientSessionToken };
1669
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
1670
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
1671
+ }
1672
+ return new _SeamHttpAccessGrantsUnmanaged(constructorOptions);
1673
+ }
1674
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
1675
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
1676
+ const clientOptions = parseOptions({ ...options, publishableKey });
1677
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
1678
+ throw new SeamHttpInvalidOptionsError(
1679
+ "The client option cannot be used with SeamHttpAccessGrantsUnmanaged.fromPublishableKey"
1680
+ );
1681
+ }
1682
+ const client = createClient(clientOptions);
1683
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
1684
+ const { token } = await clientSessions.getOrCreate({
1685
+ user_identifier_key: userIdentifierKey
1686
+ });
1687
+ return _SeamHttpAccessGrantsUnmanaged.fromClientSessionToken(token, options);
1688
+ }
1689
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
1690
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
1691
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
1692
+ throw new SeamHttpInvalidOptionsError(
1693
+ "Missing consoleSessionToken or workspaceId"
1694
+ );
1695
+ }
1696
+ return new _SeamHttpAccessGrantsUnmanaged(constructorOptions);
1697
+ }
1698
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
1699
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
1700
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
1701
+ throw new SeamHttpInvalidOptionsError(
1702
+ "Missing personalAccessToken or workspaceId"
1703
+ );
1704
+ }
1705
+ return new _SeamHttpAccessGrantsUnmanaged(constructorOptions);
1706
+ }
1707
+ createPaginator(request) {
1708
+ return new SeamPaginator(this, request);
1709
+ }
1710
+ async updateClientSessionToken(clientSessionToken) {
1711
+ const { headers } = this.client.defaults;
1712
+ const authHeaders = getAuthHeadersForClientSessionToken({
1713
+ clientSessionToken
1714
+ });
1715
+ for (const key of Object.keys(authHeaders)) {
1716
+ if (headers[key] == null) {
1717
+ throw new Error(
1718
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
1719
+ );
1720
+ }
1721
+ }
1722
+ this.client.defaults.headers = { ...headers, ...authHeaders };
1723
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1724
+ await clientSessions.get();
1725
+ }
1726
+ get(parameters, options = {}) {
1727
+ return new SeamHttpRequest(this, {
1728
+ pathname: "/access_grants/unmanaged/get",
1729
+ method: "POST",
1730
+ body: parameters,
1731
+ responseKey: "access_grant",
1732
+ options
1733
+ });
1734
+ }
1735
+ list(parameters, options = {}) {
1736
+ return new SeamHttpRequest(this, {
1737
+ pathname: "/access_grants/unmanaged/list",
1738
+ method: "POST",
1739
+ body: parameters,
1740
+ responseKey: "access_grants",
1741
+ options
1742
+ });
1743
+ }
1744
+ };
1745
+
1636
1746
  // src/lib/seam/connect/routes/access-grants/access-grants.ts
1637
1747
  var SeamHttpAccessGrants = class _SeamHttpAccessGrants {
1638
1748
  client;
@@ -1717,6 +1827,9 @@ var SeamHttpAccessGrants = class _SeamHttpAccessGrants {
1717
1827
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1718
1828
  await clientSessions.get();
1719
1829
  }
1830
+ get unmanaged() {
1831
+ return SeamHttpAccessGrantsUnmanaged.fromClient(this.client, this.defaults);
1832
+ }
1720
1833
  create(parameters, options = {}) {
1721
1834
  return new SeamHttpRequest(this, {
1722
1835
  pathname: "/access_grants/create",
@@ -1773,6 +1886,110 @@ var SeamHttpAccessGrants = class _SeamHttpAccessGrants {
1773
1886
  }
1774
1887
  };
1775
1888
 
1889
+ // src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts
1890
+ var SeamHttpAccessMethodsUnmanaged = class _SeamHttpAccessMethodsUnmanaged {
1891
+ client;
1892
+ defaults;
1893
+ ltsVersion = seamApiLtsVersion;
1894
+ static ltsVersion = seamApiLtsVersion;
1895
+ constructor(apiKeyOrOptions = {}) {
1896
+ const options = parseOptions(apiKeyOrOptions);
1897
+ this.client = "client" in options ? options.client : createClient(options);
1898
+ this.defaults = limitToSeamHttpRequestOptions(options);
1899
+ }
1900
+ static fromClient(client, options = {}) {
1901
+ const constructorOptions = { ...options, client };
1902
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
1903
+ throw new SeamHttpInvalidOptionsError("Missing client");
1904
+ }
1905
+ return new _SeamHttpAccessMethodsUnmanaged(constructorOptions);
1906
+ }
1907
+ static fromApiKey(apiKey, options = {}) {
1908
+ const constructorOptions = { ...options, apiKey };
1909
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
1910
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
1911
+ }
1912
+ return new _SeamHttpAccessMethodsUnmanaged(constructorOptions);
1913
+ }
1914
+ static fromClientSessionToken(clientSessionToken, options = {}) {
1915
+ const constructorOptions = { ...options, clientSessionToken };
1916
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
1917
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
1918
+ }
1919
+ return new _SeamHttpAccessMethodsUnmanaged(constructorOptions);
1920
+ }
1921
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
1922
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
1923
+ const clientOptions = parseOptions({ ...options, publishableKey });
1924
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
1925
+ throw new SeamHttpInvalidOptionsError(
1926
+ "The client option cannot be used with SeamHttpAccessMethodsUnmanaged.fromPublishableKey"
1927
+ );
1928
+ }
1929
+ const client = createClient(clientOptions);
1930
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
1931
+ const { token } = await clientSessions.getOrCreate({
1932
+ user_identifier_key: userIdentifierKey
1933
+ });
1934
+ return _SeamHttpAccessMethodsUnmanaged.fromClientSessionToken(token, options);
1935
+ }
1936
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
1937
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
1938
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
1939
+ throw new SeamHttpInvalidOptionsError(
1940
+ "Missing consoleSessionToken or workspaceId"
1941
+ );
1942
+ }
1943
+ return new _SeamHttpAccessMethodsUnmanaged(constructorOptions);
1944
+ }
1945
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
1946
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
1947
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
1948
+ throw new SeamHttpInvalidOptionsError(
1949
+ "Missing personalAccessToken or workspaceId"
1950
+ );
1951
+ }
1952
+ return new _SeamHttpAccessMethodsUnmanaged(constructorOptions);
1953
+ }
1954
+ createPaginator(request) {
1955
+ return new SeamPaginator(this, request);
1956
+ }
1957
+ async updateClientSessionToken(clientSessionToken) {
1958
+ const { headers } = this.client.defaults;
1959
+ const authHeaders = getAuthHeadersForClientSessionToken({
1960
+ clientSessionToken
1961
+ });
1962
+ for (const key of Object.keys(authHeaders)) {
1963
+ if (headers[key] == null) {
1964
+ throw new Error(
1965
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
1966
+ );
1967
+ }
1968
+ }
1969
+ this.client.defaults.headers = { ...headers, ...authHeaders };
1970
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1971
+ await clientSessions.get();
1972
+ }
1973
+ get(parameters, options = {}) {
1974
+ return new SeamHttpRequest(this, {
1975
+ pathname: "/access_methods/unmanaged/get",
1976
+ method: "POST",
1977
+ body: parameters,
1978
+ responseKey: "access_method",
1979
+ options
1980
+ });
1981
+ }
1982
+ list(parameters, options = {}) {
1983
+ return new SeamHttpRequest(this, {
1984
+ pathname: "/access_methods/unmanaged/list",
1985
+ method: "POST",
1986
+ body: parameters,
1987
+ responseKey: "access_methods",
1988
+ options
1989
+ });
1990
+ }
1991
+ };
1992
+
1776
1993
  // src/lib/seam/connect/routes/access-methods/access-methods.ts
1777
1994
  var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
1778
1995
  client;
@@ -1857,6 +2074,9 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
1857
2074
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1858
2075
  await clientSessions.get();
1859
2076
  }
2077
+ get unmanaged() {
2078
+ return SeamHttpAccessMethodsUnmanaged.fromClient(this.client, this.defaults);
2079
+ }
1860
2080
  delete(parameters, options = {}) {
1861
2081
  return new SeamHttpRequest(this, {
1862
2082
  pathname: "/access_methods/delete",
@@ -8051,6 +8271,113 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
8051
8271
  }
8052
8272
  };
8053
8273
 
8274
+ // src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts
8275
+ var SeamHttpUserIdentitiesUnmanaged = class _SeamHttpUserIdentitiesUnmanaged {
8276
+ client;
8277
+ defaults;
8278
+ ltsVersion = seamApiLtsVersion;
8279
+ static ltsVersion = seamApiLtsVersion;
8280
+ constructor(apiKeyOrOptions = {}) {
8281
+ const options = parseOptions(apiKeyOrOptions);
8282
+ this.client = "client" in options ? options.client : createClient(options);
8283
+ this.defaults = limitToSeamHttpRequestOptions(options);
8284
+ }
8285
+ static fromClient(client, options = {}) {
8286
+ const constructorOptions = { ...options, client };
8287
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
8288
+ throw new SeamHttpInvalidOptionsError("Missing client");
8289
+ }
8290
+ return new _SeamHttpUserIdentitiesUnmanaged(constructorOptions);
8291
+ }
8292
+ static fromApiKey(apiKey, options = {}) {
8293
+ const constructorOptions = { ...options, apiKey };
8294
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
8295
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
8296
+ }
8297
+ return new _SeamHttpUserIdentitiesUnmanaged(constructorOptions);
8298
+ }
8299
+ static fromClientSessionToken(clientSessionToken, options = {}) {
8300
+ const constructorOptions = { ...options, clientSessionToken };
8301
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
8302
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
8303
+ }
8304
+ return new _SeamHttpUserIdentitiesUnmanaged(constructorOptions);
8305
+ }
8306
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
8307
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
8308
+ const clientOptions = parseOptions({ ...options, publishableKey });
8309
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
8310
+ throw new SeamHttpInvalidOptionsError(
8311
+ "The client option cannot be used with SeamHttpUserIdentitiesUnmanaged.fromPublishableKey"
8312
+ );
8313
+ }
8314
+ const client = createClient(clientOptions);
8315
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
8316
+ const { token } = await clientSessions.getOrCreate({
8317
+ user_identifier_key: userIdentifierKey
8318
+ });
8319
+ return _SeamHttpUserIdentitiesUnmanaged.fromClientSessionToken(
8320
+ token,
8321
+ options
8322
+ );
8323
+ }
8324
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
8325
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
8326
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
8327
+ throw new SeamHttpInvalidOptionsError(
8328
+ "Missing consoleSessionToken or workspaceId"
8329
+ );
8330
+ }
8331
+ return new _SeamHttpUserIdentitiesUnmanaged(constructorOptions);
8332
+ }
8333
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
8334
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
8335
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
8336
+ throw new SeamHttpInvalidOptionsError(
8337
+ "Missing personalAccessToken or workspaceId"
8338
+ );
8339
+ }
8340
+ return new _SeamHttpUserIdentitiesUnmanaged(constructorOptions);
8341
+ }
8342
+ createPaginator(request) {
8343
+ return new SeamPaginator(this, request);
8344
+ }
8345
+ async updateClientSessionToken(clientSessionToken) {
8346
+ const { headers } = this.client.defaults;
8347
+ const authHeaders = getAuthHeadersForClientSessionToken({
8348
+ clientSessionToken
8349
+ });
8350
+ for (const key of Object.keys(authHeaders)) {
8351
+ if (headers[key] == null) {
8352
+ throw new Error(
8353
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
8354
+ );
8355
+ }
8356
+ }
8357
+ this.client.defaults.headers = { ...headers, ...authHeaders };
8358
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
8359
+ await clientSessions.get();
8360
+ }
8361
+ get(parameters, options = {}) {
8362
+ return new SeamHttpRequest(this, {
8363
+ pathname: "/user_identities/unmanaged/get",
8364
+ method: "POST",
8365
+ body: parameters,
8366
+ responseKey: "user_identity",
8367
+ options
8368
+ });
8369
+ }
8370
+ list(parameters, options = {}) {
8371
+ return new SeamHttpRequest(this, {
8372
+ pathname: "/user_identities/unmanaged/list",
8373
+ method: "POST",
8374
+ body: parameters,
8375
+ responseKey: "user_identities",
8376
+ options
8377
+ });
8378
+ }
8379
+ };
8380
+
8054
8381
  // src/lib/seam/connect/routes/user-identities/user-identities.ts
8055
8382
  var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
8056
8383
  client;
@@ -8141,6 +8468,12 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
8141
8468
  this.defaults
8142
8469
  );
8143
8470
  }
8471
+ get unmanaged() {
8472
+ return SeamHttpUserIdentitiesUnmanaged.fromClient(
8473
+ this.client,
8474
+ this.defaults
8475
+ );
8476
+ }
8144
8477
  addAcsUser(parameters, options = {}) {
8145
8478
  return new SeamHttpRequest(this, {
8146
8479
  pathname: "/user_identities/add_acs_user",
@@ -9096,6 +9429,20 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
9096
9429
  return seam.update(...args);
9097
9430
  };
9098
9431
  }
9432
+ get "/access_grants/unmanaged/get"() {
9433
+ const { client, defaults } = this;
9434
+ return function accessGrantsUnmanagedGet(...args) {
9435
+ const seam = SeamHttpAccessGrantsUnmanaged.fromClient(client, defaults);
9436
+ return seam.get(...args);
9437
+ };
9438
+ }
9439
+ get "/access_grants/unmanaged/list"() {
9440
+ const { client, defaults } = this;
9441
+ return function accessGrantsUnmanagedList(...args) {
9442
+ const seam = SeamHttpAccessGrantsUnmanaged.fromClient(client, defaults);
9443
+ return seam.list(...args);
9444
+ };
9445
+ }
9099
9446
  get "/access_methods/delete"() {
9100
9447
  const { client, defaults } = this;
9101
9448
  return function accessMethodsDelete(...args) {
@@ -9131,6 +9478,20 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
9131
9478
  return seam.list(...args);
9132
9479
  };
9133
9480
  }
9481
+ get "/access_methods/unmanaged/get"() {
9482
+ const { client, defaults } = this;
9483
+ return function accessMethodsUnmanagedGet(...args) {
9484
+ const seam = SeamHttpAccessMethodsUnmanaged.fromClient(client, defaults);
9485
+ return seam.get(...args);
9486
+ };
9487
+ }
9488
+ get "/access_methods/unmanaged/list"() {
9489
+ const { client, defaults } = this;
9490
+ return function accessMethodsUnmanagedList(...args) {
9491
+ const seam = SeamHttpAccessMethodsUnmanaged.fromClient(client, defaults);
9492
+ return seam.list(...args);
9493
+ };
9494
+ }
9134
9495
  get "/acs/access_groups/add_user"() {
9135
9496
  const { client, defaults } = this;
9136
9497
  return function acsAccessGroupsAddUser(...args) {
@@ -10603,6 +10964,20 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10603
10964
  return seam.list(...args);
10604
10965
  };
10605
10966
  }
10967
+ get "/user_identities/unmanaged/get"() {
10968
+ const { client, defaults } = this;
10969
+ return function userIdentitiesUnmanagedGet(...args) {
10970
+ const seam = SeamHttpUserIdentitiesUnmanaged.fromClient(client, defaults);
10971
+ return seam.get(...args);
10972
+ };
10973
+ }
10974
+ get "/user_identities/unmanaged/list"() {
10975
+ const { client, defaults } = this;
10976
+ return function userIdentitiesUnmanagedList(...args) {
10977
+ const seam = SeamHttpUserIdentitiesUnmanaged.fromClient(client, defaults);
10978
+ return seam.list(...args);
10979
+ };
10980
+ }
10606
10981
  get "/webhooks/create"() {
10607
10982
  const { client, defaults } = this;
10608
10983
  return function webhooksCreate(...args) {
@@ -10878,7 +11253,9 @@ exports.SeamHttpAccessCodes = SeamHttpAccessCodes;
10878
11253
  exports.SeamHttpAccessCodesSimulate = SeamHttpAccessCodesSimulate;
10879
11254
  exports.SeamHttpAccessCodesUnmanaged = SeamHttpAccessCodesUnmanaged;
10880
11255
  exports.SeamHttpAccessGrants = SeamHttpAccessGrants;
11256
+ exports.SeamHttpAccessGrantsUnmanaged = SeamHttpAccessGrantsUnmanaged;
10881
11257
  exports.SeamHttpAccessMethods = SeamHttpAccessMethods;
11258
+ exports.SeamHttpAccessMethodsUnmanaged = SeamHttpAccessMethodsUnmanaged;
10882
11259
  exports.SeamHttpAcs = SeamHttpAcs;
10883
11260
  exports.SeamHttpAcsAccessGroups = SeamHttpAcsAccessGroups;
10884
11261
  exports.SeamHttpAcsAccessGroupsUnmanaged = SeamHttpAcsAccessGroupsUnmanaged;
@@ -10940,6 +11317,7 @@ exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
10940
11317
  exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
10941
11318
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
10942
11319
  exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
11320
+ exports.SeamHttpUserIdentitiesUnmanaged = SeamHttpUserIdentitiesUnmanaged;
10943
11321
  exports.SeamHttpWebhooks = SeamHttpWebhooks;
10944
11322
  exports.SeamHttpWithoutWorkspace = SeamHttpWithoutWorkspace;
10945
11323
  exports.SeamHttpWithoutWorkspaceInvalidOptionsError = SeamHttpWithoutWorkspaceInvalidOptionsError;