@seamapi/http 2.24.0 → 2.25.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 (164) hide show
  1. package/README.md +37 -0
  2. package/lib/error-interceptor.js +2 -2
  3. package/lib/error-interceptor.js.map +1 -1
  4. package/lib/resources/access-grant.d.ts +1 -1
  5. package/lib/resources/event.d.ts +9 -4
  6. package/lib/routes/access-codes/access-codes.js +2 -2
  7. package/lib/routes/access-codes/access-codes.js.map +1 -1
  8. package/lib/routes/access-codes/simulate/simulate.js +1 -1
  9. package/lib/routes/access-codes/simulate/simulate.js.map +1 -1
  10. package/lib/routes/access-codes/unmanaged/unmanaged.js +1 -1
  11. package/lib/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  12. package/lib/routes/access-grants/access-grants.d.ts +25 -25
  13. package/lib/routes/access-grants/access-grants.js +1 -1
  14. package/lib/routes/access-grants/access-grants.js.map +1 -1
  15. package/lib/routes/access-grants/unmanaged/unmanaged.js +1 -1
  16. package/lib/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
  17. package/lib/routes/access-methods/access-methods.d.ts +5 -5
  18. package/lib/routes/access-methods/access-methods.js +2 -2
  19. package/lib/routes/access-methods/access-methods.js.map +1 -1
  20. package/lib/routes/access-methods/unmanaged/unmanaged.js +1 -1
  21. package/lib/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
  22. package/lib/routes/acs/access-groups/access-groups.js +1 -1
  23. package/lib/routes/acs/access-groups/access-groups.js.map +1 -1
  24. package/lib/routes/acs/acs.js +1 -1
  25. package/lib/routes/acs/acs.js.map +1 -1
  26. package/lib/routes/acs/credentials/credentials.js +1 -1
  27. package/lib/routes/acs/credentials/credentials.js.map +1 -1
  28. package/lib/routes/acs/encoders/encoders.js +1 -1
  29. package/lib/routes/acs/encoders/encoders.js.map +1 -1
  30. package/lib/routes/acs/encoders/simulate/simulate.d.ts +5 -5
  31. package/lib/routes/acs/encoders/simulate/simulate.js +1 -1
  32. package/lib/routes/acs/encoders/simulate/simulate.js.map +1 -1
  33. package/lib/routes/acs/entrances/entrances.js +1 -1
  34. package/lib/routes/acs/entrances/entrances.js.map +1 -1
  35. package/lib/routes/acs/systems/systems.js +1 -1
  36. package/lib/routes/acs/systems/systems.js.map +1 -1
  37. package/lib/routes/acs/users/users.js +1 -1
  38. package/lib/routes/acs/users/users.js.map +1 -1
  39. package/lib/routes/action-attempts/action-attempts.js +1 -1
  40. package/lib/routes/action-attempts/action-attempts.js.map +1 -1
  41. package/lib/routes/client-sessions/client-sessions.js +1 -1
  42. package/lib/routes/client-sessions/client-sessions.js.map +1 -1
  43. package/lib/routes/connect-webviews/connect-webviews.js +1 -1
  44. package/lib/routes/connect-webviews/connect-webviews.js.map +1 -1
  45. package/lib/routes/connected-accounts/connected-accounts.js +1 -1
  46. package/lib/routes/connected-accounts/connected-accounts.js.map +1 -1
  47. package/lib/routes/connected-accounts/simulate/simulate.js +1 -1
  48. package/lib/routes/connected-accounts/simulate/simulate.js.map +1 -1
  49. package/lib/routes/customers/customers.d.ts +185 -185
  50. package/lib/routes/customers/customers.js +1 -1
  51. package/lib/routes/customers/customers.js.map +1 -1
  52. package/lib/routes/devices/devices.js +1 -1
  53. package/lib/routes/devices/devices.js.map +1 -1
  54. package/lib/routes/devices/simulate/simulate.js +1 -1
  55. package/lib/routes/devices/simulate/simulate.js.map +1 -1
  56. package/lib/routes/devices/unmanaged/unmanaged.js +1 -1
  57. package/lib/routes/devices/unmanaged/unmanaged.js.map +1 -1
  58. package/lib/routes/events/events.js +1 -1
  59. package/lib/routes/events/events.js.map +1 -1
  60. package/lib/routes/instant-keys/instant-keys.js +1 -1
  61. package/lib/routes/instant-keys/instant-keys.js.map +1 -1
  62. package/lib/routes/locks/locks.js +1 -1
  63. package/lib/routes/locks/locks.js.map +1 -1
  64. package/lib/routes/locks/simulate/simulate.js +1 -1
  65. package/lib/routes/locks/simulate/simulate.js.map +1 -1
  66. package/lib/routes/noise-sensors/noise-sensors.js +1 -1
  67. package/lib/routes/noise-sensors/noise-sensors.js.map +1 -1
  68. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +2 -2
  69. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  70. package/lib/routes/noise-sensors/simulate/simulate.js +1 -1
  71. package/lib/routes/noise-sensors/simulate/simulate.js.map +1 -1
  72. package/lib/routes/phones/phones.js +1 -1
  73. package/lib/routes/phones/phones.js.map +1 -1
  74. package/lib/routes/phones/simulate/simulate.js +1 -1
  75. package/lib/routes/phones/simulate/simulate.js.map +1 -1
  76. package/lib/routes/seam-http-endpoints.js +1 -1
  77. package/lib/routes/seam-http-endpoints.js.map +1 -1
  78. package/lib/routes/seam-http.js +1 -1
  79. package/lib/routes/seam-http.js.map +1 -1
  80. package/lib/routes/spaces/spaces.js +1 -1
  81. package/lib/routes/spaces/spaces.js.map +1 -1
  82. package/lib/routes/thermostats/daily-programs/daily-programs.js +1 -1
  83. package/lib/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  84. package/lib/routes/thermostats/schedules/schedules.js +1 -1
  85. package/lib/routes/thermostats/schedules/schedules.js.map +1 -1
  86. package/lib/routes/thermostats/simulate/simulate.d.ts +8 -8
  87. package/lib/routes/thermostats/simulate/simulate.js +1 -1
  88. package/lib/routes/thermostats/simulate/simulate.js.map +1 -1
  89. package/lib/routes/thermostats/thermostats.d.ts +5 -5
  90. package/lib/routes/thermostats/thermostats.js +1 -1
  91. package/lib/routes/thermostats/thermostats.js.map +1 -1
  92. package/lib/routes/user-identities/unmanaged/unmanaged.js +1 -1
  93. package/lib/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
  94. package/lib/routes/user-identities/user-identities.d.ts +5 -5
  95. package/lib/routes/user-identities/user-identities.js +2 -2
  96. package/lib/routes/user-identities/user-identities.js.map +1 -1
  97. package/lib/routes/webhooks/webhooks.js +1 -1
  98. package/lib/routes/webhooks/webhooks.js.map +1 -1
  99. package/lib/routes/workspaces/workspaces.d.ts +1 -1
  100. package/lib/routes/workspaces/workspaces.js +1 -1
  101. package/lib/routes/workspaces/workspaces.js.map +1 -1
  102. package/lib/seam-http-error.d.ts +16 -3
  103. package/lib/seam-http-error.js +18 -6
  104. package/lib/seam-http-error.js.map +1 -1
  105. package/lib/seam-http-request.d.ts +4 -0
  106. package/lib/seam-http-request.js +18 -0
  107. package/lib/seam-http-request.js.map +1 -1
  108. package/lib/seam-paginator.d.ts +1 -7
  109. package/lib/seam-paginator.js +3 -19
  110. package/lib/seam-paginator.js.map +1 -1
  111. package/lib/version.d.ts +1 -1
  112. package/lib/version.js +1 -1
  113. package/package.json +3 -3
  114. package/src/lib/error-interceptor.ts +6 -2
  115. package/src/lib/resources/access-grant.ts +1 -1
  116. package/src/lib/resources/event.ts +10 -5
  117. package/src/lib/routes/access-codes/access-codes.ts +2 -2
  118. package/src/lib/routes/access-codes/simulate/simulate.ts +1 -1
  119. package/src/lib/routes/access-codes/unmanaged/unmanaged.ts +1 -1
  120. package/src/lib/routes/access-grants/access-grants.ts +28 -28
  121. package/src/lib/routes/access-grants/unmanaged/unmanaged.ts +1 -1
  122. package/src/lib/routes/access-methods/access-methods.ts +7 -7
  123. package/src/lib/routes/access-methods/unmanaged/unmanaged.ts +1 -1
  124. package/src/lib/routes/acs/access-groups/access-groups.ts +1 -1
  125. package/src/lib/routes/acs/acs.ts +1 -1
  126. package/src/lib/routes/acs/credentials/credentials.ts +1 -1
  127. package/src/lib/routes/acs/encoders/encoders.ts +1 -1
  128. package/src/lib/routes/acs/encoders/simulate/simulate.ts +6 -7
  129. package/src/lib/routes/acs/entrances/entrances.ts +1 -1
  130. package/src/lib/routes/acs/systems/systems.ts +1 -1
  131. package/src/lib/routes/acs/users/users.ts +1 -1
  132. package/src/lib/routes/action-attempts/action-attempts.ts +1 -1
  133. package/src/lib/routes/client-sessions/client-sessions.ts +1 -1
  134. package/src/lib/routes/connect-webviews/connect-webviews.ts +1 -1
  135. package/src/lib/routes/connected-accounts/connected-accounts.ts +1 -1
  136. package/src/lib/routes/connected-accounts/simulate/simulate.ts +1 -1
  137. package/src/lib/routes/customers/customers.ts +236 -237
  138. package/src/lib/routes/devices/devices.ts +1 -1
  139. package/src/lib/routes/devices/simulate/simulate.ts +1 -1
  140. package/src/lib/routes/devices/unmanaged/unmanaged.ts +1 -1
  141. package/src/lib/routes/events/events.ts +1 -1
  142. package/src/lib/routes/instant-keys/instant-keys.ts +1 -1
  143. package/src/lib/routes/locks/locks.ts +1 -1
  144. package/src/lib/routes/locks/simulate/simulate.ts +1 -1
  145. package/src/lib/routes/noise-sensors/noise-sensors.ts +1 -1
  146. package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +2 -2
  147. package/src/lib/routes/noise-sensors/simulate/simulate.ts +1 -1
  148. package/src/lib/routes/phones/phones.ts +1 -1
  149. package/src/lib/routes/phones/simulate/simulate.ts +1 -1
  150. package/src/lib/routes/seam-http-endpoints.ts +1 -1
  151. package/src/lib/routes/seam-http.ts +1 -1
  152. package/src/lib/routes/spaces/spaces.ts +1 -1
  153. package/src/lib/routes/thermostats/daily-programs/daily-programs.ts +1 -1
  154. package/src/lib/routes/thermostats/schedules/schedules.ts +1 -1
  155. package/src/lib/routes/thermostats/simulate/simulate.ts +10 -11
  156. package/src/lib/routes/thermostats/thermostats.ts +8 -8
  157. package/src/lib/routes/user-identities/unmanaged/unmanaged.ts +1 -1
  158. package/src/lib/routes/user-identities/user-identities.ts +7 -7
  159. package/src/lib/routes/webhooks/webhooks.ts +1 -1
  160. package/src/lib/routes/workspaces/workspaces.ts +2 -2
  161. package/src/lib/seam-http-error.ts +43 -6
  162. package/src/lib/seam-http-request.ts +23 -0
  163. package/src/lib/seam-paginator.ts +2 -33
  164. package/src/lib/version.ts +1 -1
