@seamapi/http 2.0.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 (247) hide show
  1. package/README.md +0 -30
  2. package/lib/seam/connect/api-error-types.js +0 -1
  3. package/lib/seam/connect/api-error-types.js.map +1 -1
  4. package/lib/seam/connect/openapi.d.ts +1 -2
  5. package/lib/seam/connect/openapi.js.map +1 -1
  6. package/lib/seam/connect/resources/access-code.d.ts +743 -56
  7. package/lib/seam/connect/resources/access-grant.d.ts +279 -10
  8. package/lib/seam/connect/resources/access-method.d.ts +204 -8
  9. package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
  10. package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
  11. package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
  12. package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
  13. package/lib/seam/connect/resources/acs-system.d.ts +227 -11
  14. package/lib/seam/connect/resources/acs-user.d.ts +388 -19
  15. package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
  16. package/lib/seam/connect/resources/batch.d.ts +3 -0
  17. package/lib/seam/connect/resources/client-session.d.ts +48 -0
  18. package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
  19. package/lib/seam/connect/resources/connected-account.d.ts +281 -12
  20. package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
  21. package/lib/seam/connect/resources/device-provider.d.ts +72 -0
  22. package/lib/seam/connect/resources/device.d.ts +2063 -41
  23. package/lib/seam/connect/resources/event.d.ts +4014 -0
  24. package/lib/seam/connect/resources/instant-key.d.ts +41 -0
  25. package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
  26. package/lib/seam/connect/resources/phone.d.ts +72 -0
  27. package/lib/seam/connect/resources/space.d.ts +54 -0
  28. package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
  29. package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
  30. package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
  31. package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
  32. package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
  33. package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
  34. package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
  35. package/lib/seam/connect/resources/user-identity.d.ts +82 -3
  36. package/lib/seam/connect/resources/webhook.d.ts +15 -0
  37. package/lib/seam/connect/resources/workspace.d.ts +45 -0
  38. package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
  39. package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
  40. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
  41. package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
  42. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
  43. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
  44. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
  45. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
  46. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  47. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
  48. package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
  49. package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
  50. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
  51. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
  52. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
  53. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
  54. package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
  55. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  56. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
  57. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
  58. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
  59. package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +63 -0
  60. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
  61. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
  62. package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
  63. package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
  64. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
  65. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
  66. package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
  67. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  68. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
  69. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
  70. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
  71. package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
  72. package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
  73. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
  74. package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
  75. package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
  76. package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
  77. package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
  78. package/lib/seam/connect/routes/acs/users/users.js +33 -0
  79. package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
  80. package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
  81. package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
  82. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
  83. package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
  84. package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
  85. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
  86. package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
  87. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
  88. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
  89. package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
  90. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
  91. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
  92. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
  93. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
  94. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
  95. package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
  96. package/lib/seam/connect/routes/customers/customers.js +10 -0
  97. package/lib/seam/connect/routes/customers/customers.js.map +1 -1
  98. package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
  99. package/lib/seam/connect/routes/devices/devices.js +23 -0
  100. package/lib/seam/connect/routes/devices/devices.js.map +1 -1
  101. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
  102. package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
  103. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
  104. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
  105. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
  106. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
  107. package/lib/seam/connect/routes/events/events.d.ts +99 -0
  108. package/lib/seam/connect/routes/events/events.js +6 -0
  109. package/lib/seam/connect/routes/events/events.js.map +1 -1
  110. package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
  111. package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
  112. package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
  113. package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
  114. package/lib/seam/connect/routes/locks/locks.js +16 -0
  115. package/lib/seam/connect/routes/locks/locks.js.map +1 -1
  116. package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
  117. package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
  118. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
  119. package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
  120. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
  121. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
  122. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +66 -0
  123. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
  124. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  125. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +6 -0
  126. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
  127. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
  128. package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
  129. package/lib/seam/connect/routes/phones/phones.js +9 -0
  130. package/lib/seam/connect/routes/phones/phones.js.map +1 -1
  131. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
  132. package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
  133. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
  134. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
  135. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -0
  136. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
  137. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +696 -0
  138. package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
  139. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  140. package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
  141. package/lib/seam/connect/routes/spaces/spaces.js +36 -0
  142. package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
  143. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
  144. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
  145. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  146. package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
  147. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
  148. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
  149. package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
  150. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
  151. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
  152. package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
  153. package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
  154. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
  155. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
  156. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
  157. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
  158. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
  159. package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
  160. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
  161. package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
  162. package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
  163. package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
  164. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
  165. package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
  166. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  167. package/lib/version.d.ts +1 -1
  168. package/lib/version.js +1 -1
  169. package/package.json +1 -9
  170. package/src/lib/seam/connect/api-error-types.ts +0 -2
  171. package/src/lib/seam/connect/openapi.ts +2 -4
  172. package/src/lib/seam/connect/resources/access-code.ts +719 -35
  173. package/src/lib/seam/connect/resources/access-grant.ts +284 -16
  174. package/src/lib/seam/connect/resources/access-method.ts +205 -10
  175. package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
  176. package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
  177. package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
  178. package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
  179. package/src/lib/seam/connect/resources/acs-system.ts +223 -9
  180. package/src/lib/seam/connect/resources/acs-user.ts +382 -16
  181. package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
  182. package/src/lib/seam/connect/resources/batch.ts +3 -0
  183. package/src/lib/seam/connect/resources/client-session.ts +48 -0
  184. package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
  185. package/src/lib/seam/connect/resources/connected-account.ts +277 -10
  186. package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
  187. package/src/lib/seam/connect/resources/device-provider.ts +72 -0
  188. package/src/lib/seam/connect/resources/device.ts +2059 -39
  189. package/src/lib/seam/connect/resources/event.ts +4015 -0
  190. package/src/lib/seam/connect/resources/instant-key.ts +41 -0
  191. package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
  192. package/src/lib/seam/connect/resources/phone.ts +72 -0
  193. package/src/lib/seam/connect/resources/space.ts +54 -0
  194. package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
  195. package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
  196. package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
  197. package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
  198. package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
  199. package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
  200. package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
  201. package/src/lib/seam/connect/resources/user-identity.ts +87 -8
  202. package/src/lib/seam/connect/resources/webhook.ts +15 -0
  203. package/src/lib/seam/connect/resources/workspace.ts +46 -0
  204. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
  205. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
  206. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
  207. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
  208. package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
  209. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
  210. package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
  211. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
  212. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
  213. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
  214. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
  215. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
  216. package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
  217. package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
  218. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
  219. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
  220. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
  221. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
  222. package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
  223. package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
  224. package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
  225. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
  226. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
  227. package/src/lib/seam/connect/routes/events/events.ts +99 -0
  228. package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
  229. package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
  230. package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
  231. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
  232. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
  233. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
  234. package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
  235. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
  236. package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
  237. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
  238. package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
  239. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
  240. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
  241. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
  242. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
  243. package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
  244. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
  245. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
  246. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
  247. package/src/lib/version.ts +1 -1
