@seamapi/http 1.109.0 → 1.111.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 (40) hide show
  1. package/dist/connect.cjs +127 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +29 -2
  4. package/dist/index.cjs +127 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/access-codes/access-codes.js +3 -0
  8. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
  9. package/lib/seam/connect/routes/customers/reservations/reservations.js +6 -0
  10. package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -1
  11. package/lib/seam/connect/routes/locks/locks.d.ts +12 -0
  12. package/lib/seam/connect/routes/locks/locks.js +9 -0
  13. package/lib/seam/connect/routes/locks/locks.js.map +1 -1
  14. package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js +9 -0
  15. package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js.map +1 -1
  16. package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +6 -0
  17. package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
  18. package/lib/seam/connect/routes/seam/customer/v1/portals/portals.d.ts +13 -0
  19. package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js +12 -0
  20. package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js.map +1 -1
  21. package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +6 -0
  22. package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
  23. package/lib/seam/connect/routes/seam/customer/v1/v1.js +3 -0
  24. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
  25. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -3
  26. package/lib/seam/connect/routes/seam-http-endpoints.js +35 -0
  27. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  28. package/lib/version.d.ts +1 -1
  29. package/lib/version.js +1 -1
  30. package/package.json +3 -3
  31. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +5 -0
  32. package/src/lib/seam/connect/routes/customers/reservations/reservations.ts +10 -0
  33. package/src/lib/seam/connect/routes/locks/locks.ts +38 -0
  34. package/src/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.ts +15 -0
  35. package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +10 -0
  36. package/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts +41 -0
  37. package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +10 -0
  38. package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
  39. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +69 -0
  40. package/src/lib/version.ts +1 -1
package/dist/connect.cjs CHANGED
@@ -1346,6 +1346,11 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1346
1346
  });
1347
1347
  }
