@seamapi/http 1.33.0 → 1.35.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 (341) hide show
  1. package/dist/connect.cjs +921 -510
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +314 -147
  4. package/lib/seam/connect/index.d.ts +0 -1
  5. package/lib/seam/connect/index.js +0 -1
  6. package/lib/seam/connect/index.js.map +1 -1
  7. package/lib/seam/connect/routes/{access-codes.d.ts → access-codes/access-codes.d.ts} +13 -11
  8. package/lib/seam/connect/routes/{access-codes.js → access-codes/access-codes.js} +33 -30
  9. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -0
  10. package/lib/seam/connect/routes/access-codes/index.d.ts +3 -0
  11. package/lib/seam/connect/routes/access-codes/index.js +8 -0
  12. package/lib/seam/connect/routes/access-codes/index.js.map +1 -0
  13. package/lib/seam/connect/routes/access-codes/simulate/index.d.ts +1 -0
  14. package/lib/seam/connect/routes/access-codes/simulate/index.js +6 -0
  15. package/lib/seam/connect/routes/access-codes/simulate/index.js.map +1 -0
  16. package/lib/seam/connect/routes/{access-codes-simulate.d.ts → access-codes/simulate/simulate.d.ts} +7 -5
  17. package/lib/seam/connect/routes/{access-codes-simulate.js → access-codes/simulate/simulate.js} +14 -11
  18. package/lib/seam/connect/routes/{unstable-partner.js.map → access-codes/simulate/simulate.js.map} +1 -1
  19. package/lib/seam/connect/routes/access-codes/unmanaged/index.d.ts +1 -0
  20. package/lib/seam/connect/routes/access-codes/unmanaged/index.js +6 -0
  21. package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +1 -0
  22. package/lib/seam/connect/routes/{access-codes-unmanaged.d.ts → access-codes/unmanaged/unmanaged.d.ts} +10 -8
  23. package/lib/seam/connect/routes/{access-codes-unmanaged.js → access-codes/unmanaged/unmanaged.js} +24 -21
  24. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
  25. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +37 -0
  26. package/lib/seam/connect/routes/access-grants/access-grants.js +119 -0
  27. package/lib/seam/connect/routes/{noise-sensors.js.map → access-grants/access-grants.js.map} +1 -1
  28. package/lib/seam/connect/routes/access-grants/index.d.ts +1 -0
  29. package/lib/seam/connect/routes/access-grants/index.js +6 -0
  30. package/lib/seam/connect/routes/access-grants/index.js.map +1 -0
  31. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +33 -0
  32. package/lib/seam/connect/routes/access-methods/access-methods.js +111 -0
  33. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -0
  34. package/lib/seam/connect/routes/access-methods/index.d.ts +1 -0
  35. package/lib/seam/connect/routes/access-methods/index.js +6 -0
  36. package/lib/seam/connect/routes/access-methods/index.js.map +1 -0
  37. package/lib/seam/connect/routes/{acs-access-groups.d.ts → acs/access-groups/access-groups.d.ts} +12 -10
  38. package/lib/seam/connect/routes/{acs-access-groups.js → acs/access-groups/access-groups.js} +29 -26
  39. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -0
  40. package/lib/seam/connect/routes/acs/access-groups/index.d.ts +1 -0
  41. package/lib/seam/connect/routes/acs/access-groups/index.js +6 -0
  42. package/lib/seam/connect/routes/acs/access-groups/index.js.map +1 -0
  43. package/lib/seam/connect/routes/{acs.d.ts → acs/acs.d.ts} +13 -11
  44. package/lib/seam/connect/routes/{acs.js → acs/acs.js} +20 -17
  45. package/lib/seam/connect/routes/acs/acs.js.map +1 -0
  46. package/lib/seam/connect/routes/{acs-credentials.d.ts → acs/credentials/credentials.d.ts} +11 -9
  47. package/lib/seam/connect/routes/{acs-credentials.js → acs/credentials/credentials.js} +29 -26
  48. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -0
  49. package/lib/seam/connect/routes/acs/credentials/index.d.ts +1 -0
  50. package/lib/seam/connect/routes/acs/credentials/index.js +6 -0
  51. package/lib/seam/connect/routes/acs/credentials/index.js.map +1 -0
  52. package/lib/seam/connect/routes/{acs-encoders.d.ts → acs/encoders/encoders.d.ts} +13 -11
  53. package/lib/seam/connect/routes/{acs-encoders.js → acs/encoders/encoders.js} +23 -20
  54. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -0
  55. package/lib/seam/connect/routes/acs/encoders/index.d.ts +2 -0
  56. package/lib/seam/connect/routes/acs/encoders/index.js +7 -0
  57. package/lib/seam/connect/routes/acs/encoders/index.js.map +1 -0
  58. package/lib/seam/connect/routes/acs/encoders/simulate/index.d.ts +1 -0
  59. package/lib/seam/connect/routes/acs/encoders/simulate/index.js +6 -0
  60. package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +1 -0
  61. package/lib/seam/connect/routes/{acs-encoders-simulate.d.ts → acs/encoders/simulate/simulate.d.ts} +7 -5
  62. package/lib/seam/connect/routes/{acs-encoders-simulate.js → acs/encoders/simulate/simulate.js} +17 -14
  63. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -0
  64. package/lib/seam/connect/routes/{acs-entrances.d.ts → acs/entrances/entrances.d.ts} +10 -8
  65. package/lib/seam/connect/routes/{acs-entrances.js → acs/entrances/entrances.js} +23 -20
  66. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -0
  67. package/lib/seam/connect/routes/acs/entrances/index.d.ts +1 -0
  68. package/lib/seam/connect/routes/acs/entrances/index.js +6 -0
  69. package/lib/seam/connect/routes/acs/entrances/index.js.map +1 -0
  70. package/lib/seam/connect/routes/acs/index.d.ts +7 -0
  71. package/lib/seam/connect/routes/acs/index.js +12 -0
  72. package/lib/seam/connect/routes/acs/index.js.map +1 -0
  73. package/lib/seam/connect/routes/acs/systems/index.d.ts +1 -0
  74. package/lib/seam/connect/routes/acs/systems/index.js +6 -0
  75. package/lib/seam/connect/routes/acs/systems/index.js.map +1 -0
  76. package/lib/seam/connect/routes/{acs-systems.d.ts → acs/systems/systems.d.ts} +10 -8
  77. package/lib/seam/connect/routes/{acs-systems.js → acs/systems/systems.js} +22 -19
  78. package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -0
  79. package/lib/seam/connect/routes/acs/users/index.d.ts +1 -0
  80. package/lib/seam/connect/routes/acs/users/index.js +6 -0
  81. package/lib/seam/connect/routes/acs/users/index.js.map +1 -0
  82. package/lib/seam/connect/routes/{acs-users.d.ts → acs/users/users.d.ts} +13 -11
  83. package/lib/seam/connect/routes/{acs-users.js → acs/users/users.js} +36 -33
  84. package/lib/seam/connect/routes/acs/users/users.js.map +1 -0
  85. package/lib/seam/connect/routes/{action-attempts.d.ts → action-attempts/action-attempts.d.ts} +9 -7
  86. package/lib/seam/connect/routes/{action-attempts.js → action-attempts/action-attempts.js} +18 -15
  87. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -0
  88. package/lib/seam/connect/routes/action-attempts/index.d.ts +1 -0
  89. package/lib/seam/connect/routes/action-attempts/index.js +6 -0
  90. package/lib/seam/connect/routes/action-attempts/index.js.map +1 -0
  91. package/lib/seam/connect/routes/{client-sessions.d.ts → client-sessions/client-sessions.d.ts} +11 -9
  92. package/lib/seam/connect/routes/{client-sessions.js → client-sessions/client-sessions.js} +26 -23
  93. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -0
  94. package/lib/seam/connect/routes/client-sessions/index.d.ts +1 -0
  95. package/lib/seam/connect/routes/client-sessions/index.js +6 -0
  96. package/lib/seam/connect/routes/client-sessions/index.js.map +1 -0
  97. package/lib/seam/connect/routes/{connect-webviews.d.ts → connect-webviews/connect-webviews.d.ts} +10 -8
  98. package/lib/seam/connect/routes/{connect-webviews.js → connect-webviews/connect-webviews.js} +22 -19
  99. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -0
  100. package/lib/seam/connect/routes/connect-webviews/index.d.ts +1 -0
  101. package/lib/seam/connect/routes/connect-webviews/index.js +6 -0
  102. package/lib/seam/connect/routes/connect-webviews/index.js.map +1 -0
  103. package/lib/seam/connect/routes/{connected-accounts.d.ts → connected-accounts/connected-accounts.d.ts} +10 -8
  104. package/lib/seam/connect/routes/{connected-accounts.js → connected-accounts/connected-accounts.js} +23 -20
  105. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -0
  106. package/lib/seam/connect/routes/connected-accounts/index.d.ts +1 -0
  107. package/lib/seam/connect/routes/connected-accounts/index.js +6 -0
  108. package/lib/seam/connect/routes/connected-accounts/index.js.map +1 -0
  109. package/lib/seam/connect/routes/{devices.d.ts → devices/devices.d.ts} +13 -11
  110. package/lib/seam/connect/routes/{devices.js → devices/devices.js} +27 -24
  111. package/lib/seam/connect/routes/devices/devices.js.map +1 -0
  112. package/lib/seam/connect/routes/devices/index.d.ts +3 -0
  113. package/lib/seam/connect/routes/devices/index.js +8 -0
  114. package/lib/seam/connect/routes/devices/index.js.map +1 -0
  115. package/lib/seam/connect/routes/devices/simulate/index.d.ts +1 -0
  116. package/lib/seam/connect/routes/devices/simulate/index.js +6 -0
  117. package/lib/seam/connect/routes/devices/simulate/index.js.map +1 -0
  118. package/lib/seam/connect/routes/{devices-simulate.d.ts → devices/simulate/simulate.d.ts} +7 -5
  119. package/lib/seam/connect/routes/{devices-simulate.js → devices/simulate/simulate.js} +16 -13
  120. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -0
  121. package/lib/seam/connect/routes/devices/unmanaged/index.d.ts +1 -0
  122. package/lib/seam/connect/routes/devices/unmanaged/index.js +6 -0
  123. package/lib/seam/connect/routes/devices/unmanaged/index.js.map +1 -0
  124. package/lib/seam/connect/routes/{devices-unmanaged.d.ts → devices/unmanaged/unmanaged.d.ts} +9 -7
  125. package/lib/seam/connect/routes/{devices-unmanaged.js → devices/unmanaged/unmanaged.js} +20 -17
  126. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -0
  127. package/lib/seam/connect/routes/{events.d.ts → events/events.d.ts} +9 -7
  128. package/lib/seam/connect/routes/{events.js → events/events.js} +18 -15
  129. package/lib/seam/connect/routes/events/events.js.map +1 -0
  130. package/lib/seam/connect/routes/events/index.d.ts +1 -0
  131. package/lib/seam/connect/routes/events/index.js +6 -0
  132. package/lib/seam/connect/routes/events/index.js.map +1 -0
  133. package/lib/seam/connect/routes/index.d.ts +19 -34
  134. package/lib/seam/connect/routes/index.js +23 -34
  135. package/lib/seam/connect/routes/index.js.map +1 -1
  136. package/lib/seam/connect/routes/locks/index.d.ts +1 -0
  137. package/lib/seam/connect/routes/locks/index.js +6 -0
  138. package/lib/seam/connect/routes/locks/index.js.map +1 -0
  139. package/lib/seam/connect/routes/{locks.d.ts → locks/locks.d.ts} +11 -9
  140. package/lib/seam/connect/routes/{locks.js → locks/locks.js} +20 -17
  141. package/lib/seam/connect/routes/locks/locks.js.map +1 -0
  142. package/lib/seam/connect/routes/noise-sensors/index.d.ts +3 -0
  143. package/lib/seam/connect/routes/noise-sensors/index.js +8 -0
  144. package/lib/seam/connect/routes/noise-sensors/index.js.map +1 -0
  145. package/lib/seam/connect/routes/{noise-sensors.d.ts → noise-sensors/noise-sensors.d.ts} +10 -8
  146. package/lib/seam/connect/routes/{noise-sensors.js → noise-sensors/noise-sensors.js} +17 -14
  147. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -0
  148. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.d.ts +1 -0
  149. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js +6 -0
  150. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
  151. package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.d.ts → noise-sensors/noise-thresholds/noise-thresholds.d.ts} +10 -8
  152. package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.js → noise-sensors/noise-thresholds/noise-thresholds.js} +24 -21
  153. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
  154. package/lib/seam/connect/routes/noise-sensors/simulate/index.d.ts +1 -0
  155. package/lib/seam/connect/routes/noise-sensors/simulate/index.js +6 -0
  156. package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +1 -0
  157. package/lib/seam/connect/routes/{noise-sensors-simulate.d.ts → noise-sensors/simulate/simulate.d.ts} +7 -5
  158. package/lib/seam/connect/routes/{noise-sensors-simulate.js → noise-sensors/simulate/simulate.js} +14 -11
  159. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -0
  160. package/lib/seam/connect/routes/phones/index.d.ts +2 -0
  161. package/lib/seam/connect/routes/phones/index.js +7 -0
  162. package/lib/seam/connect/routes/phones/index.js.map +1 -0
  163. package/lib/seam/connect/routes/{phones.d.ts → phones/phones.d.ts} +11 -9
  164. package/lib/seam/connect/routes/{phones.js → phones/phones.js} +22 -19
  165. package/lib/seam/connect/routes/{events.js.map → phones/phones.js.map} +1 -1
  166. package/lib/seam/connect/routes/phones/simulate/index.d.ts +1 -0
  167. package/lib/seam/connect/routes/phones/simulate/index.js +6 -0
  168. package/lib/seam/connect/routes/phones/simulate/index.js.map +1 -0
  169. package/lib/seam/connect/routes/{phones-simulate.d.ts → phones/simulate/simulate.d.ts} +7 -5
  170. package/lib/seam/connect/routes/{phones-simulate.js → phones/simulate/simulate.js} +14 -11
  171. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -0
  172. package/lib/seam/connect/{seam-http.d.ts → routes/seam-http.d.ts} +27 -7
  173. package/lib/seam/connect/{seam-http.js → routes/seam-http.js} +40 -10
  174. package/lib/seam/connect/routes/seam-http.js.map +1 -0
  175. package/lib/seam/connect/routes/spaces/index.d.ts +1 -0
  176. package/lib/seam/connect/routes/spaces/index.js +6 -0
  177. package/lib/seam/connect/routes/spaces/index.js.map +1 -0
  178. package/lib/seam/connect/routes/spaces/spaces.d.ts +57 -0
  179. package/lib/seam/connect/routes/spaces/spaces.js +159 -0
  180. package/lib/seam/connect/routes/spaces/spaces.js.map +1 -0
  181. package/lib/seam/connect/routes/{thermostats-daily-programs.d.ts → thermostats/daily-programs/daily-programs.d.ts} +9 -7
  182. package/lib/seam/connect/routes/{thermostats-daily-programs.js → thermostats/daily-programs/daily-programs.js} +18 -15
  183. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
  184. package/lib/seam/connect/routes/thermostats/daily-programs/index.d.ts +1 -0
  185. package/lib/seam/connect/routes/thermostats/daily-programs/index.js +6 -0
  186. package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +1 -0
  187. package/lib/seam/connect/routes/thermostats/index.d.ts +4 -0
  188. package/lib/seam/connect/routes/thermostats/index.js +9 -0
  189. package/lib/seam/connect/routes/thermostats/index.js.map +1 -0
  190. package/lib/seam/connect/routes/thermostats/schedules/index.d.ts +1 -0
  191. package/lib/seam/connect/routes/thermostats/schedules/index.js +6 -0
  192. package/lib/seam/connect/routes/thermostats/schedules/index.js.map +1 -0
  193. package/lib/seam/connect/routes/{thermostats-schedules.d.ts → thermostats/schedules/schedules.d.ts} +10 -8
  194. package/lib/seam/connect/routes/{thermostats-schedules.js → thermostats/schedules/schedules.js} +24 -21
  195. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -0
  196. package/lib/seam/connect/routes/thermostats/simulate/index.d.ts +1 -0
  197. package/lib/seam/connect/routes/thermostats/simulate/index.js +6 -0
  198. package/lib/seam/connect/routes/thermostats/simulate/index.js.map +1 -0
  199. package/lib/seam/connect/routes/{thermostats-simulate.d.ts → thermostats/simulate/simulate.d.ts} +7 -5
  200. package/lib/seam/connect/routes/{thermostats-simulate.js → thermostats/simulate/simulate.js} +15 -12
  201. package/lib/seam/connect/routes/{thermostats-daily-programs.js.map → thermostats/simulate/simulate.js.map} +1 -1
  202. package/lib/seam/connect/routes/{thermostats.d.ts → thermostats/thermostats.d.ts} +20 -18
  203. package/lib/seam/connect/routes/{thermostats.js → thermostats/thermostats.js} +34 -31
  204. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -0
  205. package/lib/seam/connect/routes/{user-identities-enrollment-automations.d.ts → user-identities/enrollment-automations/enrollment-automations.d.ts} +10 -8
  206. package/lib/seam/connect/routes/{user-identities-enrollment-automations.js → user-identities/enrollment-automations/enrollment-automations.js} +23 -20
  207. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -0
  208. package/lib/seam/connect/routes/user-identities/enrollment-automations/index.d.ts +1 -0
  209. package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js +6 -0
  210. package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js.map +1 -0
  211. package/lib/seam/connect/routes/user-identities/index.d.ts +2 -0
  212. package/lib/seam/connect/routes/user-identities/index.js +7 -0
  213. package/lib/seam/connect/routes/user-identities/index.js.map +1 -0
  214. package/lib/seam/connect/routes/{user-identities.d.ts → user-identities/user-identities.d.ts} +16 -14
  215. package/lib/seam/connect/routes/{user-identities.js → user-identities/user-identities.js} +42 -39
  216. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -0
  217. package/lib/seam/connect/routes/webhooks/index.d.ts +1 -0
  218. package/lib/seam/connect/routes/webhooks/index.js +6 -0
  219. package/lib/seam/connect/routes/webhooks/index.js.map +1 -0
  220. package/lib/seam/connect/routes/{webhooks.d.ts → webhooks/webhooks.d.ts} +12 -10
  221. package/lib/seam/connect/routes/{webhooks.js → webhooks/webhooks.js} +23 -20
  222. package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -0
  223. package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
  224. package/lib/seam/connect/routes/workspaces/index.js +6 -0
  225. package/lib/seam/connect/routes/workspaces/index.js.map +1 -0
  226. package/lib/seam/connect/routes/{workspaces.d.ts → workspaces/workspaces.d.ts} +13 -11
  227. package/lib/seam/connect/routes/{workspaces.js → workspaces/workspaces.js} +21 -18
  228. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -0
  229. package/lib/version.d.ts +1 -1
  230. package/lib/version.js +1 -1
  231. package/package.json +9 -7
  232. package/src/lib/seam/connect/index.ts +0 -1
  233. package/src/lib/seam/connect/routes/{access-codes.ts → access-codes/access-codes.ts} +28 -25
  234. package/src/lib/seam/connect/routes/access-codes/index.ts +8 -0
  235. package/src/lib/seam/connect/routes/access-codes/simulate/index.ts +6 -0
  236. package/src/lib/seam/connect/routes/{access-codes-simulate.ts → access-codes/simulate/simulate.ts} +7 -5
  237. package/src/lib/seam/connect/routes/access-codes/unmanaged/index.ts +6 -0
  238. package/src/lib/seam/connect/routes/{access-codes-unmanaged.ts → access-codes/unmanaged/unmanaged.ts} +17 -15
  239. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +239 -0
  240. package/src/lib/seam/connect/routes/access-grants/index.ts +6 -0
  241. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +221 -0
  242. package/src/lib/seam/connect/routes/access-methods/index.ts +6 -0
  243. package/src/lib/seam/connect/routes/{acs-access-groups.ts → acs/access-groups/access-groups.ts} +22 -20
  244. package/src/lib/seam/connect/routes/acs/access-groups/index.ts +6 -0
  245. package/src/lib/seam/connect/routes/{acs.ts → acs/acs.ts} +16 -13
  246. package/src/lib/seam/connect/routes/{acs-credentials.ts → acs/credentials/credentials.ts} +24 -20
  247. package/src/lib/seam/connect/routes/acs/credentials/index.ts +6 -0
  248. package/src/lib/seam/connect/routes/{acs-encoders.ts → acs/encoders/encoders.ts} +19 -16
  249. package/src/lib/seam/connect/routes/acs/encoders/index.ts +7 -0
  250. package/src/lib/seam/connect/routes/acs/encoders/simulate/index.ts +6 -0
  251. package/src/lib/seam/connect/routes/{acs-encoders-simulate.ts → acs/encoders/simulate/simulate.ts} +10 -8
  252. package/src/lib/seam/connect/routes/{acs-entrances.ts → acs/entrances/entrances.ts} +16 -14
  253. package/src/lib/seam/connect/routes/acs/entrances/index.ts +6 -0
  254. package/src/lib/seam/connect/routes/acs/index.ts +12 -0
  255. package/src/lib/seam/connect/routes/acs/systems/index.ts +6 -0
  256. package/src/lib/seam/connect/routes/{acs-systems.ts → acs/systems/systems.ts} +15 -13
  257. package/src/lib/seam/connect/routes/acs/users/index.ts +6 -0
  258. package/src/lib/seam/connect/routes/{acs-users.ts → acs/users/users.ts} +29 -27
  259. package/src/lib/seam/connect/routes/{action-attempts.ts → action-attempts/action-attempts.ts} +13 -11
  260. package/src/lib/seam/connect/routes/action-attempts/index.ts +6 -0
  261. package/src/lib/seam/connect/routes/{client-sessions.ts → client-sessions/client-sessions.ts} +24 -17
  262. package/src/lib/seam/connect/routes/client-sessions/index.ts +6 -0
  263. package/src/lib/seam/connect/routes/{connect-webviews.ts → connect-webviews/connect-webviews.ts} +18 -14
  264. package/src/lib/seam/connect/routes/connect-webviews/index.ts +6 -0
  265. package/src/lib/seam/connect/routes/{connected-accounts.ts → connected-accounts/connected-accounts.ts} +17 -15
  266. package/src/lib/seam/connect/routes/connected-accounts/index.ts +6 -0
  267. package/src/lib/seam/connect/routes/{devices.ts → devices/devices.ts} +24 -19
  268. package/src/lib/seam/connect/routes/devices/index.ts +8 -0
  269. package/src/lib/seam/connect/routes/devices/simulate/index.ts +6 -0
  270. package/src/lib/seam/connect/routes/{devices-simulate.ts → devices/simulate/simulate.ts} +9 -7
  271. package/src/lib/seam/connect/routes/devices/unmanaged/index.ts +6 -0
  272. package/src/lib/seam/connect/routes/{devices-unmanaged.ts → devices/unmanaged/unmanaged.ts} +13 -11
  273. package/src/lib/seam/connect/routes/{events.ts → events/events.ts} +14 -10
  274. package/src/lib/seam/connect/routes/events/index.ts +6 -0
  275. package/src/lib/seam/connect/routes/index.ts +24 -34
  276. package/src/lib/seam/connect/routes/locks/index.ts +6 -0
  277. package/src/lib/seam/connect/routes/{locks.ts → locks/locks.ts} +18 -14
  278. package/src/lib/seam/connect/routes/noise-sensors/index.ts +8 -0
  279. package/src/lib/seam/connect/routes/{noise-sensors.ts → noise-sensors/noise-sensors.ts} +11 -8
  280. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.ts +6 -0
  281. package/src/lib/seam/connect/routes/{noise-sensors-noise-thresholds.ts → noise-sensors/noise-thresholds/noise-thresholds.ts} +17 -15
  282. package/src/lib/seam/connect/routes/noise-sensors/simulate/index.ts +6 -0
  283. package/src/lib/seam/connect/routes/{noise-sensors-simulate.ts → noise-sensors/simulate/simulate.ts} +7 -5
  284. package/src/lib/seam/connect/routes/phones/index.ts +7 -0
  285. package/src/lib/seam/connect/routes/{phones.ts → phones/phones.ts} +20 -13
  286. package/src/lib/seam/connect/routes/phones/simulate/index.ts +6 -0
  287. package/src/lib/seam/connect/routes/{phones-simulate.ts → phones/simulate/simulate.ts} +7 -5
  288. package/src/lib/seam/connect/{seam-http.ts → routes/seam-http.ts} +49 -28
  289. package/src/lib/seam/connect/routes/spaces/index.ts +6 -0
  290. package/src/lib/seam/connect/routes/spaces/spaces.ts +337 -0
  291. package/src/lib/seam/connect/routes/{thermostats-daily-programs.ts → thermostats/daily-programs/daily-programs.ts} +12 -10
  292. package/src/lib/seam/connect/routes/thermostats/daily-programs/index.ts +6 -0
  293. package/src/lib/seam/connect/routes/thermostats/index.ts +9 -0
  294. package/src/lib/seam/connect/routes/thermostats/schedules/index.ts +6 -0
  295. package/src/lib/seam/connect/routes/{thermostats-schedules.ts → thermostats/schedules/schedules.ts} +17 -15
  296. package/src/lib/seam/connect/routes/thermostats/simulate/index.ts +6 -0
  297. package/src/lib/seam/connect/routes/{thermostats-simulate.ts → thermostats/simulate/simulate.ts} +8 -6
  298. package/src/lib/seam/connect/routes/{thermostats.ts → thermostats/thermostats.ts} +40 -37
  299. package/src/lib/seam/connect/routes/{user-identities-enrollment-automations.ts → user-identities/enrollment-automations/enrollment-automations.ts} +16 -14
  300. package/src/lib/seam/connect/routes/user-identities/enrollment-automations/index.ts +6 -0
  301. package/src/lib/seam/connect/routes/user-identities/index.ts +7 -0
  302. package/src/lib/seam/connect/routes/{user-identities.ts → user-identities/user-identities.ts} +38 -33
  303. package/src/lib/seam/connect/routes/webhooks/index.ts +6 -0
  304. package/src/lib/seam/connect/routes/{webhooks.ts → webhooks/webhooks.ts} +23 -17
  305. package/src/lib/seam/connect/routes/workspaces/index.ts +6 -0
  306. package/src/lib/seam/connect/routes/{workspaces.ts → workspaces/workspaces.ts} +23 -17
  307. package/src/lib/version.ts +1 -1
  308. package/lib/seam/connect/routes/access-codes-simulate.js.map +0 -1
  309. package/lib/seam/connect/routes/access-codes-unmanaged.js.map +0 -1
  310. package/lib/seam/connect/routes/access-codes.js.map +0 -1
  311. package/lib/seam/connect/routes/acs-access-groups.js.map +0 -1
  312. package/lib/seam/connect/routes/acs-credentials.js.map +0 -1
  313. package/lib/seam/connect/routes/acs-encoders-simulate.js.map +0 -1
  314. package/lib/seam/connect/routes/acs-encoders.js.map +0 -1
  315. package/lib/seam/connect/routes/acs-entrances.js.map +0 -1
  316. package/lib/seam/connect/routes/acs-systems.js.map +0 -1
  317. package/lib/seam/connect/routes/acs-users.js.map +0 -1
  318. package/lib/seam/connect/routes/acs.js.map +0 -1
  319. package/lib/seam/connect/routes/action-attempts.js.map +0 -1
  320. package/lib/seam/connect/routes/client-sessions.js.map +0 -1
  321. package/lib/seam/connect/routes/connect-webviews.js.map +0 -1
  322. package/lib/seam/connect/routes/connected-accounts.js.map +0 -1
  323. package/lib/seam/connect/routes/devices-simulate.js.map +0 -1
  324. package/lib/seam/connect/routes/devices-unmanaged.js.map +0 -1
  325. package/lib/seam/connect/routes/devices.js.map +0 -1
  326. package/lib/seam/connect/routes/locks.js.map +0 -1
  327. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +0 -1
  328. package/lib/seam/connect/routes/noise-sensors-simulate.js.map +0 -1
  329. package/lib/seam/connect/routes/phones-simulate.js.map +0 -1
  330. package/lib/seam/connect/routes/phones.js.map +0 -1
  331. package/lib/seam/connect/routes/thermostats-schedules.js.map +0 -1
  332. package/lib/seam/connect/routes/thermostats-simulate.js.map +0 -1
  333. package/lib/seam/connect/routes/thermostats.js.map +0 -1
  334. package/lib/seam/connect/routes/unstable-partner.d.ts +0 -17
  335. package/lib/seam/connect/routes/unstable-partner.js +0 -83
  336. package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +0 -1
  337. package/lib/seam/connect/routes/user-identities.js.map +0 -1
  338. package/lib/seam/connect/routes/webhooks.js.map +0 -1
  339. package/lib/seam/connect/routes/workspaces.js.map +0 -1
  340. package/lib/seam/connect/seam-http.js.map +0 -1
  341. package/src/lib/seam/connect/routes/unstable-partner.ts +0 -160
