@awarevue/api-types 1.0.1

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 (132) hide show
  1. package/dist/access-control/access-rule.d.ts +243 -0
  2. package/dist/access-control/access-rule.js +49 -0
  3. package/dist/access-control/credential.d.ts +14 -0
  4. package/dist/access-control/credential.js +12 -0
  5. package/dist/access-control/index.d.ts +7 -0
  6. package/dist/access-control/index.js +23 -0
  7. package/dist/access-control/person-presence.d.ts +249 -0
  8. package/dist/access-control/person-presence.js +61 -0
  9. package/dist/access-control/person.d.ts +209 -0
  10. package/dist/access-control/person.js +49 -0
  11. package/dist/access-control/schedule.d.ts +500 -0
  12. package/dist/access-control/schedule.js +65 -0
  13. package/dist/access-control/sync.d.ts +3 -0
  14. package/dist/access-control/sync.js +2 -0
  15. package/dist/access-control/zone.d.ts +65 -0
  16. package/dist/access-control/zone.js +28 -0
  17. package/dist/agent-communication/index.d.ts +1 -0
  18. package/dist/agent-communication/index.js +17 -0
  19. package/dist/agent-communication/protocol.d.ts +1692 -0
  20. package/dist/agent-communication/protocol.js +341 -0
  21. package/dist/api/alarm.d.ts +23 -0
  22. package/dist/api/alarm.js +2 -0
  23. package/dist/api/auth.d.ts +31 -0
  24. package/dist/api/auth.js +19 -0
  25. package/dist/api/index.d.ts +4 -0
  26. package/dist/api/index.js +20 -0
  27. package/dist/api/media.d.ts +187 -0
  28. package/dist/api/media.js +59 -0
  29. package/dist/api/query.d.ts +33 -0
  30. package/dist/api/query.js +41 -0
  31. package/dist/app.d.ts +12 -0
  32. package/dist/app.js +8 -0
  33. package/dist/automation.d.ts +334 -0
  34. package/dist/automation.js +49 -0
  35. package/dist/aware-config.d.ts +3 -0
  36. package/dist/aware-config.js +2 -0
  37. package/dist/custom-field.d.ts +52 -0
  38. package/dist/custom-field.js +19 -0
  39. package/dist/device/alarm.d.ts +265 -0
  40. package/dist/device/alarm.js +66 -0
  41. package/dist/device/any-device.d.ts +2376 -0
  42. package/dist/device/any-device.js +185 -0
  43. package/dist/device/camera-lift.d.ts +17 -0
  44. package/dist/device/camera-lift.js +7 -0
  45. package/dist/device/camera.d.ts +829 -0
  46. package/dist/device/camera.js +120 -0
  47. package/dist/device/device-gateway.d.ts +3 -0
  48. package/dist/device/device-gateway.js +4 -0
  49. package/dist/device/door.d.ts +217 -0
  50. package/dist/device/door.js +57 -0
  51. package/dist/device/index.d.ts +15 -0
  52. package/dist/device/index.js +31 -0
  53. package/dist/device/intercom-operator.d.ts +13 -0
  54. package/dist/device/intercom-operator.js +5 -0
  55. package/dist/device/intercom-terminal.d.ts +244 -0
  56. package/dist/device/intercom-terminal.js +48 -0
  57. package/dist/device/io-board.d.ts +55 -0
  58. package/dist/device/io-board.js +19 -0
  59. package/dist/device/motion-sensor.d.ts +8 -0
  60. package/dist/device/motion-sensor.js +8 -0
  61. package/dist/device/panic-button.d.ts +26 -0
  62. package/dist/device/panic-button.js +14 -0
  63. package/dist/device/pbx.d.ts +20 -0
  64. package/dist/device/pbx.js +11 -0
  65. package/dist/device/presence-tracker.d.ts +127 -0
  66. package/dist/device/presence-tracker.js +27 -0
  67. package/dist/device/reader/commands.d.ts +1 -0
  68. package/dist/device/reader/commands.js +2 -0
  69. package/dist/device/reader/events.d.ts +37 -0
  70. package/dist/device/reader/events.js +13 -0
  71. package/dist/device/reader/index.d.ts +3 -0
  72. package/dist/device/reader/index.js +19 -0
  73. package/dist/device/reader/specs.d.ts +2 -0
  74. package/dist/device/reader/specs.js +4 -0
  75. package/dist/device/server.d.ts +73 -0
  76. package/dist/device/server.js +33 -0
  77. package/dist/device-command.d.ts +23 -0
  78. package/dist/device-command.js +110 -0
  79. package/dist/device-event.d.ts +682 -0
  80. package/dist/device-event.js +87 -0
  81. package/dist/device-factory.d.ts +112 -0
  82. package/dist/device-factory.js +25 -0
  83. package/dist/device-group.d.ts +74 -0
  84. package/dist/device-group.js +31 -0
  85. package/dist/device-import.d.ts +1412 -0
  86. package/dist/device-import.js +33 -0
  87. package/dist/device-relation.d.ts +30 -0
  88. package/dist/device-relation.js +68 -0
  89. package/dist/device-state.d.ts +10 -0
  90. package/dist/device-state.js +2 -0
  91. package/dist/error.d.ts +13 -0
  92. package/dist/error.js +10 -0
  93. package/dist/file.d.ts +3 -0
  94. package/dist/file.js +2 -0
  95. package/dist/index.d.ts +28 -0
  96. package/dist/index.js +44 -0
  97. package/dist/layout.d.ts +188 -0
  98. package/dist/layout.js +40 -0
  99. package/dist/macros.d.ts +160 -0
  100. package/dist/macros.js +26 -0
  101. package/dist/messages/device-communication.d.ts +121 -0
  102. package/dist/messages/device-communication.js +63 -0
  103. package/dist/messages/index.d.ts +5 -0
  104. package/dist/messages/index.js +21 -0
  105. package/dist/messages/progress.d.ts +118 -0
  106. package/dist/messages/progress.js +51 -0
  107. package/dist/messages/provider-api/index.d.ts +1 -0
  108. package/dist/messages/provider-api/index.js +17 -0
  109. package/dist/messages/provider-api/sync-protocol.d.ts +83 -0
  110. package/dist/messages/provider-api/sync-protocol.js +2 -0
  111. package/dist/messages/web-rtc-signaling.d.ts +265 -0
  112. package/dist/messages/web-rtc-signaling.js +82 -0
  113. package/dist/messages/web-socket.d.ts +7 -0
  114. package/dist/messages/web-socket.js +5 -0
  115. package/dist/milestone.d.ts +5 -0
  116. package/dist/milestone.js +2 -0
  117. package/dist/module-config.d.ts +27 -0
  118. package/dist/module-config.js +2 -0
  119. package/dist/orchid.d.ts +19 -0
  120. package/dist/orchid.js +2 -0
  121. package/dist/package.json +40 -0
  122. package/dist/permissions.d.ts +6 -0
  123. package/dist/permissions.js +168 -0
  124. package/dist/template.d.ts +50 -0
  125. package/dist/template.js +21 -0
  126. package/dist/user.d.ts +184 -0
  127. package/dist/user.js +56 -0
  128. package/dist/view.d.ts +775 -0
  129. package/dist/view.js +74 -0
  130. package/dist/webrtc-playback.d.ts +20 -0
  131. package/dist/webrtc-playback.js +14 -0
  132. package/package.json +40 -0
