@seamapi/http 2.1.0 → 2.2.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 (240) hide show
  1. package/lib/seam/connect/resources/access-code.d.ts +743 -56
  2. package/lib/seam/connect/resources/access-grant.d.ts +279 -10
  3. package/lib/seam/connect/resources/access-method.d.ts +204 -8
  4. package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
  5. package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
  6. package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
  7. package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
  8. package/lib/seam/connect/resources/acs-system.d.ts +227 -11
  9. package/lib/seam/connect/resources/acs-user.d.ts +388 -19
  10. package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
  11. package/lib/seam/connect/resources/batch.d.ts +3 -0
  12. package/lib/seam/connect/resources/client-session.d.ts +48 -0
  13. package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
  14. package/lib/seam/connect/resources/connected-account.d.ts +281 -12
  15. package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
  16. package/lib/seam/connect/resources/device-provider.d.ts +72 -0
  17. package/lib/seam/connect/resources/device.d.ts +2063 -41
  18. package/lib/seam/connect/resources/event.d.ts +4014 -0
  19. package/lib/seam/connect/resources/instant-key.d.ts +41 -0
  20. package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
  21. package/lib/seam/connect/resources/phone.d.ts +72 -0
  22. package/lib/seam/connect/resources/space.d.ts +54 -0
  23. package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
  24. package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
  25. package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
  26. package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
  27. package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
  28. package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
  29. package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
  30. package/lib/seam/connect/resources/user-identity.d.ts +82 -3
  31. package/lib/seam/connect/resources/webhook.d.ts +15 -0
  32. package/lib/seam/connect/resources/workspace.d.ts +45 -0
  33. package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
  34. package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
  35. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
  36. package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
  37. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
  38. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
  39. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
  40. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
  41. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  42. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
  43. package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
  44. package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
  45. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
  46. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
  47. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
  48. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
  49. package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
  50. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  51. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
  52. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
  53. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
  54. package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +63 -0
  55. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
  56. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
  57. package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
  58. package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
  59. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
  60. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
  61. package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
  62. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  63. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
  64. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
  65. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
  66. package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
  67. package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
  68. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
  69. package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
  70. package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
  71. package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
  72. package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
  73. package/lib/seam/connect/routes/acs/users/users.js +33 -0
  74. package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
  75. package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
  76. package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
  77. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
  78. package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
  79. package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
  80. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
  81. package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
  82. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
  83. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
  84. package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
  85. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
  86. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
  87. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
  88. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
  89. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
  90. package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
  91. package/lib/seam/connect/routes/customers/customers.js +10 -0
  92. package/lib/seam/connect/routes/customers/customers.js.map +1 -1
  93. package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
  94. package/lib/seam/connect/routes/devices/devices.js +23 -0
  95. package/lib/seam/connect/routes/devices/devices.js.map +1 -1
  96. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
  97. package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
  98. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
  99. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
  100. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
  101. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
  102. package/lib/seam/connect/routes/events/events.d.ts +99 -0
  103. package/lib/seam/connect/routes/events/events.js +6 -0
  104. package/lib/seam/connect/routes/events/events.js.map +1 -1
  105. package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
  106. package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
  107. package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
  108. package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
  109. package/lib/seam/connect/routes/locks/locks.js +16 -0
  110. package/lib/seam/connect/routes/locks/locks.js.map +1 -1
  111. package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
  112. package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
  113. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
  114. package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
  115. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
  116. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
  117. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +66 -0
  118. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
  119. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  120. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +6 -0
  121. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
  122. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
  123. package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
  124. package/lib/seam/connect/routes/phones/phones.js +9 -0
  125. package/lib/seam/connect/routes/phones/phones.js.map +1 -1
  126. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
  127. package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
  128. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
  129. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
  130. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -0
  131. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
  132. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +696 -0
  133. package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
  134. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  135. package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
  136. package/lib/seam/connect/routes/spaces/spaces.js +36 -0
  137. package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
  138. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
  139. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
  140. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  141. package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
  142. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
  143. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
  144. package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
  145. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
  146. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
  147. package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
  148. package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
  149. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
  150. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
  151. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
  152. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
  153. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
  154. package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
  155. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
  156. package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
  157. package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
  158. package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
  159. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
  160. package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
  161. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  162. package/lib/version.d.ts +1 -1
  163. package/lib/version.js +1 -1
  164. package/package.json +1 -1
  165. package/src/lib/seam/connect/resources/access-code.ts +719 -35
  166. package/src/lib/seam/connect/resources/access-grant.ts +284 -16
  167. package/src/lib/seam/connect/resources/access-method.ts +205 -10
  168. package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
  169. package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
  170. package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
  171. package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
  172. package/src/lib/seam/connect/resources/acs-system.ts +223 -9
  173. package/src/lib/seam/connect/resources/acs-user.ts +382 -16
  174. package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
  175. package/src/lib/seam/connect/resources/batch.ts +3 -0
  176. package/src/lib/seam/connect/resources/client-session.ts +48 -0
  177. package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
  178. package/src/lib/seam/connect/resources/connected-account.ts +277 -10
  179. package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
  180. package/src/lib/seam/connect/resources/device-provider.ts +72 -0
  181. package/src/lib/seam/connect/resources/device.ts +2059 -39
  182. package/src/lib/seam/connect/resources/event.ts +4015 -0
  183. package/src/lib/seam/connect/resources/instant-key.ts +41 -0
  184. package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
  185. package/src/lib/seam/connect/resources/phone.ts +72 -0
  186. package/src/lib/seam/connect/resources/space.ts +54 -0
  187. package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
  188. package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
  189. package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
  190. package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
  191. package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
  192. package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
  193. package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
  194. package/src/lib/seam/connect/resources/user-identity.ts +87 -8
  195. package/src/lib/seam/connect/resources/webhook.ts +15 -0
  196. package/src/lib/seam/connect/resources/workspace.ts +46 -0
  197. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
  198. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
  199. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
  200. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
  201. package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
  202. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
  203. package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
  204. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
  205. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
  206. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
  207. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
  208. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
  209. package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
  210. package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
  211. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
  212. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
  213. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
  214. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
  215. package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
  216. package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
  217. package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
  218. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
  219. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
  220. package/src/lib/seam/connect/routes/events/events.ts +99 -0
  221. package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
  222. package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
  223. package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
  224. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
  225. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
  226. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
  227. package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
  228. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
  229. package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
  230. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
  231. package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
  232. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
  233. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
  234. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
  235. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
  236. package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
  237. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
  238. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
  239. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
  240. package/src/lib/version.ts +1 -1
