@awarevue/api-types 2.0.101 → 2.0.103
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.
|
@@ -15,6 +15,10 @@ export declare const requestSchemasByType: {
|
|
|
15
15
|
type: z.ZodString;
|
|
16
16
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
readonly "device:verify": z.ZodObject<{
|
|
19
|
+
type: z.ZodString;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
18
22
|
readonly "cctv:media-search": z.ZodObject<{
|
|
19
23
|
devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny>>>;
|
|
20
24
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -456,6 +460,7 @@ export declare const requestSchemasByType: {
|
|
|
456
460
|
export declare const responseSchemasByType: {
|
|
457
461
|
readonly "device:event-caps": z.ZodArray<z.ZodString>;
|
|
458
462
|
readonly "device:capture": z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
463
|
+
readonly "device:verify": z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
459
464
|
readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
|
|
460
465
|
relevance: z.ZodNumber;
|
|
461
466
|
providerAssignedRef: z.ZodString;
|
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const QUERY_CAPTURE = "device:capture";
|
|
3
|
+
export declare const QUERY_VERIFY = "device:verify";
|
|
3
4
|
export declare const sCaptureQueryArgs: z.ZodObject<{
|
|
4
5
|
type: z.ZodString;
|
|
5
6
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6
7
|
}, z.core.$strip>;
|
|
8
|
+
export declare const sVerifyQueryArgs: z.ZodObject<{
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
7
12
|
export declare const sCaptureQueryResponse: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
13
|
+
export declare const sVerifyQueryResponse: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
8
14
|
export type CaptureQueryArgs = z.infer<typeof sCaptureQueryArgs>;
|
|
15
|
+
export type VerifyQueryArgs = z.infer<typeof sVerifyQueryArgs>;
|
|
9
16
|
export type CaptureQueryResponse = z.infer<typeof sCaptureQueryResponse>;
|
|
17
|
+
export type VerifyQueryResponse = z.infer<typeof sVerifyQueryResponse>;
|
|
10
18
|
export declare const readerRequestSchemas: {
|
|
11
19
|
readonly "device:capture": z.ZodObject<{
|
|
12
20
|
type: z.ZodString;
|
|
13
21
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
14
22
|
}, z.core.$strip>;
|
|
23
|
+
readonly "device:verify": z.ZodObject<{
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
15
27
|
};
|
|
16
28
|
export declare const readerResponseSchemas: {
|
|
17
29
|
readonly "device:capture": z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
30
|
+
readonly "device:verify": z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
18
31
|
};
|
|
19
32
|
export type ReaderQueryRequestMap = {
|
|
20
33
|
[QUERY_CAPTURE]: CaptureQueryArgs;
|
|
34
|
+
[QUERY_VERIFY]: VerifyQueryArgs;
|
|
21
35
|
};
|
|
22
36
|
export type ReaderQueryResponseMap = {
|
|
23
37
|
[QUERY_CAPTURE]: CaptureQueryResponse;
|
|
38
|
+
[QUERY_VERIFY]: VerifyQueryResponse;
|
|
24
39
|
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readerResponseSchemas = exports.readerRequestSchemas = exports.sCaptureQueryResponse = exports.sCaptureQueryArgs = exports.QUERY_CAPTURE = void 0;
|
|
3
|
+
exports.readerResponseSchemas = exports.readerRequestSchemas = exports.sVerifyQueryResponse = exports.sCaptureQueryResponse = exports.sVerifyQueryArgs = exports.sCaptureQueryArgs = exports.QUERY_VERIFY = exports.QUERY_CAPTURE = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.QUERY_CAPTURE = 'device:capture';
|
|
6
|
+
exports.QUERY_VERIFY = 'device:verify';
|
|
6
7
|
exports.sCaptureQueryArgs = zod_1.z.object({
|
|
7
8
|
type: zod_1.z.string(),
|
|
8
9
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
9
10
|
});
|
|
11
|
+
exports.sVerifyQueryArgs = zod_1.z.object({
|
|
12
|
+
type: zod_1.z.string(),
|
|
13
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
14
|
+
});
|
|
10
15
|
exports.sCaptureQueryResponse = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
16
|
+
exports.sVerifyQueryResponse = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
11
17
|
exports.readerRequestSchemas = {
|
|
12
18
|
[exports.QUERY_CAPTURE]: exports.sCaptureQueryArgs,
|
|
19
|
+
[exports.QUERY_VERIFY]: exports.sVerifyQueryArgs,
|
|
13
20
|
};
|
|
14
21
|
// Dictionary of response schemas by query type
|
|
15
22
|
exports.readerResponseSchemas = {
|
|
16
23
|
[exports.QUERY_CAPTURE]: exports.sCaptureQueryResponse,
|
|
24
|
+
[exports.QUERY_VERIFY]: exports.sVerifyQueryResponse,
|
|
17
25
|
};
|
|
@@ -40,6 +40,40 @@ export declare const sUnbindStreamRecorderRq: z.ZodObject<{
|
|
|
40
40
|
recorderId: z.ZodString;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export declare const sUnbindStreamRecorderRs: z.ZodObject<{}, z.core.$strip>;
|
|
43
|
+
export declare const sBindStreamAnalyticsRq: z.ZodObject<{
|
|
44
|
+
analyticsServerId: z.ZodString;
|
|
45
|
+
cameraId: z.ZodString;
|
|
46
|
+
streamId: z.ZodString;
|
|
47
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
enabled: z.ZodBoolean;
|
|
50
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
enabled: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
enabled: z.ZodBoolean;
|
|
58
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
enabled: z.ZodBoolean;
|
|
63
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
enabled: z.ZodBoolean;
|
|
67
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export declare const sBindStreamAnalyticsRs: z.ZodObject<{}, z.core.$strip>;
|
|
71
|
+
export declare const sUnbindStreamAnalyticsRq: z.ZodObject<{
|
|
72
|
+
analyticsServerId: z.ZodString;
|
|
73
|
+
cameraId: z.ZodString;
|
|
74
|
+
streamId: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const sUnbindStreamAnalyticsRs: z.ZodObject<{}, z.core.$strip>;
|
|
43
77
|
export type AddCameraRq = z.infer<typeof sAddCameraRq>;
|
|
44
78
|
export type AddCameraRs = z.infer<typeof sAddCameraRs>;
|
|
45
79
|
export type AddCameraStreamRq = z.infer<typeof sAddCameraStreamRq>;
|
|
@@ -52,3 +86,7 @@ export type BindStreamRecorderRq = z.infer<typeof sBindStreamRecorderRq>;
|
|
|
52
86
|
export type BindStreamRecorderRs = z.infer<typeof sBindStreamRecorderRs>;
|
|
53
87
|
export type UnbindStreamRecorderRq = z.infer<typeof sUnbindStreamRecorderRq>;
|
|
54
88
|
export type UnbindStreamRecorderRs = z.infer<typeof sUnbindStreamRecorderRs>;
|
|
89
|
+
export type BindStreamAnalyticsRq = z.infer<typeof sBindStreamAnalyticsRq>;
|
|
90
|
+
export type BindStreamAnalyticsRs = z.infer<typeof sBindStreamAnalyticsRs>;
|
|
91
|
+
export type UnbindStreamAnalyticsRq = z.infer<typeof sUnbindStreamAnalyticsRq>;
|
|
92
|
+
export type UnbindStreamAnalyticsRs = z.infer<typeof sUnbindStreamAnalyticsRs>;
|
package/dist/api/rest/camera.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sUnbindStreamRecorderRs = exports.sUnbindStreamRecorderRq = exports.sBindStreamRecorderRs = exports.sBindStreamRecorderRq = exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sPatchCameraStreamRs = exports.sPatchCameraStreamRq = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
|
|
3
|
+
exports.sUnbindStreamAnalyticsRs = exports.sUnbindStreamAnalyticsRq = exports.sBindStreamAnalyticsRs = exports.sBindStreamAnalyticsRq = exports.sUnbindStreamRecorderRs = exports.sUnbindStreamRecorderRq = exports.sBindStreamRecorderRs = exports.sBindStreamRecorderRq = exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sPatchCameraStreamRs = exports.sPatchCameraStreamRq = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const device_relation_1 = require("../../objects/device/device-relation");
|
|
5
6
|
exports.sAddCameraRq = zod_1.z.object({
|
|
6
7
|
displayName: zod_1.z.string().nonempty(),
|
|
7
8
|
});
|
|
@@ -43,3 +44,17 @@ exports.sUnbindStreamRecorderRq = zod_1.z.object({
|
|
|
43
44
|
recorderId: zod_1.z.string().nonempty(),
|
|
44
45
|
});
|
|
45
46
|
exports.sUnbindStreamRecorderRs = zod_1.z.object({});
|
|
47
|
+
exports.sBindStreamAnalyticsRq = zod_1.z
|
|
48
|
+
.object({
|
|
49
|
+
analyticsServerId: zod_1.z.string().nonempty(),
|
|
50
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
51
|
+
streamId: zod_1.z.string().nonempty(),
|
|
52
|
+
})
|
|
53
|
+
.extend(device_relation_1.sAiStreamConfiguration.shape);
|
|
54
|
+
exports.sBindStreamAnalyticsRs = zod_1.z.object({});
|
|
55
|
+
exports.sUnbindStreamAnalyticsRq = zod_1.z.object({
|
|
56
|
+
analyticsServerId: zod_1.z.string().nonempty(),
|
|
57
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
58
|
+
streamId: zod_1.z.string().nonempty(),
|
|
59
|
+
});
|
|
60
|
+
exports.sUnbindStreamAnalyticsRs = zod_1.z.object({});
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.103",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.103",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|