@seamapi/http 1.117.0 → 1.119.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 +594 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +219 -3
  4. package/dist/index.cjs +600 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +24 -0
  8. package/lib/seam/connect/routes/access-methods/access-methods.js +18 -0
  9. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  10. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +12 -0
  11. package/lib/seam/connect/routes/acs/encoders/encoders.js +9 -0
  12. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  13. package/lib/seam/connect/routes/seam/console/v1/index.d.ts +2 -0
  14. package/lib/seam/connect/routes/seam/console/v1/index.js +2 -0
  15. package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
  16. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.d.ts +1 -0
  17. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js +6 -0
  18. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js.map +1 -0
  19. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.d.ts +73 -0
  20. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js +140 -0
  21. package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js.map +1 -0
  22. package/lib/seam/connect/routes/seam/console/v1/sites/index.d.ts +1 -0
  23. package/lib/seam/connect/routes/seam/console/v1/sites/index.js +6 -0
  24. package/lib/seam/connect/routes/seam/console/v1/sites/index.js.map +1 -0
  25. package/lib/seam/connect/routes/seam/console/v1/sites/sites.d.ts +73 -0
  26. package/lib/seam/connect/routes/seam/console/v1/sites/sites.js +140 -0
  27. package/lib/seam/connect/routes/seam/console/v1/sites/sites.js.map +1 -0
  28. package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +4 -0
  29. package/lib/seam/connect/routes/seam/console/v1/v1.js +8 -0
  30. package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
  31. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +2 -0
  32. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +4 -0
  33. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
  34. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.d.ts +34 -0
  35. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js +104 -0
  36. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js.map +1 -0
  37. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.d.ts +1 -0
  38. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js +6 -0
  39. package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.js.map +1 -0
  40. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.d.ts +1 -0
  41. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js +1 -0
  42. package/lib/seam/connect/routes/seam/customer/v1/connectors/index.js.map +1 -1
  43. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +19 -4
  44. package/lib/seam/connect/routes/seam-http-endpoints.js +114 -0
  45. package/lib/seam/connect/routes/seam-http-endpoints.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-methods/access-methods.ts +76 -0
  50. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +39 -0
  51. package/src/lib/seam/connect/routes/seam/console/v1/index.ts +2 -0
  52. package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.ts +6 -0
  53. package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts +350 -0
  54. package/src/lib/seam/connect/routes/seam/console/v1/sites/index.ts +6 -0
  55. package/src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts +327 -0
  56. package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +13 -0
  57. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +8 -0
  58. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts +214 -0
  59. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/index.ts +6 -0
  60. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/index.ts +1 -0
  61. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +285 -0
  62. package/src/lib/version.ts +1 -1
package/dist/connect.cjs CHANGED
@@ -1862,6 +1862,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
1862
1862
  get unmanaged() {
1863
1863
  return SeamHttpAccessMethodsUnmanaged.fromClient(this.client, this.defaults);
1864
1864
  }
1865
+ assignCard(parameters, options = {}) {
1866
+ return new SeamHttpRequest(this, {
1867
+ pathname: "/access_methods/assign_card",
1868
+ method: "POST",
1869
+ body: parameters,
1870
+ responseKey: "action_attempt",
1871
+ options
1872
+ });
1873
+ }
1865
1874
  delete(parameters, options = {}) {
1866
1875
  return new SeamHttpRequest(this, {
1867
1876
  pathname: "/access_methods/delete",
@@ -1907,6 +1916,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
1907
1916
  options
1908
1917
  });
1909
1918
  }
1919
+ unlockDoor(parameters, options = {}) {
1920
+ return new SeamHttpRequest(this, {
1921
+ pathname: "/access_methods/unlock_door",
1922
+ method: "POST",
1923
+ body: parameters,
1924
+ responseKey: "action_attempt",
1925
+ options
1926
+ });
1927
+ }
1910
1928
  };
1911
1929
 
1912
1930
  // src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts
@@ -2944,6 +2962,15 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2944
2962
  options
2945
2963
  });
2946
2964
  }