@@ -3,70 +3,162 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Represents a [user](https://docs.seam.co/low-level-apis/access-systems/user-management) in an [access system](https://docs.seam.co/low-level-apis/access-systems).
8
+ *
9
+ * An access system user typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.
10
+ *
11
+ * For details about how to configure users in your access system, see the corresponding [system integration guide](https://docs.seam.co/device-and-system-integration-guides#access-control-systems).
12
+ */
6
13
  export type AcsUser = {
14
+ /**
15
+ * `starts_at` and `ends_at` timestamps for the [access system user's](https://docs.seam.co/low-level-apis/access-systems/user-management) access.
16
+ */
7
17
  access_schedule?:
8
18
  | {
19
+ /**
20
+ * Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
21
+ */
9
22
  ends_at: string | null
23
+ /**
24
+ * Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
25
+ */
10
26
  starts_at: string
11
27
  }
12
28
  | undefined
29
+ /**
30
+ * ID of the [access system](https://docs.seam.co/low-level-apis/access-systems) that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
31
+ */
13
32
  acs_system_id: string
14
33
 
34
+ /**
35
+ * ID of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
36
+ */
15
37
  acs_user_id: string
16
38
 
39
+ /**
40
+ * The ID of the connected account that is associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
41
+ */
17
42
  connected_account_id: string
18
43
 
44
+ /**
45
+ * Date and time at which the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created.
46
+ */
19
47
  created_at: string
20
48
 
49
+ /**
50
+ * Display name for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
51
+ */
21
52
  display_name: string
22
53
 
54
+ /**
55
+ * @deprecated use email_address.
56
+ */
23
57
  email?: string | undefined
58
+ /**
59
+ * Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
60
+ */
24
61
  email_address?: string | undefined
62
+ /**
63
+ * Errors associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
64
+ */
25
65
  errors: Array<
66
+ /**
67
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.
68
+ */
26
69
  | {
70
+ /**
71
+ * Date and time at which Seam created the error.
72
+ */
27
73
  created_at: string
28
74
 
29
75
  error_code: 'deleted_externally'
30
76
 
77
+ /**
78
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
79
+ */
31
80
  message: string
32
- }
81
+ } /**
82
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.
83
+ */
33
84
  | {
85
+ /**
86
+ * Date and time at which Seam created the error.
87
+ */
34
88
  created_at: string
35
89
 
36
90
  error_code: 'salto_ks_subscription_limit_exceeded'
37
91
 
92
+ /**
93
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
94
+ */
38
95
  message: string
39
- }
96
+ } /**
97
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
98
+ */
40
99
  | {
100
+ /**
101
+ * Date and time at which Seam created the error.
102
+ */
41
103
  created_at: string
42
104
 
43
105
  error_code: 'failed_to_create_on_acs_system'
44
106
 
107
+ /**
108
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
109
+ */
45
110
  message: string
46
- }
111
+ } /**
112
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
113
+ */
47
114
  | {
115
+ /**
116
+ * Date and time at which Seam created the error.
117
+ */
48
118
  created_at: string
49
119
 
50
120
  error_code: 'failed_to_update_on_acs_system'
51
121
 
122
+ /**
123
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
124
+ */
52
125
  message: string
53
- }
126
+ } /**
127
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
128
+ */
54
129
  | {
130
+ /**
131
+ * Date and time at which Seam created the error.
132
+ */
55
133
  created_at: string
56
134
 
57
135
  error_code: 'failed_to_delete_on_acs_system'
58
136
 
137
+ /**
138
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
139
+ */
59
140
  message: string
60
- }
141
+ } /**
142
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).
143
+ */
61
144
  | {
145
+ /**
146
+ * Date and time at which Seam created the error.
147
+ */
62
148
  created_at: string
63
149
 
64
150
  error_code: 'latch_conflict_with_resident_user'
65
151
 
152
+ /**
153
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
154
+ */
66
155
  message: string
67
156
  }
