@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,1838 @@
1
+ /*
2
+ * Automatically generated by codegen/smith.ts.
3
+ * Do not edit this file or add other files to this directory.
4
+ */
5
+
6
+ import {
7
+ getAuthHeadersForClientSessionToken,
8
+ warnOnInsecureuserIdentifierKey,
9
+ } from 'lib/auth.js'
10
+ import { type Client, createClient } from 'lib/client.js'
11
+ import { seamApiLtsVersion } from 'lib/lts-version.js'
12
+ import {
13
+ isSeamHttpOptionsWithApiKey,
14
+ isSeamHttpOptionsWithClient,
15
+ isSeamHttpOptionsWithClientSessionToken,
16
+ isSeamHttpOptionsWithConsoleSessionToken,
17
+ isSeamHttpOptionsWithPersonalAccessToken,
18
+ type SeamHttpFromPublishableKeyOptions,
19
+ SeamHttpInvalidOptionsError,
20
+ type SeamHttpOptions,
21
+ type SeamHttpOptionsWithApiKey,
22
+ type SeamHttpOptionsWithClient,
23
+ type SeamHttpOptionsWithClientSessionToken,
24
+ type SeamHttpOptionsWithConsoleSessionToken,
25
+ type SeamHttpOptionsWithPersonalAccessToken,
26
+ type SeamHttpRequestOptions,
27
+ } from 'lib/options.js'
28
+ import {
29
+ limitToSeamHttpRequestOptions,
30
+ parseOptions,
31
+ } from 'lib/parse-options.js'
32
+ import type { CustomerPortal } from 'lib/resources/customer-portal.js'
33
+ import { SeamHttpClientSessions } from 'lib/routes/client-sessions/index.js'
34
+ import { SeamHttpRequest } from 'lib/seam-http-request.js'
35
+ import { SeamPaginator } from 'lib/seam-paginator.js'
36
+
37
+ export class SeamHttpCustomers {
38
+ client: Client
39
+ readonly defaults: Required<SeamHttpRequestOptions>
40
+ readonly ltsVersion = seamApiLtsVersion
41
+ static ltsVersion = seamApiLtsVersion
42
+
43
+ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
44
+ const options = parseOptions(apiKeyOrOptions)
45
+ this.client = 'client' in options ? options.client : createClient(options)
46
+ this.defaults = limitToSeamHttpRequestOptions(options)
47
+ }
48
+
49
+ static fromClient(
50
+ client: SeamHttpOptionsWithClient['client'],
51
+ options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
52
+ ): SeamHttpCustomers {
53
+ const constructorOptions = { ...options, client }
54
+ if (!isSeamHttpOptionsWithClient(constructorOptions)) {
55
+ throw new SeamHttpInvalidOptionsError('Missing client')
56
+ }
57
+ return new SeamHttpCustomers(constructorOptions)
58
+ }
59
+
60
+ static fromApiKey(
61
+ apiKey: SeamHttpOptionsWithApiKey['apiKey'],
62
+ options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
63
+ ): SeamHttpCustomers {
64
+ const constructorOptions = { ...options, apiKey }
65
+ if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
66
+ throw new SeamHttpInvalidOptionsError('Missing apiKey')
67
+ }
68
+ return new SeamHttpCustomers(constructorOptions)
69
+ }
70
+
71
+ static fromClientSessionToken(
72
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
73
+ options: Omit<
74
+ SeamHttpOptionsWithClientSessionToken,
75
+ 'clientSessionToken'
76
+ > = {},
77
+ ): SeamHttpCustomers {
78
+ const constructorOptions = { ...options, clientSessionToken }
79
+ if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
80
+ throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
81
+ }
82
+ return new SeamHttpCustomers(constructorOptions)
83
+ }
84
+
85
+ static async fromPublishableKey(
86
+ publishableKey: string,
87
+ userIdentifierKey: string,
88
+ options: SeamHttpFromPublishableKeyOptions = {},
89
+ ): Promise<SeamHttpCustomers> {
90
+ warnOnInsecureuserIdentifierKey(userIdentifierKey)
91
+ const clientOptions = parseOptions({ ...options, publishableKey })
92
+ if (isSeamHttpOptionsWithClient(clientOptions)) {
93
+ throw new SeamHttpInvalidOptionsError(
94
+ 'The client option cannot be used with SeamHttpCustomers.fromPublishableKey',
95
+ )
96
+ }
97
+ const client = createClient(clientOptions)
98
+ const clientSessions = SeamHttpClientSessions.fromClient(client)
99
+ const { token } = await clientSessions.getOrCreate({
100
+ user_identifier_key: userIdentifierKey,
101
+ })
102
+ return SeamHttpCustomers.fromClientSessionToken(token, options)
103
+ }
104
+
105
+ static fromConsoleSessionToken(
106
+ consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
107
+ workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
108
+ options: Omit<
109
+ SeamHttpOptionsWithConsoleSessionToken,
110
+ 'consoleSessionToken' | 'workspaceId'
111
+ > = {},
112
+ ): SeamHttpCustomers {
113
+ const constructorOptions = { ...options, consoleSessionToken, workspaceId }
114
+ if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
115
+ throw new SeamHttpInvalidOptionsError(
116
+ 'Missing consoleSessionToken or workspaceId',
117
+ )
118
+ }
119
+ return new SeamHttpCustomers(constructorOptions)
120
+ }
121
+
122
+ static fromPersonalAccessToken(
123
+ personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
124
+ workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
125
+ options: Omit<
126
+ SeamHttpOptionsWithPersonalAccessToken,
127
+ 'personalAccessToken' | 'workspaceId'
128
+ > = {},
129
+ ): SeamHttpCustomers {
130
+ const constructorOptions = { ...options, personalAccessToken, workspaceId }
131
+ if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
132
+ throw new SeamHttpInvalidOptionsError(
133
+ 'Missing personalAccessToken or workspaceId',
134
+ )
135
+ }
136
+ return new SeamHttpCustomers(constructorOptions)
137
+ }
138
+
139
+ createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
140
+ request: SeamHttpRequest<TResponse, TResponseKey>,
141
+ ): SeamPaginator<TResponse, TResponseKey> {
142
+ return new SeamPaginator<TResponse, TResponseKey>(this, request)
143
+ }
144
+
145
+ async updateClientSessionToken(
146
+ clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
147
+ ): Promise<void> {
148
+ const { headers } = this.client.defaults
149
+ const authHeaders = getAuthHeadersForClientSessionToken({
150
+ clientSessionToken,
151
+ })
152
+ for (const key of Object.keys(authHeaders)) {
153
+ if (headers[key] == null) {
154
+ throw new Error(
155
+ 'Cannot update a clientSessionToken on a client created without a clientSessionToken',
156
+ )
157
+ }
158
+ }
159
+ this.client.defaults.headers = { ...headers, ...authHeaders }
160
+ const clientSessions = SeamHttpClientSessions.fromClient(this.client)
161
+ await clientSessions.get()
162
+ }
163
+
164
+ /**
165
+ * Creates a new customer portal magic link with configurable features.
166
+ */
167
+ createPortal(
168
+ parameters?: CustomersCreatePortalParameters,
169
+ options: CustomersCreatePortalOptions = {},
170
+ ): CustomersCreatePortalRequest {
171
+ return new SeamHttpRequest(this, {
172
+ pathname: '/customers/create_portal',
173
+ method: 'POST',
174
+ body: parameters,
175
+ responseKey: 'customer_portal',
176
+ options,
177
+ })
178
+ }
179
+
180
+ /**
181
+ * Deletes customer data including resources like spaces, properties, rooms, users, etc.
182
+ * This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
183
+ */
184
+ deleteData(
185
+ parameters?: CustomersDeleteDataParameters,
186
+ options: CustomersDeleteDataOptions = {},
187
+ ): CustomersDeleteDataRequest {
188
+ return new SeamHttpRequest(this, {
189
+ pathname: '/customers/delete_data',
190
+ method: 'POST',
191
+ body: parameters,
192
+ responseKey: undefined,
193
+ options,
194
+ })
195
+ }
196
+
197
+ /**
198
+ * Pushes customer data including resources like spaces, properties, rooms, users, etc.
199
+ */
200
+ pushData(
201
+ parameters: CustomersPushDataParameters,
202
+ options: CustomersPushDataOptions = {},
203
+ ): CustomersPushDataRequest {
204
+ return new SeamHttpRequest(this, {
205
+ pathname: '/customers/push_data',
206
+ method: 'POST',
207
+ body: parameters,
208
+ responseKey: undefined,
209
+ options,
210
+ })
211
+ }
212
+ }
213
+
214
+ export type CustomersCreatePortalParameters = {
215
+ /**
216
+ * Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.
217
+ */
218
+ customer_resources_filters?:
219
+ | Array<{
220
+ /**
221
+ * The custom_metadata field name to filter on.
222
+ */
223
+ field?: string | undefined
224
+ /**
225
+ * The comparison operation. Currently only '=' is supported.
226
+ */
227
+ operation?: '=' | undefined
228
+ /**
229
+ * The value to compare against.
230
+ */
231
+ value?: {} | undefined
232
+ }>
233
+ | undefined
234
+ /**
235
+ * The ID of the customization profile to use for the portal.
236
+ */
237
+ customization_profile_id?: string | undefined
238
+ /**
239
+ * Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.
240
+ */
241
+ deep_link?:
242
+ | {
243
+ resource_key?: string | undefined
244
+
245
+ resource_type?: 'reservation' | 'space' | 'device' | undefined
246
+
247
+ resource_id?: string | undefined
248
+ }
249
+ | undefined
250
+ /**
251
+ * Whether to exclude the option to select a locale within the portal UI.
252
+ */
253
+ exclude_locale_picker?: boolean | undefined
254
+
255
+ features?:
256
+ | {
257
+ /**
258
+ * Configuration for the configure feature.
259
+ */
260
+ configure?:
261
+ | {
262
+ /**
263
+ * Indicates whether the customer can customize the access automation rules for their properties.
264
+ */
265
+ allow_access_automation_rule_customization?: boolean | undefined
266
+ /**
267
+ * Indicates whether the customer can customize the climate automation rules for their properties.
268
+ */
269
+ allow_climate_automation_rule_customization?: boolean | undefined
270
+ /**
271
+ * Indicates whether the customer can customize the Instant Key profile for their properties.
272
+ */
273
+ allow_instant_key_customization?: boolean | undefined
274
+ /**
275
+ * Whether to exclude this feature from the portal.
276
+ */
277
+ exclude?: boolean | undefined
278
+ }
279
+ | undefined
280
+ /**
281
+ * Configuration for the connect accounts feature.
282
+ */
283
+ connect?:
284
+ | {
285
+ /**
286
+ * List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.
287
+ */
288
+ accepted_providers?: Array<string> | undefined
289
+ /**
290
+ * Whether to exclude this feature from the portal.
291
+ */
292
+ exclude?: boolean | undefined
293
+ /**
294
+ * List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.
295
+ */
296
+ excluded_providers?: Array<string> | undefined
297
+ }
298
+ | undefined
299
+ /**
300
+ * Configuration for the manage feature.
301
+ */
302
+ manage?:
303
+ | {
304
+ /**
305
+ * Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
306
+ */
307
+ device_management_confirmation?:
308
+ | {
309
+ /**
310
+ * Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.
311
+ */
312
+ body?: string | undefined
313
+ /**
314
+ * Custom label for the cancel button.
315
+ */
316
+ cancel_button_label?: string | undefined
317
+ /**
318
+ * Custom label for the confirm button.
319
+ */
320
+ confirm_button_label?: string | undefined
321
+ /**
322
+ * Custom title for the confirmation modal.
323
+ */
324
+ title?: string | undefined
325
+ }
326
+ | undefined
327
+ /**
328
+ * Configuration for event type filtering in the manage feature.
329
+ */
330
+ events?:
331
+ | {
332
+ /**
333
+ * List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.
334
+ */
335
+ allowed_events?: Array<string> | undefined
336
+ /**
337
+ * List of event types that are pre-selected in the events filter when the user first loads the events tab.
338
+ */
339
+ default_events?: Array<string> | undefined
340
+ }
341
+ | undefined
342
+ /**
343
+ * Whether to exclude this feature from the portal.
344
+ */
345
+ exclude?: boolean | undefined
346
+ /**
347
+ * Indicates whether the customer can manage reservations for their properties.
348
+ */
349
+ exclude_reservation_management?: boolean | undefined
350
+ /**
351
+ * Indicates whether to exclude technical details from reservation views.
352
+ */
353
+ exclude_reservation_technical_details?: boolean | undefined
354
+ /**
355
+ * Indicates whether the customer can manage staff for their properties.
356
+ */
357
+ exclude_staff_management?: boolean | undefined
358
+ }
359
+ | undefined
360
+ /**
361
+ * Configuration for the manage devices feature.
362
+ * ---
363
+ * deprecated: Use `manage` instead.
364
+ * ---
365
+ */
366
+ manage_devices?:
367
+ | {
368
+ /**
369
+ * Whether to exclude this feature from the portal.
370
+ */
371
+ exclude?: boolean | undefined
372
+ }
373
+ | undefined
374
+ /**
375
+ * Configuration for the organize feature.
376
+ */
377
+ organize?:
378
+ | {
379
+ /**
380
+ * Whether to exclude this feature from the portal.
381
+ */
382
+ exclude?: boolean | undefined
383
+ }
384
+ | undefined
385
+ }
386
+ | undefined
387
+ /**
388
+ * Whether the portal is embedded in another application.
389
+ */
390
+ is_embedded?: boolean | undefined
391
+ /**
392
+ * Configuration for the landing page when the portal loads.
393
+ */
394
+ landing_page?:
395
+ | {
396
+ manage?:
397
+ | {
398
+ space_key?: string | undefined
399
+
400
+ property_key?: string | undefined
401
+
402
+ room_key?: string | undefined
403
+
404
+ common_area_key?: string | undefined
405
+
406
+ unit_key?: string | undefined
407
+
408
+ facility_key?: string | undefined
409
+
410
+ building_key?: string | undefined
411
+
412
+ listing_key?: string | undefined
413
+
414
+ property_listing_key?: string | undefined
415
+
416
+ site_key?: string | undefined
417
+
418
+ reservation_key?: string | undefined
419
+
420
+ booking_key?: string | undefined
421
+
422
+ access_grant_key?: string | undefined
423
+ }
424
+ | undefined
425
+ }
426
+ | undefined
427
+ /**
428
+ * The locale to use for the portal.
429
+ */
430
+ locale?:
431
+ | 'en-US'
432
+ | 'pt-PT'
433
+ | 'fr-FR'
434
+ | 'it-IT'
435
+ | 'es-ES'
436
+ | 'de-DE'
437
+ | 'nl-NL'
438
+ | 'el-GR'
439
+ | 'pl-PL'
440
+ | 'ru-RU'
441
+ | undefined
442
+ /**
443
+ * Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.
444
+ */
445
+ navigation_mode?: 'full' | 'restricted' | undefined
446
+ /**
447
+ * Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.
448
+ */
449
+ read_only?: boolean | undefined
450
+
451
+ customer_data?:
452
+ | {
453
+ /**
454
+ * List of access grants.
455
+ */
456
+ access_grants?:
457
+ | Array<{
458
+ /**
459
+ * Your unique identifier for the access grant.
460
+ */
461
+ access_grant_key?: string | undefined
462
+ /**
463
+ * Building keys associated with the access grant.
464
+ */
465
+ building_keys?: Array<string> | undefined
466
+ /**
467
+ * Common area keys associated with the access grant.
468
+ */
469
+ common_area_keys?: Array<string> | undefined
470
+ /**
471
+ * Ending date and time for the access grant.
472
+ */
473
+ ends_at?: string | undefined
474
+ /**
475
+ * Facility keys associated with the access grant.
476
+ */
477
+ facility_keys?: Array<string> | undefined
478
+ /**
479
+ * Guest key associated with the access grant.
480
+ */
481
+ guest_key?: string | undefined
482
+ /**
483
+ * Listing keys associated with the access grant.
484
+ */
485
+ listing_keys?: Array<string> | undefined
486
+ /**
487
+ * Your name for this access grant resource.
488
+ */
489
+ name?: string | undefined
490
+ /**
491
+ * Preferred PIN code to use when creating access for this reservation.
492
+ */
493
+ preferred_code?: string | undefined
494
+ /**
495
+ * Property keys associated with the access grant.
496
+ */
497
+ property_keys?: Array<string> | undefined
498
+ /**
499
+ * Resident key associated with the access grant.
500
+ */
501
+ resident_key?: string | undefined
502
+ /**
503
+ * Room keys associated with the access grant.
504
+ */
505
+ room_keys?: Array<string> | undefined
506
+ /**
507
+ * Space keys associated with the access grant.
508
+ */
509
+ space_keys?: Array<string> | undefined
510
+ /**
511
+ * Starting date and time for the access grant.
512
+ */
513
+ starts_at?: string | undefined
514
+ /**
515
+ * Tenant key associated with the access grant.
516
+ */
517
+ tenant_key?: string | undefined
518
+ /**
519
+ * Unit keys associated with the access grant.
520
+ */
521
+ unit_keys?: Array<string> | undefined
522
+ /**
523
+ * User identity key associated with the access grant.
524
+ */
525
+ user_identity_key?: string | undefined
526
+ /**
527
+ * User key associated with the access grant.
528
+ */
529
+ user_key?: string | undefined
530
+ }>
531
+ | undefined
532
+ /**
533
+ * List of bookings.
534
+ */
535
+ bookings?:
536
+ | Array<{
537
+ /**
538
+ * Your unique identifier for the booking.
539
+ */
540
+ booking_key?: string | undefined
541
+ /**
542
+ * Building keys associated with the access grant.
543
+ */
544
+ building_keys?: Array<string> | undefined
545
+ /**
546
+ * Common area keys associated with the access grant.
547
+ */
548
+ common_area_keys?: Array<string> | undefined
549
+ /**
550
+ * Ending date and time for the access grant.
551
+ */
552
+ ends_at?: string | undefined
553
+ /**
554
+ * Facility keys associated with the access grant.
555
+ */
556
+ facility_keys?: Array<string> | undefined
557
+ /**
558
+ * Guest key associated with the access grant.
559
+ */
560
+ guest_key?: string | undefined
561
+ /**
562
+ * Listing keys associated with the access grant.
563
+ */
564
+ listing_keys?: Array<string> | undefined
565
+ /**
566
+ * Your name for this access grant resource.
567
+ */
568
+ name?: string | undefined
569
+ /**
570
+ * Preferred PIN code to use when creating access for this reservation.
571
+ */
572
+ preferred_code?: string | undefined
573
+ /**
574
+ * Property keys associated with the access grant.
575
+ */
576
+ property_keys?: Array<string> | undefined
577
+ /**
578
+ * Resident key associated with the access grant.
579
+ */
580
+ resident_key?: string | undefined
581
+ /**
582
+ * Room keys associated with the access grant.
583
+ */
584
+ room_keys?: Array<string> | undefined
585
+ /**
586
+ * Space keys associated with the access grant.
587
+ */
588
+ space_keys?: Array<string> | undefined
589
+ /**
590
+ * Starting date and time for the access grant.
591
+ */
592
+ starts_at?: string | undefined
593
+ /**
594
+ * Tenant key associated with the access grant.
595
+ */
596
+ tenant_key?: string | undefined
597
+ /**
598
+ * Unit keys associated with the access grant.
599
+ */
600
+ unit_keys?: Array<string> | undefined
601
+ /**
602
+ * User identity key associated with the access grant.
603
+ */
604
+ user_identity_key?: string | undefined
605
+ /**
606
+ * User key associated with the access grant.
607
+ */
608
+ user_key?: string | undefined
609
+ }>
610
+ | undefined
611
+ /**
612
+ * List of buildings.
613
+ */
614
+ buildings?:
615
+ | Array<{
616
+ /**
617
+ * Your unique identifier for the building.
618
+ */
619
+ building_key?: string | undefined
620
+ /**
621
+ * Your display name for this location resource.
622
+ */
623
+ name?: string | undefined
624
+ }>
625
+ | undefined
626
+ /**
627
+ * List of shared common areas.
628
+ */
629
+ common_areas?:
630
+ | Array<{
631
+ /**
632
+ * Your unique identifier for the common area.
633
+ */
634
+ common_area_key?: string | undefined
635
+ /**
636
+ * Your display name for this location resource.
637
+ */
638
+ name?: string | undefined
639
+ /**
640
+ * Your unique identifier for the site.
641
+ */
642
+ parent_site_key?: string | undefined
643
+ }>
644
+ | undefined
645
+ /**
646
+ * Your unique identifier for the customer.
647
+ */
648
+ customer_key?: string | undefined
649
+ /**
650
+ * List of gym or fitness facilities.
651
+ */
652
+ facilities?:
653
+ | Array<{
654
+ /**
655
+ * Your unique identifier for the facility.
656
+ */
657
+ facility_key?: string | undefined
658
+ /**
659
+ * Your display name for this location resource.
660
+ */
661
+ name?: string | undefined
662
+ }>
663
+ | undefined
664
+ /**
665
+ * List of guests.
666
+ */
667
+ guests?:
668
+ | Array<{
669
+ /**
670
+ * Email address associated with the user identity.
671
+ */
672
+ email_address?: string | undefined
673
+ /**
674
+ * Your unique identifier for the guest.
675
+ */
676
+ guest_key?: string | undefined
677
+ /**
678
+ * Your display name for this user identity resource.
679
+ */
680
+ name?: string | undefined
681
+ /**
682
+ * Phone number associated with the user identity.
683
+ */
684
+ phone_number?: string | undefined
685
+ }>
686
+ | undefined
687
+ /**
688
+ * List of property listings.
689
+ */
690
+ listings?:
691
+ | Array<{
692
+ /**
693
+ * Your unique identifier for the listing.
694
+ */
695
+ listing_key?: string | undefined
696
+ /**
697
+ * Your display name for this location resource.
698
+ */
699
+ name?: string | undefined
700
+ }>
701
+ | undefined
702
+ /**
703
+ * List of short-term rental properties.
704
+ */
705
+ properties?:
706
+ | Array<{
707
+ /**
708
+ * Your display name for this location resource.
709
+ */
710
+ name?: string | undefined
711
+ /**
712
+ * Your unique identifier for the property.
713
+ */
714
+ property_key?: string | undefined
715
+ }>
716
+ | undefined
717
+ /**
718
+ * List of property listings.
719
+ */
720
+ property_listings?:
721
+ | Array<{
722
+ /**
723
+ * Set key:value pairs. Accepts string or Boolean values. Adding custom metadata to a property listing enables you to store custom information, like customer details or internal IDs from your application.
724
+ */
725
+ custom_metadata?: Record<string, unknown> | undefined
726
+ /**
727
+ * Your display name for this location resource.
728
+ */
729
+ name?: string | undefined
730
+ /**
731
+ * Your unique identifier for the property listing.
732
+ */
733
+ property_listing_key?: string | undefined
734
+ }>
735
+ | undefined
736
+ /**
737
+ * List of reservations.
738
+ */
739
+ reservations?:
740
+ | Array<{
741
+ /**
742
+ * Building keys associated with the access grant.
743
+ */
744
+ building_keys?: Array<string> | undefined
745
+ /**
746
+ * Common area keys associated with the access grant.
747
+ */
748
+ common_area_keys?: Array<string> | undefined
749
+ /**
750
+ * Set key:value pairs for filtering reservations by custom criteria.
751
+ */
752
+ custom_metadata?: Record<string, unknown> | undefined
753
+ /**
754
+ * Ending date and time for the access grant.
755
+ */
756
+ ends_at?: string | undefined
757
+ /**
758
+ * Facility keys associated with the access grant.
759
+ */
760
+ facility_keys?: Array<string> | undefined
761
+ /**
762
+ * Guest key associated with the access grant.
763
+ */
764
+ guest_key?: string | undefined
765
+ /**
766
+ * Listing keys associated with the access grant.
767
+ */
768
+ listing_keys?: Array<string> | undefined
769
+ /**
770
+ * Your name for this access grant resource.
771
+ */
772
+ name?: string | undefined
773
+ /**
774
+ * Preferred PIN code to use when creating access for this reservation.
775
+ */
776
+ preferred_code?: string | undefined
777
+ /**
778
+ * Property keys associated with the access grant.
779
+ */
780
+ property_keys?: Array<string> | undefined
781
+ /**
782
+ * Your unique identifier for the reservation.
783
+ */
784
+ reservation_key?: string | undefined
785
+ /**
786
+ * Resident key associated with the access grant.
787
+ */
788
+ resident_key?: string | undefined
789
+ /**
790
+ * Room keys associated with the access grant.
791
+ */
792
+ room_keys?: Array<string> | undefined
793
+ /**
794
+ * Space keys associated with the access grant.
795
+ */
796
+ space_keys?: Array<string> | undefined
797
+ /**
798
+ * Starting date and time for the access grant.
799
+ */
800
+ starts_at?: string | undefined
801
+ /**
802
+ * Tenant key associated with the access grant.
803
+ */
804
+ tenant_key?: string | undefined
805
+ /**
806
+ * Unit keys associated with the access grant.
807
+ */
808
+ unit_keys?: Array<string> | undefined
809
+ /**
810
+ * User identity key associated with the access grant.
811
+ */
812
+ user_identity_key?: string | undefined
813
+ /**
814
+ * User key associated with the access grant.
815
+ */
816
+ user_key?: string | undefined
817
+ }>
818
+ | undefined
819
+ /**
820
+ * List of residents.
821
+ */
822
+ residents?:
823
+ | Array<{
824
+ /**
825
+ * Email address associated with the user identity.
826
+ */
827
+ email_address?: string | undefined
828
+ /**
829
+ * Your display name for this user identity resource.
830
+ */
831
+ name?: string | undefined
832
+ /**
833
+ * Phone number associated with the user identity.
834
+ */
835
+ phone_number?: string | undefined
836
+ /**
837
+ * Your unique identifier for the resident.
838
+ */
839
+ resident_key?: string | undefined
840
+ }>
841
+ | undefined
842
+ /**
843
+ * List of hotel or hospitality rooms.
844
+ */
845
+ rooms?:
846
+ | Array<{
847
+ /**
848
+ * Your display name for this location resource.
849
+ */
850
+ name?: string | undefined
851
+ /**
852
+ * Your unique identifier for the site.
853
+ */
854
+ parent_site_key?: string | undefined
855
+ /**
856
+ * Your unique identifier for the room.
857
+ */
858
+ room_key?: string | undefined
859
+ }>
860
+ | undefined
861
+ /**
862
+ * List of general sites or areas.
863
+ */
864
+ sites?:
865
+ | Array<{
866
+ /**
867
+ * Your display name for this location resource.
868
+ */
869
+ name?: string | undefined
870
+ /**
871
+ * Your unique identifier for the site.
872
+ */
873
+ site_key?: string | undefined
874
+ }>
875
+ | undefined
876
+ /**
877
+ * List of general spaces or areas.
878
+ */
879
+ spaces?:
880
+ | Array<{
881
+ /**
882
+ * Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).
883
+ */
884
+ customer_data?:
885
+ | {
886
+ /**
887
+ * Postal address for the space.
888
+ */
889
+ address?: string | undefined
890
+ /**
891
+ * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.
892
+ */
893
+ default_checkin_time?: string | undefined
894
+ /**
895
+ * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.
896
+ */
897
+ default_checkout_time?: string | undefined
898
+ /**
899
+ * IANA time zone for the space, e.g. America/Los_Angeles.
900
+ */
901
+ time_zone?: string | undefined
902
+ }
903
+ | undefined
904
+ /**
905
+ * Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.
906
+ */
907
+ duration_minutes?: number | undefined
908
+ /**
909
+ * Geographic coordinates (latitude and longitude) of the space.
910
+ */
911
+ geolocation?:
912
+ | {
913
+ /**
914
+ * Latitude of the space, in decimal degrees.
915
+ */
916
+ latitude?: number | undefined
917
+ /**
918
+ * Longitude of the space, in decimal degrees.
919
+ */
920
+ longitude?: number | undefined
921
+ }
922
+ | undefined
923
+ /**
924
+ * Your display name for this location resource.
925
+ */
926
+ name?: string | undefined
927
+ /**
928
+ * Your unique identifier for the site.
929
+ */
930
+ parent_site_key?: string | undefined
931
+ /**
932
+ * Your unique identifier for the space.
933
+ */
934
+ space_key?: string | undefined
935
+ }>
936
+ | undefined
937
+ /**
938
+ * List of staff members.
939
+ */
940
+ staff_members?:
941
+ | Array<{
942
+ /**
943
+ * List of unique identifiers for the buildings the staff member is associated with.
944
+ */
945
+ building_keys?: Array<string> | undefined
946
+ /**
947
+ * List of unique identifiers for the common areas the staff member is associated with.
948
+ */
949
+ common_area_keys?: Array<string> | undefined
950
+ /**
951
+ * Email address associated with the user identity.
952
+ */
953
+ email_address?: string | undefined
954
+ /**
955
+ * List of unique identifiers for the facilities the staff member is associated with.
956
+ */
957
+ facility_keys?: Array<string> | undefined
958
+ /**
959
+ * List of unique identifiers for the listings the staff member is associated with.
960
+ */
961
+ listing_keys?: Array<string> | undefined
962
+ /**
963
+ * Your display name for this user identity resource.
964
+ */
965
+ name?: string | undefined
966
+ /**
967
+ * Phone number associated with the user identity.
968
+ */
969
+ phone_number?: string | undefined
970
+ /**
971
+ * List of unique identifiers for the properties the staff member is associated with.
972
+ */
973
+ property_keys?: Array<string> | undefined
974
+ /**
975
+ * List of unique identifiers for the property listings the staff member is associated with.
976
+ */
977
+ property_listing_keys?: Array<string> | undefined
978
+ /**
979
+ * List of unique identifiers for the rooms the staff member is associated with.
980
+ */
981
+ room_keys?: Array<string> | undefined
982
+ /**
983
+ * List of unique identifiers for the sites the staff member is associated with.
984
+ */
985
+ site_keys?: Array<string> | undefined
986
+ /**
987
+ * List of unique identifiers for the spaces the staff member is associated with.
988
+ */
989
+ space_keys?: Array<string> | undefined
990
+ /**
991
+ * Your unique identifier for the staff.
992
+ */
993
+ staff_member_key?: string | undefined
994
+ /**
995
+ * List of unique identifiers for the units the staff member is associated with.
996
+ */
997
+ unit_keys?: Array<string> | undefined
998
+ }>
999
+ | undefined
1000
+ /**
1001
+ * List of tenants.
1002
+ */
1003
+ tenants?:
1004
+ | Array<{
1005
+ /**
1006
+ * Email address associated with the user identity.
1007
+ */
1008
+ email_address?: string | undefined
1009
+ /**
1010
+ * Your display name for this user identity resource.
1011
+ */
1012
+ name?: string | undefined
1013
+ /**
1014
+ * Phone number associated with the user identity.
1015
+ */
1016
+ phone_number?: string | undefined
1017
+ /**
1018
+ * Your unique identifier for the tenant.
1019
+ */
1020
+ tenant_key?: string | undefined
1021
+ }>
1022
+ | undefined
1023
+ /**
1024
+ * List of multi-family residential units.
1025
+ */
1026
+ units?:
1027
+ | Array<{
1028
+ /**
1029
+ * Your display name for this location resource.
1030
+ */
1031
+ name?: string | undefined
1032
+ /**
1033
+ * Your unique identifier for the site.
1034
+ */
1035
+ parent_site_key?: string | undefined
1036
+ /**
1037
+ * Your unique identifier for the unit.
1038
+ */
1039
+ unit_key?: string | undefined
1040
+ }>
1041
+ | undefined
1042
+ /**
1043
+ * List of user identities.
1044
+ */
1045
+ user_identities?:
1046
+ | Array<{
1047
+ /**
1048
+ * Email address associated with the user identity.
1049
+ */
1050
+ email_address?: string | undefined
1051
+ /**
1052
+ * Your display name for this user identity resource.
1053
+ */
1054
+ name?: string | undefined
1055
+ /**
1056
+ * Phone number associated with the user identity.
1057
+ */
1058
+ phone_number?: string | undefined
1059
+ /**
1060
+ * Your unique identifier for the user identity.
1061
+ */
1062
+ user_identity_key?: string | undefined
1063
+ }>
1064
+ | undefined
1065
+ /**
1066
+ * List of users.
1067
+ */
1068
+ users?:
1069
+ | Array<{
1070
+ /**
1071
+ * Email address associated with the user identity.
1072
+ */
1073
+ email_address?: string | undefined
1074
+ /**
1075
+ * Your display name for this user identity resource.
1076
+ */
1077
+ name?: string | undefined
1078
+ /**
1079
+ * Phone number associated with the user identity.
1080
+ */
1081
+ phone_number?: string | undefined
1082
+ /**
1083
+ * Your unique identifier for the user.
1084
+ */
1085
+ user_key?: string | undefined
1086
+ }>
1087
+ | undefined
1088
+ }
1089
+ | undefined
1090
+ }
1091
+
1092
+ /**
1093
+ * @deprecated Use CustomersCreatePortalRequest instead.
1094
+ */
1095
+ export type CustomersCreatePortalResponse = { customer_portal: CustomerPortal }
1096
+
1097
+ export type CustomersCreatePortalRequest = SeamHttpRequest<
1098
+ CustomersCreatePortalResponse,
1099
+ 'customer_portal'
1100
+ >
1101
+
1102
+ export interface CustomersCreatePortalOptions {}
1103
+
1104
+ export type CustomersDeleteDataParameters = {
1105
+ /**
1106
+ * List of access grant keys to delete.
1107
+ */
1108
+ access_grant_keys?: Array<string> | undefined
1109
+ /**
1110
+ * List of booking keys to delete.
1111
+ */
1112
+ booking_keys?: Array<string> | undefined
1113
+ /**
1114
+ * List of building keys to delete.
1115
+ */
1116
+ building_keys?: Array<string> | undefined
1117
+ /**
1118
+ * List of common area keys to delete.
1119
+ */
1120
+ common_area_keys?: Array<string> | undefined
1121
+ /**
1122
+ * List of customer keys to delete all data for.
1123
+ */
1124
+ customer_keys?: Array<string> | undefined
1125
+ /**
1126
+ * List of facility keys to delete.
1127
+ */
1128
+ facility_keys?: Array<string> | undefined
1129
+ /**
1130
+ * List of guest keys to delete.
1131
+ */
1132
+ guest_keys?: Array<string> | undefined
1133
+ /**
1134
+ * List of listing keys to delete.
1135
+ */
1136
+ listing_keys?: Array<string> | undefined
1137
+ /**
1138
+ * List of property keys to delete.
1139
+ */
1140
+ property_keys?: Array<string> | undefined
1141
+ /**
1142
+ * List of property listing keys to delete.
1143
+ */
1144
+ property_listing_keys?: Array<string> | undefined
1145
+ /**
1146
+ * List of reservation keys to delete.
1147
+ */
1148
+ reservation_keys?: Array<string> | undefined
1149
+ /**
1150
+ * List of resident keys to delete.
1151
+ */
1152
+ resident_keys?: Array<string> | undefined
1153
+ /**
1154
+ * List of room keys to delete.
1155
+ */
1156
+ room_keys?: Array<string> | undefined
1157
+ /**
1158
+ * List of space keys to delete.
1159
+ */
1160
+ space_keys?: Array<string> | undefined
1161
+ /**
1162
+ * List of staff member keys to delete.
1163
+ */
1164
+ staff_member_keys?: Array<string> | undefined
1165
+ /**
1166
+ * List of tenant keys to delete.
1167
+ */
1168
+ tenant_keys?: Array<string> | undefined
1169
+ /**
1170
+ * List of unit keys to delete.
1171
+ */
1172
+ unit_keys?: Array<string> | undefined
1173
+ /**
1174
+ * List of user identity keys to delete.
1175
+ */
1176
+ user_identity_keys?: Array<string> | undefined
1177
+ /**
1178
+ * List of user keys to delete.
1179
+ */
1180
+ user_keys?: Array<string> | undefined
1181
+ }
1182
+
1183
+ /**
1184
+ * @deprecated Use CustomersDeleteDataRequest instead.
1185
+ */
1186
+ export type CustomersDeleteDataResponse = void
1187
+
1188
+ export type CustomersDeleteDataRequest = SeamHttpRequest<void, undefined>
1189
+
1190
+ export interface CustomersDeleteDataOptions {}
1191
+
1192
+ export type CustomersPushDataParameters = {
1193
+ /**
1194
+ * List of access grants.
1195
+ */
1196
+ access_grants?:
1197
+ | Array<{
1198
+ /**
1199
+ * Your unique identifier for the access grant.
1200
+ */
1201
+ access_grant_key?: string | undefined
1202
+ /**
1203
+ * Building keys associated with the access grant.
1204
+ */
1205
+ building_keys?: Array<string> | undefined
1206
+ /**
1207
+ * Common area keys associated with the access grant.
1208
+ */
1209
+ common_area_keys?: Array<string> | undefined
1210
+ /**
1211
+ * Ending date and time for the access grant.
1212
+ */
1213
+ ends_at?: string | undefined
1214
+ /**
1215
+ * Facility keys associated with the access grant.
1216
+ */
1217
+ facility_keys?: Array<string> | undefined
1218
+ /**
1219
+ * Guest key associated with the access grant.
1220
+ */
1221
+ guest_key?: string | undefined
1222
+ /**
1223
+ * Listing keys associated with the access grant.
1224
+ */
1225
+ listing_keys?: Array<string> | undefined
1226
+ /**
1227
+ * Your name for this access grant resource.
1228
+ */
1229
+ name?: string | undefined
1230
+ /**
1231
+ * Preferred PIN code to use when creating access for this reservation.
1232
+ */
1233
+ preferred_code?: string | undefined
1234
+ /**
1235
+ * Property keys associated with the access grant.
1236
+ */
1237
+ property_keys?: Array<string> | undefined
1238
+ /**
1239
+ * Resident key associated with the access grant.
1240
+ */
1241
+ resident_key?: string | undefined
1242
+ /**
1243
+ * Room keys associated with the access grant.
1244
+ */
1245
+ room_keys?: Array<string> | undefined
1246
+ /**
1247
+ * Space keys associated with the access grant.
1248
+ */
1249
+ space_keys?: Array<string> | undefined
1250
+ /**
1251
+ * Starting date and time for the access grant.
1252
+ */
1253
+ starts_at?: string | undefined
1254
+ /**
1255
+ * Tenant key associated with the access grant.
1256
+ */
1257
+ tenant_key?: string | undefined
1258
+ /**
1259
+ * Unit keys associated with the access grant.
1260
+ */
1261
+ unit_keys?: Array<string> | undefined
1262
+ /**
1263
+ * User identity key associated with the access grant.
1264
+ */
1265
+ user_identity_key?: string | undefined
1266
+ /**
1267
+ * User key associated with the access grant.
1268
+ */
1269
+ user_key?: string | undefined
1270
+ }>
1271
+ | undefined
1272
+ /**
1273
+ * List of bookings.
1274
+ */
1275
+ bookings?:
1276
+ | Array<{
1277
+ /**
1278
+ * Your unique identifier for the booking.
1279
+ */
1280
+ booking_key?: string | undefined
1281
+ /**
1282
+ * Building keys associated with the access grant.
1283
+ */
1284
+ building_keys?: Array<string> | undefined
1285
+ /**
1286
+ * Common area keys associated with the access grant.
1287
+ */
1288
+ common_area_keys?: Array<string> | undefined
1289
+ /**
1290
+ * Ending date and time for the access grant.
1291
+ */
1292
+ ends_at?: string | undefined
1293
+ /**
1294
+ * Facility keys associated with the access grant.
1295
+ */
1296
+ facility_keys?: Array<string> | undefined
1297
+ /**
1298
+ * Guest key associated with the access grant.
1299
+ */
1300
+ guest_key?: string | undefined
1301
+ /**
1302
+ * Listing keys associated with the access grant.
1303
+ */
1304
+ listing_keys?: Array<string> | undefined
1305
+ /**
1306
+ * Your name for this access grant resource.
1307
+ */
1308
+ name?: string | undefined
1309
+ /**
1310
+ * Preferred PIN code to use when creating access for this reservation.
1311
+ */
1312
+ preferred_code?: string | undefined
1313
+ /**
1314
+ * Property keys associated with the access grant.
1315
+ */
1316
+ property_keys?: Array<string> | undefined
1317
+ /**
1318
+ * Resident key associated with the access grant.
1319
+ */
1320
+ resident_key?: string | undefined
1321
+ /**
1322
+ * Room keys associated with the access grant.
1323
+ */
1324
+ room_keys?: Array<string> | undefined
1325
+ /**
1326
+ * Space keys associated with the access grant.
1327
+ */
1328
+ space_keys?: Array<string> | undefined
1329
+ /**
1330
+ * Starting date and time for the access grant.
1331
+ */
1332
+ starts_at?: string | undefined
1333
+ /**
1334
+ * Tenant key associated with the access grant.
1335
+ */
1336
+ tenant_key?: string | undefined
1337
+ /**
1338
+ * Unit keys associated with the access grant.
1339
+ */
1340
+ unit_keys?: Array<string> | undefined
1341
+ /**
1342
+ * User identity key associated with the access grant.
1343
+ */
1344
+ user_identity_key?: string | undefined
1345
+ /**
1346
+ * User key associated with the access grant.
1347
+ */
1348
+ user_key?: string | undefined
1349
+ }>
1350
+ | undefined
1351
+ /**
1352
+ * List of buildings.
1353
+ */
1354
+ buildings?:
1355
+ | Array<{
1356
+ /**
1357
+ * Your unique identifier for the building.
1358
+ */
1359
+ building_key?: string | undefined
1360
+ /**
1361
+ * Your display name for this location resource.
1362
+ */
1363
+ name?: string | undefined
1364
+ }>
1365
+ | undefined
1366
+ /**
1367
+ * List of shared common areas.
1368
+ */
1369
+ common_areas?:
1370
+ | Array<{
1371
+ /**
1372
+ * Your unique identifier for the common area.
1373
+ */
1374
+ common_area_key?: string | undefined
1375
+ /**
1376
+ * Your display name for this location resource.
1377
+ */
1378
+ name?: string | undefined
1379
+ /**
1380
+ * Your unique identifier for the site.
1381
+ */
1382
+ parent_site_key?: string | undefined
1383
+ }>
1384
+ | undefined
1385
+ /**
1386
+ * Your unique identifier for the customer.
1387
+ */
1388
+ customer_key: string
1389
+
1390
+ /**
1391
+ * List of gym or fitness facilities.
1392
+ */
1393
+ facilities?:
1394
+ | Array<{
1395
+ /**
1396
+ * Your unique identifier for the facility.
1397
+ */
1398
+ facility_key?: string | undefined
1399
+ /**
1400
+ * Your display name for this location resource.
1401
+ */
1402
+ name?: string | undefined
1403
+ }>
1404
+ | undefined
1405
+ /**
1406
+ * List of guests.
1407
+ */
1408
+ guests?:
1409
+ | Array<{
1410
+ /**
1411
+ * Email address associated with the user identity.
1412
+ */
1413
+ email_address?: string | undefined
1414
+ /**
1415
+ * Your unique identifier for the guest.
1416
+ */
1417
+ guest_key?: string | undefined
1418
+ /**
1419
+ * Your display name for this user identity resource.
1420
+ */
1421
+ name?: string | undefined
1422
+ /**
1423
+ * Phone number associated with the user identity.
1424
+ */
1425
+ phone_number?: string | undefined
1426
+ }>
1427
+ | undefined
1428
+ /**
1429
+ * List of property listings.
1430
+ */
1431
+ listings?:
1432
+ | Array<{
1433
+ /**
1434
+ * Your unique identifier for the listing.
1435
+ */
1436
+ listing_key?: string | undefined
1437
+ /**
1438
+ * Your display name for this location resource.
1439
+ */
1440
+ name?: string | undefined
1441
+ }>
1442
+ | undefined
1443
+ /**
1444
+ * List of short-term rental properties.
1445
+ */
1446
+ properties?:
1447
+ | Array<{
1448
+ /**
1449
+ * Your display name for this location resource.
1450
+ */
1451
+ name?: string | undefined
1452
+ /**
1453
+ * Your unique identifier for the property.
1454
+ */
1455
+ property_key?: string | undefined
1456
+ }>
1457
+ | undefined
1458
+ /**
1459
+ * List of property listings.
1460
+ */
1461
+ property_listings?:
1462
+ | Array<{
1463
+ /**
1464
+ * Set key:value pairs. Accepts string or Boolean values. Adding custom metadata to a property listing enables you to store custom information, like customer details or internal IDs from your application.
1465
+ */
1466
+ custom_metadata?: Record<string, unknown> | undefined
1467
+ /**
1468
+ * Your display name for this location resource.
1469
+ */
1470
+ name?: string | undefined
1471
+ /**
1472
+ * Your unique identifier for the property listing.
1473
+ */
1474
+ property_listing_key?: string | undefined
1475
+ }>
1476
+ | undefined
1477
+ /**
1478
+ * List of reservations.
1479
+ */
1480
+ reservations?:
1481
+ | Array<{
1482
+ /**
1483
+ * Building keys associated with the access grant.
1484
+ */
1485
+ building_keys?: Array<string> | undefined
1486
+ /**
1487
+ * Common area keys associated with the access grant.
1488
+ */
1489
+ common_area_keys?: Array<string> | undefined
1490
+ /**
1491
+ * Set key:value pairs for filtering reservations by custom criteria.
1492
+ */
1493
+ custom_metadata?: Record<string, unknown> | undefined
1494
+ /**
1495
+ * Ending date and time for the access grant.
1496
+ */
1497
+ ends_at?: string | undefined
1498
+ /**
1499
+ * Facility keys associated with the access grant.
1500
+ */
1501
+ facility_keys?: Array<string> | undefined
1502
+ /**
1503
+ * Guest key associated with the access grant.
1504
+ */
1505
+ guest_key?: string | undefined
1506
+ /**
1507
+ * Listing keys associated with the access grant.
1508
+ */
1509
+ listing_keys?: Array<string> | undefined
1510
+ /**
1511
+ * Your name for this access grant resource.
1512
+ */
1513
+ name?: string | undefined
1514
+ /**
1515
+ * Preferred PIN code to use when creating access for this reservation.
1516
+ */
1517
+ preferred_code?: string | undefined
1518
+ /**
1519
+ * Property keys associated with the access grant.
1520
+ */
1521
+ property_keys?: Array<string> | undefined
1522
+ /**
1523
+ * Your unique identifier for the reservation.
1524
+ */
1525
+ reservation_key?: string | undefined
1526
+ /**
1527
+ * Resident key associated with the access grant.
1528
+ */
1529
+ resident_key?: string | undefined
1530
+ /**
1531
+ * Room keys associated with the access grant.
1532
+ */
1533
+ room_keys?: Array<string> | undefined
1534
+ /**
1535
+ * Space keys associated with the access grant.
1536
+ */
1537
+ space_keys?: Array<string> | undefined
1538
+ /**
1539
+ * Starting date and time for the access grant.
1540
+ */
1541
+ starts_at?: string | undefined
1542
+ /**
1543
+ * Tenant key associated with the access grant.
1544
+ */
1545
+ tenant_key?: string | undefined
1546
+ /**
1547
+ * Unit keys associated with the access grant.
1548
+ */
1549
+ unit_keys?: Array<string> | undefined
1550
+ /**
1551
+ * User identity key associated with the access grant.
1552
+ */
1553
+ user_identity_key?: string | undefined
1554
+ /**
1555
+ * User key associated with the access grant.
1556
+ */
1557
+ user_key?: string | undefined
1558
+ }>
1559
+ | undefined
1560
+ /**
1561
+ * List of residents.
1562
+ */
1563
+ residents?:
1564
+ | Array<{
1565
+ /**
1566
+ * Email address associated with the user identity.
1567
+ */
1568
+ email_address?: string | undefined
1569
+ /**
1570
+ * Your display name for this user identity resource.
1571
+ */
1572
+ name?: string | undefined
1573
+ /**
1574
+ * Phone number associated with the user identity.
1575
+ */
1576
+ phone_number?: string | undefined
1577
+ /**
1578
+ * Your unique identifier for the resident.
1579
+ */
1580
+ resident_key?: string | undefined
1581
+ }>
1582
+ | undefined
1583
+ /**
1584
+ * List of hotel or hospitality rooms.
1585
+ */
1586
+ rooms?:
1587
+ | Array<{
1588
+ /**
1589
+ * Your display name for this location resource.
1590
+ */
1591
+ name?: string | undefined
1592
+ /**
1593
+ * Your unique identifier for the site.
1594
+ */
1595
+ parent_site_key?: string | undefined
1596
+ /**
1597
+ * Your unique identifier for the room.
1598
+ */
1599
+ room_key?: string | undefined
1600
+ }>
1601
+ | undefined
1602
+ /**
1603
+ * List of general sites or areas.
1604
+ */
1605
+ sites?:
1606
+ | Array<{
1607
+ /**
1608
+ * Your display name for this location resource.
1609
+ */
1610
+ name?: string | undefined
1611
+ /**
1612
+ * Your unique identifier for the site.
1613
+ */
1614
+ site_key?: string | undefined
1615
+ }>
1616
+ | undefined
1617
+ /**
1618
+ * List of general spaces or areas.
1619
+ */
1620
+ spaces?:
1621
+ | Array<{
1622
+ /**
1623
+ * Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).
1624
+ */
1625
+ customer_data?:
1626
+ | {
1627
+ /**
1628
+ * Postal address for the space.
1629
+ */
1630
+ address?: string | undefined
1631
+ /**
1632
+ * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.
1633
+ */
1634
+ default_checkin_time?: string | undefined
1635
+ /**
1636
+ * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.
1637
+ */
1638
+ default_checkout_time?: string | undefined
1639
+ /**
1640
+ * IANA time zone for the space, e.g. America/Los_Angeles.
1641
+ */
1642
+ time_zone?: string | undefined
1643
+ }
1644
+ | undefined
1645
+ /**
1646
+ * Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.
1647
+ */
1648
+ duration_minutes?: number | undefined
1649
+ /**
1650
+ * Geographic coordinates (latitude and longitude) of the space.
1651
+ */
1652
+ geolocation?:
1653
+ | {
1654
+ /**
1655
+ * Latitude of the space, in decimal degrees.
1656
+ */
1657
+ latitude?: number | undefined
1658
+ /**
1659
+ * Longitude of the space, in decimal degrees.
1660
+ */
1661
+ longitude?: number | undefined
1662
+ }
1663
+ | undefined
1664
+ /**
1665
+ * Your display name for this location resource.
1666
+ */
1667
+ name?: string | undefined
1668
+ /**
1669
+ * Your unique identifier for the site.
1670
+ */
1671
+ parent_site_key?: string | undefined
1672
+ /**
1673
+ * Your unique identifier for the space.
1674
+ */
1675
+ space_key?: string | undefined
1676
+ }>
1677
+ | undefined
1678
+ /**
1679
+ * List of staff members.
1680
+ */
1681
+ staff_members?:
1682
+ | Array<{
1683
+ /**
1684
+ * List of unique identifiers for the buildings the staff member is associated with.
1685
+ */
1686
+ building_keys?: Array<string> | undefined
1687
+ /**
1688
+ * List of unique identifiers for the common areas the staff member is associated with.
1689
+ */
1690
+ common_area_keys?: Array<string> | undefined
1691
+ /**
1692
+ * Email address associated with the user identity.
1693
+ */
1694
+ email_address?: string | undefined
1695
+ /**
1696
+ * List of unique identifiers for the facilities the staff member is associated with.
1697
+ */
1698
+ facility_keys?: Array<string> | undefined
1699
+ /**
1700
+ * List of unique identifiers for the listings the staff member is associated with.
1701
+ */
1702
+ listing_keys?: Array<string> | undefined
1703
+ /**
1704
+ * Your display name for this user identity resource.
1705
+ */
1706
+ name?: string | undefined
1707
+ /**
1708
+ * Phone number associated with the user identity.
1709
+ */
1710
+ phone_number?: string | undefined
1711
+ /**
1712
+ * List of unique identifiers for the properties the staff member is associated with.
1713
+ */
1714
+ property_keys?: Array<string> | undefined
1715
+ /**
1716
+ * List of unique identifiers for the property listings the staff member is associated with.
1717
+ */
1718
+ property_listing_keys?: Array<string> | undefined
1719
+ /**
1720
+ * List of unique identifiers for the rooms the staff member is associated with.
1721
+ */
1722
+ room_keys?: Array<string> | undefined
1723
+ /**
1724
+ * List of unique identifiers for the sites the staff member is associated with.
1725
+ */
1726
+ site_keys?: Array<string> | undefined
1727
+ /**
1728
+ * List of unique identifiers for the spaces the staff member is associated with.
1729
+ */
1730
+ space_keys?: Array<string> | undefined
1731
+ /**
1732
+ * Your unique identifier for the staff.
1733
+ */
1734
+ staff_member_key?: string | undefined
1735
+ /**
1736
+ * List of unique identifiers for the units the staff member is associated with.
1737
+ */
1738
+ unit_keys?: Array<string> | undefined
1739
+ }>
1740
+ | undefined
1741
+ /**
1742
+ * List of tenants.
1743
+ */
1744
+ tenants?:
1745
+ | Array<{
1746
+ /**
1747
+ * Email address associated with the user identity.
1748
+ */
1749
+ email_address?: string | undefined
1750
+ /**
1751
+ * Your display name for this user identity resource.
1752
+ */
1753
+ name?: string | undefined
1754
+ /**
1755
+ * Phone number associated with the user identity.
1756
+ */
1757
+ phone_number?: string | undefined
1758
+ /**
1759
+ * Your unique identifier for the tenant.
1760
+ */
1761
+ tenant_key?: string | undefined
1762
+ }>
1763
+ | undefined
1764
+ /**
1765
+ * List of multi-family residential units.
1766
+ */
1767
+ units?:
1768
+ | Array<{
1769
+ /**
1770
+ * Your display name for this location resource.
1771
+ */
1772
+ name?: string | undefined
1773
+ /**
1774
+ * Your unique identifier for the site.
1775
+ */
1776
+ parent_site_key?: string | undefined
1777
+ /**
1778
+ * Your unique identifier for the unit.
1779
+ */
1780
+ unit_key?: string | undefined
1781
+ }>
1782
+ | undefined
1783
+ /**
1784
+ * List of user identities.
1785
+ */
1786
+ user_identities?:
1787
+ | Array<{
1788
+ /**
1789
+ * Email address associated with the user identity.
1790
+ */
1791
+ email_address?: string | undefined
1792
+ /**
1793
+ * Your display name for this user identity resource.
1794
+ */
1795
+ name?: string | undefined
1796
+ /**
1797
+ * Phone number associated with the user identity.
1798
+ */
1799
+ phone_number?: string | undefined
1800
+ /**
1801
+ * Your unique identifier for the user identity.
1802
+ */
1803
+ user_identity_key?: string | undefined
1804
+ }>
1805
+ | undefined
1806
+ /**
1807
+ * List of users.
1808
+ */
1809
+ users?:
1810
+ | Array<{
1811
+ /**
1812
+ * Email address associated with the user identity.
1813
+ */
1814
+ email_address?: string | undefined
1815
+ /**
1816
+ * Your display name for this user identity resource.
1817
+ */
1818
+ name?: string | undefined
1819
+ /**
1820
+ * Phone number associated with the user identity.
1821
+ */
1822
+ phone_number?: string | undefined
1823
+ /**
1824
+ * Your unique identifier for the user.
1825
+ */
1826
+ user_key?: string | undefined
1827
+ }>
1828
+ | undefined
1829
+ }
1830
+
1831
+ /**
1832
+ * @deprecated Use CustomersPushDataRequest instead.
1833
+ */
1834
+ export type CustomersPushDataResponse = void
1835
+
1836
+ export type CustomersPushDataRequest = SeamHttpRequest<void, undefined>
1837
+
1838
+ export interface CustomersPushDataOptions {}