@seamapi/types 1.263.1 → 1.264.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/connect.cjs +438 -84
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3745 -454
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +83 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +38 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +862 -53
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -2
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  11. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  12. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  14. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  15. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  16. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  17. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  18. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  19. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +875 -0
  20. package/lib/seam/connect/models/action-attempts/{read-card.js → scan-card.js} +8 -12
  21. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
  22. package/lib/seam/connect/openapi.d.ts +308 -38
  23. package/lib/seam/connect/openapi.js +368 -42
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +2522 -362
  26. package/lib/seam/connect/schemas.d.ts +1 -1
  27. package/lib/seam/connect/schemas.js +1 -1
  28. package/lib/seam/connect/schemas.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/lib/seam/connect/models/acs/acs-credential.ts +48 -0
  31. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
  32. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  33. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  34. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  35. package/src/lib/seam/connect/models/action-attempts/{read-card.ts → scan-card.ts} +15 -12
  36. package/src/lib/seam/connect/openapi.ts +373 -44
  37. package/src/lib/seam/connect/route-types.ts +3362 -502
  38. package/src/lib/seam/connect/schemas.ts +3 -0
  39. package/lib/seam/connect/models/action-attempts/read-card.d.ts +0 -91
  40. package/lib/seam/connect/models/action-attempts/read-card.js.map +0 -1
