@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/index.cjs CHANGED
@@ -103,6 +103,8 @@ __export(index_exports, {
103
103
  SeamHttpRequest: () => SeamHttpRequest,
104
104
  SeamHttpSeamConsole: () => SeamHttpSeamConsole,
105
105
  SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
106
+ SeamHttpSeamConsoleV1LynxMigration: () => SeamHttpSeamConsoleV1LynxMigration,
107
+ SeamHttpSeamConsoleV1Sites: () => SeamHttpSeamConsoleV1Sites,
106
108
  SeamHttpSeamConsoleV1Timelines: () => SeamHttpSeamConsoleV1Timelines,
107
109
  SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
108
110
  SeamHttpSeamCustomerV1AccessGrants: () => SeamHttpSeamCustomerV1AccessGrants,
@@ -111,6 +113,7 @@ __export(index_exports, {
111
113
  SeamHttpSeamCustomerV1Automations: () => SeamHttpSeamCustomerV1Automations,
112
114
  SeamHttpSeamCustomerV1ConnectorCustomers: () => SeamHttpSeamCustomerV1ConnectorCustomers,
113
115
  SeamHttpSeamCustomerV1Connectors: () => SeamHttpSeamCustomerV1Connectors,
116
+ SeamHttpSeamCustomerV1ConnectorsExternalSites: () => SeamHttpSeamCustomerV1ConnectorsExternalSites,
114
117
  SeamHttpSeamCustomerV1ConnectorsIcal: () => SeamHttpSeamCustomerV1ConnectorsIcal,
115
118
  SeamHttpSeamCustomerV1Customers: () => SeamHttpSeamCustomerV1Customers,
116
119
  SeamHttpSeamCustomerV1CustomersAutomations: () => SeamHttpSeamCustomerV1CustomersAutomations,
@@ -221,6 +224,8 @@ __export(connect_exports, {
221
224
  SeamHttpRequest: () => SeamHttpRequest,
222
225
  SeamHttpSeamConsole: () => SeamHttpSeamConsole,
223
226
  SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
227
+ SeamHttpSeamConsoleV1LynxMigration: () => SeamHttpSeamConsoleV1LynxMigration,
228
+ SeamHttpSeamConsoleV1Sites: () => SeamHttpSeamConsoleV1Sites,
224
229
  SeamHttpSeamConsoleV1Timelines: () => SeamHttpSeamConsoleV1Timelines,
225
230
  SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
226
231
  SeamHttpSeamCustomerV1AccessGrants: () => SeamHttpSeamCustomerV1AccessGrants,
@@ -229,6 +234,7 @@ __export(connect_exports, {
229
234
  SeamHttpSeamCustomerV1Automations: () => SeamHttpSeamCustomerV1Automations,
230
235
  SeamHttpSeamCustomerV1ConnectorCustomers: () => SeamHttpSeamCustomerV1ConnectorCustomers,
231
236
  SeamHttpSeamCustomerV1Connectors: () => SeamHttpSeamCustomerV1Connectors,
237
+ SeamHttpSeamCustomerV1ConnectorsExternalSites: () => SeamHttpSeamCustomerV1ConnectorsExternalSites,
232
238
  SeamHttpSeamCustomerV1ConnectorsIcal: () => SeamHttpSeamCustomerV1ConnectorsIcal,
233
239
  SeamHttpSeamCustomerV1Customers: () => SeamHttpSeamCustomerV1Customers,
234
240
  SeamHttpSeamCustomerV1CustomersAutomations: () => SeamHttpSeamCustomerV1CustomersAutomations,
@@ -2135,6 +2141,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
2135
2141
  get unmanaged() {
2136
2142
  return SeamHttpAccessMethodsUnmanaged.fromClient(this.client, this.defaults);
2137
2143
  }
2144
+ assignCard(parameters, options = {}) {
2145
+ return new SeamHttpRequest(this, {
2146
+ pathname: "/access_methods/assign_card",
2147
+ method: "POST",
2148
+ body: parameters,
2149
+ responseKey: "action_attempt",
2150
+ options
2151
+ });
2152
+ }
2138
2153
  delete(parameters, options = {}) {
2139
2154
  return new SeamHttpRequest(this, {
2140
2155
  pathname: "/access_methods/delete",
@@ -2180,6 +2195,15 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
2180
2195
  options
2181
2196
  });
2182
2197
  }
2198
+ unlockDoor(parameters, options = {}) {
2199
+ return new SeamHttpRequest(this, {
2200
+ pathname: "/access_methods/unlock_door",
2201
+ method: "POST",
2202
+ body: parameters,
2203
+ responseKey: "action_attempt",
2204
+ options
2205
+ });
2206
+ }
2183
2207
  };
2184
2208
 
2185
2209
  // src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts
@@ -3217,6 +3241,15 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
3217
3241
  options
3218
3242
  });
3219
3243
  }
3244
+ scanToAssignCredential(parameters, options = {}) {
3245
+ return new SeamHttpRequest(this, {
3246
+ pathname: "/acs/encoders/scan_to_assign_credential",
3247
+ method: "POST",
3248
+ body: parameters,
3249
+ responseKey: "action_attempt",
3250
+ options
3251
+ });
3252
+ }
3220
3253
  };
3221
3254
 
3222
3255
  // src/lib/seam/connect/routes/acs/entrances/entrances.ts
@@ -6096,6 +6129,303 @@ var SeamHttpPhones = class _SeamHttpPhones {
6096
6129
  }
6097
6130
  };
6098
6131
 
6132
+ // src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts
6133
+ var SeamHttpSeamConsoleV1LynxMigration = class _SeamHttpSeamConsoleV1LynxMigration {
6134
+ client;
6135
+ defaults;
6136
+ ltsVersion = seamApiLtsVersion;
6137
+ static ltsVersion = seamApiLtsVersion;
6138
+ constructor(apiKeyOrOptions = {}) {
6139
+ const options = parseOptions(apiKeyOrOptions);
6140
+ if (!options.isUndocumentedApiEnabled) {
6141
+ throw new Error(
6142
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6143
+ );
6144
+ }
6145
+ this.client = "client" in options ? options.client : createClient(options);
6146
+ this.defaults = limitToSeamHttpRequestOptions(options);
6147
+ }
6148
+ static fromClient(client, options = {}) {
6149
+ const constructorOptions = { ...options, client };
6150
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
6151
+ throw new SeamHttpInvalidOptionsError("Missing client");
6152
+ }
6153
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
6154
+ }
6155
+ static fromApiKey(apiKey, options = {}) {
6156
+ const constructorOptions = { ...options, apiKey };
6157
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
6158
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
6159
+ }
6160
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
6161
+ }
6162
+ static fromClientSessionToken(clientSessionToken, options = {}) {
6163
+ const constructorOptions = { ...options, clientSessionToken };
6164
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
6165
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
6166
+ }
6167
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
6168
+ }
6169
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
6170
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
6171
+ const clientOptions = parseOptions({ ...options, publishableKey });
6172
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
6173
+ throw new SeamHttpInvalidOptionsError(
6174
+ "The client option cannot be used with SeamHttpSeamConsoleV1LynxMigration.fromPublishableKey"
6175
+ );
6176
+ }
6177
+ const client = createClient(clientOptions);
6178
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
6179
+ const { token } = await clientSessions.getOrCreate({
6180
+ user_identifier_key: userIdentifierKey
6181
+ });
6182
+ return _SeamHttpSeamConsoleV1LynxMigration.fromClientSessionToken(
6183
+ token,
6184
+ options
6185
+ );
6186
+ }
6187
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
6188
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
6189
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
6190
+ throw new SeamHttpInvalidOptionsError(
6191
+ "Missing consoleSessionToken or workspaceId"
6192
+ );
6193
+ }
6194
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
6195
+ }
6196
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
6197
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
6198
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
6199
+ throw new SeamHttpInvalidOptionsError(
6200
+ "Missing personalAccessToken or workspaceId"
6201
+ );
6202
+ }
6203
+ return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
6204
+ }
6205
+ createPaginator(request) {
6206
+ return new SeamPaginator(this, request);
6207
+ }
6208
+ async updateClientSessionToken(clientSessionToken) {
6209
+ const { headers } = this.client.defaults;
6210
+ const authHeaders = getAuthHeadersForClientSessionToken({
6211
+ clientSessionToken
6212
+ });
6213
+ for (const key of Object.keys(authHeaders)) {
6214
+ if (headers[key] == null) {
6215
+ throw new Error(
6216
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
6217
+ );
6218
+ }
6219
+ }
6220
+ this.client.defaults.headers = { ...headers, ...authHeaders };
6221
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6222
+ await clientSessions.get();
6223
+ }
6224
+ getPropertyMigrationStatus(parameters, options = {}) {
6225
+ if (!this.defaults.isUndocumentedApiEnabled) {
6226
+ throw new Error(
6227
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6228
+ );
6229
+ }
6230
+ return new SeamHttpRequest(this, {
6231
+ pathname: "/seam/console/v1/lynx_migration/get_property_migration_status",
6232
+ method: "POST",
6233
+ body: parameters,
6234
+ responseKey: "lynx_migration_property_run",
6235
+ options
6236
+ });
6237
+ }
6238
+ getReservationMigrationStatus(parameters, options = {}) {
6239
+ if (!this.defaults.isUndocumentedApiEnabled) {
6240
+ throw new Error(
6241
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6242
+ );
6243
+ }
6244
+ return new SeamHttpRequest(this, {
6245
+ pathname: "/seam/console/v1/lynx_migration/get_reservation_migration_status",
6246
+ method: "POST",
6247
+ body: parameters,
6248
+ responseKey: "lynx_migration_reservation_run",
6249
+ options
6250
+ });
6251
+ }
6252
+ listPropertyReservations(parameters, options = {}) {
6253
+ if (!this.defaults.isUndocumentedApiEnabled) {
6254
+ throw new Error(
6255
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6256
+ );
6257
+ }
6258
+ return new SeamHttpRequest(this, {
6259
+ pathname: "/seam/console/v1/lynx_migration/list_property_reservations",
6260
+ method: "POST",
6261
+ body: parameters,
6262
+ responseKey: "lynx_migration_property_plan",
6263
+ options
6264
+ });
6265
+ }
6266
+ migrateProperty(parameters, options = {}) {
6267
+ if (!this.defaults.isUndocumentedApiEnabled) {
6268
+ throw new Error(
6269
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6270
+ );
6271
+ }
6272
+ return new SeamHttpRequest(this, {
6273
+ pathname: "/seam/console/v1/lynx_migration/migrate_property",
6274
+ method: "POST",
6275
+ body: parameters,
6276
+ responseKey: "lynx_migration_property_run",
6277
+ options
6278
+ });
6279
+ }
6280
+ };
6281
+
6282
+ // src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts
6283
+ var SeamHttpSeamConsoleV1Sites = class _SeamHttpSeamConsoleV1Sites {
6284
+ client;
6285
+ defaults;
6286
+ ltsVersion = seamApiLtsVersion;
6287
+ static ltsVersion = seamApiLtsVersion;
6288
+ constructor(apiKeyOrOptions = {}) {
6289
+ const options = parseOptions(apiKeyOrOptions);
6290
+ if (!options.isUndocumentedApiEnabled) {
6291
+ throw new Error(
6292
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6293
+ );
6294
+ }
6295
+ this.client = "client" in options ? options.client : createClient(options);
6296
+ this.defaults = limitToSeamHttpRequestOptions(options);
6297
+ }
6298
+ static fromClient(client, options = {}) {
6299
+ const constructorOptions = { ...options, client };
6300
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
6301
+ throw new SeamHttpInvalidOptionsError("Missing client");
6302
+ }
6303
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6304
+ }
6305
+ static fromApiKey(apiKey, options = {}) {
6306
+ const constructorOptions = { ...options, apiKey };
6307
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
6308
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
6309
+ }
6310
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6311
+ }
6312
+ static fromClientSessionToken(clientSessionToken, options = {}) {
6313
+ const constructorOptions = { ...options, clientSessionToken };
6314
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
6315
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
6316
+ }
6317
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6318
+ }
6319
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
6320
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
6321
+ const clientOptions = parseOptions({ ...options, publishableKey });
6322
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
6323
+ throw new SeamHttpInvalidOptionsError(
6324
+ "The client option cannot be used with SeamHttpSeamConsoleV1Sites.fromPublishableKey"
6325
+ );
6326
+ }
6327
+ const client = createClient(clientOptions);
6328
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
6329
+ const { token } = await clientSessions.getOrCreate({
6330
+ user_identifier_key: userIdentifierKey
6331
+ });
6332
+ return _SeamHttpSeamConsoleV1Sites.fromClientSessionToken(token, options);
6333
+ }
6334
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
6335
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
6336
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
6337
+ throw new SeamHttpInvalidOptionsError(
6338
+ "Missing consoleSessionToken or workspaceId"
6339
+ );
6340
+ }
6341
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6342
+ }
6343
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
6344
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
6345
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
6346
+ throw new SeamHttpInvalidOptionsError(
6347
+ "Missing personalAccessToken or workspaceId"
6348
+ );
6349
+ }
6350
+ return new _SeamHttpSeamConsoleV1Sites(constructorOptions);
6351
+ }
6352
+ createPaginator(request) {
6353
+ return new SeamPaginator(this, request);
6354
+ }
6355
+ async updateClientSessionToken(clientSessionToken) {
6356
+ const { headers } = this.client.defaults;
6357
+ const authHeaders = getAuthHeadersForClientSessionToken({
6358
+ clientSessionToken
6359
+ });
6360
+ for (const key of Object.keys(authHeaders)) {
6361
+ if (headers[key] == null) {
6362
+ throw new Error(
6363
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
6364
+ );
6365
+ }
6366
+ }
6367
+ this.client.defaults.headers = { ...headers, ...authHeaders };
6368
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6369
+ await clientSessions.get();
6370
+ }
6371
+ create(parameters, options = {}) {
6372
+ if (!this.defaults.isUndocumentedApiEnabled) {
6373
+ throw new Error(
6374
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6375
+ );
6376
+ }
6377
+ return new SeamHttpRequest(this, {
6378
+ pathname: "/seam/console/v1/sites/create",
6379
+ method: "POST",
6380
+ body: parameters,
6381
+ responseKey: "site",
6382
+ options
6383
+ });
6384
+ }
6385
+ delete(parameters, options = {}) {
6386
+ if (!this.defaults.isUndocumentedApiEnabled) {
6387
+ throw new Error(
6388
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6389
+ );
6390
+ }
6391
+ return new SeamHttpRequest(this, {
6392
+ pathname: "/seam/console/v1/sites/delete",
6393
+ method: "POST",
6394
+ body: parameters,
6395
+ responseKey: void 0,
6396
+ options
6397
+ });
6398
+ }
6399
+ list(parameters, options = {}) {
6400
+ if (!this.defaults.isUndocumentedApiEnabled) {
6401
+ throw new Error(
6402
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6403
+ );
6404
+ }
6405
+ return new SeamHttpRequest(this, {
6406
+ pathname: "/seam/console/v1/sites/list",
6407
+ method: "POST",
6408
+ body: parameters,
6409
+ responseKey: "sites",
6410
+ options
6411
+ });
6412
+ }
6413
+ update(parameters, options = {}) {
6414
+ if (!this.defaults.isUndocumentedApiEnabled) {
6415
+ throw new Error(
6416
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6417
+ );
6418
+ }
6419
+ return new SeamHttpRequest(this, {
6420
+ pathname: "/seam/console/v1/sites/update",
6421
+ method: "PATCH",
6422
+ body: parameters,
6423
+ responseKey: "site",
6424
+ options
6425
+ });
6426
+ }
6427
+ };
6428
+
6099
6429
  // src/lib/seam/connect/routes/seam/console/v1/timelines/timelines.ts
