@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
@@ -21,33 +21,144 @@ export declare class SeamHttpAccessCodes {
21
21
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
22
22
  get simulate(): SeamHttpAccessCodesSimulate;
23
23
  get unmanaged(): SeamHttpAccessCodesUnmanaged;
24
+ /**
25
+ * 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.
26
+ */
24
27
  create(parameters: AccessCodesCreateParameters, options?: AccessCodesCreateOptions): AccessCodesCreateRequest;
28
+ /**
29
+ * Creates new [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
30
+ *
31
+ * 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.
32
+ *
33
+ * 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.
34
+ *
35
+ * 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`.
36
+ *
37
+ * 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).
38
+ *
39
+ * 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.
40
+ */
25
41
  createMultiple(parameters: AccessCodesCreateMultipleParameters, options?: AccessCodesCreateMultipleOptions): AccessCodesCreateMultipleRequest;
42
+ /**
43
+ * Deletes an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
44
+ */
26
45
  delete(parameters: AccessCodesDeleteParameters, options?: AccessCodesDeleteOptions): AccessCodesDeleteRequest;
46
+ /**
47
+ * Generates a code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), given a device ID.
48
+ */
27
49
  generateCode(parameters: AccessCodesGenerateCodeParameters, options?: AccessCodesGenerateCodeOptions): AccessCodesGenerateCodeRequest;
50
+ /**
51
+ * Returns a specified [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
52
+ *
53
+ * You must specify either `access_code_id` or both `device_id` and `code`.
54
+ */
28
55
  get(parameters?: AccessCodesGetParameters, options?: AccessCodesGetOptions): AccessCodesGetRequest;
56
+ /**
57
+ * Returns a list of all [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
58
+ *
59
+ * Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
60
+ */
29
61
  list(parameters?: AccessCodesListParameters, options?: AccessCodesListOptions): AccessCodesListRequest;
62
+ /**
63
+ * 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).
64
+ *
65
+ * 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.
66
+ *
67
+ * 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.
68
+ *
69
+ * You can only pull backup access codes for time-bound access codes.
70
+ *
71
+ * 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.
72
+ */
30
73
  pullBackupAccessCode(parameters: AccessCodesPullBackupAccessCodeParameters, options?: AccessCodesPullBackupAccessCodeOptions): AccessCodesPullBackupAccessCodeRequest;
74
+ /**
75
+ * Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.
76
+ *
77
+ * Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
78
+ */
31
79
  reportDeviceConstraints(parameters: AccessCodesReportDeviceConstraintsParameters, options?: AccessCodesReportDeviceConstraintsOptions): AccessCodesReportDeviceConstraintsRequest;
80
+ /**
81
+ * Updates a specified active or upcoming [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
82
+ *
83
+ * See also [Modifying Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes).
84
+ */
32
85
  update(parameters: AccessCodesUpdateParameters, options?: AccessCodesUpdateOptions): AccessCodesUpdateRequest;
86
+ /**
87
+ * Updates [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
88
+ *
89
+ * Specify the `common_code_key` to identify the set of access codes that you want to update.
90
+ *
91
+ * 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).
92
+ */
33
93
  updateMultiple(parameters: AccessCodesUpdateMultipleParameters, options?: AccessCodesUpdateMultipleOptions): AccessCodesUpdateMultipleRequest;
34
94
  }
35
95
  export type AccessCodesCreateParameters = {
96
+ /**
97
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
98
+ */
36
99
  allow_external_modification?: boolean | undefined;
37
100
  attempt_for_offline_device?: boolean | undefined;
101
+ /**
102
+ * Code to be used for access.
103
+ */
38
104
  code?: string | undefined;
105
+ /**
106
+ * 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).
107
+ */
39
108
  common_code_key?: string | undefined;
109
+ /**
110
+ * ID of the device for which you want to create the new access code.
111
+ */
40
112
  device_id: string;
113
+ /**
114
+ * 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`.
115
+ */
41
116
  ends_at?: string | undefined;
117
+ /**
118
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
119
+ */
42
120
  is_external_modification_allowed?: boolean | undefined;
121
+ /**
122
+ * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes).
123
+ */
43
124
  is_offline_access_code?: boolean | undefined;
125
+ /**
126
+ * 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.
127
+ */
44
128
  is_one_time_use?: boolean | undefined;
129
+ /**
130
+ * 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`.
131
+ */
45
132
  max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined;
133
+ /**
134
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
135
+ *
136
+ * 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`.
137
+ *
138
+ * 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.
139
+ *
140
+ * 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).
141
+ */
46
142
  name?: string | undefined;
143
+ /**
144
+ * 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`.
145
+ */
47
146
  prefer_native_scheduling?: boolean | undefined;
147
+ /**
148
+ * 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.
149
+ */
48
150
  preferred_code_length?: number | undefined;
151
+ /**
152
+ * 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.
153
+ */
49
154
  starts_at?: string | undefined;
155
+ /**
156
+ * 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).
157
+ */
50
158
  use_backup_access_code_pool?: boolean | undefined;
159
+ /**
160
+ * @deprecated Use `is_offline_access_code` instead.
161
+ */
51
162
  use_offline_access_code?: boolean | undefined;
52
163
  };
