@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,49 +3,106 @@
3
3
  * Do not edit this file.
4
4
  */
5
5
 
6
+ /**
7
+ * Locking a door is pending.
8
+ */
6
9
  export type ActionAttempt =
7
10
  | {
11
+ /**
12
+ * ID of the action attempt.
13
+ */
8
14
  action_attempt_id: string
9
15
 
16
+ /**
17
+ * Action attempt to track the status of locking a door.
18
+ */
10
19
  action_type: 'LOCK_DOOR'
11
20
 
21
+ /**
22
+ * Error associated with the action.
23
+ */
12
24
  error: {
25
+ /**
26
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
27
+ */
13
28
  message: string
14
29
 
30
+ /**
31
+ * Type of the error.
32
+ */
15
33
  type: string
16
34
  }
17
35
 
36
+ /**
37
+ * Result of the action.
38
+ */
18
39
  result: {
40
+ /**
41
+ * Indicates whether the device confirmed that the lock action occurred.
42
+ */
19
43
  was_confirmed_by_device?: boolean | undefined
20
44
  }
21
45
 
22
46
  status: 'success' | 'pending' | 'error'
23
47
  }
24
48
  | {
49
+ /**
50
+ * ID of the action attempt.
51
+ */
25
52
  action_attempt_id: string
26
53
 
54
+ /**
55
+ * Action attempt to track the status of unlocking a door.
56
+ */
27
57
  action_type: 'UNLOCK_DOOR'
28
58
 
59
+ /**
60
+ * Error associated with the action.
61
+ */
29
62
  error: {
63
+ /**
64
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
65
+ */
30
66
  message: string
31
67
 
68
+ /**
69
+ * Type of the error.
70
+ */
32
71
  type: string
33
72
  }
34
73
 
74
+ /**
75
+ * Result of the action.
76
+ */
35
77
  result: {
78
+ /**
79
+ * Indicates whether the device confirmed that the unlock action occurred.
80
+ */
36
81
  was_confirmed_by_device?: boolean | undefined
37
82
  }
38
83
 
39
84
  status: 'success' | 'pending' | 'error'
40
85
  }
