@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
@@ -1,94 +1,351 @@
1
+ /**
2
+ * Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys.
3
+ */
1
4
  export type UnmanagedAccessGrant = {
5
+ /**
6
+ * ID of the Access Grant.
7
+ */
2
8
  access_grant_id: string;
9
+ /**
10
+ * IDs of the access methods created for the Access Grant.
11
+ */
3
12
  access_method_ids: Array<string>;
13
+ /**
14
+ * Date and time at which the Access Grant was created.
15
+ */
4
16
  created_at: string;
17
+ /**
18
+ * Display name of the Access Grant.
19
+ */
5
20
  display_name: string;
21
+ /**
22
+ * Date and time at which the Access Grant ends.
23
+ */
6
24
  ends_at: string | null;
7
- errors: Array<{
25
+ /**
26
+ * Errors associated with the [access grant](https://docs.seam.co/use-cases/granting-access).
27
+ */
28
+ errors: Array<
29
+ /**
30
+ * Indicates that Seam could not create one or more of the requested access methods for the access grant.
31
+ */
32
+ {
33
+ /**
34
+ * Date and time at which Seam created the error.
35
+ */
8
36
  created_at: string;
37
+ /**
38
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
39
+ */
9
40
  error_code: 'cannot_create_requested_access_methods';
41
+ /**
42
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
43
+ */
10
44
  message: string;
45
+ /**
46
+ * IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.
47
+ */
11
48
  missing_device_ids?: Array<string> | undefined;
12
49
  }>;
50
+ /**
51
+ * @deprecated Use `space_ids`.
52
+ */
13
53
  location_ids: Array<string>;
54
+ /**
55
+ * Name of the Access Grant. If not provided, the display name will be computed.
56
+ */
14
57
  name: string | null;
15
- pending_mutations: Array<{
58
+ /**
59
+ * List of pending mutations for the access grant. This shows updates that are in progress.
60
+ */
61
+ pending_mutations: Array<
62
+ /**
63
+ * Seam is in the process of updating the devices/spaces associated with this access grant.
64
+ */
65
+ {
66
+ /**
67
+ * Date and time at which the mutation was created.
68
+ */
16
69
  created_at: string;
70
+ /**
71
+ * Previous location configuration.
72
+ */
17
73
  from: {
74
+ /**
75
+ * Previous device IDs where access codes existed.
76
+ */
18
77
  device_ids: Array<string>;
19
78
  };
79
+ /**
80
+ * Detailed description of the mutation.
81
+ */
20
82
  message: string;
83
+ /**
84
+ * Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant.
85
+ */
21
86
  mutation_code: 'updating_spaces';
87
+ /**
88
+ * New location configuration.
89
+ */
22
90
  to: {
91
+ /**
92
+ * Common code key to ensure PIN code reuse across devices.
93
+ */
23
94
  common_code_key?: string | null | undefined;
95
+ /**
96
+ * New device IDs where access codes should be created.
97
+ */
24
98
  device_ids: Array<string>;
25
99
  };
26
- } | {
100
+ } /**
101
+ * Seam is in the process of updating the access times for this access grant.
102
+ */ | {
103
+ /**
104
+ * IDs of the access methods being updated.
105
+ */
27
106
  access_method_ids: Array<string>;
107
+ /**
108
+ * Date and time at which the mutation was created.
109
+ */
28
110
  created_at: string;
111
+ /**
112
+ * Previous access time configuration.
113
+ */
29
114
  from: {
115
+ /**
116
+ * Previous end time for access.
117
+ */
30
118
  ends_at: string | null;
119
+ /**
120
+ * Previous start time for access.
121
+ */
31
122
  starts_at: string | null;
32
123
  };
124
+ /**
125
+ * Detailed description of the mutation.
126
+ */
33
127
  message: string;
128
+ /**
129
+ * Mutation code to indicate that Seam is in the process of updating the access times for this access grant.
130
+ */
34
131
  mutation_code: 'updating_access_times';
132
+ /**
133
+ * New access time configuration.
134
+ */
35
135
  to: {
136
+ /**
137
+ * New end time for access.
138
+ */
36
139
  ends_at: string | null;
140
+ /**
141
+ * New start time for access.
142
+ */
37
143
  starts_at: string | null;
38
144
  };
39
145
  }>;
146
+ /**
147
+ * Access methods that the user requested for the Access Grant.
148
+ */
40
149
  requested_access_methods: Array<{
150
+ /**
151
+ * Specific PIN code to use for this access method. Only applicable when mode is 'code'.
152
+ */
41
153
  code?: string | undefined;
154
+ /**
155
+ * IDs of the access methods created for the requested access method.
156
+ */
42
157
  created_access_method_ids: Array<string>;
158
+ /**
159
+ * Date and time at which the requested access method was added to the Access Grant.
160
+ */
43
161
  created_at: string;
162
+ /**
163
+ * Display name of the access method.
164
+ */
44
165
  display_name: string;
166
+ /**
167
+ * Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.
168
+ */
45
169
  instant_key_max_use_count?: number | undefined;
170
+ /**
171
+ * Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
172
+ */
46
173
  mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
47
174
  }>;
175
+ /**
176
+ * Reservation key for the access grant.
177
+ */
48
178
  reservation_key?: string | undefined;
179
+ /**
180
+ * IDs of the spaces to which the Access Grant gives access.
181
+ */
49
182
  space_ids: Array<string>;
183
+ /**
184
+ * Date and time at which the Access Grant starts.
185
+ */
50
186
  starts_at: string;
187
+ /**
188
+ * ID of user identity to which the Access Grant gives access.
189
+ */
51
190
  user_identity_id?: string | undefined;
52
- warnings: Array<{
191
+ /**
192
+ * Warnings associated with the [access grant](https://docs.seam.co/use-cases/granting-access).
193
+ */
194
+ warnings: Array<
195
+ /**
196
+ * Indicates that the [access grant](https://docs.seam.co/use-cases/granting-access) is being deleted.
197
+ */
198
+ {
199
+ /**
200
+ * Date and time at which Seam created the warning.
201
+ */
53
202
  created_at: string;
203
+ /**
204
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
205
+ */
54
206
  message: string;
207
+ /**
208
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
209
+ */
55
210
  warning_code: 'being_deleted';
56
- } | {
211
+ } /**
212
+ * Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.
213
+ */ | {
214
+ /**
215
+ * Date and time at which Seam created the warning.
216
+ */
57
217
  created_at: string;
218
+ /**
219
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
220
+ */
58
221
  message: string;
222
+ /**
223
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
224
+ */
59
225
  warning_code: 'underprovisioned_access';
60
- } | {
226
+ } /**
227
+ * Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.
228
+ */ | {
229
+ /**
230
+ * Date and time at which Seam created the warning.
231
+ */
61
232
  created_at: string;
233
+ /**
234
+ * Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).
235
+ */
62
236
  failed_devices?: Array<{
237
+ /**
238
+ * Device whose access code could not be revoked.
239
+ */
63
240
  device_id: string;
241
+ /**
242
+ * Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
243
+ */
64
244
  error_code: string;
245
+ /**
246
+ * Human-readable description of why revocation failed.
247
+ */
65
248
  message: string;
66
249
  }> | undefined;
250
+ /**
251
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
252
+ */
67
253
  message: string;
254
+ /**
255
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
256
+ */
68
257
  warning_code: 'overprovisioned_access';
69
- } | {
258
+ } /**
259
+ * Indicates that the access times for this [access grant](https://docs.seam.co/use-cases/granting-access) are being updated.
260
+ */ | {
261
+ /**
262
+ * IDs of the access methods being updated.
263
+ */
70
264
  access_method_ids: Array<string>;
265
+ /**
266
+ * Date and time at which Seam created the warning.
267
+ */
71
268
  created_at: string;
269
+ /**
270
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
271
+ */
72
272
  message: string;
273
+ /**
274
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
275
+ */
73
276
  warning_code: 'updating_access_times';
74
- } | {
277
+ } /**
278
+ * Indicates that the requested PIN code was already in use on a device, so a different code was assigned.
279
+ */ | {
280
+ /**
281
+ * Date and time at which Seam created the warning.
282
+ */
75
283
  created_at: string;
284
+ /**
285
+ * ID of the device where the requested code was unavailable.
286
+ */
76
287
  device_id: string;
288
+ /**
289
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
290
+ */
77
291
  message: string;
292
+ /**
293
+ * The new PIN code that was assigned instead.
294
+ */
78
295
  new_code: string;
296
+ /**
297
+ * The originally requested PIN code that was unavailable.
298
+ */
79
299
  original_code: string;
300
+ /**
301
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
302
+ */
80
303
  warning_code: 'requested_code_unavailable';
81
- } | {
304
+ } /**
305
+ * Indicates that a device in the access grant does not support access codes and was excluded from code materialization.
306
+ */ | {
307
+ /**
308
+ * Date and time at which Seam created the warning.
309
+ */
82
310
  created_at: string;
311
+ /**
312
+ * ID of the device that does not support access codes.
313
+ */
83
314
  device_id: string;
315
+ /**
316
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
317
+ */
84
318
  message: string;
319
+ /**
320
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
321
+ */
85
322
  warning_code: 'device_does_not_support_access_codes';
86
- } | {
323
+ } /**
324
+ * Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.
325
+ */ | {
326
+ /**
327
+ * Date and time at which Seam created the warning.
328
+ */
87
329
  created_at: string;
330
+ /**
331
+ * ID of the device whose time constraints the access grant violates.
332
+ */
88
333
  device_id: string;
334
+ /**
335
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
336
+ */
89
337
  message: string;
338
+ /**
339
+ * Specific reason why the grant's times are not programmable on the device.
340
+ */
90
341
  reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported';
342
+ /**
343
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
344
+ */
91
345
  warning_code: 'device_time_constraints_violated';
92
346
  }>;
347
+ /**
348
+ * ID of the Seam workspace associated with the Access Grant.
349
+ */
93
350
  workspace_id: string;
94
351
  };
@@ -1,70 +1,257 @@
1
+ /**
2
+ * Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys.
3
+ */
1
4
  export type UnmanagedAccessMethod = {
5
+ /**
6
+ * ID of the access method.
7
+ */
2
8
  access_method_id: string;
9
+ /**
10
+ * The actual PIN code for code access methods.
11
+ */
3
12
  code?: string | null | undefined;
13
+ /**
14
+ * Date and time at which the access method was created.
15
+ */
4
16
  created_at: string;
17
+ /**
18
+ * Display name of the access method.
19
+ */
5
20
  display_name: string;
6
- errors: Array<{
21
+ /**
22
+ * Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
23
+ */
24
+ errors: Array<
25
+ /**
26
+ * Indicates that Seam was unable to issue this [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) before its access grant started, so the recipient may be unable to access the space. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and this error clears automatically if the access method is eventually issued.
27
+ */
28
+ {
29
+ /**
30
+ * Date and time at which Seam created the error.
31
+ */
7
32
  created_at: string;
33
+ /**
34
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
35
+ */
8
36
  error_code: 'failed_to_issue';
37
+ /**
38
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
39
+ */
9
40
  message: string;
10
41
  }>;
42
+ /**
43
+ * Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.
44
+ */
11
45
  is_assignment_required?: boolean | undefined;
46
+ /**
47
+ * Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.
48
+ */
12
49
  is_encoding_required?: boolean | undefined;
50
+ /**
51
+ * Indicates whether the access method has been issued.
52
+ */
13
53
  is_issued: boolean;
54
+ /**
55
+ * Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.
56
+ */
14
57
  is_ready_for_assignment?: boolean | undefined;
58
+ /**
59
+ * Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
60
+ */
15
61
  is_ready_for_encoding?: boolean | undefined;
62
+ /**
63
+ * Date and time at which the access method was issued.
64
+ */
16
65
  issued_at: string | null;
66
+ /**
67
+ * Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
68
+ */
17
69
  mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
18
- pending_mutations: Array<{
70
+ /**
71
+ * Pending mutations for the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.
72
+ */
73
+ pending_mutations: Array<
74
+ /**
75
+ * Seam is in the process of provisioning access for this access method on new devices.
76
+ */
77
+ {
78
+ /**
79
+ * Date and time at which the mutation was created.
80
+ */
19
81
  created_at: string;
82
+ /**
83
+ * Previous device configuration.
84
+ */
20
85
  from: {
86
+ /**
87
+ * Previous device IDs where access was provisioned.
88
+ */
21
89
  device_ids: Array<string>;
22
90
  };
91
+ /**
92
+ * Detailed description of the mutation.
93
+ */
23
94
  message: string;
95
+ /**
96
+ * Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.
97
+ */
24
98
  mutation_code: 'provisioning_access';
99
+ /**
100
+ * New device configuration.
101
+ */
25
102
  to: {
103
+ /**
104
+ * New device IDs where access is being provisioned.
105
+ */
26
106
  device_ids: Array<string>;
27
107
  };
28
- } | {
108
+ } /**
109
+ * Seam is in the process of revoking access for this access method from devices.
110
+ */ | {
111
+ /**
112
+ * Date and time at which the mutation was created.
113
+ */
29
114
  created_at: string;
115
+ /**
116
+ * Previous device configuration.
117
+ */
30
118
  from: {
119
+ /**
120
+ * Previous device IDs where access existed.
121
+ */
31
122
  device_ids: Array<string>;
32
123
  };
124
+ /**
125
+ * Detailed description of the mutation.
126
+ */
33
127
  message: string;
128
+ /**
129
+ * Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.
130
+ */
34
131
  mutation_code: 'revoking_access';
132
+ /**
133
+ * New device configuration.
134
+ */
35
135
  to: {
136
+ /**
137
+ * New device IDs where access should remain.
138
+ */
36
139
  device_ids: Array<string>;
37
140
  };
38
- } | {
141
+ } /**
142
+ * Seam is in the process of updating the access times for this access method.
143
+ */ | {
144
+ /**
145
+ * Date and time at which the mutation was created.
146
+ */
39
147
  created_at: string;
148
+ /**
149
+ * Previous access time configuration.
150
+ */
40
151
  from: {
152
+ /**
153
+ * Previous end time for access.
154
+ */
41
155
  ends_at: string | null;
156
+ /**
157
+ * Previous start time for access.
158
+ */
42
159
  starts_at: string | null;
43
160
  };
161
+ /**
162
+ * Detailed description of the mutation.
163
+ */
44
164
  message: string;
165
+ /**
166
+ * Mutation code to indicate that Seam is in the process of updating the access times for this access method.
167
+ */
45
168
  mutation_code: 'updating_access_times';
169
+ /**
170
+ * New access time configuration.
171
+ */
46
172
  to: {
173
+ /**
174
+ * New end time for access.
175
+ */
47
176
  ends_at: string | null;
177
+ /**
178
+ * New start time for access.
179
+ */
48
180
  starts_at: string | null;
49
181
  };
50
182
  }>;
51
- warnings: Array<{
183
+ /**
184
+ * Warnings associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
185
+ */
186
+ warnings: Array<
187
+ /**
188
+ * Indicates that the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) is being deleted.
189
+ */
190
+ {
191
+ /**
192
+ * Date and time at which Seam created the warning.
193
+ */
52
194
  created_at: string;
195
+ /**
196
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
197
+ */
53
198
  message: string;
199
+ /**
200
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
201
+ */
54
202
  warning_code: 'being_deleted';
55
- } | {
203
+ } /**
204
+ * Indicates that the access times for this [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) are being updated.
205
+ */ | {
206
+ /**
207
+ * Date and time at which Seam created the warning.
208
+ */
56
209
  created_at: string;
210
+ /**
211
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
212
+ */
57
213
  message: string;
214
+ /**
215
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
216
+ */
58
217
  warning_code: 'updating_access_times';
59
- } | {
218
+ } /**
219
+ * Indicates that all attempts to create an access code on this device before the start time failed and a backup access code was used to ensure access was provided in time.
220
+ */ | {
221
+ /**
222
+ * Date and time at which Seam created the warning.
223
+ */
60
224
  created_at: string;
225
+ /**
226
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
227
+ */
61
228
  message: string;
229
+ /**
230
+ * ID of the original access method from which this backup access method was split, if applicable.
231
+ */
62
232
  original_access_method_id?: string | undefined;
233
+ /**
234
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
235
+ */
63
236
  warning_code: 'pulled_backup_access_code';
64
- } | {
237
+ } /**
238
+ * Indicates that Seam has not yet issued this [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
239
+ */ | {
240
+ /**
241
+ * Date and time at which Seam created the warning.
242
+ */
65
243
  created_at: string;
244
+ /**
245
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
246
+ */
66
247
  message: string;
248
+ /**
249
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
250
+ */
67
251
  warning_code: 'delay_in_issuing';
68
252
  }>;
253
+ /**
254
+ * ID of the Seam workspace associated with the access method.
255
+ */
69
256
  workspace_id: string;
70
257
  };