@@ -139,7 +139,7 @@ export class SeamHttpCustomers {
139
139
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
140
140
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
141
141
  ): SeamPaginator<TResponse, TResponseKey> {
142
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
142
+ return new SeamPaginator<TResponse, TResponseKey>(request)
143
143
  }
144
144
 
145
145
  async updateClientSessionToken(
@@ -224,242 +224,6 @@ export class SeamHttpCustomers {
224
224
  }
225
225
 
226
226
  export type CustomersCreatePortalParameters = {
227
- /**
228
- * Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.
229
- */
230
- customer_resources_filters?:
231
- | Array<{
232
- /**
233
- * The custom_metadata field name to filter on.
234
- */
235
- field?: string | undefined
236
- /**
237
- * The comparison operation. Currently only '=' is supported.
238
- */
239
- operation?: '=' | undefined
240
- /**
241
- * The value to compare against.
242
- */
243
- value?: string | undefined
244
- }>
245
- | undefined
246
- /**
247
- * The ID of the customization profile to use for the portal.
248
- */
249
- customization_profile_id?: string | undefined
250
- /**
251
- * Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.
252
- */
253
- deep_link?:
254
- | {
255
- resource_key?: string | undefined
256
-
257
- resource_type?: 'reservation' | 'space' | 'device' | undefined
258
-
259
- resource_id?: string | undefined
260
- }
261
- | undefined
262
- /**
263
- * Whether to exclude the option to select a locale within the portal UI.
264
- */
265
- exclude_locale_picker?: boolean | undefined
266
-
267
- features?:
268
- | {
269
- /**
270
- * Configuration for the configure feature.
271
- */
272
- configure?:
273
- | {
274
- /**
275
- * Indicates whether the customer can customize the access automation rules for their properties.
276
- */
277
- allow_access_automation_rule_customization?: boolean | undefined
278
- /**
279
- * Indicates whether the customer can customize the climate automation rules for their properties.
280
- */
281
- allow_climate_automation_rule_customization?: boolean | undefined
282
- /**
283
- * Indicates whether the customer can customize the Instant Key profile for their properties.
284
- */
285
- allow_instant_key_customization?: boolean | undefined
286
- /**
287
- * Whether to exclude this feature from the portal.
288
- */
289
- exclude?: boolean | undefined
290
- }
291
- | undefined
292
- /**
293
- * Configuration for the connect accounts feature.
294
- */
295
- connect?:
296
- | {
297
- /**
298
- * List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.
299
- */
300
- accepted_providers?: Array<string> | undefined
301
- /**
302
- * Whether to exclude this feature from the portal.
303
- */
304
- exclude?: boolean | undefined
305
- /**
306
- * List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.
307
- */
308
- excluded_providers?: Array<string> | undefined
309
- }
310
- | undefined
311
- /**
312
- * Configuration for the manage feature.
313
- */
314
- manage?:
315
- | {
316
- /**
317
- * Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
318
- */
319
- device_management_confirmation?:
320
- | {
321
- /**
322
- * Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.
323
- */
324
- body?: string | undefined
325
- /**
326
- * Custom label for the cancel button.
327
- */
328
- cancel_button_label?: string | undefined
329
- /**
330
- * Custom label for the confirm button.
331
- */
332
- confirm_button_label?: string | undefined
333
- /**
334
- * Custom title for the confirmation modal.
335
- */
336
- title?: string | undefined
337
- }
338
- | undefined
339
- /**
340
- * Configuration for event type filtering in the manage feature.
341
- */
342
- events?:
343
- | {
344
- /**
345
- * List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.
346
- */
347
- allowed_events?: Array<string> | undefined
348
- /**
349
- * List of event types that are pre-selected in the events filter when the user first loads the events tab.
350
- */
351
- default_events?: Array<string> | undefined
352
- }
353
- | undefined
354
- /**
355
- * Whether to exclude this feature from the portal.
356
- */
357
- exclude?: boolean | undefined
358
- /**
359
- * Indicates whether the customer can manage reservations for their properties.
360
- */
361
- exclude_reservation_management?: boolean | undefined
362
- /**
363
- * Indicates whether to exclude technical details from reservation views.
364
- */
365
- exclude_reservation_technical_details?: boolean | undefined
366
- /**
367
- * Indicates whether the customer can manage staff for their properties.
368
- */
369
- exclude_staff_management?: boolean | undefined
370
- }
371
- | undefined
372
- /**
373
- * Configuration for the manage devices feature.
374
- * ---
375
- * deprecated: Use `manage` instead.
376
- * ---
377
- */
378
- manage_devices?:
379
- | {
380
- /**
381
- * Whether to exclude this feature from the portal.
382
- */
383
- exclude?: boolean | undefined
384
- }
385
- | undefined
386
- /**
387
- * Configuration for the organize feature.
388
- */
389
- organize?:
390
- | {
391
- /**
392
- * Whether to exclude this feature from the portal.
393
- */
394
- exclude?: boolean | undefined
395
- }
396
- | undefined
397
- }
398
- | undefined
399
- /**
400
- * Whether the portal is embedded in another application.
401
- */
402
- is_embedded?: boolean | undefined
403
- /**
404
- * Configuration for the landing page when the portal loads.
405
- */
406
- landing_page?:
407
- | {
408
- manage?:
409
- | {
410
- space_key?: string | undefined
411
-
412
- property_key?: string | undefined
413
-
414
- room_key?: string | undefined
415
-
416
- common_area_key?: string | undefined
417
-
418
- unit_key?: string | undefined
419
-
420
- facility_key?: string | undefined
421
-
422
- building_key?: string | undefined
423
-
424
- listing_key?: string | undefined
425
-
426
- property_listing_key?: string | undefined
427
-
428
- site_key?: string | undefined
429
-
430
- reservation_key?: string | undefined
431
-
432
- booking_key?: string | undefined
433
-
434
- access_grant_key?: string | undefined
435
- }
436
- | undefined
437
- }
438
- | undefined
439
- /**
440
- * The locale to use for the portal.
441
- */
442
- locale?:
443
- | 'en-US'
444
- | 'pt-PT'
445
- | 'fr-FR'
446
- | 'it-IT'
447
- | 'es-ES'
448
- | 'de-DE'
449
- | 'nl-NL'
450
- | 'el-GR'
451
- | 'pl-PL'
452
- | 'ru-RU'
453
- | undefined
454
- /**
455
- * Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.
456
- */
457
- navigation_mode?: 'full' | 'restricted' | undefined
458
- /**
459
- * Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.
460
- */
461
- read_only?: boolean | undefined
462
-
463
227
  customer_data?:
464
228
  | {
465
229
  /**
@@ -1099,6 +863,241 @@ export type CustomersCreatePortalParameters = {
1099
863
  | undefined
1100
864
  }
1101
865
  | undefined
866
+ /**
867
+ * Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.
868
+ */
869
+ customer_resources_filters?:
870
+ | Array<{
871
+ /**
872
+ * The custom_metadata field name to filter on.
873
+ */
874
+ field?: string | undefined
875
+ /**
876
+ * The comparison operation. Currently only '=' is supported.
877
+ */
878
+ operation?: '=' | undefined
879
+ /**
880
+ * The value to compare against.
881
+ */
882
+ value?: string | undefined
883
+ }>
884
+ | undefined
885
+ /**
886
+ * The ID of the customization profile to use for the portal.
887
+ */
888
+ customization_profile_id?: string | undefined
889
+ /**
890
+ * Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.
891
+ */
892
+ deep_link?:
893
+ | {
894
+ resource_id?: string | undefined
895
+
896
+ resource_key?: string | undefined
897
+
898
+ resource_type?: 'reservation' | 'space' | 'device' | undefined
899
+ }
900
+ | undefined
901
+ /**
902
+ * Whether to exclude the option to select a locale within the portal UI.
903
+ */
904
+ exclude_locale_picker?: boolean | undefined
905
+
906
+ features?:
907
+ | {
908
+ /**
909
+ * Configuration for the configure feature.
910
+ */
911
+ configure?:
912
+ | {
913
+ /**
914
+ * Indicates whether the customer can customize the access automation rules for their properties.
915
+ */
916
+ allow_access_automation_rule_customization?: boolean | undefined
917
+ /**
918
+ * Indicates whether the customer can customize the climate automation rules for their properties.
919
+ */
920
+ allow_climate_automation_rule_customization?: boolean | undefined
921
+ /**
922
+ * Indicates whether the customer can customize the Instant Key profile for their properties.
923
+ */
924
+ allow_instant_key_customization?: boolean | undefined
925
+ /**
926
+ * Whether to exclude this feature from the portal.
927
+ */
928
+ exclude?: boolean | undefined
929
+ }
930
+ | undefined
931
+ /**
932
+ * Configuration for the connect accounts feature.
933
+ */
934
+ connect?:
935
+ | {
936
+ /**
937
+ * List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.
938
+ */
939
+ accepted_providers?: Array<string> | undefined
940
+ /**
941
+ * Whether to exclude this feature from the portal.
942
+ */
943
+ exclude?: boolean | undefined
944
+ /**
945
+ * List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.
946
+ */
947
+ excluded_providers?: Array<string> | undefined
948
+ }
949
+ | undefined
950
+ /**
951
+ * Configuration for the manage feature.
952
+ */
953
+ manage?:
954
+ | {
955
+ /**
956
+ * Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
957
+ */
958
+ device_management_confirmation?:
959
+ | {
960
+ /**
961
+ * Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.
962
+ */
963
+ body?: string | undefined
964
+ /**
965
+ * Custom label for the cancel button.
966
+ */
967
+ cancel_button_label?: string | undefined
968
+ /**
969
+ * Custom label for the confirm button.
970
+ */
971
+ confirm_button_label?: string | undefined
972
+ /**
973
+ * Custom title for the confirmation modal.
974
+ */
975
+ title?: string | undefined
976
+ }
977
+ | undefined
978
+ /**
979
+ * Configuration for event type filtering in the manage feature.
980
+ */
981
+ events?:
982
+ | {
983
+ /**
984
+ * List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.
985
+ */
986
+ allowed_events?: Array<string> | undefined
987
+ /**
988
+ * List of event types that are pre-selected in the events filter when the user first loads the events tab.
989
+ */
990
+ default_events?: Array<string> | undefined
991
+ }
992
+ | undefined
993
+ /**
994
+ * Whether to exclude this feature from the portal.
995
+ */
996
+ exclude?: boolean | undefined
997
+ /**
998
+ * Indicates whether the customer can manage reservations for their properties.
999
+ */
1000
+ exclude_reservation_management?: boolean | undefined
1001
+ /**
1002
+ * Indicates whether to exclude technical details from reservation views.
1003
+ */
1004
+ exclude_reservation_technical_details?: boolean | undefined
1005
+ /**
1006
+ * Indicates whether the customer can manage staff for their properties.
1007
+ */
1008
+ exclude_staff_management?: boolean | undefined
1009
+ }
1010
+ | undefined
1011
+ /**
1012
+ * Configuration for the manage devices feature.
1013
+ * ---
1014
+ * deprecated: Use `manage` instead.
1015
+ * ---
1016
+ */
1017
+ manage_devices?:
1018
+ | {
1019
+ /**
1020
+ * Whether to exclude this feature from the portal.
1021
+ */
1022
+ exclude?: boolean | undefined
1023
+ }
1024
+ | undefined
1025
+ /**
1026
+ * Configuration for the organize feature.
1027
+ */
1028
+ organize?:
1029
+ | {
1030
+ /**
1031
+ * Whether to exclude this feature from the portal.
1032
+ */
1033
+ exclude?: boolean | undefined
1034
+ }
1035
+ | undefined
1036
+ }
1037
+ | undefined
1038
+ /**
1039
+ * Whether the portal is embedded in another application.
1040
+ */
1041
+ is_embedded?: boolean | undefined
1042
+ /**
1043
+ * Configuration for the landing page when the portal loads.
1044
+ */
1045
+ landing_page?:
1046
+ | {
1047
+ manage?:
1048
+ | {
1049
+ access_grant_key?: string | undefined
1050
+
1051
+ booking_key?: string | undefined
1052
+
1053
+ building_key?: string | undefined
1054
+
1055
+ common_area_key?: string | undefined
1056
+
1057
+ facility_key?: string | undefined
1058
+
1059
+ listing_key?: string | undefined
1060
+
1061
+ property_key?: string | undefined
1062
+
1063
+ property_listing_key?: string | undefined
1064
+
1065
+ reservation_key?: string | undefined
1066
+
1067
+ room_key?: string | undefined
1068
+
1069
+ site_key?: string | undefined
1070
+
1071
+ space_key?: string | undefined
1072
+
1073
+ unit_key?: string | undefined
1074
+ }
1075
+ | undefined
1076
+ }
1077
+ | undefined
1078
+ /**
1079
+ * The locale to use for the portal.
1080
+ */
1081
+ locale?:
1082
+ | 'en-US'
1083
+ | 'pt-PT'
1084
+ | 'fr-FR'
1085
+ | 'it-IT'
1086
+ | 'es-ES'
1087
+ | 'de-DE'
1088
+ | 'nl-NL'
1089
+ | 'el-GR'
1090
+ | 'pl-PL'
1091
+ | 'ru-RU'
1092
+ | undefined
1093
+ /**
1094
+ * Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.
1095
+ */
1096
+ navigation_mode?: 'full' | 'restricted' | undefined
1097
+ /**
1098
+ * Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.
1099
+ */
1100
+ read_only?: boolean | undefined
1102
1101
  }
1103
1102
 
1104
1103
  /**
@@ -144,7 +144,7 @@ export class SeamHttpDevices {
144
144
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
145
145
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
146
146
  ): SeamPaginator<TResponse, TResponseKey> {
147
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
147
+ return new SeamPaginator<TResponse, TResponseKey>(request)
148
148
  }
149
149
 
150
150
  async updateClientSessionToken(
@@ -138,7 +138,7 @@ export class SeamHttpDevicesSimulate {
138
138
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
139
139
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
140
140
  ): SeamPaginator<TResponse, TResponseKey> {
141
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
141
+ return new SeamPaginator<TResponse, TResponseKey>(request)
142
142
  }
143
143
 
144
144
  async updateClientSessionToken(
@@ -140,7 +140,7 @@ export class SeamHttpDevicesUnmanaged {
140
140
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
141
141
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
142
142
  ): SeamPaginator<TResponse, TResponseKey> {
143
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
143
+ return new SeamPaginator<TResponse, TResponseKey>(request)
144
144
  }
145
145
 
146
146
  async updateClientSessionToken(
@@ -140,7 +140,7 @@ export class SeamHttpEvents {
140
140
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
141
141
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
142
142
  ): SeamPaginator<TResponse, TResponseKey> {
143
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
143
+ return new SeamPaginator<TResponse, TResponseKey>(request)
144
144
  }
145
145
 
146
146
  async updateClientSessionToken(
@@ -140,7 +140,7 @@ export class SeamHttpInstantKeys {
140
140
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
141
141
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
142
142
  ): SeamPaginator<TResponse, TResponseKey> {
143
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
143
+ return new SeamPaginator<TResponse, TResponseKey>(request)
144
144
  }
145
145
 
146
146
  async updateClientSessionToken(
@@ -144,7 +144,7 @@ export class SeamHttpLocks {
144
144
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
145
145
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
146
146
  ): SeamPaginator<TResponse, TResponseKey> {
147
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
147
+ return new SeamPaginator<TResponse, TResponseKey>(request)
148
148
  }
149
149
 
150
150
  async updateClientSessionToken(
@@ -140,7 +140,7 @@ export class SeamHttpLocksSimulate {
140
140
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
141
141
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
142
142
  ): SeamPaginator<TResponse, TResponseKey> {
143
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
143
+ return new SeamPaginator<TResponse, TResponseKey>(request)
144
144
  }
145
145
 
146
146
  async updateClientSessionToken(
@@ -142,7 +142,7 @@ export class SeamHttpNoiseSensors {
142
142
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
143
143
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
144
144
  ): SeamPaginator<TResponse, TResponseKey> {
145
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
145
+ return new SeamPaginator<TResponse, TResponseKey>(request)
146
146
  }
147
147
 
148
148
  async updateClientSessionToken(
@@ -142,7 +142,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
142
142
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
143
143
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
144
144
  ): SeamPaginator<TResponse, TResponseKey> {
145
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
145
+ return new SeamPaginator<TResponse, TResponseKey>(request)
146
146
  }
147
147
 
148
148
  async updateClientSessionToken(
@@ -253,7 +253,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
253
253
  ): NoiseSensorsNoiseThresholdsUpdateRequest {
254
254
  return new SeamHttpRequest(this, {
255
255
  pathname: '/noise_sensors/noise_thresholds/update',
256
- method: 'PUT',
256
+ method: 'PATCH',
257
257
  body: parameters,
258
258
  parameters,
259
259
  hasRequiredParameters: true,
@@ -138,7 +138,7 @@ export class SeamHttpNoiseSensorsSimulate {
138
138
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
139
139
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
140
140
  ): SeamPaginator<TResponse, TResponseKey> {
141
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
141
+ return new SeamPaginator<TResponse, TResponseKey>(request)
142
142
  }
143
143
 
144
144
  async updateClientSessionToken(
@@ -141,7 +141,7 @@ export class SeamHttpPhones {
141
141
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
142
142
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
143
143
  ): SeamPaginator<TResponse, TResponseKey> {
144
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
144
+ return new SeamPaginator<TResponse, TResponseKey>(request)
145
145
  }
146
146
 
147
147
  async updateClientSessionToken(
@@ -139,7 +139,7 @@ export class SeamHttpPhonesSimulate {
139
139
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
140
140
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
141
141
  ): SeamPaginator<TResponse, TResponseKey> {
142
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
142
+ return new SeamPaginator<TResponse, TResponseKey>(request)
143
143
  }
144
144
 
145
145
  async updateClientSessionToken(
@@ -864,7 +864,7 @@ export class SeamHttpEndpoints {
864
864
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
865
865
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
866
866
  ): SeamPaginator<TResponse, TResponseKey> {
867
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
867
+ return new SeamPaginator<TResponse, TResponseKey>(request)
868
868
  }
869
869
 
870
870
  async updateClientSessionToken(
@@ -155,7 +155,7 @@ export class SeamHttp {
155
155
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
156
156
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
157
157
  ): SeamPaginator<TResponse, TResponseKey> {
158
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
158
+ return new SeamPaginator<TResponse, TResponseKey>(request)
159
159
  }
160
160
 
161
161
  async updateClientSessionToken(
@@ -141,7 +141,7 @@ export class SeamHttpSpaces {
141
141
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
142
142
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
143
143
  ): SeamPaginator<TResponse, TResponseKey> {
144
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
144
+ return new SeamPaginator<TResponse, TResponseKey>(request)
145
145
  }
146
146
 
147
147
  async updateClientSessionToken(
@@ -144,7 +144,7 @@ export class SeamHttpThermostatsDailyPrograms {
144
144
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
145
145
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
146
146
  ): SeamPaginator<TResponse, TResponseKey> {
147
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
147
+ return new SeamPaginator<TResponse, TResponseKey>(request)
148
148
  }
149
149
 
150
150
  async updateClientSessionToken(
@@ -139,7 +139,7 @@ export class SeamHttpThermostatsSchedules {
139
139
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
140
140
  request: SeamPaginatedRequest<TResponse, TResponseKey>,
141
141
  ): SeamPaginator<TResponse, TResponseKey> {
142
- return new SeamPaginator<TResponse, TResponseKey>(this, request)
142
+ return new SeamPaginator<TResponse, TResponseKey>(request)
143
143
  }
144
144
 
145
145
  async updateClientSessionToken(