@awarevue/api-types 2.0.145 → 2.0.147
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/api/agent-protocol/protocol.d.ts +8 -0
- package/dist/api/commands/all.d.ts +170 -1
- package/dist/api/commands/all.js +22 -0
- package/dist/api/commands/index.d.ts +1 -0
- package/dist/api/commands/index.js +1 -0
- package/dist/api/commands/nvr-analytics-server.d.ts +4 -0
- package/dist/api/commands/nvr-exporter.d.ts +4 -0
- package/dist/api/commands/nvr-recorder.d.ts +16 -0
- package/dist/api/commands/playback-server.d.ts +440 -0
- package/dist/api/commands/playback-server.js +64 -0
- package/dist/api/commands/server.d.ts +4 -0
- package/dist/api/events/all.d.ts +16 -1
- package/dist/api/events/all.js +7 -0
- package/dist/api/events/index.d.ts +1 -0
- package/dist/api/events/index.js +1 -0
- package/dist/api/events/playback-server.d.ts +35 -0
- package/dist/api/events/playback-server.js +28 -0
- package/dist/api/events/server.d.ts +8 -1
- package/dist/api/events/server.js +7 -1
- package/dist/api/queries/all.d.ts +31 -2
- package/dist/api/queries/all.js +3 -0
- package/dist/api/queries/index.d.ts +1 -0
- package/dist/api/queries/index.js +1 -0
- package/dist/api/queries/nvr-recorder.d.ts +16 -0
- package/dist/api/queries/playback-server.d.ts +72 -0
- package/dist/api/queries/playback-server.js +47 -0
- package/dist/api/rest/device.d.ts +4 -0
- package/dist/api/rest/index.d.ts +1 -0
- package/dist/api/rest/index.js +1 -0
- package/dist/api/rest/time-zone.d.ts +5 -0
- package/dist/api/rest/time-zone.js +10 -0
- package/dist/api/rest/user.d.ts +3 -3
- package/dist/objects/device/any-device.d.ts +120 -1
- package/dist/objects/device/any-device.js +11 -1
- package/dist/objects/device/device-import.d.ts +8 -0
- package/dist/objects/device/index.d.ts +1 -0
- package/dist/objects/device/index.js +1 -0
- package/dist/objects/device/playback-server.d.ts +9 -0
- package/dist/objects/device/playback-server.js +10 -0
- package/dist/objects/device/server.d.ts +1 -0
- package/dist/objects/role.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +6 -6
- package/dist/permissions.js +2 -0
- package/dist/primitives.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.playbackServerEventSchemasByKind = exports.sPlaybackSessionLinkIssued = exports.sPlaybackSessionClosed = exports.sPlaybackSessionOpened = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// EVENTS
|
|
6
|
+
exports.sPlaybackSessionOpened = zod_1.z.object({
|
|
7
|
+
kind: zod_1.z.literal('playback-session-opened'),
|
|
8
|
+
sessionId: zod_1.z.string().nonempty(),
|
|
9
|
+
});
|
|
10
|
+
exports.sPlaybackSessionClosed = zod_1.z.object({
|
|
11
|
+
kind: zod_1.z.literal('playback-session-closed'),
|
|
12
|
+
sessionId: zod_1.z.string().nonempty(),
|
|
13
|
+
reason: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('"closed" when closed by a command, "ended" when the session ended by itself'),
|
|
17
|
+
});
|
|
18
|
+
// Records who was given a viewer link to which session. Never carries the link.
|
|
19
|
+
exports.sPlaybackSessionLinkIssued = zod_1.z.object({
|
|
20
|
+
kind: zod_1.z.literal('playback-session-link-issued'),
|
|
21
|
+
sessionId: zod_1.z.string().nonempty(),
|
|
22
|
+
userId: zod_1.z.string(),
|
|
23
|
+
});
|
|
24
|
+
exports.playbackServerEventSchemasByKind = {
|
|
25
|
+
'playback-session-opened': exports.sPlaybackSessionOpened,
|
|
26
|
+
'playback-session-closed': exports.sPlaybackSessionClosed,
|
|
27
|
+
'playback-session-link-issued': exports.sPlaybackSessionLinkIssued,
|
|
28
|
+
};
|
|
@@ -68,4 +68,11 @@ export declare const sAccessPathActivated: z.ZodObject<{
|
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
export type MacroActivated = z.infer<typeof sMacroActivated>;
|
|
70
70
|
export type AccessPathActivated = z.infer<typeof sAccessPathActivated>;
|
|
71
|
-
export
|
|
71
|
+
export declare const sTimeZoneChanged: z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"time-zone-changed">;
|
|
73
|
+
timeZone: z.ZodString;
|
|
74
|
+
previousTimeZone: z.ZodNullable<z.ZodString>;
|
|
75
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type TimeZoneChanged = z.infer<typeof sTimeZoneChanged>;
|
|
78
|
+
export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped | UserLoggedIn | UserLoggedOut | MacroActivated | AccessPathActivated | TimeZoneChanged;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sAccessPathActivated = exports.sMacroActivated = exports.sUserLoggedOut = exports.sUserLoggedIn = exports.sAgentStopped = exports.sAgentStarted = void 0;
|
|
3
|
+
exports.sTimeZoneChanged = exports.sAccessPathActivated = exports.sMacroActivated = exports.sUserLoggedOut = exports.sUserLoggedIn = exports.sAgentStopped = exports.sAgentStarted = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("../../primitives");
|
|
6
6
|
// EVENTS
|
|
@@ -32,3 +32,9 @@ exports.sAccessPathActivated = zod_1.z.object({
|
|
|
32
32
|
macroId: zod_1.z.string(),
|
|
33
33
|
displayName: zod_1.z.string(),
|
|
34
34
|
});
|
|
35
|
+
exports.sTimeZoneChanged = zod_1.z.object({
|
|
36
|
+
kind: zod_1.z.literal('time-zone-changed'),
|
|
37
|
+
timeZone: zod_1.z.string(), // new IANA zone, e.g. 'Africa/Cairo' or 'Etc/GMT-3'
|
|
38
|
+
previousTimeZone: zod_1.z.string().nullable(), // null the first time it is set
|
|
39
|
+
userId: zod_1.z.string().optional(), // matches the other server events
|
|
40
|
+
});
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { CameraQueryRequestMap, CameraQueryResponseMap } from './camera';
|
|
3
3
|
import { NvrAnalyticsQueryRequestMap, NvrAnalyticsQueryResponseMap } from './nvr-analytics-server';
|
|
4
4
|
import { NvrExporterQueryRequestMap, NvrExporterQueryResponseMap } from './nvr-exporter';
|
|
5
|
+
import { PlaybackServerQueryRequestMap, PlaybackServerQueryResponseMap } from './playback-server';
|
|
5
6
|
import { NvrRecorderQueryRequestMap, NvrRecorderQueryResponseMap } from './nvr-recorder';
|
|
6
7
|
import { ReaderQueryRequestMap, ReaderQueryResponseMap } from './reader';
|
|
7
8
|
export declare const sEventCapsQueryArgs: z.ZodObject<{}, z.core.$strip>;
|
|
@@ -68,6 +69,10 @@ export declare const requestSchemasByType: {
|
|
|
68
69
|
id: z.ZodString;
|
|
69
70
|
imageId: z.ZodString;
|
|
70
71
|
}, z.core.$strip>;
|
|
72
|
+
readonly "cctv:get-playback-sessions": z.ZodObject<{}, z.core.$strip>;
|
|
73
|
+
readonly "cctv:get-playback-session-link": z.ZodObject<{
|
|
74
|
+
sessionId: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
71
76
|
readonly "cctv:get-export-link": z.ZodObject<{
|
|
72
77
|
exportId: z.ZodString;
|
|
73
78
|
}, z.core.$strip>;
|
|
@@ -176,6 +181,8 @@ export declare const requestSchemasByType: {
|
|
|
176
181
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
177
182
|
}, z.core.$strip>, z.ZodObject<{
|
|
178
183
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
type: z.ZodLiteral<"playback-server">;
|
|
179
186
|
}, z.core.$strip>, z.ZodObject<{
|
|
180
187
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
181
188
|
motionDetection: "motionDetection";
|
|
@@ -297,6 +304,8 @@ export declare const requestSchemasByType: {
|
|
|
297
304
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
298
305
|
}, z.core.$strip>, z.ZodObject<{
|
|
299
306
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
type: z.ZodLiteral<"playback-server">;
|
|
300
309
|
}, z.core.$strip>, z.ZodObject<{
|
|
301
310
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
302
311
|
motionDetection: "motionDetection";
|
|
@@ -418,6 +427,8 @@ export declare const requestSchemasByType: {
|
|
|
418
427
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
419
428
|
}, z.core.$strip>, z.ZodObject<{
|
|
420
429
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
431
|
+
type: z.ZodLiteral<"playback-server">;
|
|
421
432
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
433
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
423
434
|
motionDetection: "motionDetection";
|
|
@@ -539,6 +550,8 @@ export declare const requestSchemasByType: {
|
|
|
539
550
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
540
551
|
}, z.core.$strip>, z.ZodObject<{
|
|
541
552
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"playback-server">;
|
|
542
555
|
}, z.core.$strip>, z.ZodObject<{
|
|
543
556
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
544
557
|
motionDetection: "motionDetection";
|
|
@@ -611,6 +624,22 @@ export declare const responseSchemasByType: {
|
|
|
611
624
|
success: z.ZodBoolean;
|
|
612
625
|
message: z.ZodString;
|
|
613
626
|
}, z.core.$strip>;
|
|
627
|
+
readonly "cctv:get-playback-sessions": z.ZodArray<z.ZodObject<{
|
|
628
|
+
sessionId: z.ZodString;
|
|
629
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
630
|
+
cameraId: z.ZodString;
|
|
631
|
+
streamId: z.ZodString;
|
|
632
|
+
}, z.core.$strip>>;
|
|
633
|
+
}, z.core.$strip>>;
|
|
634
|
+
readonly "cctv:get-playback-session-link": z.ZodObject<{
|
|
635
|
+
baseUrl: z.ZodString;
|
|
636
|
+
link: z.ZodString;
|
|
637
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
638
|
+
cameraId: z.ZodString;
|
|
639
|
+
streamId: z.ZodString;
|
|
640
|
+
source: z.ZodString;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
}, z.core.$strip>;
|
|
614
643
|
readonly "cctv:get-export-link": z.ZodObject<{
|
|
615
644
|
exportLink: z.ZodURL;
|
|
616
645
|
extraHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -659,10 +688,10 @@ export declare const responseSchemasByType: {
|
|
|
659
688
|
data: z.ZodString;
|
|
660
689
|
}, z.core.$strip>>;
|
|
661
690
|
};
|
|
662
|
-
export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & ReaderQueryRequestMap & NvrExporterQueryRequestMap & {
|
|
691
|
+
export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & ReaderQueryRequestMap & NvrExporterQueryRequestMap & PlaybackServerQueryRequestMap & {
|
|
663
692
|
[QUERY_EVENT_CAPS]: EventCapsQueryArgs;
|
|
664
693
|
};
|
|
665
|
-
export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & ReaderQueryResponseMap & NvrExporterQueryResponseMap & {
|
|
694
|
+
export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & ReaderQueryResponseMap & NvrExporterQueryResponseMap & PlaybackServerQueryResponseMap & {
|
|
666
695
|
[QUERY_EVENT_CAPS]: EventCapsQueryResponse;
|
|
667
696
|
};
|
|
668
697
|
export type QueryType = keyof QueryRequestMap;
|
package/dist/api/queries/all.js
CHANGED
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const camera_1 = require("./camera");
|
|
6
6
|
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
7
7
|
const nvr_exporter_1 = require("./nvr-exporter");
|
|
8
|
+
const playback_server_1 = require("./playback-server");
|
|
8
9
|
const nvr_recorder_1 = require("./nvr-recorder");
|
|
9
10
|
const reader_1 = require("./reader");
|
|
10
11
|
// queries that apply to all devices
|
|
@@ -15,6 +16,7 @@ exports.sEventCapsQueryResponse = zod_1.z.array(zod_1.z.string());
|
|
|
15
16
|
exports.requestSchemasByType = {
|
|
16
17
|
...nvr_recorder_1.nvrRecorderRequestSchemas,
|
|
17
18
|
...nvr_exporter_1.nvrExporterRequestSchemas,
|
|
19
|
+
...playback_server_1.playbackServerRequestSchemas,
|
|
18
20
|
...nvr_analytics_server_1.nvrAnalyticsRequestSchemas,
|
|
19
21
|
...camera_1.cameraRequestSchemas,
|
|
20
22
|
...reader_1.readerRequestSchemas,
|
|
@@ -24,6 +26,7 @@ exports.requestSchemasByType = {
|
|
|
24
26
|
exports.responseSchemasByType = {
|
|
25
27
|
...nvr_recorder_1.nvrRecorderResponseSchemas,
|
|
26
28
|
...nvr_exporter_1.nvrExporterResponseSchemas,
|
|
29
|
+
...playback_server_1.playbackServerResponseSchemas,
|
|
27
30
|
...nvr_analytics_server_1.nvrAnalyticsResponseSchemas,
|
|
28
31
|
...camera_1.cameraResponseSchemas,
|
|
29
32
|
...reader_1.readerResponseSchemas,
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./camera"), exports);
|
|
18
18
|
__exportStar(require("./nvr-analytics-server"), exports);
|
|
19
19
|
__exportStar(require("./nvr-exporter"), exports);
|
|
20
|
+
__exportStar(require("./playback-server"), exports);
|
|
20
21
|
__exportStar(require("./nvr-recorder"), exports);
|
|
21
22
|
__exportStar(require("./reader"), exports);
|
|
22
23
|
__exportStar(require("./all"), exports);
|
|
@@ -104,6 +104,8 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
|
|
|
104
104
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
105
105
|
}, z.core.$strip>, z.ZodObject<{
|
|
106
106
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"playback-server">;
|
|
107
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
110
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
109
111
|
motionDetection: "motionDetection";
|
|
@@ -234,6 +236,8 @@ export declare const sMotionStatsByTimeRangeArgs: z.ZodObject<{
|
|
|
234
236
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
235
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
238
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"playback-server">;
|
|
237
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
238
242
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
239
243
|
motionDetection: "motionDetection";
|
|
@@ -375,6 +379,8 @@ export declare const sPreviewImageArgs: z.ZodObject<{
|
|
|
375
379
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
376
380
|
}, z.core.$strip>, z.ZodObject<{
|
|
377
381
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"playback-server">;
|
|
378
384
|
}, z.core.$strip>, z.ZodObject<{
|
|
379
385
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
380
386
|
motionDetection: "motionDetection";
|
|
@@ -503,6 +509,8 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
|
|
|
503
509
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
504
510
|
}, z.core.$strip>, z.ZodObject<{
|
|
505
511
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"playback-server">;
|
|
506
514
|
}, z.core.$strip>, z.ZodObject<{
|
|
507
515
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
508
516
|
motionDetection: "motionDetection";
|
|
@@ -631,6 +639,8 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
631
639
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
632
640
|
}, z.core.$strip>, z.ZodObject<{
|
|
633
641
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
643
|
+
type: z.ZodLiteral<"playback-server">;
|
|
634
644
|
}, z.core.$strip>, z.ZodObject<{
|
|
635
645
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
636
646
|
motionDetection: "motionDetection";
|
|
@@ -752,6 +762,8 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
752
762
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
753
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
754
764
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"playback-server">;
|
|
755
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
756
768
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
757
769
|
motionDetection: "motionDetection";
|
|
@@ -873,6 +885,8 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
873
885
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
874
886
|
}, z.core.$strip>, z.ZodObject<{
|
|
875
887
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
889
|
+
type: z.ZodLiteral<"playback-server">;
|
|
876
890
|
}, z.core.$strip>, z.ZodObject<{
|
|
877
891
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
878
892
|
motionDetection: "motionDetection";
|
|
@@ -994,6 +1008,8 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
994
1008
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
995
1009
|
}, z.core.$strip>, z.ZodObject<{
|
|
996
1010
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
1011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
+
type: z.ZodLiteral<"playback-server">;
|
|
997
1013
|
}, z.core.$strip>, z.ZodObject<{
|
|
998
1014
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
999
1015
|
motionDetection: "motionDetection";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const QUERY_GET_PLAYBACK_SESSIONS = "cctv:get-playback-sessions";
|
|
3
|
+
export declare const sGetPlaybackSessionsArgs: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
export declare const sPlaybackSessionCameraRef: z.ZodObject<{
|
|
5
|
+
cameraId: z.ZodString;
|
|
6
|
+
streamId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const sPlaybackSessionItem: z.ZodObject<{
|
|
9
|
+
sessionId: z.ZodString;
|
|
10
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
11
|
+
cameraId: z.ZodString;
|
|
12
|
+
streamId: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const sGetPlaybackSessionsResponse: z.ZodArray<z.ZodObject<{
|
|
16
|
+
sessionId: z.ZodString;
|
|
17
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
18
|
+
cameraId: z.ZodString;
|
|
19
|
+
streamId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
export type GetPlaybackSessionsArgs = z.infer<typeof sGetPlaybackSessionsArgs>;
|
|
23
|
+
export type PlaybackSessionCameraRef = z.infer<typeof sPlaybackSessionCameraRef>;
|
|
24
|
+
export type PlaybackSessionItem = z.infer<typeof sPlaybackSessionItem>;
|
|
25
|
+
export type GetPlaybackSessionsResponse = z.infer<typeof sGetPlaybackSessionsResponse>;
|
|
26
|
+
export declare const QUERY_GET_PLAYBACK_SESSION_LINK = "cctv:get-playback-session-link";
|
|
27
|
+
export declare const sGetPlaybackSessionLinkArgs: z.ZodObject<{
|
|
28
|
+
sessionId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const sGetPlaybackSessionLinkResponse: z.ZodObject<{
|
|
31
|
+
baseUrl: z.ZodString;
|
|
32
|
+
link: z.ZodString;
|
|
33
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
34
|
+
cameraId: z.ZodString;
|
|
35
|
+
streamId: z.ZodString;
|
|
36
|
+
source: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type GetPlaybackSessionLinkArgs = z.infer<typeof sGetPlaybackSessionLinkArgs>;
|
|
40
|
+
export type GetPlaybackSessionLinkResponse = z.infer<typeof sGetPlaybackSessionLinkResponse>;
|
|
41
|
+
export declare const playbackServerRequestSchemas: {
|
|
42
|
+
readonly "cctv:get-playback-sessions": z.ZodObject<{}, z.core.$strip>;
|
|
43
|
+
readonly "cctv:get-playback-session-link": z.ZodObject<{
|
|
44
|
+
sessionId: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
};
|
|
47
|
+
export declare const playbackServerResponseSchemas: {
|
|
48
|
+
readonly "cctv:get-playback-sessions": z.ZodArray<z.ZodObject<{
|
|
49
|
+
sessionId: z.ZodString;
|
|
50
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
51
|
+
cameraId: z.ZodString;
|
|
52
|
+
streamId: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
readonly "cctv:get-playback-session-link": z.ZodObject<{
|
|
56
|
+
baseUrl: z.ZodString;
|
|
57
|
+
link: z.ZodString;
|
|
58
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
59
|
+
cameraId: z.ZodString;
|
|
60
|
+
streamId: z.ZodString;
|
|
61
|
+
source: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
};
|
|
65
|
+
export type PlaybackServerQueryRequestMap = {
|
|
66
|
+
[QUERY_GET_PLAYBACK_SESSIONS]: GetPlaybackSessionsArgs;
|
|
67
|
+
[QUERY_GET_PLAYBACK_SESSION_LINK]: GetPlaybackSessionLinkArgs;
|
|
68
|
+
};
|
|
69
|
+
export type PlaybackServerQueryResponseMap = {
|
|
70
|
+
[QUERY_GET_PLAYBACK_SESSIONS]: GetPlaybackSessionsResponse;
|
|
71
|
+
[QUERY_GET_PLAYBACK_SESSION_LINK]: GetPlaybackSessionLinkResponse;
|
|
72
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.playbackServerResponseSchemas = exports.playbackServerRequestSchemas = exports.sGetPlaybackSessionLinkResponse = exports.sGetPlaybackSessionLinkArgs = exports.QUERY_GET_PLAYBACK_SESSION_LINK = exports.sGetPlaybackSessionsResponse = exports.sPlaybackSessionItem = exports.sPlaybackSessionCameraRef = exports.sGetPlaybackSessionsArgs = exports.QUERY_GET_PLAYBACK_SESSIONS = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// QUERIES
|
|
6
|
+
// -- Get Playback Sessions
|
|
7
|
+
exports.QUERY_GET_PLAYBACK_SESSIONS = 'cctv:get-playback-sessions';
|
|
8
|
+
exports.sGetPlaybackSessionsArgs = zod_1.z.object({});
|
|
9
|
+
exports.sPlaybackSessionCameraRef = zod_1.z.object({
|
|
10
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
11
|
+
streamId: zod_1.z.string().nonempty(),
|
|
12
|
+
});
|
|
13
|
+
exports.sPlaybackSessionItem = zod_1.z.object({
|
|
14
|
+
sessionId: zod_1.z.string().nonempty(),
|
|
15
|
+
cameras: zod_1.z.array(exports.sPlaybackSessionCameraRef),
|
|
16
|
+
});
|
|
17
|
+
exports.sGetPlaybackSessionsResponse = zod_1.z.array(exports.sPlaybackSessionItem);
|
|
18
|
+
// -- Get Playback Session Link
|
|
19
|
+
exports.QUERY_GET_PLAYBACK_SESSION_LINK = 'cctv:get-playback-session-link';
|
|
20
|
+
exports.sGetPlaybackSessionLinkArgs = zod_1.z.object({
|
|
21
|
+
sessionId: zod_1.z.string().nonempty(),
|
|
22
|
+
});
|
|
23
|
+
exports.sGetPlaybackSessionLinkResponse = zod_1.z.object({
|
|
24
|
+
baseUrl: zod_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.describe('Base URL of the playback server as browsers reach it; may be a path on the current origin'),
|
|
27
|
+
link: zod_1.z
|
|
28
|
+
.string()
|
|
29
|
+
.nonempty()
|
|
30
|
+
.describe("The viewer link's secret. A credential: send it only in a request header or the control socket's hello, never in a URL"),
|
|
31
|
+
cameras: zod_1.z.array(exports.sPlaybackSessionCameraRef.extend({
|
|
32
|
+
source: zod_1.z
|
|
33
|
+
.string()
|
|
34
|
+
.nonempty()
|
|
35
|
+
.describe("The camera's source name on the playback server"),
|
|
36
|
+
})),
|
|
37
|
+
});
|
|
38
|
+
// Dictionary of request schemas by query type
|
|
39
|
+
exports.playbackServerRequestSchemas = {
|
|
40
|
+
[exports.QUERY_GET_PLAYBACK_SESSIONS]: exports.sGetPlaybackSessionsArgs,
|
|
41
|
+
[exports.QUERY_GET_PLAYBACK_SESSION_LINK]: exports.sGetPlaybackSessionLinkArgs,
|
|
42
|
+
};
|
|
43
|
+
// Dictionary of response schemas by query type
|
|
44
|
+
exports.playbackServerResponseSchemas = {
|
|
45
|
+
[exports.QUERY_GET_PLAYBACK_SESSIONS]: exports.sGetPlaybackSessionsResponse,
|
|
46
|
+
[exports.QUERY_GET_PLAYBACK_SESSION_LINK]: exports.sGetPlaybackSessionLinkResponse,
|
|
47
|
+
};
|
|
@@ -52,6 +52,7 @@ export declare const sAddDeviceRequest: z.ZodObject<{
|
|
|
52
52
|
display: "display";
|
|
53
53
|
"nvr-recorder": "nvr-recorder";
|
|
54
54
|
"nvr-exporter": "nvr-exporter";
|
|
55
|
+
"playback-server": "playback-server";
|
|
55
56
|
"nvr-analytics-server": "nvr-analytics-server";
|
|
56
57
|
system: "system";
|
|
57
58
|
reader: "reader";
|
|
@@ -155,6 +156,7 @@ export declare const sApplyDeviceChangesRequest: z.ZodObject<{
|
|
|
155
156
|
display: "display";
|
|
156
157
|
"nvr-recorder": "nvr-recorder";
|
|
157
158
|
"nvr-exporter": "nvr-exporter";
|
|
159
|
+
"playback-server": "playback-server";
|
|
158
160
|
"nvr-analytics-server": "nvr-analytics-server";
|
|
159
161
|
system: "system";
|
|
160
162
|
reader: "reader";
|
|
@@ -403,6 +405,8 @@ export declare const sPendingDeviceWrite: z.ZodObject<{
|
|
|
403
405
|
type: z.ZodLiteral<"nvr-recorder">;
|
|
404
406
|
}, z.core.$strip>, z.ZodObject<{
|
|
405
407
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
+
type: z.ZodLiteral<"playback-server">;
|
|
406
410
|
}, z.core.$strip>, z.ZodObject<{
|
|
407
411
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
408
412
|
motionDetection: "motionDetection";
|
package/dist/api/rest/index.d.ts
CHANGED
package/dist/api/rest/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.sSetTimeZoneRequest = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.sSetTimeZoneRequest = zod_1.default.object({
|
|
9
|
+
timeZone: zod_1.default.string().min(1),
|
|
10
|
+
});
|
package/dist/api/rest/user.d.ts
CHANGED
|
@@ -31,18 +31,18 @@ export declare const sMeResponse: z.ZodObject<{
|
|
|
31
31
|
isActive: z.ZodBoolean;
|
|
32
32
|
isRoot: z.ZodBoolean;
|
|
33
33
|
roles: z.ZodArray<z.ZodString>;
|
|
34
|
-
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">]>>;
|
|
34
|
+
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">, z.ZodLiteral<"time-zone:update">]>>;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export declare const sAddRoleRequest: z.ZodObject<{
|
|
37
37
|
displayName: z.ZodString;
|
|
38
38
|
description: z.ZodString;
|
|
39
|
-
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">]>>;
|
|
39
|
+
permissions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">, z.ZodLiteral<"time-zone:update">]>>;
|
|
40
40
|
systemName: z.ZodString;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export declare const sUpdateRoleRequest: z.ZodObject<{
|
|
43
43
|
displayName: z.ZodOptional<z.ZodString>;
|
|
44
44
|
description: z.ZodOptional<z.ZodString>;
|
|
45
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">]>>>;
|
|
45
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"camera:record">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"person:face">, z.ZodLiteral<"zone:update">, z.ZodLiteral<"zone:delete">, z.ZodLiteral<"zone:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:rename">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"notification:read">, z.ZodLiteral<"notification:create">, z.ZodLiteral<"notification:acknowledge">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"display:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">, z.ZodLiteral<"access-authority:read">, z.ZodLiteral<"access-authority:sync">, z.ZodLiteral<"access-authority:delete">, z.ZodLiteral<"trackable:read">, z.ZodLiteral<"trackable:image-upload">, z.ZodLiteral<"trackable:user-favorite">, z.ZodLiteral<"trackable:global-favorite">, z.ZodLiteral<"trackable:manage">, z.ZodLiteral<"trackable:image-manage">, z.ZodLiteral<"time-zone:update">]>>>;
|
|
46
46
|
systemName: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
export type NewUserRequest = z.infer<typeof sNewUserRequest>;
|