53
164
  /**
@@ -60,17 +171,56 @@ export type AccessCodesCreateRequest = SeamHttpRequest<AccessCodesCreateResponse
60
171
  export interface AccessCodesCreateOptions {
61
172
  }
62
173
  export type AccessCodesCreateMultipleParameters = {
174
+ /**
175
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
176
+ */
63
177
  allow_external_modification?: boolean | undefined;
64
178
  attempt_for_offline_device?: boolean | undefined;
179
+ /**
180
+ * 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.
181
+ */
65
182
  behavior_when_code_cannot_be_shared?: 'throw' | 'create_random_code' | undefined;
183
+ /**
184
+ * Code to be used for access.
185
+ */
66
186
  code?: string | undefined;
187
+ /**
188
+ * IDs of the devices for which you want to create the new access codes.
189
+ */
67
190
  device_ids: Array<string>;
191
+ /**
192
+ * 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`.
193
+ */
68
194
  ends_at?: string | undefined;
195
+ /**
196
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
197
+ */
69
198
  is_external_modification_allowed?: boolean | undefined;
199
+ /**
200
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
201
+ *
202
+ * 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`.
203
+ *
204
+ * 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.
205
+ *
206
+ * 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).
207
+ */
70
208
  name?: string | undefined;
209
+ /**
210
+ * 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`.
211
+ */
71
212
  prefer_native_scheduling?: boolean | undefined;
213
+ /**
214
+ * Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.
215
+ */
72
216
  preferred_code_length?: number | undefined;
217
+ /**
218
+ * 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.
219
+ */
73
220
  starts_at?: string | undefined;
221
+ /**
222
+ * 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).
223
+ */
74
224
  use_backup_access_code_pool?: boolean | undefined;
75
225
  };
76
226
  /**
@@ -83,7 +233,13 @@ export type AccessCodesCreateMultipleRequest = SeamHttpRequest<AccessCodesCreate
83
233
  export interface AccessCodesCreateMultipleOptions {
84
234
  }
85
235
  export type AccessCodesDeleteParameters = {
236
+ /**
237
+ * ID of the access code that you want to delete.
238
+ */
86
239
  access_code_id: string;
240
+ /**
241
+ * ID of the device for which you want to delete the access code.
242
+ */
87
243
  device_id?: string | undefined;
88
244
  };
89
245
  /**
@@ -94,6 +250,9 @@ export type AccessCodesDeleteRequest = SeamHttpRequest<void, undefined>;
94
250
  export interface AccessCodesDeleteOptions {
95
251
  }
96
252
  export type AccessCodesGenerateCodeParameters = {
253
+ /**
254
+ * ID of the device for which you want to generate a code.
255
+ */
97
256
  device_id: string;
98
257
  };
99
258
  /**
@@ -106,8 +265,17 @@ export type AccessCodesGenerateCodeRequest = SeamHttpRequest<AccessCodesGenerate
106
265
  export interface AccessCodesGenerateCodeOptions {
107
266
  }
108
267
  export type AccessCodesGetParameters = {
268
+ /**
269
+ * ID of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
270
+ */
109
271
  access_code_id?: string | undefined;
272
+ /**
273
+ * Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.
274
+ */
110
275
  code?: string | undefined;
276
+ /**
277
+ * 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`.
278
+ */
111
279
  device_id?: string | undefined;
112
280
  };
