@seamapi/http 1.37.0 → 1.38.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 (231) hide show
  1. package/dist/connect.cjs +840 -639
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2612 -859
  4. package/lib/seam/connect/routes/access-codes/access-codes.d.ts +110 -30
  5. package/lib/seam/connect/routes/access-codes/access-codes.js +30 -20
  6. package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
  7. package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +11 -3
  8. package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -2
  9. package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
  10. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +55 -15
  11. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +15 -10
  12. package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
  13. package/lib/seam/connect/routes/access-grants/access-grants.d.ts +55 -15
  14. package/lib/seam/connect/routes/access-grants/access-grants.js +15 -10
  15. package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
  16. package/lib/seam/connect/routes/access-methods/access-methods.d.ts +33 -9
  17. package/lib/seam/connect/routes/access-methods/access-methods.js +9 -6
  18. package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
  19. package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +66 -18
  20. package/lib/seam/connect/routes/acs/access-groups/access-groups.js +18 -12
  21. package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
  22. package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.d.ts +22 -6
  23. package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.js +6 -4
  24. package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.js.map +1 -1
  25. package/lib/seam/connect/routes/acs/credential-pools/credential-pools.d.ts +11 -3
  26. package/lib/seam/connect/routes/acs/credential-pools/credential-pools.js +3 -2
  27. package/lib/seam/connect/routes/acs/credential-pools/credential-pools.js.map +1 -1
  28. package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.d.ts +11 -3
  29. package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.js +3 -2
  30. package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.js.map +1 -1
  31. package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +99 -27
  32. package/lib/seam/connect/routes/acs/credentials/credentials.js +27 -18
  33. package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
  34. package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.d.ts +22 -6
  35. package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.js +6 -4
  36. package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.js.map +1 -1
  37. package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +52 -12
  38. package/lib/seam/connect/routes/acs/encoders/encoders.js +12 -10
  39. package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
  40. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +44 -12
  41. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -8
  42. package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
  43. package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +44 -12
  44. package/lib/seam/connect/routes/acs/entrances/entrances.js +12 -8
  45. package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
  46. package/lib/seam/connect/routes/acs/systems/systems.d.ts +33 -9
  47. package/lib/seam/connect/routes/acs/systems/systems.js +9 -6
  48. package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
  49. package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.d.ts +22 -6
  50. package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.js +6 -4
  51. package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.js.map +1 -1
  52. package/lib/seam/connect/routes/acs/users/users.d.ts +121 -33
  53. package/lib/seam/connect/routes/acs/users/users.js +33 -22
  54. package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
  55. package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -5
  56. package/lib/seam/connect/routes/action-attempts/action-attempts.js +5 -4
  57. package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
  58. package/lib/seam/connect/routes/bridges/bridges.d.ts +22 -6
  59. package/lib/seam/connect/routes/bridges/bridges.js +6 -4
  60. package/lib/seam/connect/routes/bridges/bridges.js.map +1 -1
  61. package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +77 -21
  62. package/lib/seam/connect/routes/client-sessions/client-sessions.js +21 -14
  63. package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
  64. package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +44 -12
  65. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +12 -8
  66. package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
  67. package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +55 -15
  68. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +15 -10
  69. package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
  70. package/lib/seam/connect/routes/devices/devices.d.ts +55 -15
  71. package/lib/seam/connect/routes/devices/devices.js +15 -10
  72. package/lib/seam/connect/routes/devices/devices.js.map +1 -1
  73. package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +33 -9
  74. package/lib/seam/connect/routes/devices/simulate/simulate.js +9 -6
  75. package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
  76. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +33 -9
  77. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +9 -6
  78. package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
  79. package/lib/seam/connect/routes/events/events.d.ts +22 -6
  80. package/lib/seam/connect/routes/events/events.js +6 -4
  81. package/lib/seam/connect/routes/events/events.js.map +1 -1
  82. package/lib/seam/connect/routes/locks/locks.d.ts +42 -10
  83. package/lib/seam/connect/routes/locks/locks.js +10 -8
  84. package/lib/seam/connect/routes/locks/locks.js.map +1 -1
  85. package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +20 -4
  86. package/lib/seam/connect/routes/locks/simulate/simulate.js +4 -4
  87. package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
  88. package/lib/seam/connect/routes/networks/networks.d.ts +22 -6
  89. package/lib/seam/connect/routes/networks/networks.js +6 -4
  90. package/lib/seam/connect/routes/networks/networks.js.map +1 -1
  91. package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +11 -3
  92. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -2
  93. package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
  94. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +55 -15
  95. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -10
  96. package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
  97. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +11 -3
  98. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -2
  99. package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
  100. package/lib/seam/connect/routes/phones/phones.d.ts +33 -9
  101. package/lib/seam/connect/routes/phones/phones.js +9 -6
  102. package/lib/seam/connect/routes/phones/phones.js.map +1 -1
  103. package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +11 -3
  104. package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -2
  105. package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
  106. package/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.d.ts +55 -15
  107. package/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.js +15 -10
  108. package/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.js.map +1 -1
  109. package/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.d.ts +11 -3
  110. package/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.js +3 -2
  111. package/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.js.map +1 -1
  112. package/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.d.ts +11 -3
  113. package/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.js +3 -2
  114. package/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.js.map +1 -1
  115. package/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.d.ts +11 -3
  116. package/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.js +3 -2
  117. package/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.js.map +1 -1
  118. package/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.d.ts +11 -3
  119. package/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.js +3 -2
  120. package/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.js.map +1 -1
  121. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.d.ts +11 -3
  122. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.js +3 -2
  123. package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.js.map +1 -1
  124. package/lib/seam/connect/routes/seam/partner/v1/resources/resources.d.ts +11 -3
  125. package/lib/seam/connect/routes/seam/partner/v1/resources/resources.js +3 -2
  126. package/lib/seam/connect/routes/seam/partner/v1/resources/resources.js.map +1 -1
  127. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +275 -274
  128. package/lib/seam/connect/routes/seam-http-endpoints.js +55 -55
  129. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  130. package/lib/seam/connect/routes/spaces/spaces.d.ts +99 -27
  131. package/lib/seam/connect/routes/spaces/spaces.js +27 -18
  132. package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
  133. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +32 -8
  134. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +8 -6
  135. package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
  136. package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +55 -15
  137. package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -10
  138. package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
  139. package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +22 -6
  140. package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -4
  141. package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
  142. package/lib/seam/connect/routes/thermostats/thermostats.d.ts +157 -37
  143. package/lib/seam/connect/routes/thermostats/thermostats.js +37 -30
  144. package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
  145. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.d.ts +44 -12
  146. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js +12 -8
  147. package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js.map +1 -1
  148. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.d.ts +33 -9
  149. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js +9 -6
  150. package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js.map +1 -1
  151. package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +99 -27
  152. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js +27 -18
  153. package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +1 -1
  154. package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.d.ts +44 -12
  155. package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.js +12 -8
  156. package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.js.map +1 -1
  157. package/lib/seam/connect/routes/unstable-partner/resources/resources.d.ts +11 -3
  158. package/lib/seam/connect/routes/unstable-partner/resources/resources.js +3 -2
  159. package/lib/seam/connect/routes/unstable-partner/resources/resources.js.map +1 -1
  160. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.d.ts +44 -12
  161. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +12 -8
  162. package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -1
  163. package/lib/seam/connect/routes/user-identities/user-identities.d.ts +143 -39
  164. package/lib/seam/connect/routes/user-identities/user-identities.js +39 -26
  165. package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
  166. package/lib/seam/connect/routes/webhooks/webhooks.d.ts +55 -15
  167. package/lib/seam/connect/routes/webhooks/webhooks.js +15 -10
  168. package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
  169. package/lib/seam/connect/routes/workspaces/workspaces.d.ts +54 -14
  170. package/lib/seam/connect/routes/workspaces/workspaces.js +14 -10
  171. package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
  172. package/lib/version.d.ts +1 -1
  173. package/lib/version.js +1 -1
  174. package/package.json +1 -1
  175. package/src/lib/seam/connect/routes/access-codes/access-codes.ts +198 -48
  176. package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +25 -8
  177. package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +97 -25
  178. package/src/lib/seam/connect/routes/access-grants/access-grants.ts +99 -23
  179. package/src/lib/seam/connect/routes/access-methods/access-methods.ts +59 -14
  180. package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +120 -32
  181. package/src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts +42 -13
  182. package/src/lib/seam/connect/routes/acs/credential-pools/credential-pools.ts +20 -5
  183. package/src/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.ts +24 -8
  184. package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +173 -49
  185. package/src/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.ts +42 -10
  186. package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +93 -22
  187. package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +88 -20
  188. package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +78 -23
  189. package/src/lib/seam/connect/routes/acs/systems/systems.ts +65 -18
  190. package/src/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.ts +40 -10
  191. package/src/lib/seam/connect/routes/acs/users/users.ts +213 -51
  192. package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +39 -9
  193. package/src/lib/seam/connect/routes/bridges/bridges.ts +34 -10
  194. package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +134 -34
  195. package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +78 -20
  196. package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +93 -23
  197. package/src/lib/seam/connect/routes/devices/devices.ts +91 -23
  198. package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +52 -14
  199. package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +58 -14
  200. package/src/lib/seam/connect/routes/events/events.ts +35 -9
  201. package/src/lib/seam/connect/routes/locks/locks.ts +69 -17
  202. package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +36 -11
  203. package/src/lib/seam/connect/routes/networks/networks.ts +37 -10
  204. package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +20 -5
  205. package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +105 -34
  206. package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +24 -5
  207. package/src/lib/seam/connect/routes/phones/phones.ts +52 -14
  208. package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +21 -5
  209. package/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.ts +113 -37
  210. package/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.ts +24 -8
  211. package/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.ts +25 -8
  212. package/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.ts +21 -8
  213. package/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.ts +24 -8
  214. package/src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts +24 -8
  215. package/src/lib/seam/connect/routes/seam/partner/v1/resources/resources.ts +21 -5
  216. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +1919 -274
  217. package/src/lib/seam/connect/routes/spaces/spaces.ts +156 -42
  218. package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +60 -17
  219. package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +97 -28
  220. package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +42 -10
  221. package/src/lib/seam/connect/routes/thermostats/thermostats.ts +284 -70
  222. package/src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts +79 -20
  223. package/src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts +62 -15
  224. package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +181 -45
  225. package/src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts +99 -32
  226. package/src/lib/seam/connect/routes/unstable-partner/resources/resources.ts +21 -5
  227. package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +96 -29
  228. package/src/lib/seam/connect/routes/user-identities/user-identities.ts +261 -64
  229. package/src/lib/seam/connect/routes/webhooks/webhooks.ts +93 -23
  230. package/src/lib/seam/connect/routes/workspaces/workspaces.ts +95 -23
  231. package/src/lib/version.ts +1 -1
