@seamapi/types 1.401.0 → 1.403.0

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 (34) hide show
  1. package/dist/connect.cjs +652 -12
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +839 -69
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
  8. package/lib/seam/connect/models/devices/device-provider.js +2 -1
  9. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  10. package/lib/seam/connect/models/index.d.ts +1 -0
  11. package/lib/seam/connect/models/index.js +1 -0
  12. package/lib/seam/connect/models/index.js.map +1 -1
  13. package/lib/seam/connect/models/phones/index.d.ts +2 -0
  14. package/lib/seam/connect/models/phones/index.js +3 -0
  15. package/lib/seam/connect/models/phones/index.js.map +1 -0
  16. package/lib/seam/connect/models/phones/phone-registration.d.ts +18 -0
  17. package/lib/seam/connect/models/phones/phone-registration.js +13 -0
  18. package/lib/seam/connect/models/phones/phone-registration.js.map +1 -0
  19. package/lib/seam/connect/models/phones/phone-session.d.ts +2060 -0
  20. package/lib/seam/connect/models/phones/phone-session.js +21 -0
  21. package/lib/seam/connect/models/phones/phone-session.js.map +1 -0
  22. package/lib/seam/connect/openapi.d.ts +561 -0
  23. package/lib/seam/connect/openapi.js +648 -9
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +215 -6
  26. package/package.json +2 -2
  27. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  28. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
  29. package/src/lib/seam/connect/models/index.ts +1 -0
  30. package/src/lib/seam/connect/models/phones/index.ts +2 -0
  31. package/src/lib/seam/connect/models/phones/phone-registration.ts +15 -0
  32. package/src/lib/seam/connect/models/phones/phone-session.ts +27 -0
  33. package/src/lib/seam/connect/openapi.ts +715 -9
  34. package/src/lib/seam/connect/route-types.ts +269 -6
@@ -0,0 +1,2060 @@
1
+ import { z } from 'zod';
2
+ declare const phone_provider_session: z.ZodObject<{
3
+ phone_registration: z.ZodObject<{
4
+ phone_registration_id: z.ZodString;
5
+ provider_state: z.ZodAny;
6
+ provider_name: z.ZodNullable<z.ZodString>;
7
+ is_being_activated: z.ZodBoolean;
8
+ }, "strip", z.ZodTypeAny, {
9
+ phone_registration_id: string;
10
+ provider_name: string | null;
11
+ is_being_activated: boolean;
12
+ provider_state?: any;
13
+ }, {
14
+ phone_registration_id: string;
15
+ provider_name: string | null;
16
+ is_being_activated: boolean;
17
+ provider_state?: any;
18
+ }>;
19
+ acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
20
+ acs_credential_id: z.ZodString;
21
+ acs_user_id: z.ZodOptional<z.ZodString>;
22
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
23
+ acs_system_id: z.ZodString;
24
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
25
+ display_name: z.ZodString;
26
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ is_one_time_use: z.ZodOptional<z.ZodBoolean>;
28
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
+ is_issued: z.ZodOptional<z.ZodBoolean>;
30
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
32
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
33
+ external_type_display_name: z.ZodOptional<z.ZodString>;
34
+ created_at: z.ZodString;
35
+ workspace_id: z.ZodString;
36
+ starts_at: z.ZodOptional<z.ZodString>;
37
+ ends_at: z.ZodOptional<z.ZodString>;
38
+ errors: z.ZodArray<z.ZodObject<{
39
+ error_code: z.ZodString;
40
+ message: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ message: string;
43
+ error_code: string;
44
+ }, {
45
+ message: string;
46
+ error_code: string;
47
+ }>, "many">;
48
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
49
+ created_at: z.ZodString;
50
+ message: z.ZodString;
51
+ }, {
52
+ warning_code: z.ZodLiteral<"waiting_to_be_issued">;
53
+ }>, "strip", z.ZodTypeAny, {
54
+ message: string;
55
+ created_at: string;
56
+ warning_code: "waiting_to_be_issued";
57
+ }, {
58
+ message: string;
59
+ created_at: string;
60
+ warning_code: "waiting_to_be_issued";
61
+ }>, z.ZodObject<z.objectUtil.extendShape<{
62
+ created_at: z.ZodString;
63
+ message: z.ZodString;
64
+ }, {
65
+ warning_code: z.ZodLiteral<"schedule_externally_modified">;
66
+ }>, "strip", z.ZodTypeAny, {
67
+ message: string;
68
+ created_at: string;
69
+ warning_code: "schedule_externally_modified";
70
+ }, {
71
+ message: string;
72
+ created_at: string;
73
+ warning_code: "schedule_externally_modified";
74
+ }>, z.ZodObject<z.objectUtil.extendShape<{
75
+ created_at: z.ZodString;
76
+ message: z.ZodString;
77
+ }, {
78
+ warning_code: z.ZodLiteral<"schedule_modified">;
79
+ }>, "strip", z.ZodTypeAny, {
80
+ message: string;
81
+ created_at: string;
82
+ warning_code: "schedule_modified";
83
+ }, {
84
+ message: string;
85
+ created_at: string;
86
+ warning_code: "schedule_modified";
87
+ }>, z.ZodObject<z.objectUtil.extendShape<{
88
+ created_at: z.ZodString;
89
+ message: z.ZodString;
90
+ }, {
91
+ warning_code: z.ZodLiteral<"being_deleted">;
92
+ }>, "strip", z.ZodTypeAny, {
93
+ message: string;
94
+ created_at: string;
95
+ warning_code: "being_deleted";
96
+ }, {
97
+ message: string;
98
+ created_at: string;
99
+ warning_code: "being_deleted";
100
+ }>, z.ZodObject<z.objectUtil.extendShape<{
101
+ created_at: z.ZodString;
102
+ message: z.ZodString;
103
+ }, {
104
+ warning_code: z.ZodLiteral<"unknown_issue_with_acs_credential">;
105
+ }>, "strip", z.ZodTypeAny, {
106
+ message: string;
107
+ created_at: string;
108
+ warning_code: "unknown_issue_with_acs_credential";
109
+ }, {
110
+ message: string;
111
+ created_at: string;
112
+ warning_code: "unknown_issue_with_acs_credential";
113
+ }>, z.ZodObject<z.objectUtil.extendShape<{
114
+ created_at: z.ZodString;
115
+ message: z.ZodString;
116
+ }, {
117
+ warning_code: z.ZodLiteral<"needs_to_be_reissued">;
118
+ }>, "strip", z.ZodTypeAny, {
119
+ message: string;
120
+ created_at: string;
121
+ warning_code: "needs_to_be_reissued";
122
+ }, {
123
+ message: string;
124
+ created_at: string;
125
+ warning_code: "needs_to_be_reissued";
126
+ }>]>, "many">;
127
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
128
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
129
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
131
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
132
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ is_valid: z.ZodOptional<z.ZodBoolean>;
136
+ auto_join: z.ZodOptional<z.ZodBoolean>;
137
+ card_id: z.ZodOptional<z.ZodString>;
138
+ credential_id: z.ZodOptional<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ card_function_type: "guest" | "staff";
141
+ auto_join?: boolean | undefined;
142
+ joiner_acs_credential_ids?: string[] | undefined;
143
+ guest_acs_entrance_ids?: string[] | undefined;
144
+ common_acs_entrance_ids?: string[] | undefined;
145
+ is_valid?: boolean | undefined;
146
+ card_id?: string | undefined;
147
+ credential_id?: string | undefined;
148
+ }, {
149
+ card_function_type: "guest" | "staff";
150
+ auto_join?: boolean | undefined;
151
+ joiner_acs_credential_ids?: string[] | undefined;
152
+ guest_acs_entrance_ids?: string[] | undefined;
153
+ common_acs_entrance_ids?: string[] | undefined;
154
+ is_valid?: boolean | undefined;
155
+ card_id?: string | undefined;
156
+ credential_id?: string | undefined;
157
+ }>>;
158
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
159
+ auto_join: z.ZodOptional<z.ZodBoolean>;
160
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ key_id: z.ZodOptional<z.ZodString>;
162
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
163
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
+ endpoint_id: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ endpoint_id?: string | undefined;
167
+ auto_join?: boolean | undefined;
168
+ override_guest_acs_entrance_ids?: string[] | undefined;
169
+ key_id?: string | undefined;
170
+ key_issuing_request_id?: string | undefined;
171
+ door_names?: string[] | undefined;
172
+ }, {
173
+ endpoint_id?: string | undefined;
174
+ auto_join?: boolean | undefined;
175
+ override_guest_acs_entrance_ids?: string[] | undefined;
176
+ key_id?: string | undefined;
177
+ key_issuing_request_id?: string | undefined;
178
+ door_names?: string[] | undefined;
179
+ }>>;
180
+ }, {
181
+ is_managed: z.ZodLiteral<true>;
182
+ }>, {
183
+ acs_entrances: z.ZodArray<z.ZodObject<{
184
+ acs_system_id: z.ZodString;
185
+ acs_entrance_id: z.ZodString;
186
+ created_at: z.ZodString;
187
+ display_name: z.ZodString;
188
+ errors: z.ZodArray<z.ZodObject<{
189
+ error_code: z.ZodString;
190
+ message: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ message: string;
193
+ error_code: string;
194
+ }, {
195
+ message: string;
196
+ error_code: string;
197
+ }>, "many">;
198
+ latch_metadata: z.ZodOptional<z.ZodObject<{
199
+ accessibility_type: z.ZodString;
200
+ door_name: z.ZodString;
201
+ door_type: z.ZodString;
202
+ is_connected: z.ZodBoolean;
203
+ }, "strip", z.ZodTypeAny, {
204
+ door_name: string;
205
+ is_connected: boolean;
206
+ door_type: string;
207
+ accessibility_type: string;
208
+ }, {
209
+ door_name: string;
210
+ is_connected: boolean;
211
+ door_type: string;
212
+ accessibility_type: string;
213
+ }>>;
214
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
215
+ door_name: z.ZodString;
216
+ door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
217
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
218
+ visionline_door_profile_id: z.ZodString;
219
+ visionline_door_profile_type: z.ZodEnum<["BLE", "commonDoor", "touch"]>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ visionline_door_profile_id: string;
222
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
223
+ }, {
224
+ visionline_door_profile_id: string;
225
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
226
+ }>, "many">>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ door_name: string;
229
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
230
+ profiles?: {
231
+ visionline_door_profile_id: string;
232
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
233
+ }[] | undefined;
234
+ }, {
235
+ door_name: string;
236
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
237
+ profiles?: {
238
+ visionline_door_profile_id: string;
239
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
240
+ }[] | undefined;
241
+ }>>;
242
+ salto_ks_metadata: z.ZodOptional<z.ZodObject<{
243
+ door_name: z.ZodString;
244
+ locked_state: z.ZodString;
245
+ lock_type: z.ZodString;
246
+ online: z.ZodOptional<z.ZodBoolean>;
247
+ battery_level: z.ZodString;
248
+ left_open_alarm: z.ZodOptional<z.ZodBoolean>;
249
+ intrusion_alarm: z.ZodOptional<z.ZodBoolean>;
250
+ privacy_mode: z.ZodOptional<z.ZodBoolean>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ lock_type: string;
253
+ battery_level: string;
254
+ locked_state: string;
255
+ door_name: string;
256
+ online?: boolean | undefined;
257
+ left_open_alarm?: boolean | undefined;
258
+ intrusion_alarm?: boolean | undefined;
259
+ privacy_mode?: boolean | undefined;
260
+ }, {
261
+ lock_type: string;
262
+ battery_level: string;
263
+ locked_state: string;
264
+ door_name: string;
265
+ online?: boolean | undefined;
266
+ left_open_alarm?: boolean | undefined;
267
+ intrusion_alarm?: boolean | undefined;
268
+ privacy_mode?: boolean | undefined;
269
+ }>>;
270
+ dormakaba_community_metadata: z.ZodOptional<z.ZodObject<{
271
+ access_point_name: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ access_point_name: string;
274
+ }, {
275
+ access_point_name: string;
276
+ }>>;
277
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
278
+ door_type: z.ZodEnum<["CommonDoor", "EntranceDoor", "GuestDoor", "Elevator"]>;
279
+ door_name: z.ZodString;
280
+ door_number: z.ZodOptional<z.ZodNumber>;
281
+ stand_open: z.ZodOptional<z.ZodBoolean>;
282
+ pms_id: z.ZodOptional<z.ZodString>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ door_name: string;
285
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
286
+ door_number?: number | undefined;
287
+ stand_open?: boolean | undefined;
288
+ pms_id?: string | undefined;
289
+ }, {
290
+ door_name: string;
291
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
292
+ door_number?: number | undefined;
293
+ stand_open?: boolean | undefined;
294
+ pms_id?: string | undefined;
295
+ }>>;
296
+ salto_space_metadata: z.ZodOptional<z.ZodObject<{
297
+ door_name: z.ZodString;
298
+ ext_door_id: z.ZodString;
299
+ door_description: z.ZodOptional<z.ZodString>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ door_name: string;
302
+ ext_door_id: string;
303
+ door_description?: string | undefined;
304
+ }, {
305
+ door_name: string;
306
+ ext_door_id: string;
307
+ door_description?: string | undefined;
308
+ }>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ display_name: string;
311
+ created_at: string;
312
+ errors: {
313
+ message: string;
314
+ error_code: string;
315
+ }[];
316
+ acs_system_id: string;
317
+ acs_entrance_id: string;
318
+ salto_ks_metadata?: {
319
+ lock_type: string;
320
+ battery_level: string;
321
+ locked_state: string;
322
+ door_name: string;
323
+ online?: boolean | undefined;
324
+ left_open_alarm?: boolean | undefined;
325
+ intrusion_alarm?: boolean | undefined;
326
+ privacy_mode?: boolean | undefined;
327
+ } | undefined;
328
+ visionline_metadata?: {
329
+ door_name: string;
330
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
331
+ profiles?: {
332
+ visionline_door_profile_id: string;
333
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
334
+ }[] | undefined;
335
+ } | undefined;
336
+ assa_abloy_vostio_metadata?: {
337
+ door_name: string;
338
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
339
+ door_number?: number | undefined;
340
+ stand_open?: boolean | undefined;
341
+ pms_id?: string | undefined;
342
+ } | undefined;
343
+ latch_metadata?: {
344
+ door_name: string;
345
+ is_connected: boolean;
346
+ door_type: string;
347
+ accessibility_type: string;
348
+ } | undefined;
349
+ dormakaba_community_metadata?: {
350
+ access_point_name: string;
351
+ } | undefined;
352
+ salto_space_metadata?: {
353
+ door_name: string;
354
+ ext_door_id: string;
355
+ door_description?: string | undefined;
356
+ } | undefined;
357
+ }, {
358
+ display_name: string;
359
+ created_at: string;
360
+ errors: {
361
+ message: string;
362
+ error_code: string;
363
+ }[];
364
+ acs_system_id: string;
365
+ acs_entrance_id: string;
366
+ salto_ks_metadata?: {
367
+ lock_type: string;
368
+ battery_level: string;
369
+ locked_state: string;
370
+ door_name: string;
371
+ online?: boolean | undefined;
372
+ left_open_alarm?: boolean | undefined;
373
+ intrusion_alarm?: boolean | undefined;
374
+ privacy_mode?: boolean | undefined;
375
+ } | undefined;
376
+ visionline_metadata?: {
377
+ door_name: string;
378
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
379
+ profiles?: {
380
+ visionline_door_profile_id: string;
381
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
382
+ }[] | undefined;
383
+ } | undefined;
384
+ assa_abloy_vostio_metadata?: {
385
+ door_name: string;
386
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
387
+ door_number?: number | undefined;
388
+ stand_open?: boolean | undefined;
389
+ pms_id?: string | undefined;
390
+ } | undefined;
391
+ latch_metadata?: {
392
+ door_name: string;
393
+ is_connected: boolean;
394
+ door_type: string;
395
+ accessibility_type: string;
396
+ } | undefined;
397
+ dormakaba_community_metadata?: {
398
+ access_point_name: string;
399
+ } | undefined;
400
+ salto_space_metadata?: {
401
+ door_name: string;
402
+ ext_door_id: string;
403
+ door_description?: string | undefined;
404
+ } | undefined;
405
+ }>, "many">;
406
+ }>, "strip", z.ZodTypeAny, {
407
+ display_name: string;
408
+ workspace_id: string;
409
+ created_at: string;
410
+ errors: {
411
+ message: string;
412
+ error_code: string;
413
+ }[];
414
+ warnings: ({
415
+ message: string;
416
+ created_at: string;
417
+ warning_code: "waiting_to_be_issued";
418
+ } | {
419
+ message: string;
420
+ created_at: string;
421
+ warning_code: "schedule_externally_modified";
422
+ } | {
423
+ message: string;
424
+ created_at: string;
425
+ warning_code: "schedule_modified";
426
+ } | {
427
+ message: string;
428
+ created_at: string;
429
+ warning_code: "being_deleted";
430
+ } | {
431
+ message: string;
432
+ created_at: string;
433
+ warning_code: "unknown_issue_with_acs_credential";
434
+ } | {
435
+ message: string;
436
+ created_at: string;
437
+ warning_code: "needs_to_be_reissued";
438
+ })[];
439
+ is_managed: true;
440
+ acs_system_id: string;
441
+ acs_credential_id: string;
442
+ access_method: "code" | "card" | "mobile_key";
443
+ acs_entrances: {
444
+ display_name: string;
445
+ created_at: string;
446
+ errors: {
447
+ message: string;
448
+ error_code: string;
449
+ }[];
450
+ acs_system_id: string;
451
+ acs_entrance_id: string;
452
+ salto_ks_metadata?: {
453
+ lock_type: string;
454
+ battery_level: string;
455
+ locked_state: string;
456
+ door_name: string;
457
+ online?: boolean | undefined;
458
+ left_open_alarm?: boolean | undefined;
459
+ intrusion_alarm?: boolean | undefined;
460
+ privacy_mode?: boolean | undefined;
461
+ } | undefined;
462
+ visionline_metadata?: {
463
+ door_name: string;
464
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
465
+ profiles?: {
466
+ visionline_door_profile_id: string;
467
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
468
+ }[] | undefined;
469
+ } | undefined;
470
+ assa_abloy_vostio_metadata?: {
471
+ door_name: string;
472
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
473
+ door_number?: number | undefined;
474
+ stand_open?: boolean | undefined;
475
+ pms_id?: string | undefined;
476
+ } | undefined;
477
+ latch_metadata?: {
478
+ door_name: string;
479
+ is_connected: boolean;
480
+ door_type: string;
481
+ accessibility_type: string;
482
+ } | undefined;
483
+ dormakaba_community_metadata?: {
484
+ access_point_name: string;
485
+ } | undefined;
486
+ salto_space_metadata?: {
487
+ door_name: string;
488
+ ext_door_id: string;
489
+ door_description?: string | undefined;
490
+ } | undefined;
491
+ }[];
492
+ code?: string | null | undefined;
493
+ starts_at?: string | undefined;
494
+ ends_at?: string | undefined;
495
+ visionline_metadata?: {
496
+ card_function_type: "guest" | "staff";
497
+ auto_join?: boolean | undefined;
498
+ joiner_acs_credential_ids?: string[] | undefined;
499
+ guest_acs_entrance_ids?: string[] | undefined;
500
+ common_acs_entrance_ids?: string[] | undefined;
501
+ is_valid?: boolean | undefined;
502
+ card_id?: string | undefined;
503
+ credential_id?: string | undefined;
504
+ } | undefined;
505
+ assa_abloy_vostio_metadata?: {
506
+ endpoint_id?: string | undefined;
507
+ auto_join?: boolean | undefined;
508
+ override_guest_acs_entrance_ids?: string[] | undefined;
509
+ key_id?: string | undefined;
510
+ key_issuing_request_id?: string | undefined;
511
+ door_names?: string[] | undefined;
512
+ } | undefined;
513
+ is_one_time_use?: boolean | undefined;
514
+ issued_at?: string | null | undefined;
515
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
516
+ external_type_display_name?: string | undefined;
517
+ acs_user_id?: string | undefined;
518
+ acs_credential_pool_id?: string | undefined;
519
+ parent_acs_credential_id?: string | undefined;
520
+ card_number?: string | null | undefined;
521
+ is_issued?: boolean | undefined;
522
+ is_multi_phone_sync_credential?: boolean | undefined;
523
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
524
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
525
+ }, {
526
+ display_name: string;
527
+ workspace_id: string;
528
+ created_at: string;
529
+ errors: {
530
+ message: string;
531
+ error_code: string;
532
+ }[];
533
+ warnings: ({
534
+ message: string;
535
+ created_at: string;
536
+ warning_code: "waiting_to_be_issued";
537
+ } | {
538
+ message: string;
539
+ created_at: string;
540
+ warning_code: "schedule_externally_modified";
541
+ } | {
542
+ message: string;
543
+ created_at: string;
544
+ warning_code: "schedule_modified";
545
+ } | {
546
+ message: string;
547
+ created_at: string;
548
+ warning_code: "being_deleted";
549
+ } | {
550
+ message: string;
551
+ created_at: string;
552
+ warning_code: "unknown_issue_with_acs_credential";
553
+ } | {
554
+ message: string;
555
+ created_at: string;
556
+ warning_code: "needs_to_be_reissued";
557
+ })[];
558
+ is_managed: true;
559
+ acs_system_id: string;
560
+ acs_credential_id: string;
561
+ access_method: "code" | "card" | "mobile_key";
562
+ acs_entrances: {
563
+ display_name: string;
564
+ created_at: string;
565
+ errors: {
566
+ message: string;
567
+ error_code: string;
568
+ }[];
569
+ acs_system_id: string;
570
+ acs_entrance_id: string;
571
+ salto_ks_metadata?: {
572
+ lock_type: string;
573
+ battery_level: string;
574
+ locked_state: string;
575
+ door_name: string;
576
+ online?: boolean | undefined;
577
+ left_open_alarm?: boolean | undefined;
578
+ intrusion_alarm?: boolean | undefined;
579
+ privacy_mode?: boolean | undefined;
580
+ } | undefined;
581
+ visionline_metadata?: {
582
+ door_name: string;
583
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
584
+ profiles?: {
585
+ visionline_door_profile_id: string;
586
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
587
+ }[] | undefined;
588
+ } | undefined;
589
+ assa_abloy_vostio_metadata?: {
590
+ door_name: string;
591
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
592
+ door_number?: number | undefined;
593
+ stand_open?: boolean | undefined;
594
+ pms_id?: string | undefined;
595
+ } | undefined;
596
+ latch_metadata?: {
597
+ door_name: string;
598
+ is_connected: boolean;
599
+ door_type: string;
600
+ accessibility_type: string;
601
+ } | undefined;
602
+ dormakaba_community_metadata?: {
603
+ access_point_name: string;
604
+ } | undefined;
605
+ salto_space_metadata?: {
606
+ door_name: string;
607
+ ext_door_id: string;
608
+ door_description?: string | undefined;
609
+ } | undefined;
610
+ }[];
611
+ code?: string | null | undefined;
612
+ starts_at?: string | undefined;
613
+ ends_at?: string | undefined;
614
+ visionline_metadata?: {
615
+ card_function_type: "guest" | "staff";
616
+ auto_join?: boolean | undefined;
617
+ joiner_acs_credential_ids?: string[] | undefined;
618
+ guest_acs_entrance_ids?: string[] | undefined;
619
+ common_acs_entrance_ids?: string[] | undefined;
620
+ is_valid?: boolean | undefined;
621
+ card_id?: string | undefined;
622
+ credential_id?: string | undefined;
623
+ } | undefined;
624
+ assa_abloy_vostio_metadata?: {
625
+ endpoint_id?: string | undefined;
626
+ auto_join?: boolean | undefined;
627
+ override_guest_acs_entrance_ids?: string[] | undefined;
628
+ key_id?: string | undefined;
629
+ key_issuing_request_id?: string | undefined;
630
+ door_names?: string[] | undefined;
631
+ } | undefined;
632
+ is_one_time_use?: boolean | undefined;
633
+ issued_at?: string | null | undefined;
634
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
635
+ external_type_display_name?: string | undefined;
636
+ acs_user_id?: string | undefined;
637
+ acs_credential_pool_id?: string | undefined;
638
+ parent_acs_credential_id?: string | undefined;
639
+ card_number?: string | null | undefined;
640
+ is_issued?: boolean | undefined;
641
+ is_multi_phone_sync_credential?: boolean | undefined;
642
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
643
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
644
+ }>, "many">;
645
+ }, "strip", z.ZodTypeAny, {
646
+ phone_registration: {
647
+ phone_registration_id: string;
648
+ provider_name: string | null;
649
+ is_being_activated: boolean;
650
+ provider_state?: any;
651
+ };
652
+ acs_credentials: {
653
+ display_name: string;
654
+ workspace_id: string;
655
+ created_at: string;
656
+ errors: {
657
+ message: string;
658
+ error_code: string;
659
+ }[];
660
+ warnings: ({
661
+ message: string;
662
+ created_at: string;
663
+ warning_code: "waiting_to_be_issued";
664
+ } | {
665
+ message: string;
666
+ created_at: string;
667
+ warning_code: "schedule_externally_modified";
668
+ } | {
669
+ message: string;
670
+ created_at: string;
671
+ warning_code: "schedule_modified";
672
+ } | {
673
+ message: string;
674
+ created_at: string;
675
+ warning_code: "being_deleted";
676
+ } | {
677
+ message: string;
678
+ created_at: string;
679
+ warning_code: "unknown_issue_with_acs_credential";
680
+ } | {
681
+ message: string;
682
+ created_at: string;
683
+ warning_code: "needs_to_be_reissued";
684
+ })[];
685
+ is_managed: true;
686
+ acs_system_id: string;
687
+ acs_credential_id: string;
688
+ access_method: "code" | "card" | "mobile_key";
689
+ acs_entrances: {
690
+ display_name: string;
691
+ created_at: string;
692
+ errors: {
693
+ message: string;
694
+ error_code: string;
695
+ }[];
696
+ acs_system_id: string;
697
+ acs_entrance_id: string;
698
+ salto_ks_metadata?: {
699
+ lock_type: string;
700
+ battery_level: string;
701
+ locked_state: string;
702
+ door_name: string;
703
+ online?: boolean | undefined;
704
+ left_open_alarm?: boolean | undefined;
705
+ intrusion_alarm?: boolean | undefined;
706
+ privacy_mode?: boolean | undefined;
707
+ } | undefined;
708
+ visionline_metadata?: {
709
+ door_name: string;
710
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
711
+ profiles?: {
712
+ visionline_door_profile_id: string;
713
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
714
+ }[] | undefined;
715
+ } | undefined;
716
+ assa_abloy_vostio_metadata?: {
717
+ door_name: string;
718
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
719
+ door_number?: number | undefined;
720
+ stand_open?: boolean | undefined;
721
+ pms_id?: string | undefined;
722
+ } | undefined;
723
+ latch_metadata?: {
724
+ door_name: string;
725
+ is_connected: boolean;
726
+ door_type: string;
727
+ accessibility_type: string;
728
+ } | undefined;
729
+ dormakaba_community_metadata?: {
730
+ access_point_name: string;
731
+ } | undefined;
732
+ salto_space_metadata?: {
733
+ door_name: string;
734
+ ext_door_id: string;
735
+ door_description?: string | undefined;
736
+ } | undefined;
737
+ }[];
738
+ code?: string | null | undefined;
739
+ starts_at?: string | undefined;
740
+ ends_at?: string | undefined;
741
+ visionline_metadata?: {
742
+ card_function_type: "guest" | "staff";
743
+ auto_join?: boolean | undefined;
744
+ joiner_acs_credential_ids?: string[] | undefined;
745
+ guest_acs_entrance_ids?: string[] | undefined;
746
+ common_acs_entrance_ids?: string[] | undefined;
747
+ is_valid?: boolean | undefined;
748
+ card_id?: string | undefined;
749
+ credential_id?: string | undefined;
750
+ } | undefined;
751
+ assa_abloy_vostio_metadata?: {
752
+ endpoint_id?: string | undefined;
753
+ auto_join?: boolean | undefined;
754
+ override_guest_acs_entrance_ids?: string[] | undefined;
755
+ key_id?: string | undefined;
756
+ key_issuing_request_id?: string | undefined;
757
+ door_names?: string[] | undefined;
758
+ } | undefined;
759
+ is_one_time_use?: boolean | undefined;
760
+ issued_at?: string | null | undefined;
761
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
762
+ external_type_display_name?: string | undefined;
763
+ acs_user_id?: string | undefined;
764
+ acs_credential_pool_id?: string | undefined;
765
+ parent_acs_credential_id?: string | undefined;
766
+ card_number?: string | null | undefined;
767
+ is_issued?: boolean | undefined;
768
+ is_multi_phone_sync_credential?: boolean | undefined;
769
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
770
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
771
+ }[];
772
+ }, {
773
+ phone_registration: {
774
+ phone_registration_id: string;
775
+ provider_name: string | null;
776
+ is_being_activated: boolean;
777
+ provider_state?: any;
778
+ };
779
+ acs_credentials: {
780
+ display_name: string;
781
+ workspace_id: string;
782
+ created_at: string;
783
+ errors: {
784
+ message: string;
785
+ error_code: string;
786
+ }[];
787
+ warnings: ({
788
+ message: string;
789
+ created_at: string;
790
+ warning_code: "waiting_to_be_issued";
791
+ } | {
792
+ message: string;
793
+ created_at: string;
794
+ warning_code: "schedule_externally_modified";
795
+ } | {
796
+ message: string;
797
+ created_at: string;
798
+ warning_code: "schedule_modified";
799
+ } | {
800
+ message: string;
801
+ created_at: string;
802
+ warning_code: "being_deleted";
803
+ } | {
804
+ message: string;
805
+ created_at: string;
806
+ warning_code: "unknown_issue_with_acs_credential";
807
+ } | {
808
+ message: string;
809
+ created_at: string;
810
+ warning_code: "needs_to_be_reissued";
811
+ })[];
812
+ is_managed: true;
813
+ acs_system_id: string;
814
+ acs_credential_id: string;
815
+ access_method: "code" | "card" | "mobile_key";
816
+ acs_entrances: {
817
+ display_name: string;
818
+ created_at: string;
819
+ errors: {
820
+ message: string;
821
+ error_code: string;
822
+ }[];
823
+ acs_system_id: string;
824
+ acs_entrance_id: string;
825
+ salto_ks_metadata?: {
826
+ lock_type: string;
827
+ battery_level: string;
828
+ locked_state: string;
829
+ door_name: string;
830
+ online?: boolean | undefined;
831
+ left_open_alarm?: boolean | undefined;
832
+ intrusion_alarm?: boolean | undefined;
833
+ privacy_mode?: boolean | undefined;
834
+ } | undefined;
835
+ visionline_metadata?: {
836
+ door_name: string;
837
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
838
+ profiles?: {
839
+ visionline_door_profile_id: string;
840
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
841
+ }[] | undefined;
842
+ } | undefined;
843
+ assa_abloy_vostio_metadata?: {
844
+ door_name: string;
845
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
846
+ door_number?: number | undefined;
847
+ stand_open?: boolean | undefined;
848
+ pms_id?: string | undefined;
849
+ } | undefined;
850
+ latch_metadata?: {
851
+ door_name: string;
852
+ is_connected: boolean;
853
+ door_type: string;
854
+ accessibility_type: string;
855
+ } | undefined;
856
+ dormakaba_community_metadata?: {
857
+ access_point_name: string;
858
+ } | undefined;
859
+ salto_space_metadata?: {
860
+ door_name: string;
861
+ ext_door_id: string;
862
+ door_description?: string | undefined;
863
+ } | undefined;
864
+ }[];
865
+ code?: string | null | undefined;
866
+ starts_at?: string | undefined;
867
+ ends_at?: string | undefined;
868
+ visionline_metadata?: {
869
+ card_function_type: "guest" | "staff";
870
+ auto_join?: boolean | undefined;
871
+ joiner_acs_credential_ids?: string[] | undefined;
872
+ guest_acs_entrance_ids?: string[] | undefined;
873
+ common_acs_entrance_ids?: string[] | undefined;
874
+ is_valid?: boolean | undefined;
875
+ card_id?: string | undefined;
876
+ credential_id?: string | undefined;
877
+ } | undefined;
878
+ assa_abloy_vostio_metadata?: {
879
+ endpoint_id?: string | undefined;
880
+ auto_join?: boolean | undefined;
881
+ override_guest_acs_entrance_ids?: string[] | undefined;
882
+ key_id?: string | undefined;
883
+ key_issuing_request_id?: string | undefined;
884
+ door_names?: string[] | undefined;
885
+ } | undefined;
886
+ is_one_time_use?: boolean | undefined;
887
+ issued_at?: string | null | undefined;
888
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
889
+ external_type_display_name?: string | undefined;
890
+ acs_user_id?: string | undefined;
891
+ acs_credential_pool_id?: string | undefined;
892
+ parent_acs_credential_id?: string | undefined;
893
+ card_number?: string | null | undefined;
894
+ is_issued?: boolean | undefined;
895
+ is_multi_phone_sync_credential?: boolean | undefined;
896
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
897
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
898
+ }[];
899
+ }>;
900
+ export declare const phone_session: z.ZodObject<{
901
+ provider_sessions: z.ZodArray<z.ZodObject<{
902
+ phone_registration: z.ZodObject<{
903
+ phone_registration_id: z.ZodString;
904
+ provider_state: z.ZodAny;
905
+ provider_name: z.ZodNullable<z.ZodString>;
906
+ is_being_activated: z.ZodBoolean;
907
+ }, "strip", z.ZodTypeAny, {
908
+ phone_registration_id: string;
909
+ provider_name: string | null;
910
+ is_being_activated: boolean;
911
+ provider_state?: any;
912
+ }, {
913
+ phone_registration_id: string;
914
+ provider_name: string | null;
915
+ is_being_activated: boolean;
916
+ provider_state?: any;
917
+ }>;
918
+ acs_credentials: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
919
+ acs_credential_id: z.ZodString;
920
+ acs_user_id: z.ZodOptional<z.ZodString>;
921
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
922
+ acs_system_id: z.ZodString;
923
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
924
+ display_name: z.ZodString;
925
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
926
+ is_one_time_use: z.ZodOptional<z.ZodBoolean>;
927
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
928
+ is_issued: z.ZodOptional<z.ZodBoolean>;
929
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
930
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
931
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access"]>>;
932
+ external_type_display_name: z.ZodOptional<z.ZodString>;
933
+ created_at: z.ZodString;
934
+ workspace_id: z.ZodString;
935
+ starts_at: z.ZodOptional<z.ZodString>;
936
+ ends_at: z.ZodOptional<z.ZodString>;
937
+ errors: z.ZodArray<z.ZodObject<{
938
+ error_code: z.ZodString;
939
+ message: z.ZodString;
940
+ }, "strip", z.ZodTypeAny, {
941
+ message: string;
942
+ error_code: string;
943
+ }, {
944
+ message: string;
945
+ error_code: string;
946
+ }>, "many">;
947
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
948
+ created_at: z.ZodString;
949
+ message: z.ZodString;
950
+ }, {
951
+ warning_code: z.ZodLiteral<"waiting_to_be_issued">;
952
+ }>, "strip", z.ZodTypeAny, {
953
+ message: string;
954
+ created_at: string;
955
+ warning_code: "waiting_to_be_issued";
956
+ }, {
957
+ message: string;
958
+ created_at: string;
959
+ warning_code: "waiting_to_be_issued";
960
+ }>, z.ZodObject<z.objectUtil.extendShape<{
961
+ created_at: z.ZodString;
962
+ message: z.ZodString;
963
+ }, {
964
+ warning_code: z.ZodLiteral<"schedule_externally_modified">;
965
+ }>, "strip", z.ZodTypeAny, {
966
+ message: string;
967
+ created_at: string;
968
+ warning_code: "schedule_externally_modified";
969
+ }, {
970
+ message: string;
971
+ created_at: string;
972
+ warning_code: "schedule_externally_modified";
973
+ }>, z.ZodObject<z.objectUtil.extendShape<{
974
+ created_at: z.ZodString;
975
+ message: z.ZodString;
976
+ }, {
977
+ warning_code: z.ZodLiteral<"schedule_modified">;
978
+ }>, "strip", z.ZodTypeAny, {
979
+ message: string;
980
+ created_at: string;
981
+ warning_code: "schedule_modified";
982
+ }, {
983
+ message: string;
984
+ created_at: string;
985
+ warning_code: "schedule_modified";
986
+ }>, z.ZodObject<z.objectUtil.extendShape<{
987
+ created_at: z.ZodString;
988
+ message: z.ZodString;
989
+ }, {
990
+ warning_code: z.ZodLiteral<"being_deleted">;
991
+ }>, "strip", z.ZodTypeAny, {
992
+ message: string;
993
+ created_at: string;
994
+ warning_code: "being_deleted";
995
+ }, {
996
+ message: string;
997
+ created_at: string;
998
+ warning_code: "being_deleted";
999
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1000
+ created_at: z.ZodString;
1001
+ message: z.ZodString;
1002
+ }, {
1003
+ warning_code: z.ZodLiteral<"unknown_issue_with_acs_credential">;
1004
+ }>, "strip", z.ZodTypeAny, {
1005
+ message: string;
1006
+ created_at: string;
1007
+ warning_code: "unknown_issue_with_acs_credential";
1008
+ }, {
1009
+ message: string;
1010
+ created_at: string;
1011
+ warning_code: "unknown_issue_with_acs_credential";
1012
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1013
+ created_at: z.ZodString;
1014
+ message: z.ZodString;
1015
+ }, {
1016
+ warning_code: z.ZodLiteral<"needs_to_be_reissued">;
1017
+ }>, "strip", z.ZodTypeAny, {
1018
+ message: string;
1019
+ created_at: string;
1020
+ warning_code: "needs_to_be_reissued";
1021
+ }, {
1022
+ message: string;
1023
+ created_at: string;
1024
+ warning_code: "needs_to_be_reissued";
1025
+ }>]>, "many">;
1026
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
1027
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1028
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1030
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1031
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1032
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1033
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1034
+ is_valid: z.ZodOptional<z.ZodBoolean>;
1035
+ auto_join: z.ZodOptional<z.ZodBoolean>;
1036
+ card_id: z.ZodOptional<z.ZodString>;
1037
+ credential_id: z.ZodOptional<z.ZodString>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ card_function_type: "guest" | "staff";
1040
+ auto_join?: boolean | undefined;
1041
+ joiner_acs_credential_ids?: string[] | undefined;
1042
+ guest_acs_entrance_ids?: string[] | undefined;
1043
+ common_acs_entrance_ids?: string[] | undefined;
1044
+ is_valid?: boolean | undefined;
1045
+ card_id?: string | undefined;
1046
+ credential_id?: string | undefined;
1047
+ }, {
1048
+ card_function_type: "guest" | "staff";
1049
+ auto_join?: boolean | undefined;
1050
+ joiner_acs_credential_ids?: string[] | undefined;
1051
+ guest_acs_entrance_ids?: string[] | undefined;
1052
+ common_acs_entrance_ids?: string[] | undefined;
1053
+ is_valid?: boolean | undefined;
1054
+ card_id?: string | undefined;
1055
+ credential_id?: string | undefined;
1056
+ }>>;
1057
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
1058
+ auto_join: z.ZodOptional<z.ZodBoolean>;
1059
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1060
+ key_id: z.ZodOptional<z.ZodString>;
1061
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
1062
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1063
+ endpoint_id: z.ZodOptional<z.ZodString>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ endpoint_id?: string | undefined;
1066
+ auto_join?: boolean | undefined;
1067
+ override_guest_acs_entrance_ids?: string[] | undefined;
1068
+ key_id?: string | undefined;
1069
+ key_issuing_request_id?: string | undefined;
1070
+ door_names?: string[] | undefined;
1071
+ }, {
1072
+ endpoint_id?: string | undefined;
1073
+ auto_join?: boolean | undefined;
1074
+ override_guest_acs_entrance_ids?: string[] | undefined;
1075
+ key_id?: string | undefined;
1076
+ key_issuing_request_id?: string | undefined;
1077
+ door_names?: string[] | undefined;
1078
+ }>>;
1079
+ }, {
1080
+ is_managed: z.ZodLiteral<true>;
1081
+ }>, {
1082
+ acs_entrances: z.ZodArray<z.ZodObject<{
1083
+ acs_system_id: z.ZodString;
1084
+ acs_entrance_id: z.ZodString;
1085
+ created_at: z.ZodString;
1086
+ display_name: z.ZodString;
1087
+ errors: z.ZodArray<z.ZodObject<{
1088
+ error_code: z.ZodString;
1089
+ message: z.ZodString;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ message: string;
1092
+ error_code: string;
1093
+ }, {
1094
+ message: string;
1095
+ error_code: string;
1096
+ }>, "many">;
1097
+ latch_metadata: z.ZodOptional<z.ZodObject<{
1098
+ accessibility_type: z.ZodString;
1099
+ door_name: z.ZodString;
1100
+ door_type: z.ZodString;
1101
+ is_connected: z.ZodBoolean;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ door_name: string;
1104
+ is_connected: boolean;
1105
+ door_type: string;
1106
+ accessibility_type: string;
1107
+ }, {
1108
+ door_name: string;
1109
+ is_connected: boolean;
1110
+ door_type: string;
1111
+ accessibility_type: string;
1112
+ }>>;
1113
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1114
+ door_name: z.ZodString;
1115
+ door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
1116
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
1117
+ visionline_door_profile_id: z.ZodString;
1118
+ visionline_door_profile_type: z.ZodEnum<["BLE", "commonDoor", "touch"]>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ visionline_door_profile_id: string;
1121
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1122
+ }, {
1123
+ visionline_door_profile_id: string;
1124
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1125
+ }>, "many">>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ door_name: string;
1128
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1129
+ profiles?: {
1130
+ visionline_door_profile_id: string;
1131
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1132
+ }[] | undefined;
1133
+ }, {
1134
+ door_name: string;
1135
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1136
+ profiles?: {
1137
+ visionline_door_profile_id: string;
1138
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1139
+ }[] | undefined;
1140
+ }>>;
1141
+ salto_ks_metadata: z.ZodOptional<z.ZodObject<{
1142
+ door_name: z.ZodString;
1143
+ locked_state: z.ZodString;
1144
+ lock_type: z.ZodString;
1145
+ online: z.ZodOptional<z.ZodBoolean>;
1146
+ battery_level: z.ZodString;
1147
+ left_open_alarm: z.ZodOptional<z.ZodBoolean>;
1148
+ intrusion_alarm: z.ZodOptional<z.ZodBoolean>;
1149
+ privacy_mode: z.ZodOptional<z.ZodBoolean>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ lock_type: string;
1152
+ battery_level: string;
1153
+ locked_state: string;
1154
+ door_name: string;
1155
+ online?: boolean | undefined;
1156
+ left_open_alarm?: boolean | undefined;
1157
+ intrusion_alarm?: boolean | undefined;
1158
+ privacy_mode?: boolean | undefined;
1159
+ }, {
1160
+ lock_type: string;
1161
+ battery_level: string;
1162
+ locked_state: string;
1163
+ door_name: string;
1164
+ online?: boolean | undefined;
1165
+ left_open_alarm?: boolean | undefined;
1166
+ intrusion_alarm?: boolean | undefined;
1167
+ privacy_mode?: boolean | undefined;
1168
+ }>>;
1169
+ dormakaba_community_metadata: z.ZodOptional<z.ZodObject<{
1170
+ access_point_name: z.ZodString;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ access_point_name: string;
1173
+ }, {
1174
+ access_point_name: string;
1175
+ }>>;
1176
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
1177
+ door_type: z.ZodEnum<["CommonDoor", "EntranceDoor", "GuestDoor", "Elevator"]>;
1178
+ door_name: z.ZodString;
1179
+ door_number: z.ZodOptional<z.ZodNumber>;
1180
+ stand_open: z.ZodOptional<z.ZodBoolean>;
1181
+ pms_id: z.ZodOptional<z.ZodString>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ door_name: string;
1184
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1185
+ door_number?: number | undefined;
1186
+ stand_open?: boolean | undefined;
1187
+ pms_id?: string | undefined;
1188
+ }, {
1189
+ door_name: string;
1190
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1191
+ door_number?: number | undefined;
1192
+ stand_open?: boolean | undefined;
1193
+ pms_id?: string | undefined;
1194
+ }>>;
1195
+ salto_space_metadata: z.ZodOptional<z.ZodObject<{
1196
+ door_name: z.ZodString;
1197
+ ext_door_id: z.ZodString;
1198
+ door_description: z.ZodOptional<z.ZodString>;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ door_name: string;
1201
+ ext_door_id: string;
1202
+ door_description?: string | undefined;
1203
+ }, {
1204
+ door_name: string;
1205
+ ext_door_id: string;
1206
+ door_description?: string | undefined;
1207
+ }>>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ display_name: string;
1210
+ created_at: string;
1211
+ errors: {
1212
+ message: string;
1213
+ error_code: string;
1214
+ }[];
1215
+ acs_system_id: string;
1216
+ acs_entrance_id: string;
1217
+ salto_ks_metadata?: {
1218
+ lock_type: string;
1219
+ battery_level: string;
1220
+ locked_state: string;
1221
+ door_name: string;
1222
+ online?: boolean | undefined;
1223
+ left_open_alarm?: boolean | undefined;
1224
+ intrusion_alarm?: boolean | undefined;
1225
+ privacy_mode?: boolean | undefined;
1226
+ } | undefined;
1227
+ visionline_metadata?: {
1228
+ door_name: string;
1229
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1230
+ profiles?: {
1231
+ visionline_door_profile_id: string;
1232
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1233
+ }[] | undefined;
1234
+ } | undefined;
1235
+ assa_abloy_vostio_metadata?: {
1236
+ door_name: string;
1237
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1238
+ door_number?: number | undefined;
1239
+ stand_open?: boolean | undefined;
1240
+ pms_id?: string | undefined;
1241
+ } | undefined;
1242
+ latch_metadata?: {
1243
+ door_name: string;
1244
+ is_connected: boolean;
1245
+ door_type: string;
1246
+ accessibility_type: string;
1247
+ } | undefined;
1248
+ dormakaba_community_metadata?: {
1249
+ access_point_name: string;
1250
+ } | undefined;
1251
+ salto_space_metadata?: {
1252
+ door_name: string;
1253
+ ext_door_id: string;
1254
+ door_description?: string | undefined;
1255
+ } | undefined;
1256
+ }, {
1257
+ display_name: string;
1258
+ created_at: string;
1259
+ errors: {
1260
+ message: string;
1261
+ error_code: string;
1262
+ }[];
1263
+ acs_system_id: string;
1264
+ acs_entrance_id: string;
1265
+ salto_ks_metadata?: {
1266
+ lock_type: string;
1267
+ battery_level: string;
1268
+ locked_state: string;
1269
+ door_name: string;
1270
+ online?: boolean | undefined;
1271
+ left_open_alarm?: boolean | undefined;
1272
+ intrusion_alarm?: boolean | undefined;
1273
+ privacy_mode?: boolean | undefined;
1274
+ } | undefined;
1275
+ visionline_metadata?: {
1276
+ door_name: string;
1277
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1278
+ profiles?: {
1279
+ visionline_door_profile_id: string;
1280
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1281
+ }[] | undefined;
1282
+ } | undefined;
1283
+ assa_abloy_vostio_metadata?: {
1284
+ door_name: string;
1285
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1286
+ door_number?: number | undefined;
1287
+ stand_open?: boolean | undefined;
1288
+ pms_id?: string | undefined;
1289
+ } | undefined;
1290
+ latch_metadata?: {
1291
+ door_name: string;
1292
+ is_connected: boolean;
1293
+ door_type: string;
1294
+ accessibility_type: string;
1295
+ } | undefined;
1296
+ dormakaba_community_metadata?: {
1297
+ access_point_name: string;
1298
+ } | undefined;
1299
+ salto_space_metadata?: {
1300
+ door_name: string;
1301
+ ext_door_id: string;
1302
+ door_description?: string | undefined;
1303
+ } | undefined;
1304
+ }>, "many">;
1305
+ }>, "strip", z.ZodTypeAny, {
1306
+ display_name: string;
1307
+ workspace_id: string;
1308
+ created_at: string;
1309
+ errors: {
1310
+ message: string;
1311
+ error_code: string;
1312
+ }[];
1313
+ warnings: ({
1314
+ message: string;
1315
+ created_at: string;
1316
+ warning_code: "waiting_to_be_issued";
1317
+ } | {
1318
+ message: string;
1319
+ created_at: string;
1320
+ warning_code: "schedule_externally_modified";
1321
+ } | {
1322
+ message: string;
1323
+ created_at: string;
1324
+ warning_code: "schedule_modified";
1325
+ } | {
1326
+ message: string;
1327
+ created_at: string;
1328
+ warning_code: "being_deleted";
1329
+ } | {
1330
+ message: string;
1331
+ created_at: string;
1332
+ warning_code: "unknown_issue_with_acs_credential";
1333
+ } | {
1334
+ message: string;
1335
+ created_at: string;
1336
+ warning_code: "needs_to_be_reissued";
1337
+ })[];
1338
+ is_managed: true;
1339
+ acs_system_id: string;
1340
+ acs_credential_id: string;
1341
+ access_method: "code" | "card" | "mobile_key";
1342
+ acs_entrances: {
1343
+ display_name: string;
1344
+ created_at: string;
1345
+ errors: {
1346
+ message: string;
1347
+ error_code: string;
1348
+ }[];
1349
+ acs_system_id: string;
1350
+ acs_entrance_id: string;
1351
+ salto_ks_metadata?: {
1352
+ lock_type: string;
1353
+ battery_level: string;
1354
+ locked_state: string;
1355
+ door_name: string;
1356
+ online?: boolean | undefined;
1357
+ left_open_alarm?: boolean | undefined;
1358
+ intrusion_alarm?: boolean | undefined;
1359
+ privacy_mode?: boolean | undefined;
1360
+ } | undefined;
1361
+ visionline_metadata?: {
1362
+ door_name: string;
1363
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1364
+ profiles?: {
1365
+ visionline_door_profile_id: string;
1366
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1367
+ }[] | undefined;
1368
+ } | undefined;
1369
+ assa_abloy_vostio_metadata?: {
1370
+ door_name: string;
1371
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1372
+ door_number?: number | undefined;
1373
+ stand_open?: boolean | undefined;
1374
+ pms_id?: string | undefined;
1375
+ } | undefined;
1376
+ latch_metadata?: {
1377
+ door_name: string;
1378
+ is_connected: boolean;
1379
+ door_type: string;
1380
+ accessibility_type: string;
1381
+ } | undefined;
1382
+ dormakaba_community_metadata?: {
1383
+ access_point_name: string;
1384
+ } | undefined;
1385
+ salto_space_metadata?: {
1386
+ door_name: string;
1387
+ ext_door_id: string;
1388
+ door_description?: string | undefined;
1389
+ } | undefined;
1390
+ }[];
1391
+ code?: string | null | undefined;
1392
+ starts_at?: string | undefined;
1393
+ ends_at?: string | undefined;
1394
+ visionline_metadata?: {
1395
+ card_function_type: "guest" | "staff";
1396
+ auto_join?: boolean | undefined;
1397
+ joiner_acs_credential_ids?: string[] | undefined;
1398
+ guest_acs_entrance_ids?: string[] | undefined;
1399
+ common_acs_entrance_ids?: string[] | undefined;
1400
+ is_valid?: boolean | undefined;
1401
+ card_id?: string | undefined;
1402
+ credential_id?: string | undefined;
1403
+ } | undefined;
1404
+ assa_abloy_vostio_metadata?: {
1405
+ endpoint_id?: string | undefined;
1406
+ auto_join?: boolean | undefined;
1407
+ override_guest_acs_entrance_ids?: string[] | undefined;
1408
+ key_id?: string | undefined;
1409
+ key_issuing_request_id?: string | undefined;
1410
+ door_names?: string[] | undefined;
1411
+ } | undefined;
1412
+ is_one_time_use?: boolean | undefined;
1413
+ issued_at?: string | null | undefined;
1414
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1415
+ external_type_display_name?: string | undefined;
1416
+ acs_user_id?: string | undefined;
1417
+ acs_credential_pool_id?: string | undefined;
1418
+ parent_acs_credential_id?: string | undefined;
1419
+ card_number?: string | null | undefined;
1420
+ is_issued?: boolean | undefined;
1421
+ is_multi_phone_sync_credential?: boolean | undefined;
1422
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1423
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1424
+ }, {
1425
+ display_name: string;
1426
+ workspace_id: string;
1427
+ created_at: string;
1428
+ errors: {
1429
+ message: string;
1430
+ error_code: string;
1431
+ }[];
1432
+ warnings: ({
1433
+ message: string;
1434
+ created_at: string;
1435
+ warning_code: "waiting_to_be_issued";
1436
+ } | {
1437
+ message: string;
1438
+ created_at: string;
1439
+ warning_code: "schedule_externally_modified";
1440
+ } | {
1441
+ message: string;
1442
+ created_at: string;
1443
+ warning_code: "schedule_modified";
1444
+ } | {
1445
+ message: string;
1446
+ created_at: string;
1447
+ warning_code: "being_deleted";
1448
+ } | {
1449
+ message: string;
1450
+ created_at: string;
1451
+ warning_code: "unknown_issue_with_acs_credential";
1452
+ } | {
1453
+ message: string;
1454
+ created_at: string;
1455
+ warning_code: "needs_to_be_reissued";
1456
+ })[];
1457
+ is_managed: true;
1458
+ acs_system_id: string;
1459
+ acs_credential_id: string;
1460
+ access_method: "code" | "card" | "mobile_key";
1461
+ acs_entrances: {
1462
+ display_name: string;
1463
+ created_at: string;
1464
+ errors: {
1465
+ message: string;
1466
+ error_code: string;
1467
+ }[];
1468
+ acs_system_id: string;
1469
+ acs_entrance_id: string;
1470
+ salto_ks_metadata?: {
1471
+ lock_type: string;
1472
+ battery_level: string;
1473
+ locked_state: string;
1474
+ door_name: string;
1475
+ online?: boolean | undefined;
1476
+ left_open_alarm?: boolean | undefined;
1477
+ intrusion_alarm?: boolean | undefined;
1478
+ privacy_mode?: boolean | undefined;
1479
+ } | undefined;
1480
+ visionline_metadata?: {
1481
+ door_name: string;
1482
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1483
+ profiles?: {
1484
+ visionline_door_profile_id: string;
1485
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1486
+ }[] | undefined;
1487
+ } | undefined;
1488
+ assa_abloy_vostio_metadata?: {
1489
+ door_name: string;
1490
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1491
+ door_number?: number | undefined;
1492
+ stand_open?: boolean | undefined;
1493
+ pms_id?: string | undefined;
1494
+ } | undefined;
1495
+ latch_metadata?: {
1496
+ door_name: string;
1497
+ is_connected: boolean;
1498
+ door_type: string;
1499
+ accessibility_type: string;
1500
+ } | undefined;
1501
+ dormakaba_community_metadata?: {
1502
+ access_point_name: string;
1503
+ } | undefined;
1504
+ salto_space_metadata?: {
1505
+ door_name: string;
1506
+ ext_door_id: string;
1507
+ door_description?: string | undefined;
1508
+ } | undefined;
1509
+ }[];
1510
+ code?: string | null | undefined;
1511
+ starts_at?: string | undefined;
1512
+ ends_at?: string | undefined;
1513
+ visionline_metadata?: {
1514
+ card_function_type: "guest" | "staff";
1515
+ auto_join?: boolean | undefined;
1516
+ joiner_acs_credential_ids?: string[] | undefined;
1517
+ guest_acs_entrance_ids?: string[] | undefined;
1518
+ common_acs_entrance_ids?: string[] | undefined;
1519
+ is_valid?: boolean | undefined;
1520
+ card_id?: string | undefined;
1521
+ credential_id?: string | undefined;
1522
+ } | undefined;
1523
+ assa_abloy_vostio_metadata?: {
1524
+ endpoint_id?: string | undefined;
1525
+ auto_join?: boolean | undefined;
1526
+ override_guest_acs_entrance_ids?: string[] | undefined;
1527
+ key_id?: string | undefined;
1528
+ key_issuing_request_id?: string | undefined;
1529
+ door_names?: string[] | undefined;
1530
+ } | undefined;
1531
+ is_one_time_use?: boolean | undefined;
1532
+ issued_at?: string | null | undefined;
1533
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1534
+ external_type_display_name?: string | undefined;
1535
+ acs_user_id?: string | undefined;
1536
+ acs_credential_pool_id?: string | undefined;
1537
+ parent_acs_credential_id?: string | undefined;
1538
+ card_number?: string | null | undefined;
1539
+ is_issued?: boolean | undefined;
1540
+ is_multi_phone_sync_credential?: boolean | undefined;
1541
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1542
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1543
+ }>, "many">;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ phone_registration: {
1546
+ phone_registration_id: string;
1547
+ provider_name: string | null;
1548
+ is_being_activated: boolean;
1549
+ provider_state?: any;
1550
+ };
1551
+ acs_credentials: {
1552
+ display_name: string;
1553
+ workspace_id: string;
1554
+ created_at: string;
1555
+ errors: {
1556
+ message: string;
1557
+ error_code: string;
1558
+ }[];
1559
+ warnings: ({
1560
+ message: string;
1561
+ created_at: string;
1562
+ warning_code: "waiting_to_be_issued";
1563
+ } | {
1564
+ message: string;
1565
+ created_at: string;
1566
+ warning_code: "schedule_externally_modified";
1567
+ } | {
1568
+ message: string;
1569
+ created_at: string;
1570
+ warning_code: "schedule_modified";
1571
+ } | {
1572
+ message: string;
1573
+ created_at: string;
1574
+ warning_code: "being_deleted";
1575
+ } | {
1576
+ message: string;
1577
+ created_at: string;
1578
+ warning_code: "unknown_issue_with_acs_credential";
1579
+ } | {
1580
+ message: string;
1581
+ created_at: string;
1582
+ warning_code: "needs_to_be_reissued";
1583
+ })[];
1584
+ is_managed: true;
1585
+ acs_system_id: string;
1586
+ acs_credential_id: string;
1587
+ access_method: "code" | "card" | "mobile_key";
1588
+ acs_entrances: {
1589
+ display_name: string;
1590
+ created_at: string;
1591
+ errors: {
1592
+ message: string;
1593
+ error_code: string;
1594
+ }[];
1595
+ acs_system_id: string;
1596
+ acs_entrance_id: string;
1597
+ salto_ks_metadata?: {
1598
+ lock_type: string;
1599
+ battery_level: string;
1600
+ locked_state: string;
1601
+ door_name: string;
1602
+ online?: boolean | undefined;
1603
+ left_open_alarm?: boolean | undefined;
1604
+ intrusion_alarm?: boolean | undefined;
1605
+ privacy_mode?: boolean | undefined;
1606
+ } | undefined;
1607
+ visionline_metadata?: {
1608
+ door_name: string;
1609
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1610
+ profiles?: {
1611
+ visionline_door_profile_id: string;
1612
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1613
+ }[] | undefined;
1614
+ } | undefined;
1615
+ assa_abloy_vostio_metadata?: {
1616
+ door_name: string;
1617
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1618
+ door_number?: number | undefined;
1619
+ stand_open?: boolean | undefined;
1620
+ pms_id?: string | undefined;
1621
+ } | undefined;
1622
+ latch_metadata?: {
1623
+ door_name: string;
1624
+ is_connected: boolean;
1625
+ door_type: string;
1626
+ accessibility_type: string;
1627
+ } | undefined;
1628
+ dormakaba_community_metadata?: {
1629
+ access_point_name: string;
1630
+ } | undefined;
1631
+ salto_space_metadata?: {
1632
+ door_name: string;
1633
+ ext_door_id: string;
1634
+ door_description?: string | undefined;
1635
+ } | undefined;
1636
+ }[];
1637
+ code?: string | null | undefined;
1638
+ starts_at?: string | undefined;
1639
+ ends_at?: string | undefined;
1640
+ visionline_metadata?: {
1641
+ card_function_type: "guest" | "staff";
1642
+ auto_join?: boolean | undefined;
1643
+ joiner_acs_credential_ids?: string[] | undefined;
1644
+ guest_acs_entrance_ids?: string[] | undefined;
1645
+ common_acs_entrance_ids?: string[] | undefined;
1646
+ is_valid?: boolean | undefined;
1647
+ card_id?: string | undefined;
1648
+ credential_id?: string | undefined;
1649
+ } | undefined;
1650
+ assa_abloy_vostio_metadata?: {
1651
+ endpoint_id?: string | undefined;
1652
+ auto_join?: boolean | undefined;
1653
+ override_guest_acs_entrance_ids?: string[] | undefined;
1654
+ key_id?: string | undefined;
1655
+ key_issuing_request_id?: string | undefined;
1656
+ door_names?: string[] | undefined;
1657
+ } | undefined;
1658
+ is_one_time_use?: boolean | undefined;
1659
+ issued_at?: string | null | undefined;
1660
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1661
+ external_type_display_name?: string | undefined;
1662
+ acs_user_id?: string | undefined;
1663
+ acs_credential_pool_id?: string | undefined;
1664
+ parent_acs_credential_id?: string | undefined;
1665
+ card_number?: string | null | undefined;
1666
+ is_issued?: boolean | undefined;
1667
+ is_multi_phone_sync_credential?: boolean | undefined;
1668
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1669
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1670
+ }[];
1671
+ }, {
1672
+ phone_registration: {
1673
+ phone_registration_id: string;
1674
+ provider_name: string | null;
1675
+ is_being_activated: boolean;
1676
+ provider_state?: any;
1677
+ };
1678
+ acs_credentials: {
1679
+ display_name: string;
1680
+ workspace_id: string;
1681
+ created_at: string;
1682
+ errors: {
1683
+ message: string;
1684
+ error_code: string;
1685
+ }[];
1686
+ warnings: ({
1687
+ message: string;
1688
+ created_at: string;
1689
+ warning_code: "waiting_to_be_issued";
1690
+ } | {
1691
+ message: string;
1692
+ created_at: string;
1693
+ warning_code: "schedule_externally_modified";
1694
+ } | {
1695
+ message: string;
1696
+ created_at: string;
1697
+ warning_code: "schedule_modified";
1698
+ } | {
1699
+ message: string;
1700
+ created_at: string;
1701
+ warning_code: "being_deleted";
1702
+ } | {
1703
+ message: string;
1704
+ created_at: string;
1705
+ warning_code: "unknown_issue_with_acs_credential";
1706
+ } | {
1707
+ message: string;
1708
+ created_at: string;
1709
+ warning_code: "needs_to_be_reissued";
1710
+ })[];
1711
+ is_managed: true;
1712
+ acs_system_id: string;
1713
+ acs_credential_id: string;
1714
+ access_method: "code" | "card" | "mobile_key";
1715
+ acs_entrances: {
1716
+ display_name: string;
1717
+ created_at: string;
1718
+ errors: {
1719
+ message: string;
1720
+ error_code: string;
1721
+ }[];
1722
+ acs_system_id: string;
1723
+ acs_entrance_id: string;
1724
+ salto_ks_metadata?: {
1725
+ lock_type: string;
1726
+ battery_level: string;
1727
+ locked_state: string;
1728
+ door_name: string;
1729
+ online?: boolean | undefined;
1730
+ left_open_alarm?: boolean | undefined;
1731
+ intrusion_alarm?: boolean | undefined;
1732
+ privacy_mode?: boolean | undefined;
1733
+ } | undefined;
1734
+ visionline_metadata?: {
1735
+ door_name: string;
1736
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1737
+ profiles?: {
1738
+ visionline_door_profile_id: string;
1739
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1740
+ }[] | undefined;
1741
+ } | undefined;
1742
+ assa_abloy_vostio_metadata?: {
1743
+ door_name: string;
1744
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1745
+ door_number?: number | undefined;
1746
+ stand_open?: boolean | undefined;
1747
+ pms_id?: string | undefined;
1748
+ } | undefined;
1749
+ latch_metadata?: {
1750
+ door_name: string;
1751
+ is_connected: boolean;
1752
+ door_type: string;
1753
+ accessibility_type: string;
1754
+ } | undefined;
1755
+ dormakaba_community_metadata?: {
1756
+ access_point_name: string;
1757
+ } | undefined;
1758
+ salto_space_metadata?: {
1759
+ door_name: string;
1760
+ ext_door_id: string;
1761
+ door_description?: string | undefined;
1762
+ } | undefined;
1763
+ }[];
1764
+ code?: string | null | undefined;
1765
+ starts_at?: string | undefined;
1766
+ ends_at?: string | undefined;
1767
+ visionline_metadata?: {
1768
+ card_function_type: "guest" | "staff";
1769
+ auto_join?: boolean | undefined;
1770
+ joiner_acs_credential_ids?: string[] | undefined;
1771
+ guest_acs_entrance_ids?: string[] | undefined;
1772
+ common_acs_entrance_ids?: string[] | undefined;
1773
+ is_valid?: boolean | undefined;
1774
+ card_id?: string | undefined;
1775
+ credential_id?: string | undefined;
1776
+ } | undefined;
1777
+ assa_abloy_vostio_metadata?: {
1778
+ endpoint_id?: string | undefined;
1779
+ auto_join?: boolean | undefined;
1780
+ override_guest_acs_entrance_ids?: string[] | undefined;
1781
+ key_id?: string | undefined;
1782
+ key_issuing_request_id?: string | undefined;
1783
+ door_names?: string[] | undefined;
1784
+ } | undefined;
1785
+ is_one_time_use?: boolean | undefined;
1786
+ issued_at?: string | null | undefined;
1787
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1788
+ external_type_display_name?: string | undefined;
1789
+ acs_user_id?: string | undefined;
1790
+ acs_credential_pool_id?: string | undefined;
1791
+ parent_acs_credential_id?: string | undefined;
1792
+ card_number?: string | null | undefined;
1793
+ is_issued?: boolean | undefined;
1794
+ is_multi_phone_sync_credential?: boolean | undefined;
1795
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1796
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1797
+ }[];
1798
+ }>, "many">;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ provider_sessions: {
1801
+ phone_registration: {
1802
+ phone_registration_id: string;
1803
+ provider_name: string | null;
1804
+ is_being_activated: boolean;
1805
+ provider_state?: any;
1806
+ };
1807
+ acs_credentials: {
1808
+ display_name: string;
1809
+ workspace_id: string;
1810
+ created_at: string;
1811
+ errors: {
1812
+ message: string;
1813
+ error_code: string;
1814
+ }[];
1815
+ warnings: ({
1816
+ message: string;
1817
+ created_at: string;
1818
+ warning_code: "waiting_to_be_issued";
1819
+ } | {
1820
+ message: string;
1821
+ created_at: string;
1822
+ warning_code: "schedule_externally_modified";
1823
+ } | {
1824
+ message: string;
1825
+ created_at: string;
1826
+ warning_code: "schedule_modified";
1827
+ } | {
1828
+ message: string;
1829
+ created_at: string;
1830
+ warning_code: "being_deleted";
1831
+ } | {
1832
+ message: string;
1833
+ created_at: string;
1834
+ warning_code: "unknown_issue_with_acs_credential";
1835
+ } | {
1836
+ message: string;
1837
+ created_at: string;
1838
+ warning_code: "needs_to_be_reissued";
1839
+ })[];
1840
+ is_managed: true;
1841
+ acs_system_id: string;
1842
+ acs_credential_id: string;
1843
+ access_method: "code" | "card" | "mobile_key";
1844
+ acs_entrances: {
1845
+ display_name: string;
1846
+ created_at: string;
1847
+ errors: {
1848
+ message: string;
1849
+ error_code: string;
1850
+ }[];
1851
+ acs_system_id: string;
1852
+ acs_entrance_id: string;
1853
+ salto_ks_metadata?: {
1854
+ lock_type: string;
1855
+ battery_level: string;
1856
+ locked_state: string;
1857
+ door_name: string;
1858
+ online?: boolean | undefined;
1859
+ left_open_alarm?: boolean | undefined;
1860
+ intrusion_alarm?: boolean | undefined;
1861
+ privacy_mode?: boolean | undefined;
1862
+ } | undefined;
1863
+ visionline_metadata?: {
1864
+ door_name: string;
1865
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1866
+ profiles?: {
1867
+ visionline_door_profile_id: string;
1868
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1869
+ }[] | undefined;
1870
+ } | undefined;
1871
+ assa_abloy_vostio_metadata?: {
1872
+ door_name: string;
1873
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
1874
+ door_number?: number | undefined;
1875
+ stand_open?: boolean | undefined;
1876
+ pms_id?: string | undefined;
1877
+ } | undefined;
1878
+ latch_metadata?: {
1879
+ door_name: string;
1880
+ is_connected: boolean;
1881
+ door_type: string;
1882
+ accessibility_type: string;
1883
+ } | undefined;
1884
+ dormakaba_community_metadata?: {
1885
+ access_point_name: string;
1886
+ } | undefined;
1887
+ salto_space_metadata?: {
1888
+ door_name: string;
1889
+ ext_door_id: string;
1890
+ door_description?: string | undefined;
1891
+ } | undefined;
1892
+ }[];
1893
+ code?: string | null | undefined;
1894
+ starts_at?: string | undefined;
1895
+ ends_at?: string | undefined;
1896
+ visionline_metadata?: {
1897
+ card_function_type: "guest" | "staff";
1898
+ auto_join?: boolean | undefined;
1899
+ joiner_acs_credential_ids?: string[] | undefined;
1900
+ guest_acs_entrance_ids?: string[] | undefined;
1901
+ common_acs_entrance_ids?: string[] | undefined;
1902
+ is_valid?: boolean | undefined;
1903
+ card_id?: string | undefined;
1904
+ credential_id?: string | undefined;
1905
+ } | undefined;
1906
+ assa_abloy_vostio_metadata?: {
1907
+ endpoint_id?: string | undefined;
1908
+ auto_join?: boolean | undefined;
1909
+ override_guest_acs_entrance_ids?: string[] | undefined;
1910
+ key_id?: string | undefined;
1911
+ key_issuing_request_id?: string | undefined;
1912
+ door_names?: string[] | undefined;
1913
+ } | undefined;
1914
+ is_one_time_use?: boolean | undefined;
1915
+ issued_at?: string | null | undefined;
1916
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1917
+ external_type_display_name?: string | undefined;
1918
+ acs_user_id?: string | undefined;
1919
+ acs_credential_pool_id?: string | undefined;
1920
+ parent_acs_credential_id?: string | undefined;
1921
+ card_number?: string | null | undefined;
1922
+ is_issued?: boolean | undefined;
1923
+ is_multi_phone_sync_credential?: boolean | undefined;
1924
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1925
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1926
+ }[];
1927
+ }[];
1928
+ }, {
1929
+ provider_sessions: {
1930
+ phone_registration: {
1931
+ phone_registration_id: string;
1932
+ provider_name: string | null;
1933
+ is_being_activated: boolean;
1934
+ provider_state?: any;
1935
+ };
1936
+ acs_credentials: {
1937
+ display_name: string;
1938
+ workspace_id: string;
1939
+ created_at: string;
1940
+ errors: {
1941
+ message: string;
1942
+ error_code: string;
1943
+ }[];
1944
+ warnings: ({
1945
+ message: string;
1946
+ created_at: string;
1947
+ warning_code: "waiting_to_be_issued";
1948
+ } | {
1949
+ message: string;
1950
+ created_at: string;
1951
+ warning_code: "schedule_externally_modified";
1952
+ } | {
1953
+ message: string;
1954
+ created_at: string;
1955
+ warning_code: "schedule_modified";
1956
+ } | {
1957
+ message: string;
1958
+ created_at: string;
1959
+ warning_code: "being_deleted";
1960
+ } | {
1961
+ message: string;
1962
+ created_at: string;
1963
+ warning_code: "unknown_issue_with_acs_credential";
1964
+ } | {
1965
+ message: string;
1966
+ created_at: string;
1967
+ warning_code: "needs_to_be_reissued";
1968
+ })[];
1969
+ is_managed: true;
1970
+ acs_system_id: string;
1971
+ acs_credential_id: string;
1972
+ access_method: "code" | "card" | "mobile_key";
1973
+ acs_entrances: {
1974
+ display_name: string;
1975
+ created_at: string;
1976
+ errors: {
1977
+ message: string;
1978
+ error_code: string;
1979
+ }[];
1980
+ acs_system_id: string;
1981
+ acs_entrance_id: string;
1982
+ salto_ks_metadata?: {
1983
+ lock_type: string;
1984
+ battery_level: string;
1985
+ locked_state: string;
1986
+ door_name: string;
1987
+ online?: boolean | undefined;
1988
+ left_open_alarm?: boolean | undefined;
1989
+ intrusion_alarm?: boolean | undefined;
1990
+ privacy_mode?: boolean | undefined;
1991
+ } | undefined;
1992
+ visionline_metadata?: {
1993
+ door_name: string;
1994
+ door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
1995
+ profiles?: {
1996
+ visionline_door_profile_id: string;
1997
+ visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
1998
+ }[] | undefined;
1999
+ } | undefined;
2000
+ assa_abloy_vostio_metadata?: {
2001
+ door_name: string;
2002
+ door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
2003
+ door_number?: number | undefined;
2004
+ stand_open?: boolean | undefined;
2005
+ pms_id?: string | undefined;
2006
+ } | undefined;
2007
+ latch_metadata?: {
2008
+ door_name: string;
2009
+ is_connected: boolean;
2010
+ door_type: string;
2011
+ accessibility_type: string;
2012
+ } | undefined;
2013
+ dormakaba_community_metadata?: {
2014
+ access_point_name: string;
2015
+ } | undefined;
2016
+ salto_space_metadata?: {
2017
+ door_name: string;
2018
+ ext_door_id: string;
2019
+ door_description?: string | undefined;
2020
+ } | undefined;
2021
+ }[];
2022
+ code?: string | null | undefined;
2023
+ starts_at?: string | undefined;
2024
+ ends_at?: string | undefined;
2025
+ visionline_metadata?: {
2026
+ card_function_type: "guest" | "staff";
2027
+ auto_join?: boolean | undefined;
2028
+ joiner_acs_credential_ids?: string[] | undefined;
2029
+ guest_acs_entrance_ids?: string[] | undefined;
2030
+ common_acs_entrance_ids?: string[] | undefined;
2031
+ is_valid?: boolean | undefined;
2032
+ card_id?: string | undefined;
2033
+ credential_id?: string | undefined;
2034
+ } | undefined;
2035
+ assa_abloy_vostio_metadata?: {
2036
+ endpoint_id?: string | undefined;
2037
+ auto_join?: boolean | undefined;
2038
+ override_guest_acs_entrance_ids?: string[] | undefined;
2039
+ key_id?: string | undefined;
2040
+ key_issuing_request_id?: string | undefined;
2041
+ door_names?: string[] | undefined;
2042
+ } | undefined;
2043
+ is_one_time_use?: boolean | undefined;
2044
+ issued_at?: string | null | undefined;
2045
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
2046
+ external_type_display_name?: string | undefined;
2047
+ acs_user_id?: string | undefined;
2048
+ acs_credential_pool_id?: string | undefined;
2049
+ parent_acs_credential_id?: string | undefined;
2050
+ card_number?: string | null | undefined;
2051
+ is_issued?: boolean | undefined;
2052
+ is_multi_phone_sync_credential?: boolean | undefined;
2053
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2054
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
2055
+ }[];
2056
+ }[];
2057
+ }>;
2058
+ export type PhoneProviderSession = z.infer<typeof phone_provider_session>;
2059
+ export type PhoneSession = z.infer<typeof phone_session>;
2060
+ export {};