2965
+ scanToAssignCredential(parameters, options = {}) {
2966
+ return new SeamHttpRequest(this, {
2967
+ pathname: "/acs/encoders/scan_to_assign_credential",
2968
+ method: "POST",
2969
+ body: parameters,
2970
+ responseKey: "action_attempt",
2971
+ options
2972
+ });
2973
+ }
2947
2974
  };
2948
2975
 
2949
2976
  // src/lib/seam/connect/routes/acs/entrances/entrances.ts
@@ -5823,6 +5850,303 @@ var SeamHttpPhones = class _SeamHttpPhones {
5823
5850
  }
5824
5851
  };
5825
5852
 
5853
+ // src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts
5854
+ var SeamHttpSeamConsoleV1LynxMigration = class _SeamHttpSeamConsoleV1LynxMigration {
5855
+ client;
5856
+ defaults;
5857
+ ltsVersion = seamApiLtsVersion;
5858
+ static ltsVersion = seamApiLtsVersion;
5859
+ constructor(apiKeyOrOptions = {}) {
5860
+ const options = parseOptions(apiKeyOrOptions);
5861
+ if (!options.isUndocumentedApiEnabled) {
5862
+ throw new Error(
5863
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5864
+ );
5865
+ }
5866
+ this.client = "client" in options ? options.client : createClient(options);
5867
+ this.defaults = limitToSeamHttpRequestOptions(options);
5868
+ }
5869
+ static fromClient(client, options = {}) {
5870
+ const constructorOptions = { ...options, client };
5871
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
5872
+ throw new SeamHttpInvalidOptionsError("Missing client");
5873
+ }
5874
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
5875
+ }
5876
+ static fromApiKey(apiKey, options = {}) {
5877
+ const constructorOptions = { ...options, apiKey };
5878
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
5879
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
5880
+ }
5881
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
5882
+ }
5883
+ static fromClientSessionToken(clientSessionToken, options = {}) {
5884
+ const constructorOptions = { ...options, clientSessionToken };
5885
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
5886
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
5887
+ }
5888
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
5889
+ }
5890
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
5891
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
5892
+ const clientOptions = parseOptions({ ...options, publishableKey });
5893
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
5894
+ throw new SeamHttpInvalidOptionsError(
5895
+ "The client option cannot be used with SeamHttpSeamConsoleV1LynxMigration.fromPublishableKey"
5896
+ );
5897
+ }
5898
+ const client = createClient(clientOptions);
5899
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
5900
+ const { token } = await clientSessions.getOrCreate({
5901
+ user_identifier_key: userIdentifierKey
5902
+ });
5903
+ return _SeamHttpSeamConsoleV1LynxMigration.fromClientSessionToken(
5904
+ token,
5905
+ options
5906
+ );
5907
+ }
5908
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
5909
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
5910
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
5911
+ throw new SeamHttpInvalidOptionsError(
5912
+ "Missing consoleSessionToken or workspaceId"
5913
+ );
5914
+ }
5915
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
5916
+ }
5917
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
5918
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
5919
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
5920
+ throw new SeamHttpInvalidOptionsError(
5921
+ "Missing personalAccessToken or workspaceId"
5922
+ );
5923
+ }
5924
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
5925
+ }
5926
+ createPaginator(request) {
5927
+ return new SeamPaginator(this, request);
5928
+ }
5929
+ async updateClientSessionToken(clientSessionToken) {
5930
+ const { headers } = this.client.defaults;
5931
+ const authHeaders = getAuthHeadersForClientSessionToken({
5932
+ clientSessionToken
5933
+ });
5934
+ for (const key of Object.keys(authHeaders)) {
5935
+ if (headers[key] == null) {
5936
+ throw new Error(
5937
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
5938
+ );
5939
+ }
5940
+ }
5941
+ this.client.defaults.headers = { ...headers, ...authHeaders };
5942
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
5943
+ await clientSessions.get();
5944
+ }
5945
+ getPropertyMigrationStatus(parameters, options = {}) {
5946
+ if (!this.defaults.isUndocumentedApiEnabled) {
5947
+ throw new Error(
5948
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5949
+ );
5950
+ }
5951
+ return new SeamHttpRequest(this, {
5952
+ pathname: "/seam/console/v1/lynx_migration/get_property_migration_status",
5953
+ method: "POST",
5954
+ body: parameters,
5955
+ responseKey: "lynx_migration_property_run",
5956
+ options
5957
+ });
5958
+ }
5959
+ getReservationMigrationStatus(parameters, options = {}) {
5960
+ if (!this.defaults.isUndocumentedApiEnabled) {
5961
+ throw new Error(
5962
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5963
+ );
5964
+ }
5965
+ return new SeamHttpRequest(this, {
5966
+ pathname: "/seam/console/v1/lynx_migration/get_reservation_migration_status",
5967
+ method: "POST",
5968
+ body: parameters,
5969
+ responseKey: "lynx_migration_reservation_run",
5970
+ options
5971
+ });
5972
+ }
5973
+ listPropertyReservations(parameters, options = {}) {
5974
+ if (!this.defaults.isUndocumentedApiEnabled) {
5975
+ throw new Error(
5976
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5977
+ );
5978
+ }
5979
+ return new SeamHttpRequest(this, {
5980
+ pathname: "/seam/console/v1/lynx_migration/list_property_reservations",
5981
+ method: "POST",
5982
+ body: parameters,
5983
+ responseKey: "lynx_migration_property_plan",
5984
+ options
5985
+ });
5986
+ }
5987
+ migrateProperty(parameters, options = {}) {
5988
+ if (!this.defaults.isUndocumentedApiEnabled) {
5989
+ throw new Error(
5990
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
5991
+ );
5992
+ }
5993
+ return new SeamHttpRequest(this, {
5994
+ pathname: "/seam/console/v1/lynx_migration/migrate_property",
5995
+ method: "POST",
5996
+ body: parameters,
5997
+ responseKey: "lynx_migration_property_run",
5998
+ options
5999
+ });
6000
+ }
6001
+ };
6002
+
6003
+ // src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts
6004
+ var SeamHttpSeamConsoleV1Sites = class _SeamHttpSeamConsoleV1Sites {
6005
+ client;
6006
+ defaults;
6007
+ ltsVersion = seamApiLtsVersion;
6008
+ static ltsVersion = seamApiLtsVersion;
6009
+ constructor(apiKeyOrOptions = {}) {
6010
+ const options = parseOptions(apiKeyOrOptions);
6011
+ if (!options.isUndocumentedApiEnabled) {
6012
+ throw new Error(
6013
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6014
+ );
6015
+ }
6016
+ this.client = "client" in options ? options.client : createClient(options);
6017
+ this.defaults = limitToSeamHttpRequestOptions(options);
6018
+ }
6019
+ static fromClient(client, options = {}) {
6020
+ const constructorOptions = { ...options, client };
6021
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
6022
+ throw new SeamHttpInvalidOptionsError("Missing client");
6023
+ }
6024
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6025
+ }
6026
+ static fromApiKey(apiKey, options = {}) {
6027
+ const constructorOptions = { ...options, apiKey };
6028
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
6029
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
6030
+ }
6031
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6032
+ }
6033
+ static fromClientSessionToken(clientSessionToken, options = {}) {
6034
+ const constructorOptions = { ...options, clientSessionToken };
6035
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
6036
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
6037
+ }
6038
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6039
+ }
6040
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
6041
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
6042
+ const clientOptions = parseOptions({ ...options, publishableKey });
6043
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
6044
+ throw new SeamHttpInvalidOptionsError(
6045
+ "The client option cannot be used with SeamHttpSeamConsoleV1Sites.fromPublishableKey"
6046
+ );
6047
+ }
6048
+ const client = createClient(clientOptions);
6049
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
6050
+ const { token } = await clientSessions.getOrCreate({
6051
+ user_identifier_key: userIdentifierKey
6052
+ });
6053
+ return _SeamHttpSeamConsoleV1Sites.fromClientSessionToken(token, options);
6054
+ }
6055
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
6056
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
6057
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
6058
+ throw new SeamHttpInvalidOptionsError(
6059
+ "Missing consoleSessionToken or workspaceId"
6060
+ );
6061
+ }
6062
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6063
+ }
6064
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
6065
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
6066
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
6067
+ throw new SeamHttpInvalidOptionsError(
6068
+ "Missing personalAccessToken or workspaceId"
6069
+ );
6070
+ }
6071
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6072
+ }
6073
+ createPaginator(request) {
6074
+ return new SeamPaginator(this, request);
6075
+ }
6076
+ async updateClientSessionToken(clientSessionToken) {
6077
+ const { headers } = this.client.defaults;
6078
+ const authHeaders = getAuthHeadersForClientSessionToken({
6079
+ clientSessionToken
6080
+ });
6081
+ for (const key of Object.keys(authHeaders)) {
6082
+ if (headers[key] == null) {
6083
+ throw new Error(
6084
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
6085
+ );
6086
+ }
6087
+ }
6088
+ this.client.defaults.headers = { ...headers, ...authHeaders };
6089
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6090
+ await clientSessions.get();
6091
+ }
6092
+ create(parameters, options = {}) {
6093
+ if (!this.defaults.isUndocumentedApiEnabled) {
6094
+ throw new Error(
6095
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6096
+ );
6097
+ }
6098
+ return new SeamHttpRequest(this, {
6099
+ pathname: "/seam/console/v1/sites/create",
6100
+ method: "POST",
6101
+ body: parameters,
6102
+ responseKey: "site",
6103
+ options
6104
+ });
6105
+ }
6106
+ delete(parameters, options = {}) {
6107
+ if (!this.defaults.isUndocumentedApiEnabled) {
6108
+ throw new Error(
6109
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6110
+ );
6111
+ }
6112
+ return new SeamHttpRequest(this, {
6113
+ pathname: "/seam/console/v1/sites/delete",
6114
+ method: "POST",
6115
+ body: parameters,
6116
+ responseKey: void 0,
6117
+ options
6118
+ });
6119
+ }
6120
+ list(parameters, options = {}) {
6121
+ if (!this.defaults.isUndocumentedApiEnabled) {
6122
+ throw new Error(
6123
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6124
+ );
6125
+ }
6126
+ return new SeamHttpRequest(this, {
6127
+ pathname: "/seam/console/v1/sites/list",
6128
+ method: "POST",
6129
+ body: parameters,
6130
+ responseKey: "sites",
6131
+ options
6132
+ });
6133
+ }
6134
+ update(parameters, options = {}) {
6135
+ if (!this.defaults.isUndocumentedApiEnabled) {
6136
+ throw new Error(
6137
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6138
+ );
6139
+ }
6140
+ return new SeamHttpRequest(this, {
6141
+ pathname: "/seam/console/v1/sites/update",
6142
+ method: "PATCH",
6143
+ body: parameters,
6144
+ responseKey: "site",
6145
+ options
6146
+ });
6147
+ }
6148
+ };
6149
+
5826
6150
  // src/lib/seam/connect/routes/seam/console/v1/timelines/timelines.ts