@@ -0,0 +1,1692 @@
1
+ import { z } from 'zod';
2
+ export declare const sMessageHeader: z.ZodObject<{
3
+ version: z.ZodNumber;
4
+ id: z.ZodString;
5
+ from: z.ZodString;
6
+ on: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ on: number;
10
+ version: number;
11
+ from: string;
12
+ }, {
13
+ id: string;
14
+ on: number;
15
+ version: number;
16
+ from: string;
17
+ }>;
18
+ export declare const sMessageWithPayload: <T extends z.ZodRawShape>(sPayload: z.ZodObject<T>) => z.ZodIntersection<z.ZodObject<{
19
+ version: z.ZodNumber;
20
+ id: z.ZodString;
21
+ from: z.ZodString;
22
+ on: z.ZodNumber;
23
+ }, "strip", z.ZodTypeAny, {
24
+ id: string;
25
+ on: number;
26
+ version: number;
27
+ from: string;
28
+ }, {
29
+ id: string;
30
+ on: number;
31
+ version: number;
32
+ from: string;
33
+ }>, z.ZodObject<T, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>>;
34
+ export declare const sResponsePayload: <TKind, T extends z.ZodRawShape>(kind: z.ZodLiteral<TKind>, sPayload: z.ZodObject<T>) => z.ZodIntersection<z.ZodObject<{
35
+ requestId: z.ZodString;
36
+ kind: z.ZodLiteral<TKind>;
37
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
38
+ requestId: z.ZodString;
39
+ kind: z.ZodLiteral<TKind>;
40
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
41
+ requestId: z.ZodString;
42
+ kind: z.ZodLiteral<TKind>;
43
+ }>, any>[k]; } : never, z.baseObjectInputType<{
44
+ requestId: z.ZodString;
45
+ kind: z.ZodLiteral<TKind>;
46
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
47
+ requestId: z.ZodString;
48
+ kind: z.ZodLiteral<TKind>;
49
+ }>[k_1]; } : never>, z.ZodObject<T, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_3 ? { [k_2 in keyof T_3]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k_2]; } : never, z.baseObjectInputType<T> extends infer T_4 ? { [k_3 in keyof T_4]: z.baseObjectInputType<T>[k_3]; } : never>>;
50
+ export declare const sErrorPayload: z.ZodIntersection<z.ZodObject<{
51
+ requestId: z.ZodString;
52
+ kind: z.ZodLiteral<"error-rs">;
53
+ }, "strip", z.ZodTypeAny, {
54
+ kind: "error-rs";
55
+ requestId: string;
56
+ }, {
57
+ kind: "error-rs";
58
+ requestId: string;
59
+ }>, z.ZodObject<{
60
+ error: z.ZodString;
61
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
62
+ error: string;
63
+ }, {
64
+ error: string;
65
+ }>>;
66
+ export declare const sUiOrderHint: z.ZodObject<{
67
+ kind: z.ZodLiteral<"order">;
68
+ path: z.ZodString;
69
+ fields: z.ZodArray<z.ZodString, "many">;
70
+ }, "strip", z.ZodTypeAny, {
71
+ path: string;
72
+ kind: "order";
73
+ fields: string[];
74
+ }, {
75
+ path: string;
76
+ kind: "order";
77
+ fields: string[];
78
+ }>;
79
+ export declare const sUiWidgetHint: z.ZodObject<{
80
+ kind: z.ZodLiteral<"widget">;
81
+ path: z.ZodString;
82
+ spanColumns: z.ZodOptional<z.ZodNumber>;
83
+ password: z.ZodOptional<z.ZodBoolean>;
84
+ placeHolder: z.ZodOptional<z.ZodString>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ path: string;
87
+ kind: "widget";
88
+ password?: boolean | undefined;
89
+ spanColumns?: number | undefined;
90
+ placeHolder?: string | undefined;
91
+ }, {
92
+ path: string;
93
+ kind: "widget";
94
+ password?: boolean | undefined;
95
+ spanColumns?: number | undefined;
96
+ placeHolder?: string | undefined;
97
+ }>;
98
+ export declare const sUiHint: z.ZodUnion<[z.ZodObject<{
99
+ kind: z.ZodLiteral<"order">;
100
+ path: z.ZodString;
101
+ fields: z.ZodArray<z.ZodString, "many">;
102
+ }, "strip", z.ZodTypeAny, {
103
+ path: string;
104
+ kind: "order";
105
+ fields: string[];
106
+ }, {
107
+ path: string;
108
+ kind: "order";
109
+ fields: string[];
110
+ }>, z.ZodObject<{
111
+ kind: z.ZodLiteral<"widget">;
112
+ path: z.ZodString;
113
+ spanColumns: z.ZodOptional<z.ZodNumber>;
114
+ password: z.ZodOptional<z.ZodBoolean>;
115
+ placeHolder: z.ZodOptional<z.ZodString>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ path: string;
118
+ kind: "widget";
119
+ password?: boolean | undefined;
120
+ spanColumns?: number | undefined;
121
+ placeHolder?: string | undefined;
122
+ }, {
123
+ path: string;
124
+ kind: "widget";
125
+ password?: boolean | undefined;
126
+ spanColumns?: number | undefined;
127
+ placeHolder?: string | undefined;
128
+ }>]>;
129
+ export declare const sProviderSpecs: z.ZodObject<{
130
+ title: z.ZodString;
131
+ configSchema: z.ZodUnknown;
132
+ configDefault: z.ZodRecord<z.ZodString, z.ZodUnknown>;
133
+ configFormUiHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
134
+ kind: z.ZodLiteral<"order">;
135
+ path: z.ZodString;
136
+ fields: z.ZodArray<z.ZodString, "many">;
137
+ }, "strip", z.ZodTypeAny, {
138
+ path: string;
139
+ kind: "order";
140
+ fields: string[];
141
+ }, {
142
+ path: string;
143
+ kind: "order";
144
+ fields: string[];
145
+ }>, z.ZodObject<{
146
+ kind: z.ZodLiteral<"widget">;
147
+ path: z.ZodString;
148
+ spanColumns: z.ZodOptional<z.ZodNumber>;
149
+ password: z.ZodOptional<z.ZodBoolean>;
150
+ placeHolder: z.ZodOptional<z.ZodString>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ path: string;
153
+ kind: "widget";
154
+ password?: boolean | undefined;
155
+ spanColumns?: number | undefined;
156
+ placeHolder?: string | undefined;
157
+ }, {
158
+ path: string;
159
+ kind: "widget";
160
+ password?: boolean | undefined;
161
+ spanColumns?: number | undefined;
162
+ placeHolder?: string | undefined;
163
+ }>]>, "many">>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ title: string;
166
+ configDefault: Record<string, unknown>;
167
+ configSchema?: unknown;
168
+ configFormUiHints?: ({
169
+ path: string;
170
+ kind: "order";
171
+ fields: string[];
172
+ } | {
173
+ path: string;
174
+ kind: "widget";
175
+ password?: boolean | undefined;
176
+ spanColumns?: number | undefined;
177
+ placeHolder?: string | undefined;
178
+ })[] | undefined;
179
+ }, {
180
+ title: string;
181
+ configDefault: Record<string, unknown>;
182
+ configSchema?: unknown;
183
+ configFormUiHints?: ({
184
+ path: string;
185
+ kind: "order";
186
+ fields: string[];
187
+ } | {
188
+ path: string;
189
+ kind: "widget";
190
+ password?: boolean | undefined;
191
+ spanColumns?: number | undefined;
192
+ placeHolder?: string | undefined;
193
+ })[] | undefined;
194
+ }>;
195
+ export declare const sRegisterRq: z.ZodObject<{
196
+ kind: z.ZodLiteral<"register">;
197
+ providers: z.ZodRecord<z.ZodString, z.ZodObject<{
198
+ title: z.ZodString;
199
+ configSchema: z.ZodUnknown;
200
+ configDefault: z.ZodRecord<z.ZodString, z.ZodUnknown>;
201
+ configFormUiHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
202
+ kind: z.ZodLiteral<"order">;
203
+ path: z.ZodString;
204
+ fields: z.ZodArray<z.ZodString, "many">;
205
+ }, "strip", z.ZodTypeAny, {
206
+ path: string;
207
+ kind: "order";
208
+ fields: string[];
209
+ }, {
210
+ path: string;
211
+ kind: "order";
212
+ fields: string[];
213
+ }>, z.ZodObject<{
214
+ kind: z.ZodLiteral<"widget">;
215
+ path: z.ZodString;
216
+ spanColumns: z.ZodOptional<z.ZodNumber>;
217
+ password: z.ZodOptional<z.ZodBoolean>;
218
+ placeHolder: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ path: string;
221
+ kind: "widget";
222
+ password?: boolean | undefined;
223
+ spanColumns?: number | undefined;
224
+ placeHolder?: string | undefined;
225
+ }, {
226
+ path: string;
227
+ kind: "widget";
228
+ password?: boolean | undefined;
229
+ spanColumns?: number | undefined;
230
+ placeHolder?: string | undefined;
231
+ }>]>, "many">>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ title: string;
234
+ configDefault: Record<string, unknown>;
235
+ configSchema?: unknown;
236
+ configFormUiHints?: ({
237
+ path: string;
238
+ kind: "order";
239
+ fields: string[];
240
+ } | {
241
+ path: string;
242
+ kind: "widget";
243
+ password?: boolean | undefined;
244
+ spanColumns?: number | undefined;
245
+ placeHolder?: string | undefined;
246
+ })[] | undefined;
247
+ }, {
248
+ title: string;
249
+ configDefault: Record<string, unknown>;
250
+ configSchema?: unknown;
251
+ configFormUiHints?: ({
252
+ path: string;
253
+ kind: "order";
254
+ fields: string[];
255
+ } | {
256
+ path: string;
257
+ kind: "widget";
258
+ password?: boolean | undefined;
259
+ spanColumns?: number | undefined;
260
+ placeHolder?: string | undefined;
261
+ })[] | undefined;
262
+ }>>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ kind: "register";
265
+ providers: Record<string, {
266
+ title: string;
267
+ configDefault: Record<string, unknown>;
268
+ configSchema?: unknown;
269
+ configFormUiHints?: ({
270
+ path: string;
271
+ kind: "order";
272
+ fields: string[];
273
+ } | {
274
+ path: string;
275
+ kind: "widget";
276
+ password?: boolean | undefined;
277
+ spanColumns?: number | undefined;
278
+ placeHolder?: string | undefined;
279
+ })[] | undefined;
280
+ }>;
281
+ }, {
282
+ kind: "register";
283
+ providers: Record<string, {
284
+ title: string;
285
+ configDefault: Record<string, unknown>;
286
+ configSchema?: unknown;
287
+ configFormUiHints?: ({
288
+ path: string;
289
+ kind: "order";
290
+ fields: string[];
291
+ } | {
292
+ path: string;
293
+ kind: "widget";
294
+ password?: boolean | undefined;
295
+ spanColumns?: number | undefined;
296
+ placeHolder?: string | undefined;
297
+ })[] | undefined;
298
+ }>;
299
+ }>;
300
+ export declare const sRegisterRs: z.ZodIntersection<z.ZodObject<{
301
+ requestId: z.ZodString;
302
+ kind: z.ZodLiteral<"register-rs">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ kind: "register-rs";
305
+ requestId: string;
306
+ }, {
307
+ kind: "register-rs";
308
+ requestId: string;
309
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
310
+ export declare const sUnregister: z.ZodObject<{
311
+ kind: z.ZodLiteral<"unregister">;
312
+ provider: z.ZodString;
313
+ }, "strip", z.ZodTypeAny, {
314
+ kind: "unregister";
315
+ provider: string;
316
+ }, {
317
+ kind: "unregister";
318
+ provider: string;
319
+ }>;
320
+ export declare const sValidateProviderConfigRq: z.ZodObject<{
321
+ kind: z.ZodLiteral<"validate-config">;
322
+ provider: z.ZodString;
323
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ kind: "validate-config";
326
+ provider: string;
327
+ config: Record<string, unknown>;
328
+ }, {
329
+ kind: "validate-config";
330
+ provider: string;
331
+ config: Record<string, unknown>;
332
+ }>;
333
+ export declare const sConfigurationIssue: z.ZodObject<{
334
+ paths: z.ZodArray<z.ZodString, "many">;
335
+ message: z.ZodString;
336
+ }, "strip", z.ZodTypeAny, {
337
+ message: string;
338
+ paths: string[];
339
+ }, {
340
+ message: string;
341
+ paths: string[];
342
+ }>;
343
+ export declare const sValidateProviderConfigRs: z.ZodIntersection<z.ZodObject<{
344
+ requestId: z.ZodString;
345
+ kind: z.ZodLiteral<"validate-config-rs">;
346
+ }, "strip", z.ZodTypeAny, {
347
+ kind: "validate-config-rs";
348
+ requestId: string;
349
+ }, {
350
+ kind: "validate-config-rs";
351
+ requestId: string;
352
+ }>, z.ZodObject<{
353
+ issues: z.ZodArray<z.ZodObject<{
354
+ paths: z.ZodArray<z.ZodString, "many">;
355
+ message: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ message: string;
358
+ paths: string[];
359
+ }, {
360
+ message: string;
361
+ paths: string[];
362
+ }>, "many">;
363
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
364
+ issues: {
365
+ message: string;
366
+ paths: string[];
367
+ }[];
368
+ }, {
369
+ issues: {
370
+ message: string;
371
+ paths: string[];
372
+ }[];
373
+ }>>;
374
+ export declare const sStartServiceRq: z.ZodObject<{
375
+ kind: z.ZodLiteral<"start">;
376
+ provider: z.ZodString;
377
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
378
+ lastEventForeignRef: z.ZodNullable<z.ZodString>;
379
+ lastEventTimestamp: z.ZodNullable<z.ZodNumber>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ kind: "start";
382
+ provider: string;
383
+ config: Record<string, unknown>;
384
+ lastEventForeignRef: string | null;
385
+ lastEventTimestamp: number | null;
386
+ }, {
387
+ kind: "start";
388
+ provider: string;
389
+ config: Record<string, unknown>;
390
+ lastEventForeignRef: string | null;
391
+ lastEventTimestamp: number | null;
392
+ }>;
393
+ export declare const sStartServiceRs: z.ZodIntersection<z.ZodObject<{
394
+ requestId: z.ZodString;
395
+ kind: z.ZodLiteral<"start-rs">;
396
+ }, "strip", z.ZodTypeAny, {
397
+ kind: "start-rs";
398
+ requestId: string;
399
+ }, {
400
+ kind: "start-rs";
401
+ requestId: string;
402
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
403
+ export declare const sStopServiceRq: z.ZodObject<{
404
+ kind: z.ZodLiteral<"stop">;
405
+ provider: z.ZodString;
406
+ }, "strip", z.ZodTypeAny, {
407
+ kind: "stop";
408
+ provider: string;
409
+ }, {
410
+ kind: "stop";
411
+ provider: string;
412
+ }>;
413
+ export declare const sStopServiceRs: z.ZodIntersection<z.ZodObject<{
414
+ requestId: z.ZodString;
415
+ kind: z.ZodLiteral<"stop-rs">;
416
+ }, "strip", z.ZodTypeAny, {
417
+ kind: "stop-rs";
418
+ requestId: string;
419
+ }, {
420
+ kind: "stop-rs";
421
+ requestId: string;
422
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
423
+ export declare const sRunCommandRq: z.ZodObject<{
424
+ kind: z.ZodLiteral<"command">;
425
+ device: z.ZodObject<{
426
+ name: z.ZodString;
427
+ foreignRef: z.ZodString;
428
+ provider: z.ZodString;
429
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ name: string;
432
+ foreignRef: string;
433
+ provider: string;
434
+ providerMetadata: {} & {
435
+ [k: string]: unknown;
436
+ };
437
+ }, {
438
+ name: string;
439
+ foreignRef: string;
440
+ provider: string;
441
+ providerMetadata: {} & {
442
+ [k: string]: unknown;
443
+ };
444
+ }>;
445
+ command: z.ZodString;
446
+ batchId: z.ZodOptional<z.ZodString>;
447
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ command: string;
450
+ kind: "command";
451
+ device: {
452
+ name: string;
453
+ foreignRef: string;
454
+ provider: string;
455
+ providerMetadata: {} & {
456
+ [k: string]: unknown;
457
+ };
458
+ };
459
+ params?: Record<string, unknown> | undefined;
460
+ batchId?: string | undefined;
461
+ }, {
462
+ command: string;
463
+ kind: "command";
464
+ device: {
465
+ name: string;
466
+ foreignRef: string;
467
+ provider: string;
468
+ providerMetadata: {} & {
469
+ [k: string]: unknown;
470
+ };
471
+ };
472
+ params?: Record<string, unknown> | undefined;
473
+ batchId?: string | undefined;
474
+ }>;
475
+ export declare const sRunCommandRs: z.ZodIntersection<z.ZodObject<{
476
+ requestId: z.ZodString;
477
+ kind: z.ZodLiteral<"command-rs">;
478
+ }, "strip", z.ZodTypeAny, {
479
+ kind: "command-rs";
480
+ requestId: string;
481
+ }, {
482
+ kind: "command-rs";
483
+ requestId: string;
484
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
485
+ export declare const sPushStateUpdateRq: z.ZodObject<{
486
+ kind: z.ZodLiteral<"state">;
487
+ foreignRef: z.ZodString;
488
+ provider: z.ZodString;
489
+ mergeProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
490
+ removeProps: z.ZodArray<z.ZodString, "many">;
491
+ }, "strip", z.ZodTypeAny, {
492
+ kind: "state";
493
+ foreignRef: string;
494
+ provider: string;
495
+ mergeProps: Record<string, unknown>;
496
+ removeProps: string[];
497
+ }, {
498
+ kind: "state";
499
+ foreignRef: string;
500
+ provider: string;
501
+ mergeProps: Record<string, unknown>;
502
+ removeProps: string[];
503
+ }>;
504
+ export declare const sPushStateUpdateRs: z.ZodIntersection<z.ZodObject<{
505
+ requestId: z.ZodString;
506
+ kind: z.ZodLiteral<"state-rs">;
507
+ }, "strip", z.ZodTypeAny, {
508
+ kind: "state-rs";
509
+ requestId: string;
510
+ }, {
511
+ kind: "state-rs";
512
+ requestId: string;
513
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
514
+ export declare const sPushEventRq: z.ZodObject<{
515
+ kind: z.ZodLiteral<"event">;
516
+ foreignRef: z.ZodString;
517
+ provider: z.ZodString;
518
+ eventTimestamp: z.ZodNumber;
519
+ eventForeignRef: z.ZodString;
520
+ event: z.ZodUnknown;
521
+ }, "strip", z.ZodTypeAny, {
522
+ kind: "event";
523
+ foreignRef: string;
524
+ provider: string;
525
+ eventTimestamp: number;
526
+ eventForeignRef: string;
527
+ event?: unknown;
528
+ }, {
529
+ kind: "event";
530
+ foreignRef: string;
531
+ provider: string;
532
+ eventTimestamp: number;
533
+ eventForeignRef: string;
534
+ event?: unknown;
535
+ }>;
536
+ export declare const sPushEventRs: z.ZodIntersection<z.ZodObject<{
537
+ requestId: z.ZodString;
538
+ kind: z.ZodLiteral<"event-rs">;
539
+ }, "strip", z.ZodTypeAny, {
540
+ kind: "event-rs";
541
+ requestId: string;
542
+ }, {
543
+ kind: "event-rs";
544
+ requestId: string;
545
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
546
+ export declare const sGetAvailableDevicesRq: z.ZodObject<{
547
+ kind: z.ZodLiteral<"get-available-devices">;
548
+ provider: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ kind: "get-available-devices";
551
+ provider: string;
552
+ }, {
553
+ kind: "get-available-devices";
554
+ provider: string;
555
+ }>;
556
+ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
557
+ requestId: z.ZodString;
558
+ kind: z.ZodLiteral<"get-available-devices-rs">;
559
+ }, "strip", z.ZodTypeAny, {
560
+ kind: "get-available-devices-rs";
561
+ requestId: string;
562
+ }, {
563
+ kind: "get-available-devices-rs";
564
+ requestId: string;
565
+ }>, z.ZodObject<{
566
+ devices: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
567
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ tags?: string[] | undefined;
570
+ }, {
571
+ tags?: string[] | undefined;
572
+ }>, z.ZodObject<{
573
+ name: z.ZodString;
574
+ foreignRef: z.ZodString;
575
+ provider: z.ZodString;
576
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ name: string;
579
+ foreignRef: string;
580
+ provider: string;
581
+ providerMetadata: {} & {
582
+ [k: string]: unknown;
583
+ };
584
+ }, {
585
+ name: string;
586
+ foreignRef: string;
587
+ provider: string;
588
+ providerMetadata: {} & {
589
+ [k: string]: unknown;
590
+ };
591
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
592
+ type: z.ZodLiteral<"alarm">;
593
+ }, "strip", z.ZodTypeAny, {
594
+ type: "alarm";
595
+ }, {
596
+ type: "alarm";
597
+ }>, z.ZodObject<{
598
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
599
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
600
+ ptzCapable: z.ZodBoolean;
601
+ ptzPanSpeed: z.ZodNumber;
602
+ ptzTiltSpeed: z.ZodNumber;
603
+ ptzZoomSpeed: z.ZodNumber;
604
+ recordingCapable: z.ZodBoolean;
605
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
606
+ kind: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ kind: string;
609
+ }, {
610
+ kind: string;
611
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
612
+ streams: z.ZodArray<z.ZodObject<{
613
+ id: z.ZodString;
614
+ displayName: z.ZodString;
615
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ id: string;
618
+ displayName: string;
619
+ externalPlayerUrl: string | null;
620
+ }, {
621
+ id: string;
622
+ displayName: string;
623
+ externalPlayerUrl: string | null;
624
+ }>, "many">;
625
+ defaultStreamId: z.ZodString;
626
+ } & {
627
+ type: z.ZodLiteral<"camera">;
628
+ }, "strip", z.ZodTypeAny, {
629
+ type: "camera";
630
+ streams: {
631
+ id: string;
632
+ displayName: string;
633
+ externalPlayerUrl: string | null;
634
+ }[];
635
+ lensType: "flat" | "fisheye";
636
+ mountPoint: "wall" | "ceiling" | "floor";
637
+ ptzCapable: boolean;
638
+ ptzPanSpeed: number;
639
+ ptzTiltSpeed: number;
640
+ ptzZoomSpeed: number;
641
+ recordingCapable: boolean;
642
+ webrtcPlaybackSource: ({
643
+ kind: string;
644
+ } & Record<string, unknown>) | null;
645
+ defaultStreamId: string;
646
+ }, {
647
+ type: "camera";
648
+ streams: {
649
+ id: string;
650
+ displayName: string;
651
+ externalPlayerUrl: string | null;
652
+ }[];
653
+ lensType: "flat" | "fisheye";
654
+ mountPoint: "wall" | "ceiling" | "floor";
655
+ ptzCapable: boolean;
656
+ ptzPanSpeed: number;
657
+ ptzTiltSpeed: number;
658
+ ptzZoomSpeed: number;
659
+ recordingCapable: boolean;
660
+ webrtcPlaybackSource: ({
661
+ kind: string;
662
+ } & Record<string, unknown>) | null;
663
+ defaultStreamId: string;
664
+ }>, z.ZodObject<{
665
+ type: z.ZodLiteral<"door">;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "door";
668
+ }, {
669
+ type: "door";
670
+ }>, z.ZodObject<{
671
+ inputs: z.ZodArray<z.ZodString, "many">;
672
+ outputs: z.ZodArray<z.ZodString, "many">;
673
+ } & {
674
+ type: z.ZodLiteral<"io-board">;
675
+ }, "strip", z.ZodTypeAny, {
676
+ type: "io-board";
677
+ inputs: string[];
678
+ outputs: string[];
679
+ }, {
680
+ type: "io-board";
681
+ inputs: string[];
682
+ outputs: string[];
683
+ }>, z.ZodObject<{
684
+ type: z.ZodLiteral<"camera-lift">;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "camera-lift";
687
+ }, {
688
+ type: "camera-lift";
689
+ }>, z.ZodObject<{
690
+ type: z.ZodLiteral<"motion-sensor">;
691
+ }, "strip", z.ZodTypeAny, {
692
+ type: "motion-sensor";
693
+ }, {
694
+ type: "motion-sensor";
695
+ }>, z.ZodObject<{
696
+ type: z.ZodLiteral<"panic-button">;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: "panic-button";
699
+ }, {
700
+ type: "panic-button";
701
+ }>, z.ZodObject<{
702
+ sipUri: z.ZodString;
703
+ sipUser: z.ZodString;
704
+ sipPassword: z.ZodString;
705
+ sipRealm: z.ZodString;
706
+ remoteExtension: z.ZodString;
707
+ } & {
708
+ type: z.ZodLiteral<"intercom-terminal">;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "intercom-terminal";
711
+ sipUri: string;
712
+ sipUser: string;
713
+ sipPassword: string;
714
+ sipRealm: string;
715
+ remoteExtension: string;
716
+ }, {
717
+ type: "intercom-terminal";
718
+ sipUri: string;
719
+ sipUser: string;
720
+ sipPassword: string;
721
+ sipRealm: string;
722
+ remoteExtension: string;
723
+ }>, z.ZodObject<{
724
+ sipWsUrl: z.ZodString;
725
+ } & {
726
+ type: z.ZodLiteral<"pbx">;
727
+ }, "strip", z.ZodTypeAny, {
728
+ type: "pbx";
729
+ sipWsUrl: string;
730
+ }, {
731
+ type: "pbx";
732
+ sipWsUrl: string;
733
+ }>, z.ZodObject<{
734
+ type: z.ZodLiteral<"server">;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: "server";
737
+ }, {
738
+ type: "server";
739
+ }>, z.ZodObject<{
740
+ type: z.ZodLiteral<"intercom-operator">;
741
+ }, "strip", z.ZodTypeAny, {
742
+ type: "intercom-operator";
743
+ }, {
744
+ type: "intercom-operator";
745
+ }>, z.ZodObject<{
746
+ type: z.ZodLiteral<"device-gateway">;
747
+ }, "strip", z.ZodTypeAny, {
748
+ type: "device-gateway";
749
+ }, {
750
+ type: "device-gateway";
751
+ }>, z.ZodObject<{
752
+ type: z.ZodLiteral<"presence-tracker">;
753
+ }, "strip", z.ZodTypeAny, {
754
+ type: "presence-tracker";
755
+ }, {
756
+ type: "presence-tracker";
757
+ }>, z.ZodObject<{
758
+ type: z.ZodLiteral<"reader">;
759
+ }, "strip", z.ZodTypeAny, {
760
+ type: "reader";
761
+ }, {
762
+ type: "reader";
763
+ }>]>>, "many">;
764
+ relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
765
+ leftId: z.ZodString;
766
+ rightId: z.ZodString;
767
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
768
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
769
+ leftId: z.ZodString;
770
+ rightId: z.ZodString;
771
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
772
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
773
+ leftId: z.ZodString;
774
+ rightId: z.ZodString;
775
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
776
+ }, z.ZodUnknown, "strip">>, z.ZodObject<{
777
+ provider: z.ZodString;
778
+ }, "strip", z.ZodTypeAny, {
779
+ provider: string;
780
+ }, {
781
+ provider: string;
782
+ }>>, "many">;
783
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
784
+ devices: ({
785
+ tags?: string[] | undefined;
786
+ } & {
787
+ name: string;
788
+ foreignRef: string;
789
+ provider: string;
790
+ providerMetadata: {} & {
791
+ [k: string]: unknown;
792
+ };
793
+ } & ({
794
+ type: "alarm";
795
+ } | {
796
+ type: "camera";
797
+ streams: {
798
+ id: string;
799
+ displayName: string;
800
+ externalPlayerUrl: string | null;
801
+ }[];
802
+ lensType: "flat" | "fisheye";
803
+ mountPoint: "wall" | "ceiling" | "floor";
804
+ ptzCapable: boolean;
805
+ ptzPanSpeed: number;
806
+ ptzTiltSpeed: number;
807
+ ptzZoomSpeed: number;
808
+ recordingCapable: boolean;
809
+ webrtcPlaybackSource: ({
810
+ kind: string;
811
+ } & Record<string, unknown>) | null;
812
+ defaultStreamId: string;
813
+ } | {
814
+ type: "door";
815
+ } | {
816
+ type: "io-board";
817
+ inputs: string[];
818
+ outputs: string[];
819
+ } | {
820
+ type: "camera-lift";
821
+ } | {
822
+ type: "motion-sensor";
823
+ } | {
824
+ type: "panic-button";
825
+ } | {
826
+ type: "intercom-terminal";
827
+ sipUri: string;
828
+ sipUser: string;
829
+ sipPassword: string;
830
+ sipRealm: string;
831
+ remoteExtension: string;
832
+ } | {
833
+ type: "pbx";
834
+ sipWsUrl: string;
835
+ } | {
836
+ type: "server";
837
+ } | {
838
+ type: "intercom-operator";
839
+ } | {
840
+ type: "device-gateway";
841
+ } | {
842
+ type: "presence-tracker";
843
+ } | {
844
+ type: "reader";
845
+ }))[];
846
+ relations: ({
847
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
848
+ leftId: string;
849
+ rightId: string;
850
+ } & {
851
+ [k: string]: unknown;
852
+ } & {
853
+ provider: string;
854
+ })[];
855
+ }, {
856
+ devices: ({
857
+ tags?: string[] | undefined;
858
+ } & {
859
+ name: string;
860
+ foreignRef: string;
861
+ provider: string;
862
+ providerMetadata: {} & {
863
+ [k: string]: unknown;
864
+ };
865
+ } & ({
866
+ type: "alarm";
867
+ } | {
868
+ type: "camera";
869
+ streams: {
870
+ id: string;
871
+ displayName: string;
872
+ externalPlayerUrl: string | null;
873
+ }[];
874
+ lensType: "flat" | "fisheye";
875
+ mountPoint: "wall" | "ceiling" | "floor";
876
+ ptzCapable: boolean;
877
+ ptzPanSpeed: number;
878
+ ptzTiltSpeed: number;
879
+ ptzZoomSpeed: number;
880
+ recordingCapable: boolean;
881
+ webrtcPlaybackSource: ({
882
+ kind: string;
883
+ } & Record<string, unknown>) | null;
884
+ defaultStreamId: string;
885
+ } | {
886
+ type: "door";
887
+ } | {
888
+ type: "io-board";
889
+ inputs: string[];
890
+ outputs: string[];
891
+ } | {
892
+ type: "camera-lift";
893
+ } | {
894
+ type: "motion-sensor";
895
+ } | {
896
+ type: "panic-button";
897
+ } | {
898
+ type: "intercom-terminal";
899
+ sipUri: string;
900
+ sipUser: string;
901
+ sipPassword: string;
902
+ sipRealm: string;
903
+ remoteExtension: string;
904
+ } | {
905
+ type: "pbx";
906
+ sipWsUrl: string;
907
+ } | {
908
+ type: "server";
909
+ } | {
910
+ type: "intercom-operator";
911
+ } | {
912
+ type: "device-gateway";
913
+ } | {
914
+ type: "presence-tracker";
915
+ } | {
916
+ type: "reader";
917
+ }))[];
918
+ relations: ({
919
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
920
+ leftId: string;
921
+ rightId: string;
922
+ } & {
923
+ [k: string]: unknown;
924
+ } & {
925
+ provider: string;
926
+ })[];
927
+ }>>;
928
+ export declare const sAccessObjectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
929
+ export declare const sTokenSpecs: z.ZodObject<{
930
+ type: z.ZodEnum<["card", "pin", "finger-print", "face"]>;
931
+ regex: z.ZodOptional<z.ZodString>;
932
+ formatDescription: z.ZodOptional<z.ZodString>;
933
+ maxPerPerson: z.ZodOptional<z.ZodNumber>;
934
+ }, "strip", z.ZodTypeAny, {
935
+ type: "card" | "pin" | "finger-print" | "face";
936
+ regex?: string | undefined;
937
+ formatDescription?: string | undefined;
938
+ maxPerPerson?: number | undefined;
939
+ }, {
940
+ type: "card" | "pin" | "finger-print" | "face";
941
+ regex?: string | undefined;
942
+ formatDescription?: string | undefined;
943
+ maxPerPerson?: number | undefined;
944
+ }>;
945
+ export declare const sCapabilityReport: z.ZodObject<{
946
+ tokens: z.ZodArray<z.ZodObject<{
947
+ type: z.ZodEnum<["card", "pin", "finger-print", "face"]>;
948
+ regex: z.ZodOptional<z.ZodString>;
949
+ formatDescription: z.ZodOptional<z.ZodString>;
950
+ maxPerPerson: z.ZodOptional<z.ZodNumber>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ type: "card" | "pin" | "finger-print" | "face";
953
+ regex?: string | undefined;
954
+ formatDescription?: string | undefined;
955
+ maxPerPerson?: number | undefined;
956
+ }, {
957
+ type: "card" | "pin" | "finger-print" | "face";
958
+ regex?: string | undefined;
959
+ formatDescription?: string | undefined;
960
+ maxPerPerson?: number | undefined;
961
+ }>, "many">;
962
+ accessbjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ tokens: {
965
+ type: "card" | "pin" | "finger-print" | "face";
966
+ regex?: string | undefined;
967
+ formatDescription?: string | undefined;
968
+ maxPerPerson?: number | undefined;
969
+ }[];
970
+ accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
971
+ }, {
972
+ tokens: {
973
+ type: "card" | "pin" | "finger-print" | "face";
974
+ regex?: string | undefined;
975
+ formatDescription?: string | undefined;
976
+ maxPerPerson?: number | undefined;
977
+ }[];
978
+ accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
979
+ }>;
980
+ export declare const sRegisterAccessControlAgentRq: z.ZodIntersection<z.ZodObject<{
981
+ kind: z.ZodLiteral<"register-access-control-agent">;
982
+ provider: z.ZodString;
983
+ }, "strip", z.ZodTypeAny, {
984
+ kind: "register-access-control-agent";
985
+ provider: string;
986
+ }, {
987
+ kind: "register-access-control-agent";
988
+ provider: string;
989
+ }>, z.ZodObject<{
990
+ tokens: z.ZodArray<z.ZodObject<{
991
+ type: z.ZodEnum<["card", "pin", "finger-print", "face"]>;
992
+ regex: z.ZodOptional<z.ZodString>;
993
+ formatDescription: z.ZodOptional<z.ZodString>;
994
+ maxPerPerson: z.ZodOptional<z.ZodNumber>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ type: "card" | "pin" | "finger-print" | "face";
997
+ regex?: string | undefined;
998
+ formatDescription?: string | undefined;
999
+ maxPerPerson?: number | undefined;
1000
+ }, {
1001
+ type: "card" | "pin" | "finger-print" | "face";
1002
+ regex?: string | undefined;
1003
+ formatDescription?: string | undefined;
1004
+ maxPerPerson?: number | undefined;
1005
+ }>, "many">;
1006
+ accessbjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ tokens: {
1009
+ type: "card" | "pin" | "finger-print" | "face";
1010
+ regex?: string | undefined;
1011
+ formatDescription?: string | undefined;
1012
+ maxPerPerson?: number | undefined;
1013
+ }[];
1014
+ accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
1015
+ }, {
1016
+ tokens: {
1017
+ type: "card" | "pin" | "finger-print" | "face";
1018
+ regex?: string | undefined;
1019
+ formatDescription?: string | undefined;
1020
+ maxPerPerson?: number | undefined;
1021
+ }[];
1022
+ accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
1023
+ }>>;
1024
+ export declare const sRegisterAccessControlAgentRs: z.ZodIntersection<z.ZodObject<{
1025
+ requestId: z.ZodString;
1026
+ kind: z.ZodLiteral<"register-access-control-agent-rs">;
1027
+ }, "strip", z.ZodTypeAny, {
1028
+ kind: "register-access-control-agent-rs";
1029
+ requestId: string;
1030
+ }, {
1031
+ kind: "register-access-control-agent-rs";
1032
+ requestId: string;
1033
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
1034
+ export declare const sObjectMerge: z.ZodObject<{
1035
+ kind: z.ZodLiteral<"merge">;
1036
+ objectId: z.ZodOptional<z.ZodString>;
1037
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1038
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1039
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ kind: "merge";
1042
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1043
+ objectForeignRefs: string[];
1044
+ props: Record<string, unknown>;
1045
+ objectId?: string | undefined;
1046
+ }, {
1047
+ kind: "merge";
1048
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1049
+ objectForeignRefs: string[];
1050
+ props: Record<string, unknown>;
1051
+ objectId?: string | undefined;
1052
+ }>;
1053
+ export declare const sObjectDelete: z.ZodObject<{
1054
+ kind: z.ZodLiteral<"delete">;
1055
+ objectId: z.ZodOptional<z.ZodString>;
1056
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1057
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ kind: "delete";
1060
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1061
+ objectForeignRefs: string[];
1062
+ objectId?: string | undefined;
1063
+ }, {
1064
+ kind: "delete";
1065
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1066
+ objectForeignRefs: string[];
1067
+ objectId?: string | undefined;
1068
+ }>;
1069
+ export declare const sRelationMerge: z.ZodObject<{
1070
+ kind: z.ZodLiteral<"relation-merge">;
1071
+ left: z.ZodObject<{
1072
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1073
+ objectId: z.ZodOptional<z.ZodString>;
1074
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1077
+ objectForeignRefs: string[];
1078
+ objectId?: string | undefined;
1079
+ }, {
1080
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1081
+ objectForeignRefs: string[];
1082
+ objectId?: string | undefined;
1083
+ }>;
1084
+ right: z.ZodObject<{
1085
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1086
+ objectId: z.ZodOptional<z.ZodString>;
1087
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1090
+ objectForeignRefs: string[];
1091
+ objectId?: string | undefined;
1092
+ }, {
1093
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1094
+ objectForeignRefs: string[];
1095
+ objectId?: string | undefined;
1096
+ }>;
1097
+ linkExists: z.ZodBoolean;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ left: {
1100
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1101
+ objectForeignRefs: string[];
1102
+ objectId?: string | undefined;
1103
+ };
1104
+ right: {
1105
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1106
+ objectForeignRefs: string[];
1107
+ objectId?: string | undefined;
1108
+ };
1109
+ kind: "relation-merge";
1110
+ linkExists: boolean;
1111
+ }, {
1112
+ left: {
1113
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1114
+ objectForeignRefs: string[];
1115
+ objectId?: string | undefined;
1116
+ };
1117
+ right: {
1118
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1119
+ objectForeignRefs: string[];
1120
+ objectId?: string | undefined;
1121
+ };
1122
+ kind: "relation-merge";
1123
+ linkExists: boolean;
1124
+ }>;
1125
+ export declare const sAccessMutation: z.ZodUnion<[z.ZodObject<{
1126
+ kind: z.ZodLiteral<"merge">;
1127
+ objectId: z.ZodOptional<z.ZodString>;
1128
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1129
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1130
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ kind: "merge";
1133
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1134
+ objectForeignRefs: string[];
1135
+ props: Record<string, unknown>;
1136
+ objectId?: string | undefined;
1137
+ }, {
1138
+ kind: "merge";
1139
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1140
+ objectForeignRefs: string[];
1141
+ props: Record<string, unknown>;
1142
+ objectId?: string | undefined;
1143
+ }>, z.ZodObject<{
1144
+ kind: z.ZodLiteral<"delete">;
1145
+ objectId: z.ZodOptional<z.ZodString>;
1146
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1147
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ kind: "delete";
1150
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1151
+ objectForeignRefs: string[];
1152
+ objectId?: string | undefined;
1153
+ }, {
1154
+ kind: "delete";
1155
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1156
+ objectForeignRefs: string[];
1157
+ objectId?: string | undefined;
1158
+ }>, z.ZodObject<{
1159
+ kind: z.ZodLiteral<"relation-merge">;
1160
+ left: z.ZodObject<{
1161
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1162
+ objectId: z.ZodOptional<z.ZodString>;
1163
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1166
+ objectForeignRefs: string[];
1167
+ objectId?: string | undefined;
1168
+ }, {
1169
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1170
+ objectForeignRefs: string[];
1171
+ objectId?: string | undefined;
1172
+ }>;
1173
+ right: z.ZodObject<{
1174
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1175
+ objectId: z.ZodOptional<z.ZodString>;
1176
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1179
+ objectForeignRefs: string[];
1180
+ objectId?: string | undefined;
1181
+ }, {
1182
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1183
+ objectForeignRefs: string[];
1184
+ objectId?: string | undefined;
1185
+ }>;
1186
+ linkExists: z.ZodBoolean;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ left: {
1189
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1190
+ objectForeignRefs: string[];
1191
+ objectId?: string | undefined;
1192
+ };
1193
+ right: {
1194
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1195
+ objectForeignRefs: string[];
1196
+ objectId?: string | undefined;
1197
+ };
1198
+ kind: "relation-merge";
1199
+ linkExists: boolean;
1200
+ }, {
1201
+ left: {
1202
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1203
+ objectForeignRefs: string[];
1204
+ objectId?: string | undefined;
1205
+ };
1206
+ right: {
1207
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1208
+ objectForeignRefs: string[];
1209
+ objectId?: string | undefined;
1210
+ };
1211
+ kind: "relation-merge";
1212
+ linkExists: boolean;
1213
+ }>]>;
1214
+ export declare const sDeviceMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1215
+ export declare const sValidateChangeRq: z.ZodObject<{
1216
+ kind: z.ZodLiteral<"validate-change">;
1217
+ provider: z.ZodString;
1218
+ devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1219
+ mutations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1220
+ kind: z.ZodLiteral<"merge">;
1221
+ objectId: z.ZodOptional<z.ZodString>;
1222
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1223
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1224
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ kind: "merge";
1227
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1228
+ objectForeignRefs: string[];
1229
+ props: Record<string, unknown>;
1230
+ objectId?: string | undefined;
1231
+ }, {
1232
+ kind: "merge";
1233
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1234
+ objectForeignRefs: string[];
1235
+ props: Record<string, unknown>;
1236
+ objectId?: string | undefined;
1237
+ }>, z.ZodObject<{
1238
+ kind: z.ZodLiteral<"delete">;
1239
+ objectId: z.ZodOptional<z.ZodString>;
1240
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1241
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ kind: "delete";
1244
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1245
+ objectForeignRefs: string[];
1246
+ objectId?: string | undefined;
1247
+ }, {
1248
+ kind: "delete";
1249
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1250
+ objectForeignRefs: string[];
1251
+ objectId?: string | undefined;
1252
+ }>, z.ZodObject<{
1253
+ kind: z.ZodLiteral<"relation-merge">;
1254
+ left: z.ZodObject<{
1255
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1256
+ objectId: z.ZodOptional<z.ZodString>;
1257
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1260
+ objectForeignRefs: string[];
1261
+ objectId?: string | undefined;
1262
+ }, {
1263
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1264
+ objectForeignRefs: string[];
1265
+ objectId?: string | undefined;
1266
+ }>;
1267
+ right: z.ZodObject<{
1268
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1269
+ objectId: z.ZodOptional<z.ZodString>;
1270
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1273
+ objectForeignRefs: string[];
1274
+ objectId?: string | undefined;
1275
+ }, {
1276
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1277
+ objectForeignRefs: string[];
1278
+ objectId?: string | undefined;
1279
+ }>;
1280
+ linkExists: z.ZodBoolean;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ left: {
1283
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1284
+ objectForeignRefs: string[];
1285
+ objectId?: string | undefined;
1286
+ };
1287
+ right: {
1288
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1289
+ objectForeignRefs: string[];
1290
+ objectId?: string | undefined;
1291
+ };
1292
+ kind: "relation-merge";
1293
+ linkExists: boolean;
1294
+ }, {
1295
+ left: {
1296
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1297
+ objectForeignRefs: string[];
1298
+ objectId?: string | undefined;
1299
+ };
1300
+ right: {
1301
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1302
+ objectForeignRefs: string[];
1303
+ objectId?: string | undefined;
1304
+ };
1305
+ kind: "relation-merge";
1306
+ linkExists: boolean;
1307
+ }>]>, "many">;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ kind: "validate-change";
1310
+ devices: Record<string, Record<string, unknown>>;
1311
+ provider: string;
1312
+ mutations: ({
1313
+ kind: "merge";
1314
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1315
+ objectForeignRefs: string[];
1316
+ props: Record<string, unknown>;
1317
+ objectId?: string | undefined;
1318
+ } | {
1319
+ kind: "delete";
1320
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1321
+ objectForeignRefs: string[];
1322
+ objectId?: string | undefined;
1323
+ } | {
1324
+ left: {
1325
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1326
+ objectForeignRefs: string[];
1327
+ objectId?: string | undefined;
1328
+ };
1329
+ right: {
1330
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1331
+ objectForeignRefs: string[];
1332
+ objectId?: string | undefined;
1333
+ };
1334
+ kind: "relation-merge";
1335
+ linkExists: boolean;
1336
+ })[];
1337
+ }, {
1338
+ kind: "validate-change";
1339
+ devices: Record<string, Record<string, unknown>>;
1340
+ provider: string;
1341
+ mutations: ({
1342
+ kind: "merge";
1343
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1344
+ objectForeignRefs: string[];
1345
+ props: Record<string, unknown>;
1346
+ objectId?: string | undefined;
1347
+ } | {
1348
+ kind: "delete";
1349
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1350
+ objectForeignRefs: string[];
1351
+ objectId?: string | undefined;
1352
+ } | {
1353
+ left: {
1354
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1355
+ objectForeignRefs: string[];
1356
+ objectId?: string | undefined;
1357
+ };
1358
+ right: {
1359
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1360
+ objectForeignRefs: string[];
1361
+ objectId?: string | undefined;
1362
+ };
1363
+ kind: "relation-merge";
1364
+ linkExists: boolean;
1365
+ })[];
1366
+ }>;
1367
+ export declare const sChangeIssue: z.ZodObject<{
1368
+ objectId: z.ZodOptional<z.ZodString>;
1369
+ objectForeignRef: z.ZodOptional<z.ZodString>;
1370
+ issue: z.ZodString;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ issue: string;
1373
+ objectId?: string | undefined;
1374
+ objectForeignRef?: string | undefined;
1375
+ }, {
1376
+ issue: string;
1377
+ objectId?: string | undefined;
1378
+ objectForeignRef?: string | undefined;
1379
+ }>;
1380
+ export declare const sValidateChangeRs: z.ZodIntersection<z.ZodObject<{
1381
+ requestId: z.ZodString;
1382
+ kind: z.ZodLiteral<"validate-change-rs">;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ kind: "validate-change-rs";
1385
+ requestId: string;
1386
+ }, {
1387
+ kind: "validate-change-rs";
1388
+ requestId: string;
1389
+ }>, z.ZodObject<{
1390
+ issues: z.ZodArray<z.ZodObject<{
1391
+ objectId: z.ZodOptional<z.ZodString>;
1392
+ objectForeignRef: z.ZodOptional<z.ZodString>;
1393
+ issue: z.ZodString;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ issue: string;
1396
+ objectId?: string | undefined;
1397
+ objectForeignRef?: string | undefined;
1398
+ }, {
1399
+ issue: string;
1400
+ objectId?: string | undefined;
1401
+ objectForeignRef?: string | undefined;
1402
+ }>, "many">;
1403
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1404
+ issues: {
1405
+ issue: string;
1406
+ objectId?: string | undefined;
1407
+ objectForeignRef?: string | undefined;
1408
+ }[];
1409
+ }, {
1410
+ issues: {
1411
+ issue: string;
1412
+ objectId?: string | undefined;
1413
+ objectForeignRef?: string | undefined;
1414
+ }[];
1415
+ }>>;
1416
+ export declare const sApplyChange: z.ZodObject<{
1417
+ kind: z.ZodLiteral<"apply-change">;
1418
+ provider: z.ZodString;
1419
+ devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1420
+ mutations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1421
+ kind: z.ZodLiteral<"merge">;
1422
+ objectId: z.ZodOptional<z.ZodString>;
1423
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1424
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1425
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ kind: "merge";
1428
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1429
+ objectForeignRefs: string[];
1430
+ props: Record<string, unknown>;
1431
+ objectId?: string | undefined;
1432
+ }, {
1433
+ kind: "merge";
1434
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1435
+ objectForeignRefs: string[];
1436
+ props: Record<string, unknown>;
1437
+ objectId?: string | undefined;
1438
+ }>, z.ZodObject<{
1439
+ kind: z.ZodLiteral<"delete">;
1440
+ objectId: z.ZodOptional<z.ZodString>;
1441
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1442
+ objectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ kind: "delete";
1445
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1446
+ objectForeignRefs: string[];
1447
+ objectId?: string | undefined;
1448
+ }, {
1449
+ kind: "delete";
1450
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1451
+ objectForeignRefs: string[];
1452
+ objectId?: string | undefined;
1453
+ }>, z.ZodObject<{
1454
+ kind: z.ZodLiteral<"relation-merge">;
1455
+ left: z.ZodObject<{
1456
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1457
+ objectId: z.ZodOptional<z.ZodString>;
1458
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1461
+ objectForeignRefs: string[];
1462
+ objectId?: string | undefined;
1463
+ }, {
1464
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1465
+ objectForeignRefs: string[];
1466
+ objectId?: string | undefined;
1467
+ }>;
1468
+ right: z.ZodObject<{
1469
+ kind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
1470
+ objectId: z.ZodOptional<z.ZodString>;
1471
+ objectForeignRefs: z.ZodArray<z.ZodString, "many">;
1472
+ }, "strip", z.ZodTypeAny, {
1473
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1474
+ objectForeignRefs: string[];
1475
+ objectId?: string | undefined;
1476
+ }, {
1477
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1478
+ objectForeignRefs: string[];
1479
+ objectId?: string | undefined;
1480
+ }>;
1481
+ linkExists: z.ZodBoolean;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ left: {
1484
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1485
+ objectForeignRefs: string[];
1486
+ objectId?: string | undefined;
1487
+ };
1488
+ right: {
1489
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1490
+ objectForeignRefs: string[];
1491
+ objectId?: string | undefined;
1492
+ };
1493
+ kind: "relation-merge";
1494
+ linkExists: boolean;
1495
+ }, {
1496
+ left: {
1497
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1498
+ objectForeignRefs: string[];
1499
+ objectId?: string | undefined;
1500
+ };
1501
+ right: {
1502
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1503
+ objectForeignRefs: string[];
1504
+ objectId?: string | undefined;
1505
+ };
1506
+ kind: "relation-merge";
1507
+ linkExists: boolean;
1508
+ }>]>, "many">;
1509
+ policyVersion: z.ZodNumber;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ kind: "apply-change";
1512
+ devices: Record<string, Record<string, unknown>>;
1513
+ provider: string;
1514
+ mutations: ({
1515
+ kind: "merge";
1516
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1517
+ objectForeignRefs: string[];
1518
+ props: Record<string, unknown>;
1519
+ objectId?: string | undefined;
1520
+ } | {
1521
+ kind: "delete";
1522
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1523
+ objectForeignRefs: string[];
1524
+ objectId?: string | undefined;
1525
+ } | {
1526
+ left: {
1527
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1528
+ objectForeignRefs: string[];
1529
+ objectId?: string | undefined;
1530
+ };
1531
+ right: {
1532
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1533
+ objectForeignRefs: string[];
1534
+ objectId?: string | undefined;
1535
+ };
1536
+ kind: "relation-merge";
1537
+ linkExists: boolean;
1538
+ })[];
1539
+ policyVersion: number;
1540
+ }, {
1541
+ kind: "apply-change";
1542
+ devices: Record<string, Record<string, unknown>>;
1543
+ provider: string;
1544
+ mutations: ({
1545
+ kind: "merge";
1546
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1547
+ objectForeignRefs: string[];
1548
+ props: Record<string, unknown>;
1549
+ objectId?: string | undefined;
1550
+ } | {
1551
+ kind: "delete";
1552
+ objectKind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1553
+ objectForeignRefs: string[];
1554
+ objectId?: string | undefined;
1555
+ } | {
1556
+ left: {
1557
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1558
+ objectForeignRefs: string[];
1559
+ objectId?: string | undefined;
1560
+ };
1561
+ right: {
1562
+ kind: "person" | "zone" | "reader" | "access-rule" | "schedule";
1563
+ objectForeignRefs: string[];
1564
+ objectId?: string | undefined;
1565
+ };
1566
+ kind: "relation-merge";
1567
+ linkExists: boolean;
1568
+ })[];
1569
+ policyVersion: number;
1570
+ }>;
1571
+ export declare const sApplyChangeComplete: z.ZodIntersection<z.ZodObject<{
1572
+ requestId: z.ZodString;
1573
+ kind: z.ZodLiteral<"apply-change-complete">;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ kind: "apply-change-complete";
1576
+ requestId: string;
1577
+ }, {
1578
+ kind: "apply-change-complete";
1579
+ requestId: string;
1580
+ }>, z.ZodObject<{
1581
+ policyVersion: z.ZodNumber;
1582
+ error: z.ZodOptional<z.ZodString>;
1583
+ refs: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
1584
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1585
+ refs: Record<string, Record<string, string>>;
1586
+ policyVersion: number;
1587
+ error?: string | undefined;
1588
+ }, {
1589
+ refs: Record<string, Record<string, string>>;
1590
+ policyVersion: number;
1591
+ error?: string | undefined;
1592
+ }>>;
1593
+ export declare const sApplyChangeProgress: z.ZodObject<{
1594
+ kind: z.ZodLiteral<"apply-change-progress">;
1595
+ policyVersion: z.ZodNumber;
1596
+ total: z.ZodNumber;
1597
+ completed: z.ZodNumber;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ total: number;
1600
+ completed: number;
1601
+ kind: "apply-change-progress";
1602
+ policyVersion: number;
1603
+ }, {
1604
+ total: number;
1605
+ completed: number;
1606
+ kind: "apply-change-progress";
1607
+ policyVersion: number;
1608
+ }>;
1609
+ export declare const abortChange: z.ZodObject<{
1610
+ kind: z.ZodLiteral<"abort-change">;
1611
+ provider: z.ZodString;
1612
+ policyVersion: z.ZodNumber;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ kind: "abort-change";
1615
+ provider: string;
1616
+ policyVersion: number;
1617
+ }, {
1618
+ kind: "abort-change";
1619
+ provider: string;
1620
+ policyVersion: number;
1621
+ }>;
1622
+ export type MessageHeader = z.infer<typeof sMessageHeader>;
1623
+ export type Message<TPayload> = MessageHeader & TPayload;
1624
+ export type ErrorPayload = z.infer<typeof sErrorPayload>;
1625
+ export type RegisterRq = z.infer<typeof sRegisterRq>;
1626
+ export type RegisterRs = z.infer<typeof sRegisterRs>;
1627
+ export type Unregister = z.infer<typeof sUnregister>;
1628
+ export type ValidateProviderConfigRq = z.infer<typeof sValidateProviderConfigRq>;
1629
+ export type ValidateProviderConfigRs = z.infer<typeof sValidateProviderConfigRs>;
1630
+ export type StartServiceRq = z.infer<typeof sStartServiceRq>;
1631
+ export type StartServiceRs = z.infer<typeof sStartServiceRs>;
1632
+ export type StopServiceRq = z.infer<typeof sStopServiceRq>;
1633
+ export type StopServiceRs = z.infer<typeof sStopServiceRs>;
1634
+ export type RunCommandRq = z.infer<typeof sRunCommandRq>;
1635
+ export type RunCommandRs = z.infer<typeof sRunCommandRs>;
1636
+ export type PushStateUpdateRq = z.infer<typeof sPushStateUpdateRq>;
1637
+ export type PushStateUpdateRs = z.infer<typeof sPushStateUpdateRs>;
1638
+ export type PushEventRq = z.infer<typeof sPushEventRq>;
1639
+ export type PushEventRs = z.infer<typeof sPushEventRs>;
1640
+ export type GetAvailableDevicesRq = z.infer<typeof sGetAvailableDevicesRq>;
1641
+ export type GetAvailableDevicesRs = z.infer<typeof sGetAvailableDevicesRs>;
1642
+ export type RegisterAccessControlAgentRq = z.infer<typeof sRegisterAccessControlAgentRq>;
1643
+ export type RegisterAccessControlAgentRs = z.infer<typeof sRegisterAccessControlAgentRs>;
1644
+ export type AccessMutation = z.infer<typeof sAccessMutation>;
1645
+ export type ValidateChangeRq = z.infer<typeof sValidateChangeRq>;
1646
+ export type ValidateChangeRs = z.infer<typeof sValidateChangeRs>;
1647
+ export type ChangeIssue = z.infer<typeof sChangeIssue>;
1648
+ export type ApplyChange = z.infer<typeof sApplyChange>;
1649
+ export type ApplyChangeComplete = z.infer<typeof sApplyChangeComplete>;
1650
+ export type ApplyChangeProgress = z.infer<typeof sApplyChangeProgress>;
1651
+ export type AbortChange = z.infer<typeof abortChange>;
1652
+ export type CapabilityReport = z.infer<typeof sCapabilityReport>;
1653
+ export type TokenSpecs = z.infer<typeof sTokenSpecs>;
1654
+ export type AccessObjectKind = z.infer<typeof sAccessObjectKind>;
1655
+ export type UiHint = z.infer<typeof sUiHint>;
1656
+ export type UiOrderHint = z.infer<typeof sUiOrderHint>;
1657
+ export type UiWidgetHint = z.infer<typeof sUiWidgetHint>;
1658
+ export type ProviderSpecs = z.infer<typeof sProviderSpecs>;
1659
+ export type ConfigurationIssue = z.infer<typeof sConfigurationIssue>;
1660
+ export type PayloadByKind = {
1661
+ register: RegisterRq;
1662
+ 'register-rs': RegisterRs;
1663
+ unregister: Unregister;
1664
+ 'validate-config': ValidateProviderConfigRq;
1665
+ 'validate-config-rs': ValidateProviderConfigRs;
1666
+ start: StartServiceRq;
1667
+ 'start-rs': StartServiceRs;
1668
+ stop: StopServiceRq;
1669
+ 'stop-rs': StopServiceRs;
1670
+ command: RunCommandRq;
1671
+ 'command-rs': RunCommandRs;
1672
+ state: PushStateUpdateRq;
1673
+ 'state-rs': PushStateUpdateRs;
1674
+ event: PushEventRq;
1675
+ 'event-rs': PushEventRs;
1676
+ 'get-available-devices': GetAvailableDevicesRq;
1677
+ 'get-available-devices-rs': GetAvailableDevicesRs;
1678
+ 'register-access-control-agent': RegisterAccessControlAgentRq;
1679
+ 'register-access-control-agent-rs': RegisterAccessControlAgentRs;
1680
+ 'validate-change': ValidateChangeRq;
1681
+ 'validate-change-rs': ValidateChangeRs;
1682
+ 'apply-change': ApplyChange;
1683
+ 'apply-change-complete': ApplyChangeComplete;
1684
+ 'apply-change-progress': ApplyChangeProgress;
1685
+ 'abort-change': AbortChange;
1686
+ 'error-rs': ErrorPayload;
1687
+ };
1688
+ export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | PushStateUpdateRq | PushEventRq | GetAvailableDevicesRs | RegisterAccessControlAgentRq | ValidateChangeRs | ApplyChangeComplete | ApplyChangeProgress;
1689
+ export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | RegisterAccessControlAgentRs | ValidateChangeRq | ApplyChange | AbortChange;
1690
+ export type AnyPayload = FromAgent | FromServer;
1691
+ export declare const getAgentMessageIssues: (message: unknown) => string[];
1692
+ export declare const isMessageFromAgent: (message: unknown) => message is Message<FromAgent>;