@awarevue/api-types 2.0.82 → 2.0.84

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.
Files changed (131) hide show
  1. package/dist/alarm-automation.d.ts +21 -37
  2. package/dist/api/agent-protocol/protocol.d.ts +1000 -10986
  3. package/dist/api/agent-protocol/protocol.js +114 -57
  4. package/dist/api/commands/alarm.d.ts +40 -248
  5. package/dist/api/commands/all.d.ts +393 -4642
  6. package/dist/api/commands/camera-lift.d.ts +8 -32
  7. package/dist/api/commands/camera.d.ts +82 -373
  8. package/dist/api/commands/display.d.ts +21 -373
  9. package/dist/api/commands/door.d.ts +16 -64
  10. package/dist/api/commands/io-board.d.ts +4 -40
  11. package/dist/api/commands/nvr-exporter.d.ts +104 -1380
  12. package/dist/api/commands/nvr-recorder.d.ts +400 -5288
  13. package/dist/api/commands/pbx.d.ts +4 -56
  14. package/dist/api/commands/presence-tracker.d.ts +12 -128
  15. package/dist/api/commands/server.d.ts +114 -1382
  16. package/dist/api/commands/server.js +1 -1
  17. package/dist/api/error.d.ts +77 -443
  18. package/dist/api/error.js +1 -1
  19. package/dist/api/events/alarm.d.ts +20 -148
  20. package/dist/api/events/all.d.ts +74 -526
  21. package/dist/api/events/all.js +1 -1
  22. package/dist/api/events/camera.d.ts +46 -470
  23. package/dist/api/events/display.d.ts +1 -5
  24. package/dist/api/events/door.d.ts +34 -146
  25. package/dist/api/events/intercom-terminal.d.ts +22 -42
  26. package/dist/api/events/io-board.d.ts +2 -18
  27. package/dist/api/events/nvr-exporter.d.ts +4 -32
  28. package/dist/api/events/panic-button.d.ts +2 -10
  29. package/dist/api/events/presence-tracker.d.ts +4 -88
  30. package/dist/api/events/reader.d.ts +2 -22
  31. package/dist/api/events/server.d.ts +6 -34
  32. package/dist/api/mqtt/payloads.d.ts +4 -26
  33. package/dist/api/queries/all.d.ts +188 -1622
  34. package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
  35. package/dist/api/queries/nvr-exporter.d.ts +9 -73
  36. package/dist/api/queries/nvr-recorder.d.ts +300 -2828
  37. package/dist/api/rest/access-rule.d.ts +10 -86
  38. package/dist/api/rest/agreement.d.ts +3 -18
  39. package/dist/api/rest/api-keys.d.ts +3 -17
  40. package/dist/api/rest/app.d.ts +3 -51
  41. package/dist/api/rest/auth.d.ts +3 -19
  42. package/dist/api/rest/automation.d.ts +11 -236
  43. package/dist/api/rest/bookmarks.d.ts +8 -56
  44. package/dist/api/rest/camera.d.ts +12 -70
  45. package/dist/api/rest/cast.d.ts +1 -7
  46. package/dist/api/rest/custom-field.d.ts +21 -24
  47. package/dist/api/rest/device-group.d.ts +8 -32
  48. package/dist/api/rest/device.d.ts +104 -176
  49. package/dist/api/rest/io-device.d.ts +7 -75
  50. package/dist/api/rest/io-device.js +2 -2
  51. package/dist/api/rest/layout.d.ts +4 -102
  52. package/dist/api/rest/macros.d.ts +6 -82
  53. package/dist/api/rest/media.d.ts +17 -141
  54. package/dist/api/rest/notifications.d.ts +7 -15
  55. package/dist/api/rest/person-agreement.d.ts +1 -9
  56. package/dist/api/rest/person-presence.d.ts +8 -50
  57. package/dist/api/rest/person-type.d.ts +6 -39
  58. package/dist/api/rest/person.d.ts +18 -96
  59. package/dist/api/rest/query.d.ts +5 -15
  60. package/dist/api/rest/schedule.d.ts +78 -216
  61. package/dist/api/rest/security-level.d.ts +6 -43
  62. package/dist/api/rest/template.d.ts +10 -20
  63. package/dist/api/rest/token-conversion.d.ts +11 -28
  64. package/dist/api/rest/user.d.ts +15 -97
  65. package/dist/api/rest/view.d.ts +24 -496
  66. package/dist/api/rest/webrtc-playback.d.ts +3 -25
  67. package/dist/api/rest/zone.d.ts +5 -21
  68. package/dist/api/ws/device-communication.d.ts +10 -62
  69. package/dist/api/ws/notifications.d.ts +7 -33
  70. package/dist/api/ws/progress.d.ts +10 -72
  71. package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
  72. package/dist/objects/access-rule.d.ts +12 -132
  73. package/dist/objects/access-rule.js +1 -1
  74. package/dist/objects/agent-metadata.d.ts +36 -146
  75. package/dist/objects/agent-metadata.js +1 -2
  76. package/dist/objects/agreement.d.ts +1 -13
  77. package/dist/objects/all.d.ts +20 -1
  78. package/dist/objects/api-key.d.ts +1 -13
  79. package/dist/objects/automation-rule.d.ts +9 -168
  80. package/dist/objects/automation-rule.js +2 -2
  81. package/dist/objects/bookmark.d.ts +3 -33
  82. package/dist/objects/bookmark.js +1 -1
  83. package/dist/objects/credential.d.ts +13 -13
  84. package/dist/objects/credential.js +1 -1
  85. package/dist/objects/custom-field.d.ts +19 -15
  86. package/dist/objects/device/alarm.d.ts +1 -1
  87. package/dist/objects/device/any-device.d.ts +1333 -4451
  88. package/dist/objects/device/camera-lift.d.ts +1 -1
  89. package/dist/objects/device/camera.d.ts +29 -125
  90. package/dist/objects/device/camera.js +1 -1
  91. package/dist/objects/device/device-import.d.ts +307 -1735
  92. package/dist/objects/device/device-relation.d.ts +70 -58
  93. package/dist/objects/device/display.d.ts +1 -1
  94. package/dist/objects/device/door.d.ts +9 -14
  95. package/dist/objects/device/intercom-terminal.d.ts +10 -59
  96. package/dist/objects/device/io-board.d.ts +3 -9
  97. package/dist/objects/device/motion-sensor.d.ts +1 -1
  98. package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
  99. package/dist/objects/device/nvr-exporter.d.ts +3 -9
  100. package/dist/objects/device/nvr-recorder.d.ts +16 -68
  101. package/dist/objects/device/panic-button.d.ts +1 -1
  102. package/dist/objects/device/pbx.d.ts +1 -5
  103. package/dist/objects/device/system.d.ts +1 -1
  104. package/dist/objects/device/system.js +1 -1
  105. package/dist/objects/device-group.d.ts +2 -16
  106. package/dist/objects/layout.d.ts +3 -75
  107. package/dist/objects/macro.d.ts +3 -59
  108. package/dist/objects/macro.js +2 -2
  109. package/dist/objects/notification.d.ts +6 -24
  110. package/dist/objects/notification.js +1 -1
  111. package/dist/objects/person-agreement.d.ts +1 -13
  112. package/dist/objects/person-presence.d.ts +11 -165
  113. package/dist/objects/person-type.d.ts +2 -22
  114. package/dist/objects/person.d.ts +21 -153
  115. package/dist/objects/person.js +3 -3
  116. package/dist/objects/role.d.ts +3 -15
  117. package/dist/objects/schedule.d.ts +152 -314
  118. package/dist/objects/schedule.js +1 -1
  119. package/dist/objects/security-level.d.ts +1 -21
  120. package/dist/objects/template.d.ts +9 -13
  121. package/dist/objects/token-conversion.d.ts +8 -18
  122. package/dist/objects/user.d.ts +2 -20
  123. package/dist/objects/view.d.ts +52 -682
  124. package/dist/objects/world-object.d.ts +1 -7
  125. package/dist/objects/zone.d.ts +5 -29
  126. package/dist/objects/zone.js +1 -1
  127. package/dist/package.json +3 -3
  128. package/dist/permissions.d.ts +1 -1
  129. package/dist/primitives.d.ts +113 -551
  130. package/dist/primitives.js +1 -1
  131. package/package.json +3 -3