@@ -79,23 +79,128 @@ export interface Routes {
79
79
  status: 'pending';
80
80
  result: null;
81
81
  error: null;
82
- action_type: 'READ_CARD';
82
+ action_type: 'SCAN_CARD';
83
83
  } | {
84
84
  /** The ID of the action attempt. */
85
85
  action_attempt_id: string;
86
86
  status: 'success';
87
87
  error: null;
88
- action_type: 'READ_CARD';
88
+ action_type: 'SCAN_CARD';
89
89
  result: {
90
- /** A number or string that physically identifies this card. */
91
- card_number: string | null;
90
+ /** Snapshot of the card data read from the physical encoder. */
91
+ acs_credential_on_encoder: {
92
+ /** Date and time the credential was created. */
93
+ created_at: string;
94
+ is_issued: boolean | null;
95
+ /** Date and time the credential will become useable. */
96
+ starts_at: string | null;
97
+ /** Date and time the credential will stop being useable. */
98
+ ends_at: string | null;
99
+ /** A number or string that physically identifies this card. */
100
+ card_number: string | null;
101
+ visionline_metadata?: {
102
+ card_id: string;
103
+ card_function_type: 'guest' | 'staff';
104
+ cancelled: boolean;
105
+ discarded: boolean;
106
+ expired: boolean;
107
+ overwritten: boolean;
108
+ overridden?: boolean | undefined;
109
+ pending_auto_update: boolean;
110
+ card_format: 'TLCode' | 'rfid48';
111
+ card_holder?: string | undefined;
112
+ number_of_issued_cards: number;
113
+ } | undefined;
114
+ };
115
+ /** Matching acs_credential currently encoded on this card. */
116
+ acs_credential_on_seam: ({
117
+ acs_credential_id: string;
118
+ acs_user_id?: string | undefined;
119
+ acs_credential_pool_id?: string | undefined;
120
+ acs_system_id: string;
121
+ parent_acs_credential_id?: string | undefined;
122
+ display_name: string;
123
+ code?: (string | undefined) | null;
124
+ card_number?: (string | undefined) | null;
125
+ is_issued?: boolean | undefined;
126
+ issued_at?: (string | undefined) | null;
127
+ access_method: 'code' | 'card' | 'mobile_key';
128
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
129
+ external_type_display_name?: string | undefined;
130
+ created_at: string;
131
+ workspace_id: string;
132
+ starts_at?: string | undefined;
133
+ ends_at?: string | undefined;
134
+ errors: Array<{
135
+ error_code: string;
136
+ message: string;
137
+ }>;
138
+ warnings: Array<{
139
+ warning_code: string;
140
+ message: string;
141
+ }>;
142
+ is_multi_phone_sync_credential?: boolean | undefined;
143
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
144
+ latest_desired_state_synced_with_provider_at?: string | undefined;
145
+ visionline_metadata?: {
146
+ card_function_type: 'guest' | 'staff';
147
+ joiner_acs_credential_ids?: string[] | undefined;
148
+ guest_acs_entrance_ids?: string[] | undefined;
149
+ common_acs_entrance_ids?: string[] | undefined;
150
+ is_valid?: boolean | undefined;
151
+ auto_join?: boolean | undefined;
152
+ card_id?: string | undefined;
153
+ credential_id?: string | undefined;
154
+ } | undefined;
155
+ is_managed: true;
156
+ } | {
157
+ acs_credential_id: string;
158
+ acs_user_id?: string | undefined;
159
+ acs_credential_pool_id?: string | undefined;
160
+ acs_system_id: string;
161
+ parent_acs_credential_id?: string | undefined;
162
+ display_name: string;
163
+ code?: (string | undefined) | null;
164
+ card_number?: (string | undefined) | null;
165
+ is_issued?: boolean | undefined;
166
+ issued_at?: (string | undefined) | null;
167
+ access_method: 'code' | 'card' | 'mobile_key';
168
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
169
+ external_type_display_name?: string | undefined;
170
+ created_at: string;
171
+ workspace_id: string;
172
+ starts_at?: string | undefined;
173
+ ends_at?: string | undefined;
174
+ errors: Array<{
175
+ error_code: string;
176
+ message: string;
177
+ }>;
178
+ warnings: Array<{
179
+ warning_code: string;
180
+ message: string;
181
+ }>;
182
+ is_multi_phone_sync_credential?: boolean | undefined;
183
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
184
+ latest_desired_state_synced_with_provider_at?: string | undefined;
185
+ visionline_metadata?: {
186
+ card_function_type: 'guest' | 'staff';
187
+ joiner_acs_credential_ids?: string[] | undefined;
188
+ guest_acs_entrance_ids?: string[] | undefined;
189
+ common_acs_entrance_ids?: string[] | undefined;
190
+ is_valid?: boolean | undefined;
191
+ auto_join?: boolean | undefined;
192
+ card_id?: string | undefined;
193
+ credential_id?: string | undefined;
194
+ } | undefined;
195
+ is_managed: false;
196
+ }) | null;
92
197
  };
93
198
  } | {
94
199
  /** The ID of the action attempt. */
95
200
  action_attempt_id: string;
96
201
  status: 'error';
97
202
  result: null;
98
- action_type: 'READ_CARD';
203
+ action_type: 'SCAN_CARD';
99
204
  error: {
100
205
  type: 'no_card_on_encoder';
101
206
  message: string;
@@ -113,12 +218,7 @@ export interface Routes {
113
218
  status: 'success';
114
219
  error: null;
115
220
  action_type: 'ENCODE_CARD';
116
- result: {
117
- /** Matching acs_credential currently encoded on this card. */
118
- acs_credential_id: string | null;
119
- /** A number or string that physically identifies this card. */
120
- card_number: string | null;
121
- };
221
+ result: {};
122
222
  } | {
123
223
  /** The ID of the action attempt. */
124
224
  action_attempt_id: string;
@@ -310,7 +410,7 @@ export interface Routes {
310
410
  status: 'success';
311
411
  error: null;
312
412
  action_type: 'SYNC_ACCESS_CODES';
313
- result?: any;
413
+ result: {};
314
414
  } | {
315
415
  /** The ID of the action attempt. */
316
416
  action_attempt_id: string;
@@ -334,7 +434,9 @@ export interface Routes {
334
434
  status: 'success';
335
435
  error: null;
336
436
  action_type: 'CREATE_ACCESS_CODE';
337
- result?: any;
437
+ result: {
438
+ access_code?: any;
439
+ };
338
440
  } | {
339
441
  /** The ID of the action attempt. */
340
442
  action_attempt_id: string;
@@ -358,7 +460,7 @@ export interface Routes {
358
460
  status: 'success';
359
461
  error: null;
360
462
  action_type: 'DELETE_ACCESS_CODE';
361
- result?: any;
463
+ result: {};
362
464
  } | {
363
465
  /** The ID of the action attempt. */
364
466
  action_attempt_id: string;
@@ -382,7 +484,9 @@ export interface Routes {
382
484
  status: 'success';
383
485
  error: null;
384
486
  action_type: 'UPDATE_ACCESS_CODE';
385
- result?: any;
487
+ result: {
488
+ access_code?: any;
489
+ };
386
490
  } | {
387
491
  /** The ID of the action attempt. */
388
492
  action_attempt_id: string;
@@ -406,7 +510,9 @@ export interface Routes {
406
510
  status: 'success';
407
511
  error: null;
408
512
  action_type: 'CREATE_NOISE_THRESHOLD';
409
- result?: any;
513
+ result: {
514
+ noise_threshold?: any;
515
+ };
410
516
  } | {
411
517
  /** The ID of the action attempt. */
412
518
  action_attempt_id: string;
@@ -430,7 +536,7 @@ export interface Routes {
430
536
  status: 'success';
431
537
  error: null;
432
538
  action_type: 'DELETE_NOISE_THRESHOLD';
433
- result?: any;
539
+ result: {};
434
540
  } | {
435
541
  /** The ID of the action attempt. */
436
542
  action_attempt_id: string;
@@ -454,7 +560,9 @@ export interface Routes {
454
560
  status: 'success';
455
561
  error: null;
456
562
  action_type: 'UPDATE_NOISE_THRESHOLD';
457
- result?: any;
563
+ result: {
564
+ noise_threshold?: any;
565
+ };
458
566
  } | {
459
567
  /** The ID of the action attempt. */
460
568
  action_attempt_id: string;
@@ -683,23 +791,128 @@ export interface Routes {
683
791
  status: 'pending';
684
792
  result: null;
685
793
  error: null;
686
- action_type: 'READ_CARD';
794
+ action_type: 'SCAN_CARD';
687
795
  } | {
688
796
  /** The ID of the action attempt. */
689
797
  action_attempt_id: string;
690
798
  status: 'success';
691
799
  error: null;
692
- action_type: 'READ_CARD';
800
+ action_type: 'SCAN_CARD';
693
801
  result: {
694
- /** A number or string that physically identifies this card. */
695
- card_number: string | null;
802
+ /** Snapshot of the card data read from the physical encoder. */
803
+ acs_credential_on_encoder: {
804
+ /** Date and time the credential was created. */
805
+ created_at: string;
806
+ is_issued: boolean | null;
807
+ /** Date and time the credential will become useable. */
808
+ starts_at: string | null;
809
+ /** Date and time the credential will stop being useable. */
810
+ ends_at: string | null;
811
+ /** A number or string that physically identifies this card. */
812
+ card_number: string | null;
813
+ visionline_metadata?: {
814
+ card_id: string;
815
+ card_function_type: 'guest' | 'staff';
816
+ cancelled: boolean;
817
+ discarded: boolean;
818
+ expired: boolean;
819
+ overwritten: boolean;
820
+ overridden?: boolean | undefined;
821
+ pending_auto_update: boolean;
822
+ card_format: 'TLCode' | 'rfid48';
823
+ card_holder?: string | undefined;
824
+ number_of_issued_cards: number;
825
+ } | undefined;
826
+ };
827
+ /** Matching acs_credential currently encoded on this card. */
828
+ acs_credential_on_seam: ({
829
+ acs_credential_id: string;
830
+ acs_user_id?: string | undefined;
831
+ acs_credential_pool_id?: string | undefined;
832
+ acs_system_id: string;
833
+ parent_acs_credential_id?: string | undefined;
834
+ display_name: string;
835
+ code?: (string | undefined) | null;
836
+ card_number?: (string | undefined) | null;
837
+ is_issued?: boolean | undefined;
838
+ issued_at?: (string | undefined) | null;
839
+ access_method: 'code' | 'card' | 'mobile_key';
840
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
841
+ external_type_display_name?: string | undefined;
842
+ created_at: string;
843
+ workspace_id: string;
844
+ starts_at?: string | undefined;
845
+ ends_at?: string | undefined;
846
+ errors: Array<{
847
+ error_code: string;
848
+ message: string;
849
+ }>;
850
+ warnings: Array<{
851
+ warning_code: string;
852
+ message: string;
853
+ }>;
854
+ is_multi_phone_sync_credential?: boolean | undefined;
855
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
856
+ latest_desired_state_synced_with_provider_at?: string | undefined;
857
+ visionline_metadata?: {
858
+ card_function_type: 'guest' | 'staff';
859
+ joiner_acs_credential_ids?: string[] | undefined;
860
+ guest_acs_entrance_ids?: string[] | undefined;
861
+ common_acs_entrance_ids?: string[] | undefined;
862
+ is_valid?: boolean | undefined;
863
+ auto_join?: boolean | undefined;
864
+ card_id?: string | undefined;
865
+ credential_id?: string | undefined;
866
+ } | undefined;
867
+ is_managed: true;
868
+ } | {
869
+ acs_credential_id: string;
870
+ acs_user_id?: string | undefined;
871
+ acs_credential_pool_id?: string | undefined;
872
+ acs_system_id: string;
873
+ parent_acs_credential_id?: string | undefined;
874
+ display_name: string;
875
+ code?: (string | undefined) | null;
876
+ card_number?: (string | undefined) | null;
877
+ is_issued?: boolean | undefined;
878
+ issued_at?: (string | undefined) | null;
879
+ access_method: 'code' | 'card' | 'mobile_key';
880
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
881
+ external_type_display_name?: string | undefined;
882
+ created_at: string;
883
+ workspace_id: string;
884
+ starts_at?: string | undefined;
885
+ ends_at?: string | undefined;
886
+ errors: Array<{
887
+ error_code: string;
888
+ message: string;
889
+ }>;
890
+ warnings: Array<{
891
+ warning_code: string;
892
+ message: string;
893
+ }>;
894
+ is_multi_phone_sync_credential?: boolean | undefined;
895
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
896
+ latest_desired_state_synced_with_provider_at?: string | undefined;
897
+ visionline_metadata?: {
898
+ card_function_type: 'guest' | 'staff';
899
+ joiner_acs_credential_ids?: string[] | undefined;
900
+ guest_acs_entrance_ids?: string[] | undefined;
901
+ common_acs_entrance_ids?: string[] | undefined;
902
+ is_valid?: boolean | undefined;
903
+ auto_join?: boolean | undefined;
904
+ card_id?: string | undefined;
905
+ credential_id?: string | undefined;
906
+ } | undefined;
907
+ is_managed: false;
908
+ }) | null;
696
909
  };
697
910
  } | {
698
911
  /** The ID of the action attempt. */
699
912
  action_attempt_id: string;
700
913
  status: 'error';
701
914
  result: null;
702
- action_type: 'READ_CARD';
915
+ action_type: 'SCAN_CARD';
703
916
  error: {
704
917
  type: 'no_card_on_encoder';
705
918
  message: string;
@@ -717,12 +930,7 @@ export interface Routes {
717
930
  status: 'success';
718
931
  error: null;
719
932
  action_type: 'ENCODE_CARD';
720
- result: {
721
- /** Matching acs_credential currently encoded on this card. */
722
- acs_credential_id: string | null;
723
- /** A number or string that physically identifies this card. */
724
- card_number: string | null;
725
- };
933
+ result: {};
726
934
  } | {
727
935
  /** The ID of the action attempt. */
728
936
  action_attempt_id: string;
@@ -914,7 +1122,7 @@ export interface Routes {
914
1122
  status: 'success';
915
1123
  error: null;
916
1124
  action_type: 'SYNC_ACCESS_CODES';
917
- result?: any;
1125
+ result: {};
918
1126
  } | {
919
1127
  /** The ID of the action attempt. */
920
1128
  action_attempt_id: string;
@@ -938,7 +1146,9 @@ export interface Routes {
938
1146
  status: 'success';
939
1147
  error: null;
940
1148
  action_type: 'CREATE_ACCESS_CODE';
941
- result?: any;
1149
+ result: {
1150
+ access_code?: any;
1151
+ };
942
1152
  } | {
943
1153
  /** The ID of the action attempt. */
944
1154
  action_attempt_id: string;
@@ -962,7 +1172,7 @@ export interface Routes {
962
1172
  status: 'success';
963
1173
  error: null;
964
1174
  action_type: 'DELETE_ACCESS_CODE';
965
- result?: any;
1175
+ result: {};
966
1176
  } | {
967
1177
  /** The ID of the action attempt. */
968
1178
  action_attempt_id: string;
@@ -986,7 +1196,9 @@ export interface Routes {
986
1196
  status: 'success';
987
1197
  error: null;
988
1198
  action_type: 'UPDATE_ACCESS_CODE';
989
- result?: any;
1199
+ result: {
1200
+ access_code?: any;
1201
+ };
990
1202
  } | {
991
1203
  /** The ID of the action attempt. */
992
1204
  action_attempt_id: string;
@@ -1010,7 +1222,9 @@ export interface Routes {
1010
1222
  status: 'success';
1011
1223
  error: null;
1012
1224
  action_type: 'CREATE_NOISE_THRESHOLD';
1013
- result?: any;
1225
+ result: {
1226
+ noise_threshold?: any;
1227
+ };
1014
1228
  } | {
1015
1229
  /** The ID of the action attempt. */
1016
1230
  action_attempt_id: string;
@@ -1034,7 +1248,7 @@ export interface Routes {
1034
1248
  status: 'success';
1035
1249
  error: null;
1036
1250
  action_type: 'DELETE_NOISE_THRESHOLD';
1037
- result?: any;
1251
+ result: {};
1038
1252
  } | {
1039
1253
  /** The ID of the action attempt. */
1040
1254
  action_attempt_id: string;
@@ -1058,7 +1272,9 @@ export interface Routes {
1058
1272
  status: 'success';
1059
1273
  error: null;
1060
1274
  action_type: 'UPDATE_NOISE_THRESHOLD';
1061
- result?: any;
1275
+ result: {
1276
+ noise_threshold?: any;
1277
+ };
1062
1278
  } | {
1063
1279
  /** The ID of the action attempt. */
1064
1280
  action_attempt_id: string;
@@ -1444,23 +1660,128 @@ export interface Routes {
1444
1660
  status: 'pending';
1445
1661
  result: null;
1446
1662
  error: null;
1447
- action_type: 'READ_CARD';
1663
+ action_type: 'SCAN_CARD';
1448
1664
  } | {
1449
1665
  /** The ID of the action attempt. */
1450
1666
  action_attempt_id: string;
1451
1667
  status: 'success';
1452
1668
  error: null;
1453
- action_type: 'READ_CARD';
1669
+ action_type: 'SCAN_CARD';
1454
1670
  result: {
1455
- /** A number or string that physically identifies this card. */
1456
- card_number: string | null;
1671
+ /** Snapshot of the card data read from the physical encoder. */
1672
+ acs_credential_on_encoder: {
1673
+ /** Date and time the credential was created. */
1674
+ created_at: string;
1675
+ is_issued: boolean | null;
1676
+ /** Date and time the credential will become useable. */
1677
+ starts_at: string | null;
1678
+ /** Date and time the credential will stop being useable. */
1679
+ ends_at: string | null;
1680
+ /** A number or string that physically identifies this card. */
1681
+ card_number: string | null;
1682
+ visionline_metadata?: {
1683
+ card_id: string;
1684
+ card_function_type: 'guest' | 'staff';
1685
+ cancelled: boolean;
1686
+ discarded: boolean;
1687
+ expired: boolean;
1688
+ overwritten: boolean;
1689
+ overridden?: boolean | undefined;
1690
+ pending_auto_update: boolean;
1691
+ card_format: 'TLCode' | 'rfid48';
1692
+ card_holder?: string | undefined;
1693
+ number_of_issued_cards: number;
1694
+ } | undefined;
1695
+ };
1696
+ /** Matching acs_credential currently encoded on this card. */
1697
+ acs_credential_on_seam: ({
1698
+ acs_credential_id: string;
1699
+ acs_user_id?: string | undefined;
1700
+ acs_credential_pool_id?: string | undefined;
1701
+ acs_system_id: string;
1702
+ parent_acs_credential_id?: string | undefined;
1703
+ display_name: string;
1704
+ code?: (string | undefined) | null;
1705
+ card_number?: (string | undefined) | null;
1706
+ is_issued?: boolean | undefined;
1707
+ issued_at?: (string | undefined) | null;
1708
+ access_method: 'code' | 'card' | 'mobile_key';
1709
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
1710
+ external_type_display_name?: string | undefined;
1711
+ created_at: string;
1712
+ workspace_id: string;
1713
+ starts_at?: string | undefined;
1714
+ ends_at?: string | undefined;
1715
+ errors: Array<{
1716
+ error_code: string;
1717
+ message: string;
1718
+ }>;
1719
+ warnings: Array<{
1720
+ warning_code: string;
1721
+ message: string;
1722
+ }>;
1723
+ is_multi_phone_sync_credential?: boolean | undefined;
1724
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1725
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1726
+ visionline_metadata?: {
1727
+ card_function_type: 'guest' | 'staff';
1728
+ joiner_acs_credential_ids?: string[] | undefined;
1729
+ guest_acs_entrance_ids?: string[] | undefined;
1730
+ common_acs_entrance_ids?: string[] | undefined;
1731
+ is_valid?: boolean | undefined;
1732
+ auto_join?: boolean | undefined;
1733
+ card_id?: string | undefined;
1734
+ credential_id?: string | undefined;
1735
+ } | undefined;
1736
+ is_managed: true;
1737
+ } | {
1738
+ acs_credential_id: string;
1739
+ acs_user_id?: string | undefined;
1740
+ acs_credential_pool_id?: string | undefined;
1741
+ acs_system_id: string;
1742
+ parent_acs_credential_id?: string | undefined;
1743
+ display_name: string;
1744
+ code?: (string | undefined) | null;
1745
+ card_number?: (string | undefined) | null;
1746
+ is_issued?: boolean | undefined;
1747
+ issued_at?: (string | undefined) | null;
1748
+ access_method: 'code' | 'card' | 'mobile_key';
1749
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
1750
+ external_type_display_name?: string | undefined;
1751
+ created_at: string;
1752
+ workspace_id: string;
1753
+ starts_at?: string | undefined;
1754
+ ends_at?: string | undefined;
1755
+ errors: Array<{
1756
+ error_code: string;
1757
+ message: string;
1758
+ }>;
1759
+ warnings: Array<{
1760
+ warning_code: string;
1761
+ message: string;
1762
+ }>;
1763
+ is_multi_phone_sync_credential?: boolean | undefined;
1764
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1765
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1766
+ visionline_metadata?: {
1767
+ card_function_type: 'guest' | 'staff';
1768
+ joiner_acs_credential_ids?: string[] | undefined;
1769
+ guest_acs_entrance_ids?: string[] | undefined;
1770
+ common_acs_entrance_ids?: string[] | undefined;
1771
+ is_valid?: boolean | undefined;
1772
+ auto_join?: boolean | undefined;
1773
+ card_id?: string | undefined;
1774
+ credential_id?: string | undefined;
1775
+ } | undefined;
1776
+ is_managed: false;
1777
+ }) | null;
1457
1778
  };
1458
1779
  } | {
1459
1780
  /** The ID of the action attempt. */
1460
1781
  action_attempt_id: string;
1461
1782
  status: 'error';
1462
1783
  result: null;
1463
- action_type: 'READ_CARD';
1784
+ action_type: 'SCAN_CARD';
1464
1785
  error: {
1465
1786
  type: 'no_card_on_encoder';
1466
1787
  message: string;
@@ -1478,12 +1799,7 @@ export interface Routes {
1478
1799
  status: 'success';
1479
1800
  error: null;
1480
1801
  action_type: 'ENCODE_CARD';
1481
- result: {
1482
- /** Matching acs_credential currently encoded on this card. */
1483
- acs_credential_id: string | null;
1484
- /** A number or string that physically identifies this card. */
1485
- card_number: string | null;
1486
- };
1802
+ result: {};
1487
1803
  } | {
1488
1804
  /** The ID of the action attempt. */
1489
1805
  action_attempt_id: string;
@@ -1675,7 +1991,7 @@ export interface Routes {
1675
1991
  status: 'success';
1676
1992
  error: null;
1677
1993
  action_type: 'SYNC_ACCESS_CODES';
1678
- result?: any;
1994
+ result: {};
1679
1995
  } | {
1680
1996
  /** The ID of the action attempt. */
1681
1997
  action_attempt_id: string;
@@ -1699,7 +2015,9 @@ export interface Routes {
1699
2015
  status: 'success';
1700
2016
  error: null;
1701
2017
  action_type: 'CREATE_ACCESS_CODE';
1702
- result?: any;
2018
+ result: {
2019
+ access_code?: any;
2020
+ };
1703
2021
  } | {
1704
2022
  /** The ID of the action attempt. */
1705
2023
  action_attempt_id: string;
@@ -1723,7 +2041,7 @@ export interface Routes {
1723
2041
  status: 'success';
1724
2042
  error: null;
1725
2043
  action_type: 'DELETE_ACCESS_CODE';
1726
- result?: any;
2044
+ result: {};
1727
2045
  } | {
1728
2046
  /** The ID of the action attempt. */
1729
2047
  action_attempt_id: string;
@@ -1747,7 +2065,9 @@ export interface Routes {
1747
2065
  status: 'success';
1748
2066
  error: null;
1749
2067
  action_type: 'UPDATE_ACCESS_CODE';
1750
- result?: any;
2068
+ result: {
2069
+ access_code?: any;
2070
+ };
1751
2071
  } | {
1752
2072
  /** The ID of the action attempt. */
1753
2073
  action_attempt_id: string;
@@ -1771,7 +2091,9 @@ export interface Routes {
1771
2091
  status: 'success';
1772
2092
  error: null;
1773
2093
  action_type: 'CREATE_NOISE_THRESHOLD';
1774
- result?: any;
2094
+ result: {
2095
+ noise_threshold?: any;
2096
+ };
1775
2097
  } | {
1776
2098
  /** The ID of the action attempt. */
1777
2099
  action_attempt_id: string;
@@ -1795,7 +2117,7 @@ export interface Routes {
1795
2117
  status: 'success';
1796
2118
  error: null;
1797
2119
  action_type: 'DELETE_NOISE_THRESHOLD';
1798
- result?: any;
2120
+ result: {};
1799
2121
  } | {
1800
2122
  /** The ID of the action attempt. */
1801
2123
  action_attempt_id: string;
@@ -1819,7 +2141,9 @@ export interface Routes {
1819
2141
  status: 'success';
1820
2142
  error: null;
1821
2143
  action_type: 'UPDATE_NOISE_THRESHOLD';
1822
- result?: any;
2144
+ result: {
2145
+ noise_threshold?: any;
2146
+ };
1823
2147
  } | {
1824
2148
  /** The ID of the action attempt. */
1825
2149
  action_attempt_id: string;
@@ -2035,23 +2359,128 @@ export interface Routes {
2035
2359
  status: 'pending';
2036
2360
  result: null;
2037
2361
  error: null;
2038
- action_type: 'READ_CARD';
2362
+ action_type: 'SCAN_CARD';
2039
2363
  } | {
2040
2364
  /** The ID of the action attempt. */
2041
2365
  action_attempt_id: string;
2042
2366
  status: 'success';
2043
2367
  error: null;
2044
- action_type: 'READ_CARD';
2368
+ action_type: 'SCAN_CARD';
2045
2369
  result: {
2046
- /** A number or string that physically identifies this card. */
2047
- card_number: string | null;
2370
+ /** Snapshot of the card data read from the physical encoder. */
2371
+ acs_credential_on_encoder: {
2372
+ /** Date and time the credential was created. */
2373
+ created_at: string;
2374
+ is_issued: boolean | null;
2375
+ /** Date and time the credential will become useable. */
2376
+ starts_at: string | null;
2377
+ /** Date and time the credential will stop being useable. */
2378
+ ends_at: string | null;
2379
+ /** A number or string that physically identifies this card. */
2380
+ card_number: string | null;
2381
+ visionline_metadata?: {
2382
+ card_id: string;
2383
+ card_function_type: 'guest' | 'staff';
2384
+ cancelled: boolean;
2385
+ discarded: boolean;
2386
+ expired: boolean;
2387
+ overwritten: boolean;
2388
+ overridden?: boolean | undefined;
2389
+ pending_auto_update: boolean;
2390
+ card_format: 'TLCode' | 'rfid48';
2391
+ card_holder?: string | undefined;
2392
+ number_of_issued_cards: number;
2393
+ } | undefined;
2394
+ };
2395
+ /** Matching acs_credential currently encoded on this card. */
2396
+ acs_credential_on_seam: ({
2397
+ acs_credential_id: string;
2398
+ acs_user_id?: string | undefined;
2399
+ acs_credential_pool_id?: string | undefined;
2400
+ acs_system_id: string;
2401
+ parent_acs_credential_id?: string | undefined;
2402
+ display_name: string;
2403
+ code?: (string | undefined) | null;
2404
+ card_number?: (string | undefined) | null;
2405
+ is_issued?: boolean | undefined;
2406
+ issued_at?: (string | undefined) | null;
2407
+ access_method: 'code' | 'card' | 'mobile_key';
2408
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
2409
+ external_type_display_name?: string | undefined;
2410
+ created_at: string;
2411
+ workspace_id: string;
2412
+ starts_at?: string | undefined;
2413
+ ends_at?: string | undefined;
2414
+ errors: Array<{
2415
+ error_code: string;
2416
+ message: string;
2417
+ }>;
2418
+ warnings: Array<{
2419
+ warning_code: string;
2420
+ message: string;
2421
+ }>;
2422
+ is_multi_phone_sync_credential?: boolean | undefined;
2423
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2424
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2425
+ visionline_metadata?: {
2426
+ card_function_type: 'guest' | 'staff';
2427
+ joiner_acs_credential_ids?: string[] | undefined;
2428
+ guest_acs_entrance_ids?: string[] | undefined;
2429
+ common_acs_entrance_ids?: string[] | undefined;
2430
+ is_valid?: boolean | undefined;
2431
+ auto_join?: boolean | undefined;
2432
+ card_id?: string | undefined;
2433
+ credential_id?: string | undefined;
2434
+ } | undefined;
2435
+ is_managed: true;
2436
+ } | {
2437
+ acs_credential_id: string;
2438
+ acs_user_id?: string | undefined;
2439
+ acs_credential_pool_id?: string | undefined;
2440
+ acs_system_id: string;
2441
+ parent_acs_credential_id?: string | undefined;
2442
+ display_name: string;
2443
+ code?: (string | undefined) | null;
2444
+ card_number?: (string | undefined) | null;
2445
+ is_issued?: boolean | undefined;
2446
+ issued_at?: (string | undefined) | null;
2447
+ access_method: 'code' | 'card' | 'mobile_key';
2448
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
2449
+ external_type_display_name?: string | undefined;
2450
+ created_at: string;
2451
+ workspace_id: string;
2452
+ starts_at?: string | undefined;
2453
+ ends_at?: string | undefined;
2454
+ errors: Array<{
2455
+ error_code: string;
2456
+ message: string;
2457
+ }>;
2458
+ warnings: Array<{
2459
+ warning_code: string;
2460
+ message: string;
2461
+ }>;
2462
+ is_multi_phone_sync_credential?: boolean | undefined;
2463
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2464
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2465
+ visionline_metadata?: {
2466
+ card_function_type: 'guest' | 'staff';
2467
+ joiner_acs_credential_ids?: string[] | undefined;
2468
+ guest_acs_entrance_ids?: string[] | undefined;
2469
+ common_acs_entrance_ids?: string[] | undefined;
2470
+ is_valid?: boolean | undefined;
2471
+ auto_join?: boolean | undefined;
2472
+ card_id?: string | undefined;
2473
+ credential_id?: string | undefined;
2474
+ } | undefined;
2475
+ is_managed: false;
2476
+ }) | null;
2048
2477
  };
2049
2478
  } | {
2050
2479
  /** The ID of the action attempt. */
2051
2480
  action_attempt_id: string;
2052
2481
  status: 'error';
2053
2482
  result: null;
2054
- action_type: 'READ_CARD';
2483
+ action_type: 'SCAN_CARD';
2055
2484
  error: {
2056
2485
  type: 'no_card_on_encoder';
2057
2486
  message: string;
@@ -2069,12 +2498,7 @@ export interface Routes {
2069
2498
  status: 'success';
2070
2499
  error: null;
2071
2500
  action_type: 'ENCODE_CARD';
2072
- result: {
2073
- /** Matching acs_credential currently encoded on this card. */
2074
- acs_credential_id: string | null;
2075
- /** A number or string that physically identifies this card. */
2076
- card_number: string | null;
2077
- };
2501
+ result: {};
2078
2502
  } | {
2079
2503
  /** The ID of the action attempt. */
2080
2504
  action_attempt_id: string;
@@ -2266,7 +2690,7 @@ export interface Routes {
2266
2690
  status: 'success';
2267
2691
  error: null;
2268
2692
  action_type: 'SYNC_ACCESS_CODES';
2269
- result?: any;
2693
+ result: {};
2270
2694
  } | {
2271
2695
  /** The ID of the action attempt. */
2272
2696
  action_attempt_id: string;
@@ -2290,7 +2714,9 @@ export interface Routes {
2290
2714
  status: 'success';
2291
2715
  error: null;
2292
2716
  action_type: 'CREATE_ACCESS_CODE';
2293
- result?: any;
2717
+ result: {
2718
+ access_code?: any;
2719
+ };
2294
2720
  } | {
2295
2721
  /** The ID of the action attempt. */
2296
2722
  action_attempt_id: string;
@@ -2314,7 +2740,7 @@ export interface Routes {
2314
2740
  status: 'success';
2315
2741
  error: null;
2316
2742
  action_type: 'DELETE_ACCESS_CODE';
2317
- result?: any;
2743
+ result: {};
2318
2744
  } | {
2319
2745
  /** The ID of the action attempt. */
2320
2746
  action_attempt_id: string;
@@ -2338,7 +2764,9 @@ export interface Routes {
2338
2764
  status: 'success';
2339
2765
  error: null;
2340
2766
  action_type: 'UPDATE_ACCESS_CODE';
2341
- result?: any;
2767
+ result: {
2768
+ access_code?: any;
2769
+ };
2342
2770
  } | {
2343
2771
  /** The ID of the action attempt. */
2344
2772
  action_attempt_id: string;
@@ -2362,7 +2790,9 @@ export interface Routes {
2362
2790
  status: 'success';
2363
2791
  error: null;
2364
2792
  action_type: 'CREATE_NOISE_THRESHOLD';
2365
- result?: any;
2793
+ result: {
2794
+ noise_threshold?: any;
2795
+ };
2366
2796
  } | {
2367
2797
  /** The ID of the action attempt. */
2368
2798
  action_attempt_id: string;
@@ -2386,7 +2816,7 @@ export interface Routes {
2386
2816
  status: 'success';
2387
2817
  error: null;
2388
2818
  action_type: 'DELETE_NOISE_THRESHOLD';
2389
- result?: any;
2819
+ result: {};
2390
2820
  } | {
2391
2821
  /** The ID of the action attempt. */
2392
2822
  action_attempt_id: string;
@@ -2410,7 +2840,9 @@ export interface Routes {
2410
2840
  status: 'success';
2411
2841
  error: null;
2412
2842
  action_type: 'UPDATE_NOISE_THRESHOLD';
2413
- result?: any;
2843
+ result: {
2844
+ noise_threshold?: any;
2845
+ };
2414
2846
  } | {
2415
2847
  /** The ID of the action attempt. */
2416
2848
  action_attempt_id: string;
@@ -3370,23 +3802,128 @@ export interface Routes {
3370
3802
  status: 'pending';
3371
3803
  result: null;
3372
3804
  error: null;
3373
- action_type: 'READ_CARD';
3805
+ action_type: 'SCAN_CARD';
3374
3806
  } | {
3375
3807
  /** The ID of the action attempt. */
3376
3808
  action_attempt_id: string;
3377
3809
  status: 'success';
3378
3810
  error: null;
3379
- action_type: 'READ_CARD';
3811
+ action_type: 'SCAN_CARD';
3380
3812
  result: {
3381
- /** A number or string that physically identifies this card. */
3382
- card_number: string | null;
3813
+ /** Snapshot of the card data read from the physical encoder. */
3814
+ acs_credential_on_encoder: {
3815
+ /** Date and time the credential was created. */
3816
+ created_at: string;
3817
+ is_issued: boolean | null;
3818
+ /** Date and time the credential will become useable. */
3819
+ starts_at: string | null;
3820
+ /** Date and time the credential will stop being useable. */
3821
+ ends_at: string | null;
3822
+ /** A number or string that physically identifies this card. */
3823
+ card_number: string | null;
3824
+ visionline_metadata?: {
3825
+ card_id: string;
3826
+ card_function_type: 'guest' | 'staff';
3827
+ cancelled: boolean;
3828
+ discarded: boolean;
3829
+ expired: boolean;
3830
+ overwritten: boolean;
3831
+ overridden?: boolean | undefined;
3832
+ pending_auto_update: boolean;
3833
+ card_format: 'TLCode' | 'rfid48';
3834
+ card_holder?: string | undefined;
3835
+ number_of_issued_cards: number;
3836
+ } | undefined;
3837
+ };
3838
+ /** Matching acs_credential currently encoded on this card. */
3839
+ acs_credential_on_seam: ({
3840
+ acs_credential_id: string;
3841
+ acs_user_id?: string | undefined;
3842
+ acs_credential_pool_id?: string | undefined;
3843
+ acs_system_id: string;
3844
+ parent_acs_credential_id?: string | undefined;
3845
+ display_name: string;
3846
+ code?: (string | undefined) | null;
3847
+ card_number?: (string | undefined) | null;
3848
+ is_issued?: boolean | undefined;
3849
+ issued_at?: (string | undefined) | null;
3850
+ access_method: 'code' | 'card' | 'mobile_key';
3851
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
3852
+ external_type_display_name?: string | undefined;
3853
+ created_at: string;
3854
+ workspace_id: string;
3855
+ starts_at?: string | undefined;
3856
+ ends_at?: string | undefined;
3857
+ errors: Array<{
3858
+ error_code: string;
3859
+ message: string;
3860
+ }>;
3861
+ warnings: Array<{
3862
+ warning_code: string;
3863
+ message: string;
3864
+ }>;
3865
+ is_multi_phone_sync_credential?: boolean | undefined;
3866
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3867
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3868
+ visionline_metadata?: {
3869
+ card_function_type: 'guest' | 'staff';
3870
+ joiner_acs_credential_ids?: string[] | undefined;
3871
+ guest_acs_entrance_ids?: string[] | undefined;
3872
+ common_acs_entrance_ids?: string[] | undefined;
3873
+ is_valid?: boolean | undefined;
3874
+ auto_join?: boolean | undefined;
3875
+ card_id?: string | undefined;
3876
+ credential_id?: string | undefined;
3877
+ } | undefined;
3878
+ is_managed: true;
3879
+ } | {
3880
+ acs_credential_id: string;
3881
+ acs_user_id?: string | undefined;
3882
+ acs_credential_pool_id?: string | undefined;
3883
+ acs_system_id: string;
3884
+ parent_acs_credential_id?: string | undefined;
3885
+ display_name: string;
3886
+ code?: (string | undefined) | null;
3887
+ card_number?: (string | undefined) | null;
3888
+ is_issued?: boolean | undefined;
3889
+ issued_at?: (string | undefined) | null;
3890
+ access_method: 'code' | 'card' | 'mobile_key';
3891
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
3892
+ external_type_display_name?: string | undefined;
3893
+ created_at: string;
3894
+ workspace_id: string;
3895
+ starts_at?: string | undefined;
3896
+ ends_at?: string | undefined;
3897
+ errors: Array<{
3898
+ error_code: string;
3899
+ message: string;
3900
+ }>;
3901
+ warnings: Array<{
3902
+ warning_code: string;
3903
+ message: string;
3904
+ }>;
3905
+ is_multi_phone_sync_credential?: boolean | undefined;
3906
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3907
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3908
+ visionline_metadata?: {
3909
+ card_function_type: 'guest' | 'staff';
3910
+ joiner_acs_credential_ids?: string[] | undefined;
3911
+ guest_acs_entrance_ids?: string[] | undefined;
3912
+ common_acs_entrance_ids?: string[] | undefined;
3913
+ is_valid?: boolean | undefined;
3914
+ auto_join?: boolean | undefined;
3915
+ card_id?: string | undefined;
3916
+ credential_id?: string | undefined;
3917
+ } | undefined;
3918
+ is_managed: false;
3919
+ }) | null;
3383
3920
  };
3384
3921
  } | {
3385
3922
  /** The ID of the action attempt. */
3386
3923
  action_attempt_id: string;
3387
3924
  status: 'error';
3388
3925
  result: null;
3389
- action_type: 'READ_CARD';
3926
+ action_type: 'SCAN_CARD';
3390
3927
  error: {
3391
3928
  type: 'no_card_on_encoder';
3392
3929
  message: string;
@@ -3404,12 +3941,7 @@ export interface Routes {
3404
3941
  status: 'success';
3405
3942
  error: null;
3406
3943
  action_type: 'ENCODE_CARD';
3407
- result: {
3408
- /** Matching acs_credential currently encoded on this card. */
3409
- acs_credential_id: string | null;
3410
- /** A number or string that physically identifies this card. */
3411
- card_number: string | null;
3412
- };
3944
+ result: {};
3413
3945
  } | {
3414
3946
  /** The ID of the action attempt. */
3415
3947
  action_attempt_id: string;
@@ -3601,7 +4133,7 @@ export interface Routes {
3601
4133
  status: 'success';
3602
4134
  error: null;
3603
4135
  action_type: 'SYNC_ACCESS_CODES';
3604
- result?: any;
4136
+ result: {};
3605
4137
  } | {
3606
4138
  /** The ID of the action attempt. */
3607
4139
  action_attempt_id: string;
@@ -3625,7 +4157,9 @@ export interface Routes {
3625
4157
  status: 'success';
3626
4158
  error: null;
3627
4159
  action_type: 'CREATE_ACCESS_CODE';
3628
- result?: any;
4160
+ result: {
4161
+ access_code?: any;
4162
+ };
3629
4163
  } | {
3630
4164
  /** The ID of the action attempt. */
3631
4165
  action_attempt_id: string;
@@ -3649,7 +4183,7 @@ export interface Routes {
3649
4183
  status: 'success';
3650
4184
  error: null;
3651
4185
  action_type: 'DELETE_ACCESS_CODE';
3652
- result?: any;
4186
+ result: {};
3653
4187
  } | {
3654
4188
  /** The ID of the action attempt. */
3655
4189
  action_attempt_id: string;
@@ -3673,7 +4207,9 @@ export interface Routes {
3673
4207
  status: 'success';
3674
4208
  error: null;
3675
4209
  action_type: 'UPDATE_ACCESS_CODE';
3676
- result?: any;
4210
+ result: {
4211
+ access_code?: any;
4212
+ };
3677
4213
  } | {
3678
4214
  /** The ID of the action attempt. */
3679
4215
  action_attempt_id: string;
@@ -3697,7 +4233,9 @@ export interface Routes {
3697
4233
  status: 'success';
3698
4234
  error: null;
3699
4235
  action_type: 'CREATE_NOISE_THRESHOLD';
3700
- result?: any;
4236
+ result: {
4237
+ noise_threshold?: any;
4238
+ };
3701
4239
  } | {
3702
4240
  /** The ID of the action attempt. */
3703
4241
  action_attempt_id: string;
@@ -3721,7 +4259,7 @@ export interface Routes {
3721
4259
  status: 'success';
3722
4260
  error: null;
3723
4261
  action_type: 'DELETE_NOISE_THRESHOLD';
3724
- result?: any;
4262
+ result: {};
3725
4263
  } | {
3726
4264
  /** The ID of the action attempt. */
3727
4265
  action_attempt_id: string;
@@ -3745,7 +4283,9 @@ export interface Routes {
3745
4283
  status: 'success';
3746
4284
  error: null;
3747
4285
  action_type: 'UPDATE_NOISE_THRESHOLD';
3748
- result?: any;
4286
+ result: {
4287
+ noise_threshold?: any;
4288
+ };
3749
4289
  } | {
3750
4290
  /** The ID of the action attempt. */
3751
4291
  action_attempt_id: string;
@@ -4218,8 +4758,8 @@ export interface Routes {
4218
4758
  }>;
4219
4759
  };
4220
4760
  };
4221
- '/acs/encoders/read_card': {
4222
- route: '/acs/encoders/read_card';
4761
+ '/acs/encoders/scan_card': {
4762
+ route: '/acs/encoders/scan_card';
4223
4763
  method: 'POST';
4224
4764
  queryParams: {};
4225
4765
  jsonBody: {};
@@ -4286,23 +4826,128 @@ export interface Routes {
4286
4826
  status: 'pending';
4287
4827
  result: null;
4288
4828
  error: null;
4289
- action_type: 'READ_CARD';
4829
+ action_type: 'SCAN_CARD';
4290
4830
  } | {
4291
4831
  /** The ID of the action attempt. */
4292
4832
  action_attempt_id: string;
4293
4833
  status: 'success';
4294
4834
  error: null;
4295
- action_type: 'READ_CARD';
4835
+ action_type: 'SCAN_CARD';
4296
4836
  result: {
4297
- /** A number or string that physically identifies this card. */
4298
- card_number: string | null;
4837
+ /** Snapshot of the card data read from the physical encoder. */
4838
+ acs_credential_on_encoder: {
4839
+ /** Date and time the credential was created. */
4840
+ created_at: string;
4841
+ is_issued: boolean | null;
4842
+ /** Date and time the credential will become useable. */
4843
+ starts_at: string | null;
4844
+ /** Date and time the credential will stop being useable. */
4845
+ ends_at: string | null;
4846
+ /** A number or string that physically identifies this card. */
4847
+ card_number: string | null;
4848
+ visionline_metadata?: {
4849
+ card_id: string;
4850
+ card_function_type: 'guest' | 'staff';
4851
+ cancelled: boolean;
4852
+ discarded: boolean;
4853
+ expired: boolean;
4854
+ overwritten: boolean;
4855
+ overridden?: boolean | undefined;
4856
+ pending_auto_update: boolean;
4857
+ card_format: 'TLCode' | 'rfid48';
4858
+ card_holder?: string | undefined;
4859
+ number_of_issued_cards: number;
4860
+ } | undefined;
4861
+ };
4862
+ /** Matching acs_credential currently encoded on this card. */
4863
+ acs_credential_on_seam: ({
4864
+ acs_credential_id: string;
4865
+ acs_user_id?: string | undefined;
4866
+ acs_credential_pool_id?: string | undefined;
4867
+ acs_system_id: string;
4868
+ parent_acs_credential_id?: string | undefined;
4869
+ display_name: string;
4870
+ code?: (string | undefined) | null;
4871
+ card_number?: (string | undefined) | null;
4872
+ is_issued?: boolean | undefined;
4873
+ issued_at?: (string | undefined) | null;
4874
+ access_method: 'code' | 'card' | 'mobile_key';
4875
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
4876
+ external_type_display_name?: string | undefined;
4877
+ created_at: string;
4878
+ workspace_id: string;
4879
+ starts_at?: string | undefined;
4880
+ ends_at?: string | undefined;
4881
+ errors: Array<{
4882
+ error_code: string;
4883
+ message: string;
4884
+ }>;
4885
+ warnings: Array<{
4886
+ warning_code: string;
4887
+ message: string;
4888
+ }>;
4889
+ is_multi_phone_sync_credential?: boolean | undefined;
4890
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
4891
+ latest_desired_state_synced_with_provider_at?: string | undefined;
4892
+ visionline_metadata?: {
4893
+ card_function_type: 'guest' | 'staff';
4894
+ joiner_acs_credential_ids?: string[] | undefined;
4895
+ guest_acs_entrance_ids?: string[] | undefined;
4896
+ common_acs_entrance_ids?: string[] | undefined;
4897
+ is_valid?: boolean | undefined;
4898
+ auto_join?: boolean | undefined;
4899
+ card_id?: string | undefined;
4900
+ credential_id?: string | undefined;
4901
+ } | undefined;
4902
+ is_managed: true;
4903
+ } | {
4904
+ acs_credential_id: string;
4905
+ acs_user_id?: string | undefined;
4906
+ acs_credential_pool_id?: string | undefined;
4907
+ acs_system_id: string;
4908
+ parent_acs_credential_id?: string | undefined;
4909
+ display_name: string;
4910
+ code?: (string | undefined) | null;
4911
+ card_number?: (string | undefined) | null;
4912
+ is_issued?: boolean | undefined;
4913
+ issued_at?: (string | undefined) | null;
4914
+ access_method: 'code' | 'card' | 'mobile_key';
4915
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
4916
+ external_type_display_name?: string | undefined;
4917
+ created_at: string;
4918
+ workspace_id: string;
4919
+ starts_at?: string | undefined;
4920
+ ends_at?: string | undefined;
4921
+ errors: Array<{
4922
+ error_code: string;
4923
+ message: string;
4924
+ }>;
4925
+ warnings: Array<{
4926
+ warning_code: string;
4927
+ message: string;
4928
+ }>;
4929
+ is_multi_phone_sync_credential?: boolean | undefined;
4930
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
4931
+ latest_desired_state_synced_with_provider_at?: string | undefined;
4932
+ visionline_metadata?: {
4933
+ card_function_type: 'guest' | 'staff';
4934
+ joiner_acs_credential_ids?: string[] | undefined;
4935
+ guest_acs_entrance_ids?: string[] | undefined;
4936
+ common_acs_entrance_ids?: string[] | undefined;
4937
+ is_valid?: boolean | undefined;
4938
+ auto_join?: boolean | undefined;
4939
+ card_id?: string | undefined;
4940
+ credential_id?: string | undefined;
4941
+ } | undefined;
4942
+ is_managed: false;
4943
+ }) | null;
4299
4944
  };
4300
4945
  } | {
4301
4946
  /** The ID of the action attempt. */
4302
4947
  action_attempt_id: string;
4303
4948
  status: 'error';
4304
4949
  result: null;
4305
- action_type: 'READ_CARD';
4950
+ action_type: 'SCAN_CARD';
4306
4951
  error: {
4307
4952
  type: 'no_card_on_encoder';
4308
4953
  message: string;
@@ -4320,12 +4965,7 @@ export interface Routes {
4320
4965
  status: 'success';
4321
4966
  error: null;
4322
4967
  action_type: 'ENCODE_CARD';
4323
- result: {
4324
- /** Matching acs_credential currently encoded on this card. */
4325
- acs_credential_id: string | null;
4326
- /** A number or string that physically identifies this card. */
4327
- card_number: string | null;
4328
- };
4968
+ result: {};
4329
4969
  } | {
4330
4970
  /** The ID of the action attempt. */
4331
4971
  action_attempt_id: string;
@@ -4517,7 +5157,7 @@ export interface Routes {
4517
5157
  status: 'success';
4518
5158
  error: null;
4519
5159
  action_type: 'SYNC_ACCESS_CODES';
4520
- result?: any;
5160
+ result: {};
4521
5161
  } | {
4522
5162
  /** The ID of the action attempt. */
4523
5163
  action_attempt_id: string;
@@ -4541,7 +5181,9 @@ export interface Routes {
4541
5181
  status: 'success';
4542
5182
  error: null;
4543
5183
  action_type: 'CREATE_ACCESS_CODE';
4544
- result?: any;
5184
+ result: {
5185
+ access_code?: any;
5186
+ };
4545
5187
  } | {
4546
5188
  /** The ID of the action attempt. */
4547
5189
  action_attempt_id: string;
@@ -4565,7 +5207,7 @@ export interface Routes {
4565
5207
  status: 'success';
4566
5208
  error: null;
4567
5209
  action_type: 'DELETE_ACCESS_CODE';
4568
- result?: any;
5210
+ result: {};
4569
5211
  } | {
4570
5212
  /** The ID of the action attempt. */
4571
5213
  action_attempt_id: string;
@@ -4589,7 +5231,9 @@ export interface Routes {
4589
5231
  status: 'success';
4590
5232
  error: null;
4591
5233
  action_type: 'UPDATE_ACCESS_CODE';
4592
- result?: any;
5234
+ result: {
5235
+ access_code?: any;
5236
+ };
4593
5237
  } | {
4594
5238
  /** The ID of the action attempt. */
4595
5239
  action_attempt_id: string;
@@ -4613,7 +5257,9 @@ export interface Routes {
4613
5257
  status: 'success';
4614
5258
  error: null;
4615
5259
  action_type: 'CREATE_NOISE_THRESHOLD';
4616
- result?: any;
5260
+ result: {
5261
+ noise_threshold?: any;
5262
+ };
4617
5263
  } | {
4618
5264
  /** The ID of the action attempt. */
4619
5265
  action_attempt_id: string;
@@ -4637,7 +5283,7 @@ export interface Routes {
4637
5283
  status: 'success';
4638
5284
  error: null;
4639
5285
  action_type: 'DELETE_NOISE_THRESHOLD';
4640
- result?: any;
5286
+ result: {};
4641
5287
  } | {
4642
5288
  /** The ID of the action attempt. */
4643
5289
  action_attempt_id: string;
@@ -4661,7 +5307,9 @@ export interface Routes {
4661
5307
  status: 'success';
4662
5308
  error: null;
4663
5309
  action_type: 'UPDATE_NOISE_THRESHOLD';
4664
- result?: any;
5310
+ result: {
5311
+ noise_threshold?: any;
5312
+ };
4665
5313
  } | {
4666
5314
  /** The ID of the action attempt. */
4667
5315
  action_attempt_id: string;
@@ -5897,23 +6545,128 @@ export interface Routes {
5897
6545
  status: 'pending';
5898
6546
  result: null;
5899
6547
  error: null;
5900
- action_type: 'READ_CARD';
6548
+ action_type: 'SCAN_CARD';
5901
6549
  } | {
5902
6550
  /** The ID of the action attempt. */
5903
6551
  action_attempt_id: string;
5904
6552
  status: 'success';
5905
6553
  error: null;
5906
- action_type: 'READ_CARD';
6554
+ action_type: 'SCAN_CARD';
5907
6555
  result: {
5908
- /** A number or string that physically identifies this card. */
5909
- card_number: string | null;
6556
+ /** Snapshot of the card data read from the physical encoder. */
6557
+ acs_credential_on_encoder: {
6558
+ /** Date and time the credential was created. */
6559
+ created_at: string;
6560
+ is_issued: boolean | null;
6561
+ /** Date and time the credential will become useable. */
6562
+ starts_at: string | null;
6563
+ /** Date and time the credential will stop being useable. */
6564
+ ends_at: string | null;
6565
+ /** A number or string that physically identifies this card. */
6566
+ card_number: string | null;
6567
+ visionline_metadata?: {
6568
+ card_id: string;
6569
+ card_function_type: 'guest' | 'staff';
6570
+ cancelled: boolean;
6571
+ discarded: boolean;
6572
+ expired: boolean;
6573
+ overwritten: boolean;
6574
+ overridden?: boolean | undefined;
6575
+ pending_auto_update: boolean;
6576
+ card_format: 'TLCode' | 'rfid48';
6577
+ card_holder?: string | undefined;
6578
+ number_of_issued_cards: number;
6579
+ } | undefined;
6580
+ };
6581
+ /** Matching acs_credential currently encoded on this card. */
6582
+ acs_credential_on_seam: ({
6583
+ acs_credential_id: string;
6584
+ acs_user_id?: string | undefined;
6585
+ acs_credential_pool_id?: string | undefined;
6586
+ acs_system_id: string;
6587
+ parent_acs_credential_id?: string | undefined;
6588
+ display_name: string;
6589
+ code?: (string | undefined) | null;
6590
+ card_number?: (string | undefined) | null;
6591
+ is_issued?: boolean | undefined;
6592
+ issued_at?: (string | undefined) | null;
6593
+ access_method: 'code' | 'card' | 'mobile_key';
6594
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
6595
+ external_type_display_name?: string | undefined;
6596
+ created_at: string;
6597
+ workspace_id: string;
6598
+ starts_at?: string | undefined;
6599
+ ends_at?: string | undefined;
6600
+ errors: Array<{
6601
+ error_code: string;
6602
+ message: string;
6603
+ }>;
6604
+ warnings: Array<{
6605
+ warning_code: string;
6606
+ message: string;
6607
+ }>;
6608
+ is_multi_phone_sync_credential?: boolean | undefined;
6609
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
6610
+ latest_desired_state_synced_with_provider_at?: string | undefined;
6611
+ visionline_metadata?: {
6612
+ card_function_type: 'guest' | 'staff';
6613
+ joiner_acs_credential_ids?: string[] | undefined;
6614
+ guest_acs_entrance_ids?: string[] | undefined;
6615
+ common_acs_entrance_ids?: string[] | undefined;
6616
+ is_valid?: boolean | undefined;
6617
+ auto_join?: boolean | undefined;
6618
+ card_id?: string | undefined;
6619
+ credential_id?: string | undefined;
6620
+ } | undefined;
6621
+ is_managed: true;
6622
+ } | {
6623
+ acs_credential_id: string;
6624
+ acs_user_id?: string | undefined;
6625
+ acs_credential_pool_id?: string | undefined;
6626
+ acs_system_id: string;
6627
+ parent_acs_credential_id?: string | undefined;
6628
+ display_name: string;
6629
+ code?: (string | undefined) | null;
6630
+ card_number?: (string | undefined) | null;
6631
+ is_issued?: boolean | undefined;
6632
+ issued_at?: (string | undefined) | null;
6633
+ access_method: 'code' | 'card' | 'mobile_key';
6634
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
6635
+ external_type_display_name?: string | undefined;
6636
+ created_at: string;
6637
+ workspace_id: string;
6638
+ starts_at?: string | undefined;
6639
+ ends_at?: string | undefined;
6640
+ errors: Array<{
6641
+ error_code: string;
6642
+ message: string;
6643
+ }>;
6644
+ warnings: Array<{
6645
+ warning_code: string;
6646
+ message: string;
6647
+ }>;
6648
+ is_multi_phone_sync_credential?: boolean | undefined;
6649
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
6650
+ latest_desired_state_synced_with_provider_at?: string | undefined;
6651
+ visionline_metadata?: {
6652
+ card_function_type: 'guest' | 'staff';
6653
+ joiner_acs_credential_ids?: string[] | undefined;
6654
+ guest_acs_entrance_ids?: string[] | undefined;
6655
+ common_acs_entrance_ids?: string[] | undefined;
6656
+ is_valid?: boolean | undefined;
6657
+ auto_join?: boolean | undefined;
6658
+ card_id?: string | undefined;
6659
+ credential_id?: string | undefined;
6660
+ } | undefined;
6661
+ is_managed: false;
6662
+ }) | null;
5910
6663
  };
5911
6664
  } | {
5912
6665
  /** The ID of the action attempt. */
5913
6666
  action_attempt_id: string;
5914
6667
  status: 'error';
5915
6668
  result: null;
5916
- action_type: 'READ_CARD';
6669
+ action_type: 'SCAN_CARD';
5917
6670
  error: {
5918
6671
  type: 'no_card_on_encoder';
5919
6672
  message: string;
@@ -5931,12 +6684,7 @@ export interface Routes {
5931
6684
  status: 'success';
5932
6685
  error: null;
5933
6686
  action_type: 'ENCODE_CARD';
5934
- result: {
5935
- /** Matching acs_credential currently encoded on this card. */
5936
- acs_credential_id: string | null;
5937
- /** A number or string that physically identifies this card. */
5938
- card_number: string | null;
5939
- };
6687
+ result: {};
5940
6688
  } | {
5941
6689
  /** The ID of the action attempt. */
5942
6690
  action_attempt_id: string;
@@ -6128,7 +6876,7 @@ export interface Routes {
6128
6876
  status: 'success';
6129
6877
  error: null;
6130
6878
  action_type: 'SYNC_ACCESS_CODES';
6131
- result?: any;
6879
+ result: {};
6132
6880
  } | {
6133
6881
  /** The ID of the action attempt. */
6134
6882
  action_attempt_id: string;
@@ -6152,7 +6900,9 @@ export interface Routes {
6152
6900
  status: 'success';
6153
6901
  error: null;
6154
6902
  action_type: 'CREATE_ACCESS_CODE';
6155
- result?: any;
6903
+ result: {
6904
+ access_code?: any;
6905
+ };
6156
6906
  } | {
6157
6907
  /** The ID of the action attempt. */
6158
6908
  action_attempt_id: string;
@@ -6176,7 +6926,7 @@ export interface Routes {
6176
6926
  status: 'success';
6177
6927
  error: null;
6178
6928
  action_type: 'DELETE_ACCESS_CODE';
6179
- result?: any;
6929
+ result: {};
6180
6930
  } | {
6181
6931
  /** The ID of the action attempt. */
6182
6932
  action_attempt_id: string;
@@ -6200,7 +6950,9 @@ export interface Routes {
6200
6950
  status: 'success';
6201
6951
  error: null;
6202
6952
  action_type: 'UPDATE_ACCESS_CODE';
6203
- result?: any;
6953
+ result: {
6954
+ access_code?: any;
6955
+ };
6204
6956
  } | {
6205
6957
  /** The ID of the action attempt. */
6206
6958
  action_attempt_id: string;
@@ -6224,7 +6976,9 @@ export interface Routes {
6224
6976
  status: 'success';
6225
6977
  error: null;
6226
6978
  action_type: 'CREATE_NOISE_THRESHOLD';
6227
- result?: any;
6979
+ result: {
6980
+ noise_threshold?: any;
6981
+ };
6228
6982
  } | {
6229
6983
  /** The ID of the action attempt. */
6230
6984
  action_attempt_id: string;
@@ -6248,7 +7002,7 @@ export interface Routes {
6248
7002
  status: 'success';
6249
7003
  error: null;
6250
7004
  action_type: 'DELETE_NOISE_THRESHOLD';
6251
- result?: any;
7005
+ result: {};
6252
7006
  } | {
6253
7007
  /** The ID of the action attempt. */
6254
7008
  action_attempt_id: string;
@@ -6272,7 +7026,9 @@ export interface Routes {
6272
7026
  status: 'success';
6273
7027
  error: null;
6274
7028
  action_type: 'UPDATE_NOISE_THRESHOLD';
6275
- result?: any;
7029
+ result: {
7030
+ noise_threshold?: any;
7031
+ };
6276
7032
  } | {
6277
7033
  /** The ID of the action attempt. */
6278
7034
  action_attempt_id: string;
@@ -6350,23 +7106,128 @@ export interface Routes {
6350
7106
  status: 'pending';
6351
7107
  result: null;
6352
7108
  error: null;
6353
- action_type: 'READ_CARD';
7109
+ action_type: 'SCAN_CARD';
6354
7110
  } | {
6355
7111
  /** The ID of the action attempt. */
6356
7112
  action_attempt_id: string;
6357
7113
  status: 'success';
6358
7114
  error: null;
6359
- action_type: 'READ_CARD';
7115
+ action_type: 'SCAN_CARD';
6360
7116
  result: {
6361
- /** A number or string that physically identifies this card. */
6362
- card_number: string | null;
7117
+ /** Snapshot of the card data read from the physical encoder. */
7118
+ acs_credential_on_encoder: {
7119
+ /** Date and time the credential was created. */
7120
+ created_at: string;
7121
+ is_issued: boolean | null;
7122
+ /** Date and time the credential will become useable. */
7123
+ starts_at: string | null;
7124
+ /** Date and time the credential will stop being useable. */
7125
+ ends_at: string | null;
7126
+ /** A number or string that physically identifies this card. */
7127
+ card_number: string | null;
7128
+ visionline_metadata?: {
7129
+ card_id: string;
7130
+ card_function_type: 'guest' | 'staff';
7131
+ cancelled: boolean;
7132
+ discarded: boolean;
7133
+ expired: boolean;
7134
+ overwritten: boolean;
7135
+ overridden?: boolean | undefined;
7136
+ pending_auto_update: boolean;
7137
+ card_format: 'TLCode' | 'rfid48';
7138
+ card_holder?: string | undefined;
7139
+ number_of_issued_cards: number;
7140
+ } | undefined;
7141
+ };
7142
+ /** Matching acs_credential currently encoded on this card. */
7143
+ acs_credential_on_seam: ({
7144
+ acs_credential_id: string;
7145
+ acs_user_id?: string | undefined;
7146
+ acs_credential_pool_id?: string | undefined;
7147
+ acs_system_id: string;
7148
+ parent_acs_credential_id?: string | undefined;
7149
+ display_name: string;
7150
+ code?: (string | undefined) | null;
7151
+ card_number?: (string | undefined) | null;
7152
+ is_issued?: boolean | undefined;
7153
+ issued_at?: (string | undefined) | null;
7154
+ access_method: 'code' | 'card' | 'mobile_key';
7155
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
7156
+ external_type_display_name?: string | undefined;
7157
+ created_at: string;
7158
+ workspace_id: string;
7159
+ starts_at?: string | undefined;
7160
+ ends_at?: string | undefined;
7161
+ errors: Array<{
7162
+ error_code: string;
7163
+ message: string;
7164
+ }>;
7165
+ warnings: Array<{
7166
+ warning_code: string;
7167
+ message: string;
7168
+ }>;
7169
+ is_multi_phone_sync_credential?: boolean | undefined;
7170
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
7171
+ latest_desired_state_synced_with_provider_at?: string | undefined;
7172
+ visionline_metadata?: {
7173
+ card_function_type: 'guest' | 'staff';
7174
+ joiner_acs_credential_ids?: string[] | undefined;
7175
+ guest_acs_entrance_ids?: string[] | undefined;
7176
+ common_acs_entrance_ids?: string[] | undefined;
7177
+ is_valid?: boolean | undefined;
7178
+ auto_join?: boolean | undefined;
7179
+ card_id?: string | undefined;
7180
+ credential_id?: string | undefined;
7181
+ } | undefined;
7182
+ is_managed: true;
7183
+ } | {
7184
+ acs_credential_id: string;
7185
+ acs_user_id?: string | undefined;
7186
+ acs_credential_pool_id?: string | undefined;
7187
+ acs_system_id: string;
7188
+ parent_acs_credential_id?: string | undefined;
7189
+ display_name: string;
7190
+ code?: (string | undefined) | null;
7191
+ card_number?: (string | undefined) | null;
7192
+ is_issued?: boolean | undefined;
7193
+ issued_at?: (string | undefined) | null;
7194
+ access_method: 'code' | 'card' | 'mobile_key';
7195
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
7196
+ external_type_display_name?: string | undefined;
7197
+ created_at: string;
7198
+ workspace_id: string;
7199
+ starts_at?: string | undefined;
7200
+ ends_at?: string | undefined;
7201
+ errors: Array<{
7202
+ error_code: string;
7203
+ message: string;
7204
+ }>;
7205
+ warnings: Array<{
7206
+ warning_code: string;
7207
+ message: string;
7208
+ }>;
7209
+ is_multi_phone_sync_credential?: boolean | undefined;
7210
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
7211
+ latest_desired_state_synced_with_provider_at?: string | undefined;
7212
+ visionline_metadata?: {
7213
+ card_function_type: 'guest' | 'staff';
7214
+ joiner_acs_credential_ids?: string[] | undefined;
7215
+ guest_acs_entrance_ids?: string[] | undefined;
7216
+ common_acs_entrance_ids?: string[] | undefined;
7217
+ is_valid?: boolean | undefined;
7218
+ auto_join?: boolean | undefined;
7219
+ card_id?: string | undefined;
7220
+ credential_id?: string | undefined;
7221
+ } | undefined;
7222
+ is_managed: false;
7223
+ }) | null;
6363
7224
  };
6364
7225
  } | {
6365
7226
  /** The ID of the action attempt. */
6366
7227
  action_attempt_id: string;
6367
7228
  status: 'error';
6368
7229
  result: null;
6369
- action_type: 'READ_CARD';
7230
+ action_type: 'SCAN_CARD';
6370
7231
  error: {
6371
7232
  type: 'no_card_on_encoder';
6372
7233
  message: string;
@@ -6384,12 +7245,7 @@ export interface Routes {
6384
7245
  status: 'success';
6385
7246
  error: null;
6386
7247
  action_type: 'ENCODE_CARD';
6387
- result: {
6388
- /** Matching acs_credential currently encoded on this card. */
6389
- acs_credential_id: string | null;
6390
- /** A number or string that physically identifies this card. */
6391
- card_number: string | null;
6392
- };
7248
+ result: {};
6393
7249
  } | {
6394
7250
  /** The ID of the action attempt. */
6395
7251
  action_attempt_id: string;
@@ -6581,7 +7437,7 @@ export interface Routes {
6581
7437
  status: 'success';
6582
7438
  error: null;
6583
7439
  action_type: 'SYNC_ACCESS_CODES';
6584
- result?: any;
7440
+ result: {};
6585
7441
  } | {
6586
7442
  /** The ID of the action attempt. */
6587
7443
  action_attempt_id: string;
@@ -6605,7 +7461,9 @@ export interface Routes {
6605
7461
  status: 'success';
6606
7462
  error: null;
6607
7463
  action_type: 'CREATE_ACCESS_CODE';
6608
- result?: any;
7464
+ result: {
7465
+ access_code?: any;
7466
+ };
6609
7467
  } | {
6610
7468
  /** The ID of the action attempt. */
6611
7469
  action_attempt_id: string;
@@ -6629,7 +7487,7 @@ export interface Routes {
6629
7487
  status: 'success';
6630
7488
  error: null;
6631
7489
  action_type: 'DELETE_ACCESS_CODE';
6632
- result?: any;
7490
+ result: {};
6633
7491
  } | {
6634
7492
  /** The ID of the action attempt. */
6635
7493
  action_attempt_id: string;
@@ -6653,7 +7511,9 @@ export interface Routes {
6653
7511
  status: 'success';
6654
7512
  error: null;
6655
7513
  action_type: 'UPDATE_ACCESS_CODE';
6656
- result?: any;
7514
+ result: {
7515
+ access_code?: any;
7516
+ };
6657
7517
  } | {
6658
7518
  /** The ID of the action attempt. */
6659
7519
  action_attempt_id: string;
@@ -6677,7 +7537,9 @@ export interface Routes {
6677
7537
  status: 'success';
6678
7538
  error: null;
6679
7539
  action_type: 'CREATE_NOISE_THRESHOLD';
6680
- result?: any;
7540
+ result: {
7541
+ noise_threshold?: any;
7542
+ };
6681
7543
  } | {
6682
7544
  /** The ID of the action attempt. */
6683
7545
  action_attempt_id: string;
@@ -6701,7 +7563,7 @@ export interface Routes {
6701
7563
  status: 'success';
6702
7564
  error: null;
6703
7565
  action_type: 'DELETE_NOISE_THRESHOLD';
6704
- result?: any;
7566
+ result: {};
6705
7567
  } | {
6706
7568
  /** The ID of the action attempt. */
6707
7569
  action_attempt_id: string;
@@ -6725,7 +7587,9 @@ export interface Routes {
6725
7587
  status: 'success';
6726
7588
  error: null;
6727
7589
  action_type: 'UPDATE_NOISE_THRESHOLD';
6728
- result?: any;
7590
+ result: {
7591
+ noise_threshold?: any;
7592
+ };
6729
7593
  } | {
6730
7594
  /** The ID of the action attempt. */
6731
7595
  action_attempt_id: string;
@@ -10349,23 +11213,128 @@ export interface Routes {
10349
11213
  status: 'pending';
10350
11214
  result: null;
10351
11215
  error: null;
10352
- action_type: 'READ_CARD';
11216
+ action_type: 'SCAN_CARD';
10353
11217
  } | {
10354
11218
  /** The ID of the action attempt. */
10355
11219
  action_attempt_id: string;
10356
11220
  status: 'success';
10357
11221
  error: null;
10358
- action_type: 'READ_CARD';
11222
+ action_type: 'SCAN_CARD';
10359
11223
  result: {
10360
- /** A number or string that physically identifies this card. */
10361
- card_number: string | null;
11224
+ /** Snapshot of the card data read from the physical encoder. */
11225
+ acs_credential_on_encoder: {
11226
+ /** Date and time the credential was created. */
11227
+ created_at: string;
11228
+ is_issued: boolean | null;
11229
+ /** Date and time the credential will become useable. */
11230
+ starts_at: string | null;
11231
+ /** Date and time the credential will stop being useable. */
11232
+ ends_at: string | null;
11233
+ /** A number or string that physically identifies this card. */
11234
+ card_number: string | null;
11235
+ visionline_metadata?: {
11236
+ card_id: string;
11237
+ card_function_type: 'guest' | 'staff';
11238
+ cancelled: boolean;
11239
+ discarded: boolean;
11240
+ expired: boolean;
11241
+ overwritten: boolean;
11242
+ overridden?: boolean | undefined;
11243
+ pending_auto_update: boolean;
11244
+ card_format: 'TLCode' | 'rfid48';
11245
+ card_holder?: string | undefined;
11246
+ number_of_issued_cards: number;
11247
+ } | undefined;
11248
+ };
11249
+ /** Matching acs_credential currently encoded on this card. */
11250
+ acs_credential_on_seam: ({
11251
+ acs_credential_id: string;
11252
+ acs_user_id?: string | undefined;
11253
+ acs_credential_pool_id?: string | undefined;
11254
+ acs_system_id: string;
11255
+ parent_acs_credential_id?: string | undefined;
11256
+ display_name: string;
11257
+ code?: (string | undefined) | null;
11258
+ card_number?: (string | undefined) | null;
11259
+ is_issued?: boolean | undefined;
11260
+ issued_at?: (string | undefined) | null;
11261
+ access_method: 'code' | 'card' | 'mobile_key';
11262
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
11263
+ external_type_display_name?: string | undefined;
11264
+ created_at: string;
11265
+ workspace_id: string;
11266
+ starts_at?: string | undefined;
11267
+ ends_at?: string | undefined;
11268
+ errors: Array<{
11269
+ error_code: string;
11270
+ message: string;
11271
+ }>;
11272
+ warnings: Array<{
11273
+ warning_code: string;
11274
+ message: string;
11275
+ }>;
11276
+ is_multi_phone_sync_credential?: boolean | undefined;
11277
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
11278
+ latest_desired_state_synced_with_provider_at?: string | undefined;
11279
+ visionline_metadata?: {
11280
+ card_function_type: 'guest' | 'staff';
11281
+ joiner_acs_credential_ids?: string[] | undefined;
11282
+ guest_acs_entrance_ids?: string[] | undefined;
11283
+ common_acs_entrance_ids?: string[] | undefined;
11284
+ is_valid?: boolean | undefined;
11285
+ auto_join?: boolean | undefined;
11286
+ card_id?: string | undefined;
11287
+ credential_id?: string | undefined;
11288
+ } | undefined;
11289
+ is_managed: true;
11290
+ } | {
11291
+ acs_credential_id: string;
11292
+ acs_user_id?: string | undefined;
11293
+ acs_credential_pool_id?: string | undefined;
11294
+ acs_system_id: string;
11295
+ parent_acs_credential_id?: string | undefined;
11296
+ display_name: string;
11297
+ code?: (string | undefined) | null;
11298
+ card_number?: (string | undefined) | null;
11299
+ is_issued?: boolean | undefined;
11300
+ issued_at?: (string | undefined) | null;
11301
+ access_method: 'code' | 'card' | 'mobile_key';
11302
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
11303
+ external_type_display_name?: string | undefined;
11304
+ created_at: string;
11305
+ workspace_id: string;
11306
+ starts_at?: string | undefined;
11307
+ ends_at?: string | undefined;
11308
+ errors: Array<{
11309
+ error_code: string;
11310
+ message: string;
11311
+ }>;
11312
+ warnings: Array<{
11313
+ warning_code: string;
11314
+ message: string;
11315
+ }>;
11316
+ is_multi_phone_sync_credential?: boolean | undefined;
11317
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
11318
+ latest_desired_state_synced_with_provider_at?: string | undefined;
11319
+ visionline_metadata?: {
11320
+ card_function_type: 'guest' | 'staff';
11321
+ joiner_acs_credential_ids?: string[] | undefined;
11322
+ guest_acs_entrance_ids?: string[] | undefined;
11323
+ common_acs_entrance_ids?: string[] | undefined;
11324
+ is_valid?: boolean | undefined;
11325
+ auto_join?: boolean | undefined;
11326
+ card_id?: string | undefined;
11327
+ credential_id?: string | undefined;
11328
+ } | undefined;
11329
+ is_managed: false;
11330
+ }) | null;
10362
11331
  };
10363
11332
  } | {
10364
11333
  /** The ID of the action attempt. */
10365
11334
  action_attempt_id: string;
10366
11335
  status: 'error';
10367
11336
  result: null;
10368
- action_type: 'READ_CARD';
11337
+ action_type: 'SCAN_CARD';
10369
11338
  error: {
10370
11339
  type: 'no_card_on_encoder';
10371
11340
  message: string;
@@ -10383,12 +11352,7 @@ export interface Routes {
10383
11352
  status: 'success';
10384
11353
  error: null;
10385
11354
  action_type: 'ENCODE_CARD';
10386
- result: {
10387
- /** Matching acs_credential currently encoded on this card. */
10388
- acs_credential_id: string | null;
10389
- /** A number or string that physically identifies this card. */
10390
- card_number: string | null;
10391
- };
11355
+ result: {};
10392
11356
  } | {
10393
11357
  /** The ID of the action attempt. */
10394
11358
  action_attempt_id: string;
@@ -10580,7 +11544,7 @@ export interface Routes {
10580
11544
  status: 'success';
10581
11545
  error: null;
10582
11546
  action_type: 'SYNC_ACCESS_CODES';
10583
- result?: any;
11547
+ result: {};
10584
11548
  } | {
10585
11549
  /** The ID of the action attempt. */
10586
11550
  action_attempt_id: string;
@@ -10604,7 +11568,9 @@ export interface Routes {
10604
11568
  status: 'success';
10605
11569
  error: null;
10606
11570
  action_type: 'CREATE_ACCESS_CODE';
10607
- result?: any;
11571
+ result: {
11572
+ access_code?: any;
11573
+ };
10608
11574
  } | {
10609
11575
  /** The ID of the action attempt. */
10610
11576
  action_attempt_id: string;
@@ -10628,7 +11594,7 @@ export interface Routes {
10628
11594
  status: 'success';
10629
11595
  error: null;
10630
11596
  action_type: 'DELETE_ACCESS_CODE';
10631
- result?: any;
11597
+ result: {};
10632
11598
  } | {
10633
11599
  /** The ID of the action attempt. */
10634
11600
  action_attempt_id: string;
@@ -10652,7 +11618,9 @@ export interface Routes {
10652
11618
  status: 'success';
10653
11619
  error: null;
10654
11620
  action_type: 'UPDATE_ACCESS_CODE';
10655
- result?: any;
11621
+ result: {
11622
+ access_code?: any;
11623
+ };
10656
11624
  } | {
10657
11625
  /** The ID of the action attempt. */
10658
11626
  action_attempt_id: string;
@@ -10676,7 +11644,9 @@ export interface Routes {
10676
11644
  status: 'success';
10677
11645
  error: null;
10678
11646
  action_type: 'CREATE_NOISE_THRESHOLD';
10679
- result?: any;
11647
+ result: {
11648
+ noise_threshold?: any;
11649
+ };
10680
11650
  } | {
10681
11651
  /** The ID of the action attempt. */
10682
11652
  action_attempt_id: string;
@@ -10700,7 +11670,7 @@ export interface Routes {
10700
11670
  status: 'success';
10701
11671
  error: null;
10702
11672
  action_type: 'DELETE_NOISE_THRESHOLD';
10703
- result?: any;
11673
+ result: {};
10704
11674
  } | {
10705
11675
  /** The ID of the action attempt. */
10706
11676
  action_attempt_id: string;
@@ -10724,7 +11694,9 @@ export interface Routes {
10724
11694
  status: 'success';
10725
11695
  error: null;
10726
11696
  action_type: 'UPDATE_NOISE_THRESHOLD';
10727
- result?: any;
11697
+ result: {
11698
+ noise_threshold?: any;
11699
+ };
10728
11700
  } | {
10729
11701
  /** The ID of the action attempt. */
10730
11702
  action_attempt_id: string;
@@ -10803,23 +11775,128 @@ export interface Routes {
10803
11775
  status: 'pending';
10804
11776
  result: null;
10805
11777
  error: null;
10806
- action_type: 'READ_CARD';
11778
+ action_type: 'SCAN_CARD';
10807
11779
  } | {
10808
11780
  /** The ID of the action attempt. */
10809
11781
  action_attempt_id: string;
10810
11782
  status: 'success';
10811
11783
  error: null;
10812
- action_type: 'READ_CARD';
11784
+ action_type: 'SCAN_CARD';
10813
11785
  result: {
10814
- /** A number or string that physically identifies this card. */
10815
- card_number: string | null;
11786
+ /** Snapshot of the card data read from the physical encoder. */
11787
+ acs_credential_on_encoder: {
11788
+ /** Date and time the credential was created. */
11789
+ created_at: string;
11790
+ is_issued: boolean | null;
11791
+ /** Date and time the credential will become useable. */
11792
+ starts_at: string | null;
11793
+ /** Date and time the credential will stop being useable. */
11794
+ ends_at: string | null;
11795
+ /** A number or string that physically identifies this card. */
11796
+ card_number: string | null;
11797
+ visionline_metadata?: {
11798
+ card_id: string;
11799
+ card_function_type: 'guest' | 'staff';
11800
+ cancelled: boolean;
11801
+ discarded: boolean;
11802
+ expired: boolean;
11803
+ overwritten: boolean;
11804
+ overridden?: boolean | undefined;
11805
+ pending_auto_update: boolean;
11806
+ card_format: 'TLCode' | 'rfid48';
11807
+ card_holder?: string | undefined;
11808
+ number_of_issued_cards: number;
11809
+ } | undefined;
11810
+ };
11811
+ /** Matching acs_credential currently encoded on this card. */
11812
+ acs_credential_on_seam: ({
11813
+ acs_credential_id: string;
11814
+ acs_user_id?: string | undefined;
11815
+ acs_credential_pool_id?: string | undefined;
11816
+ acs_system_id: string;
11817
+ parent_acs_credential_id?: string | undefined;
11818
+ display_name: string;
11819
+ code?: (string | undefined) | null;
11820
+ card_number?: (string | undefined) | null;
11821
+ is_issued?: boolean | undefined;
11822
+ issued_at?: (string | undefined) | null;
11823
+ access_method: 'code' | 'card' | 'mobile_key';
11824
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
11825
+ external_type_display_name?: string | undefined;
11826
+ created_at: string;
11827
+ workspace_id: string;
11828
+ starts_at?: string | undefined;
11829
+ ends_at?: string | undefined;
11830
+ errors: Array<{
11831
+ error_code: string;
11832
+ message: string;
11833
+ }>;
11834
+ warnings: Array<{
11835
+ warning_code: string;
11836
+ message: string;
11837
+ }>;
11838
+ is_multi_phone_sync_credential?: boolean | undefined;
11839
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
11840
+ latest_desired_state_synced_with_provider_at?: string | undefined;
11841
+ visionline_metadata?: {
11842
+ card_function_type: 'guest' | 'staff';
11843
+ joiner_acs_credential_ids?: string[] | undefined;
11844
+ guest_acs_entrance_ids?: string[] | undefined;
11845
+ common_acs_entrance_ids?: string[] | undefined;
11846
+ is_valid?: boolean | undefined;
11847
+ auto_join?: boolean | undefined;
11848
+ card_id?: string | undefined;
11849
+ credential_id?: string | undefined;
11850
+ } | undefined;
11851
+ is_managed: true;
11852
+ } | {
11853
+ acs_credential_id: string;
11854
+ acs_user_id?: string | undefined;
11855
+ acs_credential_pool_id?: string | undefined;
11856
+ acs_system_id: string;
11857
+ parent_acs_credential_id?: string | undefined;
11858
+ display_name: string;
11859
+ code?: (string | undefined) | null;
11860
+ card_number?: (string | undefined) | null;
11861
+ is_issued?: boolean | undefined;
11862
+ issued_at?: (string | undefined) | null;
11863
+ access_method: 'code' | 'card' | 'mobile_key';
11864
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
11865
+ external_type_display_name?: string | undefined;
11866
+ created_at: string;
11867
+ workspace_id: string;
11868
+ starts_at?: string | undefined;
11869
+ ends_at?: string | undefined;
11870
+ errors: Array<{
11871
+ error_code: string;
11872
+ message: string;
11873
+ }>;
11874
+ warnings: Array<{
11875
+ warning_code: string;
11876
+ message: string;
11877
+ }>;
11878
+ is_multi_phone_sync_credential?: boolean | undefined;
11879
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
11880
+ latest_desired_state_synced_with_provider_at?: string | undefined;
11881
+ visionline_metadata?: {
11882
+ card_function_type: 'guest' | 'staff';
11883
+ joiner_acs_credential_ids?: string[] | undefined;
11884
+ guest_acs_entrance_ids?: string[] | undefined;
11885
+ common_acs_entrance_ids?: string[] | undefined;
11886
+ is_valid?: boolean | undefined;
11887
+ auto_join?: boolean | undefined;
11888
+ card_id?: string | undefined;
11889
+ credential_id?: string | undefined;
11890
+ } | undefined;
11891
+ is_managed: false;
11892
+ }) | null;
10816
11893
  };
10817
11894
  } | {
10818
11895
  /** The ID of the action attempt. */
10819
11896
  action_attempt_id: string;
10820
11897
  status: 'error';
10821
11898
  result: null;
10822
- action_type: 'READ_CARD';
11899
+ action_type: 'SCAN_CARD';
10823
11900
  error: {
10824
11901
  type: 'no_card_on_encoder';
10825
11902
  message: string;
@@ -10837,12 +11914,7 @@ export interface Routes {
10837
11914
  status: 'success';
10838
11915
  error: null;
10839
11916
  action_type: 'ENCODE_CARD';
10840
- result: {
10841
- /** Matching acs_credential currently encoded on this card. */
10842
- acs_credential_id: string | null;
10843
- /** A number or string that physically identifies this card. */
10844
- card_number: string | null;
10845
- };
11917
+ result: {};
10846
11918
  } | {
10847
11919
  /** The ID of the action attempt. */
10848
11920
  action_attempt_id: string;
@@ -11034,7 +12106,7 @@ export interface Routes {
11034
12106
  status: 'success';
11035
12107
  error: null;
11036
12108
  action_type: 'SYNC_ACCESS_CODES';
11037
- result?: any;
12109
+ result: {};
11038
12110
  } | {
11039
12111
  /** The ID of the action attempt. */
11040
12112
  action_attempt_id: string;
@@ -11058,7 +12130,9 @@ export interface Routes {
11058
12130
  status: 'success';
11059
12131
  error: null;
11060
12132
  action_type: 'CREATE_ACCESS_CODE';
11061
- result?: any;
12133
+ result: {
12134
+ access_code?: any;
12135
+ };
11062
12136
  } | {
11063
12137
  /** The ID of the action attempt. */
11064
12138
  action_attempt_id: string;
@@ -11082,7 +12156,7 @@ export interface Routes {
11082
12156
  status: 'success';
11083
12157
  error: null;
11084
12158
  action_type: 'DELETE_ACCESS_CODE';
11085
- result?: any;
12159
+ result: {};
11086
12160
  } | {
11087
12161
  /** The ID of the action attempt. */
11088
12162
  action_attempt_id: string;
@@ -11106,7 +12180,9 @@ export interface Routes {
11106
12180
  status: 'success';
11107
12181
  error: null;
11108
12182
  action_type: 'UPDATE_ACCESS_CODE';
11109
- result?: any;
12183
+ result: {
12184
+ access_code?: any;
12185
+ };
11110
12186
  } | {
11111
12187
  /** The ID of the action attempt. */
11112
12188
  action_attempt_id: string;
@@ -11130,7 +12206,9 @@ export interface Routes {
11130
12206
  status: 'success';
11131
12207
  error: null;
11132
12208
  action_type: 'CREATE_NOISE_THRESHOLD';
11133
- result?: any;
12209
+ result: {
12210
+ noise_threshold?: any;
12211
+ };
11134
12212
  } | {
11135
12213
  /** The ID of the action attempt. */
11136
12214
  action_attempt_id: string;
@@ -11154,7 +12232,7 @@ export interface Routes {
11154
12232
  status: 'success';
11155
12233
  error: null;
11156
12234
  action_type: 'DELETE_NOISE_THRESHOLD';
11157
- result?: any;
12235
+ result: {};
11158
12236
  } | {
11159
12237
  /** The ID of the action attempt. */
11160
12238
  action_attempt_id: string;
@@ -11178,7 +12256,9 @@ export interface Routes {
11178
12256
  status: 'success';
11179
12257
  error: null;
11180
12258
  action_type: 'UPDATE_NOISE_THRESHOLD';
11181
- result?: any;
12259
+ result: {
12260
+ noise_threshold?: any;
12261
+ };
11182
12262
  } | {
11183
12263
  /** The ID of the action attempt. */
11184
12264
  action_attempt_id: string;
@@ -12199,23 +13279,128 @@ export interface Routes {
12199
13279
  status: 'pending';
12200
13280
  result: null;
12201
13281
  error: null;
12202
- action_type: 'READ_CARD';
13282
+ action_type: 'SCAN_CARD';
12203
13283
  } | {
12204
13284
  /** The ID of the action attempt. */
12205
13285
  action_attempt_id: string;
12206
13286
  status: 'success';
12207
13287
  error: null;
12208
- action_type: 'READ_CARD';
13288
+ action_type: 'SCAN_CARD';
12209
13289
  result: {
12210
- /** A number or string that physically identifies this card. */
12211
- card_number: string | null;
13290
+ /** Snapshot of the card data read from the physical encoder. */
13291
+ acs_credential_on_encoder: {
13292
+ /** Date and time the credential was created. */
13293
+ created_at: string;
13294
+ is_issued: boolean | null;
13295
+ /** Date and time the credential will become useable. */
13296
+ starts_at: string | null;
13297
+ /** Date and time the credential will stop being useable. */
13298
+ ends_at: string | null;
13299
+ /** A number or string that physically identifies this card. */
13300
+ card_number: string | null;
13301
+ visionline_metadata?: {
13302
+ card_id: string;
13303
+ card_function_type: 'guest' | 'staff';
13304
+ cancelled: boolean;
13305
+ discarded: boolean;
13306
+ expired: boolean;
13307
+ overwritten: boolean;
13308
+ overridden?: boolean | undefined;
13309
+ pending_auto_update: boolean;
13310
+ card_format: 'TLCode' | 'rfid48';
13311
+ card_holder?: string | undefined;
13312
+ number_of_issued_cards: number;
13313
+ } | undefined;
13314
+ };
13315
+ /** Matching acs_credential currently encoded on this card. */
13316
+ acs_credential_on_seam: ({
13317
+ acs_credential_id: string;
13318
+ acs_user_id?: string | undefined;
13319
+ acs_credential_pool_id?: string | undefined;
13320
+ acs_system_id: string;
13321
+ parent_acs_credential_id?: string | undefined;
13322
+ display_name: string;
13323
+ code?: (string | undefined) | null;
13324
+ card_number?: (string | undefined) | null;
13325
+ is_issued?: boolean | undefined;
13326
+ issued_at?: (string | undefined) | null;
13327
+ access_method: 'code' | 'card' | 'mobile_key';
13328
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
13329
+ external_type_display_name?: string | undefined;
13330
+ created_at: string;
13331
+ workspace_id: string;
13332
+ starts_at?: string | undefined;
13333
+ ends_at?: string | undefined;
13334
+ errors: Array<{
13335
+ error_code: string;
13336
+ message: string;
13337
+ }>;
13338
+ warnings: Array<{
13339
+ warning_code: string;
13340
+ message: string;
13341
+ }>;
13342
+ is_multi_phone_sync_credential?: boolean | undefined;
13343
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
13344
+ latest_desired_state_synced_with_provider_at?: string | undefined;
13345
+ visionline_metadata?: {
13346
+ card_function_type: 'guest' | 'staff';
13347
+ joiner_acs_credential_ids?: string[] | undefined;
13348
+ guest_acs_entrance_ids?: string[] | undefined;
13349
+ common_acs_entrance_ids?: string[] | undefined;
13350
+ is_valid?: boolean | undefined;
13351
+ auto_join?: boolean | undefined;
13352
+ card_id?: string | undefined;
13353
+ credential_id?: string | undefined;
13354
+ } | undefined;
13355
+ is_managed: true;
13356
+ } | {
13357
+ acs_credential_id: string;
13358
+ acs_user_id?: string | undefined;
13359
+ acs_credential_pool_id?: string | undefined;
13360
+ acs_system_id: string;
13361
+ parent_acs_credential_id?: string | undefined;
13362
+ display_name: string;
13363
+ code?: (string | undefined) | null;
13364
+ card_number?: (string | undefined) | null;
13365
+ is_issued?: boolean | undefined;
13366
+ issued_at?: (string | undefined) | null;
13367
+ access_method: 'code' | 'card' | 'mobile_key';
13368
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
13369
+ external_type_display_name?: string | undefined;
13370
+ created_at: string;
13371
+ workspace_id: string;
13372
+ starts_at?: string | undefined;
13373
+ ends_at?: string | undefined;
13374
+ errors: Array<{
13375
+ error_code: string;
13376
+ message: string;
13377
+ }>;
13378
+ warnings: Array<{
13379
+ warning_code: string;
13380
+ message: string;
13381
+ }>;
13382
+ is_multi_phone_sync_credential?: boolean | undefined;
13383
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
13384
+ latest_desired_state_synced_with_provider_at?: string | undefined;
13385
+ visionline_metadata?: {
13386
+ card_function_type: 'guest' | 'staff';
13387
+ joiner_acs_credential_ids?: string[] | undefined;
13388
+ guest_acs_entrance_ids?: string[] | undefined;
13389
+ common_acs_entrance_ids?: string[] | undefined;
13390
+ is_valid?: boolean | undefined;
13391
+ auto_join?: boolean | undefined;
13392
+ card_id?: string | undefined;
13393
+ credential_id?: string | undefined;
13394
+ } | undefined;
13395
+ is_managed: false;
13396
+ }) | null;
12212
13397
  };
12213
13398
  } | {
12214
13399
  /** The ID of the action attempt. */
12215
13400
  action_attempt_id: string;
12216
13401
  status: 'error';
12217
13402
  result: null;
12218
- action_type: 'READ_CARD';
13403
+ action_type: 'SCAN_CARD';
12219
13404
  error: {
12220
13405
  type: 'no_card_on_encoder';
12221
13406
  message: string;
@@ -12233,12 +13418,7 @@ export interface Routes {
12233
13418
  status: 'success';
12234
13419
  error: null;
12235
13420
  action_type: 'ENCODE_CARD';
12236
- result: {
12237
- /** Matching acs_credential currently encoded on this card. */
12238
- acs_credential_id: string | null;
12239
- /** A number or string that physically identifies this card. */
12240
- card_number: string | null;
12241
- };
13421
+ result: {};
12242
13422
  } | {
12243
13423
  /** The ID of the action attempt. */
12244
13424
  action_attempt_id: string;
@@ -12430,7 +13610,7 @@ export interface Routes {
12430
13610
  status: 'success';
12431
13611
  error: null;
12432
13612
  action_type: 'SYNC_ACCESS_CODES';
12433
- result?: any;
13613
+ result: {};
12434
13614
  } | {
12435
13615
  /** The ID of the action attempt. */
12436
13616
  action_attempt_id: string;
@@ -12454,7 +13634,9 @@ export interface Routes {
12454
13634
  status: 'success';
12455
13635
  error: null;
12456
13636
  action_type: 'CREATE_ACCESS_CODE';
12457
- result?: any;
13637
+ result: {
13638
+ access_code?: any;
13639
+ };
12458
13640
  } | {
12459
13641
  /** The ID of the action attempt. */
12460
13642
  action_attempt_id: string;
@@ -12478,7 +13660,7 @@ export interface Routes {
12478
13660
  status: 'success';
12479
13661
  error: null;
12480
13662
  action_type: 'DELETE_ACCESS_CODE';
12481
- result?: any;
13663
+ result: {};
12482
13664
  } | {
12483
13665
  /** The ID of the action attempt. */
12484
13666
  action_attempt_id: string;
@@ -12502,7 +13684,9 @@ export interface Routes {
12502
13684
  status: 'success';
12503
13685
  error: null;
12504
13686
  action_type: 'UPDATE_ACCESS_CODE';
12505
- result?: any;
13687
+ result: {
13688
+ access_code?: any;
13689
+ };
12506
13690
  } | {
12507
13691
  /** The ID of the action attempt. */
12508
13692
  action_attempt_id: string;
@@ -12526,7 +13710,9 @@ export interface Routes {
12526
13710
  status: 'success';
12527
13711
  error: null;
12528
13712
  action_type: 'CREATE_NOISE_THRESHOLD';
12529
- result?: any;
13713
+ result: {
13714
+ noise_threshold?: any;
13715
+ };
12530
13716
  } | {
12531
13717
  /** The ID of the action attempt. */
12532
13718
  action_attempt_id: string;
@@ -12550,7 +13736,7 @@ export interface Routes {
12550
13736
  status: 'success';
12551
13737
  error: null;
12552
13738
  action_type: 'DELETE_NOISE_THRESHOLD';
12553
- result?: any;
13739
+ result: {};
12554
13740
  } | {
12555
13741
  /** The ID of the action attempt. */
12556
13742
  action_attempt_id: string;
@@ -12574,7 +13760,9 @@ export interface Routes {
12574
13760
  status: 'success';
12575
13761
  error: null;
12576
13762
  action_type: 'UPDATE_NOISE_THRESHOLD';
12577
- result?: any;
13763
+ result: {
13764
+ noise_threshold?: any;
13765
+ };
12578
13766
  } | {
12579
13767
  /** The ID of the action attempt. */
12580
13768
  action_attempt_id: string;
@@ -12663,23 +13851,128 @@ export interface Routes {
12663
13851
  status: 'pending';
12664
13852
  result: null;
12665
13853
  error: null;
12666
- action_type: 'READ_CARD';
13854
+ action_type: 'SCAN_CARD';
12667
13855
  } | {
12668
13856
  /** The ID of the action attempt. */
12669
13857
  action_attempt_id: string;
12670
13858
  status: 'success';
12671
13859
  error: null;
12672
- action_type: 'READ_CARD';
13860
+ action_type: 'SCAN_CARD';
12673
13861
  result: {
12674
- /** A number or string that physically identifies this card. */
12675
- card_number: string | null;
13862
+ /** Snapshot of the card data read from the physical encoder. */
13863
+ acs_credential_on_encoder: {
13864
+ /** Date and time the credential was created. */
13865
+ created_at: string;
13866
+ is_issued: boolean | null;
13867
+ /** Date and time the credential will become useable. */
13868
+ starts_at: string | null;
13869
+ /** Date and time the credential will stop being useable. */
13870
+ ends_at: string | null;
13871
+ /** A number or string that physically identifies this card. */
13872
+ card_number: string | null;
13873
+ visionline_metadata?: {
13874
+ card_id: string;
13875
+ card_function_type: 'guest' | 'staff';
13876
+ cancelled: boolean;
13877
+ discarded: boolean;
13878
+ expired: boolean;
13879
+ overwritten: boolean;
13880
+ overridden?: boolean | undefined;
13881
+ pending_auto_update: boolean;
13882
+ card_format: 'TLCode' | 'rfid48';
13883
+ card_holder?: string | undefined;
13884
+ number_of_issued_cards: number;
13885
+ } | undefined;
13886
+ };
13887
+ /** Matching acs_credential currently encoded on this card. */
13888
+ acs_credential_on_seam: ({
13889
+ acs_credential_id: string;
13890
+ acs_user_id?: string | undefined;
13891
+ acs_credential_pool_id?: string | undefined;
13892
+ acs_system_id: string;
13893
+ parent_acs_credential_id?: string | undefined;
13894
+ display_name: string;
13895
+ code?: (string | undefined) | null;
13896
+ card_number?: (string | undefined) | null;
13897
+ is_issued?: boolean | undefined;
13898
+ issued_at?: (string | undefined) | null;
13899
+ access_method: 'code' | 'card' | 'mobile_key';
13900
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
13901
+ external_type_display_name?: string | undefined;
13902
+ created_at: string;
13903
+ workspace_id: string;
13904
+ starts_at?: string | undefined;
13905
+ ends_at?: string | undefined;
13906
+ errors: Array<{
13907
+ error_code: string;
13908
+ message: string;
13909
+ }>;
13910
+ warnings: Array<{
13911
+ warning_code: string;
13912
+ message: string;
13913
+ }>;
13914
+ is_multi_phone_sync_credential?: boolean | undefined;
13915
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
13916
+ latest_desired_state_synced_with_provider_at?: string | undefined;
13917
+ visionline_metadata?: {
13918
+ card_function_type: 'guest' | 'staff';
13919
+ joiner_acs_credential_ids?: string[] | undefined;
13920
+ guest_acs_entrance_ids?: string[] | undefined;
13921
+ common_acs_entrance_ids?: string[] | undefined;
13922
+ is_valid?: boolean | undefined;
13923
+ auto_join?: boolean | undefined;
13924
+ card_id?: string | undefined;
13925
+ credential_id?: string | undefined;
13926
+ } | undefined;
13927
+ is_managed: true;
13928
+ } | {
13929
+ acs_credential_id: string;
13930
+ acs_user_id?: string | undefined;
13931
+ acs_credential_pool_id?: string | undefined;
13932
+ acs_system_id: string;
13933
+ parent_acs_credential_id?: string | undefined;
13934
+ display_name: string;
13935
+ code?: (string | undefined) | null;
13936
+ card_number?: (string | undefined) | null;
13937
+ is_issued?: boolean | undefined;
13938
+ issued_at?: (string | undefined) | null;
13939
+ access_method: 'code' | 'card' | 'mobile_key';
13940
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
13941
+ external_type_display_name?: string | undefined;
13942
+ created_at: string;
13943
+ workspace_id: string;
13944
+ starts_at?: string | undefined;
13945
+ ends_at?: string | undefined;
13946
+ errors: Array<{
13947
+ error_code: string;
13948
+ message: string;
13949
+ }>;
13950
+ warnings: Array<{
13951
+ warning_code: string;
13952
+ message: string;
13953
+ }>;
13954
+ is_multi_phone_sync_credential?: boolean | undefined;
13955
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
13956
+ latest_desired_state_synced_with_provider_at?: string | undefined;
13957
+ visionline_metadata?: {
13958
+ card_function_type: 'guest' | 'staff';
13959
+ joiner_acs_credential_ids?: string[] | undefined;
13960
+ guest_acs_entrance_ids?: string[] | undefined;
13961
+ common_acs_entrance_ids?: string[] | undefined;
13962
+ is_valid?: boolean | undefined;
13963
+ auto_join?: boolean | undefined;
13964
+ card_id?: string | undefined;
13965
+ credential_id?: string | undefined;
13966
+ } | undefined;
13967
+ is_managed: false;
13968
+ }) | null;
12676
13969
  };
12677
13970
  } | {
12678
13971
  /** The ID of the action attempt. */
12679
13972
  action_attempt_id: string;
12680
13973
  status: 'error';
12681
13974
  result: null;
12682
- action_type: 'READ_CARD';
13975
+ action_type: 'SCAN_CARD';
12683
13976
  error: {
12684
13977
  type: 'no_card_on_encoder';
12685
13978
  message: string;
@@ -12697,12 +13990,7 @@ export interface Routes {
12697
13990
  status: 'success';
12698
13991
  error: null;
12699
13992
  action_type: 'ENCODE_CARD';
12700
- result: {
12701
- /** Matching acs_credential currently encoded on this card. */
12702
- acs_credential_id: string | null;
12703
- /** A number or string that physically identifies this card. */
12704
- card_number: string | null;
12705
- };
13993
+ result: {};
12706
13994
  } | {
12707
13995
  /** The ID of the action attempt. */
12708
13996
  action_attempt_id: string;
@@ -12894,7 +14182,7 @@ export interface Routes {
12894
14182
  status: 'success';
12895
14183
  error: null;
12896
14184
  action_type: 'SYNC_ACCESS_CODES';
12897
- result?: any;
14185
+ result: {};
12898
14186
  } | {
12899
14187
  /** The ID of the action attempt. */
12900
14188
  action_attempt_id: string;
@@ -12918,7 +14206,9 @@ export interface Routes {
12918
14206
  status: 'success';
12919
14207
  error: null;
12920
14208
  action_type: 'CREATE_ACCESS_CODE';
12921
- result?: any;
14209
+ result: {
14210
+ access_code?: any;
14211
+ };
12922
14212
  } | {
12923
14213
  /** The ID of the action attempt. */
12924
14214
  action_attempt_id: string;
@@ -12942,7 +14232,7 @@ export interface Routes {
12942
14232
  status: 'success';
12943
14233
  error: null;
12944
14234
  action_type: 'DELETE_ACCESS_CODE';
12945
- result?: any;
14235
+ result: {};
12946
14236
  } | {
12947
14237
  /** The ID of the action attempt. */
12948
14238
  action_attempt_id: string;
@@ -12966,7 +14256,9 @@ export interface Routes {
12966
14256
  status: 'success';
12967
14257
  error: null;
12968
14258
  action_type: 'UPDATE_ACCESS_CODE';
12969
- result?: any;
14259
+ result: {
14260
+ access_code?: any;
14261
+ };
12970
14262
  } | {
12971
14263
  /** The ID of the action attempt. */
12972
14264
  action_attempt_id: string;
@@ -12990,7 +14282,9 @@ export interface Routes {
12990
14282
  status: 'success';
12991
14283
  error: null;
12992
14284
  action_type: 'CREATE_NOISE_THRESHOLD';
12993
- result?: any;
14285
+ result: {
14286
+ noise_threshold?: any;
14287
+ };
12994
14288
  } | {
12995
14289
  /** The ID of the action attempt. */
12996
14290
  action_attempt_id: string;
@@ -13014,7 +14308,7 @@ export interface Routes {
13014
14308
  status: 'success';
13015
14309
  error: null;
13016
14310
  action_type: 'DELETE_NOISE_THRESHOLD';
13017
- result?: any;
14311
+ result: {};
13018
14312
  } | {
13019
14313
  /** The ID of the action attempt. */
13020
14314
  action_attempt_id: string;
@@ -13038,7 +14332,9 @@ export interface Routes {
13038
14332
  status: 'success';
13039
14333
  error: null;
13040
14334
  action_type: 'UPDATE_NOISE_THRESHOLD';
13041
- result?: any;
14335
+ result: {
14336
+ noise_threshold?: any;
14337
+ };
13042
14338
  } | {
13043
14339
  /** The ID of the action attempt. */
13044
14340
  action_attempt_id: string;
@@ -13166,23 +14462,128 @@ export interface Routes {
13166
14462
  status: 'pending';
13167
14463
  result: null;
13168
14464
  error: null;
13169
- action_type: 'READ_CARD';
14465
+ action_type: 'SCAN_CARD';
13170
14466
  } | {
13171
14467
  /** The ID of the action attempt. */
13172
14468
  action_attempt_id: string;
13173
14469
  status: 'success';
13174
14470
  error: null;
13175
- action_type: 'READ_CARD';
14471
+ action_type: 'SCAN_CARD';
13176
14472
  result: {
13177
- /** A number or string that physically identifies this card. */
13178
- card_number: string | null;
14473
+ /** Snapshot of the card data read from the physical encoder. */
14474
+ acs_credential_on_encoder: {
14475
+ /** Date and time the credential was created. */
14476
+ created_at: string;
14477
+ is_issued: boolean | null;
14478
+ /** Date and time the credential will become useable. */
14479
+ starts_at: string | null;
14480
+ /** Date and time the credential will stop being useable. */
14481
+ ends_at: string | null;
14482
+ /** A number or string that physically identifies this card. */
14483
+ card_number: string | null;
14484
+ visionline_metadata?: {
14485
+ card_id: string;
14486
+ card_function_type: 'guest' | 'staff';
14487
+ cancelled: boolean;
14488
+ discarded: boolean;
14489
+ expired: boolean;
14490
+ overwritten: boolean;
14491
+ overridden?: boolean | undefined;
14492
+ pending_auto_update: boolean;
14493
+ card_format: 'TLCode' | 'rfid48';
14494
+ card_holder?: string | undefined;
14495
+ number_of_issued_cards: number;
14496
+ } | undefined;
14497
+ };
14498
+ /** Matching acs_credential currently encoded on this card. */
14499
+ acs_credential_on_seam: ({
14500
+ acs_credential_id: string;
14501
+ acs_user_id?: string | undefined;
14502
+ acs_credential_pool_id?: string | undefined;
14503
+ acs_system_id: string;
14504
+ parent_acs_credential_id?: string | undefined;
14505
+ display_name: string;
14506
+ code?: (string | undefined) | null;
14507
+ card_number?: (string | undefined) | null;
14508
+ is_issued?: boolean | undefined;
14509
+ issued_at?: (string | undefined) | null;
14510
+ access_method: 'code' | 'card' | 'mobile_key';
14511
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
14512
+ external_type_display_name?: string | undefined;
14513
+ created_at: string;
14514
+ workspace_id: string;
14515
+ starts_at?: string | undefined;
14516
+ ends_at?: string | undefined;
14517
+ errors: Array<{
14518
+ error_code: string;
14519
+ message: string;
14520
+ }>;
14521
+ warnings: Array<{
14522
+ warning_code: string;
14523
+ message: string;
14524
+ }>;
14525
+ is_multi_phone_sync_credential?: boolean | undefined;
14526
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
14527
+ latest_desired_state_synced_with_provider_at?: string | undefined;
14528
+ visionline_metadata?: {
14529
+ card_function_type: 'guest' | 'staff';
14530
+ joiner_acs_credential_ids?: string[] | undefined;
14531
+ guest_acs_entrance_ids?: string[] | undefined;
14532
+ common_acs_entrance_ids?: string[] | undefined;
14533
+ is_valid?: boolean | undefined;
14534
+ auto_join?: boolean | undefined;
14535
+ card_id?: string | undefined;
14536
+ credential_id?: string | undefined;
14537
+ } | undefined;
14538
+ is_managed: true;
14539
+ } | {
14540
+ acs_credential_id: string;
14541
+ acs_user_id?: string | undefined;
14542
+ acs_credential_pool_id?: string | undefined;
14543
+ acs_system_id: string;
14544
+ parent_acs_credential_id?: string | undefined;
14545
+ display_name: string;
14546
+ code?: (string | undefined) | null;
14547
+ card_number?: (string | undefined) | null;
14548
+ is_issued?: boolean | undefined;
14549
+ issued_at?: (string | undefined) | null;
14550
+ access_method: 'code' | 'card' | 'mobile_key';
14551
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
14552
+ external_type_display_name?: string | undefined;
14553
+ created_at: string;
14554
+ workspace_id: string;
14555
+ starts_at?: string | undefined;
14556
+ ends_at?: string | undefined;
14557
+ errors: Array<{
14558
+ error_code: string;
14559
+ message: string;
14560
+ }>;
14561
+ warnings: Array<{
14562
+ warning_code: string;
14563
+ message: string;
14564
+ }>;
14565
+ is_multi_phone_sync_credential?: boolean | undefined;
14566
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
14567
+ latest_desired_state_synced_with_provider_at?: string | undefined;
14568
+ visionline_metadata?: {
14569
+ card_function_type: 'guest' | 'staff';
14570
+ joiner_acs_credential_ids?: string[] | undefined;
14571
+ guest_acs_entrance_ids?: string[] | undefined;
14572
+ common_acs_entrance_ids?: string[] | undefined;
14573
+ is_valid?: boolean | undefined;
14574
+ auto_join?: boolean | undefined;
14575
+ card_id?: string | undefined;
14576
+ credential_id?: string | undefined;
14577
+ } | undefined;
14578
+ is_managed: false;
14579
+ }) | null;
13179
14580
  };
13180
14581
  } | {
13181
14582
  /** The ID of the action attempt. */
13182
14583
  action_attempt_id: string;
13183
14584
  status: 'error';
13184
14585
  result: null;
13185
- action_type: 'READ_CARD';
14586
+ action_type: 'SCAN_CARD';
13186
14587
  error: {
13187
14588
  type: 'no_card_on_encoder';
13188
14589
  message: string;
@@ -13200,12 +14601,7 @@ export interface Routes {
13200
14601
  status: 'success';
13201
14602
  error: null;
13202
14603
  action_type: 'ENCODE_CARD';
13203
- result: {
13204
- /** Matching acs_credential currently encoded on this card. */
13205
- acs_credential_id: string | null;
13206
- /** A number or string that physically identifies this card. */
13207
- card_number: string | null;
13208
- };
14604
+ result: {};
13209
14605
  } | {
13210
14606
  /** The ID of the action attempt. */
13211
14607
  action_attempt_id: string;
@@ -13397,7 +14793,7 @@ export interface Routes {
13397
14793
  status: 'success';
13398
14794
  error: null;
13399
14795
  action_type: 'SYNC_ACCESS_CODES';
13400
- result?: any;
14796
+ result: {};
13401
14797
  } | {
13402
14798
  /** The ID of the action attempt. */
13403
14799
  action_attempt_id: string;
@@ -13421,7 +14817,9 @@ export interface Routes {
13421
14817
  status: 'success';
13422
14818
  error: null;
13423
14819
  action_type: 'CREATE_ACCESS_CODE';
13424
- result?: any;
14820
+ result: {
14821
+ access_code?: any;
14822
+ };
13425
14823
  } | {
13426
14824
  /** The ID of the action attempt. */
13427
14825
  action_attempt_id: string;
@@ -13445,7 +14843,7 @@ export interface Routes {
13445
14843
  status: 'success';
13446
14844
  error: null;
13447
14845
  action_type: 'DELETE_ACCESS_CODE';
13448
- result?: any;
14846
+ result: {};
13449
14847
  } | {
13450
14848
  /** The ID of the action attempt. */
13451
14849
  action_attempt_id: string;
@@ -13469,7 +14867,9 @@ export interface Routes {
13469
14867
  status: 'success';
13470
14868
  error: null;
13471
14869
  action_type: 'UPDATE_ACCESS_CODE';
13472
- result?: any;
14870
+ result: {
14871
+ access_code?: any;
14872
+ };
13473
14873
  } | {
13474
14874
  /** The ID of the action attempt. */
13475
14875
  action_attempt_id: string;
@@ -13493,7 +14893,9 @@ export interface Routes {
13493
14893
  status: 'success';
13494
14894
  error: null;
13495
14895
  action_type: 'CREATE_NOISE_THRESHOLD';
13496
- result?: any;
14896
+ result: {
14897
+ noise_threshold?: any;
14898
+ };
13497
14899
  } | {
13498
14900
  /** The ID of the action attempt. */
13499
14901
  action_attempt_id: string;
@@ -13517,7 +14919,7 @@ export interface Routes {
13517
14919
  status: 'success';
13518
14920
  error: null;
13519
14921
  action_type: 'DELETE_NOISE_THRESHOLD';
13520
- result?: any;
14922
+ result: {};
13521
14923
  } | {
13522
14924
  /** The ID of the action attempt. */
13523
14925
  action_attempt_id: string;
@@ -13541,7 +14943,9 @@ export interface Routes {
13541
14943
  status: 'success';
13542
14944
  error: null;
13543
14945
  action_type: 'UPDATE_NOISE_THRESHOLD';
13544
- result?: any;
14946
+ result: {
14947
+ noise_threshold?: any;
14948
+ };
13545
14949
  } | {
13546
14950
  /** The ID of the action attempt. */
13547
14951
  action_attempt_id: string;
@@ -13802,23 +15206,128 @@ export interface Routes {
13802
15206
  status: 'pending';
13803
15207
  result: null;
13804
15208
  error: null;
13805
- action_type: 'READ_CARD';
15209
+ action_type: 'SCAN_CARD';
13806
15210
  } | {
13807
15211
  /** The ID of the action attempt. */
13808
15212
  action_attempt_id: string;
13809
15213
  status: 'success';
13810
15214
  error: null;
13811
- action_type: 'READ_CARD';
15215
+ action_type: 'SCAN_CARD';
13812
15216
  result: {
13813
- /** A number or string that physically identifies this card. */
13814
- card_number: string | null;
15217
+ /** Snapshot of the card data read from the physical encoder. */
15218
+ acs_credential_on_encoder: {
15219
+ /** Date and time the credential was created. */
15220
+ created_at: string;
15221
+ is_issued: boolean | null;
15222
+ /** Date and time the credential will become useable. */
15223
+ starts_at: string | null;
15224
+ /** Date and time the credential will stop being useable. */
15225
+ ends_at: string | null;
15226
+ /** A number or string that physically identifies this card. */
15227
+ card_number: string | null;
15228
+ visionline_metadata?: {
15229
+ card_id: string;
15230
+ card_function_type: 'guest' | 'staff';
15231
+ cancelled: boolean;
15232
+ discarded: boolean;
15233
+ expired: boolean;
15234
+ overwritten: boolean;
15235
+ overridden?: boolean | undefined;
15236
+ pending_auto_update: boolean;
15237
+ card_format: 'TLCode' | 'rfid48';
15238
+ card_holder?: string | undefined;
15239
+ number_of_issued_cards: number;
15240
+ } | undefined;
15241
+ };
15242
+ /** Matching acs_credential currently encoded on this card. */
15243
+ acs_credential_on_seam: ({
15244
+ acs_credential_id: string;
15245
+ acs_user_id?: string | undefined;
15246
+ acs_credential_pool_id?: string | undefined;
15247
+ acs_system_id: string;
15248
+ parent_acs_credential_id?: string | undefined;
15249
+ display_name: string;
15250
+ code?: (string | undefined) | null;
15251
+ card_number?: (string | undefined) | null;
15252
+ is_issued?: boolean | undefined;
15253
+ issued_at?: (string | undefined) | null;
15254
+ access_method: 'code' | 'card' | 'mobile_key';
15255
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
15256
+ external_type_display_name?: string | undefined;
15257
+ created_at: string;
15258
+ workspace_id: string;
15259
+ starts_at?: string | undefined;
15260
+ ends_at?: string | undefined;
15261
+ errors: Array<{
15262
+ error_code: string;
15263
+ message: string;
15264
+ }>;
15265
+ warnings: Array<{
15266
+ warning_code: string;
15267
+ message: string;
15268
+ }>;
15269
+ is_multi_phone_sync_credential?: boolean | undefined;
15270
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
15271
+ latest_desired_state_synced_with_provider_at?: string | undefined;
15272
+ visionline_metadata?: {
15273
+ card_function_type: 'guest' | 'staff';
15274
+ joiner_acs_credential_ids?: string[] | undefined;
15275
+ guest_acs_entrance_ids?: string[] | undefined;
15276
+ common_acs_entrance_ids?: string[] | undefined;
15277
+ is_valid?: boolean | undefined;
15278
+ auto_join?: boolean | undefined;
15279
+ card_id?: string | undefined;
15280
+ credential_id?: string | undefined;
15281
+ } | undefined;
15282
+ is_managed: true;
15283
+ } | {
15284
+ acs_credential_id: string;
15285
+ acs_user_id?: string | undefined;
15286
+ acs_credential_pool_id?: string | undefined;
15287
+ acs_system_id: string;
15288
+ parent_acs_credential_id?: string | undefined;
15289
+ display_name: string;
15290
+ code?: (string | undefined) | null;
15291
+ card_number?: (string | undefined) | null;
15292
+ is_issued?: boolean | undefined;
15293
+ issued_at?: (string | undefined) | null;
15294
+ access_method: 'code' | 'card' | 'mobile_key';
15295
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
15296
+ external_type_display_name?: string | undefined;
15297
+ created_at: string;
15298
+ workspace_id: string;
15299
+ starts_at?: string | undefined;
15300
+ ends_at?: string | undefined;
15301
+ errors: Array<{
15302
+ error_code: string;
15303
+ message: string;
15304
+ }>;
15305
+ warnings: Array<{
15306
+ warning_code: string;
15307
+ message: string;
15308
+ }>;
15309
+ is_multi_phone_sync_credential?: boolean | undefined;
15310
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
15311
+ latest_desired_state_synced_with_provider_at?: string | undefined;
15312
+ visionline_metadata?: {
15313
+ card_function_type: 'guest' | 'staff';
15314
+ joiner_acs_credential_ids?: string[] | undefined;
15315
+ guest_acs_entrance_ids?: string[] | undefined;
15316
+ common_acs_entrance_ids?: string[] | undefined;
15317
+ is_valid?: boolean | undefined;
15318
+ auto_join?: boolean | undefined;
15319
+ card_id?: string | undefined;
15320
+ credential_id?: string | undefined;
15321
+ } | undefined;
15322
+ is_managed: false;
15323
+ }) | null;
13815
15324
  };
13816
15325
  } | {
13817
15326
  /** The ID of the action attempt. */
13818
15327
  action_attempt_id: string;
13819
15328
  status: 'error';
13820
15329
  result: null;
13821
- action_type: 'READ_CARD';
15330
+ action_type: 'SCAN_CARD';
13822
15331
  error: {
13823
15332
  type: 'no_card_on_encoder';
13824
15333
  message: string;
@@ -13836,12 +15345,7 @@ export interface Routes {
13836
15345
  status: 'success';
13837
15346
  error: null;
13838
15347
  action_type: 'ENCODE_CARD';
13839
- result: {
13840
- /** Matching acs_credential currently encoded on this card. */
13841
- acs_credential_id: string | null;
13842
- /** A number or string that physically identifies this card. */
13843
- card_number: string | null;
13844
- };
15348
+ result: {};
13845
15349
  } | {
13846
15350
  /** The ID of the action attempt. */
13847
15351
  action_attempt_id: string;
@@ -14033,7 +15537,7 @@ export interface Routes {
14033
15537
  status: 'success';
14034
15538
  error: null;
14035
15539
  action_type: 'SYNC_ACCESS_CODES';
14036
- result?: any;
15540
+ result: {};
14037
15541
  } | {
14038
15542
  /** The ID of the action attempt. */
14039
15543
  action_attempt_id: string;
@@ -14057,7 +15561,9 @@ export interface Routes {
14057
15561
  status: 'success';
14058
15562
  error: null;
14059
15563
  action_type: 'CREATE_ACCESS_CODE';
14060
- result?: any;
15564
+ result: {
15565
+ access_code?: any;
15566
+ };
14061
15567
  } | {
14062
15568
  /** The ID of the action attempt. */
14063
15569
  action_attempt_id: string;
@@ -14081,7 +15587,7 @@ export interface Routes {
14081
15587
  status: 'success';
14082
15588
  error: null;
14083
15589
  action_type: 'DELETE_ACCESS_CODE';
14084
- result?: any;
15590
+ result: {};
14085
15591
  } | {
14086
15592
  /** The ID of the action attempt. */
14087
15593
  action_attempt_id: string;
@@ -14105,7 +15611,9 @@ export interface Routes {
14105
15611
  status: 'success';
14106
15612
  error: null;
14107
15613
  action_type: 'UPDATE_ACCESS_CODE';
14108
- result?: any;
15614
+ result: {
15615
+ access_code?: any;
15616
+ };
14109
15617
  } | {
14110
15618
  /** The ID of the action attempt. */
14111
15619
  action_attempt_id: string;
@@ -14129,7 +15637,9 @@ export interface Routes {
14129
15637
  status: 'success';
14130
15638
  error: null;
14131
15639
  action_type: 'CREATE_NOISE_THRESHOLD';
14132
- result?: any;
15640
+ result: {
15641
+ noise_threshold?: any;
15642
+ };
14133
15643
  } | {
14134
15644
  /** The ID of the action attempt. */
14135
15645
  action_attempt_id: string;
@@ -14153,7 +15663,7 @@ export interface Routes {
14153
15663
  status: 'success';
14154
15664
  error: null;
14155
15665
  action_type: 'DELETE_NOISE_THRESHOLD';
14156
- result?: any;
15666
+ result: {};
14157
15667
  } | {
14158
15668
  /** The ID of the action attempt. */
14159
15669
  action_attempt_id: string;
@@ -14177,7 +15687,9 @@ export interface Routes {
14177
15687
  status: 'success';
14178
15688
  error: null;
14179
15689
  action_type: 'UPDATE_NOISE_THRESHOLD';
14180
- result?: any;
15690
+ result: {
15691
+ noise_threshold?: any;
15692
+ };
14181
15693
  } | {
14182
15694
  /** The ID of the action attempt. */
14183
15695
  action_attempt_id: string;
@@ -14258,23 +15770,128 @@ export interface Routes {
14258
15770
  status: 'pending';
14259
15771
  result: null;
14260
15772
  error: null;
14261
- action_type: 'READ_CARD';
15773
+ action_type: 'SCAN_CARD';
14262
15774
  } | {
14263
15775
  /** The ID of the action attempt. */
14264
15776
  action_attempt_id: string;
14265
15777
  status: 'success';
14266
15778
  error: null;
14267
- action_type: 'READ_CARD';
15779
+ action_type: 'SCAN_CARD';
14268
15780
  result: {
14269
- /** A number or string that physically identifies this card. */
14270
- card_number: string | null;
15781
+ /** Snapshot of the card data read from the physical encoder. */
15782
+ acs_credential_on_encoder: {
15783
+ /** Date and time the credential was created. */
15784
+ created_at: string;
15785
+ is_issued: boolean | null;
15786
+ /** Date and time the credential will become useable. */
15787
+ starts_at: string | null;
15788
+ /** Date and time the credential will stop being useable. */
15789
+ ends_at: string | null;
15790
+ /** A number or string that physically identifies this card. */
15791
+ card_number: string | null;
15792
+ visionline_metadata?: {
15793
+ card_id: string;
15794
+ card_function_type: 'guest' | 'staff';
15795
+ cancelled: boolean;
15796
+ discarded: boolean;
15797
+ expired: boolean;
15798
+ overwritten: boolean;
15799
+ overridden?: boolean | undefined;
15800
+ pending_auto_update: boolean;
15801
+ card_format: 'TLCode' | 'rfid48';
15802
+ card_holder?: string | undefined;
15803
+ number_of_issued_cards: number;
15804
+ } | undefined;
15805
+ };
15806
+ /** Matching acs_credential currently encoded on this card. */
15807
+ acs_credential_on_seam: ({
15808
+ acs_credential_id: string;
15809
+ acs_user_id?: string | undefined;
15810
+ acs_credential_pool_id?: string | undefined;
15811
+ acs_system_id: string;
15812
+ parent_acs_credential_id?: string | undefined;
15813
+ display_name: string;
15814
+ code?: (string | undefined) | null;
15815
+ card_number?: (string | undefined) | null;
15816
+ is_issued?: boolean | undefined;
15817
+ issued_at?: (string | undefined) | null;
15818
+ access_method: 'code' | 'card' | 'mobile_key';
15819
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
15820
+ external_type_display_name?: string | undefined;
15821
+ created_at: string;
15822
+ workspace_id: string;
15823
+ starts_at?: string | undefined;
15824
+ ends_at?: string | undefined;
15825
+ errors: Array<{
15826
+ error_code: string;
15827
+ message: string;
15828
+ }>;
15829
+ warnings: Array<{
15830
+ warning_code: string;
15831
+ message: string;
15832
+ }>;
15833
+ is_multi_phone_sync_credential?: boolean | undefined;
15834
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
15835
+ latest_desired_state_synced_with_provider_at?: string | undefined;
15836
+ visionline_metadata?: {
15837
+ card_function_type: 'guest' | 'staff';
15838
+ joiner_acs_credential_ids?: string[] | undefined;
15839
+ guest_acs_entrance_ids?: string[] | undefined;
15840
+ common_acs_entrance_ids?: string[] | undefined;
15841
+ is_valid?: boolean | undefined;
15842
+ auto_join?: boolean | undefined;
15843
+ card_id?: string | undefined;
15844
+ credential_id?: string | undefined;
15845
+ } | undefined;
15846
+ is_managed: true;
15847
+ } | {
15848
+ acs_credential_id: string;
15849
+ acs_user_id?: string | undefined;
15850
+ acs_credential_pool_id?: string | undefined;
15851
+ acs_system_id: string;
15852
+ parent_acs_credential_id?: string | undefined;
15853
+ display_name: string;
15854
+ code?: (string | undefined) | null;
15855
+ card_number?: (string | undefined) | null;
15856
+ is_issued?: boolean | undefined;
15857
+ issued_at?: (string | undefined) | null;
15858
+ access_method: 'code' | 'card' | 'mobile_key';
15859
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
15860
+ external_type_display_name?: string | undefined;
15861
+ created_at: string;
15862
+ workspace_id: string;
15863
+ starts_at?: string | undefined;
15864
+ ends_at?: string | undefined;
15865
+ errors: Array<{
15866
+ error_code: string;
15867
+ message: string;
15868
+ }>;
15869
+ warnings: Array<{
15870
+ warning_code: string;
15871
+ message: string;
15872
+ }>;
15873
+ is_multi_phone_sync_credential?: boolean | undefined;
15874
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
15875
+ latest_desired_state_synced_with_provider_at?: string | undefined;
15876
+ visionline_metadata?: {
15877
+ card_function_type: 'guest' | 'staff';
15878
+ joiner_acs_credential_ids?: string[] | undefined;
15879
+ guest_acs_entrance_ids?: string[] | undefined;
15880
+ common_acs_entrance_ids?: string[] | undefined;
15881
+ is_valid?: boolean | undefined;
15882
+ auto_join?: boolean | undefined;
15883
+ card_id?: string | undefined;
15884
+ credential_id?: string | undefined;
15885
+ } | undefined;
15886
+ is_managed: false;
15887
+ }) | null;
14271
15888
  };
14272
15889
  } | {
14273
15890
  /** The ID of the action attempt. */
14274
15891
  action_attempt_id: string;
14275
15892
  status: 'error';
14276
15893
  result: null;
14277
- action_type: 'READ_CARD';
15894
+ action_type: 'SCAN_CARD';
14278
15895
  error: {
14279
15896
  type: 'no_card_on_encoder';
14280
15897
  message: string;
@@ -14292,12 +15909,7 @@ export interface Routes {
14292
15909
  status: 'success';
14293
15910
  error: null;
14294
15911
  action_type: 'ENCODE_CARD';
14295
- result: {
14296
- /** Matching acs_credential currently encoded on this card. */
14297
- acs_credential_id: string | null;
14298
- /** A number or string that physically identifies this card. */
14299
- card_number: string | null;
14300
- };
15912
+ result: {};
14301
15913
  } | {
14302
15914
  /** The ID of the action attempt. */
14303
15915
  action_attempt_id: string;
@@ -14489,7 +16101,7 @@ export interface Routes {
14489
16101
  status: 'success';
14490
16102
  error: null;
14491
16103
  action_type: 'SYNC_ACCESS_CODES';
14492
- result?: any;
16104
+ result: {};
14493
16105
  } | {
14494
16106
  /** The ID of the action attempt. */
14495
16107
  action_attempt_id: string;
@@ -14513,7 +16125,9 @@ export interface Routes {
14513
16125
  status: 'success';
14514
16126
  error: null;
14515
16127
  action_type: 'CREATE_ACCESS_CODE';
14516
- result?: any;
16128
+ result: {
16129
+ access_code?: any;
16130
+ };
14517
16131
  } | {
14518
16132
  /** The ID of the action attempt. */
14519
16133
  action_attempt_id: string;
@@ -14537,7 +16151,7 @@ export interface Routes {
14537
16151
  status: 'success';
14538
16152
  error: null;
14539
16153
  action_type: 'DELETE_ACCESS_CODE';
14540
- result?: any;
16154
+ result: {};
14541
16155
  } | {
14542
16156
  /** The ID of the action attempt. */
14543
16157
  action_attempt_id: string;
@@ -14561,7 +16175,9 @@ export interface Routes {
14561
16175
  status: 'success';
14562
16176
  error: null;
14563
16177
  action_type: 'UPDATE_ACCESS_CODE';
14564
- result?: any;
16178
+ result: {
16179
+ access_code?: any;
16180
+ };
14565
16181
  } | {
14566
16182
  /** The ID of the action attempt. */
14567
16183
  action_attempt_id: string;
@@ -14585,7 +16201,9 @@ export interface Routes {
14585
16201
  status: 'success';
14586
16202
  error: null;
14587
16203
  action_type: 'CREATE_NOISE_THRESHOLD';
14588
- result?: any;
16204
+ result: {
16205
+ noise_threshold?: any;
16206
+ };
14589
16207
  } | {
14590
16208
  /** The ID of the action attempt. */
14591
16209
  action_attempt_id: string;
@@ -14609,7 +16227,7 @@ export interface Routes {
14609
16227
  status: 'success';
14610
16228
  error: null;
14611
16229
  action_type: 'DELETE_NOISE_THRESHOLD';
14612
- result?: any;
16230
+ result: {};
14613
16231
  } | {
14614
16232
  /** The ID of the action attempt. */
14615
16233
  action_attempt_id: string;
@@ -14633,7 +16251,9 @@ export interface Routes {
14633
16251
  status: 'success';
14634
16252
  error: null;
14635
16253
  action_type: 'UPDATE_NOISE_THRESHOLD';
14636
- result?: any;
16254
+ result: {
16255
+ noise_threshold?: any;
16256
+ };
14637
16257
  } | {
14638
16258
  /** The ID of the action attempt. */
14639
16259
  action_attempt_id: string;
@@ -15198,23 +16818,128 @@ export interface Routes {
15198
16818
  status: 'pending';
15199
16819
  result: null;
15200
16820
  error: null;
15201
- action_type: 'READ_CARD';
16821
+ action_type: 'SCAN_CARD';
15202
16822
  } | {
15203
16823
  /** The ID of the action attempt. */
15204
16824
  action_attempt_id: string;
15205
16825
  status: 'success';
15206
16826
  error: null;
15207
- action_type: 'READ_CARD';
16827
+ action_type: 'SCAN_CARD';
15208
16828
  result: {
15209
- /** A number or string that physically identifies this card. */
15210
- card_number: string | null;
16829
+ /** Snapshot of the card data read from the physical encoder. */
16830
+ acs_credential_on_encoder: {
16831
+ /** Date and time the credential was created. */
16832
+ created_at: string;
16833
+ is_issued: boolean | null;
16834
+ /** Date and time the credential will become useable. */
16835
+ starts_at: string | null;
16836
+ /** Date and time the credential will stop being useable. */
16837
+ ends_at: string | null;
16838
+ /** A number or string that physically identifies this card. */
16839
+ card_number: string | null;
16840
+ visionline_metadata?: {
16841
+ card_id: string;
16842
+ card_function_type: 'guest' | 'staff';
16843
+ cancelled: boolean;
16844
+ discarded: boolean;
16845
+ expired: boolean;
16846
+ overwritten: boolean;
16847
+ overridden?: boolean | undefined;
16848
+ pending_auto_update: boolean;
16849
+ card_format: 'TLCode' | 'rfid48';
16850
+ card_holder?: string | undefined;
16851
+ number_of_issued_cards: number;
16852
+ } | undefined;
16853
+ };
16854
+ /** Matching acs_credential currently encoded on this card. */
16855
+ acs_credential_on_seam: ({
16856
+ acs_credential_id: string;
16857
+ acs_user_id?: string | undefined;
16858
+ acs_credential_pool_id?: string | undefined;
16859
+ acs_system_id: string;
16860
+ parent_acs_credential_id?: string | undefined;
16861
+ display_name: string;
16862
+ code?: (string | undefined) | null;
16863
+ card_number?: (string | undefined) | null;
16864
+ is_issued?: boolean | undefined;
16865
+ issued_at?: (string | undefined) | null;
16866
+ access_method: 'code' | 'card' | 'mobile_key';
16867
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
16868
+ external_type_display_name?: string | undefined;
16869
+ created_at: string;
16870
+ workspace_id: string;
16871
+ starts_at?: string | undefined;
16872
+ ends_at?: string | undefined;
16873
+ errors: Array<{
16874
+ error_code: string;
16875
+ message: string;
16876
+ }>;
16877
+ warnings: Array<{
16878
+ warning_code: string;
16879
+ message: string;
16880
+ }>;
16881
+ is_multi_phone_sync_credential?: boolean | undefined;
16882
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
16883
+ latest_desired_state_synced_with_provider_at?: string | undefined;
16884
+ visionline_metadata?: {
16885
+ card_function_type: 'guest' | 'staff';
16886
+ joiner_acs_credential_ids?: string[] | undefined;
16887
+ guest_acs_entrance_ids?: string[] | undefined;
16888
+ common_acs_entrance_ids?: string[] | undefined;
16889
+ is_valid?: boolean | undefined;
16890
+ auto_join?: boolean | undefined;
16891
+ card_id?: string | undefined;
16892
+ credential_id?: string | undefined;
16893
+ } | undefined;
16894
+ is_managed: true;
16895
+ } | {
16896
+ acs_credential_id: string;
16897
+ acs_user_id?: string | undefined;
16898
+ acs_credential_pool_id?: string | undefined;
16899
+ acs_system_id: string;
16900
+ parent_acs_credential_id?: string | undefined;
16901
+ display_name: string;
16902
+ code?: (string | undefined) | null;
16903
+ card_number?: (string | undefined) | null;
16904
+ is_issued?: boolean | undefined;
16905
+ issued_at?: (string | undefined) | null;
16906
+ access_method: 'code' | 'card' | 'mobile_key';
16907
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
16908
+ external_type_display_name?: string | undefined;
16909
+ created_at: string;
16910
+ workspace_id: string;
16911
+ starts_at?: string | undefined;
16912
+ ends_at?: string | undefined;
16913
+ errors: Array<{
16914
+ error_code: string;
16915
+ message: string;
16916
+ }>;
16917
+ warnings: Array<{
16918
+ warning_code: string;
16919
+ message: string;
16920
+ }>;
16921
+ is_multi_phone_sync_credential?: boolean | undefined;
16922
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
16923
+ latest_desired_state_synced_with_provider_at?: string | undefined;
16924
+ visionline_metadata?: {
16925
+ card_function_type: 'guest' | 'staff';
16926
+ joiner_acs_credential_ids?: string[] | undefined;
16927
+ guest_acs_entrance_ids?: string[] | undefined;
16928
+ common_acs_entrance_ids?: string[] | undefined;
16929
+ is_valid?: boolean | undefined;
16930
+ auto_join?: boolean | undefined;
16931
+ card_id?: string | undefined;
16932
+ credential_id?: string | undefined;
16933
+ } | undefined;
16934
+ is_managed: false;
16935
+ }) | null;
15211
16936
  };
15212
16937
  } | {
15213
16938
  /** The ID of the action attempt. */
15214
16939
  action_attempt_id: string;
15215
16940
  status: 'error';
15216
16941
  result: null;
15217
- action_type: 'READ_CARD';
16942
+ action_type: 'SCAN_CARD';
15218
16943
  error: {
15219
16944
  type: 'no_card_on_encoder';
15220
16945
  message: string;
@@ -15232,12 +16957,7 @@ export interface Routes {
15232
16957
  status: 'success';
15233
16958
  error: null;
15234
16959
  action_type: 'ENCODE_CARD';
15235
- result: {
15236
- /** Matching acs_credential currently encoded on this card. */
15237
- acs_credential_id: string | null;
15238
- /** A number or string that physically identifies this card. */
15239
- card_number: string | null;
15240
- };
16960
+ result: {};
15241
16961
  } | {
15242
16962
  /** The ID of the action attempt. */
15243
16963
  action_attempt_id: string;
@@ -15429,7 +17149,7 @@ export interface Routes {
15429
17149
  status: 'success';
15430
17150
  error: null;
15431
17151
  action_type: 'SYNC_ACCESS_CODES';
15432
- result?: any;
17152
+ result: {};
15433
17153
  } | {
15434
17154
  /** The ID of the action attempt. */
15435
17155
  action_attempt_id: string;
@@ -15453,7 +17173,9 @@ export interface Routes {
15453
17173
  status: 'success';
15454
17174
  error: null;
15455
17175
  action_type: 'CREATE_ACCESS_CODE';
15456
- result?: any;
17176
+ result: {
17177
+ access_code?: any;
17178
+ };
15457
17179
  } | {
15458
17180
  /** The ID of the action attempt. */
15459
17181
  action_attempt_id: string;
@@ -15477,7 +17199,7 @@ export interface Routes {
15477
17199
  status: 'success';
15478
17200
  error: null;
15479
17201
  action_type: 'DELETE_ACCESS_CODE';
15480
- result?: any;
17202
+ result: {};
15481
17203
  } | {
15482
17204
  /** The ID of the action attempt. */
15483
17205
  action_attempt_id: string;
@@ -15501,7 +17223,9 @@ export interface Routes {
15501
17223
  status: 'success';
15502
17224
  error: null;
15503
17225
  action_type: 'UPDATE_ACCESS_CODE';
15504
- result?: any;
17226
+ result: {
17227
+ access_code?: any;
17228
+ };
15505
17229
  } | {
15506
17230
  /** The ID of the action attempt. */
15507
17231
  action_attempt_id: string;
@@ -15525,7 +17249,9 @@ export interface Routes {
15525
17249
  status: 'success';
15526
17250
  error: null;
15527
17251
  action_type: 'CREATE_NOISE_THRESHOLD';
15528
- result?: any;
17252
+ result: {
17253
+ noise_threshold?: any;
17254
+ };
15529
17255
  } | {
15530
17256
  /** The ID of the action attempt. */
15531
17257
  action_attempt_id: string;
@@ -15549,7 +17275,7 @@ export interface Routes {
15549
17275
  status: 'success';
15550
17276
  error: null;
15551
17277
  action_type: 'DELETE_NOISE_THRESHOLD';
15552
- result?: any;
17278
+ result: {};
15553
17279
  } | {
15554
17280
  /** The ID of the action attempt. */
15555
17281
  action_attempt_id: string;
@@ -15573,7 +17299,9 @@ export interface Routes {
15573
17299
  status: 'success';
15574
17300
  error: null;
15575
17301
  action_type: 'UPDATE_NOISE_THRESHOLD';
15576
- result?: any;
17302
+ result: {
17303
+ noise_threshold?: any;
17304
+ };
15577
17305
  } | {
15578
17306
  /** The ID of the action attempt. */
15579
17307
  action_attempt_id: string;
@@ -15656,23 +17384,128 @@ export interface Routes {
15656
17384
  status: 'pending';
15657
17385
  result: null;
15658
17386
  error: null;
15659
- action_type: 'READ_CARD';
17387
+ action_type: 'SCAN_CARD';
15660
17388
  } | {
15661
17389
  /** The ID of the action attempt. */
15662
17390
  action_attempt_id: string;
15663
17391
  status: 'success';
15664
17392
  error: null;
15665
- action_type: 'READ_CARD';
17393
+ action_type: 'SCAN_CARD';
15666
17394
  result: {
15667
- /** A number or string that physically identifies this card. */
15668
- card_number: string | null;
17395
+ /** Snapshot of the card data read from the physical encoder. */
17396
+ acs_credential_on_encoder: {
17397
+ /** Date and time the credential was created. */
17398
+ created_at: string;
17399
+ is_issued: boolean | null;
17400
+ /** Date and time the credential will become useable. */
17401
+ starts_at: string | null;
17402
+ /** Date and time the credential will stop being useable. */
17403
+ ends_at: string | null;
17404
+ /** A number or string that physically identifies this card. */
17405
+ card_number: string | null;
17406
+ visionline_metadata?: {
17407
+ card_id: string;
17408
+ card_function_type: 'guest' | 'staff';
17409
+ cancelled: boolean;
17410
+ discarded: boolean;
17411
+ expired: boolean;
17412
+ overwritten: boolean;
17413
+ overridden?: boolean | undefined;
17414
+ pending_auto_update: boolean;
17415
+ card_format: 'TLCode' | 'rfid48';
17416
+ card_holder?: string | undefined;
17417
+ number_of_issued_cards: number;
17418
+ } | undefined;
17419
+ };
17420
+ /** Matching acs_credential currently encoded on this card. */
17421
+ acs_credential_on_seam: ({
17422
+ acs_credential_id: string;
17423
+ acs_user_id?: string | undefined;
17424
+ acs_credential_pool_id?: string | undefined;
17425
+ acs_system_id: string;
17426
+ parent_acs_credential_id?: string | undefined;
17427
+ display_name: string;
17428
+ code?: (string | undefined) | null;
17429
+ card_number?: (string | undefined) | null;
17430
+ is_issued?: boolean | undefined;
17431
+ issued_at?: (string | undefined) | null;
17432
+ access_method: 'code' | 'card' | 'mobile_key';
17433
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
17434
+ external_type_display_name?: string | undefined;
17435
+ created_at: string;
17436
+ workspace_id: string;
17437
+ starts_at?: string | undefined;
17438
+ ends_at?: string | undefined;
17439
+ errors: Array<{
17440
+ error_code: string;
17441
+ message: string;
17442
+ }>;
17443
+ warnings: Array<{
17444
+ warning_code: string;
17445
+ message: string;
17446
+ }>;
17447
+ is_multi_phone_sync_credential?: boolean | undefined;
17448
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
17449
+ latest_desired_state_synced_with_provider_at?: string | undefined;
17450
+ visionline_metadata?: {
17451
+ card_function_type: 'guest' | 'staff';
17452
+ joiner_acs_credential_ids?: string[] | undefined;
17453
+ guest_acs_entrance_ids?: string[] | undefined;
17454
+ common_acs_entrance_ids?: string[] | undefined;
17455
+ is_valid?: boolean | undefined;
17456
+ auto_join?: boolean | undefined;
17457
+ card_id?: string | undefined;
17458
+ credential_id?: string | undefined;
17459
+ } | undefined;
17460
+ is_managed: true;
17461
+ } | {
17462
+ acs_credential_id: string;
17463
+ acs_user_id?: string | undefined;
17464
+ acs_credential_pool_id?: string | undefined;
17465
+ acs_system_id: string;
17466
+ parent_acs_credential_id?: string | undefined;
17467
+ display_name: string;
17468
+ code?: (string | undefined) | null;
17469
+ card_number?: (string | undefined) | null;
17470
+ is_issued?: boolean | undefined;
17471
+ issued_at?: (string | undefined) | null;
17472
+ access_method: 'code' | 'card' | 'mobile_key';
17473
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
17474
+ external_type_display_name?: string | undefined;
17475
+ created_at: string;
17476
+ workspace_id: string;
17477
+ starts_at?: string | undefined;
17478
+ ends_at?: string | undefined;
17479
+ errors: Array<{
17480
+ error_code: string;
17481
+ message: string;
17482
+ }>;
17483
+ warnings: Array<{
17484
+ warning_code: string;
17485
+ message: string;
17486
+ }>;
17487
+ is_multi_phone_sync_credential?: boolean | undefined;
17488
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
17489
+ latest_desired_state_synced_with_provider_at?: string | undefined;
17490
+ visionline_metadata?: {
17491
+ card_function_type: 'guest' | 'staff';
17492
+ joiner_acs_credential_ids?: string[] | undefined;
17493
+ guest_acs_entrance_ids?: string[] | undefined;
17494
+ common_acs_entrance_ids?: string[] | undefined;
17495
+ is_valid?: boolean | undefined;
17496
+ auto_join?: boolean | undefined;
17497
+ card_id?: string | undefined;
17498
+ credential_id?: string | undefined;
17499
+ } | undefined;
17500
+ is_managed: false;
17501
+ }) | null;
15669
17502
  };
15670
17503
  } | {
15671
17504
  /** The ID of the action attempt. */
15672
17505
  action_attempt_id: string;
15673
17506
  status: 'error';
15674
17507
  result: null;
15675
- action_type: 'READ_CARD';
17508
+ action_type: 'SCAN_CARD';
15676
17509
  error: {
15677
17510
  type: 'no_card_on_encoder';
15678
17511
  message: string;
@@ -15690,12 +17523,7 @@ export interface Routes {
15690
17523
  status: 'success';
15691
17524
  error: null;
15692
17525
  action_type: 'ENCODE_CARD';
15693
- result: {
15694
- /** Matching acs_credential currently encoded on this card. */
15695
- acs_credential_id: string | null;
15696
- /** A number or string that physically identifies this card. */
15697
- card_number: string | null;
15698
- };
17526
+ result: {};
15699
17527
  } | {
15700
17528
  /** The ID of the action attempt. */
15701
17529
  action_attempt_id: string;
@@ -15887,7 +17715,7 @@ export interface Routes {
15887
17715
  status: 'success';
15888
17716
  error: null;
15889
17717
  action_type: 'SYNC_ACCESS_CODES';
15890
- result?: any;
17718
+ result: {};
15891
17719
  } | {
15892
17720
  /** The ID of the action attempt. */
15893
17721
  action_attempt_id: string;
@@ -15911,7 +17739,9 @@ export interface Routes {
15911
17739
  status: 'success';
15912
17740
  error: null;
15913
17741
  action_type: 'CREATE_ACCESS_CODE';
15914
- result?: any;
17742
+ result: {
17743
+ access_code?: any;
17744
+ };
15915
17745
  } | {
15916
17746
  /** The ID of the action attempt. */
15917
17747
  action_attempt_id: string;
@@ -15935,7 +17765,7 @@ export interface Routes {
15935
17765
  status: 'success';
15936
17766
  error: null;
15937
17767
  action_type: 'DELETE_ACCESS_CODE';
15938
- result?: any;
17768
+ result: {};
15939
17769
  } | {
15940
17770
  /** The ID of the action attempt. */
15941
17771
  action_attempt_id: string;
@@ -15959,7 +17789,9 @@ export interface Routes {
15959
17789
  status: 'success';
15960
17790
  error: null;
15961
17791
  action_type: 'UPDATE_ACCESS_CODE';
15962
- result?: any;
17792
+ result: {
17793
+ access_code?: any;
17794
+ };
15963
17795
  } | {
15964
17796
  /** The ID of the action attempt. */
15965
17797
  action_attempt_id: string;
@@ -15983,7 +17815,9 @@ export interface Routes {
15983
17815
  status: 'success';
15984
17816
  error: null;
15985
17817
  action_type: 'CREATE_NOISE_THRESHOLD';
15986
- result?: any;
17818
+ result: {
17819
+ noise_threshold?: any;
17820
+ };
15987
17821
  } | {
15988
17822
  /** The ID of the action attempt. */
15989
17823
  action_attempt_id: string;
@@ -16007,7 +17841,7 @@ export interface Routes {
16007
17841
  status: 'success';
16008
17842
  error: null;
16009
17843
  action_type: 'DELETE_NOISE_THRESHOLD';
16010
- result?: any;
17844
+ result: {};
16011
17845
  } | {
16012
17846
  /** The ID of the action attempt. */
16013
17847
  action_attempt_id: string;
@@ -16031,7 +17865,9 @@ export interface Routes {
16031
17865
  status: 'success';
16032
17866
  error: null;
16033
17867
  action_type: 'UPDATE_NOISE_THRESHOLD';
16034
- result?: any;
17868
+ result: {
17869
+ noise_threshold?: any;
17870
+ };
16035
17871
  } | {
16036
17872
  /** The ID of the action attempt. */
16037
17873
  action_attempt_id: string;
@@ -17013,23 +18849,128 @@ export interface Routes {
17013
18849
  status: 'pending';
17014
18850
  result: null;
17015
18851
  error: null;
17016
- action_type: 'READ_CARD';
18852
+ action_type: 'SCAN_CARD';
17017
18853
  } | {
17018
18854
  /** The ID of the action attempt. */
17019
18855
  action_attempt_id: string;
17020
18856
  status: 'success';
17021
18857
  error: null;
17022
- action_type: 'READ_CARD';
18858
+ action_type: 'SCAN_CARD';
17023
18859
  result: {
17024
- /** A number or string that physically identifies this card. */
17025
- card_number: string | null;
18860
+ /** Snapshot of the card data read from the physical encoder. */
18861
+ acs_credential_on_encoder: {
18862
+ /** Date and time the credential was created. */
18863
+ created_at: string;
18864
+ is_issued: boolean | null;
18865
+ /** Date and time the credential will become useable. */
18866
+ starts_at: string | null;
18867
+ /** Date and time the credential will stop being useable. */
18868
+ ends_at: string | null;
18869
+ /** A number or string that physically identifies this card. */
18870
+ card_number: string | null;
18871
+ visionline_metadata?: {
18872
+ card_id: string;
18873
+ card_function_type: 'guest' | 'staff';
18874
+ cancelled: boolean;
18875
+ discarded: boolean;
18876
+ expired: boolean;
18877
+ overwritten: boolean;
18878
+ overridden?: boolean | undefined;
18879
+ pending_auto_update: boolean;
18880
+ card_format: 'TLCode' | 'rfid48';
18881
+ card_holder?: string | undefined;
18882
+ number_of_issued_cards: number;
18883
+ } | undefined;
18884
+ };
18885
+ /** Matching acs_credential currently encoded on this card. */
18886
+ acs_credential_on_seam: ({
18887
+ acs_credential_id: string;
18888
+ acs_user_id?: string | undefined;
18889
+ acs_credential_pool_id?: string | undefined;
18890
+ acs_system_id: string;
18891
+ parent_acs_credential_id?: string | undefined;
18892
+ display_name: string;
18893
+ code?: (string | undefined) | null;
18894
+ card_number?: (string | undefined) | null;
18895
+ is_issued?: boolean | undefined;
18896
+ issued_at?: (string | undefined) | null;
18897
+ access_method: 'code' | 'card' | 'mobile_key';
18898
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
18899
+ external_type_display_name?: string | undefined;
18900
+ created_at: string;
18901
+ workspace_id: string;
18902
+ starts_at?: string | undefined;
18903
+ ends_at?: string | undefined;
18904
+ errors: Array<{
18905
+ error_code: string;
18906
+ message: string;
18907
+ }>;
18908
+ warnings: Array<{
18909
+ warning_code: string;
18910
+ message: string;
18911
+ }>;
18912
+ is_multi_phone_sync_credential?: boolean | undefined;
18913
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
18914
+ latest_desired_state_synced_with_provider_at?: string | undefined;
18915
+ visionline_metadata?: {
18916
+ card_function_type: 'guest' | 'staff';
18917
+ joiner_acs_credential_ids?: string[] | undefined;
18918
+ guest_acs_entrance_ids?: string[] | undefined;
18919
+ common_acs_entrance_ids?: string[] | undefined;
18920
+ is_valid?: boolean | undefined;
18921
+ auto_join?: boolean | undefined;
18922
+ card_id?: string | undefined;
18923
+ credential_id?: string | undefined;
18924
+ } | undefined;
18925
+ is_managed: true;
18926
+ } | {
18927
+ acs_credential_id: string;
18928
+ acs_user_id?: string | undefined;
18929
+ acs_credential_pool_id?: string | undefined;
18930
+ acs_system_id: string;
18931
+ parent_acs_credential_id?: string | undefined;
18932
+ display_name: string;
18933
+ code?: (string | undefined) | null;
18934
+ card_number?: (string | undefined) | null;
18935
+ is_issued?: boolean | undefined;
18936
+ issued_at?: (string | undefined) | null;
18937
+ access_method: 'code' | 'card' | 'mobile_key';
18938
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
18939
+ external_type_display_name?: string | undefined;
18940
+ created_at: string;
18941
+ workspace_id: string;
18942
+ starts_at?: string | undefined;
18943
+ ends_at?: string | undefined;
18944
+ errors: Array<{
18945
+ error_code: string;
18946
+ message: string;
18947
+ }>;
18948
+ warnings: Array<{
18949
+ warning_code: string;
18950
+ message: string;
18951
+ }>;
18952
+ is_multi_phone_sync_credential?: boolean | undefined;
18953
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
18954
+ latest_desired_state_synced_with_provider_at?: string | undefined;
18955
+ visionline_metadata?: {
18956
+ card_function_type: 'guest' | 'staff';
18957
+ joiner_acs_credential_ids?: string[] | undefined;
18958
+ guest_acs_entrance_ids?: string[] | undefined;
18959
+ common_acs_entrance_ids?: string[] | undefined;
18960
+ is_valid?: boolean | undefined;
18961
+ auto_join?: boolean | undefined;
18962
+ card_id?: string | undefined;
18963
+ credential_id?: string | undefined;
18964
+ } | undefined;
18965
+ is_managed: false;
18966
+ }) | null;
17026
18967
  };
17027
18968
  } | {
17028
18969
  /** The ID of the action attempt. */
17029
18970
  action_attempt_id: string;
17030
18971
  status: 'error';
17031
18972
  result: null;
17032
- action_type: 'READ_CARD';
18973
+ action_type: 'SCAN_CARD';
17033
18974
  error: {
17034
18975
  type: 'no_card_on_encoder';
17035
18976
  message: string;
@@ -17047,12 +18988,7 @@ export interface Routes {
17047
18988
  status: 'success';
17048
18989
  error: null;
17049
18990
  action_type: 'ENCODE_CARD';
17050
- result: {
17051
- /** Matching acs_credential currently encoded on this card. */
17052
- acs_credential_id: string | null;
17053
- /** A number or string that physically identifies this card. */
17054
- card_number: string | null;
17055
- };
18991
+ result: {};
17056
18992
  } | {
17057
18993
  /** The ID of the action attempt. */
17058
18994
  action_attempt_id: string;
@@ -17244,7 +19180,7 @@ export interface Routes {
17244
19180
  status: 'success';
17245
19181
  error: null;
17246
19182
  action_type: 'SYNC_ACCESS_CODES';
17247
- result?: any;
19183
+ result: {};
17248
19184
  } | {
17249
19185
  /** The ID of the action attempt. */
17250
19186
  action_attempt_id: string;
@@ -17268,7 +19204,9 @@ export interface Routes {
17268
19204
  status: 'success';
17269
19205
  error: null;
17270
19206
  action_type: 'CREATE_ACCESS_CODE';
17271
- result?: any;
19207
+ result: {
19208
+ access_code?: any;
19209
+ };
17272
19210
  } | {
17273
19211
  /** The ID of the action attempt. */
17274
19212
  action_attempt_id: string;
@@ -17292,7 +19230,7 @@ export interface Routes {
17292
19230
  status: 'success';
17293
19231
  error: null;
17294
19232
  action_type: 'DELETE_ACCESS_CODE';
17295
- result?: any;
19233
+ result: {};
17296
19234
  } | {
17297
19235
  /** The ID of the action attempt. */
17298
19236
  action_attempt_id: string;
@@ -17316,7 +19254,9 @@ export interface Routes {
17316
19254
  status: 'success';
17317
19255
  error: null;
17318
19256
  action_type: 'UPDATE_ACCESS_CODE';
17319
- result?: any;
19257
+ result: {
19258
+ access_code?: any;
19259
+ };
17320
19260
  } | {
17321
19261
  /** The ID of the action attempt. */
17322
19262
  action_attempt_id: string;
@@ -17340,7 +19280,9 @@ export interface Routes {
17340
19280
  status: 'success';
17341
19281
  error: null;
17342
19282
  action_type: 'CREATE_NOISE_THRESHOLD';
17343
- result?: any;
19283
+ result: {
19284
+ noise_threshold?: any;
19285
+ };
17344
19286
  } | {
17345
19287
  /** The ID of the action attempt. */
17346
19288
  action_attempt_id: string;
@@ -17364,7 +19306,7 @@ export interface Routes {
17364
19306
  status: 'success';
17365
19307
  error: null;
17366
19308
  action_type: 'DELETE_NOISE_THRESHOLD';
17367
- result?: any;
19309
+ result: {};
17368
19310
  } | {
17369
19311
  /** The ID of the action attempt. */
17370
19312
  action_attempt_id: string;
@@ -17388,7 +19330,9 @@ export interface Routes {
17388
19330
  status: 'success';
17389
19331
  error: null;
17390
19332
  action_type: 'UPDATE_NOISE_THRESHOLD';
17391
- result?: any;
19333
+ result: {
19334
+ noise_threshold?: any;
19335
+ };
17392
19336
  } | {
17393
19337
  /** The ID of the action attempt. */
17394
19338
  action_attempt_id: string;
@@ -17588,23 +19532,128 @@ export interface Routes {
17588
19532
  status: 'pending';
17589
19533
  result: null;
17590
19534
  error: null;
17591
- action_type: 'READ_CARD';
19535
+ action_type: 'SCAN_CARD';
17592
19536
  } | {
17593
19537
  /** The ID of the action attempt. */
17594
19538
  action_attempt_id: string;
17595
19539
  status: 'success';
17596
19540
  error: null;
17597
- action_type: 'READ_CARD';
19541
+ action_type: 'SCAN_CARD';
17598
19542
  result: {
17599
- /** A number or string that physically identifies this card. */
17600
- card_number: string | null;
19543
+ /** Snapshot of the card data read from the physical encoder. */
19544
+ acs_credential_on_encoder: {
19545
+ /** Date and time the credential was created. */
19546
+ created_at: string;
19547
+ is_issued: boolean | null;
19548
+ /** Date and time the credential will become useable. */
19549
+ starts_at: string | null;
19550
+ /** Date and time the credential will stop being useable. */
19551
+ ends_at: string | null;
19552
+ /** A number or string that physically identifies this card. */
19553
+ card_number: string | null;
19554
+ visionline_metadata?: {
19555
+ card_id: string;
19556
+ card_function_type: 'guest' | 'staff';
19557
+ cancelled: boolean;
19558
+ discarded: boolean;
19559
+ expired: boolean;
19560
+ overwritten: boolean;
19561
+ overridden?: boolean | undefined;
19562
+ pending_auto_update: boolean;
19563
+ card_format: 'TLCode' | 'rfid48';
19564
+ card_holder?: string | undefined;
19565
+ number_of_issued_cards: number;
19566
+ } | undefined;
19567
+ };
19568
+ /** Matching acs_credential currently encoded on this card. */
19569
+ acs_credential_on_seam: ({
19570
+ acs_credential_id: string;
19571
+ acs_user_id?: string | undefined;
19572
+ acs_credential_pool_id?: string | undefined;
19573
+ acs_system_id: string;
19574
+ parent_acs_credential_id?: string | undefined;
19575
+ display_name: string;
19576
+ code?: (string | undefined) | null;
19577
+ card_number?: (string | undefined) | null;
19578
+ is_issued?: boolean | undefined;
19579
+ issued_at?: (string | undefined) | null;
19580
+ access_method: 'code' | 'card' | 'mobile_key';
19581
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
19582
+ external_type_display_name?: string | undefined;
19583
+ created_at: string;
19584
+ workspace_id: string;
19585
+ starts_at?: string | undefined;
19586
+ ends_at?: string | undefined;
19587
+ errors: Array<{
19588
+ error_code: string;
19589
+ message: string;
19590
+ }>;
19591
+ warnings: Array<{
19592
+ warning_code: string;
19593
+ message: string;
19594
+ }>;
19595
+ is_multi_phone_sync_credential?: boolean | undefined;
19596
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
19597
+ latest_desired_state_synced_with_provider_at?: string | undefined;
19598
+ visionline_metadata?: {
19599
+ card_function_type: 'guest' | 'staff';
19600
+ joiner_acs_credential_ids?: string[] | undefined;
19601
+ guest_acs_entrance_ids?: string[] | undefined;
19602
+ common_acs_entrance_ids?: string[] | undefined;
19603
+ is_valid?: boolean | undefined;
19604
+ auto_join?: boolean | undefined;
19605
+ card_id?: string | undefined;
19606
+ credential_id?: string | undefined;
19607
+ } | undefined;
19608
+ is_managed: true;
19609
+ } | {
19610
+ acs_credential_id: string;
19611
+ acs_user_id?: string | undefined;
19612
+ acs_credential_pool_id?: string | undefined;
19613
+ acs_system_id: string;
19614
+ parent_acs_credential_id?: string | undefined;
19615
+ display_name: string;
19616
+ code?: (string | undefined) | null;
19617
+ card_number?: (string | undefined) | null;
19618
+ is_issued?: boolean | undefined;
19619
+ issued_at?: (string | undefined) | null;
19620
+ access_method: 'code' | 'card' | 'mobile_key';
19621
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
19622
+ external_type_display_name?: string | undefined;
19623
+ created_at: string;
19624
+ workspace_id: string;
19625
+ starts_at?: string | undefined;
19626
+ ends_at?: string | undefined;
19627
+ errors: Array<{
19628
+ error_code: string;
19629
+ message: string;
19630
+ }>;
19631
+ warnings: Array<{
19632
+ warning_code: string;
19633
+ message: string;
19634
+ }>;
19635
+ is_multi_phone_sync_credential?: boolean | undefined;
19636
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
19637
+ latest_desired_state_synced_with_provider_at?: string | undefined;
19638
+ visionline_metadata?: {
19639
+ card_function_type: 'guest' | 'staff';
19640
+ joiner_acs_credential_ids?: string[] | undefined;
19641
+ guest_acs_entrance_ids?: string[] | undefined;
19642
+ common_acs_entrance_ids?: string[] | undefined;
19643
+ is_valid?: boolean | undefined;
19644
+ auto_join?: boolean | undefined;
19645
+ card_id?: string | undefined;
19646
+ credential_id?: string | undefined;
19647
+ } | undefined;
19648
+ is_managed: false;
19649
+ }) | null;
17601
19650
  };
17602
19651
  } | {
17603
19652
  /** The ID of the action attempt. */
17604
19653
  action_attempt_id: string;
17605
19654
  status: 'error';
17606
19655
  result: null;
17607
- action_type: 'READ_CARD';
19656
+ action_type: 'SCAN_CARD';
17608
19657
  error: {
17609
19658
  type: 'no_card_on_encoder';
17610
19659
  message: string;
@@ -17622,12 +19671,7 @@ export interface Routes {
17622
19671
  status: 'success';
17623
19672
  error: null;
17624
19673
  action_type: 'ENCODE_CARD';
17625
- result: {
17626
- /** Matching acs_credential currently encoded on this card. */
17627
- acs_credential_id: string | null;
17628
- /** A number or string that physically identifies this card. */
17629
- card_number: string | null;
17630
- };
19674
+ result: {};
17631
19675
  } | {
17632
19676
  /** The ID of the action attempt. */
17633
19677
  action_attempt_id: string;
@@ -17819,7 +19863,7 @@ export interface Routes {
17819
19863
  status: 'success';
17820
19864
  error: null;
17821
19865
  action_type: 'SYNC_ACCESS_CODES';
17822
- result?: any;
19866
+ result: {};
17823
19867
  } | {
17824
19868
  /** The ID of the action attempt. */
17825
19869
  action_attempt_id: string;
@@ -17843,7 +19887,9 @@ export interface Routes {
17843
19887
  status: 'success';
17844
19888
  error: null;
17845
19889
  action_type: 'CREATE_ACCESS_CODE';
17846
- result?: any;
19890
+ result: {
19891
+ access_code?: any;
19892
+ };
17847
19893
  } | {
17848
19894
  /** The ID of the action attempt. */
17849
19895
  action_attempt_id: string;
@@ -17867,7 +19913,7 @@ export interface Routes {
17867
19913
  status: 'success';
17868
19914
  error: null;
17869
19915
  action_type: 'DELETE_ACCESS_CODE';
17870
- result?: any;
19916
+ result: {};
17871
19917
  } | {
17872
19918
  /** The ID of the action attempt. */
17873
19919
  action_attempt_id: string;
@@ -17891,7 +19937,9 @@ export interface Routes {
17891
19937
  status: 'success';
17892
19938
  error: null;
17893
19939
  action_type: 'UPDATE_ACCESS_CODE';
17894
- result?: any;
19940
+ result: {
19941
+ access_code?: any;
19942
+ };
17895
19943
  } | {
17896
19944
  /** The ID of the action attempt. */
17897
19945
  action_attempt_id: string;
@@ -17915,7 +19963,9 @@ export interface Routes {
17915
19963
  status: 'success';
17916
19964
  error: null;
17917
19965
  action_type: 'CREATE_NOISE_THRESHOLD';
17918
- result?: any;
19966
+ result: {
19967
+ noise_threshold?: any;
19968
+ };
17919
19969
  } | {
17920
19970
  /** The ID of the action attempt. */
17921
19971
  action_attempt_id: string;
@@ -17939,7 +19989,7 @@ export interface Routes {
17939
19989
  status: 'success';
17940
19990
  error: null;
17941
19991
  action_type: 'DELETE_NOISE_THRESHOLD';
17942
- result?: any;
19992
+ result: {};
17943
19993
  } | {
17944
19994
  /** The ID of the action attempt. */
17945
19995
  action_attempt_id: string;
@@ -17963,7 +20013,9 @@ export interface Routes {
17963
20013
  status: 'success';
17964
20014
  error: null;
17965
20015
  action_type: 'UPDATE_NOISE_THRESHOLD';
17966
- result?: any;
20016
+ result: {
20017
+ noise_threshold?: any;
20018
+ };
17967
20019
  } | {
17968
20020
  /** The ID of the action attempt. */
17969
20021
  action_attempt_id: string;
@@ -19511,23 +21563,128 @@ export interface Routes {
19511
21563
  status: 'pending';
19512
21564
  result: null;
19513
21565
  error: null;
19514
- action_type: 'READ_CARD';
21566
+ action_type: 'SCAN_CARD';
19515
21567
  } | {
19516
21568
  /** The ID of the action attempt. */
19517
21569
  action_attempt_id: string;
19518
21570
  status: 'success';
19519
21571
  error: null;
19520
- action_type: 'READ_CARD';
21572
+ action_type: 'SCAN_CARD';
19521
21573
  result: {
19522
- /** A number or string that physically identifies this card. */
19523
- card_number: string | null;
21574
+ /** Snapshot of the card data read from the physical encoder. */
21575
+ acs_credential_on_encoder: {
21576
+ /** Date and time the credential was created. */
21577
+ created_at: string;
21578
+ is_issued: boolean | null;
21579
+ /** Date and time the credential will become useable. */
21580
+ starts_at: string | null;
21581
+ /** Date and time the credential will stop being useable. */
21582
+ ends_at: string | null;
21583
+ /** A number or string that physically identifies this card. */
21584
+ card_number: string | null;
21585
+ visionline_metadata?: {
21586
+ card_id: string;
21587
+ card_function_type: 'guest' | 'staff';
21588
+ cancelled: boolean;
21589
+ discarded: boolean;
21590
+ expired: boolean;
21591
+ overwritten: boolean;
21592
+ overridden?: boolean | undefined;
21593
+ pending_auto_update: boolean;
21594
+ card_format: 'TLCode' | 'rfid48';
21595
+ card_holder?: string | undefined;
21596
+ number_of_issued_cards: number;
21597
+ } | undefined;
21598
+ };
21599
+ /** Matching acs_credential currently encoded on this card. */
21600
+ acs_credential_on_seam: ({
21601
+ acs_credential_id: string;
21602
+ acs_user_id?: string | undefined;
21603
+ acs_credential_pool_id?: string | undefined;
21604
+ acs_system_id: string;
21605
+ parent_acs_credential_id?: string | undefined;
21606
+ display_name: string;
21607
+ code?: (string | undefined) | null;
21608
+ card_number?: (string | undefined) | null;
21609
+ is_issued?: boolean | undefined;
21610
+ issued_at?: (string | undefined) | null;
21611
+ access_method: 'code' | 'card' | 'mobile_key';
21612
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
21613
+ external_type_display_name?: string | undefined;
21614
+ created_at: string;
21615
+ workspace_id: string;
21616
+ starts_at?: string | undefined;
21617
+ ends_at?: string | undefined;
21618
+ errors: Array<{
21619
+ error_code: string;
21620
+ message: string;
21621
+ }>;
21622
+ warnings: Array<{
21623
+ warning_code: string;
21624
+ message: string;
21625
+ }>;
21626
+ is_multi_phone_sync_credential?: boolean | undefined;
21627
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
21628
+ latest_desired_state_synced_with_provider_at?: string | undefined;
21629
+ visionline_metadata?: {
21630
+ card_function_type: 'guest' | 'staff';
21631
+ joiner_acs_credential_ids?: string[] | undefined;
21632
+ guest_acs_entrance_ids?: string[] | undefined;
21633
+ common_acs_entrance_ids?: string[] | undefined;
21634
+ is_valid?: boolean | undefined;
21635
+ auto_join?: boolean | undefined;
21636
+ card_id?: string | undefined;
21637
+ credential_id?: string | undefined;
21638
+ } | undefined;
21639
+ is_managed: true;
21640
+ } | {
21641
+ acs_credential_id: string;
21642
+ acs_user_id?: string | undefined;
21643
+ acs_credential_pool_id?: string | undefined;
21644
+ acs_system_id: string;
21645
+ parent_acs_credential_id?: string | undefined;
21646
+ display_name: string;
21647
+ code?: (string | undefined) | null;
21648
+ card_number?: (string | undefined) | null;
21649
+ is_issued?: boolean | undefined;
21650
+ issued_at?: (string | undefined) | null;
21651
+ access_method: 'code' | 'card' | 'mobile_key';
21652
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
21653
+ external_type_display_name?: string | undefined;
21654
+ created_at: string;
21655
+ workspace_id: string;
21656
+ starts_at?: string | undefined;
21657
+ ends_at?: string | undefined;
21658
+ errors: Array<{
21659
+ error_code: string;
21660
+ message: string;
21661
+ }>;
21662
+ warnings: Array<{
21663
+ warning_code: string;
21664
+ message: string;
21665
+ }>;
21666
+ is_multi_phone_sync_credential?: boolean | undefined;
21667
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
21668
+ latest_desired_state_synced_with_provider_at?: string | undefined;
21669
+ visionline_metadata?: {
21670
+ card_function_type: 'guest' | 'staff';
21671
+ joiner_acs_credential_ids?: string[] | undefined;
21672
+ guest_acs_entrance_ids?: string[] | undefined;
21673
+ common_acs_entrance_ids?: string[] | undefined;
21674
+ is_valid?: boolean | undefined;
21675
+ auto_join?: boolean | undefined;
21676
+ card_id?: string | undefined;
21677
+ credential_id?: string | undefined;
21678
+ } | undefined;
21679
+ is_managed: false;
21680
+ }) | null;
19524
21681
  };
19525
21682
  } | {
19526
21683
  /** The ID of the action attempt. */
19527
21684
  action_attempt_id: string;
19528
21685
  status: 'error';
19529
21686
  result: null;
19530
- action_type: 'READ_CARD';
21687
+ action_type: 'SCAN_CARD';
19531
21688
  error: {
19532
21689
  type: 'no_card_on_encoder';
19533
21690
  message: string;
@@ -19545,12 +21702,7 @@ export interface Routes {
19545
21702
  status: 'success';
19546
21703
  error: null;
19547
21704
  action_type: 'ENCODE_CARD';
19548
- result: {
19549
- /** Matching acs_credential currently encoded on this card. */
19550
- acs_credential_id: string | null;
19551
- /** A number or string that physically identifies this card. */
19552
- card_number: string | null;
19553
- };
21705
+ result: {};
19554
21706
  } | {
19555
21707
  /** The ID of the action attempt. */
19556
21708
  action_attempt_id: string;
@@ -19742,7 +21894,7 @@ export interface Routes {
19742
21894
  status: 'success';
19743
21895
  error: null;
19744
21896
  action_type: 'SYNC_ACCESS_CODES';
19745
- result?: any;
21897
+ result: {};
19746
21898
  } | {
19747
21899
  /** The ID of the action attempt. */
19748
21900
  action_attempt_id: string;
@@ -19766,7 +21918,9 @@ export interface Routes {
19766
21918
  status: 'success';
19767
21919
  error: null;
19768
21920
  action_type: 'CREATE_ACCESS_CODE';
19769
- result?: any;
21921
+ result: {
21922
+ access_code?: any;
21923
+ };
19770
21924
  } | {
19771
21925
  /** The ID of the action attempt. */
19772
21926
  action_attempt_id: string;
@@ -19790,7 +21944,7 @@ export interface Routes {
19790
21944
  status: 'success';
19791
21945
  error: null;
19792
21946
  action_type: 'DELETE_ACCESS_CODE';
19793
- result?: any;
21947
+ result: {};
19794
21948
  } | {
19795
21949
  /** The ID of the action attempt. */
19796
21950
  action_attempt_id: string;
@@ -19814,7 +21968,9 @@ export interface Routes {
19814
21968
  status: 'success';
19815
21969
  error: null;
19816
21970
  action_type: 'UPDATE_ACCESS_CODE';
19817
- result?: any;
21971
+ result: {
21972
+ access_code?: any;
21973
+ };
19818
21974
  } | {
19819
21975
  /** The ID of the action attempt. */
19820
21976
  action_attempt_id: string;
@@ -19838,7 +21994,9 @@ export interface Routes {
19838
21994
  status: 'success';
19839
21995
  error: null;
19840
21996
  action_type: 'CREATE_NOISE_THRESHOLD';
19841
- result?: any;
21997
+ result: {
21998
+ noise_threshold?: any;
21999
+ };
19842
22000
  } | {
19843
22001
  /** The ID of the action attempt. */
19844
22002
  action_attempt_id: string;
@@ -19862,7 +22020,7 @@ export interface Routes {
19862
22020
  status: 'success';
19863
22021
  error: null;
19864
22022
  action_type: 'DELETE_NOISE_THRESHOLD';
19865
- result?: any;
22023
+ result: {};
19866
22024
  } | {
19867
22025
  /** The ID of the action attempt. */
19868
22026
  action_attempt_id: string;
@@ -19886,7 +22044,9 @@ export interface Routes {
19886
22044
  status: 'success';
19887
22045
  error: null;
19888
22046
  action_type: 'UPDATE_NOISE_THRESHOLD';
19889
- result?: any;
22047
+ result: {
22048
+ noise_threshold?: any;
22049
+ };
19890
22050
  } | {
19891
22051
  /** The ID of the action attempt. */
19892
22052
  action_attempt_id: string;