@seamapi/http 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,15 +51,115 @@ export declare const resolveActionAttempt: <T extends {
51
51
  status: "pending";
52
52
  action_attempt_id: string;
53
53
  result: null;
54
- action_type: "READ_CARD";
54
+ action_type: "SCAN_CARD";
55
55
  } | {
56
56
  error: null;
57
57
  status: "success";
58
58
  action_attempt_id: string;
59
59
  result: {
60
- card_number: string | null;
61
- };
62
- action_type: "READ_CARD";
60
+ acs_credential_on_encoder: {
61
+ created_at: string | null;
62
+ starts_at: string | null;
63
+ ends_at: string | null;
64
+ card_number: string | null;
65
+ is_issued: boolean | null;
66
+ visionline_metadata?: {
67
+ expired: boolean;
68
+ card_function_type: "guest" | "staff";
69
+ card_id: string;
70
+ cancelled: boolean;
71
+ discarded: boolean;
72
+ overwritten: boolean;
73
+ pending_auto_update: boolean;
74
+ card_format: "TLCode" | "rfid48";
75
+ number_of_issued_cards: number;
76
+ overridden?: boolean | undefined;
77
+ card_holder?: string | undefined;
78
+ } | undefined;
79
+ };
80
+ acs_credential_on_seam: {
81
+ created_at: string;
82
+ errors: {
83
+ message: string;
84
+ error_code: string;
85
+ }[];
86
+ warnings: {
87
+ message: string;
88
+ warning_code: string;
89
+ }[];
90
+ display_name: string;
91
+ workspace_id: string;
92
+ is_managed: true;
93
+ acs_system_id: string;
94
+ acs_credential_id: string;
95
+ access_method: "code" | "card" | "mobile_key";
96
+ code?: string | null | undefined;
97
+ starts_at?: string | undefined;
98
+ ends_at?: string | undefined;
99
+ visionline_metadata?: {
100
+ card_function_type: "guest" | "staff";
101
+ joiner_acs_credential_ids?: string[] | undefined;
102
+ guest_acs_entrance_ids?: string[] | undefined;
103
+ common_acs_entrance_ids?: string[] | undefined;
104
+ is_valid?: boolean | undefined;
105
+ auto_join?: boolean | undefined;
106
+ card_id?: string | undefined;
107
+ credential_id?: string | undefined;
108
+ } | undefined;
109
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
110
+ external_type_display_name?: string | undefined;
111
+ acs_user_id?: string | undefined;
112
+ acs_credential_pool_id?: string | undefined;
113
+ parent_acs_credential_id?: string | undefined;
114
+ card_number?: string | null | undefined;
115
+ is_issued?: boolean | undefined;
116
+ issued_at?: string | null | undefined;
117
+ is_multi_phone_sync_credential?: boolean | undefined;
118
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
119
+ latest_desired_state_synced_with_provider_at?: string | undefined;
120
+ } | {
121
+ created_at: string;
122
+ errors: {
123
+ message: string;
124
+ error_code: string;
125
+ }[];
126
+ warnings: {
127
+ message: string;
128
+ warning_code: string;
129
+ }[];
130
+ display_name: string;
131
+ workspace_id: string;
132
+ is_managed: false;
133
+ acs_system_id: string;
134
+ acs_credential_id: string;
135
+ access_method: "code" | "card" | "mobile_key";
136
+ code?: string | null | undefined;
137
+ starts_at?: string | undefined;
138
+ ends_at?: string | undefined;
139
+ visionline_metadata?: {
140
+ card_function_type: "guest" | "staff";
141
+ joiner_acs_credential_ids?: string[] | undefined;
142
+ guest_acs_entrance_ids?: string[] | undefined;
143
+ common_acs_entrance_ids?: string[] | undefined;
144
+ is_valid?: boolean | undefined;
145
+ auto_join?: boolean | undefined;
146
+ card_id?: string | undefined;
147
+ credential_id?: string | undefined;
148
+ } | undefined;
149
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
150
+ external_type_display_name?: string | undefined;
151
+ acs_user_id?: string | undefined;
152
+ acs_credential_pool_id?: string | undefined;
153
+ parent_acs_credential_id?: string | undefined;
154
+ card_number?: string | null | undefined;
155
+ is_issued?: boolean | undefined;
156
+ issued_at?: string | null | undefined;
157
+ is_multi_phone_sync_credential?: boolean | undefined;
158
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
159
+ latest_desired_state_synced_with_provider_at?: string | undefined;
160
+ } | null;
161
+ };
162
+ action_type: "SCAN_CARD";
63
163
  } | {
64
164
  error: {
65
165
  type: "no_card_on_encoder";
@@ -68,7 +168,7 @@ export declare const resolveActionAttempt: <T extends {
68
168
  status: "error";
69
169
  action_attempt_id: string;
70
170
  result: null;
71
- action_type: "READ_CARD";
171
+ action_type: "SCAN_CARD";
72
172
  } | {
73
173
  error: null;
74
174
  status: "pending";
@@ -79,10 +179,7 @@ export declare const resolveActionAttempt: <T extends {
79
179
  error: null;
80
180
  status: "success";
81
181
  action_attempt_id: string;
82
- result: {
83
- acs_credential_id: string | null;
84
- card_number: string | null;
85
- };
182
+ result: {};
86
183
  action_type: "ENCODE_CARD";
87
184
  } | {
88
185
  error: {
@@ -250,8 +347,8 @@ export declare const resolveActionAttempt: <T extends {
250
347
  error: null;
251
348
  status: "success";
252
349
  action_attempt_id: string;
350
+ result: {};
253
351
  action_type: "SYNC_ACCESS_CODES";
254
- result?: any;
255
352
  } | {
256
353
  error: {
257
354
  type: string;
@@ -271,8 +368,10 @@ export declare const resolveActionAttempt: <T extends {
271
368
  error: null;
272
369
  status: "success";
273
370
  action_attempt_id: string;
371
+ result: {
372
+ access_code?: any;
373
+ };
274
374
  action_type: "CREATE_ACCESS_CODE";
275
- result?: any;
276
375
  } | {
277
376
  error: {
278
377
  type: string;
@@ -292,8 +391,8 @@ export declare const resolveActionAttempt: <T extends {
292
391
  error: null;
293
392
  status: "success";
294
393
  action_attempt_id: string;
394
+ result: {};
295
395
  action_type: "DELETE_ACCESS_CODE";
296
- result?: any;
297
396
  } | {
298
397
  error: {
299
398
  type: string;
@@ -313,8 +412,10 @@ export declare const resolveActionAttempt: <T extends {
313
412
  error: null;
314
413
  status: "success";
315
414
  action_attempt_id: string;
415
+ result: {
416
+ access_code?: any;
417
+ };
316
418
  action_type: "UPDATE_ACCESS_CODE";
317
- result?: any;
318
419
  } | {
319
420
  error: {
320
421
  type: string;
@@ -334,8 +435,10 @@ export declare const resolveActionAttempt: <T extends {
334
435
  error: null;
335
436
  status: "success";
336
437
  action_attempt_id: string;
438
+ result: {
439
+ noise_threshold?: any;
440
+ };
337
441
  action_type: "CREATE_NOISE_THRESHOLD";
338
- result?: any;
339
442
  } | {
340
443
  error: {
341
444
  type: string;
@@ -355,8 +458,8 @@ export declare const resolveActionAttempt: <T extends {
355
458
  error: null;
356
459
  status: "success";
357
460
  action_attempt_id: string;
461
+ result: {};
358
462
  action_type: "DELETE_NOISE_THRESHOLD";
359
- result?: any;
360
463
  } | {
361
464
  error: {
362
465
  type: string;
@@ -376,8 +479,10 @@ export declare const resolveActionAttempt: <T extends {
376
479
  error: null;
377
480
  status: "success";
378
481
  action_attempt_id: string;
482
+ result: {
483
+ noise_threshold?: any;
484
+ };
379
485
  action_type: "UPDATE_NOISE_THRESHOLD";
380
- result?: any;
381
486
  } | {
382
487
  error: {
383
488
  type: string;
@@ -437,15 +542,115 @@ export declare const isSeamActionAttemptError: <T extends {
437
542
  status: "pending";
438
543
  action_attempt_id: string;
439
544
  result: null;
440
- action_type: "READ_CARD";
545
+ action_type: "SCAN_CARD";
441
546
  } | {
442
547
  error: null;
443
548
  status: "success";
444
549
  action_attempt_id: string;
445
550
  result: {
446
- card_number: string | null;
447
- };
448
- action_type: "READ_CARD";
551
+ acs_credential_on_encoder: {
552
+ created_at: string | null;
553
+ starts_at: string | null;
554
+ ends_at: string | null;
555
+ card_number: string | null;
556
+ is_issued: boolean | null;
557
+ visionline_metadata?: {
558
+ expired: boolean;
559
+ card_function_type: "guest" | "staff";
560
+ card_id: string;
561
+ cancelled: boolean;
562
+ discarded: boolean;
563
+ overwritten: boolean;
564
+ pending_auto_update: boolean;
565
+ card_format: "TLCode" | "rfid48";
566
+ number_of_issued_cards: number;
567
+ overridden?: boolean | undefined;
568
+ card_holder?: string | undefined;
569
+ } | undefined;
570
+ };
571
+ acs_credential_on_seam: {
572
+ created_at: string;
573
+ errors: {
574
+ message: string;
575
+ error_code: string;
576
+ }[];
577
+ warnings: {
578
+ message: string;
579
+ warning_code: string;
580
+ }[];
581
+ display_name: string;
582
+ workspace_id: string;
583
+ is_managed: true;
584
+ acs_system_id: string;
585
+ acs_credential_id: string;
586
+ access_method: "code" | "card" | "mobile_key";
587
+ code?: string | null | undefined;
588
+ starts_at?: string | undefined;
589
+ ends_at?: string | undefined;
590
+ visionline_metadata?: {
591
+ card_function_type: "guest" | "staff";
592
+ joiner_acs_credential_ids?: string[] | undefined;
593
+ guest_acs_entrance_ids?: string[] | undefined;
594
+ common_acs_entrance_ids?: string[] | undefined;
595
+ is_valid?: boolean | undefined;
596
+ auto_join?: boolean | undefined;
597
+ card_id?: string | undefined;
598
+ credential_id?: string | undefined;
599
+ } | undefined;
600
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
601
+ external_type_display_name?: string | undefined;
602
+ acs_user_id?: string | undefined;
603
+ acs_credential_pool_id?: string | undefined;
604
+ parent_acs_credential_id?: string | undefined;
605
+ card_number?: string | null | undefined;
606
+ is_issued?: boolean | undefined;
607
+ issued_at?: string | null | undefined;
608
+ is_multi_phone_sync_credential?: boolean | undefined;
609
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
610
+ latest_desired_state_synced_with_provider_at?: string | undefined;
611
+ } | {
612
+ created_at: string;
613
+ errors: {
614
+ message: string;
615
+ error_code: string;
616
+ }[];
617
+ warnings: {
618
+ message: string;
619
+ warning_code: string;
620
+ }[];
621
+ display_name: string;
622
+ workspace_id: string;
623
+ is_managed: false;
624
+ acs_system_id: string;
625
+ acs_credential_id: string;
626
+ access_method: "code" | "card" | "mobile_key";
627
+ code?: string | null | undefined;
628
+ starts_at?: string | undefined;
629
+ ends_at?: string | undefined;
630
+ visionline_metadata?: {
631
+ card_function_type: "guest" | "staff";
632
+ joiner_acs_credential_ids?: string[] | undefined;
633
+ guest_acs_entrance_ids?: string[] | undefined;
634
+ common_acs_entrance_ids?: string[] | undefined;
635
+ is_valid?: boolean | undefined;
636
+ auto_join?: boolean | undefined;
637
+ card_id?: string | undefined;
638
+ credential_id?: string | undefined;
639
+ } | undefined;
640
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
641
+ external_type_display_name?: string | undefined;
642
+ acs_user_id?: string | undefined;
643
+ acs_credential_pool_id?: string | undefined;
644
+ parent_acs_credential_id?: string | undefined;
645
+ card_number?: string | null | undefined;
646
+ is_issued?: boolean | undefined;
647
+ issued_at?: string | null | undefined;
648
+ is_multi_phone_sync_credential?: boolean | undefined;
649
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
650
+ latest_desired_state_synced_with_provider_at?: string | undefined;
651
+ } | null;
652
+ };
653
+ action_type: "SCAN_CARD";
449
654
  } | {
450
655
  error: {
451
656
  type: "no_card_on_encoder";
@@ -454,7 +659,7 @@ export declare const isSeamActionAttemptError: <T extends {
454
659
  status: "error";
455
660
  action_attempt_id: string;
456
661
  result: null;
457
- action_type: "READ_CARD";
662
+ action_type: "SCAN_CARD";
458
663
  } | {
459
664
  error: null;
460
665
  status: "pending";
@@ -465,10 +670,7 @@ export declare const isSeamActionAttemptError: <T extends {
465
670
  error: null;
466
671
  status: "success";
467
672
  action_attempt_id: string;
468
- result: {
469
- acs_credential_id: string | null;
470
- card_number: string | null;
471
- };
673
+ result: {};
472
674
  action_type: "ENCODE_CARD";
473
675
  } | {
474
676
  error: {
@@ -636,8 +838,8 @@ export declare const isSeamActionAttemptError: <T extends {
636
838
  error: null;
637
839
  status: "success";
638
840
  action_attempt_id: string;
841
+ result: {};
639
842
  action_type: "SYNC_ACCESS_CODES";
640
- result?: any;
641
843
  } | {
642
844
  error: {
643
845
  type: string;
@@ -657,8 +859,10 @@ export declare const isSeamActionAttemptError: <T extends {
657
859
  error: null;
658
860
  status: "success";
659
861
  action_attempt_id: string;
862
+ result: {
863
+ access_code?: any;
864
+ };
660
865
  action_type: "CREATE_ACCESS_CODE";
661
- result?: any;
662
866
  } | {
663
867
  error: {
664
868
  type: string;
@@ -678,8 +882,8 @@ export declare const isSeamActionAttemptError: <T extends {
678
882
  error: null;
679
883
  status: "success";
680
884
  action_attempt_id: string;
885
+ result: {};
681
886
  action_type: "DELETE_ACCESS_CODE";
682
- result?: any;
683
887
  } | {
684
888
  error: {
685
889
  type: string;
@@ -699,8 +903,10 @@ export declare const isSeamActionAttemptError: <T extends {
699
903
  error: null;
700
904
  status: "success";
701
905
  action_attempt_id: string;
906
+ result: {
907
+ access_code?: any;
908
+ };
702
909
  action_type: "UPDATE_ACCESS_CODE";
703
- result?: any;
704
910
  } | {
705
911
  error: {
706
912
  type: string;
@@ -720,8 +926,10 @@ export declare const isSeamActionAttemptError: <T extends {
720
926
  error: null;
721
927
  status: "success";
722
928
  action_attempt_id: string;
929
+ result: {
930
+ noise_threshold?: any;
931
+ };
723
932
  action_type: "CREATE_NOISE_THRESHOLD";
724
- result?: any;
725
933
  } | {
726
934
  error: {
727
935
  type: string;
@@ -741,8 +949,8 @@ export declare const isSeamActionAttemptError: <T extends {
741
949
  error: null;
742
950
  status: "success";
743
951
  action_attempt_id: string;
952
+ result: {};
744
953
  action_type: "DELETE_NOISE_THRESHOLD";
745
- result?: any;
746
954
  } | {
747
955
  error: {
748
956
  type: string;
@@ -762,8 +970,10 @@ export declare const isSeamActionAttemptError: <T extends {
762
970
  error: null;
763
971
  status: "success";
764
972
  action_attempt_id: string;
973
+ result: {
974
+ noise_threshold?: any;
975
+ };
765
976
  action_type: "UPDATE_NOISE_THRESHOLD";
766
- result?: any;
767
977
  } | {
768
978
  error: {
769
979
  type: string;
@@ -825,15 +1035,115 @@ export declare const isSeamActionAttemptFailedError: <T extends {
825
1035
  status: "pending";
826
1036
  action_attempt_id: string;
827
1037
  result: null;
828
- action_type: "READ_CARD";
1038
+ action_type: "SCAN_CARD";
829
1039
  } | {
830
1040
  error: null;
831
1041
  status: "success";
832
1042
  action_attempt_id: string;
833
1043
  result: {
834
- card_number: string | null;
835
- };
836
- action_type: "READ_CARD";
1044
+ acs_credential_on_encoder: {
1045
+ created_at: string | null;
1046
+ starts_at: string | null;
1047
+ ends_at: string | null;
1048
+ card_number: string | null;
1049
+ is_issued: boolean | null;
1050
+ visionline_metadata?: {
1051
+ expired: boolean;
1052
+ card_function_type: "guest" | "staff";
1053
+ card_id: string;
1054
+ cancelled: boolean;
1055
+ discarded: boolean;
1056
+ overwritten: boolean;
1057
+ pending_auto_update: boolean;
1058
+ card_format: "TLCode" | "rfid48";
1059
+ number_of_issued_cards: number;
1060
+ overridden?: boolean | undefined;
1061
+ card_holder?: string | undefined;
1062
+ } | undefined;
1063
+ };
1064
+ acs_credential_on_seam: {
1065
+ created_at: string;
1066
+ errors: {
1067
+ message: string;
1068
+ error_code: string;
1069
+ }[];
1070
+ warnings: {
1071
+ message: string;
1072
+ warning_code: string;
1073
+ }[];
1074
+ display_name: string;
1075
+ workspace_id: string;
1076
+ is_managed: true;
1077
+ acs_system_id: string;
1078
+ acs_credential_id: string;
1079
+ access_method: "code" | "card" | "mobile_key";
1080
+ code?: string | null | undefined;
1081
+ starts_at?: string | undefined;
1082
+ ends_at?: string | undefined;
1083
+ visionline_metadata?: {
1084
+ card_function_type: "guest" | "staff";
1085
+ joiner_acs_credential_ids?: string[] | undefined;
1086
+ guest_acs_entrance_ids?: string[] | undefined;
1087
+ common_acs_entrance_ids?: string[] | undefined;
1088
+ is_valid?: boolean | undefined;
1089
+ auto_join?: boolean | undefined;
1090
+ card_id?: string | undefined;
1091
+ credential_id?: string | undefined;
1092
+ } | undefined;
1093
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1094
+ external_type_display_name?: string | undefined;
1095
+ acs_user_id?: string | undefined;
1096
+ acs_credential_pool_id?: string | undefined;
1097
+ parent_acs_credential_id?: string | undefined;
1098
+ card_number?: string | null | undefined;
1099
+ is_issued?: boolean | undefined;
1100
+ issued_at?: string | null | undefined;
1101
+ is_multi_phone_sync_credential?: boolean | undefined;
1102
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1103
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1104
+ } | {
1105
+ created_at: string;
1106
+ errors: {
1107
+ message: string;
1108
+ error_code: string;
1109
+ }[];
1110
+ warnings: {
1111
+ message: string;
1112
+ warning_code: string;
1113
+ }[];
1114
+ display_name: string;
1115
+ workspace_id: string;
1116
+ is_managed: false;
1117
+ acs_system_id: string;
1118
+ acs_credential_id: string;
1119
+ access_method: "code" | "card" | "mobile_key";
1120
+ code?: string | null | undefined;
1121
+ starts_at?: string | undefined;
1122
+ ends_at?: string | undefined;
1123
+ visionline_metadata?: {
1124
+ card_function_type: "guest" | "staff";
1125
+ joiner_acs_credential_ids?: string[] | undefined;
1126
+ guest_acs_entrance_ids?: string[] | undefined;
1127
+ common_acs_entrance_ids?: string[] | undefined;
1128
+ is_valid?: boolean | undefined;
1129
+ auto_join?: boolean | undefined;
1130
+ card_id?: string | undefined;
1131
+ credential_id?: string | undefined;
1132
+ } | undefined;
1133
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1134
+ external_type_display_name?: string | undefined;
1135
+ acs_user_id?: string | undefined;
1136
+ acs_credential_pool_id?: string | undefined;
1137
+ parent_acs_credential_id?: string | undefined;
1138
+ card_number?: string | null | undefined;
1139
+ is_issued?: boolean | undefined;
1140
+ issued_at?: string | null | undefined;
1141
+ is_multi_phone_sync_credential?: boolean | undefined;
1142
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1143
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1144
+ } | null;
1145
+ };
1146
+ action_type: "SCAN_CARD";
837
1147
  } | {
838
1148
  error: {
839
1149
  type: "no_card_on_encoder";
@@ -842,7 +1152,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
842
1152
  status: "error";
843
1153
  action_attempt_id: string;
844
1154
  result: null;
845
- action_type: "READ_CARD";
1155
+ action_type: "SCAN_CARD";
846
1156
  } | {
847
1157
  error: null;
848
1158
  status: "pending";
@@ -853,10 +1163,7 @@ export declare const isSeamActionAttemptFailedError: <T extends {
853
1163
  error: null;
854
1164
  status: "success";
855
1165
  action_attempt_id: string;
856
- result: {
857
- acs_credential_id: string | null;
858
- card_number: string | null;
859
- };
1166
+ result: {};
860
1167
  action_type: "ENCODE_CARD";
861
1168
  } | {
862
1169
  error: {
@@ -1024,8 +1331,8 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1024
1331
  error: null;
1025
1332
  status: "success";
1026
1333
  action_attempt_id: string;
1334
+ result: {};
1027
1335
  action_type: "SYNC_ACCESS_CODES";
1028
- result?: any;
1029
1336
  } | {
1030
1337
  error: {
1031
1338
  type: string;
@@ -1045,8 +1352,10 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1045
1352
  error: null;
1046
1353
  status: "success";
1047
1354
  action_attempt_id: string;
1355
+ result: {
1356
+ access_code?: any;
1357
+ };
1048
1358
  action_type: "CREATE_ACCESS_CODE";
1049
- result?: any;
1050
1359
  } | {
1051
1360
  error: {
1052
1361
  type: string;
@@ -1066,8 +1375,8 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1066
1375
  error: null;
1067
1376
  status: "success";
1068
1377
  action_attempt_id: string;
1378
+ result: {};
1069
1379
  action_type: "DELETE_ACCESS_CODE";
1070
- result?: any;
1071
1380
  } | {
1072
1381
  error: {
1073
1382
  type: string;
@@ -1087,8 +1396,10 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1087
1396
  error: null;
1088
1397
  status: "success";
1089
1398
  action_attempt_id: string;
1399
+ result: {
1400
+ access_code?: any;
1401
+ };
1090
1402
  action_type: "UPDATE_ACCESS_CODE";
1091
- result?: any;
1092
1403
  } | {
1093
1404
  error: {
1094
1405
  type: string;
@@ -1108,8 +1419,10 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1108
1419
  error: null;
1109
1420
  status: "success";
1110
1421
  action_attempt_id: string;
1422
+ result: {
1423
+ noise_threshold?: any;
1424
+ };
1111
1425
  action_type: "CREATE_NOISE_THRESHOLD";
1112
- result?: any;
1113
1426
  } | {
1114
1427
  error: {
1115
1428
  type: string;
@@ -1129,8 +1442,8 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1129
1442
  error: null;
1130
1443
  status: "success";
1131
1444
  action_attempt_id: string;
1445
+ result: {};
1132
1446
  action_type: "DELETE_NOISE_THRESHOLD";
1133
- result?: any;
1134
1447
  } | {
1135
1448
  error: {
1136
1449
  type: string;
@@ -1150,8 +1463,10 @@ export declare const isSeamActionAttemptFailedError: <T extends {
1150
1463
  error: null;
1151
1464
  status: "success";
1152
1465
  action_attempt_id: string;
1466
+ result: {
1467
+ noise_threshold?: any;
1468
+ };
1153
1469
  action_type: "UPDATE_NOISE_THRESHOLD";
1154
- result?: any;
1155
1470
  } | {
1156
1471
  error: {
1157
1472
  type: string;
@@ -1213,15 +1528,115 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1213
1528
  status: "pending";
1214
1529
  action_attempt_id: string;
1215
1530
  result: null;
1216
- action_type: "READ_CARD";
1531
+ action_type: "SCAN_CARD";
1217
1532
  } | {
1218
1533
  error: null;
1219
1534
  status: "success";
1220
1535
  action_attempt_id: string;
1221
1536
  result: {
1222
- card_number: string | null;
1223
- };
1224
- action_type: "READ_CARD";
1537
+ acs_credential_on_encoder: {
1538
+ created_at: string | null;
1539
+ starts_at: string | null;
1540
+ ends_at: string | null;
1541
+ card_number: string | null;
1542
+ is_issued: boolean | null;
1543
+ visionline_metadata?: {
1544
+ expired: boolean;
1545
+ card_function_type: "guest" | "staff";
1546
+ card_id: string;
1547
+ cancelled: boolean;
1548
+ discarded: boolean;
1549
+ overwritten: boolean;
1550
+ pending_auto_update: boolean;
1551
+ card_format: "TLCode" | "rfid48";
1552
+ number_of_issued_cards: number;
1553
+ overridden?: boolean | undefined;
1554
+ card_holder?: string | undefined;
1555
+ } | undefined;
1556
+ };
1557
+ acs_credential_on_seam: {
1558
+ created_at: string;
1559
+ errors: {
1560
+ message: string;
1561
+ error_code: string;
1562
+ }[];
1563
+ warnings: {
1564
+ message: string;
1565
+ warning_code: string;
1566
+ }[];
1567
+ display_name: string;
1568
+ workspace_id: string;
1569
+ is_managed: true;
1570
+ acs_system_id: string;
1571
+ acs_credential_id: string;
1572
+ access_method: "code" | "card" | "mobile_key";
1573
+ code?: string | null | undefined;
1574
+ starts_at?: string | undefined;
1575
+ ends_at?: string | undefined;
1576
+ visionline_metadata?: {
1577
+ card_function_type: "guest" | "staff";
1578
+ joiner_acs_credential_ids?: string[] | undefined;
1579
+ guest_acs_entrance_ids?: string[] | undefined;
1580
+ common_acs_entrance_ids?: string[] | undefined;
1581
+ is_valid?: boolean | undefined;
1582
+ auto_join?: boolean | undefined;
1583
+ card_id?: string | undefined;
1584
+ credential_id?: string | undefined;
1585
+ } | undefined;
1586
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1587
+ external_type_display_name?: string | undefined;
1588
+ acs_user_id?: string | undefined;
1589
+ acs_credential_pool_id?: string | undefined;
1590
+ parent_acs_credential_id?: string | undefined;
1591
+ card_number?: string | null | undefined;
1592
+ is_issued?: boolean | undefined;
1593
+ issued_at?: string | null | undefined;
1594
+ is_multi_phone_sync_credential?: boolean | undefined;
1595
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1596
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1597
+ } | {
1598
+ created_at: string;
1599
+ errors: {
1600
+ message: string;
1601
+ error_code: string;
1602
+ }[];
1603
+ warnings: {
1604
+ message: string;
1605
+ warning_code: string;
1606
+ }[];
1607
+ display_name: string;
1608
+ workspace_id: string;
1609
+ is_managed: false;
1610
+ acs_system_id: string;
1611
+ acs_credential_id: string;
1612
+ access_method: "code" | "card" | "mobile_key";
1613
+ code?: string | null | undefined;
1614
+ starts_at?: string | undefined;
1615
+ ends_at?: string | undefined;
1616
+ visionline_metadata?: {
1617
+ card_function_type: "guest" | "staff";
1618
+ joiner_acs_credential_ids?: string[] | undefined;
1619
+ guest_acs_entrance_ids?: string[] | undefined;
1620
+ common_acs_entrance_ids?: string[] | undefined;
1621
+ is_valid?: boolean | undefined;
1622
+ auto_join?: boolean | undefined;
1623
+ card_id?: string | undefined;
1624
+ credential_id?: string | undefined;
1625
+ } | undefined;
1626
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1627
+ external_type_display_name?: string | undefined;
1628
+ acs_user_id?: string | undefined;
1629
+ acs_credential_pool_id?: string | undefined;
1630
+ parent_acs_credential_id?: string | undefined;
1631
+ card_number?: string | null | undefined;
1632
+ is_issued?: boolean | undefined;
1633
+ issued_at?: string | null | undefined;
1634
+ is_multi_phone_sync_credential?: boolean | undefined;
1635
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1636
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1637
+ } | null;
1638
+ };
1639
+ action_type: "SCAN_CARD";
1225
1640
  } | {
1226
1641
  error: {
1227
1642
  type: "no_card_on_encoder";
@@ -1230,7 +1645,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1230
1645
  status: "error";
1231
1646
  action_attempt_id: string;
1232
1647
  result: null;
1233
- action_type: "READ_CARD";
1648
+ action_type: "SCAN_CARD";
1234
1649
  } | {
1235
1650
  error: null;
1236
1651
  status: "pending";
@@ -1241,10 +1656,7 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1241
1656
  error: null;
1242
1657
  status: "success";
1243
1658
  action_attempt_id: string;
1244
- result: {
1245
- acs_credential_id: string | null;
1246
- card_number: string | null;
1247
- };
1659
+ result: {};
1248
1660
  action_type: "ENCODE_CARD";
1249
1661
  } | {
1250
1662
  error: {
@@ -1412,8 +1824,8 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1412
1824
  error: null;
1413
1825
  status: "success";
1414
1826
  action_attempt_id: string;
1827
+ result: {};
1415
1828
  action_type: "SYNC_ACCESS_CODES";
1416
- result?: any;
1417
1829
  } | {
1418
1830
  error: {
1419
1831
  type: string;
@@ -1433,8 +1845,10 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1433
1845
  error: null;
1434
1846
  status: "success";
1435
1847
  action_attempt_id: string;
1848
+ result: {
1849
+ access_code?: any;
1850
+ };
1436
1851
  action_type: "CREATE_ACCESS_CODE";
1437
- result?: any;
1438
1852
  } | {
1439
1853
  error: {
1440
1854
  type: string;
@@ -1454,8 +1868,8 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1454
1868
  error: null;
1455
1869
  status: "success";
1456
1870
  action_attempt_id: string;
1871
+ result: {};
1457
1872
  action_type: "DELETE_ACCESS_CODE";
1458
- result?: any;
1459
1873
  } | {
1460
1874
  error: {
1461
1875
  type: string;
@@ -1475,8 +1889,10 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1475
1889
  error: null;
1476
1890
  status: "success";
1477
1891
  action_attempt_id: string;
1892
+ result: {
1893
+ access_code?: any;
1894
+ };
1478
1895
  action_type: "UPDATE_ACCESS_CODE";
1479
- result?: any;
1480
1896
  } | {
1481
1897
  error: {
1482
1898
  type: string;
@@ -1496,8 +1912,10 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1496
1912
  error: null;
1497
1913
  status: "success";
1498
1914
  action_attempt_id: string;
1915
+ result: {
1916
+ noise_threshold?: any;
1917
+ };
1499
1918
  action_type: "CREATE_NOISE_THRESHOLD";
1500
- result?: any;
1501
1919
  } | {
1502
1920
  error: {
1503
1921
  type: string;
@@ -1517,8 +1935,8 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1517
1935
  error: null;
1518
1936
  status: "success";
1519
1937
  action_attempt_id: string;
1938
+ result: {};
1520
1939
  action_type: "DELETE_NOISE_THRESHOLD";
1521
- result?: any;
1522
1940
  } | {
1523
1941
  error: {
1524
1942
  type: string;
@@ -1538,8 +1956,10 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
1538
1956
  error: null;
1539
1957
  status: "success";
1540
1958
  action_attempt_id: string;
1959
+ result: {
1960
+ noise_threshold?: any;
1961
+ };
1541
1962
  action_type: "UPDATE_NOISE_THRESHOLD";
1542
- result?: any;
1543
1963
  } | {
1544
1964
  error: {
1545
1965
  type: string;