41
86
  | {
87
+ /**
88
+ * ID of the action attempt.
89
+ */
42
90
  action_attempt_id: string
43
91
 
92
+ /**
93
+ * Action attempt to track the status of scanning a credential.
94
+ */
44
95
  action_type: 'SCAN_CREDENTIAL'
45
96
 
46
97
  error: {
98
+ /**
99
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
100
+ */
47
101
  message: string
48
102
 
103
+ /**
104
+ * Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.
105
+ */
49
106
  type:
50
107
  | 'uncategorized_error'
51
108
  | 'action_attempt_expired'
@@ -55,59 +112,182 @@ export type ActionAttempt =
55
112
  | 'bridge_disconnected'
56
113
  }
57
114
 
115
+ /**
116
+ * Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings.
117
+ */
58
118
  result: {
119
+ /**
120
+ * Snapshot of credential data read from the physical encoder.
121
+ */
59
122
  acs_credential_on_encoder: {
123
+ /**
124
+ * A number or string that physically identifies the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
125
+ */
60
126
  card_number: string | null
127
+ /**
128
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
129
+ */
61
130
  created_at: string | null
131
+ /**
132
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) will stop being usable.
133
+ */
62
134
  ends_at: string | null
135
+ /**
136
+ * Indicates whether the credential has been issued (encoded onto a card).
137
+ */
63
138
  is_issued: boolean | null
139
+ /**
140
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) becomes usable.
141
+ */
64
142
  starts_at: string | null
143
+ /**
144
+ * Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
145
+ */
65
146
  visionline_metadata?:
66
147
  | {
148
+ /**
149
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is cancelled.
150
+ */
67
151
  cancelled?: boolean | undefined
152
+ /**
153
+ * Format of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
154
+ */
68
155
  card_format?: 'TLCode' | 'rfid48' | undefined
156
+ /**
157
+ * Holder of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
158
+ */
69
159
  card_holder?: string | undefined
160
+ /**
161
+ * Card ID for the Visionline card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
162
+ */
70
163
  card_id?: string | undefined
164
+ /**
165
+ * IDs of the common [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
166
+ */
71
167
  common_acs_entrance_ids?: Array<string> | undefined
168
+ /**
169
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is discarded.
170
+ */
72
171
  discarded?: boolean | undefined
172
+ /**
173
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is expired.
174
+ */
73
175
  expired?: boolean | undefined
176
+ /**
177
+ * IDs of the guest [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
178
+ */
74
179
  guest_acs_entrance_ids?: Array<string> | undefined
180
+ /**
181
+ * Number of issued cards associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
182
+ */
75
183
  number_of_issued_cards?: number | undefined
184
+ /**
185
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overridden.
186
+ */
76
187
  overridden?: boolean | undefined
188
+ /**
189
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overwritten.
190
+ */
77
191
  overwritten?: boolean | undefined
192
+ /**
193
+ * Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is pending auto-update.
194
+ */
78
195
  pending_auto_update?: boolean | undefined
79
196
  }
80
197
  | undefined
81
198
  } | null
199
+ /**
200
+ * Corresponding credential data as stored on Seam and the access system.
201
+ */
82
202
  acs_credential_on_seam: {
203
+ /**
204
+ * Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
205
+ */
83
206
  access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'
84
207
 
208
+ /**
209
+ * ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
210
+ */
85
211
  acs_credential_id: string
86
212
 
213
+ /**
214
+ * ID of the credential pool to which the credential belongs.
215
+ */
87
216
  acs_credential_pool_id?: string | undefined
217
+ /**
218
+ * ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
219
+ */
88
220
  acs_system_id: string
89
221
 
222
+ /**
223
+ * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
224
+ */
90
225
  acs_user_id?: string | undefined
226
+ /**
227
+ * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
228
+ */
91
229
  assa_abloy_vostio_metadata?:
92
230
  | {
231
+ /**
232
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
233
+ */
93
234
  auto_join?: boolean | undefined
235
+ /**
236
+ * Names of the doors to which to grant access in the Vostio access system.
237
+ */
94
238
  door_names?: Array<string> | undefined
239
+ /**
240
+ * Endpoint ID in the Vostio access system.
241
+ */
95
242
  endpoint_id?: string | undefined
243
+ /**
244
+ * Key ID in the Vostio access system.
245
+ */
96
246
  key_id?: string | undefined
247
+ /**
248
+ * Key issuing request ID in the Vostio access system.
249
+ */
97
250
  key_issuing_request_id?: string | undefined
251
+ /**
252
+ * IDs of the guest entrances to override in the Vostio access system.
253
+ */
98
254
  override_guest_acs_entrance_ids?: Array<string> | undefined
99
255
  }
100
256
  | undefined
257
+ /**
258
+ * Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
259
+ */
101
260
  card_number?: string | null | undefined
261
+ /**
262
+ * Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
263
+ */
102
264
  code?: string | null | undefined
265
+ /**
266
+ * ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
267
+ */
103
268
  connected_account_id: string
104
269
 
270
+ /**
271
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
272
+ */
105
273
  created_at: string
106
274
 
275
+ /**
276
+ * Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
277
+ */
107
278
  display_name: string
108
279
 
280
+ /**
281
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
282
+ */
109
283
  ends_at?: string | undefined
284
+ /**
285
+ * Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
286
+ */
110
287
  errors: Array<{
288
+ /**
289
+ * Date and time at which Seam created the error.
290
+ */
111
291
  created_at: string
112
292
 
113
293
  error_code: string
@@ -115,6 +295,9 @@ export type ActionAttempt =
115
295
  message: string
116
296
  }>
117
297
 
298
+ /**
299
+ * Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
300
+ */
118
301
  external_type?:
119
302
  | 'pti_card'
120
303
  | 'brivo_credential'
@@ -130,37 +313,107 @@ export type ActionAttempt =
130
313
  | 'avigilon_alta_credential'
131
314
  | 'kisi_credential'
132
315
  | undefined
316
+ /**
317
+ * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
318
+ */
133
319
  external_type_display_name?: string | undefined
320
+ /**
321
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
322
+ */
134
323
  is_issued?: boolean | undefined
324
+ /**
325
+ * Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
326
+ */
135
327
  is_latest_desired_state_synced_with_provider?:
136
328
  boolean | null | undefined
329
+
137
330
  is_managed: boolean
138
331
 
332
+ /**
333
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
334
+ */
139
335
  is_multi_phone_sync_credential?: boolean | undefined
336
+ /**
337
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
338
+ */
140
339
  is_one_time_use?: boolean | undefined
340
+ /**
341
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
342
+ */
141
343
  issued_at?: string | null | undefined
344
+ /**
345
+ * Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
346
+ */
142
347
  latest_desired_state_synced_with_provider_at?:
143
348
  string | null | undefined
349
+ /**
350
+ * ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
351
+ */
144
352
  parent_acs_credential_id?: string | undefined
353
+ /**
354
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
355
+ */
145
356
  starts_at?: string | undefined
357
+ /**
358
+ * ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
359
+ */
146
360
  user_identity_id?: string | undefined
361
+ /**
362
+ * Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
363
+ */
147
364
  visionline_metadata?:
148
365
  | {
366
+ /**
367
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
368
+ */
149
369
  auto_join?: boolean | undefined
370
+ /**
371
+ * Card function type in the Visionline access system.
372
+ */
150
373
  card_function_type?: 'guest' | 'staff' | undefined
374
+ /**
375
+ * ID of the card in the Visionline access system.
376
+ */
151
377
  card_id?: string | undefined
378
+ /**
379
+ * Common entrance IDs in the Visionline access system.
380
+ */
152
381
  common_acs_entrance_ids?: Array<string> | undefined
382
+ /**
383
+ * ID of the credential in the Visionline access system.
384
+ */
153
385
  credential_id?: string | undefined
386
+ /**
387
+ * Guest entrance IDs in the Visionline access system.
388
+ */
154
389
  guest_acs_entrance_ids?: Array<string> | undefined
390
+ /**
391
+ * Indicates whether the credential is valid.
392
+ */
155
393
  is_valid?: boolean | undefined
394
+ /**
395
+ * IDs of the credentials to which you want to join.
396
+ */
156
397
  joiner_acs_credential_ids?: Array<string> | undefined
157
398
  }
158
399
  | undefined
400
+ /**
401
+ * Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
402
+ */
159
403
  warnings: Array<{
404
+ /**
405
+ * Date and time at which Seam created the warning.
406
+ */
160
407
  created_at: string
161
408
 
409
+ /**
410
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
411
+ */
162
412
  message: string
163
413
 
414
+ /**
415
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
416
+ */
164
417
  warning_code:
165
418
  | 'waiting_to_be_issued'
166
419
  | 'schedule_externally_modified'
@@ -170,14 +423,26 @@ export type ActionAttempt =
170
423
  | 'needs_to_be_reissued'
171
424
  }>
172
425
 
426
+ /**
427
+ * ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
428
+ */
173
429
  workspace_id: string
174
430
  }
175
431
 
432
+ /**
433
+ * Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system.
434
+ */
176
435
  warnings: Array<{
436
+ /**
437
+ * Indicates a warning related to scanning a credential.
438
+ */
177
439
  warning_code:
178
440
  | 'acs_credential_on_encoder_out_of_sync'
179
441
  | 'acs_credential_on_seam_not_found'
180
442
 
443
+ /**
444
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
445
+ */
181
446
  warning_message: string
182
447
  }>
183
448
  }
@@ -185,13 +450,25 @@ export type ActionAttempt =
185
450
  status: 'success' | 'pending' | 'error'
186
451
  }
