@kohost/api-client 7.0.0 → 7.1.1

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 (923) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +13 -0
  2. package/dist/commands/command.d.ts +1 -3
  3. package/dist/commands/command.js +23 -30
  4. package/dist/commands/command.js.map +1 -1
  5. package/dist/commands/createImageUploadEndpoint.d.ts +2 -5
  6. package/dist/commands/createImageUploadEndpoint.js +15 -15
  7. package/dist/commands/createImageUploadEndpoint.js.map +1 -1
  8. package/dist/commands/createShortLink.d.ts +2 -5
  9. package/dist/commands/createShortLink.js +15 -15
  10. package/dist/commands/createShortLink.js.map +1 -1
  11. package/dist/commands/getCategories.d.ts +2 -5
  12. package/dist/commands/getCategories.js +14 -15
  13. package/dist/commands/getCategories.js.map +1 -1
  14. package/dist/commands/getMobileKey.d.ts +2 -5
  15. package/dist/commands/getMobileKey.js +18 -22
  16. package/dist/commands/getMobileKey.js.map +1 -1
  17. package/dist/commands/getProducts.d.ts +2 -5
  18. package/dist/commands/getProducts.js +15 -15
  19. package/dist/commands/getProducts.js.map +1 -1
  20. package/dist/commands/getRooms.d.ts +2 -5
  21. package/dist/commands/getRooms.js +20 -33
  22. package/dist/commands/getRooms.js.map +1 -1
  23. package/dist/commands/getUsers.d.ts +2 -5
  24. package/dist/commands/getUsers.js +14 -15
  25. package/dist/commands/getUsers.js.map +1 -1
  26. package/dist/commands/index.d.ts +22 -22
  27. package/dist/commands/index.js +51 -22
  28. package/dist/commands/index.js.map +1 -1
  29. package/dist/commands/ocrDocument.d.ts +2 -5
  30. package/dist/commands/ocrDocument.js +15 -15
  31. package/dist/commands/ocrDocument.js.map +1 -1
  32. package/dist/commands/sendEmail.d.ts +2 -5
  33. package/dist/commands/sendEmail.js +18 -15
  34. package/dist/commands/sendEmail.js.map +1 -1
  35. package/dist/commands/sendSMS.d.ts +2 -5
  36. package/dist/commands/sendSMS.js +18 -15
  37. package/dist/commands/sendSMS.js.map +1 -1
  38. package/dist/commands/setAlarm.d.ts +2 -5
  39. package/dist/commands/setAlarm.js +17 -15
  40. package/dist/commands/setAlarm.js.map +1 -1
  41. package/dist/commands/setCourtesy.d.ts +2 -5
  42. package/dist/commands/setCourtesy.js +15 -15
  43. package/dist/commands/setCourtesy.js.map +1 -1
  44. package/dist/commands/setDimmer.d.ts +2 -5
  45. package/dist/commands/setDimmer.js +15 -15
  46. package/dist/commands/setDimmer.js.map +1 -1
  47. package/dist/commands/setLock.d.ts +2 -5
  48. package/dist/commands/setLock.js +15 -15
  49. package/dist/commands/setLock.js.map +1 -1
  50. package/dist/commands/setMedia.d.ts +2 -5
  51. package/dist/commands/setMedia.js +15 -15
  52. package/dist/commands/setMedia.js.map +1 -1
  53. package/dist/commands/setScene.d.ts +2 -5
  54. package/dist/commands/setScene.js +15 -15
  55. package/dist/commands/setScene.js.map +1 -1
  56. package/dist/commands/setSwitch.d.ts +2 -5
  57. package/dist/commands/setSwitch.js +15 -15
  58. package/dist/commands/setSwitch.js.map +1 -1
  59. package/dist/commands/setThermostat.d.ts +2 -5
  60. package/dist/commands/setThermostat.js +17 -15
  61. package/dist/commands/setThermostat.js.map +1 -1
  62. package/dist/commands/setWindowCovering.d.ts +2 -5
  63. package/dist/commands/setWindowCovering.js +15 -15
  64. package/dist/commands/setWindowCovering.js.map +1 -1
  65. package/dist/commands/updateUser.d.ts +2 -5
  66. package/dist/commands/updateUser.js +22 -37
  67. package/dist/commands/updateUser.js.map +1 -1
  68. package/dist/commands/uploadImage.d.ts +2 -5
  69. package/dist/commands/uploadImage.js +16 -15
  70. package/dist/commands/uploadImage.js.map +1 -1
  71. package/dist/errors/appError.d.ts +1 -3
  72. package/dist/errors/appError.js +12 -16
  73. package/dist/errors/appError.js.map +1 -1
  74. package/dist/errors/authenticationError.d.ts +2 -5
  75. package/dist/errors/authenticationError.js +11 -15
  76. package/dist/errors/authenticationError.js.map +1 -1
  77. package/dist/errors/authorizationError.d.ts +2 -5
  78. package/dist/errors/authorizationError.js +11 -15
  79. package/dist/errors/authorizationError.js.map +1 -1
  80. package/dist/errors/conflictError.d.ts +2 -5
  81. package/dist/errors/conflictError.js +11 -15
  82. package/dist/errors/conflictError.js.map +1 -1
  83. package/dist/errors/deviceCommError.d.ts +2 -5
  84. package/dist/errors/deviceCommError.js +11 -15
  85. package/dist/errors/deviceCommError.js.map +1 -1
  86. package/dist/errors/index.d.ts +12 -12
  87. package/dist/errors/index.js +31 -12
  88. package/dist/errors/index.js.map +1 -1
  89. package/dist/errors/loginError.d.ts +2 -5
  90. package/dist/errors/loginError.js +11 -15
  91. package/dist/errors/loginError.js.map +1 -1
  92. package/dist/errors/notFoundError.d.ts +2 -5
  93. package/dist/errors/notFoundError.js +11 -15
  94. package/dist/errors/notFoundError.js.map +1 -1
  95. package/dist/errors/requestError.d.ts +2 -5
  96. package/dist/errors/requestError.js +11 -15
  97. package/dist/errors/requestError.js.map +1 -1
  98. package/dist/errors/systemCommError.d.ts +2 -5
  99. package/dist/errors/systemCommError.js +11 -15
  100. package/dist/errors/systemCommError.js.map +1 -1
  101. package/dist/errors/tokenExpiredError.d.ts +2 -5
  102. package/dist/errors/tokenExpiredError.js +11 -15
  103. package/dist/errors/tokenExpiredError.js.map +1 -1
  104. package/dist/errors/unprocessableRequestError.d.ts +2 -5
  105. package/dist/errors/unprocessableRequestError.js +11 -15
  106. package/dist/errors/unprocessableRequestError.js.map +1 -1
  107. package/dist/errors/validationError.d.ts +2 -5
  108. package/dist/errors/validationError.js +11 -15
  109. package/dist/errors/validationError.js.map +1 -1
  110. package/dist/events/applicationInUse.d.ts +2 -5
  111. package/dist/events/applicationInUse.js +17 -16
  112. package/dist/events/applicationInUse.js.map +1 -1
  113. package/dist/events/applicationOutOfUse.d.ts +2 -5
  114. package/dist/events/applicationOutOfUse.js +17 -16
  115. package/dist/events/applicationOutOfUse.js.map +1 -1
  116. package/dist/events/emailEvent.d.ts +2 -5
  117. package/dist/events/emailEvent.js +14 -13
  118. package/dist/events/emailEvent.js.map +1 -1
  119. package/dist/events/event.d.ts +1 -17
  120. package/dist/events/event.js +34 -39
  121. package/dist/events/event.js.map +1 -1
  122. package/dist/events/index.d.ts +23 -23
  123. package/dist/events/index.js +53 -23
  124. package/dist/events/index.js.map +1 -1
  125. package/dist/events/sceneSet.d.ts +2 -5
  126. package/dist/events/sceneSet.js +14 -13
  127. package/dist/events/sceneSet.js.map +1 -1
  128. package/dist/events/shortLinkCreated.d.ts +2 -5
  129. package/dist/events/shortLinkCreated.js +14 -13
  130. package/dist/events/shortLinkCreated.js.map +1 -1
  131. package/dist/events/smsEvent.d.ts +2 -5
  132. package/dist/events/smsEvent.js +14 -13
  133. package/dist/events/smsEvent.js.map +1 -1
  134. package/dist/events/systemAlarmUpdated.d.ts +2 -5
  135. package/dist/events/systemAlarmUpdated.js +14 -13
  136. package/dist/events/systemAlarmUpdated.js.map +1 -1
  137. package/dist/events/systemCameraUpdated.d.ts +2 -5
  138. package/dist/events/systemCameraUpdated.js +14 -13
  139. package/dist/events/systemCameraUpdated.js.map +1 -1
  140. package/dist/events/systemCategoryUpdated.d.ts +2 -5
  141. package/dist/events/systemCategoryUpdated.js +14 -13
  142. package/dist/events/systemCategoryUpdated.js.map +1 -1
  143. package/dist/events/systemCourtesyUpdated.d.ts +2 -5
  144. package/dist/events/systemCourtesyUpdated.js +14 -13
  145. package/dist/events/systemCourtesyUpdated.js.map +1 -1
  146. package/dist/events/systemCredentialUpdated.d.ts +2 -5
  147. package/dist/events/systemCredentialUpdated.js +14 -13
  148. package/dist/events/systemCredentialUpdated.js.map +1 -1
  149. package/dist/events/systemDimmerUpdated.d.ts +2 -5
  150. package/dist/events/systemDimmerUpdated.js +14 -13
  151. package/dist/events/systemDimmerUpdated.js.map +1 -1
  152. package/dist/events/systemEntityDeleted.d.ts +2 -5
  153. package/dist/events/systemEntityDeleted.js +14 -13
  154. package/dist/events/systemEntityDeleted.js.map +1 -1
  155. package/dist/events/systemGatewayUpdated.d.ts +2 -5
  156. package/dist/events/systemGatewayUpdated.js +14 -13
  157. package/dist/events/systemGatewayUpdated.js.map +1 -1
  158. package/dist/events/systemLockUpdated.d.ts +2 -5
  159. package/dist/events/systemLockUpdated.js +14 -13
  160. package/dist/events/systemLockUpdated.js.map +1 -1
  161. package/dist/events/systemMediaSourceUpdated.d.ts +2 -5
  162. package/dist/events/systemMediaSourceUpdated.js +14 -13
  163. package/dist/events/systemMediaSourceUpdated.js.map +1 -1
  164. package/dist/events/systemMotionSensorUpdated.d.ts +2 -5
  165. package/dist/events/systemMotionSensorUpdated.js +14 -13
  166. package/dist/events/systemMotionSensorUpdated.js.map +1 -1
  167. package/dist/events/systemSpaceUpdated.d.ts +2 -5
  168. package/dist/events/systemSpaceUpdated.js +14 -13
  169. package/dist/events/systemSpaceUpdated.js.map +1 -1
  170. package/dist/events/systemSwitchUpdated.d.ts +2 -5
  171. package/dist/events/systemSwitchUpdated.js +14 -13
  172. package/dist/events/systemSwitchUpdated.js.map +1 -1
  173. package/dist/events/systemThermostatUpdated.d.ts +2 -5
  174. package/dist/events/systemThermostatUpdated.js +14 -13
  175. package/dist/events/systemThermostatUpdated.js.map +1 -1
  176. package/dist/events/systemUserUpdated.d.ts +2 -5
  177. package/dist/events/systemUserUpdated.js +14 -13
  178. package/dist/events/systemUserUpdated.js.map +1 -1
  179. package/dist/events/systemWindowCoveringUpdated.d.ts +2 -5
  180. package/dist/events/systemWindowCoveringUpdated.js +14 -13
  181. package/dist/events/systemWindowCoveringUpdated.js.map +1 -1
  182. package/dist/httpClient.d.ts +5 -151
  183. package/dist/httpClient.js +172 -205
  184. package/dist/httpClient.js.map +1 -1
  185. package/dist/index.d.ts +7 -305
  186. package/dist/index.js +7 -16
  187. package/dist/lib/deviceNotifications.d.ts +3 -5
  188. package/dist/lib/deviceNotifications.js +30 -30
  189. package/dist/lib/deviceNotifications.js.map +1 -1
  190. package/dist/lib/index.d.ts +3 -3
  191. package/dist/lib/index.js +17 -22
  192. package/dist/lib/index.js.map +1 -1
  193. package/dist/lib/policy-resolvers.d.ts +5 -7
  194. package/dist/lib/policy-resolvers.js +39 -67
  195. package/dist/lib/policy-resolvers.js.map +1 -1
  196. package/dist/lib/systemCategories.d.ts +5 -7
  197. package/dist/lib/systemCategories.js +44 -54
  198. package/dist/lib/systemCategories.js.map +1 -1
  199. package/dist/models/alarm.d.ts +7 -13
  200. package/dist/models/alarm.js +38 -49
  201. package/dist/models/alarm.js.map +1 -1
  202. package/dist/models/announcement.d.ts +7 -13
  203. package/dist/models/announcement.js +26 -36
  204. package/dist/models/announcement.js.map +1 -1
  205. package/dist/models/automation.d.ts +7 -13
  206. package/dist/models/automation.js +28 -38
  207. package/dist/models/automation.js.map +1 -1
  208. package/dist/models/camera.d.ts +7 -13
  209. package/dist/models/camera.js +31 -42
  210. package/dist/models/camera.js.map +1 -1
  211. package/dist/models/category.d.ts +7 -13
  212. package/dist/models/category.js +26 -34
  213. package/dist/models/category.js.map +1 -1
  214. package/dist/models/courtesy.d.ts +7 -13
  215. package/dist/models/courtesy.js +30 -40
  216. package/dist/models/courtesy.js.map +1 -1
  217. package/dist/models/credential.d.ts +7 -13
  218. package/dist/models/credential.js +30 -42
  219. package/dist/models/credential.js.map +1 -1
  220. package/dist/models/department.d.ts +7 -13
  221. package/dist/models/department.js +21 -31
  222. package/dist/models/department.js.map +1 -1
  223. package/dist/models/dimmer.d.ts +7 -13
  224. package/dist/models/dimmer.js +30 -40
  225. package/dist/models/dimmer.js.map +1 -1
  226. package/dist/models/discoveredDevice.d.ts +7 -13
  227. package/dist/models/discoveredDevice.js +26 -37
  228. package/dist/models/discoveredDevice.js.map +1 -1
  229. package/dist/models/emailMessage.d.ts +7 -13
  230. package/dist/models/emailMessage.js +32 -43
  231. package/dist/models/emailMessage.js.map +1 -1
  232. package/dist/models/energyReport.d.ts +7 -13
  233. package/dist/models/energyReport.js +24 -34
  234. package/dist/models/energyReport.js.map +1 -1
  235. package/dist/models/energyReportShard.d.ts +7 -13
  236. package/dist/models/energyReportShard.js +22 -32
  237. package/dist/models/energyReportShard.js.map +1 -1
  238. package/dist/models/entity.d.ts +2 -5
  239. package/dist/models/entity.js +18 -33
  240. package/dist/models/entity.js.map +1 -1
  241. package/dist/models/gateway.d.ts +7 -13
  242. package/dist/models/gateway.js +30 -40
  243. package/dist/models/gateway.js.map +1 -1
  244. package/dist/models/group.d.ts +7 -13
  245. package/dist/models/group.js +23 -31
  246. package/dist/models/group.js.map +1 -1
  247. package/dist/models/identification.d.ts +6 -12
  248. package/dist/models/identification.js +31 -40
  249. package/dist/models/identification.js.map +1 -1
  250. package/dist/models/index.d.ts +46 -95
  251. package/dist/models/index.js +55 -54
  252. package/dist/models/index.js.map +1 -1
  253. package/dist/models/integration.d.ts +7 -14
  254. package/dist/models/integration.js +22 -32
  255. package/dist/models/integration.js.map +1 -1
  256. package/dist/models/issue.d.ts +7 -15
  257. package/dist/models/issue.js +23 -31
  258. package/dist/models/issue.js.map +1 -1
  259. package/dist/models/lock.d.ts +7 -13
  260. package/dist/models/lock.js +33 -44
  261. package/dist/models/lock.js.map +1 -1
  262. package/dist/models/log.d.ts +7 -13
  263. package/dist/models/log.js +25 -33
  264. package/dist/models/log.js.map +1 -1
  265. package/dist/models/mediaFile.d.ts +7 -13
  266. package/dist/models/mediaFile.js +38 -48
  267. package/dist/models/mediaFile.js.map +1 -1
  268. package/dist/models/mediaSource.d.ts +7 -13
  269. package/dist/models/mediaSource.js +49 -66
  270. package/dist/models/mediaSource.js.map +1 -1
  271. package/dist/models/motionSensor.d.ts +7 -13
  272. package/dist/models/motionSensor.js +31 -43
  273. package/dist/models/motionSensor.js.map +1 -1
  274. package/dist/models/notification.d.ts +7 -13
  275. package/dist/models/notification.js +25 -35
  276. package/dist/models/notification.js.map +1 -1
  277. package/dist/models/order.d.ts +7 -13
  278. package/dist/models/order.js +29 -38
  279. package/dist/models/order.js.map +1 -1
  280. package/dist/models/organization.d.ts +7 -13
  281. package/dist/models/organization.js +26 -36
  282. package/dist/models/organization.js.map +1 -1
  283. package/dist/models/payment.d.ts +7 -13
  284. package/dist/models/payment.js +22 -30
  285. package/dist/models/payment.js.map +1 -1
  286. package/dist/models/policy.d.ts +7 -13
  287. package/dist/models/policy.js +25 -33
  288. package/dist/models/policy.js.map +1 -1
  289. package/dist/models/product.d.ts +7 -13
  290. package/dist/models/product.js +28 -36
  291. package/dist/models/product.js.map +1 -1
  292. package/dist/models/property.d.ts +7 -13
  293. package/dist/models/property.js +31 -41
  294. package/dist/models/property.js.map +1 -1
  295. package/dist/models/reservation.d.ts +7 -13
  296. package/dist/models/reservation.js +45 -65
  297. package/dist/models/reservation.js.map +1 -1
  298. package/dist/models/server.d.ts +7 -13
  299. package/dist/models/server.js +36 -48
  300. package/dist/models/server.js.map +1 -1
  301. package/dist/models/session.d.ts +7 -14
  302. package/dist/models/session.js +23 -32
  303. package/dist/models/session.js.map +1 -1
  304. package/dist/models/shortLink.d.ts +7 -13
  305. package/dist/models/shortLink.js +23 -31
  306. package/dist/models/shortLink.js.map +1 -1
  307. package/dist/models/smsMessage.d.ts +7 -13
  308. package/dist/models/smsMessage.js +28 -38
  309. package/dist/models/smsMessage.js.map +1 -1
  310. package/dist/models/space.d.ts +7 -23
  311. package/dist/models/space.js +30 -40
  312. package/dist/models/space.js.map +1 -1
  313. package/dist/models/switch.d.ts +7 -13
  314. package/dist/models/switch.js +32 -43
  315. package/dist/models/switch.js.map +1 -1
  316. package/dist/models/system.d.ts +7 -14
  317. package/dist/models/system.js +28 -38
  318. package/dist/models/system.js.map +1 -1
  319. package/dist/models/systemUser.d.ts +7 -13
  320. package/dist/models/systemUser.js +36 -47
  321. package/dist/models/systemUser.js.map +1 -1
  322. package/dist/models/thermostat.d.ts +7 -13
  323. package/dist/models/thermostat.js +52 -71
  324. package/dist/models/thermostat.js.map +1 -1
  325. package/dist/models/ticket.d.ts +7 -14
  326. package/dist/models/ticket.js +41 -50
  327. package/dist/models/ticket.js.map +1 -1
  328. package/dist/models/timeSheet.d.ts +7 -13
  329. package/dist/models/timeSheet.js +23 -31
  330. package/dist/models/timeSheet.js.map +1 -1
  331. package/dist/models/user.d.ts +7 -15
  332. package/dist/models/user.js +58 -73
  333. package/dist/models/user.js.map +1 -1
  334. package/dist/models/vendor.d.ts +7 -14
  335. package/dist/models/vendor.js +25 -33
  336. package/dist/models/vendor.js.map +1 -1
  337. package/dist/models/windowCovering.d.ts +7 -13
  338. package/dist/models/windowCovering.js +32 -45
  339. package/dist/models/windowCovering.js.map +1 -1
  340. package/dist/schemas/alarm.d.ts +4 -7
  341. package/dist/schemas/alarm.js +116 -169
  342. package/dist/schemas/alarm.js.map +1 -1
  343. package/dist/schemas/announcement.d.ts +4 -7
  344. package/dist/schemas/announcement.js +43 -56
  345. package/dist/schemas/announcement.js.map +1 -1
  346. package/dist/schemas/automation.d.ts +4 -7
  347. package/dist/schemas/automation.js +263 -240
  348. package/dist/schemas/automation.js.map +1 -1
  349. package/dist/schemas/camera.d.ts +4 -7
  350. package/dist/schemas/camera.js +86 -127
  351. package/dist/schemas/camera.js.map +1 -1
  352. package/dist/schemas/category.d.ts +4 -7
  353. package/dist/schemas/category.js +53 -58
  354. package/dist/schemas/category.js.map +1 -1
  355. package/dist/schemas/courtesy.d.ts +4 -7
  356. package/dist/schemas/courtesy.js +54 -71
  357. package/dist/schemas/courtesy.js.map +1 -1
  358. package/dist/schemas/credential.d.ts +4 -7
  359. package/dist/schemas/credential.js +56 -72
  360. package/dist/schemas/credential.js.map +1 -1
  361. package/dist/schemas/definitions.d.ts +3 -3
  362. package/dist/schemas/definitions.js +280 -307
  363. package/dist/schemas/definitions.js.map +1 -1
  364. package/dist/schemas/department.d.ts +4 -7
  365. package/dist/schemas/department.js +28 -35
  366. package/dist/schemas/department.js.map +1 -1
  367. package/dist/schemas/dimmer.d.ts +4 -7
  368. package/dist/schemas/dimmer.js +45 -67
  369. package/dist/schemas/dimmer.js.map +1 -1
  370. package/dist/schemas/discoveredDevice.d.ts +4 -7
  371. package/dist/schemas/discoveredDevice.js +40 -51
  372. package/dist/schemas/discoveredDevice.js.map +1 -1
  373. package/dist/schemas/emailMessage.d.ts +4 -7
  374. package/dist/schemas/emailMessage.js +73 -89
  375. package/dist/schemas/emailMessage.js.map +1 -1
  376. package/dist/schemas/energyReport.d.ts +4 -7
  377. package/dist/schemas/energyReport.js +96 -91
  378. package/dist/schemas/energyReport.js.map +1 -1
  379. package/dist/schemas/energyReportShard.d.ts +4 -7
  380. package/dist/schemas/energyReportShard.js +73 -76
  381. package/dist/schemas/energyReportShard.js.map +1 -1
  382. package/dist/schemas/gateway.d.ts +4 -7
  383. package/dist/schemas/gateway.js +38 -64
  384. package/dist/schemas/gateway.js.map +1 -1
  385. package/dist/schemas/group.d.ts +4 -7
  386. package/dist/schemas/group.js +54 -66
  387. package/dist/schemas/group.js.map +1 -1
  388. package/dist/schemas/identification.d.ts +4 -7
  389. package/dist/schemas/identification.js +53 -68
  390. package/dist/schemas/identification.js.map +1 -1
  391. package/dist/schemas/index.d.ts +45 -47
  392. package/dist/schemas/index.js +2 -51
  393. package/dist/schemas/integration.d.ts +5 -8
  394. package/dist/schemas/integration.js +46 -44
  395. package/dist/schemas/integration.js.map +1 -1
  396. package/dist/schemas/issue.d.ts +5 -9
  397. package/dist/schemas/issue.js +123 -140
  398. package/dist/schemas/issue.js.map +1 -1
  399. package/dist/schemas/lock.d.ts +4 -7
  400. package/dist/schemas/lock.js +77 -99
  401. package/dist/schemas/lock.js.map +1 -1
  402. package/dist/schemas/log.d.ts +4 -7
  403. package/dist/schemas/log.js +84 -105
  404. package/dist/schemas/log.js.map +1 -1
  405. package/dist/schemas/mediaFile.d.ts +6 -8
  406. package/dist/schemas/mediaFile.js +78 -102
  407. package/dist/schemas/mediaFile.js.map +1 -1
  408. package/dist/schemas/mediaSource.d.ts +4 -7
  409. package/dist/schemas/mediaSource.js +254 -306
  410. package/dist/schemas/mediaSource.js.map +1 -1
  411. package/dist/schemas/motionSensor.d.ts +4 -7
  412. package/dist/schemas/motionSensor.js +41 -66
  413. package/dist/schemas/motionSensor.js.map +1 -1
  414. package/dist/schemas/notification.d.ts +4 -7
  415. package/dist/schemas/notification.js +45 -49
  416. package/dist/schemas/notification.js.map +1 -1
  417. package/dist/schemas/order.d.ts +4 -7
  418. package/dist/schemas/order.js +154 -205
  419. package/dist/schemas/order.js.map +1 -1
  420. package/dist/schemas/organization.d.ts +4 -7
  421. package/dist/schemas/organization.js +155 -206
  422. package/dist/schemas/organization.js.map +1 -1
  423. package/dist/schemas/payment.d.ts +4 -7
  424. package/dist/schemas/payment.js +46 -53
  425. package/dist/schemas/payment.js.map +1 -1
  426. package/dist/schemas/policy.d.ts +4 -7
  427. package/dist/schemas/policy.js +64 -77
  428. package/dist/schemas/policy.js.map +1 -1
  429. package/dist/schemas/product.d.ts +4 -7
  430. package/dist/schemas/product.js +41 -60
  431. package/dist/schemas/product.js.map +1 -1
  432. package/dist/schemas/property.d.ts +4 -7
  433. package/dist/schemas/property.js +240 -308
  434. package/dist/schemas/property.js.map +1 -1
  435. package/dist/schemas/reservation.d.ts +4 -7
  436. package/dist/schemas/reservation.js +122 -156
  437. package/dist/schemas/reservation.js.map +1 -1
  438. package/dist/schemas/server.d.ts +4 -7
  439. package/dist/schemas/server.js +94 -142
  440. package/dist/schemas/server.js.map +1 -1
  441. package/dist/schemas/session.d.ts +5 -8
  442. package/dist/schemas/session.js +70 -95
  443. package/dist/schemas/session.js.map +1 -1
  444. package/dist/schemas/shortLink.d.ts +4 -7
  445. package/dist/schemas/shortLink.js +35 -46
  446. package/dist/schemas/shortLink.js.map +1 -1
  447. package/dist/schemas/smsMessage.d.ts +4 -7
  448. package/dist/schemas/smsMessage.js +56 -69
  449. package/dist/schemas/smsMessage.js.map +1 -1
  450. package/dist/schemas/space.d.ts +14 -17
  451. package/dist/schemas/space.js +155 -182
  452. package/dist/schemas/space.js.map +1 -1
  453. package/dist/schemas/switch.d.ts +4 -7
  454. package/dist/schemas/switch.js +82 -84
  455. package/dist/schemas/switch.js.map +1 -1
  456. package/dist/schemas/system.d.ts +5 -8
  457. package/dist/schemas/system.js +122 -130
  458. package/dist/schemas/system.js.map +1 -1
  459. package/dist/schemas/systemUser.d.ts +4 -7
  460. package/dist/schemas/systemUser.js +93 -116
  461. package/dist/schemas/systemUser.js.map +1 -1
  462. package/dist/schemas/thermostat.d.ts +4 -7
  463. package/dist/schemas/thermostat.js +256 -234
  464. package/dist/schemas/thermostat.js.map +1 -1
  465. package/dist/schemas/ticket.d.ts +15 -8
  466. package/dist/schemas/ticket.js +389 -359
  467. package/dist/schemas/ticket.js.map +1 -1
  468. package/dist/schemas/timeSheet.d.ts +4 -7
  469. package/dist/schemas/timeSheet.js +70 -75
  470. package/dist/schemas/timeSheet.js.map +1 -1
  471. package/dist/schemas/user.d.ts +7 -10
  472. package/dist/schemas/user.js +200 -239
  473. package/dist/schemas/user.js.map +1 -1
  474. package/dist/schemas/vendor.d.ts +5 -8
  475. package/dist/schemas/vendor.js +46 -57
  476. package/dist/schemas/vendor.js.map +1 -1
  477. package/dist/schemas/windowCovering.d.ts +4 -7
  478. package/dist/schemas/windowCovering.js +51 -73
  479. package/dist/schemas/windowCovering.js.map +1 -1
  480. package/dist/useCases/autoAssociateDiscoveredDevices.d.ts +3 -5
  481. package/dist/useCases/autoAssociateDiscoveredDevices.js +45 -48
  482. package/dist/useCases/autoAssociateDiscoveredDevices.js.map +1 -1
  483. package/dist/useCases/autoCloseTickets.d.ts +3 -5
  484. package/dist/useCases/autoCloseTickets.js +45 -48
  485. package/dist/useCases/autoCloseTickets.js.map +1 -1
  486. package/dist/useCases/bulkUpdateIssue.d.ts +3 -5
  487. package/dist/useCases/bulkUpdateIssue.js +45 -48
  488. package/dist/useCases/bulkUpdateIssue.js.map +1 -1
  489. package/dist/useCases/checkVerificationCode.d.ts +3 -5
  490. package/dist/useCases/checkVerificationCode.js +45 -48
  491. package/dist/useCases/checkVerificationCode.js.map +1 -1
  492. package/dist/useCases/createApiKey.d.ts +3 -5
  493. package/dist/useCases/createApiKey.js +45 -48
  494. package/dist/useCases/createApiKey.js.map +1 -1
  495. package/dist/useCases/createAutomation.d.ts +3 -5
  496. package/dist/useCases/createAutomation.js +45 -48
  497. package/dist/useCases/createAutomation.js.map +1 -1
  498. package/dist/useCases/createCategory.d.ts +3 -5
  499. package/dist/useCases/createCategory.js +45 -48
  500. package/dist/useCases/createCategory.js.map +1 -1
  501. package/dist/useCases/createDefaultAutomations.d.ts +3 -5
  502. package/dist/useCases/createDefaultAutomations.js +45 -48
  503. package/dist/useCases/createDefaultAutomations.js.map +1 -1
  504. package/dist/useCases/createDepartment.d.ts +3 -5
  505. package/dist/useCases/createDepartment.js +45 -48
  506. package/dist/useCases/createDepartment.js.map +1 -1
  507. package/dist/useCases/createDevice.d.ts +3 -5
  508. package/dist/useCases/createDevice.js +45 -48
  509. package/dist/useCases/createDevice.js.map +1 -1
  510. package/dist/useCases/createDeviceCredential.d.ts +3 -5
  511. package/dist/useCases/createDeviceCredential.js +45 -48
  512. package/dist/useCases/createDeviceCredential.js.map +1 -1
  513. package/dist/useCases/createDiscoveredDevice.d.ts +3 -5
  514. package/dist/useCases/createDiscoveredDevice.js +45 -48
  515. package/dist/useCases/createDiscoveredDevice.js.map +1 -1
  516. package/dist/useCases/createDiscoveredDeviceAssociation.d.ts +3 -5
  517. package/dist/useCases/createDiscoveredDeviceAssociation.js +45 -48
  518. package/dist/useCases/createDiscoveredDeviceAssociation.js.map +1 -1
  519. package/dist/useCases/createDiscoveredDeviceAssociationMap.d.ts +3 -5
  520. package/dist/useCases/createDiscoveredDeviceAssociationMap.js +45 -48
  521. package/dist/useCases/createDiscoveredDeviceAssociationMap.js.map +1 -1
  522. package/dist/useCases/createImageUploadEndpoint.d.ts +3 -5
  523. package/dist/useCases/createImageUploadEndpoint.js +45 -48
  524. package/dist/useCases/createImageUploadEndpoint.js.map +1 -1
  525. package/dist/useCases/createIssue.d.ts +3 -5
  526. package/dist/useCases/createIssue.js +45 -48
  527. package/dist/useCases/createIssue.js.map +1 -1
  528. package/dist/useCases/createOrganization.d.ts +3 -5
  529. package/dist/useCases/createOrganization.js +45 -48
  530. package/dist/useCases/createOrganization.js.map +1 -1
  531. package/dist/useCases/createPolicy.d.ts +3 -5
  532. package/dist/useCases/createPolicy.js +45 -48
  533. package/dist/useCases/createPolicy.js.map +1 -1
  534. package/dist/useCases/createProperty.d.ts +3 -5
  535. package/dist/useCases/createProperty.js +45 -48
  536. package/dist/useCases/createProperty.js.map +1 -1
  537. package/dist/useCases/createPwaHandoffToken.d.ts +3 -5
  538. package/dist/useCases/createPwaHandoffToken.js +45 -48
  539. package/dist/useCases/createPwaHandoffToken.js.map +1 -1
  540. package/dist/useCases/createServer.d.ts +3 -5
  541. package/dist/useCases/createServer.js +45 -48
  542. package/dist/useCases/createServer.js.map +1 -1
  543. package/dist/useCases/createSpace.d.ts +3 -5
  544. package/dist/useCases/createSpace.js +45 -48
  545. package/dist/useCases/createSpace.js.map +1 -1
  546. package/dist/useCases/createSystem.d.ts +3 -5
  547. package/dist/useCases/createSystem.js +45 -48
  548. package/dist/useCases/createSystem.js.map +1 -1
  549. package/dist/useCases/createTicket.d.ts +3 -5
  550. package/dist/useCases/createTicket.js +45 -48
  551. package/dist/useCases/createTicket.js.map +1 -1
  552. package/dist/useCases/createTicketMessage.d.ts +3 -5
  553. package/dist/useCases/createTicketMessage.js +45 -48
  554. package/dist/useCases/createTicketMessage.js.map +1 -1
  555. package/dist/useCases/createTimeSheet.d.ts +3 -5
  556. package/dist/useCases/createTimeSheet.js +45 -48
  557. package/dist/useCases/createTimeSheet.js.map +1 -1
  558. package/dist/useCases/createTimeSheetTimeEntry.d.ts +3 -5
  559. package/dist/useCases/createTimeSheetTimeEntry.js +45 -48
  560. package/dist/useCases/createTimeSheetTimeEntry.js.map +1 -1
  561. package/dist/useCases/createUser.d.ts +3 -5
  562. package/dist/useCases/createUser.js +45 -48
  563. package/dist/useCases/createUser.js.map +1 -1
  564. package/dist/useCases/createVendor.d.ts +3 -5
  565. package/dist/useCases/createVendor.js +45 -48
  566. package/dist/useCases/createVendor.js.map +1 -1
  567. package/dist/useCases/deleteAutomation.d.ts +3 -5
  568. package/dist/useCases/deleteAutomation.js +45 -48
  569. package/dist/useCases/deleteAutomation.js.map +1 -1
  570. package/dist/useCases/deleteCategory.d.ts +3 -5
  571. package/dist/useCases/deleteCategory.js +45 -48
  572. package/dist/useCases/deleteCategory.js.map +1 -1
  573. package/dist/useCases/deleteDepartment.d.ts +3 -5
  574. package/dist/useCases/deleteDepartment.js +45 -48
  575. package/dist/useCases/deleteDepartment.js.map +1 -1
  576. package/dist/useCases/deleteDevice.d.ts +3 -5
  577. package/dist/useCases/deleteDevice.js +45 -48
  578. package/dist/useCases/deleteDevice.js.map +1 -1
  579. package/dist/useCases/deleteDeviceCredential.d.ts +3 -5
  580. package/dist/useCases/deleteDeviceCredential.js +49 -48
  581. package/dist/useCases/deleteDeviceCredential.js.map +1 -1
  582. package/dist/useCases/deleteDiscoveredDevice.d.ts +3 -5
  583. package/dist/useCases/deleteDiscoveredDevice.js +45 -48
  584. package/dist/useCases/deleteDiscoveredDevice.js.map +1 -1
  585. package/dist/useCases/deleteIssue.d.ts +3 -5
  586. package/dist/useCases/deleteIssue.js +45 -48
  587. package/dist/useCases/deleteIssue.js.map +1 -1
  588. package/dist/useCases/deleteMediaFile.d.ts +3 -5
  589. package/dist/useCases/deleteMediaFile.js +45 -48
  590. package/dist/useCases/deleteMediaFile.js.map +1 -1
  591. package/dist/useCases/deleteOrganization.d.ts +3 -5
  592. package/dist/useCases/deleteOrganization.js +45 -48
  593. package/dist/useCases/deleteOrganization.js.map +1 -1
  594. package/dist/useCases/deletePolicy.d.ts +3 -5
  595. package/dist/useCases/deletePolicy.js +45 -48
  596. package/dist/useCases/deletePolicy.js.map +1 -1
  597. package/dist/useCases/deleteProperty.d.ts +3 -5
  598. package/dist/useCases/deleteProperty.js +45 -48
  599. package/dist/useCases/deleteProperty.js.map +1 -1
  600. package/dist/useCases/deleteServer.d.ts +3 -5
  601. package/dist/useCases/deleteServer.js +45 -48
  602. package/dist/useCases/deleteServer.js.map +1 -1
  603. package/dist/useCases/deleteSession.d.ts +3 -5
  604. package/dist/useCases/deleteSession.js +45 -48
  605. package/dist/useCases/deleteSession.js.map +1 -1
  606. package/dist/useCases/deleteSpace.d.ts +3 -5
  607. package/dist/useCases/deleteSpace.js +45 -48
  608. package/dist/useCases/deleteSpace.js.map +1 -1
  609. package/dist/useCases/deleteSystem.d.ts +3 -5
  610. package/dist/useCases/deleteSystem.js +45 -48
  611. package/dist/useCases/deleteSystem.js.map +1 -1
  612. package/dist/useCases/deleteTicket.d.ts +3 -5
  613. package/dist/useCases/deleteTicket.js +45 -48
  614. package/dist/useCases/deleteTicket.js.map +1 -1
  615. package/dist/useCases/deleteTimeSheet.d.ts +3 -5
  616. package/dist/useCases/deleteTimeSheet.js +45 -48
  617. package/dist/useCases/deleteTimeSheet.js.map +1 -1
  618. package/dist/useCases/deleteTimeSheetTimeEntry.d.ts +3 -5
  619. package/dist/useCases/deleteTimeSheetTimeEntry.js +45 -48
  620. package/dist/useCases/deleteTimeSheetTimeEntry.js.map +1 -1
  621. package/dist/useCases/deleteUser.d.ts +3 -5
  622. package/dist/useCases/deleteUser.js +45 -48
  623. package/dist/useCases/deleteUser.js.map +1 -1
  624. package/dist/useCases/deleteUserCredential.d.ts +3 -5
  625. package/dist/useCases/deleteUserCredential.js +45 -48
  626. package/dist/useCases/deleteUserCredential.js.map +1 -1
  627. package/dist/useCases/deleteVendor.d.ts +3 -5
  628. package/dist/useCases/deleteVendor.js +45 -48
  629. package/dist/useCases/deleteVendor.js.map +1 -1
  630. package/dist/useCases/describeAutomation.d.ts +3 -5
  631. package/dist/useCases/describeAutomation.js +45 -48
  632. package/dist/useCases/describeAutomation.js.map +1 -1
  633. package/dist/useCases/describeCategory.d.ts +3 -5
  634. package/dist/useCases/describeCategory.js +45 -48
  635. package/dist/useCases/describeCategory.js.map +1 -1
  636. package/dist/useCases/describeDepartment.d.ts +3 -5
  637. package/dist/useCases/describeDepartment.js +45 -48
  638. package/dist/useCases/describeDepartment.js.map +1 -1
  639. package/dist/useCases/describeDevice.d.ts +3 -5
  640. package/dist/useCases/describeDevice.js +45 -48
  641. package/dist/useCases/describeDevice.js.map +1 -1
  642. package/dist/useCases/describeDeviceConfig.d.ts +3 -5
  643. package/dist/useCases/describeDeviceConfig.js +45 -48
  644. package/dist/useCases/describeDeviceConfig.js.map +1 -1
  645. package/dist/useCases/describeDiscoveredDevice.d.ts +3 -5
  646. package/dist/useCases/describeDiscoveredDevice.js +45 -48
  647. package/dist/useCases/describeDiscoveredDevice.js.map +1 -1
  648. package/dist/useCases/describeIssue.d.ts +3 -5
  649. package/dist/useCases/describeIssue.js +45 -48
  650. package/dist/useCases/describeIssue.js.map +1 -1
  651. package/dist/useCases/describeMyAuth.d.ts +3 -5
  652. package/dist/useCases/describeMyAuth.js +45 -48
  653. package/dist/useCases/describeMyAuth.js.map +1 -1
  654. package/dist/useCases/describeMyOrganization.d.ts +3 -5
  655. package/dist/useCases/describeMyOrganization.js +45 -48
  656. package/dist/useCases/describeMyOrganization.js.map +1 -1
  657. package/dist/useCases/describeMyPasskeyRegistrations.d.ts +3 -5
  658. package/dist/useCases/describeMyPasskeyRegistrations.js +45 -48
  659. package/dist/useCases/describeMyPasskeyRegistrations.js.map +1 -1
  660. package/dist/useCases/describeOrganization.d.ts +3 -5
  661. package/dist/useCases/describeOrganization.js +45 -48
  662. package/dist/useCases/describeOrganization.js.map +1 -1
  663. package/dist/useCases/describePolicy.d.ts +3 -5
  664. package/dist/useCases/describePolicy.js +45 -48
  665. package/dist/useCases/describePolicy.js.map +1 -1
  666. package/dist/useCases/describeProperty.d.ts +3 -5
  667. package/dist/useCases/describeProperty.js +45 -48
  668. package/dist/useCases/describeProperty.js.map +1 -1
  669. package/dist/useCases/describeSOS.d.ts +3 -5
  670. package/dist/useCases/describeSOS.js +45 -48
  671. package/dist/useCases/describeSOS.js.map +1 -1
  672. package/dist/useCases/describeSelf.d.ts +3 -5
  673. package/dist/useCases/describeSelf.js +45 -48
  674. package/dist/useCases/describeSelf.js.map +1 -1
  675. package/dist/useCases/describeServer.d.ts +3 -5
  676. package/dist/useCases/describeServer.js +45 -48
  677. package/dist/useCases/describeServer.js.map +1 -1
  678. package/dist/useCases/describeSession.d.ts +3 -5
  679. package/dist/useCases/describeSession.js +45 -48
  680. package/dist/useCases/describeSession.js.map +1 -1
  681. package/dist/useCases/describeSpace.d.ts +3 -5
  682. package/dist/useCases/describeSpace.js +45 -48
  683. package/dist/useCases/describeSpace.js.map +1 -1
  684. package/dist/useCases/describeSystem.d.ts +3 -5
  685. package/dist/useCases/describeSystem.js +45 -48
  686. package/dist/useCases/describeSystem.js.map +1 -1
  687. package/dist/useCases/describeTicket.d.ts +3 -5
  688. package/dist/useCases/describeTicket.js +45 -48
  689. package/dist/useCases/describeTicket.js.map +1 -1
  690. package/dist/useCases/describeTicketFilters.d.ts +3 -5
  691. package/dist/useCases/describeTicketFilters.js +45 -48
  692. package/dist/useCases/describeTicketFilters.js.map +1 -1
  693. package/dist/useCases/describeTicketStats.d.ts +3 -5
  694. package/dist/useCases/describeTicketStats.js +45 -48
  695. package/dist/useCases/describeTicketStats.js.map +1 -1
  696. package/dist/useCases/describeTimeSheet.d.ts +3 -5
  697. package/dist/useCases/describeTimeSheet.js +45 -48
  698. package/dist/useCases/describeTimeSheet.js.map +1 -1
  699. package/dist/useCases/describeTimeSheetStats.d.ts +3 -5
  700. package/dist/useCases/describeTimeSheetStats.js +45 -48
  701. package/dist/useCases/describeTimeSheetStats.js.map +1 -1
  702. package/dist/useCases/describeUser.d.ts +3 -5
  703. package/dist/useCases/describeUser.js +45 -48
  704. package/dist/useCases/describeUser.js.map +1 -1
  705. package/dist/useCases/describeVendor.d.ts +3 -5
  706. package/dist/useCases/describeVendor.js +45 -48
  707. package/dist/useCases/describeVendor.js.map +1 -1
  708. package/dist/useCases/emailUserAccountSetup.d.ts +3 -5
  709. package/dist/useCases/emailUserAccountSetup.js +45 -48
  710. package/dist/useCases/emailUserAccountSetup.js.map +1 -1
  711. package/dist/useCases/getApiKey.d.ts +3 -5
  712. package/dist/useCases/getApiKey.js +45 -48
  713. package/dist/useCases/getApiKey.js.map +1 -1
  714. package/dist/useCases/index.d.ts +143 -143
  715. package/dist/useCases/index.js +150 -145
  716. package/dist/useCases/index.js.map +1 -1
  717. package/dist/useCases/leaveTicket.d.ts +3 -5
  718. package/dist/useCases/leaveTicket.js +45 -48
  719. package/dist/useCases/leaveTicket.js.map +1 -1
  720. package/dist/useCases/listAutomations.d.ts +3 -5
  721. package/dist/useCases/listAutomations.js +45 -48
  722. package/dist/useCases/listAutomations.js.map +1 -1
  723. package/dist/useCases/listCameraStreamPreviews.d.ts +3 -5
  724. package/dist/useCases/listCameraStreamPreviews.js +45 -48
  725. package/dist/useCases/listCameraStreamPreviews.js.map +1 -1
  726. package/dist/useCases/listCategories.d.ts +3 -5
  727. package/dist/useCases/listCategories.js +45 -48
  728. package/dist/useCases/listCategories.js.map +1 -1
  729. package/dist/useCases/listDepartments.d.ts +3 -5
  730. package/dist/useCases/listDepartments.js +45 -48
  731. package/dist/useCases/listDepartments.js.map +1 -1
  732. package/dist/useCases/listDeviceCredentials.d.ts +3 -5
  733. package/dist/useCases/listDeviceCredentials.js +45 -48
  734. package/dist/useCases/listDeviceCredentials.js.map +1 -1
  735. package/dist/useCases/listDevices.d.ts +3 -5
  736. package/dist/useCases/listDevices.js +45 -48
  737. package/dist/useCases/listDevices.js.map +1 -1
  738. package/dist/useCases/listDiscoveredDevices.d.ts +3 -5
  739. package/dist/useCases/listDiscoveredDevices.js +45 -48
  740. package/dist/useCases/listDiscoveredDevices.js.map +1 -1
  741. package/dist/useCases/listIntegrations.d.ts +3 -5
  742. package/dist/useCases/listIntegrations.js +45 -48
  743. package/dist/useCases/listIntegrations.js.map +1 -1
  744. package/dist/useCases/listIssues.d.ts +3 -5
  745. package/dist/useCases/listIssues.js +45 -48
  746. package/dist/useCases/listIssues.js.map +1 -1
  747. package/dist/useCases/listMyOrganizations.d.ts +3 -5
  748. package/dist/useCases/listMyOrganizations.js +45 -48
  749. package/dist/useCases/listMyOrganizations.js.map +1 -1
  750. package/dist/useCases/listMyProperties.d.ts +3 -5
  751. package/dist/useCases/listMyProperties.js +45 -48
  752. package/dist/useCases/listMyProperties.js.map +1 -1
  753. package/dist/useCases/listMyTimeSheets.d.ts +3 -5
  754. package/dist/useCases/listMyTimeSheets.js +45 -48
  755. package/dist/useCases/listMyTimeSheets.js.map +1 -1
  756. package/dist/useCases/listOrganizations.d.ts +3 -5
  757. package/dist/useCases/listOrganizations.js +45 -48
  758. package/dist/useCases/listOrganizations.js.map +1 -1
  759. package/dist/useCases/listPolicies.d.ts +3 -5
  760. package/dist/useCases/listPolicies.js +45 -48
  761. package/dist/useCases/listPolicies.js.map +1 -1
  762. package/dist/useCases/listProperties.d.ts +3 -5
  763. package/dist/useCases/listProperties.js +45 -48
  764. package/dist/useCases/listProperties.js.map +1 -1
  765. package/dist/useCases/listPropertyCredentials.d.ts +3 -5
  766. package/dist/useCases/listPropertyCredentials.js +45 -48
  767. package/dist/useCases/listPropertyCredentials.js.map +1 -1
  768. package/dist/useCases/listServers.d.ts +3 -5
  769. package/dist/useCases/listServers.js +45 -48
  770. package/dist/useCases/listServers.js.map +1 -1
  771. package/dist/useCases/listSessions.d.ts +3 -5
  772. package/dist/useCases/listSessions.js +45 -48
  773. package/dist/useCases/listSessions.js.map +1 -1
  774. package/dist/useCases/listSpaces.d.ts +3 -5
  775. package/dist/useCases/listSpaces.js +45 -48
  776. package/dist/useCases/listSpaces.js.map +1 -1
  777. package/dist/useCases/listSystems.d.ts +3 -5
  778. package/dist/useCases/listSystems.js +45 -48
  779. package/dist/useCases/listSystems.js.map +1 -1
  780. package/dist/useCases/listTicketLocations.d.ts +3 -5
  781. package/dist/useCases/listTicketLocations.js +45 -48
  782. package/dist/useCases/listTicketLocations.js.map +1 -1
  783. package/dist/useCases/listTickets.d.ts +3 -5
  784. package/dist/useCases/listTickets.js +45 -48
  785. package/dist/useCases/listTickets.js.map +1 -1
  786. package/dist/useCases/listTimeSheets.d.ts +3 -5
  787. package/dist/useCases/listTimeSheets.js +45 -48
  788. package/dist/useCases/listTimeSheets.js.map +1 -1
  789. package/dist/useCases/listUserSpaces.d.ts +3 -5
  790. package/dist/useCases/listUserSpaces.js +45 -48
  791. package/dist/useCases/listUserSpaces.js.map +1 -1
  792. package/dist/useCases/listUsers.d.ts +3 -5
  793. package/dist/useCases/listUsers.js +45 -48
  794. package/dist/useCases/listUsers.js.map +1 -1
  795. package/dist/useCases/listVendors.d.ts +3 -5
  796. package/dist/useCases/listVendors.js +45 -48
  797. package/dist/useCases/listVendors.js.map +1 -1
  798. package/dist/useCases/logoutUser.d.ts +3 -5
  799. package/dist/useCases/logoutUser.js +45 -48
  800. package/dist/useCases/logoutUser.js.map +1 -1
  801. package/dist/useCases/moveDevice.d.ts +3 -5
  802. package/dist/useCases/moveDevice.js +45 -48
  803. package/dist/useCases/moveDevice.js.map +1 -1
  804. package/dist/useCases/revokeApiKey.d.ts +3 -5
  805. package/dist/useCases/revokeApiKey.js +45 -48
  806. package/dist/useCases/revokeApiKey.js.map +1 -1
  807. package/dist/useCases/rotateApiKey.d.ts +3 -5
  808. package/dist/useCases/rotateApiKey.js +45 -48
  809. package/dist/useCases/rotateApiKey.js.map +1 -1
  810. package/dist/useCases/runAutomation.d.ts +3 -5
  811. package/dist/useCases/runAutomation.js +45 -48
  812. package/dist/useCases/runAutomation.js.map +1 -1
  813. package/dist/useCases/selectOrganization.d.ts +3 -5
  814. package/dist/useCases/selectOrganization.js +45 -48
  815. package/dist/useCases/selectOrganization.js.map +1 -1
  816. package/dist/useCases/sendNotification.d.ts +3 -5
  817. package/dist/useCases/sendNotification.js +45 -48
  818. package/dist/useCases/sendNotification.js.map +1 -1
  819. package/dist/useCases/sendVerificationCode.d.ts +3 -5
  820. package/dist/useCases/sendVerificationCode.js +45 -48
  821. package/dist/useCases/sendVerificationCode.js.map +1 -1
  822. package/dist/useCases/setDevice.d.ts +3 -5
  823. package/dist/useCases/setDevice.js +45 -48
  824. package/dist/useCases/setDevice.js.map +1 -1
  825. package/dist/useCases/setDevices.d.ts +3 -5
  826. package/dist/useCases/setDevices.js +45 -48
  827. package/dist/useCases/setDevices.js.map +1 -1
  828. package/dist/useCases/startSOS.d.ts +3 -5
  829. package/dist/useCases/startSOS.js +45 -48
  830. package/dist/useCases/startSOS.js.map +1 -1
  831. package/dist/useCases/stopSOS.d.ts +3 -5
  832. package/dist/useCases/stopSOS.js +45 -48
  833. package/dist/useCases/stopSOS.js.map +1 -1
  834. package/dist/useCases/updateAutomation.d.ts +3 -5
  835. package/dist/useCases/updateAutomation.js +45 -48
  836. package/dist/useCases/updateAutomation.js.map +1 -1
  837. package/dist/useCases/updateCategory.d.ts +3 -5
  838. package/dist/useCases/updateCategory.js +45 -48
  839. package/dist/useCases/updateCategory.js.map +1 -1
  840. package/dist/useCases/updateDepartment.d.ts +3 -5
  841. package/dist/useCases/updateDepartment.js +45 -48
  842. package/dist/useCases/updateDepartment.js.map +1 -1
  843. package/dist/useCases/updateDevice.d.ts +3 -5
  844. package/dist/useCases/updateDevice.js +45 -48
  845. package/dist/useCases/updateDevice.js.map +1 -1
  846. package/dist/useCases/updateDeviceCredential.d.ts +3 -5
  847. package/dist/useCases/updateDeviceCredential.js +49 -48
  848. package/dist/useCases/updateDeviceCredential.js.map +1 -1
  849. package/dist/useCases/updateDiscoveredDevice.d.ts +3 -5
  850. package/dist/useCases/updateDiscoveredDevice.js +45 -48
  851. package/dist/useCases/updateDiscoveredDevice.js.map +1 -1
  852. package/dist/useCases/updateIssue.d.ts +3 -5
  853. package/dist/useCases/updateIssue.js +45 -48
  854. package/dist/useCases/updateIssue.js.map +1 -1
  855. package/dist/useCases/updateMessageReadStatus.d.ts +3 -5
  856. package/dist/useCases/updateMessageReadStatus.js +45 -48
  857. package/dist/useCases/updateMessageReadStatus.js.map +1 -1
  858. package/dist/useCases/updateOrganization.d.ts +3 -5
  859. package/dist/useCases/updateOrganization.js +45 -48
  860. package/dist/useCases/updateOrganization.js.map +1 -1
  861. package/dist/useCases/updateOrganizationFeatures.d.ts +3 -5
  862. package/dist/useCases/updateOrganizationFeatures.js +45 -48
  863. package/dist/useCases/updateOrganizationFeatures.js.map +1 -1
  864. package/dist/useCases/updatePolicy.d.ts +3 -5
  865. package/dist/useCases/updatePolicy.js +45 -48
  866. package/dist/useCases/updatePolicy.js.map +1 -1
  867. package/dist/useCases/updateProperty.d.ts +3 -5
  868. package/dist/useCases/updateProperty.js +45 -48
  869. package/dist/useCases/updateProperty.js.map +1 -1
  870. package/dist/useCases/updatePropertyFeatures.d.ts +3 -5
  871. package/dist/useCases/updatePropertyFeatures.js +45 -48
  872. package/dist/useCases/updatePropertyFeatures.js.map +1 -1
  873. package/dist/useCases/updateSelf.d.ts +3 -5
  874. package/dist/useCases/updateSelf.js +45 -48
  875. package/dist/useCases/updateSelf.js.map +1 -1
  876. package/dist/useCases/updateServer.d.ts +3 -5
  877. package/dist/useCases/updateServer.js +45 -48
  878. package/dist/useCases/updateServer.js.map +1 -1
  879. package/dist/useCases/updateSpace.d.ts +3 -5
  880. package/dist/useCases/updateSpace.js +45 -48
  881. package/dist/useCases/updateSpace.js.map +1 -1
  882. package/dist/useCases/updateSystem.d.ts +3 -5
  883. package/dist/useCases/updateSystem.js +45 -48
  884. package/dist/useCases/updateSystem.js.map +1 -1
  885. package/dist/useCases/updateTicket.d.ts +3 -5
  886. package/dist/useCases/updateTicket.js +45 -48
  887. package/dist/useCases/updateTicket.js.map +1 -1
  888. package/dist/useCases/updateTicketStatus.d.ts +3 -5
  889. package/dist/useCases/updateTicketStatus.js +45 -48
  890. package/dist/useCases/updateTicketStatus.js.map +1 -1
  891. package/dist/useCases/updateTimeSheet.d.ts +3 -5
  892. package/dist/useCases/updateTimeSheet.js +45 -48
  893. package/dist/useCases/updateTimeSheet.js.map +1 -1
  894. package/dist/useCases/updateTimeSheetTimeEntry.d.ts +3 -5
  895. package/dist/useCases/updateTimeSheetTimeEntry.js +45 -48
  896. package/dist/useCases/updateTimeSheetTimeEntry.js.map +1 -1
  897. package/dist/useCases/updateUser.d.ts +3 -5
  898. package/dist/useCases/updateUser.js +45 -48
  899. package/dist/useCases/updateUser.js.map +1 -1
  900. package/dist/useCases/updateVendor.d.ts +3 -5
  901. package/dist/useCases/updateVendor.js +45 -48
  902. package/dist/useCases/updateVendor.js.map +1 -1
  903. package/dist/useCases/uploadImage.d.ts +3 -5
  904. package/dist/useCases/uploadImage.js +45 -48
  905. package/dist/useCases/uploadImage.js.map +1 -1
  906. package/dist/useCases/upsertDiscoveredDevice.d.ts +3 -5
  907. package/dist/useCases/upsertDiscoveredDevice.js +45 -48
  908. package/dist/useCases/upsertDiscoveredDevice.js.map +1 -1
  909. package/dist/useCases/validateAuth.d.ts +3 -5
  910. package/dist/useCases/validateAuth.js +45 -48
  911. package/dist/useCases/validateAuth.js.map +1 -1
  912. package/dist/validate.d.ts +94 -98
  913. package/dist/validate.js +62 -106
  914. package/dist/validate.js.map +1 -1
  915. package/package.json +6 -4
  916. package/dist/index-7k9xaBaL.d.ts +0 -30
  917. package/dist/index-B1__8mca.d.ts +0 -52
  918. package/dist/index-BmUDCO4d.d.ts +0 -143
  919. package/dist/index-BnWbLEt_.d.ts +0 -22
  920. package/dist/index-DJzBywIl.d.ts +0 -292
  921. package/dist/index-PDa8BHjL.d.ts +0 -50
  922. package/dist/index.js.map +0 -1
  923. package/dist/schemas/index.js.map +0 -1
