@awarevue/api-types 1.0.7 → 1.0.9
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/access-control/credential.d.ts +4 -4
- package/dist/access-control/credential.js +1 -1
- package/dist/access-control/person.d.ts +15 -15
- package/dist/access-control/zone.d.ts +1 -3
- package/dist/agent-communication/protocol.d.ts +19 -19
- package/dist/agent-communication/protocol.js +5 -5
- package/dist/device/door.d.ts +6 -6
- package/dist/device-event.d.ts +3 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const sCredentialType: z.ZodEnum<["card", "pin"
|
|
2
|
+
export declare const sCredentialType: z.ZodEnum<["card", "pin"]>;
|
|
3
3
|
export declare const sAssignedCredential: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["card", "pin"
|
|
4
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
5
5
|
value: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: "card" | "pin"
|
|
7
|
+
type: "card" | "pin";
|
|
8
8
|
value: string;
|
|
9
9
|
}, {
|
|
10
|
-
type: "card" | "pin"
|
|
10
|
+
type: "card" | "pin";
|
|
11
11
|
value: string;
|
|
12
12
|
}>;
|
|
13
13
|
export type CredentialType = z.infer<typeof sCredentialType>;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sAssignedCredential = exports.sCredentialType = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.sCredentialType = zod_1.default.enum(['card', 'pin'
|
|
8
|
+
exports.sCredentialType = zod_1.default.enum(['card', 'pin']);
|
|
9
9
|
exports.sAssignedCredential = zod_1.default.object({
|
|
10
10
|
type: exports.sCredentialType,
|
|
11
11
|
value: zod_1.default.string().nonempty(),
|
|
@@ -23,13 +23,13 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
23
23
|
lastModifiedOn: z.ZodString;
|
|
24
24
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
25
25
|
credentials: z.ZodArray<z.ZodObject<{
|
|
26
|
-
type: z.ZodEnum<["card", "pin"
|
|
26
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
27
27
|
value: z.ZodString;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
type: "card" | "pin"
|
|
29
|
+
type: "card" | "pin";
|
|
30
30
|
value: string;
|
|
31
31
|
}, {
|
|
32
|
-
type: "card" | "pin"
|
|
32
|
+
type: "card" | "pin";
|
|
33
33
|
value: string;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
accessRules: z.ZodArray<z.ZodObject<{
|
|
@@ -61,7 +61,7 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
61
61
|
archived: boolean;
|
|
62
62
|
staffMember: boolean;
|
|
63
63
|
credentials: {
|
|
64
|
-
type: "card" | "pin"
|
|
64
|
+
type: "card" | "pin";
|
|
65
65
|
value: string;
|
|
66
66
|
}[];
|
|
67
67
|
accessRules: {
|
|
@@ -85,7 +85,7 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
85
85
|
archived: boolean;
|
|
86
86
|
staffMember: boolean;
|
|
87
87
|
credentials: {
|
|
88
|
-
type: "card" | "pin"
|
|
88
|
+
type: "card" | "pin";
|
|
89
89
|
value: string;
|
|
90
90
|
}[];
|
|
91
91
|
accessRules: {
|
|
@@ -104,13 +104,13 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
104
104
|
validTo: z.ZodNullable<z.ZodString>;
|
|
105
105
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
106
106
|
credentials: z.ZodArray<z.ZodObject<{
|
|
107
|
-
type: z.ZodEnum<["card", "pin"
|
|
107
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
108
108
|
value: z.ZodString;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
type: "card" | "pin"
|
|
110
|
+
type: "card" | "pin";
|
|
111
111
|
value: string;
|
|
112
112
|
}, {
|
|
113
|
-
type: "card" | "pin"
|
|
113
|
+
type: "card" | "pin";
|
|
114
114
|
value: string;
|
|
115
115
|
}>, "many">;
|
|
116
116
|
accessRules: z.ZodArray<z.ZodString, "many">;
|
|
@@ -125,7 +125,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
125
125
|
accessSuspended: boolean;
|
|
126
126
|
staffMember: boolean;
|
|
127
127
|
credentials: {
|
|
128
|
-
type: "card" | "pin"
|
|
128
|
+
type: "card" | "pin";
|
|
129
129
|
value: string;
|
|
130
130
|
}[];
|
|
131
131
|
accessRules: string[];
|
|
@@ -140,7 +140,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
140
140
|
accessSuspended: boolean;
|
|
141
141
|
staffMember: boolean;
|
|
142
142
|
credentials: {
|
|
143
|
-
type: "card" | "pin"
|
|
143
|
+
type: "card" | "pin";
|
|
144
144
|
value: string;
|
|
145
145
|
}[];
|
|
146
146
|
accessRules: string[];
|
|
@@ -156,13 +156,13 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
156
156
|
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
157
|
avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
158
|
credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
-
type: z.ZodEnum<["card", "pin"
|
|
159
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
160
160
|
value: z.ZodString;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "card" | "pin"
|
|
162
|
+
type: "card" | "pin";
|
|
163
163
|
value: string;
|
|
164
164
|
}, {
|
|
165
|
-
type: "card" | "pin"
|
|
165
|
+
type: "card" | "pin";
|
|
166
166
|
value: string;
|
|
167
167
|
}>, "many">>;
|
|
168
168
|
accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -179,7 +179,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
179
179
|
archived?: boolean | undefined;
|
|
180
180
|
staffMember?: boolean | undefined;
|
|
181
181
|
credentials?: {
|
|
182
|
-
type: "card" | "pin"
|
|
182
|
+
type: "card" | "pin";
|
|
183
183
|
value: string;
|
|
184
184
|
}[] | undefined;
|
|
185
185
|
accessRules?: string[] | undefined;
|
|
@@ -195,7 +195,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
195
195
|
archived?: boolean | undefined;
|
|
196
196
|
staffMember?: boolean | undefined;
|
|
197
197
|
credentials?: {
|
|
198
|
-
type: "card" | "pin"
|
|
198
|
+
type: "card" | "pin";
|
|
199
199
|
value: string;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
accessRules?: string[] | undefined;
|
|
@@ -59,7 +59,5 @@ export declare const sAddZoneDeviceRequest: z.ZodObject<{
|
|
|
59
59
|
}, {
|
|
60
60
|
deviceId: string;
|
|
61
61
|
}>;
|
|
62
|
-
export type AddZoneDeviceRequest =
|
|
63
|
-
zoneId: string;
|
|
64
|
-
} & z.infer<typeof sAddZoneDeviceRequest>;
|
|
62
|
+
export type AddZoneDeviceRequest = z.infer<typeof sAddZoneDeviceRequest>;
|
|
65
63
|
export type RemoveZoneDeviceRequest = AddZoneDeviceRequest;
|
|
@@ -194,34 +194,34 @@ export declare const sProviderSpecs: z.ZodObject<{
|
|
|
194
194
|
}>;
|
|
195
195
|
export declare const sAccessObjectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
|
|
196
196
|
export declare const sTokenSpecs: z.ZodObject<{
|
|
197
|
-
type: z.ZodEnum<["card", "pin"
|
|
197
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
198
198
|
regex: z.ZodOptional<z.ZodString>;
|
|
199
199
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
200
200
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
type: "card" | "pin"
|
|
202
|
+
type: "card" | "pin";
|
|
203
203
|
regex?: string | undefined;
|
|
204
204
|
formatDescription?: string | undefined;
|
|
205
205
|
maxPerPerson?: number | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
type: "card" | "pin"
|
|
207
|
+
type: "card" | "pin";
|
|
208
208
|
regex?: string | undefined;
|
|
209
209
|
formatDescription?: string | undefined;
|
|
210
210
|
maxPerPerson?: number | undefined;
|
|
211
211
|
}>;
|
|
212
212
|
export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
213
213
|
tokens: z.ZodArray<z.ZodObject<{
|
|
214
|
-
type: z.ZodEnum<["card", "pin"
|
|
214
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
215
215
|
regex: z.ZodOptional<z.ZodString>;
|
|
216
216
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
217
217
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
type: "card" | "pin"
|
|
219
|
+
type: "card" | "pin";
|
|
220
220
|
regex?: string | undefined;
|
|
221
221
|
formatDescription?: string | undefined;
|
|
222
222
|
maxPerPerson?: number | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
type: "card" | "pin"
|
|
224
|
+
type: "card" | "pin";
|
|
225
225
|
regex?: string | undefined;
|
|
226
226
|
formatDescription?: string | undefined;
|
|
227
227
|
maxPerPerson?: number | undefined;
|
|
@@ -230,7 +230,7 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
|
230
230
|
oneSchedulePerDoor: z.ZodBoolean;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
232
|
tokens: {
|
|
233
|
-
type: "card" | "pin"
|
|
233
|
+
type: "card" | "pin";
|
|
234
234
|
regex?: string | undefined;
|
|
235
235
|
formatDescription?: string | undefined;
|
|
236
236
|
maxPerPerson?: number | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
|
239
239
|
oneSchedulePerDoor: boolean;
|
|
240
240
|
}, {
|
|
241
241
|
tokens: {
|
|
242
|
-
type: "card" | "pin"
|
|
242
|
+
type: "card" | "pin";
|
|
243
243
|
regex?: string | undefined;
|
|
244
244
|
formatDescription?: string | undefined;
|
|
245
245
|
maxPerPerson?: number | undefined;
|
|
@@ -317,17 +317,17 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
317
317
|
}>>;
|
|
318
318
|
accessControlProviders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
319
319
|
tokens: z.ZodArray<z.ZodObject<{
|
|
320
|
-
type: z.ZodEnum<["card", "pin"
|
|
320
|
+
type: z.ZodEnum<["card", "pin"]>;
|
|
321
321
|
regex: z.ZodOptional<z.ZodString>;
|
|
322
322
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
323
323
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
type: "card" | "pin"
|
|
325
|
+
type: "card" | "pin";
|
|
326
326
|
regex?: string | undefined;
|
|
327
327
|
formatDescription?: string | undefined;
|
|
328
328
|
maxPerPerson?: number | undefined;
|
|
329
329
|
}, {
|
|
330
|
-
type: "card" | "pin"
|
|
330
|
+
type: "card" | "pin";
|
|
331
331
|
regex?: string | undefined;
|
|
332
332
|
formatDescription?: string | undefined;
|
|
333
333
|
maxPerPerson?: number | undefined;
|
|
@@ -336,7 +336,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
336
336
|
oneSchedulePerDoor: z.ZodBoolean;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
338
|
tokens: {
|
|
339
|
-
type: "card" | "pin"
|
|
339
|
+
type: "card" | "pin";
|
|
340
340
|
regex?: string | undefined;
|
|
341
341
|
formatDescription?: string | undefined;
|
|
342
342
|
maxPerPerson?: number | undefined;
|
|
@@ -345,7 +345,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
345
345
|
oneSchedulePerDoor: boolean;
|
|
346
346
|
}, {
|
|
347
347
|
tokens: {
|
|
348
|
-
type: "card" | "pin"
|
|
348
|
+
type: "card" | "pin";
|
|
349
349
|
regex?: string | undefined;
|
|
350
350
|
formatDescription?: string | undefined;
|
|
351
351
|
maxPerPerson?: number | undefined;
|
|
@@ -373,7 +373,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
373
373
|
}>;
|
|
374
374
|
accessControlProviders?: Record<string, {
|
|
375
375
|
tokens: {
|
|
376
|
-
type: "card" | "pin"
|
|
376
|
+
type: "card" | "pin";
|
|
377
377
|
regex?: string | undefined;
|
|
378
378
|
formatDescription?: string | undefined;
|
|
379
379
|
maxPerPerson?: number | undefined;
|
|
@@ -401,7 +401,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
401
401
|
}>;
|
|
402
402
|
accessControlProviders?: Record<string, {
|
|
403
403
|
tokens: {
|
|
404
|
-
type: "card" | "pin"
|
|
404
|
+
type: "card" | "pin";
|
|
405
405
|
regex?: string | undefined;
|
|
406
406
|
formatDescription?: string | undefined;
|
|
407
407
|
maxPerPerson?: number | undefined;
|
|
@@ -1491,7 +1491,7 @@ export declare const sApplyChange: z.ZodObject<{
|
|
|
1491
1491
|
linkExists: boolean;
|
|
1492
1492
|
})[];
|
|
1493
1493
|
}>;
|
|
1494
|
-
export declare const
|
|
1494
|
+
export declare const sApplyChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
1495
1495
|
requestId: z.ZodString;
|
|
1496
1496
|
kind: z.ZodLiteral<"apply-change-complete">;
|
|
1497
1497
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1561,7 +1561,7 @@ export type AccessValidateChangeRq = z.infer<typeof sValidateChangeRq>;
|
|
|
1561
1561
|
export type AccessValidateChangeRs = z.infer<typeof sValidateChangeRs>;
|
|
1562
1562
|
export type AccessChangeIssue = z.infer<typeof sChangeIssue>;
|
|
1563
1563
|
export type AccessApplyChange = z.infer<typeof sApplyChange>;
|
|
1564
|
-
export type
|
|
1564
|
+
export type AccessApplyChangeRs = z.infer<typeof sApplyChangeRs>;
|
|
1565
1565
|
export type AccessApplyChangeProgress = z.infer<typeof sApplyChangeProgress>;
|
|
1566
1566
|
export type AccessAbortChange = z.infer<typeof sAbortChange>;
|
|
1567
1567
|
export type AccessControlCapabilityReport = z.infer<typeof sAccessControlCapabilityReport>;
|
|
@@ -1594,12 +1594,12 @@ export type PayloadByKind = {
|
|
|
1594
1594
|
'validate-change': AccessValidateChangeRq;
|
|
1595
1595
|
'validate-change-rs': AccessValidateChangeRs;
|
|
1596
1596
|
'apply-change': AccessApplyChange;
|
|
1597
|
-
'apply-change-
|
|
1597
|
+
'apply-change-rs': AccessApplyChangeRs;
|
|
1598
1598
|
'apply-change-progress': AccessApplyChangeProgress;
|
|
1599
1599
|
'abort-change': AccessAbortChange;
|
|
1600
1600
|
'error-rs': ErrorPayload;
|
|
1601
1601
|
};
|
|
1602
|
-
export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | PushStateUpdateRq | PushEventRq | GetAvailableDevicesRs | AccessValidateChangeRs |
|
|
1602
|
+
export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | PushStateUpdateRq | PushEventRq | GetAvailableDevicesRs | AccessValidateChangeRs | AccessApplyChangeRs | AccessApplyChangeProgress;
|
|
1603
1603
|
export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | AccessValidateChangeRq | AccessApplyChange | AccessAbortChange;
|
|
1604
1604
|
export type AnyPayload = FromAgent | FromServer;
|
|
1605
1605
|
export declare const getAgentMessageIssues: (message: unknown) => string[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.
|
|
3
|
+
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sRelationMerge = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
4
4
|
const device_1 = require("../device");
|
|
5
5
|
const device_import_1 = require("../device-import");
|
|
6
|
+
const credential_1 = require("../access-control/credential");
|
|
6
7
|
const zod_1 = require("zod");
|
|
7
8
|
// PROTOCOL ENVELOPE
|
|
8
9
|
exports.sMessageHeader = zod_1.z.object({
|
|
@@ -61,7 +62,7 @@ exports.sAccessObjectKind = zod_1.z.enum([
|
|
|
61
62
|
'reader',
|
|
62
63
|
]);
|
|
63
64
|
exports.sTokenSpecs = zod_1.z.object({
|
|
64
|
-
type:
|
|
65
|
+
type: credential_1.sCredentialType, // etc, those map to a AWARE-standardized set of token types
|
|
65
66
|
regex: zod_1.z.string().optional(),
|
|
66
67
|
formatDescription: zod_1.z.string().optional(),
|
|
67
68
|
maxPerPerson: zod_1.z.number().optional(),
|
|
@@ -245,7 +246,7 @@ exports.sApplyChange = zod_1.z
|
|
|
245
246
|
mutations: zod_1.z.array(exports.sAccessMutation),
|
|
246
247
|
})
|
|
247
248
|
.describe('Request to apply access changes');
|
|
248
|
-
exports.
|
|
249
|
+
exports.sApplyChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('apply-change-complete'), zod_1.z.object({
|
|
249
250
|
requestId: zod_1.z.string().nonempty(),
|
|
250
251
|
//error: z.string().optional().describe('Error message if request failed'),
|
|
251
252
|
refs: exports.sRefMap,
|
|
@@ -279,9 +280,8 @@ const fromAgentSchemaByKind = {
|
|
|
279
280
|
state: exports.sPushStateUpdateRq,
|
|
280
281
|
event: exports.sPushEventRq,
|
|
281
282
|
'get-available-devices-rs': exports.sGetAvailableDevicesRs,
|
|
282
|
-
//'register-access-control-agent': sRegisterAccessControlAgentRq,
|
|
283
283
|
'validate-change-rs': exports.sValidateChangeRs,
|
|
284
|
-
'apply-change-
|
|
284
|
+
'apply-change-rs': exports.sApplyChangeRs,
|
|
285
285
|
'apply-change-progress': exports.sApplyChangeProgress,
|
|
286
286
|
'error-rs': exports.sErrorPayload,
|
|
287
287
|
};
|
package/dist/device/door.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
30
30
|
kind: z.ZodLiteral<"door-access">;
|
|
31
31
|
personId: z.ZodOptional<z.ZodString>;
|
|
32
32
|
token: z.ZodNullable<z.ZodString>;
|
|
33
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"
|
|
33
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
34
34
|
allowed: z.ZodBoolean;
|
|
35
35
|
doorExit: z.ZodBoolean;
|
|
36
36
|
description: z.ZodString;
|
|
@@ -38,7 +38,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
38
38
|
description: string;
|
|
39
39
|
kind: "door-access";
|
|
40
40
|
token: string | null;
|
|
41
|
-
tokenType: "card" | "pin" |
|
|
41
|
+
tokenType: "card" | "pin" | null;
|
|
42
42
|
allowed: boolean;
|
|
43
43
|
doorExit: boolean;
|
|
44
44
|
personId?: string | undefined;
|
|
@@ -46,7 +46,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
46
46
|
description: string;
|
|
47
47
|
kind: "door-access";
|
|
48
48
|
token: string | null;
|
|
49
|
-
tokenType: "card" | "pin" |
|
|
49
|
+
tokenType: "card" | "pin" | null;
|
|
50
50
|
allowed: boolean;
|
|
51
51
|
doorExit: boolean;
|
|
52
52
|
personId?: string | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
119
119
|
kind: z.ZodLiteral<"door-access">;
|
|
120
120
|
personId: z.ZodOptional<z.ZodString>;
|
|
121
121
|
token: z.ZodNullable<z.ZodString>;
|
|
122
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"
|
|
122
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
123
123
|
allowed: z.ZodBoolean;
|
|
124
124
|
doorExit: z.ZodBoolean;
|
|
125
125
|
description: z.ZodString;
|
|
@@ -127,7 +127,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
127
127
|
description: string;
|
|
128
128
|
kind: "door-access";
|
|
129
129
|
token: string | null;
|
|
130
|
-
tokenType: "card" | "pin" |
|
|
130
|
+
tokenType: "card" | "pin" | null;
|
|
131
131
|
allowed: boolean;
|
|
132
132
|
doorExit: boolean;
|
|
133
133
|
personId?: string | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
135
135
|
description: string;
|
|
136
136
|
kind: "door-access";
|
|
137
137
|
token: string | null;
|
|
138
|
-
tokenType: "card" | "pin" |
|
|
138
|
+
tokenType: "card" | "pin" | null;
|
|
139
139
|
allowed: boolean;
|
|
140
140
|
doorExit: boolean;
|
|
141
141
|
personId?: string | undefined;
|
package/dist/device-event.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export declare const eventSchemaByKind: {
|
|
|
195
195
|
kind: z.ZodLiteral<"door-access">;
|
|
196
196
|
personId: z.ZodOptional<z.ZodString>;
|
|
197
197
|
token: z.ZodNullable<z.ZodString>;
|
|
198
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"
|
|
198
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
199
199
|
allowed: z.ZodBoolean;
|
|
200
200
|
doorExit: z.ZodBoolean;
|
|
201
201
|
description: z.ZodString;
|
|
@@ -203,7 +203,7 @@ export declare const eventSchemaByKind: {
|
|
|
203
203
|
description: string;
|
|
204
204
|
kind: "door-access";
|
|
205
205
|
token: string | null;
|
|
206
|
-
tokenType: "card" | "pin" |
|
|
206
|
+
tokenType: "card" | "pin" | null;
|
|
207
207
|
allowed: boolean;
|
|
208
208
|
doorExit: boolean;
|
|
209
209
|
personId?: string | undefined;
|
|
@@ -211,7 +211,7 @@ export declare const eventSchemaByKind: {
|
|
|
211
211
|
description: string;
|
|
212
212
|
kind: "door-access";
|
|
213
213
|
token: string | null;
|
|
214
|
-
tokenType: "card" | "pin" |
|
|
214
|
+
tokenType: "card" | "pin" | null;
|
|
215
215
|
allowed: boolean;
|
|
216
216
|
doorExit: boolean;
|
|
217
217
|
personId?: string | undefined;
|
package/dist/package.json
CHANGED