@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
@@ -55,6 +55,9 @@ interface BatchResourceMap {
55
55
  workspaces: Workspace
56
56
  }
57
57
 
58
+ /**
59
+ * A batch of workspace resources.
60
+ */
58
61
  export type Batch<
59
62
  TKey extends keyof BatchResourceMap = keyof BatchResourceMap,
60
63
  > = {
@@ -3,25 +3,73 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Represents a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.
8
+ *
9
+ * You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides.
10
+ *
11
+ * When calling the Seam API from your backend using an API key, you can pass the `user_identifier_key` as a parameter to limit results to the associated client session. For example, `/devices/list?user_identifier_key=123` only returns devices associated with the client session created with the `user_identifier_key` `123`.
12
+ *
13
+ * A client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.
14
+ *
15
+ * See also [Get Started with React](https://docs.seam.co/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
16
+ */
6
17
  export type ClientSession = {
18
+ /**
19
+ * ID of the client session.
20
+ */
7
21
  client_session_id: string
8
22
 
23
+ /**
24
+ * IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
25
+ */
9
26
  connect_webview_ids: Array<string>
10
27
 
28
+ /**
29
+ * IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
30
+ */
11
31
  connected_account_ids: Array<string>
12
32
 
33
+ /**
34
+ * Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) was created.
35
+ */
13
36
  created_at: string
14
37
 
38
+ /**
39
+ * Customer key associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
40
+ */
15
41
  customer_key?: string | undefined
42
+ /**
43
+ * Number of devices associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
44
+ */
16
45
  device_count: number
17
46
 
47
+ /**
48
+ * Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) expires.
49
+ */
18
50
  expires_at: string
19
51
 
52
+ /**
53
+ * Client session token associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
54
+ */
20
55
  token: string
21
56
 
57
+ /**
58
+ * Your user ID for the user associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
59
+ */
22
60
  user_identifier_key: string | null
61
+ /**
62
+ * ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
63
+ */
23
64
  user_identity_id?: string | undefined
65
+ /**
66
+ * IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
67
+ * @deprecated Use `user_identity_id` instead.
68
+ */
24
69
  user_identity_ids: Array<string>
25
70
 
71
+ /**
72
+ * ID of the workspace associated with the client session.
73
+ */
26
74
  workspace_id: string
27
75
  }
@@ -3,38 +3,108 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Represents a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
8
+ *
9
+ * Connect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and—once your user has completed the authorization through your app—you can access and control their devices or systems using the Seam API.
10
+ *
11
+ * Connect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.
12
+ *
13
+ * To enable a user to connect their device or system account to Seam through your app, first create a `connect_webview`. Once created, this `connect_webview` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.
14
+ *
15
+ * When you create a Connect Webview, specify the desired provider category key in the `provider_category` parameter. Alternately, to specify a list of providers explicitly, use the `accepted_providers` parameter with a list of device provider keys.
16
+ *
17
+ * To list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters.
18
+ */
6
19
  export type ConnectWebview = {
20
+ /**
21
+ * High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.
22
+ */
7
23
  accepted_capabilities: Array<
8
24
  'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'
9
25
  >
10
26
 
27
+ /**
28
+ * List of accepted [provider keys](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
29
+ */
11
30
  accepted_providers: Array<string>
12
31
 
32
+ /**
33
+ * Indicates whether any provider is allowed.
34
+ */
13
35
  any_provider_allowed: boolean
14
36
 
37
+ /**
38
+ * Date and time at which the user authorized (through the Connect Webview) the management of their devices.
39
+ */
15
40
  authorized_at: string | null
41
+ /**
42
+ * Indicates whether Seam should [import all new devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.
43
+ */
16
44
  automatically_manage_new_devices: boolean
17
45
 
46
+ /**
47
+ * ID of the Connect Webview.
48
+ */
18
49
  connect_webview_id: string
19
50
 
51
+ /**
52
+ * ID of the connected account associated with the Connect Webview.
53
+ */
20
54
  connected_account_id: string | null
55
+ /**
56
+ * Date and time at which the Connect Webview was created.
57
+ */
21
58
  created_at: string
22
59
 
60
+ /**
61
+ * Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
62
+ */
23
63
  custom_metadata: Record<string, unknown>
24
64
 
65
+ /**
66
+ * URL to which the Connect Webview should redirect when an unexpected error occurs.
67
+ */
25
68
  custom_redirect_failure_url: string | null
69
+ /**
70
+ * URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.
71
+ */
26
72
  custom_redirect_url: string | null
73
+ /**
74
+ * The customer key associated with this webview, if any.
75
+ */
27
76
  customer_key?: string | undefined
77
+ /**
78
+ * Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`.
79
+ */
28
80
  device_selection_mode: 'none' | 'single' | 'multiple'
29
81
 
82
+ /**
83
+ * Indicates whether the user logged in successfully using the Connect Webview.
84
+ */
30
85
  login_successful: boolean
31
86
 
87
+ /**
88
+ * Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
89
+ */
32
90
  selected_provider: string | null
91
+ /**
92
+ * Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.
93
+ */
33
94
  status: 'pending' | 'failed' | 'authorized'
34
95
 
96
+ /**
97
+ * URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.
98
+ */
35
99
  url: string
36
100
 
101
+ /**
102
+ * Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.
103
+ */
37
104
  wait_for_device_creation: boolean
38
105
 
106
+ /**
107
+ * ID of the workspace that contains the Connect Webview.
108
+ */
39
109
  workspace_id: string
40
110
  }
@@ -3,155 +3,422 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Represents a [connected account](https://docs.seam.co/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks.
8
+ */
6
9
  export type ConnectedAccount = {
10
+ /**
11
+ * List of capabilities that were accepted during the account connection process.
12
+ */
7
13
  accepted_capabilities: Array<
8
14
  'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'
9
15
  >
10
16
 
17
+ /**
18
+ * Type of connected account.
19
+ */
11
20
  account_type?: string | undefined
21
+ /**
22
+ * Display name for the connected account type.
23
+ */
12
24
  account_type_display_name: string
13
25
 
26
+ /**
27
+ * Indicates whether Seam should [import all new devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for management by the Seam API.
28
+ */
14
29
  automatically_manage_new_devices: boolean
15
30
 
31
+ /**
32
+ * ID of the connected account.
33
+ */
16
34
  connected_account_id: string
17
35
 
36
+ /**
37
+ * Date and time at which the connected account was created.
38
+ */
18
39
  created_at?: string | undefined
40
+ /**
41
+ * Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
42
+ */
19
43
  custom_metadata: Record<string, unknown>
20
44
 
45
+ /**
46
+ * Your unique key for the customer associated with this connected account.
47
+ */
21
48
  customer_key?: string | undefined
49
+ /**
50
+ * Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration — set during the connect_webview for providers like Lodgify whose API does not expose check-in times.
51
+ */
22
52
  default_checkin_time?: string | undefined
53
+ /**
54
+ * Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration.
55
+ */
23
56
  default_checkout_time?: string | undefined
57
+ /**
58
+ * Display name for the connected account.
59
+ */
24
60
  display_name: string
25
61
 
62
+ /**
63
+ * Errors associated with the connected account.
64
+ */
26
65
  errors: Array<
66
+ /**
67
+ * Indicates that the account is disconnected.
68
+ */
27
69
  | {
70
+ /**
71
+ * Date and time at which Seam created the error.
72
+ */
28
73
  created_at: string
29
74
 
75
+ /**
76
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
77
+ */
30
78
  error_code: 'account_disconnected'
31
79
 
80
+ /**
81
+ * Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
82
+ */
32
83
  is_bridge_error?: boolean | undefined
84
+ /**
85
+ * Indicates whether the error is related specifically to the connected account.
86
+ */
33
87
  is_connected_account_error?: boolean | undefined
88
+ /**
89
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
90
+ */
34
91
  message: string
35
- }
92
+ } /**
93
+ * Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).
94
+ */
36
95
  | {
96
+ /**
97
+ * Date and time at which Seam created the error.
98
+ */
37
99
  created_at: string
38
100
 
101
+ /**
102
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
103
+ */
39
104
  error_code: 'bridge_disconnected'
40
105
 
106
+ /**
107
+ * Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
108
+ */
41
109
  is_bridge_error?: boolean | undefined
110
+ /**
111
+ * Indicates whether the error is related specifically to the connected account.
112
+ */
42
113
  is_connected_account_error?: boolean | undefined
114
+ /**
115
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
116
+ */
43
117
  message: string
44
- }
118
+ } /**
119
+ * Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.
120
+ */
45
121
  | {
122
+ /**
123
+ * Date and time at which Seam created the error.
124
+ */
46
125
  created_at: string
47
126
 
127
+ /**
128
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
129
+ */
48
130
  error_code: 'salto_ks_subscription_limit_exceeded'
49
131
 
132
+ /**
133
+ * Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
134
+ */
50
135
  is_bridge_error?: boolean | undefined
136
+ /**
137
+ * Indicates whether the error is related specifically to the connected account.
138
+ */
51
139
  is_connected_account_error?: boolean | undefined
140
+ /**
141
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
142
+ */
52
143
  message: string
53
144
 
145
+ /**
146
+ * Salto KS metadata associated with the connected account that has an error.
147
+ */
54
148
  salto_ks_metadata: {
149
+ /**
150
+ * Salto sites associated with the connected account that has an error.
151
+ */
55
152
  sites?:
56
153
  | Array<{
154
+ /**
155
+ * ID of a Salto site associated with the connected account that has an error.
156
+ */
57
157
  site_id?: string | undefined
158
+ /**
159
+ * Name of a Salto site associated with the connected account that has an error.
160
+ */
58
161
  site_name?: string | undefined
162
+ /**
163
+ * Subscription limit of site users for a Salto site associated with the connected account that has an error.
164
+ */
59
165
  site_user_subscription_limit?: number | undefined
166
+ /**
167
+ * Count of subscribed site users for a Salto site associated with the connected account that has an error.
168
+ */
60
169
  subscribed_site_user_count?: number | undefined
61
170
  }>
62
171
  | undefined
63
172
  }
64
- }
173
+ } /**
174
+ * Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
175
+ */
65
176
  | {
177
+ /**
178
+ * Date and time at which Seam created the error.
179
+ */
66
180
  created_at: string
67
181
 
182
+ /**
183
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
184
+ */
68
185
  error_code: 'dormakaba_sites_disconnected'
69
186
 
187
+ /**
188
+ * Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
189
+ */
70
190
  is_bridge_error?: boolean | undefined
191
+ /**
192
+ * Indicates whether the error is related specifically to the connected account.
193
+ */
71
194
  is_connected_account_error?: boolean | undefined
195
+ /**
196
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
197
+ */
72
198
  message: string
73
199
  }
74
200
  >
75
201
 
202
+ /**
203
+ * For iCal connected accounts, the platform that produced the feed (for example, `airbnb`, `vrbo`, or `booking`), or `unknown` when it could not be determined. Intended for rendering the source platform's logo.
204
+ */
76
205
  ical_feed_origin?: string | undefined
206
+ /**
207
+ * For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration.
208
+ */
77
209
  ical_url?: string | undefined
210
+ /**
211
+ * Logo URL for the connected account provider.
212
+ */
78
213
  image_url?: string | undefined
214
+ /**
215
+ * IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.
216
+ */
79
217
  time_zone?: string | undefined
218
+ /**
219
+ * User identifier associated with the connected account.
220
+ * @deprecated Use `display_name` instead.
221
+ */
80
222
  user_identifier?:
81
223
  | {
224
+ /**
225
+ * API URL for the user identifier associated with the connected account.
226
+ */
82
227
  api_url?: string | undefined
228
+ /**
229
+ * Email address of the user identifier associated with the connected account.
230
+ */
83
231
  email?: string | undefined
232
+ /**
233
+ * Indicates whether the user identifier associated with the connected account is exclusive.
234
+ */
84
235
  exclusive?: boolean | undefined
236
+ /**
237
+ * Phone number of the user identifier associated with the connected account.
238
+ */
85
239
  phone?: string | undefined
240
+ /**
241
+ * Username of the user identifier associated with the connected account.
242
+ */
86
243
  username?: string | undefined
87
244
  }
88
245
  | undefined
246
+ /**
247
+ * Warnings associated with the connected account.
248
+ */
89
249
  warnings: Array<
250
+ /**
251
+ * Indicates that scheduled downtime is planned for the connected account.
252
+ */
90
253
  | {
254
+ /**
255
+ * Date and time at which Seam created the warning.
256
+ */
91
257
  created_at: string
92
258
 
259
+ /**
260
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
261
+ */
93
262
  message: string
94
263
 
264
+ /**
265
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
266
+ */
95
267
  warning_code: 'scheduled_maintenance_window'
96
- }
268
+ } /**
269
+ * Indicates that an unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.
270
+ */
97
271
  | {
272
+ /**
273
+ * Date and time at which Seam created the warning.
274
+ */
98
275
  created_at: string
99
276
 
277
+ /**
278
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
279
+ */
100
280
  message: string
101
281
 
282
+ /**
283
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
284
+ */
102
285
  warning_code: 'unknown_issue_with_connected_account'
103
- }
286
+ } /**
287
+ * Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.
288
+ */
104
289
  | {
290
+ /**
291
+ * Date and time at which Seam created the warning.
292
+ */
105
293
  created_at: string
106
294
 
295
+ /**
296
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
297
+ */
107
298
  message: string
108
299
 
300
+ /**
301
+ * Salto KS metadata associated with the connected account that has a warning.
302
+ */
109
303
  salto_ks_metadata: {
304
+ /**
305
+ * Salto sites associated with the connected account that has a warning.
306
+ */
110
307
  sites?:
111
308
  | Array<{
309
+ /**
310
+ * ID of a Salto site associated with the connected account that has a warning.
311
+ */
112
312
  site_id?: string | undefined
313
+ /**
314
+ * Name of a Salto site associated with the connected account that has a warning.
315
+ */
113
316
  site_name?: string | undefined
317
+ /**
318
+ * Subscription limit of site users for a Salto site associated with the connected account that has a warning.
319
+ */
114
320
  site_user_subscription_limit?: number | undefined
321
+ /**
322
+ * Count of subscribed site users for a Salto site associated with the connected account that has a warning.
323
+ */
115
324
  subscribed_site_user_count?: number | undefined
116
325
  }>
117
326
  | undefined
118
327
  }
119
328
 
329
+ /**
330
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
331
+ */
120
332
  warning_code: 'salto_ks_subscription_limit_almost_reached'
121
- }
333
+ } /**
334
+ * Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
335
+ */
122
336
  | {
337
+ /**
338
+ * Date and time at which Seam created the warning.
339
+ */
123
340
  created_at: string
124
341
 
342
+ /**
343
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
344
+ */
125
345
  message: string
126
346
 
347
+ /**
348
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
349
+ */
127
350
  warning_code: 'account_reauthorization_requested'
128
- }
351
+ } /**
352
+ * Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.
353
+ */
129
354
  | {
355
+ /**
356
+ * Date and time at which Seam created the warning.
357
+ */
130
358
  created_at: string
131
359
 
360
+ /**
361
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
362
+ */
132
363
  message: string
133
364
 
365
+ /**
366
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
367
+ */
134
368
  warning_code: 'being_deleted'
135
- }
369
+ } /**
370
+ * Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
371
+ */
136
372
  | {
373
+ /**
374
+ * Date and time at which Seam created the warning.
375
+ */
137
376
  created_at: string
138
377
 
378
+ /**
379
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
380
+ */
139
381
  message: string
140
382
 
383
+ /**
384
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
385
+ */
141
386
  warning_code: 'provider_service_unavailable'
142
- }
387
+ } /**
388
+ * Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.
389
+ */
143
390
  | {
391
+ /**
392
+ * Date and time at which Seam created the warning.
393
+ */
144
394
  created_at: string
145
395
 
396
+ /**
397
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
398
+ */
146
399
  message: string
147
400
 
401
+ /**
402
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
403
+ */
148
404
  warning_code: 'setup_required'
149
- }
405
+ } /**
406
+ * Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
407
+ */
150
408
  | {
409
+ /**
410
+ * Date and time at which Seam created the warning.
411
+ */
151
412
  created_at: string
152
413
 
414
+ /**
415
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
416
+ */
153
417
  message: string
154
418
 
419
+ /**
420
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
421
+ */
155
422
  warning_code: 'dormakaba_sites_unapproved'
156
423
  }
157
424
  >
@@ -3,14 +3,36 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
8
+ *
9
+ * With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
10
+ *
11
+ * Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control.
12
+ */
6
13
  export type CustomerPortal = {
14
+ /**
15
+ * Date and time at which the customer portal link was created.
16
+ */
7
17
  created_at: string
8
18
 
19
+ /**
20
+ * Customer key for the customer portal.
21
+ */
9
22
  customer_key: string
10
23
 
24
+ /**
25
+ * Date and time at which the customer portal link expires.
26
+ */
11
27
  expires_at: string
12
28
 
29
+ /**
30
+ * URL for the customer portal.
31
+ */
13
32
  url: string
14
33
 
34
+ /**
35
+ * ID of the workspace associated with the customer portal.
36
+ */
15
37
  workspace_id: string
16
38
  }