@@ -183,59 +183,61 @@ export class SeamHttpThermostats {
183
183
  }
184
184
 
185
185
  activateClimatePreset(
186
- body?: ThermostatsActivateClimatePresetBody,
186
+ parameters?: ThermostatsActivateClimatePresetParameters,
187
187
  options: ThermostatsActivateClimatePresetOptions = {},
188
- ): SeamHttpRequest<
189
- ThermostatsActivateClimatePresetResponse,
190
- 'action_attempt'
191
- > {
188
+ ): ThermostatsActivateClimatePresetRequest {
192
189
  return new SeamHttpRequest(this, {
193
190
  pathname: '/thermostats/activate_climate_preset',
194
191
  method: 'POST',
195
- body,
192
+ body: parameters,
196
193
  responseKey: 'action_attempt',
197
194
  options,
198
195
  })
199
196
  }
200
197
 
201
198
  cool(
202
- body?: ThermostatsCoolBody,
199
+ parameters?: ThermostatsCoolParameters,
203
200
  options: ThermostatsCoolOptions = {},
204
- ): SeamHttpRequest<ThermostatsCoolResponse, 'action_attempt'> {
201
+ ): ThermostatsCoolRequest {
205
202
  return new SeamHttpRequest(this, {
206
203
  pathname: '/thermostats/cool',
207
204
  method: 'POST',
208
- body,
205
+ body: parameters,
209
206
  responseKey: 'action_attempt',
210
207
  options,
211
208
  })
212
209
  }
