@awarevue/api-types 2.0.22 → 2.0.24

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 (377) hide show
  1. package/dist/_legacy/index.d.ts +2 -0
  2. package/dist/_legacy/index.js +2 -0
  3. package/dist/_legacy/milestone.js +1 -0
  4. package/dist/_legacy/orchid.js +1 -0
  5. package/dist/alarm-automation.d.ts +3 -3
  6. package/dist/alarm-automation.js +26 -37
  7. package/dist/api/agent-protocol/index.d.ts +1 -0
  8. package/dist/api/agent-protocol/index.js +1 -0
  9. package/dist/{agent-communication → api/agent-protocol}/protocol.d.ts +407 -598
  10. package/dist/api/agent-protocol/protocol.js +382 -0
  11. package/dist/api/commands/alarm.js +59 -0
  12. package/dist/{commands → api/commands}/all.d.ts +83 -83
  13. package/dist/{commands → api/commands}/all.js +22 -25
  14. package/dist/api/commands/camera-lift.js +14 -0
  15. package/dist/api/commands/camera.js +93 -0
  16. package/dist/api/commands/display.js +34 -0
  17. package/dist/api/commands/door.js +24 -0
  18. package/dist/api/commands/index.js +12 -0
  19. package/dist/api/commands/intercom-terminal.js +2 -0
  20. package/dist/api/commands/io-board.js +12 -0
  21. package/dist/api/commands/nvr-exporter.js +23 -0
  22. package/dist/api/commands/pbx.js +14 -0
  23. package/dist/api/commands/presence-tracker.js +30 -0
  24. package/dist/api/commands/server.js +24 -0
  25. package/dist/api/error.js +181 -0
  26. package/dist/api/events/alarm.js +52 -0
  27. package/dist/{events → api/events}/all.d.ts +8 -8
  28. package/dist/api/events/all.js +124 -0
  29. package/dist/api/events/camera.js +84 -0
  30. package/dist/api/events/display.js +6 -0
  31. package/dist/api/events/door.js +59 -0
  32. package/dist/api/events/index.js +12 -0
  33. package/dist/api/events/intercom-terminal.js +16 -0
  34. package/dist/api/events/io-board.js +10 -0
  35. package/dist/api/events/nvr-exporter.js +18 -0
  36. package/dist/api/events/panic-button.js +8 -0
  37. package/dist/api/events/presence-tracker.js +30 -0
  38. package/dist/api/events/reader.js +10 -0
  39. package/dist/{events → api/events}/server.d.ts +5 -5
  40. package/dist/api/events/server.js +12 -0
  41. package/dist/api/index.d.ts +9 -4
  42. package/dist/api/index.js +9 -20
  43. package/dist/api/mqtt/index.d.ts +1 -0
  44. package/dist/api/mqtt/index.js +1 -0
  45. package/dist/api/mqtt/payloads.js +18 -0
  46. package/dist/api/queries/all.js +25 -0
  47. package/dist/api/queries/camera.js +24 -0
  48. package/dist/api/queries/index.js +5 -0
  49. package/dist/api/queries/nvr-analytics-server.js +73 -0
  50. package/dist/api/queries/nvr-exporter.js +33 -0
  51. package/dist/api/queries/nvr-recorder.js +39 -0
  52. package/dist/api/rest/access-rule.d.ts +117 -0
  53. package/dist/api/rest/access-rule.js +10 -0
  54. package/dist/{access-control → api/rest}/agreement.d.ts +0 -20
  55. package/dist/api/rest/agreement.js +7 -0
  56. package/dist/api/rest/alarm.js +1 -0
  57. package/dist/{api-keys.d.ts → api/rest/api-keys.d.ts} +0 -20
  58. package/dist/api/rest/api-keys.js +11 -0
  59. package/dist/api/rest/app.js +9 -0
  60. package/dist/api/rest/auth.js +16 -0
  61. package/dist/{automation.d.ts → api/rest/automation.d.ts} +0 -217
  62. package/dist/api/rest/automation.js +14 -0
  63. package/dist/api/rest/aware-config.js +1 -0
  64. package/dist/{bookmarks.d.ts → api/rest/bookmarks.d.ts} +0 -49
  65. package/dist/api/rest/bookmarks.js +18 -0
  66. package/dist/api/rest/cast.js +7 -0
  67. package/dist/{custom-field.d.ts → api/rest/custom-field.d.ts} +1 -19
  68. package/dist/api/rest/custom-field.js +3 -0
  69. package/dist/{device-event.d.ts → api/rest/device-event.d.ts} +1 -1
  70. package/dist/api/rest/device-event.js +1 -0
  71. package/dist/{device-group.d.ts → api/rest/device-group.d.ts} +0 -23
  72. package/dist/api/rest/device-group.js +17 -0
  73. package/dist/api/rest/file.js +1 -0
  74. package/dist/api/rest/index.d.ts +34 -0
  75. package/dist/api/rest/index.js +34 -0
  76. package/dist/{device-factory.d.ts → api/rest/io-device.d.ts} +1 -1
  77. package/dist/api/rest/io-device.js +19 -0
  78. package/dist/{layout.d.ts → api/rest/layout.d.ts} +6 -107
  79. package/dist/api/rest/layout.js +19 -0
  80. package/dist/{macros.d.ts → api/rest/macros.d.ts} +0 -82
  81. package/dist/api/rest/macros.js +8 -0
  82. package/dist/api/rest/media.js +65 -0
  83. package/dist/api/rest/module-config.d.ts +19 -0
  84. package/dist/api/rest/module-config.js +1 -0
  85. package/dist/api/rest/notifications.d.ts +21 -0
  86. package/dist/api/rest/notifications.js +9 -0
  87. package/dist/api/rest/person-agreement.d.ts +15 -0
  88. package/dist/api/rest/person-agreement.js +6 -0
  89. package/dist/api/rest/person-presence.d.ts +72 -0
  90. package/dist/api/rest/person-presence.js +29 -0
  91. package/dist/{access-control → api/rest}/person-type.d.ts +1 -33
  92. package/dist/api/rest/person-type.js +8 -0
  93. package/dist/api/rest/person.d.ts +128 -0
  94. package/dist/api/rest/person.js +8 -0
  95. package/dist/api/{query.js → rest/query.js} +8 -13
  96. package/dist/api/rest/schedule.d.ts +249 -0
  97. package/dist/api/rest/schedule.js +9 -0
  98. package/dist/{security-level.d.ts → api/rest/security-level.d.ts} +0 -29
  99. package/dist/api/rest/security-level.js +5 -0
  100. package/dist/{template.d.ts → api/rest/template.d.ts} +1 -18
  101. package/dist/api/rest/template.js +12 -0
  102. package/dist/{token-conversion.d.ts → api/rest/token-conversion.d.ts} +0 -22
  103. package/dist/api/rest/token-conversion.js +5 -0
  104. package/dist/{user.d.ts → api/rest/user.d.ts} +10 -60
  105. package/dist/api/rest/user.js +32 -0
  106. package/dist/api/rest/view.d.ts +397 -0
  107. package/dist/api/rest/view.js +16 -0
  108. package/dist/api/rest/webrtc-playback.js +8 -0
  109. package/dist/{access-control → api/rest}/zone.d.ts +0 -29
  110. package/dist/api/rest/zone.js +10 -0
  111. package/dist/api/state/index.d.ts +10 -0
  112. package/dist/api/state/index.js +1 -0
  113. package/dist/api/ws/device-communication.js +55 -0
  114. package/dist/api/ws/index.js +5 -0
  115. package/dist/api/ws/notifications.js +20 -0
  116. package/dist/api/ws/progress.js +44 -0
  117. package/dist/api/ws/web-rtc-signaling.js +92 -0
  118. package/dist/api/ws/web-socket.js +2 -0
  119. package/dist/index.d.ts +1 -36
  120. package/dist/index.js +6 -57
  121. package/dist/{access-control → objects}/access-rule.d.ts +9 -78
  122. package/dist/objects/access-rule.js +36 -0
  123. package/dist/objects/agent-metadata.d.ts +192 -0
  124. package/dist/objects/agent-metadata.js +49 -0
  125. package/dist/objects/agreement.d.ts +21 -0
  126. package/dist/objects/agreement.js +8 -0
  127. package/dist/{objects.d.ts → objects/all.d.ts} +18 -11
  128. package/dist/{objects.js → objects/all.js} +4 -7
  129. package/dist/objects/api-key.d.ts +21 -0
  130. package/dist/objects/api-key.js +8 -0
  131. package/dist/objects/automation-rule.d.ts +218 -0
  132. package/dist/objects/automation-rule.js +51 -0
  133. package/dist/objects/bookmark.d.ts +50 -0
  134. package/dist/objects/bookmark.js +13 -0
  135. package/dist/objects/credential.js +11 -0
  136. package/dist/objects/custom-field.d.ts +20 -0
  137. package/dist/objects/custom-field.js +14 -0
  138. package/dist/{device → objects/device}/alarm.js +3 -6
  139. package/dist/{device → objects/device}/any-device.d.ts +510 -510
  140. package/dist/objects/device/any-device.js +239 -0
  141. package/dist/objects/device/camera-lift.js +4 -0
  142. package/dist/objects/device/camera.js +32 -0
  143. package/dist/objects/device/device-gateway.js +2 -0
  144. package/dist/{device-import.d.ts → objects/device/device-import.d.ts} +44 -44
  145. package/dist/objects/device/device-import.js +30 -0
  146. package/dist/{device-relation.js → objects/device/device-relation.js} +13 -16
  147. package/dist/objects/device/display.js +4 -0
  148. package/dist/objects/device/door.js +9 -0
  149. package/dist/{device → objects/device}/index.d.ts +2 -0
  150. package/dist/objects/device/index.js +22 -0
  151. package/dist/objects/device/intercom-operator.js +1 -0
  152. package/dist/objects/device/intercom-terminal.js +23 -0
  153. package/dist/objects/device/io-board.js +7 -0
  154. package/dist/objects/device/motion-sensor.js +4 -0
  155. package/dist/objects/device/nvr-analytics-server.js +6 -0
  156. package/dist/objects/device/nvr-exporter.js +7 -0
  157. package/dist/objects/device/nvr-recorder.js +6 -0
  158. package/dist/objects/device/panic-button.js +4 -0
  159. package/dist/objects/device/pbx.js +6 -0
  160. package/dist/objects/device/presence-tracker.js +1 -0
  161. package/dist/objects/device/reader.js +1 -0
  162. package/dist/{device → objects/device}/server.d.ts +1 -1
  163. package/dist/objects/device/server.js +1 -0
  164. package/dist/objects/device/system.js +6 -0
  165. package/dist/objects/device-group.d.ts +24 -0
  166. package/dist/objects/device-group.js +9 -0
  167. package/dist/objects/index.d.ts +28 -0
  168. package/dist/objects/index.js +28 -0
  169. package/dist/objects/layout.d.ts +102 -0
  170. package/dist/objects/layout.js +22 -0
  171. package/dist/objects/macro.d.ts +83 -0
  172. package/dist/objects/macro.js +22 -0
  173. package/dist/{module-config.d.ts → objects/module-config.d.ts} +1 -18
  174. package/dist/objects/module-config.js +1 -0
  175. package/dist/{notifications.d.ts → objects/notification.d.ts} +0 -20
  176. package/dist/objects/notification.js +13 -0
  177. package/dist/{access-control → objects}/person-agreement.d.ts +1 -15
  178. package/dist/objects/person-agreement.js +8 -0
  179. package/dist/{access-control → objects}/person-presence.d.ts +2 -73
  180. package/dist/objects/person-presence.js +35 -0
  181. package/dist/objects/person-type.d.ts +33 -0
  182. package/dist/objects/person-type.js +16 -0
  183. package/dist/{access-control → objects}/person.d.ts +74 -140
  184. package/dist/objects/person.js +42 -0
  185. package/dist/objects/role.d.ts +21 -0
  186. package/dist/objects/role.js +15 -0
  187. package/dist/{access-control → objects}/schedule.d.ts +4 -129
  188. package/dist/objects/schedule.js +53 -0
  189. package/dist/objects/security-level.d.ts +30 -0
  190. package/dist/objects/security-level.js +11 -0
  191. package/dist/objects/template.d.ts +20 -0
  192. package/dist/objects/template.js +8 -0
  193. package/dist/objects/token-conversion.d.ts +23 -0
  194. package/dist/objects/token-conversion.js +8 -0
  195. package/dist/objects/user.d.ts +31 -0
  196. package/dist/objects/user.js +12 -0
  197. package/dist/{view.d.ts → objects/view.d.ts} +3 -399
  198. package/dist/objects/view.js +64 -0
  199. package/dist/{world-objects.js → objects/world-object.js} +5 -8
  200. package/dist/objects/zone.d.ts +41 -0
  201. package/dist/objects/zone.js +15 -0
  202. package/dist/package.json +1 -1
  203. package/dist/permissions.js +146 -149
  204. package/dist/primitives.d.ts +30 -30
  205. package/dist/primitives.js +27 -30
  206. package/package.json +1 -1
  207. package/dist/access-control/access-rule.js +0 -49
  208. package/dist/access-control/agreement.js +0 -20
  209. package/dist/access-control/credential.js +0 -17
  210. package/dist/access-control/index.d.ts +0 -9
  211. package/dist/access-control/index.js +0 -25
  212. package/dist/access-control/person-agreement.js +0 -19
  213. package/dist/access-control/person-presence.js +0 -66
  214. package/dist/access-control/person-type.js +0 -29
  215. package/dist/access-control/person.js +0 -53
  216. package/dist/access-control/schedule.js +0 -65
  217. package/dist/access-control/zone.js +0 -28
  218. package/dist/agent-communication/index.d.ts +0 -2
  219. package/dist/agent-communication/index.js +0 -18
  220. package/dist/agent-communication/mqtt-payloads.js +0 -21
  221. package/dist/agent-communication/protocol.js +0 -436
  222. package/dist/api/alarm.js +0 -2
  223. package/dist/api/auth.js +0 -19
  224. package/dist/api/media.js +0 -68
  225. package/dist/api-keys.js +0 -21
  226. package/dist/app.js +0 -12
  227. package/dist/automation.js +0 -66
  228. package/dist/aware-config.js +0 -2
  229. package/dist/bookmarks.js +0 -32
  230. package/dist/cast.js +0 -13
  231. package/dist/commands/alarm.js +0 -62
  232. package/dist/commands/camera-lift.js +0 -17
  233. package/dist/commands/camera.js +0 -97
  234. package/dist/commands/display.js +0 -37
  235. package/dist/commands/door.js +0 -27
  236. package/dist/commands/index.js +0 -28
  237. package/dist/commands/intercom-terminal.js +0 -3
  238. package/dist/commands/io-board.js +0 -15
  239. package/dist/commands/nvr-exporter.js +0 -26
  240. package/dist/commands/pbx.js +0 -17
  241. package/dist/commands/presence-tracker.js +0 -33
  242. package/dist/commands/server.js +0 -27
  243. package/dist/custom-field.js +0 -19
  244. package/dist/device/any-device.js +0 -242
  245. package/dist/device/camera-lift.js +0 -7
  246. package/dist/device/camera.js +0 -35
  247. package/dist/device/device-gateway.js +0 -5
  248. package/dist/device/display.js +0 -7
  249. package/dist/device/door.js +0 -12
  250. package/dist/device/index.js +0 -36
  251. package/dist/device/intercom-operator.js +0 -4
  252. package/dist/device/intercom-terminal.js +0 -26
  253. package/dist/device/io-board.js +0 -10
  254. package/dist/device/motion-sensor.js +0 -7
  255. package/dist/device/nvr-analytics-server.js +0 -9
  256. package/dist/device/nvr-exporter.js +0 -10
  257. package/dist/device/nvr-recorder.js +0 -9
  258. package/dist/device/panic-button.js +0 -7
  259. package/dist/device/pbx.js +0 -9
  260. package/dist/device/presence-tracker.js +0 -4
  261. package/dist/device/reader.js +0 -4
  262. package/dist/device/server.js +0 -4
  263. package/dist/device/system.js +0 -9
  264. package/dist/device-event.js +0 -2
  265. package/dist/device-factory.js +0 -26
  266. package/dist/device-group.js +0 -31
  267. package/dist/device-import.js +0 -33
  268. package/dist/device-state.d.ts +0 -10
  269. package/dist/device-state.js +0 -2
  270. package/dist/error.js +0 -185
  271. package/dist/events/alarm.js +0 -55
  272. package/dist/events/all.js +0 -128
  273. package/dist/events/camera.js +0 -87
  274. package/dist/events/display.js +0 -9
  275. package/dist/events/door.js +0 -62
  276. package/dist/events/index.js +0 -28
  277. package/dist/events/intercom-terminal.js +0 -19
  278. package/dist/events/io-board.js +0 -13
  279. package/dist/events/nvr-exporter.js +0 -21
  280. package/dist/events/panic-button.js +0 -11
  281. package/dist/events/presence-tracker.js +0 -33
  282. package/dist/events/reader.js +0 -13
  283. package/dist/events/server.js +0 -15
  284. package/dist/file.js +0 -2
  285. package/dist/layout.js +0 -45
  286. package/dist/macros.js +0 -32
  287. package/dist/messages/device-communication.js +0 -63
  288. package/dist/messages/index.js +0 -21
  289. package/dist/messages/notifications.js +0 -27
  290. package/dist/messages/progress.js +0 -51
  291. package/dist/messages/web-rtc-signaling.js +0 -99
  292. package/dist/messages/web-socket.js +0 -5
  293. package/dist/milestone.js +0 -2
  294. package/dist/module-config.js +0 -2
  295. package/dist/notifications.js +0 -23
  296. package/dist/orchid.js +0 -2
  297. package/dist/queries/all.js +0 -28
  298. package/dist/queries/camera.js +0 -27
  299. package/dist/queries/index.js +0 -21
  300. package/dist/queries/nvr-analytics-server.js +0 -76
  301. package/dist/queries/nvr-exporter.js +0 -36
  302. package/dist/queries/nvr-recorder.js +0 -42
  303. package/dist/security-level.js +0 -18
  304. package/dist/template.js +0 -21
  305. package/dist/token-conversion.js +0 -15
  306. package/dist/user.js +0 -57
  307. package/dist/view.js +0 -84
  308. package/dist/webrtc-playback.js +0 -14
  309. package/dist/{milestone.d.ts → _legacy/milestone.d.ts} +0 -0
  310. package/dist/{orchid.d.ts → _legacy/orchid.d.ts} +0 -0
  311. package/dist/{commands → api/commands}/alarm.d.ts +0 -0
  312. package/dist/{commands → api/commands}/camera-lift.d.ts +0 -0
  313. package/dist/{commands → api/commands}/camera.d.ts +0 -0
  314. package/dist/{commands → api/commands}/display.d.ts +0 -0
  315. package/dist/{commands → api/commands}/door.d.ts +0 -0
  316. package/dist/{commands → api/commands}/index.d.ts +0 -0
  317. package/dist/{commands → api/commands}/intercom-terminal.d.ts +0 -0
  318. package/dist/{commands → api/commands}/io-board.d.ts +0 -0
  319. package/dist/{commands → api/commands}/nvr-exporter.d.ts +86 -86
  320. package/dist/{commands → api/commands}/pbx.d.ts +0 -0
  321. package/dist/{commands → api/commands}/presence-tracker.d.ts +0 -0
  322. package/dist/{commands → api/commands}/server.d.ts +78 -78
  323. package/dist/{error.d.ts → api/error.d.ts} +0 -0
  324. package/dist/{events → api/events}/alarm.d.ts +0 -0
  325. package/dist/{events → api/events}/camera.d.ts +0 -0
  326. package/dist/{events → api/events}/display.d.ts +0 -0
  327. package/dist/{events → api/events}/door.d.ts +0 -0
  328. package/dist/{events → api/events}/index.d.ts +0 -0
  329. package/dist/{events → api/events}/intercom-terminal.d.ts +0 -0
  330. package/dist/{events → api/events}/io-board.d.ts +0 -0
  331. package/dist/{events → api/events}/nvr-exporter.d.ts +4 -4
  332. package/dist/{events → api/events}/panic-button.d.ts +0 -0
  333. package/dist/{events → api/events}/presence-tracker.d.ts +8 -8
  334. package/dist/{events → api/events}/reader.d.ts +0 -0
  335. package/dist/{agent-communication/mqtt-payloads.d.ts → api/mqtt/payloads.d.ts} +0 -0
  336. package/dist/{queries → api/queries}/all.d.ts +83 -83
  337. package/dist/{queries → api/queries}/camera.d.ts +0 -0
  338. package/dist/{queries → api/queries}/index.d.ts +0 -0
  339. package/dist/{queries → api/queries}/nvr-analytics-server.d.ts +4 -4
  340. package/dist/{queries → api/queries}/nvr-exporter.d.ts +0 -0
  341. package/dist/{queries → api/queries}/nvr-recorder.d.ts +162 -162
  342. package/dist/api/{alarm.d.ts → rest/alarm.d.ts} +0 -0
  343. package/dist/{app.d.ts → api/rest/app.d.ts} +0 -0
  344. package/dist/api/{auth.d.ts → rest/auth.d.ts} +0 -0
  345. package/dist/{aware-config.d.ts → api/rest/aware-config.d.ts} +0 -0
  346. package/dist/{cast.d.ts → api/rest/cast.d.ts} +0 -0
  347. package/dist/{file.d.ts → api/rest/file.d.ts} +0 -0
  348. package/dist/api/{media.d.ts → rest/media.d.ts} +2 -2
  349. /package/dist/api/{query.d.ts → rest/query.d.ts} +0 -0
  350. /package/dist/{webrtc-playback.d.ts → api/rest/webrtc-playback.d.ts} +0 -0
  351. /package/dist/{messages → api/ws}/device-communication.d.ts +0 -0
  352. /package/dist/{messages → api/ws}/index.d.ts +0 -0
  353. /package/dist/{messages → api/ws}/notifications.d.ts +0 -0
  354. /package/dist/{messages → api/ws}/progress.d.ts +0 -0
  355. /package/dist/{messages → api/ws}/web-rtc-signaling.d.ts +0 -0
  356. /package/dist/{messages → api/ws}/web-socket.d.ts +0 -0
  357. /package/dist/{access-control → objects}/credential.d.ts +0 -0
  358. /package/dist/{device → objects/device}/alarm.d.ts +0 -0
  359. /package/dist/{device → objects/device}/camera-lift.d.ts +0 -0
  360. /package/dist/{device → objects/device}/camera.d.ts +0 -0
  361. /package/dist/{device → objects/device}/device-gateway.d.ts +0 -0
  362. /package/dist/{device-relation.d.ts → objects/device/device-relation.d.ts} +0 -0
  363. /package/dist/{device → objects/device}/display.d.ts +0 -0
  364. /package/dist/{device → objects/device}/door.d.ts +0 -0
  365. /package/dist/{device → objects/device}/intercom-operator.d.ts +0 -0
  366. /package/dist/{device → objects/device}/intercom-terminal.d.ts +0 -0
  367. /package/dist/{device → objects/device}/io-board.d.ts +0 -0
  368. /package/dist/{device → objects/device}/motion-sensor.d.ts +0 -0
  369. /package/dist/{device → objects/device}/nvr-analytics-server.d.ts +0 -0
  370. /package/dist/{device → objects/device}/nvr-exporter.d.ts +0 -0
  371. /package/dist/{device → objects/device}/nvr-recorder.d.ts +0 -0
  372. /package/dist/{device → objects/device}/panic-button.d.ts +0 -0
  373. /package/dist/{device → objects/device}/pbx.d.ts +0 -0
  374. /package/dist/{device → objects/device}/presence-tracker.d.ts +0 -0
  375. /package/dist/{device → objects/device}/reader.d.ts +0 -0
  376. /package/dist/{device → objects/device}/system.d.ts +0 -0
  377. /package/dist/{world-objects.d.ts → objects/world-object.d.ts} +0 -0
