@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.
@@ -163,19 +163,19 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
163
163
  result: z.ZodNull;
164
164
  error: z.ZodNull;
165
165
  }>, {
166
- action_type: z.ZodLiteral<"READ_CARD">;
166
+ action_type: z.ZodLiteral<"SCAN_CARD">;
167
167
  }>, "strip", z.ZodTypeAny, {
168
168
  error: null;
169
169
  status: "pending";
170
170
  action_attempt_id: string;
171
171
  result: null;
172
- action_type: "READ_CARD";
172
+ action_type: "SCAN_CARD";
173
173
  }, {
174
174
  error: null;
175
175
  status: "pending";
176
176
  action_attempt_id: string;
177
177
  result: null;
178
- action_type: "READ_CARD";
178
+ action_type: "SCAN_CARD";
179
179
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
180
180
  action_attempt_id: z.ZodString;
181
181
  status: z.ZodEnum<["pending", "success", "error"]>;
@@ -183,30 +183,814 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
183
183
  status: z.ZodLiteral<"success">;
184
184
  error: z.ZodNull;
185
185
  }>, {
186
- action_type: z.ZodLiteral<"READ_CARD">;
186
+ action_type: z.ZodLiteral<"SCAN_CARD">;
187
187
  result: z.ZodObject<{
188
- card_number: z.ZodNullable<z.ZodString>;
188
+ acs_credential_on_encoder: z.ZodObject<{
189
+ created_at: z.ZodString;
190
+ is_issued: z.ZodNullable<z.ZodBoolean>;
191
+ starts_at: z.ZodNullable<z.ZodString>;
192
+ ends_at: z.ZodNullable<z.ZodString>;
193
+ card_number: z.ZodNullable<z.ZodString>;
194
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
195
+ card_id: z.ZodString;
196
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
197
+ cancelled: z.ZodBoolean;
198
+ discarded: z.ZodBoolean;
199
+ expired: z.ZodBoolean;
200
+ overwritten: z.ZodBoolean;
201
+ overridden: z.ZodOptional<z.ZodBoolean>;
202
+ pending_auto_update: z.ZodBoolean;
203
+ card_format: z.ZodEnum<["TLCode", "rfid48"]>;
204
+ card_holder: z.ZodOptional<z.ZodString>;
205
+ number_of_issued_cards: z.ZodNumber;
206
+ }, "strip", z.ZodTypeAny, {
207
+ expired: boolean;
208
+ card_function_type: "guest" | "staff";
209
+ card_id: string;
210
+ cancelled: boolean;
211
+ discarded: boolean;
212
+ overwritten: boolean;
213
+ pending_auto_update: boolean;
214
+ card_format: "TLCode" | "rfid48";
215
+ number_of_issued_cards: number;
216
+ overridden?: boolean | undefined;
217
+ card_holder?: string | undefined;
218
+ }, {
219
+ expired: boolean;
220
+ card_function_type: "guest" | "staff";
221
+ card_id: string;
222
+ cancelled: boolean;
223
+ discarded: boolean;
224
+ overwritten: boolean;
225
+ pending_auto_update: boolean;
226
+ card_format: "TLCode" | "rfid48";
227
+ number_of_issued_cards: number;
228
+ overridden?: boolean | undefined;
229
+ card_holder?: string | undefined;
230
+ }>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ created_at: string;
233
+ starts_at: string | null;
234
+ ends_at: string | null;
235
+ card_number: string | null;
236
+ is_issued: boolean | null;
237
+ visionline_metadata?: {
238
+ expired: boolean;
239
+ card_function_type: "guest" | "staff";
240
+ card_id: string;
241
+ cancelled: boolean;
242
+ discarded: boolean;
243
+ overwritten: boolean;
244
+ pending_auto_update: boolean;
245
+ card_format: "TLCode" | "rfid48";
246
+ number_of_issued_cards: number;
247
+ overridden?: boolean | undefined;
248
+ card_holder?: string | undefined;
249
+ } | undefined;
250
+ }, {
251
+ created_at: string;
252
+ starts_at: string | null;
253
+ ends_at: string | null;
254
+ card_number: string | null;
255
+ is_issued: boolean | null;
256
+ visionline_metadata?: {
257
+ expired: boolean;
258
+ card_function_type: "guest" | "staff";
259
+ card_id: string;
260
+ cancelled: boolean;
261
+ discarded: boolean;
262
+ overwritten: boolean;
263
+ pending_auto_update: boolean;
264
+ card_format: "TLCode" | "rfid48";
265
+ number_of_issued_cards: number;
266
+ overridden?: boolean | undefined;
267
+ card_holder?: string | undefined;
268
+ } | undefined;
269
+ }>;
270
+ acs_credential_on_seam: z.ZodNullable<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
271
+ acs_credential_id: z.ZodString;
272
+ acs_user_id: z.ZodOptional<z.ZodString>;
273
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
274
+ acs_system_id: z.ZodString;
275
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
276
+ display_name: z.ZodString;
277
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
278
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
279
+ is_issued: z.ZodOptional<z.ZodBoolean>;
280
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
281
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
282
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
283
+ external_type_display_name: z.ZodOptional<z.ZodString>;
284
+ created_at: z.ZodString;
285
+ workspace_id: z.ZodString;
286
+ starts_at: z.ZodOptional<z.ZodString>;
287
+ ends_at: z.ZodOptional<z.ZodString>;
288
+ errors: z.ZodArray<z.ZodObject<{
289
+ error_code: z.ZodString;
290
+ message: z.ZodString;
291
+ }, "strip", z.ZodTypeAny, {
292
+ message: string;
293
+ error_code: string;
294
+ }, {
295
+ message: string;
296
+ error_code: string;
297
+ }>, "many">;
298
+ warnings: z.ZodArray<z.ZodObject<{
299
+ warning_code: z.ZodString;
300
+ message: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ message: string;
303
+ warning_code: string;
304
+ }, {
305
+ message: string;
306
+ warning_code: string;
307
+ }>, "many">;
308
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
309
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
310
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
311
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
312
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
313
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
314
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
316
+ is_valid: z.ZodOptional<z.ZodBoolean>;
317
+ auto_join: z.ZodOptional<z.ZodBoolean>;
318
+ card_id: z.ZodOptional<z.ZodString>;
319
+ credential_id: z.ZodOptional<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ card_function_type: "guest" | "staff";
322
+ joiner_acs_credential_ids?: string[] | undefined;
323
+ guest_acs_entrance_ids?: string[] | undefined;
324
+ common_acs_entrance_ids?: string[] | undefined;
325
+ is_valid?: boolean | undefined;
326
+ auto_join?: boolean | undefined;
327
+ card_id?: string | undefined;
328
+ credential_id?: string | undefined;
329
+ }, {
330
+ card_function_type: "guest" | "staff";
331
+ joiner_acs_credential_ids?: string[] | undefined;
332
+ guest_acs_entrance_ids?: string[] | undefined;
333
+ common_acs_entrance_ids?: string[] | undefined;
334
+ is_valid?: boolean | undefined;
335
+ auto_join?: boolean | undefined;
336
+ card_id?: string | undefined;
337
+ credential_id?: string | undefined;
338
+ }>>;
339
+ }, {
340
+ is_managed: z.ZodLiteral<true>;
341
+ }>, "strip", z.ZodTypeAny, {
342
+ created_at: string;
343
+ errors: {
344
+ message: string;
345
+ error_code: string;
346
+ }[];
347
+ warnings: {
348
+ message: string;
349
+ warning_code: string;
350
+ }[];
351
+ display_name: string;
352
+ workspace_id: string;
353
+ is_managed: true;
354
+ acs_system_id: string;
355
+ acs_credential_id: string;
356
+ access_method: "code" | "card" | "mobile_key";
357
+ code?: string | null | undefined;
358
+ starts_at?: string | undefined;
359
+ ends_at?: string | undefined;
360
+ visionline_metadata?: {
361
+ card_function_type: "guest" | "staff";
362
+ joiner_acs_credential_ids?: string[] | undefined;
363
+ guest_acs_entrance_ids?: string[] | undefined;
364
+ common_acs_entrance_ids?: string[] | undefined;
365
+ is_valid?: boolean | undefined;
366
+ auto_join?: boolean | undefined;
367
+ card_id?: string | undefined;
368
+ credential_id?: string | undefined;
369
+ } | undefined;
370
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
371
+ external_type_display_name?: string | undefined;
372
+ acs_user_id?: string | undefined;
373
+ acs_credential_pool_id?: string | undefined;
374
+ parent_acs_credential_id?: string | undefined;
375
+ card_number?: string | null | undefined;
376
+ is_issued?: boolean | undefined;
377
+ issued_at?: string | null | undefined;
378
+ is_multi_phone_sync_credential?: boolean | undefined;
379
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
380
+ latest_desired_state_synced_with_provider_at?: string | undefined;
381
+ }, {
382
+ created_at: string;
383
+ errors: {
384
+ message: string;
385
+ error_code: string;
386
+ }[];
387
+ warnings: {
388
+ message: string;
389
+ warning_code: string;
390
+ }[];
391
+ display_name: string;
392
+ workspace_id: string;
393
+ is_managed: true;
394
+ acs_system_id: string;
395
+ acs_credential_id: string;
396
+ access_method: "code" | "card" | "mobile_key";
397
+ code?: string | null | undefined;
398
+ starts_at?: string | undefined;
399
+ ends_at?: string | undefined;
400
+ visionline_metadata?: {
401
+ card_function_type: "guest" | "staff";
402
+ joiner_acs_credential_ids?: string[] | undefined;
403
+ guest_acs_entrance_ids?: string[] | undefined;
404
+ common_acs_entrance_ids?: string[] | undefined;
405
+ is_valid?: boolean | undefined;
406
+ auto_join?: boolean | undefined;
407
+ card_id?: string | undefined;
408
+ credential_id?: string | undefined;
409
+ } | undefined;
410
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
411
+ external_type_display_name?: string | undefined;
412
+ acs_user_id?: string | undefined;
413
+ acs_credential_pool_id?: string | undefined;
414
+ parent_acs_credential_id?: string | undefined;
415
+ card_number?: string | null | undefined;
416
+ is_issued?: boolean | undefined;
417
+ issued_at?: string | null | undefined;
418
+ is_multi_phone_sync_credential?: boolean | undefined;
419
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
420
+ latest_desired_state_synced_with_provider_at?: string | undefined;
421
+ }>, z.ZodObject<z.objectUtil.extendShape<{
422
+ acs_credential_id: z.ZodString;
423
+ acs_user_id: z.ZodOptional<z.ZodString>;
424
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
425
+ acs_system_id: z.ZodString;
426
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
427
+ display_name: z.ZodString;
428
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
429
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
430
+ is_issued: z.ZodOptional<z.ZodBoolean>;
431
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
432
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
433
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
434
+ external_type_display_name: z.ZodOptional<z.ZodString>;
435
+ created_at: z.ZodString;
436
+ workspace_id: z.ZodString;
437
+ starts_at: z.ZodOptional<z.ZodString>;
438
+ ends_at: z.ZodOptional<z.ZodString>;
439
+ errors: z.ZodArray<z.ZodObject<{
440
+ error_code: z.ZodString;
441
+ message: z.ZodString;
442
+ }, "strip", z.ZodTypeAny, {
443
+ message: string;
444
+ error_code: string;
445
+ }, {
446
+ message: string;
447
+ error_code: string;
448
+ }>, "many">;
449
+ warnings: z.ZodArray<z.ZodObject<{
450
+ warning_code: z.ZodString;
451
+ message: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ message: string;
454
+ warning_code: string;
455
+ }, {
456
+ message: string;
457
+ warning_code: string;
458
+ }>, "many">;
459
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
460
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
461
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
462
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
463
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
464
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
465
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
467
+ is_valid: z.ZodOptional<z.ZodBoolean>;
468
+ auto_join: z.ZodOptional<z.ZodBoolean>;
469
+ card_id: z.ZodOptional<z.ZodString>;
470
+ credential_id: z.ZodOptional<z.ZodString>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ card_function_type: "guest" | "staff";
473
+ joiner_acs_credential_ids?: string[] | undefined;
474
+ guest_acs_entrance_ids?: string[] | undefined;
475
+ common_acs_entrance_ids?: string[] | undefined;
476
+ is_valid?: boolean | undefined;
477
+ auto_join?: boolean | undefined;
478
+ card_id?: string | undefined;
479
+ credential_id?: string | undefined;
480
+ }, {
481
+ card_function_type: "guest" | "staff";
482
+ joiner_acs_credential_ids?: string[] | undefined;
483
+ guest_acs_entrance_ids?: string[] | undefined;
484
+ common_acs_entrance_ids?: string[] | undefined;
485
+ is_valid?: boolean | undefined;
486
+ auto_join?: boolean | undefined;
487
+ card_id?: string | undefined;
488
+ credential_id?: string | undefined;
489
+ }>>;
490
+ }, {
491
+ is_managed: z.ZodLiteral<false>;
492
+ }>, "strip", z.ZodTypeAny, {
493
+ created_at: string;
494
+ errors: {
495
+ message: string;
496
+ error_code: string;
497
+ }[];
498
+ warnings: {
499
+ message: string;
500
+ warning_code: string;
501
+ }[];
502
+ display_name: string;
503
+ workspace_id: string;
504
+ is_managed: false;
505
+ acs_system_id: string;
506
+ acs_credential_id: string;
507
+ access_method: "code" | "card" | "mobile_key";
508
+ code?: string | null | undefined;
509
+ starts_at?: string | undefined;
510
+ ends_at?: string | undefined;
511
+ visionline_metadata?: {
512
+ card_function_type: "guest" | "staff";
513
+ joiner_acs_credential_ids?: string[] | undefined;
514
+ guest_acs_entrance_ids?: string[] | undefined;
515
+ common_acs_entrance_ids?: string[] | undefined;
516
+ is_valid?: boolean | undefined;
517
+ auto_join?: boolean | undefined;
518
+ card_id?: string | undefined;
519
+ credential_id?: string | undefined;
520
+ } | undefined;
521
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
522
+ external_type_display_name?: string | undefined;
523
+ acs_user_id?: string | undefined;
524
+ acs_credential_pool_id?: string | undefined;
525
+ parent_acs_credential_id?: string | undefined;
526
+ card_number?: string | null | undefined;
527
+ is_issued?: boolean | undefined;
528
+ issued_at?: string | null | undefined;
529
+ is_multi_phone_sync_credential?: boolean | undefined;
530
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
531
+ latest_desired_state_synced_with_provider_at?: string | undefined;
532
+ }, {
533
+ created_at: string;
534
+ errors: {
535
+ message: string;
536
+ error_code: string;
537
+ }[];
538
+ warnings: {
539
+ message: string;
540
+ warning_code: string;
541
+ }[];
542
+ display_name: string;
543
+ workspace_id: string;
544
+ is_managed: false;
545
+ acs_system_id: string;
546
+ acs_credential_id: string;
547
+ access_method: "code" | "card" | "mobile_key";
548
+ code?: string | null | undefined;
549
+ starts_at?: string | undefined;
550
+ ends_at?: string | undefined;
551
+ visionline_metadata?: {
552
+ card_function_type: "guest" | "staff";
553
+ joiner_acs_credential_ids?: string[] | undefined;
554
+ guest_acs_entrance_ids?: string[] | undefined;
555
+ common_acs_entrance_ids?: string[] | undefined;
556
+ is_valid?: boolean | undefined;
557
+ auto_join?: boolean | undefined;
558
+ card_id?: string | undefined;
559
+ credential_id?: string | undefined;
560
+ } | undefined;
561
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
562
+ external_type_display_name?: string | undefined;
563
+ acs_user_id?: string | undefined;
564
+ acs_credential_pool_id?: string | undefined;
565
+ parent_acs_credential_id?: string | undefined;
566
+ card_number?: string | null | undefined;
567
+ is_issued?: boolean | undefined;
568
+ issued_at?: string | null | undefined;
569
+ is_multi_phone_sync_credential?: boolean | undefined;
570
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
571
+ latest_desired_state_synced_with_provider_at?: string | undefined;
572
+ }>]>>;
189
573
  }, "strip", z.ZodTypeAny, {
190
- card_number: string | null;
574
+ acs_credential_on_encoder: {
575
+ created_at: string;
576
+ starts_at: string | null;
577
+ ends_at: string | null;
578
+ card_number: string | null;
579
+ is_issued: boolean | null;
580
+ visionline_metadata?: {
581
+ expired: boolean;
582
+ card_function_type: "guest" | "staff";
583
+ card_id: string;
584
+ cancelled: boolean;
585
+ discarded: boolean;
586
+ overwritten: boolean;
587
+ pending_auto_update: boolean;
588
+ card_format: "TLCode" | "rfid48";
589
+ number_of_issued_cards: number;
590
+ overridden?: boolean | undefined;
591
+ card_holder?: string | undefined;
592
+ } | undefined;
593
+ };
594
+ acs_credential_on_seam: {
595
+ created_at: string;
596
+ errors: {
597
+ message: string;
598
+ error_code: string;
599
+ }[];
600
+ warnings: {
601
+ message: string;
602
+ warning_code: string;
603
+ }[];
604
+ display_name: string;
605
+ workspace_id: string;
606
+ is_managed: true;
607
+ acs_system_id: string;
608
+ acs_credential_id: string;
609
+ access_method: "code" | "card" | "mobile_key";
610
+ code?: string | null | undefined;
611
+ starts_at?: string | undefined;
612
+ ends_at?: string | undefined;
613
+ visionline_metadata?: {
614
+ card_function_type: "guest" | "staff";
615
+ joiner_acs_credential_ids?: string[] | undefined;
616
+ guest_acs_entrance_ids?: string[] | undefined;
617
+ common_acs_entrance_ids?: string[] | undefined;
618
+ is_valid?: boolean | undefined;
619
+ auto_join?: boolean | undefined;
620
+ card_id?: string | undefined;
621
+ credential_id?: string | undefined;
622
+ } | undefined;
623
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
624
+ external_type_display_name?: string | undefined;
625
+ acs_user_id?: string | undefined;
626
+ acs_credential_pool_id?: string | undefined;
627
+ parent_acs_credential_id?: string | undefined;
628
+ card_number?: string | null | undefined;
629
+ is_issued?: boolean | undefined;
630
+ issued_at?: string | null | undefined;
631
+ is_multi_phone_sync_credential?: boolean | undefined;
632
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
633
+ latest_desired_state_synced_with_provider_at?: string | undefined;
634
+ } | {
635
+ created_at: string;
636
+ errors: {
637
+ message: string;
638
+ error_code: string;
639
+ }[];
640
+ warnings: {
641
+ message: string;
642
+ warning_code: string;
643
+ }[];
644
+ display_name: string;
645
+ workspace_id: string;
646
+ is_managed: false;
647
+ acs_system_id: string;
648
+ acs_credential_id: string;
649
+ access_method: "code" | "card" | "mobile_key";
650
+ code?: string | null | undefined;
651
+ starts_at?: string | undefined;
652
+ ends_at?: string | undefined;
653
+ visionline_metadata?: {
654
+ card_function_type: "guest" | "staff";
655
+ joiner_acs_credential_ids?: string[] | undefined;
656
+ guest_acs_entrance_ids?: string[] | undefined;
657
+ common_acs_entrance_ids?: string[] | undefined;
658
+ is_valid?: boolean | undefined;
659
+ auto_join?: boolean | undefined;
660
+ card_id?: string | undefined;
661
+ credential_id?: string | undefined;
662
+ } | undefined;
663
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
664
+ external_type_display_name?: string | undefined;
665
+ acs_user_id?: string | undefined;
666
+ acs_credential_pool_id?: string | undefined;
667
+ parent_acs_credential_id?: string | undefined;
668
+ card_number?: string | null | undefined;
669
+ is_issued?: boolean | undefined;
670
+ issued_at?: string | null | undefined;
671
+ is_multi_phone_sync_credential?: boolean | undefined;
672
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
673
+ latest_desired_state_synced_with_provider_at?: string | undefined;
674
+ } | null;
191
675
  }, {
192
- card_number: string | null;
676
+ acs_credential_on_encoder: {
677
+ created_at: string;
678
+ starts_at: string | null;
679
+ ends_at: string | null;
680
+ card_number: string | null;
681
+ is_issued: boolean | null;
682
+ visionline_metadata?: {
683
+ expired: boolean;
684
+ card_function_type: "guest" | "staff";
685
+ card_id: string;
686
+ cancelled: boolean;
687
+ discarded: boolean;
688
+ overwritten: boolean;
689
+ pending_auto_update: boolean;
690
+ card_format: "TLCode" | "rfid48";
691
+ number_of_issued_cards: number;
692
+ overridden?: boolean | undefined;
693
+ card_holder?: string | undefined;
694
+ } | undefined;
695
+ };
696
+ acs_credential_on_seam: {
697
+ created_at: string;
698
+ errors: {
699
+ message: string;
700
+ error_code: string;
701
+ }[];
702
+ warnings: {
703
+ message: string;
704
+ warning_code: string;
705
+ }[];
706
+ display_name: string;
707
+ workspace_id: string;
708
+ is_managed: true;
709
+ acs_system_id: string;
710
+ acs_credential_id: string;
711
+ access_method: "code" | "card" | "mobile_key";
712
+ code?: string | null | undefined;
713
+ starts_at?: string | undefined;
714
+ ends_at?: string | undefined;
715
+ visionline_metadata?: {
716
+ card_function_type: "guest" | "staff";
717
+ joiner_acs_credential_ids?: string[] | undefined;
718
+ guest_acs_entrance_ids?: string[] | undefined;
719
+ common_acs_entrance_ids?: string[] | undefined;
720
+ is_valid?: boolean | undefined;
721
+ auto_join?: boolean | undefined;
722
+ card_id?: string | undefined;
723
+ credential_id?: string | undefined;
724
+ } | undefined;
725
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
726
+ external_type_display_name?: string | undefined;
727
+ acs_user_id?: string | undefined;
728
+ acs_credential_pool_id?: string | undefined;
729
+ parent_acs_credential_id?: string | undefined;
730
+ card_number?: string | null | undefined;
731
+ is_issued?: boolean | undefined;
732
+ issued_at?: string | null | undefined;
733
+ is_multi_phone_sync_credential?: boolean | undefined;
734
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
735
+ latest_desired_state_synced_with_provider_at?: string | undefined;
736
+ } | {
737
+ created_at: string;
738
+ errors: {
739
+ message: string;
740
+ error_code: string;
741
+ }[];
742
+ warnings: {
743
+ message: string;
744
+ warning_code: string;
745
+ }[];
746
+ display_name: string;
747
+ workspace_id: string;
748
+ is_managed: false;
749
+ acs_system_id: string;
750
+ acs_credential_id: string;
751
+ access_method: "code" | "card" | "mobile_key";
752
+ code?: string | null | undefined;
753
+ starts_at?: string | undefined;
754
+ ends_at?: string | undefined;
755
+ visionline_metadata?: {
756
+ card_function_type: "guest" | "staff";
757
+ joiner_acs_credential_ids?: string[] | undefined;
758
+ guest_acs_entrance_ids?: string[] | undefined;
759
+ common_acs_entrance_ids?: string[] | undefined;
760
+ is_valid?: boolean | undefined;
761
+ auto_join?: boolean | undefined;
762
+ card_id?: string | undefined;
763
+ credential_id?: string | undefined;
764
+ } | undefined;
765
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
766
+ external_type_display_name?: string | undefined;
767
+ acs_user_id?: string | undefined;
768
+ acs_credential_pool_id?: string | undefined;
769
+ parent_acs_credential_id?: string | undefined;
770
+ card_number?: string | null | undefined;
771
+ is_issued?: boolean | undefined;
772
+ issued_at?: string | null | undefined;
773
+ is_multi_phone_sync_credential?: boolean | undefined;
774
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
775
+ latest_desired_state_synced_with_provider_at?: string | undefined;
776
+ } | null;
193
777
  }>;
194
778
  }>, "strip", z.ZodTypeAny, {
195
779
  error: null;
196
780
  status: "success";
197
781
  action_attempt_id: string;
198
782
  result: {
199
- card_number: string | null;
783
+ acs_credential_on_encoder: {
784
+ created_at: string;
785
+ starts_at: string | null;
786
+ ends_at: string | null;
787
+ card_number: string | null;
788
+ is_issued: boolean | null;
789
+ visionline_metadata?: {
790
+ expired: boolean;
791
+ card_function_type: "guest" | "staff";
792
+ card_id: string;
793
+ cancelled: boolean;
794
+ discarded: boolean;
795
+ overwritten: boolean;
796
+ pending_auto_update: boolean;
797
+ card_format: "TLCode" | "rfid48";
798
+ number_of_issued_cards: number;
799
+ overridden?: boolean | undefined;
800
+ card_holder?: string | undefined;
801
+ } | undefined;
802
+ };
803
+ acs_credential_on_seam: {
804
+ created_at: string;
805
+ errors: {
806
+ message: string;
807
+ error_code: string;
808
+ }[];
809
+ warnings: {
810
+ message: string;
811
+ warning_code: string;
812
+ }[];
813
+ display_name: string;
814
+ workspace_id: string;
815
+ is_managed: true;
816
+ acs_system_id: string;
817
+ acs_credential_id: string;
818
+ access_method: "code" | "card" | "mobile_key";
819
+ code?: string | null | undefined;
820
+ starts_at?: string | undefined;
821
+ ends_at?: string | undefined;
822
+ visionline_metadata?: {
823
+ card_function_type: "guest" | "staff";
824
+ joiner_acs_credential_ids?: string[] | undefined;
825
+ guest_acs_entrance_ids?: string[] | undefined;
826
+ common_acs_entrance_ids?: string[] | undefined;
827
+ is_valid?: boolean | undefined;
828
+ auto_join?: boolean | undefined;
829
+ card_id?: string | undefined;
830
+ credential_id?: string | undefined;
831
+ } | undefined;
832
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
833
+ external_type_display_name?: string | undefined;
834
+ acs_user_id?: string | undefined;
835
+ acs_credential_pool_id?: string | undefined;
836
+ parent_acs_credential_id?: string | undefined;
837
+ card_number?: string | null | undefined;
838
+ is_issued?: boolean | undefined;
839
+ issued_at?: string | null | undefined;
840
+ is_multi_phone_sync_credential?: boolean | undefined;
841
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
842
+ latest_desired_state_synced_with_provider_at?: string | undefined;
843
+ } | {
844
+ created_at: string;
845
+ errors: {
846
+ message: string;
847
+ error_code: string;
848
+ }[];
849
+ warnings: {
850
+ message: string;
851
+ warning_code: string;
852
+ }[];
853
+ display_name: string;
854
+ workspace_id: string;
855
+ is_managed: false;
856
+ acs_system_id: string;
857
+ acs_credential_id: string;
858
+ access_method: "code" | "card" | "mobile_key";
859
+ code?: string | null | undefined;
860
+ starts_at?: string | undefined;
861
+ ends_at?: string | undefined;
862
+ visionline_metadata?: {
863
+ card_function_type: "guest" | "staff";
864
+ joiner_acs_credential_ids?: string[] | undefined;
865
+ guest_acs_entrance_ids?: string[] | undefined;
866
+ common_acs_entrance_ids?: string[] | undefined;
867
+ is_valid?: boolean | undefined;
868
+ auto_join?: boolean | undefined;
869
+ card_id?: string | undefined;
870
+ credential_id?: string | undefined;
871
+ } | undefined;
872
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
873
+ external_type_display_name?: string | undefined;
874
+ acs_user_id?: string | undefined;
875
+ acs_credential_pool_id?: string | undefined;
876
+ parent_acs_credential_id?: string | undefined;
877
+ card_number?: string | null | undefined;
878
+ is_issued?: boolean | undefined;
879
+ issued_at?: string | null | undefined;
880
+ is_multi_phone_sync_credential?: boolean | undefined;
881
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
882
+ latest_desired_state_synced_with_provider_at?: string | undefined;
883
+ } | null;
200
884
  };
201
- action_type: "READ_CARD";
885
+ action_type: "SCAN_CARD";
202
886
  }, {
203
887
  error: null;
204
888
  status: "success";
205
889
  action_attempt_id: string;
206
890
  result: {
207
- card_number: string | null;
891
+ acs_credential_on_encoder: {
892
+ created_at: string;
893
+ starts_at: string | null;
894
+ ends_at: string | null;
895
+ card_number: string | null;
896
+ is_issued: boolean | null;
897
+ visionline_metadata?: {
898
+ expired: boolean;
899
+ card_function_type: "guest" | "staff";
900
+ card_id: string;
901
+ cancelled: boolean;
902
+ discarded: boolean;
903
+ overwritten: boolean;
904
+ pending_auto_update: boolean;
905
+ card_format: "TLCode" | "rfid48";
906
+ number_of_issued_cards: number;
907
+ overridden?: boolean | undefined;
908
+ card_holder?: string | undefined;
909
+ } | undefined;
910
+ };
911
+ acs_credential_on_seam: {
912
+ created_at: string;
913
+ errors: {
914
+ message: string;
915
+ error_code: string;
916
+ }[];
917
+ warnings: {
918
+ message: string;
919
+ warning_code: string;
920
+ }[];
921
+ display_name: string;
922
+ workspace_id: string;
923
+ is_managed: true;
924
+ acs_system_id: string;
925
+ acs_credential_id: string;
926
+ access_method: "code" | "card" | "mobile_key";
927
+ code?: string | null | undefined;
928
+ starts_at?: string | undefined;
929
+ ends_at?: string | undefined;
930
+ visionline_metadata?: {
931
+ card_function_type: "guest" | "staff";
932
+ joiner_acs_credential_ids?: string[] | undefined;
933
+ guest_acs_entrance_ids?: string[] | undefined;
934
+ common_acs_entrance_ids?: string[] | undefined;
935
+ is_valid?: boolean | undefined;
936
+ auto_join?: boolean | undefined;
937
+ card_id?: string | undefined;
938
+ credential_id?: string | undefined;
939
+ } | undefined;
940
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
941
+ external_type_display_name?: string | undefined;
942
+ acs_user_id?: string | undefined;
943
+ acs_credential_pool_id?: string | undefined;
944
+ parent_acs_credential_id?: string | undefined;
945
+ card_number?: string | null | undefined;
946
+ is_issued?: boolean | undefined;
947
+ issued_at?: string | null | undefined;
948
+ is_multi_phone_sync_credential?: boolean | undefined;
949
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
950
+ latest_desired_state_synced_with_provider_at?: string | undefined;
951
+ } | {
952
+ created_at: string;
953
+ errors: {
954
+ message: string;
955
+ error_code: string;
956
+ }[];
957
+ warnings: {
958
+ message: string;
959
+ warning_code: string;
960
+ }[];
961
+ display_name: string;
962
+ workspace_id: string;
963
+ is_managed: false;
964
+ acs_system_id: string;
965
+ acs_credential_id: string;
966
+ access_method: "code" | "card" | "mobile_key";
967
+ code?: string | null | undefined;
968
+ starts_at?: string | undefined;
969
+ ends_at?: string | undefined;
970
+ visionline_metadata?: {
971
+ card_function_type: "guest" | "staff";
972
+ joiner_acs_credential_ids?: string[] | undefined;
973
+ guest_acs_entrance_ids?: string[] | undefined;
974
+ common_acs_entrance_ids?: string[] | undefined;
975
+ is_valid?: boolean | undefined;
976
+ auto_join?: boolean | undefined;
977
+ card_id?: string | undefined;
978
+ credential_id?: string | undefined;
979
+ } | undefined;
980
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
981
+ external_type_display_name?: string | undefined;
982
+ acs_user_id?: string | undefined;
983
+ acs_credential_pool_id?: string | undefined;
984
+ parent_acs_credential_id?: string | undefined;
985
+ card_number?: string | null | undefined;
986
+ is_issued?: boolean | undefined;
987
+ issued_at?: string | null | undefined;
988
+ is_multi_phone_sync_credential?: boolean | undefined;
989
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
990
+ latest_desired_state_synced_with_provider_at?: string | undefined;
991
+ } | null;
208
992
  };
209
- action_type: "READ_CARD";
993
+ action_type: "SCAN_CARD";
210
994
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
211
995
  action_attempt_id: z.ZodString;
212
996
  status: z.ZodEnum<["pending", "success", "error"]>;
@@ -214,7 +998,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
214
998
  status: z.ZodLiteral<"error">;
215
999
  result: z.ZodNull;
216
1000
  }>, {
217
- action_type: z.ZodLiteral<"READ_CARD">;
1001
+ action_type: z.ZodLiteral<"SCAN_CARD">;
218
1002
  error: z.ZodObject<{
219
1003
  type: z.ZodLiteral<"no_card_on_encoder">;
220
1004
  message: z.ZodString;
@@ -233,7 +1017,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
233
1017
  status: "error";
234
1018
  action_attempt_id: string;
235
1019
  result: null;
236
- action_type: "READ_CARD";
1020
+ action_type: "SCAN_CARD";
237
1021
  }, {
238
1022
  error: {
239
1023
  type: "no_card_on_encoder";
@@ -242,7 +1026,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
242
1026
  status: "error";
243
1027
  action_attempt_id: string;
244
1028
  result: null;
245
- action_type: "READ_CARD";
1029
+ action_type: "SCAN_CARD";
246
1030
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
247
1031
  action_attempt_id: z.ZodString;
248
1032
  status: z.ZodEnum<["pending", "success", "error"]>;