187
452
  | {
453
+ /**
454
+ * ID of the action attempt.
455
+ */
188
456
  action_attempt_id: string
189
457
 
458
+ /**
459
+ * Action attempt to track the status of encoding credential data from the physical encoder onto a card.
460
+ */
190
461
  action_type: 'ENCODE_CREDENTIAL'
191
462
 
192
463
  error: {
464
+ /**
465
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
466
+ */
193
467
  message: string
194
468
 
469
+ /**
470
+ * Error type to indicate that the credential was deleted and can no longer be encoded.
471
+ */
195
472
  type:
196
473
  | 'uncategorized_error'
197
474
  | 'action_attempt_expired'
@@ -205,35 +482,98 @@ export type ActionAttempt =
205
482
  | 'credential_deleted'
206
483
  }
207
484
 
485
+ /**
486
+ * Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.
487
+ */
208
488
  result: {
489
+ /**
490
+ * Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
491
+ */
209
492
  access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'
210
493
 
494
+ /**
495
+ * ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
496
+ */
211
497
  acs_credential_id: string
212
498
 
499
+ /**
500
+ * ID of the credential pool to which the credential belongs.
501
+ */
213
502
  acs_credential_pool_id?: string | undefined
503
+ /**
504
+ * ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
505
+ */
214
506
  acs_system_id: string
215
507
 
508
+ /**
509
+ * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
510
+ */
216
511
  acs_user_id?: string | undefined
512
+ /**
513
+ * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
514
+ */
217
515
  assa_abloy_vostio_metadata?:
218
516
  | {
517
+ /**
518
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
519
+ */
219
520
  auto_join?: boolean | undefined
521
+ /**
522
+ * Names of the doors to which to grant access in the Vostio access system.
523
+ */
220
524
  door_names?: Array<string> | undefined
525
+ /**
526
+ * Endpoint ID in the Vostio access system.
527
+ */
221
528
  endpoint_id?: string | undefined
529
+ /**
530
+ * Key ID in the Vostio access system.
531
+ */
222
532
  key_id?: string | undefined
533
+ /**
534
+ * Key issuing request ID in the Vostio access system.
535
+ */
223
536
  key_issuing_request_id?: string | undefined
537
+ /**
538
+ * IDs of the guest entrances to override in the Vostio access system.
539
+ */
224
540
  override_guest_acs_entrance_ids?: Array<string> | undefined
225
541
  }
226
542
  | undefined
543
+ /**
544
+ * Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
545
+ */
227
546
  card_number?: string | null | undefined
547
+ /**
548
+ * Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
549
+ */
228
550
  code?: string | null | undefined
551
+ /**
552
+ * ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
553
+ */
229
554
  connected_account_id: string
230
555
 
556
+ /**
557
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
558
+ */
231
559
  created_at: string
232
560
 
561
+ /**
562
+ * Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
563
+ */
233
564
  display_name: string
234
565
 
566
+ /**
567
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
568
+ */
235
569
  ends_at?: string | undefined
570
+ /**
571
+ * Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
572
+ */
236
573
  errors: Array<{
574
+ /**
575
+ * Date and time at which Seam created the error.
576
+ */
237
577
  created_at: string
238
578
 
239
579
  error_code: string
@@ -241,6 +581,9 @@ export type ActionAttempt =
241
581
  message: string
242
582
  }>
243
583
 
584
+ /**
585
+ * Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
586
+ */
244
587
  external_type?:
245
588
  | 'pti_card'
246
589
  | 'brivo_credential'
@@ -256,36 +599,106 @@ export type ActionAttempt =
256
599
  | 'avigilon_alta_credential'
257
600
  | 'kisi_credential'
258
601
  | undefined
602
+ /**
603
+ * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
604
+ */
259
605
  external_type_display_name?: string | undefined
606
+ /**
607
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
608
+ */
260
609
  is_issued?: boolean | undefined
610
+ /**
611
+ * Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
612
+ */
261
613
  is_latest_desired_state_synced_with_provider?:
262
614
  boolean | null | undefined
615
+
263
616
  is_managed: boolean
264
617
 
618
+ /**
619
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
620
+ */
265
621
  is_multi_phone_sync_credential?: boolean | undefined
622
+ /**
623
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
624
+ */
266
625
  is_one_time_use?: boolean | undefined
626
+ /**
627
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
628
+ */
267
629
  issued_at?: string | null | undefined
630
+ /**
631
+ * Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
632
+ */
268
633
  latest_desired_state_synced_with_provider_at?: string | null | undefined
634
+ /**
635
+ * ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
636
+ */
269
637
  parent_acs_credential_id?: string | undefined
638
+ /**
639
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
640
+ */
270
641
  starts_at?: string | undefined
642
+ /**
643
+ * ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
644
+ */
271
645
  user_identity_id?: string | undefined
646
+ /**
647
+ * Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
648
+ */
272
649
  visionline_metadata?:
273
650
  | {
651
+ /**
652
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
653
+ */
274
654
  auto_join?: boolean | undefined
655
+ /**
656
+ * Card function type in the Visionline access system.
657
+ */
275
658
  card_function_type?: 'guest' | 'staff' | undefined
659
+ /**
660
+ * ID of the card in the Visionline access system.
661
+ */
276
662
  card_id?: string | undefined
663
+ /**
664
+ * Common entrance IDs in the Visionline access system.
665
+ */
277
666
  common_acs_entrance_ids?: Array<string> | undefined
667
+ /**
668
+ * ID of the credential in the Visionline access system.
669
+ */
278
670
  credential_id?: string | undefined
671
+ /**
672
+ * Guest entrance IDs in the Visionline access system.
673
+ */
279
674
  guest_acs_entrance_ids?: Array<string> | undefined
675
+ /**
676
+ * Indicates whether the credential is valid.
677
+ */
280
678
  is_valid?: boolean | undefined
679
+ /**
680
+ * IDs of the credentials to which you want to join.
681
+ */
281
682
  joiner_acs_credential_ids?: Array<string> | undefined
282
683
  }
283
684
  | undefined
685
+ /**
686
+ * Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
687
+ */
284
688
  warnings: Array<{
689
+ /**
690
+ * Date and time at which Seam created the warning.
691
+ */
285
692
  created_at: string
286
693
 
694
+ /**
695
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
696
+ */
287
697
  message: string
288
698
 
699
+ /**
700
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
701
+ */
289
702
  warning_code:
290
703
  | 'waiting_to_be_issued'
291
704
  | 'schedule_externally_modified'
@@ -295,54 +708,132 @@ export type ActionAttempt =
295
708
  | 'needs_to_be_reissued'
296
709
  }>
297
710
 
711
+ /**
712
+ * ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
713
+ */
298
714
  workspace_id: string
299
715
  }
300
716
 
301
717
  status: 'success' | 'pending' | 'error'
302
718
  }