@@ -172,6 +172,9 @@ export class SeamHttpAccessCodes {
172
172
  return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults)
173
173
  }
174
174
 
175
+ /**
176
+ * Creates a new [access code](https://docs.seam.co/low-level-apis/access-codes). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.
177
+ */
175
178
  create(
176
179
  parameters: AccessCodesCreateParameters,
177
180
  options: AccessCodesCreateOptions = {},
@@ -185,6 +188,19 @@ export class SeamHttpAccessCodes {
185
188
  })
186
189
  }
187
190
 
191
+ /**
192
+ * Creates new [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
193
+ *
194
+ * Users with more than one door lock in a property may want to create groups of linked access codes, all of which have the same code (PIN). For example, a short-term rental host may want to provide guests the same PIN for both a front door lock and a back door lock.
195
+ *
196
+ * If you specify a custom code, Seam assigns this custom code to each of the resulting access codes. However, in this case, Seam does not link these access codes together with a `common_code_key`. That is, `common_code_key` remains null for these access codes.
197
+ *
198
+ * If you want to change these access codes that are not linked by a `common_code_key`, you cannot use `/access_codes/update_multiple`. However, you can update each of these access codes individually, using `/access_codes/update`.
199
+ *
200
+ * See also [Creating and Updating Multiple Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes).
201
+ *
202
+ * For granting a person access to a space, [Access Grants](https://docs.seam.co/use-cases/granting-access) are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.
203
+ */
188
204
  createMultiple(
189
205
  parameters: AccessCodesCreateMultipleParameters,
190
206
  options: AccessCodesCreateMultipleOptions = {},
@@ -198,6 +214,9 @@ export class SeamHttpAccessCodes {
198
214
  })
