@seamapi/http 2.4.1 → 2.4.3

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 (179) hide show
  1. package/lib/request-parameters.d.ts +4 -0
  2. package/lib/request-parameters.js +18 -0
  3. package/lib/request-parameters.js.map +1 -0
  4. package/lib/resources/access-code.d.ts +13 -9
  5. package/lib/resources/acs-credential.d.ts +33 -1
  6. package/lib/resources/acs-entrance.d.ts +1 -1
  7. package/lib/resources/acs-system.d.ts +30 -0
  8. package/lib/resources/action-attempt.d.ts +82 -11
  9. package/lib/resources/device-provider.d.ts +1 -1
  10. package/lib/resources/device.d.ts +63 -18
  11. package/lib/resources/event.d.ts +0 -76
  12. package/lib/resources/unmanaged-access-code.d.ts +13 -9
  13. package/lib/resources/unmanaged-device.d.ts +28 -16
  14. package/lib/routes/access-codes/access-codes.d.ts +8 -35
  15. package/lib/routes/access-codes/access-codes.js +17 -6
  16. package/lib/routes/access-codes/access-codes.js.map +1 -1
  17. package/lib/routes/access-codes/simulate/simulate.js +2 -0
  18. package/lib/routes/access-codes/simulate/simulate.js.map +1 -1
  19. package/lib/routes/access-codes/unmanaged/unmanaged.d.ts +5 -4
  20. package/lib/routes/access-codes/unmanaged/unmanaged.js +12 -6
  21. package/lib/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  22. package/lib/routes/access-grants/access-grants.d.ts +20 -19
  23. package/lib/routes/access-grants/access-grants.js +10 -2
  24. package/lib/routes/access-grants/access-grants.js.map +1 -1
  25. package/lib/routes/access-grants/unmanaged/unmanaged.d.ts +1 -1
  26. package/lib/routes/access-grants/unmanaged/unmanaged.js +8 -4
  27. package/lib/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
  28. package/lib/routes/access-methods/access-methods.d.ts +8 -7
  29. package/lib/routes/access-methods/access-methods.js +12 -4
  30. package/lib/routes/access-methods/access-methods.js.map +1 -1
  31. package/lib/routes/access-methods/unmanaged/unmanaged.js +7 -4
  32. package/lib/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
  33. package/lib/routes/acs/access-groups/access-groups.js +20 -12
  34. package/lib/routes/acs/access-groups/access-groups.js.map +1 -1
  35. package/lib/routes/acs/credentials/credentials.d.ts +1 -1
  36. package/lib/routes/acs/credentials/credentials.js +15 -6
  37. package/lib/routes/acs/credentials/credentials.js.map +1 -1
  38. package/lib/routes/acs/encoders/encoders.d.ts +1 -1
  39. package/lib/routes/acs/encoders/encoders.js +10 -4
  40. package/lib/routes/acs/encoders/encoders.js.map +1 -1
  41. package/lib/routes/acs/encoders/simulate/simulate.js +5 -0
  42. package/lib/routes/acs/encoders/simulate/simulate.js.map +1 -1
  43. package/lib/routes/acs/entrances/entrances.d.ts +2 -2
  44. package/lib/routes/acs/entrances/entrances.js +8 -2
  45. package/lib/routes/acs/entrances/entrances.js.map +1 -1
  46. package/lib/routes/acs/systems/systems.js +11 -6
  47. package/lib/routes/acs/systems/systems.js.map +1 -1
  48. package/lib/routes/acs/users/users.d.ts +25 -24
  49. package/lib/routes/acs/users/users.js +22 -10
  50. package/lib/routes/acs/users/users.js.map +1 -1
  51. package/lib/routes/action-attempts/action-attempts.d.ts +1 -1
  52. package/lib/routes/action-attempts/action-attempts.js +5 -2
  53. package/lib/routes/action-attempts/action-attempts.js.map +1 -1
  54. package/lib/routes/client-sessions/client-sessions.d.ts +4 -3
  55. package/lib/routes/client-sessions/client-sessions.js +14 -6
  56. package/lib/routes/client-sessions/client-sessions.js.map +1 -1
  57. package/lib/routes/connect-webviews/connect-webviews.d.ts +2 -2
  58. package/lib/routes/connect-webviews/connect-webviews.js +9 -4
  59. package/lib/routes/connect-webviews/connect-webviews.js.map +1 -1
  60. package/lib/routes/connected-accounts/connected-accounts.d.ts +5 -4
  61. package/lib/routes/connected-accounts/connected-accounts.js +8 -2
  62. package/lib/routes/connected-accounts/connected-accounts.js.map +1 -1
  63. package/lib/routes/connected-accounts/simulate/simulate.js +2 -0
  64. package/lib/routes/connected-accounts/simulate/simulate.js.map +1 -1
  65. package/lib/routes/customers/customers.d.ts +9 -9
  66. package/lib/routes/customers/customers.js +4 -0
  67. package/lib/routes/customers/customers.js.map +1 -1
  68. package/lib/routes/devices/devices.d.ts +11 -10
  69. package/lib/routes/devices/devices.js +10 -4
  70. package/lib/routes/devices/devices.js.map +1 -1
  71. package/lib/routes/devices/simulate/simulate.js +7 -0
  72. package/lib/routes/devices/simulate/simulate.js.map +1 -1
  73. package/lib/routes/devices/unmanaged/unmanaged.d.ts +8 -23
  74. package/lib/routes/devices/unmanaged/unmanaged.js +6 -2
  75. package/lib/routes/devices/unmanaged/unmanaged.js.map +1 -1
  76. package/lib/routes/events/events.d.ts +8 -7
  77. package/lib/routes/events/events.js +5 -2
  78. package/lib/routes/events/events.js.map +1 -1
  79. package/lib/routes/instant-keys/instant-keys.d.ts +4 -3
  80. package/lib/routes/instant-keys/instant-keys.js +10 -6
  81. package/lib/routes/instant-keys/instant-keys.js.map +1 -1
  82. package/lib/routes/locks/locks.d.ts +7 -46
  83. package/lib/routes/locks/locks.js +8 -2
  84. package/lib/routes/locks/locks.js.map +1 -1
  85. package/lib/routes/locks/simulate/simulate.js +3 -0
  86. package/lib/routes/locks/simulate/simulate.js.map +1 -1
  87. package/lib/routes/noise-sensors/noise-sensors.d.ts +0 -40
  88. package/lib/routes/noise-sensors/noise-sensors.js +2 -0
  89. package/lib/routes/noise-sensors/noise-sensors.js.map +1 -1
  90. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +12 -6
  91. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  92. package/lib/routes/noise-sensors/simulate/simulate.js +2 -0
  93. package/lib/routes/noise-sensors/simulate/simulate.js.map +1 -1
  94. package/lib/routes/phones/phones.js +10 -6
  95. package/lib/routes/phones/phones.js.map +1 -1
  96. package/lib/routes/phones/simulate/simulate.js +2 -0
  97. package/lib/routes/phones/simulate/simulate.js.map +1 -1
  98. package/lib/routes/seam-http-endpoints.d.ts +26 -26
  99. package/lib/routes/spaces/spaces.d.ts +16 -15
  100. package/lib/routes/spaces/spaces.js +19 -6
  101. package/lib/routes/spaces/spaces.js.map +1 -1
  102. package/lib/routes/thermostats/daily-programs/daily-programs.js +6 -2
  103. package/lib/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  104. package/lib/routes/thermostats/schedules/schedules.d.ts +2 -2
  105. package/lib/routes/thermostats/schedules/schedules.js +12 -6
  106. package/lib/routes/thermostats/schedules/schedules.js.map +1 -1
  107. package/lib/routes/thermostats/simulate/simulate.js +3 -0
  108. package/lib/routes/thermostats/simulate/simulate.js.map +1 -1
  109. package/lib/routes/thermostats/thermostats.d.ts +13 -53
  110. package/lib/routes/thermostats/thermostats.js +17 -2
  111. package/lib/routes/thermostats/thermostats.js.map +1 -1
  112. package/lib/routes/user-identities/unmanaged/unmanaged.d.ts +1 -1
  113. package/lib/routes/user-identities/unmanaged/unmanaged.js +8 -4
  114. package/lib/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
  115. package/lib/routes/user-identities/user-identities.d.ts +13 -12
  116. package/lib/routes/user-identities/user-identities.js +29 -14
  117. package/lib/routes/user-identities/user-identities.js.map +1 -1
  118. package/lib/routes/webhooks/webhooks.js +10 -4
  119. package/lib/routes/webhooks/webhooks.js.map +1 -1
  120. package/lib/routes/workspaces/workspaces.d.ts +9 -9
  121. package/lib/routes/workspaces/workspaces.js +6 -0
  122. package/lib/routes/workspaces/workspaces.js.map +1 -1
  123. package/lib/version.d.ts +1 -1
  124. package/lib/version.js +1 -1
  125. package/package.json +3 -3
  126. package/src/lib/request-parameters.ts +34 -0
  127. package/src/lib/resources/access-code.ts +15 -9
  128. package/src/lib/resources/acs-credential.ts +40 -0
  129. package/src/lib/resources/acs-entrance.ts +1 -1
  130. package/src/lib/resources/acs-system.ts +36 -0
  131. package/src/lib/resources/action-attempt.ts +91 -6
  132. package/src/lib/resources/device-provider.ts +1 -0
  133. package/src/lib/resources/device.ts +70 -20
  134. package/src/lib/resources/event.ts +0 -76
  135. package/src/lib/resources/unmanaged-access-code.ts +15 -9
  136. package/src/lib/resources/unmanaged-device.ts +33 -18
  137. package/src/lib/routes/access-codes/access-codes.ts +57 -41
  138. package/src/lib/routes/access-codes/simulate/simulate.ts +7 -0
  139. package/src/lib/routes/access-codes/unmanaged/unmanaged.ts +44 -10
  140. package/src/lib/routes/access-grants/access-grants.ts +43 -21
  141. package/src/lib/routes/access-grants/unmanaged/unmanaged.ts +24 -5
  142. package/src/lib/routes/access-methods/access-methods.ts +41 -11
  143. package/src/lib/routes/access-methods/unmanaged/unmanaged.ts +17 -4
  144. package/src/lib/routes/acs/access-groups/access-groups.ts +43 -12
  145. package/src/lib/routes/acs/credentials/credentials.ts +28 -7
  146. package/src/lib/routes/acs/encoders/encoders.ts +28 -5
  147. package/src/lib/routes/acs/encoders/simulate/simulate.ts +25 -0
  148. package/src/lib/routes/acs/entrances/entrances.ts +23 -4
  149. package/src/lib/routes/acs/systems/systems.ts +23 -6
  150. package/src/lib/routes/acs/users/users.ts +76 -33
  151. package/src/lib/routes/action-attempts/action-attempts.ts +8 -3
  152. package/src/lib/routes/client-sessions/client-sessions.ts +35 -9
  153. package/src/lib/routes/connect-webviews/connect-webviews.ts +15 -5
  154. package/src/lib/routes/connected-accounts/connected-accounts.ts +20 -6
  155. package/src/lib/routes/connected-accounts/simulate/simulate.ts +7 -0
  156. package/src/lib/routes/customers/customers.ts +16 -9
  157. package/src/lib/routes/devices/devices.ts +36 -11
  158. package/src/lib/routes/devices/simulate/simulate.ts +29 -0
  159. package/src/lib/routes/devices/unmanaged/unmanaged.ts +19 -22
  160. package/src/lib/routes/events/events.ts +17 -9
  161. package/src/lib/routes/instant-keys/instant-keys.ts +19 -9
  162. package/src/lib/routes/locks/locks.ts +22 -45
  163. package/src/lib/routes/locks/simulate/simulate.ts +13 -0
  164. package/src/lib/routes/noise-sensors/noise-sensors.ts +3 -40
  165. package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +37 -6
  166. package/src/lib/routes/noise-sensors/simulate/simulate.ts +7 -0
  167. package/src/lib/routes/phones/phones.ts +13 -6
  168. package/src/lib/routes/phones/simulate/simulate.ts +7 -0
  169. package/src/lib/routes/seam-http-endpoints.ts +26 -26
  170. package/src/lib/routes/spaces/spaces.ts +61 -21
  171. package/src/lib/routes/thermostats/daily-programs/daily-programs.ts +21 -2
  172. package/src/lib/routes/thermostats/schedules/schedules.ts +35 -8
  173. package/src/lib/routes/thermostats/simulate/simulate.ts +13 -0
  174. package/src/lib/routes/thermostats/thermostats.ts +72 -55
  175. package/src/lib/routes/user-identities/unmanaged/unmanaged.ts +24 -5
  176. package/src/lib/routes/user-identities/user-identities.ts +94 -26
  177. package/src/lib/routes/webhooks/webhooks.ts +15 -4
  178. package/src/lib/routes/workspaces/workspaces.ts +20 -9
  179. package/src/lib/version.ts +1 -1
