@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
@@ -44,6 +44,11 @@ export class SeamHttpSeamCustomerV1Spaces {
44
44
 
45
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
46
  const options = parseOptions(apiKeyOrOptions)
47
+ if (!options.isUndocumentedApiEnabled) {
48
+ throw new Error(
49
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
50
+ )
51
+ }
47
52
  this.client = 'client' in options ? options.client : createClient(options)
48
53
  this.defaults = limitToSeamHttpRequestOptions(options)
49
54
  }
@@ -221,6 +226,11 @@ export class SeamHttpSeamCustomerV1Spaces {
221
226
  parameters?: SeamCustomerV1SpacesPushCommonAreasParameters,
222
227
  options: SeamCustomerV1SpacesPushCommonAreasOptions = {},
223
228
  ): SeamCustomerV1SpacesPushCommonAreasRequest {
229
+ if (!this.defaults.isUndocumentedApiEnabled) {
230
+ throw new Error(
231
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
232
+ )
233
+ }
224
234
  return new SeamHttpRequest(this, {
225
235
  pathname: '/seam/customer/v1/spaces/push_common_areas',
226
236
  method: 'POST',
@@ -56,6 +56,11 @@ export class SeamHttpSeamCustomerV1 {
56
56
 
57
57
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
58
58
  const options = parseOptions(apiKeyOrOptions)
59
+ if (!options.isUndocumentedApiEnabled) {
60
+ throw new Error(
61
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
62
+ )
63
+ }
59
64
  this.client = 'client' in options ? options.client : createClient(options)
60
65
  this.defaults = limitToSeamHttpRequestOptions(options)
61
66
  }
@@ -522,6 +522,9 @@ import {
522
522
  SeamHttpInstantKeys,
523
523
  } from './instant-keys/index.js'
524
524
  import {
525
+ type LocksConfigureAutoLockOptions,
526
+ type LocksConfigureAutoLockParameters,
527
+ type LocksConfigureAutoLockRequest,
525
528
  type LocksGetOptions,
526
529
  type LocksGetParameters,
527
530
  type LocksGetRequest,
@@ -705,6 +708,9 @@ import {
705
708
  type SeamCustomerV1PortalsGetOptions,
706
709
  type SeamCustomerV1PortalsGetParameters,
707
710
  type SeamCustomerV1PortalsGetRequest,
711
+ type SeamCustomerV1PortalsUpdateOptions,
712
+ type SeamCustomerV1PortalsUpdateParameters,
713
+ type SeamCustomerV1PortalsUpdateRequest,
708
714
  SeamHttpSeamCustomerV1Portals,
709
715
  } from './seam/customer/v1/portals/index.js'
710
716
  import {
@@ -1223,6 +1229,11 @@ export class SeamHttpEndpoints {
1223
1229
  options?: AccessCodesGetTimelineOptions,
1224
1230
  ) => AccessCodesGetTimelineRequest {
1225
1231
  const { client, defaults } = this
1232
+ if (!this.defaults.isUndocumentedApiEnabled) {
1233
+ throw new Error(
1234
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
1235
+ )
1236
+ }
1226
1237
  return function accessCodesGetTimeline(
1227
1238
  ...args: Parameters<SeamHttpAccessCodes['getTimeline']>
1228
1239
  ): ReturnType<SeamHttpAccessCodes['getTimeline']> {
@@ -2669,6 +2680,11 @@ export class SeamHttpEndpoints {
2669
2680
  options?: CustomersReservationsCreateDeepLinkOptions,
2670
2681
  ) => CustomersReservationsCreateDeepLinkRequest {
2671
2682
  const { client, defaults } = this
2683
+ if (!this.defaults.isUndocumentedApiEnabled) {
2684
+ throw new Error(
2685
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
2686
+ )
2687
+ }
2672
2688
  return function customersReservationsCreateDeepLink(
2673
2689
  ...args: Parameters<SeamHttpCustomersReservations['createDeepLink']>
2674
2690
  ): ReturnType<SeamHttpCustomersReservations['createDeepLink']> {
@@ -2942,6 +2958,19 @@ export class SeamHttpEndpoints {
2942
2958
  }
2943
2959
  }
2944
2960
 
2961
+ get '/locks/configure_auto_lock'(): (
2962
+ parameters?: LocksConfigureAutoLockParameters,
2963
+ options?: LocksConfigureAutoLockOptions,
2964
+ ) => LocksConfigureAutoLockRequest {
2965
+ const { client, defaults } = this
2966
+ return function locksConfigureAutoLock(
2967
+ ...args: Parameters<SeamHttpLocks['configureAutoLock']>
2968
+ ): ReturnType<SeamHttpLocks['configureAutoLock']> {
2969
+ const seam = SeamHttpLocks.fromClient(client, defaults)
2970
+ return seam.configureAutoLock(...args)
2971
+ }
2972
+ }
2973
+
2945
2974
  get '/locks/get'(): (
2946
2975
  parameters?: LocksGetParameters,
2947
2976
  options?: LocksGetOptions,
@@ -3513,6 +3542,11 @@ export class SeamHttpEndpoints {
3513
3542
  options?: SeamCustomerV1CustomersAutomationsGetOptions,
3514
3543
  ) => SeamCustomerV1CustomersAutomationsGetRequest {
3515
3544
  const { client, defaults } = this
3545
+ if (!this.defaults.isUndocumentedApiEnabled) {
3546
+ throw new Error(
3547
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3548
+ )
3549
+ }
3516
3550
  return function seamCustomerV1CustomersAutomationsGet(
3517
3551
  ...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['get']>
3518
3552
  ): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['get']> {
@@ -3529,6 +3563,11 @@ export class SeamHttpEndpoints {
3529
3563
  options?: SeamCustomerV1CustomersAutomationsUpdateOptions,
3530
3564
  ) => SeamCustomerV1CustomersAutomationsUpdateRequest {
3531
3565
  const { client, defaults } = this
3566
+ if (!this.defaults.isUndocumentedApiEnabled) {
3567
+ throw new Error(
3568
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3569
+ )
3570
+ }
3532
3571
  return function seamCustomerV1CustomersAutomationsUpdate(
3533
3572
  ...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['update']>
3534
3573
  ): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['update']> {
@@ -3563,6 +3602,11 @@ export class SeamHttpEndpoints {
3563
3602
  options?: SeamCustomerV1CustomersMeOptions,
3564
3603
  ) => SeamCustomerV1CustomersMeRequest {
3565
3604
  const { client, defaults } = this
3605
+ if (!this.defaults.isUndocumentedApiEnabled) {
3606
+ throw new Error(
3607
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3608
+ )
3609
+ }
3566
3610
  return function seamCustomerV1CustomersMe(
3567
3611
  ...args: Parameters<SeamHttpSeamCustomerV1Customers['me']>
3568
3612
  ): ReturnType<SeamHttpSeamCustomerV1Customers['me']> {
@@ -3643,6 +3687,24 @@ export class SeamHttpEndpoints {
3643
3687
  }
3644
3688
  }
3645
3689
 
3690
+ get '/seam/customer/v1/portals/update'(): (
3691
+ parameters?: SeamCustomerV1PortalsUpdateParameters,
3692
+ options?: SeamCustomerV1PortalsUpdateOptions,
3693
+ ) => SeamCustomerV1PortalsUpdateRequest {
3694
+ const { client, defaults } = this
3695
+ if (!this.defaults.isUndocumentedApiEnabled) {
3696
+ throw new Error(
3697
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3698
+ )
3699
+ }
3700
+ return function seamCustomerV1PortalsUpdate(
3701
+ ...args: Parameters<SeamHttpSeamCustomerV1Portals['update']>
3702
+ ): ReturnType<SeamHttpSeamCustomerV1Portals['update']> {
3703
+ const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults)
3704
+ return seam.update(...args)
3705
+ }
3706
+ }
3707
+
3646
3708
  get '/seam/customer/v1/reservations/get'(): (
3647
3709
  parameters?: SeamCustomerV1ReservationsGetParameters,
3648
3710
  options?: SeamCustomerV1ReservationsGetOptions,
@@ -3829,6 +3891,11 @@ export class SeamHttpEndpoints {
3829
3891
  options?: SeamCustomerV1SpacesPushCommonAreasOptions,
3830
3892
  ) => SeamCustomerV1SpacesPushCommonAreasRequest {
3831
3893
  const { client, defaults } = this
3894
+ if (!this.defaults.isUndocumentedApiEnabled) {
3895
+ throw new Error(
3896
+ 'Cannot use undocumented API without isUndocumentedApiEnabled',
3897
+ )
3898
+ }
3832
3899
  return function seamCustomerV1SpacesPushCommonAreas(
3833
3900
  ...args: Parameters<SeamHttpSeamCustomerV1Spaces['pushCommonAreas']>
3834
3901
  ): ReturnType<SeamHttpSeamCustomerV1Spaces['pushCommonAreas']> {
@@ -5211,6 +5278,7 @@ export type SeamHttpEndpointMutationPaths =
5211
5278
  | '/devices/simulate/remove'
5212
5279
  | '/devices/unmanaged/update'
5213
5280
  | '/instant_keys/delete'
5281
+ | '/locks/configure_auto_lock'
5214
5282
  | '/locks/lock_door'
5215
5283
  | '/locks/unlock_door'
5216
5284
  | '/locks/simulate/keypad_code_entry'
@@ -5231,6 +5299,7 @@ export type SeamHttpEndpointMutationPaths =
5231
5299
  | '/seam/customer/v1/connectors/update'
5232
5300
  | '/seam/customer/v1/customers/automations/update'
5233
5301
  | '/seam/customer/v1/customers/open_portal'
5302
+ | '/seam/customer/v1/portals/update'
5234
5303
  | '/seam/customer/v1/settings/update'
5235
5304
  | '/seam/customer/v1/spaces/create'
5236
5305
  | '/seam/customer/v1/spaces/push_common_areas'
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.109.0'
1
+ const seamapiJavascriptHttpVersion = '1.111.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion