@seamapi/types 1.263.1 → 1.264.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.
@@ -0,0 +1,875 @@
1
+ import { z } from 'zod';
2
+ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ action_attempt_id: z.ZodString;
4
+ status: z.ZodEnum<["pending", "success", "error"]>;
5
+ }, {
6
+ status: z.ZodLiteral<"pending">;
7
+ result: z.ZodNull;
8
+ error: z.ZodNull;
9
+ }>, {
10
+ action_type: z.ZodLiteral<"SCAN_CARD">;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ error: null;
13
+ status: "pending";
14
+ action_attempt_id: string;
15
+ result: null;
16
+ action_type: "SCAN_CARD";
17
+ }, {
18
+ error: null;
19
+ status: "pending";
20
+ action_attempt_id: string;
21
+ result: null;
22
+ action_type: "SCAN_CARD";
23
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ action_attempt_id: z.ZodString;
25
+ status: z.ZodEnum<["pending", "success", "error"]>;
26
+ }, {
27
+ status: z.ZodLiteral<"success">;
28
+ error: z.ZodNull;
29
+ }>, {
30
+ action_type: z.ZodLiteral<"SCAN_CARD">;
31
+ result: z.ZodObject<{
32
+ acs_credential_on_encoder: z.ZodObject<{
33
+ created_at: z.ZodString;
34
+ is_issued: z.ZodNullable<z.ZodBoolean>;
35
+ starts_at: z.ZodNullable<z.ZodString>;
36
+ ends_at: z.ZodNullable<z.ZodString>;
37
+ card_number: z.ZodNullable<z.ZodString>;
38
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
39
+ card_id: z.ZodString;
40
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
41
+ cancelled: z.ZodBoolean;
42
+ discarded: z.ZodBoolean;
43
+ expired: z.ZodBoolean;
44
+ overwritten: z.ZodBoolean;
45
+ overridden: z.ZodOptional<z.ZodBoolean>;
46
+ pending_auto_update: z.ZodBoolean;
47
+ card_format: z.ZodEnum<["TLCode", "rfid48"]>;
48
+ card_holder: z.ZodOptional<z.ZodString>;
49
+ number_of_issued_cards: z.ZodNumber;
50
+ }, "strip", z.ZodTypeAny, {
51
+ expired: boolean;
52
+ card_function_type: "guest" | "staff";
53
+ card_id: string;
54
+ cancelled: boolean;
55
+ discarded: boolean;
56
+ overwritten: boolean;
57
+ pending_auto_update: boolean;
58
+ card_format: "TLCode" | "rfid48";
59
+ number_of_issued_cards: number;
60
+ overridden?: boolean | undefined;
61
+ card_holder?: string | undefined;
62
+ }, {
63
+ expired: boolean;
64
+ card_function_type: "guest" | "staff";
65
+ card_id: string;
66
+ cancelled: boolean;
67
+ discarded: boolean;
68
+ overwritten: boolean;
69
+ pending_auto_update: boolean;
70
+ card_format: "TLCode" | "rfid48";
71
+ number_of_issued_cards: number;
72
+ overridden?: boolean | undefined;
73
+ card_holder?: string | undefined;
74
+ }>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ created_at: string;
77
+ starts_at: string | null;
78
+ ends_at: string | null;
79
+ card_number: string | null;
80
+ is_issued: boolean | null;
81
+ visionline_metadata?: {
82
+ expired: boolean;
83
+ card_function_type: "guest" | "staff";
84
+ card_id: string;
85
+ cancelled: boolean;
86
+ discarded: boolean;
87
+ overwritten: boolean;
88
+ pending_auto_update: boolean;
89
+ card_format: "TLCode" | "rfid48";
90
+ number_of_issued_cards: number;
91
+ overridden?: boolean | undefined;
92
+ card_holder?: string | undefined;
93
+ } | undefined;
94
+ }, {
95
+ created_at: string;
96
+ starts_at: string | null;
97
+ ends_at: string | null;
98
+ card_number: string | null;
99
+ is_issued: boolean | null;
100
+ visionline_metadata?: {
101
+ expired: boolean;
102
+ card_function_type: "guest" | "staff";
103
+ card_id: string;
104
+ cancelled: boolean;
105
+ discarded: boolean;
106
+ overwritten: boolean;
107
+ pending_auto_update: boolean;
108
+ card_format: "TLCode" | "rfid48";
109
+ number_of_issued_cards: number;
110
+ overridden?: boolean | undefined;
111
+ card_holder?: string | undefined;
112
+ } | undefined;
113
+ }>;
114
+ acs_credential_on_seam: z.ZodNullable<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
115
+ acs_credential_id: z.ZodString;
116
+ acs_user_id: z.ZodOptional<z.ZodString>;
117
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
118
+ acs_system_id: z.ZodString;
119
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
120
+ display_name: z.ZodString;
121
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
122
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
123
+ is_issued: z.ZodOptional<z.ZodBoolean>;
124
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
126
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
127
+ external_type_display_name: z.ZodOptional<z.ZodString>;
128
+ created_at: z.ZodString;
129
+ workspace_id: z.ZodString;
130
+ starts_at: z.ZodOptional<z.ZodString>;
131
+ ends_at: z.ZodOptional<z.ZodString>;
132
+ errors: z.ZodArray<z.ZodObject<{
133
+ error_code: z.ZodString;
134
+ message: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ message: string;
137
+ error_code: string;
138
+ }, {
139
+ message: string;
140
+ error_code: string;
141
+ }>, "many">;
142
+ warnings: z.ZodArray<z.ZodObject<{
143
+ warning_code: z.ZodString;
144
+ message: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ message: string;
147
+ warning_code: string;
148
+ }, {
149
+ message: string;
150
+ warning_code: string;
151
+ }>, "many">;
152
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
153
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
154
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
155
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
156
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
157
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
+ is_valid: z.ZodOptional<z.ZodBoolean>;
161
+ auto_join: z.ZodOptional<z.ZodBoolean>;
162
+ card_id: z.ZodOptional<z.ZodString>;
163
+ credential_id: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ card_function_type: "guest" | "staff";
166
+ joiner_acs_credential_ids?: string[] | undefined;
167
+ guest_acs_entrance_ids?: string[] | undefined;
168
+ common_acs_entrance_ids?: string[] | undefined;
169
+ is_valid?: boolean | undefined;
170
+ auto_join?: boolean | undefined;
171
+ card_id?: string | undefined;
172
+ credential_id?: string | undefined;
173
+ }, {
174
+ card_function_type: "guest" | "staff";
175
+ joiner_acs_credential_ids?: string[] | undefined;
176
+ guest_acs_entrance_ids?: string[] | undefined;
177
+ common_acs_entrance_ids?: string[] | undefined;
178
+ is_valid?: boolean | undefined;
179
+ auto_join?: boolean | undefined;
180
+ card_id?: string | undefined;
181
+ credential_id?: string | undefined;
182
+ }>>;
183
+ }, {
184
+ is_managed: z.ZodLiteral<true>;
185
+ }>, "strip", z.ZodTypeAny, {
186
+ created_at: string;
187
+ errors: {
188
+ message: string;
189
+ error_code: string;
190
+ }[];
191
+ warnings: {
192
+ message: string;
193
+ warning_code: string;
194
+ }[];
195
+ display_name: string;
196
+ workspace_id: string;
197
+ is_managed: true;
198
+ acs_system_id: string;
199
+ acs_credential_id: string;
200
+ access_method: "code" | "card" | "mobile_key";
201
+ code?: string | null | undefined;
202
+ starts_at?: string | undefined;
203
+ ends_at?: string | undefined;
204
+ visionline_metadata?: {
205
+ card_function_type: "guest" | "staff";
206
+ joiner_acs_credential_ids?: string[] | undefined;
207
+ guest_acs_entrance_ids?: string[] | undefined;
208
+ common_acs_entrance_ids?: string[] | undefined;
209
+ is_valid?: boolean | undefined;
210
+ auto_join?: boolean | undefined;
211
+ card_id?: string | undefined;
212
+ credential_id?: string | undefined;
213
+ } | undefined;
214
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
215
+ external_type_display_name?: string | undefined;
216
+ acs_user_id?: string | undefined;
217
+ acs_credential_pool_id?: string | undefined;
218
+ parent_acs_credential_id?: string | undefined;
219
+ card_number?: string | null | undefined;
220
+ is_issued?: boolean | undefined;
221
+ issued_at?: string | null | undefined;
222
+ is_multi_phone_sync_credential?: boolean | undefined;
223
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
224
+ latest_desired_state_synced_with_provider_at?: string | undefined;
225
+ }, {
226
+ created_at: string;
227
+ errors: {
228
+ message: string;
229
+ error_code: string;
230
+ }[];
231
+ warnings: {
232
+ message: string;
233
+ warning_code: string;
234
+ }[];
235
+ display_name: string;
236
+ workspace_id: string;
237
+ is_managed: true;
238
+ acs_system_id: string;
239
+ acs_credential_id: string;
240
+ access_method: "code" | "card" | "mobile_key";
241
+ code?: string | null | undefined;
242
+ starts_at?: string | undefined;
243
+ ends_at?: string | undefined;
244
+ visionline_metadata?: {
245
+ card_function_type: "guest" | "staff";
246
+ joiner_acs_credential_ids?: string[] | undefined;
247
+ guest_acs_entrance_ids?: string[] | undefined;
248
+ common_acs_entrance_ids?: string[] | undefined;
249
+ is_valid?: boolean | undefined;
250
+ auto_join?: boolean | undefined;
251
+ card_id?: string | undefined;
252
+ credential_id?: string | undefined;
253
+ } | undefined;
254
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
255
+ external_type_display_name?: string | undefined;
256
+ acs_user_id?: string | undefined;
257
+ acs_credential_pool_id?: string | undefined;
258
+ parent_acs_credential_id?: string | undefined;
259
+ card_number?: string | null | undefined;
260
+ is_issued?: boolean | undefined;
261
+ issued_at?: string | null | undefined;
262
+ is_multi_phone_sync_credential?: boolean | undefined;
263
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
264
+ latest_desired_state_synced_with_provider_at?: string | undefined;
265
+ }>, z.ZodObject<z.objectUtil.extendShape<{
266
+ acs_credential_id: z.ZodString;
267
+ acs_user_id: z.ZodOptional<z.ZodString>;
268
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
269
+ acs_system_id: z.ZodString;
270
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
271
+ display_name: z.ZodString;
272
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
273
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
274
+ is_issued: z.ZodOptional<z.ZodBoolean>;
275
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
276
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
277
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
278
+ external_type_display_name: z.ZodOptional<z.ZodString>;
279
+ created_at: z.ZodString;
280
+ workspace_id: z.ZodString;
281
+ starts_at: z.ZodOptional<z.ZodString>;
282
+ ends_at: z.ZodOptional<z.ZodString>;
283
+ errors: z.ZodArray<z.ZodObject<{
284
+ error_code: z.ZodString;
285
+ message: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ message: string;
288
+ error_code: string;
289
+ }, {
290
+ message: string;
291
+ error_code: string;
292
+ }>, "many">;
293
+ warnings: z.ZodArray<z.ZodObject<{
294
+ warning_code: z.ZodString;
295
+ message: z.ZodString;
296
+ }, "strip", z.ZodTypeAny, {
297
+ message: string;
298
+ warning_code: string;
299
+ }, {
300
+ message: string;
301
+ warning_code: string;
302
+ }>, "many">;
303
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
304
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
305
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
306
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
307
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
308
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
309
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ is_valid: z.ZodOptional<z.ZodBoolean>;
312
+ auto_join: z.ZodOptional<z.ZodBoolean>;
313
+ card_id: z.ZodOptional<z.ZodString>;
314
+ credential_id: z.ZodOptional<z.ZodString>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ card_function_type: "guest" | "staff";
317
+ joiner_acs_credential_ids?: string[] | undefined;
318
+ guest_acs_entrance_ids?: string[] | undefined;
319
+ common_acs_entrance_ids?: string[] | undefined;
320
+ is_valid?: boolean | undefined;
321
+ auto_join?: boolean | undefined;
322
+ card_id?: string | undefined;
323
+ credential_id?: string | undefined;
324
+ }, {
325
+ card_function_type: "guest" | "staff";
326
+ joiner_acs_credential_ids?: string[] | undefined;
327
+ guest_acs_entrance_ids?: string[] | undefined;
328
+ common_acs_entrance_ids?: string[] | undefined;
329
+ is_valid?: boolean | undefined;
330
+ auto_join?: boolean | undefined;
331
+ card_id?: string | undefined;
332
+ credential_id?: string | undefined;
333
+ }>>;
334
+ }, {
335
+ is_managed: z.ZodLiteral<false>;
336
+ }>, "strip", z.ZodTypeAny, {
337
+ created_at: string;
338
+ errors: {
339
+ message: string;
340
+ error_code: string;
341
+ }[];
342
+ warnings: {
343
+ message: string;
344
+ warning_code: string;
345
+ }[];
346
+ display_name: string;
347
+ workspace_id: string;
348
+ is_managed: false;
349
+ acs_system_id: string;
350
+ acs_credential_id: string;
351
+ access_method: "code" | "card" | "mobile_key";
352
+ code?: string | null | undefined;
353
+ starts_at?: string | undefined;
354
+ ends_at?: string | undefined;
355
+ visionline_metadata?: {
356
+ card_function_type: "guest" | "staff";
357
+ joiner_acs_credential_ids?: string[] | undefined;
358
+ guest_acs_entrance_ids?: string[] | undefined;
359
+ common_acs_entrance_ids?: string[] | undefined;
360
+ is_valid?: boolean | undefined;
361
+ auto_join?: boolean | undefined;
362
+ card_id?: string | undefined;
363
+ credential_id?: string | undefined;
364
+ } | undefined;
365
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
366
+ external_type_display_name?: string | undefined;
367
+ acs_user_id?: string | undefined;
368
+ acs_credential_pool_id?: string | undefined;
369
+ parent_acs_credential_id?: string | undefined;
370
+ card_number?: string | null | undefined;
371
+ is_issued?: boolean | undefined;
372
+ issued_at?: string | null | undefined;
373
+ is_multi_phone_sync_credential?: boolean | undefined;
374
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
375
+ latest_desired_state_synced_with_provider_at?: string | undefined;
376
+ }, {
377
+ created_at: string;
378
+ errors: {
379
+ message: string;
380
+ error_code: string;
381
+ }[];
382
+ warnings: {
383
+ message: string;
384
+ warning_code: string;
385
+ }[];
386
+ display_name: string;
387
+ workspace_id: string;
388
+ is_managed: false;
389
+ acs_system_id: string;
390
+ acs_credential_id: string;
391
+ access_method: "code" | "card" | "mobile_key";
392
+ code?: string | null | undefined;
393
+ starts_at?: string | undefined;
394
+ ends_at?: string | undefined;
395
+ visionline_metadata?: {
396
+ card_function_type: "guest" | "staff";
397
+ joiner_acs_credential_ids?: string[] | undefined;
398
+ guest_acs_entrance_ids?: string[] | undefined;
399
+ common_acs_entrance_ids?: string[] | undefined;
400
+ is_valid?: boolean | undefined;
401
+ auto_join?: boolean | undefined;
402
+ card_id?: string | undefined;
403
+ credential_id?: string | undefined;
404
+ } | undefined;
405
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
406
+ external_type_display_name?: string | undefined;
407
+ acs_user_id?: string | undefined;
408
+ acs_credential_pool_id?: string | undefined;
409
+ parent_acs_credential_id?: string | undefined;
410
+ card_number?: string | null | undefined;
411
+ is_issued?: boolean | undefined;
412
+ issued_at?: string | null | undefined;
413
+ is_multi_phone_sync_credential?: boolean | undefined;
414
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
415
+ latest_desired_state_synced_with_provider_at?: string | undefined;
416
+ }>]>>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ acs_credential_on_encoder: {
419
+ created_at: string;
420
+ starts_at: string | null;
421
+ ends_at: string | null;
422
+ card_number: string | null;
423
+ is_issued: boolean | null;
424
+ visionline_metadata?: {
425
+ expired: boolean;
426
+ card_function_type: "guest" | "staff";
427
+ card_id: string;
428
+ cancelled: boolean;
429
+ discarded: boolean;
430
+ overwritten: boolean;
431
+ pending_auto_update: boolean;
432
+ card_format: "TLCode" | "rfid48";
433
+ number_of_issued_cards: number;
434
+ overridden?: boolean | undefined;
435
+ card_holder?: string | undefined;
436
+ } | undefined;
437
+ };
438
+ acs_credential_on_seam: {
439
+ created_at: string;
440
+ errors: {
441
+ message: string;
442
+ error_code: string;
443
+ }[];
444
+ warnings: {
445
+ message: string;
446
+ warning_code: string;
447
+ }[];
448
+ display_name: string;
449
+ workspace_id: string;
450
+ is_managed: true;
451
+ acs_system_id: string;
452
+ acs_credential_id: string;
453
+ access_method: "code" | "card" | "mobile_key";
454
+ code?: string | null | undefined;
455
+ starts_at?: string | undefined;
456
+ ends_at?: string | undefined;
457
+ visionline_metadata?: {
458
+ card_function_type: "guest" | "staff";
459
+ joiner_acs_credential_ids?: string[] | undefined;
460
+ guest_acs_entrance_ids?: string[] | undefined;
461
+ common_acs_entrance_ids?: string[] | undefined;
462
+ is_valid?: boolean | undefined;
463
+ auto_join?: boolean | undefined;
464
+ card_id?: string | undefined;
465
+ credential_id?: string | undefined;
466
+ } | undefined;
467
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
468
+ external_type_display_name?: string | undefined;
469
+ acs_user_id?: string | undefined;
470
+ acs_credential_pool_id?: string | undefined;
471
+ parent_acs_credential_id?: string | undefined;
472
+ card_number?: string | null | undefined;
473
+ is_issued?: boolean | undefined;
474
+ issued_at?: string | null | undefined;
475
+ is_multi_phone_sync_credential?: boolean | undefined;
476
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
477
+ latest_desired_state_synced_with_provider_at?: string | undefined;
478
+ } | {
479
+ created_at: string;
480
+ errors: {
481
+ message: string;
482
+ error_code: string;
483
+ }[];
484
+ warnings: {
485
+ message: string;
486
+ warning_code: string;
487
+ }[];
488
+ display_name: string;
489
+ workspace_id: string;
490
+ is_managed: false;
491
+ acs_system_id: string;
492
+ acs_credential_id: string;
493
+ access_method: "code" | "card" | "mobile_key";
494
+ code?: string | null | undefined;
495
+ starts_at?: string | undefined;
496
+ ends_at?: string | undefined;
497
+ visionline_metadata?: {
498
+ card_function_type: "guest" | "staff";
499
+ joiner_acs_credential_ids?: string[] | undefined;
500
+ guest_acs_entrance_ids?: string[] | undefined;
501
+ common_acs_entrance_ids?: string[] | undefined;
502
+ is_valid?: boolean | undefined;
503
+ auto_join?: boolean | undefined;
504
+ card_id?: string | undefined;
505
+ credential_id?: string | undefined;
506
+ } | undefined;
507
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
508
+ external_type_display_name?: string | undefined;
509
+ acs_user_id?: string | undefined;
510
+ acs_credential_pool_id?: string | undefined;
511
+ parent_acs_credential_id?: string | undefined;
512
+ card_number?: string | null | undefined;
513
+ is_issued?: boolean | undefined;
514
+ issued_at?: string | null | undefined;
515
+ is_multi_phone_sync_credential?: boolean | undefined;
516
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
517
+ latest_desired_state_synced_with_provider_at?: string | undefined;
518
+ } | null;
519
+ }, {
520
+ acs_credential_on_encoder: {
521
+ created_at: string;
522
+ starts_at: string | null;
523
+ ends_at: string | null;
524
+ card_number: string | null;
525
+ is_issued: boolean | null;
526
+ visionline_metadata?: {
527
+ expired: boolean;
528
+ card_function_type: "guest" | "staff";
529
+ card_id: string;
530
+ cancelled: boolean;
531
+ discarded: boolean;
532
+ overwritten: boolean;
533
+ pending_auto_update: boolean;
534
+ card_format: "TLCode" | "rfid48";
535
+ number_of_issued_cards: number;
536
+ overridden?: boolean | undefined;
537
+ card_holder?: string | undefined;
538
+ } | undefined;
539
+ };
540
+ acs_credential_on_seam: {
541
+ created_at: string;
542
+ errors: {
543
+ message: string;
544
+ error_code: string;
545
+ }[];
546
+ warnings: {
547
+ message: string;
548
+ warning_code: string;
549
+ }[];
550
+ display_name: string;
551
+ workspace_id: string;
552
+ is_managed: true;
553
+ acs_system_id: string;
554
+ acs_credential_id: string;
555
+ access_method: "code" | "card" | "mobile_key";
556
+ code?: string | null | undefined;
557
+ starts_at?: string | undefined;
558
+ ends_at?: string | undefined;
559
+ visionline_metadata?: {
560
+ card_function_type: "guest" | "staff";
561
+ joiner_acs_credential_ids?: string[] | undefined;
562
+ guest_acs_entrance_ids?: string[] | undefined;
563
+ common_acs_entrance_ids?: string[] | undefined;
564
+ is_valid?: boolean | undefined;
565
+ auto_join?: boolean | undefined;
566
+ card_id?: string | undefined;
567
+ credential_id?: string | undefined;
568
+ } | undefined;
569
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
570
+ external_type_display_name?: string | undefined;
571
+ acs_user_id?: string | undefined;
572
+ acs_credential_pool_id?: string | undefined;
573
+ parent_acs_credential_id?: string | undefined;
574
+ card_number?: string | null | undefined;
575
+ is_issued?: boolean | undefined;
576
+ issued_at?: string | null | undefined;
577
+ is_multi_phone_sync_credential?: boolean | undefined;
578
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
579
+ latest_desired_state_synced_with_provider_at?: string | undefined;
580
+ } | {
581
+ created_at: string;
582
+ errors: {
583
+ message: string;
584
+ error_code: string;
585
+ }[];
586
+ warnings: {
587
+ message: string;
588
+ warning_code: string;
589
+ }[];
590
+ display_name: string;
591
+ workspace_id: string;
592
+ is_managed: false;
593
+ acs_system_id: string;
594
+ acs_credential_id: string;
595
+ access_method: "code" | "card" | "mobile_key";
596
+ code?: string | null | undefined;
597
+ starts_at?: string | undefined;
598
+ ends_at?: string | undefined;
599
+ visionline_metadata?: {
600
+ card_function_type: "guest" | "staff";
601
+ joiner_acs_credential_ids?: string[] | undefined;
602
+ guest_acs_entrance_ids?: string[] | undefined;
603
+ common_acs_entrance_ids?: string[] | undefined;
604
+ is_valid?: boolean | undefined;
605
+ auto_join?: boolean | undefined;
606
+ card_id?: string | undefined;
607
+ credential_id?: string | undefined;
608
+ } | undefined;
609
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
610
+ external_type_display_name?: string | undefined;
611
+ acs_user_id?: string | undefined;
612
+ acs_credential_pool_id?: string | undefined;
613
+ parent_acs_credential_id?: string | undefined;
614
+ card_number?: string | null | undefined;
615
+ is_issued?: boolean | undefined;
616
+ issued_at?: string | null | undefined;
617
+ is_multi_phone_sync_credential?: boolean | undefined;
618
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
619
+ latest_desired_state_synced_with_provider_at?: string | undefined;
620
+ } | null;
621
+ }>;
622
+ }>, "strip", z.ZodTypeAny, {
623
+ error: null;
624
+ status: "success";
625
+ action_attempt_id: string;
626
+ result: {
627
+ acs_credential_on_encoder: {
628
+ created_at: string;
629
+ starts_at: string | null;
630
+ ends_at: string | null;
631
+ card_number: string | null;
632
+ is_issued: boolean | null;
633
+ visionline_metadata?: {
634
+ expired: boolean;
635
+ card_function_type: "guest" | "staff";
636
+ card_id: string;
637
+ cancelled: boolean;
638
+ discarded: boolean;
639
+ overwritten: boolean;
640
+ pending_auto_update: boolean;
641
+ card_format: "TLCode" | "rfid48";
642
+ number_of_issued_cards: number;
643
+ overridden?: boolean | undefined;
644
+ card_holder?: string | undefined;
645
+ } | undefined;
646
+ };
647
+ acs_credential_on_seam: {
648
+ created_at: string;
649
+ errors: {
650
+ message: string;
651
+ error_code: string;
652
+ }[];
653
+ warnings: {
654
+ message: string;
655
+ warning_code: string;
656
+ }[];
657
+ display_name: string;
658
+ workspace_id: string;
659
+ is_managed: true;
660
+ acs_system_id: string;
661
+ acs_credential_id: string;
662
+ access_method: "code" | "card" | "mobile_key";
663
+ code?: string | null | undefined;
664
+ starts_at?: string | undefined;
665
+ ends_at?: string | undefined;
666
+ visionline_metadata?: {
667
+ card_function_type: "guest" | "staff";
668
+ joiner_acs_credential_ids?: string[] | undefined;
669
+ guest_acs_entrance_ids?: string[] | undefined;
670
+ common_acs_entrance_ids?: string[] | undefined;
671
+ is_valid?: boolean | undefined;
672
+ auto_join?: boolean | undefined;
673
+ card_id?: string | undefined;
674
+ credential_id?: string | undefined;
675
+ } | undefined;
676
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
677
+ external_type_display_name?: string | undefined;
678
+ acs_user_id?: string | undefined;
679
+ acs_credential_pool_id?: string | undefined;
680
+ parent_acs_credential_id?: string | undefined;
681
+ card_number?: string | null | undefined;
682
+ is_issued?: boolean | undefined;
683
+ issued_at?: string | null | undefined;
684
+ is_multi_phone_sync_credential?: boolean | undefined;
685
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
686
+ latest_desired_state_synced_with_provider_at?: string | undefined;
687
+ } | {
688
+ created_at: string;
689
+ errors: {
690
+ message: string;
691
+ error_code: string;
692
+ }[];
693
+ warnings: {
694
+ message: string;
695
+ warning_code: string;
696
+ }[];
697
+ display_name: string;
698
+ workspace_id: string;
699
+ is_managed: false;
700
+ acs_system_id: string;
701
+ acs_credential_id: string;
702
+ access_method: "code" | "card" | "mobile_key";
703
+ code?: string | null | undefined;
704
+ starts_at?: string | undefined;
705
+ ends_at?: string | undefined;
706
+ visionline_metadata?: {
707
+ card_function_type: "guest" | "staff";
708
+ joiner_acs_credential_ids?: string[] | undefined;
709
+ guest_acs_entrance_ids?: string[] | undefined;
710
+ common_acs_entrance_ids?: string[] | undefined;
711
+ is_valid?: boolean | undefined;
712
+ auto_join?: boolean | undefined;
713
+ card_id?: string | undefined;
714
+ credential_id?: string | undefined;
715
+ } | undefined;
716
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
717
+ external_type_display_name?: string | undefined;
718
+ acs_user_id?: string | undefined;
719
+ acs_credential_pool_id?: string | undefined;
720
+ parent_acs_credential_id?: string | undefined;
721
+ card_number?: string | null | undefined;
722
+ is_issued?: boolean | undefined;
723
+ issued_at?: string | null | undefined;
724
+ is_multi_phone_sync_credential?: boolean | undefined;
725
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
726
+ latest_desired_state_synced_with_provider_at?: string | undefined;
727
+ } | null;
728
+ };
729
+ action_type: "SCAN_CARD";
730
+ }, {
731
+ error: null;
732
+ status: "success";
733
+ action_attempt_id: string;
734
+ result: {
735
+ acs_credential_on_encoder: {
736
+ created_at: string;
737
+ starts_at: string | null;
738
+ ends_at: string | null;
739
+ card_number: string | null;
740
+ is_issued: boolean | null;
741
+ visionline_metadata?: {
742
+ expired: boolean;
743
+ card_function_type: "guest" | "staff";
744
+ card_id: string;
745
+ cancelled: boolean;
746
+ discarded: boolean;
747
+ overwritten: boolean;
748
+ pending_auto_update: boolean;
749
+ card_format: "TLCode" | "rfid48";
750
+ number_of_issued_cards: number;
751
+ overridden?: boolean | undefined;
752
+ card_holder?: string | undefined;
753
+ } | undefined;
754
+ };
755
+ acs_credential_on_seam: {
756
+ created_at: string;
757
+ errors: {
758
+ message: string;
759
+ error_code: string;
760
+ }[];
761
+ warnings: {
762
+ message: string;
763
+ warning_code: string;
764
+ }[];
765
+ display_name: string;
766
+ workspace_id: string;
767
+ is_managed: true;
768
+ acs_system_id: string;
769
+ acs_credential_id: string;
770
+ access_method: "code" | "card" | "mobile_key";
771
+ code?: string | null | undefined;
772
+ starts_at?: string | undefined;
773
+ ends_at?: string | undefined;
774
+ visionline_metadata?: {
775
+ card_function_type: "guest" | "staff";
776
+ joiner_acs_credential_ids?: string[] | undefined;
777
+ guest_acs_entrance_ids?: string[] | undefined;
778
+ common_acs_entrance_ids?: string[] | undefined;
779
+ is_valid?: boolean | undefined;
780
+ auto_join?: boolean | undefined;
781
+ card_id?: string | undefined;
782
+ credential_id?: string | undefined;
783
+ } | undefined;
784
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
785
+ external_type_display_name?: string | undefined;
786
+ acs_user_id?: string | undefined;
787
+ acs_credential_pool_id?: string | undefined;
788
+ parent_acs_credential_id?: string | undefined;
789
+ card_number?: string | null | undefined;
790
+ is_issued?: boolean | undefined;
791
+ issued_at?: string | null | undefined;
792
+ is_multi_phone_sync_credential?: boolean | undefined;
793
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
794
+ latest_desired_state_synced_with_provider_at?: string | undefined;
795
+ } | {
796
+ created_at: string;
797
+ errors: {
798
+ message: string;
799
+ error_code: string;
800
+ }[];
801
+ warnings: {
802
+ message: string;
803
+ warning_code: string;
804
+ }[];
805
+ display_name: string;
806
+ workspace_id: string;
807
+ is_managed: false;
808
+ acs_system_id: string;
809
+ acs_credential_id: string;
810
+ access_method: "code" | "card" | "mobile_key";
811
+ code?: string | null | undefined;
812
+ starts_at?: string | undefined;
813
+ ends_at?: string | undefined;
814
+ visionline_metadata?: {
815
+ card_function_type: "guest" | "staff";
816
+ joiner_acs_credential_ids?: string[] | undefined;
817
+ guest_acs_entrance_ids?: string[] | undefined;
818
+ common_acs_entrance_ids?: string[] | undefined;
819
+ is_valid?: boolean | undefined;
820
+ auto_join?: boolean | undefined;
821
+ card_id?: string | undefined;
822
+ credential_id?: string | undefined;
823
+ } | undefined;
824
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
825
+ external_type_display_name?: string | undefined;
826
+ acs_user_id?: string | undefined;
827
+ acs_credential_pool_id?: string | undefined;
828
+ parent_acs_credential_id?: string | undefined;
829
+ card_number?: string | null | undefined;
830
+ is_issued?: boolean | undefined;
831
+ issued_at?: string | null | undefined;
832
+ is_multi_phone_sync_credential?: boolean | undefined;
833
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
834
+ latest_desired_state_synced_with_provider_at?: string | undefined;
835
+ } | null;
836
+ };
837
+ action_type: "SCAN_CARD";
838
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
839
+ action_attempt_id: z.ZodString;
840
+ status: z.ZodEnum<["pending", "success", "error"]>;
841
+ }, {
842
+ status: z.ZodLiteral<"error">;
843
+ result: z.ZodNull;
844
+ }>, {
845
+ action_type: z.ZodLiteral<"SCAN_CARD">;
846
+ error: z.ZodObject<{
847
+ type: z.ZodLiteral<"no_card_on_encoder">;
848
+ message: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ type: "no_card_on_encoder";
851
+ message: string;
852
+ }, {
853
+ type: "no_card_on_encoder";
854
+ message: string;
855
+ }>;
856
+ }>, "strip", z.ZodTypeAny, {
857
+ error: {
858
+ type: "no_card_on_encoder";
859
+ message: string;
860
+ };
861
+ status: "error";
862
+ action_attempt_id: string;
863
+ result: null;
864
+ action_type: "SCAN_CARD";
865
+ }, {
866
+ error: {
867
+ type: "no_card_on_encoder";
868
+ message: string;
869
+ };
870
+ status: "error";
871
+ action_attempt_id: string;
872
+ result: null;
873
+ action_type: "SCAN_CARD";
874
+ }>]>;
875
+ export type ScanCardActionAttempt = z.infer<typeof scan_card_action_attempt>;