@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.
- package/dist/_legacy/index.d.ts +2 -0
- package/dist/_legacy/index.js +2 -0
- package/dist/_legacy/milestone.js +1 -0
- package/dist/_legacy/orchid.js +1 -0
- package/dist/alarm-automation.d.ts +3 -3
- package/dist/alarm-automation.js +26 -37
- package/dist/api/agent-protocol/index.d.ts +1 -0
- package/dist/api/agent-protocol/index.js +1 -0
- package/dist/{agent-communication → api/agent-protocol}/protocol.d.ts +407 -598
- package/dist/api/agent-protocol/protocol.js +382 -0
- package/dist/api/commands/alarm.js +59 -0
- package/dist/{commands → api/commands}/all.d.ts +83 -83
- package/dist/{commands → api/commands}/all.js +22 -25
- package/dist/api/commands/camera-lift.js +14 -0
- package/dist/api/commands/camera.js +93 -0
- package/dist/api/commands/display.js +34 -0
- package/dist/api/commands/door.js +24 -0
- package/dist/api/commands/index.js +12 -0
- package/dist/api/commands/intercom-terminal.js +2 -0
- package/dist/api/commands/io-board.js +12 -0
- package/dist/api/commands/nvr-exporter.js +23 -0
- package/dist/api/commands/pbx.js +14 -0
- package/dist/api/commands/presence-tracker.js +30 -0
- package/dist/api/commands/server.js +24 -0
- package/dist/api/error.js +181 -0
- package/dist/api/events/alarm.js +52 -0
- package/dist/{events → api/events}/all.d.ts +8 -8
- package/dist/api/events/all.js +124 -0
- package/dist/api/events/camera.js +84 -0
- package/dist/api/events/display.js +6 -0
- package/dist/api/events/door.js +59 -0
- package/dist/api/events/index.js +12 -0
- package/dist/api/events/intercom-terminal.js +16 -0
- package/dist/api/events/io-board.js +10 -0
- package/dist/api/events/nvr-exporter.js +18 -0
- package/dist/api/events/panic-button.js +8 -0
- package/dist/api/events/presence-tracker.js +30 -0
- package/dist/api/events/reader.js +10 -0
- package/dist/{events → api/events}/server.d.ts +5 -5
- package/dist/api/events/server.js +12 -0
- package/dist/api/index.d.ts +9 -4
- package/dist/api/index.js +9 -20
- package/dist/api/mqtt/index.d.ts +1 -0
- package/dist/api/mqtt/index.js +1 -0
- package/dist/api/mqtt/payloads.js +18 -0
- package/dist/api/queries/all.js +25 -0
- package/dist/api/queries/camera.js +24 -0
- package/dist/api/queries/index.js +5 -0
- package/dist/api/queries/nvr-analytics-server.js +73 -0
- package/dist/api/queries/nvr-exporter.js +33 -0
- package/dist/api/queries/nvr-recorder.js +39 -0
- package/dist/api/rest/access-rule.d.ts +117 -0
- package/dist/api/rest/access-rule.js +10 -0
- package/dist/{access-control → api/rest}/agreement.d.ts +0 -20
- package/dist/api/rest/agreement.js +7 -0
- package/dist/api/rest/alarm.js +1 -0
- package/dist/{api-keys.d.ts → api/rest/api-keys.d.ts} +0 -20
- package/dist/api/rest/api-keys.js +11 -0
- package/dist/api/rest/app.js +9 -0
- package/dist/api/rest/auth.js +16 -0
- package/dist/{automation.d.ts → api/rest/automation.d.ts} +0 -217
- package/dist/api/rest/automation.js +14 -0
- package/dist/api/rest/aware-config.js +1 -0
- package/dist/{bookmarks.d.ts → api/rest/bookmarks.d.ts} +0 -49
- package/dist/api/rest/bookmarks.js +18 -0
- package/dist/api/rest/cast.js +7 -0
- package/dist/{custom-field.d.ts → api/rest/custom-field.d.ts} +1 -19
- package/dist/api/rest/custom-field.js +3 -0
- package/dist/{device-event.d.ts → api/rest/device-event.d.ts} +1 -1
- package/dist/api/rest/device-event.js +1 -0
- package/dist/{device-group.d.ts → api/rest/device-group.d.ts} +0 -23
- package/dist/api/rest/device-group.js +17 -0
- package/dist/api/rest/file.js +1 -0
- package/dist/api/rest/index.d.ts +34 -0
- package/dist/api/rest/index.js +34 -0
- package/dist/{device-factory.d.ts → api/rest/io-device.d.ts} +1 -1
- package/dist/api/rest/io-device.js +19 -0
- package/dist/{layout.d.ts → api/rest/layout.d.ts} +6 -107
- package/dist/api/rest/layout.js +19 -0
- package/dist/{macros.d.ts → api/rest/macros.d.ts} +0 -82
- package/dist/api/rest/macros.js +8 -0
- package/dist/api/rest/media.js +65 -0
- package/dist/api/rest/module-config.d.ts +19 -0
- package/dist/api/rest/module-config.js +1 -0
- package/dist/api/rest/notifications.d.ts +21 -0
- package/dist/api/rest/notifications.js +9 -0
- package/dist/api/rest/person-agreement.d.ts +15 -0
- package/dist/api/rest/person-agreement.js +6 -0
- package/dist/api/rest/person-presence.d.ts +72 -0
- package/dist/api/rest/person-presence.js +29 -0
- package/dist/{access-control → api/rest}/person-type.d.ts +1 -33
- package/dist/api/rest/person-type.js +8 -0
- package/dist/api/rest/person.d.ts +128 -0
- package/dist/api/rest/person.js +8 -0
- package/dist/api/{query.js → rest/query.js} +8 -13
- package/dist/api/rest/schedule.d.ts +249 -0
- package/dist/api/rest/schedule.js +9 -0
- package/dist/{security-level.d.ts → api/rest/security-level.d.ts} +0 -29
- package/dist/api/rest/security-level.js +5 -0
- package/dist/{template.d.ts → api/rest/template.d.ts} +1 -18
- package/dist/api/rest/template.js +12 -0
- package/dist/{token-conversion.d.ts → api/rest/token-conversion.d.ts} +0 -22
- package/dist/api/rest/token-conversion.js +5 -0
- package/dist/{user.d.ts → api/rest/user.d.ts} +10 -60
- package/dist/api/rest/user.js +32 -0
- package/dist/api/rest/view.d.ts +397 -0
- package/dist/api/rest/view.js +16 -0
- package/dist/api/rest/webrtc-playback.js +8 -0
- package/dist/{access-control → api/rest}/zone.d.ts +0 -29
- package/dist/api/rest/zone.js +10 -0
- package/dist/api/state/index.d.ts +10 -0
- package/dist/api/state/index.js +1 -0
- package/dist/api/ws/device-communication.js +55 -0
- package/dist/api/ws/index.js +5 -0
- package/dist/api/ws/notifications.js +20 -0
- package/dist/api/ws/progress.js +44 -0
- package/dist/api/ws/web-rtc-signaling.js +92 -0
- package/dist/api/ws/web-socket.js +2 -0
- package/dist/index.d.ts +1 -36
- package/dist/index.js +6 -57
- package/dist/{access-control → objects}/access-rule.d.ts +9 -78
- package/dist/objects/access-rule.js +36 -0
- package/dist/objects/agent-metadata.d.ts +192 -0
- package/dist/objects/agent-metadata.js +49 -0
- package/dist/objects/agreement.d.ts +21 -0
- package/dist/objects/agreement.js +8 -0
- package/dist/{objects.d.ts → objects/all.d.ts} +18 -11
- package/dist/{objects.js → objects/all.js} +4 -7
- package/dist/objects/api-key.d.ts +21 -0
- package/dist/objects/api-key.js +8 -0
- package/dist/objects/automation-rule.d.ts +218 -0
- package/dist/objects/automation-rule.js +51 -0
- package/dist/objects/bookmark.d.ts +50 -0
- package/dist/objects/bookmark.js +13 -0
- package/dist/objects/credential.js +11 -0
- package/dist/objects/custom-field.d.ts +20 -0
- package/dist/objects/custom-field.js +14 -0
- package/dist/{device → objects/device}/alarm.js +3 -6
- package/dist/{device → objects/device}/any-device.d.ts +510 -510
- package/dist/objects/device/any-device.js +239 -0
- package/dist/objects/device/camera-lift.js +4 -0
- package/dist/objects/device/camera.js +32 -0
- package/dist/objects/device/device-gateway.js +2 -0
- package/dist/{device-import.d.ts → objects/device/device-import.d.ts} +44 -44
- package/dist/objects/device/device-import.js +30 -0
- package/dist/{device-relation.js → objects/device/device-relation.js} +13 -16
- package/dist/objects/device/display.js +4 -0
- package/dist/objects/device/door.js +9 -0
- package/dist/{device → objects/device}/index.d.ts +2 -0
- package/dist/objects/device/index.js +22 -0
- package/dist/objects/device/intercom-operator.js +1 -0
- package/dist/objects/device/intercom-terminal.js +23 -0
- package/dist/objects/device/io-board.js +7 -0
- package/dist/objects/device/motion-sensor.js +4 -0
- package/dist/objects/device/nvr-analytics-server.js +6 -0
- package/dist/objects/device/nvr-exporter.js +7 -0
- package/dist/objects/device/nvr-recorder.js +6 -0
- package/dist/objects/device/panic-button.js +4 -0
- package/dist/objects/device/pbx.js +6 -0
- package/dist/objects/device/presence-tracker.js +1 -0
- package/dist/objects/device/reader.js +1 -0
- package/dist/{device → objects/device}/server.d.ts +1 -1
- package/dist/objects/device/server.js +1 -0
- package/dist/objects/device/system.js +6 -0
- package/dist/objects/device-group.d.ts +24 -0
- package/dist/objects/device-group.js +9 -0
- package/dist/objects/index.d.ts +28 -0
- package/dist/objects/index.js +28 -0
- package/dist/objects/layout.d.ts +102 -0
- package/dist/objects/layout.js +22 -0
- package/dist/objects/macro.d.ts +83 -0
- package/dist/objects/macro.js +22 -0
- package/dist/{module-config.d.ts → objects/module-config.d.ts} +1 -18
- package/dist/objects/module-config.js +1 -0
- package/dist/{notifications.d.ts → objects/notification.d.ts} +0 -20
- package/dist/objects/notification.js +13 -0
- package/dist/{access-control → objects}/person-agreement.d.ts +1 -15
- package/dist/objects/person-agreement.js +8 -0
- package/dist/{access-control → objects}/person-presence.d.ts +2 -73
- package/dist/objects/person-presence.js +35 -0
- package/dist/objects/person-type.d.ts +33 -0
- package/dist/objects/person-type.js +16 -0
- package/dist/{access-control → objects}/person.d.ts +74 -140
- package/dist/objects/person.js +42 -0
- package/dist/objects/role.d.ts +21 -0
- package/dist/objects/role.js +15 -0
- package/dist/{access-control → objects}/schedule.d.ts +4 -129
- package/dist/objects/schedule.js +53 -0
- package/dist/objects/security-level.d.ts +30 -0
- package/dist/objects/security-level.js +11 -0
- package/dist/objects/template.d.ts +20 -0
- package/dist/objects/template.js +8 -0
- package/dist/objects/token-conversion.d.ts +23 -0
- package/dist/objects/token-conversion.js +8 -0
- package/dist/objects/user.d.ts +31 -0
- package/dist/objects/user.js +12 -0
- package/dist/{view.d.ts → objects/view.d.ts} +3 -399
- package/dist/objects/view.js +64 -0
- package/dist/{world-objects.js → objects/world-object.js} +5 -8
- package/dist/objects/zone.d.ts +41 -0
- package/dist/objects/zone.js +15 -0
- package/dist/package.json +1 -1
- package/dist/permissions.js +146 -149
- package/dist/primitives.d.ts +30 -30
- package/dist/primitives.js +27 -30
- package/package.json +1 -1
- package/dist/access-control/access-rule.js +0 -49
- package/dist/access-control/agreement.js +0 -20
- package/dist/access-control/credential.js +0 -17
- package/dist/access-control/index.d.ts +0 -9
- package/dist/access-control/index.js +0 -25
- package/dist/access-control/person-agreement.js +0 -19
- package/dist/access-control/person-presence.js +0 -66
- package/dist/access-control/person-type.js +0 -29
- package/dist/access-control/person.js +0 -53
- package/dist/access-control/schedule.js +0 -65
- package/dist/access-control/zone.js +0 -28
- package/dist/agent-communication/index.d.ts +0 -2
- package/dist/agent-communication/index.js +0 -18
- package/dist/agent-communication/mqtt-payloads.js +0 -21
- package/dist/agent-communication/protocol.js +0 -436
- package/dist/api/alarm.js +0 -2
- package/dist/api/auth.js +0 -19
- package/dist/api/media.js +0 -68
- package/dist/api-keys.js +0 -21
- package/dist/app.js +0 -12
- package/dist/automation.js +0 -66
- package/dist/aware-config.js +0 -2
- package/dist/bookmarks.js +0 -32
- package/dist/cast.js +0 -13
- package/dist/commands/alarm.js +0 -62
- package/dist/commands/camera-lift.js +0 -17
- package/dist/commands/camera.js +0 -97
- package/dist/commands/display.js +0 -37
- package/dist/commands/door.js +0 -27
- package/dist/commands/index.js +0 -28
- package/dist/commands/intercom-terminal.js +0 -3
- package/dist/commands/io-board.js +0 -15
- package/dist/commands/nvr-exporter.js +0 -26
- package/dist/commands/pbx.js +0 -17
- package/dist/commands/presence-tracker.js +0 -33
- package/dist/commands/server.js +0 -27
- package/dist/custom-field.js +0 -19
- package/dist/device/any-device.js +0 -242
- package/dist/device/camera-lift.js +0 -7
- package/dist/device/camera.js +0 -35
- package/dist/device/device-gateway.js +0 -5
- package/dist/device/display.js +0 -7
- package/dist/device/door.js +0 -12
- package/dist/device/index.js +0 -36
- package/dist/device/intercom-operator.js +0 -4
- package/dist/device/intercom-terminal.js +0 -26
- package/dist/device/io-board.js +0 -10
- package/dist/device/motion-sensor.js +0 -7
- package/dist/device/nvr-analytics-server.js +0 -9
- package/dist/device/nvr-exporter.js +0 -10
- package/dist/device/nvr-recorder.js +0 -9
- package/dist/device/panic-button.js +0 -7
- package/dist/device/pbx.js +0 -9
- package/dist/device/presence-tracker.js +0 -4
- package/dist/device/reader.js +0 -4
- package/dist/device/server.js +0 -4
- package/dist/device/system.js +0 -9
- package/dist/device-event.js +0 -2
- package/dist/device-factory.js +0 -26
- package/dist/device-group.js +0 -31
- package/dist/device-import.js +0 -33
- package/dist/device-state.d.ts +0 -10
- package/dist/device-state.js +0 -2
- package/dist/error.js +0 -185
- package/dist/events/alarm.js +0 -55
- package/dist/events/all.js +0 -128
- package/dist/events/camera.js +0 -87
- package/dist/events/display.js +0 -9
- package/dist/events/door.js +0 -62
- package/dist/events/index.js +0 -28
- package/dist/events/intercom-terminal.js +0 -19
- package/dist/events/io-board.js +0 -13
- package/dist/events/nvr-exporter.js +0 -21
- package/dist/events/panic-button.js +0 -11
- package/dist/events/presence-tracker.js +0 -33
- package/dist/events/reader.js +0 -13
- package/dist/events/server.js +0 -15
- package/dist/file.js +0 -2
- package/dist/layout.js +0 -45
- package/dist/macros.js +0 -32
- package/dist/messages/device-communication.js +0 -63
- package/dist/messages/index.js +0 -21
- package/dist/messages/notifications.js +0 -27
- package/dist/messages/progress.js +0 -51
- package/dist/messages/web-rtc-signaling.js +0 -99
- package/dist/messages/web-socket.js +0 -5
- package/dist/milestone.js +0 -2
- package/dist/module-config.js +0 -2
- package/dist/notifications.js +0 -23
- package/dist/orchid.js +0 -2
- package/dist/queries/all.js +0 -28
- package/dist/queries/camera.js +0 -27
- package/dist/queries/index.js +0 -21
- package/dist/queries/nvr-analytics-server.js +0 -76
- package/dist/queries/nvr-exporter.js +0 -36
- package/dist/queries/nvr-recorder.js +0 -42
- package/dist/security-level.js +0 -18
- package/dist/template.js +0 -21
- package/dist/token-conversion.js +0 -15
- package/dist/user.js +0 -57
- package/dist/view.js +0 -84
- package/dist/webrtc-playback.js +0 -14
- package/dist/{milestone.d.ts → _legacy/milestone.d.ts} +0 -0
- package/dist/{orchid.d.ts → _legacy/orchid.d.ts} +0 -0
- package/dist/{commands → api/commands}/alarm.d.ts +0 -0
- package/dist/{commands → api/commands}/camera-lift.d.ts +0 -0
- package/dist/{commands → api/commands}/camera.d.ts +0 -0
- package/dist/{commands → api/commands}/display.d.ts +0 -0
- package/dist/{commands → api/commands}/door.d.ts +0 -0
- package/dist/{commands → api/commands}/index.d.ts +0 -0
- package/dist/{commands → api/commands}/intercom-terminal.d.ts +0 -0
- package/dist/{commands → api/commands}/io-board.d.ts +0 -0
- package/dist/{commands → api/commands}/nvr-exporter.d.ts +86 -86
- package/dist/{commands → api/commands}/pbx.d.ts +0 -0
- package/dist/{commands → api/commands}/presence-tracker.d.ts +0 -0
- package/dist/{commands → api/commands}/server.d.ts +78 -78
- package/dist/{error.d.ts → api/error.d.ts} +0 -0
- package/dist/{events → api/events}/alarm.d.ts +0 -0
- package/dist/{events → api/events}/camera.d.ts +0 -0
- package/dist/{events → api/events}/display.d.ts +0 -0
- package/dist/{events → api/events}/door.d.ts +0 -0
- package/dist/{events → api/events}/index.d.ts +0 -0
- package/dist/{events → api/events}/intercom-terminal.d.ts +0 -0
- package/dist/{events → api/events}/io-board.d.ts +0 -0
- package/dist/{events → api/events}/nvr-exporter.d.ts +4 -4
- package/dist/{events → api/events}/panic-button.d.ts +0 -0
- package/dist/{events → api/events}/presence-tracker.d.ts +8 -8
- package/dist/{events → api/events}/reader.d.ts +0 -0
- package/dist/{agent-communication/mqtt-payloads.d.ts → api/mqtt/payloads.d.ts} +0 -0
- package/dist/{queries → api/queries}/all.d.ts +83 -83
- package/dist/{queries → api/queries}/camera.d.ts +0 -0
- package/dist/{queries → api/queries}/index.d.ts +0 -0
- package/dist/{queries → api/queries}/nvr-analytics-server.d.ts +4 -4
- package/dist/{queries → api/queries}/nvr-exporter.d.ts +0 -0
- package/dist/{queries → api/queries}/nvr-recorder.d.ts +162 -162
- package/dist/api/{alarm.d.ts → rest/alarm.d.ts} +0 -0
- package/dist/{app.d.ts → api/rest/app.d.ts} +0 -0
- package/dist/api/{auth.d.ts → rest/auth.d.ts} +0 -0
- package/dist/{aware-config.d.ts → api/rest/aware-config.d.ts} +0 -0
- package/dist/{cast.d.ts → api/rest/cast.d.ts} +0 -0
- package/dist/{file.d.ts → api/rest/file.d.ts} +0 -0
- package/dist/api/{media.d.ts → rest/media.d.ts} +2 -2
- /package/dist/api/{query.d.ts → rest/query.d.ts} +0 -0
- /package/dist/{webrtc-playback.d.ts → api/rest/webrtc-playback.d.ts} +0 -0
- /package/dist/{messages → api/ws}/device-communication.d.ts +0 -0
- /package/dist/{messages → api/ws}/index.d.ts +0 -0
- /package/dist/{messages → api/ws}/notifications.d.ts +0 -0
- /package/dist/{messages → api/ws}/progress.d.ts +0 -0
- /package/dist/{messages → api/ws}/web-rtc-signaling.d.ts +0 -0
- /package/dist/{messages → api/ws}/web-socket.d.ts +0 -0
- /package/dist/{access-control → objects}/credential.d.ts +0 -0
- /package/dist/{device → objects/device}/alarm.d.ts +0 -0
- /package/dist/{device → objects/device}/camera-lift.d.ts +0 -0
- /package/dist/{device → objects/device}/camera.d.ts +0 -0
- /package/dist/{device → objects/device}/device-gateway.d.ts +0 -0
- /package/dist/{device-relation.d.ts → objects/device/device-relation.d.ts} +0 -0
- /package/dist/{device → objects/device}/display.d.ts +0 -0
- /package/dist/{device → objects/device}/door.d.ts +0 -0
- /package/dist/{device → objects/device}/intercom-operator.d.ts +0 -0
- /package/dist/{device → objects/device}/intercom-terminal.d.ts +0 -0
- /package/dist/{device → objects/device}/io-board.d.ts +0 -0
- /package/dist/{device → objects/device}/motion-sensor.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-analytics-server.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-exporter.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-recorder.d.ts +0 -0
- /package/dist/{device → objects/device}/panic-button.d.ts +0 -0
- /package/dist/{device → objects/device}/pbx.d.ts +0 -0
- /package/dist/{device → objects/device}/presence-tracker.d.ts +0 -0
- /package/dist/{device → objects/device}/reader.d.ts +0 -0
- /package/dist/{device → objects/device}/system.d.ts +0 -0
- /package/dist/{world-objects.d.ts → objects/world-object.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AlarmStateDto } from '../../objects/device/alarm';
|
|
2
|
+
import { CameraStateDto } from '../../objects/device/camera';
|
|
3
|
+
import { CameraLiftStateDto } from '../../objects/device/camera-lift';
|
|
4
|
+
import { DoorStateDto } from '../../objects/device/door';
|
|
5
|
+
import { IntercomOperatorStateDto } from '../../objects/device/intercom-operator';
|
|
6
|
+
import { IntercomTerminalStateDto } from '../../objects/device/intercom-terminal';
|
|
7
|
+
import { IoBoardStateDto } from '../../objects/device/io-board';
|
|
8
|
+
import { MotionSensorStateDto } from '../../objects/device/motion-sensor';
|
|
9
|
+
import { PanicButtonStateDto } from '../../objects/device/panic-button';
|
|
10
|
+
export type DeviceStateDto = CameraStateDto | DoorStateDto | AlarmStateDto | IoBoardStateDto | CameraLiftStateDto | MotionSensorStateDto | PanicButtonStateDto | IntercomTerminalStateDto | IntercomOperatorStateDto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const sCommandSuccess = z.object({
|
|
3
|
+
timestamp: z.number(),
|
|
4
|
+
requestId: z.string(),
|
|
5
|
+
});
|
|
6
|
+
export const sCommandError = z.object({
|
|
7
|
+
timestamp: z.number(),
|
|
8
|
+
requestId: z.string(),
|
|
9
|
+
error: z.object({}),
|
|
10
|
+
});
|
|
11
|
+
export const sStateUpdate = z.object({
|
|
12
|
+
timestamp: z.number(),
|
|
13
|
+
deviceId: z.string(),
|
|
14
|
+
state: z.object({}),
|
|
15
|
+
});
|
|
16
|
+
export const sStateUnavailable = z.object({
|
|
17
|
+
timestamp: z.number(),
|
|
18
|
+
deviceId: z.string(),
|
|
19
|
+
});
|
|
20
|
+
export const sStateUpdateError = z.object({
|
|
21
|
+
timestamp: z.number(),
|
|
22
|
+
deviceId: z.string(),
|
|
23
|
+
error: z.object({}),
|
|
24
|
+
});
|
|
25
|
+
export const sStateSubscribe = z.object({
|
|
26
|
+
timestamp: z.number(),
|
|
27
|
+
requestId: z.string(),
|
|
28
|
+
deviceId: z.string(),
|
|
29
|
+
});
|
|
30
|
+
export const sStateUnsubscribe = z.object({
|
|
31
|
+
timestamp: z.number(),
|
|
32
|
+
requestId: z.string(),
|
|
33
|
+
deviceId: z.string(),
|
|
34
|
+
});
|
|
35
|
+
const validators = {
|
|
36
|
+
'command-run': z.object({}),
|
|
37
|
+
'command-success': sCommandSuccess,
|
|
38
|
+
'command-error': sCommandError,
|
|
39
|
+
'state-update': sStateUpdate,
|
|
40
|
+
'state-unavailable': sStateUnavailable,
|
|
41
|
+
'state-update-error': sStateUpdateError,
|
|
42
|
+
'state-subscribe': sStateSubscribe,
|
|
43
|
+
'state-unsubscribe': sStateUnsubscribe,
|
|
44
|
+
'device-event': z.object({}),
|
|
45
|
+
};
|
|
46
|
+
export const isDeviceMessage = (message) => {
|
|
47
|
+
const validator = validators[message.event];
|
|
48
|
+
if (!validator) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return validator.safeParse(message.data).success;
|
|
52
|
+
};
|
|
53
|
+
export const isDeviceEventMessage = (message) => {
|
|
54
|
+
return message.event === 'device-event';
|
|
55
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { sNotificationDto } from '../../objects';
|
|
3
|
+
export const sNotificationCreatedPayload = sNotificationDto;
|
|
4
|
+
export const sNotificationAcknowledgedPayload = z.object({
|
|
5
|
+
id: z.string().nonempty(),
|
|
6
|
+
acknowledgedBy: z.string().nonempty(),
|
|
7
|
+
acknowledgedOn: z.number().int().nonnegative(),
|
|
8
|
+
});
|
|
9
|
+
const validators = {
|
|
10
|
+
new: sNotificationCreatedPayload,
|
|
11
|
+
ack: sNotificationAcknowledgedPayload,
|
|
12
|
+
};
|
|
13
|
+
// validate a web socket message as a Notification message (use validators according to event)
|
|
14
|
+
export const isNotificationWebSocketMessage = (message) => {
|
|
15
|
+
const validator = validators[message.event];
|
|
16
|
+
if (!validator) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return validator.safeParse(message.data).success;
|
|
20
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const sProgress = z.object({
|
|
3
|
+
total: z.number().optional(),
|
|
4
|
+
complete: z.number().optional(),
|
|
5
|
+
failed: z.object({}).default({}),
|
|
6
|
+
});
|
|
7
|
+
export const sProgressUpdate = z.object({
|
|
8
|
+
timestamp: z.number(),
|
|
9
|
+
item: z.string(),
|
|
10
|
+
progress: sProgress,
|
|
11
|
+
});
|
|
12
|
+
export const sProgressUnavailable = z.object({
|
|
13
|
+
timestamp: z.number(),
|
|
14
|
+
item: z.string(),
|
|
15
|
+
});
|
|
16
|
+
export const sProgressUpdateError = z.object({
|
|
17
|
+
timestamp: z.number(),
|
|
18
|
+
item: z.string(),
|
|
19
|
+
error: z.object({}),
|
|
20
|
+
});
|
|
21
|
+
export const sProgressSubscribe = z.object({
|
|
22
|
+
timestamp: z.number(),
|
|
23
|
+
requestId: z.string(),
|
|
24
|
+
item: z.string(),
|
|
25
|
+
});
|
|
26
|
+
export const sProgressUnsubscribe = z.object({
|
|
27
|
+
timestamp: z.number(),
|
|
28
|
+
requestId: z.string(),
|
|
29
|
+
item: z.string(),
|
|
30
|
+
});
|
|
31
|
+
const validators = {
|
|
32
|
+
'progress-update': sProgressUpdate,
|
|
33
|
+
'progress-unavailable': sProgressUnavailable,
|
|
34
|
+
'progress-update-error': sProgressUpdateError,
|
|
35
|
+
'progress-subscribe': sProgressSubscribe,
|
|
36
|
+
'progress-unsubscribe': sProgressUnsubscribe,
|
|
37
|
+
};
|
|
38
|
+
export const isProgressMessage = (message) => {
|
|
39
|
+
const validator = validators[message.event];
|
|
40
|
+
if (!validator) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return validator.safeParse(message.data).success;
|
|
44
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const sSessionDescription = z.object({
|
|
3
|
+
type: z.string().nonempty(),
|
|
4
|
+
sdp: z.string().nonempty(),
|
|
5
|
+
});
|
|
6
|
+
export const sIceCandidate = z.string().nonempty();
|
|
7
|
+
export const sWebRtcLiveServiceParams = z.object({
|
|
8
|
+
deviceId: z.string().nonempty(),
|
|
9
|
+
streamId: z.string().nonempty(),
|
|
10
|
+
});
|
|
11
|
+
export const sWebRtcPlaybackParams = z.object({
|
|
12
|
+
controllerId: z.string().nonempty(),
|
|
13
|
+
});
|
|
14
|
+
export const sWebRtcPlaybackTrackParams = z.object({
|
|
15
|
+
controllerId: z.string().nonempty(),
|
|
16
|
+
trackId: z.string().nonempty(),
|
|
17
|
+
});
|
|
18
|
+
export const sWebRtcPlaybackControllerParams = z.object({
|
|
19
|
+
controllerId: z.string().nonempty(),
|
|
20
|
+
});
|
|
21
|
+
export const sWebRtcServiceDescription = z.union([
|
|
22
|
+
z.object({
|
|
23
|
+
service: z.literal('live'),
|
|
24
|
+
serviceParams: sWebRtcLiveServiceParams,
|
|
25
|
+
}),
|
|
26
|
+
z.object({
|
|
27
|
+
service: z.literal('playback'),
|
|
28
|
+
serviceParams: sWebRtcPlaybackParams,
|
|
29
|
+
}),
|
|
30
|
+
z.object({
|
|
31
|
+
service: z.literal('playback-track'),
|
|
32
|
+
serviceParams: sWebRtcPlaybackTrackParams,
|
|
33
|
+
}),
|
|
34
|
+
z.object({
|
|
35
|
+
service: z.literal('playback-controller'),
|
|
36
|
+
serviceParams: sWebRtcPlaybackControllerParams,
|
|
37
|
+
}),
|
|
38
|
+
]);
|
|
39
|
+
export const sWebRtcNewSessionPayload = sWebRtcServiceDescription.and(z.object({
|
|
40
|
+
from: z.string().optional(),
|
|
41
|
+
requestId: z.string().nonempty(),
|
|
42
|
+
}));
|
|
43
|
+
export const sWebRtcSessionCreatedPayload = z.object({
|
|
44
|
+
requestId: z.string().nonempty(),
|
|
45
|
+
sessionId: z.string().nonempty(),
|
|
46
|
+
stunServer: z.string().nullable(),
|
|
47
|
+
frozenStreamTimeout: z.number().nullable(),
|
|
48
|
+
trickleIce: z.boolean(),
|
|
49
|
+
});
|
|
50
|
+
export const sWebRtcOfferPayload = z.object({
|
|
51
|
+
sessionId: z.string().nonempty(),
|
|
52
|
+
description: sSessionDescription,
|
|
53
|
+
from: z.string().optional(),
|
|
54
|
+
});
|
|
55
|
+
export const sWebRtcAnswerPayload = z.object({
|
|
56
|
+
sessionId: z.string().nonempty(),
|
|
57
|
+
description: sSessionDescription,
|
|
58
|
+
from: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
export const sWebRtcIceCandidatePayload = z.object({
|
|
61
|
+
sessionId: z.string().nonempty(),
|
|
62
|
+
candidate: sIceCandidate,
|
|
63
|
+
from: z.string().optional(),
|
|
64
|
+
});
|
|
65
|
+
export const sWebRtcReleaseSessionPayload = z.object({
|
|
66
|
+
sessionId: z.string().nonempty(),
|
|
67
|
+
from: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
export const sWebRtcErrorPayload = z.object({
|
|
70
|
+
sessionId: z.string().nonempty(),
|
|
71
|
+
error: z.object({
|
|
72
|
+
code: z.string().nonempty(),
|
|
73
|
+
message: z.string().nonempty(),
|
|
74
|
+
}),
|
|
75
|
+
});
|
|
76
|
+
const validators = {
|
|
77
|
+
'new-session': sWebRtcNewSessionPayload,
|
|
78
|
+
'session-created': sWebRtcSessionCreatedPayload,
|
|
79
|
+
offer: sWebRtcOfferPayload,
|
|
80
|
+
answer: sWebRtcAnswerPayload,
|
|
81
|
+
'ice-candidate': sWebRtcIceCandidatePayload,
|
|
82
|
+
'release-session': sWebRtcReleaseSessionPayload,
|
|
83
|
+
error: sWebRtcErrorPayload,
|
|
84
|
+
};
|
|
85
|
+
// validate a web socket message as a WebRTC signaling message (use validators according to event)
|
|
86
|
+
export const isWebRtcWebSocketMessage = (message) => {
|
|
87
|
+
const validator = validators[message.event];
|
|
88
|
+
if (!validator) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return validator.safeParse(message.data).success;
|
|
92
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
export * from './api';
|
|
2
|
-
export * from './messages';
|
|
3
|
-
export * from './error';
|
|
4
|
-
export * from './user';
|
|
5
2
|
export * from './permissions';
|
|
6
|
-
export * from './view';
|
|
7
|
-
export * from './layout';
|
|
8
|
-
export * from './device';
|
|
9
|
-
export * from './device-relation';
|
|
10
|
-
export * from './file';
|
|
11
|
-
export * from './device-state';
|
|
12
|
-
export * from './device-import';
|
|
13
|
-
export * from './milestone';
|
|
14
|
-
export * from './orchid';
|
|
15
|
-
export * from './aware-config';
|
|
16
|
-
export * from './access-control';
|
|
17
|
-
export * from './device-event';
|
|
18
|
-
export * from './commands/all';
|
|
19
|
-
export * from './device-factory';
|
|
20
|
-
export * from './module-config';
|
|
21
|
-
export * from './device-group';
|
|
22
|
-
export * from './app';
|
|
23
|
-
export * from './automation';
|
|
24
3
|
export * from './alarm-automation';
|
|
25
|
-
export * from './macros';
|
|
26
|
-
export * from './template';
|
|
27
|
-
export * from './webrtc-playback';
|
|
28
|
-
export * from './custom-field';
|
|
29
|
-
export * from './agent-communication';
|
|
30
|
-
export * from './cast';
|
|
31
|
-
export * from './security-level';
|
|
32
|
-
export * from './token-conversion';
|
|
33
|
-
export * from './world-objects';
|
|
34
|
-
export * from './bookmarks';
|
|
35
4
|
export * from './objects';
|
|
36
|
-
export * from './events';
|
|
37
|
-
export * from './commands';
|
|
38
|
-
export * from './queries';
|
|
39
5
|
export * from './primitives';
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './notifications';
|
|
6
|
+
export * from './_legacy';
|
package/dist/index.js
CHANGED
|
@@ -1,57 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api"), exports);
|
|
18
|
-
__exportStar(require("./messages"), exports);
|
|
19
|
-
__exportStar(require("./error"), exports);
|
|
20
|
-
__exportStar(require("./user"), exports);
|
|
21
|
-
__exportStar(require("./permissions"), exports);
|
|
22
|
-
__exportStar(require("./view"), exports);
|
|
23
|
-
__exportStar(require("./layout"), exports);
|
|
24
|
-
__exportStar(require("./device"), exports);
|
|
25
|
-
__exportStar(require("./device-relation"), exports);
|
|
26
|
-
__exportStar(require("./file"), exports);
|
|
27
|
-
__exportStar(require("./device-state"), exports);
|
|
28
|
-
__exportStar(require("./device-import"), exports);
|
|
29
|
-
__exportStar(require("./milestone"), exports);
|
|
30
|
-
__exportStar(require("./orchid"), exports);
|
|
31
|
-
__exportStar(require("./aware-config"), exports);
|
|
32
|
-
__exportStar(require("./access-control"), exports);
|
|
33
|
-
__exportStar(require("./device-event"), exports);
|
|
34
|
-
__exportStar(require("./commands/all"), exports);
|
|
35
|
-
__exportStar(require("./device-factory"), exports);
|
|
36
|
-
__exportStar(require("./module-config"), exports);
|
|
37
|
-
__exportStar(require("./device-group"), exports);
|
|
38
|
-
__exportStar(require("./app"), exports);
|
|
39
|
-
__exportStar(require("./automation"), exports);
|
|
40
|
-
__exportStar(require("./alarm-automation"), exports);
|
|
41
|
-
__exportStar(require("./macros"), exports);
|
|
42
|
-
__exportStar(require("./template"), exports);
|
|
43
|
-
__exportStar(require("./webrtc-playback"), exports);
|
|
44
|
-
__exportStar(require("./custom-field"), exports);
|
|
45
|
-
__exportStar(require("./agent-communication"), exports);
|
|
46
|
-
__exportStar(require("./cast"), exports);
|
|
47
|
-
__exportStar(require("./security-level"), exports);
|
|
48
|
-
__exportStar(require("./token-conversion"), exports);
|
|
49
|
-
__exportStar(require("./world-objects"), exports);
|
|
50
|
-
__exportStar(require("./bookmarks"), exports);
|
|
51
|
-
__exportStar(require("./objects"), exports);
|
|
52
|
-
__exportStar(require("./events"), exports);
|
|
53
|
-
__exportStar(require("./commands"), exports);
|
|
54
|
-
__exportStar(require("./queries"), exports);
|
|
55
|
-
__exportStar(require("./primitives"), exports);
|
|
56
|
-
__exportStar(require("./api-keys"), exports);
|
|
57
|
-
__exportStar(require("./notifications"), exports);
|
|
1
|
+
export * from './api';
|
|
2
|
+
export * from './permissions';
|
|
3
|
+
export * from './alarm-automation';
|
|
4
|
+
export * from './objects';
|
|
5
|
+
export * from './primitives';
|
|
6
|
+
export * from './_legacy';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const sAccessRulePersonDto: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
firstName: z.ZodString;
|
|
@@ -85,9 +85,6 @@ export declare const sAccessRuleDto: z.ZodObject<{
|
|
|
85
85
|
id: string;
|
|
86
86
|
version: number;
|
|
87
87
|
displayName: string;
|
|
88
|
-
refs: Record<string, string | string[]>;
|
|
89
|
-
createdOn: string;
|
|
90
|
-
lastModifiedOn: string;
|
|
91
88
|
appliedTo: {
|
|
92
89
|
id: string;
|
|
93
90
|
firstName: string;
|
|
@@ -102,13 +99,13 @@ export declare const sAccessRuleDto: z.ZodObject<{
|
|
|
102
99
|
scheduleId: string;
|
|
103
100
|
groupId: string;
|
|
104
101
|
}[];
|
|
102
|
+
createdOn: string;
|
|
103
|
+
lastModifiedOn: string;
|
|
104
|
+
refs: Record<string, string | string[]>;
|
|
105
105
|
}, {
|
|
106
106
|
id: string;
|
|
107
107
|
version: number;
|
|
108
108
|
displayName: string;
|
|
109
|
-
refs: Record<string, string | string[]>;
|
|
110
|
-
createdOn: string;
|
|
111
|
-
lastModifiedOn: string;
|
|
112
109
|
appliedTo: {
|
|
113
110
|
id: string;
|
|
114
111
|
firstName: string;
|
|
@@ -123,9 +120,12 @@ export declare const sAccessRuleDto: z.ZodObject<{
|
|
|
123
120
|
scheduleId: string;
|
|
124
121
|
groupId: string;
|
|
125
122
|
}[];
|
|
123
|
+
createdOn: string;
|
|
124
|
+
lastModifiedOn: string;
|
|
125
|
+
refs: Record<string, string | string[]>;
|
|
126
126
|
}>;
|
|
127
127
|
export type AccessRuleDto = z.infer<typeof sAccessRuleDto>;
|
|
128
|
-
export declare const
|
|
128
|
+
export declare const sAccessRuleProps: z.ZodObject<{
|
|
129
129
|
displayName: z.ZodString;
|
|
130
130
|
appliedTo: z.ZodArray<z.ZodString, "many">;
|
|
131
131
|
permissions: z.ZodArray<z.ZodObject<{
|
|
@@ -171,73 +171,4 @@ export declare const sCreateAccessRuleRequest: z.ZodObject<{
|
|
|
171
171
|
groupId: string;
|
|
172
172
|
}[];
|
|
173
173
|
}>;
|
|
174
|
-
export
|
|
175
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
176
|
-
appliedTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
177
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
-
deviceId: z.ZodString;
|
|
179
|
-
scheduleId: z.ZodString;
|
|
180
|
-
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
deviceId: string;
|
|
182
|
-
scheduleId: string;
|
|
183
|
-
}, {
|
|
184
|
-
deviceId: string;
|
|
185
|
-
scheduleId: string;
|
|
186
|
-
}>, "many">>;
|
|
187
|
-
groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
188
|
-
groupId: z.ZodString;
|
|
189
|
-
scheduleId: z.ZodString;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
scheduleId: string;
|
|
192
|
-
groupId: string;
|
|
193
|
-
}, {
|
|
194
|
-
scheduleId: string;
|
|
195
|
-
groupId: string;
|
|
196
|
-
}>, "many">>;
|
|
197
|
-
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
displayName?: string | undefined;
|
|
199
|
-
appliedTo?: string[] | undefined;
|
|
200
|
-
permissions?: {
|
|
201
|
-
deviceId: string;
|
|
202
|
-
scheduleId: string;
|
|
203
|
-
}[] | undefined;
|
|
204
|
-
groupPermissions?: {
|
|
205
|
-
scheduleId: string;
|
|
206
|
-
groupId: string;
|
|
207
|
-
}[] | undefined;
|
|
208
|
-
}, {
|
|
209
|
-
displayName?: string | undefined;
|
|
210
|
-
appliedTo?: string[] | undefined;
|
|
211
|
-
permissions?: {
|
|
212
|
-
deviceId: string;
|
|
213
|
-
scheduleId: string;
|
|
214
|
-
}[] | undefined;
|
|
215
|
-
groupPermissions?: {
|
|
216
|
-
scheduleId: string;
|
|
217
|
-
groupId: string;
|
|
218
|
-
}[] | undefined;
|
|
219
|
-
}>;
|
|
220
|
-
export declare const sAddMemberToAccessRuleRequest: z.ZodObject<{
|
|
221
|
-
personId: z.ZodString;
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
personId: string;
|
|
224
|
-
}, {
|
|
225
|
-
personId: string;
|
|
226
|
-
}>;
|
|
227
|
-
export declare const sRemoveMemberFromAccessRuleRequest: z.ZodObject<{
|
|
228
|
-
personId: z.ZodString;
|
|
229
|
-
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
personId: string;
|
|
231
|
-
}, {
|
|
232
|
-
personId: string;
|
|
233
|
-
}>;
|
|
234
|
-
export type CreateAccessRuleRequest = z.infer<typeof sCreateAccessRuleRequest>;
|
|
235
|
-
export type UpdateAccessRuleRequest = {
|
|
236
|
-
id: string;
|
|
237
|
-
} & z.infer<typeof sUpdateAccessRuleRequest>;
|
|
238
|
-
export type AddMemberToAccessRuleRequest = {
|
|
239
|
-
id: string;
|
|
240
|
-
} & z.infer<typeof sAddMemberToAccessRuleRequest>;
|
|
241
|
-
export type RemoveMemberFromAccessRuleRequest = {
|
|
242
|
-
id: string;
|
|
243
|
-
} & z.infer<typeof sRemoveMemberFromAccessRuleRequest>;
|
|
174
|
+
export type AccessRuleProps = z.infer<typeof sAccessRuleProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sAccessRulePersonDto = z.object({
|
|
3
|
+
id: z.string().describe('Person ID'),
|
|
4
|
+
firstName: z.string().describe('First name'),
|
|
5
|
+
lastName: z.string().describe('Last name'),
|
|
6
|
+
avatarId: z.string().nullable().describe('Avatar ID'),
|
|
7
|
+
});
|
|
8
|
+
export const sAccessRulePermissionDto = z.object({
|
|
9
|
+
deviceId: z.string().describe('Device ID').nonempty(),
|
|
10
|
+
scheduleId: z.string().describe('Schedule ID').nonempty(),
|
|
11
|
+
});
|
|
12
|
+
export const sAccessRuleGroupPermissionDto = z.object({
|
|
13
|
+
groupId: z.string().describe('Group ID').nonempty(),
|
|
14
|
+
scheduleId: z.string().describe('Schedule ID').nonempty(),
|
|
15
|
+
});
|
|
16
|
+
export const sAccessRuleDto = z.object({
|
|
17
|
+
id: z.string().describe('Access rule ID'),
|
|
18
|
+
displayName: z.string().describe('Display name'),
|
|
19
|
+
appliedTo: z.array(sAccessRulePersonDto).describe('Applied to'),
|
|
20
|
+
permissions: z.array(sAccessRulePermissionDto).describe('Permissions'),
|
|
21
|
+
groupPermissions: z
|
|
22
|
+
.array(sAccessRuleGroupPermissionDto)
|
|
23
|
+
.describe('Group permissions'),
|
|
24
|
+
createdOn: z.string().describe('Created on'),
|
|
25
|
+
lastModifiedOn: z.string().describe('Last modified on'),
|
|
26
|
+
refs: z.record(z.union([z.string(), z.array(z.string())])),
|
|
27
|
+
version: z.number().describe('Version'),
|
|
28
|
+
});
|
|
29
|
+
export const sAccessRuleProps = z.object({
|
|
30
|
+
displayName: z.string().nonempty().describe('Display name'),
|
|
31
|
+
appliedTo: z.array(z.string().nonempty()).describe('Applied to'),
|
|
32
|
+
permissions: z.array(sAccessRulePermissionDto).describe('Permissions'),
|
|
33
|
+
groupPermissions: z
|
|
34
|
+
.array(sAccessRuleGroupPermissionDto)
|
|
35
|
+
.describe('Group permissions'),
|
|
36
|
+
});
|