213
210
 
214
211
  createClimatePreset(
215
- body?: ThermostatsCreateClimatePresetBody,
216
- ): SeamHttpRequest<void, undefined> {
212
+ parameters?: ThermostatsCreateClimatePresetParameters,
213
+ options: ThermostatsCreateClimatePresetOptions = {},
214
+ ): ThermostatsCreateClimatePresetRequest {
217
215
  return new SeamHttpRequest(this, {
218
216
  pathname: '/thermostats/create_climate_preset',
219
217
  method: 'POST',
220
- body,
218
+ body: parameters,
221
219
  responseKey: undefined,
220
+ options,
222
221
  })
223
222
  }
224
223
 
225
224
  deleteClimatePreset(
226
- params?: ThermostatsDeleteClimatePresetParams,
227
- ): SeamHttpRequest<void, undefined> {
225
+ parameters?: ThermostatsDeleteClimatePresetParameters,
226
+ options: ThermostatsDeleteClimatePresetOptions = {},
227
+ ): ThermostatsDeleteClimatePresetRequest {
228
228
  return new SeamHttpRequest(this, {
229
229
  pathname: '/thermostats/delete_climate_preset',
230
230
  method: 'POST',
231
- body: params,
231
+ body: parameters,
232
232
  responseKey: undefined,
233
+ options,
233
234
  })
234
235
  }
235
236
 
