@awarevue/api-types 1.0.108 → 1.0.109

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.
@@ -1,6 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commandDescriptions = void 0;
3
+ exports.commandDescriptions = exports.commandSchemas = void 0;
4
+ const alarm_1 = require("./device/alarm");
5
+ const camera_1 = require("./device/camera");
6
+ const camera_lift_1 = require("./device/camera-lift");
7
+ const display_1 = require("./device/display");
8
+ const door_1 = require("./device/door");
9
+ const io_board_1 = require("./device/io-board");
10
+ const pbx_1 = require("./device/pbx");
11
+ const presence_tracker_1 = require("./device/presence-tracker");
12
+ exports.commandSchemas = {
13
+ ...alarm_1.alarmCommandSchemas,
14
+ ...camera_1.cameraCommands,
15
+ ...camera_lift_1.cameraLiftCommands,
16
+ ...door_1.doorCommands,
17
+ ...io_board_1.ioBoardCommands,
18
+ ...pbx_1.pbxCommands,
19
+ ...presence_tracker_1.presenceTrackerCommands,
20
+ ...display_1.displayCommands,
21
+ };
4
22
  exports.commandDescriptions = {
5
23
  'camera.ptz-set': { description: 'PTZ Set', permission: 'camera:ptz' },
6
24
  'camera.ptz-move': { description: 'PTZ Move', permission: 'camera:ptz' },
@@ -40,13 +40,13 @@ export declare const sEventHeader: z.ZodObject<{
40
40
  observedBy: z.ZodOptional<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
- timestamp: number;
44
43
  deviceId: string;
44
+ timestamp: number;
45
45
  observedBy?: string | undefined;
46
46
  }, {
47
47
  id: string;
48
- timestamp: number;
49
48
  deviceId: string;
49
+ timestamp: number;
50
50
  observedBy?: string | undefined;
51
51
  }>;
52
52
  type EventHeader = z.infer<typeof sEventHeader>;
@@ -86,17 +86,17 @@ export declare const eventSchemaByKind: {
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  kind: "person-in";
88
88
  personId: string;
89
+ zoneId: string | null;
89
90
  personFirstName: string;
90
91
  personLastName: string;
91
92
  personAvatarId: string | null;
92
- zoneId: string | null;
93
93
  }, {
94
94
  kind: "person-in";
95
95
  personId: string;
96
+ zoneId: string | null;
96
97
  personFirstName: string;
97
98
  personLastName: string;
98
99
  personAvatarId: string | null;
99
- zoneId: string | null;
100
100
  }>;
101
101
  'person-out': z.ZodObject<{
102
102
  kind: z.ZodLiteral<"person-out">;
@@ -109,19 +109,19 @@ export declare const eventSchemaByKind: {
109
109
  }, "strip", z.ZodTypeAny, {
110
110
  kind: "person-out";
111
111
  personId: string;
112
+ isLeave: boolean;
113
+ zoneId: string | null;
112
114
  personFirstName: string;
113
115
  personLastName: string;
114
116
  personAvatarId: string | null;
115
- zoneId: string | null;
116
- isLeave: boolean;
117
117
  }, {
118
118
  kind: "person-out";
119
119
  personId: string;
120
+ isLeave: boolean;
121
+ zoneId: string | null;
120
122
  personFirstName: string;
121
123
  personLastName: string;
122
124
  personAvatarId: string | null;
123
- zoneId: string | null;
124
- isLeave: boolean;
125
125
  }>;
126
126
  'panic-button-pressed': z.ZodObject<{
127
127
  kind: z.ZodLiteral<"panic-button-pressed">;
@@ -567,13 +567,13 @@ export declare const eventSchemaByKind: {
567
567
  }, "strip", z.ZodTypeAny, {
568
568
  kind: "alarm-acknowledged";
569
569
  alarmId: string;
570
- personId?: string | undefined;
571
570
  userId?: string | undefined;
571
+ personId?: string | undefined;
572
572
  }, {
573
573
  kind: "alarm-acknowledged";
574
574
  alarmId: string;
575
- personId?: string | undefined;
576
575
  userId?: string | undefined;
576
+ personId?: string | undefined;
577
577
  }>;
578
578
  'alarm-armed-all': z.ZodObject<{
579
579
  kind: z.ZodLiteral<"alarm-armed-all">;
@@ -581,12 +581,12 @@ export declare const eventSchemaByKind: {
581
581
  personId: z.ZodOptional<z.ZodString>;
582
582
  }, "strip", z.ZodTypeAny, {
583
583
  kind: "alarm-armed-all";
584
- personId?: string | undefined;
585
584
  userId?: string | undefined;
585
+ personId?: string | undefined;
586
586
  }, {
587
587
  kind: "alarm-armed-all";
588
- personId?: string | undefined;
589
588
  userId?: string | undefined;
589
+ personId?: string | undefined;
590
590
  }>;
591
591
  'alarm-disarmed-all': z.ZodObject<{
592
592
  kind: z.ZodLiteral<"alarm-disarmed-all">;
@@ -594,12 +594,12 @@ export declare const eventSchemaByKind: {
594
594
  personId: z.ZodOptional<z.ZodString>;
595
595
  }, "strip", z.ZodTypeAny, {
596
596
  kind: "alarm-disarmed-all";
597
- personId?: string | undefined;
598
597
  userId?: string | undefined;
598
+ personId?: string | undefined;
599
599
  }, {
600
600
  kind: "alarm-disarmed-all";
601
- personId?: string | undefined;
602
601
  userId?: string | undefined;
602
+ personId?: string | undefined;
603
603
  }>;
604
604
  'alarm-armed': z.ZodObject<{
605
605
  kind: z.ZodLiteral<"alarm-armed">;
@@ -609,13 +609,13 @@ export declare const eventSchemaByKind: {
609
609
  }, "strip", z.ZodTypeAny, {
610
610
  kind: "alarm-armed";
611
611
  subjects: string[];
612
- personId?: string | undefined;
613
612
  userId?: string | undefined;
613
+ personId?: string | undefined;
614
614
  }, {
615
615
  kind: "alarm-armed";
616
616
  subjects: string[];
617
- personId?: string | undefined;
618
617
  userId?: string | undefined;
618
+ personId?: string | undefined;
619
619
  }>;
620
620
  'alarm-disarmed': z.ZodObject<{
621
621
  kind: z.ZodLiteral<"alarm-disarmed">;
@@ -625,13 +625,13 @@ export declare const eventSchemaByKind: {
625
625
  }, "strip", z.ZodTypeAny, {
626
626
  kind: "alarm-disarmed";
627
627
  subjects: string[];
628
- personId?: string | undefined;
629
628
  userId?: string | undefined;
629
+ personId?: string | undefined;
630
630
  }, {
631
631
  kind: "alarm-disarmed";
632
632
  subjects: string[];
633
- personId?: string | undefined;
634
633
  userId?: string | undefined;
634
+ personId?: string | undefined;
635
635
  }>;
636
636
  'alarm-arm-released': z.ZodObject<{
637
637
  kind: z.ZodLiteral<"alarm-arm-released">;
@@ -639,12 +639,12 @@ export declare const eventSchemaByKind: {
639
639
  personId: z.ZodOptional<z.ZodString>;
640
640
  }, "strip", z.ZodTypeAny, {
641
641
  kind: "alarm-arm-released";
642
- personId?: string | undefined;
643
642
  userId?: string | undefined;
643
+ personId?: string | undefined;
644
644
  }, {
645
645
  kind: "alarm-arm-released";
646
- personId?: string | undefined;
647
646
  userId?: string | undefined;
647
+ personId?: string | undefined;
648
648
  }>;
649
649
  'alarm-rearmed': z.ZodObject<{
650
650
  kind: z.ZodLiteral<"alarm-rearmed">;
@@ -100,11 +100,24 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
100
100
  } & Record<string, unknown>) | null;
101
101
  defaultStreamId: string;
102
102
  }>, z.ZodObject<{
103
+ canReportOpenState: z.ZodBoolean;
104
+ canReportLockState: z.ZodBoolean;
105
+ canControlLock: z.ZodBoolean;
106
+ canRelease: z.ZodBoolean;
107
+ } & {
103
108
  type: z.ZodLiteral<"door">;
104
109
  }, "strip", z.ZodTypeAny, {
105
110
  type: "door";
111
+ canReportOpenState: boolean;
112
+ canReportLockState: boolean;
113
+ canControlLock: boolean;
114
+ canRelease: boolean;
106
115
  }, {
107
116
  type: "door";
117
+ canReportOpenState: boolean;
118
+ canReportLockState: boolean;
119
+ canControlLock: boolean;
120
+ canRelease: boolean;
108
121
  }>, z.ZodObject<{
109
122
  inputs: z.ZodArray<z.ZodString, "many">;
110
123
  outputs: z.ZodArray<z.ZodString, "many">;
@@ -315,11 +328,24 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
315
328
  } & Record<string, unknown>) | null;
316
329
  defaultStreamId: string;
317
330
  }>, z.ZodObject<{
331
+ canReportOpenState: z.ZodBoolean;
332
+ canReportLockState: z.ZodBoolean;
333
+ canControlLock: z.ZodBoolean;
334
+ canRelease: z.ZodBoolean;
335
+ } & {
318
336
  type: z.ZodLiteral<"door">;
319
337
  }, "strip", z.ZodTypeAny, {
320
338
  type: "door";
339
+ canReportOpenState: boolean;
340
+ canReportLockState: boolean;
341
+ canControlLock: boolean;
342
+ canRelease: boolean;
321
343
  }, {
322
344
  type: "door";
345
+ canReportOpenState: boolean;
346
+ canReportLockState: boolean;
347
+ canControlLock: boolean;
348
+ canRelease: boolean;
323
349
  }>, z.ZodObject<{
324
350
  inputs: z.ZodArray<z.ZodString, "many">;
325
351
  outputs: z.ZodArray<z.ZodString, "many">;
@@ -471,6 +497,10 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
471
497
  defaultStreamId: string;
472
498
  } | {
473
499
  type: "door";
500
+ canReportOpenState: boolean;
501
+ canReportLockState: boolean;
502
+ canControlLock: boolean;
503
+ canRelease: boolean;
474
504
  } | {
475
505
  type: "io-board";
476
506
  inputs: string[];
@@ -545,6 +575,10 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
545
575
  defaultStreamId: string;
546
576
  } | {
547
577
  type: "door";
578
+ canReportOpenState: boolean;
579
+ canReportLockState: boolean;
580
+ canControlLock: boolean;
581
+ canRelease: boolean;
548
582
  } | {
549
583
  type: "io-board";
550
584
  inputs: string[];
@@ -688,11 +722,24 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
688
722
  } & Record<string, unknown>) | null;
689
723
  defaultStreamId: string;
690
724
  }>, z.ZodObject<{
725
+ canReportOpenState: z.ZodBoolean;
726
+ canReportLockState: z.ZodBoolean;
727
+ canControlLock: z.ZodBoolean;
728
+ canRelease: z.ZodBoolean;
729
+ } & {
691
730
  type: z.ZodLiteral<"door">;
692
731
  }, "strip", z.ZodTypeAny, {
693
732
  type: "door";
733
+ canReportOpenState: boolean;
734
+ canReportLockState: boolean;
735
+ canControlLock: boolean;
736
+ canRelease: boolean;
694
737
  }, {
695
738
  type: "door";
739
+ canReportOpenState: boolean;
740
+ canReportLockState: boolean;
741
+ canControlLock: boolean;
742
+ canRelease: boolean;
696
743
  }>, z.ZodObject<{
697
744
  inputs: z.ZodArray<z.ZodString, "many">;
698
745
  outputs: z.ZodArray<z.ZodString, "many">;
@@ -880,11 +927,24 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
880
927
  } & Record<string, unknown>) | null;
881
928
  defaultStreamId: string;
882
929
  }>, z.ZodObject<{
930
+ canReportOpenState: z.ZodBoolean;
931
+ canReportLockState: z.ZodBoolean;
932
+ canControlLock: z.ZodBoolean;
933
+ canRelease: z.ZodBoolean;
934
+ } & {
883
935
  type: z.ZodLiteral<"door">;
884
936
  }, "strip", z.ZodTypeAny, {
885
937
  type: "door";
938
+ canReportOpenState: boolean;
939
+ canReportLockState: boolean;
940
+ canControlLock: boolean;
941
+ canRelease: boolean;
886
942
  }, {
887
943
  type: "door";
944
+ canReportOpenState: boolean;
945
+ canReportLockState: boolean;
946
+ canControlLock: boolean;
947
+ canRelease: boolean;
888
948
  }>, z.ZodObject<{
889
949
  inputs: z.ZodArray<z.ZodString, "many">;
890
950
  outputs: z.ZodArray<z.ZodString, "many">;
@@ -1132,6 +1192,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1132
1192
  defaultStreamId: string;
1133
1193
  } | {
1134
1194
  type: "door";
1195
+ canReportOpenState: boolean;
1196
+ canReportLockState: boolean;
1197
+ canControlLock: boolean;
1198
+ canRelease: boolean;
1135
1199
  } | {
1136
1200
  type: "io-board";
1137
1201
  inputs: string[];
@@ -1228,6 +1292,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1228
1292
  defaultStreamId: string;
1229
1293
  } | {
1230
1294
  type: "door";
1295
+ canReportOpenState: boolean;
1296
+ canReportLockState: boolean;
1297
+ canControlLock: boolean;
1298
+ canRelease: boolean;
1231
1299
  } | {
1232
1300
  type: "io-board";
1233
1301
  inputs: string[];
@@ -1293,6 +1361,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1293
1361
  defaultStreamId: string;
1294
1362
  } | {
1295
1363
  type: "door";
1364
+ canReportOpenState: boolean;
1365
+ canReportLockState: boolean;
1366
+ canControlLock: boolean;
1367
+ canRelease: boolean;
1296
1368
  } | {
1297
1369
  type: "io-board";
1298
1370
  inputs: string[];
@@ -1389,6 +1461,10 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1389
1461
  defaultStreamId: string;
1390
1462
  } | {
1391
1463
  type: "door";
1464
+ canReportOpenState: boolean;
1465
+ canReportLockState: boolean;
1466
+ canControlLock: boolean;
1467
+ canRelease: boolean;
1392
1468
  } | {
1393
1469
  type: "io-board";
1394
1470
  inputs: string[];
package/dist/macros.d.ts CHANGED
@@ -8,14 +8,14 @@ export declare const sMacroItemDto: z.ZodObject<{
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string | null;
10
10
  params: Record<string, unknown>;
11
- deviceId: string;
12
11
  command: string;
12
+ deviceId: string;
13
13
  stepId: string;
14
14
  }, {
15
15
  id: string | null;
16
16
  params: Record<string, unknown>;
17
- deviceId: string;
18
17
  command: string;
18
+ deviceId: string;
19
19
  stepId: string;
20
20
  }>;
21
21
  export declare const sMacroDto: z.ZodObject<{
@@ -36,14 +36,14 @@ export declare const sMacroDto: z.ZodObject<{
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  id: string | null;
38
38
  params: Record<string, unknown>;
39
- deviceId: string;
40
39
  command: string;
40
+ deviceId: string;
41
41
  stepId: string;
42
42
  }, {
43
43
  id: string | null;
44
44
  params: Record<string, unknown>;
45
- deviceId: string;
46
45
  command: string;
46
+ deviceId: string;
47
47
  stepId: string;
48
48
  }>, "many">;
49
49
  }, "strip", z.ZodTypeAny, {
@@ -54,8 +54,8 @@ export declare const sMacroDto: z.ZodObject<{
54
54
  items: {
55
55
  id: string | null;
56
56
  params: Record<string, unknown>;
57
- deviceId: string;
58
57
  command: string;
58
+ deviceId: string;
59
59
  stepId: string;
60
60
  }[];
61
61
  displayName: string;
@@ -70,8 +70,8 @@ export declare const sMacroDto: z.ZodObject<{
70
70
  items: {
71
71
  id: string | null;
72
72
  params: Record<string, unknown>;
73
- deviceId: string;
74
73
  command: string;
74
+ deviceId: string;
75
75
  stepId: string;
76
76
  }[];
77
77
  displayName: string;
@@ -97,14 +97,14 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
97
97
  }, "strip", z.ZodTypeAny, {
98
98
  id: string | null;
99
99
  params: Record<string, unknown>;
100
- deviceId: string;
101
100
  command: string;
101
+ deviceId: string;
102
102
  stepId: string;
103
103
  }, {
104
104
  id: string | null;
105
105
  params: Record<string, unknown>;
106
- deviceId: string;
107
106
  command: string;
107
+ deviceId: string;
108
108
  stepId: string;
109
109
  }>, "many">;
110
110
  }, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
@@ -114,8 +114,8 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
114
114
  items: {
115
115
  id: string | null;
116
116
  params: Record<string, unknown>;
117
- deviceId: string;
118
117
  command: string;
118
+ deviceId: string;
119
119
  stepId: string;
120
120
  }[];
121
121
  displayName: string;
@@ -126,8 +126,8 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
126
126
  items: {
127
127
  id: string | null;
128
128
  params: Record<string, unknown>;
129
- deviceId: string;
130
129
  command: string;
130
+ deviceId: string;
131
131
  stepId: string;
132
132
  }[];
133
133
  displayName: string;
@@ -145,14 +145,14 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
145
145
  }, "strip", z.ZodTypeAny, {
146
146
  id: string | null;
147
147
  params: Record<string, unknown>;
148
- deviceId: string;
149
148
  command: string;
149
+ deviceId: string;
150
150
  stepId: string;
151
151
  }, {
152
152
  id: string | null;
153
153
  params: Record<string, unknown>;
154
- deviceId: string;
155
154
  command: string;
155
+ deviceId: string;
156
156
  stepId: string;
157
157
  }>, "many">>;
158
158
  displayName: z.ZodOptional<z.ZodString>;
@@ -163,8 +163,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
163
163
  items?: {
164
164
  id: string | null;
165
165
  params: Record<string, unknown>;
166
- deviceId: string;
167
166
  command: string;
167
+ deviceId: string;
168
168
  stepId: string;
169
169
  }[] | undefined;
170
170
  displayName?: string | undefined;
@@ -175,8 +175,8 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
175
175
  items?: {
176
176
  id: string | null;
177
177
  params: Record<string, unknown>;
178
- deviceId: string;
179
178
  command: string;
179
+ deviceId: string;
180
180
  stepId: string;
181
181
  }[] | undefined;
182
182
  displayName?: string | undefined;
@@ -34,23 +34,23 @@ export declare const sStateUpdate: z.ZodObject<{
34
34
  state: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  state: {};
37
- timestamp: number;
38
37
  deviceId: string;
38
+ timestamp: number;
39
39
  }, {
40
40
  state: {};
41
- timestamp: number;
42
41
  deviceId: string;
42
+ timestamp: number;
43
43
  }>;
44
44
  export type StateUpdatePayload = z.infer<typeof sStateUpdate>;
45
45
  export declare const sStateUnavailable: z.ZodObject<{
46
46
  timestamp: z.ZodNumber;
47
47
  deviceId: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- timestamp: number;
50
49
  deviceId: string;
51
- }, {
52
50
  timestamp: number;
51
+ }, {
53
52
  deviceId: string;
53
+ timestamp: number;
54
54
  }>;
55
55
  export type StateUnavailablePayload = z.infer<typeof sStateUnavailable>;
56
56
  export declare const sStateUpdateError: z.ZodObject<{
@@ -59,12 +59,12 @@ export declare const sStateUpdateError: z.ZodObject<{
59
59
  error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  error: {};
62
- timestamp: number;
63
62
  deviceId: string;
63
+ timestamp: number;
64
64
  }, {
65
65
  error: {};
66
- timestamp: number;
67
66
  deviceId: string;
67
+ timestamp: number;
68
68
  }>;
69
69
  export type StateUpdateErrorPayload = z.infer<typeof sStateUpdateError>;
70
70
  export declare const sStateSubscribe: z.ZodObject<{
@@ -72,12 +72,12 @@ export declare const sStateSubscribe: z.ZodObject<{
72
72
  requestId: z.ZodString;
73
73
  deviceId: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- timestamp: number;
76
75
  deviceId: string;
76
+ timestamp: number;
77
77
  requestId: string;
78
78
  }, {
79
- timestamp: number;
80
79
  deviceId: string;
80
+ timestamp: number;
81
81
  requestId: string;
82
82
  }>;
83
83
  export type StateSubscribePayload = z.infer<typeof sStateSubscribe>;
@@ -86,12 +86,12 @@ export declare const sStateUnsubscribe: z.ZodObject<{
86
86
  requestId: z.ZodString;
87
87
  deviceId: z.ZodString;
88
88
  }, "strip", z.ZodTypeAny, {
89
- timestamp: number;
90
89
  deviceId: string;
90
+ timestamp: number;
91
91
  requestId: string;
92
92
  }, {
93
- timestamp: number;
94
93
  deviceId: string;
94
+ timestamp: number;
95
95
  requestId: string;
96
96
  }>;
97
97
  export type StateUnsubscribePayload = z.infer<typeof sStateUnsubscribe>;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const sDeviceId: z.ZodString;
3
+ export declare const sPresetId: z.ZodString;
4
+ export declare const sDeviceEvent: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5
+ export declare const sPersonId: z.ZodString;
6
+ export declare const sZoneId: z.ZodString;
7
+ export declare const sMacroId: z.ZodString;
8
+ export declare const sDuration: z.ZodNumber;
9
+ export declare const sUrl: z.ZodString;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sUrl = exports.sDuration = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sDeviceId = zod_1.z.string().uuid().nonempty();
6
+ exports.sPresetId = zod_1.z.string().uuid().nonempty();
7
+ exports.sDeviceEvent = zod_1.z.record(zod_1.z.unknown());
8
+ exports.sPersonId = zod_1.z.string().uuid().nonempty();
9
+ exports.sZoneId = zod_1.z.string().uuid().nonempty();
10
+ exports.sMacroId = zod_1.z.string().uuid().nonempty();
11
+ // general
12
+ exports.sDuration = zod_1.z.number().min(0).describe('Duration in milliseconds');
13
+ exports.sUrl = zod_1.z.string().url().describe('A valid URL');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",