303
719
  | {
720
+ /**
721
+ * ID of the action attempt.
722
+ */
304
723
  action_attempt_id: string
305
724
 
725
+ /**
726
+ * Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user.
727
+ */
306
728
  action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'
307
729
 
308
730
  error: {
731
+ /**
732
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
733
+ */
309
734
  message: string
310
735
 
736
+ /**
737
+ * Error type to indicate that there is no credential on the encoder.
738
+ */
311
739
  type:
312
740
  | 'uncategorized_error'
313
741
  | 'action_attempt_expired'
314
742
  | 'no_credential_on_encoder'
315
743
  }
316
744
 
745
+ /**
746
+ * Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned.
747
+ */
317
748
  result: {
749
+ /**
750
+ * Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
751
+ */
318
752
  access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'
319
753
 
754
+ /**
755
+ * ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
756
+ */
320
757
  acs_credential_id: string
321
758
 
759
+ /**
760
+ * ID of the credential pool to which the credential belongs.
761
+ */
322
762
  acs_credential_pool_id?: string | undefined
763
+ /**
764
+ * ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
765
+ */
323
766
  acs_system_id: string
324
767
 
768
+ /**
769
+ * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
770
+ */
325
771
  acs_user_id?: string | undefined
772
+ /**
773
+ * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
774
+ */
326
775
  assa_abloy_vostio_metadata?:
327
776
  | {
777
+ /**
778
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
779
+ */
328
780
  auto_join?: boolean | undefined
781
+ /**
782
+ * Names of the doors to which to grant access in the Vostio access system.
783
+ */
329
784
  door_names?: Array<string> | undefined
785
+ /**
786
+ * Endpoint ID in the Vostio access system.
787
+ */
330
788
  endpoint_id?: string | undefined
789
+ /**
790
+ * Key ID in the Vostio access system.
791
+ */
331
792
  key_id?: string | undefined
793
+ /**
794
+ * Key issuing request ID in the Vostio access system.
795
+ */
332
796
  key_issuing_request_id?: string | undefined
797
+ /**
798
+ * IDs of the guest entrances to override in the Vostio access system.
799
+ */
333
800
  override_guest_acs_entrance_ids?: Array<string> | undefined
334
801
  }
335
802
  | undefined
803
+ /**
804
+ * Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
805
+ */
336
806
  card_number?: string | null | undefined
807
+ /**
808
+ * Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
809
+ */
337
810
  code?: string | null | undefined
811
+ /**
812
+ * ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
813
+ */
338
814
  connected_account_id: string
339
815
 
816
+ /**
817
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
818
+ */
340
819
  created_at: string
341
820
 
821
+ /**
822
+ * Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
823
+ */
342
824
  display_name: string
343
825
 
826
+ /**
827
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
828
+ */
344
829
  ends_at?: string | undefined
830
+ /**
831
+ * Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
832
+ */
345
833
  errors: Array<{
834
+ /**
835
+ * Date and time at which Seam created the error.
836
+ */
346
837
  created_at: string
347
838
 
348
839
  error_code: string
@@ -350,6 +841,9 @@ export type ActionAttempt =
350
841
  message: string
351
842
  }>
352
843
 
844
+ /**
845
+ * Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
846
+ */
353
847
  external_type?:
354
848
  | 'pti_card'
355
849
  | 'brivo_credential'
@@ -365,36 +859,108 @@ export type ActionAttempt =
365
859
  | 'avigilon_alta_credential'
366
860
  | 'kisi_credential'
367
861
  | undefined
862
+ /**
863
+ * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
864
+ */
368
865
  external_type_display_name?: string | undefined
866
+ /**
867
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
868
+ */
369
869
  is_issued?: boolean | undefined
870
+ /**
871
+ * Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
872
+ */
370
873
  is_latest_desired_state_synced_with_provider?:
371
874
  boolean | null | undefined
875
+ /**
876
+ * Indicates whether Seam manages the credential.
877
+ */
372
878
  is_managed: boolean
373
879
 
880
+ /**
881
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
882
+ */
374
883
  is_multi_phone_sync_credential?: boolean | undefined
884
+ /**
885
+ * Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
886
+ */
375
887
  is_one_time_use?: boolean | undefined
888
+ /**
889
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
890
+ */
376
891
  issued_at?: string | null | undefined
892
+ /**
893
+ * Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
894
+ */
377
895
  latest_desired_state_synced_with_provider_at?: string | null | undefined
896
+ /**
897
+ * ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
898
+ */
378
899
  parent_acs_credential_id?: string | undefined
900
+ /**
901
+ * Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
902
+ */
379
903
  starts_at?: string | undefined
904
+ /**
905
+ * ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
906
+ */
380
907
  user_identity_id?: string | undefined
908
+ /**
909
+ * Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
910
+ */
381
911
  visionline_metadata?:
382
912
  | {
913
+ /**
914
+ * Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
915
+ */
383
916
  auto_join?: boolean | undefined
917
+ /**
918
+ * Card function type in the Visionline access system.
919
+ */
384
920
  card_function_type?: 'guest' | 'staff' | undefined
921
+ /**
922
+ * ID of the card in the Visionline access system.
923
+ */
385
924
  card_id?: string | undefined
925
+ /**
926
+ * Common entrance IDs in the Visionline access system.
927
+ */
386
928
  common_acs_entrance_ids?: Array<string> | undefined
929
+ /**
930
+ * ID of the credential in the Visionline access system.
931
+ */
387
932
  credential_id?: string | undefined
933
+ /**
934
+ * Guest entrance IDs in the Visionline access system.
935
+ */
388
936
  guest_acs_entrance_ids?: Array<string> | undefined
937
+ /**
938
+ * Indicates whether the credential is valid.
939
+ */
389
940
  is_valid?: boolean | undefined
941
+ /**
942
+ * IDs of the credentials to which you want to join.
943
+ */
390
944
  joiner_acs_credential_ids?: Array<string> | undefined
391
945
  }
392
946
  | undefined
947
+ /**
948
+ * Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
949
+ */
393
950
  warnings: Array<{
951
+ /**
952
+ * Date and time at which Seam created the warning.
953
+ */
394
954
  created_at: string
395
955
 
956
+ /**
957
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
958
+ */
396
959
  message: string
397
960
 
961
+ /**
962
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
963
+ */
398
964
  warning_code:
399
965
  | 'waiting_to_be_issued'
400
966
  | 'schedule_externally_modified'
@@ -404,312 +970,702 @@ export type ActionAttempt =
404
970
  | 'needs_to_be_reissued'
405
971
  }>
406
972
 
973
+ /**
974
+ * ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
975
+ */
407
976
  workspace_id: string
408
977
  }
409
978
 
410
979
  status: 'success' | 'pending' | 'error'
411
980
  }
412
981
  | {
982
+ /**
983
+ * ID of the action attempt.
984
+ */
413
985
  action_attempt_id: string
414
986
 
987
+ /**
988
+ * Action attempt to track the status of assigning a pre-registered card credential to an access method.
989
+ */
415
990
  action_type: 'ASSIGN_CREDENTIAL'
416
991
 
417
992
  error: {
993
+ /**
994
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
995
+ */
418
996
  message: string
419
997
 
998
+ /**
999
+ * Error type to indicate that no matching credential was found.
1000
+ */
420
1001
  type:
421
1002
  | 'uncategorized_error'
422
1003
  | 'action_attempt_expired'
423
1004
  | 'credential_not_found'
424
1005
  }
425
1006
 
1007
+ /**
1008
+ * Result of assigning a credential. If successful, includes the updated access method with the assigned credential.
1009
+ */
426
1010
  result: {
1011
+ /**
1012
+ * ID of the access method.
1013
+ */
427
1014
  access_method_id: string
428
1015
 
1016
+ /**
1017
+ * Token of the client session associated with the access method.
1018
+ */
429
1019
  client_session_token?: string | undefined
1020
+ /**
1021
+ * The actual PIN code for code access methods.
1022
+ */
430
1023
  code?: string | null | undefined
1024
+ /**
1025
+ * Date and time at which the access method was created.
1026
+ */
431
1027
  created_at: string
432
1028
 
1029
+ /**
1030
+ * ID of the customization profile associated with the access method.
1031
+ */
433
1032
  customization_profile_id?: string | undefined
1033
+ /**
1034
+ * Display name of the access method.
1035
+ */
434
1036
  display_name: string
435
1037
 
1038
+ /**
1039
+ * Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
1040
+ */
436
1041
  errors: Array<{
1042
+ /**
1043
+ * Date and time at which Seam created the error.
1044
+ */
437
1045
  created_at: string
438
1046
 
1047
+ /**
1048
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
1049
+ */
439
1050
  error_code: 'failed_to_issue'
440
1051
 
1052
+ /**
1053
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1054
+ */
441
1055
  message: string
442
1056
  }>
443
1057
 
1058
+ /**
1059
+ * URL of the Instant Key for mobile key access methods.
1060
+ */
444
1061
  instant_key_url?: string | undefined
1062
+ /**
1063
+ * 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.
1064
+ */
445
1065
  is_assignment_required?: boolean | undefined
1066
+ /**
1067
+ * Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.
1068
+ */
446
1069
  is_encoding_required?: boolean | undefined
1070
+ /**
1071
+ * Indicates whether the access method has been issued.
1072
+ */
447
1073
  is_issued: boolean
448
1074
 
1075
+ /**
1076
+ * 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.
1077
+ */
449
1078
  is_ready_for_assignment?: boolean | undefined
1079
+ /**
1080
+ * 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.
1081
+ */
450
1082
  is_ready_for_encoding?: boolean | undefined
1083
+ /**
1084
+ * Date and time at which the access method was issued.
1085
+ */
451
1086
  issued_at: string | null
1087
+ /**
1088
+ * Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
1089
+ */
452
1090
  mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'
453
1091
 
1092
+ /**
1093
+ * Pending mutations for the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.
1094
+ */
454
1095
  pending_mutations: Array<{
1096
+ /**
1097
+ * Date and time at which the mutation was created.
1098
+ */
455
1099
  created_at: string
456
1100
 
1101
+ /**
1102
+ * Previous access time configuration.
1103
+ */
457
1104
  from: {
1105
+ /**
1106
+ * Previous end time for access.
1107
+ */
458
1108
  ends_at: string | null
1109
+ /**
1110
+ * Previous start time for access.
1111
+ */
459
1112
  starts_at: string | null
460
1113
  }
461
1114
 
1115
+ /**
1116
+ * Detailed description of the mutation.
1117
+ */
462
1118
  message: string
463
1119
 
1120
+ /**
1121
+ * Mutation code to indicate that Seam is in the process of updating the access times for this access method.
1122
+ */
464
1123
  mutation_code:
465
1124
  'provisioning_access' | 'revoking_access' | 'updating_access_times'
466
1125
 
1126
+ /**
1127
+ * New access time configuration.
1128
+ */
467
1129
  to: {
1130
+ /**
1131
+ * New end time for access.
1132
+ */
468
1133
  ends_at: string | null
1134
+ /**
1135
+ * New start time for access.
1136
+ */
469
1137
  starts_at: string | null
470
1138
  }
471
1139
  }>
472
1140
 
1141
+ /**
1142
+ * Warnings associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
1143
+ */
473
1144
  warnings: Array<{
1145
+ /**
1146
+ * Date and time at which Seam created the warning.
1147
+ */
474
1148
  created_at: string
475
1149
 
1150
+ /**
1151
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1152
+ */
476
1153
  message: string
477
1154
 
1155
+ /**
1156
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1157
+ */
478
1158
  warning_code:
479
1159
  | 'being_deleted'
480
1160
  | 'updating_access_times'
481
1161
  | 'pulled_backup_access_code'
482
1162
  | 'delay_in_issuing'
483
1163
 
1164
+ /**
1165
+ * ID of the original access method from which this backup access method was split, if applicable.
1166
+ */
484
1167
  original_access_method_id?: string | undefined
485
1168
  }>
486
1169
 
1170
+ /**
1171
+ * ID of the Seam workspace associated with the access method.
1172
+ */
487
1173
  workspace_id: string
488
1174
  }
489
1175
 
490
1176
  status: 'success' | 'pending' | 'error'
491
1177
  }
492
1178
  | {
1179
+ /**
1180
+ * ID of the action attempt.
1181
+ */
493
1182
  action_attempt_id: string
494
1183
 
1184
+ /**
1185
+ * Action attempt to track the status of resetting a sandbox workspace.
1186
+ */
495
1187
  action_type: 'RESET_SANDBOX_WORKSPACE'
496
1188
 
1189
+ /**
1190
+ * Error associated with the action.
1191
+ */
497
1192
  error: {
1193
+ /**
1194
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1195
+ */
498
1196
  message: string
499
1197
 
1198
+ /**
1199
+ * Type of the error.
1200
+ */
500
1201
  type: string
501
1202
  }
502
1203
 
1204
+ /**
1205
+ * Result of the action.
1206
+ */
503
1207
  result: {}
504
1208
 
505
1209
  status: 'success' | 'pending' | 'error'
506
1210
  }
507
1211
  | {
1212
+ /**
1213
+ * ID of the action attempt.
1214
+ */
508
1215
  action_attempt_id: string
509
1216
 
1217
+ /**
1218
+ * Action attempt to track the status of setting the fan mode on a thermostat.
1219
+ */
510
1220
  action_type: 'SET_FAN_MODE'
511
1221
 
1222
+ /**
1223
+ * Error associated with the action.
1224
+ */
512
1225
  error: {
1226
+ /**
1227
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1228
+ */
513
1229
  message: string
514
1230
 
1231
+ /**
1232
+ * Type of the error.
1233
+ */
515
1234
  type: string
516
1235
  }
517
1236
 
1237
+ /**
1238
+ * Result of the action.
1239
+ */
518
1240
  result: {}
519
1241
 
520
1242
  status: 'success' | 'pending' | 'error'
521
1243
  }