5827
6151
  var SeamHttpSeamConsoleV1Timelines = class _SeamHttpSeamConsoleV1Timelines {
5828
6152
  client;
@@ -6017,6 +6341,15 @@ var SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
6017
6341
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6018
6342
  await clientSessions.get();
6019
6343
  }
6344
+ get lynxMigration() {
6345
+ return SeamHttpSeamConsoleV1LynxMigration.fromClient(
6346
+ this.client,
6347
+ this.defaults
6348
+ );
6349
+ }
6350
+ get sites() {
6351
+ return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults);
6352
+ }
6020
6353
  get timelines() {
6021
6354
  return SeamHttpSeamConsoleV1Timelines.fromClient(this.client, this.defaults);
6022
6355
  }
@@ -6712,6 +7045,114 @@ var SeamHttpSeamCustomerV1ConnectorCustomers = class _SeamHttpSeamCustomerV1Conn
6712
7045
  }
6713
7046
  };
6714
7047
 
7048
+ // src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts
7049
+ var SeamHttpSeamCustomerV1ConnectorsExternalSites = class _SeamHttpSeamCustomerV1ConnectorsExternalSites {
7050
+ client;
7051
+ defaults;
7052
+ ltsVersion = seamApiLtsVersion;
7053
+ static ltsVersion = seamApiLtsVersion;
7054
+ constructor(apiKeyOrOptions = {}) {
7055
+ const options = parseOptions(apiKeyOrOptions);
7056
+ if (!options.isUndocumentedApiEnabled) {
7057
+ throw new Error(
7058
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7059
+ );
7060
+ }
7061
+ this.client = "client" in options ? options.client : createClient(options);
7062
+ this.defaults = limitToSeamHttpRequestOptions(options);
7063
+ }
7064
+ static fromClient(client, options = {}) {
7065
+ const constructorOptions = { ...options, client };
7066
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7067
+ throw new SeamHttpInvalidOptionsError("Missing client");
7068
+ }
7069
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7070
+ }
7071
+ static fromApiKey(apiKey, options = {}) {
7072
+ const constructorOptions = { ...options, apiKey };
7073
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7074
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
7075
+ }
7076
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7077
+ }
7078
+ static fromClientSessionToken(clientSessionToken, options = {}) {
7079
+ const constructorOptions = { ...options, clientSessionToken };
7080
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7081
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7082
+ }
7083
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7084
+ }
7085
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7086
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
7087
+ const clientOptions = parseOptions({ ...options, publishableKey });
7088
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
7089
+ throw new SeamHttpInvalidOptionsError(
7090
+ "The client option cannot be used with SeamHttpSeamCustomerV1ConnectorsExternalSites.fromPublishableKey"
7091
+ );
7092
+ }
7093
+ const client = createClient(clientOptions);
7094
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
7095
+ const { token } = await clientSessions.getOrCreate({
7096
+ user_identifier_key: userIdentifierKey
7097
+ });
7098
+ return _SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClientSessionToken(
7099
+ token,
7100
+ options
7101
+ );
7102
+ }
7103
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7104
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7105
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7106
+ throw new SeamHttpInvalidOptionsError(
7107
+ "Missing consoleSessionToken or workspaceId"
7108
+ );
7109
+ }
7110
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7111
+ }
7112
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7113
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
7114
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7115
+ throw new SeamHttpInvalidOptionsError(
7116
+ "Missing personalAccessToken or workspaceId"
7117
+ );
7118
+ }
7119
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7120
+ }
7121
+ createPaginator(request) {
7122
+ return new SeamPaginator(this, request);
7123
+ }
7124
+ async updateClientSessionToken(clientSessionToken) {
7125
+ const { headers } = this.client.defaults;
7126
+ const authHeaders = getAuthHeadersForClientSessionToken({
7127
+ clientSessionToken
7128
+ });
7129
+ for (const key of Object.keys(authHeaders)) {
7130
+ if (headers[key] == null) {
7131
+ throw new Error(
7132
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7133
+ );
7134
+ }
7135
+ }
7136
+ this.client.defaults.headers = { ...headers, ...authHeaders };
7137
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7138
+ await clientSessions.get();
7139
+ }
7140
+ list(parameters, options = {}) {
7141
+ if (!this.defaults.isUndocumentedApiEnabled) {
7142
+ throw new Error(
7143
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7144
+ );
7145
+ }
7146
+ return new SeamHttpRequest(this, {
7147
+ pathname: "/seam/customer/v1/connectors/external_sites/list",
7148
+ method: "POST",
7149
+ body: parameters,
7150
+ responseKey: "external_sites",
7151
+ options
7152
+ });
7153
+ }
7154
+ };
7155
+
6715
7156
  // src/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.ts
