@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,160 @@
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 { ConnectWebview } from '../../resources/connect-webview.js';
4
+ import { SeamHttpRequest } from '../../seam-http-request.js';
5
+ import { SeamPaginator } from '../../seam-paginator.js';
6
+ export declare class SeamHttpConnectWebviews {
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'>): SeamHttpConnectWebviews;
13
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectWebviews;
14
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectWebviews;
15
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectWebviews>;
16
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpConnectWebviews;
17
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpConnectWebviews;
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 [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
22
+ *
23
+ * To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
24
+ *
25
+ * You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
26
+ *
27
+ * See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
28
+ */
29
+ create(parameters?: ConnectWebviewsCreateParameters, options?: ConnectWebviewsCreateOptions): ConnectWebviewsCreateRequest;
30
+ /**
31
+ * Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
32
+ *
33
+ * You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
34
+ */
35
+ delete(parameters: ConnectWebviewsDeleteParameters, options?: ConnectWebviewsDeleteOptions): ConnectWebviewsDeleteRequest;
36
+ /**
37
+ * Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
38
+ *
39
+ * Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
40
+ */
41
+ get(parameters: ConnectWebviewsGetParameters, options?: ConnectWebviewsGetOptions): ConnectWebviewsGetRequest;
42
+ /**
43
+ * Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
44
+ */
45
+ list(parameters?: ConnectWebviewsListParameters, options?: ConnectWebviewsListOptions): ConnectWebviewsListRequest;
46
+ }
47
+ export type ConnectWebviewsCreateParameters = {
48
+ /**
49
+ * List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.
50
+ */
51
+ accepted_capabilities?: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'> | undefined;
52
+ /**
53
+ * Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with no filters.
54
+ */
55
+ accepted_providers?: Array<'hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'salto_ks_accept' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'first_alert' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'keynest' | 'korelock' | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' | 'dusaw' | 'sifely' | 'thirty_three_lock' | 'ring' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'aqara' | 'yale_access' | 'hid_cm' | 'google_nest' | 'slack'> | undefined;
56
+ /**
57
+ * Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices). See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
58
+ */
59
+ automatically_manage_new_devices?: boolean | undefined;
60
+ /**
61
+ * Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://docs.seam.co/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata).
62
+ */
63
+ custom_metadata?: Record<string, unknown> | undefined;
64
+ /**
65
+ * Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`.
66
+ */
67
+ custom_redirect_failure_url?: string | undefined;
68
+ /**
69
+ * URL that you want to redirect the user to after the provider login is complete.
70
+ */
71
+ custom_redirect_url?: string | undefined;
72
+ /**
73
+ * Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.
74
+ */
75
+ customer_key?: string | undefined;
76
+ /**
77
+ * List of provider keys to exclude from the Connect Webview. These providers will not be shown when the user tries to connect an account.
78
+ */
79
+ excluded_providers?: Array<string> | undefined;
80
+ /**
81
+ * Specifies the category of providers that you want to include. To list all providers within a category, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with the desired `provider_category` filter.
82
+ */
83
+ provider_category?: 'stable' | 'consumer_smartlocks' | 'beta' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'cameras' | 'connectors' | 'internal_beta' | undefined;
84
+ /**
85
+ * Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
86
+ */
87
+ wait_for_device_creation?: boolean | undefined;
88
+ };
89
+ /**
90
+ * @deprecated Use ConnectWebviewsCreateRequest instead.
91
+ */
92
+ export type ConnectWebviewsCreateResponse = {
93
+ connect_webview: ConnectWebview;
94
+ };
95
+ export type ConnectWebviewsCreateRequest = SeamHttpRequest<ConnectWebviewsCreateResponse, 'connect_webview'>;
96
+ export interface ConnectWebviewsCreateOptions {
97
+ }
98
+ export type ConnectWebviewsDeleteParameters = {
99
+ /**
100
+ * ID of the Connect Webview that you want to delete.
101
+ */
102
+ connect_webview_id: string;
103
+ };
104
+ /**
105
+ * @deprecated Use ConnectWebviewsDeleteRequest instead.
106
+ */
107
+ export type ConnectWebviewsDeleteResponse = void;
108
+ export type ConnectWebviewsDeleteRequest = SeamHttpRequest<void, undefined>;
109
+ export interface ConnectWebviewsDeleteOptions {
110
+ }
111
+ export type ConnectWebviewsGetParameters = {
112
+ /**
113
+ * ID of the Connect Webview that you want to get.
114
+ */
115
+ connect_webview_id: string;
116
+ };
117
+ /**
118
+ * @deprecated Use ConnectWebviewsGetRequest instead.
119
+ */
120
+ export type ConnectWebviewsGetResponse = {
121
+ connect_webview: ConnectWebview;
122
+ };
123
+ export type ConnectWebviewsGetRequest = SeamHttpRequest<ConnectWebviewsGetResponse, 'connect_webview'>;
124
+ export interface ConnectWebviewsGetOptions {
125
+ }
126
+ export type ConnectWebviewsListParameters = {
127
+ /**
128
+ * Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.
129
+ */
130
+ custom_metadata_has?: Record<string, unknown> | undefined;
131
+ /**
132
+ * Customer key for which you want to list connect webviews.
133
+ */
134
+ customer_key?: string | undefined;
135
+ /**
136
+ * Maximum number of records to return per page.
137
+ */
138
+ limit?: number | undefined;
139
+ /**
140
+ * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
141
+ */
142
+ page_cursor?: string | undefined;
143
+ /**
144
+ * String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`.
145
+ */
146
+ search?: string | undefined;
147
+ /**
148
+ * Your user ID for the user by which you want to filter Connect Webviews.
149
+ */
150
+ user_identifier_key?: string | undefined;
151
+ };
152
+ /**
153
+ * @deprecated Use ConnectWebviewsListRequest instead.
154
+ */
155
+ export type ConnectWebviewsListResponse = {
156
+ connect_webviews: Array<ConnectWebview>;
157
+ };
158
+ export type ConnectWebviewsListRequest = SeamHttpRequest<ConnectWebviewsListResponse, 'connect_webviews'>;
159
+ export interface ConnectWebviewsListOptions {
160
+ }
@@ -0,0 +1,147 @@
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 SeamHttpConnectWebviews {
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 SeamHttpConnectWebviews(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 SeamHttpConnectWebviews(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 SeamHttpConnectWebviews(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 SeamHttpConnectWebviews.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 SeamHttpConnectWebviews.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 SeamHttpConnectWebviews(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 SeamHttpConnectWebviews(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 [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
90
+ *
91
+ * To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
92
+ *
93
+ * You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
94
+ *
95
+ * See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
96
+ */
97
+ create(parameters, options = {}) {
98
+ return new SeamHttpRequest(this, {
99
+ pathname: '/connect_webviews/create',
100
+ method: 'POST',
101
+ body: parameters,
102
+ responseKey: 'connect_webview',
103
+ options,
104
+ });
105
+ }
106
+ /**
107
+ * Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
108
+ *
109
+ * You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
110
+ */
111
+ delete(parameters, options = {}) {
112
+ return new SeamHttpRequest(this, {
113
+ pathname: '/connect_webviews/delete',
114
+ method: 'POST',
115
+ body: parameters,
116
+ responseKey: undefined,
117
+ options,
118
+ });
119
+ }
120
+ /**
121
+ * Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
122
+ *
123
+ * Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
124
+ */
125
+ get(parameters, options = {}) {
126
+ return new SeamHttpRequest(this, {
127
+ pathname: '/connect_webviews/get',
128
+ method: 'POST',
129
+ body: parameters,
130
+ responseKey: 'connect_webview',
131
+ options,
132
+ });
133
+ }
134
+ /**
135
+ * Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
136
+ */
137
+ list(parameters, options = {}) {
138
+ return new SeamHttpRequest(this, {
139
+ pathname: '/connect_webviews/list',
140
+ method: 'POST',
141
+ body: parameters,
142
+ responseKey: 'connect_webviews',
143
+ options,
144
+ });
145
+ }
146
+ }
147
+ //# sourceMappingURL=connect-webviews.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../src/lib/routes/connect-webviews/connect-webviews.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,EAExC,2BAA2B,GAQ5B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,MAAM,OAAO,uBAAuB;IAClC,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAA;QACjD,IAAI,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,2BAA2B,CAAC,gBAAgB,CAAC,CAAA;QACzD,CAAC;QACD,OAAO,IAAI,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAA;QACjD,IAAI,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,2BAA2B,CAAC,gBAAgB,CAAC,CAAA;QACzD,CAAC;QACD,OAAO,IAAI,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,sBAAsB,CAC3B,kBAA+E,EAC/E,UAGI,EAAE;QAEN,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,kBAAkB,EAAE,CAAA;QAC7D,IAAI,CAAC,uCAAuC,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACjE,MAAM,IAAI,2BAA2B,CAAC,4BAA4B,CAAC,CAAA;QACrE,CAAC;QACD,OAAO,IAAI,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAC7B,cAAsB,EACtB,iBAAyB,EACzB,UAA6C,EAAE;QAE/C,+BAA+B,CAAC,iBAAiB,CAAC,CAAA;QAClD,MAAM,aAAa,GAAG,YAAY,CAAC,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,CAAC,CAAA;QAClE,IAAI,2BAA2B,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,MAAM,IAAI,2BAA2B,CACnC,kFAAkF,CACnF,CAAA;QACH,CAAC;QACD,MAAM,MAAM,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC1C,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QAChE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC;YACjD,mBAAmB,EAAE,iBAAiB;SACvC,CAAC,CAAA;QACF,OAAO,uBAAuB,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACvE,CAAC;IAED,MAAM,CAAC,uBAAuB,CAC5B,mBAAkF,EAClF,WAAkE,EAClE,UAGI,EAAE;QAEN,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAA;QAC3E,IAAI,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAClE,MAAM,IAAI,2BAA2B,CACnC,4CAA4C,CAC7C,CAAA;QACH,CAAC;QACD,OAAO,IAAI,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,uBAAuB,CAC5B,mBAAkF,EAClF,WAAkE,EAClE,UAGI,EAAE;QAEN,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAA;QAC3E,IAAI,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAClE,MAAM,IAAI,2BAA2B,CACnC,4CAA4C,CAC7C,CAAA;QACH,CAAC;QACD,OAAO,IAAI,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IACxD,CAAC;IAED,eAAe,CACb,OAAiD;QAEjD,OAAO,IAAI,aAAa,CAA0B,IAAI,EAAE,OAAO,CAAC,CAAA;IAClE,CAAC;IAED,KAAK,CAAC,wBAAwB,CAC5B,kBAA+E;QAE/E,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAA;QACxC,MAAM,WAAW,GAAG,mCAAmC,CAAC;YACtD,kBAAkB;SACnB,CAAC,CAAA;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC3C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,UAA4C,EAC5C,UAAwC,EAAE;QAE1C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,0BAA0B;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iBAAiB;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,UAA2C,EAC3C,UAAwC,EAAE;QAE1C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,0BAA0B;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,UAAwC,EACxC,UAAqC,EAAE;QAEvC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iBAAiB;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CACF,UAA0C,EAC1C,UAAsC,EAAE;QAExC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kBAAkB;YAC/B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/routes/connect-webviews/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,uBAAuB,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 { ConnectedAccount } from '../../resources/connected-account.js';
4
+ import { SeamHttpRequest } from '../../seam-http-request.js';
5
+ import { SeamPaginator } from '../../seam-paginator.js';
6
+ import { SeamHttpConnectedAccountsSimulate } from './simulate/index.js';
7
+ export declare class SeamHttpConnectedAccounts {
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'>): SeamHttpConnectedAccounts;
14
+ static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectedAccounts;
15
+ static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectedAccounts;
16
+ static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectedAccounts>;
17
+ static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpConnectedAccounts;
18
+ static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpConnectedAccounts;
19
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
20
+ updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
21
+ get simulate(): SeamHttpConnectedAccountsSimulate;
22
+ /**
23
+ * Deletes a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
24
+ *
25
+ * Deleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.
26
+ *
27
+ * For example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.
28
+ */
29
+ delete(parameters: ConnectedAccountsDeleteParameters, options?: ConnectedAccountsDeleteOptions): ConnectedAccountsDeleteRequest;
30
+ /**
31
+ * Returns a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
32
+ */
33
+ get(parameters?: ConnectedAccountsGetParameters, options?: ConnectedAccountsGetOptions): ConnectedAccountsGetRequest;
34
+ /**
35
+ * Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
36
+ */
37
+ list(parameters?: ConnectedAccountsListParameters, options?: ConnectedAccountsListOptions): ConnectedAccountsListRequest;
38
+ /**
39
+ * Request a [connected account](https://docs.seam.co/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.
40
+ */
41
+ sync(parameters: ConnectedAccountsSyncParameters, options?: ConnectedAccountsSyncOptions): ConnectedAccountsSyncRequest;
42
+ /**
43
+ * Updates a [connected account](https://docs.seam.co/core-concepts/connected-accounts).
44
+ */
45
+ update(parameters: ConnectedAccountsUpdateParameters, options?: ConnectedAccountsUpdateOptions): ConnectedAccountsUpdateRequest;
46
+ }
47
+ export type ConnectedAccountsDeleteParameters = {
48
+ /**
49
+ * ID of the connected account that you want to delete.
50
+ */
51
+ connected_account_id: string;
52
+ };
53
+ /**
54
+ * @deprecated Use ConnectedAccountsDeleteRequest instead.
55
+ */
56
+ export type ConnectedAccountsDeleteResponse = void;
57
+ export type ConnectedAccountsDeleteRequest = SeamHttpRequest<void, undefined>;
58
+ export interface ConnectedAccountsDeleteOptions {
59
+ }
60
+ export type ConnectedAccountsGetParameters = {
61
+ /**
62
+ * ID of the connected account that you want to get.
63
+ */
64
+ connected_account_id?: string | undefined;
65
+ /**
66
+ * Email address associated with the connected account that you want to get.
67
+ */
68
+ email?: string | undefined;
69
+ };
70
+ /**
71
+ * @deprecated Use ConnectedAccountsGetRequest instead.
72
+ */
73
+ export type ConnectedAccountsGetResponse = {
74
+ connected_account: ConnectedAccount;
75
+ };
76
+ export type ConnectedAccountsGetRequest = SeamHttpRequest<ConnectedAccountsGetResponse, 'connected_account'>;
77
+ export interface ConnectedAccountsGetOptions {
78
+ }
79
+ export type ConnectedAccountsListParameters = {
80
+ /**
81
+ * Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs.
82
+ */
83
+ custom_metadata_has?: Record<string, unknown> | undefined;
84
+ /**
85
+ * Customer key by which you want to filter connected accounts.
86
+ */
87
+ customer_key?: string | undefined;
88
+ /**
89
+ * Maximum number of records to return per page.
90
+ */
91
+ limit?: number | undefined;
92
+ /**
93
+ * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
94
+ */
95
+ page_cursor?: string | undefined;
96
+ /**
97
+ * String for which to search. Filters returned connected accounts to include all records that satisfy a partial match using `connected_account_id`, `account_type`, `customer_key`, `custom_metadata`, `user_identifier.username`, `user_identifier.email` or `user_identifier.phone`.
98
+ */
99
+ search?: string | undefined;
100
+ /**
101
+ * ID of the space by which you want to filter connected accounts.
102
+ */
103
+ space_id?: string | undefined;
104
+ /**
105
+ * Your user ID for the user by which you want to filter connected accounts.
106
+ */
107
+ user_identifier_key?: string | undefined;
108
+ };
109
+ /**
110
+ * @deprecated Use ConnectedAccountsListRequest instead.
111
+ */
112
+ export type ConnectedAccountsListResponse = {
113
+ connected_accounts: Array<ConnectedAccount>;
114
+ };
115
+ export type ConnectedAccountsListRequest = SeamHttpRequest<ConnectedAccountsListResponse, 'connected_accounts'>;
116
+ export interface ConnectedAccountsListOptions {
117
+ }
118
+ export type ConnectedAccountsSyncParameters = {
119
+ /**
120
+ * ID of the connected account that you want to sync.
121
+ */
122
+ connected_account_id: string;
123
+ };
124
+ /**
125
+ * @deprecated Use ConnectedAccountsSyncRequest instead.
126
+ */
127
+ export type ConnectedAccountsSyncResponse = void;
128
+ export type ConnectedAccountsSyncRequest = SeamHttpRequest<void, undefined>;
129
+ export interface ConnectedAccountsSyncOptions {
130
+ }
131
+ export type ConnectedAccountsUpdateParameters = {
132
+ /**
133
+ * List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.
134
+ */
135
+ accepted_capabilities?: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'> | undefined;
136
+ /**
137
+ * Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
138
+ */
139
+ automatically_manage_new_devices?: boolean | undefined;
140
+ /**
141
+ * ID of the connected account that you want to update.
142
+ */
143
+ connected_account_id: string;
144
+ /**
145
+ * Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).
146
+ */
147
+ custom_metadata?: Record<string, unknown> | undefined;
148
+ /**
149
+ * The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.
150
+ */
151
+ customer_key?: string | undefined;
152
+ /**
153
+ * Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`.
154
+ */
155
+ display_name?: string | undefined;
156
+ };
157
+ /**
158
+ * @deprecated Use ConnectedAccountsUpdateRequest instead.
159
+ */
160
+ export type ConnectedAccountsUpdateResponse = void;
161
+ export type ConnectedAccountsUpdateRequest = SeamHttpRequest<void, undefined>;
162
+ export interface ConnectedAccountsUpdateOptions {
163
+ }
@@ -0,0 +1,157 @@
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
+ import { SeamHttpConnectedAccountsSimulate } from './simulate/index.js';
14
+ export class SeamHttpConnectedAccounts {
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 SeamHttpConnectedAccounts(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 SeamHttpConnectedAccounts(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 SeamHttpConnectedAccounts(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 SeamHttpConnectedAccounts.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 SeamHttpConnectedAccounts.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 SeamHttpConnectedAccounts(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 SeamHttpConnectedAccounts(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
+ get simulate() {
90
+ return SeamHttpConnectedAccountsSimulate.fromClient(this.client, this.defaults);
91
+ }
92
+ /**
93
+ * Deletes a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
94
+ *
95
+ * Deleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.
96
+ *
97
+ * For example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.
98
+ */
99
+ delete(parameters, options = {}) {
100
+ return new SeamHttpRequest(this, {
101
+ pathname: '/connected_accounts/delete',
102
+ method: 'POST',
103
+ body: parameters,
104
+ responseKey: undefined,
105
+ options,
106
+ });
107
+ }
108
+ /**
109
+ * Returns a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
110
+ */
111
+ get(parameters, options = {}) {
112
+ return new SeamHttpRequest(this, {
113
+ pathname: '/connected_accounts/get',
114
+ method: 'GET',
115
+ params: parameters,
116
+ responseKey: 'connected_account',
117
+ options,
118
+ });
119
+ }
120
+ /**
121
+ * Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
122
+ */
123
+ list(parameters, options = {}) {
124
+ return new SeamHttpRequest(this, {
125
+ pathname: '/connected_accounts/list',
126
+ method: 'POST',
127
+ body: parameters,
128
+ responseKey: 'connected_accounts',
129
+ options,
130
+ });
131
+ }
132
+ /**
133
+ * Request a [connected account](https://docs.seam.co/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.
134
+ */
135
+ sync(parameters, options = {}) {
136
+ return new SeamHttpRequest(this, {
137
+ pathname: '/connected_accounts/sync',
138
+ method: 'POST',
139
+ body: parameters,
140
+ responseKey: undefined,
141
+ options,
142
+ });
143
+ }
144
+ /**
145
+ * Updates a [connected account](https://docs.seam.co/core-concepts/connected-accounts).
146
+ */
147
+ update(parameters, options = {}) {
148
+ return new SeamHttpRequest(this, {
149
+ pathname: '/connected_accounts/update',
150
+ method: 'PATCH',
151
+ body: parameters,
152
+ responseKey: undefined,
153
+ options,
154
+ });
155
+ }
156
+ }
157
+ //# sourceMappingURL=connected-accounts.js.map