6100
6430
  var SeamHttpSeamConsoleV1Timelines = class _SeamHttpSeamConsoleV1Timelines {
6101
6431
  client;
@@ -6290,6 +6620,15 @@ var SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
6290
6620
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6291
6621
  await clientSessions.get();
6292
6622
  }
6623
+ get lynxMigration() {
6624
+ return SeamHttpSeamConsoleV1LynxMigration.fromClient(
6625
+ this.client,
6626
+ this.defaults
6627
+ );
6628
+ }
6629
+ get sites() {
6630
+ return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults);
6631
+ }
6293
6632
  get timelines() {
6294
6633
  return SeamHttpSeamConsoleV1Timelines.fromClient(this.client, this.defaults);
6295
6634
  }
@@ -6985,6 +7324,114 @@ var SeamHttpSeamCustomerV1ConnectorCustomers = class _SeamHttpSeamCustomerV1Conn
6985
7324
  }
6986
7325
  };
6987
7326
 
7327
+ // src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts
7328
+ var SeamHttpSeamCustomerV1ConnectorsExternalSites = class _SeamHttpSeamCustomerV1ConnectorsExternalSites {
7329
+ client;
7330
+ defaults;
7331
+ ltsVersion = seamApiLtsVersion;
7332
+ static ltsVersion = seamApiLtsVersion;
7333
+ constructor(apiKeyOrOptions = {}) {
7334
+ const options = parseOptions(apiKeyOrOptions);
7335
+ if (!options.isUndocumentedApiEnabled) {
7336
+ throw new Error(
7337
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7338
+ );
7339
+ }
7340
+ this.client = "client" in options ? options.client : createClient(options);
7341
+ this.defaults = limitToSeamHttpRequestOptions(options);
7342
+ }
7343
+ static fromClient(client, options = {}) {
7344
+ const constructorOptions = { ...options, client };
7345
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
7346
+ throw new SeamHttpInvalidOptionsError("Missing client");
7347
+ }
7348
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7349
+ }
7350
+ static fromApiKey(apiKey, options = {}) {
7351
+ const constructorOptions = { ...options, apiKey };
7352
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
7353
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
7354
+ }
7355
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7356
+ }
7357
+ static fromClientSessionToken(clientSessionToken, options = {}) {
7358
+ const constructorOptions = { ...options, clientSessionToken };
7359
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
7360
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
7361
+ }
7362
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7363
+ }
7364
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
7365
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
7366
+ const clientOptions = parseOptions({ ...options, publishableKey });
7367
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
7368
+ throw new SeamHttpInvalidOptionsError(
7369
+ "The client option cannot be used with SeamHttpSeamCustomerV1ConnectorsExternalSites.fromPublishableKey"
7370
+ );
7371
+ }
7372
+ const client = createClient(clientOptions);
7373
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
7374
+ const { token } = await clientSessions.getOrCreate({
7375
+ user_identifier_key: userIdentifierKey
7376
+ });
7377
+ return _SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClientSessionToken(
7378
+ token,
7379
+ options
7380
+ );
7381
+ }
7382
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
7383
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
7384
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
7385
+ throw new SeamHttpInvalidOptionsError(
7386
+ "Missing consoleSessionToken or workspaceId"
7387
+ );
7388
+ }
7389
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7390
+ }
7391
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
7392
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
7393
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
7394
+ throw new SeamHttpInvalidOptionsError(
7395
+ "Missing personalAccessToken or workspaceId"
7396
+ );
7397
+ }
7398
+ return new _SeamHttpSeamCustomerV1ConnectorsExternalSites(constructorOptions);
7399
+ }
7400
+ createPaginator(request) {
7401
+ return new SeamPaginator(this, request);
7402
+ }
7403
+ async updateClientSessionToken(clientSessionToken) {
7404
+ const { headers } = this.client.defaults;
7405
+ const authHeaders = getAuthHeadersForClientSessionToken({
7406
+ clientSessionToken
7407
+ });
7408
+ for (const key of Object.keys(authHeaders)) {
7409
+ if (headers[key] == null) {
7410
+ throw new Error(
7411
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
7412
+ );
7413
+ }
7414
+ }
7415
+ this.client.defaults.headers = { ...headers, ...authHeaders };
7416
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7417
+ await clientSessions.get();
7418
+ }
7419
+ list(parameters, options = {}) {
7420
+ if (!this.defaults.isUndocumentedApiEnabled) {
7421
+ throw new Error(
7422
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7423
+ );
7424
+ }
7425
+ return new SeamHttpRequest(this, {
7426
+ pathname: "/seam/customer/v1/connectors/external_sites/list",
7427
+ method: "POST",
7428
+ body: parameters,
7429
+ responseKey: "external_sites",
7430
+ options
7431
+ });
7432
+ }
7433
+ };
7434
+
6988
7435
  // src/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.ts
