@seamapi/http 2.1.0 → 2.3.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 (911) hide show
  1. package/README.md +18 -0
  2. package/index.d.ts +2 -1
  3. package/index.js +2 -1
  4. package/index.js.map +1 -1
  5. package/lib/api-error-types.js.map +1 -0
  6. package/lib/auth.d.ts +12 -0
  7. package/lib/auth.js.map +1 -0
  8. package/lib/client.d.ts +12 -0
  9. package/lib/client.js +21 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/error-interceptor.js.map +1 -0
  12. package/lib/index.js.map +1 -0
  13. package/lib/openapi.js.map +1 -0
  14. package/lib/options.d.ts +54 -0
  15. package/lib/options.js +108 -0
  16. package/lib/options.js.map +1 -0
  17. package/lib/parse-options.d.ts +17 -0
  18. package/lib/parse-options.js +118 -0
  19. package/lib/parse-options.js.map +1 -0
  20. package/lib/request-options.d.ts +5 -0
  21. package/lib/request-options.js +7 -0
  22. package/lib/request-options.js.map +1 -0
  23. package/lib/resolve-action-attempt.d.ts +31 -0
  24. package/lib/resolve-action-attempt.js.map +1 -0
  25. package/lib/resources/access-code.d.ts +934 -0
  26. package/lib/resources/access-code.js.map +1 -0
  27. package/lib/resources/access-grant.d.ts +367 -0
  28. package/lib/resources/access-grant.js.map +1 -0
  29. package/lib/resources/access-method.d.ts +269 -0
  30. package/lib/resources/access-method.js.map +1 -0
  31. package/lib/resources/acs-access-group.d.ts +322 -0
  32. package/lib/resources/acs-access-group.js.map +1 -0
  33. package/lib/resources/acs-credential.d.ts +280 -0
  34. package/lib/resources/acs-credential.js.map +1 -0
  35. package/lib/resources/acs-encoder.d.ts +59 -0
  36. package/lib/resources/acs-encoder.js.map +1 -0
  37. package/lib/resources/acs-entrance.d.ts +406 -0
  38. package/lib/resources/acs-entrance.js.map +1 -0
  39. package/lib/resources/acs-system.d.ts +290 -0
  40. package/lib/resources/acs-system.js.map +1 -0
  41. package/lib/resources/acs-user.d.ts +523 -0
  42. package/lib/resources/acs-user.js.map +1 -0
  43. package/lib/resources/action-attempt.d.ts +1374 -0
  44. package/lib/resources/action-attempt.js.map +1 -0
  45. package/lib/resources/batch.d.ts +57 -0
  46. package/lib/resources/batch.js.map +1 -0
  47. package/lib/resources/client-session.d.ts +62 -0
  48. package/lib/resources/client-session.js.map +1 -0
  49. package/lib/resources/connect-webview.d.ts +91 -0
  50. package/lib/resources/connect-webview.js.map +1 -0
  51. package/lib/resources/connected-account.d.ts +367 -0
  52. package/lib/resources/connected-account.js.map +1 -0
  53. package/lib/resources/customer-portal.d.ts +29 -0
  54. package/lib/resources/customer-portal.js.map +1 -0
  55. package/lib/resources/device-provider.d.ts +98 -0
  56. package/lib/resources/device-provider.js.map +1 -0
  57. package/lib/resources/device.d.ts +2785 -0
  58. package/lib/resources/device.js.map +1 -0
  59. package/lib/resources/event.d.ts +5627 -0
  60. package/lib/resources/event.js.map +1 -0
  61. package/lib/resources/index.js.map +1 -0
  62. package/lib/resources/instant-key.d.ts +56 -0
  63. package/lib/resources/instant-key.js.map +1 -0
  64. package/lib/resources/noise-threshold.d.ts +33 -0
  65. package/lib/resources/noise-threshold.js.map +1 -0
  66. package/lib/resources/phone.d.ts +103 -0
  67. package/lib/resources/phone.js.map +1 -0
  68. package/lib/resources/space.d.ts +75 -0
  69. package/lib/resources/space.js.map +1 -0
  70. package/lib/resources/thermostat-daily-program.d.ts +38 -0
  71. package/lib/resources/thermostat-daily-program.js.map +1 -0
  72. package/lib/resources/thermostat-schedule.d.ts +62 -0
  73. package/lib/resources/thermostat-schedule.js.map +1 -0
  74. package/lib/resources/unmanaged-access-code.d.ts +746 -0
  75. package/lib/resources/unmanaged-access-code.js.map +1 -0
  76. package/lib/resources/unmanaged-access-grant.d.ts +351 -0
  77. package/lib/resources/unmanaged-access-grant.js.map +1 -0
  78. package/lib/resources/unmanaged-access-method.d.ts +257 -0
  79. package/lib/resources/unmanaged-access-method.js.map +1 -0
  80. package/lib/resources/unmanaged-device.d.ts +939 -0
  81. package/lib/resources/unmanaged-device.js.map +1 -0
  82. package/lib/resources/unmanaged-user-identity.d.ts +102 -0
  83. package/lib/resources/unmanaged-user-identity.js.map +1 -0
  84. package/lib/resources/user-identity.d.ts +106 -0
  85. package/lib/resources/user-identity.js.map +1 -0
  86. package/lib/resources/webhook.d.ts +21 -0
  87. package/lib/resources/webhook.js.map +1 -0
  88. package/lib/resources/workspace.d.ts +63 -0
  89. package/lib/resources/workspace.js.map +1 -0
  90. package/lib/routes/access-codes/access-codes.d.ts +495 -0
  91. package/lib/routes/access-codes/access-codes.js +247 -0
  92. package/lib/routes/access-codes/access-codes.js.map +1 -0
  93. package/lib/routes/access-codes/index.js.map +1 -0
  94. package/lib/routes/access-codes/simulate/index.js.map +1 -0
  95. package/lib/routes/access-codes/simulate/simulate.d.ts +47 -0
  96. package/lib/routes/access-codes/simulate/simulate.js +101 -0
  97. package/lib/routes/access-codes/simulate/simulate.js.map +1 -0
  98. package/lib/routes/access-codes/unmanaged/index.js.map +1 -0
  99. package/lib/routes/access-codes/unmanaged/unmanaged.d.ts +164 -0
  100. package/lib/routes/access-codes/unmanaged/unmanaged.js +155 -0
  101. package/lib/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
  102. package/lib/routes/access-grants/access-grants.d.ts +339 -0
  103. package/lib/routes/access-grants/access-grants.js +177 -0
  104. package/lib/routes/access-grants/access-grants.js.map +1 -0
  105. package/lib/routes/access-grants/index.js.map +1 -0
  106. package/lib/routes/access-grants/unmanaged/index.js.map +1 -0
  107. package/lib/routes/access-grants/unmanaged/unmanaged.d.ts +107 -0
  108. package/lib/routes/access-grants/unmanaged/unmanaged.js +129 -0
  109. package/lib/routes/access-grants/unmanaged/unmanaged.js.map +1 -0
  110. package/lib/routes/access-methods/access-methods.d.ts +202 -0
  111. package/lib/routes/access-methods/access-methods.js +190 -0
  112. package/lib/routes/access-methods/access-methods.js.map +1 -0
  113. package/lib/routes/access-methods/index.js.map +1 -0
  114. package/lib/routes/access-methods/unmanaged/index.js.map +1 -0
  115. package/lib/routes/access-methods/unmanaged/unmanaged.d.ts +70 -0
  116. package/lib/routes/access-methods/unmanaged/unmanaged.js +113 -0
  117. package/lib/routes/access-methods/unmanaged/unmanaged.js.map +1 -0
  118. package/lib/routes/acs/access-groups/access-groups.d.ts +177 -0
  119. package/lib/routes/acs/access-groups/access-groups.js +173 -0
  120. package/lib/routes/acs/access-groups/access-groups.js.map +1 -0
  121. package/lib/routes/acs/access-groups/index.js.map +1 -0
  122. package/lib/routes/acs/acs.d.ts +31 -0
  123. package/lib/routes/acs/acs.js +112 -0
  124. package/lib/routes/acs/acs.js.map +1 -0
  125. package/lib/routes/acs/credentials/credentials.d.ts +281 -0
  126. package/lib/routes/acs/credentials/credentials.js +185 -0
  127. package/lib/routes/acs/credentials/credentials.js.map +1 -0
  128. package/lib/routes/acs/credentials/index.js.map +1 -0
  129. package/lib/routes/acs/encoders/encoders.d.ts +165 -0
  130. package/lib/routes/acs/encoders/encoders.js +166 -0
  131. package/lib/routes/acs/encoders/encoders.js.map +1 -0
  132. package/lib/routes/acs/encoders/index.js.map +1 -0
  133. package/lib/routes/acs/encoders/simulate/index.js.map +1 -0
  134. package/lib/routes/acs/encoders/simulate/simulate.d.ts +109 -0
  135. package/lib/routes/acs/encoders/simulate/simulate.js +137 -0
  136. package/lib/routes/acs/encoders/simulate/simulate.js.map +1 -0
  137. package/lib/routes/acs/entrances/entrances.d.ts +170 -0
  138. package/lib/routes/acs/entrances/entrances.js +154 -0
  139. package/lib/routes/acs/entrances/entrances.js.map +1 -0
  140. package/lib/routes/acs/entrances/index.js.map +1 -0
  141. package/lib/routes/acs/index.js.map +1 -0
  142. package/lib/routes/acs/systems/index.js.map +1 -0
  143. package/lib/routes/acs/systems/systems.d.ts +150 -0
  144. package/lib/routes/acs/systems/systems.js +141 -0
  145. package/lib/routes/acs/systems/systems.js.map +1 -0
  146. package/lib/routes/acs/users/index.js.map +1 -0
  147. package/lib/routes/acs/users/users.d.ts +382 -0
  148. package/lib/routes/acs/users/users.js +221 -0
  149. package/lib/routes/acs/users/users.js.map +1 -0
  150. package/lib/routes/action-attempts/action-attempts.d.ts +69 -0
  151. package/lib/routes/action-attempts/action-attempts.js +117 -0
  152. package/lib/routes/action-attempts/action-attempts.js.map +1 -0
  153. package/lib/routes/action-attempts/index.js.map +1 -0
  154. package/lib/routes/client-sessions/client-sessions.d.ts +240 -0
  155. package/lib/routes/client-sessions/client-sessions.js +174 -0
  156. package/lib/routes/client-sessions/client-sessions.js.map +1 -0
  157. package/lib/routes/client-sessions/index.js.map +1 -0
  158. package/lib/routes/connect-webviews/connect-webviews.d.ts +160 -0
  159. package/lib/routes/connect-webviews/connect-webviews.js +147 -0
  160. package/lib/routes/connect-webviews/connect-webviews.js.map +1 -0
  161. package/lib/routes/connect-webviews/index.js.map +1 -0
  162. package/lib/routes/connected-accounts/connected-accounts.d.ts +163 -0
  163. package/lib/routes/connected-accounts/connected-accounts.js +157 -0
  164. package/lib/routes/connected-accounts/connected-accounts.js.map +1 -0
  165. package/lib/routes/connected-accounts/index.js.map +1 -0
  166. package/lib/routes/connected-accounts/simulate/index.js.map +1 -0
  167. package/lib/routes/connected-accounts/simulate/simulate.d.ts +36 -0
  168. package/lib/routes/connected-accounts/simulate/simulate.js +101 -0
  169. package/lib/routes/connected-accounts/simulate/simulate.js.map +1 -0
  170. package/lib/routes/customers/customers.d.ts +1511 -0
  171. package/lib/routes/customers/customers.js +126 -0
  172. package/lib/routes/customers/customers.js.map +1 -0
  173. package/lib/routes/customers/index.js.map +1 -0
  174. package/lib/routes/devices/devices.d.ts +242 -0
  175. package/lib/routes/devices/devices.js +165 -0
  176. package/lib/routes/devices/devices.js.map +1 -0
  177. package/lib/routes/devices/index.js.map +1 -0
  178. package/lib/routes/devices/simulate/index.js.map +1 -0
  179. package/lib/routes/devices/simulate/simulate.d.ts +128 -0
  180. package/lib/routes/devices/simulate/simulate.js +170 -0
  181. package/lib/routes/devices/simulate/simulate.js.map +1 -0
  182. package/lib/routes/devices/unmanaged/index.js.map +1 -0
  183. package/lib/routes/devices/unmanaged/unmanaged.d.ts +155 -0
  184. package/lib/routes/devices/unmanaged/unmanaged.js +133 -0
  185. package/lib/routes/devices/unmanaged/unmanaged.js.map +1 -0
  186. package/lib/routes/events/events.d.ts +174 -0
  187. package/lib/routes/events/events.js +113 -0
  188. package/lib/routes/events/events.js.map +1 -0
  189. package/lib/routes/events/index.js.map +1 -0
  190. package/lib/routes/index.js.map +1 -0
  191. package/lib/routes/instant-keys/index.js.map +1 -0
  192. package/lib/routes/instant-keys/instant-keys.d.ts +79 -0
  193. package/lib/routes/instant-keys/instant-keys.js +125 -0
  194. package/lib/routes/instant-keys/instant-keys.js.map +1 -0
  195. package/lib/routes/locks/index.js.map +1 -0
  196. package/lib/routes/locks/locks.d.ts +188 -0
  197. package/lib/routes/locks/locks.js +167 -0
  198. package/lib/routes/locks/locks.js.map +1 -0
  199. package/lib/routes/locks/simulate/index.js.map +1 -0
  200. package/lib/routes/locks/simulate/simulate.d.ts +60 -0
  201. package/lib/routes/locks/simulate/simulate.js +122 -0
  202. package/lib/routes/locks/simulate/simulate.js.map +1 -0
  203. package/lib/routes/noise-sensors/index.js.map +1 -0
  204. package/lib/routes/noise-sensors/noise-sensors.d.ts +103 -0
  205. package/lib/routes/noise-sensors/noise-sensors.js +109 -0
  206. package/lib/routes/noise-sensors/noise-sensors.js.map +1 -0
  207. package/lib/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
  208. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +159 -0
  209. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +149 -0
  210. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
  211. package/lib/routes/noise-sensors/simulate/index.js.map +1 -0
  212. package/lib/routes/noise-sensors/simulate/simulate.d.ts +36 -0
  213. package/lib/routes/noise-sensors/simulate/simulate.js +101 -0
  214. package/lib/routes/noise-sensors/simulate/simulate.js.map +1 -0
  215. package/lib/routes/phones/index.js.map +1 -0
  216. package/lib/routes/phones/phones.d.ts +81 -0
  217. package/lib/routes/phones/phones.js +129 -0
  218. package/lib/routes/phones/phones.js.map +1 -0
  219. package/lib/routes/phones/simulate/index.js.map +1 -0
  220. package/lib/routes/phones/simulate/simulate.d.ts +93 -0
  221. package/lib/routes/phones/simulate/simulate.js +101 -0
  222. package/lib/routes/phones/simulate/simulate.js.map +1 -0
  223. package/lib/routes/seam-http-endpoints-without-workspace.d.ts +23 -0
  224. package/lib/routes/seam-http-endpoints-without-workspace.js +62 -0
  225. package/lib/routes/seam-http-endpoints-without-workspace.js.map +1 -0
  226. package/lib/routes/seam-http-endpoints.d.ts +960 -0
  227. package/lib/routes/seam-http-endpoints.js +2231 -0
  228. package/lib/routes/seam-http-endpoints.js.map +1 -0
  229. package/lib/routes/seam-http-without-workspace.d.ts +18 -0
  230. package/lib/routes/seam-http-without-workspace.js +49 -0
  231. package/lib/routes/seam-http-without-workspace.js.map +1 -0
  232. package/lib/routes/seam-http.d.ts +59 -0
  233. package/lib/routes/seam-http.js +167 -0
  234. package/lib/routes/seam-http.js.map +1 -0
  235. package/lib/routes/spaces/index.js.map +1 -0
  236. package/lib/routes/spaces/spaces.d.ts +363 -0
  237. package/lib/routes/spaces/spaces.js +233 -0
  238. package/lib/routes/spaces/spaces.js.map +1 -0
  239. package/lib/routes/thermostats/daily-programs/daily-programs.d.ts +109 -0
  240. package/lib/routes/thermostats/daily-programs/daily-programs.js +130 -0
  241. package/lib/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
  242. package/lib/routes/thermostats/daily-programs/index.js.map +1 -0
  243. package/lib/routes/thermostats/index.js.map +1 -0
  244. package/lib/routes/thermostats/schedules/index.js.map +1 -0
  245. package/lib/routes/thermostats/schedules/schedules.d.ts +163 -0
  246. package/lib/routes/thermostats/schedules/schedules.js +149 -0
  247. package/lib/routes/thermostats/schedules/schedules.js.map +1 -0
  248. package/lib/routes/thermostats/simulate/index.js.map +1 -0
  249. package/lib/routes/thermostats/simulate/simulate.d.ts +81 -0
  250. package/lib/routes/thermostats/simulate/simulate.js +113 -0
  251. package/lib/routes/thermostats/simulate/simulate.js.map +1 -0
  252. package/lib/routes/thermostats/thermostats.d.ts +565 -0
  253. package/lib/routes/thermostats/thermostats.js +302 -0
  254. package/lib/routes/thermostats/thermostats.js.map +1 -0
  255. package/lib/routes/user-identities/index.js.map +1 -0
  256. package/lib/routes/user-identities/unmanaged/index.js.map +1 -0
  257. package/lib/routes/user-identities/unmanaged/unmanaged.d.ts +97 -0
  258. package/lib/routes/user-identities/unmanaged/unmanaged.js +127 -0
  259. package/lib/routes/user-identities/unmanaged/unmanaged.js.map +1 -0
  260. package/lib/routes/user-identities/user-identities.d.ts +363 -0
  261. package/lib/routes/user-identities/user-identities.js +265 -0
  262. package/lib/routes/user-identities/user-identities.js.map +1 -0
  263. package/lib/routes/webhooks/index.js.map +1 -0
  264. package/lib/routes/webhooks/webhooks.d.ts +114 -0
  265. package/lib/routes/webhooks/webhooks.js +149 -0
  266. package/lib/routes/webhooks/webhooks.js.map +1 -0
  267. package/lib/routes/workspaces/index.js.map +1 -0
  268. package/lib/routes/workspaces/workspaces.d.ts +189 -0
  269. package/lib/routes/workspaces/workspaces.js +154 -0
  270. package/lib/routes/workspaces/workspaces.js.map +1 -0
  271. package/lib/seam-http-error.js.map +1 -0
  272. package/lib/seam-http-request.d.ts +34 -0
  273. package/lib/seam-http-request.js +101 -0
  274. package/lib/seam-http-request.js.map +1 -0
  275. package/lib/seam-paginator.js.map +1 -0
  276. package/lib/token.js.map +1 -0
  277. package/lib/version.d.ts +1 -1
  278. package/lib/version.js +1 -1
  279. package/package.json +8 -11
  280. package/src/index.ts +2 -1
  281. package/src/lib/auth.ts +280 -0
  282. package/src/lib/client.ts +36 -0
  283. package/src/lib/options.ts +242 -0
  284. package/src/lib/parse-options.ts +182 -0
  285. package/src/lib/request-options.ts +14 -0
  286. package/src/lib/resolve-action-attempt.ts +129 -0
  287. package/src/lib/resources/access-code.ts +1088 -0
  288. package/src/lib/resources/access-grant.ts +437 -0
  289. package/src/lib/resources/access-method.ts +312 -0
  290. package/src/lib/resources/acs-access-group.ts +402 -0
  291. package/src/lib/resources/acs-credential.ts +332 -0
  292. package/src/lib/resources/acs-encoder.ts +72 -0
  293. package/src/lib/resources/acs-entrance.ts +469 -0
  294. package/src/lib/resources/acs-system.ts +377 -0
  295. package/src/lib/resources/acs-user.ts +627 -0
  296. package/src/lib/resources/action-attempt.ts +1672 -0
  297. package/src/lib/resources/batch.ts +65 -0
  298. package/src/lib/resources/client-session.ts +75 -0
  299. package/src/lib/resources/connect-webview.ts +110 -0
  300. package/src/lib/resources/connected-account.ts +425 -0
  301. package/src/lib/resources/customer-portal.ts +38 -0
  302. package/src/lib/resources/device-provider.ts +178 -0
  303. package/src/lib/resources/device.ts +3217 -0
  304. package/src/lib/resources/event.ts +6743 -0
  305. package/src/lib/resources/instant-key.ts +69 -0
  306. package/src/lib/resources/noise-threshold.ts +43 -0
  307. package/src/lib/resources/phone.ts +126 -0
  308. package/src/lib/resources/space.ts +92 -0
  309. package/src/lib/resources/thermostat-daily-program.ts +48 -0
  310. package/src/lib/resources/thermostat-schedule.ts +76 -0
  311. package/src/lib/resources/unmanaged-access-code.ts +870 -0
  312. package/src/lib/resources/unmanaged-access-grant.ts +420 -0
  313. package/src/lib/resources/unmanaged-access-method.ts +300 -0
  314. package/src/lib/resources/unmanaged-device.ts +1157 -0
  315. package/src/lib/resources/unmanaged-user-identity.ts +124 -0
  316. package/src/lib/resources/user-identity.ts +128 -0
  317. package/src/lib/resources/webhook.ts +27 -0
  318. package/src/lib/resources/workspace.ts +75 -0
  319. package/src/lib/routes/access-codes/access-codes.ts +818 -0
  320. package/src/lib/routes/access-codes/simulate/simulate.ts +211 -0
  321. package/src/lib/routes/access-codes/unmanaged/unmanaged.ts +395 -0
  322. package/src/lib/routes/access-grants/access-grants.ts +640 -0
  323. package/src/lib/routes/access-grants/unmanaged/unmanaged.ts +305 -0
  324. package/src/lib/routes/access-methods/access-methods.ts +523 -0
  325. package/src/lib/routes/access-methods/unmanaged/unmanaged.ts +250 -0
  326. package/src/lib/routes/acs/access-groups/access-groups.ts +435 -0
  327. package/src/lib/routes/acs/acs.ts +193 -0
  328. package/src/lib/routes/acs/credentials/credentials.ts +569 -0
  329. package/src/lib/routes/acs/encoders/encoders.ts +429 -0
  330. package/src/lib/routes/acs/encoders/simulate/simulate.ts +335 -0
  331. package/src/lib/routes/acs/entrances/entrances.ts +406 -0
  332. package/src/lib/routes/acs/systems/systems.ts +367 -0
  333. package/src/lib/routes/acs/users/users.ts +710 -0
  334. package/src/lib/routes/action-attempts/action-attempts.ts +254 -0
  335. package/src/lib/routes/client-sessions/client-sessions.ts +495 -0
  336. package/src/lib/routes/connect-webviews/connect-webviews.ts +452 -0
  337. package/src/lib/routes/connected-accounts/connected-accounts.ts +399 -0
  338. package/src/lib/routes/connected-accounts/simulate/simulate.ts +200 -0
  339. package/src/lib/routes/customers/customers.ts +1838 -0
  340. package/src/lib/routes/devices/devices.ts +1918 -0
  341. package/src/lib/routes/devices/simulate/simulate.ts +371 -0
  342. package/src/lib/routes/devices/unmanaged/unmanaged.ts +486 -0
  343. package/src/lib/routes/events/events.ts +565 -0
  344. package/src/lib/routes/instant-keys/instant-keys.ts +269 -0
  345. package/src/lib/routes/locks/locks.ts +532 -0
  346. package/src/lib/routes/locks/simulate/simulate.ts +257 -0
  347. package/src/lib/routes/noise-sensors/noise-sensors.ts +272 -0
  348. package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +400 -0
  349. package/src/lib/routes/noise-sensors/simulate/simulate.ts +197 -0
  350. package/src/lib/routes/phones/phones.ts +269 -0
  351. package/src/lib/routes/phones/simulate/simulate.ts +256 -0
  352. package/src/lib/routes/seam-http-endpoints-without-workspace.ts +132 -0
  353. package/src/lib/routes/seam-http-endpoints.ts +4457 -0
  354. package/src/lib/routes/seam-http-without-workspace.ts +96 -0
  355. package/src/lib/routes/seam-http.ts +262 -0
  356. package/src/lib/routes/spaces/spaces.ts +721 -0
  357. package/src/lib/routes/thermostats/daily-programs/daily-programs.ts +322 -0
  358. package/src/lib/routes/thermostats/schedules/schedules.ts +394 -0
  359. package/src/lib/routes/thermostats/simulate/simulate.ts +263 -0
  360. package/src/lib/routes/thermostats/thermostats.ts +1067 -0
  361. package/src/lib/routes/user-identities/unmanaged/unmanaged.ts +299 -0
  362. package/src/lib/routes/user-identities/user-identities.ts +756 -0
  363. package/src/lib/routes/webhooks/webhooks.ts +333 -0
  364. package/src/lib/routes/workspaces/workspaces.ts +425 -0
  365. package/src/lib/seam-http-request.ts +201 -0
  366. package/src/lib/version.ts +1 -1
  367. package/connect.d.ts +0 -2
  368. package/connect.js +0 -3
  369. package/connect.js.map +0 -1
  370. package/lib/seam/connect/api-error-types.js.map +0 -1
  371. package/lib/seam/connect/auth.d.ts +0 -10
  372. package/lib/seam/connect/auth.js.map +0 -1
  373. package/lib/seam/connect/client.d.ts +0 -10
  374. package/lib/seam/connect/client.js +0 -19
  375. package/lib/seam/connect/client.js.map +0 -1
  376. package/lib/seam/connect/error-interceptor.js.map +0 -1
  377. package/lib/seam/connect/index.js.map +0 -1
  378. package/lib/seam/connect/openapi.js.map +0 -1
  379. package/lib/seam/connect/options.d.ts +0 -57
  380. package/lib/seam/connect/options.js +0 -108
  381. package/lib/seam/connect/options.js.map +0 -1
  382. package/lib/seam/connect/parse-options.d.ts +0 -18
  383. package/lib/seam/connect/parse-options.js +0 -120
  384. package/lib/seam/connect/parse-options.js.map +0 -1
  385. package/lib/seam/connect/resolve-action-attempt.d.ts +0 -27
  386. package/lib/seam/connect/resolve-action-attempt.js.map +0 -1
  387. package/lib/seam/connect/resources/access-code.d.ts +0 -247
  388. package/lib/seam/connect/resources/access-code.js.map +0 -1
  389. package/lib/seam/connect/resources/access-grant.d.ts +0 -98
  390. package/lib/seam/connect/resources/access-grant.js.map +0 -1
  391. package/lib/seam/connect/resources/access-method.d.ts +0 -73
  392. package/lib/seam/connect/resources/access-method.js.map +0 -1
  393. package/lib/seam/connect/resources/acs-access-group.d.ts +0 -89
  394. package/lib/seam/connect/resources/acs-access-group.js.map +0 -1
  395. package/lib/seam/connect/resources/acs-credential.d.ts +0 -74
  396. package/lib/seam/connect/resources/acs-credential.js.map +0 -1
  397. package/lib/seam/connect/resources/acs-encoder.d.ts +0 -13
  398. package/lib/seam/connect/resources/acs-encoder.js.map +0 -1
  399. package/lib/seam/connect/resources/acs-entrance.d.ts +0 -113
  400. package/lib/seam/connect/resources/acs-entrance.js.map +0 -1
  401. package/lib/seam/connect/resources/acs-system.d.ts +0 -74
  402. package/lib/seam/connect/resources/acs-system.js.map +0 -1
  403. package/lib/seam/connect/resources/acs-user.d.ts +0 -154
  404. package/lib/seam/connect/resources/acs-user.js.map +0 -1
  405. package/lib/seam/connect/resources/action-attempt.d.ts +0 -420
  406. package/lib/seam/connect/resources/action-attempt.js.map +0 -1
  407. package/lib/seam/connect/resources/batch.d.ts +0 -54
  408. package/lib/seam/connect/resources/batch.js.map +0 -1
  409. package/lib/seam/connect/resources/client-session.d.ts +0 -14
  410. package/lib/seam/connect/resources/client-session.js.map +0 -1
  411. package/lib/seam/connect/resources/connect-webview.d.ts +0 -21
  412. package/lib/seam/connect/resources/connect-webview.js.map +0 -1
  413. package/lib/seam/connect/resources/connected-account.d.ts +0 -98
  414. package/lib/seam/connect/resources/connected-account.js.map +0 -1
  415. package/lib/seam/connect/resources/customer-portal.d.ts +0 -7
  416. package/lib/seam/connect/resources/customer-portal.js.map +0 -1
  417. package/lib/seam/connect/resources/device-provider.d.ts +0 -26
  418. package/lib/seam/connect/resources/device-provider.js.map +0 -1
  419. package/lib/seam/connect/resources/device.d.ts +0 -763
  420. package/lib/seam/connect/resources/device.js.map +0 -1
  421. package/lib/seam/connect/resources/event.d.ts +0 -1613
  422. package/lib/seam/connect/resources/event.js.map +0 -1
  423. package/lib/seam/connect/resources/index.js.map +0 -1
  424. package/lib/seam/connect/resources/instant-key.d.ts +0 -15
  425. package/lib/seam/connect/resources/instant-key.js.map +0 -1
  426. package/lib/seam/connect/resources/noise-threshold.d.ts +0 -9
  427. package/lib/seam/connect/resources/noise-threshold.js.map +0 -1
  428. package/lib/seam/connect/resources/phone.d.ts +0 -31
  429. package/lib/seam/connect/resources/phone.js.map +0 -1
  430. package/lib/seam/connect/resources/space.d.ts +0 -21
  431. package/lib/seam/connect/resources/space.js.map +0 -1
  432. package/lib/seam/connect/resources/thermostat-daily-program.d.ts +0 -11
  433. package/lib/seam/connect/resources/thermostat-daily-program.js.map +0 -1
  434. package/lib/seam/connect/resources/thermostat-schedule.d.ts +0 -17
  435. package/lib/seam/connect/resources/thermostat-schedule.js.map +0 -1
  436. package/lib/seam/connect/resources/unmanaged-access-code.d.ts +0 -194
  437. package/lib/seam/connect/resources/unmanaged-access-code.js.map +0 -1
  438. package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +0 -94
  439. package/lib/seam/connect/resources/unmanaged-access-grant.js.map +0 -1
  440. package/lib/seam/connect/resources/unmanaged-access-method.d.ts +0 -70
  441. package/lib/seam/connect/resources/unmanaged-access-method.js.map +0 -1
  442. package/lib/seam/connect/resources/unmanaged-device.d.ts +0 -249
  443. package/lib/seam/connect/resources/unmanaged-device.js.map +0 -1
  444. package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +0 -26
  445. package/lib/seam/connect/resources/unmanaged-user-identity.js.map +0 -1
  446. package/lib/seam/connect/resources/user-identity.d.ts +0 -27
  447. package/lib/seam/connect/resources/user-identity.js.map +0 -1
  448. package/lib/seam/connect/resources/webhook.d.ts +0 -6
  449. package/lib/seam/connect/resources/webhook.js.map +0 -1
  450. package/lib/seam/connect/resources/workspace.d.ts +0 -18
  451. package/lib/seam/connect/resources/workspace.js.map +0 -1
  452. package/lib/seam/connect/routes/access-codes/access-codes.d.ts +0 -207
  453. package/lib/seam/connect/routes/access-codes/access-codes.js +0 -187
  454. package/lib/seam/connect/routes/access-codes/access-codes.js.map +0 -1
  455. package/lib/seam/connect/routes/access-codes/index.js.map +0 -1
  456. package/lib/seam/connect/routes/access-codes/simulate/index.js.map +0 -1
  457. package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +0 -35
  458. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +0 -98
  459. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +0 -1
  460. package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +0 -1
  461. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +0 -92
  462. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +0 -134
  463. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +0 -1
  464. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +0 -162
  465. package/lib/seam/connect/routes/access-grants/access-grants.js +0 -156
  466. package/lib/seam/connect/routes/access-grants/access-grants.js.map +0 -1
  467. package/lib/seam/connect/routes/access-grants/index.js.map +0 -1
  468. package/lib/seam/connect/routes/access-grants/unmanaged/index.js.map +0 -1
  469. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +0 -64
  470. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +0 -116
  471. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +0 -1
  472. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +0 -124
  473. package/lib/seam/connect/routes/access-methods/access-methods.js +0 -156
  474. package/lib/seam/connect/routes/access-methods/access-methods.js.map +0 -1
  475. package/lib/seam/connect/routes/access-methods/index.js.map +0 -1
  476. package/lib/seam/connect/routes/access-methods/unmanaged/index.js.map +0 -1
  477. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +0 -49
  478. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +0 -107
  479. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +0 -1
  480. package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +0 -114
  481. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +0 -152
  482. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +0 -1
  483. package/lib/seam/connect/routes/acs/access-groups/index.js.map +0 -1
  484. package/lib/seam/connect/routes/acs/acs.d.ts +0 -31
  485. package/lib/seam/connect/routes/acs/acs.js +0 -112
  486. package/lib/seam/connect/routes/acs/acs.js.map +0 -1
  487. package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +0 -155
  488. package/lib/seam/connect/routes/acs/credentials/credentials.js +0 -161
  489. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +0 -1
  490. package/lib/seam/connect/routes/acs/credentials/index.js.map +0 -1
  491. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -99
  492. package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -138
  493. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +0 -1
  494. package/lib/seam/connect/routes/acs/encoders/index.js.map +0 -1
  495. package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +0 -1
  496. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +0 -70
  497. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +0 -125
  498. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +0 -1
  499. package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +0 -98
  500. package/lib/seam/connect/routes/acs/entrances/entrances.js +0 -134
  501. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +0 -1
  502. package/lib/seam/connect/routes/acs/entrances/index.js.map +0 -1
  503. package/lib/seam/connect/routes/acs/index.js.map +0 -1
  504. package/lib/seam/connect/routes/acs/systems/index.js.map +0 -1
  505. package/lib/seam/connect/routes/acs/systems/systems.d.ts +0 -86
  506. package/lib/seam/connect/routes/acs/systems/systems.js +0 -125
  507. package/lib/seam/connect/routes/acs/systems/systems.js.map +0 -1
  508. package/lib/seam/connect/routes/acs/users/index.js.map +0 -1
  509. package/lib/seam/connect/routes/acs/users/users.d.ts +0 -193
  510. package/lib/seam/connect/routes/acs/users/users.js +0 -188
  511. package/lib/seam/connect/routes/acs/users/users.js.map +0 -1
  512. package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +0 -48
  513. package/lib/seam/connect/routes/action-attempts/action-attempts.js +0 -107
  514. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +0 -1
  515. package/lib/seam/connect/routes/action-attempts/index.js.map +0 -1
  516. package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +0 -127
  517. package/lib/seam/connect/routes/client-sessions/client-sessions.js +0 -151
  518. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +0 -1
  519. package/lib/seam/connect/routes/client-sessions/index.js.map +0 -1
  520. package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +0 -84
  521. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +0 -125
  522. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +0 -1
  523. package/lib/seam/connect/routes/connect-webviews/index.js.map +0 -1
  524. package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +0 -93
  525. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +0 -138
  526. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +0 -1
  527. package/lib/seam/connect/routes/connected-accounts/index.js.map +0 -1
  528. package/lib/seam/connect/routes/connected-accounts/simulate/index.js.map +0 -1
  529. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +0 -30
  530. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +0 -98
  531. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +0 -1
  532. package/lib/seam/connect/routes/customers/customers.d.ts +0 -469
  533. package/lib/seam/connect/routes/customers/customers.js +0 -116
  534. package/lib/seam/connect/routes/customers/customers.js.map +0 -1
  535. package/lib/seam/connect/routes/customers/index.js.map +0 -1
  536. package/lib/seam/connect/routes/devices/devices.d.ts +0 -120
  537. package/lib/seam/connect/routes/devices/devices.js +0 -142
  538. package/lib/seam/connect/routes/devices/devices.js.map +0 -1
  539. package/lib/seam/connect/routes/devices/index.js.map +0 -1
  540. package/lib/seam/connect/routes/devices/simulate/index.js.map +0 -1
  541. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +0 -86
  542. package/lib/seam/connect/routes/devices/simulate/simulate.js +0 -143
  543. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +0 -1
  544. package/lib/seam/connect/routes/devices/unmanaged/index.js.map +0 -1
  545. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +0 -75
  546. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +0 -116
  547. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +0 -1
  548. package/lib/seam/connect/routes/events/events.d.ts +0 -75
  549. package/lib/seam/connect/routes/events/events.js +0 -107
  550. package/lib/seam/connect/routes/events/events.js.map +0 -1
  551. package/lib/seam/connect/routes/events/index.js.map +0 -1
  552. package/lib/seam/connect/routes/index.js.map +0 -1
  553. package/lib/seam/connect/routes/instant-keys/index.js.map +0 -1
  554. package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +0 -58
  555. package/lib/seam/connect/routes/instant-keys/instant-keys.js +0 -116
  556. package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +0 -1
  557. package/lib/seam/connect/routes/locks/index.js.map +0 -1
  558. package/lib/seam/connect/routes/locks/locks.d.ts +0 -103
  559. package/lib/seam/connect/routes/locks/locks.js +0 -138
  560. package/lib/seam/connect/routes/locks/locks.js.map +0 -1
  561. package/lib/seam/connect/routes/locks/simulate/index.js.map +0 -1
  562. package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +0 -45
  563. package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -107
  564. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +0 -1
  565. package/lib/seam/connect/routes/noise-sensors/index.js.map +0 -1
  566. package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +0 -52
  567. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +0 -106
  568. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +0 -1
  569. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +0 -1
  570. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +0 -93
  571. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +0 -134
  572. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +0 -1
  573. package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +0 -1
  574. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +0 -30
  575. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +0 -98
  576. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +0 -1
  577. package/lib/seam/connect/routes/phones/index.js.map +0 -1
  578. package/lib/seam/connect/routes/phones/phones.d.ts +0 -60
  579. package/lib/seam/connect/routes/phones/phones.js +0 -120
  580. package/lib/seam/connect/routes/phones/phones.js.map +0 -1
  581. package/lib/seam/connect/routes/phones/simulate/index.js.map +0 -1
  582. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +0 -48
  583. package/lib/seam/connect/routes/phones/simulate/simulate.js +0 -98
  584. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +0 -1
  585. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +0 -17
  586. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +0 -56
  587. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +0 -1
  588. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +0 -264
  589. package/lib/seam/connect/routes/seam-http-endpoints.js +0 -1535
  590. package/lib/seam/connect/routes/seam-http-endpoints.js.map +0 -1
  591. package/lib/seam/connect/routes/seam-http-without-workspace.d.ts +0 -18
  592. package/lib/seam/connect/routes/seam-http-without-workspace.js +0 -49
  593. package/lib/seam/connect/routes/seam-http-without-workspace.js.map +0 -1
  594. package/lib/seam/connect/routes/seam-http.d.ts +0 -59
  595. package/lib/seam/connect/routes/seam-http.js +0 -167
  596. package/lib/seam/connect/routes/seam-http.js.map +0 -1
  597. package/lib/seam/connect/routes/spaces/index.js.map +0 -1
  598. package/lib/seam/connect/routes/spaces/spaces.d.ts +0 -198
  599. package/lib/seam/connect/routes/spaces/spaces.js +0 -197
  600. package/lib/seam/connect/routes/spaces/spaces.js.map +0 -1
  601. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +0 -67
  602. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -116
  603. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +0 -1
  604. package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +0 -1
  605. package/lib/seam/connect/routes/thermostats/index.js.map +0 -1
  606. package/lib/seam/connect/routes/thermostats/schedules/index.js.map +0 -1
  607. package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +0 -94
  608. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +0 -134
  609. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +0 -1
  610. package/lib/seam/connect/routes/thermostats/simulate/index.js.map +0 -1
  611. package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +0 -48
  612. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +0 -107
  613. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +0 -1
  614. package/lib/seam/connect/routes/thermostats/thermostats.d.ts +0 -265
  615. package/lib/seam/connect/routes/thermostats/thermostats.js +0 -227
  616. package/lib/seam/connect/routes/thermostats/thermostats.js.map +0 -1
  617. package/lib/seam/connect/routes/user-identities/index.js.map +0 -1
  618. package/lib/seam/connect/routes/user-identities/unmanaged/index.js.map +0 -1
  619. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +0 -62
  620. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +0 -116
  621. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +0 -1
  622. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +0 -218
  623. package/lib/seam/connect/routes/user-identities/user-identities.js +0 -219
  624. package/lib/seam/connect/routes/user-identities/user-identities.js.map +0 -1
  625. package/lib/seam/connect/routes/webhooks/index.js.map +0 -1
  626. package/lib/seam/connect/routes/webhooks/webhooks.d.ts +0 -81
  627. package/lib/seam/connect/routes/webhooks/webhooks.js +0 -134
  628. package/lib/seam/connect/routes/webhooks/webhooks.js.map +0 -1
  629. package/lib/seam/connect/routes/workspaces/index.js.map +0 -1
  630. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +0 -101
  631. package/lib/seam/connect/routes/workspaces/workspaces.js +0 -134
  632. package/lib/seam/connect/routes/workspaces/workspaces.js.map +0 -1
  633. package/lib/seam/connect/seam-http-error.js.map +0 -1
  634. package/lib/seam/connect/seam-http-request.d.ts +0 -32
  635. package/lib/seam/connect/seam-http-request.js +0 -102
  636. package/lib/seam/connect/seam-http-request.js.map +0 -1
  637. package/lib/seam/connect/seam-paginator.js.map +0 -1
  638. package/lib/seam/connect/token.js.map +0 -1
  639. package/src/connect.ts +0 -2
  640. package/src/lib/seam/connect/auth.ts +0 -276
  641. package/src/lib/seam/connect/client.ts +0 -32
  642. package/src/lib/seam/connect/options.ts +0 -242
  643. package/src/lib/seam/connect/parse-options.ts +0 -187
  644. package/src/lib/seam/connect/resolve-action-attempt.ts +0 -126
  645. package/src/lib/seam/connect/resources/access-code.ts +0 -404
  646. package/src/lib/seam/connect/resources/access-grant.ts +0 -169
  647. package/src/lib/seam/connect/resources/access-method.ts +0 -117
  648. package/src/lib/seam/connect/resources/acs-access-group.ts +0 -169
  649. package/src/lib/seam/connect/resources/acs-credential.ts +0 -127
  650. package/src/lib/seam/connect/resources/acs-encoder.ts +0 -26
  651. package/src/lib/seam/connect/resources/acs-entrance.ts +0 -177
  652. package/src/lib/seam/connect/resources/acs-system.ts +0 -163
  653. package/src/lib/seam/connect/resources/acs-user.ts +0 -261
  654. package/src/lib/seam/connect/resources/action-attempt.ts +0 -716
  655. package/src/lib/seam/connect/resources/batch.ts +0 -62
  656. package/src/lib/seam/connect/resources/client-session.ts +0 -27
  657. package/src/lib/seam/connect/resources/connect-webview.ts +0 -40
  658. package/src/lib/seam/connect/resources/connected-account.ts +0 -158
  659. package/src/lib/seam/connect/resources/customer-portal.ts +0 -16
  660. package/src/lib/seam/connect/resources/device-provider.ts +0 -106
  661. package/src/lib/seam/connect/resources/device.ts +0 -1197
  662. package/src/lib/seam/connect/resources/event.ts +0 -2728
  663. package/src/lib/seam/connect/resources/instant-key.ts +0 -28
  664. package/src/lib/seam/connect/resources/noise-threshold.ts +0 -19
  665. package/src/lib/seam/connect/resources/phone.ts +0 -54
  666. package/src/lib/seam/connect/resources/space.ts +0 -38
  667. package/src/lib/seam/connect/resources/thermostat-daily-program.ts +0 -21
  668. package/src/lib/seam/connect/resources/thermostat-schedule.ts +0 -31
  669. package/src/lib/seam/connect/resources/unmanaged-access-code.ts +0 -320
  670. package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +0 -164
  671. package/src/lib/seam/connect/resources/unmanaged-access-method.ts +0 -114
  672. package/src/lib/seam/connect/resources/unmanaged-device.ts +0 -469
  673. package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +0 -48
  674. package/src/lib/seam/connect/resources/user-identity.ts +0 -49
  675. package/src/lib/seam/connect/resources/webhook.ts +0 -12
  676. package/src/lib/seam/connect/resources/workspace.ts +0 -29
  677. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +0 -527
  678. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +0 -199
  679. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +0 -322
  680. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +0 -460
  681. package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +0 -262
  682. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +0 -431
  683. package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +0 -229
  684. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +0 -372
  685. package/src/lib/seam/connect/routes/acs/acs.ts +0 -193
  686. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +0 -436
  687. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -350
  688. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +0 -295
  689. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +0 -329
  690. package/src/lib/seam/connect/routes/acs/systems/systems.ts +0 -303
  691. package/src/lib/seam/connect/routes/acs/users/users.ts +0 -521
  692. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +0 -229
  693. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +0 -382
  694. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +0 -376
  695. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +0 -329
  696. package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +0 -194
  697. package/src/lib/seam/connect/routes/customers/customers.ts +0 -780
  698. package/src/lib/seam/connect/routes/devices/devices.ts +0 -1795
  699. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +0 -329
  700. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +0 -406
  701. package/src/lib/seam/connect/routes/events/events.ts +0 -466
  702. package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +0 -248
  703. package/src/lib/seam/connect/routes/locks/locks.ts +0 -434
  704. package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -233
  705. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +0 -221
  706. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +0 -334
  707. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +0 -191
  708. package/src/lib/seam/connect/routes/phones/phones.ts +0 -248
  709. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +0 -211
  710. package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +0 -126
  711. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -3761
  712. package/src/lib/seam/connect/routes/seam-http-without-workspace.ts +0 -96
  713. package/src/lib/seam/connect/routes/seam-http.ts +0 -262
  714. package/src/lib/seam/connect/routes/spaces/spaces.ts +0 -555
  715. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -275
  716. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +0 -325
  717. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +0 -230
  718. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -734
  719. package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +0 -264
  720. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +0 -610
  721. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +0 -300
  722. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +0 -332
  723. package/src/lib/seam/connect/seam-http-request.ts +0 -196
  724. /package/lib/{seam/connect/api-error-types.d.ts → api-error-types.d.ts} +0 -0
  725. /package/lib/{seam/connect/api-error-types.js → api-error-types.js} +0 -0
  726. /package/lib/{seam/connect/auth.js → auth.js} +0 -0
  727. /package/lib/{seam/connect/error-interceptor.d.ts → error-interceptor.d.ts} +0 -0
  728. /package/lib/{seam/connect/error-interceptor.js → error-interceptor.js} +0 -0
  729. /package/lib/{seam/connect/index.d.ts → index.d.ts} +0 -0
  730. /package/lib/{seam/connect/index.js → index.js} +0 -0
  731. /package/lib/{seam/connect/openapi.d.ts → openapi.d.ts} +0 -0
  732. /package/lib/{seam/connect/openapi.js → openapi.js} +0 -0
  733. /package/lib/{seam/connect/resolve-action-attempt.js → resolve-action-attempt.js} +0 -0
  734. /package/lib/{seam/connect/resources → resources}/access-code.js +0 -0
  735. /package/lib/{seam/connect/resources → resources}/access-grant.js +0 -0
  736. /package/lib/{seam/connect/resources → resources}/access-method.js +0 -0
  737. /package/lib/{seam/connect/resources → resources}/acs-access-group.js +0 -0
  738. /package/lib/{seam/connect/resources → resources}/acs-credential.js +0 -0
  739. /package/lib/{seam/connect/resources → resources}/acs-encoder.js +0 -0
  740. /package/lib/{seam/connect/resources → resources}/acs-entrance.js +0 -0
  741. /package/lib/{seam/connect/resources → resources}/acs-system.js +0 -0
  742. /package/lib/{seam/connect/resources → resources}/acs-user.js +0 -0
  743. /package/lib/{seam/connect/resources → resources}/action-attempt.js +0 -0
  744. /package/lib/{seam/connect/resources → resources}/batch.js +0 -0
  745. /package/lib/{seam/connect/resources → resources}/client-session.js +0 -0
  746. /package/lib/{seam/connect/resources → resources}/connect-webview.js +0 -0
  747. /package/lib/{seam/connect/resources → resources}/connected-account.js +0 -0
  748. /package/lib/{seam/connect/resources → resources}/customer-portal.js +0 -0
  749. /package/lib/{seam/connect/resources → resources}/device-provider.js +0 -0
  750. /package/lib/{seam/connect/resources → resources}/device.js +0 -0
  751. /package/lib/{seam/connect/resources → resources}/event.js +0 -0
  752. /package/lib/{seam/connect/resources → resources}/index.d.ts +0 -0
  753. /package/lib/{seam/connect/resources → resources}/index.js +0 -0
  754. /package/lib/{seam/connect/resources → resources}/instant-key.js +0 -0
  755. /package/lib/{seam/connect/resources → resources}/noise-threshold.js +0 -0
  756. /package/lib/{seam/connect/resources → resources}/phone.js +0 -0
  757. /package/lib/{seam/connect/resources → resources}/space.js +0 -0
  758. /package/lib/{seam/connect/resources → resources}/thermostat-daily-program.js +0 -0
  759. /package/lib/{seam/connect/resources → resources}/thermostat-schedule.js +0 -0
  760. /package/lib/{seam/connect/resources → resources}/unmanaged-access-code.js +0 -0
  761. /package/lib/{seam/connect/resources → resources}/unmanaged-access-grant.js +0 -0
  762. /package/lib/{seam/connect/resources → resources}/unmanaged-access-method.js +0 -0
  763. /package/lib/{seam/connect/resources → resources}/unmanaged-device.js +0 -0
  764. /package/lib/{seam/connect/resources → resources}/unmanaged-user-identity.js +0 -0
  765. /package/lib/{seam/connect/resources → resources}/user-identity.js +0 -0
  766. /package/lib/{seam/connect/resources → resources}/webhook.js +0 -0
  767. /package/lib/{seam/connect/resources → resources}/workspace.js +0 -0
  768. /package/lib/{seam/connect/routes → routes}/access-codes/index.d.ts +0 -0
  769. /package/lib/{seam/connect/routes → routes}/access-codes/index.js +0 -0
  770. /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.d.ts +0 -0
  771. /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.js +0 -0
  772. /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.d.ts +0 -0
  773. /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.js +0 -0
  774. /package/lib/{seam/connect/routes → routes}/access-grants/index.d.ts +0 -0
  775. /package/lib/{seam/connect/routes → routes}/access-grants/index.js +0 -0
  776. /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.d.ts +0 -0
  777. /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.js +0 -0
  778. /package/lib/{seam/connect/routes → routes}/access-methods/index.d.ts +0 -0
  779. /package/lib/{seam/connect/routes → routes}/access-methods/index.js +0 -0
  780. /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.d.ts +0 -0
  781. /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.js +0 -0
  782. /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.d.ts +0 -0
  783. /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.js +0 -0
  784. /package/lib/{seam/connect/routes → routes}/acs/credentials/index.d.ts +0 -0
  785. /package/lib/{seam/connect/routes → routes}/acs/credentials/index.js +0 -0
  786. /package/lib/{seam/connect/routes → routes}/acs/encoders/index.d.ts +0 -0
  787. /package/lib/{seam/connect/routes → routes}/acs/encoders/index.js +0 -0
  788. /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.d.ts +0 -0
  789. /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.js +0 -0
  790. /package/lib/{seam/connect/routes → routes}/acs/entrances/index.d.ts +0 -0
  791. /package/lib/{seam/connect/routes → routes}/acs/entrances/index.js +0 -0
  792. /package/lib/{seam/connect/routes → routes}/acs/index.d.ts +0 -0
  793. /package/lib/{seam/connect/routes → routes}/acs/index.js +0 -0
  794. /package/lib/{seam/connect/routes → routes}/acs/systems/index.d.ts +0 -0
  795. /package/lib/{seam/connect/routes → routes}/acs/systems/index.js +0 -0
  796. /package/lib/{seam/connect/routes → routes}/acs/users/index.d.ts +0 -0
  797. /package/lib/{seam/connect/routes → routes}/acs/users/index.js +0 -0
  798. /package/lib/{seam/connect/routes → routes}/action-attempts/index.d.ts +0 -0
  799. /package/lib/{seam/connect/routes → routes}/action-attempts/index.js +0 -0
  800. /package/lib/{seam/connect/routes → routes}/client-sessions/index.d.ts +0 -0
  801. /package/lib/{seam/connect/routes → routes}/client-sessions/index.js +0 -0
  802. /package/lib/{seam/connect/routes → routes}/connect-webviews/index.d.ts +0 -0
  803. /package/lib/{seam/connect/routes → routes}/connect-webviews/index.js +0 -0
  804. /package/lib/{seam/connect/routes → routes}/connected-accounts/index.d.ts +0 -0
  805. /package/lib/{seam/connect/routes → routes}/connected-accounts/index.js +0 -0
  806. /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.d.ts +0 -0
  807. /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.js +0 -0
  808. /package/lib/{seam/connect/routes → routes}/customers/index.d.ts +0 -0
  809. /package/lib/{seam/connect/routes → routes}/customers/index.js +0 -0
  810. /package/lib/{seam/connect/routes → routes}/devices/index.d.ts +0 -0
  811. /package/lib/{seam/connect/routes → routes}/devices/index.js +0 -0
  812. /package/lib/{seam/connect/routes → routes}/devices/simulate/index.d.ts +0 -0
  813. /package/lib/{seam/connect/routes → routes}/devices/simulate/index.js +0 -0
  814. /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.d.ts +0 -0
  815. /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.js +0 -0
  816. /package/lib/{seam/connect/routes → routes}/events/index.d.ts +0 -0
  817. /package/lib/{seam/connect/routes → routes}/events/index.js +0 -0
  818. /package/lib/{seam/connect/routes → routes}/index.d.ts +0 -0
  819. /package/lib/{seam/connect/routes → routes}/index.js +0 -0
  820. /package/lib/{seam/connect/routes → routes}/instant-keys/index.d.ts +0 -0
  821. /package/lib/{seam/connect/routes → routes}/instant-keys/index.js +0 -0
  822. /package/lib/{seam/connect/routes → routes}/locks/index.d.ts +0 -0
  823. /package/lib/{seam/connect/routes → routes}/locks/index.js +0 -0
  824. /package/lib/{seam/connect/routes → routes}/locks/simulate/index.d.ts +0 -0
  825. /package/lib/{seam/connect/routes → routes}/locks/simulate/index.js +0 -0
  826. /package/lib/{seam/connect/routes → routes}/noise-sensors/index.d.ts +0 -0
  827. /package/lib/{seam/connect/routes → routes}/noise-sensors/index.js +0 -0
  828. /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.d.ts +0 -0
  829. /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.js +0 -0
  830. /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.d.ts +0 -0
  831. /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.js +0 -0
  832. /package/lib/{seam/connect/routes → routes}/phones/index.d.ts +0 -0
  833. /package/lib/{seam/connect/routes → routes}/phones/index.js +0 -0
  834. /package/lib/{seam/connect/routes → routes}/phones/simulate/index.d.ts +0 -0
  835. /package/lib/{seam/connect/routes → routes}/phones/simulate/index.js +0 -0
  836. /package/lib/{seam/connect/routes → routes}/spaces/index.d.ts +0 -0
  837. /package/lib/{seam/connect/routes → routes}/spaces/index.js +0 -0
  838. /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.d.ts +0 -0
  839. /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.js +0 -0
  840. /package/lib/{seam/connect/routes → routes}/thermostats/index.d.ts +0 -0
  841. /package/lib/{seam/connect/routes → routes}/thermostats/index.js +0 -0
  842. /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.d.ts +0 -0
  843. /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.js +0 -0
  844. /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.d.ts +0 -0
  845. /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.js +0 -0
  846. /package/lib/{seam/connect/routes → routes}/user-identities/index.d.ts +0 -0
  847. /package/lib/{seam/connect/routes → routes}/user-identities/index.js +0 -0
  848. /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.d.ts +0 -0
  849. /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.js +0 -0
  850. /package/lib/{seam/connect/routes → routes}/webhooks/index.d.ts +0 -0
  851. /package/lib/{seam/connect/routes → routes}/webhooks/index.js +0 -0
  852. /package/lib/{seam/connect/routes → routes}/workspaces/index.d.ts +0 -0
  853. /package/lib/{seam/connect/routes → routes}/workspaces/index.js +0 -0
  854. /package/lib/{seam/connect/seam-http-error.d.ts → seam-http-error.d.ts} +0 -0
  855. /package/lib/{seam/connect/seam-http-error.js → seam-http-error.js} +0 -0
  856. /package/lib/{seam/connect/seam-paginator.d.ts → seam-paginator.d.ts} +0 -0
  857. /package/lib/{seam/connect/seam-paginator.js → seam-paginator.js} +0 -0
  858. /package/lib/{seam/connect/token.d.ts → token.d.ts} +0 -0
  859. /package/lib/{seam/connect/token.js → token.js} +0 -0
  860. /package/src/lib/{seam/connect/api-error-types.ts → api-error-types.ts} +0 -0
  861. /package/src/lib/{seam/connect/env.d.ts → env.d.ts} +0 -0
  862. /package/src/lib/{seam/connect/error-interceptor.ts → error-interceptor.ts} +0 -0
  863. /package/src/lib/{seam/connect/index.ts → index.ts} +0 -0
  864. /package/src/lib/{seam/connect/openapi.ts → openapi.ts} +0 -0
  865. /package/src/lib/{seam/connect/resources → resources}/index.ts +0 -0
  866. /package/src/lib/{seam/connect/routes → routes}/access-codes/index.ts +0 -0
  867. /package/src/lib/{seam/connect/routes → routes}/access-codes/simulate/index.ts +0 -0
  868. /package/src/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.ts +0 -0
  869. /package/src/lib/{seam/connect/routes → routes}/access-grants/index.ts +0 -0
  870. /package/src/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.ts +0 -0
  871. /package/src/lib/{seam/connect/routes → routes}/access-methods/index.ts +0 -0
  872. /package/src/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.ts +0 -0
  873. /package/src/lib/{seam/connect/routes → routes}/acs/access-groups/index.ts +0 -0
  874. /package/src/lib/{seam/connect/routes → routes}/acs/credentials/index.ts +0 -0
  875. /package/src/lib/{seam/connect/routes → routes}/acs/encoders/index.ts +0 -0
  876. /package/src/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.ts +0 -0
  877. /package/src/lib/{seam/connect/routes → routes}/acs/entrances/index.ts +0 -0
  878. /package/src/lib/{seam/connect/routes → routes}/acs/index.ts +0 -0
  879. /package/src/lib/{seam/connect/routes → routes}/acs/systems/index.ts +0 -0
  880. /package/src/lib/{seam/connect/routes → routes}/acs/users/index.ts +0 -0
  881. /package/src/lib/{seam/connect/routes → routes}/action-attempts/index.ts +0 -0
  882. /package/src/lib/{seam/connect/routes → routes}/client-sessions/index.ts +0 -0
  883. /package/src/lib/{seam/connect/routes → routes}/connect-webviews/index.ts +0 -0
  884. /package/src/lib/{seam/connect/routes → routes}/connected-accounts/index.ts +0 -0
  885. /package/src/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.ts +0 -0
  886. /package/src/lib/{seam/connect/routes → routes}/customers/index.ts +0 -0
  887. /package/src/lib/{seam/connect/routes → routes}/devices/index.ts +0 -0
  888. /package/src/lib/{seam/connect/routes → routes}/devices/simulate/index.ts +0 -0
  889. /package/src/lib/{seam/connect/routes → routes}/devices/unmanaged/index.ts +0 -0
  890. /package/src/lib/{seam/connect/routes → routes}/events/index.ts +0 -0
  891. /package/src/lib/{seam/connect/routes → routes}/index.ts +0 -0
  892. /package/src/lib/{seam/connect/routes → routes}/instant-keys/index.ts +0 -0
  893. /package/src/lib/{seam/connect/routes → routes}/locks/index.ts +0 -0
  894. /package/src/lib/{seam/connect/routes → routes}/locks/simulate/index.ts +0 -0
  895. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/index.ts +0 -0
  896. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.ts +0 -0
  897. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.ts +0 -0
  898. /package/src/lib/{seam/connect/routes → routes}/phones/index.ts +0 -0
  899. /package/src/lib/{seam/connect/routes → routes}/phones/simulate/index.ts +0 -0
  900. /package/src/lib/{seam/connect/routes → routes}/spaces/index.ts +0 -0
  901. /package/src/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.ts +0 -0
  902. /package/src/lib/{seam/connect/routes → routes}/thermostats/index.ts +0 -0
  903. /package/src/lib/{seam/connect/routes → routes}/thermostats/schedules/index.ts +0 -0
  904. /package/src/lib/{seam/connect/routes → routes}/thermostats/simulate/index.ts +0 -0
  905. /package/src/lib/{seam/connect/routes → routes}/user-identities/index.ts +0 -0
  906. /package/src/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.ts +0 -0
  907. /package/src/lib/{seam/connect/routes → routes}/webhooks/index.ts +0 -0
  908. /package/src/lib/{seam/connect/routes → routes}/workspaces/index.ts +0 -0
  909. /package/src/lib/{seam/connect/seam-http-error.ts → seam-http-error.ts} +0 -0
  910. /package/src/lib/{seam/connect/seam-paginator.ts → seam-paginator.ts} +0 -0
  911. /package/src/lib/{seam/connect/token.ts → token.ts} +0 -0