package/dist/connect.cjs CHANGED
@@ -844,9 +844,10 @@ fetch_fn = async function(nextPageCursor) {
844
844
  ];
845
845
  };
846
846
 
847
- // src/lib/seam/connect/routes/client-sessions.ts
848
- var SeamHttpClientSessions = class _SeamHttpClientSessions {
847
+ // src/lib/seam/connect/routes/client-sessions/client-sessions.ts
848
+ var _SeamHttpClientSessions = class _SeamHttpClientSessions {
849
849
  constructor(apiKeyOrOptions = {}) {
850
+ this.ltsVersion = seamApiLtsVersion;
850
851
  const options = parseOptions(apiKeyOrOptions);
851
852
  this.client = "client" in options ? options.client : createClient(options);
852
853
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -877,7 +878,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
877
878
  const clientOptions = parseOptions({ ...options, publishableKey });
878
879
  if (isSeamHttpOptionsWithClient(clientOptions)) {
879
880
  throw new SeamHttpInvalidOptionsError(
880
- "The client option cannot be used with SeamHttp.fromPublishableKey"
881
+ "The client option cannot be used with SeamHttpClientSessions.fromPublishableKey"
881
882
  );
882
883
  }
883
884
  const client = createClient(clientOptions);
@@ -927,31 +928,31 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
927
928
  create(body) {
928
929
  return new SeamHttpRequest(this, {
929
930
  pathname: "/client_sessions/create",
930
- method: "post",
931
+ method: "PUT",
931
932
  body,
932
933
  responseKey: "client_session"
933
934
  });
934
935
  }
935
- delete(body) {
936
+ delete(params) {
936
937
  return new SeamHttpRequest(this, {
937
938
  pathname: "/client_sessions/delete",
938
- method: "post",
939
- body,
939
+ method: "POST",
940
+ body: params,
940
941
  responseKey: void 0
941
942
  });
942
943
  }
943
- get(body) {
944
+ get(params) {
944
945
  return new SeamHttpRequest(this, {
945
946
  pathname: "/client_sessions/get",
946
- method: "post",
947
- body,
947
+ method: "POST",
948
+ body: params,
948
949
  responseKey: "client_session"
949
950
  });
950
951
  }
951
952
  getOrCreate(body) {
952
953
  return new SeamHttpRequest(this, {
953
954
  pathname: "/client_sessions/get_or_create",
954
- method: "post",
955
+ method: "POST",
955
956
  body,
956
957
  responseKey: "client_session"
957
958
  });
@@ -959,32 +960,35 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
959
960
  grantAccess(body) {
960
961
  return new SeamHttpRequest(this, {
961
962
  pathname: "/client_sessions/grant_access",
962
- method: "post",
963
+ method: "PATCH",
963
964
  body,
964
965
  responseKey: void 0
965
966
  });
966
967
  }
967
- list(body) {
968
+ list(params) {
968
969
  return new SeamHttpRequest(this, {
969
970
  pathname: "/client_sessions/list",
970
- method: "post",
971
- body,
971
+ method: "POST",
972
+ body: params,
972
973
  responseKey: "client_sessions"
973
974
  });
974
975
  }
975
- revoke(body) {
976
+ revoke(params) {
976
977
  return new SeamHttpRequest(this, {
977
978
  pathname: "/client_sessions/revoke",
978
- method: "post",
979
- body,
979
+ method: "POST",
980
+ body: params,
980
981
  responseKey: void 0
981
982
  });
982
983
  }
983
984
  };
985
+ _SeamHttpClientSessions.ltsVersion = seamApiLtsVersion;
986
+ var SeamHttpClientSessions = _SeamHttpClientSessions;
984
987
 
985
- // src/lib/seam/connect/routes/access-codes-simulate.ts
986
- var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
988
+ // src/lib/seam/connect/routes/access-codes/simulate/simulate.ts
989
+ var _SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
987
990
  constructor(apiKeyOrOptions = {}) {
991
+ this.ltsVersion = seamApiLtsVersion;
988
992
  const options = parseOptions(apiKeyOrOptions);
989
993
  this.client = "client" in options ? options.client : createClient(options);
990
994
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1015,7 +1019,7 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
1015
1019
  const clientOptions = parseOptions({ ...options, publishableKey });
1016
1020
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1017
1021
  throw new SeamHttpInvalidOptionsError(
1018
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1022
+ "The client option cannot be used with SeamHttpAccessCodesSimulate.fromPublishableKey"
1019
1023
  );
1020
1024
  }
1021
1025
  const client = createClient(clientOptions);
@@ -1065,16 +1069,19 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
1065
1069
  createUnmanagedAccessCode(body) {
1066
1070
  return new SeamHttpRequest(this, {
1067
1071
  pathname: "/access_codes/simulate/create_unmanaged_access_code",
1068
- method: "post",
1072
+ method: "POST",
1069
1073
  body,
1070
1074
  responseKey: "access_code"
1071
1075
  });
1072
1076
  }
1073
1077
  };
1078
+ _SeamHttpAccessCodesSimulate.ltsVersion = seamApiLtsVersion;
1079
+ var SeamHttpAccessCodesSimulate = _SeamHttpAccessCodesSimulate;
1074
1080
 
1075
- // src/lib/seam/connect/routes/access-codes-unmanaged.ts
1076
- var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1081
+ // src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts
1082
+ var _SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1077
1083
  constructor(apiKeyOrOptions = {}) {
1084
+ this.ltsVersion = seamApiLtsVersion;
1078
1085
  const options = parseOptions(apiKeyOrOptions);
1079
1086
  this.client = "client" in options ? options.client : createClient(options);
1080
1087
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1105,7 +1112,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1105
1112
  const clientOptions = parseOptions({ ...options, publishableKey });
1106
1113
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1107
1114
  throw new SeamHttpInvalidOptionsError(
1108
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1115
+ "The client option cannot be used with SeamHttpAccessCodesUnmanaged.fromPublishableKey"
1109
1116
  );
1110
1117
  }
1111
1118
  const client = createClient(clientOptions);
@@ -1155,48 +1162,51 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
1155
1162
  convertToManaged(body) {
1156
1163
  return new SeamHttpRequest(this, {
1157
1164
  pathname: "/access_codes/unmanaged/convert_to_managed",
1158
- method: "post",
1165
+ method: "PATCH",
1159
1166
  body,
1160
1167
  responseKey: void 0
1161
1168
  });
1162
1169
  }
1163
- delete(body) {
1170
+ delete(params) {
1164
1171
  return new SeamHttpRequest(this, {
1165
1172
  pathname: "/access_codes/unmanaged/delete",
1166
- method: "post",
1167
- body,
1173
+ method: "POST",
1174
+ body: params,
1168
1175
  responseKey: void 0
1169
1176
  });
1170
1177
  }
1171
- get(body) {
1178
+ get(params) {
1172
1179
  return new SeamHttpRequest(this, {
1173
1180
  pathname: "/access_codes/unmanaged/get",
1174
- method: "post",
1175
- body,
1181
+ method: "POST",
1182
+ body: params,
1176
1183
  responseKey: "access_code"
1177
1184
  });
1178
1185
  }
1179
- list(body) {
1186
+ list(params) {
1180
1187
  return new SeamHttpRequest(this, {
1181
1188
  pathname: "/access_codes/unmanaged/list",
1182
- method: "post",
1183
- body,
1189
+ method: "POST",
1190
+ body: params,
1184
1191
  responseKey: "access_codes"
1185
1192
  });
1186
1193
  }
1187
1194
  update(body) {
1188
1195
  return new SeamHttpRequest(this, {
1189
1196
  pathname: "/access_codes/unmanaged/update",
1190
- method: "post",
1197
+ method: "PATCH",
1191
1198
  body,
1192
1199
  responseKey: void 0
1193
1200
  });
1194
1201
  }
1195
1202
  };
1203
+ _SeamHttpAccessCodesUnmanaged.ltsVersion = seamApiLtsVersion;
1204
+ var SeamHttpAccessCodesUnmanaged = _SeamHttpAccessCodesUnmanaged;
1196
1205
 
1197
- // src/lib/seam/connect/routes/access-codes.ts
1198
- var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1206
+ // src/lib/seam/connect/routes/access-codes/access-codes.ts
1207
+ var _SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1199
1208
  constructor(apiKeyOrOptions = {}) {
1209
+ this.ltsVersion = seamApiLtsVersion;
1200
1210
  const options = parseOptions(apiKeyOrOptions);
1201
1211
  this.client = "client" in options ? options.client : createClient(options);
1202
1212
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1227,7 +1237,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1227
1237
  const clientOptions = parseOptions({ ...options, publishableKey });
1228
1238
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1229
1239
  throw new SeamHttpInvalidOptionsError(
1230
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1240
+ "The client option cannot be used with SeamHttpAccessCodes.fromPublishableKey"
1231
1241
  );
1232
1242
  }
1233
1243
  const client = createClient(clientOptions);
@@ -1274,16 +1284,16 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1274
1284
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1275
1285
  await clientSessions.get();
1276
1286
  }
1277
- get unmanaged() {
1278
- return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
1279
- }
1280
1287
  get simulate() {
1281
1288
  return SeamHttpAccessCodesSimulate.fromClient(this.client, this.defaults);
1282
1289
  }
1290
+ get unmanaged() {
1291
+ return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
1292
+ }
1283
1293
  create(body) {
1284
1294
  return new SeamHttpRequest(this, {
1285
1295
  pathname: "/access_codes/create",
1286
- method: "post",
1296
+ method: "POST",
1287
1297
  body,
1288
1298
  responseKey: "access_code"
1289
1299
  });
@@ -1291,47 +1301,47 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1291
1301
  createMultiple(body) {
1292
1302
  return new SeamHttpRequest(this, {
1293
1303
  pathname: "/access_codes/create_multiple",
1294
- method: "post",
1304
+ method: "PUT",
1295
1305
  body,
1296
1306
  responseKey: "access_codes"
1297
1307
  });
1298
1308
  }
1299
- delete(body) {
1309
+ delete(params) {
1300
1310
  return new SeamHttpRequest(this, {
1301
1311
  pathname: "/access_codes/delete",
1302
- method: "post",
1303
- body,
1312
+ method: "POST",
1313
+ body: params,
1304
1314
  responseKey: void 0
1305
1315
  });
1306
1316
  }
1307
1317
  generateCode(body) {
1308
1318
  return new SeamHttpRequest(this, {
1309
1319
  pathname: "/access_codes/generate_code",
1310
- method: "post",
1320
+ method: "POST",
1311
1321
  body,
1312
1322
  responseKey: "generated_code"
1313
1323
  });
1314
1324
  }
1315
- get(body) {
1325
+ get(params) {
1316
1326
  return new SeamHttpRequest(this, {
1317
1327
  pathname: "/access_codes/get",
1318
- method: "post",
1319
- body,
1328
+ method: "POST",
1329
+ body: params,
1320
1330
  responseKey: "access_code"
1321
1331
  });
1322
1332
  }
1323
- list(body) {
1333
+ list(params) {
1324
1334
  return new SeamHttpRequest(this, {
1325
1335
  pathname: "/access_codes/list",
1326
- method: "post",
1327
- body,
1336
+ method: "POST",
1337
+ body: params,
1328
1338
  responseKey: "access_codes"
1329
1339
  });
1330
1340
  }
1331
1341
  pullBackupAccessCode(body) {
1332
1342
  return new SeamHttpRequest(this, {
1333
1343
  pathname: "/access_codes/pull_backup_access_code",
1334
- method: "post",
1344
+ method: "POST",
1335
1345
  body,
1336
1346
  responseKey: "access_code"
1337
1347
  });
@@ -1339,7 +1349,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1339
1349
  reportDeviceConstraints(body) {
1340
1350
  return new SeamHttpRequest(this, {
1341
1351
  pathname: "/access_codes/report_device_constraints",
1342
- method: "post",
1352
+ method: "POST",
1343
1353
  body,
1344
1354
  responseKey: void 0
1345
1355
  });
@@ -1347,7 +1357,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1347
1357
  update(body) {
1348
1358
  return new SeamHttpRequest(this, {
1349
1359
  pathname: "/access_codes/update",
1350
- method: "post",
1360
+ method: "PUT",
1351
1361
  body,
1352
1362
  responseKey: void 0
1353
1363
  });
@@ -1355,16 +1365,245 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
1355
1365
  updateMultiple(body) {
1356
1366
  return new SeamHttpRequest(this, {
1357
1367
  pathname: "/access_codes/update_multiple",
1358
- method: "post",
1368
+ method: "PATCH",
1369
+ body,
1370
+ responseKey: void 0
1371
+ });
1372
+ }
1373
+ };
1374
+ _SeamHttpAccessCodes.ltsVersion = seamApiLtsVersion;
1375
+ var SeamHttpAccessCodes = _SeamHttpAccessCodes;
1376
+
1377
+ // src/lib/seam/connect/routes/access-grants/access-grants.ts
1378
+ var _SeamHttpAccessGrants = class _SeamHttpAccessGrants {
1379
+ constructor(apiKeyOrOptions = {}) {
1380
+ this.ltsVersion = seamApiLtsVersion;
1381
+ const options = parseOptions(apiKeyOrOptions);
1382
+ this.client = "client" in options ? options.client : createClient(options);
1383
+ this.defaults = limitToSeamHttpRequestOptions(options);
1384
+ }
1385
+ static fromClient(client, options = {}) {
1386
+ const constructorOptions = { ...options, client };
1387
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
1388
+ throw new SeamHttpInvalidOptionsError("Missing client");
1389
+ }
1390
+ return new _SeamHttpAccessGrants(constructorOptions);
1391
+ }
1392
+ static fromApiKey(apiKey, options = {}) {
1393
+ const constructorOptions = { ...options, apiKey };
1394
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
1395
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
1396
+ }
1397
+ return new _SeamHttpAccessGrants(constructorOptions);
1398
+ }
1399
+ static fromClientSessionToken(clientSessionToken, options = {}) {
1400
+ const constructorOptions = { ...options, clientSessionToken };
1401
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
1402
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
1403
+ }
1404
+ return new _SeamHttpAccessGrants(constructorOptions);
1405
+ }
1406
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
1407
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
1408
+ const clientOptions = parseOptions({ ...options, publishableKey });
1409
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
1410
+ throw new SeamHttpInvalidOptionsError(
1411
+ "The client option cannot be used with SeamHttpAccessGrants.fromPublishableKey"
1412
+ );
1413
+ }
1414
+ const client = createClient(clientOptions);
1415
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
1416
+ const { token } = await clientSessions.getOrCreate({
1417
+ user_identifier_key: userIdentifierKey
1418
+ });
1419
+ return _SeamHttpAccessGrants.fromClientSessionToken(token, options);
1420
+ }
1421
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
1422
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
1423
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
1424
+ throw new SeamHttpInvalidOptionsError(
1425
+ "Missing consoleSessionToken or workspaceId"
1426
+ );
1427
+ }
1428
+ return new _SeamHttpAccessGrants(constructorOptions);
1429
+ }
1430
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
1431
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
1432
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
1433
+ throw new SeamHttpInvalidOptionsError(
1434
+ "Missing personalAccessToken or workspaceId"
1435
+ );
1436
+ }
1437
+ return new _SeamHttpAccessGrants(constructorOptions);
1438
+ }
1439
+ createPaginator(request) {
1440
+ return new SeamPaginator(this, request);
1441
+ }
1442
+ async updateClientSessionToken(clientSessionToken) {
1443
+ const { headers } = this.client.defaults;
1444
+ const authHeaders = getAuthHeadersForClientSessionToken({
1445
+ clientSessionToken
1446
+ });
1447
+ for (const key of Object.keys(authHeaders)) {
1448
+ if (headers[key] == null) {
1449
+ throw new Error(
1450
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
1451
+ );
1452
+ }
1453
+ }
1454
+ this.client.defaults.headers = { ...headers, ...authHeaders };
1455
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1456
+ await clientSessions.get();
1457
+ }
1458
+ create(body) {
1459
+ return new SeamHttpRequest(this, {
1460
+ pathname: "/access_grants/create",
1461
+ method: "POST",
1359
1462
  body,
1463
+ responseKey: "access_grant"
1464
+ });
1465
+ }
1466
+ delete(params) {
1467
+ return new SeamHttpRequest(this, {
1468
+ pathname: "/access_grants/delete",
1469
+ method: "POST",
1470
+ body: params,
1471
+ responseKey: void 0
1472
+ });
1473
+ }
1474
+ get(params) {
1475
+ return new SeamHttpRequest(this, {
1476
+ pathname: "/access_grants/get",
1477
+ method: "POST",
1478
+ body: params,
1479
+ responseKey: "access_grant"
1480
+ });
1481
+ }
1482
+ list(params) {
1483
+ return new SeamHttpRequest(this, {
1484
+ pathname: "/access_grants/list",
1485
+ method: "POST",
1486
+ body: params,
1487
+ responseKey: "access_grants"
1488
+ });
1489
+ }
1490
+ };
1491
+ _SeamHttpAccessGrants.ltsVersion = seamApiLtsVersion;
1492
+ var SeamHttpAccessGrants = _SeamHttpAccessGrants;
1493
+
1494
+ // src/lib/seam/connect/routes/access-methods/access-methods.ts
1495
+ var _SeamHttpAccessMethods = class _SeamHttpAccessMethods {
1496
+ constructor(apiKeyOrOptions = {}) {
1497
+ this.ltsVersion = seamApiLtsVersion;
1498
+ const options = parseOptions(apiKeyOrOptions);
1499
+ this.client = "client" in options ? options.client : createClient(options);
1500
+ this.defaults = limitToSeamHttpRequestOptions(options);
1501
+ }
1502
+ static fromClient(client, options = {}) {
1503
+ const constructorOptions = { ...options, client };
1504
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
1505
+ throw new SeamHttpInvalidOptionsError("Missing client");
1506
+ }
1507
+ return new _SeamHttpAccessMethods(constructorOptions);
1508
+ }
1509
+ static fromApiKey(apiKey, options = {}) {
1510
+ const constructorOptions = { ...options, apiKey };
1511
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
1512
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
1513
+ }
1514
+ return new _SeamHttpAccessMethods(constructorOptions);
1515
+ }
1516
+ static fromClientSessionToken(clientSessionToken, options = {}) {
1517
+ const constructorOptions = { ...options, clientSessionToken };
1518
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
1519
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
1520
+ }
1521
+ return new _SeamHttpAccessMethods(constructorOptions);
1522
+ }
1523
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
1524
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
1525
+ const clientOptions = parseOptions({ ...options, publishableKey });
1526
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
1527
+ throw new SeamHttpInvalidOptionsError(
1528
+ "The client option cannot be used with SeamHttpAccessMethods.fromPublishableKey"
1529
+ );
1530
+ }
1531
+ const client = createClient(clientOptions);
1532
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
1533
+ const { token } = await clientSessions.getOrCreate({
1534
+ user_identifier_key: userIdentifierKey
1535
+ });
1536
+ return _SeamHttpAccessMethods.fromClientSessionToken(token, options);
1537
+ }
1538
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
1539
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
1540
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
1541
+ throw new SeamHttpInvalidOptionsError(
1542
+ "Missing consoleSessionToken or workspaceId"
1543
+ );
1544
+ }
1545
+ return new _SeamHttpAccessMethods(constructorOptions);
1546
+ }
1547
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
1548
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
1549
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
1550
+ throw new SeamHttpInvalidOptionsError(
1551
+ "Missing personalAccessToken or workspaceId"
1552
+ );
1553
+ }
1554
+ return new _SeamHttpAccessMethods(constructorOptions);
1555
+ }
1556
+ createPaginator(request) {
1557
+ return new SeamPaginator(this, request);
1558
+ }
1559
+ async updateClientSessionToken(clientSessionToken) {
1560
+ const { headers } = this.client.defaults;
1561
+ const authHeaders = getAuthHeadersForClientSessionToken({
1562
+ clientSessionToken
1563
+ });
1564
+ for (const key of Object.keys(authHeaders)) {
1565
+ if (headers[key] == null) {
1566
+ throw new Error(
1567
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
1568
+ );
1569
+ }
1570
+ }
1571
+ this.client.defaults.headers = { ...headers, ...authHeaders };
1572
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1573
+ await clientSessions.get();
1574
+ }
1575
+ delete(params) {
1576
+ return new SeamHttpRequest(this, {
1577
+ pathname: "/access_methods/delete",
1578
+ method: "POST",
1579
+ body: params,
1360
1580
  responseKey: void 0
1361
1581
  });
1362
1582
  }