@@ -1,30 +1,4 @@
1
1
  import z from 'zod';
2
- export declare const sLayoutDeviceDto: z.ZodObject<{
3
- deviceId: z.ZodString;
4
- x: z.ZodNumber;
5
- y: z.ZodNumber;
6
- scale: z.ZodNumber;
7
- rotation: z.ZodNumber;
8
- fov: z.ZodNumber;
9
- far: z.ZodNumber;
10
- }, "strip", z.ZodTypeAny, {
11
- scale: number;
12
- x: number;
13
- y: number;
14
- deviceId: string;
15
- rotation: number;
16
- fov: number;
17
- far: number;
18
- }, {
19
- scale: number;
20
- x: number;
21
- y: number;
22
- deviceId: string;
23
- rotation: number;
24
- fov: number;
25
- far: number;
26
- }>;
27
- export type LayoutDeviceDto = z.infer<typeof sLayoutDeviceDto>;
28
2
  export declare const sAddLayoutRequest: z.ZodObject<{
29
3
  name: z.ZodString;
30
4
  thumbnailId: z.ZodString;
@@ -67,9 +41,9 @@ export declare const sAddLayoutRequest: z.ZodObject<{
67
41
  fov: number;
68
42
  far: number;
69
43
  }[];
44
+ colorize: boolean;
70
45
  thumbnailId: string;
71
46
  imageId: string;
72
- colorize: boolean;
73
47
  order?: number | undefined;
74
48
  }, {
75
49
  name: string;
@@ -82,9 +56,9 @@ export declare const sAddLayoutRequest: z.ZodObject<{
82
56
  fov: number;
83
57
  far: number;
84
58
  }[];
59
+ colorize: boolean;
85
60
  thumbnailId: string;
86
61
  imageId: string;
87
- colorize: boolean;
88
62
  order?: number | undefined;
89
63
  }>;