@@ -0,0 +1,1088 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file.
4
+ */
5
+
6
+ /**
7
+ * Represents a smart lock [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
8
+ *
9
+ * An access code is a code used for a keypad or pinpad device. Unlike physical keys, which can easily be lost or duplicated, PIN codes can be customized, tracked, and altered on the fly. Using the Seam Access Code API, you can easily generate access codes on the hundreds of door lock models with which we integrate.
10
+ *
11
+ * Seam supports programming two types of access codes: [ongoing](https://docs.seam.co/low-level-apis/smart-locks/access-codes#ongoing-access-codes) and [time-bound](https://docs.seam.co/low-level-apis/smart-locks/access-codes#time-bound-access-codes). To differentiate between the two, refer to the `type` property of the access code. Ongoing codes display as `ongoing`, whereas time-bound codes are labeled `time_bound`. An ongoing access code is active, until it has been removed from the device. To specify an ongoing access code, leave both `starts_at` and `ends_at` empty. A time-bound access code will be programmed at the `starts_at` time and removed at the `ends_at` time.
12
+ *
13
+ * In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code.
14
+ *
15
+ * 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.
16
+ */
17
+ export type AccessCode = {
18
+ /**
19
+ * Unique identifier for the access code.
20
+ */
21
+ access_code_id: string
22
+
23
+ /**
24
+ * Code used for access. Typically, a numeric or alphanumeric string.
25
+ */
26
+ code: string | null
27
+ /**
28
+ * Unique identifier for a group of access codes that share the same code.
29
+ */
30
+ common_code_key: string | null
31
+ /**
32
+ * Date and time at which the access code was created.
33
+ */
34
+ created_at: string
35
+
36
+ /**
37
+ * Unique identifier for the device associated with the access code.
38
+ */
39
+ device_id: string
40
+
41
+ /**
42
+ * Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.
43
+ */
44
+ dormakaba_oracode_metadata?:
45
+ | {
46
+ /**
47
+ * Indicates whether the stay can be cancelled via the Dormakaba Oracode API.
48
+ */
49
+ is_cancellable?: boolean | undefined
50
+ /**
51
+ * Indicates whether early check-in is available for this stay.
52
+ */
53
+ is_early_checkin_able?: boolean | undefined
54
+ /**
55
+ * Indicates whether the stay can be extended via the Dormakaba Oracode API.
56
+ */
57
+ is_extendable?: boolean | undefined
58
+ /**
59
+ * Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.
60
+ */
61
+ is_overridable?: boolean | undefined
62
+ /**
63
+ * Dormakaba Oracode site name associated with this access code.
64
+ */
65
+ site_name?: string | undefined
66
+ /**
67
+ * Dormakaba Oracode stay ID associated with this access code.
68
+ */
69
+ stay_id?: number | undefined
70
+ /**
71
+ * Dormakaba Oracode user level ID associated with this access code.
72
+ */
73
+ user_level_id?: string | undefined
74
+ /**
75
+ * Dormakaba Oracode user level name associated with this access code.
76
+ */
77
+ user_level_name?: string | null | undefined
78
+ }
79
+ | null
80
+ | undefined
81
+ /**
82
+ * Date and time after which the time-bound access code becomes inactive.
83
+ */
84
+ ends_at?: string | null | undefined
85
+ /**
86
+ * Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
87
+ */
88
+ errors: Array<
89
+ /**
90
+ * Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
91
+ */
92
+ | {
93
+ /**
94
+ * Date and time at which Seam created the error.
95
+ */
96
+ created_at?: string | undefined
97
+ /**
98
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
99
+ */
100
+ error_code: 'provider_issue'
101
+
102
+ /**
103
+ * Indicates that this is an access code error.
104
+ */
105
+ is_access_code_error: boolean
106
+
107
+ /**
108
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
109
+ */
110
+ message: string
111
+ } /**
112
+ * Failed to set code on device.
113
+ */
114
+ | {
115
+ /**
116
+ * Date and time at which Seam created the error.
117
+ */
118
+ created_at?: string | undefined
119
+ /**
120
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
121
+ */
122
+ error_code: 'failed_to_set_on_device'
123
+
124
+ /**
125
+ * Indicates that this is an access code error.
126
+ */
127
+ is_access_code_error: boolean
128
+
129
+ /**
130
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
131
+ */
132
+ message: string
133
+ } /**
134
+ * Failed to remove code from device.
135
+ */
136
+ | {
137
+ /**
138
+ * Date and time at which Seam created the error.
139
+ */
140
+ created_at?: string | undefined
141
+ /**
142
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
143
+ */
144
+ error_code: 'failed_to_remove_from_device'
145
+
146
+ /**
147
+ * Indicates that this is an access code error.
148
+ */
149
+ is_access_code_error: boolean
150
+
151
+ /**
152
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
153
+ */
154
+ message: string
155
+ } /**
156
+ * Duplicate access code detected on device.
157
+ */
158
+ | {
159
+ /**
160
+ * Date and time at which Seam created the error.
161
+ */
162
+ created_at?: string | undefined
163
+ /**
164
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
165
+ */
166
+ error_code: 'duplicate_code_on_device'
167
+
168
+ /**
169
+ * Indicates that this is an access code error.
170
+ */
171
+ is_access_code_error: boolean
172
+
173
+ /**
174
+ * ID of the managed access code that conflicts with this managed access code, when Seam can identify it.
175
+ */
176
+ managed_access_code_id?: string | undefined
177
+ /**
178
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
179
+ */
180
+ message: string
181
+
182
+ /**
183
+ * ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.
184
+ */
185
+ unmanaged_access_code_id?: string | undefined
186
+ } /**
187
+ * No space for access code on device.
188
+ */
189
+ | {
190
+ /**
191
+ * Date and time at which Seam created the error.
192
+ */
193
+ created_at?: string | undefined
194
+ /**
195
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
196
+ */
197
+ error_code: 'no_space_for_access_code_on_device'
198
+
199
+ /**
200
+ * Indicates that this is an access code error.
201
+ */
202
+ is_access_code_error: boolean
203
+
204
+ /**
205
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
206
+ */
207
+ message: string
208
+ } /**
209
+ * Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.
210
+ */
211
+ | {
212
+ /**
213
+ * Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
214
+ */
215
+ change_type?: 'modified' | 'removed' | undefined
216
+ /**
217
+ * Date and time at which Seam created the error.
218
+ */
219
+ created_at?: string | undefined
220
+ /**
221
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
222
+ */
223
+ error_code: 'conflicting_external_modification'
224
+
225
+ /**
226
+ * Indicates that this is an access code error.
227
+ */
228
+ is_access_code_error: boolean
229
+
230
+ /**
231
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
232
+ */
233
+ message: string
234
+
235
+ /**
236
+ * List of fields that were changed externally, with their previous and new values.
237
+ */
238
+ modified_fields?:
239
+ | Array<{
240
+ /**
241
+ * The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
242
+ */
243
+ field: string
244
+
245
+ /**
246
+ * The previous value of the field.
247
+ */
248
+ from: string | null
249
+ /**
250
+ * The new value of the field.
251
+ */
252
+ to: string | null
253
+ }>
254
+ | undefined
255
+ } /**
256
+ * Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
257
+ */
258
+ | {
259
+ /**
260
+ * Date and time at which Seam created the error.
261
+ */
262
+ created_at?: string | undefined
263
+ /**
264
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
265
+ */
266
+ error_code: 'access_code_inactive'
267
+
268
+ /**
269
+ * Indicates that this is an access code error.
270
+ */
271
+ is_access_code_error: boolean
272
+
273
+ /**
274
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
275
+ */
276
+ message: string
277
+ } /**
278
+ * Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.
279
+ */
280
+ | {
281
+ /**
282
+ * Date and time at which Seam created the error.
283
+ */
284
+ created_at?: string | undefined
285
+ /**
286
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
287
+ */
288
+ error_code: 'insufficient_permissions'
289
+
290
+ /**
291
+ * Indicates that this is an access code error.
292
+ */
293
+ is_access_code_error: boolean
294
+
295
+ /**
296
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
297
+ */
298
+ message: string
299
+ } /**
300
+ * Indicates that the account is disconnected.
301
+ */
302
+ | {
303
+ /**
304
+ * Date and time at which Seam created the error.
305
+ */
306
+ created_at: string
307
+
308
+ /**
309
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
310
+ */
311
+ error_code: 'account_disconnected'
312
+
313
+ /**
314
+ * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
315
+ */
316
+ is_connected_account_error: boolean
317
+
318
+ /**
319
+ * Indicates that the error is not a device error.
320
+ */
321
+ is_device_error: boolean
322
+
323
+ /**
324
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
325
+ */
326
+ message: string
327
+ } /**
328
+ * Indicates that the Salto site user limit has been reached.
329
+ */
330
+ | {
331
+ /**
332
+ * Date and time at which Seam created the error.
333
+ */
334
+ created_at: string
335
+
336
+ /**
337
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
338
+ */
339
+ error_code: 'salto_ks_subscription_limit_exceeded'
340
+
341
+ /**
342
+ * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
343
+ */
344
+ is_connected_account_error: boolean
345
+
346
+ /**
347
+ * Indicates that the error is not a device error.
348
+ */
349
+ is_device_error: boolean
350
+
351
+ /**
352
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
353
+ */
354
+ message: string
355
+ } /**
356
+ * Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
357
+ */
358
+ | {
359
+ /**
360
+ * Date and time at which Seam created the error.
361
+ */
362
+ created_at: string
363
+
364
+ /**
365
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
366
+ */
367
+ error_code: 'dormakaba_sites_disconnected'
368
+
369
+ /**
370
+ * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
371
+ */
372
+ is_connected_account_error: boolean
373
+
374
+ /**
375
+ * Indicates that the error is not a device error.
376
+ */
377
+ is_device_error: boolean
378
+
379
+ /**
380
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
381
+ */
382
+ message: string
383
+ } /**
384
+ * Indicates that the device is offline.
385
+ */
386
+ | {
387
+ /**
388
+ * Date and time at which Seam created the error.
389
+ */
390
+ created_at: string
391
+
392
+ /**
393
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
394
+ */
395
+ error_code: 'device_offline'
396
+
397
+ /**
398
+ * Indicates that the error is a device error.
399
+ */
400
+ is_device_error: boolean
401
+
402
+ /**
403
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
404
+ */
405
+ message: string
406
+ } /**
407
+ * Indicates that the device has been removed.
408
+ */
409
+ | {
410
+ /**
411
+ * Date and time at which Seam created the error.
412
+ */
413
+ created_at: string
414
+
415
+ /**
416
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
417
+ */
418
+ error_code: 'device_removed'
419
+
420
+ /**
421
+ * Indicates that the error is a device error.
422
+ */
423
+ is_device_error: boolean
424
+
425
+ /**
426
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
427
+ */
428
+ message: string
429
+ } /**
430
+ * Indicates that the hub is disconnected.
431
+ */
432
+ | {
433
+ /**
434
+ * Date and time at which Seam created the error.
435
+ */
436
+ created_at: string
437
+
438
+ /**
439
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
440
+ */
441
+ error_code: 'hub_disconnected'
442
+
443
+ /**
444
+ * Indicates that the error is a device error.
445
+ */
446
+ is_device_error: boolean
447
+
448
+ /**
449
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
450
+ */
451
+ message: string
452
+ } /**
453
+ * Indicates that the device is disconnected.
454
+ */
455
+ | {
456
+ /**
457
+ * Date and time at which Seam created the error.
458
+ */
459
+ created_at: string
460
+
461
+ /**
462
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
463
+ */
464
+ error_code: 'device_disconnected'
465
+
466
+ /**
467
+ * Indicates that the error is a device error.
468
+ */
469
+ is_device_error: boolean
470
+
471
+ /**
472
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
473
+ */
474
+ message: string
475
+ } /**
476
+ * Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
477
+ */
478
+ | {
479
+ /**
480
+ * Date and time at which Seam created the error.
481
+ */
482
+ created_at: string
483
+
484
+ /**
485
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
486
+ */
487
+ error_code: 'empty_backup_access_code_pool'
488
+
489
+ /**
490
+ * Indicates that the error is a device error.
491
+ */
492
+ is_device_error: boolean
493
+
494
+ /**
495
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
496
+ */
497
+ message: string
498
+ } /**
499
+ * Indicates that the user is not authorized to use the August lock.
500
+ */
501
+ | {
502
+ /**
503
+ * Date and time at which Seam created the error.
504
+ */
505
+ created_at: string
506
+
507
+ /**
508
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
509
+ */
510
+ error_code: 'august_lock_not_authorized'
511
+
512
+ /**
513
+ * Indicates that the error is a device error.
514
+ */
515
+ is_device_error: boolean
516
+
517
+ /**
518
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
519
+ */
520
+ message: string
521
+ } /**
522
+ * Indicates that device credentials are missing.
523
+ */
524
+ | {
525
+ /**
526
+ * Date and time at which Seam created the error.
527
+ */
528
+ created_at: string
529
+
530
+ /**
531
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
532
+ */
533
+ error_code: 'missing_device_credentials'
534
+
535
+ /**
536
+ * Indicates that the error is a device error.
537
+ */
538
+ is_device_error: boolean
539
+
540
+ /**
541
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
542
+ */
543
+ message: string
544
+ } /**
545
+ * Indicates that the auxiliary heat is running.
546
+ */
547
+ | {
548
+ /**
549
+ * Date and time at which Seam created the error.
550
+ */
551
+ created_at: string
552
+
553
+ /**
554
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
555
+ */
556
+ error_code: 'auxiliary_heat_running'
557
+
558
+ /**
559
+ * Indicates that the error is a device error.
560
+ */
561
+ is_device_error: boolean
562
+
563
+ /**
564
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
565
+ */
566
+ message: string
567
+ } /**
568
+ * Indicates that a subscription is required to connect.
569
+ */
570
+ | {
571
+ /**
572
+ * Date and time at which Seam created the error.
573
+ */
574
+ created_at: string
575
+
576
+ /**
577
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
578
+ */
579
+ error_code: 'subscription_required'
580
+
581
+ /**
582
+ * Indicates that the error is a device error.
583
+ */
584
+ is_device_error: boolean
585
+
586
+ /**
587
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
588
+ */
589
+ message: string
590
+ } /**
591
+ * Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).
592
+ */
593
+ | {
594
+ /**
595
+ * Date and time at which Seam created the error.
596
+ */
597
+ created_at: string
598
+
599
+ /**
600
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
601
+ */
602
+ error_code: 'bridge_disconnected'
603
+
604
+ /**
605
+ * Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
606
+ */
607
+ is_bridge_error?: boolean | undefined
608
+ /**
609
+ * Indicates whether the error is related specifically to the connected account.
610
+ */
611
+ is_connected_account_error?: boolean | undefined
612
+ /**
613
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
614
+ */
615
+ message: string
616
+ }
617
+ >
618
+
619
+ /**
620
+ * Indicates whether the access code is a backup code.
621
+ */
622
+ is_backup?: boolean | undefined
623
+ /**
624
+ * Indicates whether a backup access code is available for use if the primary access code is lost or compromised.
625
+ */
626
+ is_backup_access_code_available: boolean
627
+
628
+ /**
629
+ * Indicates whether changes to the access code from external sources are permitted.
630
+ */
631
+ is_external_modification_allowed: boolean
632
+
633
+ /**
634
+ * Indicates whether Seam manages the access code.
635
+ */
636
+ is_managed: boolean
637
+
638
+ /**
639
+ * Indicates whether the access code is intended for use in offline scenarios. If `true`, this code can be created on a device without a network connection.
640
+ */
641
+ is_offline_access_code: boolean
642
+
643
+ /**
644
+ * Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use.
645
+ */
646
+ is_one_time_use: boolean
647
+
648
+ /**
649
+ * Indicates whether the code is set on the device according to a preconfigured schedule.
650
+ */
651
+ is_scheduled_on_device?: boolean | undefined
652
+ /**
653
+ * Indicates whether the access code is waiting for a code assignment.
654
+ */
655
+ is_waiting_for_code_assignment?: boolean | undefined
656
+ /**
657
+ * Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. 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`. 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. 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).
658
+ */
659
+ name: string | null
660
+ /**
661
+ * Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.
662
+ */
663
+ pending_mutations: Array<
664
+ /**
665
+ * Seam is in the process of setting an access code on the device.
666
+ */
667
+ | {
668
+ /**
669
+ * Date and time at which the mutation was created.
670
+ */
671
+ created_at: string
672
+
673
+ /**
674
+ * Detailed description of the mutation.
675
+ */
676
+ message: string
677
+
678
+ /**
679
+ * Mutation code to indicate that Seam is in the process of setting an access code on the device.
680
+ */
681
+ mutation_code: 'creating'
682
+ } /**
683
+ * Seam is waiting until closer to the access code's start time before programming it on the device.
684
+ */
685
+ | {
686
+ /**
687
+ * Date and time at which the mutation was created.
688
+ */
689
+ created_at: string
690
+
691
+ /**
692
+ * Detailed description of the mutation.
693
+ */
694
+ message: string
695
+
696
+ /**
697
+ * Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.
698
+ */
699
+ mutation_code: 'deferring_creation'
700
+
701
+ /**
702
+ * Date and time at which Seam will attempt to program this access code on the device.
703
+ */
704
+ scheduled_at: string
705
+ } /**
706
+ * Seam is in the process of removing an access code from the device.
707
+ */
708
+ | {
709
+ /**
710
+ * Date and time at which the mutation was created.
711
+ */
712
+ created_at: string
713
+
714
+ /**
715
+ * Detailed description of the mutation.
716
+ */
717
+ message: string
718
+
719
+ /**
720
+ * Mutation code to indicate that Seam is in the process of removing an access code from the device.
721
+ */
722
+ mutation_code: 'deleting'
723
+ } /**
724
+ * Seam is in the process of pushing an updated PIN code to the device.
725
+ */
726
+ | {
727
+ /**
728
+ * Date and time at which the mutation was created.
729
+ */
730
+ created_at: string
731
+
732
+ /**
733
+ * Previous code configuration.
734
+ */
735
+ from: {
736
+ /**
737
+ * Previous PIN code.
738
+ */
739
+ code: string | null
740
+ }
741
+
742
+ /**
743
+ * Detailed description of the mutation.
744
+ */
745
+ message: string
746
+
747
+ /**
748
+ * Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device.
749
+ */
750
+ mutation_code: 'updating_code'
751
+
752
+ /**
753
+ * New code configuration.
754
+ */
755
+ to: {
756
+ /**
757
+ * New PIN code.
758
+ */
759
+ code: string | null
760
+ }
761
+ } /**
762
+ * Seam is in the process of pushing an updated access code name to the device.
763
+ */
764
+ | {
765
+ /**
766
+ * Date and time at which the mutation was created.
767
+ */
768
+ created_at: string
769
+
770
+ /**
771
+ * Previous name configuration.
772
+ */
773
+ from: {
774
+ /**
775
+ * Previous access code name.
776
+ */
777
+ name: string | null
778
+ }
779
+
780
+ /**
781
+ * Detailed description of the mutation.
782
+ */
783
+ message: string
784
+
785
+ /**
786
+ * Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device.
787
+ */
788
+ mutation_code: 'updating_name'
789
+
790
+ /**
791
+ * New name configuration.
792
+ */
793
+ to: {
794
+ /**
795
+ * New access code name.
796
+ */
797
+ name: string | null
798
+ }
799
+ } /**
800
+ * Seam is in the process of pushing an updated time frame to the device.
801
+ */
802
+ | {
803
+ /**
804
+ * Date and time at which the mutation was created.
805
+ */
806
+ created_at: string
807
+
808
+ /**
809
+ * Previous time frame configuration.
810
+ */
811
+ from: {
812
+ /**
813
+ * Previous end time for the access code.
814
+ */
815
+ ends_at: string | null
816
+ /**
817
+ * Previous start time for the access code.
818
+ */
819
+ starts_at: string | null
820
+ }
821
+
822
+ /**
823
+ * Detailed description of the mutation.
824
+ */
825
+ message: string
826
+
827
+ /**
828
+ * Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device.
829
+ */
830
+ mutation_code: 'updating_time_frame'
831
+
832
+ /**
833
+ * New time frame configuration.
834
+ */
835
+ to: {
836
+ /**
837
+ * New end time for the access code.
838
+ */
839
+ ends_at: string | null
840
+ /**
841
+ * New start time for the access code.
842
+ */
843
+ starts_at: string | null
844
+ }
845
+ }
846
+ >
847
+
848
+ /**
849
+ * Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.
850
+ */
851
+ pulled_backup_access_code_id?: string | null | undefined
852
+ /**
853
+ * Date and time at which the time-bound access code becomes active.
854
+ */
855
+ starts_at?: string | null | undefined
856
+ /**
857
+ * Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
858
+ */
859
+ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
860
+
861
+ /**
862
+ * Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.
863
+ */
864
+ type: 'time_bound' | 'ongoing'
865
+
866
+ /**
867
+ * Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
868
+ */
869
+ warnings: Array<
870
+ /**
871
+ * The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.
872
+ */
873
+ | {
874
+ /**
875
+ * Date and time at which Seam created the warning.
876
+ */
877
+ created_at?: string | undefined
878
+ /**
879
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
880
+ */
881
+ message: string
882
+
883
+ /**
884
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
885
+ */
886
+ warning_code: 'code_rotates_periodically'
887
+ } /**
888
+ * The device's time zone is unknown and this code's time frame crosses a daylight-saving transition in at least one plausible time zone. A 1-hour safety buffer has been applied to the side of the time frame affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's time zone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact handling.
889
+ */
890
+ | {
891
+ /**
892
+ * Date and time at which Seam created the warning.
893
+ */
894
+ created_at?: string | undefined
895
+ /**
896
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
897
+ */
898
+ message: string
899
+
900
+ /**
901
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
902
+ */
903
+ warning_code: 'time_frame_adjusted_for_unknown_time_zone'
904
+ } /**
905
+ * Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.
906
+ */
907
+ | {
908
+ /**
909
+ * Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
910
+ */
911
+ change_type?: 'modified' | 'removed' | undefined
912
+ /**
913
+ * Date and time at which Seam created the warning.
914
+ */
915
+ created_at?: string | undefined
916
+ /**
917
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
918
+ */
919
+ message: string
920
+
921
+ /**
922
+ * List of fields that were changed externally, with their previous and new values.
923
+ */
924
+ modified_fields?:
925
+ | Array<{
926
+ /**
927
+ * The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
928
+ */
929
+ field: string
930
+
931
+ /**
932
+ * The previous value of the field.
933
+ */
934
+ from: string | null
935
+ /**
936
+ * The new value of the field.
937
+ */
938
+ to: string | null
939
+ }>
940
+ | undefined
941
+ /**
942
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
943
+ */
944
+ warning_code: 'external_modification_in_effect'
945
+ } /**
946
+ * Delay in setting code on device.
947
+ */
948
+ | {
949
+ /**
950
+ * Date and time at which Seam created the warning.
951
+ */
952
+ created_at?: string | undefined
953
+ /**
954
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
955
+ */
956
+ message: string
957
+
958
+ /**
959
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
960
+ */
961
+ warning_code: 'delay_in_setting_on_device'
962
+ } /**
963
+ * Delay in removing code from device.
964
+ */
965
+ | {
966
+ /**
967
+ * Date and time at which Seam created the warning.
968
+ */
969
+ created_at?: string | undefined
970
+ /**
971
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
972
+ */
973
+ message: string
974
+
975
+ /**
976
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
977
+ */
978
+ warning_code: 'delay_in_removing_from_device'
979
+ } /**
980
+ * Third-party integration detected that may cause access codes to fail.
981
+ */
982
+ | {
983
+ /**
984
+ * Date and time at which Seam created the warning.
985
+ */
986
+ created_at?: string | undefined
987
+ /**
988
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
989
+ */
990
+ message: string
991
+
992
+ /**
993
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
994
+ */
995
+ warning_code: 'third_party_integration_detected'
996
+ } /**
997
+ * Algopins must be used within 24 hours.
998
+ */
999
+ | {
1000
+ /**
1001
+ * Date and time at which Seam created the warning.
1002
+ */
1003
+ created_at?: string | undefined
1004
+ /**
1005
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1006
+ */
1007
+ message: string
1008
+
1009
+ /**
1010
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1011
+ */
1012
+ warning_code: 'igloo_algopin_must_be_used_within_24_hours'
1013
+ } /**
1014
+ * Management was transferred to another workspace.
1015
+ */
1016
+ | {
1017
+ /**
1018
+ * Date and time at which Seam created the warning.
1019
+ */
1020
+ created_at?: string | undefined
1021
+ /**
1022
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1023
+ */
1024
+ message: string
1025
+
1026
+ /**
1027
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1028
+ */
1029
+ warning_code: 'management_transferred'
1030
+ } /**
1031
+ * A backup access code has been pulled and is being used in place of this access code.
1032
+ */
1033
+ | {
1034
+ /**
1035
+ * Date and time at which Seam created the warning.
1036
+ */
1037
+ created_at?: string | undefined
1038
+ /**
1039
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1040
+ */
1041
+ message: string
1042
+
1043
+ /**
1044
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1045
+ */
1046
+ warning_code: 'using_backup_access_code'
1047
+ } /**
1048
+ * Access code is being deleted.
1049
+ */
1050
+ | {
1051
+ /**
1052
+ * Date and time at which Seam created the warning.
1053
+ */
1054
+ created_at?: string | undefined
1055
+ /**
1056
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1057
+ */
1058
+ message: string
1059
+
1060
+ /**
1061
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1062
+ */
1063
+ warning_code: 'being_deleted'
1064
+ } /**
1065
+ * An unknown issue occurred with the access code.
1066
+ */
1067
+ | {
1068
+ /**
1069
+ * Date and time at which Seam created the warning.
1070
+ */
1071
+ created_at?: string | undefined
1072
+ /**
1073
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
1074
+ */
1075
+ message: string
1076
+
1077
+ /**
1078
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1079
+ */
1080
+ warning_code: 'unknown_issue_with_access_code'
1081
+ }
1082
+ >
1083
+
1084
+ /**
1085
+ * Unique identifier for the Seam workspace associated with the access code.
1086
+ */
1087
+ workspace_id: string
1088
+ }