@@ -1,148 +1,4 @@
1
- import { CreatePwaHandoffTokenCommand } from './useCases/createPwaHandoffToken.js';
2
- import { LogoutUserCommand } from './useCases/logoutUser.js';
3
- import { DescribeMyAuthCommand } from './useCases/describeMyAuth.js';
4
- import { ValidateAuthCommand } from './useCases/validateAuth.js';
5
- import { SelectOrganizationCommand } from './useCases/selectOrganization.js';
6
- import { ListMyOrganizationsCommand } from './useCases/listMyOrganizations.js';
7
- import { DescribeSelfCommand } from './useCases/describeSelf.js';
8
- import { DescribeUserCommand } from './useCases/describeUser.js';
9
- import { CreateUserCommand } from './useCases/createUser.js';
10
- import { ListUsersCommand } from './useCases/listUsers.js';
11
- import { UpdateSelfCommand } from './useCases/updateSelf.js';
12
- import { UpdateUserCommand } from './useCases/updateUser.js';
13
- import { DeleteUserCommand } from './useCases/deleteUser.js';
14
- import { CreateApiKeyCommand } from './useCases/createApiKey.js';
15
- import { GetApiKeyCommand } from './useCases/getApiKey.js';
16
- import { RotateApiKeyCommand } from './useCases/rotateApiKey.js';
17
- import { RevokeApiKeyCommand } from './useCases/revokeApiKey.js';
18
- import { SendVerificationCodeCommand } from './useCases/sendVerificationCode.js';
19
- import { CheckVerificationCodeCommand } from './useCases/checkVerificationCode.js';
20
- import { ListUserSpacesCommand } from './useCases/listUserSpaces.js';
21
- import { DescribeMyPasskeyRegistrationsCommand } from './useCases/describeMyPasskeyRegistrations.js';
22
- import { DeleteUserCredentialCommand } from './useCases/deleteUserCredential.js';
23
- import { CreatePolicyCommand } from './useCases/createPolicy.js';
24
- import { ListPoliciesCommand } from './useCases/listPolicies.js';
25
- import { UpdatePolicyCommand } from './useCases/updatePolicy.js';
26
- import { DeletePolicyCommand } from './useCases/deletePolicy.js';
27
- import { DescribePolicyCommand } from './useCases/describePolicy.js';
28
- import { ListSpacesCommand } from './useCases/listSpaces.js';
29
- import { UpdateSpaceCommand } from './useCases/updateSpace.js';
30
- import { CreateSpaceCommand } from './useCases/createSpace.js';
31
- import { DescribeSpaceCommand } from './useCases/describeSpace.js';
32
- import { DeleteSpaceCommand } from './useCases/deleteSpace.js';
33
- import { CreateDeviceCommand } from './useCases/createDevice.js';
34
- import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.js';
35
- import { ListDevicesCommand } from './useCases/listDevices.js';
36
- import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.js';
37
- import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
38
- import { DescribeDeviceCommand } from './useCases/describeDevice.js';
39
- import { UpdateDeviceCommand } from './useCases/updateDevice.js';
40
- import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.js';
41
- import { SetDeviceCommand } from './useCases/setDevice.js';
42
- import { DeleteDeviceCommand } from './useCases/deleteDevice.js';
43
- import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.js';
44
- import { MoveDeviceCommand } from './useCases/moveDevice.js';
45
- import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.js';
46
- import { CreateCategoryCommand } from './useCases/createCategory.js';
47
- import { DeleteCategoryCommand } from './useCases/deleteCategory.js';
48
- import { DescribeCategoryCommand } from './useCases/describeCategory.js';
49
- import { ListCategoriesCommand } from './useCases/listCategories.js';
50
- import { UpdateCategoryCommand } from './useCases/updateCategory.js';
51
- import { DescribeDepartmentCommand } from './useCases/describeDepartment.js';
52
- import { ListDepartmentsCommand } from './useCases/listDepartments.js';
53
- import { DeleteDepartmentCommand } from './useCases/deleteDepartment.js';
54
- import { CreateDepartmentCommand } from './useCases/createDepartment.js';
55
- import { UpdateDepartmentCommand } from './useCases/updateDepartment.js';
56
- import { AutoCloseTicketsCommand } from './useCases/autoCloseTickets.js';
57
- import { DescribeTicketStatsCommand } from './useCases/describeTicketStats.js';
58
- import { CreateTicketCommand } from './useCases/createTicket.js';
59
- import { CreateTicketMessageCommand } from './useCases/createTicketMessage.js';
60
- import { DeleteTicketCommand } from './useCases/deleteTicket.js';
61
- import { ListTicketLocationsCommand } from './useCases/listTicketLocations.js';
62
- import { DescribeTicketFiltersCommand } from './useCases/describeTicketFilters.js';
63
- import { DescribeTicketCommand } from './useCases/describeTicket.js';
64
- import { ListTicketsCommand } from './useCases/listTickets.js';
65
- import { UpdateMessageReadStatusCommand } from './useCases/updateMessageReadStatus.js';
66
- import { UpdateTicketCommand } from './useCases/updateTicket.js';
67
- import { UpdateTicketStatusCommand } from './useCases/updateTicketStatus.js';
68
- import { LeaveTicketCommand } from './useCases/leaveTicket.js';
69
- import { CreateDiscoveredDeviceAssociationMapCommand } from './useCases/createDiscoveredDeviceAssociationMap.js';
70
- import { AutoAssociateDiscoveredDevicesCommand } from './useCases/autoAssociateDiscoveredDevices.js';
71
- import { CreateDiscoveredDeviceCommand } from './useCases/createDiscoveredDevice.js';
72
- import { ListDiscoveredDevicesCommand } from './useCases/listDiscoveredDevices.js';
73
- import { UpdateDiscoveredDeviceCommand } from './useCases/updateDiscoveredDevice.js';
74
- import { DeleteDiscoveredDeviceCommand } from './useCases/deleteDiscoveredDevice.js';
75
- import { DescribeDiscoveredDeviceCommand } from './useCases/describeDiscoveredDevice.js';
76
- import { UpsertDiscoveredDeviceCommand } from './useCases/upsertDiscoveredDevice.js';
77
- import { CreateDiscoveredDeviceAssociationCommand } from './useCases/createDiscoveredDeviceAssociation.js';
78
- import { ListIntegrationsCommand } from './useCases/listIntegrations.js';
79
- import { DescribeMyOrganizationCommand } from './useCases/describeMyOrganization.js';
80
- import { CreateOrganizationCommand } from './useCases/createOrganization.js';
81
- import { UpdateOrganizationCommand } from './useCases/updateOrganization.js';
82
- import { UpdateOrganizationFeaturesCommand } from './useCases/updateOrganizationFeatures.js';
83
- import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
84
- import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
85
- import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
86
- import { ListPropertiesCommand } from './useCases/listProperties.js';
87
- import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.js';
88
- import { ListMyPropertiesCommand } from './useCases/listMyProperties.js';
89
- import { CreatePropertyCommand } from './useCases/createProperty.js';
90
- import { DeletePropertyCommand } from './useCases/deleteProperty.js';
91
- import { UpdatePropertyCommand } from './useCases/updateProperty.js';
92
- import { DescribePropertyCommand } from './useCases/describeProperty.js';
93
- import { UpdatePropertyFeaturesCommand } from './useCases/updatePropertyFeatures.js';
94
- import { EmailUserAccountSetupCommand } from './useCases/emailUserAccountSetup.js';
95
- import { CreateImageUploadEndpointCommand } from './useCases/createImageUploadEndpoint.js';
96
- import { DeleteMediaFileCommand } from './useCases/deleteMediaFile.js';
97
- import { UploadImageCommand } from './useCases/uploadImage.js';
98
- import { DescribeTimeSheetStatsCommand } from './useCases/describeTimeSheetStats.js';
99
- import { ListMyTimeSheetsCommand } from './useCases/listMyTimeSheets.js';
100
- import { DescribeTimeSheetCommand } from './useCases/describeTimeSheet.js';
101
- import { ListTimeSheetsCommand } from './useCases/listTimeSheets.js';
102
- import { CreateTimeSheetCommand } from './useCases/createTimeSheet.js';
103
- import { DeleteTimeSheetCommand } from './useCases/deleteTimeSheet.js';
104
- import { UpdateTimeSheetCommand } from './useCases/updateTimeSheet.js';
105
- import { CreateTimeSheetTimeEntryCommand } from './useCases/createTimeSheetTimeEntry.js';
106
- import { DeleteTimeSheetTimeEntryCommand } from './useCases/deleteTimeSheetTimeEntry.js';
107
- import { UpdateTimeSheetTimeEntryCommand } from './useCases/updateTimeSheetTimeEntry.js';
108
- import { StartSOSCommand } from './useCases/startSOS.js';
109
- import { StopSOSCommand } from './useCases/stopSOS.js';
110
- import { DescribeSOSCommand } from './useCases/describeSOS.js';
111
- import { DescribeIssueCommand } from './useCases/describeIssue.js';
112
- import { ListIssuesCommand } from './useCases/listIssues.js';
113
- import { DeleteIssueCommand } from './useCases/deleteIssue.js';
114
- import { CreateIssueCommand } from './useCases/createIssue.js';
115
- import { UpdateIssueCommand } from './useCases/updateIssue.js';
116
- import { BulkUpdateIssueCommand } from './useCases/bulkUpdateIssue.js';
117
- import { DescribeVendorCommand } from './useCases/describeVendor.js';
118
- import { ListVendorsCommand } from './useCases/listVendors.js';
119
- import { DeleteVendorCommand } from './useCases/deleteVendor.js';
120
- import { CreateVendorCommand } from './useCases/createVendor.js';
121
- import { UpdateVendorCommand } from './useCases/updateVendor.js';
122
- import { CreateAutomationCommand } from './useCases/createAutomation.js';
123
- import { ListAutomationsCommand } from './useCases/listAutomations.js';
124
- import { DescribeAutomationCommand } from './useCases/describeAutomation.js';
125
- import { UpdateAutomationCommand } from './useCases/updateAutomation.js';
126
- import { DeleteAutomationCommand } from './useCases/deleteAutomation.js';
127
- import { CreateDefaultAutomationsCommand } from './useCases/createDefaultAutomations.js';
128
- import { RunAutomationCommand } from './useCases/runAutomation.js';
129
- import { SendNotificationCommand } from './useCases/sendNotification.js';
130
- import { ListSessionsCommand } from './useCases/listSessions.js';
131
- import { DescribeSessionCommand } from './useCases/describeSession.js';
132
- import { DeleteSessionCommand } from './useCases/deleteSession.js';
133
- import { SetDevicesCommand } from './useCases/setDevices.js';
134
- import { CreateSystemCommand } from './useCases/createSystem.js';
135
- import { DeleteSystemCommand } from './useCases/deleteSystem.js';
136
- import { DescribeSystemCommand } from './useCases/describeSystem.js';
137
- import { ListSystemsCommand } from './useCases/listSystems.js';
138
- import { UpdateSystemCommand } from './useCases/updateSystem.js';
139
- import { CreateServerCommand } from './useCases/createServer.js';
140
- import { DeleteServerCommand } from './useCases/deleteServer.js';
141
- import { DescribeServerCommand } from './useCases/describeServer.js';
142
- import { ListServersCommand } from './useCases/listServers.js';
143
- import { UpdateServerCommand } from './useCases/updateServer.js';
144
-
145
- declare class KohostHTTPClient {
1
+ export class KohostHTTPClient {
146
2
  static get defs(): {
147
3
  apiKeyHeader: string;
148
4
  propertyHeader: string;
@@ -205,18 +61,16 @@ declare class KohostHTTPClient {
205
61
  on(event: "LoginRequired" | "PhoneVerificationRequired", callback: Function): void;
206
62
  emit(event: any, ...args: any[]): void;
207
63
  /**
208
- * @typedef {keyof typeof import('./useCases')} CommandName
209
- * @typedef {import('./useCases')[CommandName]} Command
64
+ * @typedef {keyof typeof import('./useCases.js')} CommandName
65
+ * @typedef {import('./useCases.js')[CommandName]} Command
210
66
  *
211
67
  * @param {Command} command
212
68
  */
213
- send(command: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Promise<any>;
69
+ send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
214
70
  /**
215
71
  * @param {Command} config
216
72
  * @returns {Request}
217
73
  */
218
- createRequest(config: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Request;
74
+ createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
219
75
  #private;
220
76
  }
221
-
222
- export { KohostHTTPClient };
@@ -1,207 +1,174 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- class KohostHTTPClient {
4
- static {
5
- __name(this, "KohostHTTPClient");
6
- }
7
- #onSuccess;
8
- #onError;
9
- /**
10
- @param {Object} options - The options to create the client
11
- @param {String} options.organizationId - The organization ID
12
- @param {String} options.propertyId - The property ID
13
- @param {String | URL} options.url - The base URL for the API endpint
14
- @param {String} options.apiKey - The API key to use for requests
15
- @param {Headers} options.headers - Additional headers to send with each request
16
- @param {Function} options.onSuccess - A callback to handle successful responses
17
- @param {Function} options.onError - A callback to handle errors
18
- */
19
- constructor(options = {
20
- url: "",
21
- propertyId: "",
22
- organizationId: "",
23
- apiKey: "",
24
- headers: new Headers({}),
25
- onSuccess: /* @__PURE__ */ __name((response) => response, "onSuccess"),
26
- onError: /* @__PURE__ */ __name((error) => error, "onError")
27
- }) {
28
- if (!options.url) throw new Error("options.url is required");
29
- this.options = options;
30
- this.baseUrl = new URL(options.url);
31
- this.headers = new Headers({
32
- "Content-Type": "application/json",
33
- Accept: "application/json",
34
- ...options.headers
35
- });
36
- if (options.apiKey) {
37
- this.headers.set(KohostHTTPClient.defs.apiKeyHeader, options.apiKey);
38
- }
39
- if (options.propertyId) {
40
- this.propertyId = options.propertyId;
41
- }
42
- if (options.organizationId) {
43
- this.organizationId = options.organizationId;
44
- }
45
- this.#onSuccess = options.onSuccess ? options.onSuccess : (response) => response;
46
- this.#onError = options.onError ? options.onError : (error) => error;
47
- this.callbacks = {};
48
- }
49
- /**
50
- *
51
- * @param {"LoginRequired" | "PhoneVerificationRequired"} event
52
- * @param {Function} callback
53
- */
54
- on(event, callback) {
55
- if (typeof callback !== "function") {
56
- throw new Error("Callback must be a function");
57
- }
58
- if (!this.callbacks[event]) {
59
- this.callbacks[event] = [];
60
- }
61
- this.callbacks[event].push(callback);
62
- }
63
- emit(event, ...args) {
64
- if (this.callbacks[event]) {
65
- this.callbacks[event].forEach((callback) => callback(...args));
66
- }
67
- }
68
- /**
69
- * @param {string} orgId
70
- * @returns {void}
71
- * @memberof KohostApiClient
72
- * @example
73
- * client.organizationId = "1234";
74
- */
75
- set organizationId(orgId) {
76
- const key = KohostHTTPClient.defs.organizationHeader;
77
- this.headers.set(key, orgId);
78
- }
79
- get organizationId() {
80
- const key = KohostHTTPClient.defs.organizationHeader;
81
- return this.headers.get(key);
82
- }
83
- /**
84
- * @param {string} propertyId
85
- * @returns {void}
86
- * @memberof KohostApiClient
87
- * @example
88
- * client.propertyId = "1234";
89
- */
90
- set propertyId(propertyId) {
91
- const key = KohostHTTPClient.defs.propertyHeader;
92
- this.headers.set(key, propertyId);
93
- }
94
- get propertyId() {
95
- const key = KohostHTTPClient.defs.propertyHeader;
96
- return this.headers.get(key);
97
- }
98
- static get defs() {
99
- return {
100
- apiKeyHeader: "X-Api-Key",
101
- propertyHeader: "X-Property-Id",
102
- organizationHeader: "X-Organization-Id"
103
- };
104
- }
105
- /**
106
- * @typedef {keyof typeof import('./useCases')} CommandName
107
- * @typedef {import('./useCases')[CommandName]} Command
108
- *
109
- * @param {Command} command
110
- */
111
- async send(command) {
112
- const commandConfig = command.config;
113
- const request = this.createRequest(commandConfig);
114
- const response = await fetch(request);
115
- const isJsonResponse = response.headers.get("Content-Type")?.includes("application/json") || false;
116
- const responseData = isJsonResponse ? await response.json() : response.body;
117
- if (!response.ok) {
118
- let error = responseData?.error || new Error(response.statusText);
119
- const status = response.status;
120
- const errorMessage = responseData?.error?.message;
121
- const expectedError = status >= 400 && status < 500;
122
- if (expectedError && errorMessage === "Phone Verification is required") {
123
- this.#onPhoneVerificationRequired();
124
- return Promise.reject(error);
125
- }
126
- if (expectedError && errorMessage === "Login Required") {
127
- this.#onLoginRequired();
128
- return Promise.reject(error);
129
- }
130
- if (expectedError && errorMessage === "No auth header or cookie provided") {
131
- this.#onLoginRequired();
132
- return Promise.reject(error);
133
- }
134
- error = this.#onError(error);
135
- return Promise.reject(error);
136
- }
137
- return this.#onSuccess(responseData);
138
- }
139
- #onLoginRequired() {
140
- this.emit("LoginRequired");
141
- }
142
- #onPhoneVerificationRequired() {
143
- this.emit("PhoneVerificationRequired");
144
- }
145
- /**
146
- * @param {Command} config
147
- * @returns {Request}
148
- */
149
- createRequest(config) {
150
- if (typeof config.headers !== "object") {
151
- config.headers = {};
152
- }
153
- let apiPath = config.url;
154
- if (apiPath.startsWith("/")) {
155
- apiPath = `.${apiPath}`;
156
- }
157
- const url = new URL(apiPath, this.baseUrl);
158
- const method = config.method?.toUpperCase() || "GET";
159
- if (config.params && typeof config.params === "object") {
160
- Object.entries(config.params).forEach(([key, value]) => {
161
- if (Array.isArray(value)) {
162
- value.forEach((item) => {
163
- if (typeof item === "object" && item !== null) {
164
- Object.entries(item).forEach(([itemKey, itemValue]) => {
165
- url.searchParams.append(`${key}[][${itemKey}]`, itemValue);
166
- });
167
- } else {
168
- url.searchParams.append(`${key}[]`, item);
169
- }
170
- });
171
- } else if (value === null || value === void 0) {
172
- url.searchParams.append(key, "");
173
- } else if (typeof value === "object") {
174
- Object.entries(value).forEach(([nestedKey, nestedValue]) => {
175
- if (Array.isArray(nestedValue)) {
176
- nestedValue.forEach((item) => {
177
- url.searchParams.append(`${key}[${nestedKey}][]`, item);
178
- });
179
- } else {
180
- url.searchParams.append(`${key}[${nestedKey}]`, nestedValue);
181
- }
182
- });
183
- } else {
184
- url.searchParams.append(key, value);
185
- }
186
- });
187
- }
188
- const headers = new Headers(this.headers);
189
- if (config.headers) {
190
- Object.keys(config.headers).forEach((key) => {
191
- headers.set(key, config.headers[key]);
192
- });
193
- }
194
- const body = config.data !== null && ["POST", "PUT", "PATCH"].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
195
- const request = new Request(url, {
196
- method,
197
- headers,
198
- credentials: "include",
199
- body
200
- });
201
- return request;
202
- }
203
- }
204
- export {
205
- KohostHTTPClient
1
+ //#region .generated/httpClient.js
2
+ var KohostHTTPClient = class KohostHTTPClient {
3
+ #onSuccess;
4
+ #onError;
5
+ /**
6
+ @param {Object} options - The options to create the client
7
+ @param {String} options.organizationId - The organization ID
8
+ @param {String} options.propertyId - The property ID
9
+ @param {String | URL} options.url - The base URL for the API endpint
10
+ @param {String} options.apiKey - The API key to use for requests
11
+ @param {Headers} options.headers - Additional headers to send with each request
12
+ @param {Function} options.onSuccess - A callback to handle successful responses
13
+ @param {Function} options.onError - A callback to handle errors
14
+ */
15
+ constructor(options = {
16
+ url: "",
17
+ propertyId: "",
18
+ organizationId: "",
19
+ apiKey: "",
20
+ headers: new Headers({}),
21
+ onSuccess: (response) => response,
22
+ onError: (error) => error
23
+ }) {
24
+ if (!options.url) throw new Error("options.url is required");
25
+ this.options = options;
26
+ this.baseUrl = new URL(options.url);
27
+ this.headers = new Headers({
28
+ "Content-Type": "application/json",
29
+ Accept: "application/json",
30
+ ...options.headers
31
+ });
32
+ if (options.apiKey) this.headers.set(KohostHTTPClient.defs.apiKeyHeader, options.apiKey);
33
+ if (options.propertyId) this.propertyId = options.propertyId;
34
+ if (options.organizationId) this.organizationId = options.organizationId;
35
+ this.#onSuccess = options.onSuccess ? options.onSuccess : (response) => response;
36
+ this.#onError = options.onError ? options.onError : (error) => error;
37
+ this.callbacks = {};
38
+ }
39
+ /**
40
+ *
41
+ * @param {"LoginRequired" | "PhoneVerificationRequired"} event
42
+ * @param {Function} callback
43
+ */
44
+ on(event, callback) {
45
+ if (typeof callback !== "function") throw new Error("Callback must be a function");
46
+ if (!this.callbacks[event]) this.callbacks[event] = [];
47
+ this.callbacks[event].push(callback);
48
+ }
49
+ emit(event, ...args) {
50
+ if (this.callbacks[event]) this.callbacks[event].forEach((callback) => callback(...args));
51
+ }
52
+ /**
53
+ * @param {string} orgId
54
+ * @returns {void}
55
+ * @memberof KohostApiClient
56
+ * @example
57
+ * client.organizationId = "1234";
58
+ */
59
+ set organizationId(orgId) {
60
+ const key = KohostHTTPClient.defs.organizationHeader;
61
+ this.headers.set(key, orgId);
62
+ }
63
+ get organizationId() {
64
+ const key = KohostHTTPClient.defs.organizationHeader;
65
+ return this.headers.get(key);
66
+ }
67
+ /**
68
+ * @param {string} propertyId
69
+ * @returns {void}
70
+ * @memberof KohostApiClient
71
+ * @example
72
+ * client.propertyId = "1234";
73
+ */
74
+ set propertyId(propertyId) {
75
+ const key = KohostHTTPClient.defs.propertyHeader;
76
+ this.headers.set(key, propertyId);
77
+ }
78
+ get propertyId() {
79
+ const key = KohostHTTPClient.defs.propertyHeader;
80
+ return this.headers.get(key);
81
+ }
82
+ static get defs() {
83
+ return {
84
+ apiKeyHeader: "X-Api-Key",
85
+ propertyHeader: "X-Property-Id",
86
+ organizationHeader: "X-Organization-Id"
87
+ };
88
+ }
89
+ /**
90
+ * @typedef {keyof typeof import('./useCases.js')} CommandName
91
+ * @typedef {import('./useCases.js')[CommandName]} Command
92
+ *
93
+ * @param {Command} command
94
+ */
95
+ async send(command) {
96
+ const commandConfig = command.config;
97
+ const request = this.createRequest(commandConfig);
98
+ const response = await fetch(request);
99
+ const responseData = response.headers.get("Content-Type")?.includes("application/json") || false ? await response.json() : response.body;
100
+ if (!response.ok) {
101
+ let error = responseData?.error || new Error(response.statusText);
102
+ const status = response.status;
103
+ const errorMessage = responseData?.error?.message;
104
+ const expectedError = status >= 400 && status < 500;
105
+ if (expectedError && errorMessage === "Phone Verification is required") {
106
+ this.#onPhoneVerificationRequired();
107
+ return Promise.reject(error);
108
+ }
109
+ if (expectedError && errorMessage === "Login Required") {
110
+ this.#onLoginRequired();
111
+ return Promise.reject(error);
112
+ }
113
+ if (expectedError && errorMessage === "No auth header or cookie provided") {
114
+ this.#onLoginRequired();
115
+ return Promise.reject(error);
116
+ }
117
+ error = this.#onError(error);
118
+ return Promise.reject(error);
119
+ }
120
+ return this.#onSuccess(responseData);
121
+ }
122
+ #onLoginRequired() {
123
+ this.emit("LoginRequired");
124
+ }
125
+ #onPhoneVerificationRequired() {
126
+ this.emit("PhoneVerificationRequired");
127
+ }
128
+ /**
129
+ * @param {Command} config
130
+ * @returns {Request}
131
+ */
132
+ createRequest(config) {
133
+ if (typeof config.headers !== "object") config.headers = {};
134
+ let apiPath = config.url;
135
+ if (apiPath.startsWith("/")) apiPath = `.${apiPath}`;
136
+ const url = new URL(apiPath, this.baseUrl);
137
+ const method = config.method?.toUpperCase() || "GET";
138
+ if (config.params && typeof config.params === "object") Object.entries(config.params).forEach(([key, value]) => {
139
+ if (Array.isArray(value)) value.forEach((item) => {
140
+ if (typeof item === "object" && item !== null) Object.entries(item).forEach(([itemKey, itemValue]) => {
141
+ url.searchParams.append(`${key}[][${itemKey}]`, itemValue);
142
+ });
143
+ else url.searchParams.append(`${key}[]`, item);
144
+ });
145
+ else if (value === null || value === void 0) url.searchParams.append(key, "");
146
+ else if (typeof value === "object") Object.entries(value).forEach(([nestedKey, nestedValue]) => {
147
+ if (Array.isArray(nestedValue)) nestedValue.forEach((item) => {
148
+ url.searchParams.append(`${key}[${nestedKey}][]`, item);
149
+ });
150
+ else url.searchParams.append(`${key}[${nestedKey}]`, nestedValue);
151
+ });
152
+ else url.searchParams.append(key, value);
153
+ });
154
+ const headers = new Headers(this.headers);
155
+ if (config.headers) Object.keys(config.headers).forEach((key) => {
156
+ headers.set(key, config.headers[key]);
157
+ });
158
+ const body = config.data !== null && [
159
+ "POST",
160
+ "PUT",
161
+ "PATCH"
162
+ ].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
163
+ return new Request(url, {
164
+ method,
165
+ headers,
166
+ credentials: "include",
167
+ body
168
+ });
169
+ }
206
170
  };
171
+ //#endregion
172
+ export { KohostHTTPClient };
173
+
207
174
  //# sourceMappingURL=httpClient.js.map