1583
+ get(params) {
1584
+ return new SeamHttpRequest(this, {
1585
+ pathname: "/access_methods/get",
1586
+ method: "POST",
1587
+ body: params,
1588
+ responseKey: "access_method"
1589
+ });
1590
+ }
1591
+ list(params) {
1592
+ return new SeamHttpRequest(this, {
1593
+ pathname: "/access_methods/list",
1594
+ method: "POST",
1595
+ body: params,
1596
+ responseKey: "access_methods"
1597
+ });
1598
+ }
1363
1599
  };
1600
+ _SeamHttpAccessMethods.ltsVersion = seamApiLtsVersion;
1601
+ var SeamHttpAccessMethods = _SeamHttpAccessMethods;
1364
1602
 
1365
- // src/lib/seam/connect/routes/acs-access-groups.ts
1366
- var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1603
+ // src/lib/seam/connect/routes/acs/access-groups/access-groups.ts
1604
+ var _SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1367
1605
  constructor(apiKeyOrOptions = {}) {
1606
+ this.ltsVersion = seamApiLtsVersion;
1368
1607
  const options = parseOptions(apiKeyOrOptions);
1369
1608
  this.client = "client" in options ? options.client : createClient(options);
1370
1609
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1395,7 +1634,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1395
1634
  const clientOptions = parseOptions({ ...options, publishableKey });
1396
1635
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1397
1636
  throw new SeamHttpInvalidOptionsError(
1398
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1637
+ "The client option cannot be used with SeamHttpAcsAccessGroups.fromPublishableKey"
1399
1638
  );
1400
1639
  }
1401
1640
  const client = createClient(clientOptions);
@@ -1445,56 +1684,59 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
1445
1684
  addUser(body) {
1446
1685
  return new SeamHttpRequest(this, {
1447
1686
  pathname: "/acs/access_groups/add_user",
1448
- method: "post",
1687
+ method: "PUT",
1449
1688
  body,
1450
1689
  responseKey: void 0
1451
1690
  });
1452
1691
  }
