@awarevue/api-types 2.0.81 → 2.0.83
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/alarm-automation.d.ts +21 -37
- package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
- package/dist/api/agent-protocol/protocol.js +16 -12
- package/dist/api/commands/alarm.d.ts +40 -248
- package/dist/api/commands/all.d.ts +393 -4642
- package/dist/api/commands/camera-lift.d.ts +8 -32
- package/dist/api/commands/camera.d.ts +82 -373
- package/dist/api/commands/display.d.ts +21 -373
- package/dist/api/commands/door.d.ts +16 -64
- package/dist/api/commands/io-board.d.ts +4 -40
- package/dist/api/commands/nvr-exporter.d.ts +104 -1380
- package/dist/api/commands/nvr-recorder.d.ts +400 -5288
- package/dist/api/commands/pbx.d.ts +4 -56
- package/dist/api/commands/presence-tracker.d.ts +12 -128
- package/dist/api/commands/server.d.ts +114 -1382
- package/dist/api/commands/server.js +1 -1
- package/dist/api/error.d.ts +77 -443
- package/dist/api/error.js +1 -1
- package/dist/api/events/alarm.d.ts +20 -148
- package/dist/api/events/all.d.ts +74 -526
- package/dist/api/events/all.js +1 -1
- package/dist/api/events/camera.d.ts +46 -470
- package/dist/api/events/display.d.ts +1 -5
- package/dist/api/events/door.d.ts +34 -146
- package/dist/api/events/intercom-terminal.d.ts +22 -42
- package/dist/api/events/io-board.d.ts +2 -18
- package/dist/api/events/nvr-exporter.d.ts +4 -32
- package/dist/api/events/panic-button.d.ts +2 -10
- package/dist/api/events/presence-tracker.d.ts +4 -88
- package/dist/api/events/reader.d.ts +2 -22
- package/dist/api/events/server.d.ts +6 -34
- package/dist/api/mqtt/payloads.d.ts +4 -26
- package/dist/api/queries/all.d.ts +188 -1622
- package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
- package/dist/api/queries/nvr-exporter.d.ts +9 -73
- package/dist/api/queries/nvr-recorder.d.ts +300 -2828
- package/dist/api/rest/access-rule.d.ts +10 -86
- package/dist/api/rest/agreement.d.ts +3 -18
- package/dist/api/rest/api-keys.d.ts +3 -17
- package/dist/api/rest/app.d.ts +3 -51
- package/dist/api/rest/auth.d.ts +3 -19
- package/dist/api/rest/automation.d.ts +11 -236
- package/dist/api/rest/bookmarks.d.ts +8 -56
- package/dist/api/rest/camera.d.ts +12 -70
- package/dist/api/rest/cast.d.ts +1 -7
- package/dist/api/rest/custom-field.d.ts +21 -24
- package/dist/api/rest/device-group.d.ts +8 -32
- package/dist/api/rest/device.d.ts +104 -176
- package/dist/api/rest/io-device.d.ts +7 -75
- package/dist/api/rest/io-device.js +2 -2
- package/dist/api/rest/layout.d.ts +4 -102
- package/dist/api/rest/macros.d.ts +6 -82
- package/dist/api/rest/media.d.ts +17 -141
- package/dist/api/rest/notifications.d.ts +7 -15
- package/dist/api/rest/person-agreement.d.ts +1 -9
- package/dist/api/rest/person-presence.d.ts +8 -50
- package/dist/api/rest/person-type.d.ts +6 -39
- package/dist/api/rest/person.d.ts +18 -96
- package/dist/api/rest/query.d.ts +5 -15
- package/dist/api/rest/schedule.d.ts +78 -216
- package/dist/api/rest/security-level.d.ts +6 -43
- package/dist/api/rest/template.d.ts +10 -20
- package/dist/api/rest/token-conversion.d.ts +11 -28
- package/dist/api/rest/user.d.ts +15 -97
- package/dist/api/rest/view.d.ts +24 -496
- package/dist/api/rest/webrtc-playback.d.ts +3 -25
- package/dist/api/rest/zone.d.ts +5 -21
- package/dist/api/ws/device-communication.d.ts +10 -62
- package/dist/api/ws/notifications.d.ts +7 -33
- package/dist/api/ws/progress.d.ts +10 -72
- package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
- package/dist/objects/access-rule.d.ts +12 -132
- package/dist/objects/access-rule.js +1 -1
- package/dist/objects/agent-metadata.d.ts +38 -146
- package/dist/objects/agent-metadata.js +1 -1
- package/dist/objects/agreement.d.ts +1 -13
- package/dist/objects/all.d.ts +20 -1
- package/dist/objects/api-key.d.ts +1 -13
- package/dist/objects/automation-rule.d.ts +9 -168
- package/dist/objects/automation-rule.js +2 -2
- package/dist/objects/bookmark.d.ts +3 -33
- package/dist/objects/bookmark.js +1 -1
- package/dist/objects/credential.d.ts +13 -13
- package/dist/objects/credential.js +1 -1
- package/dist/objects/custom-field.d.ts +19 -15
- package/dist/objects/device/alarm.d.ts +1 -1
- package/dist/objects/device/any-device.d.ts +1333 -4451
- package/dist/objects/device/camera-lift.d.ts +1 -1
- package/dist/objects/device/camera.d.ts +29 -125
- package/dist/objects/device/camera.js +1 -1
- package/dist/objects/device/device-import.d.ts +307 -1735
- package/dist/objects/device/device-relation.d.ts +70 -58
- package/dist/objects/device/display.d.ts +1 -1
- package/dist/objects/device/door.d.ts +9 -14
- package/dist/objects/device/intercom-terminal.d.ts +10 -59
- package/dist/objects/device/io-board.d.ts +3 -9
- package/dist/objects/device/motion-sensor.d.ts +1 -1
- package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
- package/dist/objects/device/nvr-exporter.d.ts +3 -9
- package/dist/objects/device/nvr-recorder.d.ts +16 -68
- package/dist/objects/device/panic-button.d.ts +1 -1
- package/dist/objects/device/pbx.d.ts +1 -5
- package/dist/objects/device/system.d.ts +1 -1
- package/dist/objects/device/system.js +1 -1
- package/dist/objects/device-group.d.ts +2 -16
- package/dist/objects/layout.d.ts +3 -75
- package/dist/objects/macro.d.ts +3 -59
- package/dist/objects/macro.js +2 -2
- package/dist/objects/notification.d.ts +6 -24
- package/dist/objects/notification.js +1 -1
- package/dist/objects/person-agreement.d.ts +1 -13
- package/dist/objects/person-presence.d.ts +11 -165
- package/dist/objects/person-type.d.ts +2 -22
- package/dist/objects/person.d.ts +21 -153
- package/dist/objects/person.js +3 -3
- package/dist/objects/role.d.ts +3 -15
- package/dist/objects/schedule.d.ts +152 -314
- package/dist/objects/schedule.js +1 -1
- package/dist/objects/security-level.d.ts +1 -21
- package/dist/objects/template.d.ts +9 -13
- package/dist/objects/token-conversion.d.ts +8 -18
- package/dist/objects/user.d.ts +2 -20
- package/dist/objects/view.d.ts +52 -682
- package/dist/objects/world-object.d.ts +1 -7
- package/dist/objects/zone.d.ts +5 -29
- package/dist/objects/zone.js +1 -1
- package/dist/package.json +3 -3
- package/dist/permissions.d.ts +1 -1
- package/dist/primitives.d.ts +113 -551
- package/dist/primitives.js +1 -1
- package/package.json +3 -3
|
@@ -4,39 +4,17 @@ export declare const sAccessRulePersonDto: z.ZodObject<{
|
|
|
4
4
|
firstName: z.ZodString;
|
|
5
5
|
lastName: z.ZodString;
|
|
6
6
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
7
|
-
},
|
|
8
|
-
id: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
avatarId: string | null;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
firstName: string;
|
|
15
|
-
lastName: string;
|
|
16
|
-
avatarId: string | null;
|
|
17
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
18
8
|
export type AccessRulePersonDto = z.infer<typeof sAccessRulePersonDto>;
|
|
19
9
|
export declare const sAccessRulePermissionDto: z.ZodObject<{
|
|
20
10
|
deviceId: z.ZodString;
|
|
21
11
|
scheduleId: z.ZodString;
|
|
22
|
-
},
|
|
23
|
-
deviceId: string;
|
|
24
|
-
scheduleId: string;
|
|
25
|
-
}, {
|
|
26
|
-
deviceId: string;
|
|
27
|
-
scheduleId: string;
|
|
28
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
29
13
|
export type AccessRulePermissionDto = z.infer<typeof sAccessRulePermissionDto>;
|
|
30
14
|
export declare const sAccessRuleGroupPermissionDto: z.ZodObject<{
|
|
31
15
|
groupId: z.ZodString;
|
|
32
16
|
scheduleId: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
scheduleId: string;
|
|
35
|
-
groupId: string;
|
|
36
|
-
}, {
|
|
37
|
-
scheduleId: string;
|
|
38
|
-
groupId: string;
|
|
39
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
40
18
|
export type AccessRuleGroupPermissionDto = z.infer<typeof sAccessRuleGroupPermissionDto>;
|
|
41
19
|
export declare const sAccessRuleDto: z.ZodObject<{
|
|
42
20
|
id: z.ZodString;
|
|
@@ -46,129 +24,31 @@ export declare const sAccessRuleDto: z.ZodObject<{
|
|
|
46
24
|
firstName: z.ZodString;
|
|
47
25
|
lastName: z.ZodString;
|
|
48
26
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
49
|
-
},
|
|
50
|
-
id: string;
|
|
51
|
-
firstName: string;
|
|
52
|
-
lastName: string;
|
|
53
|
-
avatarId: string | null;
|
|
54
|
-
}, {
|
|
55
|
-
id: string;
|
|
56
|
-
firstName: string;
|
|
57
|
-
lastName: string;
|
|
58
|
-
avatarId: string | null;
|
|
59
|
-
}>, "many">;
|
|
27
|
+
}, z.core.$strip>>;
|
|
60
28
|
permissions: z.ZodArray<z.ZodObject<{
|
|
61
29
|
deviceId: z.ZodString;
|
|
62
30
|
scheduleId: z.ZodString;
|
|
63
|
-
},
|
|
64
|
-
deviceId: string;
|
|
65
|
-
scheduleId: string;
|
|
66
|
-
}, {
|
|
67
|
-
deviceId: string;
|
|
68
|
-
scheduleId: string;
|
|
69
|
-
}>, "many">;
|
|
31
|
+
}, z.core.$strip>>;
|
|
70
32
|
groupPermissions: z.ZodArray<z.ZodObject<{
|
|
71
33
|
groupId: z.ZodString;
|
|
72
34
|
scheduleId: z.ZodString;
|
|
73
|
-
},
|
|
74
|
-
scheduleId: string;
|
|
75
|
-
groupId: string;
|
|
76
|
-
}, {
|
|
77
|
-
scheduleId: string;
|
|
78
|
-
groupId: string;
|
|
79
|
-
}>, "many">;
|
|
35
|
+
}, z.core.$strip>>;
|
|
80
36
|
createdOn: z.ZodString;
|
|
81
37
|
lastModifiedOn: z.ZodString;
|
|
82
|
-
refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
38
|
+
refs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
83
39
|
version: z.ZodNumber;
|
|
84
|
-
},
|
|
85
|
-
id: string;
|
|
86
|
-
displayName: string;
|
|
87
|
-
appliedTo: {
|
|
88
|
-
id: string;
|
|
89
|
-
firstName: string;
|
|
90
|
-
lastName: string;
|
|
91
|
-
avatarId: string | null;
|
|
92
|
-
}[];
|
|
93
|
-
permissions: {
|
|
94
|
-
deviceId: string;
|
|
95
|
-
scheduleId: string;
|
|
96
|
-
}[];
|
|
97
|
-
groupPermissions: {
|
|
98
|
-
scheduleId: string;
|
|
99
|
-
groupId: string;
|
|
100
|
-
}[];
|
|
101
|
-
createdOn: string;
|
|
102
|
-
lastModifiedOn: string;
|
|
103
|
-
refs: Record<string, string | string[]>;
|
|
104
|
-
version: number;
|
|
105
|
-
}, {
|
|
106
|
-
id: string;
|
|
107
|
-
displayName: string;
|
|
108
|
-
appliedTo: {
|
|
109
|
-
id: string;
|
|
110
|
-
firstName: string;
|
|
111
|
-
lastName: string;
|
|
112
|
-
avatarId: string | null;
|
|
113
|
-
}[];
|
|
114
|
-
permissions: {
|
|
115
|
-
deviceId: string;
|
|
116
|
-
scheduleId: string;
|
|
117
|
-
}[];
|
|
118
|
-
groupPermissions: {
|
|
119
|
-
scheduleId: string;
|
|
120
|
-
groupId: string;
|
|
121
|
-
}[];
|
|
122
|
-
createdOn: string;
|
|
123
|
-
lastModifiedOn: string;
|
|
124
|
-
refs: Record<string, string | string[]>;
|
|
125
|
-
version: number;
|
|
126
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
127
41
|
export type AccessRuleDto = z.infer<typeof sAccessRuleDto>;
|
|
128
42
|
export declare const sAccessRuleProps: z.ZodObject<{
|
|
129
43
|
displayName: z.ZodString;
|
|
130
|
-
appliedTo: z.ZodArray<z.ZodString
|
|
44
|
+
appliedTo: z.ZodArray<z.ZodString>;
|
|
131
45
|
permissions: z.ZodArray<z.ZodObject<{
|
|
132
46
|
deviceId: z.ZodString;
|
|
133
47
|
scheduleId: z.ZodString;
|
|
134
|
-
},
|
|
135
|
-
deviceId: string;
|
|
136
|
-
scheduleId: string;
|
|
137
|
-
}, {
|
|
138
|
-
deviceId: string;
|
|
139
|
-
scheduleId: string;
|
|
140
|
-
}>, "many">;
|
|
48
|
+
}, z.core.$strip>>;
|
|
141
49
|
groupPermissions: z.ZodArray<z.ZodObject<{
|
|
142
50
|
groupId: z.ZodString;
|
|
143
51
|
scheduleId: z.ZodString;
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
groupId: string;
|
|
147
|
-
}, {
|
|
148
|
-
scheduleId: string;
|
|
149
|
-
groupId: string;
|
|
150
|
-
}>, "many">;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
displayName: string;
|
|
153
|
-
appliedTo: string[];
|
|
154
|
-
permissions: {
|
|
155
|
-
deviceId: string;
|
|
156
|
-
scheduleId: string;
|
|
157
|
-
}[];
|
|
158
|
-
groupPermissions: {
|
|
159
|
-
scheduleId: string;
|
|
160
|
-
groupId: string;
|
|
161
|
-
}[];
|
|
162
|
-
}, {
|
|
163
|
-
displayName: string;
|
|
164
|
-
appliedTo: string[];
|
|
165
|
-
permissions: {
|
|
166
|
-
deviceId: string;
|
|
167
|
-
scheduleId: string;
|
|
168
|
-
}[];
|
|
169
|
-
groupPermissions: {
|
|
170
|
-
scheduleId: string;
|
|
171
|
-
groupId: string;
|
|
172
|
-
}[];
|
|
173
|
-
}>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
174
54
|
export type AccessRuleProps = z.infer<typeof sAccessRuleProps>;
|
|
@@ -26,7 +26,7 @@ exports.sAccessRuleDto = zod_1.z.object({
|
|
|
26
26
|
.describe('Group permissions'),
|
|
27
27
|
createdOn: zod_1.z.string().describe('Created on'),
|
|
28
28
|
lastModifiedOn: zod_1.z.string().describe('Last modified on'),
|
|
29
|
-
refs: zod_1.z.record(zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])),
|
|
29
|
+
refs: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])),
|
|
30
30
|
version: zod_1.z.number().describe('Version'),
|
|
31
31
|
});
|
|
32
32
|
exports.sAccessRuleProps = zod_1.z.object({
|
|
@@ -2,187 +2,79 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sUiOrderHint: z.ZodObject<{
|
|
3
3
|
kind: z.ZodLiteral<"order">;
|
|
4
4
|
path: z.ZodString;
|
|
5
|
-
fields: z.ZodArray<z.ZodString
|
|
6
|
-
},
|
|
7
|
-
kind: "order";
|
|
8
|
-
path: string;
|
|
9
|
-
fields: string[];
|
|
10
|
-
}, {
|
|
11
|
-
kind: "order";
|
|
12
|
-
path: string;
|
|
13
|
-
fields: string[];
|
|
14
|
-
}>;
|
|
5
|
+
fields: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export declare const sUiWidgetHint: z.ZodObject<{
|
|
16
8
|
kind: z.ZodLiteral<"widget">;
|
|
17
9
|
path: z.ZodString;
|
|
18
10
|
spanColumns: z.ZodOptional<z.ZodNumber>;
|
|
19
11
|
password: z.ZodOptional<z.ZodBoolean>;
|
|
20
12
|
placeHolder: z.ZodOptional<z.ZodString>;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
path: string;
|
|
24
|
-
spanColumns?: number | undefined;
|
|
25
|
-
password?: boolean | undefined;
|
|
26
|
-
placeHolder?: string | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
kind: "widget";
|
|
29
|
-
path: string;
|
|
30
|
-
spanColumns?: number | undefined;
|
|
31
|
-
password?: boolean | undefined;
|
|
32
|
-
placeHolder?: string | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const sUiHint: z.ZodUnion<[z.ZodObject<{
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const sUiHint: z.ZodUnion<readonly [z.ZodObject<{
|
|
35
15
|
kind: z.ZodLiteral<"order">;
|
|
36
16
|
path: z.ZodString;
|
|
37
|
-
fields: z.ZodArray<z.ZodString
|
|
38
|
-
},
|
|
39
|
-
kind: "order";
|
|
40
|
-
path: string;
|
|
41
|
-
fields: string[];
|
|
42
|
-
}, {
|
|
43
|
-
kind: "order";
|
|
44
|
-
path: string;
|
|
45
|
-
fields: string[];
|
|
46
|
-
}>, z.ZodObject<{
|
|
17
|
+
fields: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
19
|
kind: z.ZodLiteral<"widget">;
|
|
48
20
|
path: z.ZodString;
|
|
49
21
|
spanColumns: z.ZodOptional<z.ZodNumber>;
|
|
50
22
|
password: z.ZodOptional<z.ZodBoolean>;
|
|
51
23
|
placeHolder: z.ZodOptional<z.ZodString>;
|
|
52
|
-
},
|
|
53
|
-
kind: "widget";
|
|
54
|
-
path: string;
|
|
55
|
-
spanColumns?: number | undefined;
|
|
56
|
-
password?: boolean | undefined;
|
|
57
|
-
placeHolder?: string | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
kind: "widget";
|
|
60
|
-
path: string;
|
|
61
|
-
spanColumns?: number | undefined;
|
|
62
|
-
password?: boolean | undefined;
|
|
63
|
-
placeHolder?: string | undefined;
|
|
64
|
-
}>]>;
|
|
24
|
+
}, z.core.$strip>]>;
|
|
65
25
|
export declare const sProviderSpecs: z.ZodObject<{
|
|
66
26
|
title: z.ZodString;
|
|
67
27
|
configSchema: z.ZodUnknown;
|
|
68
28
|
configDefault: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
69
|
-
configFormUiHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
29
|
+
configFormUiHints: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
70
30
|
kind: z.ZodLiteral<"order">;
|
|
71
31
|
path: z.ZodString;
|
|
72
|
-
fields: z.ZodArray<z.ZodString
|
|
73
|
-
},
|
|
74
|
-
kind: "order";
|
|
75
|
-
path: string;
|
|
76
|
-
fields: string[];
|
|
77
|
-
}, {
|
|
78
|
-
kind: "order";
|
|
79
|
-
path: string;
|
|
80
|
-
fields: string[];
|
|
81
|
-
}>, z.ZodObject<{
|
|
32
|
+
fields: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
34
|
kind: z.ZodLiteral<"widget">;
|
|
83
35
|
path: z.ZodString;
|
|
84
36
|
spanColumns: z.ZodOptional<z.ZodNumber>;
|
|
85
37
|
password: z.ZodOptional<z.ZodBoolean>;
|
|
86
38
|
placeHolder: z.ZodOptional<z.ZodString>;
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
path: string;
|
|
96
|
-
spanColumns?: number | undefined;
|
|
97
|
-
password?: boolean | undefined;
|
|
98
|
-
placeHolder?: string | undefined;
|
|
99
|
-
}>]>, "many">>;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
title: string;
|
|
102
|
-
configDefault: Record<string, unknown>;
|
|
103
|
-
configSchema?: unknown;
|
|
104
|
-
configFormUiHints?: ({
|
|
105
|
-
kind: "order";
|
|
106
|
-
path: string;
|
|
107
|
-
fields: string[];
|
|
108
|
-
} | {
|
|
109
|
-
kind: "widget";
|
|
110
|
-
path: string;
|
|
111
|
-
spanColumns?: number | undefined;
|
|
112
|
-
password?: boolean | undefined;
|
|
113
|
-
placeHolder?: string | undefined;
|
|
114
|
-
})[] | undefined;
|
|
115
|
-
}, {
|
|
116
|
-
title: string;
|
|
117
|
-
configDefault: Record<string, unknown>;
|
|
118
|
-
configSchema?: unknown;
|
|
119
|
-
configFormUiHints?: ({
|
|
120
|
-
kind: "order";
|
|
121
|
-
path: string;
|
|
122
|
-
fields: string[];
|
|
123
|
-
} | {
|
|
124
|
-
kind: "widget";
|
|
125
|
-
path: string;
|
|
126
|
-
spanColumns?: number | undefined;
|
|
127
|
-
password?: boolean | undefined;
|
|
128
|
-
placeHolder?: string | undefined;
|
|
129
|
-
})[] | undefined;
|
|
39
|
+
}, z.core.$strip>]>>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const sAccessObjectKind: z.ZodEnum<{
|
|
42
|
+
person: "person";
|
|
43
|
+
zone: "zone";
|
|
44
|
+
schedule: "schedule";
|
|
45
|
+
device: "device";
|
|
46
|
+
accessRule: "accessRule";
|
|
130
47
|
}>;
|
|
131
|
-
export declare const sAccessObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone"]>;
|
|
132
48
|
export declare const sTokenSpecs: z.ZodObject<{
|
|
133
|
-
type: z.ZodEnum<
|
|
49
|
+
type: z.ZodEnum<{
|
|
50
|
+
card: "card";
|
|
51
|
+
pin: "pin";
|
|
52
|
+
fingerprint: "fingerprint";
|
|
53
|
+
}>;
|
|
134
54
|
regex: z.ZodOptional<z.ZodString>;
|
|
135
55
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
136
56
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
},
|
|
138
|
-
type: "card" | "pin" | "fingerprint";
|
|
139
|
-
regex?: string | undefined;
|
|
140
|
-
formatDescription?: string | undefined;
|
|
141
|
-
maxPerPerson?: number | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
type: "card" | "pin" | "fingerprint";
|
|
144
|
-
regex?: string | undefined;
|
|
145
|
-
formatDescription?: string | undefined;
|
|
146
|
-
maxPerPerson?: number | undefined;
|
|
147
|
-
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
148
58
|
export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
149
59
|
tokens: z.ZodArray<z.ZodObject<{
|
|
150
|
-
type: z.ZodEnum<
|
|
60
|
+
type: z.ZodEnum<{
|
|
61
|
+
card: "card";
|
|
62
|
+
pin: "pin";
|
|
63
|
+
fingerprint: "fingerprint";
|
|
64
|
+
}>;
|
|
151
65
|
regex: z.ZodOptional<z.ZodString>;
|
|
152
66
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
153
67
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
formatDescription?: string | undefined;
|
|
163
|
-
maxPerPerson?: number | undefined;
|
|
164
|
-
}>, "many">;
|
|
165
|
-
accessObjects: z.ZodArray<z.ZodEnum<["accessRule", "schedule", "person", "device", "zone"]>, "many">;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
accessObjects: z.ZodArray<z.ZodEnum<{
|
|
70
|
+
person: "person";
|
|
71
|
+
zone: "zone";
|
|
72
|
+
schedule: "schedule";
|
|
73
|
+
device: "device";
|
|
74
|
+
accessRule: "accessRule";
|
|
75
|
+
}>>;
|
|
166
76
|
oneSchedulePerDoor: z.ZodBoolean;
|
|
167
|
-
},
|
|
168
|
-
tokens: {
|
|
169
|
-
type: "card" | "pin" | "fingerprint";
|
|
170
|
-
regex?: string | undefined;
|
|
171
|
-
formatDescription?: string | undefined;
|
|
172
|
-
maxPerPerson?: number | undefined;
|
|
173
|
-
}[];
|
|
174
|
-
accessObjects: ("person" | "zone" | "schedule" | "device" | "accessRule")[];
|
|
175
|
-
oneSchedulePerDoor: boolean;
|
|
176
|
-
}, {
|
|
177
|
-
tokens: {
|
|
178
|
-
type: "card" | "pin" | "fingerprint";
|
|
179
|
-
regex?: string | undefined;
|
|
180
|
-
formatDescription?: string | undefined;
|
|
181
|
-
maxPerPerson?: number | undefined;
|
|
182
|
-
}[];
|
|
183
|
-
accessObjects: ("person" | "zone" | "schedule" | "device" | "accessRule")[];
|
|
184
|
-
oneSchedulePerDoor: boolean;
|
|
185
|
-
}>;
|
|
77
|
+
}, z.core.$strip>;
|
|
186
78
|
export type AccessControlCapabilityReport = z.infer<typeof sAccessControlCapabilityReport>;
|
|
187
79
|
export type AccessTokenSpecs = z.infer<typeof sTokenSpecs>;
|
|
188
80
|
export type AccessObjectKind = z.infer<typeof sAccessObjectKind>;
|
|
@@ -25,7 +25,7 @@ exports.sProviderSpecs = zod_1.z.object({
|
|
|
25
25
|
.unknown()
|
|
26
26
|
.describe('a valid JSON schema that describes provider config data structure'), // We can use AJV to validate the definition of a JSON schema
|
|
27
27
|
configDefault: zod_1.z
|
|
28
|
-
.record(zod_1.z.unknown())
|
|
28
|
+
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
29
29
|
.describe('Default initialized values for configuration'),
|
|
30
30
|
configFormUiHints: zod_1.z
|
|
31
31
|
.array(exports.sUiHint)
|
|
@@ -5,17 +5,5 @@ export declare const sAgreementDto: z.ZodObject<{
|
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
createdOn: z.ZodString;
|
|
7
7
|
lastModifiedOn: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
id: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
createdOn: string;
|
|
12
|
-
lastModifiedOn: string;
|
|
13
|
-
content: string;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
displayName: string;
|
|
17
|
-
createdOn: string;
|
|
18
|
-
lastModifiedOn: string;
|
|
19
|
-
content: string;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export type AgreementDto = z.infer<typeof sAgreementDto>;
|
package/dist/objects/all.d.ts
CHANGED
|
@@ -17,7 +17,26 @@ import { SecurityLevelDto } from './security-level';
|
|
|
17
17
|
import { UserDto } from './user';
|
|
18
18
|
import { ViewDto } from './view';
|
|
19
19
|
import { ZoneDto, ZoneProps } from './zone';
|
|
20
|
-
export declare const sObjectKind: z.ZodEnum<
|
|
20
|
+
export declare const sObjectKind: z.ZodEnum<{
|
|
21
|
+
person: "person";
|
|
22
|
+
zone: "zone";
|
|
23
|
+
layout: "layout";
|
|
24
|
+
schedule: "schedule";
|
|
25
|
+
user: "user";
|
|
26
|
+
role: "role";
|
|
27
|
+
device: "device";
|
|
28
|
+
macro: "macro";
|
|
29
|
+
bookmark: "bookmark";
|
|
30
|
+
agreement: "agreement";
|
|
31
|
+
accessRule: "accessRule";
|
|
32
|
+
personPresence: "personPresence";
|
|
33
|
+
deviceGroup: "deviceGroup";
|
|
34
|
+
view: "view";
|
|
35
|
+
automationRule: "automationRule";
|
|
36
|
+
securityLevel: "securityLevel";
|
|
37
|
+
personType: "personType";
|
|
38
|
+
apiKey: "apiKey";
|
|
39
|
+
}>;
|
|
21
40
|
export type ObjectKind = z.infer<typeof sObjectKind>;
|
|
22
41
|
export type ObjectKinds = {
|
|
23
42
|
layout: LayoutDto;
|
|
@@ -5,17 +5,5 @@ export declare const sApiKeyDto: z.ZodObject<{
|
|
|
5
5
|
prefix: z.ZodString;
|
|
6
6
|
createdOn: z.ZodString;
|
|
7
7
|
lastModifiedOn: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
id: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
createdOn: string;
|
|
12
|
-
lastModifiedOn: string;
|
|
13
|
-
prefix: string;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
displayName: string;
|
|
17
|
-
createdOn: string;
|
|
18
|
-
lastModifiedOn: string;
|
|
19
|
-
prefix: string;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export type ApiKeyDto = z.infer<typeof sApiKeyDto>;
|