6716
7157
  var SeamHttpSeamCustomerV1ConnectorsIcal = class _SeamHttpSeamCustomerV1ConnectorsIcal {
6717
7158
  client;
@@ -6912,6 +7353,12 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
6912
7353
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6913
7354
  await clientSessions.get();
6914
7355
  }
7356
+ get externalSites() {
7357
+ return SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
7358
+ this.client,
7359
+ this.defaults
7360
+ );
7361
+ }
6915
7362
  get ical() {
6916
7363
  return SeamHttpSeamCustomerV1ConnectorsIcal.fromClient(
6917
7364
  this.client,
@@ -11023,6 +11470,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11023
11470
  return seam.update(...args);
11024
11471
  };
11025
11472
  }
11473
+ get "/access_methods/assign_card"() {
11474
+ const { client, defaults } = this;
11475
+ return function accessMethodsAssignCard(...args) {
11476
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults);
11477
+ return seam.assignCard(...args);
11478
+ };
11479
+ }
11026
11480
  get "/access_methods/delete"() {
11027
11481
  const { client, defaults } = this;
11028
11482
  return function accessMethodsDelete(...args) {
@@ -11058,6 +11512,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11058
11512
  return seam.list(...args);
11059
11513
  };
11060
11514
  }
11515
+ get "/access_methods/unlock_door"() {
11516
+ const { client, defaults } = this;
11517
+ return function accessMethodsUnlockDoor(...args) {
11518
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults);
11519
+ return seam.unlockDoor(...args);
11520
+ };
11521
+ }
11061
11522
  get "/access_methods/unmanaged/get"() {
11062
11523
  const { client, defaults } = this;
11063
11524
  return function accessMethodsUnmanagedGet(...args) {
@@ -11292,6 +11753,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11292
11753
  return seam.scanCredential(...args);
11293
11754
  };
11294
11755
  }