@@ -5,19 +5,7 @@ export declare const sMacroItemDto: z.ZodObject<{
5
5
  deviceId: z.ZodString;
6
6
  command: z.ZodString;
7
7
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- }, "strip", z.ZodTypeAny, {
9
- params: Record<string, unknown>;
10
- id: string | null;
11
- deviceId: string;
12
- command: string;
13
- stepId: string;
14
- }, {
15
- params: Record<string, unknown>;
16
- id: string | null;
17
- deviceId: string;
18
- command: string;
19
- stepId: string;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export declare const sMacroDto: z.ZodObject<{
22
10
  id: z.ZodString;
23
11
  displayName: z.ZodString;
@@ -33,51 +21,7 @@ export declare const sMacroDto: z.ZodObject<{
33
21
  deviceId: z.ZodString;
34
22
  command: z.ZodString;
35
23
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
36
- }, "strip", z.ZodTypeAny, {
37
- params: Record<string, unknown>;
38
- id: string | null;
39
- deviceId: string;
40
- command: string;
41
- stepId: string;
42
- }, {
43
- params: Record<string, unknown>;
44
- id: string | null;
45
- deviceId: string;
46
- command: string;
47
- stepId: string;
48
- }>, "many">;
49
- }, "strip", z.ZodTypeAny, {
50
- code: string | null;
51
- id: string;
52
- displayName: string;
53
- createdOn: string;
54
- lastModifiedOn: string;
55
- module: string | null;
56
- metadata: Record<string, unknown>;
57
- createdBy: string | null;
58
- items: {
59
- params: Record<string, unknown>;
60
- id: string | null;
61
- deviceId: string;
62
- command: string;
63
- stepId: string;
64
- }[];
65
- }, {
66
- code: string | null;
67
- id: string;
68
- displayName: string;
69
- createdOn: string;
70
- lastModifiedOn: string;
71
- module: string | null;
72
- metadata: Record<string, unknown>;
73
- createdBy: string | null;
74
- items: {
75
- params: Record<string, unknown>;
76
- id: string | null;
77
- deviceId: string;
78
- command: string;
79
- stepId: string;
80
- }[];
81
- }>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
82
26
  export type MacroItemDto = z.infer<typeof sMacroItemDto>;
83
27
  export type MacroDto = z.infer<typeof sMacroDto>;
@@ -7,7 +7,7 @@ exports.sMacroItemDto = zod_1.z.object({
7
7
  stepId: zod_1.z.string().nonempty(),
8
8
  deviceId: zod_1.z.string().uuid().nonempty(),
9
9
  command: zod_1.z.string().nonempty(),
10
- params: zod_1.z.record(zod_1.z.unknown()),
10
+ params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
11
11
  });
12
12
  exports.sMacroDto = zod_1.z.object({
13
13
  id: zod_1.z.string().nonempty(),
@@ -17,7 +17,7 @@ exports.sMacroDto = zod_1.z.object({
17
17
  .string()
18
18
  .nullable()
19
19
  .describe('The module the macro rule belongs to'),
20
- metadata: zod_1.z.record(zod_1.z.unknown()),
20
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
21
21
  createdOn: zod_1.z.string(),
22
22
  lastModifiedOn: zod_1.z.string(),
23
23
  createdBy: zod_1.z.string().nullable(),
@@ -3,34 +3,16 @@ export declare const sNotificationDto: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  source: z.ZodString;
5
5
  message: z.ZodString;
6
- severity: z.ZodEnum<["info", "warning", "critical"]>;
6
+ severity: z.ZodEnum<{
7
+ info: "info";
8
+ warning: "warning";
9
+ critical: "critical";
10
+ }>;
7
11
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
12
  notificationRef: z.ZodNullable<z.ZodString>;
9
13
  createdOn: z.ZodNumber;
10
14
  recipientId: z.ZodNullable<z.ZodString>;
11
15
  acknowledgedBy: z.ZodNullable<z.ZodString>;
12
16
  acknowledgedOn: z.ZodNullable<z.ZodNumber>;
13
- }, "strip", z.ZodTypeAny, {
14
- message: string;
15
- id: string;
16
- createdOn: number;
17
- metadata: Record<string, unknown>;
18
- source: string;
19
- severity: "info" | "warning" | "critical";
20
- notificationRef: string | null;
21
- recipientId: string | null;
22
- acknowledgedBy: string | null;
23
- acknowledgedOn: number | null;
24
- }, {
25
- message: string;
26
- id: string;
27
- createdOn: number;
28
- metadata: Record<string, unknown>;
29
- source: string;
30
- severity: "info" | "warning" | "critical";
31
- notificationRef: string | null;
32
- recipientId: string | null;
33
- acknowledgedBy: string | null;
34
- acknowledgedOn: number | null;
35
- }>;
17
+ }, z.core.$strip>;
36
18
  export type NotificationDto = z.infer<typeof sNotificationDto>;
@@ -8,7 +8,7 @@ exports.sNotificationDto = zod_1.z.object({
8
8
  source: primitives_1.sDeviceId,
9
9
  message: zod_1.z.string().nonempty(),
10
10
  severity: primitives_1.sNotificationSeverity,
11
- metadata: zod_1.z.record(zod_1.z.unknown()),
11
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
12
12
  notificationRef: zod_1.z.string().nonempty().nullable(),
13
13
  createdOn: zod_1.z.number().int().nonnegative(),
14
14
  recipientId: zod_1.z.string().nonempty().nullable(),
@@ -5,17 +5,5 @@ export declare const sPersonAgeementDto: z.ZodObject<{
5
5
  agreementImage: z.ZodString;
6
6
  createdOn: z.ZodString;
7
7
  lastModifiedOn: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- createdOn: string;
10
- lastModifiedOn: string;
11
- personId: string;
12
- agreementId: string;
13
- agreementImage: string;
14
- }, {
15
- createdOn: string;
16
- lastModifiedOn: string;
17
- personId: string;
18
- agreementId: string;
19
- agreementImage: string;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export type PersonAgreementDto = z.infer<typeof sPersonAgeementDto>;
@@ -7,37 +7,13 @@ export declare const sPresencePersonDto: z.ZodObject<{
7
7
  type: z.ZodString;
8
8
  position: z.ZodNullable<z.ZodString>;
9
9
  archived: z.ZodBoolean;
10
- }, "strip", z.ZodTypeAny, {
11
- type: string;
12
- id: string;
13
- firstName: string;
14
- lastName: string;
15
- avatarId: string | null;
16
- position: string | null;
17
- archived: boolean;
18
- }, {
19
- type: string;
20
- id: string;
21
- firstName: string;
22
- lastName: string;
23
- avatarId: string | null;
24
- position: string | null;
25
- archived: boolean;
26
- }>;
10
+ }, z.core.$strip>;
27
11
  export type PresencePersonDto = z.infer<typeof sPresencePersonDto>;
28
12
  export declare const sPresenceZoneDto: z.ZodObject<{
29
13
  id: z.ZodString;
30
14
  displayName: z.ZodString;
31
15
  isGlobal: z.ZodBoolean;
32
- }, "strip", z.ZodTypeAny, {
33
- id: string;
34
- displayName: string;
35
- isGlobal: boolean;
36
- }, {
37
- id: string;
38
- displayName: string;
39
- isGlobal: boolean;
40
- }>;
16
+ }, z.core.$strip>;
41
17
  export type PresenceZoneDto = z.infer<typeof sPresenceZoneDto>;
42
18
  export declare const sPersonPresenceDto: z.ZodObject<{
43
19
  id: z.ZodString;
@@ -49,88 +25,22 @@ export declare const sPersonPresenceDto: z.ZodObject<{
49
25
  type: z.ZodString;
50
26
  position: z.ZodNullable<z.ZodString>;
51
27
  archived: z.ZodBoolean;
52
- }, "strip", z.ZodTypeAny, {
53
- type: string;
54
- id: string;
55
- firstName: string;
56
- lastName: string;
57
- avatarId: string | null;
58
- position: string | null;
59
- archived: boolean;
60
- }, {
61
- type: string;
62
- id: string;
63
- firstName: string;
64
- lastName: string;
65
- avatarId: string | null;
66
- position: string | null;
67
- archived: boolean;
68
- }>;
69
- zone: z.ZodUnion<[z.ZodObject<{
28
+ }, z.core.$strip>;
29
+ zone: z.ZodUnion<readonly [z.ZodObject<{
70
30
  id: z.ZodString;
71
31
  displayName: z.ZodString;
72
32
  isGlobal: z.ZodBoolean;
73
- }, "strip", z.ZodTypeAny, {
74
- id: string;
75
- displayName: string;
76
- isGlobal: boolean;
77
- }, {
78
- id: string;
79
- displayName: string;
80
- isGlobal: boolean;
81
- }>, z.ZodString]>;
33
+ }, z.core.$strip>, z.ZodString]>;
82
34
  online: z.ZodNullable<z.ZodBoolean>;
83
35
  onLeave: z.ZodBoolean;
84
36
  lastCheckInOn: z.ZodNullable<z.ZodNumber>;
85
37
  lastCheckOutOn: z.ZodNullable<z.ZodNumber>;
86
38
  securityChecked: z.ZodBoolean;
87
- }, "strip", z.ZodTypeAny, {
88
- id: string;
89
- person: {
90
- type: string;
91
- id: string;
92
- firstName: string;
93
- lastName: string;
94
- avatarId: string | null;
95
- position: string | null;
96
- archived: boolean;
97
- };
98
- zone: string | {
99
- id: string;
100
- displayName: string;
101
- isGlobal: boolean;
102
- };
103
- online: boolean | null;
104
- onLeave: boolean;
105
- lastCheckInOn: number | null;
106
- lastCheckOutOn: number | null;
107
- securityChecked: boolean;
108
- }, {
109
- id: string;
110
- person: {
111
- type: string;
112
- id: string;
113
- firstName: string;
114
- lastName: string;
115
- avatarId: string | null;
116
- position: string | null;
117
- archived: boolean;
118
- };
119
- zone: string | {
120
- id: string;
121
- displayName: string;
122
- isGlobal: boolean;
123
- };
124
- online: boolean | null;
125
- onLeave: boolean;
126
- lastCheckInOn: number | null;
127
- lastCheckOutOn: number | null;
128
- securityChecked: boolean;
129
- }>;
39
+ }, z.core.$strip>;
130
40
  export type PersonPresenceDto = z.infer<typeof sPersonPresenceDto>;
131
41
  export declare const sPersonPresenceActionDto: z.ZodObject<{
132
42
  id: z.ZodString;
133
- person: z.ZodUnion<[z.ZodObject<{
43
+ person: z.ZodUnion<readonly [z.ZodObject<{
134
44
  id: z.ZodString;
135
45
  firstName: z.ZodString;
136
46
  lastName: z.ZodString;
@@ -138,79 +48,15 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
138
48
  type: z.ZodString;
139
49
  position: z.ZodNullable<z.ZodString>;
140
50
  archived: z.ZodBoolean;
141
- }, "strip", z.ZodTypeAny, {
142
- type: string;
143
- id: string;
144
- firstName: string;
145
- lastName: string;
146
- avatarId: string | null;
147
- position: string | null;
148
- archived: boolean;
149
- }, {
150
- type: string;
151
- id: string;
152
- firstName: string;
153
- lastName: string;
154
- avatarId: string | null;
155
- position: string | null;
156
- archived: boolean;
157
- }>, z.ZodString]>;
158
- zone: z.ZodUnion<[z.ZodObject<{
51
+ }, z.core.$strip>, z.ZodString]>;
52
+ zone: z.ZodUnion<readonly [z.ZodObject<{
159
53
  id: z.ZodString;
160
54
  displayName: z.ZodString;
161
55
  isGlobal: z.ZodBoolean;
162
- }, "strip", z.ZodTypeAny, {
163
- id: string;
164
- displayName: string;
165
- isGlobal: boolean;
166
- }, {
167
- id: string;
168
- displayName: string;
169
- isGlobal: boolean;
170
- }>, z.ZodString]>;
56
+ }, z.core.$strip>, z.ZodString]>;
171
57
  timestamp: z.ZodNumber;
172
58
  checkInOrOut: z.ZodBoolean;
173
59
  isLeave: z.ZodBoolean;
174
60
  checkCompleted: z.ZodBoolean;
175
- }, "strip", z.ZodTypeAny, {
176
- id: string;
177
- timestamp: number;
178
- person: string | {
179
- type: string;
180
- id: string;
181
- firstName: string;
182
- lastName: string;
183
- avatarId: string | null;
184
- position: string | null;
185
- archived: boolean;
186
- };
187
- zone: string | {
188
- id: string;
189
- displayName: string;
190
- isGlobal: boolean;
191
- };
192
- checkInOrOut: boolean;
193
- isLeave: boolean;
194
- checkCompleted: boolean;
195
- }, {
196
- id: string;
197
- timestamp: number;
198
- person: string | {
199
- type: string;
200
- id: string;
201
- firstName: string;
202
- lastName: string;
203
- avatarId: string | null;
204
- position: string | null;
205
- archived: boolean;
206
- };
207
- zone: string | {
208
- id: string;
209
- displayName: string;
210
- isGlobal: boolean;
211
- };
212
- checkInOrOut: boolean;
213
- isLeave: boolean;
214
- checkCompleted: boolean;
215
- }>;
61
+ }, z.core.$strip>;
216
62
  export type PersonPresenceActionDto = z.infer<typeof sPersonPresenceActionDto>;
@@ -4,30 +4,10 @@ export declare const sPersonTypeDto: z.ZodObject<{
4
4
  displayName: z.ZodString;
5
5
  accessControlUser: z.ZodBoolean;
6
6
  systemUser: z.ZodBoolean;
7
- agreements: z.ZodArray<z.ZodString, "many">;
7
+ agreements: z.ZodArray<z.ZodString>;
8
8
  securityCheck: z.ZodBoolean;
9
9
  inOnCreation: z.ZodBoolean;
10
10
  createdOn: z.ZodString;
11
11
  lastModifiedOn: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- id: string;
14
- displayName: string;
15
- createdOn: string;
16
- lastModifiedOn: string;
17
- agreements: string[];
18
- accessControlUser: boolean;
19
- systemUser: boolean;
20
- securityCheck: boolean;
21
- inOnCreation: boolean;
22
- }, {
23
- id: string;
24
- displayName: string;
25
- createdOn: string;
26
- lastModifiedOn: string;
27
- agreements: string[];
28
- accessControlUser: boolean;
29
- systemUser: boolean;
30
- securityCheck: boolean;
31
- inOnCreation: boolean;
32
- }>;
12
+ }, z.core.$strip>;
33
13
  export type PersonTypeDto = z.infer<typeof sPersonTypeDto>;