6989
7436
  var SeamHttpSeamCustomerV1ConnectorsIcal = class _SeamHttpSeamCustomerV1ConnectorsIcal {
6990
7437
  client;
@@ -7185,6 +7632,12 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
7185
7632
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
7186
7633
  await clientSessions.get();
7187
7634
  }
7635
+ get externalSites() {
7636
+ return SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
7637
+ this.client,
7638
+ this.defaults
7639
+ );
7640
+ }
7188
7641
  get ical() {
7189
7642
  return SeamHttpSeamCustomerV1ConnectorsIcal.fromClient(
7190
7643
  this.client,
@@ -11296,6 +11749,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11296
11749
  return seam.update(...args);
11297
11750
  };
11298
11751
  }
11752
+ get "/access_methods/assign_card"() {
11753
+ const { client, defaults } = this;
11754
+ return function accessMethodsAssignCard(...args) {
11755
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults);
11756
+ return seam.assignCard(...args);
11757
+ };
11758
+ }
11299
11759
  get "/access_methods/delete"() {
11300
11760
  const { client, defaults } = this;
11301
11761
  return function accessMethodsDelete(...args) {
@@ -11331,6 +11791,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11331
11791
  return seam.list(...args);
11332
11792
  };
11333
11793
  }
11794
+ get "/access_methods/unlock_door"() {
11795
+ const { client, defaults } = this;
11796
+ return function accessMethodsUnlockDoor(...args) {
11797
+ const seam = SeamHttpAccessMethods.fromClient(client, defaults);
11798
+ return seam.unlockDoor(...args);
11799
+ };
11800
+ }
11334
11801
  get "/access_methods/unmanaged/get"() {
11335
11802
  const { client, defaults } = this;
11336
11803
  return function accessMethodsUnmanagedGet(...args) {
@@ -11565,6 +12032,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11565
12032
  return seam.scanCredential(...args);
11566
12033
  };
11567
12034
  }