113
281
  /**
@@ -120,15 +288,45 @@ export type AccessCodesGetRequest = SeamHttpRequest<AccessCodesGetResponse, 'acc
120
288
  export interface AccessCodesGetOptions {
121
289
  }
122
290
  export type AccessCodesListParameters = {
291
+ /**
292
+ * 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`.
293
+ */
123
294
  access_code_ids?: Array<string> | undefined;
295
+ /**
296
+ * 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`.
297
+ */
124
298
  access_grant_id?: string | undefined;
299
+ /**
300
+ * 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`.
301
+ */
125
302
  access_grant_key?: string | undefined;
303
+ /**
304
+ * 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`.
305
+ */
126
306
  access_method_id?: string | undefined;
307
+ /**
308
+ * Customer key for which you want to list access codes.
309
+ */
127
310
  customer_key?: string | undefined;
311
+ /**
312
+ * 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`.
313
+ */
128
314
  device_id?: string | undefined;
315
+ /**
316
+ * Numerical limit on the number of access codes to return.
317
+ */
129
318
  limit?: number | undefined;
319
+ /**
320
+ * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
321
+ */
130
322
  page_cursor?: string | undefined;
323
+ /**
324
+ * 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`.
325
+ */
131
326
  search?: string | undefined;
327
+ /**
328
+ * Your user ID for the user by which to filter access codes.
329
+ */
132
330
  user_identifier_key?: string | undefined;
133
331
  };
134
332
  /**
@@ -141,6 +339,9 @@ export type AccessCodesListRequest = SeamHttpRequest<AccessCodesListResponse, 'a
141
339
  export interface AccessCodesListOptions {
142
340
  }
143
341
  export type AccessCodesPullBackupAccessCodeParameters = {
342
+ /**
343
+ * ID of the access code for which you want to pull a backup access code.
344
+ */
144
345
  access_code_id: string;
145
346
  };
146
347
  /**
@@ -153,9 +354,21 @@ export type AccessCodesPullBackupAccessCodeRequest = SeamHttpRequest<AccessCodes
153
354
  export interface AccessCodesPullBackupAccessCodeOptions {
154
355
  }
155
356
  export type AccessCodesReportDeviceConstraintsParameters = {
357
+ /**
358
+ * ID of the device for which you want to report constraints.
359
+ */
156
360
  device_id: string;
361
+ /**
362
+ * 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`.
363
+ */
157
364
  max_code_length?: number | undefined;
365
+ /**
366
+ * 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`.
367
+ */
158
368
  min_code_length?: number | undefined;
369
+ /**
370
+ * 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`.
371
+ */
159
372
  supported_code_lengths?: Array<number> | undefined;
160
373
  };
161
374
  /**
@@ -166,23 +379,80 @@ export type AccessCodesReportDeviceConstraintsRequest = SeamHttpRequest<void, un
166
379
  export interface AccessCodesReportDeviceConstraintsOptions {
167
380
  }
168
381
  export type AccessCodesUpdateParameters = {
382
+ /**
383
+ * ID of the access code that you want to update.
384
+ */
169
385
  access_code_id: string;
386
+ /**
387
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
388
+ */
170
389
  allow_external_modification?: boolean | undefined;
171
390
  attempt_for_offline_device?: boolean | undefined;
391
+ /**
392
+ * Code to be used for access.
393
+ */
172
394
  code?: string | undefined;
395
+ /**
396
+ * ID of the device containing the access code that you want to update.
397
+ */
173
398
  device_id?: string | undefined;
399
+ /**
400
+ * 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`.
401
+ */
174
402
  ends_at?: string | undefined;
403
+ /**
404
+ * Indicates whether [external modification](https://docs.seam.co/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.
405
+ */
175
406
  is_external_modification_allowed?: boolean | undefined;
407
+ /**
408
+ * 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`.
409
+ */
176
410
  is_managed?: boolean | undefined;
411
+ /**
412
+ * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes).
413
+ */
177
414
  is_offline_access_code?: boolean | undefined;
415
+ /**
416
+ * 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.
417
+ */
178
418
  is_one_time_use?: boolean | undefined;
419
+ /**
420
+ * 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`.
421
+ */
179
422
  max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined;
423
+ /**
424
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
425
+ *
426
+ * 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`.
427
+ *
428
+ * 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.
429
+ *
430
+ * 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).
431
+ */
180
432
  name?: string | undefined;
433
+ /**
434
+ * 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`.
435
+ */
181
436
  prefer_native_scheduling?: boolean | undefined;
