@seamapi/http 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (911) hide show
  1. package/README.md +18 -0
  2. package/index.d.ts +2 -1
  3. package/index.js +2 -1
  4. package/index.js.map +1 -1
  5. package/lib/api-error-types.js.map +1 -0
  6. package/lib/auth.d.ts +12 -0
  7. package/lib/auth.js.map +1 -0
  8. package/lib/client.d.ts +12 -0
  9. package/lib/client.js +21 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/error-interceptor.js.map +1 -0
  12. package/lib/index.js.map +1 -0
  13. package/lib/openapi.js.map +1 -0
  14. package/lib/options.d.ts +54 -0
  15. package/lib/options.js +108 -0
  16. package/lib/options.js.map +1 -0
  17. package/lib/parse-options.d.ts +17 -0
  18. package/lib/parse-options.js +118 -0
  19. package/lib/parse-options.js.map +1 -0
  20. package/lib/request-options.d.ts +5 -0
  21. package/lib/request-options.js +7 -0
  22. package/lib/request-options.js.map +1 -0
  23. package/lib/resolve-action-attempt.d.ts +31 -0
  24. package/lib/resolve-action-attempt.js.map +1 -0
  25. package/lib/resources/access-code.d.ts +934 -0
  26. package/lib/resources/access-code.js.map +1 -0
  27. package/lib/resources/access-grant.d.ts +367 -0
  28. package/lib/resources/access-grant.js.map +1 -0
  29. package/lib/resources/access-method.d.ts +269 -0
  30. package/lib/resources/access-method.js.map +1 -0
  31. package/lib/resources/acs-access-group.d.ts +322 -0
  32. package/lib/resources/acs-access-group.js.map +1 -0
  33. package/lib/resources/acs-credential.d.ts +280 -0
  34. package/lib/resources/acs-credential.js.map +1 -0
  35. package/lib/resources/acs-encoder.d.ts +59 -0
  36. package/lib/resources/acs-encoder.js.map +1 -0
  37. package/lib/resources/acs-entrance.d.ts +406 -0
  38. package/lib/resources/acs-entrance.js.map +1 -0
  39. package/lib/resources/acs-system.d.ts +290 -0
  40. package/lib/resources/acs-system.js.map +1 -0
  41. package/lib/resources/acs-user.d.ts +523 -0
  42. package/lib/resources/acs-user.js.map +1 -0
  43. package/lib/resources/action-attempt.d.ts +1374 -0
  44. package/lib/resources/action-attempt.js.map +1 -0
  45. package/lib/resources/batch.d.ts +57 -0
  46. package/lib/resources/batch.js.map +1 -0
  47. package/lib/resources/client-session.d.ts +62 -0
  48. package/lib/resources/client-session.js.map +1 -0
  49. package/lib/resources/connect-webview.d.ts +91 -0
  50. package/lib/resources/connect-webview.js.map +1 -0
  51. package/lib/resources/connected-account.d.ts +367 -0
  52. package/lib/resources/connected-account.js.map +1 -0
  53. package/lib/resources/customer-portal.d.ts +29 -0
  54. package/lib/resources/customer-portal.js.map +1 -0
  55. package/lib/resources/device-provider.d.ts +98 -0
  56. package/lib/resources/device-provider.js.map +1 -0
  57. package/lib/resources/device.d.ts +2785 -0
  58. package/lib/resources/device.js.map +1 -0
  59. package/lib/resources/event.d.ts +5627 -0
  60. package/lib/resources/event.js.map +1 -0
  61. package/lib/resources/index.js.map +1 -0
  62. package/lib/resources/instant-key.d.ts +56 -0
  63. package/lib/resources/instant-key.js.map +1 -0
  64. package/lib/resources/noise-threshold.d.ts +33 -0
  65. package/lib/resources/noise-threshold.js.map +1 -0
  66. package/lib/resources/phone.d.ts +103 -0
  67. package/lib/resources/phone.js.map +1 -0
  68. package/lib/resources/space.d.ts +75 -0
  69. package/lib/resources/space.js.map +1 -0
  70. package/lib/resources/thermostat-daily-program.d.ts +38 -0
  71. package/lib/resources/thermostat-daily-program.js.map +1 -0
  72. package/lib/resources/thermostat-schedule.d.ts +62 -0
  73. package/lib/resources/thermostat-schedule.js.map +1 -0
  74. package/lib/resources/unmanaged-access-code.d.ts +746 -0
  75. package/lib/resources/unmanaged-access-code.js.map +1 -0
  76. package/lib/resources/unmanaged-access-grant.d.ts +351 -0
  77. package/lib/resources/unmanaged-access-grant.js.map +1 -0
  78. package/lib/resources/unmanaged-access-method.d.ts +257 -0
  79. package/lib/resources/unmanaged-access-method.js.map +1 -0
  80. package/lib/resources/unmanaged-device.d.ts +939 -0
  81. package/lib/resources/unmanaged-device.js.map +1 -0
  82. package/lib/resources/unmanaged-user-identity.d.ts +102 -0
  83. package/lib/resources/unmanaged-user-identity.js.map +1 -0
  84. package/lib/resources/user-identity.d.ts +106 -0
  85. package/lib/resources/user-identity.js.map +1 -0
  86. package/lib/resources/webhook.d.ts +21 -0
  87. package/lib/resources/webhook.js.map +1 -0
  88. package/lib/resources/workspace.d.ts +63 -0
  89. package/lib/resources/workspace.js.map +1 -0
  90. package/lib/routes/access-codes/access-codes.d.ts +495 -0
  91. package/lib/routes/access-codes/access-codes.js +247 -0
  92. package/lib/routes/access-codes/access-codes.js.map +1 -0
  93. package/lib/routes/access-codes/index.js.map +1 -0
  94. package/lib/routes/access-codes/simulate/index.js.map +1 -0
  95. package/lib/routes/access-codes/simulate/simulate.d.ts +47 -0
  96. package/lib/routes/access-codes/simulate/simulate.js +101 -0
  97. package/lib/routes/access-codes/simulate/simulate.js.map +1 -0
  98. package/lib/routes/access-codes/unmanaged/index.js.map +1 -0
  99. package/lib/routes/access-codes/unmanaged/unmanaged.d.ts +164 -0
  100. package/lib/routes/access-codes/unmanaged/unmanaged.js +155 -0
  101. package/lib/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
  102. package/lib/routes/access-grants/access-grants.d.ts +339 -0
  103. package/lib/routes/access-grants/access-grants.js +177 -0
  104. package/lib/routes/access-grants/access-grants.js.map +1 -0
  105. package/lib/routes/access-grants/index.js.map +1 -0
  106. package/lib/routes/access-grants/unmanaged/index.js.map +1 -0
  107. package/lib/routes/access-grants/unmanaged/unmanaged.d.ts +107 -0
  108. package/lib/routes/access-grants/unmanaged/unmanaged.js +129 -0
  109. package/lib/routes/access-grants/unmanaged/unmanaged.js.map +1 -0
  110. package/lib/routes/access-methods/access-methods.d.ts +202 -0
  111. package/lib/routes/access-methods/access-methods.js +190 -0
  112. package/lib/routes/access-methods/access-methods.js.map +1 -0
  113. package/lib/routes/access-methods/index.js.map +1 -0
  114. package/lib/routes/access-methods/unmanaged/index.js.map +1 -0
  115. package/lib/routes/access-methods/unmanaged/unmanaged.d.ts +70 -0
  116. package/lib/routes/access-methods/unmanaged/unmanaged.js +113 -0
  117. package/lib/routes/access-methods/unmanaged/unmanaged.js.map +1 -0
  118. package/lib/routes/acs/access-groups/access-groups.d.ts +177 -0
  119. package/lib/routes/acs/access-groups/access-groups.js +173 -0
  120. package/lib/routes/acs/access-groups/access-groups.js.map +1 -0
  121. package/lib/routes/acs/access-groups/index.js.map +1 -0
  122. package/lib/routes/acs/acs.d.ts +31 -0
  123. package/lib/routes/acs/acs.js +112 -0
  124. package/lib/routes/acs/acs.js.map +1 -0
  125. package/lib/routes/acs/credentials/credentials.d.ts +281 -0
  126. package/lib/routes/acs/credentials/credentials.js +185 -0
  127. package/lib/routes/acs/credentials/credentials.js.map +1 -0
  128. package/lib/routes/acs/credentials/index.js.map +1 -0
  129. package/lib/routes/acs/encoders/encoders.d.ts +165 -0
  130. package/lib/routes/acs/encoders/encoders.js +166 -0
  131. package/lib/routes/acs/encoders/encoders.js.map +1 -0
  132. package/lib/routes/acs/encoders/index.js.map +1 -0
  133. package/lib/routes/acs/encoders/simulate/index.js.map +1 -0
  134. package/lib/routes/acs/encoders/simulate/simulate.d.ts +109 -0
  135. package/lib/routes/acs/encoders/simulate/simulate.js +137 -0
  136. package/lib/routes/acs/encoders/simulate/simulate.js.map +1 -0
  137. package/lib/routes/acs/entrances/entrances.d.ts +170 -0
  138. package/lib/routes/acs/entrances/entrances.js +154 -0
  139. package/lib/routes/acs/entrances/entrances.js.map +1 -0
  140. package/lib/routes/acs/entrances/index.js.map +1 -0
  141. package/lib/routes/acs/index.js.map +1 -0
  142. package/lib/routes/acs/systems/index.js.map +1 -0
  143. package/lib/routes/acs/systems/systems.d.ts +150 -0
  144. package/lib/routes/acs/systems/systems.js +141 -0
  145. package/lib/routes/acs/systems/systems.js.map +1 -0
  146. package/lib/routes/acs/users/index.js.map +1 -0
  147. package/lib/routes/acs/users/users.d.ts +382 -0
  148. package/lib/routes/acs/users/users.js +221 -0
  149. package/lib/routes/acs/users/users.js.map +1 -0
  150. package/lib/routes/action-attempts/action-attempts.d.ts +69 -0
  151. package/lib/routes/action-attempts/action-attempts.js +117 -0
  152. package/lib/routes/action-attempts/action-attempts.js.map +1 -0
  153. package/lib/routes/action-attempts/index.js.map +1 -0
  154. package/lib/routes/client-sessions/client-sessions.d.ts +240 -0
  155. package/lib/routes/client-sessions/client-sessions.js +174 -0
  156. package/lib/routes/client-sessions/client-sessions.js.map +1 -0
  157. package/lib/routes/client-sessions/index.js.map +1 -0
  158. package/lib/routes/connect-webviews/connect-webviews.d.ts +160 -0
  159. package/lib/routes/connect-webviews/connect-webviews.js +147 -0
  160. package/lib/routes/connect-webviews/connect-webviews.js.map +1 -0
  161. package/lib/routes/connect-webviews/index.js.map +1 -0
  162. package/lib/routes/connected-accounts/connected-accounts.d.ts +163 -0
  163. package/lib/routes/connected-accounts/connected-accounts.js +157 -0
  164. package/lib/routes/connected-accounts/connected-accounts.js.map +1 -0
  165. package/lib/routes/connected-accounts/index.js.map +1 -0
  166. package/lib/routes/connected-accounts/simulate/index.js.map +1 -0
  167. package/lib/routes/connected-accounts/simulate/simulate.d.ts +36 -0
  168. package/lib/routes/connected-accounts/simulate/simulate.js +101 -0
  169. package/lib/routes/connected-accounts/simulate/simulate.js.map +1 -0
  170. package/lib/routes/customers/customers.d.ts +1511 -0
  171. package/lib/routes/customers/customers.js +126 -0
  172. package/lib/routes/customers/customers.js.map +1 -0
  173. package/lib/routes/customers/index.js.map +1 -0
  174. package/lib/routes/devices/devices.d.ts +242 -0
  175. package/lib/routes/devices/devices.js +165 -0
  176. package/lib/routes/devices/devices.js.map +1 -0
  177. package/lib/routes/devices/index.js.map +1 -0
  178. package/lib/routes/devices/simulate/index.js.map +1 -0
  179. package/lib/routes/devices/simulate/simulate.d.ts +128 -0
  180. package/lib/routes/devices/simulate/simulate.js +170 -0
  181. package/lib/routes/devices/simulate/simulate.js.map +1 -0
  182. package/lib/routes/devices/unmanaged/index.js.map +1 -0
  183. package/lib/routes/devices/unmanaged/unmanaged.d.ts +155 -0
  184. package/lib/routes/devices/unmanaged/unmanaged.js +133 -0
  185. package/lib/routes/devices/unmanaged/unmanaged.js.map +1 -0
  186. package/lib/routes/events/events.d.ts +174 -0
  187. package/lib/routes/events/events.js +113 -0
  188. package/lib/routes/events/events.js.map +1 -0
  189. package/lib/routes/events/index.js.map +1 -0
  190. package/lib/routes/index.js.map +1 -0
  191. package/lib/routes/instant-keys/index.js.map +1 -0
  192. package/lib/routes/instant-keys/instant-keys.d.ts +79 -0
  193. package/lib/routes/instant-keys/instant-keys.js +125 -0
  194. package/lib/routes/instant-keys/instant-keys.js.map +1 -0
  195. package/lib/routes/locks/index.js.map +1 -0
  196. package/lib/routes/locks/locks.d.ts +188 -0
  197. package/lib/routes/locks/locks.js +167 -0
  198. package/lib/routes/locks/locks.js.map +1 -0
  199. package/lib/routes/locks/simulate/index.js.map +1 -0
  200. package/lib/routes/locks/simulate/simulate.d.ts +60 -0
  201. package/lib/routes/locks/simulate/simulate.js +122 -0
  202. package/lib/routes/locks/simulate/simulate.js.map +1 -0
  203. package/lib/routes/noise-sensors/index.js.map +1 -0
  204. package/lib/routes/noise-sensors/noise-sensors.d.ts +103 -0
  205. package/lib/routes/noise-sensors/noise-sensors.js +109 -0
  206. package/lib/routes/noise-sensors/noise-sensors.js.map +1 -0
  207. package/lib/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
  208. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +159 -0
  209. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +149 -0
  210. package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
  211. package/lib/routes/noise-sensors/simulate/index.js.map +1 -0
  212. package/lib/routes/noise-sensors/simulate/simulate.d.ts +36 -0
  213. package/lib/routes/noise-sensors/simulate/simulate.js +101 -0
  214. package/lib/routes/noise-sensors/simulate/simulate.js.map +1 -0
  215. package/lib/routes/phones/index.js.map +1 -0
  216. package/lib/routes/phones/phones.d.ts +81 -0
  217. package/lib/routes/phones/phones.js +129 -0
  218. package/lib/routes/phones/phones.js.map +1 -0
  219. package/lib/routes/phones/simulate/index.js.map +1 -0
  220. package/lib/routes/phones/simulate/simulate.d.ts +93 -0
  221. package/lib/routes/phones/simulate/simulate.js +101 -0
  222. package/lib/routes/phones/simulate/simulate.js.map +1 -0
  223. package/lib/routes/seam-http-endpoints-without-workspace.d.ts +23 -0
  224. package/lib/routes/seam-http-endpoints-without-workspace.js +62 -0
  225. package/lib/routes/seam-http-endpoints-without-workspace.js.map +1 -0
  226. package/lib/routes/seam-http-endpoints.d.ts +960 -0
  227. package/lib/routes/seam-http-endpoints.js +2231 -0
  228. package/lib/routes/seam-http-endpoints.js.map +1 -0
  229. package/lib/routes/seam-http-without-workspace.d.ts +18 -0
  230. package/lib/routes/seam-http-without-workspace.js +49 -0
  231. package/lib/routes/seam-http-without-workspace.js.map +1 -0
  232. package/lib/routes/seam-http.d.ts +59 -0
  233. package/lib/routes/seam-http.js +167 -0
  234. package/lib/routes/seam-http.js.map +1 -0
  235. package/lib/routes/spaces/index.js.map +1 -0
  236. package/lib/routes/spaces/spaces.d.ts +363 -0
  237. package/lib/routes/spaces/spaces.js +233 -0
  238. package/lib/routes/spaces/spaces.js.map +1 -0
  239. package/lib/routes/thermostats/daily-programs/daily-programs.d.ts +109 -0
  240. package/lib/routes/thermostats/daily-programs/daily-programs.js +130 -0
  241. package/lib/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
  242. package/lib/routes/thermostats/daily-programs/index.js.map +1 -0
  243. package/lib/routes/thermostats/index.js.map +1 -0
  244. package/lib/routes/thermostats/schedules/index.js.map +1 -0
  245. package/lib/routes/thermostats/schedules/schedules.d.ts +163 -0
  246. package/lib/routes/thermostats/schedules/schedules.js +149 -0
  247. package/lib/routes/thermostats/schedules/schedules.js.map +1 -0
  248. package/lib/routes/thermostats/simulate/index.js.map +1 -0
  249. package/lib/routes/thermostats/simulate/simulate.d.ts +81 -0
  250. package/lib/routes/thermostats/simulate/simulate.js +113 -0
  251. package/lib/routes/thermostats/simulate/simulate.js.map +1 -0
  252. package/lib/routes/thermostats/thermostats.d.ts +565 -0
  253. package/lib/routes/thermostats/thermostats.js +302 -0
  254. package/lib/routes/thermostats/thermostats.js.map +1 -0
  255. package/lib/routes/user-identities/index.js.map +1 -0
  256. package/lib/routes/user-identities/unmanaged/index.js.map +1 -0
  257. package/lib/routes/user-identities/unmanaged/unmanaged.d.ts +97 -0
  258. package/lib/routes/user-identities/unmanaged/unmanaged.js +127 -0
  259. package/lib/routes/user-identities/unmanaged/unmanaged.js.map +1 -0
  260. package/lib/routes/user-identities/user-identities.d.ts +363 -0
  261. package/lib/routes/user-identities/user-identities.js +265 -0
  262. package/lib/routes/user-identities/user-identities.js.map +1 -0
  263. package/lib/routes/webhooks/index.js.map +1 -0
  264. package/lib/routes/webhooks/webhooks.d.ts +114 -0
  265. package/lib/routes/webhooks/webhooks.js +149 -0
  266. package/lib/routes/webhooks/webhooks.js.map +1 -0
  267. package/lib/routes/workspaces/index.js.map +1 -0
  268. package/lib/routes/workspaces/workspaces.d.ts +189 -0
  269. package/lib/routes/workspaces/workspaces.js +154 -0
  270. package/lib/routes/workspaces/workspaces.js.map +1 -0
  271. package/lib/seam-http-error.js.map +1 -0
  272. package/lib/seam-http-request.d.ts +34 -0
  273. package/lib/seam-http-request.js +101 -0
  274. package/lib/seam-http-request.js.map +1 -0
  275. package/lib/seam-paginator.js.map +1 -0
  276. package/lib/token.js.map +1 -0
  277. package/lib/version.d.ts +1 -1
  278. package/lib/version.js +1 -1
  279. package/package.json +8 -11
  280. package/src/index.ts +2 -1
  281. package/src/lib/auth.ts +280 -0
  282. package/src/lib/client.ts +36 -0
  283. package/src/lib/options.ts +242 -0
  284. package/src/lib/parse-options.ts +182 -0
  285. package/src/lib/request-options.ts +14 -0
  286. package/src/lib/resolve-action-attempt.ts +129 -0
  287. package/src/lib/resources/access-code.ts +1088 -0
  288. package/src/lib/resources/access-grant.ts +437 -0
  289. package/src/lib/resources/access-method.ts +312 -0
  290. package/src/lib/resources/acs-access-group.ts +402 -0
  291. package/src/lib/resources/acs-credential.ts +332 -0
  292. package/src/lib/resources/acs-encoder.ts +72 -0
  293. package/src/lib/resources/acs-entrance.ts +469 -0
  294. package/src/lib/resources/acs-system.ts +377 -0
  295. package/src/lib/resources/acs-user.ts +627 -0
  296. package/src/lib/resources/action-attempt.ts +1672 -0
  297. package/src/lib/resources/batch.ts +65 -0
  298. package/src/lib/resources/client-session.ts +75 -0
  299. package/src/lib/resources/connect-webview.ts +110 -0
  300. package/src/lib/resources/connected-account.ts +425 -0
  301. package/src/lib/resources/customer-portal.ts +38 -0
  302. package/src/lib/resources/device-provider.ts +178 -0
  303. package/src/lib/resources/device.ts +3217 -0
  304. package/src/lib/resources/event.ts +6743 -0
  305. package/src/lib/resources/instant-key.ts +69 -0
  306. package/src/lib/resources/noise-threshold.ts +43 -0
  307. package/src/lib/resources/phone.ts +126 -0
  308. package/src/lib/resources/space.ts +92 -0
  309. package/src/lib/resources/thermostat-daily-program.ts +48 -0
  310. package/src/lib/resources/thermostat-schedule.ts +76 -0
  311. package/src/lib/resources/unmanaged-access-code.ts +870 -0
  312. package/src/lib/resources/unmanaged-access-grant.ts +420 -0
  313. package/src/lib/resources/unmanaged-access-method.ts +300 -0
  314. package/src/lib/resources/unmanaged-device.ts +1157 -0
  315. package/src/lib/resources/unmanaged-user-identity.ts +124 -0
  316. package/src/lib/resources/user-identity.ts +128 -0
  317. package/src/lib/resources/webhook.ts +27 -0
  318. package/src/lib/resources/workspace.ts +75 -0
  319. package/src/lib/routes/access-codes/access-codes.ts +818 -0
  320. package/src/lib/routes/access-codes/simulate/simulate.ts +211 -0
  321. package/src/lib/routes/access-codes/unmanaged/unmanaged.ts +395 -0
  322. package/src/lib/routes/access-grants/access-grants.ts +640 -0
  323. package/src/lib/routes/access-grants/unmanaged/unmanaged.ts +305 -0
  324. package/src/lib/routes/access-methods/access-methods.ts +523 -0
  325. package/src/lib/routes/access-methods/unmanaged/unmanaged.ts +250 -0
  326. package/src/lib/routes/acs/access-groups/access-groups.ts +435 -0
  327. package/src/lib/routes/acs/acs.ts +193 -0
  328. package/src/lib/routes/acs/credentials/credentials.ts +569 -0
  329. package/src/lib/routes/acs/encoders/encoders.ts +429 -0
  330. package/src/lib/routes/acs/encoders/simulate/simulate.ts +335 -0
  331. package/src/lib/routes/acs/entrances/entrances.ts +406 -0
  332. package/src/lib/routes/acs/systems/systems.ts +367 -0
  333. package/src/lib/routes/acs/users/users.ts +710 -0
  334. package/src/lib/routes/action-attempts/action-attempts.ts +254 -0
  335. package/src/lib/routes/client-sessions/client-sessions.ts +495 -0
  336. package/src/lib/routes/connect-webviews/connect-webviews.ts +452 -0
  337. package/src/lib/routes/connected-accounts/connected-accounts.ts +399 -0
  338. package/src/lib/routes/connected-accounts/simulate/simulate.ts +200 -0
  339. package/src/lib/routes/customers/customers.ts +1838 -0
  340. package/src/lib/routes/devices/devices.ts +1918 -0
  341. package/src/lib/routes/devices/simulate/simulate.ts +371 -0
  342. package/src/lib/routes/devices/unmanaged/unmanaged.ts +486 -0
  343. package/src/lib/routes/events/events.ts +565 -0
  344. package/src/lib/routes/instant-keys/instant-keys.ts +269 -0
  345. package/src/lib/routes/locks/locks.ts +532 -0
  346. package/src/lib/routes/locks/simulate/simulate.ts +257 -0
  347. package/src/lib/routes/noise-sensors/noise-sensors.ts +272 -0
  348. package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +400 -0
  349. package/src/lib/routes/noise-sensors/simulate/simulate.ts +197 -0
  350. package/src/lib/routes/phones/phones.ts +269 -0
  351. package/src/lib/routes/phones/simulate/simulate.ts +256 -0
  352. package/src/lib/routes/seam-http-endpoints-without-workspace.ts +132 -0
  353. package/src/lib/routes/seam-http-endpoints.ts +4457 -0
  354. package/src/lib/routes/seam-http-without-workspace.ts +96 -0
  355. package/src/lib/routes/seam-http.ts +262 -0
  356. package/src/lib/routes/spaces/spaces.ts +721 -0
  357. package/src/lib/routes/thermostats/daily-programs/daily-programs.ts +322 -0
  358. package/src/lib/routes/thermostats/schedules/schedules.ts +394 -0
  359. package/src/lib/routes/thermostats/simulate/simulate.ts +263 -0
  360. package/src/lib/routes/thermostats/thermostats.ts +1067 -0
  361. package/src/lib/routes/user-identities/unmanaged/unmanaged.ts +299 -0
  362. package/src/lib/routes/user-identities/user-identities.ts +756 -0
  363. package/src/lib/routes/webhooks/webhooks.ts +333 -0
  364. package/src/lib/routes/workspaces/workspaces.ts +425 -0
  365. package/src/lib/seam-http-request.ts +201 -0
  366. package/src/lib/version.ts +1 -1
  367. package/connect.d.ts +0 -2
  368. package/connect.js +0 -3
  369. package/connect.js.map +0 -1
  370. package/lib/seam/connect/api-error-types.js.map +0 -1
  371. package/lib/seam/connect/auth.d.ts +0 -10
  372. package/lib/seam/connect/auth.js.map +0 -1
  373. package/lib/seam/connect/client.d.ts +0 -10
  374. package/lib/seam/connect/client.js +0 -19
  375. package/lib/seam/connect/client.js.map +0 -1
  376. package/lib/seam/connect/error-interceptor.js.map +0 -1
  377. package/lib/seam/connect/index.js.map +0 -1
  378. package/lib/seam/connect/openapi.js.map +0 -1
  379. package/lib/seam/connect/options.d.ts +0 -57
  380. package/lib/seam/connect/options.js +0 -108
  381. package/lib/seam/connect/options.js.map +0 -1
  382. package/lib/seam/connect/parse-options.d.ts +0 -18
  383. package/lib/seam/connect/parse-options.js +0 -120
  384. package/lib/seam/connect/parse-options.js.map +0 -1
  385. package/lib/seam/connect/resolve-action-attempt.d.ts +0 -27
  386. package/lib/seam/connect/resolve-action-attempt.js.map +0 -1
  387. package/lib/seam/connect/resources/access-code.d.ts +0 -247
  388. package/lib/seam/connect/resources/access-code.js.map +0 -1
  389. package/lib/seam/connect/resources/access-grant.d.ts +0 -98
  390. package/lib/seam/connect/resources/access-grant.js.map +0 -1
  391. package/lib/seam/connect/resources/access-method.d.ts +0 -73
  392. package/lib/seam/connect/resources/access-method.js.map +0 -1
  393. package/lib/seam/connect/resources/acs-access-group.d.ts +0 -89
  394. package/lib/seam/connect/resources/acs-access-group.js.map +0 -1
  395. package/lib/seam/connect/resources/acs-credential.d.ts +0 -74
  396. package/lib/seam/connect/resources/acs-credential.js.map +0 -1
  397. package/lib/seam/connect/resources/acs-encoder.d.ts +0 -13
  398. package/lib/seam/connect/resources/acs-encoder.js.map +0 -1
  399. package/lib/seam/connect/resources/acs-entrance.d.ts +0 -113
  400. package/lib/seam/connect/resources/acs-entrance.js.map +0 -1
  401. package/lib/seam/connect/resources/acs-system.d.ts +0 -74
  402. package/lib/seam/connect/resources/acs-system.js.map +0 -1
  403. package/lib/seam/connect/resources/acs-user.d.ts +0 -154
  404. package/lib/seam/connect/resources/acs-user.js.map +0 -1
  405. package/lib/seam/connect/resources/action-attempt.d.ts +0 -420
  406. package/lib/seam/connect/resources/action-attempt.js.map +0 -1
  407. package/lib/seam/connect/resources/batch.d.ts +0 -54
  408. package/lib/seam/connect/resources/batch.js.map +0 -1
  409. package/lib/seam/connect/resources/client-session.d.ts +0 -14
  410. package/lib/seam/connect/resources/client-session.js.map +0 -1
  411. package/lib/seam/connect/resources/connect-webview.d.ts +0 -21
  412. package/lib/seam/connect/resources/connect-webview.js.map +0 -1
  413. package/lib/seam/connect/resources/connected-account.d.ts +0 -98
  414. package/lib/seam/connect/resources/connected-account.js.map +0 -1
  415. package/lib/seam/connect/resources/customer-portal.d.ts +0 -7
  416. package/lib/seam/connect/resources/customer-portal.js.map +0 -1
  417. package/lib/seam/connect/resources/device-provider.d.ts +0 -26
  418. package/lib/seam/connect/resources/device-provider.js.map +0 -1
  419. package/lib/seam/connect/resources/device.d.ts +0 -763
  420. package/lib/seam/connect/resources/device.js.map +0 -1
  421. package/lib/seam/connect/resources/event.d.ts +0 -1613
  422. package/lib/seam/connect/resources/event.js.map +0 -1
  423. package/lib/seam/connect/resources/index.js.map +0 -1
  424. package/lib/seam/connect/resources/instant-key.d.ts +0 -15
  425. package/lib/seam/connect/resources/instant-key.js.map +0 -1
  426. package/lib/seam/connect/resources/noise-threshold.d.ts +0 -9
  427. package/lib/seam/connect/resources/noise-threshold.js.map +0 -1
  428. package/lib/seam/connect/resources/phone.d.ts +0 -31
  429. package/lib/seam/connect/resources/phone.js.map +0 -1
  430. package/lib/seam/connect/resources/space.d.ts +0 -21
  431. package/lib/seam/connect/resources/space.js.map +0 -1
  432. package/lib/seam/connect/resources/thermostat-daily-program.d.ts +0 -11
  433. package/lib/seam/connect/resources/thermostat-daily-program.js.map +0 -1
  434. package/lib/seam/connect/resources/thermostat-schedule.d.ts +0 -17
  435. package/lib/seam/connect/resources/thermostat-schedule.js.map +0 -1
  436. package/lib/seam/connect/resources/unmanaged-access-code.d.ts +0 -194
  437. package/lib/seam/connect/resources/unmanaged-access-code.js.map +0 -1
  438. package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +0 -94
  439. package/lib/seam/connect/resources/unmanaged-access-grant.js.map +0 -1
  440. package/lib/seam/connect/resources/unmanaged-access-method.d.ts +0 -70
  441. package/lib/seam/connect/resources/unmanaged-access-method.js.map +0 -1
  442. package/lib/seam/connect/resources/unmanaged-device.d.ts +0 -249
  443. package/lib/seam/connect/resources/unmanaged-device.js.map +0 -1
  444. package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +0 -26
  445. package/lib/seam/connect/resources/unmanaged-user-identity.js.map +0 -1
  446. package/lib/seam/connect/resources/user-identity.d.ts +0 -27
  447. package/lib/seam/connect/resources/user-identity.js.map +0 -1
  448. package/lib/seam/connect/resources/webhook.d.ts +0 -6
  449. package/lib/seam/connect/resources/webhook.js.map +0 -1
  450. package/lib/seam/connect/resources/workspace.d.ts +0 -18
  451. package/lib/seam/connect/resources/workspace.js.map +0 -1
  452. package/lib/seam/connect/routes/access-codes/access-codes.d.ts +0 -207
  453. package/lib/seam/connect/routes/access-codes/access-codes.js +0 -187
  454. package/lib/seam/connect/routes/access-codes/access-codes.js.map +0 -1
  455. package/lib/seam/connect/routes/access-codes/index.js.map +0 -1
  456. package/lib/seam/connect/routes/access-codes/simulate/index.js.map +0 -1
  457. package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +0 -35
  458. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +0 -98
  459. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +0 -1
  460. package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +0 -1
  461. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +0 -92
  462. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +0 -134
  463. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +0 -1
  464. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +0 -162
  465. package/lib/seam/connect/routes/access-grants/access-grants.js +0 -156
  466. package/lib/seam/connect/routes/access-grants/access-grants.js.map +0 -1
  467. package/lib/seam/connect/routes/access-grants/index.js.map +0 -1
  468. package/lib/seam/connect/routes/access-grants/unmanaged/index.js.map +0 -1
  469. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +0 -64
  470. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +0 -116
  471. package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +0 -1
  472. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +0 -124
  473. package/lib/seam/connect/routes/access-methods/access-methods.js +0 -156
  474. package/lib/seam/connect/routes/access-methods/access-methods.js.map +0 -1
  475. package/lib/seam/connect/routes/access-methods/index.js.map +0 -1
  476. package/lib/seam/connect/routes/access-methods/unmanaged/index.js.map +0 -1
  477. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +0 -49
  478. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +0 -107
  479. package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +0 -1
  480. package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +0 -114
  481. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +0 -152
  482. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +0 -1
  483. package/lib/seam/connect/routes/acs/access-groups/index.js.map +0 -1
  484. package/lib/seam/connect/routes/acs/acs.d.ts +0 -31
  485. package/lib/seam/connect/routes/acs/acs.js +0 -112
  486. package/lib/seam/connect/routes/acs/acs.js.map +0 -1
  487. package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +0 -155
  488. package/lib/seam/connect/routes/acs/credentials/credentials.js +0 -161
  489. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +0 -1
  490. package/lib/seam/connect/routes/acs/credentials/index.js.map +0 -1
  491. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -99
  492. package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -138
  493. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +0 -1
  494. package/lib/seam/connect/routes/acs/encoders/index.js.map +0 -1
  495. package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +0 -1
  496. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +0 -70
  497. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +0 -125
  498. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +0 -1
  499. package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +0 -98
  500. package/lib/seam/connect/routes/acs/entrances/entrances.js +0 -134
  501. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +0 -1
  502. package/lib/seam/connect/routes/acs/entrances/index.js.map +0 -1
  503. package/lib/seam/connect/routes/acs/index.js.map +0 -1
  504. package/lib/seam/connect/routes/acs/systems/index.js.map +0 -1
  505. package/lib/seam/connect/routes/acs/systems/systems.d.ts +0 -86
  506. package/lib/seam/connect/routes/acs/systems/systems.js +0 -125
  507. package/lib/seam/connect/routes/acs/systems/systems.js.map +0 -1
  508. package/lib/seam/connect/routes/acs/users/index.js.map +0 -1
  509. package/lib/seam/connect/routes/acs/users/users.d.ts +0 -193
  510. package/lib/seam/connect/routes/acs/users/users.js +0 -188
  511. package/lib/seam/connect/routes/acs/users/users.js.map +0 -1
  512. package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +0 -48
  513. package/lib/seam/connect/routes/action-attempts/action-attempts.js +0 -107
  514. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +0 -1
  515. package/lib/seam/connect/routes/action-attempts/index.js.map +0 -1
  516. package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +0 -127
  517. package/lib/seam/connect/routes/client-sessions/client-sessions.js +0 -151
  518. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +0 -1
  519. package/lib/seam/connect/routes/client-sessions/index.js.map +0 -1
  520. package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +0 -84
  521. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +0 -125
  522. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +0 -1
  523. package/lib/seam/connect/routes/connect-webviews/index.js.map +0 -1
  524. package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +0 -93
  525. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +0 -138
  526. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +0 -1
  527. package/lib/seam/connect/routes/connected-accounts/index.js.map +0 -1
  528. package/lib/seam/connect/routes/connected-accounts/simulate/index.js.map +0 -1
  529. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +0 -30
  530. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +0 -98
  531. package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +0 -1
  532. package/lib/seam/connect/routes/customers/customers.d.ts +0 -469
  533. package/lib/seam/connect/routes/customers/customers.js +0 -116
  534. package/lib/seam/connect/routes/customers/customers.js.map +0 -1
  535. package/lib/seam/connect/routes/customers/index.js.map +0 -1
  536. package/lib/seam/connect/routes/devices/devices.d.ts +0 -120
  537. package/lib/seam/connect/routes/devices/devices.js +0 -142
  538. package/lib/seam/connect/routes/devices/devices.js.map +0 -1
  539. package/lib/seam/connect/routes/devices/index.js.map +0 -1
  540. package/lib/seam/connect/routes/devices/simulate/index.js.map +0 -1
  541. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +0 -86
  542. package/lib/seam/connect/routes/devices/simulate/simulate.js +0 -143
  543. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +0 -1
  544. package/lib/seam/connect/routes/devices/unmanaged/index.js.map +0 -1
  545. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +0 -75
  546. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +0 -116
  547. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +0 -1
  548. package/lib/seam/connect/routes/events/events.d.ts +0 -75
  549. package/lib/seam/connect/routes/events/events.js +0 -107
  550. package/lib/seam/connect/routes/events/events.js.map +0 -1
  551. package/lib/seam/connect/routes/events/index.js.map +0 -1
  552. package/lib/seam/connect/routes/index.js.map +0 -1
  553. package/lib/seam/connect/routes/instant-keys/index.js.map +0 -1
  554. package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +0 -58
  555. package/lib/seam/connect/routes/instant-keys/instant-keys.js +0 -116
  556. package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +0 -1
  557. package/lib/seam/connect/routes/locks/index.js.map +0 -1
  558. package/lib/seam/connect/routes/locks/locks.d.ts +0 -103
  559. package/lib/seam/connect/routes/locks/locks.js +0 -138
  560. package/lib/seam/connect/routes/locks/locks.js.map +0 -1
  561. package/lib/seam/connect/routes/locks/simulate/index.js.map +0 -1
  562. package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +0 -45
  563. package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -107
  564. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +0 -1
  565. package/lib/seam/connect/routes/noise-sensors/index.js.map +0 -1
  566. package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +0 -52
  567. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +0 -106
  568. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +0 -1
  569. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +0 -1
  570. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +0 -93
  571. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +0 -134
  572. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +0 -1
  573. package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +0 -1
  574. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +0 -30
  575. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +0 -98
  576. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +0 -1
  577. package/lib/seam/connect/routes/phones/index.js.map +0 -1
  578. package/lib/seam/connect/routes/phones/phones.d.ts +0 -60
  579. package/lib/seam/connect/routes/phones/phones.js +0 -120
  580. package/lib/seam/connect/routes/phones/phones.js.map +0 -1
  581. package/lib/seam/connect/routes/phones/simulate/index.js.map +0 -1
  582. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +0 -48
  583. package/lib/seam/connect/routes/phones/simulate/simulate.js +0 -98
  584. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +0 -1
  585. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +0 -17
  586. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +0 -56
  587. package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +0 -1
  588. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +0 -264
  589. package/lib/seam/connect/routes/seam-http-endpoints.js +0 -1535
  590. package/lib/seam/connect/routes/seam-http-endpoints.js.map +0 -1
  591. package/lib/seam/connect/routes/seam-http-without-workspace.d.ts +0 -18
  592. package/lib/seam/connect/routes/seam-http-without-workspace.js +0 -49
  593. package/lib/seam/connect/routes/seam-http-without-workspace.js.map +0 -1
  594. package/lib/seam/connect/routes/seam-http.d.ts +0 -59
  595. package/lib/seam/connect/routes/seam-http.js +0 -167
  596. package/lib/seam/connect/routes/seam-http.js.map +0 -1
  597. package/lib/seam/connect/routes/spaces/index.js.map +0 -1
  598. package/lib/seam/connect/routes/spaces/spaces.d.ts +0 -198
  599. package/lib/seam/connect/routes/spaces/spaces.js +0 -197
  600. package/lib/seam/connect/routes/spaces/spaces.js.map +0 -1
  601. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +0 -67
  602. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -116
  603. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +0 -1
  604. package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +0 -1
  605. package/lib/seam/connect/routes/thermostats/index.js.map +0 -1
  606. package/lib/seam/connect/routes/thermostats/schedules/index.js.map +0 -1
  607. package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +0 -94
  608. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +0 -134
  609. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +0 -1
  610. package/lib/seam/connect/routes/thermostats/simulate/index.js.map +0 -1
  611. package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +0 -48
  612. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +0 -107
  613. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +0 -1
  614. package/lib/seam/connect/routes/thermostats/thermostats.d.ts +0 -265
  615. package/lib/seam/connect/routes/thermostats/thermostats.js +0 -227
  616. package/lib/seam/connect/routes/thermostats/thermostats.js.map +0 -1
  617. package/lib/seam/connect/routes/user-identities/index.js.map +0 -1
  618. package/lib/seam/connect/routes/user-identities/unmanaged/index.js.map +0 -1
  619. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +0 -62
  620. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +0 -116
  621. package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +0 -1
  622. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +0 -218
  623. package/lib/seam/connect/routes/user-identities/user-identities.js +0 -219
  624. package/lib/seam/connect/routes/user-identities/user-identities.js.map +0 -1
  625. package/lib/seam/connect/routes/webhooks/index.js.map +0 -1
  626. package/lib/seam/connect/routes/webhooks/webhooks.d.ts +0 -81
  627. package/lib/seam/connect/routes/webhooks/webhooks.js +0 -134
  628. package/lib/seam/connect/routes/webhooks/webhooks.js.map +0 -1
  629. package/lib/seam/connect/routes/workspaces/index.js.map +0 -1
  630. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +0 -101
  631. package/lib/seam/connect/routes/workspaces/workspaces.js +0 -134
  632. package/lib/seam/connect/routes/workspaces/workspaces.js.map +0 -1
  633. package/lib/seam/connect/seam-http-error.js.map +0 -1
  634. package/lib/seam/connect/seam-http-request.d.ts +0 -32
  635. package/lib/seam/connect/seam-http-request.js +0 -102
  636. package/lib/seam/connect/seam-http-request.js.map +0 -1
  637. package/lib/seam/connect/seam-paginator.js.map +0 -1
  638. package/lib/seam/connect/token.js.map +0 -1
  639. package/src/connect.ts +0 -2
  640. package/src/lib/seam/connect/auth.ts +0 -276
  641. package/src/lib/seam/connect/client.ts +0 -32
  642. package/src/lib/seam/connect/options.ts +0 -242
  643. package/src/lib/seam/connect/parse-options.ts +0 -187
  644. package/src/lib/seam/connect/resolve-action-attempt.ts +0 -126
  645. package/src/lib/seam/connect/resources/access-code.ts +0 -404
  646. package/src/lib/seam/connect/resources/access-grant.ts +0 -169
  647. package/src/lib/seam/connect/resources/access-method.ts +0 -117
  648. package/src/lib/seam/connect/resources/acs-access-group.ts +0 -169
  649. package/src/lib/seam/connect/resources/acs-credential.ts +0 -127
  650. package/src/lib/seam/connect/resources/acs-encoder.ts +0 -26
  651. package/src/lib/seam/connect/resources/acs-entrance.ts +0 -177
  652. package/src/lib/seam/connect/resources/acs-system.ts +0 -163
  653. package/src/lib/seam/connect/resources/acs-user.ts +0 -261
  654. package/src/lib/seam/connect/resources/action-attempt.ts +0 -716
  655. package/src/lib/seam/connect/resources/batch.ts +0 -62
  656. package/src/lib/seam/connect/resources/client-session.ts +0 -27
  657. package/src/lib/seam/connect/resources/connect-webview.ts +0 -40
  658. package/src/lib/seam/connect/resources/connected-account.ts +0 -158
  659. package/src/lib/seam/connect/resources/customer-portal.ts +0 -16
  660. package/src/lib/seam/connect/resources/device-provider.ts +0 -106
  661. package/src/lib/seam/connect/resources/device.ts +0 -1197
  662. package/src/lib/seam/connect/resources/event.ts +0 -2728
  663. package/src/lib/seam/connect/resources/instant-key.ts +0 -28
  664. package/src/lib/seam/connect/resources/noise-threshold.ts +0 -19
  665. package/src/lib/seam/connect/resources/phone.ts +0 -54
  666. package/src/lib/seam/connect/resources/space.ts +0 -38
  667. package/src/lib/seam/connect/resources/thermostat-daily-program.ts +0 -21
  668. package/src/lib/seam/connect/resources/thermostat-schedule.ts +0 -31
  669. package/src/lib/seam/connect/resources/unmanaged-access-code.ts +0 -320
  670. package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +0 -164
  671. package/src/lib/seam/connect/resources/unmanaged-access-method.ts +0 -114
  672. package/src/lib/seam/connect/resources/unmanaged-device.ts +0 -469
  673. package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +0 -48
  674. package/src/lib/seam/connect/resources/user-identity.ts +0 -49
  675. package/src/lib/seam/connect/resources/webhook.ts +0 -12
  676. package/src/lib/seam/connect/resources/workspace.ts +0 -29
  677. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +0 -527
  678. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +0 -199
  679. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +0 -322
  680. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +0 -460
  681. package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +0 -262
  682. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +0 -431
  683. package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +0 -229
  684. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +0 -372
  685. package/src/lib/seam/connect/routes/acs/acs.ts +0 -193
  686. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +0 -436
  687. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -350
  688. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +0 -295
  689. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +0 -329
  690. package/src/lib/seam/connect/routes/acs/systems/systems.ts +0 -303
  691. package/src/lib/seam/connect/routes/acs/users/users.ts +0 -521
  692. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +0 -229
  693. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +0 -382
  694. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +0 -376
  695. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +0 -329
  696. package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +0 -194
  697. package/src/lib/seam/connect/routes/customers/customers.ts +0 -780
  698. package/src/lib/seam/connect/routes/devices/devices.ts +0 -1795
  699. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +0 -329
  700. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +0 -406
  701. package/src/lib/seam/connect/routes/events/events.ts +0 -466
  702. package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +0 -248
  703. package/src/lib/seam/connect/routes/locks/locks.ts +0 -434
  704. package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -233
  705. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +0 -221
  706. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +0 -334
  707. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +0 -191
  708. package/src/lib/seam/connect/routes/phones/phones.ts +0 -248
  709. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +0 -211
  710. package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +0 -126
  711. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -3761
  712. package/src/lib/seam/connect/routes/seam-http-without-workspace.ts +0 -96
  713. package/src/lib/seam/connect/routes/seam-http.ts +0 -262
  714. package/src/lib/seam/connect/routes/spaces/spaces.ts +0 -555
  715. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -275
  716. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +0 -325
  717. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +0 -230
  718. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -734
  719. package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +0 -264
  720. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +0 -610
  721. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +0 -300
  722. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +0 -332
  723. package/src/lib/seam/connect/seam-http-request.ts +0 -196
  724. /package/lib/{seam/connect/api-error-types.d.ts → api-error-types.d.ts} +0 -0
  725. /package/lib/{seam/connect/api-error-types.js → api-error-types.js} +0 -0
  726. /package/lib/{seam/connect/auth.js → auth.js} +0 -0
  727. /package/lib/{seam/connect/error-interceptor.d.ts → error-interceptor.d.ts} +0 -0
  728. /package/lib/{seam/connect/error-interceptor.js → error-interceptor.js} +0 -0
  729. /package/lib/{seam/connect/index.d.ts → index.d.ts} +0 -0
  730. /package/lib/{seam/connect/index.js → index.js} +0 -0
  731. /package/lib/{seam/connect/openapi.d.ts → openapi.d.ts} +0 -0
  732. /package/lib/{seam/connect/openapi.js → openapi.js} +0 -0
  733. /package/lib/{seam/connect/resolve-action-attempt.js → resolve-action-attempt.js} +0 -0
  734. /package/lib/{seam/connect/resources → resources}/access-code.js +0 -0
  735. /package/lib/{seam/connect/resources → resources}/access-grant.js +0 -0
  736. /package/lib/{seam/connect/resources → resources}/access-method.js +0 -0
  737. /package/lib/{seam/connect/resources → resources}/acs-access-group.js +0 -0
  738. /package/lib/{seam/connect/resources → resources}/acs-credential.js +0 -0
  739. /package/lib/{seam/connect/resources → resources}/acs-encoder.js +0 -0
  740. /package/lib/{seam/connect/resources → resources}/acs-entrance.js +0 -0
  741. /package/lib/{seam/connect/resources → resources}/acs-system.js +0 -0
  742. /package/lib/{seam/connect/resources → resources}/acs-user.js +0 -0
  743. /package/lib/{seam/connect/resources → resources}/action-attempt.js +0 -0
  744. /package/lib/{seam/connect/resources → resources}/batch.js +0 -0
  745. /package/lib/{seam/connect/resources → resources}/client-session.js +0 -0
  746. /package/lib/{seam/connect/resources → resources}/connect-webview.js +0 -0
  747. /package/lib/{seam/connect/resources → resources}/connected-account.js +0 -0
  748. /package/lib/{seam/connect/resources → resources}/customer-portal.js +0 -0
  749. /package/lib/{seam/connect/resources → resources}/device-provider.js +0 -0
  750. /package/lib/{seam/connect/resources → resources}/device.js +0 -0
  751. /package/lib/{seam/connect/resources → resources}/event.js +0 -0
  752. /package/lib/{seam/connect/resources → resources}/index.d.ts +0 -0
  753. /package/lib/{seam/connect/resources → resources}/index.js +0 -0
  754. /package/lib/{seam/connect/resources → resources}/instant-key.js +0 -0
  755. /package/lib/{seam/connect/resources → resources}/noise-threshold.js +0 -0
  756. /package/lib/{seam/connect/resources → resources}/phone.js +0 -0
  757. /package/lib/{seam/connect/resources → resources}/space.js +0 -0
  758. /package/lib/{seam/connect/resources → resources}/thermostat-daily-program.js +0 -0
  759. /package/lib/{seam/connect/resources → resources}/thermostat-schedule.js +0 -0
  760. /package/lib/{seam/connect/resources → resources}/unmanaged-access-code.js +0 -0
  761. /package/lib/{seam/connect/resources → resources}/unmanaged-access-grant.js +0 -0
  762. /package/lib/{seam/connect/resources → resources}/unmanaged-access-method.js +0 -0
  763. /package/lib/{seam/connect/resources → resources}/unmanaged-device.js +0 -0
  764. /package/lib/{seam/connect/resources → resources}/unmanaged-user-identity.js +0 -0
  765. /package/lib/{seam/connect/resources → resources}/user-identity.js +0 -0
  766. /package/lib/{seam/connect/resources → resources}/webhook.js +0 -0
  767. /package/lib/{seam/connect/resources → resources}/workspace.js +0 -0
  768. /package/lib/{seam/connect/routes → routes}/access-codes/index.d.ts +0 -0
  769. /package/lib/{seam/connect/routes → routes}/access-codes/index.js +0 -0
  770. /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.d.ts +0 -0
  771. /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.js +0 -0
  772. /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.d.ts +0 -0
  773. /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.js +0 -0
  774. /package/lib/{seam/connect/routes → routes}/access-grants/index.d.ts +0 -0
  775. /package/lib/{seam/connect/routes → routes}/access-grants/index.js +0 -0
  776. /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.d.ts +0 -0
  777. /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.js +0 -0
  778. /package/lib/{seam/connect/routes → routes}/access-methods/index.d.ts +0 -0
  779. /package/lib/{seam/connect/routes → routes}/access-methods/index.js +0 -0
  780. /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.d.ts +0 -0
  781. /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.js +0 -0
  782. /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.d.ts +0 -0
  783. /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.js +0 -0
  784. /package/lib/{seam/connect/routes → routes}/acs/credentials/index.d.ts +0 -0
  785. /package/lib/{seam/connect/routes → routes}/acs/credentials/index.js +0 -0
  786. /package/lib/{seam/connect/routes → routes}/acs/encoders/index.d.ts +0 -0
  787. /package/lib/{seam/connect/routes → routes}/acs/encoders/index.js +0 -0
  788. /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.d.ts +0 -0
  789. /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.js +0 -0
  790. /package/lib/{seam/connect/routes → routes}/acs/entrances/index.d.ts +0 -0
  791. /package/lib/{seam/connect/routes → routes}/acs/entrances/index.js +0 -0
  792. /package/lib/{seam/connect/routes → routes}/acs/index.d.ts +0 -0
  793. /package/lib/{seam/connect/routes → routes}/acs/index.js +0 -0
  794. /package/lib/{seam/connect/routes → routes}/acs/systems/index.d.ts +0 -0
  795. /package/lib/{seam/connect/routes → routes}/acs/systems/index.js +0 -0
  796. /package/lib/{seam/connect/routes → routes}/acs/users/index.d.ts +0 -0
  797. /package/lib/{seam/connect/routes → routes}/acs/users/index.js +0 -0
  798. /package/lib/{seam/connect/routes → routes}/action-attempts/index.d.ts +0 -0
  799. /package/lib/{seam/connect/routes → routes}/action-attempts/index.js +0 -0
  800. /package/lib/{seam/connect/routes → routes}/client-sessions/index.d.ts +0 -0
  801. /package/lib/{seam/connect/routes → routes}/client-sessions/index.js +0 -0
  802. /package/lib/{seam/connect/routes → routes}/connect-webviews/index.d.ts +0 -0
  803. /package/lib/{seam/connect/routes → routes}/connect-webviews/index.js +0 -0
  804. /package/lib/{seam/connect/routes → routes}/connected-accounts/index.d.ts +0 -0
  805. /package/lib/{seam/connect/routes → routes}/connected-accounts/index.js +0 -0
  806. /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.d.ts +0 -0
  807. /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.js +0 -0
  808. /package/lib/{seam/connect/routes → routes}/customers/index.d.ts +0 -0
  809. /package/lib/{seam/connect/routes → routes}/customers/index.js +0 -0
  810. /package/lib/{seam/connect/routes → routes}/devices/index.d.ts +0 -0
  811. /package/lib/{seam/connect/routes → routes}/devices/index.js +0 -0
  812. /package/lib/{seam/connect/routes → routes}/devices/simulate/index.d.ts +0 -0
  813. /package/lib/{seam/connect/routes → routes}/devices/simulate/index.js +0 -0
  814. /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.d.ts +0 -0
  815. /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.js +0 -0
  816. /package/lib/{seam/connect/routes → routes}/events/index.d.ts +0 -0
  817. /package/lib/{seam/connect/routes → routes}/events/index.js +0 -0
  818. /package/lib/{seam/connect/routes → routes}/index.d.ts +0 -0
  819. /package/lib/{seam/connect/routes → routes}/index.js +0 -0
  820. /package/lib/{seam/connect/routes → routes}/instant-keys/index.d.ts +0 -0
  821. /package/lib/{seam/connect/routes → routes}/instant-keys/index.js +0 -0
  822. /package/lib/{seam/connect/routes → routes}/locks/index.d.ts +0 -0
  823. /package/lib/{seam/connect/routes → routes}/locks/index.js +0 -0
  824. /package/lib/{seam/connect/routes → routes}/locks/simulate/index.d.ts +0 -0
  825. /package/lib/{seam/connect/routes → routes}/locks/simulate/index.js +0 -0
  826. /package/lib/{seam/connect/routes → routes}/noise-sensors/index.d.ts +0 -0
  827. /package/lib/{seam/connect/routes → routes}/noise-sensors/index.js +0 -0
  828. /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.d.ts +0 -0
  829. /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.js +0 -0
  830. /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.d.ts +0 -0
  831. /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.js +0 -0
  832. /package/lib/{seam/connect/routes → routes}/phones/index.d.ts +0 -0
  833. /package/lib/{seam/connect/routes → routes}/phones/index.js +0 -0
  834. /package/lib/{seam/connect/routes → routes}/phones/simulate/index.d.ts +0 -0
  835. /package/lib/{seam/connect/routes → routes}/phones/simulate/index.js +0 -0
  836. /package/lib/{seam/connect/routes → routes}/spaces/index.d.ts +0 -0
  837. /package/lib/{seam/connect/routes → routes}/spaces/index.js +0 -0
  838. /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.d.ts +0 -0
  839. /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.js +0 -0
  840. /package/lib/{seam/connect/routes → routes}/thermostats/index.d.ts +0 -0
  841. /package/lib/{seam/connect/routes → routes}/thermostats/index.js +0 -0
  842. /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.d.ts +0 -0
  843. /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.js +0 -0
  844. /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.d.ts +0 -0
  845. /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.js +0 -0
  846. /package/lib/{seam/connect/routes → routes}/user-identities/index.d.ts +0 -0
  847. /package/lib/{seam/connect/routes → routes}/user-identities/index.js +0 -0
  848. /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.d.ts +0 -0
  849. /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.js +0 -0
  850. /package/lib/{seam/connect/routes → routes}/webhooks/index.d.ts +0 -0
  851. /package/lib/{seam/connect/routes → routes}/webhooks/index.js +0 -0
  852. /package/lib/{seam/connect/routes → routes}/workspaces/index.d.ts +0 -0
  853. /package/lib/{seam/connect/routes → routes}/workspaces/index.js +0 -0
  854. /package/lib/{seam/connect/seam-http-error.d.ts → seam-http-error.d.ts} +0 -0
  855. /package/lib/{seam/connect/seam-http-error.js → seam-http-error.js} +0 -0
  856. /package/lib/{seam/connect/seam-paginator.d.ts → seam-paginator.d.ts} +0 -0
  857. /package/lib/{seam/connect/seam-paginator.js → seam-paginator.js} +0 -0
  858. /package/lib/{seam/connect/token.d.ts → token.d.ts} +0 -0
  859. /package/lib/{seam/connect/token.js → token.js} +0 -0
  860. /package/src/lib/{seam/connect/api-error-types.ts → api-error-types.ts} +0 -0
  861. /package/src/lib/{seam/connect/env.d.ts → env.d.ts} +0 -0
  862. /package/src/lib/{seam/connect/error-interceptor.ts → error-interceptor.ts} +0 -0
  863. /package/src/lib/{seam/connect/index.ts → index.ts} +0 -0
  864. /package/src/lib/{seam/connect/openapi.ts → openapi.ts} +0 -0
  865. /package/src/lib/{seam/connect/resources → resources}/index.ts +0 -0
  866. /package/src/lib/{seam/connect/routes → routes}/access-codes/index.ts +0 -0
  867. /package/src/lib/{seam/connect/routes → routes}/access-codes/simulate/index.ts +0 -0
  868. /package/src/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.ts +0 -0
  869. /package/src/lib/{seam/connect/routes → routes}/access-grants/index.ts +0 -0
  870. /package/src/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.ts +0 -0
  871. /package/src/lib/{seam/connect/routes → routes}/access-methods/index.ts +0 -0
  872. /package/src/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.ts +0 -0
  873. /package/src/lib/{seam/connect/routes → routes}/acs/access-groups/index.ts +0 -0
  874. /package/src/lib/{seam/connect/routes → routes}/acs/credentials/index.ts +0 -0
  875. /package/src/lib/{seam/connect/routes → routes}/acs/encoders/index.ts +0 -0
  876. /package/src/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.ts +0 -0
  877. /package/src/lib/{seam/connect/routes → routes}/acs/entrances/index.ts +0 -0
  878. /package/src/lib/{seam/connect/routes → routes}/acs/index.ts +0 -0
  879. /package/src/lib/{seam/connect/routes → routes}/acs/systems/index.ts +0 -0
  880. /package/src/lib/{seam/connect/routes → routes}/acs/users/index.ts +0 -0
  881. /package/src/lib/{seam/connect/routes → routes}/action-attempts/index.ts +0 -0
  882. /package/src/lib/{seam/connect/routes → routes}/client-sessions/index.ts +0 -0
  883. /package/src/lib/{seam/connect/routes → routes}/connect-webviews/index.ts +0 -0
  884. /package/src/lib/{seam/connect/routes → routes}/connected-accounts/index.ts +0 -0
  885. /package/src/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.ts +0 -0
  886. /package/src/lib/{seam/connect/routes → routes}/customers/index.ts +0 -0
  887. /package/src/lib/{seam/connect/routes → routes}/devices/index.ts +0 -0
  888. /package/src/lib/{seam/connect/routes → routes}/devices/simulate/index.ts +0 -0
  889. /package/src/lib/{seam/connect/routes → routes}/devices/unmanaged/index.ts +0 -0
  890. /package/src/lib/{seam/connect/routes → routes}/events/index.ts +0 -0
  891. /package/src/lib/{seam/connect/routes → routes}/index.ts +0 -0
  892. /package/src/lib/{seam/connect/routes → routes}/instant-keys/index.ts +0 -0
  893. /package/src/lib/{seam/connect/routes → routes}/locks/index.ts +0 -0
  894. /package/src/lib/{seam/connect/routes → routes}/locks/simulate/index.ts +0 -0
  895. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/index.ts +0 -0
  896. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.ts +0 -0
  897. /package/src/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.ts +0 -0
  898. /package/src/lib/{seam/connect/routes → routes}/phones/index.ts +0 -0
  899. /package/src/lib/{seam/connect/routes → routes}/phones/simulate/index.ts +0 -0
  900. /package/src/lib/{seam/connect/routes → routes}/spaces/index.ts +0 -0
  901. /package/src/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.ts +0 -0
  902. /package/src/lib/{seam/connect/routes → routes}/thermostats/index.ts +0 -0
  903. /package/src/lib/{seam/connect/routes → routes}/thermostats/schedules/index.ts +0 -0
  904. /package/src/lib/{seam/connect/routes → routes}/thermostats/simulate/index.ts +0 -0
  905. /package/src/lib/{seam/connect/routes → routes}/user-identities/index.ts +0 -0
  906. /package/src/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.ts +0 -0
  907. /package/src/lib/{seam/connect/routes → routes}/webhooks/index.ts +0 -0
  908. /package/src/lib/{seam/connect/routes → routes}/workspaces/index.ts +0 -0
  909. /package/src/lib/{seam/connect/seam-http-error.ts → seam-http-error.ts} +0 -0
  910. /package/src/lib/{seam/connect/seam-paginator.ts → seam-paginator.ts} +0 -0
  911. /package/src/lib/{seam/connect/token.ts → token.ts} +0 -0