12035
+ get "/acs/encoders/scan_to_assign_credential"() {
12036
+ const { client, defaults } = this;
12037
+ return function acsEncodersScanToAssignCredential(...args) {
12038
+ const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
12039
+ return seam.scanToAssignCredential(...args);
12040
+ };
12041
+ }
11568
12042
  get "/acs/encoders/simulate/next_credential_encode_will_fail"() {
11569
12043
  const { client, defaults } = this;
11570
12044
  return function acsEncodersSimulateNextCredentialEncodeWillFail(...args) {
@@ -12248,6 +12722,114 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
12248
12722
  return seam.getResourceLocator(...args);
12249
12723
  };
12250
12724
  }
12725
+ get "/seam/console/v1/lynx_migration/get_property_migration_status"() {
12726
+ const { client, defaults } = this;
12727
+ if (!this.defaults.isUndocumentedApiEnabled) {
12728
+ throw new Error(
12729
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12730
+ );
12731
+ }
12732
+ return function seamConsoleV1LynxMigrationGetPropertyMigrationStatus(...args) {
12733
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12734
+ client,
12735
+ defaults
12736
+ );
12737
+ return seam.getPropertyMigrationStatus(...args);
12738
+ };
12739
+ }
12740
+ get "/seam/console/v1/lynx_migration/get_reservation_migration_status"() {
12741
+ const { client, defaults } = this;
12742
+ if (!this.defaults.isUndocumentedApiEnabled) {
12743
+ throw new Error(
12744
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12745
+ );
12746
+ }
12747
+ return function seamConsoleV1LynxMigrationGetReservationMigrationStatus(...args) {
12748
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12749
+ client,
12750
+ defaults
12751
+ );
12752
+ return seam.getReservationMigrationStatus(...args);
12753
+ };
12754
+ }
12755
+ get "/seam/console/v1/lynx_migration/list_property_reservations"() {
12756
+ const { client, defaults } = this;
12757
+ if (!this.defaults.isUndocumentedApiEnabled) {
12758
+ throw new Error(
12759
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12760
+ );
12761
+ }
12762
+ return function seamConsoleV1LynxMigrationListPropertyReservations(...args) {
12763
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12764
+ client,
12765
+ defaults
12766
+ );
12767
+ return seam.listPropertyReservations(...args);
12768
+ };
12769
+ }
12770
+ get "/seam/console/v1/lynx_migration/migrate_property"() {
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 seamConsoleV1LynxMigrationMigrateProperty(...args) {
12778
+ const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
12779
+ client,
12780
+ defaults
12781
+ );
12782
+ return seam.migrateProperty(...args);
12783
+ };
12784
+ }
12785
+ get "/seam/console/v1/sites/create"() {
12786
+ const { client, defaults } = this;
12787
+ if (!this.defaults.isUndocumentedApiEnabled) {
12788
+ throw new Error(
12789
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12790
+ );
12791
+ }
12792
+ return function seamConsoleV1SitesCreate(...args) {
12793
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12794
+ return seam.create(...args);
12795
+ };
12796
+ }
12797
+ get "/seam/console/v1/sites/delete"() {
12798
+ const { client, defaults } = this;
12799
+ if (!this.defaults.isUndocumentedApiEnabled) {
12800
+ throw new Error(
12801
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12802
+ );
12803
+ }
12804
+ return function seamConsoleV1SitesDelete(...args) {
12805
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12806
+ return seam.delete(...args);
12807
+ };
12808
+ }
12809
+ get "/seam/console/v1/sites/list"() {
12810
+ const { client, defaults } = this;
12811
+ if (!this.defaults.isUndocumentedApiEnabled) {
12812
+ throw new Error(
12813
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12814
+ );
12815
+ }
12816
+ return function seamConsoleV1SitesList(...args) {
12817
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12818
+ return seam.list(...args);
12819
+ };
12820
+ }
12821
+ get "/seam/console/v1/sites/update"() {
12822
+ const { client, defaults } = this;
12823
+ if (!this.defaults.isUndocumentedApiEnabled) {
12824
+ throw new Error(
12825
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12826
+ );
12827
+ }
12828
+ return function seamConsoleV1SitesUpdate(...args) {
12829
+ const seam = SeamHttpSeamConsoleV1Sites.fromClient(client, defaults);
12830
+ return seam.update(...args);
12831
+ };
12832
+ }
12251
12833
  get "/seam/console/v1/timelines/get"() {
12252
12834
  const { client, defaults } = this;
12253
12835
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -12464,6 +13046,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
12464
13046
  return seam.update(...args);
12465
13047
  };