90
64
  export type AddLayoutRequest = z.infer<typeof sAddLayoutRequest>;
@@ -123,6 +97,7 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
123
97
  }, "strip", z.ZodTypeAny, {
124
98
  name?: string | undefined;
125
99
  order?: number | undefined;
100
+ isDefault?: boolean | undefined;
126
101
  devices?: {
127
102
  scale: number;
128
103
  x: number;
@@ -132,13 +107,13 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
132
107
  fov: number;
133
108
  far: number;
134
109
  }[] | undefined;
135
- isDefault?: boolean | undefined;
110
+ colorize?: boolean | undefined;
136
111
  thumbnailId?: string | undefined;
137
112
  imageId?: string | undefined;
138
- colorize?: boolean | undefined;
139
113
  }, {
140
114
  name?: string | undefined;
141
115
  order?: number | undefined;
116
+ isDefault?: boolean | undefined;
142
117
  devices?: {
143
118
  scale: number;
144
119
  x: number;
@@ -148,86 +123,10 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
148
123
  fov: number;
149
124
  far: number;
150
125
  }[] | undefined;
151
- isDefault?: boolean | undefined;
126
+ colorize?: boolean | undefined;
152
127
  thumbnailId?: string | undefined;
153
128
  imageId?: string | undefined;
154
- colorize?: boolean | undefined;
155
129
  }>;