@@ -2,13 +2,7 @@ import { z } from 'zod';
2
2
  export declare const sPersonAccessRule: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  displayName: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- id: string;
7
- displayName: string;
8
- }, {
9
- id: string;
10
- displayName: string;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export declare const sPersonProps: z.ZodObject<{
13
7
  firstName: z.ZodString;
14
8
  lastName: z.ZodString;
@@ -19,56 +13,18 @@ export declare const sPersonProps: z.ZodObject<{
19
13
  validTo: z.ZodNullable<z.ZodString>;
20
14
  avatarId: z.ZodNullable<z.ZodString>;
21
15
  credentials: z.ZodArray<z.ZodObject<{
22
- type: z.ZodEnum<["card", "pin", "fingerprint"]>;
23
- value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
16
+ type: z.ZodEnum<{
17
+ card: "card";
18
+ pin: "pin";
19
+ fingerprint: "fingerprint";
20
+ }>;
21
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
24
22
  note: z.ZodNullable<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- value: string | Record<string, unknown>;
27
- type: "card" | "pin" | "fingerprint";
28
- note: string | null;
29
- }, {
30
- value: string | Record<string, unknown>;
31
- type: "card" | "pin" | "fingerprint";
32
- note: string | null;
33
- }>, "many">;
34
- accessRules: z.ZodArray<z.ZodString, "many">;
23
+ }, z.core.$strip>>;
24
+ accessRules: z.ZodArray<z.ZodString>;
35
25
  customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
36
26
  type: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- type: string;
39
- firstName: string;
40
- lastName: string;
41
- avatarId: string | null;
42
- position: string | null;
43
- accessSuspended: boolean;
44
- staffMember: boolean;
45
- validFrom: string | null;
46
- validTo: string | null;
47
- credentials: {
48
- value: string | Record<string, unknown>;
49
- type: "card" | "pin" | "fingerprint";
50
- note: string | null;
51
- }[];
52
- accessRules: string[];
53
- customFields: Record<string, string> | null;
54
- }, {
55
- type: string;
56
- firstName: string;
57
- lastName: string;
58
- avatarId: string | null;
59
- position: string | null;
60
- accessSuspended: boolean;
61
- staffMember: boolean;
62
- validFrom: string | null;
63
- validTo: string | null;
64
- credentials: {
65
- value: string | Record<string, unknown>;
66
- type: "card" | "pin" | "fingerprint";
67
- note: string | null;
68
- }[];
69
- accessRules: string[];
70
- customFields: Record<string, string> | null;
71
- }>;
27
+ }, z.core.$strip>;
72
28
  export declare const sPersonDto: z.ZodObject<{
73
29
  id: z.ZodString;
74
30
  firstName: z.ZodString;
@@ -83,30 +39,20 @@ export declare const sPersonDto: z.ZodObject<{
83
39
  lastModifiedOn: z.ZodString;
84
40
  avatarId: z.ZodNullable<z.ZodString>;
85
41
  credentials: z.ZodArray<z.ZodObject<{
86
- type: z.ZodEnum<["card", "pin", "fingerprint"]>;
87
- value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
42
+ type: z.ZodEnum<{
43
+ card: "card";
44
+ pin: "pin";
45
+ fingerprint: "fingerprint";
46
+ }>;
47
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
88
48
  note: z.ZodNullable<z.ZodString>;
89
- }, "strip", z.ZodTypeAny, {
90
- value: string | Record<string, unknown>;
91
- type: "card" | "pin" | "fingerprint";
92
- note: string | null;
93
- }, {
94
- value: string | Record<string, unknown>;
95
- type: "card" | "pin" | "fingerprint";
96
- note: string | null;
97
- }>, "many">;
49
+ }, z.core.$strip>>;
98
50
  accessRules: z.ZodArray<z.ZodObject<{
99
51
  id: z.ZodString;
100
52
  displayName: z.ZodString;
101
- }, "strip", z.ZodTypeAny, {
102
- id: string;
103
- displayName: string;
104
- }, {
105
- id: string;
106
- displayName: string;
107
- }>, "many">;
53
+ }, z.core.$strip>>;
108
54
  customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