68
157
  >
69
158
 
159
+ /**
160
+ * Brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
161
+ */
70
162
  external_type?:
71
163
  | 'pti_user'
72
164
  | 'brivo_user'
@@ -78,184 +170,458 @@ export type AcsUser = {
78
170
  | 'avigilon_alta_user'
79
171
  | 'kisi_user'
80
172
  | undefined
173
+ /**
174
+ * Display name that corresponds to the brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
175
+ */
81
176
  external_type_display_name?: string | undefined
177
+ /**
178
+ * Full name of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
179
+ */
82
180
  full_name?: string | undefined
181
+ /**
182
+ * ID of the HID access control system associated with the user.
183
+ */
83
184
  hid_acs_system_id?: string | undefined
185
+ /**
186
+ * Indicates whether Seam manages the access system user.
187
+ */
84
188
  is_managed: boolean
85
189
 
190
+ /**
191
+ * Indicates whether the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is currently [suspended](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).
192
+ */
86
193
  is_suspended?: boolean | undefined
194
+ /**
195
+ * Pending mutations associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.
196
+ */
87
197
  pending_mutations?:
88
198
  | Array<
199
+ /**
200
+ * Seam is in the process of pushing a user creation to the integrated access system.
201
+ */
89
202
  | {
203
+ /**
204
+ * Date and time at which the mutation was created.
205
+ */
90
206
  created_at: string
91
207
 
208
+ /**
209
+ * Detailed description of the mutation.
210
+ */
92
211
  message: string
93
212
 
213
+ /**
214
+ * Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.
215
+ */
94
216
  mutation_code: 'creating'
95
- }
217
+ } /**
218
+ * Seam is in the process of pushing a user deletion to the integrated access system.
219
+ */
96
220
  | {
221
+ /**
222
+ * Date and time at which the mutation was created.
223
+ */
97
224
  created_at: string
98
225
 
226
+ /**
227
+ * Detailed description of the mutation.
228
+ */
99
229
  message: string
100
230
 
231
+ /**
232
+ * Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.
233
+ */
101
234
  mutation_code: 'deleting'
102
- }
235
+ } /**
236
+ * User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.
237
+ */
103
238
  | {
239
+ /**
240
+ * Date and time at which the mutation was created.
241
+ */
104
242
  created_at: string
105
243
 
244
+ /**
245
+ * Detailed description of the mutation.
246
+ */
106
247
  message: string
107
248
 
249
+ /**
250
+ * Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.
251
+ */
108
252
  mutation_code: 'deferring_creation'
109
253
 
254
+ /**
255
+ * Optional: When the user creation is scheduled to occur.
256
+ */
110
257
  scheduled_at?: string | null | undefined
111
258
  }
112
259
  | {
260
+ /**
261
+ * Date and time at which the mutation was created.
262
+ */
113
263
  created_at: string
114
264
 
265
+ /**
266
+ * Old access system user information.
267
+ */
115
268
  from: {
269
+ /**
270
+ * Email address of the access system user.
271
+ */
116
272
  email_address?: string | null | undefined
273
+ /**
274
+ * Full name of the access system user.
275
+ */
117
276
  full_name?: string | null | undefined
277
+ /**
278
+ * Phone number of the access system user.
279
+ */
118
280
  phone_number?: string | null | undefined
119
281
  }
120
282
 
283
+ /**
284
+ * Detailed description of the mutation.
285
+ */
121
286
  message: string
122
287
 
288
+ /**
289
+ * Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.
290
+ */
123
291
  mutation_code: 'updating_user_information'
124
292
 
293
+ /**
294
+ * New access system user information.
295
+ */
125
296
  to: {
297
+ /**
298
+ * Email address of the access system user.
299
+ */
126
300
  email_address?: string | null | undefined
301
+ /**
302
+ * Full name of the access system user.
303
+ */
127
304
  full_name?: string | null | undefined
305
+ /**
306
+ * Phone number of the access system user.
307
+ */
128
308
  phone_number?: string | null | undefined
129
309
  }
130
- }
310
+ } /**
311
+ * Seam is in the process of pushing an access schedule update to the integrated access system.
312
+ */
131
313
  | {
314
+ /**
315
+ * Date and time at which the mutation was created.
316
+ */
132
317
  created_at: string
133
318
 
319
+ /**
320
+ * Old access schedule information.
321
+ */
134
322
  from: {
323
+ /**
324
+ * Starting time for the access schedule.
325
+ */
135
326
  ends_at: string | null
327
+ /**
328
+ * Starting time for the access schedule.
329
+ */
136
330
  starts_at: string | null
137
331
  }
138
332
 
333
+ /**
334
+ * Detailed description of the mutation.
335
+ */
139
336
  message: string
140
337
 
338
+ /**
339
+ * Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.
340
+ */
141
341
  mutation_code: 'updating_access_schedule'
142
342
 
343
+ /**
344
+ * New access schedule information.
345
+ */
143
346
  to: {
347
+ /**
348
+ * Starting time for the access schedule.
349
+ */
144
350
  ends_at: string | null
351
+ /**
352
+ * Starting time for the access schedule.
353
+ */
145
354
  starts_at: string | null
146
355
  }
147
- }
356
+ } /**
357
+ * Seam is in the process of pushing a suspension state update to the integrated access system.
358
+ */
148
359
  | {
360
+ /**
361
+ * Date and time at which the mutation was created.
362
+ */
149
363
  created_at: string
150
364
 
365
+ /**
366
+ * Old user suspension state information.
367
+ */
151
368
  from: {
152
369
  is_suspended: boolean
153
370
  }
154
371
 
372
+ /**
373
+ * Detailed description of the mutation.
374
+ */
155
375
  message: string
156
376
 
377
+ /**
378
+ * Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.
379
+ */
157
380
  mutation_code: 'updating_suspension_state'
158
381
 
382
+ /**
383
+ * New user suspension state information.
384
+ */
159
385
  to: {
160
386
  is_suspended: boolean
161
387
  }
162
- }
388
+ } /**
389
+ * Seam is in the process of pushing an access group membership update to the integrated access system.
390
+ */
163
391
  | {
392
+ /**
393
+ * Date and time at which the mutation was created.
394
+ */
164
395
  created_at: string
165
396
 
397
+ /**
398
+ * Old access group membership.
399
+ */
166
400
  from: {
401
+ /**
402
+ * Old access group ID.
403
+ */
167
404
  acs_access_group_id: string | null
168
405
  }
169
406
 
407
+ /**
408
+ * Detailed description of the mutation.
409
+ */
170
410
  message: string
171
411
 
412
+ /**
413
+ * Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.
414
+ */
172
415
  mutation_code: 'updating_group_membership'
173
416
 
417
+ /**
418
+ * New access group membership.
419
+ */
174
420
  to: {
421
+ /**
422
+ * New access group ID.
423
+ */
175
424
  acs_access_group_id: string | null
176
425
  }
177
- }
426
+ } /**
427
+ * A scheduled access group membership change is pending for this user.
428
+ */
178
429
  | {
430
+ /**
431
+ * ID of the access group involved in the scheduled change.
432
+ */
179
433
  acs_access_group_id: string
180
434
 
435
+ /**
436
+ * Date and time at which the mutation was created.
437
+ */
181
438
  created_at: string
182
439
 
440
+ /**
441
+ * Detailed description of the mutation.
442
+ */
183
443
  message: string
184
444
 
445
+ /**
446
+ * Mutation code to indicate that a scheduled access group membership change is pending for this user.
447
+ */
185
448
  mutation_code: 'deferring_group_membership_update'
186
449
 
450
+ /**
451
+ * Whether the user is scheduled to be added to or removed from the access group.
452
+ */
187
453
  variant: 'adding' | 'removing'
188
- }
454
+ } /**
455
+ * Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.
456
+ */
189
457
  | {
458
+ /**
459
+ * Date and time at which the mutation was created.
460
+ */
190
461
  created_at: string
191
462
 
463
+ /**
464
+ * Previous credential assignment.
465
+ */
192
466
  from: {
467
+ /**
468
+ * Previous credential ID.
469
+ */
193
470
  acs_credential_id: string | null
194
471
  }
195
472
 
473
+ /**
474
+ * Detailed description of the mutation.
475
+ */
196
476
  message: string
197
477
 
478
+ /**
479
+ * Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.
480
+ */
198
481
  mutation_code: 'updating_credential_assignment'
199
482
 
483
+ /**
484
+ * New credential assignment.
485
+ */
200
486
  to: {
487
+ /**
488
+ * New credential ID.
489
+ */
201
490
  acs_credential_id: string | null
202
491
  }
203
492
  }
204
493
  >
205
494
  | undefined
495
+ /**
496
+ * Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
497
+ */
206
498
  phone_number?: string | undefined
499
+ /**
500
+ * Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
501
+ */
207
502
  salto_ks_metadata?:
208
503
  | {
504
+ /**
505
+ * Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.
506
+ */
209
507
  is_subscribed?: boolean | undefined
210
508
  }
211
509
  | undefined
510
+ /**
511
+ * Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
512
+ */
212
513
  salto_space_metadata?:
213
514
  | {
515
+ /**
516
+ * Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.
517
+ */
214
518
  audit_openings?: boolean | undefined
519
+ /**
520
+ * User ID in the Salto Space access system.
521
+ */
215
522
  user_id?: string | undefined
216
523
  }
217
524
  | undefined
525
+ /**
526
+ * Email address of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
527
+ */
218
528
  user_identity_email_address?: string | null | undefined
529
+ /**
530
+ * Full name of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
531
+ */
219
532
  user_identity_full_name?: string | null | undefined
533
+ /**
534
+ * ID of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
535
+ */
220
536
  user_identity_id?: string | undefined
537
+ /**
538
+ * Phone number of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
539
+ */
221
540
  user_identity_phone_number?: string | null | undefined
541
+ /**
542
+ * Warnings associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
543
+ */
222
544
  warnings: Array<
545
+ /**
546
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is being deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems). This is a temporary state, and the access system user will be deleted shortly.
547
+ */
223
548
  | {
549
+ /**
550
+ * Date and time at which Seam created the warning.
551
+ */
224
552
  created_at: string
225
553
 
554
+ /**
555
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
556
+ */
226
557
  message: string
227
558
 
228
559
  warning_code: 'being_deleted'
229
- }
560
+ } /**
561
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.
562
+ */
230
563
  | {
564
+ /**
565
+ * Date and time at which Seam created the warning.
566
+ */
231
567
  created_at: string
232
568
 
569
+ /**
570
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
571
+ */
233
572
  message: string
234
573
 
235
574
  warning_code: 'salto_ks_user_not_subscribed'
236
- }
575
+ } /**
576
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access—for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.
577
+ */
237
578
  | {
579
+ /**
580
+ * Date and time at which Seam created the warning.
581
+ */
238
582
  created_at: string
239
583
 
584
+ /**
585
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
586
+ */
240
587
  message: string
241
588
 
242
589
  warning_code: 'acs_user_inactive'
243
- }
590
+ } /**
591
+ * An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.
592
+ */
244
593
  | {
594
+ /**
595
+ * Date and time at which Seam created the warning.
596
+ */
245
597
  created_at: string
246
598
 
599
+ /**
600
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
601
+ */
247
602
  message: string
248
603
 
249
604
  warning_code: 'unknown_issue_with_acs_user'
250
- }
605
+ } /**
606
+ * Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.
607
+ */
251
608
  | {
609
+ /**
610
+ * Date and time at which Seam created the warning.
611
+ */
252
612
  created_at: string
253
613
 
614
+ /**
615
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
616
+ */
254
617
  message: string
255
618
 
256
619
  warning_code: 'latch_resident_user'
257
620
  }
258
621
  >
259
622
 
623
+ /**
624
+ * ID of the workspace that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
625
+ */
260
626
  workspace_id: string
261
627
  }