437
+ /**
438
+ * 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.
439
+ */
182
440
  preferred_code_length?: number | undefined;
441
+ /**
442
+ * 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.
443
+ */
183
444
  starts_at?: string | undefined;
445
+ /**
446
+ * 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).
447
+ */
184
448
  type?: 'ongoing' | 'time_bound' | undefined;
449
+ /**
450
+ * 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).
451
+ */
185
452
  use_backup_access_code_pool?: boolean | undefined;
453
+ /**
454
+ * @deprecated Use `is_offline_access_code` instead.
455
+ */
186
456
  use_offline_access_code?: boolean | undefined;
187
457
  };
188
458
  /**
@@ -193,9 +463,27 @@ export type AccessCodesUpdateRequest = SeamHttpRequest<void, undefined>;
193
463
  export interface AccessCodesUpdateOptions {
194
464
  }
195
465
  export type AccessCodesUpdateMultipleParameters = {
466
+ /**
467
+ * Key that links the group of access codes, assigned on creation by `/access_codes/create_multiple`.
468
+ */
196
469
  common_code_key: string;
470
+ /**
471
+ * 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`.
472
+ */
197
473
  ends_at?: string | undefined;
474
+ /**
475
+ * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
476
+ *
477
+ * 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`.
478
+ *
479
+ * 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.
480
+ *
481
+ * 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).
482
+ */
198
483
  name?: string | undefined;
484
+ /**
485
+ * 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.
486
+ */
199
487
  starts_at?: string | undefined;
200
488
  };