522
1244
  | {
1245
+ /**
1246
+ * ID of the action attempt.
1247
+ */
523
1248
  action_attempt_id: string
524
1249
 
1250
+ /**
1251
+ * Action attempt to track the status of setting the HVAC mode on a thermostat.
1252
+ */
525
1253
  action_type: 'SET_HVAC_MODE'
526
1254
 
1255
+ /**
1256
+ * Error associated with the action.
1257
+ */
527
1258
  error: {
1259
+ /**
1260
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1261
+ */
528
1262
  message: string
529
1263
 
1264
+ /**
1265
+ * Type of the error.
1266
+ */
530
1267
  type: string
531
1268
  }
532
1269
 
1270
+ /**
1271
+ * Result of the action.
1272
+ */
533
1273
  result: {}
534
1274
 
535
1275
  status: 'success' | 'pending' | 'error'
536
1276
  }
537
1277
  | {
1278
+ /**
1279
+ * ID of the action attempt.
1280
+ */
538
1281
  action_attempt_id: string
539
1282
 
1283
+ /**
1284
+ * Action attempt to track the status of a climate preset activation.
1285
+ */
540
1286
  action_type: 'ACTIVATE_CLIMATE_PRESET'
541
1287
 
1288
+ /**
1289
+ * Error associated with the action.
1290
+ */
542
1291
  error: {
1292
+ /**
1293
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1294
+ */
543
1295
  message: string
544
1296
 
1297
+ /**
1298
+ * Type of the error.
1299
+ */
545
1300
  type: string
546
1301
  }
547
1302
 
1303
+ /**
1304
+ * Result of the action.
1305
+ */
548
1306
  result: {}
549
1307
 
550
1308
  status: 'success' | 'pending' | 'error'
551
1309
  }
552
1310
  | {
1311
+ /**
1312
+ * ID of the action attempt.
1313
+ */
553
1314
  action_attempt_id: string
554
1315
 
1316
+ /**
1317
+ * Action attempt to track the status of simulating a keypad code entry.
1318
+ */
555
1319
  action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'
556
1320
 
1321
+ /**
1322
+ * Error associated with the action.
1323
+ */
557
1324
  error: {
1325
+ /**
1326
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1327
+ */
558
1328
  message: string
559
1329
 
1330
+ /**
1331
+ * Type of the error.
1332
+ */
560
1333
  type: string
561
1334
  }
562
1335
 
1336
+ /**
1337
+ * Result of the action.
1338
+ */
563
1339
  result: {}
564
1340
 
565
1341
  status: 'success' | 'pending' | 'error'
566
1342
  }
567
1343
  | {
1344
+ /**
1345
+ * ID of the action attempt.
1346
+ */
568
1347
  action_attempt_id: string
569
1348
 
1349
+ /**
1350
+ * Action attempt to track the status of simulating a manual lock action using a keypad.
1351
+ */
570
1352
  action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'
571
1353
 
1354
+ /**
1355
+ * Error associated with the action.
1356
+ */
572
1357
  error: {
1358
+ /**
1359
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1360
+ */
573
1361
  message: string
574
1362
 
1363
+ /**
1364
+ * Type of the error.
1365
+ */
575
1366
  type: string
576
1367
  }
577
1368
 
1369
+ /**
1370
+ * Result of the action.
1371
+ */
578
1372
  result: {}
579
1373
 
580
1374
  status: 'success' | 'pending' | 'error'
581
1375
  }
582
1376
  | {
1377
+ /**
1378
+ * ID of the action attempt.
1379
+ */
583
1380
  action_attempt_id: string
584
1381
 
1382
+ /**
1383
+ * Action attempt to track the status of pushing thermostat programs.
1384
+ */
585
1385
  action_type: 'PUSH_THERMOSTAT_PROGRAMS'
586
1386
 
1387
+ /**
1388
+ * Error associated with the action.
1389
+ */
587
1390
  error: {
1391
+ /**
1392
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1393
+ */
588
1394
  message: string
589
1395
 
1396
+ /**
1397
+ * Type of the error.
1398
+ */
590
1399
  type: string
591
1400
  }
592
1401
 
1402
+ /**
1403
+ * Result of the action.
1404
+ */
593
1405
  result: {}
594
1406
 
595
1407
  status: 'success' | 'pending' | 'error'
596
1408
  }
597
1409
  | {
1410
+ /**
1411
+ * ID of the action attempt.
1412
+ */
598
1413
  action_attempt_id: string
599
1414
 
1415
+ /**
1416
+ * Action attempt to track the status of configuring the auto-lock on a lock.
1417
+ */
600
1418
  action_type: 'CONFIGURE_AUTO_LOCK'
601
1419
 
1420
+ /**
1421
+ * Error associated with the action.
1422
+ */
602
1423
  error: {
1424
+ /**
1425
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1426
+ */
603
1427
  message: string
604
1428
 
1429
+ /**
1430
+ * Type of the error.
1431
+ */
605
1432
  type: string
606
1433
  }
607
1434
 
1435
+ /**
1436
+ * Result of the action.
1437
+ */
608
1438
  result: {}
609
1439
 
610
1440
  status: 'success' | 'pending' | 'error'
611
1441
  }
612
1442
  | {
1443
+ /**
1444
+ * ID of the action attempt.
1445
+ */
613
1446
  action_attempt_id: string
614
1447
 
1448
+ /**
1449
+ * Syncing access codes is pending.
1450
+ */
615
1451
  action_type: 'SYNC_ACCESS_CODES'
616
1452
 
1453
+ /**
1454
+ * Error associated with the action.
1455
+ */
617
1456
  error: {
1457
+ /**
1458
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1459
+ */
618
1460
  message: string
619
1461
 
1462
+ /**
1463
+ * Type of the error.
1464
+ */
620
1465
  type: string
621
1466
  }
622
1467
 
1468
+ /**
1469
+ * Result of the action.
1470
+ */
623
1471
  result: {}
624
1472
 
625
1473
  status: 'success' | 'pending' | 'error'
626
1474
  }