@@ -0,0 +1,109 @@
1
+ import { type Client } from '../../../client.js';
2
+ import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../options.js';
3
+ import type { ActionAttempt } from '../../../resources/action-attempt.js';
4
+ import type { ThermostatDailyProgram } from '../../../resources/thermostat-daily-program.js';
5
+ import { SeamHttpRequest } from '../../../seam-http-request.js';
6
+ import { SeamPaginator } from '../../../seam-paginator.js';
7
+ export declare class SeamHttpThermostatsDailyPrograms {
8
+ client: Client;
9
+ readonly defaults: Required<SeamHttpRequestOptions>;
10
+ readonly ltsVersion = "1.0.0";
11
+ static ltsVersion: string;
12
+ constructor(apiKeyOrOptions?: string | SeamHttpOptions);
13
+ static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpThermostatsDailyPrograms;
14
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsDailyPrograms;
15
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsDailyPrograms;
16
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsDailyPrograms>;
17
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostatsDailyPrograms;
18
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsDailyPrograms;
19
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
20
+ updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
21
+ /**
22
+ * Creates a new thermostat daily program. A daily program consists of a set of periods, where each period includes a start time and the key of a configured climate preset. Once you have defined a daily program, you can assign it to one or more days within a weekly program.
23
+ */
24
+ create(parameters: ThermostatsDailyProgramsCreateParameters, options?: ThermostatsDailyProgramsCreateOptions): ThermostatsDailyProgramsCreateRequest;
25
+ /**
26
+ * Deletes a thermostat daily program.
27
+ */
28
+ delete(parameters: ThermostatsDailyProgramsDeleteParameters, options?: ThermostatsDailyProgramsDeleteOptions): ThermostatsDailyProgramsDeleteRequest;
29
+ /**
30
+ * Updates a specified thermostat daily program. The periods that you specify overwrite any existing periods for the daily program.
31
+ */
32
+ update(parameters: ThermostatsDailyProgramsUpdateParameters, options?: ThermostatsDailyProgramsUpdateOptions): ThermostatsDailyProgramsUpdateRequest;
33
+ }
34
+ export type ThermostatsDailyProgramsCreateParameters = {
35
+ /**
36
+ * ID of the thermostat device for which you want to create a daily program.
37
+ */
38
+ device_id: string;
39
+ /**
40
+ * Name of the thermostat daily program.
41
+ */
42
+ name: string;
43
+ /**
44
+ * Array of thermostat daily program periods.
45
+ */
46
+ periods: Array<{
47
+ /**
48
+ * Key of the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.
49
+ */
50
+ climate_preset_key?: string | undefined;
51
+ /**
52
+ * Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
53
+ */
54
+ starts_at_time?: string | undefined;
55
+ }>;
56
+ };
57
+ /**
58
+ * @deprecated Use ThermostatsDailyProgramsCreateRequest instead.
59
+ */
60
+ export type ThermostatsDailyProgramsCreateResponse = {
61
+ thermostat_daily_program: ThermostatDailyProgram;
62
+ };
63
+ export type ThermostatsDailyProgramsCreateRequest = SeamHttpRequest<ThermostatsDailyProgramsCreateResponse, 'thermostat_daily_program'>;
64
+ export interface ThermostatsDailyProgramsCreateOptions {
65
+ }
66
+ export type ThermostatsDailyProgramsDeleteParameters = {
67
+ /**
68
+ * ID of the thermostat daily program that you want to delete.
69
+ */
70
+ thermostat_daily_program_id: string;
71
+ };
72
+ /**
73
+ * @deprecated Use ThermostatsDailyProgramsDeleteRequest instead.
74
+ */
75
+ export type ThermostatsDailyProgramsDeleteResponse = void;
76
+ export type ThermostatsDailyProgramsDeleteRequest = SeamHttpRequest<void, undefined>;
77
+ export interface ThermostatsDailyProgramsDeleteOptions {
78
+ }
79
+ export type ThermostatsDailyProgramsUpdateParameters = {
80
+ /**
81
+ * Name of the thermostat daily program that you want to update.
82
+ */
83
+ name: string;
84
+ /**
85
+ * Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program.
86
+ */
87
+ periods: Array<{
88
+ /**
89
+ * Key of the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.
90
+ */
91
+ climate_preset_key?: string | undefined;
92
+ /**
93
+ * Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
94
+ */
95
+ starts_at_time?: string | undefined;
96
+ }>;
97
+ /**
98
+ * ID of the thermostat daily program that you want to update.
99
+ */
100
+ thermostat_daily_program_id: string;
101
+ };
102
+ /**
103
+ * @deprecated Use ThermostatsDailyProgramsUpdateRequest instead.
104
+ */
105
+ export type ThermostatsDailyProgramsUpdateResponse = {
106
+ action_attempt: ActionAttempt;
107
+ };
108
+ export type ThermostatsDailyProgramsUpdateRequest = SeamHttpRequest<ThermostatsDailyProgramsUpdateResponse, 'action_attempt'>;
109
+ export type ThermostatsDailyProgramsUpdateOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
@@ -0,0 +1,130 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../auth.js';
6
+ import { createClient } from '../../../client.js';
7
+ import { seamApiLtsVersion } from '../../../lts-version.js';
8
+ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../options.js';
9
+ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../parse-options.js';
10
+ import { SeamHttpActionAttempts } from '../../../routes/action-attempts/index.js';
11
+ import { SeamHttpClientSessions } from '../../../routes/client-sessions/index.js';
12
+ import { SeamHttpRequest } from '../../../seam-http-request.js';
13
+ import { SeamPaginator } from '../../../seam-paginator.js';
14
+ export class SeamHttpThermostatsDailyPrograms {
15
+ client;
16
+ defaults;
17
+ ltsVersion = seamApiLtsVersion;
18
+ static ltsVersion = seamApiLtsVersion;
19
+ constructor(apiKeyOrOptions = {}) {
20
+ const options = parseOptions(apiKeyOrOptions);
21
+ this.client = 'client' in options ? options.client : createClient(options);
22
+ this.defaults = limitToSeamHttpRequestOptions(options);
23
+ }
24
+ static fromClient(client, options = {}) {
25
+ const constructorOptions = { ...options, client };
26
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
27
+ throw new SeamHttpInvalidOptionsError('Missing client');
28
+ }
29
+ return new SeamHttpThermostatsDailyPrograms(constructorOptions);
30
+ }
31
+ static fromApiKey(apiKey, options = {}) {
32
+ const constructorOptions = { ...options, apiKey };
33
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
34
+ throw new SeamHttpInvalidOptionsError('Missing apiKey');
35
+ }
36
+ return new SeamHttpThermostatsDailyPrograms(constructorOptions);
37
+ }
38
+ static fromClientSessionToken(clientSessionToken, options = {}) {
39
+ const constructorOptions = { ...options, clientSessionToken };
40
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
41
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
42
+ }
43
+ return new SeamHttpThermostatsDailyPrograms(constructorOptions);
44
+ }
45
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
46
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
47
+ const clientOptions = parseOptions({ ...options, publishableKey });
48
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
49
+ throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpThermostatsDailyPrograms.fromPublishableKey');
50
+ }
51
+ const client = createClient(clientOptions);
52
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
53
+ const { token } = await clientSessions.getOrCreate({
54
+ user_identifier_key: userIdentifierKey,
55
+ });
56
+ return SeamHttpThermostatsDailyPrograms.fromClientSessionToken(token, options);
57
+ }
58
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
59
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
60
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
61
+ throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
62
+ }
63
+ return new SeamHttpThermostatsDailyPrograms(constructorOptions);
64
+ }
65
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
66
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
67
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
68
+ throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
69
+ }
70
+ return new SeamHttpThermostatsDailyPrograms(constructorOptions);
71
+ }
72
+ createPaginator(request) {
73
+ return new SeamPaginator(this, request);
74
+ }
75
+ async updateClientSessionToken(clientSessionToken) {
76
+ const { headers } = this.client.defaults;
77
+ const authHeaders = getAuthHeadersForClientSessionToken({
78
+ clientSessionToken,
79
+ });
80
+ for (const key of Object.keys(authHeaders)) {
81
+ if (headers[key] == null) {
82
+ throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
83
+ }
84
+ }
85
+ this.client.defaults.headers = { ...headers, ...authHeaders };
86
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
87
+ await clientSessions.get();
88
+ }
89
+ /**
90
+ * Creates a new thermostat daily program. A daily program consists of a set of periods, where each period includes a start time and the key of a configured climate preset. Once you have defined a daily program, you can assign it to one or more days within a weekly program.
91
+ */
92
+ create(parameters, options = {}) {
93
+ return new SeamHttpRequest(this, {
94
+ pathname: '/thermostats/daily_programs/create',
95
+ method: 'POST',
96
+ body: parameters,
97
+ responseKey: 'thermostat_daily_program',
98
+ options,
99
+ });
100
+ }
101
+ /**
102
+ * Deletes a thermostat daily program.
103
+ */
104
+ delete(parameters, options = {}) {
105
+ return new SeamHttpRequest(this, {
106
+ pathname: '/thermostats/daily_programs/delete',
107
+ method: 'POST',
108
+ body: parameters,
109
+ responseKey: undefined,
110
+ options,
111
+ });
112
+ }
113
+ /**
114
+ * Updates a specified thermostat daily program. The periods that you specify overwrite any existing periods for the daily program.
115
+ */
116
+ update(parameters, options = {}) {
117
+ return new SeamHttpRequest(this, {
118
+ pathname: '/thermostats/daily_programs/update',
119
+ method: 'PATCH',
120
+ body: parameters,
121
+ responseKey: 'action_attempt',
122
+ options,
123
+ actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
124
+ ...this.defaults,
125
+ waitForActionAttempt: false,
126
+ }),
127
+ });
128
+ }
129
+ }
130
+ //# sourceMappingURL=daily-programs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daily-programs.js","sourceRoot":"","sources":["../../../../src/lib/routes/thermostats/daily-programs/daily-programs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAe,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,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AM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAoD,EACpD,UAAiD,EAAE;QAEnD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oCAAoC;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,0BAA0B;YACvC,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAoD,EACpD,UAAiD,EAAE;QAEnD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oCAAoC;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAoD,EACpD,UAAiD,EAAE;QAEnD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oCAAoC;YAC9C,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;YACP,cAAc,EAAE,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE;gBAC7D,GAAG,IAAI,CAAC,QAAQ;gBAChB,oBAAoB,EAAE,KAAK;aAC5B,CAAC;SACH,CAAC,CAAA;IACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/routes/thermostats/daily-programs/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/routes/thermostats/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/routes/thermostats/schedules/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,163 @@
1
+ import { type Client } from '../../../client.js';
2
+ import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../options.js';
3
+ import type { ThermostatSchedule } from '../../../resources/thermostat-schedule.js';
4
+ import { SeamHttpRequest } from '../../../seam-http-request.js';
5
+ import { SeamPaginator } from '../../../seam-paginator.js';
6
+ export declare class SeamHttpThermostatsSchedules {
7
+ client: Client;
8
+ readonly defaults: Required<SeamHttpRequestOptions>;
9
+ readonly ltsVersion = "1.0.0";
10
+ static ltsVersion: string;
11
+ constructor(apiKeyOrOptions?: string | SeamHttpOptions);
12
+ static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpThermostatsSchedules;
13
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsSchedules;
14
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsSchedules;
15
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsSchedules>;
16
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
17
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
18
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
19
+ updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
20
+ /**
21
+ * Creates a new [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
22
+ */
23
+ create(parameters: ThermostatsSchedulesCreateParameters, options?: ThermostatsSchedulesCreateOptions): ThermostatsSchedulesCreateRequest;
24
+ /**
25
+ * Deletes a [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
26
+ */
27
+ delete(parameters: ThermostatsSchedulesDeleteParameters, options?: ThermostatsSchedulesDeleteOptions): ThermostatsSchedulesDeleteRequest;
28
+ /**
29
+ * Returns a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
30
+ */
31
+ get(parameters: ThermostatsSchedulesGetParameters, options?: ThermostatsSchedulesGetOptions): ThermostatsSchedulesGetRequest;
32
+ /**
33
+ * Returns a list of all [thermostat schedules](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
34
+ */
35
+ list(parameters: ThermostatsSchedulesListParameters, options?: ThermostatsSchedulesListOptions): ThermostatsSchedulesListRequest;
36
+ /**
37
+ * Updates a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
38
+ */
39
+ update(parameters: ThermostatsSchedulesUpdateParameters, options?: ThermostatsSchedulesUpdateOptions): ThermostatsSchedulesUpdateRequest;
40
+ }
41
+ export type ThermostatsSchedulesCreateParameters = {
42
+ /**
43
+ * Key of the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the new thermostat schedule.
44
+ */
45
+ climate_preset_key: string;
46
+ /**
47
+ * ID of the thermostat device for which you want to create a schedule.
48
+ */
49
+ device_id: string;
50
+ /**
51
+ * Date and time at which the new thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
52
+ */
53
+ ends_at: string;
54
+ /**
55
+ * Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the new schedule is active. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
56
+ */
57
+ is_override_allowed?: boolean | undefined;
58
+ /**
59
+ * Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
60
+ */
61
+ max_override_period_minutes?: number | undefined;
62
+ /**
63
+ * Name of the thermostat schedule.
64
+ */
65
+ name?: string | undefined;
66
+ /**
67
+ * Date and time at which the new thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
68
+ */
69
+ starts_at: string;
70
+ };
71
+ /**
72
+ * @deprecated Use ThermostatsSchedulesCreateRequest instead.
73
+ */
74
+ export type ThermostatsSchedulesCreateResponse = {
75
+ thermostat_schedule: ThermostatSchedule;
76
+ };
77
+ export type ThermostatsSchedulesCreateRequest = SeamHttpRequest<ThermostatsSchedulesCreateResponse, 'thermostat_schedule'>;
78
+ export interface ThermostatsSchedulesCreateOptions {
79
+ }
80
+ export type ThermostatsSchedulesDeleteParameters = {
81
+ /**
82
+ * ID of the thermostat schedule that you want to delete.
83
+ */
84
+ thermostat_schedule_id: string;
85
+ };
86
+ /**
87
+ * @deprecated Use ThermostatsSchedulesDeleteRequest instead.
88
+ */
89
+ export type ThermostatsSchedulesDeleteResponse = void;
90
+ export type ThermostatsSchedulesDeleteRequest = SeamHttpRequest<void, undefined>;
91
+ export interface ThermostatsSchedulesDeleteOptions {
92
+ }
93
+ export type ThermostatsSchedulesGetParameters = {
94
+ /**
95
+ * ID of the thermostat schedule that you want to get.
96
+ */
97
+ thermostat_schedule_id: string;
98
+ };
99
+ /**
100
+ * @deprecated Use ThermostatsSchedulesGetRequest instead.
101
+ */
102
+ export type ThermostatsSchedulesGetResponse = {
103
+ thermostat_schedule: ThermostatSchedule;
104
+ };
105
+ export type ThermostatsSchedulesGetRequest = SeamHttpRequest<ThermostatsSchedulesGetResponse, 'thermostat_schedule'>;
106
+ export interface ThermostatsSchedulesGetOptions {
107
+ }
108
+ export type ThermostatsSchedulesListParameters = {
109
+ /**
110
+ * ID of the thermostat device for which you want to list schedules.
111
+ */
112
+ device_id: string;
113
+ /**
114
+ * User identifier key by which to filter the list of returned thermostat schedules.
115
+ */
116
+ user_identifier_key?: string | undefined;
117
+ };
118
+ /**
119
+ * @deprecated Use ThermostatsSchedulesListRequest instead.
120
+ */
121
+ export type ThermostatsSchedulesListResponse = {
122
+ thermostat_schedules: Array<ThermostatSchedule>;
123
+ };
124
+ export type ThermostatsSchedulesListRequest = SeamHttpRequest<ThermostatsSchedulesListResponse, 'thermostat_schedules'>;
125
+ export interface ThermostatsSchedulesListOptions {
126
+ }
127
+ export type ThermostatsSchedulesUpdateParameters = {
128
+ /**
129
+ * Key of the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.
130
+ */
131
+ climate_preset_key?: string | undefined;
132
+ /**
133
+ * Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
134
+ */
135
+ ends_at?: string | undefined;
136
+ /**
137
+ * Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the schedule is active. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
138
+ */
139
+ is_override_allowed?: boolean | undefined;
140
+ /**
141
+ * Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
142
+ */
143
+ max_override_period_minutes?: number | undefined;
144
+ /**
145
+ * Name of the thermostat schedule.
146
+ */
147
+ name?: string | undefined;
148
+ /**
149
+ * Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
150
+ */
151
+ starts_at?: string | undefined;
152
+ /**
153
+ * ID of the thermostat schedule that you want to update.
154
+ */
155
+ thermostat_schedule_id: string;
156
+ };
157
+ /**
158
+ * @deprecated Use ThermostatsSchedulesUpdateRequest instead.
159
+ */
160
+ export type ThermostatsSchedulesUpdateResponse = void;
161
+ export type ThermostatsSchedulesUpdateRequest = SeamHttpRequest<void, undefined>;
162
+ export interface ThermostatsSchedulesUpdateOptions {
163
+ }
@@ -0,0 +1,149 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+ import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../auth.js';
6
+ import { createClient } from '../../../client.js';
7
+ import { seamApiLtsVersion } from '../../../lts-version.js';
8
+ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../options.js';
9
+ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../parse-options.js';
10
+ import { SeamHttpClientSessions } from '../../../routes/client-sessions/index.js';
11
+ import { SeamHttpRequest } from '../../../seam-http-request.js';
12
+ import { SeamPaginator } from '../../../seam-paginator.js';
13
+ export class SeamHttpThermostatsSchedules {
14
+ client;
15
+ defaults;
16
+ ltsVersion = seamApiLtsVersion;
17
+ static ltsVersion = seamApiLtsVersion;
18
+ constructor(apiKeyOrOptions = {}) {
19
+ const options = parseOptions(apiKeyOrOptions);
20
+ this.client = 'client' in options ? options.client : createClient(options);
21
+ this.defaults = limitToSeamHttpRequestOptions(options);
22
+ }
23
+ static fromClient(client, options = {}) {
24
+ const constructorOptions = { ...options, client };
25
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
26
+ throw new SeamHttpInvalidOptionsError('Missing client');
27
+ }
28
+ return new SeamHttpThermostatsSchedules(constructorOptions);
29
+ }
30
+ static fromApiKey(apiKey, options = {}) {
31
+ const constructorOptions = { ...options, apiKey };
32
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
33
+ throw new SeamHttpInvalidOptionsError('Missing apiKey');
34
+ }
35
+ return new SeamHttpThermostatsSchedules(constructorOptions);
36
+ }
37
+ static fromClientSessionToken(clientSessionToken, options = {}) {
38
+ const constructorOptions = { ...options, clientSessionToken };
39
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
40
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
41
+ }
42
+ return new SeamHttpThermostatsSchedules(constructorOptions);
43
+ }
44
+ static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
45
+ warnOnInsecureuserIdentifierKey(userIdentifierKey);
46
+ const clientOptions = parseOptions({ ...options, publishableKey });
47
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
48
+ throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpThermostatsSchedules.fromPublishableKey');
49
+ }
50
+ const client = createClient(clientOptions);
51
+ const clientSessions = SeamHttpClientSessions.fromClient(client);
52
+ const { token } = await clientSessions.getOrCreate({
53
+ user_identifier_key: userIdentifierKey,
54
+ });
55
+ return SeamHttpThermostatsSchedules.fromClientSessionToken(token, options);
56
+ }
57
+ static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
58
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId };
59
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
60
+ throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
61
+ }
62
+ return new SeamHttpThermostatsSchedules(constructorOptions);
63
+ }
64
+ static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
65
+ const constructorOptions = { ...options, personalAccessToken, workspaceId };
66
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
67
+ throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
68
+ }
69
+ return new SeamHttpThermostatsSchedules(constructorOptions);
70
+ }
71
+ createPaginator(request) {
72
+ return new SeamPaginator(this, request);
73
+ }
74
+ async updateClientSessionToken(clientSessionToken) {
75
+ const { headers } = this.client.defaults;
76
+ const authHeaders = getAuthHeadersForClientSessionToken({
77
+ clientSessionToken,
78
+ });
79
+ for (const key of Object.keys(authHeaders)) {
80
+ if (headers[key] == null) {
81
+ throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
82
+ }
83
+ }
84
+ this.client.defaults.headers = { ...headers, ...authHeaders };
85
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client);
86
+ await clientSessions.get();
87
+ }
88
+ /**
89
+ * Creates a new [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
90
+ */
91
+ create(parameters, options = {}) {
92
+ return new SeamHttpRequest(this, {
93
+ pathname: '/thermostats/schedules/create',
94
+ method: 'POST',
95
+ body: parameters,
96
+ responseKey: 'thermostat_schedule',
97
+ options,
98
+ });
99
+ }
100
+ /**
101
+ * Deletes a [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
102
+ */
103
+ delete(parameters, options = {}) {
104
+ return new SeamHttpRequest(this, {
105
+ pathname: '/thermostats/schedules/delete',
106
+ method: 'POST',
107
+ body: parameters,
108
+ responseKey: undefined,
109
+ options,
110
+ });
111
+ }
112
+ /**
113
+ * Returns a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
114
+ */
115
+ get(parameters, options = {}) {
116
+ return new SeamHttpRequest(this, {
117
+ pathname: '/thermostats/schedules/get',
118
+ method: 'POST',
119
+ body: parameters,
120
+ responseKey: 'thermostat_schedule',
121
+ options,
122
+ });
123
+ }
124
+ /**
125
+ * Returns a list of all [thermostat schedules](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
126
+ */
127
+ list(parameters, options = {}) {
128
+ return new SeamHttpRequest(this, {
129
+ pathname: '/thermostats/schedules/list',
130
+ method: 'POST',
131
+ body: parameters,
132
+ responseKey: 'thermostat_schedules',
133
+ options,
134
+ });
135
+ }
136
+ /**
137
+ * Updates a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
138
+ */
139
+ update(parameters, options = {}) {
140
+ return new SeamHttpRequest(this, {
141
+ pathname: '/thermostats/schedules/update',
142
+ method: 'PATCH',
143
+ body: parameters,
144
+ responseKey: undefined,
145
+ options,
146
+ });
147
+ }
148
+ }
149
+ //# sourceMappingURL=schedules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../../../src/lib/routes/thermostats/schedules/schedules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,aAAa,CAAA;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AE/C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/routes/thermostats/simulate/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAA"}