12466
13048
  }
13049
+ get "/seam/customer/v1/connectors/external_sites/list"() {
13050
+ const { client, defaults } = this;
13051
+ if (!this.defaults.isUndocumentedApiEnabled) {
13052
+ throw new Error(
13053
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
13054
+ );
13055
+ }
13056
+ return function seamCustomerV1ConnectorsExternalSitesList(...args) {
13057
+ const seam = SeamHttpSeamCustomerV1ConnectorsExternalSites.fromClient(
13058
+ client,
13059
+ defaults
13060
+ );
13061
+ return seam.list(...args);
13062
+ };
13063
+ }
12467
13064
  get "/seam/customer/v1/connectors/ical/validate-config"() {
12468
13065
  const { client, defaults } = this;
12469
13066
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -13606,6 +14203,8 @@ exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
13606
14203
  exports.SeamHttpRequest = SeamHttpRequest;
13607
14204
  exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
13608
14205
  exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
14206
+ exports.SeamHttpSeamConsoleV1LynxMigration = SeamHttpSeamConsoleV1LynxMigration;
14207
+ exports.SeamHttpSeamConsoleV1Sites = SeamHttpSeamConsoleV1Sites;
13609
14208
  exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
13610
14209
  exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
13611
14210
  exports.SeamHttpSeamCustomerV1AccessGrants = SeamHttpSeamCustomerV1AccessGrants;
@@ -13614,6 +14213,7 @@ exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationR
13614
14213
  exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
13615
14214
  exports.SeamHttpSeamCustomerV1ConnectorCustomers = SeamHttpSeamCustomerV1ConnectorCustomers;
13616
14215
  exports.SeamHttpSeamCustomerV1Connectors = SeamHttpSeamCustomerV1Connectors;
14216
+ exports.SeamHttpSeamCustomerV1ConnectorsExternalSites = SeamHttpSeamCustomerV1ConnectorsExternalSites;
13617
14217
  exports.SeamHttpSeamCustomerV1ConnectorsIcal = SeamHttpSeamCustomerV1ConnectorsIcal;
13618
14218
  exports.SeamHttpSeamCustomerV1Customers = SeamHttpSeamCustomerV1Customers;
13619
14219
  exports.SeamHttpSeamCustomerV1CustomersAutomations = SeamHttpSeamCustomerV1CustomersAutomations;