627
1475
  | {
1476
+ /**
1477
+ * ID of the action attempt.
1478
+ */
628
1479
  action_attempt_id: string
629
1480
 
1481
+ /**
1482
+ * Creating an access code is pending.
1483
+ */
630
1484
  action_type: 'CREATE_ACCESS_CODE'
631
1485
 
1486
+ /**
1487
+ * Error associated with the action.
1488
+ */
632
1489
  error: {
1490
+ /**
1491
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1492
+ */
633
1493
  message: string
634
1494
 
1495
+ /**
1496
+ * Type of the error.
1497
+ */
635
1498
  type: string
636
1499
  }
637
1500
 
1501
+ /**
1502
+ * Result of the action.
1503
+ */
638
1504
  result: {}
639
1505
 
640
1506
  status: 'success' | 'pending' | 'error'
641
1507
  }
642
1508
  | {
1509
+ /**
1510
+ * ID of the action attempt.
1511
+ */
643
1512
  action_attempt_id: string
644
1513
 
1514
+ /**
1515
+ * Deleting an access code is pending.
1516
+ */
645
1517
  action_type: 'DELETE_ACCESS_CODE'
646
1518
 
1519
+ /**
1520
+ * Error associated with the action.
1521
+ */
647
1522
  error: {
1523
+ /**
1524
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1525
+ */
648
1526
  message: string
649
1527
 
1528
+ /**
1529
+ * Type of the error.
1530
+ */
650
1531
  type: string
651
1532
  }
652
1533
 
1534
+ /**
1535
+ * Result of the action.
1536
+ */
653
1537
  result: {}
654
1538
 
655
1539
  status: 'success' | 'pending' | 'error'
656
1540
  }
657
1541
  | {
1542
+ /**
1543
+ * ID of the action attempt.
1544
+ */
658
1545
  action_attempt_id: string
659
1546
 
1547
+ /**
1548
+ * Updating an access code is pending.
1549
+ */
660
1550
  action_type: 'UPDATE_ACCESS_CODE'
661
1551
 
1552
+ /**
1553
+ * Error associated with the action.
1554
+ */
662
1555
  error: {
1556
+ /**
1557
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1558
+ */
663
1559
  message: string
664
1560
 
1561
+ /**
1562
+ * Type of the error.
1563
+ */
665
1564
  type: string
666
1565
  }
667
1566
 
1567
+ /**
1568
+ * Result of the action.
1569
+ */
668
1570
  result: {}
669
1571
 
670
1572
  status: 'success' | 'pending' | 'error'
671
1573
  }
672
1574
  | {
1575
+ /**
1576
+ * ID of the action attempt.
1577
+ */
673
1578
  action_attempt_id: string
674
1579
 
1580
+ /**
1581
+ * Creating a noise threshold is pending.
1582
+ */
675
1583
  action_type: 'CREATE_NOISE_THRESHOLD'
676
1584
 
1585
+ /**
1586
+ * Error associated with the action.
1587
+ */
677
1588
  error: {
1589
+ /**
1590
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1591
+ */
678
1592
  message: string
679
1593
 
1594
+ /**
1595
+ * Type of the error.
1596
+ */
680
1597
  type: string
681
1598
  }
682
1599
 
1600
+ /**
1601
+ * Result of the action.
1602
+ */
683
1603
  result: {}
684
1604
 
685
1605
  status: 'success' | 'pending' | 'error'
686
1606
  }
687
1607
  | {
1608
+ /**
1609
+ * ID of the action attempt.
1610
+ */
688
1611
  action_attempt_id: string
689
1612
 
1613
+ /**
1614
+ * Deleting a noise threshold is pending.
1615
+ */
690
1616
  action_type: 'DELETE_NOISE_THRESHOLD'
691
1617
 
1618
+ /**
1619
+ * Error associated with the action.
1620
+ */
692
1621
  error: {
1622
+ /**
1623
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1624
+ */
693
1625
  message: string
694
1626
 
1627
+ /**
1628
+ * Type of the error.
1629
+ */
695
1630
  type: string
696
1631
  }
697
1632
 
1633
+ /**
1634
+ * Result of the action.
1635
+ */
698
1636
  result: {}
699
1637
 
700
1638
  status: 'success' | 'pending' | 'error'
701
1639
  }
702
1640
  | {
1641
+ /**
1642
+ * ID of the action attempt.
1643
+ */
703
1644
  action_attempt_id: string
704
1645
 
1646
+ /**
1647
+ * Updating a noise threshold is pending.
1648
+ */
705
1649
  action_type: 'UPDATE_NOISE_THRESHOLD'
706
1650
 
1651
+ /**
1652
+ * Error associated with the action.
1653
+ */
707
1654
  error: {
1655
+ /**
1656
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1657
+ */
708
1658
  message: string
709
1659
 
1660
+ /**
1661
+ * Type of the error.
1662
+ */
710
1663
  type: string
711
1664
  }
712
1665
 
1666
+ /**
1667
+ * Result of the action.
1668
+ */
713
1669
  result: {}
714
1670
 
715
1671
  status: 'success' | 'pending' | 'error'