@@ -2805,10 +2805,6 @@ export type SeamEvent = {
2805
2805
  * ID of the affected connected account.
2806
2806
  */
2807
2807
  connected_account_id: string;
2808
- /**
2809
- * undocumented: Unreleased.
2810
- */
2811
- connected_account_type?: string | undefined;
2812
2808
  /**
2813
2809
  * Date and time at which the event was created.
2814
2810
  */
@@ -4691,24 +4687,6 @@ export type SeamEvent = {
4691
4687
  * Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.
4692
4688
  */
4693
4689
  access_code_is_managed?: boolean | undefined;
4694
- /**
4695
- * undocumented: Unreleased.
4696
- * ---
4697
- * ID of the ACS entrance associated with the lock event.
4698
- */
4699
- acs_entrance_id?: string | undefined;
4700
- /**
4701
- * undocumented: Unreleased.
4702
- * ---
4703
- * ID of the ACS system associated with the lock event.
4704
- */
4705
- acs_system_id?: string | undefined;
4706
- /**
4707
- * undocumented: Unreleased.
4708
- * ---
4709
- * ID of the ACS user associated with the lock event.
4710
- */
4711
- acs_user_id?: string | undefined;
4712
4690
  /**
4713
4691
  * ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt).
4714
4692
  */
@@ -4766,12 +4744,6 @@ export type SeamEvent = {
4766
4744
  * Date and time at which the event occurred.
4767
4745
  */
4768
4746
  occurred_at: string;
4769
- /**
4770
- * undocumented: Unreleased.
4771
- * ---
4772
- * ID of the user identity associated with the lock event.
4773
- */
4774
- user_identity_id?: string | undefined;
4775
4747
  /**
4776
4748
  * ID of the workspace associated with the event.
4777
4749
  */
@@ -4785,24 +4757,6 @@ export type SeamEvent = {
4785
4757
  * Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.
4786
4758
  */
4787
4759
  access_code_is_managed?: boolean | undefined;
4788
- /**
4789
- * undocumented: Unreleased.
4790
- * ---
4791
- * ID of the ACS entrance associated with the unlock event.
4792
- */
4793
- acs_entrance_id?: string | undefined;
4794
- /**
4795
- * undocumented: Unreleased.
4796
- * ---
4797
- * ID of the ACS system associated with the unlock event.
4798
- */
4799
- acs_system_id?: string | undefined;
4800
- /**
4801
- * undocumented: Unreleased.
4802
- * ---
4803
- * ID of the ACS user associated with the unlock event.
4804
- */
4805
- acs_user_id?: string | undefined;
4806
4760
  /**
4807
4761
  * ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt).
4808
4762
  */
@@ -4860,12 +4814,6 @@ export type SeamEvent = {
4860
4814
  * Date and time at which the event occurred.
4861
4815
  */
4862
4816
  occurred_at: string;
4863
- /**
4864
- * undocumented: Unreleased.
4865
- * ---
4866
- * ID of the user identity associated with the unlock event.
4867
- */
4868
- user_identity_id?: string | undefined;
4869
4817
  /**
4870
4818
  * ID of the workspace associated with the event.
4871
4819
  */
@@ -4875,24 +4823,6 @@ export type SeamEvent = {
4875
4823
  * ID of the access code that was used in the unlock attempts.
4876
4824
  */
4877
4825
  access_code_id?: string | undefined;
4878
- /**
4879
- * undocumented: Unreleased.
4880
- * ---
4881
- * ID of the ACS entrance associated with the access-denied event.
4882
- */
4883
- acs_entrance_id?: string | undefined;
4884
- /**
4885
- * undocumented: Unreleased.
4886
- * ---
4887
- * ID of the ACS system associated with the access-denied event.
4888
- */
4889
- acs_system_id?: string | undefined;
4890
- /**
4891
- * undocumented: Unreleased.
4892
- * ---
4893
- * ID of the ACS user associated with the access-denied event.
4894
- */
4895
- acs_user_id?: string | undefined;
4896
4826
  /**
4897
4827
  * Custom metadata of the connected account, present when connected_account_id is provided.
4898
4828
  */
@@ -4943,12 +4873,6 @@ export type SeamEvent = {
4943
4873
  */
4944
4874
  reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
4945
4875
  } | undefined;
4946
- /**
4947
- * undocumented: Unreleased.
4948
- * ---
4949
- * ID of the user identity associated with the access-denied event.
4950
- */
4951
- user_identity_id?: string | undefined;
4952
4876
  /**
4953
4877
  * ID of the workspace associated with the event.
4954
4878
  */
@@ -245,26 +245,30 @@ export type UnmanagedAccessCode = {
245
245
  */
246
246
  message: string;
247
247
  } /**
248
- * Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.
248
+ * Indicates that the account is disconnected.
249
249
  */ | {
250
250
  /**
251
251
  * Date and time at which Seam created the error.
252
252
  */
253
- created_at?: string | undefined;
253
+ created_at: string;
254
254
  /**
255
255
  * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
256
256
  */
257
- error_code: 'insufficient_permissions';
257
+ error_code: 'account_disconnected';
258
258
  /**
259
- * Indicates that this is an access code error.
259
+ * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
260
260
  */
261
- is_access_code_error: boolean;
261
+ is_connected_account_error: boolean;
262
+ /**
263
+ * Indicates that the error is not a device error.
264
+ */
265
+ is_device_error: boolean;
262
266
  /**
263
267
  * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
264
268
  */
265
269
  message: string;
266
270
  } /**
267
- * Indicates that the account is disconnected.
271
+ * Indicates that the Salto site user limit has been reached.
268
272
  */ | {
269
273
  /**
270
274
  * Date and time at which Seam created the error.
@@ -273,7 +277,7 @@ export type UnmanagedAccessCode = {
273
277
  /**
274
278
  * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
275
279
  */
276
- error_code: 'account_disconnected';
280
+ error_code: 'salto_ks_subscription_limit_exceeded';
277
281
  /**
278
282
  * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
279
283
  */
@@ -287,7 +291,7 @@ export type UnmanagedAccessCode = {
287
291
  */
288
292
  message: string;
289
293
  } /**
290
- * Indicates that the Salto site user limit has been reached.
294
+ * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system.
291
295
  */ | {
292
296
  /**
293
297
  * Date and time at which Seam created the error.
@@ -296,7 +300,7 @@ export type UnmanagedAccessCode = {
296
300
  /**
297
301
  * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
298
302
  */
299
- error_code: 'salto_ks_subscription_limit_exceeded';
303
+ error_code: 'insufficient_permissions';
300
304
  /**
301
305
  * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
302
306
  */
@@ -105,7 +105,7 @@ export type UnmanagedDevice = {
105
105
  /**
106
106
  * Type of the device.
107
107
  */
108
- device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' | 'ring_camera';
108
+ device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' | 'ring_camera';
109
109
  /**
110
110
  * Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
111
111
  */
@@ -158,6 +158,29 @@ export type UnmanagedDevice = {
158
158
  */
159
159
  message: string;
160
160
  } /**
161
+ * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system.
162
+ */ | {
163
+ /**
164
+ * Date and time at which Seam created the error.
165
+ */
166
+ created_at: string;
167
+ /**
168
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
169
+ */
170
+ error_code: 'insufficient_permissions';
171
+ /**
172
+ * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
173
+ */
174
+ is_connected_account_error: boolean;
175
+ /**
176
+ * Indicates that the error is not a device error.
177
+ */
178
+ is_device_error: boolean;
179
+ /**
180
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
181
+ */
182
+ message: string;
183
+ } /**
161
184
  * Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
162
185
  */ | {
163
186
  /**
@@ -387,6 +410,10 @@ export type UnmanagedDevice = {
387
410
  * Name of the device location.
388
411
  */
389
412
  location_name?: string | undefined;
413
+ /**
414
+ * Name of the room within the device location, when the provider reports one.
415
+ */
416
+ room_name?: string | undefined;
390
417
  /**
391
418
  * Time zone of the device location.
392
419
  */
@@ -916,21 +943,6 @@ export type UnmanagedDevice = {
916
943
  * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
917
944
  */
918
945
  warning_code: 'max_access_codes_reached';
919
- } /**
920
- * Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely.
921
- */ | {
922
- /**
923
- * Date and time at which Seam created the warning.
924
- */
925
- created_at: string;
926
- /**
927
- * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
928
- */
929
- message: string;
930
- /**
931
- * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
932
- */
933
- warning_code: 'insufficient_permissions';
934
946
  }>;
935
947
  /**
936
948
  * Unique identifier for the Seam workspace associated with the device.
@@ -1,5 +1,6 @@
1
1
  import { type Client } from '../../client.js';
2
2
  import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../options.js';
3
+ import { type RequireAtLeastOne } from '../../request-parameters.js';
3
4
  import type { AccessCode } from '../../resources/access-code.js';
4
5
  import { SeamHttpRequest } from '../../seam-http-request.js';
5
6
  import { SeamPaginator } from '../../seam-paginator.js';
@@ -50,13 +51,13 @@ export declare class SeamHttpAccessCodes {
50
51
  *
51
52
  * You must specify either `access_code_id` or both `device_id` and `code`.
52
53
  */
53
- get(parameters?: AccessCodesGetParameters, options?: AccessCodesGetOptions): AccessCodesGetRequest;
54
+ get(parameters: AccessCodesGetParameters, options?: AccessCodesGetOptions): AccessCodesGetRequest;
54
55
  /**
55
56
  * Returns a list of all [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
56
57
  *
57
58
  * Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
58
59
  */
59
- list(parameters?: AccessCodesListParameters, options?: AccessCodesListOptions): AccessCodesListRequest;
60
+ list(parameters: AccessCodesListParameters, options?: AccessCodesListOptions): AccessCodesListRequest;
60
61
  /**
61
62
  * Retrieves a backup access code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). See also [Managing Backup Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes).
62
63
  *
@@ -262,7 +263,7 @@ export type AccessCodesGenerateCodeResponse = {
262
263
  export type AccessCodesGenerateCodeRequest = SeamHttpRequest<AccessCodesGenerateCodeResponse, 'generated_code'>;
263
264
  export interface AccessCodesGenerateCodeOptions {
264
265
  }
265
- export type AccessCodesGetParameters = {
266
+ export type AccessCodesGetParameters = RequireAtLeastOne<{
266
267
  /**
267
268
  * ID of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
268
269
  */
@@ -275,7 +276,7 @@ export type AccessCodesGetParameters = {
275
276
  * ID of the device containing the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
276
277
  */
277
278
  device_id?: string | undefined;
278
- };
279
+ }>;
279
280
  /**
280
281
  * @deprecated Use AccessCodesGetRequest instead.
281
282
  */
@@ -285,7 +286,7 @@ export type AccessCodesGetResponse = {
285
286
  export type AccessCodesGetRequest = SeamHttpRequest<AccessCodesGetResponse, 'access_code'>;
286
287
  export interface AccessCodesGetOptions {
287
288
  }
288
- export type AccessCodesListParameters = {
289
+ export type AccessCodesListParameters = RequireAtLeastOne<{
289
290
  /**
290
291
  * IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
291
292
  */
@@ -317,7 +318,7 @@ export type AccessCodesListParameters = {
317
318
  /**
318
319
  * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
319
320
  */
320
- page_cursor?: string | undefined;
321
+ page_cursor?: string | null | undefined;
321
322
  /**
322
323
  * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.
323
324
  */
@@ -326,7 +327,7 @@ export type AccessCodesListParameters = {
326
327
  * Your user ID for the user by which to filter access codes.
327
328
  */
328
329
  user_identifier_key?: string | undefined;
329
- };
330
+ }>;
330
331
  /**
331
332
  * @deprecated Use AccessCodesListRequest instead.
332
333
  */
@@ -406,18 +407,6 @@ export type AccessCodesUpdateParameters = {
406
407
  * Indicates whether the access code is managed through Seam. Note that to convert an unmanaged access code into a managed access code, use `/access_codes/unmanaged/convert_to_managed`.
407
408
  */
408
409
  is_managed?: boolean | undefined;
409
- /**
410
- * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes).
411
- */
412
- is_offline_access_code?: boolean | undefined;
413
- /**
414
- * Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code.
415
- */
416
- is_one_time_use?: boolean | undefined;
417
- /**
418
- * Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.
419
- */
420
- max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined;
421
410
  /**
422
411
  * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
423
412
  *
@@ -428,14 +417,6 @@ export type AccessCodesUpdateParameters = {
428
417
  * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
429
418
  */
430
419
  name?: string | undefined;
431
- /**
432
- * Indicates whether [native scheduling](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.
433
- */
434
- prefer_native_scheduling?: boolean | undefined;
435
- /**
436
- * Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.
437
- */
438
- preferred_code_length?: number | undefined;
439
420
  /**
440
421
  * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
441
422
  */
@@ -444,14 +425,6 @@ export type AccessCodesUpdateParameters = {
444
425
  * Type to which you want to convert the access code. To convert a time-bound access code to an ongoing access code, set `type` to `ongoing`. See also [Changing a time-bound access code to permanent access](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes#special-case-2-changing-a-time-bound-access-code-to-permanent-access).
445
426
  */
446
427
  type?: 'ongoing' | 'time_bound' | undefined;
447
- /**
448
- * Indicates whether to use a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/api/access_codes/pull_backup_access_code).
449
- */
450
- use_backup_access_code_pool?: boolean | undefined;
451
- /**
452
- * @deprecated Use `is_offline_access_code` instead.
453
- */
454
- use_offline_access_code?: boolean | undefined;
455
428
  };
456
429
  /**
457
430
  * @deprecated Use AccessCodesUpdateRequest instead.
@@ -6,6 +6,7 @@ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, }
6
6
  import { createClient } from '../../client.js';
7
7
  import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../options.js';
8
8
  import { limitToSeamHttpRequestOptions, parseOptions, } from '../../parse-options.js';
9
+ import { assertValidRequestParameters, } from '../../request-parameters.js';
9
10
  import { SeamHttpClientSessions } from '../../routes/client-sessions/index.js';
10
11
  import { SeamHttpRequest } from '../../seam-http-request.js';
11
12
  import { SeamPaginator } from '../../seam-paginator.js';
@@ -94,6 +95,7 @@ export class SeamHttpAccessCodes {
94
95
  * Creates a new [access code](https://docs.seam.co/low-level-apis/access-codes). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.
95
96
  */
96
97
  create(parameters, options = {}) {
98
+ assertValidRequestParameters(parameters, '/access_codes/create', true);
97
99
  return new SeamHttpRequest(this, {
98
100
  pathname: '/access_codes/create',
99
101
  method: 'POST',
@@ -116,6 +118,7 @@ export class SeamHttpAccessCodes {
116
118
  * For granting a person access to a space, [Access Grants](https://docs.seam.co/use-cases/granting-access) are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.
117
119
  */
118
120
  createMultiple(parameters, options = {}) {
121
+ assertValidRequestParameters(parameters, '/access_codes/create_multiple', true);
119
122
  return new SeamHttpRequest(this, {
120
123
  pathname: '/access_codes/create_multiple',
121
124
  method: 'PUT',
@@ -128,10 +131,11 @@ export class SeamHttpAccessCodes {
128
131
  * Deletes an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
129
132
  */
130
133
  delete(parameters, options = {}) {
134
+ assertValidRequestParameters(parameters, '/access_codes/delete', true);
131
135
  return new SeamHttpRequest(this, {
132
136
  pathname: '/access_codes/delete',
133
- method: 'POST',
134
- body: parameters,
137
+ method: 'DELETE',
138
+ params: parameters,
135
139
  responseKey: undefined,
136
140
  options,
137
141
  });
@@ -140,10 +144,11 @@ export class SeamHttpAccessCodes {
140
144
  * Generates a code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), given a device ID.
141
145
  */
142
146
  generateCode(parameters, options = {}) {
147
+ assertValidRequestParameters(parameters, '/access_codes/generate_code', true);
143
148
  return new SeamHttpRequest(this, {
144
149
  pathname: '/access_codes/generate_code',
145
- method: 'POST',
146
- body: parameters,
150
+ method: 'GET',
151
+ params: parameters,
147
152
  responseKey: 'generated_code',
148
153
  options,
149
154
  });
@@ -154,10 +159,11 @@ export class SeamHttpAccessCodes {
154
159
  * You must specify either `access_code_id` or both `device_id` and `code`.
155
160
  */
156
161
  get(parameters, options = {}) {
162
+ assertValidRequestParameters(parameters, '/access_codes/get', true);
157
163
  return new SeamHttpRequest(this, {
158
164
  pathname: '/access_codes/get',
159
- method: 'POST',
160
- body: parameters,
165
+ method: 'GET',
166
+ params: parameters,
161
167
  responseKey: 'access_code',
162
168
  options,
163
169
  });
@@ -168,6 +174,7 @@ export class SeamHttpAccessCodes {
168
174
  * Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
169
175
  */
170
176
  list(parameters, options = {}) {
177
+ assertValidRequestParameters(parameters, '/access_codes/list', true);
171
178
  return new SeamHttpRequest(this, {
172
179
  pathname: '/access_codes/list',
173
180
  method: 'POST',
@@ -188,6 +195,7 @@ export class SeamHttpAccessCodes {
188
195
  * Before pulling a backup access code, make sure that the device's `properties.supports_backup_access_code_pool` is `true`. Then, to activate the backup pool, set `use_backup_access_code_pool` to `true` when creating an access code.
189
196
  */
190
197
  pullBackupAccessCode(parameters, options = {}) {
198
+ assertValidRequestParameters(parameters, '/access_codes/pull_backup_access_code', true);
191
199
  return new SeamHttpRequest(this, {
192
200
  pathname: '/access_codes/pull_backup_access_code',
193
201
  method: 'POST',
@@ -202,6 +210,7 @@ export class SeamHttpAccessCodes {
202
210
  * Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
203
211
  */
204
212
  reportDeviceConstraints(parameters, options = {}) {
213
+ assertValidRequestParameters(parameters, '/access_codes/report_device_constraints', true);
205
214
  return new SeamHttpRequest(this, {
206
215
  pathname: '/access_codes/report_device_constraints',
207
216
  method: 'POST',
@@ -216,6 +225,7 @@ export class SeamHttpAccessCodes {
216
225
  * See also [Modifying Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes).
217
226
  */
218
227
  update(parameters, options = {}) {
228
+ assertValidRequestParameters(parameters, '/access_codes/update', true);
219
229
  return new SeamHttpRequest(this, {
220
230
  pathname: '/access_codes/update',
221
231
  method: 'PUT',
@@ -232,6 +242,7 @@ export class SeamHttpAccessCodes {
232
242
  * See also [Update Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes#update-linked-access-codes).
233
243
  */
234
244
  updateMultiple(parameters, options = {}) {
245
+ assertValidRequestParameters(parameters, '/access_codes/update_multiple', true);
235
246
  return new SeamHttpRequest(this, {
236
247
  pathname: '/access_codes/update_multiple',
237
248
  method: 'PATCH',
@@ -1 +1 @@
1
- {"version":3,"file":"access-codes.js","sourceRoot":"","sources":["../../../src/lib/routes/access-codes/access-codes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAe,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,OA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WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -6,6 +6,7 @@ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, }
6
6
  import { createClient } from '../../../client.js';
7
7
  import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../options.js';
8
8
  import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../parse-options.js';
9
+ import { assertValidRequestParameters } from '../../../request-parameters.js';
9
10
  import { SeamHttpClientSessions } from '../../../routes/client-sessions/index.js';
10
11
  import { SeamHttpRequest } from '../../../seam-http-request.js';
11
12
  import { SeamPaginator } from '../../../seam-paginator.js';
@@ -86,6 +87,7 @@ export class SeamHttpAccessCodesSimulate {
86
87
  * Simulates the creation of an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) in a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
87
88
  */
88
89
  createUnmanagedAccessCode(parameters, options = {}) {
90
+ assertValidRequestParameters(parameters, '/access_codes/simulate/create_unmanaged_access_code', true);
89
91
  return new SeamHttpRequest(this, {
90
92
  pathname: '/access_codes/simulate/create_unmanaged_access_code',
91
93
  method: 'POST',
@@ -1 +1 @@
1
- {"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../../src/lib/routes/access-codes/simulate/simulate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAe,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,gBAAgB,CA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C,CAAA;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC3C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED;;OAEG;IACH,yBAAyB,CACvB,UAAkE,EAClE,UAA+D,EAAE;QAEjE,4BAA4B,CAC1B,UAAU,EACV,qDAAqD,EACrD,IAAI,CACL,CAAA;QAED,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,qDAAqD;YAC/D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,aAAa;YAC1B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import { type Client } from '../../../client.js';
2
2
  import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../options.js';
3
+ import { type RequireAtLeastOne } from '../../../request-parameters.js';
3
4
  import type { UnmanagedAccessCode } from '../../../resources/unmanaged-access-code.js';
4
5
  import { SeamHttpRequest } from '../../../seam-http-request.js';
5
6
  import { SeamPaginator } from '../../../seam-paginator.js';
@@ -32,7 +33,7 @@ export declare class SeamHttpAccessCodesUnmanaged {
32
33
  *
33
34
  * You must specify either `access_code_id` or both `device_id` and `code`.
34
35
  */
35
- get(parameters?: AccessCodesUnmanagedGetParameters, options?: AccessCodesUnmanagedGetOptions): AccessCodesUnmanagedGetRequest;
36
+ get(parameters: AccessCodesUnmanagedGetParameters, options?: AccessCodesUnmanagedGetOptions): AccessCodesUnmanagedGetRequest;
36
37
  /**
37
38
  * Returns a list of all [unmanaged access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
38
39
  */
@@ -80,7 +81,7 @@ export type AccessCodesUnmanagedDeleteResponse = void;
80
81
  export type AccessCodesUnmanagedDeleteRequest = SeamHttpRequest<void, undefined>;
81
82
  export interface AccessCodesUnmanagedDeleteOptions {
82
83
  }
83
- export type AccessCodesUnmanagedGetParameters = {
84
+ export type AccessCodesUnmanagedGetParameters = RequireAtLeastOne<{
84
85
  /**
85
86
  * ID of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
86
87
  */
@@ -93,7 +94,7 @@ export type AccessCodesUnmanagedGetParameters = {
93
94
  * ID of the device containing the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
94
95
  */
95
96
  device_id?: string | undefined;
96
- };
97
+ }>;
97
98
  /**
98
99
  * @deprecated Use AccessCodesUnmanagedGetRequest instead.
99
100
  */
@@ -115,7 +116,7 @@ export type AccessCodesUnmanagedListParameters = {
115
116
  /**
116
117
  * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
117
118
  */
118
- page_cursor?: string | undefined;
119
+ page_cursor?: string | null | undefined;
119
120
  /**
120
121
  * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.
121
122
  */