201
489
  /**
@@ -93,6 +93,9 @@ export class SeamHttpAccessCodes {
93
93
  get unmanaged() {
94
94
  return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
95
95
  }
96
+ /**
97
+ * 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.
98
+ */
96
99
  create(parameters, options = {}) {
97
100
  return new SeamHttpRequest(this, {
98
101
  pathname: '/access_codes/create',
@@ -102,6 +105,19 @@ export class SeamHttpAccessCodes {
102
105
  options,
103
106
  });
104
107
  }
108
+ /**
109
+ * Creates new [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
110
+ *
111
+ * 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.
112
+ *
113
+ * 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.
114
+ *
115
+ * 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`.
116
+ *
117
+ * 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).
118
+ *
119
+ * 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.
120
+ */
105
121
  createMultiple(parameters, options = {}) {
106
122
  return new SeamHttpRequest(this, {
107
123
  pathname: '/access_codes/create_multiple',
@@ -111,6 +127,9 @@ export class SeamHttpAccessCodes {
111
127
  options,
112
128
  });
113
129
  }
130
+ /**
131
+ * Deletes an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
132
+ */
114
133
  delete(parameters, options = {}) {
115
134
  return new SeamHttpRequest(this, {
116
135
  pathname: '/access_codes/delete',
@@ -120,6 +139,9 @@ export class SeamHttpAccessCodes {
120
139
  options,
121
140
  });
122
141
  }
142
+ /**
143
+ * Generates a code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), given a device ID.
144
+ */
123
145
  generateCode(parameters, options = {}) {
124
146
  return new SeamHttpRequest(this, {
125
147
  pathname: '/access_codes/generate_code',
@@ -129,6 +151,11 @@ export class SeamHttpAccessCodes {
129
151
  options,
130
152
  });
131
153
  }
154
+ /**
155
+ * Returns a specified [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
156
+ *
157
+ * You must specify either `access_code_id` or both `device_id` and `code`.
158
+ */
132
159
  get(parameters, options = {}) {
133
160
  return new SeamHttpRequest(this, {
134
161
  pathname: '/access_codes/get',
@@ -138,6 +165,11 @@ export class SeamHttpAccessCodes {
138
165
  options,
139
166
  });
140
167
  }
168
+ /**
169
+ * Returns a list of all [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
170
+ *
171
+ * Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
172
+ */
141
173
  list(parameters, options = {}) {
142
174
  return new SeamHttpRequest(this, {
143
175
  pathname: '/access_codes/list',
@@ -147,6 +179,17 @@ export class SeamHttpAccessCodes {
147
179
  options,
148
180
  });
149
181
  }
182
+ /**
183
+ * 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).
184
+ *
185
+ * 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.
186
+ *
187
+ * 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.
188
+ *
189
+ * You can only pull backup access codes for time-bound access codes.
190
+ *
191
+ * 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.
192
+ */
150
193
  pullBackupAccessCode(parameters, options = {}) {
151
194
  return new SeamHttpRequest(this, {
152
195
  pathname: '/access_codes/pull_backup_access_code',
@@ -156,6 +199,11 @@ export class SeamHttpAccessCodes {
156
199
  options,
157
200
  });
158
201
  }
202
+ /**
203
+ * Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.
204
+ *
205
+ * Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
206
+ */
159
207
  reportDeviceConstraints(parameters, options = {}) {
160
208
  return new SeamHttpRequest(this, {
161
209
  pathname: '/access_codes/report_device_constraints',
@@ -165,6 +213,11 @@ export class SeamHttpAccessCodes {
165
213
  options,
166
214
  });
167
215
  }
216
+ /**
217
+ * Updates a specified active or upcoming [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
218
+ *
219
+ * See also [Modifying Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes).
220
+ */
168
221
  update(parameters, options = {}) {
169
222
  return new SeamHttpRequest(this, {
170
223
  pathname: '/access_codes/update',
@@ -174,6 +227,13 @@ export class SeamHttpAccessCodes {
174
227
  options,
175
228
  });
176
229
  }
230
+ /**
231
+ * Updates [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
232
+ *
233
+ * Specify the `common_code_key` to identify the set of access codes that you want to update.
234
+ *
235
+ * 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).
236
+ */
177
237
  updateMultiple(parameters, options = {}) {
178
238
  return new SeamHttpRequest(this, {
179
239
  pathname: '/access_codes/update_multiple',
@@ -1 +1 @@
1
- {"version":3,"file":"access-codes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/access-codes/access-codes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC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EAAE;YAC/B,QAAQ,EAAE,sBAAsB;YAChC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,cAAc,CACZ,UAA+C,EAC/C,UAA4C,EAAE;QAE9C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
1
+ {"version":3,"file":"access-codes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/access-codes/access-codes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAEnE,MAAM,OAAO,mBAAmB;IAC9B,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAA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9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,cAAc;YAC3B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,oBAAoB,CAClB,UAAqD,EACrD,UAAkD,EAAE;QAEpD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,uCAAuC;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,aAAa;YAC1B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,uBAAuB,CACrB,UAAwD,EACxD,UAAqD,EAAE;QAEvD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yCAAyC;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,UAAuC,EACvC,UAAoC,EAAE;QAEtC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,sBAAsB;YAChC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CACZ,UAA+C,EAC/C,UAA4C,EAAE;QAE9C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
@@ -17,11 +17,23 @@ export declare class SeamHttpAccessCodesSimulate {
17
17
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessCodesSimulate;
18
18
  createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
19
19
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
20
+ /**
21
+ * 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).
22
+ */
20
23
  createUnmanagedAccessCode(parameters: AccessCodesSimulateCreateUnmanagedAccessCodeParameters, options?: AccessCodesSimulateCreateUnmanagedAccessCodeOptions): AccessCodesSimulateCreateUnmanagedAccessCodeRequest;
21
24
  }
22
25
  export type AccessCodesSimulateCreateUnmanagedAccessCodeParameters = {
26
+ /**
27
+ * Code of the simulated unmanaged access code.
28
+ */
23
29
  code: string;
30
+ /**
31
+ * ID of the device for which you want to simulate the creation of an unmanaged access code.
32
+ */
24
33
  device_id: string;
34
+ /**
35
+ * Name of the simulated unmanaged access code.
36
+ */
25
37
  name: string;
26
38
  };
27
39
  /**
@@ -85,6 +85,9 @@ export class SeamHttpAccessCodesSimulate {
85
85
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
86
86
  await clientSessions.get();
87
87
  }
88
+ /**
89
+ * 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).
90
+ */
88
91
  createUnmanagedAccessCode(parameters, options = {}) {
89
92
  return new SeamHttpRequest(this, {
90
93
  pathname: '/access_codes/simulate/create_unmanaged_access_code',
@@ -1 +1 @@
1
- {"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/access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EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,yBAAyB,CACvB,UAAkE,EAClE,UAA+D,EAAE;QAEjE,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,qDAAqD;YAC/D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,aAAa;YAC1B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
1
+ {"version":3,"file":"simulate.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/access-codes/simulate/simulate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,MAAM,OAAO,2BAA2B;IACtC,MAAM,CAAQ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