@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
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,15 +31,16 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
-
39
39
  export class SeamHttpLocks {
40
40
  client: Client
41
41
  readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
42
44
 
43
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
44
46
  const options = parseOptions(apiKeyOrOptions)
@@ -91,7 +93,7 @@ export class SeamHttpLocks {
91
93
  const clientOptions = parseOptions({ ...options, publishableKey })
92
94
  if (isSeamHttpOptionsWithClient(clientOptions)) {
93
95
  throw new SeamHttpInvalidOptionsError(
94
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
96
+ 'The client option cannot be used with SeamHttpLocks.fromPublishableKey',
95
97
  )
96
98
  }
97
99
  const client = createClient(clientOptions)
@@ -161,31 +163,33 @@ export class SeamHttpLocks {
161
163
  await clientSessions.get()
162
164
  }
163
165
 
164
- get(body?: LocksGetParams): SeamHttpRequest<LocksGetResponse, 'device'> {
166
+ get(params?: LocksGetParams): SeamHttpRequest<LocksGetResponse, 'device'> {
165
167
  return new SeamHttpRequest(this, {
166
168
  pathname: '/locks/get',
167
- method: 'post',
168
- body,
169
+ method: 'POST',
170
+ body: params,
169
171
  responseKey: 'device',
170
172
  })
171
173
  }
172
174
 
173
- list(body?: LocksListParams): SeamHttpRequest<LocksListResponse, 'devices'> {
175
+ list(
176
+ params?: LocksListParams,
177
+ ): SeamHttpRequest<LocksListResponse, 'devices'> {
174
178
  return new SeamHttpRequest(this, {
175
179
  pathname: '/locks/list',
176
- method: 'post',
177
- body,
180
+ method: 'POST',
181
+ body: params,
178
182
  responseKey: 'devices',
179
183
  })
180
184
  }
181
185
 
182
186
  lockDoor(
183
187
  body?: LocksLockDoorBody,
184
- options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
188
+ options: LocksLockDoorOptions = {},
185
189
  ): SeamHttpRequest<LocksLockDoorResponse, 'action_attempt'> {
186
190
  return new SeamHttpRequest(this, {
187
191
  pathname: '/locks/lock_door',
188
- method: 'post',
192
+ method: 'POST',
189
193
  body,
190
194
  responseKey: 'action_attempt',
191
195
  options,
@@ -194,11 +198,11 @@ export class SeamHttpLocks {
194
198
 
195
199
  unlockDoor(
196
200
  body?: LocksUnlockDoorBody,
197
- options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
201
+ options: LocksUnlockDoorOptions = {},
198
202
  ): SeamHttpRequest<LocksUnlockDoorResponse, 'action_attempt'> {
199
203
  return new SeamHttpRequest(this, {
200
204
  pathname: '/locks/unlock_door',
201
- method: 'post',
205
+ method: 'POST',
202
206
  body,
203
207
  responseKey: 'action_attempt',
204
208
  options,
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './noise-sensors.js'
7
+ export * from './noise-thresholds/index.js'
8
+ export * from './simulate/index.js'
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,17 +31,19 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
- import { SeamHttpNoiseSensorsNoiseThresholds } from './noise-sensors-noise-thresholds.js'
39
- import { SeamHttpNoiseSensorsSimulate } from './noise-sensors-simulate.js'
39
+ import { SeamHttpNoiseSensorsNoiseThresholds } from './noise-thresholds/index.js'
40
+ import { SeamHttpNoiseSensorsSimulate } from './simulate/index.js'
40
41
 
41
42
  export class SeamHttpNoiseSensors {
42
43
  client: Client
43
44
  readonly defaults: Required<SeamHttpRequestOptions>
45
+ readonly ltsVersion = seamApiLtsVersion
46
+ static ltsVersion = seamApiLtsVersion
44
47
 
45
48
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
46
49
  const options = parseOptions(apiKeyOrOptions)
@@ -93,7 +96,7 @@ export class SeamHttpNoiseSensors {
93
96
  const clientOptions = parseOptions({ ...options, publishableKey })
94
97
  if (isSeamHttpOptionsWithClient(clientOptions)) {
95
98
  throw new SeamHttpInvalidOptionsError(
96
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
99
+ 'The client option cannot be used with SeamHttpNoiseSensors.fromPublishableKey',
97
100
  )
98
101
  }
99
102
  const client = createClient(clientOptions)
@@ -175,12 +178,12 @@ export class SeamHttpNoiseSensors {
175
178
  }
176
179
 
177
180
  list(
178
- body?: NoiseSensorsListParams,
181
+ params?: NoiseSensorsListParams,
179
182
  ): SeamHttpRequest<NoiseSensorsListResponse, 'devices'> {
180
183
  return new SeamHttpRequest(this, {
181
184
  pathname: '/noise_sensors/list',
182
- method: 'post',
183
- body,
185
+ method: 'POST',
186
+ body: params,
184
187
  responseKey: 'devices',
185
188
  })
186
189
  }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './noise-thresholds.js'
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,15 +31,16 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
-
39
39
  export class SeamHttpNoiseSensorsNoiseThresholds {
40
40
  client: Client
41
41
  readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
42
44
 
43
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
44
46
  const options = parseOptions(apiKeyOrOptions)
@@ -91,7 +93,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
91
93
  const clientOptions = parseOptions({ ...options, publishableKey })
92
94
  if (isSeamHttpOptionsWithClient(clientOptions)) {
93
95
  throw new SeamHttpInvalidOptionsError(
94
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
96
+ 'The client option cannot be used with SeamHttpNoiseSensorsNoiseThresholds.fromPublishableKey',
95
97
  )
96
98
  }
97
99
  const client = createClient(clientOptions)
@@ -172,47 +174,47 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
172
174
  > {
173
175
  return new SeamHttpRequest(this, {
174
176
  pathname: '/noise_sensors/noise_thresholds/create',
175
- method: 'post',
177
+ method: 'POST',
176
178
  body,
177
179
  responseKey: 'noise_threshold',
178
180
  })
179
181
  }
180
182
 
181
183
  delete(
182
- body?: NoiseSensorsNoiseThresholdsDeleteParams,
184
+ params?: NoiseSensorsNoiseThresholdsDeleteParams,
183
185
  ): SeamHttpRequest<void, undefined> {
184
186
  return new SeamHttpRequest(this, {
185
187
  pathname: '/noise_sensors/noise_thresholds/delete',
186
- method: 'post',
187
- body,
188
+ method: 'POST',
189
+ body: params,
188
190
  responseKey: undefined,
189
191
  })
190
192
  }
191
193
 
192
194
  get(
193
- body?: NoiseSensorsNoiseThresholdsGetParams,
195
+ params?: NoiseSensorsNoiseThresholdsGetParams,
194
196
  ): SeamHttpRequest<
195
197
  NoiseSensorsNoiseThresholdsGetResponse,
196
198
  'noise_threshold'
197
199
  > {
198
200
  return new SeamHttpRequest(this, {
199
201
  pathname: '/noise_sensors/noise_thresholds/get',
200
- method: 'post',
201
- body,
202
+ method: 'POST',
203
+ body: params,
202
204
  responseKey: 'noise_threshold',
203
205
  })
204
206
  }
205
207
 
206
208
  list(
207
- body?: NoiseSensorsNoiseThresholdsListParams,
209
+ params?: NoiseSensorsNoiseThresholdsListParams,
208
210
  ): SeamHttpRequest<
209
211
  NoiseSensorsNoiseThresholdsListResponse,
210
212
  'noise_thresholds'
211
213
  > {
212
214
  return new SeamHttpRequest(this, {
213
215
  pathname: '/noise_sensors/noise_thresholds/list',
214
- method: 'post',
215
- body,
216
+ method: 'POST',
217
+ body: params,
216
218
  responseKey: 'noise_thresholds',
217
219
  })
218
220
  }
@@ -222,7 +224,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
222
224
  ): SeamHttpRequest<void, undefined> {
223
225
  return new SeamHttpRequest(this, {
224
226
  pathname: '/noise_sensors/noise_thresholds/update',
225
- method: 'post',
227
+ method: 'PUT',
226
228
  body,
227
229
  responseKey: undefined,
228
230
  })
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './simulate.js'
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,15 +31,16 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
-
39
39
  export class SeamHttpNoiseSensorsSimulate {
40
40
  client: Client
41
41
  readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
42
44
 
43
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
44
46
  const options = parseOptions(apiKeyOrOptions)
@@ -91,7 +93,7 @@ export class SeamHttpNoiseSensorsSimulate {
91
93
  const clientOptions = parseOptions({ ...options, publishableKey })
92
94
  if (isSeamHttpOptionsWithClient(clientOptions)) {
93
95
  throw new SeamHttpInvalidOptionsError(
94
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
96
+ 'The client option cannot be used with SeamHttpNoiseSensorsSimulate.fromPublishableKey',
95
97
  )
96
98
  }
97
99
  const client = createClient(clientOptions)
@@ -166,7 +168,7 @@ export class SeamHttpNoiseSensorsSimulate {
166
168
  ): SeamHttpRequest<void, undefined> {
167
169
  return new SeamHttpRequest(this, {
168
170
  pathname: '/noise_sensors/simulate/trigger_noise_threshold',
169
- method: 'post',
171
+ method: 'POST',
170
172
  body,
171
173
  responseKey: undefined,
172
174
  })
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './phones.js'
7
+ export * from './simulate/index.js'
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,16 +31,18 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
- import { SeamHttpPhonesSimulate } from './phones-simulate.js'
39
+ import { SeamHttpPhonesSimulate } from './simulate/index.js'
39
40
 
40
41
  export class SeamHttpPhones {
41
42
  client: Client
42
43
  readonly defaults: Required<SeamHttpRequestOptions>
44
+ readonly ltsVersion = seamApiLtsVersion
45
+ static ltsVersion = seamApiLtsVersion
43
46
 
44
47
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
45
48
  const options = parseOptions(apiKeyOrOptions)
@@ -92,7 +95,7 @@ export class SeamHttpPhones {
92
95
  const clientOptions = parseOptions({ ...options, publishableKey })
93
96
  if (isSeamHttpOptionsWithClient(clientOptions)) {
94
97
  throw new SeamHttpInvalidOptionsError(
95
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
98
+ 'The client option cannot be used with SeamHttpPhones.fromPublishableKey',
96
99
  )
97
100
  }
98
101
  const client = createClient(clientOptions)
@@ -166,29 +169,33 @@ export class SeamHttpPhones {
166
169
  return SeamHttpPhonesSimulate.fromClient(this.client, this.defaults)
167
170
  }
168
171
 
169
- deactivate(body?: PhonesDeactivateParams): SeamHttpRequest<void, undefined> {
172
+ deactivate(
173
+ params?: PhonesDeactivateParams,
174
+ ): SeamHttpRequest<void, undefined> {
170
175
  return new SeamHttpRequest(this, {
171
176
  pathname: '/phones/deactivate',
172
- method: 'post',
173
- body,
177
+ method: 'POST',
178
+ body: params,
174
179
  responseKey: undefined,
175
180
  })
176
181
  }
177
182
 
178
- get(body?: PhonesGetParams): SeamHttpRequest<PhonesGetResponse, 'phone'> {
183
+ get(params?: PhonesGetParams): SeamHttpRequest<PhonesGetResponse, 'phone'> {
179
184
  return new SeamHttpRequest(this, {
180
185
  pathname: '/phones/get',
181
- method: 'post',
182
- body,
186
+ method: 'POST',
187
+ body: params,
183
188
  responseKey: 'phone',
184
189
  })
185
190
  }
186
191
 
187
- list(body?: PhonesListParams): SeamHttpRequest<PhonesListResponse, 'phones'> {
192
+ list(
193
+ params?: PhonesListParams,
194
+ ): SeamHttpRequest<PhonesListResponse, 'phones'> {
188
195
  return new SeamHttpRequest(this, {
189
196
  pathname: '/phones/list',
190
- method: 'post',
191
- body,
197
+ method: 'POST',
198
+ body: params,
192
199
  responseKey: 'phones',
193
200
  })
194
201
  }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './simulate.js'
@@ -1,10 +1,11 @@
1
1
  /*
2
- * Automatically generated by generate-routes.ts.
2
+ * Automatically generated by codegen/smith.ts.
3
3
  * Do not edit this file or add other files to this directory.
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
7
 
8
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
8
9
  import {
9
10
  getAuthHeadersForClientSessionToken,
10
11
  warnOnInsecureuserIdentifierKey,
@@ -30,15 +31,16 @@ import {
30
31
  limitToSeamHttpRequestOptions,
31
32
  parseOptions,
32
33
  } from 'lib/seam/connect/parse-options.js'
34
+ import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
33
35
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
36
  import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
35
37
  import type { SetNonNullable } from 'lib/types.js'
36
38
 
37
- import { SeamHttpClientSessions } from './client-sessions.js'
38
-
39
39
  export class SeamHttpPhonesSimulate {
40
40
  client: Client
41
41
  readonly defaults: Required<SeamHttpRequestOptions>
42
+ readonly ltsVersion = seamApiLtsVersion
43
+ static ltsVersion = seamApiLtsVersion
42
44
 
43
45
  constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
44
46
  const options = parseOptions(apiKeyOrOptions)
@@ -91,7 +93,7 @@ export class SeamHttpPhonesSimulate {
91
93
  const clientOptions = parseOptions({ ...options, publishableKey })
92
94
  if (isSeamHttpOptionsWithClient(clientOptions)) {
93
95
  throw new SeamHttpInvalidOptionsError(
94
- 'The client option cannot be used with SeamHttp.fromPublishableKey',
96
+ 'The client option cannot be used with SeamHttpPhonesSimulate.fromPublishableKey',
95
97
  )
96
98
  }
97
99
  const client = createClient(clientOptions)
@@ -166,7 +168,7 @@ export class SeamHttpPhonesSimulate {
166
168
  ): SeamHttpRequest<PhonesSimulateCreateSandboxPhoneResponse, 'phone'> {
167
169
  return new SeamHttpRequest(this, {
168
170
  pathname: '/phones/simulate/create_sandbox_phone',
169
- method: 'post',
171
+ method: 'POST',
170
172
  body,
171
173
  responseKey: 'phone',
172
174
  })
@@ -1,10 +1,14 @@
1
- import { seamApiLtsVersion } from 'lib/lts-version.js'
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
2
5
 
6
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
3
7
  import {
4
8
  getAuthHeadersForClientSessionToken,
5
9
  warnOnInsecureuserIdentifierKey,
6
- } from './auth.js'
7
- import { type Client, createClient } from './client.js'
10
+ } from 'lib/seam/connect/auth.js'
11
+ import { type Client, createClient } from 'lib/seam/connect/client.js'
8
12
  import {
9
13
  isSeamHttpOptionsWithApiKey,
10
14
  isSeamHttpOptionsWithClient,
@@ -20,27 +24,32 @@ import {
20
24
  type SeamHttpOptionsWithConsoleSessionToken,
21
25
  type SeamHttpOptionsWithPersonalAccessToken,
22
26
  type SeamHttpRequestOptions,
23
- } from './options.js'
24
- import { limitToSeamHttpRequestOptions, parseOptions } from './parse-options.js'
27
+ } from 'lib/seam/connect/options.js'
25
28
  import {
26
- SeamHttpAccessCodes,
27
- SeamHttpAcs,
28
- SeamHttpActionAttempts,
29
- SeamHttpClientSessions,
30
- SeamHttpConnectedAccounts,
31
- SeamHttpConnectWebviews,
32
- SeamHttpDevices,
33
- SeamHttpEvents,
34
- SeamHttpLocks,
35
- SeamHttpNoiseSensors,
36
- SeamHttpPhones,
37
- SeamHttpThermostats,
38
- SeamHttpUserIdentities,
39
- SeamHttpWebhooks,
40
- SeamHttpWorkspaces,
41
- } from './routes/index.js'
42
- import type { SeamHttpRequest } from './seam-http-request.js'
43
- import { SeamPaginator } from './seam-paginator.js'
29
+ limitToSeamHttpRequestOptions,
30
+ parseOptions,
31
+ } from 'lib/seam/connect/parse-options.js'
32
+ import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
33
+ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
34
+
35
+ import { SeamHttpAccessCodes } from './access-codes/index.js'
36
+ import { SeamHttpAccessGrants } from './access-grants/index.js'
37
+ import { SeamHttpAccessMethods } from './access-methods/index.js'
38
+ import { SeamHttpAcs } from './acs/index.js'
39
+ import { SeamHttpActionAttempts } from './action-attempts/index.js'
40
+ import { SeamHttpClientSessions } from './client-sessions/index.js'
41
+ import { SeamHttpConnectWebviews } from './connect-webviews/index.js'
42
+ import { SeamHttpConnectedAccounts } from './connected-accounts/index.js'
43
+ import { SeamHttpDevices } from './devices/index.js'
44
+ import { SeamHttpEvents } from './events/index.js'
45
+ import { SeamHttpLocks } from './locks/index.js'
46
+ import { SeamHttpNoiseSensors } from './noise-sensors/index.js'
47
+ import { SeamHttpPhones } from './phones/index.js'
48
+ import { SeamHttpSpaces } from './spaces/index.js'
49
+ import { SeamHttpThermostats } from './thermostats/index.js'
50
+ import { SeamHttpUserIdentities } from './user-identities/index.js'
51
+ import { SeamHttpWebhooks } from './webhooks/index.js'
52
+ import { SeamHttpWorkspaces } from './workspaces/index.js'
44
53
 
45
54
  export class SeamHttp {
46
55
  client: Client
@@ -173,6 +182,14 @@ export class SeamHttp {
173
182
  return SeamHttpAccessCodes.fromClient(this.client, this.defaults)
174
183
  }
175
184
 
185
+ get accessGrants(): SeamHttpAccessGrants {
186
+ return SeamHttpAccessGrants.fromClient(this.client, this.defaults)
187
+ }
188
+
189
+ get accessMethods(): SeamHttpAccessMethods {
190
+ return SeamHttpAccessMethods.fromClient(this.client, this.defaults)
191
+ }
192
+
176
193
  get acs(): SeamHttpAcs {
177
194
  return SeamHttpAcs.fromClient(this.client, this.defaults)
178
195
  }
@@ -185,14 +202,14 @@ export class SeamHttp {
185
202
  return SeamHttpClientSessions.fromClient(this.client, this.defaults)
186
203
  }
187
204
 
188
- get connectedAccounts(): SeamHttpConnectedAccounts {
189
- return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults)
190
- }
191
-
192
205
  get connectWebviews(): SeamHttpConnectWebviews {
193
206
  return SeamHttpConnectWebviews.fromClient(this.client, this.defaults)
194
207
  }
195
208
 
209
+ get connectedAccounts(): SeamHttpConnectedAccounts {
210
+ return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults)
211
+ }
212
+
196
213
  get devices(): SeamHttpDevices {
197
214
  return SeamHttpDevices.fromClient(this.client, this.defaults)
198
215
  }
@@ -213,6 +230,10 @@ export class SeamHttp {
213
230
  return SeamHttpPhones.fromClient(this.client, this.defaults)
214
231
  }
215
232
 
233
+ get spaces(): SeamHttpSpaces {
234
+ return SeamHttpSpaces.fromClient(this.client, this.defaults)
235
+ }
236
+
216
237
  get thermostats(): SeamHttpThermostats {
217
238
  return SeamHttpThermostats.fromClient(this.client, this.defaults)
218
239
  }
@@ -225,7 +246,7 @@ export class SeamHttp {
225
246
  return SeamHttpWebhooks.fromClient(this.client, this.defaults)
226
247
  }
227
248
 
228
- get workspaces(): Omit<SeamHttpWorkspaces, 'create'> {
249
+ get workspaces(): SeamHttpWorkspaces {
229
250
  return SeamHttpWorkspaces.fromClient(this.client, this.defaults)
230
251
  }
231
252
  }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ export * from './spaces.js'