109
- refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
55
+ refs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
110
56
  version: z.ZodNumber;
111
57
  type: z.ZodString;
112
58
  agreements: z.ZodArray<z.ZodObject<{
@@ -115,86 +61,8 @@ export declare const sPersonDto: z.ZodObject<{
115
61
  agreementImage: z.ZodString;
116
62
  createdOn: z.ZodString;
117
63
  lastModifiedOn: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- createdOn: string;
120
- lastModifiedOn: string;
121
- personId: string;
122
- agreementId: string;
123
- agreementImage: string;
124
- }, {
125
- createdOn: string;
126
- lastModifiedOn: string;
127
- personId: string;
128
- agreementId: string;
129
- agreementImage: string;
130
- }>, "many">;
131
- }, "strip", z.ZodTypeAny, {
132
- type: string;
133
- id: string;
134
- firstName: string;
135
- lastName: string;
136
- avatarId: string | null;
137
- createdOn: string;
138
- lastModifiedOn: string;
139
- refs: Record<string, string | string[]>;
140
- version: number;
141
- position: string | null;
142
- accessSuspended: boolean;
143
- staffMember: boolean;
144
- validFrom: string | null;
145
- validTo: string | null;
146
- credentials: {
147
- value: string | Record<string, unknown>;
148
- type: "card" | "pin" | "fingerprint";
149
- note: string | null;
150
- }[];
151
- accessRules: {
152
- id: string;
153
- displayName: string;
154
- }[];
155
- customFields: Record<string, string> | null;
156
- archived: boolean;
157
- agreements: {
158
- createdOn: string;
159
- lastModifiedOn: string;
160
- personId: string;
161
- agreementId: string;
162
- agreementImage: string;
163
- }[];
164
- }, {
165
- type: string;
166
- id: string;
167
- firstName: string;
168
- lastName: string;
169
- avatarId: string | null;
170
- createdOn: string;
171
- lastModifiedOn: string;
172
- refs: Record<string, string | string[]>;
173
- version: number;
174
- position: string | null;
175
- accessSuspended: boolean;
176
- staffMember: boolean;
177
- validFrom: string | null;
178
- validTo: string | null;
179
- credentials: {
180
- value: string | Record<string, unknown>;
181
- type: "card" | "pin" | "fingerprint";
182
- note: string | null;
183
- }[];
184
- accessRules: {
185
- id: string;
186
- displayName: string;
187
- }[];
188
- customFields: Record<string, string> | null;
189
- archived: boolean;
190
- agreements: {
191
- createdOn: string;
192
- lastModifiedOn: string;
193
- personId: string;
194
- agreementId: string;
195
- agreementImage: string;
196
- }[];
197
- }>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>;
198
66
  export type PersonAccessRuleDto = z.infer<typeof sPersonAccessRule>;