11756
+ get "/acs/encoders/scan_to_assign_credential"() {
11757
+ const { client, defaults } = this;
11758
+ return function acsEncodersScanToAssignCredential(...args) {
11759
+ const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
11760
+ return seam.scanToAssignCredential(...args);
11761
+ };
11762
+ }
11295
11763
  get "/acs/encoders/simulate/next_credential_encode_will_fail"() {
11296
11764
  const { client, defaults } = this;
11297
11765
  return function acsEncodersSimulateNextCredentialEncodeWillFail(...args) {
@@ -11975,6 +12443,114 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11975
12443
  return seam.getResourceLocator(...args);
11976
12444
  };
11977
12445
  }
12446
+ get "/seam/console/v1/lynx_migration/get_property_migration_status"() {
12447
+ const { client, defaults } = this;
12448
+ if (!this.defaults.isUndocumentedApiEnabled) {
12449
+ throw new Error(
12450
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12451
+ );
12452
+ }
12453
+ return function seamConsoleV1LynxMigrationGetPropertyMigrationStatus(...args) {
12454
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12455
+ client,
12456
+ defaults
12457
+ );
12458
+ return seam.getPropertyMigrationStatus(...args);
12459
+ };
12460
+ }
12461
+ get "/seam/console/v1/lynx_migration/get_reservation_migration_status"() {
12462
+ const { client, defaults } = this;
12463
+ if (!this.defaults.isUndocumentedApiEnabled) {
12464
+ throw new Error(
12465
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12466
+ );
12467
+ }
12468
+ return function seamConsoleV1LynxMigrationGetReservationMigrationStatus(...args) {
12469
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12470
+ client,
12471
+ defaults
12472
+ );
12473
+ return seam.getReservationMigrationStatus(...args);
12474
+ };
12475
+ }
12476
+ get "/seam/console/v1/lynx_migration/list_property_reservations"() {
12477
+ const { client, defaults } = this;
12478
+ if (!this.defaults.isUndocumentedApiEnabled) {
12479
+ throw new Error(
12480
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12481
+ );
12482
+ }
12483
+ return function seamConsoleV1LynxMigrationListPropertyReservations(...args) {
12484
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12485
+ client,
12486
+ defaults
12487
+ );
12488
+ return seam.listPropertyReservations(...args);
12489
+ };
12490
+ }
12491
+ get "/seam/console/v1/lynx_migration/migrate_property"() {
12492
+ const { client, defaults } = this;
12493
+ if (!this.defaults.isUndocumentedApiEnabled) {
12494
+ throw new Error(
12495
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12496
+ );
12497
+ }
12498
+ return function seamConsoleV1LynxMigrationMigrateProperty(...args) {
12499
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12500
+ client,
12501
+ defaults
12502
+ );
12503
+ return seam.migrateProperty(...args);
12504
+ };
12505
+ }
12506
+ get "/seam/console/v1/sites/create"() {
12507
+ const { client, defaults } = this;
12508
+ if (!this.defaults.isUndocumentedApiEnabled) {
12509
+ throw new Error(
12510
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12511
+ );
12512
+ }
12513
+ return function seamConsoleV1SitesCreate(...args) {
12514
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12515
+ return seam.create(...args);
12516
+ };
12517
+ }
12518
+ get "/seam/console/v1/sites/delete"() {
12519
+ const { client, defaults } = this;
12520
+ if (!this.defaults.isUndocumentedApiEnabled) {
12521
+ throw new Error(
12522
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12523
+ );
12524
+ }
12525
+ return function seamConsoleV1SitesDelete(...args) {
12526
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12527
+ return seam.delete(...args);
12528
+ };
12529
+ }
12530
+ get "/seam/console/v1/sites/list"() {
12531
+ const { client, defaults } = this;
12532
+ if (!this.defaults.isUndocumentedApiEnabled) {
12533
+ throw new Error(
12534
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12535
+ );
12536
+ }
12537
+ return function seamConsoleV1SitesList(...args) {
12538
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12539
+ return seam.list(...args);
12540
+ };
12541
+ }
12542
+ get "/seam/console/v1/sites/update"() {
12543
+ const { client, defaults } = this;
12544
+ if (!this.defaults.isUndocumentedApiEnabled) {
12545
+ throw new Error(
12546
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12547
+ );
12548
+ }
12549
+ return function seamConsoleV1SitesUpdate(...args) {
12550
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12551
+ return seam.update(...args);
12552
+ };
12553
+ }
11978
12554
  get "/seam/console/v1/timelines/get"() {
11979
12555
  const { client, defaults } = this;
11980
12556
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -12191,6 +12767,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
12191
12767
  return seam.update(...args);
12192
12768
  };