156
130
  export type UpdateLayoutRequest = {
157
131
  id: string;
158
132
  } & z.infer<typeof sUpdateLayoutRequest>;
159
- export declare const sLayoutDto: z.ZodObject<{
160
- id: z.ZodString;
161
- name: z.ZodString;
162
- thumbnailUrl: z.ZodString;
163
- imageUrl: z.ZodString;
164
- order: z.ZodNumber;
165
- isDefault: z.ZodBoolean;
166
- devices: z.ZodArray<z.ZodObject<{
167
- deviceId: z.ZodString;
168
- x: z.ZodNumber;
169
- y: z.ZodNumber;
170
- scale: z.ZodNumber;
171
- rotation: z.ZodNumber;
172
- fov: z.ZodNumber;
173
- far: z.ZodNumber;
174
- }, "strip", z.ZodTypeAny, {
175
- scale: number;
176
- x: number;
177
- y: number;
178
- deviceId: string;
179
- rotation: number;
180
- fov: number;
181
- far: number;
182
- }, {
183
- scale: number;
184
- x: number;
185
- y: number;
186
- deviceId: string;
187
- rotation: number;
188
- fov: number;
189
- far: number;
190
- }>, "many">;
191
- colorize: z.ZodBoolean;
192
- createdOn: z.ZodString;
193
- lastModifiedOn: z.ZodString;
194
- }, "strip", z.ZodTypeAny, {
195
- name: string;
196
- id: string;
197
- order: number;
198
- devices: {
199
- scale: number;
200
- x: number;
201
- y: number;
202
- deviceId: string;
203
- rotation: number;
204
- fov: number;
205
- far: number;
206
- }[];
207
- isDefault: boolean;
208
- createdOn: string;
209
- lastModifiedOn: string;
210
- colorize: boolean;
211
- thumbnailUrl: string;
212
- imageUrl: string;
213
- }, {
214
- name: string;
215
- id: string;
216
- order: number;
217
- devices: {
218
- scale: number;
219
- x: number;
220
- y: number;
221
- deviceId: string;
222
- rotation: number;
223
- fov: number;
224
- far: number;
225
- }[];
226
- isDefault: boolean;
227
- createdOn: string;
228
- lastModifiedOn: string;
229
- colorize: boolean;
230
- thumbnailUrl: string;
231
- imageUrl: string;
232
- }>;
233
- export type LayoutDto = z.infer<typeof sLayoutDto>;
@@ -0,0 +1,19 @@
1
+ import { sLayoutDeviceDto } from '../../objects/layout';
2
+ import z from 'zod';
3
+ export const sAddLayoutRequest = z.object({
4
+ name: z.string().nonempty(),
5
+ thumbnailId: z.string().nonempty(),
6
+ imageId: z.string().nonempty(),
7
+ order: z.number().optional(),
8
+ devices: z.array(sLayoutDeviceDto),
9
+ colorize: z.boolean(),
10
+ });
11
+ export const sUpdateLayoutRequest = z.object({
12
+ name: z.string().optional(),
13
+ thumbnailId: z.string().optional(),
14
+ imageId: z.string().optional(),
15
+ order: z.number().optional(),
16
+ isDefault: z.boolean().optional(),
17
+ devices: z.array(sLayoutDeviceDto).optional(),
18
+ colorize: z.boolean().optional(),
19
+ });
@@ -1,84 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const sMacroItemDto: z.ZodObject<{
3
- id: z.ZodNullable<z.ZodString>;
4
- stepId: z.ZodString;
5
- deviceId: z.ZodString;
6
- command: z.ZodString;
7
- params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- }, "strip", z.ZodTypeAny, {
9
- id: string | null;
10
- params: Record<string, unknown>;
11
- deviceId: string;
12
- command: string;
13
- stepId: string;
14
- }, {
15
- id: string | null;
16
- params: Record<string, unknown>;
17
- deviceId: string;
18
- command: string;
19
- stepId: string;
20
- }>;
21
- export declare const sMacroDto: z.ZodObject<{
22
- id: z.ZodString;
23
- displayName: z.ZodString;
24
- code: z.ZodNullable<z.ZodString>;
25
- module: z.ZodNullable<z.ZodString>;
26
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
27
- createdOn: z.ZodString;
28
- lastModifiedOn: z.ZodString;
29
- createdBy: z.ZodNullable<z.ZodString>;
30
- items: z.ZodArray<z.ZodObject<{
31
- id: z.ZodNullable<z.ZodString>;
32
- stepId: z.ZodString;
33
- deviceId: z.ZodString;
34
- command: z.ZodString;
35
- params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
36
- }, "strip", z.ZodTypeAny, {
37
- id: string | null;
38
- params: Record<string, unknown>;
39
- deviceId: string;
40
- command: string;
41
- stepId: string;
42
- }, {
43
- id: string | null;
44
- params: Record<string, unknown>;
45
- deviceId: string;
46
- command: string;
47
- stepId: string;
48
- }>, "many">;
49
- }, "strip", z.ZodTypeAny, {
50
- code: string | null;
51
- id: string;
52
- module: string | null;
53
- metadata: Record<string, unknown>;
54
- items: {
55
- id: string | null;
56
- params: Record<string, unknown>;
57
- deviceId: string;
58
- command: string;
59
- stepId: string;
60
- }[];
61
- displayName: string;
62
- createdOn: string;
63
- lastModifiedOn: string;
64
- createdBy: string | null;
65
- }, {
66
- code: string | null;
67
- id: string;
68
- module: string | null;
69
- metadata: Record<string, unknown>;
70
- items: {
71
- id: string | null;
72
- params: Record<string, unknown>;
73
- deviceId: string;
74
- command: string;
75
- stepId: string;
76
- }[];
77
- displayName: string;
78
- createdOn: string;
79
- lastModifiedOn: string;
80
- createdBy: string | null;
81
- }>;
82
2
  export declare const sAddMacroRequest: z.ZodObject<Omit<{
83
3
  id: z.ZodString;
84
4
  displayName: z.ZodString;
@@ -181,7 +101,5 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
181
101
  }[] | undefined;