199
67
  export type PersonProps = z.infer<typeof sPersonProps>;
200
68
  export type PersonDto = z.infer<typeof sPersonDto>;
@@ -19,7 +19,7 @@ exports.sPersonProps = zod_1.z.object({
19
19
  avatarId: zod_1.z.string().nullable(),
20
20
  credentials: zod_1.z.array(credential_1.sAssignedCredential),
21
21
  accessRules: zod_1.z.array(zod_1.z.string().nonempty()),
22
- customFields: zod_1.z.record(zod_1.z.string()).nullable(),
22
+ customFields: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable(),
23
23
  type: zod_1.z.string().min(1).max(16),
24
24
  });
25
25
  exports.sPersonDto = zod_1.z.object({
@@ -37,8 +37,8 @@ exports.sPersonDto = zod_1.z.object({
37
37
  avatarId: zod_1.z.string().nullable(),
38
38
  credentials: zod_1.z.array(credential_1.sAssignedCredential),
39
39
  accessRules: zod_1.z.array(exports.sPersonAccessRule),
40
- customFields: zod_1.z.record(zod_1.z.string()).nullable(),
41
- refs: zod_1.z.record(zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])),
40
+ customFields: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable(),
41
+ 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())])),
42
42
  version: zod_1.z.number(),
43
43
  type: zod_1.z.string().min(1).max(64),
44
44
  agreements: zod_1.z.array(person_agreement_1.sPersonAgeementDto),