199
215
  }
200
216
 
217
+ /**
218
+ * Deletes an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
219
+ */
201
220
  delete(
202
221
  parameters: AccessCodesDeleteParameters,
203
222
  options: AccessCodesDeleteOptions = {},
@@ -211,6 +230,9 @@ export class SeamHttpAccessCodes {
211
230
  })
212
231
  }
213
232
 
233
+ /**
234
+ * Generates a code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), given a device ID.
235
+ */
214
236
  generateCode(
215
237
  parameters: AccessCodesGenerateCodeParameters,
216
238
  options: AccessCodesGenerateCodeOptions = {},
@@ -224,6 +246,11 @@ export class SeamHttpAccessCodes {
224
246
  })
225
247
  }
226
248
 
249
+ /**
250
+ * Returns a specified [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
251
+ *
252
+ * You must specify either `access_code_id` or both `device_id` and `code`.
253
+ */
227
254
  get(
228
255
  parameters?: AccessCodesGetParameters,
229
256
  options: AccessCodesGetOptions = {},
@@ -237,6 +264,11 @@ export class SeamHttpAccessCodes {
237
264
  })
238
265
  }
239
266
 
267
+ /**
268
+ * Returns a list of all [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
269
+ *
270
+ * Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
271
+ */
240
272
  list(
241
273
  parameters?: AccessCodesListParameters,
242
274
  options: AccessCodesListOptions = {},
@@ -250,6 +282,17 @@ export class SeamHttpAccessCodes {
250
282
  })
251
283
  }
252
284
 
285
+ /**
286
+ * Retrieves a backup access code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). See also [Managing Backup Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes).
287
+ *
288
+ * A backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes. If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.
289
+ *
290
+ * You can pull a backup access code from the pool at any time. These backup codes are guaranteed to work immediately and automatically programmed to be removed from the device after the access code ends.
291
+ *
292
+ * You can only pull backup access codes for time-bound access codes.
293
+ *
294
+ * Before pulling a backup access code, make sure that the device's `properties.supports_backup_access_code_pool` is `true`. Then, to activate the backup pool, set `use_backup_access_code_pool` to `true` when creating an access code.
295
+ */
253
296
  pullBackupAccessCode(
254
297
  parameters: AccessCodesPullBackupAccessCodeParameters,
255
298
  options: AccessCodesPullBackupAccessCodeOptions = {},
@@ -263,6 +306,11 @@ export class SeamHttpAccessCodes {
263
306
  })
264
307
  }
265
308
 
309
+ /**
310
+ * Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.
311
+ *
312
+ * Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
313
+ */
266
314
  reportDeviceConstraints(
267
315
  parameters: AccessCodesReportDeviceConstraintsParameters,
268
316
  options: AccessCodesReportDeviceConstraintsOptions = {},
@@ -276,6 +324,11 @@ export class SeamHttpAccessCodes {
276
324
  })
277
325
  }
278
326
 
327
+ /**
328
+ * Updates a specified active or upcoming [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
329
+ *
330
+ * See also [Modifying Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes).
331
+ */
279
332
  update(
280
333
  parameters: AccessCodesUpdateParameters,
281
334
  options: AccessCodesUpdateOptions = {},
@@ -289,6 +342,13 @@ export class SeamHttpAccessCodes {
289
342
  })
290
343
  }