182
102
  displayName?: string | undefined;
183
103
  }>;
184
- export type MacroItemDto = z.infer<typeof sMacroItemDto>;
185
- export type MacroDto = z.infer<typeof sMacroDto>;
186
104
  export type AddMacroRequest = z.infer<typeof sAddMacroRequest>;
187
105
  export type UpdateMacroRequest = z.infer<typeof sUpdateMacroRequest>;
@@ -0,0 +1,8 @@
1
+ import { sMacroDto } from '../../objects/macro';
2
+ export const sAddMacroRequest = sMacroDto.omit({
3
+ id: true,
4
+ createdOn: true,
5
+ lastModifiedOn: true,
6
+ createdBy: true,
7
+ });
8
+ export const sUpdateMacroRequest = sAddMacroRequest.partial();
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod';
2
+ import { sPaginatedQueryResponseOf } from './query';
3
+ export const sCreateExportRequest = z.object({
4
+ name: z.string().nonempty(),
5
+ deviceId: z.string().nonempty(),
6
+ timeFrom: z.number().nonnegative(),
7
+ timeTo: z.number().nonnegative(),
8
+ });
9
+ export const sCreateExportResponse = z.object({
10
+ exportId: z.string().nonempty(),
11
+ });
12
+ export const sRecordingSequence = z.object({
13
+ start: z.number().nonnegative(),
14
+ end: z.number().nonnegative(),
15
+ motion: z.number().optional(),
16
+ objects: z.number().optional(),
17
+ });
18
+ export const sGetRecordingsRequest = z.object({
19
+ deviceId: z.string().nonempty(),
20
+ timeFrom: z.number().nonnegative(),
21
+ timeTo: z.number().nonnegative(),
22
+ });
23
+ export const sGetRecordingsResponse = sPaginatedQueryResponseOf(sRecordingSequence);
24
+ export const sGetPreviewImageRequest = z.object({
25
+ deviceId: z.string().nonempty(),
26
+ time: z.number().nonnegative(),
27
+ height: z.number().nonnegative(),
28
+ });
29
+ export const sGetScenePreviewClipRequest = z.object({
30
+ deviceId: z.string().nonempty(),
31
+ providerAssignedRef: z.string().nonempty(),
32
+ });
33
+ export const sGetObjectSnapshotRequest = z.object({
34
+ deviceId: z.string().nonempty(),
35
+ providerAssignedRef: z.string().nonempty(),
36
+ crop: z.boolean(),
37
+ boxes: z.boolean(),
38
+ height: z.number().nonnegative().optional(),
39
+ quality: z.number().nonnegative().optional(),
40
+ });
41
+ export const sGetObjectThumbnailRequest = z.object({
42
+ deviceId: z.string().nonempty(),
43
+ providerAssignedRef: z.string().nonempty(),
44
+ });
45
+ export const sSortOptions = z.union([
46
+ z.literal('time_asc'),
47
+ z.literal('time_desc'),
48
+ ]);
49
+ export const sMediaSearchQueryDto = z
50
+ .object({
51
+ limit: z.number().nonnegative(),
52
+ q: z.string(),
53
+ deviceId: z.array(z.string().nonempty()),
54
+ similarTo: z.string().optional(),
55
+ label: z.array(z.string().nonempty()),
56
+ timeFrom: z.number().nonnegative(),
57
+ timeTo: z.number().nonnegative(),
58
+ sortBy: sSortOptions,
59
+ })
60
+ .partial();
61
+ export const sGetLatestFrameRequest = z.object({
62
+ deviceId: z.string().nonempty(),
63
+ width: z.number().nonnegative(),
64
+ height: z.number().nonnegative(),
65
+ });
@@ -0,0 +1,19 @@
1
+ import { JSONSchema4 } from 'json-schema';
2
+ import { UiHint } from '../../objects';
3
+ export interface SaveProviderConfigRq {
4
+ provider: string;
5
+ enabled: boolean;
6
+ config: Record<string, unknown>;
7
+ }
8
+ export interface ConfigIssue {
9
+ paths: string[];
10
+ message: string;
11
+ provider: string;
12
+ }
13
+ export interface ModuleConfigSpecs {
14
+ provider: string;
15
+ title: string;
16
+ schema: JSONSchema4;
17
+ default: Record<string, unknown>;
18
+ uiHints?: UiHint[];
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const sNotificationSearchParams: z.ZodObject<{
3
+ deviceId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4
+ severity: z.ZodOptional<z.ZodArray<z.ZodEnum<["info", "warning", "critical"]>, "many">>;
5
+ acknowledged: z.ZodOptional<z.ZodBoolean>;
6
+ timeFrom: z.ZodOptional<z.ZodNumber>;
7
+ timeTo: z.ZodOptional<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ deviceId?: string[] | undefined;
10
+ severity?: ("info" | "warning" | "critical")[] | undefined;
11
+ timeFrom?: number | undefined;
12
+ timeTo?: number | undefined;
13
+ acknowledged?: boolean | undefined;
14
+ }, {
15
+ deviceId?: string[] | undefined;
16
+ severity?: ("info" | "warning" | "critical")[] | undefined;
17
+ timeFrom?: number | undefined;
18
+ timeTo?: number | undefined;
19
+ acknowledged?: boolean | undefined;
20
+ }>;
21
+ export type NotificationSearchParams = z.infer<typeof sNotificationSearchParams>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ import { sDeviceId, sNotificationSeverity } from '../../primitives';
3
+ export const sNotificationSearchParams = z.object({
4
+ deviceId: z.array(sDeviceId).optional(),
5
+ severity: z.array(sNotificationSeverity).optional(),
6
+ acknowledged: z.boolean().optional(),
7
+ timeFrom: z.number().int().nonnegative().optional(),
8
+ timeTo: z.number().int().nonnegative().optional(),
9
+ });
@@ -0,0 +1,15 @@
1
+ import z from 'zod';
2
+ export declare const sCreatePersonAgreementRequest: z.ZodObject<{
3
+ personId: z.ZodString;
4
+ agreementId: z.ZodString;
5
+ agreementImage: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ personId: string;
8
+ agreementId: string;
9
+ agreementImage: string;
10
+ }, {
11
+ personId: string;
12
+ agreementId: string;
13
+ agreementImage: string;
14
+ }>;
15
+ export type CreatePersonAgreementRequest = z.infer<typeof sCreatePersonAgreementRequest>;
@@ -0,0 +1,6 @@
1
+ import z from 'zod';
2
+ export const sCreatePersonAgreementRequest = z.object({
3
+ personId: z.string(),
4
+ agreementId: z.string(),
5
+ agreementImage: z.string(),
6
+ });
@@ -0,0 +1,72 @@
1
+ import { z } from 'zod';
2
+ export declare const sPersonPresenceQuery: z.ZodObject<{
3
+ persons: z.ZodArray<z.ZodString, "many">;
4
+ zones: z.ZodArray<z.ZodString, "many">;
5
+ online: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ online: boolean;
8
+ persons: string[];
9
+ zones: string[];
10
+ }, {
11
+ online: boolean;
12
+ persons: string[];
13
+ zones: string[];
14
+ }>;
15
+ export type PersonPresenceQuery = z.infer<typeof sPersonPresenceQuery>;
16
+ export declare const sPersonTogglePresence: z.ZodUnion<[z.ZodObject<{
17
+ personId: z.ZodString;
18
+ zoneId: z.ZodString;
19
+ credentialToken: z.ZodUndefined;
20
+ }, "strip", z.ZodTypeAny, {
21
+ personId: string;
22
+ zoneId: string;
23
+ credentialToken?: undefined;
24
+ }, {
25
+ personId: string;
26
+ zoneId: string;
27
+ credentialToken?: undefined;
28
+ }>, z.ZodObject<{
29
+ credentialToken: z.ZodString;
30
+ zoneId: z.ZodString;
31
+ personId: z.ZodUndefined;
32
+ }, "strip", z.ZodTypeAny, {
33
+ zoneId: string;
34
+ credentialToken: string;
35
+ personId?: undefined;
36
+ }, {
37
+ zoneId: string;
38
+ credentialToken: string;
39
+ personId?: undefined;
40
+ }>]>;
41
+ export declare const sPersonCheckIn: z.ZodObject<{
42
+ personId: z.ZodString;
43
+ zoneId: z.ZodString;
44
+ checkCompleted: z.ZodOptional<z.ZodBoolean>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ personId: string;
47
+ zoneId: string;
48
+ checkCompleted?: boolean | undefined;
49
+ }, {
50
+ personId: string;
51
+ zoneId: string;
52
+ checkCompleted?: boolean | undefined;
53
+ }>;
54
+ export declare const sPersonCheckOut: z.ZodObject<{
55
+ personId: z.ZodString;
56
+ zoneId: z.ZodString;
57
+ leave: z.ZodNullable<z.ZodBoolean>;
58
+ checkCompleted: z.ZodOptional<z.ZodBoolean>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ personId: string;
61
+ zoneId: string;
62
+ leave: boolean | null;
63
+ checkCompleted?: boolean | undefined;
64
+ }, {
65
+ personId: string;
66
+ zoneId: string;
67
+ leave: boolean | null;
68
+ checkCompleted?: boolean | undefined;
69
+ }>;
70
+ export type PresenceToggleRequest = z.infer<typeof sPersonTogglePresence>;
71
+ export type PresenceCheckInRequest = z.infer<typeof sPersonCheckIn>;
72
+ export type PresenceCheckOutRequest = z.infer<typeof sPersonCheckOut>;
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export const sPersonPresenceQuery = z.object({
3
+ persons: z.array(z.string().nonempty()),
4
+ zones: z.array(z.string().nonempty()),
5
+ online: z.boolean(),
6
+ });
7
+ export const sPersonTogglePresence = z.union([
8
+ z.object({
9
+ personId: z.string(),
10
+ zoneId: z.string(),
11
+ credentialToken: z.undefined(),
12
+ }),
13
+ z.object({
14
+ credentialToken: z.string(),
15
+ zoneId: z.string(),
16
+ personId: z.undefined(),
17
+ }),
18
+ ]);
19
+ export const sPersonCheckIn = z.object({
20
+ personId: z.string(),
21
+ zoneId: z.string(),
22
+ checkCompleted: z.boolean().optional(),
23
+ });
24
+ export const sPersonCheckOut = z.object({
25
+ personId: z.string(),
26
+ zoneId: z.string(),
27
+ leave: z.boolean().nullable(),
28
+ checkCompleted: z.boolean().optional(),
29
+ });
@@ -1,35 +1,4 @@
1
- import z from 'zod';
2
- export declare const sPersonTypeDto: z.ZodObject<{
3
- id: z.ZodString;
4
- displayName: z.ZodString;
5
- accessControlUser: z.ZodBoolean;
6
- systemUser: z.ZodBoolean;
7
- agreements: z.ZodArray<z.ZodString, "many">;
8
- securityCheck: z.ZodBoolean;
9
- inOnCreation: z.ZodBoolean;
10
- createdOn: z.ZodString;
11
- lastModifiedOn: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- id: string;
14
- displayName: string;
15
- createdOn: string;
16
- lastModifiedOn: string;
17
- agreements: string[];
18
- accessControlUser: boolean;
19
- systemUser: boolean;
20
- securityCheck: boolean;
21
- inOnCreation: boolean;
22
- }, {
23
- id: string;
24
- displayName: string;
25
- createdOn: string;
26
- lastModifiedOn: string;
27
- agreements: string[];
28
- accessControlUser: boolean;
29
- systemUser: boolean;
30
- securityCheck: boolean;
31
- inOnCreation: boolean;
32
- }>;
1
+ import { z } from 'zod';
33
2
  export declare const sCreatePersonTypeRequest: z.ZodObject<Omit<{
34
3
  id: z.ZodString;
35
4
  displayName: z.ZodString;
@@ -57,7 +26,6 @@ export declare const sCreatePersonTypeRequest: z.ZodObject<Omit<{
57
26
  securityCheck: boolean;
58
27
  inOnCreation: boolean;
59
28
  }>;
60
- export type PersonTypeDto = z.infer<typeof sPersonTypeDto>;
61
29
  export type CreatePersonTypeRequest = z.infer<typeof sCreatePersonTypeRequest>;
62
30
  export declare const sUpdatePersonTypeRequest: z.ZodObject<Omit<{
63
31
  id: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,8 @@
1
+ import { sPersonTypeDto } from '../../objects/person-type';
2
+ export const sCreatePersonTypeRequest = sPersonTypeDto.omit({
3
+ createdOn: true,
4
+ lastModifiedOn: true,
5
+ });
6
+ export const sUpdatePersonTypeRequest = sCreatePersonTypeRequest
7
+ .partial()
8
+ .omit({ id: true });