1453
- get(body) {
1692
+ get(params) {
1454
1693
  return new SeamHttpRequest(this, {
1455
1694
  pathname: "/acs/access_groups/get",
1456
- method: "post",
1457
- body,
1695
+ method: "POST",
1696
+ body: params,
1458
1697
  responseKey: "acs_access_group"
1459
1698
  });
1460
1699
  }
1461
- list(body) {
1700
+ list(params) {
1462
1701
  return new SeamHttpRequest(this, {
1463
1702
  pathname: "/acs/access_groups/list",
1464
- method: "post",
1465
- body,
1703
+ method: "POST",
1704
+ body: params,
1466
1705
  responseKey: "acs_access_groups"
1467
1706
  });
1468
1707
  }
1469
- listAccessibleEntrances(body) {
1708
+ listAccessibleEntrances(params) {
1470
1709
  return new SeamHttpRequest(this, {
1471
1710
  pathname: "/acs/access_groups/list_accessible_entrances",
1472
- method: "post",
1473
- body,
1711
+ method: "POST",
1712
+ body: params,
1474
1713
  responseKey: "acs_entrances"
1475
1714
  });
1476
1715
  }
1477
- listUsers(body) {
1716
+ listUsers(params) {
1478
1717
  return new SeamHttpRequest(this, {
1479
1718
  pathname: "/acs/access_groups/list_users",
1480
- method: "post",
1481
- body,
1719
+ method: "POST",
1720
+ body: params,
1482
1721
  responseKey: "acs_users"
1483
1722
  });
1484
1723
  }
1485
- removeUser(body) {
1724
+ removeUser(params) {
1486
1725
  return new SeamHttpRequest(this, {
1487
1726
  pathname: "/acs/access_groups/remove_user",
1488
- method: "post",
1489
- body,
1727
+ method: "POST",
1728
+ body: params,
1490
1729
  responseKey: void 0
1491
1730
  });
1492
1731
  }
1493
1732
  };
1733
+ _SeamHttpAcsAccessGroups.ltsVersion = seamApiLtsVersion;
1734
+ var SeamHttpAcsAccessGroups = _SeamHttpAcsAccessGroups;
1494
1735
 
1495
- // src/lib/seam/connect/routes/acs-credentials.ts
1496
- var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1736
+ // src/lib/seam/connect/routes/acs/credentials/credentials.ts
1737
+ var _SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1497
1738
  constructor(apiKeyOrOptions = {}) {
1739
+ this.ltsVersion = seamApiLtsVersion;
1498
1740
  const options = parseOptions(apiKeyOrOptions);
1499
1741
  this.client = "client" in options ? options.client : createClient(options);
1500
1742
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1525,7 +1767,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1525
1767
  const clientOptions = parseOptions({ ...options, publishableKey });
1526
1768
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1527
1769
  throw new SeamHttpInvalidOptionsError(
1528
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1770
+ "The client option cannot be used with SeamHttpAcsCredentials.fromPublishableKey"
1529
1771
  );
1530
1772
  }
1531
1773
  const client = createClient(clientOptions);
@@ -1575,7 +1817,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1575
1817
  assign(body) {
1576
1818
  return new SeamHttpRequest(this, {
1577
1819
  pathname: "/acs/credentials/assign",
1578
- method: "post",
1820
+ method: "PATCH",
1579
1821
  body,
1580
1822
  responseKey: void 0
1581
1823
  });
@@ -1583,47 +1825,47 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1583
1825
  create(body) {
1584
1826
  return new SeamHttpRequest(this, {
1585
1827
  pathname: "/acs/credentials/create",
1586
- method: "post",
1828
+ method: "POST",
1587
1829
  body,
1588
1830
  responseKey: "acs_credential"
1589
1831
  });
1590
1832
  }
1591
- delete(body) {
1833
+ delete(params) {
1592
1834
  return new SeamHttpRequest(this, {
1593
1835
  pathname: "/acs/credentials/delete",
1594
- method: "post",
1595
- body,
1836
+ method: "POST",
1837
+ body: params,
1596
1838
  responseKey: void 0
1597
1839
  });
1598
1840
  }
1599
- get(body) {
1841
+ get(params) {
1600
1842
  return new SeamHttpRequest(this, {
1601
1843
  pathname: "/acs/credentials/get",
1602
- method: "post",
1603
- body,
1844
+ method: "POST",
1845
+ body: params,
1604
1846
  responseKey: "acs_credential"
1605
1847
  });
1606
1848
  }
1607
- list(body) {
1849
+ list(params) {
1608
1850
  return new SeamHttpRequest(this, {
1609
1851
  pathname: "/acs/credentials/list",
1610
- method: "post",
1611
- body,
1852
+ method: "POST",
1853
+ body: params,
1612
1854
  responseKey: "acs_credentials"
1613
1855
  });
1614
1856
  }
1615
- listAccessibleEntrances(body) {
1857
+ listAccessibleEntrances(params) {
1616
1858
  return new SeamHttpRequest(this, {
1617
1859
  pathname: "/acs/credentials/list_accessible_entrances",
1618
- method: "post",
1619
- body,
1860
+ method: "POST",
1861
+ body: params,
1620
1862
  responseKey: "acs_entrances"
1621
1863
  });
1622
1864
  }
1623
1865
  unassign(body) {
1624
1866
  return new SeamHttpRequest(this, {
1625
1867
  pathname: "/acs/credentials/unassign",
1626
- method: "post",
1868
+ method: "PATCH",
1627
1869
  body,
1628
1870
  responseKey: void 0
1629
1871
  });
@@ -1631,16 +1873,19 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
1631
1873
  update(body) {
1632
1874
  return new SeamHttpRequest(this, {
1633
1875
  pathname: "/acs/credentials/update",
1634
- method: "post",
1876
+ method: "PATCH",
1635
1877
  body,
1636
1878
  responseKey: void 0
1637
1879
  });
1638
1880
  }
1639
1881
  };
1882
+ _SeamHttpAcsCredentials.ltsVersion = seamApiLtsVersion;
1883
+ var SeamHttpAcsCredentials = _SeamHttpAcsCredentials;
1640
1884
 
1641
- // src/lib/seam/connect/routes/acs-encoders-simulate.ts
1642
- var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1885
+ // src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts
1886
+ var _SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1643
1887
  constructor(apiKeyOrOptions = {}) {
1888
+ this.ltsVersion = seamApiLtsVersion;
1644
1889
  const options = parseOptions(apiKeyOrOptions);
1645
1890
  this.client = "client" in options ? options.client : createClient(options);
1646
1891
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1671,7 +1916,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1671
1916
  const clientOptions = parseOptions({ ...options, publishableKey });
1672
1917
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1673
1918
  throw new SeamHttpInvalidOptionsError(
1674
- "The client option cannot be used with SeamHttp.fromPublishableKey"
1919
+ "The client option cannot be used with SeamHttpAcsEncodersSimulate.fromPublishableKey"
1675
1920
  );
1676
1921
  }
1677
1922
  const client = createClient(clientOptions);
@@ -1721,7 +1966,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1721
1966
  nextCredentialEncodeWillFail(body) {
1722
1967
  return new SeamHttpRequest(this, {
1723
1968
  pathname: "/acs/encoders/simulate/next_credential_encode_will_fail",
1724
- method: "post",
1969
+ method: "POST",
1725
1970
  body,
1726
1971
  responseKey: void 0
1727
1972
  });
@@ -1729,7 +1974,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1729
1974
  nextCredentialEncodeWillSucceed(body) {
1730
1975
  return new SeamHttpRequest(this, {
1731
1976
  pathname: "/acs/encoders/simulate/next_credential_encode_will_succeed",
1732
- method: "post",
1977
+ method: "POST",
1733
1978
  body,
1734
1979
  responseKey: void 0
1735
1980
  });
@@ -1737,7 +1982,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1737
1982
  nextCredentialScanWillFail(body) {
1738
1983
  return new SeamHttpRequest(this, {
1739
1984
  pathname: "/acs/encoders/simulate/next_credential_scan_will_fail",
1740
- method: "post",
1985
+ method: "POST",
1741
1986
  body,
1742
1987
  responseKey: void 0
1743
1988
  });
@@ -1745,16 +1990,19 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
1745
1990
  nextCredentialScanWillSucceed(body) {
1746
1991
  return new SeamHttpRequest(this, {
1747
1992
  pathname: "/acs/encoders/simulate/next_credential_scan_will_succeed",
1748
- method: "post",
1993
+ method: "POST",
1749
1994
  body,
1750
1995
  responseKey: void 0
1751
1996
  });
1752
1997
  }
1753
1998
  };
1999
+ _SeamHttpAcsEncodersSimulate.ltsVersion = seamApiLtsVersion;
2000
+ var SeamHttpAcsEncodersSimulate = _SeamHttpAcsEncodersSimulate;
1754
2001
 
1755
- // src/lib/seam/connect/routes/acs-encoders.ts
1756
- var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2002
+ // src/lib/seam/connect/routes/acs/encoders/encoders.ts
2003
+ var _SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
1757
2004
  constructor(apiKeyOrOptions = {}) {
2005
+ this.ltsVersion = seamApiLtsVersion;
1758
2006
  const options = parseOptions(apiKeyOrOptions);
1759
2007
  this.client = "client" in options ? options.client : createClient(options);
1760
2008
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1785,7 +2033,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
1785
2033
  const clientOptions = parseOptions({ ...options, publishableKey });
1786
2034
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1787
2035
  throw new SeamHttpInvalidOptionsError(
1788
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2036
+ "The client option cannot be used with SeamHttpAcsEncoders.fromPublishableKey"
1789
2037
  );
1790
2038
  }
1791
2039
  const client = createClient(clientOptions);
@@ -1838,7 +2086,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
1838
2086
  encodeAccessMethod(body, options = {}) {
1839
2087
  return new SeamHttpRequest(this, {
1840
2088
  pathname: "/acs/encoders/encode_access_method",
1841
- method: "post",
2089
+ method: "POST",
1842
2090
  body,
1843
2091
  responseKey: "action_attempt",
1844
2092
  options
@@ -1847,42 +2095,45 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
1847
2095
  encodeCredential(body, options = {}) {
1848
2096
  return new SeamHttpRequest(this, {
1849
2097
  pathname: "/acs/encoders/encode_credential",
1850
- method: "post",
2098
+ method: "POST",
1851
2099
  body,
1852
2100
  responseKey: "action_attempt",
1853
2101
  options
1854
2102
  });
1855
2103
  }
1856
- get(body) {
2104
+ get(params) {
1857
2105
  return new SeamHttpRequest(this, {
1858
2106
  pathname: "/acs/encoders/get",
1859
- method: "post",
1860
- body,
2107
+ method: "POST",
2108
+ body: params,
1861
2109
  responseKey: "acs_encoder"
1862
2110
  });
1863
2111
  }
1864
- list(body) {
2112
+ list(params) {
1865
2113
  return new SeamHttpRequest(this, {
1866
2114
  pathname: "/acs/encoders/list",
1867
- method: "post",
1868
- body,
2115
+ method: "POST",
2116
+ body: params,
1869
2117
  responseKey: "acs_encoders"
1870
2118
  });
1871
2119
  }
1872
2120
  scanCredential(body, options = {}) {
1873
2121
  return new SeamHttpRequest(this, {
1874
2122
  pathname: "/acs/encoders/scan_credential",
1875
- method: "post",
2123
+ method: "POST",
1876
2124
  body,
1877
2125
  responseKey: "action_attempt",
1878
2126
  options
1879
2127
  });
1880
2128
  }
1881
2129
  };
2130
+ _SeamHttpAcsEncoders.ltsVersion = seamApiLtsVersion;
2131
+ var SeamHttpAcsEncoders = _SeamHttpAcsEncoders;
1882
2132
 
1883
- // src/lib/seam/connect/routes/acs-entrances.ts
1884
- var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
2133
+ // src/lib/seam/connect/routes/acs/entrances/entrances.ts
2134
+ var _SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
1885
2135
  constructor(apiKeyOrOptions = {}) {
2136
+ this.ltsVersion = seamApiLtsVersion;
1886
2137
  const options = parseOptions(apiKeyOrOptions);
1887
2138
  this.client = "client" in options ? options.client : createClient(options);
1888
2139
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -1913,7 +2164,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
1913
2164
  const clientOptions = parseOptions({ ...options, publishableKey });
1914
2165
  if (isSeamHttpOptionsWithClient(clientOptions)) {
1915
2166
  throw new SeamHttpInvalidOptionsError(
1916
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2167
+ "The client option cannot be used with SeamHttpAcsEntrances.fromPublishableKey"
1917
2168
  );
1918
2169
  }
1919
2170
  const client = createClient(clientOptions);
@@ -1960,43 +2211,46 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
1960
2211
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
1961
2212
  await clientSessions.get();
1962
2213
  }
1963
- get(body) {
2214
+ get(params) {
1964
2215
  return new SeamHttpRequest(this, {
1965
2216
  pathname: "/acs/entrances/get",
1966
- method: "post",
1967
- body,
2217
+ method: "POST",
2218
+ body: params,
1968
2219
  responseKey: "acs_entrance"
1969
2220
  });
1970
2221
  }
1971
2222
  grantAccess(body) {
1972
2223
  return new SeamHttpRequest(this, {
1973
2224
  pathname: "/acs/entrances/grant_access",
1974
- method: "post",
2225
+ method: "POST",
1975
2226
  body,
1976
2227
  responseKey: void 0
1977
2228
  });
1978
2229
  }
1979
- list(body) {
2230
+ list(params) {
1980
2231
  return new SeamHttpRequest(this, {
1981
2232
  pathname: "/acs/entrances/list",
1982
- method: "post",
1983
- body,
2233
+ method: "POST",
2234
+ body: params,
1984
2235
  responseKey: "acs_entrances"
1985
2236
  });
1986
2237
  }
1987
- listCredentialsWithAccess(body) {
2238
+ listCredentialsWithAccess(params) {
1988
2239
  return new SeamHttpRequest(this, {
1989
2240
  pathname: "/acs/entrances/list_credentials_with_access",
1990
- method: "post",
1991
- body,
2241
+ method: "POST",
2242
+ body: params,
1992
2243
  responseKey: "acs_credentials"
1993
2244
  });
1994
2245
  }
1995
2246
  };
2247
+ _SeamHttpAcsEntrances.ltsVersion = seamApiLtsVersion;
2248
+ var SeamHttpAcsEntrances = _SeamHttpAcsEntrances;
1996
2249
 
1997
- // src/lib/seam/connect/routes/acs-systems.ts
1998
- var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2250
+ // src/lib/seam/connect/routes/acs/systems/systems.ts
2251
+ var _SeamHttpAcsSystems = class _SeamHttpAcsSystems {
1999
2252
  constructor(apiKeyOrOptions = {}) {
2253
+ this.ltsVersion = seamApiLtsVersion;
2000
2254
  const options = parseOptions(apiKeyOrOptions);
2001
2255
  this.client = "client" in options ? options.client : createClient(options);
2002
2256
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2027,7 +2281,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2027
2281
  const clientOptions = parseOptions({ ...options, publishableKey });
2028
2282
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2029
2283
  throw new SeamHttpInvalidOptionsError(
2030
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2284
+ "The client option cannot be used with SeamHttpAcsSystems.fromPublishableKey"
2031
2285
  );
2032
2286
  }
2033
2287
  const client = createClient(clientOptions);
@@ -2074,35 +2328,38 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
2074
2328
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2075
2329
  await clientSessions.get();
2076
2330
  }
2077
- get(body) {
2331
+ get(params) {
2078
2332
  return new SeamHttpRequest(this, {
2079
2333
  pathname: "/acs/systems/get",
2080
- method: "post",
2081
- body,
2334
+ method: "POST",
2335
+ body: params,
2082
2336
  responseKey: "acs_system"
2083
2337
  });
2084
2338
  }
2085
- list(body) {
2339
+ list(params) {
2086
2340
  return new SeamHttpRequest(this, {
2087
2341
  pathname: "/acs/systems/list",
2088
- method: "post",
2089
- body,
2342
+ method: "POST",
2343
+ body: params,
2090
2344
  responseKey: "acs_systems"
2091
2345
  });
2092
2346
  }
2093
- listCompatibleCredentialManagerAcsSystems(body) {
2347
+ listCompatibleCredentialManagerAcsSystems(params) {
2094
2348
  return new SeamHttpRequest(this, {
2095
2349
  pathname: "/acs/systems/list_compatible_credential_manager_acs_systems",
2096
- method: "post",
2097
- body,
2350
+ method: "POST",
2351
+ body: params,
2098
2352
  responseKey: "acs_systems"
2099
2353
  });
2100
2354
  }
2101
2355
  };
2356
+ _SeamHttpAcsSystems.ltsVersion = seamApiLtsVersion;
2357
+ var SeamHttpAcsSystems = _SeamHttpAcsSystems;
2102
2358
 
2103
- // src/lib/seam/connect/routes/acs-users.ts
2104
- var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2359
+ // src/lib/seam/connect/routes/acs/users/users.ts
2360
+ var _SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2105
2361
  constructor(apiKeyOrOptions = {}) {
2362
+ this.ltsVersion = seamApiLtsVersion;
2106
2363
  const options = parseOptions(apiKeyOrOptions);
2107
2364
  this.client = "client" in options ? options.client : createClient(options);
2108
2365
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2133,7 +2390,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2133
2390
  const clientOptions = parseOptions({ ...options, publishableKey });
2134
2391
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2135
2392
  throw new SeamHttpInvalidOptionsError(
2136
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2393
+ "The client option cannot be used with SeamHttpAcsUsers.fromPublishableKey"
2137
2394
  );
2138
2395
  }
2139
2396
  const client = createClient(clientOptions);
@@ -2183,7 +2440,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2183
2440
  addToAccessGroup(body) {
2184
2441
  return new SeamHttpRequest(this, {
2185
2442
  pathname: "/acs/users/add_to_access_group",
2186
- method: "post",
2443
+ method: "PUT",
2187
2444
  body,
2188
2445
  responseKey: void 0
2189
2446
  });
@@ -2191,63 +2448,63 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2191
2448
  create(body) {
2192
2449
  return new SeamHttpRequest(this, {
2193
2450
  pathname: "/acs/users/create",
2194
- method: "post",
2451
+ method: "POST",
2195
2452
  body,
2196
2453
  responseKey: "acs_user"
2197
2454
  });
2198
2455
  }
2199
- delete(body) {
2456
+ delete(params) {
2200
2457
  return new SeamHttpRequest(this, {
2201
2458
  pathname: "/acs/users/delete",
2202
- method: "post",
2203
- body,
2459
+ method: "POST",
2460
+ body: params,
2204
2461
  responseKey: void 0
2205
2462
  });
2206
2463
  }
2207
- get(body) {
2464
+ get(params) {
2208
2465
  return new SeamHttpRequest(this, {
2209
2466
  pathname: "/acs/users/get",
2210
- method: "post",
2211
- body,
2467
+ method: "POST",
2468
+ body: params,
2212
2469
  responseKey: "acs_user"
2213
2470
  });
2214
2471
  }
2215
- list(body) {
2472
+ list(params) {
2216
2473
  return new SeamHttpRequest(this, {
2217
2474
  pathname: "/acs/users/list",
2218
- method: "post",
2219
- body,
2475
+ method: "POST",
2476
+ body: params,
2220
2477
  responseKey: "acs_users"
2221
2478
  });
2222
2479
  }
2223
- listAccessibleEntrances(body) {
2480
+ listAccessibleEntrances(params) {
2224
2481
  return new SeamHttpRequest(this, {
2225
2482
  pathname: "/acs/users/list_accessible_entrances",
2226
- method: "post",
2227
- body,
2483
+ method: "POST",
2484
+ body: params,
2228
2485
  responseKey: "acs_entrances"
2229
2486
  });
2230
2487
  }
2231
- removeFromAccessGroup(body) {
2488
+ removeFromAccessGroup(params) {
2232
2489
  return new SeamHttpRequest(this, {
2233
2490
  pathname: "/acs/users/remove_from_access_group",
2234
- method: "post",
2235
- body,
2491
+ method: "POST",
2492
+ body: params,
2236
2493
  responseKey: void 0
2237
2494
  });
2238
2495
  }
2239
- revokeAccessToAllEntrances(body) {
2496
+ revokeAccessToAllEntrances(params) {
2240
2497
  return new SeamHttpRequest(this, {
2241
2498
  pathname: "/acs/users/revoke_access_to_all_entrances",
2242
- method: "post",
2243
- body,
2499
+ method: "POST",
2500
+ body: params,
2244
2501
  responseKey: void 0
2245
2502
  });
2246
2503
  }
2247
2504
  suspend(body) {
2248
2505
  return new SeamHttpRequest(this, {
2249
2506
  pathname: "/acs/users/suspend",
2250
- method: "post",
2507
+ method: "POST",
2251
2508
  body,
2252
2509
  responseKey: void 0
2253
2510
  });
@@ -2255,7 +2512,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2255
2512
  unsuspend(body) {
2256
2513
  return new SeamHttpRequest(this, {
2257
2514
  pathname: "/acs/users/unsuspend",
2258
- method: "post",
2515
+ method: "POST",
2259
2516
  body,
2260
2517
  responseKey: void 0
2261
2518
  });
@@ -2263,16 +2520,19 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
2263
2520
  update(body) {
2264
2521
  return new SeamHttpRequest(this, {
2265
2522
  pathname: "/acs/users/update",
2266
- method: "post",
2523
+ method: "PATCH",
2267
2524
  body,
2268
2525
  responseKey: void 0
2269
2526
  });
2270
2527
  }
2271
2528
  };
2529
+ _SeamHttpAcsUsers.ltsVersion = seamApiLtsVersion;
2530
+ var SeamHttpAcsUsers = _SeamHttpAcsUsers;
2272
2531
 
2273
- // src/lib/seam/connect/routes/acs.ts
2274
- var SeamHttpAcs = class _SeamHttpAcs {
2532
+ // src/lib/seam/connect/routes/acs/acs.ts
2533
+ var _SeamHttpAcs = class _SeamHttpAcs {
2275
2534
  constructor(apiKeyOrOptions = {}) {
2535
+ this.ltsVersion = seamApiLtsVersion;
2276
2536
  const options = parseOptions(apiKeyOrOptions);
2277
2537
  this.client = "client" in options ? options.client : createClient(options);
2278
2538
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2303,7 +2563,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
2303
2563
  const clientOptions = parseOptions({ ...options, publishableKey });
2304
2564
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2305
2565
  throw new SeamHttpInvalidOptionsError(
2306
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2566
+ "The client option cannot be used with SeamHttpAcs.fromPublishableKey"
2307
2567
  );
2308
2568
  }
2309
2569
  const client = createClient(clientOptions);
@@ -2356,12 +2616,12 @@ var SeamHttpAcs = class _SeamHttpAcs {
2356
2616
  get credentials() {
2357
2617
  return SeamHttpAcsCredentials.fromClient(this.client, this.defaults);
2358
2618
  }
2359
- get entrances() {
2360
- return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
2361
- }
2362
2619
  get encoders() {
2363
2620
  return SeamHttpAcsEncoders.fromClient(this.client, this.defaults);
2364
2621
  }
2622
+ get entrances() {
2623
+ return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
2624
+ }
2365
2625
  get systems() {
2366
2626
  return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
2367
2627
  }
@@ -2369,10 +2629,13 @@ var SeamHttpAcs = class _SeamHttpAcs {
2369
2629
  return SeamHttpAcsUsers.fromClient(this.client, this.defaults);
2370
2630
  }
2371
2631
  };
2632
+ _SeamHttpAcs.ltsVersion = seamApiLtsVersion;
2633
+ var SeamHttpAcs = _SeamHttpAcs;
2372
2634
 
2373
- // src/lib/seam/connect/routes/action-attempts.ts
2374
- var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2635
+ // src/lib/seam/connect/routes/action-attempts/action-attempts.ts
2636
+ var _SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2375
2637
  constructor(apiKeyOrOptions = {}) {
2638
+ this.ltsVersion = seamApiLtsVersion;
2376
2639
  const options = parseOptions(apiKeyOrOptions);
2377
2640
  this.client = "client" in options ? options.client : createClient(options);
2378
2641
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2403,7 +2666,7 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2403
2666
  const clientOptions = parseOptions({ ...options, publishableKey });
2404
2667
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2405
2668
  throw new SeamHttpInvalidOptionsError(
2406
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2669
+ "The client option cannot be used with SeamHttpActionAttempts.fromPublishableKey"
2407
2670
  );
2408
2671
  }
2409
2672
  const client = createClient(clientOptions);
@@ -2450,28 +2713,31 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
2450
2713
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2451
2714
  await clientSessions.get();
2452
2715
  }
2453
- get(body, options = {}) {
2716
+ get(params, options = {}) {
2454
2717
  return new SeamHttpRequest(this, {
2455
2718
  pathname: "/action_attempts/get",
2456
- method: "post",
2457
- body,
2719
+ method: "POST",
2720
+ body: params,
2458
2721
  responseKey: "action_attempt",
2459
2722
  options
2460
2723
  });
2461
2724
  }
2462
- list(body) {
2725
+ list(params) {
2463
2726
  return new SeamHttpRequest(this, {
2464
2727
  pathname: "/action_attempts/list",
2465
- method: "post",
2466
- body,
2728
+ method: "POST",
2729
+ body: params,
2467
2730
  responseKey: "action_attempts"
2468
2731
  });
2469
2732
  }
2470
2733
  };
2734
+ _SeamHttpActionAttempts.ltsVersion = seamApiLtsVersion;
2735
+ var SeamHttpActionAttempts = _SeamHttpActionAttempts;
2471
2736
 
2472
- // src/lib/seam/connect/routes/connect-webviews.ts
2473
- var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2737
+ // src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts
2738
+ var _SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2474
2739
  constructor(apiKeyOrOptions = {}) {
2740
+ this.ltsVersion = seamApiLtsVersion;
2475
2741
  const options = parseOptions(apiKeyOrOptions);
2476
2742
  this.client = "client" in options ? options.client : createClient(options);
2477
2743
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2502,7 +2768,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2502
2768
  const clientOptions = parseOptions({ ...options, publishableKey });
2503
2769
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2504
2770
  throw new SeamHttpInvalidOptionsError(
2505
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2771
+ "The client option cannot be used with SeamHttpConnectWebviews.fromPublishableKey"
2506
2772
  );
2507
2773
  }
2508
2774
  const client = createClient(clientOptions);
@@ -2552,40 +2818,43 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
2552
2818
  create(body) {
2553
2819
  return new SeamHttpRequest(this, {
2554
2820
  pathname: "/connect_webviews/create",
2555
- method: "post",
2821
+ method: "POST",
2556
2822
  body,
2557
2823
  responseKey: "connect_webview"
2558
2824
  });
2559
2825
  }
2560
- delete(body) {
2826
+ delete(params) {
2561
2827
  return new SeamHttpRequest(this, {
2562
2828
  pathname: "/connect_webviews/delete",
2563
- method: "post",
2564
- body,
2829
+ method: "POST",
2830
+ body: params,
2565
2831
  responseKey: void 0
2566
2832
  });
2567
2833
  }
2568
- get(body) {
2834
+ get(params) {
2569
2835
  return new SeamHttpRequest(this, {
2570
2836
  pathname: "/connect_webviews/get",
2571
- method: "post",
2572
- body,
2837
+ method: "POST",
2838
+ body: params,
2573
2839
  responseKey: "connect_webview"
2574
2840
  });
2575
2841
  }
2576
- list(body) {
2842
+ list(params) {
2577
2843
  return new SeamHttpRequest(this, {
2578
2844
  pathname: "/connect_webviews/list",
2579
- method: "post",
2580
- body,
2845
+ method: "POST",
2846
+ body: params,
2581
2847
  responseKey: "connect_webviews"
2582
2848
  });
2583
2849
  }
2584
2850
  };
2851
+ _SeamHttpConnectWebviews.ltsVersion = seamApiLtsVersion;
2852
+ var SeamHttpConnectWebviews = _SeamHttpConnectWebviews;
2585
2853
 
2586
- // src/lib/seam/connect/routes/connected-accounts.ts
2587
- var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2854
+ // src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts
2855
+ var _SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2588
2856
  constructor(apiKeyOrOptions = {}) {
2857
+ this.ltsVersion = seamApiLtsVersion;
2589
2858
  const options = parseOptions(apiKeyOrOptions);
2590
2859
  this.client = "client" in options ? options.client : createClient(options);
2591
2860
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2616,7 +2885,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2616
2885
  const clientOptions = parseOptions({ ...options, publishableKey });
2617
2886
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2618
2887
  throw new SeamHttpInvalidOptionsError(
2619
- "The client option cannot be used with SeamHttp.fromPublishableKey"
2888
+ "The client option cannot be used with SeamHttpConnectedAccounts.fromPublishableKey"
2620
2889
  );
2621
2890
  }
2622
2891
  const client = createClient(clientOptions);
@@ -2663,34 +2932,34 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2663
2932
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2664
2933
  await clientSessions.get();
2665
2934
  }
2666
- delete(body) {
2935
+ delete(params) {
2667
2936
  return new SeamHttpRequest(this, {
2668
2937
  pathname: "/connected_accounts/delete",
2669
- method: "post",
2670
- body,
2938
+ method: "POST",
2939
+ body: params,
2671
2940
  responseKey: void 0
2672
2941
  });
2673
2942
  }
2674
- get(body) {
2943
+ get(params) {
2675
2944
  return new SeamHttpRequest(this, {
2676
2945
  pathname: "/connected_accounts/get",
2677
- method: "post",
2678
- body,
2946
+ method: "POST",
2947
+ body: params,
2679
2948
  responseKey: "connected_account"
2680
2949
  });
2681
2950
  }
2682
- list(body) {
2951
+ list(params) {
2683
2952
  return new SeamHttpRequest(this, {
2684
2953
  pathname: "/connected_accounts/list",
2685
- method: "post",
2686
- body,
2954
+ method: "POST",
2955
+ body: params,
2687
2956
  responseKey: "connected_accounts"
2688
2957
  });
2689
2958
  }
2690
2959
  sync(body) {
2691
2960
  return new SeamHttpRequest(this, {
2692
2961
  pathname: "/connected_accounts/sync",
2693
- method: "post",
2962
+ method: "POST",
2694
2963
  body,
2695
2964
  responseKey: void 0
2696
2965
  });
@@ -2698,16 +2967,19 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
2698
2967
  update(body) {
2699
2968
  return new SeamHttpRequest(this, {
2700
2969
  pathname: "/connected_accounts/update",
2701
- method: "post",
2970
+ method: "POST",
2702
2971
  body,
2703
2972
  responseKey: void 0
2704
2973
  });
2705
2974
  }
2706
2975
  };
2976
+ _SeamHttpConnectedAccounts.ltsVersion = seamApiLtsVersion;
2977
+ var SeamHttpConnectedAccounts = _SeamHttpConnectedAccounts;
2707
2978
 
2708
- // src/lib/seam/connect/routes/devices-simulate.ts
2709
- var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2979
+ // src/lib/seam/connect/routes/devices/simulate/simulate.ts
2980
+ var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2710
2981
  constructor(apiKeyOrOptions = {}) {
2982
+ this.ltsVersion = seamApiLtsVersion;
2711
2983
  const options = parseOptions(apiKeyOrOptions);
2712
2984
  this.client = "client" in options ? options.client : createClient(options);
2713
2985
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2738,7 +3010,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2738
3010
  const clientOptions = parseOptions({ ...options, publishableKey });
2739
3011
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2740
3012
  throw new SeamHttpInvalidOptionsError(
2741
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3013
+ "The client option cannot be used with SeamHttpDevicesSimulate.fromPublishableKey"
2742
3014
  );
2743
3015
  }
2744
3016
  const client = createClient(clientOptions);
@@ -2788,7 +3060,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2788
3060
  connect(body) {
2789
3061
  return new SeamHttpRequest(this, {
2790
3062
  pathname: "/devices/simulate/connect",
2791
- method: "post",
3063
+ method: "POST",
2792
3064
  body,
2793
3065
  responseKey: void 0
2794
3066
  });
@@ -2796,7 +3068,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2796
3068
  disconnect(body) {
2797
3069
  return new SeamHttpRequest(this, {
2798
3070
  pathname: "/devices/simulate/disconnect",
2799
- method: "post",
3071
+ method: "POST",
2800
3072
  body,
2801
3073
  responseKey: void 0
2802
3074
  });
@@ -2804,16 +3076,19 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
2804
3076
  remove(body) {
2805
3077
  return new SeamHttpRequest(this, {
2806
3078
  pathname: "/devices/simulate/remove",
2807
- method: "post",
3079
+ method: "POST",
2808
3080
  body,
2809
3081
  responseKey: void 0
2810
3082
  });
2811
3083
  }
2812
3084
  };
3085
+ _SeamHttpDevicesSimulate.ltsVersion = seamApiLtsVersion;
3086
+ var SeamHttpDevicesSimulate = _SeamHttpDevicesSimulate;
2813
3087
 
2814
- // src/lib/seam/connect/routes/devices-unmanaged.ts
2815
- var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
3088
+ // src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts
3089
+ var _SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
2816
3090
  constructor(apiKeyOrOptions = {}) {
3091
+ this.ltsVersion = seamApiLtsVersion;
2817
3092
  const options = parseOptions(apiKeyOrOptions);
2818
3093
  this.client = "client" in options ? options.client : createClient(options);
2819
3094
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2844,7 +3119,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
2844
3119
  const clientOptions = parseOptions({ ...options, publishableKey });
2845
3120
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2846
3121
  throw new SeamHttpInvalidOptionsError(
2847
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3122
+ "The client option cannot be used with SeamHttpDevicesUnmanaged.fromPublishableKey"
2848
3123
  );
2849
3124
  }
2850
3125
  const client = createClient(clientOptions);
@@ -2891,35 +3166,38 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
2891
3166
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2892
3167
  await clientSessions.get();
2893
3168
  }
2894
- get(body) {
3169
+ get(params) {
2895
3170
  return new SeamHttpRequest(this, {
2896
3171
  pathname: "/devices/unmanaged/get",
2897
- method: "post",
2898
- body,
3172
+ method: "POST",
3173
+ body: params,
2899
3174
  responseKey: "device"
2900
3175
  });
2901
3176
  }
2902
- list(body) {
3177
+ list(params) {
2903
3178
  return new SeamHttpRequest(this, {
2904
3179
  pathname: "/devices/unmanaged/list",
2905
- method: "post",
2906
- body,
3180
+ method: "POST",
3181
+ body: params,
2907
3182
  responseKey: "devices"
2908
3183
  });
2909
3184
  }
2910
3185
  update(body) {
2911
3186
  return new SeamHttpRequest(this, {
2912
3187
  pathname: "/devices/unmanaged/update",
2913
- method: "post",
3188
+ method: "PATCH",
2914
3189
  body,
2915
3190
  responseKey: void 0
2916
3191
  });
2917
3192
  }
2918
3193
  };
3194
+ _SeamHttpDevicesUnmanaged.ltsVersion = seamApiLtsVersion;
3195
+ var SeamHttpDevicesUnmanaged = _SeamHttpDevicesUnmanaged;
2919
3196
 
2920
- // src/lib/seam/connect/routes/devices.ts
2921
- var SeamHttpDevices = class _SeamHttpDevices {
3197
+ // src/lib/seam/connect/routes/devices/devices.ts
3198
+ var _SeamHttpDevices = class _SeamHttpDevices {
2922
3199
  constructor(apiKeyOrOptions = {}) {
3200
+ this.ltsVersion = seamApiLtsVersion;
2923
3201
  const options = parseOptions(apiKeyOrOptions);
2924
3202
  this.client = "client" in options ? options.client : createClient(options);
2925
3203
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -2950,7 +3228,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
2950
3228
  const clientOptions = parseOptions({ ...options, publishableKey });
2951
3229
  if (isSeamHttpOptionsWithClient(clientOptions)) {
2952
3230
  throw new SeamHttpInvalidOptionsError(
2953
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3231
+ "The client option cannot be used with SeamHttpDevices.fromPublishableKey"
2954
3232
  );
2955
3233
  }
2956
3234
  const client = createClient(clientOptions);
@@ -2997,49 +3275,52 @@ var SeamHttpDevices = class _SeamHttpDevices {
2997
3275
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2998
3276
  await clientSessions.get();
2999
3277
  }
3000
- get unmanaged() {
3001
- return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
3002
- }
3003
3278
  get simulate() {
3004
3279
  return SeamHttpDevicesSimulate.fromClient(this.client, this.defaults);
3005
3280
  }
3006
- get(body) {
3281
+ get unmanaged() {
3282
+ return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
3283
+ }
3284
+ get(params) {
3007
3285
  return new SeamHttpRequest(this, {
3008
3286
  pathname: "/devices/get",
3009
- method: "post",
3010
- body,
3287
+ method: "POST",
3288
+ body: params,
3011
3289
  responseKey: "device"
3012
3290
  });
3013
3291
  }
3014
- list(body) {
3292
+ list(params) {
3015
3293
  return new SeamHttpRequest(this, {
3016
3294
  pathname: "/devices/list",
3017
- method: "post",
3018
- body,
3295
+ method: "POST",
3296
+ body: params,
3019
3297
  responseKey: "devices"
3020
3298
  });
3021
3299
  }
3022
- listDeviceProviders(body) {
3300
+ listDeviceProviders(params) {
3023
3301
  return new SeamHttpRequest(this, {
3024
3302
  pathname: "/devices/list_device_providers",
3025
- method: "post",
3026
- body,
3303
+ method: "POST",
3304
+ body: params,
3027
3305
  responseKey: "device_providers"
3028
3306
  });
3029
3307
  }
3030
3308
  update(body) {
3031
3309
  return new SeamHttpRequest(this, {
3032
3310
  pathname: "/devices/update",
3033
- method: "post",
3311
+ method: "PATCH",
3034
3312
  body,
3035
3313
  responseKey: void 0
3036
3314
  });
3037
3315
  }
3038
3316
  };
3317
+ _SeamHttpDevices.ltsVersion = seamApiLtsVersion;
3318
+ var SeamHttpDevices = _SeamHttpDevices;
3039
3319
 
3040
- // src/lib/seam/connect/routes/events.ts
3041
- var SeamHttpEvents = class _SeamHttpEvents {
3320
+ // src/lib/seam/connect/routes/events/events.ts
3321
+ var _SeamHttpEvents = class _SeamHttpEvents {
3042
3322
  constructor(apiKeyOrOptions = {}) {
3323
+ this.ltsVersion = seamApiLtsVersion;
3043
3324
  const options = parseOptions(apiKeyOrOptions);
3044
3325
  this.client = "client" in options ? options.client : createClient(options);
3045
3326
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3070,7 +3351,7 @@ var SeamHttpEvents = class _SeamHttpEvents {
3070
3351
  const clientOptions = parseOptions({ ...options, publishableKey });
3071
3352
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3072
3353
  throw new SeamHttpInvalidOptionsError(
3073
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3354
+ "The client option cannot be used with SeamHttpEvents.fromPublishableKey"
3074
3355
  );
3075
3356
  }
3076
3357
  const client = createClient(clientOptions);
@@ -3117,27 +3398,30 @@ var SeamHttpEvents = class _SeamHttpEvents {
3117
3398
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3118
3399
  await clientSessions.get();
3119
3400
  }
3120
- get(body) {
3401
+ get(params) {
3121
3402
  return new SeamHttpRequest(this, {
3122
3403
  pathname: "/events/get",
3123
- method: "post",
3124
- body,
3404
+ method: "POST",
3405
+ body: params,
3125
3406
  responseKey: "event"
3126
3407
  });
3127
3408
  }
3128
- list(body) {
3409
+ list(params) {
3129
3410
  return new SeamHttpRequest(this, {
3130
3411
  pathname: "/events/list",
3131
- method: "post",
3132
- body,
3412
+ method: "POST",
3413
+ body: params,
3133
3414
  responseKey: "events"
3134
3415
  });
3135
3416
  }
3136
3417
  };
3418
+ _SeamHttpEvents.ltsVersion = seamApiLtsVersion;
3419
+ var SeamHttpEvents = _SeamHttpEvents;
3137
3420
 
3138
- // src/lib/seam/connect/routes/locks.ts
3139
- var SeamHttpLocks = class _SeamHttpLocks {
3421
+ // src/lib/seam/connect/routes/locks/locks.ts
3422
+ var _SeamHttpLocks = class _SeamHttpLocks {
3140
3423
  constructor(apiKeyOrOptions = {}) {
3424
+ this.ltsVersion = seamApiLtsVersion;
3141
3425
  const options = parseOptions(apiKeyOrOptions);
3142
3426
  this.client = "client" in options ? options.client : createClient(options);
3143
3427
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3168,7 +3452,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
3168
3452
  const clientOptions = parseOptions({ ...options, publishableKey });
3169
3453
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3170
3454
  throw new SeamHttpInvalidOptionsError(
3171
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3455
+ "The client option cannot be used with SeamHttpLocks.fromPublishableKey"
3172
3456
  );
3173
3457
  }
3174
3458
  const client = createClient(clientOptions);
@@ -3215,26 +3499,26 @@ var SeamHttpLocks = class _SeamHttpLocks {
3215
3499
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3216
3500
  await clientSessions.get();
3217
3501
  }
3218
- get(body) {
3502
+ get(params) {
3219
3503
  return new SeamHttpRequest(this, {
3220
3504
  pathname: "/locks/get",
3221
- method: "post",
3222
- body,
3505
+ method: "POST",
3506
+ body: params,
3223
3507
  responseKey: "device"
3224
3508
  });
3225
3509
  }
3226
- list(body) {
3510
+ list(params) {
3227
3511
  return new SeamHttpRequest(this, {
3228
3512
  pathname: "/locks/list",
3229
- method: "post",
3230
- body,
3513
+ method: "POST",
3514
+ body: params,
3231
3515
  responseKey: "devices"
3232
3516
  });
3233
3517
  }
3234
3518
  lockDoor(body, options = {}) {
3235
3519
  return new SeamHttpRequest(this, {
3236
3520
  pathname: "/locks/lock_door",
3237
- method: "post",
3521
+ method: "POST",
3238
3522
  body,
3239
3523
  responseKey: "action_attempt",
3240
3524
  options
@@ -3243,17 +3527,20 @@ var SeamHttpLocks = class _SeamHttpLocks {
3243
3527
  unlockDoor(body, options = {}) {
3244
3528
  return new SeamHttpRequest(this, {
3245
3529
  pathname: "/locks/unlock_door",
3246
- method: "post",
3530
+ method: "POST",
3247
3531
  body,
3248
3532
  responseKey: "action_attempt",
3249
3533
  options
3250
3534
  });
3251
3535
  }
3252
3536
  };
3537
+ _SeamHttpLocks.ltsVersion = seamApiLtsVersion;
3538
+ var SeamHttpLocks = _SeamHttpLocks;
3253
3539
 
3254
- // src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts
3255
- var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
3540
+ // src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts
3541
+ var _SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
3256
3542
  constructor(apiKeyOrOptions = {}) {
3543
+ this.ltsVersion = seamApiLtsVersion;
3257
3544
  const options = parseOptions(apiKeyOrOptions);
3258
3545
  this.client = "client" in options ? options.client : createClient(options);
3259
3546
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3284,7 +3571,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3284
3571
  const clientOptions = parseOptions({ ...options, publishableKey });
3285
3572
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3286
3573
  throw new SeamHttpInvalidOptionsError(
3287
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3574
+ "The client option cannot be used with SeamHttpNoiseSensorsNoiseThresholds.fromPublishableKey"
3288
3575
  );
3289
3576
  }
3290
3577
  const client = createClient(clientOptions);
@@ -3337,48 +3624,51 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
3337
3624
  create(body) {
3338
3625
  return new SeamHttpRequest(this, {
3339
3626
  pathname: "/noise_sensors/noise_thresholds/create",
3340
- method: "post",
3627
+ method: "POST",
3341
3628
  body,
3342
3629
  responseKey: "noise_threshold"
3343
3630
  });
3344
3631
  }
3345
- delete(body) {
3632
+ delete(params) {
3346
3633
  return new SeamHttpRequest(this, {
3347
3634
  pathname: "/noise_sensors/noise_thresholds/delete",
3348
- method: "post",
3349
- body,
3635
+ method: "POST",
3636
+ body: params,
3350
3637
  responseKey: void 0
3351
3638
  });
3352
3639
  }
3353
- get(body) {
3640
+ get(params) {
3354
3641
  return new SeamHttpRequest(this, {
3355
3642
  pathname: "/noise_sensors/noise_thresholds/get",
3356
- method: "post",
3357
- body,
3643
+ method: "POST",
3644
+ body: params,
3358
3645
  responseKey: "noise_threshold"
3359
3646
  });
3360
3647
  }
3361
- list(body) {
3648
+ list(params) {
3362
3649
  return new SeamHttpRequest(this, {
3363
3650
  pathname: "/noise_sensors/noise_thresholds/list",
3364
- method: "post",
3365
- body,
3651
+ method: "POST",
3652
+ body: params,
3366
3653
  responseKey: "noise_thresholds"
3367
3654
  });
3368
3655
  }
3369
3656
  update(body) {
3370
3657
  return new SeamHttpRequest(this, {
3371
3658
  pathname: "/noise_sensors/noise_thresholds/update",
3372
- method: "post",
3659
+ method: "PUT",
3373
3660
  body,
3374
3661
  responseKey: void 0
3375
3662
  });
3376
3663
  }
3377
3664
  };
3665
+ _SeamHttpNoiseSensorsNoiseThresholds.ltsVersion = seamApiLtsVersion;
3666
+ var SeamHttpNoiseSensorsNoiseThresholds = _SeamHttpNoiseSensorsNoiseThresholds;
3378
3667
 
3379
- // src/lib/seam/connect/routes/noise-sensors-simulate.ts
3380
- var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3668
+ // src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts
3669
+ var _SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3381
3670
  constructor(apiKeyOrOptions = {}) {
3671
+ this.ltsVersion = seamApiLtsVersion;
3382
3672
  const options = parseOptions(apiKeyOrOptions);
3383
3673
  this.client = "client" in options ? options.client : createClient(options);
3384
3674
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3409,7 +3699,7 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3409
3699
  const clientOptions = parseOptions({ ...options, publishableKey });
3410
3700
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3411
3701
  throw new SeamHttpInvalidOptionsError(
3412
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3702
+ "The client option cannot be used with SeamHttpNoiseSensorsSimulate.fromPublishableKey"
3413
3703
  );
3414
3704
  }
3415
3705
  const client = createClient(clientOptions);
@@ -3459,16 +3749,19 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
3459
3749
  triggerNoiseThreshold(body) {
3460
3750
  return new SeamHttpRequest(this, {
3461
3751
  pathname: "/noise_sensors/simulate/trigger_noise_threshold",
3462
- method: "post",
3752
+ method: "POST",
3463
3753
  body,
3464
3754
  responseKey: void 0
3465
3755
  });
3466
3756
  }
3467
3757
  };
3758
+ _SeamHttpNoiseSensorsSimulate.ltsVersion = seamApiLtsVersion;
3759
+ var SeamHttpNoiseSensorsSimulate = _SeamHttpNoiseSensorsSimulate;
3468
3760
 
3469
- // src/lib/seam/connect/routes/noise-sensors.ts
3470
- var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
3761
+ // src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts
3762
+ var _SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
3471
3763
  constructor(apiKeyOrOptions = {}) {
3764
+ this.ltsVersion = seamApiLtsVersion;
3472
3765
  const options = parseOptions(apiKeyOrOptions);
3473
3766
  this.client = "client" in options ? options.client : createClient(options);
3474
3767
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3499,7 +3792,7 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
3499
3792
  const clientOptions = parseOptions({ ...options, publishableKey });
3500
3793
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3501
3794
  throw new SeamHttpInvalidOptionsError(
3502
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3795
+ "The client option cannot be used with SeamHttpNoiseSensors.fromPublishableKey"
3503
3796
  );
3504
3797
  }
3505
3798
  const client = createClient(clientOptions);
@@ -3555,19 +3848,22 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
3555
3848
  get simulate() {
3556
3849
  return SeamHttpNoiseSensorsSimulate.fromClient(this.client, this.defaults);
3557
3850
  }
3558
- list(body) {
3851
+ list(params) {
3559
3852
  return new SeamHttpRequest(this, {
3560
3853
  pathname: "/noise_sensors/list",
3561
- method: "post",
3562
- body,
3854
+ method: "POST",
3855
+ body: params,
3563
3856
  responseKey: "devices"
3564
3857
  });
3565
3858
  }
3566
3859
  };
3860
+ _SeamHttpNoiseSensors.ltsVersion = seamApiLtsVersion;
3861
+ var SeamHttpNoiseSensors = _SeamHttpNoiseSensors;
3567
3862
 
3568
- // src/lib/seam/connect/routes/phones-simulate.ts
3569
- var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
3863
+ // src/lib/seam/connect/routes/phones/simulate/simulate.ts
3864
+ var _SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
3570
3865
  constructor(apiKeyOrOptions = {}) {
3866
+ this.ltsVersion = seamApiLtsVersion;
3571
3867
  const options = parseOptions(apiKeyOrOptions);
3572
3868
  this.client = "client" in options ? options.client : createClient(options);
3573
3869
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3598,7 +3894,7 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
3598
3894
  const clientOptions = parseOptions({ ...options, publishableKey });
3599
3895
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3600
3896
  throw new SeamHttpInvalidOptionsError(
3601
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3897
+ "The client option cannot be used with SeamHttpPhonesSimulate.fromPublishableKey"
3602
3898
  );
3603
3899
  }
3604
3900
  const client = createClient(clientOptions);
@@ -3648,16 +3944,19 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
3648
3944
  createSandboxPhone(body) {
3649
3945
  return new SeamHttpRequest(this, {
3650
3946
  pathname: "/phones/simulate/create_sandbox_phone",
3651
- method: "post",
3947
+ method: "POST",
3652
3948
  body,
3653
3949
  responseKey: "phone"
3654
3950
  });
3655
3951
  }
3656
3952
  };
3953
+ _SeamHttpPhonesSimulate.ltsVersion = seamApiLtsVersion;
3954
+ var SeamHttpPhonesSimulate = _SeamHttpPhonesSimulate;
3657
3955
 
3658
- // src/lib/seam/connect/routes/phones.ts
3659
- var SeamHttpPhones = class _SeamHttpPhones {
3956
+ // src/lib/seam/connect/routes/phones/phones.ts
3957
+ var _SeamHttpPhones = class _SeamHttpPhones {
3660
3958
  constructor(apiKeyOrOptions = {}) {
3959
+ this.ltsVersion = seamApiLtsVersion;
3661
3960
  const options = parseOptions(apiKeyOrOptions);
3662
3961
  this.client = "client" in options ? options.client : createClient(options);
3663
3962
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3688,7 +3987,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
3688
3987
  const clientOptions = parseOptions({ ...options, publishableKey });
3689
3988
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3690
3989
  throw new SeamHttpInvalidOptionsError(
3691
- "The client option cannot be used with SeamHttp.fromPublishableKey"
3990
+ "The client option cannot be used with SeamHttpPhones.fromPublishableKey"
3692
3991
  );
3693
3992
  }
3694
3993
  const client = createClient(clientOptions);
@@ -3738,35 +4037,195 @@ var SeamHttpPhones = class _SeamHttpPhones {
3738
4037
  get simulate() {
3739
4038
  return SeamHttpPhonesSimulate.fromClient(this.client, this.defaults);
3740
4039
  }
3741
- deactivate(body) {
4040
+ deactivate(params) {
3742
4041
  return new SeamHttpRequest(this, {
3743
4042
  pathname: "/phones/deactivate",
3744
- method: "post",
3745
- body,
4043
+ method: "POST",
4044
+ body: params,
3746
4045
  responseKey: void 0
3747
4046
  });
3748
4047
  }
3749
- get(body) {
4048
+ get(params) {
3750
4049
  return new SeamHttpRequest(this, {
3751
4050
  pathname: "/phones/get",
3752
- method: "post",
3753
- body,
4051
+ method: "POST",
4052
+ body: params,
3754
4053
  responseKey: "phone"
3755
4054
  });
3756
4055
  }
3757
- list(body) {
4056
+ list(params) {
3758
4057
  return new SeamHttpRequest(this, {
3759
4058
  pathname: "/phones/list",
3760
- method: "post",
3761
- body,
4059
+ method: "POST",
4060
+ body: params,
3762
4061
  responseKey: "phones"
3763
4062
  });
3764
4063
  }
3765
4064
  };
4065
+ _SeamHttpPhones.ltsVersion = seamApiLtsVersion;
4066
+ var SeamHttpPhones = _SeamHttpPhones;
4067
+
4068
+ // src/lib/seam/connect/routes/spaces/spaces.ts
4069
+ var _SeamHttpSpaces = class _SeamHttpSpaces {
4070
+ constructor(apiKeyOrOptions = {}) {
4071
+ this.ltsVersion = seamApiLtsVersion;
4072
+ const options = parseOptions(apiKeyOrOptions);
4073
+ this.client = "client" in options ? options.client : createClient(options);
4074
+ this.defaults = limitToSeamHttpRequestOptions(options);
4075
+ }
4076
+ static fromClient(client, options = {}) {
4077
+ const constructorOptions = { ...options, client };
4078
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
4079
+ throw new SeamHttpInvalidOptionsError("Missing client");
4080
+ }
4081
+ return new _SeamHttpSpaces(constructorOptions);
4082
+ }
4083
+ static fromApiKey(apiKey, options = {}) {
4084
+ const constructorOptions = { ...options, apiKey };
4085
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
4086
+ throw new SeamHttpInvalidOptionsError("Missing apiKey");
4087
+ }
4088
+ return new _SeamHttpSpaces(constructorOptions);
4089
+ }
4090
+ static fromClientSessionToken(clientSessionToken, options = {}) {
4091
+ const constructorOptions = { ...options, clientSessionToken };
4092
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
4093
+ throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
4094
+ }
4095
+ return new _SeamHttpSpaces(constructorOptions);
4096
+ }
4097
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
4098
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
4099
+ const clientOptions = parseOptions({ ...options, publishableKey });
4100
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
4101
+ throw new SeamHttpInvalidOptionsError(
4102
+ "The client option cannot be used with SeamHttpSpaces.fromPublishableKey"
4103
+ );
4104
+ }
4105
+ const client = createClient(clientOptions);
4106
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
4107
+ const { token } = await clientSessions.getOrCreate({
4108
+ user_identifier_key: userIdentifierKey
4109
+ });
4110
+ return _SeamHttpSpaces.fromClientSessionToken(token, options);
4111
+ }
4112
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
4113
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
4114
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
4115
+ throw new SeamHttpInvalidOptionsError(
4116
+ "Missing consoleSessionToken or workspaceId"
4117
+ );
4118
+ }
4119
+ return new _SeamHttpSpaces(constructorOptions);
4120
+ }
4121
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
4122
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
4123
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
4124
+ throw new SeamHttpInvalidOptionsError(
4125
+ "Missing personalAccessToken or workspaceId"
4126
+ );
4127
+ }
4128
+ return new _SeamHttpSpaces(constructorOptions);
4129
+ }
4130
+ createPaginator(request) {
4131
+ return new SeamPaginator(this, request);
4132
+ }
4133
+ async updateClientSessionToken(clientSessionToken) {
4134
+ const { headers } = this.client.defaults;
4135
+ const authHeaders = getAuthHeadersForClientSessionToken({
4136
+ clientSessionToken
4137
+ });
4138
+ for (const key of Object.keys(authHeaders)) {
4139
+ if (headers[key] == null) {
4140
+ throw new Error(
4141
+ "Cannot update a clientSessionToken on a client created without a clientSessionToken"
4142
+ );
4143
+ }
4144
+ }
4145
+ this.client.defaults.headers = { ...headers, ...authHeaders };
4146
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4147
+ await clientSessions.get();
4148
+ }
4149
+ addAcsEntrances(body) {
4150
+ return new SeamHttpRequest(this, {
4151
+ pathname: "/spaces/add_acs_entrances",
4152
+ method: "PUT",
4153
+ body,
4154
+ responseKey: void 0
4155
+ });
4156
+ }
4157
+ addDevices(body) {
4158
+ return new SeamHttpRequest(this, {
4159
+ pathname: "/spaces/add_devices",
4160
+ method: "PUT",
4161
+ body,
4162
+ responseKey: void 0
4163
+ });
4164
+ }
4165
+ create(body) {
4166
+ return new SeamHttpRequest(this, {
4167
+ pathname: "/spaces/create",
4168
+ method: "POST",
4169
+ body,
4170
+ responseKey: "space"
4171
+ });
4172
+ }
4173
+ delete(params) {
4174
+ return new SeamHttpRequest(this, {
4175
+ pathname: "/spaces/delete",
4176
+ method: "POST",
4177
+ body: params,
4178
+ responseKey: void 0
4179
+ });
4180
+ }
4181
+ get(params) {
4182
+ return new SeamHttpRequest(this, {
4183
+ pathname: "/spaces/get",
4184
+ method: "POST",
4185
+ body: params,
4186
+ responseKey: "space"
4187
+ });
4188
+ }
4189
+ list(params) {
4190
+ return new SeamHttpRequest(this, {
4191
+ pathname: "/spaces/list",
4192
+ method: "GET",
4193
+ params,
4194
+ responseKey: "spaces"
4195
+ });
4196
+ }
4197
+ removeAcsEntrances(params) {
4198
+ return new SeamHttpRequest(this, {
4199
+ pathname: "/spaces/remove_acs_entrances",
4200
+ method: "POST",
4201
+ body: params,
4202
+ responseKey: void 0
4203
+ });
4204
+ }
4205
+ removeDevices(params) {
4206
+ return new SeamHttpRequest(this, {
4207
+ pathname: "/spaces/remove_devices",
4208
+ method: "POST",
4209
+ body: params,
4210
+ responseKey: void 0
4211
+ });
4212
+ }
4213
+ update(body) {
4214
+ return new SeamHttpRequest(this, {
4215
+ pathname: "/spaces/update",
4216
+ method: "PATCH",
4217
+ body,
4218
+ responseKey: "space"
4219
+ });
4220
+ }
4221
+ };
4222
+ _SeamHttpSpaces.ltsVersion = seamApiLtsVersion;
4223
+ var SeamHttpSpaces = _SeamHttpSpaces;
3766
4224
 
3767
- // src/lib/seam/connect/routes/thermostats-daily-programs.ts
3768
- var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
4225
+ // src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts
4226
+ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
3769
4227
  constructor(apiKeyOrOptions = {}) {
4228
+ this.ltsVersion = seamApiLtsVersion;
3770
4229
  const options = parseOptions(apiKeyOrOptions);
3771
4230
  this.client = "client" in options ? options.client : createClient(options);
3772
4231
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3797,7 +4256,7 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
3797
4256
  const clientOptions = parseOptions({ ...options, publishableKey });
3798
4257
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3799
4258
  throw new SeamHttpInvalidOptionsError(
3800
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4259
+ "The client option cannot be used with SeamHttpThermostatsDailyPrograms.fromPublishableKey"
3801
4260
  );
3802
4261
  }
3803
4262
  const client = createClient(clientOptions);
@@ -3850,33 +4309,36 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
3850
4309
  create(body) {
3851
4310
  return new SeamHttpRequest(this, {
3852
4311
  pathname: "/thermostats/daily_programs/create",
3853
- method: "post",
4312
+ method: "POST",
3854
4313
  body,
3855
4314
  responseKey: "thermostat_daily_program"
3856
4315
  });
3857
4316
  }
3858
- delete(body) {
4317
+ delete(params) {
3859
4318
  return new SeamHttpRequest(this, {
3860
4319
  pathname: "/thermostats/daily_programs/delete",
3861
- method: "post",
3862
- body,
4320
+ method: "POST",
4321
+ body: params,
3863
4322
  responseKey: void 0
3864
4323
  });
3865
4324
  }
3866
4325
  update(body, options = {}) {
3867
4326
  return new SeamHttpRequest(this, {
3868
4327
  pathname: "/thermostats/daily_programs/update",
3869
- method: "post",
4328
+ method: "PATCH",
3870
4329
  body,
3871
4330
  responseKey: "action_attempt",
3872
4331
  options
3873
4332
  });
3874
4333
  }
3875
4334
  };
4335
+ _SeamHttpThermostatsDailyPrograms.ltsVersion = seamApiLtsVersion;
4336
+ var SeamHttpThermostatsDailyPrograms = _SeamHttpThermostatsDailyPrograms;
3876
4337
 
3877
- // src/lib/seam/connect/routes/thermostats-schedules.ts
3878
- var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
4338
+ // src/lib/seam/connect/routes/thermostats/schedules/schedules.ts
4339
+ var _SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
3879
4340
  constructor(apiKeyOrOptions = {}) {
4341
+ this.ltsVersion = seamApiLtsVersion;
3880
4342
  const options = parseOptions(apiKeyOrOptions);
3881
4343
  this.client = "client" in options ? options.client : createClient(options);
3882
4344
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -3907,7 +4369,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
3907
4369
  const clientOptions = parseOptions({ ...options, publishableKey });
3908
4370
  if (isSeamHttpOptionsWithClient(clientOptions)) {
3909
4371
  throw new SeamHttpInvalidOptionsError(
3910
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4372
+ "The client option cannot be used with SeamHttpThermostatsSchedules.fromPublishableKey"
3911
4373
  );
3912
4374
  }
3913
4375
  const client = createClient(clientOptions);
@@ -3957,48 +4419,51 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
3957
4419
  create(body) {
3958
4420
  return new SeamHttpRequest(this, {
3959
4421
  pathname: "/thermostats/schedules/create",
3960
- method: "post",
4422
+ method: "POST",
3961
4423
  body,
3962
4424
  responseKey: "thermostat_schedule"
3963
4425
  });
3964
4426
  }
3965
- delete(body) {
4427
+ delete(params) {
3966
4428
  return new SeamHttpRequest(this, {
3967
4429
  pathname: "/thermostats/schedules/delete",
3968
- method: "post",
3969
- body,
4430
+ method: "POST",
4431
+ body: params,
3970
4432
  responseKey: void 0
3971
4433
  });
3972
4434
  }
3973
- get(body) {
4435
+ get(params) {
3974
4436
  return new SeamHttpRequest(this, {
3975
4437
  pathname: "/thermostats/schedules/get",
3976
- method: "post",
3977
- body,
4438
+ method: "POST",
4439
+ body: params,
3978
4440
  responseKey: "thermostat_schedule"
3979
4441
  });
3980
4442
  }
3981
- list(body) {
4443
+ list(params) {
3982
4444
  return new SeamHttpRequest(this, {
3983
4445
  pathname: "/thermostats/schedules/list",
3984
- method: "post",
3985
- body,
4446
+ method: "POST",
4447
+ body: params,
3986
4448
  responseKey: "thermostat_schedules"
3987
4449
  });
3988
4450
  }
3989
4451
  update(body) {
3990
4452
  return new SeamHttpRequest(this, {
3991
4453
  pathname: "/thermostats/schedules/update",
3992
- method: "post",
4454
+ method: "PATCH",
3993
4455
  body,
3994
4456
  responseKey: void 0
3995
4457
  });
3996
4458
  }
3997
4459
  };
4460
+ _SeamHttpThermostatsSchedules.ltsVersion = seamApiLtsVersion;
4461
+ var SeamHttpThermostatsSchedules = _SeamHttpThermostatsSchedules;
3998
4462
 
3999
- // src/lib/seam/connect/routes/thermostats-simulate.ts
4000
- var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4463
+ // src/lib/seam/connect/routes/thermostats/simulate/simulate.ts
4464
+ var _SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4001
4465
  constructor(apiKeyOrOptions = {}) {
4466
+ this.ltsVersion = seamApiLtsVersion;
4002
4467
  const options = parseOptions(apiKeyOrOptions);
4003
4468
  this.client = "client" in options ? options.client : createClient(options);
4004
4469
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4029,7 +4494,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4029
4494
  const clientOptions = parseOptions({ ...options, publishableKey });
4030
4495
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4031
4496
  throw new SeamHttpInvalidOptionsError(
4032
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4497
+ "The client option cannot be used with SeamHttpThermostatsSimulate.fromPublishableKey"
4033
4498
  );
4034
4499
  }
4035
4500
  const client = createClient(clientOptions);
@@ -4079,7 +4544,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4079
4544
  hvacModeAdjusted(body) {
4080
4545
  return new SeamHttpRequest(this, {
4081
4546
  pathname: "/thermostats/simulate/hvac_mode_adjusted",
4082
- method: "post",
4547
+ method: "POST",
4083
4548
  body,
4084
4549
  responseKey: void 0
4085
4550
  });
@@ -4087,16 +4552,19 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
4087
4552
  temperatureReached(body) {
4088
4553
  return new SeamHttpRequest(this, {
4089
4554
  pathname: "/thermostats/simulate/temperature_reached",
4090
- method: "post",
4555
+ method: "POST",
4091
4556
  body,
4092
4557
  responseKey: void 0
4093
4558
  });
4094
4559
  }
4095
4560
  };
4561
+ _SeamHttpThermostatsSimulate.ltsVersion = seamApiLtsVersion;
4562
+ var SeamHttpThermostatsSimulate = _SeamHttpThermostatsSimulate;
4096
4563
 
4097
- // src/lib/seam/connect/routes/thermostats.ts
4098
- var SeamHttpThermostats = class _SeamHttpThermostats {
4564
+ // src/lib/seam/connect/routes/thermostats/thermostats.ts
4565
+ var _SeamHttpThermostats = class _SeamHttpThermostats {
4099
4566
  constructor(apiKeyOrOptions = {}) {
4567
+ this.ltsVersion = seamApiLtsVersion;
4100
4568
  const options = parseOptions(apiKeyOrOptions);
4101
4569
  this.client = "client" in options ? options.client : createClient(options);
4102
4570
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4127,7 +4595,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4127
4595
  const clientOptions = parseOptions({ ...options, publishableKey });
4128
4596
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4129
4597
  throw new SeamHttpInvalidOptionsError(
4130
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4598
+ "The client option cannot be used with SeamHttpThermostats.fromPublishableKey"
4131
4599
  );
4132
4600
  }
4133
4601
  const client = createClient(clientOptions);
@@ -4174,22 +4642,22 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4174
4642
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4175
4643
  await clientSessions.get();
4176
4644
  }
4177
- get schedules() {
4178
- return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults);
4179
- }
4180
- get simulate() {
4181
- return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
4182
- }
4183
4645
  get dailyPrograms() {
4184
4646
  return SeamHttpThermostatsDailyPrograms.fromClient(
4185
4647
  this.client,
4186
4648
  this.defaults
4187
4649
  );
4188
4650
  }
4651
+ get schedules() {
4652
+ return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults);
4653
+ }
4654
+ get simulate() {
4655
+ return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
4656
+ }
4189
4657
  activateClimatePreset(body, options = {}) {
4190
4658
  return new SeamHttpRequest(this, {
4191
4659
  pathname: "/thermostats/activate_climate_preset",
4192
- method: "post",
4660
+ method: "POST",
4193
4661
  body,
4194
4662
  responseKey: "action_attempt",
4195
4663
  options
@@ -4198,7 +4666,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4198
4666
  cool(body, options = {}) {
4199
4667
  return new SeamHttpRequest(this, {
4200
4668
  pathname: "/thermostats/cool",
4201
- method: "post",
4669
+ method: "POST",
4202
4670
  body,
4203
4671
  responseKey: "action_attempt",
4204
4672
  options
@@ -4207,7 +4675,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4207
4675
  createClimatePreset(body) {
4208
4676
  return new SeamHttpRequest(this, {
4209
4677
  pathname: "/thermostats/create_climate_preset",
4210
- method: "post",
4678
+ method: "POST",
4211
4679
  body,
4212
4680
  responseKey: void 0
4213
4681
  });
@@ -4215,7 +4683,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4215
4683
  deleteClimatePreset(body) {
4216
4684
  return new SeamHttpRequest(this, {
4217
4685
  pathname: "/thermostats/delete_climate_preset",
4218
- method: "post",
4686
+ method: "POST",
4219
4687
  body,
4220
4688
  responseKey: void 0
4221
4689
  });
@@ -4223,7 +4691,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4223
4691
  heat(body, options = {}) {
4224
4692
  return new SeamHttpRequest(this, {
4225
4693
  pathname: "/thermostats/heat",
4226
- method: "post",
4694
+ method: "POST",
4227
4695
  body,
4228
4696
  responseKey: "action_attempt",
4229
4697
  options
@@ -4232,24 +4700,24 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4232
4700
  heatCool(body, options = {}) {
4233
4701
  return new SeamHttpRequest(this, {
4234
4702
  pathname: "/thermostats/heat_cool",
4235
- method: "post",
4703
+ method: "POST",
4236
4704
  body,
4237
4705
  responseKey: "action_attempt",
4238
4706
  options
4239
4707
  });
4240
4708
  }
4241
- list(body) {
4709
+ list(params) {
4242
4710
  return new SeamHttpRequest(this, {
4243
4711
  pathname: "/thermostats/list",
4244
- method: "post",
4245
- body,
4712
+ method: "POST",
4713
+ body: params,
4246
4714
  responseKey: "devices"
4247
4715
  });
4248
4716
  }
4249
4717
  off(body, options = {}) {
4250
4718
  return new SeamHttpRequest(this, {
4251
4719
  pathname: "/thermostats/off",
4252
- method: "post",
4720
+ method: "POST",
4253
4721
  body,
4254
4722
  responseKey: "action_attempt",
4255
4723
  options
@@ -4258,7 +4726,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4258
4726
  setFallbackClimatePreset(body) {
4259
4727
  return new SeamHttpRequest(this, {
4260
4728
  pathname: "/thermostats/set_fallback_climate_preset",
4261
- method: "post",
4729
+ method: "POST",
4262
4730
  body,
4263
4731
  responseKey: void 0
4264
4732
  });
@@ -4266,7 +4734,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4266
4734
  setFanMode(body, options = {}) {
4267
4735
  return new SeamHttpRequest(this, {
4268
4736
  pathname: "/thermostats/set_fan_mode",
4269
- method: "post",
4737
+ method: "POST",
4270
4738
  body,
4271
4739
  responseKey: "action_attempt",
4272
4740
  options
@@ -4275,7 +4743,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4275
4743
  setHvacMode(body, options = {}) {
4276
4744
  return new SeamHttpRequest(this, {
4277
4745
  pathname: "/thermostats/set_hvac_mode",
4278
- method: "post",
4746
+ method: "POST",
4279
4747
  body,
4280
4748
  responseKey: "action_attempt",
4281
4749
  options
@@ -4284,7 +4752,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4284
4752
  setTemperatureThreshold(body) {
4285
4753
  return new SeamHttpRequest(this, {
4286
4754
  pathname: "/thermostats/set_temperature_threshold",
4287
- method: "post",
4755
+ method: "PATCH",
4288
4756
  body,
4289
4757
  responseKey: void 0
4290
4758
  });
@@ -4292,7 +4760,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4292
4760
  updateClimatePreset(body) {
4293
4761
  return new SeamHttpRequest(this, {
4294
4762
  pathname: "/thermostats/update_climate_preset",
4295
- method: "post",
4763
+ method: "PATCH",
4296
4764
  body,
4297
4765
  responseKey: void 0
4298
4766
  });
@@ -4300,99 +4768,20 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
4300
4768
  updateWeeklyProgram(body, options = {}) {
4301
4769
  return new SeamHttpRequest(this, {
4302
4770
  pathname: "/thermostats/update_weekly_program",
4303
- method: "post",
4771
+ method: "POST",
4304
4772
  body,
4305
4773
  responseKey: "action_attempt",
4306
4774
  options
4307
4775
  });
4308
4776
  }
4309
4777
  };
4778
+ _SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
4779
+ var SeamHttpThermostats = _SeamHttpThermostats;
4310
4780
 
4311
- // src/lib/seam/connect/routes/unstable-partner.ts
4312
- var SeamHttpUnstablePartner = class _SeamHttpUnstablePartner {
4313
- constructor(apiKeyOrOptions = {}) {
4314
- const options = parseOptions(apiKeyOrOptions);
4315
- this.client = "client" in options ? options.client : createClient(options);
4316
- this.defaults = limitToSeamHttpRequestOptions(options);
4317
- }
4318
- static fromClient(client, options = {}) {
4319
- const constructorOptions = { ...options, client };
4320
- if (!isSeamHttpOptionsWithClient(constructorOptions)) {
4321
- throw new SeamHttpInvalidOptionsError("Missing client");
4322
- }
4323
- return new _SeamHttpUnstablePartner(constructorOptions);
4324
- }
4325
- static fromApiKey(apiKey, options = {}) {
4326
- const constructorOptions = { ...options, apiKey };
4327
- if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
4328
- throw new SeamHttpInvalidOptionsError("Missing apiKey");
4329
- }
4330
- return new _SeamHttpUnstablePartner(constructorOptions);
4331
- }
4332
- static fromClientSessionToken(clientSessionToken, options = {}) {
4333
- const constructorOptions = { ...options, clientSessionToken };
4334
- if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
4335
- throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
4336
- }
4337
- return new _SeamHttpUnstablePartner(constructorOptions);
4338
- }
4339
- static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
4340
- warnOnInsecureuserIdentifierKey(userIdentifierKey);
4341
- const clientOptions = parseOptions({ ...options, publishableKey });
4342
- if (isSeamHttpOptionsWithClient(clientOptions)) {
4343
- throw new SeamHttpInvalidOptionsError(
4344
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4345
- );
4346
- }
4347
- const client = createClient(clientOptions);
4348
- const clientSessions = SeamHttpClientSessions.fromClient(client);
4349
- const { token } = await clientSessions.getOrCreate({
4350
- user_identifier_key: userIdentifierKey
4351
- });
4352
- return _SeamHttpUnstablePartner.fromClientSessionToken(token, options);
4353
- }
4354
- static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
4355
- const constructorOptions = { ...options, consoleSessionToken, workspaceId };
4356
- if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
4357
- throw new SeamHttpInvalidOptionsError(
4358
- "Missing consoleSessionToken or workspaceId"
4359
- );
4360
- }
4361
- return new _SeamHttpUnstablePartner(constructorOptions);
4362
- }
4363
- static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
4364
- const constructorOptions = { ...options, personalAccessToken, workspaceId };
4365
- if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
4366
- throw new SeamHttpInvalidOptionsError(
4367
- "Missing personalAccessToken or workspaceId"
4368
- );
4369
- }
4370
- return new _SeamHttpUnstablePartner(constructorOptions);
4371
- }
4372
- createPaginator(request) {
4373
- return new SeamPaginator(this, request);
4374
- }
4375
- async updateClientSessionToken(clientSessionToken) {
4376
- const { headers } = this.client.defaults;
4377
- const authHeaders = getAuthHeadersForClientSessionToken({
4378
- clientSessionToken
4379
- });
4380
- for (const key of Object.keys(authHeaders)) {
4381
- if (headers[key] == null) {
4382
- throw new Error(
4383
- "Cannot update a clientSessionToken on a client created without a clientSessionToken"
4384
- );
4385
- }
4386
- }
4387
- this.client.defaults.headers = { ...headers, ...authHeaders };
4388
- const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4389
- await clientSessions.get();
4390
- }
4391
- };
4392
-
4393
- // src/lib/seam/connect/routes/user-identities-enrollment-automations.ts
4394
- var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesEnrollmentAutomations {
4781
+ // src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts
4782
+ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesEnrollmentAutomations {
4395
4783
  constructor(apiKeyOrOptions = {}) {
4784
+ this.ltsVersion = seamApiLtsVersion;
4396
4785
  const options = parseOptions(apiKeyOrOptions);
4397
4786
  this.client = "client" in options ? options.client : createClient(options);
4398
4787
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4423,7 +4812,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4423
4812
  const clientOptions = parseOptions({ ...options, publishableKey });
4424
4813
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4425
4814
  throw new SeamHttpInvalidOptionsError(
4426
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4815
+ "The client option cannot be used with SeamHttpUserIdentitiesEnrollmentAutomations.fromPublishableKey"
4427
4816
  );
4428
4817
  }
4429
4818
  const client = createClient(clientOptions);
@@ -4473,43 +4862,46 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
4473
4862
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
4474
4863
  await clientSessions.get();
4475
4864
  }
4476
- delete(body) {
4865
+ delete(params) {
4477
4866
  return new SeamHttpRequest(this, {
4478
4867
  pathname: "/user_identities/enrollment_automations/delete",
4479
- method: "post",
4480
- body,
4868
+ method: "POST",
4869
+ body: params,
4481
4870
  responseKey: void 0
4482
4871
  });
4483
4872
  }
4484
- get(body) {
4873
+ get(params) {
4485
4874
  return new SeamHttpRequest(this, {
4486
4875
  pathname: "/user_identities/enrollment_automations/get",
4487
- method: "post",
4488
- body,
4876
+ method: "POST",
4877
+ body: params,
4489
4878
  responseKey: "enrollment_automation"
4490
4879
  });
4491
4880
  }
4492
4881
  launch(body) {
4493
4882
  return new SeamHttpRequest(this, {
4494
4883
  pathname: "/user_identities/enrollment_automations/launch",
4495
- method: "post",
4884
+ method: "POST",
4496
4885
  body,
4497
4886
  responseKey: "enrollment_automation"
4498
4887
  });
4499
4888
  }
4500
- list(body) {
4889
+ list(params) {
4501
4890
  return new SeamHttpRequest(this, {
4502
4891
  pathname: "/user_identities/enrollment_automations/list",
4503
- method: "post",
4504
- body,
4892
+ method: "POST",
4893
+ body: params,
4505
4894
  responseKey: "enrollment_automations"
4506
4895
  });
4507
4896
  }
4508
4897
  };
4898
+ _SeamHttpUserIdentitiesEnrollmentAutomations.ltsVersion = seamApiLtsVersion;
4899
+ var SeamHttpUserIdentitiesEnrollmentAutomations = _SeamHttpUserIdentitiesEnrollmentAutomations;
4509
4900
 
4510
- // src/lib/seam/connect/routes/user-identities.ts
4511
- var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4901
+ // src/lib/seam/connect/routes/user-identities/user-identities.ts
4902
+ var _SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4512
4903
  constructor(apiKeyOrOptions = {}) {
4904
+ this.ltsVersion = seamApiLtsVersion;
4513
4905
  const options = parseOptions(apiKeyOrOptions);
4514
4906
  this.client = "client" in options ? options.client : createClient(options);
4515
4907
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4540,7 +4932,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4540
4932
  const clientOptions = parseOptions({ ...options, publishableKey });
4541
4933
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4542
4934
  throw new SeamHttpInvalidOptionsError(
4543
- "The client option cannot be used with SeamHttp.fromPublishableKey"
4935
+ "The client option cannot be used with SeamHttpUserIdentities.fromPublishableKey"
4544
4936
  );
4545
4937
  }
4546
4938
  const client = createClient(clientOptions);
@@ -4596,7 +4988,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4596
4988
  addAcsUser(body) {
4597
4989
  return new SeamHttpRequest(this, {
4598
4990
  pathname: "/user_identities/add_acs_user",
4599
- method: "post",
4991
+ method: "PUT",
4600
4992
  body,
4601
4993
  responseKey: void 0
4602
4994
  });
@@ -4604,104 +4996,107 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
4604
4996
  create(body) {
4605
4997
  return new SeamHttpRequest(this, {
4606
4998
  pathname: "/user_identities/create",
4607
- method: "post",
4999
+ method: "POST",
4608
5000
  body,
4609
5001
  responseKey: "user_identity"
4610
5002
  });
4611
5003
  }
4612
- delete(body) {
5004
+ delete(params) {
4613
5005
  return new SeamHttpRequest(this, {
4614
5006
  pathname: "/user_identities/delete",
4615
- method: "post",
4616
- body,
5007
+ method: "POST",
5008
+ body: params,
4617
5009
  responseKey: void 0
4618
5010
  });
4619
5011
  }
4620
5012
  generateInstantKey(body) {
4621
5013
  return new SeamHttpRequest(this, {
4622
5014
  pathname: "/user_identities/generate_instant_key",
4623
- method: "post",
5015
+ method: "POST",
4624
5016
  body,
4625
5017
  responseKey: "instant_key"
4626
5018
  });
4627
5019
  }
4628
- get(body) {
5020
+ get(params) {
4629
5021
  return new SeamHttpRequest(this, {
4630
5022
  pathname: "/user_identities/get",
4631
- method: "post",
4632
- body,
5023
+ method: "POST",
5024
+ body: params,
4633
5025
  responseKey: "user_identity"
4634
5026
  });
4635
5027
  }
4636
5028
  grantAccessToDevice(body) {
4637
5029
  return new SeamHttpRequest(this, {
4638
5030
  pathname: "/user_identities/grant_access_to_device",
4639
- method: "post",
5031
+ method: "PUT",
4640
5032
  body,
4641
5033
  responseKey: void 0
4642
5034
  });
4643
5035
  }
4644
- list(body) {
5036
+ list(params) {
4645
5037
  return new SeamHttpRequest(this, {
4646
5038
  pathname: "/user_identities/list",
4647
- method: "post",
4648
- body,
5039
+ method: "POST",
5040
+ body: params,
4649
5041
  responseKey: "user_identities"
4650
5042
  });
4651
5043
  }
4652
- listAccessibleDevices(body) {
5044
+ listAccessibleDevices(params) {
4653
5045
  return new SeamHttpRequest(this, {
4654
5046
  pathname: "/user_identities/list_accessible_devices",
4655
- method: "post",
4656
- body,
5047
+ method: "POST",
5048
+ body: params,
4657
5049
  responseKey: "devices"
4658
5050
  });
4659
5051
  }
4660
- listAcsSystems(body) {
5052
+ listAcsSystems(params) {
4661
5053
  return new SeamHttpRequest(this, {
4662
5054
  pathname: "/user_identities/list_acs_systems",
4663
- method: "post",
4664
- body,
5055
+ method: "POST",
5056
+ body: params,
4665
5057
  responseKey: "acs_systems"
4666
5058
  });
4667
5059
  }
4668
- listAcsUsers(body) {
5060
+ listAcsUsers(params) {
4669
5061
  return new SeamHttpRequest(this, {
4670
5062
  pathname: "/user_identities/list_acs_users",
4671
- method: "post",
4672
- body,
5063
+ method: "POST",
5064
+ body: params,
4673
5065
  responseKey: "acs_users"
4674
5066
  });
4675
5067
  }
4676
- removeAcsUser(body) {
5068
+ removeAcsUser(params) {
4677
5069
  return new SeamHttpRequest(this, {
4678
5070
  pathname: "/user_identities/remove_acs_user",
4679
- method: "post",
4680
- body,
5071
+ method: "POST",
5072
+ body: params,
4681
5073
  responseKey: void 0
4682
5074
  });
4683
5075
  }
4684
- revokeAccessToDevice(body) {
5076
+ revokeAccessToDevice(params) {
4685
5077
  return new SeamHttpRequest(this, {
4686
5078
  pathname: "/user_identities/revoke_access_to_device",
4687
- method: "post",
4688
- body,
5079
+ method: "POST",
5080
+ body: params,
4689
5081
  responseKey: void 0
4690
5082
  });
4691
5083
  }
4692
5084
  update(body) {
4693
5085
  return new SeamHttpRequest(this, {
4694
5086
  pathname: "/user_identities/update",
4695
- method: "post",
5087
+ method: "PATCH",
4696
5088
  body,
4697
5089
  responseKey: void 0
4698
5090
  });
4699
5091
  }
4700
5092
  };
5093
+ _SeamHttpUserIdentities.ltsVersion = seamApiLtsVersion;
5094
+ var SeamHttpUserIdentities = _SeamHttpUserIdentities;
4701
5095
 
4702
- // src/lib/seam/connect/routes/webhooks.ts
4703
- var SeamHttpWebhooks = class _SeamHttpWebhooks {
5096
+ // src/lib/seam/connect/routes/webhooks/webhooks.ts
5097
+ var _SeamHttpWebhooks = class _SeamHttpWebhooks {
4704
5098
  constructor(apiKeyOrOptions = {}) {
5099
+ this.ltsVersion = seamApiLtsVersion;
4705
5100
  const options = parseOptions(apiKeyOrOptions);
4706
5101
  this.client = "client" in options ? options.client : createClient(options);
4707
5102
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4732,7 +5127,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
4732
5127
  const clientOptions = parseOptions({ ...options, publishableKey });
4733
5128
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4734
5129
  throw new SeamHttpInvalidOptionsError(
4735
- "The client option cannot be used with SeamHttp.fromPublishableKey"
5130
+ "The client option cannot be used with SeamHttpWebhooks.fromPublishableKey"
4736
5131
  );
4737
5132
  }
4738
5133
  const client = createClient(clientOptions);
@@ -4782,48 +5177,51 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
4782
5177
  create(body) {
4783
5178
  return new SeamHttpRequest(this, {
4784
5179
  pathname: "/webhooks/create",
4785
- method: "post",
5180
+ method: "POST",
4786
5181
  body,
4787
5182
  responseKey: "webhook"
4788
5183
  });
4789
5184
  }
4790
- delete(body) {
5185
+ delete(params) {
4791
5186
  return new SeamHttpRequest(this, {
4792
5187
  pathname: "/webhooks/delete",
4793
- method: "post",
4794
- body,
5188
+ method: "POST",
5189
+ body: params,
4795
5190
  responseKey: void 0
4796
5191
  });
4797
5192
  }
4798
- get(body) {
5193
+ get(params) {
4799
5194
  return new SeamHttpRequest(this, {
4800
5195
  pathname: "/webhooks/get",
4801
- method: "post",
4802
- body,
5196
+ method: "POST",
5197
+ body: params,
4803
5198
  responseKey: "webhook"
4804
5199
  });
4805
5200
  }
4806
- list(body) {
5201
+ list(params) {
4807
5202
  return new SeamHttpRequest(this, {
4808
5203
  pathname: "/webhooks/list",
4809
- method: "post",
4810
- body,
5204
+ method: "GET",
5205
+ params,
4811
5206
  responseKey: "webhooks"
4812
5207
  });
4813
5208
  }
4814
5209
  update(body) {
4815
5210
  return new SeamHttpRequest(this, {
4816
5211
  pathname: "/webhooks/update",
4817
- method: "post",
5212
+ method: "PUT",
4818
5213
  body,
4819
5214
  responseKey: void 0
4820
5215
  });
4821
5216
  }
4822
5217
  };
5218
+ _SeamHttpWebhooks.ltsVersion = seamApiLtsVersion;
5219
+ var SeamHttpWebhooks = _SeamHttpWebhooks;
4823
5220
 
4824
- // src/lib/seam/connect/routes/workspaces.ts
4825
- var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
5221
+ // src/lib/seam/connect/routes/workspaces/workspaces.ts
5222
+ var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
4826
5223
  constructor(apiKeyOrOptions = {}) {
5224
+ this.ltsVersion = seamApiLtsVersion;
4827
5225
  const options = parseOptions(apiKeyOrOptions);
4828
5226
  this.client = "client" in options ? options.client : createClient(options);
4829
5227
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4854,7 +5252,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
4854
5252
  const clientOptions = parseOptions({ ...options, publishableKey });
4855
5253
  if (isSeamHttpOptionsWithClient(clientOptions)) {
4856
5254
  throw new SeamHttpInvalidOptionsError(
4857
- "The client option cannot be used with SeamHttp.fromPublishableKey"
5255
+ "The client option cannot be used with SeamHttpWorkspaces.fromPublishableKey"
4858
5256
  );
4859
5257
  }
4860
5258
  const client = createClient(clientOptions);
@@ -4904,31 +5302,31 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
4904
5302
  create(body) {
4905
5303
  return new SeamHttpRequest(this, {
4906
5304
  pathname: "/workspaces/create",
4907
- method: "post",
5305
+ method: "POST",
4908
5306
  body,
4909
5307
  responseKey: "workspace"
4910
5308
  });
4911
5309
  }
4912
- get(body) {
5310
+ get(params) {
4913
5311
  return new SeamHttpRequest(this, {
4914
5312
  pathname: "/workspaces/get",
4915
- method: "post",
4916
- body,
5313
+ method: "GET",
5314
+ params,
4917
5315
  responseKey: "workspace"
4918
5316
  });
4919
5317
  }
4920
- list(body) {
5318
+ list(params) {
4921
5319
  return new SeamHttpRequest(this, {
4922
5320
  pathname: "/workspaces/list",
4923
- method: "post",
4924
- body,
5321
+ method: "GET",
5322
+ params,
4925
5323
  responseKey: "workspaces"
4926
5324
  });
4927
5325
  }
4928
5326
  resetSandbox(body, options = {}) {
4929
5327
  return new SeamHttpRequest(this, {
4930
5328
  pathname: "/workspaces/reset_sandbox",
4931
- method: "post",
5329
+ method: "POST",
4932
5330
  body,
4933
5331
  responseKey: "action_attempt",
4934
5332
  options
@@ -4937,14 +5335,16 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
4937
5335
  update(body) {
4938
5336
  return new SeamHttpRequest(this, {
4939
5337
  pathname: "/workspaces/update",
4940
- method: "post",
5338
+ method: "PATCH",
4941
5339
  body,
4942
5340
  responseKey: void 0
4943
5341
  });
4944
5342
  }
4945
5343
  };
5344
+ _SeamHttpWorkspaces.ltsVersion = seamApiLtsVersion;
5345
+ var SeamHttpWorkspaces = _SeamHttpWorkspaces;
4946
5346
 
4947
- // src/lib/seam/connect/seam-http.ts
5347
+ // src/lib/seam/connect/routes/seam-http.ts
4948
5348
  var _SeamHttp = class _SeamHttp {
4949
5349
  constructor(apiKeyOrOptions = {}) {
4950
5350
  this.ltsVersion = seamApiLtsVersion;
@@ -5028,6 +5428,12 @@ var _SeamHttp = class _SeamHttp {
5028
5428
  get accessCodes() {
5029
5429
  return SeamHttpAccessCodes.fromClient(this.client, this.defaults);
5030
5430
  }
5431
+ get accessGrants() {
5432
+ return SeamHttpAccessGrants.fromClient(this.client, this.defaults);
5433
+ }
5434
+ get accessMethods() {
5435
+ return SeamHttpAccessMethods.fromClient(this.client, this.defaults);
5436
+ }
5031
5437
  get acs() {
5032
5438
  return SeamHttpAcs.fromClient(this.client, this.defaults);
5033
5439
  }
@@ -5037,12 +5443,12 @@ var _SeamHttp = class _SeamHttp {
5037
5443
  get clientSessions() {
5038
5444
  return SeamHttpClientSessions.fromClient(this.client, this.defaults);
5039
5445
  }
5040
- get connectedAccounts() {
5041
- return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
5042
- }
5043
5446
  get connectWebviews() {
5044
5447
  return SeamHttpConnectWebviews.fromClient(this.client, this.defaults);
5045
5448
  }
5449
+ get connectedAccounts() {
5450
+ return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
5451
+ }
5046
5452
  get devices() {
5047
5453
  return SeamHttpDevices.fromClient(this.client, this.defaults);
5048
5454
  }
@@ -5058,6 +5464,9 @@ var _SeamHttp = class _SeamHttp {
5058
5464
  get phones() {
5059
5465
  return SeamHttpPhones.fromClient(this.client, this.defaults);
5060
5466
  }
5467
+ get spaces() {
5468
+ return SeamHttpSpaces.fromClient(this.client, this.defaults);
5469
+ }
5061
5470
  get thermostats() {
5062
5471
  return SeamHttpThermostats.fromClient(this.client, this.defaults);
5063
5472
  }
@@ -5122,6 +5531,8 @@ exports.SeamHttp = SeamHttp;
5122
5531
  exports.SeamHttpAccessCodes = SeamHttpAccessCodes;
5123
5532
  exports.SeamHttpAccessCodesSimulate = SeamHttpAccessCodesSimulate;
5124
5533
  exports.SeamHttpAccessCodesUnmanaged = SeamHttpAccessCodesUnmanaged;
5534
+ exports.SeamHttpAccessGrants = SeamHttpAccessGrants;
5535
+ exports.SeamHttpAccessMethods = SeamHttpAccessMethods;
5125
5536
  exports.SeamHttpAcs = SeamHttpAcs;
5126
5537
  exports.SeamHttpAcsAccessGroups = SeamHttpAcsAccessGroups;
5127
5538
  exports.SeamHttpAcsCredentials = SeamHttpAcsCredentials;
@@ -5151,12 +5562,12 @@ exports.SeamHttpNoiseSensorsSimulate = SeamHttpNoiseSensorsSimulate;
5151
5562
  exports.SeamHttpPhones = SeamHttpPhones;
5152
5563
  exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
5153
5564
  exports.SeamHttpRequest = SeamHttpRequest;
5565
+ exports.SeamHttpSpaces = SeamHttpSpaces;
5154
5566
  exports.SeamHttpThermostats = SeamHttpThermostats;
5155
5567
  exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
5156
5568
  exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
5157
5569
  exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
5158
5570
  exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
5159
- exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
5160
5571
  exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
5161
5572
  exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
5162
5573
  exports.SeamHttpWebhooks = SeamHttpWebhooks;