@awarevue/api-types 2.0.97 → 2.0.99
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 +26 -0
- package/dist/api/commands/all.d.ts +36 -0
- package/dist/api/commands/nvr-exporter.d.ts +12 -0
- package/dist/api/commands/nvr-recorder.d.ts +48 -0
- package/dist/api/commands/server.d.ts +12 -0
- package/dist/api/queries/all.d.ts +18 -0
- package/dist/api/queries/nvr-recorder.d.ts +36 -0
- package/dist/api/rest/device.d.ts +6 -0
- package/dist/objects/device/any-device.d.ts +110 -0
- package/dist/objects/device/device-import.d.ts +32 -0
- package/dist/objects/device/device-relation.d.ts +98 -2
- package/dist/objects/device/device-relation.js +56 -2
- package/dist/objects/device/nvr-analytics-server.d.ts +8 -1
- package/dist/objects/device/nvr-analytics-server.js +4 -1
- package/dist/objects/device/reader.js +2 -2
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +20 -1
- package/dist/primitives.js +7 -2
- package/package.json +1 -1
- package/dist/primitives/credential-type.d.ts +0 -9
- package/dist/primitives/credential-type.js +0 -11
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/index.js +0 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
|
|
3
|
+
exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sAiInferenceRelationData = exports.sAiCapability = exports.sAiStreamConfiguration = exports.sAiSemanticSearchConfiguration = exports.sAiFaceRecognitionConfiguration = exports.sAiDetectionConfiguration = exports.sAiLabelConfiguration = exports.sMotionDetectionConfiguration = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sDeviceRelationKind = zod_1.z.enum([
|
|
6
6
|
'attachedTo',
|
|
@@ -22,6 +22,8 @@ exports.sDeviceRelationKind = zod_1.z.enum([
|
|
|
22
22
|
'isRecordedBy',
|
|
23
23
|
'reads',
|
|
24
24
|
'isReadBy',
|
|
25
|
+
'isIngestedBy',
|
|
26
|
+
'ingests',
|
|
25
27
|
]);
|
|
26
28
|
exports.sDeviceRelationDto = zod_1.z
|
|
27
29
|
.object({
|
|
@@ -56,6 +58,8 @@ exports.relationKinds = {
|
|
|
56
58
|
isRecordedBy: 'isRecordedBy',
|
|
57
59
|
reads: 'reads',
|
|
58
60
|
isReadBy: 'isReadBy',
|
|
61
|
+
ingests: 'ingests',
|
|
62
|
+
isIngestedBy: 'isIngestedBy',
|
|
59
63
|
};
|
|
60
64
|
exports.inverseRelationKinds = {
|
|
61
65
|
attachedTo: 'attachedTo',
|
|
@@ -77,15 +81,63 @@ exports.inverseRelationKinds = {
|
|
|
77
81
|
isRecordedBy: 'records',
|
|
78
82
|
reads: 'isReadBy',
|
|
79
83
|
isReadBy: 'reads',
|
|
84
|
+
ingests: 'isIngestedBy',
|
|
85
|
+
isIngestedBy: 'ingests',
|
|
80
86
|
};
|
|
87
|
+
// RECORDING RELATION DATA
|
|
81
88
|
exports.sStreamRecorderSettings = zod_1.z.object({
|
|
82
|
-
streamId: zod_1.z.string(),
|
|
83
89
|
retentionHours: zod_1.z.number().int().positive().optional(),
|
|
84
90
|
prebufferSeconds: zod_1.z.number().int().nonnegative().optional(),
|
|
85
91
|
});
|
|
86
92
|
exports.sRecordingRelationData = zod_1.z.object({
|
|
87
93
|
streams: zod_1.z.record(zod_1.z.string(), exports.sStreamRecorderSettings),
|
|
88
94
|
});
|
|
95
|
+
// AI INFERENCE RELATION DATA
|
|
96
|
+
// --- motion detection module ---
|
|
97
|
+
exports.sMotionDetectionConfiguration = zod_1.z.object({
|
|
98
|
+
threshold: zod_1.z.number().min(0).max(1).optional(),
|
|
99
|
+
enabled: zod_1.z.boolean(),
|
|
100
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
101
|
+
});
|
|
102
|
+
// --- label detection module ---
|
|
103
|
+
exports.sAiLabelConfiguration = zod_1.z.object({
|
|
104
|
+
threshold: zod_1.z.number().min(0).max(1).optional(),
|
|
105
|
+
enabled: zod_1.z.boolean(),
|
|
106
|
+
});
|
|
107
|
+
exports.sAiDetectionConfiguration = zod_1.z.object({
|
|
108
|
+
labels: zod_1.z.record(zod_1.z.string(), exports.sAiLabelConfiguration),
|
|
109
|
+
enabled: zod_1.z.boolean(),
|
|
110
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
111
|
+
});
|
|
112
|
+
// --- face recognition module ---
|
|
113
|
+
exports.sAiFaceRecognitionConfiguration = zod_1.z.object({
|
|
114
|
+
threshold: zod_1.z.number().min(0).max(1).optional(),
|
|
115
|
+
enabled: zod_1.z.boolean(),
|
|
116
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
117
|
+
});
|
|
118
|
+
// --- semantic search module ---
|
|
119
|
+
exports.sAiSemanticSearchConfiguration = zod_1.z.object({
|
|
120
|
+
enabled: zod_1.z.boolean(),
|
|
121
|
+
fps: zod_1.z.number().int().positive().optional(),
|
|
122
|
+
});
|
|
123
|
+
// --- stream configuration ---
|
|
124
|
+
exports.sAiStreamConfiguration = zod_1.z.object({
|
|
125
|
+
motionDetection: exports.sMotionDetectionConfiguration.optional(),
|
|
126
|
+
labelDetection: exports.sAiDetectionConfiguration.optional(),
|
|
127
|
+
faceRecognition: exports.sAiFaceRecognitionConfiguration.optional(),
|
|
128
|
+
semanticSearch: exports.sAiSemanticSearchConfiguration.optional(),
|
|
129
|
+
});
|
|
130
|
+
exports.sAiCapability = zod_1.z.enum([
|
|
131
|
+
'motionDetection',
|
|
132
|
+
'labelDetection',
|
|
133
|
+
'faceRecognition',
|
|
134
|
+
'semanticSearch',
|
|
135
|
+
]);
|
|
136
|
+
// all together now: AI inference relation data
|
|
137
|
+
exports.sAiInferenceRelationData = zod_1.z.object({
|
|
138
|
+
streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
|
|
139
|
+
});
|
|
140
|
+
// IO BOARD CONNECTIONS RELATION DATA
|
|
89
141
|
exports.sIoBoardRelationData = zod_1.z.object({
|
|
90
142
|
slots: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
91
143
|
invertedSlots: zod_1.z.array(zod_1.z.string()),
|
|
@@ -112,4 +164,6 @@ exports.sDeviceRelationDataMap = {
|
|
|
112
164
|
isControlledBy: sEmptyRelationData,
|
|
113
165
|
reads: sEmptyRelationData,
|
|
114
166
|
isReadBy: sEmptyRelationData,
|
|
167
|
+
ingests: exports.sAiInferenceRelationData,
|
|
168
|
+
isIngestedBy: exports.sAiInferenceRelationData,
|
|
115
169
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const NVR_ANALYTICS_SERVER = "nvr-analytics-server";
|
|
3
|
-
export declare const sAnalyticsServerSpecs: z.ZodObject<{
|
|
3
|
+
export declare const sAnalyticsServerSpecs: z.ZodObject<{
|
|
4
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
5
|
+
motionDetection: "motionDetection";
|
|
6
|
+
labelDetection: "labelDetection";
|
|
7
|
+
faceRecognition: "faceRecognition";
|
|
8
|
+
semanticSearch: "semanticSearch";
|
|
9
|
+
}>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
4
11
|
export type AnalyticsServerSpecs = z.infer<typeof sAnalyticsServerSpecs>;
|
|
5
12
|
export declare const sAnalyticsServerStateDto: z.ZodObject<{
|
|
6
13
|
connected: z.ZodBoolean;
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const device_relation_1 = require("./device-relation");
|
|
5
6
|
exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
|
|
6
|
-
exports.sAnalyticsServerSpecs = zod_1.z.object({
|
|
7
|
+
exports.sAnalyticsServerSpecs = zod_1.z.object({
|
|
8
|
+
capabilities: zod_1.z.array(device_relation_1.sAiCapability),
|
|
9
|
+
});
|
|
7
10
|
exports.sAnalyticsServerStateDto = zod_1.z.object({
|
|
8
11
|
connected: zod_1.z.boolean(),
|
|
9
12
|
});
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sReaderSpecs = exports.READER = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const primitives_1 = require("../../primitives");
|
|
6
6
|
exports.READER = 'reader';
|
|
7
7
|
// SPECS
|
|
8
8
|
exports.sReaderSpecs = zod_1.z.object({
|
|
9
|
-
credentialTypes: zod_1.z.array(
|
|
9
|
+
credentialTypes: zod_1.z.array(primitives_1.sCredentialType).optional(),
|
|
10
10
|
});
|
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.99",
|
|
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/dist/primitives.d.ts
CHANGED
|
@@ -138,6 +138,12 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
|
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
140
140
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
142
|
+
motionDetection: "motionDetection";
|
|
143
|
+
labelDetection: "labelDetection";
|
|
144
|
+
faceRecognition: "faceRecognition";
|
|
145
|
+
semanticSearch: "semanticSearch";
|
|
146
|
+
}>>;
|
|
141
147
|
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
142
148
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
149
|
type: z.ZodLiteral<"system">;
|
|
@@ -257,6 +263,12 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
|
|
|
257
263
|
}, z.core.$strip>, z.ZodObject<{
|
|
258
264
|
type: z.ZodLiteral<"nvr-exporter">;
|
|
259
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
267
|
+
motionDetection: "motionDetection";
|
|
268
|
+
labelDetection: "labelDetection";
|
|
269
|
+
faceRecognition: "faceRecognition";
|
|
270
|
+
semanticSearch: "semanticSearch";
|
|
271
|
+
}>>;
|
|
260
272
|
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
261
273
|
}, z.core.$strip>, z.ZodObject<{
|
|
262
274
|
type: z.ZodLiteral<"system">;
|
|
@@ -286,4 +298,11 @@ export declare const sCallDirection: z.ZodEnum<{
|
|
|
286
298
|
incoming: "incoming";
|
|
287
299
|
outgoing: "outgoing";
|
|
288
300
|
}>;
|
|
289
|
-
export
|
|
301
|
+
export declare const sCredentialType: z.ZodEnum<{
|
|
302
|
+
card: "card";
|
|
303
|
+
pin: "pin";
|
|
304
|
+
fingerprint: "fingerprint";
|
|
305
|
+
face: "face";
|
|
306
|
+
retina: "retina";
|
|
307
|
+
}>;
|
|
308
|
+
export type CredentialType = z.infer<typeof sCredentialType>;
|
package/dist/primitives.js
CHANGED
|
@@ -53,5 +53,10 @@ exports.sCallState = zod_1.z.enum([
|
|
|
53
53
|
'terminated',
|
|
54
54
|
]);
|
|
55
55
|
exports.sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
exports.sCredentialType = zod_1.z.enum([
|
|
57
|
+
'card',
|
|
58
|
+
'pin',
|
|
59
|
+
'fingerprint',
|
|
60
|
+
'face',
|
|
61
|
+
'retina',
|
|
62
|
+
]);
|
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.99",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './credential-type';
|
package/dist/primitives/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
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("./credential-type"), exports);
|