1348
1348
  getTimeline(parameters, options = {}) {
1349
+ if (!this.defaults.isUndocumentedApiEnabled) {
1350
+ throw new Error(
1351
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
1352
+ );
1353
+ }
1349
1354
  return new SeamHttpRequest(this, {
1350
1355
  pathname: "/access_codes/get_timeline",
1351
1356
  method: "POST",
@@ -4202,6 +4207,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
4202
4207
  static ltsVersion = seamApiLtsVersion;
4203
4208
  constructor(apiKeyOrOptions = {}) {
4204
4209
  const options = parseOptions(apiKeyOrOptions);
4210
+ if (!options.isUndocumentedApiEnabled) {
4211
+ throw new Error(
4212
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
4213
+ );
4214
+ }
4205
4215
  this.client = "client" in options ? options.client : createClient(options);
4206
4216
  this.defaults = limitToSeamHttpRequestOptions(options);
4207
4217
  }
@@ -4279,6 +4289,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
4279
4289
  await clientSessions.get();
4280
4290
  }
4281
4291
  createDeepLink(parameters, options = {}) {
4292
+ if (!this.defaults.isUndocumentedApiEnabled) {
4293
+ throw new Error(
4294
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
4295
+ );
4296
+ }
4282
4297
  return new SeamHttpRequest(this, {
4283
4298
  pathname: "/customers/reservations/create_deep_link",
4284
4299
  method: "POST",
@@ -5217,6 +5232,15 @@ var SeamHttpLocks = class _SeamHttpLocks {
5217
5232
  get simulate() {
5218
5233
  return SeamHttpLocksSimulate.fromClient(this.client, this.defaults);
5219
5234
  }
5235
+ configureAutoLock(parameters, options = {}) {
5236
+ return new SeamHttpRequest(this, {
5237
+ pathname: "/locks/configure_auto_lock",
5238
+ method: "POST",
5239
+ body: parameters,
5240
+ responseKey: "action_attempt",
5241
+ options
5242
+ });
5243
+ }
5220
5244
  get(parameters, options = {}) {
5221
5245
  return new SeamHttpRequest(this, {
5222
5246
  pathname: "/locks/get",
@@ -6888,6 +6912,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
6888
6912
  static ltsVersion = seamApiLtsVersion;
6889
6913
  constructor(apiKeyOrOptions = {}) {
6890
6914
  const options = parseOptions(apiKeyOrOptions);
6915
+ if (!options.isUndocumentedApiEnabled) {
6916
+ throw new Error(
6917
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6918
+ );
6919
+ }
6891
6920
  this.client = "client" in options ? options.client : createClient(options);
6892
6921
  this.defaults = limitToSeamHttpRequestOptions(options);
6893
6922
  }
@@ -6968,6 +6997,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
6968
6997
  await clientSessions.get();
6969
6998
  }
6970
6999
  get(parameters, options = {}) {
7000
+ if (!this.defaults.isUndocumentedApiEnabled) {
7001
+ throw new Error(
7002
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7003
+ );
7004
+ }
6971
7005
  return new SeamHttpRequest(this, {
6972
7006
  pathname: "/seam/customer/v1/customers/automations/get",
6973
7007
  method: "GET",
@@ -6977,6 +7011,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
6977
7011
  });
6978
7012
  }
6979
7013
  update(parameters, options = {}) {
7014
+ if (!this.defaults.isUndocumentedApiEnabled) {
7015
+ throw new Error(
7016
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7017
+ );
7018
+ }
6980
7019
  return new SeamHttpRequest(this, {
6981
7020
  pathname: "/seam/customer/v1/customers/automations/update",
6982
7021
  method: "PATCH",
@@ -6995,6 +7034,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
6995
7034
  static ltsVersion = seamApiLtsVersion;
6996
7035
  constructor(apiKeyOrOptions = {}) {
6997
7036
  const options = parseOptions(apiKeyOrOptions);
7037
+ if (!options.isUndocumentedApiEnabled) {
7038
+ throw new Error(
7039
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7040
+ );
7041
+ }
6998
7042
  this.client = "client" in options ? options.client : createClient(options);
6999
7043
  this.defaults = limitToSeamHttpRequestOptions(options);
7000
7044
  }
@@ -7095,6 +7139,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
7095
7139
  });
7096
7140
  }
7097
7141
  me(parameters, options = {}) {
7142
+ if (!this.defaults.isUndocumentedApiEnabled) {
7143
+ throw new Error(
7144
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7145
+ );
7146
+ }
7098
7147
  return new SeamHttpRequest(this, {
7099
7148
  pathname: "/seam/customer/v1/customers/me",
7100
7149
  method: "GET",
@@ -7432,6 +7481,20 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
7432
7481
  options
7433
7482
  });
7434
7483
  }
7484
+ update(parameters, options = {}) {
7485
+ if (!this.defaults.isUndocumentedApiEnabled) {
7486
+ throw new Error(
7487
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7488
+ );
7489
+ }
7490
+ return new SeamHttpRequest(this, {
7491
+ pathname: "/seam/customer/v1/portals/update",
7492
+ method: "PATCH",
7493
+ body: parameters,
7494
+ responseKey: void 0,
7495
+ options
7496
+ });
7497
+ }
7435
7498
  };
7436
7499
 
7437
7500
  // src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts
@@ -7821,6 +7884,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
7821
7884
  static ltsVersion = seamApiLtsVersion;
7822
7885
  constructor(apiKeyOrOptions = {}) {
7823
7886
  const options = parseOptions(apiKeyOrOptions);
7887
+ if (!options.isUndocumentedApiEnabled) {
7888
+ throw new Error(
7889
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7890
+ );
7891
+ }
7824
7892
  this.client = "client" in options ? options.client : createClient(options);
7825
7893
  this.defaults = limitToSeamHttpRequestOptions(options);
7826
7894
  }
@@ -7940,6 +8008,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
7940
8008
  });
7941
8009
  }
7942
8010
  pushCommonAreas(parameters, options = {}) {
8011
+ if (!this.defaults.isUndocumentedApiEnabled) {
8012
+ throw new Error(
8013
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8014
+ );
8015
+ }
7943
8016
  return new SeamHttpRequest(this, {
7944
8017
  pathname: "/seam/customer/v1/spaces/push_common_areas",
7945
8018
  method: "POST",
@@ -8080,6 +8153,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
8080
8153
  static ltsVersion = seamApiLtsVersion;
8081
8154
  constructor(apiKeyOrOptions = {}) {
8082
8155
  const options = parseOptions(apiKeyOrOptions);
8156
+ if (!options.isUndocumentedApiEnabled) {
8157
+ throw new Error(
8158
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8159
+ );
8160
+ }
8083
8161
  this.client = "client" in options ? options.client : createClient(options);
8084
8162
  this.defaults = limitToSeamHttpRequestOptions(options);
8085
8163
  }
@@ -10647,6 +10725,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10647
10725
  }
10648
10726
  get "/access_codes/get_timeline"() {
10649
10727
  const { client, defaults } = this;
10728
+ if (!this.defaults.isUndocumentedApiEnabled) {
10729
+ throw new Error(
10730
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10731
+ );
10732
+ }
10650
10733
  return function accessCodesGetTimeline(...args) {
10651
10734
  const seam = SeamHttpAccessCodes.fromClient(client, defaults);
10652
10735
  return seam.getTimeline(...args);
@@ -11443,6 +11526,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11443
11526
  }
11444
11527
  get "/customers/reservations/create_deep_link"() {
11445
11528
  const { client, defaults } = this;
11529
+ if (!this.defaults.isUndocumentedApiEnabled) {
11530
+ throw new Error(
11531
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
11532
+ );
11533
+ }
11446
11534
  return function customersReservationsCreateDeepLink(...args) {
11447
11535
  const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
11448
11536
  return seam.createDeepLink(...args);
@@ -11593,6 +11681,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11593
11681
  return seam.list(...args);
11594
11682
  };
11595
11683
  }
11684
+ get "/locks/configure_auto_lock"() {
11685
+ const { client, defaults } = this;
11686
+ return function locksConfigureAutoLock(...args) {
11687
+ const seam = SeamHttpLocks.fromClient(client, defaults);
11688
+ return seam.configureAutoLock(...args);
11689
+ };
11690
+ }
11596
11691
  get "/locks/get"() {
11597
11692
  const { client, defaults } = this;
11598
11693
  return function locksGet(...args) {
@@ -11957,6 +12052,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11957
12052
  }
11958
12053
  get "/seam/customer/v1/customers/automations/get"() {
11959
12054
  const { client, defaults } = this;
12055
+ if (!this.defaults.isUndocumentedApiEnabled) {
12056
+ throw new Error(
12057
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12058
+ );
12059
+ }
11960
12060
  return function seamCustomerV1CustomersAutomationsGet(...args) {
11961
12061
  const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
11962
12062
  client,
@@ -11967,6 +12067,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11967
12067
  }
11968
12068
  get "/seam/customer/v1/customers/automations/update"() {
11969
12069
  const { client, defaults } = this;
12070
+ if (!this.defaults.isUndocumentedApiEnabled) {
12071
+ throw new Error(
12072
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12073
+ );
12074
+ }
11970
12075
  return function seamCustomerV1CustomersAutomationsUpdate(...args) {
11971
12076
  const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
11972
12077
  client,
@@ -11989,6 +12094,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11989
12094
  }
11990
12095
  get "/seam/customer/v1/customers/me"() {
11991
12096
  const { client, defaults } = this;
12097
+ if (!this.defaults.isUndocumentedApiEnabled) {
12098
+ throw new Error(
12099
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12100
+ );
12101
+ }
11992
12102
  return function seamCustomerV1CustomersMe(...args) {
11993
12103
  const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
11994
12104
  return seam.me(...args);
@@ -12042,6 +12152,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
12042
12152
  return seam.get(...args);
12043
12153
  };
12044
12154
  }
12155
+ get "/seam/customer/v1/portals/update"() {
12156
+ const { client, defaults } = this;
12157
+ if (!this.defaults.isUndocumentedApiEnabled) {
12158
+ throw new Error(
12159
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12160
+ );
12161
+ }
12162
+ return function seamCustomerV1PortalsUpdate(...args) {
12163
+ const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults);
12164
+ return seam.update(...args);
12165
+ };
12166
+ }
12045
12167
  get "/seam/customer/v1/reservations/get"() {
12046
12168
  const { client, defaults } = this;
12047
12169
  if (!this.defaults.isUndocumentedApiEnabled) {
@@ -12164,6 +12286,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
12164
12286
  }
12165
12287
  get "/seam/customer/v1/spaces/push_common_areas"() {
12166
12288
  const { client, defaults } = this;
12289
+ if (!this.defaults.isUndocumentedApiEnabled) {
12290
+ throw new Error(
12291
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
12292
+ );
12293
+ }
12167
12294
  return function seamCustomerV1SpacesPushCommonAreas(...args) {
12168
12295
  const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
12169
12296
  return seam.pushCommonAreas(...args);