291
344
 
345
+ /**
346
+ * Updates [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
347
+ *
348
+ * Specify the `common_code_key` to identify the set of access codes that you want to update.
349
+ *
350
+ * See also [Update Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes#update-linked-access-codes).
351
+ */
292
352
  updateMultiple(
293
353
  parameters: AccessCodesUpdateMultipleParameters,
294
354
  options: AccessCodesUpdateMultipleOptions = {},
@@ -304,22 +364,74 @@ export class SeamHttpAccessCodes {
304
364
  }
305
365
 
306
366
  export type AccessCodesCreateParameters = {
367
+ /**
368
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
369
+ */
307
370
  allow_external_modification?: boolean | undefined
371
+
308
372
  attempt_for_offline_device?: boolean | undefined
373
+ /**
374
+ * Code to be used for access.
375
+ */
309
376
  code?: string | undefined
377
+ /**
378
+ * Key to identify access codes that should have the same code. Any two access codes with the same `common_code_key` are guaranteed to have the same `code`. See also [Creating and Updating Multiple Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes).
379
+ */
310
380
  common_code_key?: string | undefined
381
+ /**
382
+ * ID of the device for which you want to create the new access code.
383
+ */
311
384
  device_id: string
312
385
 
386
+ /**
387
+ * Date and time at which the validity of the new access code 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`.
388
+ */
313
389
  ends_at?: string | undefined
390
+ /**
391
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
392
+ */
314
393
  is_external_modification_allowed?: boolean | undefined
394
+ /**
395
+ * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes).
396
+ */
315
397
  is_offline_access_code?: boolean | undefined
398
+ /**
399
+ * Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code.
400
+ */
316
401
  is_one_time_use?: boolean | undefined
402
+ /**
403
+ * Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.
404
+ */
317
405
  max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined
406
+ /**
407
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
408
+ *
409
+ * Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.
410
+ *
411
+ * To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.
412
+ *
413
+ * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
414
+ */
318
415
  name?: string | undefined
416
+ /**
417
+ * Indicates whether [native scheduling](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.
418
+ */
319
419
  prefer_native_scheduling?: boolean | undefined
420
+ /**
421
+ * Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.
422
+ */
320
423
  preferred_code_length?: number | undefined
424
+ /**
425
+ * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
426
+ */
321
427
  starts_at?: string | undefined
428
+ /**
429
+ * Indicates whether to use a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/api/access_codes/pull_backup_access_code).
430
+ */
322
431
  use_backup_access_code_pool?: boolean | undefined
432
+ /**
433
+ * @deprecated Use `is_offline_access_code` instead.
434
+ */
323
435
  use_offline_access_code?: boolean | undefined
324
436
  }
325
437
 
@@ -336,19 +448,59 @@ export type AccessCodesCreateRequest = SeamHttpRequest<
336
448
  export interface AccessCodesCreateOptions {}
337
449
 
338
450
  export type AccessCodesCreateMultipleParameters = {
451
+ /**
452
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
453
+ */
339
454
  allow_external_modification?: boolean | undefined
455
+
340
456
  attempt_for_offline_device?: boolean | undefined
457
+ /**
458
+ * Desired behavior if any device cannot share a code. If `throw` (default), no access codes will be created if any device cannot share a code. If `create_random_code`, a random code will be created on devices that cannot share a code.
459
+ */
341
460
  behavior_when_code_cannot_be_shared?:
342
461
  'throw' | 'create_random_code' | undefined
462
+ /**
463
+ * Code to be used for access.
464
+ */
343
465
  code?: string | undefined
466
+ /**
467
+ * IDs of the devices for which you want to create the new access codes.
468
+ */
344
469
  device_ids: Array<string>
345
470
 
471
+ /**
472
+ * Date and time at which the validity of the new access code 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`.
473
+ */
346
474
  ends_at?: string | undefined
475
+ /**
476
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
477
+ */
347
478
  is_external_modification_allowed?: boolean | undefined
479
+ /**
480
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
481
+ *
482
+ * Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.
483
+ *
484
+ * To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.
485
+ *
486
+ * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
487
+ */
348
488
  name?: string | undefined
489
+ /**
490
+ * Indicates whether [native scheduling](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.
491
+ */
349
492
  prefer_native_scheduling?: boolean | undefined
493
+ /**
494
+ * Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.
495
+ */
350
496
  preferred_code_length?: number | undefined
497
+ /**
498
+ * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
499
+ */
351
500
  starts_at?: string | undefined
501
+ /**
502
+ * Indicates whether to use a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/api/access_codes/pull_backup_access_code).
503
+ */
352
504
  use_backup_access_code_pool?: boolean | undefined
353
505
  }
354
506
 
@@ -367,8 +519,14 @@ export type AccessCodesCreateMultipleRequest = SeamHttpRequest<
367
519
  export interface AccessCodesCreateMultipleOptions {}
368
520
 
369
521
  export type AccessCodesDeleteParameters = {
522
+ /**
523
+ * ID of the access code that you want to delete.
524
+ */
370
525
  access_code_id: string
371
526
 
527
+ /**
528
+ * ID of the device for which you want to delete the access code.
529
+ */
372
530
  device_id?: string | undefined
373
531
  }
374
532
 
@@ -382,6 +540,9 @@ export type AccessCodesDeleteRequest = SeamHttpRequest<void, undefined>
382
540
  export interface AccessCodesDeleteOptions {}
383
541
 
384
542
  export type AccessCodesGenerateCodeParameters = {
543
+ /**
544
+ * ID of the device for which you want to generate a code.
545
+ */
385
546
  device_id: string
386
547
  }
387
548
 
@@ -398,8 +559,17 @@ export type AccessCodesGenerateCodeRequest = SeamHttpRequest<
398
559
  export interface AccessCodesGenerateCodeOptions {}
399
560
 
400
561
  export type AccessCodesGetParameters = {
562
+ /**
563
+ * ID of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
564
+ */
401
565
  access_code_id?: string | undefined
566
+ /**
567
+ * Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
568
+ */
402
569
  code?: string | undefined
570
+ /**
571
+ * ID of the device containing the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
572
+ */
403
573
  device_id?: string | undefined
404
574
  }
405
575
 
@@ -416,15 +586,45 @@ export type AccessCodesGetRequest = SeamHttpRequest<
416
586
  export interface AccessCodesGetOptions {}
417
587
 
418
588
  export type AccessCodesListParameters = {
589
+ /**
590
+ * IDs of the access codes that you want to retrieve. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
591
+ */
419
592
  access_code_ids?: Array<string> | undefined
593
+ /**
594
+ * ID of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
595
+ */
420
596
  access_grant_id?: string | undefined
597
+ /**
598
+ * Key of the access grant for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
599
+ */
421
600
  access_grant_key?: string | undefined
601
+ /**
602
+ * ID of the access method for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
603
+ */
422
604
  access_method_id?: string | undefined
605
+ /**
606
+ * Customer key for which you want to list access codes.
607
+ */
423
608
  customer_key?: string | undefined
609
+ /**
610
+ * ID of the device for which you want to list access codes. Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
611
+ */
424
612
  device_id?: string | undefined
613
+ /**
614
+ * Numerical limit on the number of access codes to return.
615
+ */
425
616
  limit?: number | undefined
617
+ /**
618
+ * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
619
+ */
426
620
  page_cursor?: string | undefined
621
+ /**
622
+ * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.
623
+ */
427
624
  search?: string | undefined
625
+ /**
626
+ * Your user ID for the user by which to filter access codes.
627
+ */
428
628
  user_identifier_key?: string | undefined
429
629
  }
430
630
 
@@ -441,6 +641,9 @@ export type AccessCodesListRequest = SeamHttpRequest<
441
641
  export interface AccessCodesListOptions {}
442
642
 
443
643
  export type AccessCodesPullBackupAccessCodeParameters = {
644
+ /**
645
+ * ID of the access code for which you want to pull a backup access code.
646
+ */
444
647
  access_code_id: string
445
648
  }
446
649
 
@@ -459,10 +662,22 @@ export type AccessCodesPullBackupAccessCodeRequest = SeamHttpRequest<
459
662
  export interface AccessCodesPullBackupAccessCodeOptions {}
460
663
 
461
664
  export type AccessCodesReportDeviceConstraintsParameters = {
665
+ /**
666
+ * ID of the device for which you want to report constraints.
667
+ */
462
668
  device_id: string
463
669
 
670
+ /**
671
+ * Maximum supported code length as an integer between 4 and 20, inclusive. You can specify either `min_code_length`/`max_code_length` or `supported_code_lengths`.
672
+ */
464
673
  max_code_length?: number | undefined
674
+ /**
675
+ * Minimum supported code length as an integer between 4 and 20, inclusive. You can specify either `min_code_length`/`max_code_length` or `supported_code_lengths`.
676
+ */
465
677
  min_code_length?: number | undefined
678
+ /**
679
+ * Array of supported code lengths as integers between 4 and 20, inclusive. You can specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
680
+ */
466
681
  supported_code_lengths?: Array<number> | undefined
467
682
  }
468
683
 
@@ -479,24 +694,82 @@ export type AccessCodesReportDeviceConstraintsRequest = SeamHttpRequest<
479
694
  export interface AccessCodesReportDeviceConstraintsOptions {}
480
695
 
481
696
  export type AccessCodesUpdateParameters = {
697
+ /**
698
+ * ID of the access code that you want to update.
699
+ */
482
700
  access_code_id: string
483
701
 
702
+ /**
703
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
704
+ */
484
705
  allow_external_modification?: boolean | undefined
706
+
485
707
  attempt_for_offline_device?: boolean | undefined
708
+ /**
709
+ * Code to be used for access.
710
+ */
486
711
  code?: string | undefined
712
+ /**
713
+ * ID of the device containing the access code that you want to update.
714
+ */
487
715
  device_id?: string | undefined
716
+ /**
717
+ * Date and time at which the validity of the new access code 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`.
718
+ */
488
719
  ends_at?: string | undefined
720
+ /**
721
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
722
+ */
489
723
  is_external_modification_allowed?: boolean | undefined
724
+ /**
725
+ * Indicates whether the access code is managed through Seam. Note that to convert an unmanaged access code into a managed access code, use `/access_codes/unmanaged/convert_to_managed`.
726
+ */
490
727
  is_managed?: boolean | undefined
728
+ /**
729
+ * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes).
730
+ */
491
731
  is_offline_access_code?: boolean | undefined
732
+ /**
733
+ * Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code.
734
+ */
492
735
  is_one_time_use?: boolean | undefined
736
+ /**
737
+ * Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.
738
+ */
493
739
  max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined
740
+ /**
741
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
742
+ *
743
+ * Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.
744
+ *
745
+ * To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.
746
+ *
747
+ * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
748
+ */
494
749
  name?: string | undefined
750
+ /**
751
+ * Indicates whether [native scheduling](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.
752
+ */
495
753
  prefer_native_scheduling?: boolean | undefined
754
+ /**
755
+ * Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.
756
+ */
496
757
  preferred_code_length?: number | undefined
758
+ /**
759
+ * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
760
+ */
497
761
  starts_at?: string | undefined
762
+ /**
763
+ * Type to which you want to convert the access code. To convert a time-bound access code to an ongoing access code, set `type` to `ongoing`. See also [Changing a time-bound access code to permanent access](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes#special-case-2-changing-a-time-bound-access-code-to-permanent-access).
764
+ */
498
765
  type?: 'ongoing' | 'time_bound' | undefined
766
+ /**
767
+ * Indicates whether to use a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/api/access_codes/pull_backup_access_code).
768
+ */
499
769
  use_backup_access_code_pool?: boolean | undefined
770
+ /**
771
+ * @deprecated Use `is_offline_access_code` instead.
772
+ */
500
773
  use_offline_access_code?: boolean | undefined
501
774
  }
502
775
 
@@ -510,10 +783,28 @@ export type AccessCodesUpdateRequest = SeamHttpRequest<void, undefined>
510
783
  export interface AccessCodesUpdateOptions {}
511
784
 
512
785
  export type AccessCodesUpdateMultipleParameters = {
786
+ /**
787
+ * Key that links the group of access codes, assigned on creation by `/access_codes/create_multiple`.
788
+ */
513
789
  common_code_key: string
514
790
 
791
+ /**
792
+ * Date and time at which the validity of the new access code 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`.
793
+ */
515
794
  ends_at?: string | undefined
795
+ /**
796
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
797
+ *
798
+ * Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.
799
+ *
800
+ * To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.
801
+ *
802
+ * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).
803
+ */
516
804
  name?: string | undefined
805
+ /**
806
+ * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
807
+ */
517
808
  starts_at?: string | undefined
518
809
  }
519
810
 
@@ -161,6 +161,9 @@ export class SeamHttpAccessCodesSimulate {
161
161
  await clientSessions.get()
162
162
  }
163
163
 
164
+ /**
165
+ * Simulates the creation of an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) in a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
166
+ */
164
167
  createUnmanagedAccessCode(
165
168
  parameters: AccessCodesSimulateCreateUnmanagedAccessCodeParameters,
166
169
  options: AccessCodesSimulateCreateUnmanagedAccessCodeOptions = {},
@@ -176,10 +179,19 @@ export class SeamHttpAccessCodesSimulate {
176
179
  }
177
180
 
178
181
  export type AccessCodesSimulateCreateUnmanagedAccessCodeParameters = {
182
+ /**
183
+ * Code of the simulated unmanaged access code.
184
+ */
179
185
  code: string
180
186
 
187
+ /**
188
+ * ID of the device for which you want to simulate the creation of an unmanaged access code.
189
+ */
181
190
  device_id: string
182
191
 
192
+ /**
193
+ * Name of the simulated unmanaged access code.
194
+ */
183
195
  name: string
184
196
  }
185
197
 
@@ -161,6 +161,13 @@ export class SeamHttpAccessCodesUnmanaged {
161
161
  await clientSessions.get()
162
162
  }
163
163
 
164
+ /**
165
+ * Converts an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) to an [access code managed through Seam](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
166
+ *
167
+ * An unmanaged access code has a limited set of operations that you can perform on it. Once you convert an unmanaged access code to a managed access code, the full set of access code operations and lifecycle events becomes available for it.
168
+ *
169
+ * Note that not all device providers support converting an unmanaged access code to a managed access code.
170
+ */
164
171
  convertToManaged(
165
172
  parameters: AccessCodesUnmanagedConvertToManagedParameters,
166
173
  options: AccessCodesUnmanagedConvertToManagedOptions = {},
@@ -174,6 +181,9 @@ export class SeamHttpAccessCodesUnmanaged {
174
181
  })
175
182
  }
176
183
 
184
+ /**
185
+ * Deletes an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
186
+ */
177
187
  delete(
178
188
  parameters: AccessCodesUnmanagedDeleteParameters,
179
189
  options: AccessCodesUnmanagedDeleteOptions = {},
@@ -187,6 +197,11 @@ export class SeamHttpAccessCodesUnmanaged {
187
197
  })
188
198
  }