12193
12769
  }
12770
+ get "/seam/customer/v1/connectors/external_sites/list"() {
12771
+ const { client, defaults } = this;
12772
+ if (!this.defaults.isUndocumentedApiEnabled) {
12773
+ throw new Error(
12774
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12775
+ );
12776
+ }
12777
+ return function seamCustomerV1ConnectorsExternalSitesList(...args) {
12778
+ const seam = SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
12779
+ client,
12780
+ defaults
12781
+ );
12782
+ return seam.list(...args);
12783
+ };
12784
+ }
12194
12785
  get "/seam/customer/v1/connectors/ical/validate-config"() {
12195
12786
  const { client, defaults } = this;
12196
12787
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -13327,6 +13918,8 @@ exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
13327
13918
  exports.SeamHttpRequest = SeamHttpRequest;
13328
13919
  exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
13329
13920
  exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
13921
+ exports.SeamHttpSeamConsoleV1LynxMigration = SeamHttpSeamConsoleV1LynxMigration;
13922
+ exports.SeamHttpSeamConsoleV1Sites = SeamHttpSeamConsoleV1Sites;
13330
13923
  exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
13331
13924
  exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
13332
13925
  exports.SeamHttpSeamCustomerV1AccessGrants = SeamHttpSeamCustomerV1AccessGrants;
@@ -13335,6 +13928,7 @@ exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationR
13335
13928
  exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
13336
13929
  exports.SeamHttpSeamCustomerV1ConnectorCustomers = SeamHttpSeamCustomerV1ConnectorCustomers;
13337
13930
  exports.SeamHttpSeamCustomerV1Connectors = SeamHttpSeamCustomerV1Connectors;
13931
+ exports.SeamHttpSeamCustomerV1ConnectorsExternalSites = SeamHttpSeamCustomerV1ConnectorsExternalSites;
13338
13932
  exports.SeamHttpSeamCustomerV1ConnectorsIcal = SeamHttpSeamCustomerV1ConnectorsIcal;
13339
13933
  exports.SeamHttpSeamCustomerV1Customers = SeamHttpSeamCustomerV1Customers;
13340
13934
  exports.SeamHttpSeamCustomerV1CustomersAutomations = SeamHttpSeamCustomerV1CustomersAutomations;