236
237
  get(
237
- params?: ThermostatsGetParams,
238
- ): SeamHttpRequest<ThermostatsGetResponse, 'thermostat'> {
238
+ parameters?: ThermostatsGetParameters,
239
+ options: ThermostatsGetOptions = {},
240
+ ): ThermostatsGetRequest {
239
241
  if (!this.defaults.isUndocumentedApiEnabled) {
240
242
  throw new Error(
241
243
  'Cannot use undocumented API without isUndocumentedApiEnabled',
@@ -244,282 +246,494 @@ export class SeamHttpThermostats {
244
246
  return new SeamHttpRequest(this, {
245
247
  pathname: '/thermostats/get',
246
248
  method: 'POST',
247
- body: params,
249
+ body: parameters,
248
250
  responseKey: 'thermostat',
251
+ options,
249
252
  })
250
253
  }
251
254
 
252
255
  heat(
253
- body?: ThermostatsHeatBody,
256
+ parameters?: ThermostatsHeatParameters,
254
257
  options: ThermostatsHeatOptions = {},
255
- ): SeamHttpRequest<ThermostatsHeatResponse, 'action_attempt'> {
258
+ ): ThermostatsHeatRequest {
256
259
  return new SeamHttpRequest(this, {
257
260
  pathname: '/thermostats/heat',
258
261
  method: 'POST',
259
- body,
262
+ body: parameters,
260
263
  responseKey: 'action_attempt',
261
264
  options,
262
265
  })
263
266
  }
264
267
 
265
268
  heatCool(
266
- body?: ThermostatsHeatCoolBody,
269
+ parameters?: ThermostatsHeatCoolParameters,
267
270
  options: ThermostatsHeatCoolOptions = {},
268
- ): SeamHttpRequest<ThermostatsHeatCoolResponse, 'action_attempt'> {
271
+ ): ThermostatsHeatCoolRequest {
269
272
  return new SeamHttpRequest(this, {
270
273
  pathname: '/thermostats/heat_cool',
271
274
  method: 'POST',
272
- body,
275
+ body: parameters,
273
276
  responseKey: 'action_attempt',
274
277
  options,
275
278
  })
276
279
  }
277
280
 
278
281
  list(
279
- params?: ThermostatsListParams,
280
- ): SeamHttpRequest<ThermostatsListResponse, 'devices'> {
282
+ parameters?: ThermostatsListParameters,
283
+ options: ThermostatsListOptions = {},
284
+ ): ThermostatsListRequest {
281
285
  return new SeamHttpRequest(this, {
282
286
  pathname: '/thermostats/list',
283
287
  method: 'POST',
284
- body: params,
288
+ body: parameters,
285
289
  responseKey: 'devices',
290
+ options,
286
291
  })
287
292
  }
288
293
 
289
294
  off(
290
- body?: ThermostatsOffBody,
295
+ parameters?: ThermostatsOffParameters,
291
296
  options: ThermostatsOffOptions = {},
292
- ): SeamHttpRequest<ThermostatsOffResponse, 'action_attempt'> {
297
+ ): ThermostatsOffRequest {
293
298
  return new SeamHttpRequest(this, {
294
299
  pathname: '/thermostats/off',
295
300
  method: 'POST',
296
- body,
301
+ body: parameters,
297
302
  responseKey: 'action_attempt',
298
303
  options,
299
304
  })
300
305
  }
301
306
 
302
307
  setFallbackClimatePreset(
303
- body?: ThermostatsSetFallbackClimatePresetBody,
304
- ): SeamHttpRequest<void, undefined> {
308
+ parameters?: ThermostatsSetFallbackClimatePresetParameters,
309
+ options: ThermostatsSetFallbackClimatePresetOptions = {},
310
+ ): ThermostatsSetFallbackClimatePresetRequest {
305
311
  return new SeamHttpRequest(this, {
306
312
  pathname: '/thermostats/set_fallback_climate_preset',
307
313
  method: 'POST',
308
- body,
314
+ body: parameters,
309
315
  responseKey: undefined,
316
+ options,
310
317
  })
311
318
  }
312
319
 
313
320
  setFanMode(
314
- body?: ThermostatsSetFanModeBody,
321
+ parameters?: ThermostatsSetFanModeParameters,
315
322
  options: ThermostatsSetFanModeOptions = {},
316
- ): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'> {
323
+ ): ThermostatsSetFanModeRequest {
317
324
  return new SeamHttpRequest(this, {
318
325
  pathname: '/thermostats/set_fan_mode',
319
326
  method: 'POST',
320
- body,
327
+ body: parameters,
321
328
  responseKey: 'action_attempt',
322
329
  options,
323
330
  })
324
331
  }
325
332
 
326
333
  setHvacMode(
327
- body?: ThermostatsSetHvacModeBody,
334
+ parameters?: ThermostatsSetHvacModeParameters,
328
335
  options: ThermostatsSetHvacModeOptions = {},
329
- ): SeamHttpRequest<ThermostatsSetHvacModeResponse, 'action_attempt'> {
336
+ ): ThermostatsSetHvacModeRequest {
330
337
  return new SeamHttpRequest(this, {
331
338
  pathname: '/thermostats/set_hvac_mode',
332
339
  method: 'POST',
333
- body,
340
+ body: parameters,
334
341
  responseKey: 'action_attempt',
335
342
  options,
336
343
  })
337
344
  }
338
345
 
339
346
  setTemperatureThreshold(
340
- body?: ThermostatsSetTemperatureThresholdBody,
341
- ): SeamHttpRequest<void, undefined> {
347
+ parameters?: ThermostatsSetTemperatureThresholdParameters,
348
+ options: ThermostatsSetTemperatureThresholdOptions = {},
349
+ ): ThermostatsSetTemperatureThresholdRequest {
342
350
  return new SeamHttpRequest(this, {
343
351
  pathname: '/thermostats/set_temperature_threshold',
344
352
  method: 'PATCH',
345
- body,
353
+ body: parameters,
346
354
  responseKey: undefined,
355
+ options,
347
356
  })
348
357
  }
349
358
 
350
359
  updateClimatePreset(
351
- body?: ThermostatsUpdateClimatePresetBody,
352
- ): SeamHttpRequest<void, undefined> {
360
+ parameters?: ThermostatsUpdateClimatePresetParameters,
361
+ options: ThermostatsUpdateClimatePresetOptions = {},
362
+ ): ThermostatsUpdateClimatePresetRequest {
353
363
  return new SeamHttpRequest(this, {
354
364
  pathname: '/thermostats/update_climate_preset',
355
365
  method: 'PATCH',
356
- body,
366
+ body: parameters,
357
367
  responseKey: undefined,
368
+ options,
358
369
  })
359
370
  }
360
371
 
361
372
  updateWeeklyProgram(
362
- body?: ThermostatsUpdateWeeklyProgramBody,
373
+ parameters?: ThermostatsUpdateWeeklyProgramParameters,
363
374
  options: ThermostatsUpdateWeeklyProgramOptions = {},
364
- ): SeamHttpRequest<ThermostatsUpdateWeeklyProgramResponse, 'action_attempt'> {
375
+ ): ThermostatsUpdateWeeklyProgramRequest {
365
376
  return new SeamHttpRequest(this, {
366
377
  pathname: '/thermostats/update_weekly_program',
367
378
  method: 'POST',
368
- body,
379
+ body: parameters,
369
380
  responseKey: 'action_attempt',
370
381
  options,
371
382
  })
372
383
  }
373
384
  }
374
385
 
375
- export type ThermostatsActivateClimatePresetBody =
386
+ export type ThermostatsActivateClimatePresetParameters =
376
387
  RouteRequestBody<'/thermostats/activate_climate_preset'>
377
388
 
389
+ /**
390
+ * @deprecated Use ThermostatsActivateClimatePresetParameters instead.
391
+ */
392
+ export type ThermostatsActivateClimatePresetBody =
393
+ ThermostatsActivateClimatePresetParameters
394
+
395
+ /**
396
+ * @deprecated Use ThermostatsActivateClimatePresetRequest instead.
397
+ */
378
398
  export type ThermostatsActivateClimatePresetResponse = SetNonNullable<
379
399
  Required<RouteResponse<'/thermostats/activate_climate_preset'>>
380
400
  >
381
401
 
402
+ export type ThermostatsActivateClimatePresetRequest = SeamHttpRequest<
403
+ ThermostatsActivateClimatePresetResponse,
404
+ 'action_attempt'
405
+ >
406
+
382
407
  export type ThermostatsActivateClimatePresetOptions = Pick<
383
408
  SeamHttpRequestOptions,
384
409
  'waitForActionAttempt'
385
410
  >
386
411
 
387
- export type ThermostatsCoolBody = RouteRequestBody<'/thermostats/cool'>
412
+ export type ThermostatsCoolParameters = RouteRequestBody<'/thermostats/cool'>
413
+
414
+ /**
415
+ * @deprecated Use ThermostatsCoolParameters instead.
416
+ */
417
+ export type ThermostatsCoolBody = ThermostatsCoolParameters
388
418
 
419
+ /**
420
+ * @deprecated Use ThermostatsCoolRequest instead.
421
+ */
389
422
  export type ThermostatsCoolResponse = SetNonNullable<
390
423
  Required<RouteResponse<'/thermostats/cool'>>
391
424
  >
392
425
 
426
+ export type ThermostatsCoolRequest = SeamHttpRequest<
427
+ ThermostatsCoolResponse,
428
+ 'action_attempt'
429
+ >
430
+
393
431
  export type ThermostatsCoolOptions = Pick<
394
432
  SeamHttpRequestOptions,
395
433
  'waitForActionAttempt'
396
434
  >
397
435
 
398
- export type ThermostatsCreateClimatePresetBody =
436
+ export type ThermostatsCreateClimatePresetParameters =
399
437
  RouteRequestBody<'/thermostats/create_climate_preset'>
400
438
 
439
+ /**
440
+ * @deprecated Use ThermostatsCreateClimatePresetParameters instead.
441
+ */
442
+ export type ThermostatsCreateClimatePresetBody =
443
+ ThermostatsCreateClimatePresetParameters
444
+
445
+ /**
446
+ * @deprecated Use ThermostatsCreateClimatePresetRequest instead.
447
+ */
401
448
  export type ThermostatsCreateClimatePresetResponse = SetNonNullable<
402
449
  Required<RouteResponse<'/thermostats/create_climate_preset'>>
403
450
  >
404
451
 
405
- export type ThermostatsCreateClimatePresetOptions = never
452
+ export type ThermostatsCreateClimatePresetRequest = SeamHttpRequest<
453
+ void,
454
+ undefined
455
+ >
406
456
 
407
- export type ThermostatsDeleteClimatePresetParams =
457
+ export type ThermostatsCreateClimatePresetOptions = Record<string, never>
458
+
459
+ export type ThermostatsDeleteClimatePresetParameters =
408
460
  RouteRequestBody<'/thermostats/delete_climate_preset'>
409
461
 
462
+ /**
463
+ * @deprecated Use ThermostatsDeleteClimatePresetParameters instead.
464
+ */
465
+ export type ThermostatsDeleteClimatePresetParams =
466
+ ThermostatsDeleteClimatePresetParameters
467
+
468
+ /**
469
+ * @deprecated Use ThermostatsDeleteClimatePresetRequest instead.
470
+ */
410
471
  export type ThermostatsDeleteClimatePresetResponse = SetNonNullable<
411
472
  Required<RouteResponse<'/thermostats/delete_climate_preset'>>
412
473
  >
413
474
 
414
- export type ThermostatsDeleteClimatePresetOptions = never
475
+ export type ThermostatsDeleteClimatePresetRequest = SeamHttpRequest<
476
+ void,
477
+ undefined
478
+ >
479
+
480
+ export type ThermostatsDeleteClimatePresetOptions = Record<string, never>
415
481
 
416
- export type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>
482
+ export type ThermostatsGetParameters = RouteRequestBody<'/thermostats/get'>
417
483
 
484
+ /**
485
+ * @deprecated Use ThermostatsGetParameters instead.
486
+ */
487
+ export type ThermostatsGetParams = ThermostatsGetParameters
488
+
489
+ /**
490
+ * @deprecated Use ThermostatsGetRequest instead.
491
+ */
418
492
  export type ThermostatsGetResponse = SetNonNullable<
419
493
  Required<RouteResponse<'/thermostats/get'>>
420
494
  >
421
495
 
422
- export type ThermostatsGetOptions = never
496
+ export type ThermostatsGetRequest = SeamHttpRequest<
497
+ ThermostatsGetResponse,
498
+ 'thermostat'
499
+ >
500
+
501
+ export type ThermostatsGetOptions = Record<string, never>
502
+
503
+ export type ThermostatsHeatParameters = RouteRequestBody<'/thermostats/heat'>
423
504
 
424
- export type ThermostatsHeatBody = RouteRequestBody<'/thermostats/heat'>
505
+ /**
506
+ * @deprecated Use ThermostatsHeatParameters instead.
507
+ */
508
+ export type ThermostatsHeatBody = ThermostatsHeatParameters
425
509
 
510
+ /**
511
+ * @deprecated Use ThermostatsHeatRequest instead.
512
+ */
426
513
  export type ThermostatsHeatResponse = SetNonNullable<
427
514
  Required<RouteResponse<'/thermostats/heat'>>
428
515
  >
429
516
 
517
+ export type ThermostatsHeatRequest = SeamHttpRequest<
518
+ ThermostatsHeatResponse,
519
+ 'action_attempt'
520
+ >
521
+
430
522
  export type ThermostatsHeatOptions = Pick<
431
523
  SeamHttpRequestOptions,
432
524
  'waitForActionAttempt'
433
525
  >
434
526
 
435
- export type ThermostatsHeatCoolBody = RouteRequestBody<'/thermostats/heat_cool'>
527
+ export type ThermostatsHeatCoolParameters =
528
+ RouteRequestBody<'/thermostats/heat_cool'>
529
+
530
+ /**
531
+ * @deprecated Use ThermostatsHeatCoolParameters instead.
532
+ */
533
+ export type ThermostatsHeatCoolBody = ThermostatsHeatCoolParameters
436
534
 
535
+ /**
536
+ * @deprecated Use ThermostatsHeatCoolRequest instead.
537
+ */
437
538
  export type ThermostatsHeatCoolResponse = SetNonNullable<
438
539
  Required<RouteResponse<'/thermostats/heat_cool'>>
439
540
  >
440
541
 
542
+ export type ThermostatsHeatCoolRequest = SeamHttpRequest<
543
+ ThermostatsHeatCoolResponse,
544
+ 'action_attempt'
545
+ >
546
+
441
547
  export type ThermostatsHeatCoolOptions = Pick<
442
548
  SeamHttpRequestOptions,
443
549
  'waitForActionAttempt'
444
550
  >
445
551
 
446
- export type ThermostatsListParams = RouteRequestBody<'/thermostats/list'>
552
+ export type ThermostatsListParameters = RouteRequestBody<'/thermostats/list'>
447
553
 
554
+ /**
555
+ * @deprecated Use ThermostatsListParameters instead.
556
+ */
557
+ export type ThermostatsListParams = ThermostatsListParameters
558
+
559
+ /**
560
+ * @deprecated Use ThermostatsListRequest instead.
561
+ */
448
562
  export type ThermostatsListResponse = SetNonNullable<
449
563
  Required<RouteResponse<'/thermostats/list'>>
450
564
  >
451
565
 
452
- export type ThermostatsListOptions = never
566
+ export type ThermostatsListRequest = SeamHttpRequest<
567
+ ThermostatsListResponse,
568
+ 'devices'
569
+ >
570
+
571
+ export type ThermostatsListOptions = Record<string, never>
572
+
573
+ export type ThermostatsOffParameters = RouteRequestBody<'/thermostats/off'>
453
574
 
454
- export type ThermostatsOffBody = RouteRequestBody<'/thermostats/off'>
575
+ /**
576
+ * @deprecated Use ThermostatsOffParameters instead.
577
+ */
578
+ export type ThermostatsOffBody = ThermostatsOffParameters
455
579
 
580
+ /**
581
+ * @deprecated Use ThermostatsOffRequest instead.
582
+ */
456
583
  export type ThermostatsOffResponse = SetNonNullable<
457
584
  Required<RouteResponse<'/thermostats/off'>>
458
585
  >
459
586
 
587
+ export type ThermostatsOffRequest = SeamHttpRequest<
588
+ ThermostatsOffResponse,
589
+ 'action_attempt'
590
+ >
591
+
460
592
  export type ThermostatsOffOptions = Pick<
461
593
  SeamHttpRequestOptions,
462
594
  'waitForActionAttempt'
463
595
  >
464
596
 
465
- export type ThermostatsSetFallbackClimatePresetBody =
597
+ export type ThermostatsSetFallbackClimatePresetParameters =
466
598
  RouteRequestBody<'/thermostats/set_fallback_climate_preset'>
467
599
 
600
+ /**
601
+ * @deprecated Use ThermostatsSetFallbackClimatePresetParameters instead.
602
+ */
603
+ export type ThermostatsSetFallbackClimatePresetBody =
604
+ ThermostatsSetFallbackClimatePresetParameters
605
+
606
+ /**
607
+ * @deprecated Use ThermostatsSetFallbackClimatePresetRequest instead.
608
+ */
468
609
  export type ThermostatsSetFallbackClimatePresetResponse = SetNonNullable<
469
610
  Required<RouteResponse<'/thermostats/set_fallback_climate_preset'>>
470
611
  >
471
612
 
472
- export type ThermostatsSetFallbackClimatePresetOptions = never
613
+ export type ThermostatsSetFallbackClimatePresetRequest = SeamHttpRequest<
614
+ void,
615
+ undefined
616
+ >
617
+
618
+ export type ThermostatsSetFallbackClimatePresetOptions = Record<string, never>
473
619
 
474
- export type ThermostatsSetFanModeBody =
620
+ export type ThermostatsSetFanModeParameters =
475
621
  RouteRequestBody<'/thermostats/set_fan_mode'>
476
622
 
623
+ /**
624
+ * @deprecated Use ThermostatsSetFanModeParameters instead.
625
+ */
626
+ export type ThermostatsSetFanModeBody = ThermostatsSetFanModeParameters
627
+
628
+ /**
629
+ * @deprecated Use ThermostatsSetFanModeRequest instead.
630
+ */
477
631
  export type ThermostatsSetFanModeResponse = SetNonNullable<
478
632
  Required<RouteResponse<'/thermostats/set_fan_mode'>>
479
633
  >
480
634
 
635
+ export type ThermostatsSetFanModeRequest = SeamHttpRequest<
636
+ ThermostatsSetFanModeResponse,
637
+ 'action_attempt'
638
+ >
639
+
481
640
  export type ThermostatsSetFanModeOptions = Pick<
482
641
  SeamHttpRequestOptions,
483
642
  'waitForActionAttempt'
484
643
  >
485
644
 
486
- export type ThermostatsSetHvacModeBody =
645
+ export type ThermostatsSetHvacModeParameters =
487
646
  RouteRequestBody<'/thermostats/set_hvac_mode'>
488
647
 
648
+ /**
649
+ * @deprecated Use ThermostatsSetHvacModeParameters instead.
650
+ */
651
+ export type ThermostatsSetHvacModeBody = ThermostatsSetHvacModeParameters
652
+
653
+ /**
654
+ * @deprecated Use ThermostatsSetHvacModeRequest instead.
655
+ */
489
656
  export type ThermostatsSetHvacModeResponse = SetNonNullable<
490
657
  Required<RouteResponse<'/thermostats/set_hvac_mode'>>
491
658
  >
492
659
 
660
+ export type ThermostatsSetHvacModeRequest = SeamHttpRequest<
661
+ ThermostatsSetHvacModeResponse,
662
+ 'action_attempt'
663
+ >
664
+
493
665
  export type ThermostatsSetHvacModeOptions = Pick<
494
666
  SeamHttpRequestOptions,
495
667
  'waitForActionAttempt'
496
668
  >
497
669
 
498
- export type ThermostatsSetTemperatureThresholdBody =
670
+ export type ThermostatsSetTemperatureThresholdParameters =
499
671
  RouteRequestBody<'/thermostats/set_temperature_threshold'>
500
672
 
673
+ /**
674
+ * @deprecated Use ThermostatsSetTemperatureThresholdParameters instead.
675
+ */
676
+ export type ThermostatsSetTemperatureThresholdBody =
677
+ ThermostatsSetTemperatureThresholdParameters
678
+
679
+ /**
680
+ * @deprecated Use ThermostatsSetTemperatureThresholdRequest instead.
681
+ */
501
682
  export type ThermostatsSetTemperatureThresholdResponse = SetNonNullable<
502
683
  Required<RouteResponse<'/thermostats/set_temperature_threshold'>>
503
684
  >
504
685
 
505
- export type ThermostatsSetTemperatureThresholdOptions = never
686
+ export type ThermostatsSetTemperatureThresholdRequest = SeamHttpRequest<
687
+ void,
688
+ undefined
689
+ >
690
+
691
+ export type ThermostatsSetTemperatureThresholdOptions = Record<string, never>
506
692
 
507
- export type ThermostatsUpdateClimatePresetBody =
693
+ export type ThermostatsUpdateClimatePresetParameters =
508
694
  RouteRequestBody<'/thermostats/update_climate_preset'>
509
695
 
696
+ /**
697
+ * @deprecated Use ThermostatsUpdateClimatePresetParameters instead.
698
+ */
699
+ export type ThermostatsUpdateClimatePresetBody =
700
+ ThermostatsUpdateClimatePresetParameters
701
+
702
+ /**
703
+ * @deprecated Use ThermostatsUpdateClimatePresetRequest instead.
704
+ */
510
705
  export type ThermostatsUpdateClimatePresetResponse = SetNonNullable<
511
706
  Required<RouteResponse<'/thermostats/update_climate_preset'>>
512
707
  >
513
708
 
514
- export type ThermostatsUpdateClimatePresetOptions = never
709
+ export type ThermostatsUpdateClimatePresetRequest = SeamHttpRequest<
710
+ void,
711
+ undefined
712
+ >
515
713
 
516
- export type ThermostatsUpdateWeeklyProgramBody =
714
+ export type ThermostatsUpdateClimatePresetOptions = Record<string, never>
715
+
716
+ export type ThermostatsUpdateWeeklyProgramParameters =
517
717
  RouteRequestBody<'/thermostats/update_weekly_program'>
518
718
 
719
+ /**
720
+ * @deprecated Use ThermostatsUpdateWeeklyProgramParameters instead.
721
+ */
722
+ export type ThermostatsUpdateWeeklyProgramBody =
723
+ ThermostatsUpdateWeeklyProgramParameters
724
+
725
+ /**
726
+ * @deprecated Use ThermostatsUpdateWeeklyProgramRequest instead.
727
+ */
519
728
  export type ThermostatsUpdateWeeklyProgramResponse = SetNonNullable<
520
729
  Required<RouteResponse<'/thermostats/update_weekly_program'>>
521
730
  >
522
731
 
732
+ export type ThermostatsUpdateWeeklyProgramRequest = SeamHttpRequest<
733
+ ThermostatsUpdateWeeklyProgramResponse,
734
+ 'action_attempt'
735
+ >
736
+
523
737
  export type ThermostatsUpdateWeeklyProgramOptions = Pick<
524
738
  SeamHttpRequestOptions,
525
739
  'waitForActionAttempt'