189
199
 
200
+ /**
201
+ * Returns a specified [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
202
+ *
203
+ * You must specify either `access_code_id` or both `device_id` and `code`.
204
+ */
190
205
  get(
191
206
  parameters?: AccessCodesUnmanagedGetParameters,
192
207
  options: AccessCodesUnmanagedGetOptions = {},
@@ -200,6 +215,9 @@ export class SeamHttpAccessCodesUnmanaged {
200
215
  })
201
216
  }
202
217
 
218
+ /**
219
+ * Returns a list of all [unmanaged access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
220
+ */
203
221
  list(
204
222
  parameters: AccessCodesUnmanagedListParameters,
205
223
  options: AccessCodesUnmanagedListOptions = {},
@@ -213,6 +231,9 @@ export class SeamHttpAccessCodesUnmanaged {
213
231
  })
214
232
  }
215
233
 
234
+ /**
235
+ * Updates a specified [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
236
+ */
216
237
  update(
217
238
  parameters: AccessCodesUnmanagedUpdateParameters,
218
239
  options: AccessCodesUnmanagedUpdateOptions = {},
@@ -228,10 +249,22 @@ export class SeamHttpAccessCodesUnmanaged {
228
249
  }
229
250
 
230
251
  export type AccessCodesUnmanagedConvertToManagedParameters = {
252
+ /**
253
+ * ID of the unmanaged access code that you want to convert to a managed access code.
254
+ */
231
255
  access_code_id: string
232
256
 
257
+ /**
258
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed.
259
+ */
233
260
  allow_external_modification?: boolean | undefined
261
+ /**
262
+ * Indicates whether to force the access code conversion. To switch management of an access code from one Seam workspace to another, set `force` to `true`.
263
+ */
234
264
  force?: boolean | undefined
265
+ /**
266
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed.
267
+ */
235
268
  is_external_modification_allowed?: boolean | undefined
236
269
  }
237
270
 
@@ -248,6 +281,9 @@ export type AccessCodesUnmanagedConvertToManagedRequest = SeamHttpRequest<
248
281
  export interface AccessCodesUnmanagedConvertToManagedOptions {}
249
282
 
250
283
  export type AccessCodesUnmanagedDeleteParameters = {
284
+ /**
285
+ * ID of the unmanaged access code that you want to delete.
286
+ */
251
287
  access_code_id: string
252
288
  }
253
289
 
@@ -261,8 +297,17 @@ export type AccessCodesUnmanagedDeleteRequest = SeamHttpRequest<void, undefined>
261
297
  export interface AccessCodesUnmanagedDeleteOptions {}
262
298
 
263
299
  export type AccessCodesUnmanagedGetParameters = {
300
+ /**
301
+ * ID of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
302
+ */
264
303
  access_code_id?: string | undefined
304
+ /**
305
+ * Code of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
306
+ */
265
307
  code?: string | undefined
308
+ /**
309
+ * ID of the device containing the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
310
+ */
266
311
  device_id?: string | undefined
267
312
  }
268
313
 
@@ -281,11 +326,26 @@ export type AccessCodesUnmanagedGetRequest = SeamHttpRequest<
281
326
  export interface AccessCodesUnmanagedGetOptions {}
282
327
 
283
328
  export type AccessCodesUnmanagedListParameters = {
329
+ /**
330
+ * ID of the device for which you want to list unmanaged access codes.
331
+ */
284
332
  device_id: string
285
333
 
334
+ /**
335
+ * Numerical limit on the number of unmanaged access codes to return.
336
+ */
286
337
  limit?: number | undefined
338
+ /**
339
+ * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
340
+ */
287
341
  page_cursor?: string | undefined
342
+ /**
343
+ * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.
344
+ */
288
345
  search?: string | undefined
346
+ /**
347
+ * Your user ID for the user by which to filter unmanaged access codes.
348
+ */
289
349
  user_identifier_key?: string | undefined
290
350
  }
291
351
 
@@ -304,11 +364,24 @@ export type AccessCodesUnmanagedListRequest = SeamHttpRequest<
304
364
  export interface AccessCodesUnmanagedListOptions {}
305
365
 
306
366
  export type AccessCodesUnmanagedUpdateParameters = {
367
+ /**
368
+ * ID of the unmanaged access code that you want to update.
369
+ */
307
370
  access_code_id: string
308
371
 
372
+ /**
373
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed.
374
+ */
309
375
  allow_external_modification?: boolean | undefined
376
+ /**
377
+ * Indicates whether to force the unmanaged access code update.
378
+ */
310
379
  force?: boolean | undefined
380
+ /**
381
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed.
382
+ */
311
383
  is_external_modification_allowed?: boolean | undefined
384
+
312
385
  is_managed: boolean
313
386
  }
314
387