@seamapi/types 1.851.0 → 1.852.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10670,6 +10670,564 @@ export declare const batch: z.ZodObject<{
10670
10670
  status: z.ZodLiteral<"pending">;
10671
10671
  result: z.ZodNull;
10672
10672
  error: z.ZodNull;
10673
+ } & {
10674
+ action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
10675
+ }, "strip", z.ZodTypeAny, {
10676
+ status: "pending";
10677
+ action_attempt_id: string;
10678
+ error: null;
10679
+ result: null;
10680
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
10681
+ }, {
10682
+ status: "pending";
10683
+ action_attempt_id: string;
10684
+ error: null;
10685
+ result: null;
10686
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
10687
+ }>, z.ZodObject<{
10688
+ action_attempt_id: z.ZodString;
10689
+ } & {
10690
+ status: z.ZodLiteral<"success">;
10691
+ error: z.ZodNull;
10692
+ } & {
10693
+ action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
10694
+ result: z.ZodObject<{
10695
+ acs_credential_id: z.ZodString;
10696
+ acs_user_id: z.ZodOptional<z.ZodString>;
10697
+ user_identity_id: z.ZodOptional<z.ZodString>;
10698
+ connected_account_id: z.ZodString;
10699
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
10700
+ acs_system_id: z.ZodString;
10701
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
10702
+ display_name: z.ZodString;
10703
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10704
+ is_one_time_use: z.ZodOptional<z.ZodBoolean>;
10705
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10706
+ is_issued: z.ZodOptional<z.ZodBoolean>;
10707
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10708
+ access_method: z.ZodEnum<["code", "card", "mobile_key", "cloud_key"]>;
10709
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential", "assa_abloy_vostio_key", "salto_space_key", "latch_access", "dormakaba_ambiance_credential", "hotek_card", "salto_ks_tag", "avigilon_alta_credential"]>>;
10710
+ external_type_display_name: z.ZodOptional<z.ZodString>;
10711
+ created_at: z.ZodString;
10712
+ workspace_id: z.ZodString;
10713
+ starts_at: z.ZodOptional<z.ZodString>;
10714
+ ends_at: z.ZodOptional<z.ZodString>;
10715
+ errors: z.ZodArray<z.ZodObject<{
10716
+ error_code: z.ZodString;
10717
+ message: z.ZodString;
10718
+ }, "strip", z.ZodTypeAny, {
10719
+ message: string;
10720
+ error_code: string;
10721
+ }, {
10722
+ message: string;
10723
+ error_code: string;
10724
+ }>, "many">;
10725
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
10726
+ created_at: z.ZodString;
10727
+ message: z.ZodString;
10728
+ } & {
10729
+ warning_code: z.ZodLiteral<"waiting_to_be_issued">;
10730
+ }, "strip", z.ZodTypeAny, {
10731
+ message: string;
10732
+ created_at: string;
10733
+ warning_code: "waiting_to_be_issued";
10734
+ }, {
10735
+ message: string;
10736
+ created_at: string;
10737
+ warning_code: "waiting_to_be_issued";
10738
+ }>, z.ZodObject<{
10739
+ created_at: z.ZodString;
10740
+ message: z.ZodString;
10741
+ } & {
10742
+ warning_code: z.ZodLiteral<"schedule_externally_modified">;
10743
+ }, "strip", z.ZodTypeAny, {
10744
+ message: string;
10745
+ created_at: string;
10746
+ warning_code: "schedule_externally_modified";
10747
+ }, {
10748
+ message: string;
10749
+ created_at: string;
10750
+ warning_code: "schedule_externally_modified";
10751
+ }>, z.ZodObject<{
10752
+ created_at: z.ZodString;
10753
+ message: z.ZodString;
10754
+ } & {
10755
+ warning_code: z.ZodLiteral<"schedule_modified">;
10756
+ }, "strip", z.ZodTypeAny, {
10757
+ message: string;
10758
+ created_at: string;
10759
+ warning_code: "schedule_modified";
10760
+ }, {
10761
+ message: string;
10762
+ created_at: string;
10763
+ warning_code: "schedule_modified";
10764
+ }>, z.ZodObject<{
10765
+ created_at: z.ZodString;
10766
+ message: z.ZodString;
10767
+ } & {
10768
+ warning_code: z.ZodLiteral<"being_deleted">;
10769
+ }, "strip", z.ZodTypeAny, {
10770
+ message: string;
10771
+ created_at: string;
10772
+ warning_code: "being_deleted";
10773
+ }, {
10774
+ message: string;
10775
+ created_at: string;
10776
+ warning_code: "being_deleted";
10777
+ }>, z.ZodObject<{
10778
+ created_at: z.ZodString;
10779
+ message: z.ZodString;
10780
+ } & {
10781
+ warning_code: z.ZodLiteral<"unknown_issue_with_acs_credential">;
10782
+ }, "strip", z.ZodTypeAny, {
10783
+ message: string;
10784
+ created_at: string;
10785
+ warning_code: "unknown_issue_with_acs_credential";
10786
+ }, {
10787
+ message: string;
10788
+ created_at: string;
10789
+ warning_code: "unknown_issue_with_acs_credential";
10790
+ }>, z.ZodObject<{
10791
+ created_at: z.ZodString;
10792
+ message: z.ZodString;
10793
+ } & {
10794
+ warning_code: z.ZodLiteral<"needs_to_be_reissued">;
10795
+ }, "strip", z.ZodTypeAny, {
10796
+ message: string;
10797
+ created_at: string;
10798
+ warning_code: "needs_to_be_reissued";
10799
+ }, {
10800
+ message: string;
10801
+ created_at: string;
10802
+ warning_code: "needs_to_be_reissued";
10803
+ }>]>, "many">;
10804
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
10805
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10806
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10807
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
10808
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
10809
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10810
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10811
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10812
+ is_valid: z.ZodOptional<z.ZodBoolean>;
10813
+ auto_join: z.ZodOptional<z.ZodBoolean>;
10814
+ card_id: z.ZodOptional<z.ZodString>;
10815
+ credential_id: z.ZodOptional<z.ZodString>;
10816
+ }, "strip", z.ZodTypeAny, {
10817
+ card_function_type: "guest" | "staff";
10818
+ auto_join?: boolean | undefined;
10819
+ joiner_acs_credential_ids?: string[] | undefined;
10820
+ guest_acs_entrance_ids?: string[] | undefined;
10821
+ common_acs_entrance_ids?: string[] | undefined;
10822
+ is_valid?: boolean | undefined;
10823
+ card_id?: string | undefined;
10824
+ credential_id?: string | undefined;
10825
+ }, {
10826
+ card_function_type: "guest" | "staff";
10827
+ auto_join?: boolean | undefined;
10828
+ joiner_acs_credential_ids?: string[] | undefined;
10829
+ guest_acs_entrance_ids?: string[] | undefined;
10830
+ common_acs_entrance_ids?: string[] | undefined;
10831
+ is_valid?: boolean | undefined;
10832
+ card_id?: string | undefined;
10833
+ credential_id?: string | undefined;
10834
+ }>>;
10835
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
10836
+ auto_join: z.ZodOptional<z.ZodBoolean>;
10837
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10838
+ key_id: z.ZodOptional<z.ZodString>;
10839
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
10840
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10841
+ endpoint_id: z.ZodOptional<z.ZodString>;
10842
+ }, "strip", z.ZodTypeAny, {
10843
+ key_id?: string | undefined;
10844
+ endpoint_id?: string | undefined;
10845
+ auto_join?: boolean | undefined;
10846
+ override_guest_acs_entrance_ids?: string[] | undefined;
10847
+ key_issuing_request_id?: string | undefined;
10848
+ door_names?: string[] | undefined;
10849
+ }, {
10850
+ key_id?: string | undefined;
10851
+ endpoint_id?: string | undefined;
10852
+ auto_join?: boolean | undefined;
10853
+ override_guest_acs_entrance_ids?: string[] | undefined;
10854
+ key_issuing_request_id?: string | undefined;
10855
+ door_names?: string[] | undefined;
10856
+ }>>;
10857
+ } & {
10858
+ is_managed: z.ZodLiteral<true>;
10859
+ }, "strip", z.ZodTypeAny, {
10860
+ display_name: string;
10861
+ workspace_id: string;
10862
+ created_at: string;
10863
+ errors: {
10864
+ message: string;
10865
+ error_code: string;
10866
+ }[];
10867
+ connected_account_id: string;
10868
+ warnings: ({
10869
+ message: string;
10870
+ created_at: string;
10871
+ warning_code: "waiting_to_be_issued";
10872
+ } | {
10873
+ message: string;
10874
+ created_at: string;
10875
+ warning_code: "schedule_externally_modified";
10876
+ } | {
10877
+ message: string;
10878
+ created_at: string;
10879
+ warning_code: "schedule_modified";
10880
+ } | {
10881
+ message: string;
10882
+ created_at: string;
10883
+ warning_code: "being_deleted";
10884
+ } | {
10885
+ message: string;
10886
+ created_at: string;
10887
+ warning_code: "unknown_issue_with_acs_credential";
10888
+ } | {
10889
+ message: string;
10890
+ created_at: string;
10891
+ warning_code: "needs_to_be_reissued";
10892
+ })[];
10893
+ is_managed: true;
10894
+ acs_system_id: string;
10895
+ acs_credential_id: string;
10896
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
10897
+ code?: string | null | undefined;
10898
+ starts_at?: string | undefined;
10899
+ ends_at?: string | undefined;
10900
+ visionline_metadata?: {
10901
+ card_function_type: "guest" | "staff";
10902
+ auto_join?: boolean | undefined;
10903
+ joiner_acs_credential_ids?: string[] | undefined;
10904
+ guest_acs_entrance_ids?: string[] | undefined;
10905
+ common_acs_entrance_ids?: string[] | undefined;
10906
+ is_valid?: boolean | undefined;
10907
+ card_id?: string | undefined;
10908
+ credential_id?: string | undefined;
10909
+ } | undefined;
10910
+ assa_abloy_vostio_metadata?: {
10911
+ key_id?: string | undefined;
10912
+ endpoint_id?: string | undefined;
10913
+ auto_join?: boolean | undefined;
10914
+ override_guest_acs_entrance_ids?: string[] | undefined;
10915
+ key_issuing_request_id?: string | undefined;
10916
+ door_names?: string[] | undefined;
10917
+ } | undefined;
10918
+ is_one_time_use?: boolean | undefined;
10919
+ user_identity_id?: string | undefined;
10920
+ issued_at?: string | null | undefined;
10921
+ is_issued?: boolean | undefined;
10922
+ acs_user_id?: string | undefined;
10923
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
10924
+ external_type_display_name?: string | undefined;
10925
+ acs_credential_pool_id?: string | undefined;
10926
+ parent_acs_credential_id?: string | undefined;
10927
+ card_number?: string | null | undefined;
10928
+ is_multi_phone_sync_credential?: boolean | undefined;
10929
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
10930
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
10931
+ }, {
10932
+ display_name: string;
10933
+ workspace_id: string;
10934
+ created_at: string;
10935
+ errors: {
10936
+ message: string;
10937
+ error_code: string;
10938
+ }[];
10939
+ connected_account_id: string;
10940
+ warnings: ({
10941
+ message: string;
10942
+ created_at: string;
10943
+ warning_code: "waiting_to_be_issued";
10944
+ } | {
10945
+ message: string;
10946
+ created_at: string;
10947
+ warning_code: "schedule_externally_modified";
10948
+ } | {
10949
+ message: string;
10950
+ created_at: string;
10951
+ warning_code: "schedule_modified";
10952
+ } | {
10953
+ message: string;
10954
+ created_at: string;
10955
+ warning_code: "being_deleted";
10956
+ } | {
10957
+ message: string;
10958
+ created_at: string;
10959
+ warning_code: "unknown_issue_with_acs_credential";
10960
+ } | {
10961
+ message: string;
10962
+ created_at: string;
10963
+ warning_code: "needs_to_be_reissued";
10964
+ })[];
10965
+ is_managed: true;
10966
+ acs_system_id: string;
10967
+ acs_credential_id: string;
10968
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
10969
+ code?: string | null | undefined;
10970
+ starts_at?: string | undefined;
10971
+ ends_at?: string | undefined;
10972
+ visionline_metadata?: {
10973
+ card_function_type: "guest" | "staff";
10974
+ auto_join?: boolean | undefined;
10975
+ joiner_acs_credential_ids?: string[] | undefined;
10976
+ guest_acs_entrance_ids?: string[] | undefined;
10977
+ common_acs_entrance_ids?: string[] | undefined;
10978
+ is_valid?: boolean | undefined;
10979
+ card_id?: string | undefined;
10980
+ credential_id?: string | undefined;
10981
+ } | undefined;
10982
+ assa_abloy_vostio_metadata?: {
10983
+ key_id?: string | undefined;
10984
+ endpoint_id?: string | undefined;
10985
+ auto_join?: boolean | undefined;
10986
+ override_guest_acs_entrance_ids?: string[] | undefined;
10987
+ key_issuing_request_id?: string | undefined;
10988
+ door_names?: string[] | undefined;
10989
+ } | undefined;
10990
+ is_one_time_use?: boolean | undefined;
10991
+ user_identity_id?: string | undefined;
10992
+ issued_at?: string | null | undefined;
10993
+ is_issued?: boolean | undefined;
10994
+ acs_user_id?: string | undefined;
10995
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
10996
+ external_type_display_name?: string | undefined;
10997
+ acs_credential_pool_id?: string | undefined;
10998
+ parent_acs_credential_id?: string | undefined;
10999
+ card_number?: string | null | undefined;
11000
+ is_multi_phone_sync_credential?: boolean | undefined;
11001
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
11002
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
11003
+ }>;
11004
+ }, "strip", z.ZodTypeAny, {
11005
+ status: "success";
11006
+ action_attempt_id: string;
11007
+ error: null;
11008
+ result: {
11009
+ display_name: string;
11010
+ workspace_id: string;
11011
+ created_at: string;
11012
+ errors: {
11013
+ message: string;
11014
+ error_code: string;
11015
+ }[];
11016
+ connected_account_id: string;
11017
+ warnings: ({
11018
+ message: string;
11019
+ created_at: string;
11020
+ warning_code: "waiting_to_be_issued";
11021
+ } | {
11022
+ message: string;
11023
+ created_at: string;
11024
+ warning_code: "schedule_externally_modified";
11025
+ } | {
11026
+ message: string;
11027
+ created_at: string;
11028
+ warning_code: "schedule_modified";
11029
+ } | {
11030
+ message: string;
11031
+ created_at: string;
11032
+ warning_code: "being_deleted";
11033
+ } | {
11034
+ message: string;
11035
+ created_at: string;
11036
+ warning_code: "unknown_issue_with_acs_credential";
11037
+ } | {
11038
+ message: string;
11039
+ created_at: string;
11040
+ warning_code: "needs_to_be_reissued";
11041
+ })[];
11042
+ is_managed: true;
11043
+ acs_system_id: string;
11044
+ acs_credential_id: string;
11045
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
11046
+ code?: string | null | undefined;
11047
+ starts_at?: string | undefined;
11048
+ ends_at?: string | undefined;
11049
+ visionline_metadata?: {
11050
+ card_function_type: "guest" | "staff";
11051
+ auto_join?: boolean | undefined;
11052
+ joiner_acs_credential_ids?: string[] | undefined;
11053
+ guest_acs_entrance_ids?: string[] | undefined;
11054
+ common_acs_entrance_ids?: string[] | undefined;
11055
+ is_valid?: boolean | undefined;
11056
+ card_id?: string | undefined;
11057
+ credential_id?: string | undefined;
11058
+ } | undefined;
11059
+ assa_abloy_vostio_metadata?: {
11060
+ key_id?: string | undefined;
11061
+ endpoint_id?: string | undefined;
11062
+ auto_join?: boolean | undefined;
11063
+ override_guest_acs_entrance_ids?: string[] | undefined;
11064
+ key_issuing_request_id?: string | undefined;
11065
+ door_names?: string[] | undefined;
11066
+ } | undefined;
11067
+ is_one_time_use?: boolean | undefined;
11068
+ user_identity_id?: string | undefined;
11069
+ issued_at?: string | null | undefined;
11070
+ is_issued?: boolean | undefined;
11071
+ acs_user_id?: string | undefined;
11072
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
11073
+ external_type_display_name?: string | undefined;
11074
+ acs_credential_pool_id?: string | undefined;
11075
+ parent_acs_credential_id?: string | undefined;
11076
+ card_number?: string | null | undefined;
11077
+ is_multi_phone_sync_credential?: boolean | undefined;
11078
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
11079
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
11080
+ };
11081
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
11082
+ }, {
11083
+ status: "success";
11084
+ action_attempt_id: string;
11085
+ error: null;
11086
+ result: {
11087
+ display_name: string;
11088
+ workspace_id: string;
11089
+ created_at: string;
11090
+ errors: {
11091
+ message: string;
11092
+ error_code: string;
11093
+ }[];
11094
+ connected_account_id: string;
11095
+ warnings: ({
11096
+ message: string;
11097
+ created_at: string;
11098
+ warning_code: "waiting_to_be_issued";
11099
+ } | {
11100
+ message: string;
11101
+ created_at: string;
11102
+ warning_code: "schedule_externally_modified";
11103
+ } | {
11104
+ message: string;
11105
+ created_at: string;
11106
+ warning_code: "schedule_modified";
11107
+ } | {
11108
+ message: string;
11109
+ created_at: string;
11110
+ warning_code: "being_deleted";
11111
+ } | {
11112
+ message: string;
11113
+ created_at: string;
11114
+ warning_code: "unknown_issue_with_acs_credential";
11115
+ } | {
11116
+ message: string;
11117
+ created_at: string;
11118
+ warning_code: "needs_to_be_reissued";
11119
+ })[];
11120
+ is_managed: true;
11121
+ acs_system_id: string;
11122
+ acs_credential_id: string;
11123
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
11124
+ code?: string | null | undefined;
11125
+ starts_at?: string | undefined;
11126
+ ends_at?: string | undefined;
11127
+ visionline_metadata?: {
11128
+ card_function_type: "guest" | "staff";
11129
+ auto_join?: boolean | undefined;
11130
+ joiner_acs_credential_ids?: string[] | undefined;
11131
+ guest_acs_entrance_ids?: string[] | undefined;
11132
+ common_acs_entrance_ids?: string[] | undefined;
11133
+ is_valid?: boolean | undefined;
11134
+ card_id?: string | undefined;
11135
+ credential_id?: string | undefined;
11136
+ } | undefined;
11137
+ assa_abloy_vostio_metadata?: {
11138
+ key_id?: string | undefined;
11139
+ endpoint_id?: string | undefined;
11140
+ auto_join?: boolean | undefined;
11141
+ override_guest_acs_entrance_ids?: string[] | undefined;
11142
+ key_issuing_request_id?: string | undefined;
11143
+ door_names?: string[] | undefined;
11144
+ } | undefined;
11145
+ is_one_time_use?: boolean | undefined;
11146
+ user_identity_id?: string | undefined;
11147
+ issued_at?: string | null | undefined;
11148
+ is_issued?: boolean | undefined;
11149
+ acs_user_id?: string | undefined;
11150
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
11151
+ external_type_display_name?: string | undefined;
11152
+ acs_credential_pool_id?: string | undefined;
11153
+ parent_acs_credential_id?: string | undefined;
11154
+ card_number?: string | null | undefined;
11155
+ is_multi_phone_sync_credential?: boolean | undefined;
11156
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
11157
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
11158
+ };
11159
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
11160
+ }>, z.ZodObject<{
11161
+ action_attempt_id: z.ZodString;
11162
+ } & {
11163
+ status: z.ZodLiteral<"error">;
11164
+ result: z.ZodNull;
11165
+ } & {
11166
+ action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
11167
+ error: z.ZodUnion<[z.ZodObject<{
11168
+ type: z.ZodLiteral<"uncategorized_error">;
11169
+ message: z.ZodString;
11170
+ }, "strip", z.ZodTypeAny, {
11171
+ message: string;
11172
+ type: "uncategorized_error";
11173
+ }, {
11174
+ message: string;
11175
+ type: "uncategorized_error";
11176
+ }>, z.ZodObject<{
11177
+ type: z.ZodLiteral<"action_attempt_expired">;
11178
+ message: z.ZodString;
11179
+ }, "strip", z.ZodTypeAny, {
11180
+ message: string;
11181
+ type: "action_attempt_expired";
11182
+ }, {
11183
+ message: string;
11184
+ type: "action_attempt_expired";
11185
+ }>, z.ZodObject<{
11186
+ type: z.ZodLiteral<"no_credential_on_encoder">;
11187
+ message: z.ZodString;
11188
+ }, "strip", z.ZodTypeAny, {
11189
+ message: string;
11190
+ type: "no_credential_on_encoder";
11191
+ }, {
11192
+ message: string;
11193
+ type: "no_credential_on_encoder";
11194
+ }>]>;
11195
+ }, "strip", z.ZodTypeAny, {
11196
+ status: "error";
11197
+ action_attempt_id: string;
11198
+ error: {
11199
+ message: string;
11200
+ type: "uncategorized_error";
11201
+ } | {
11202
+ message: string;
11203
+ type: "action_attempt_expired";
11204
+ } | {
11205
+ message: string;
11206
+ type: "no_credential_on_encoder";
11207
+ };
11208
+ result: null;
11209
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
11210
+ }, {
11211
+ status: "error";
11212
+ action_attempt_id: string;
11213
+ error: {
11214
+ message: string;
11215
+ type: "uncategorized_error";
11216
+ } | {
11217
+ message: string;
11218
+ type: "action_attempt_expired";
11219
+ } | {
11220
+ message: string;
11221
+ type: "no_credential_on_encoder";
11222
+ };
11223
+ result: null;
11224
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
11225
+ }>, z.ZodObject<{
11226
+ action_attempt_id: z.ZodString;
11227
+ } & {
11228
+ status: z.ZodLiteral<"pending">;
11229
+ result: z.ZodNull;
11230
+ error: z.ZodNull;
10673
11231
  } & {
10674
11232
  action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
10675
11233
  }, "strip", z.ZodTypeAny, {
@@ -28326,6 +28884,105 @@ export declare const batch: z.ZodObject<{
28326
28884
  };
28327
28885
  result: null;
28328
28886
  action_type: "SCAN_CREDENTIAL";
28887
+ } | {
28888
+ status: "pending";
28889
+ action_attempt_id: string;
28890
+ error: null;
28891
+ result: null;
28892
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
28893
+ } | {
28894
+ status: "success";
28895
+ action_attempt_id: string;
28896
+ error: null;
28897
+ result: {
28898
+ display_name: string;
28899
+ workspace_id: string;
28900
+ created_at: string;
28901
+ errors: {
28902
+ message: string;
28903
+ error_code: string;
28904
+ }[];
28905
+ connected_account_id: string;
28906
+ warnings: ({
28907
+ message: string;
28908
+ created_at: string;
28909
+ warning_code: "waiting_to_be_issued";
28910
+ } | {
28911
+ message: string;
28912
+ created_at: string;
28913
+ warning_code: "schedule_externally_modified";
28914
+ } | {
28915
+ message: string;
28916
+ created_at: string;
28917
+ warning_code: "schedule_modified";
28918
+ } | {
28919
+ message: string;
28920
+ created_at: string;
28921
+ warning_code: "being_deleted";
28922
+ } | {
28923
+ message: string;
28924
+ created_at: string;
28925
+ warning_code: "unknown_issue_with_acs_credential";
28926
+ } | {
28927
+ message: string;
28928
+ created_at: string;
28929
+ warning_code: "needs_to_be_reissued";
28930
+ })[];
28931
+ is_managed: true;
28932
+ acs_system_id: string;
28933
+ acs_credential_id: string;
28934
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
28935
+ code?: string | null | undefined;
28936
+ starts_at?: string | undefined;
28937
+ ends_at?: string | undefined;
28938
+ visionline_metadata?: {
28939
+ card_function_type: "guest" | "staff";
28940
+ auto_join?: boolean | undefined;
28941
+ joiner_acs_credential_ids?: string[] | undefined;
28942
+ guest_acs_entrance_ids?: string[] | undefined;
28943
+ common_acs_entrance_ids?: string[] | undefined;
28944
+ is_valid?: boolean | undefined;
28945
+ card_id?: string | undefined;
28946
+ credential_id?: string | undefined;
28947
+ } | undefined;
28948
+ assa_abloy_vostio_metadata?: {
28949
+ key_id?: string | undefined;
28950
+ endpoint_id?: string | undefined;
28951
+ auto_join?: boolean | undefined;
28952
+ override_guest_acs_entrance_ids?: string[] | undefined;
28953
+ key_issuing_request_id?: string | undefined;
28954
+ door_names?: string[] | undefined;
28955
+ } | undefined;
28956
+ is_one_time_use?: boolean | undefined;
28957
+ user_identity_id?: string | undefined;
28958
+ issued_at?: string | null | undefined;
28959
+ is_issued?: boolean | undefined;
28960
+ acs_user_id?: string | undefined;
28961
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
28962
+ external_type_display_name?: string | undefined;
28963
+ acs_credential_pool_id?: string | undefined;
28964
+ parent_acs_credential_id?: string | undefined;
28965
+ card_number?: string | null | undefined;
28966
+ is_multi_phone_sync_credential?: boolean | undefined;
28967
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
28968
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
28969
+ };
28970
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
28971
+ } | {
28972
+ status: "error";
28973
+ action_attempt_id: string;
28974
+ error: {
28975
+ message: string;
28976
+ type: "uncategorized_error";
28977
+ } | {
28978
+ message: string;
28979
+ type: "action_attempt_expired";
28980
+ } | {
28981
+ message: string;
28982
+ type: "no_credential_on_encoder";
28983
+ };
28984
+ result: null;
28985
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
28329
28986
  } | {
28330
28987
  status: "pending";
28331
28988
  action_attempt_id: string;
@@ -33344,6 +34001,105 @@ export declare const batch: z.ZodObject<{
33344
34001
  };
33345
34002
  result: null;
33346
34003
  action_type: "SCAN_CREDENTIAL";
34004
+ } | {
34005
+ status: "pending";
34006
+ action_attempt_id: string;
34007
+ error: null;
34008
+ result: null;
34009
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
34010
+ } | {
34011
+ status: "success";
34012
+ action_attempt_id: string;
34013
+ error: null;
34014
+ result: {
34015
+ display_name: string;
34016
+ workspace_id: string;
34017
+ created_at: string;
34018
+ errors: {
34019
+ message: string;
34020
+ error_code: string;
34021
+ }[];
34022
+ connected_account_id: string;
34023
+ warnings: ({
34024
+ message: string;
34025
+ created_at: string;
34026
+ warning_code: "waiting_to_be_issued";
34027
+ } | {
34028
+ message: string;
34029
+ created_at: string;
34030
+ warning_code: "schedule_externally_modified";
34031
+ } | {
34032
+ message: string;
34033
+ created_at: string;
34034
+ warning_code: "schedule_modified";
34035
+ } | {
34036
+ message: string;
34037
+ created_at: string;
34038
+ warning_code: "being_deleted";
34039
+ } | {
34040
+ message: string;
34041
+ created_at: string;
34042
+ warning_code: "unknown_issue_with_acs_credential";
34043
+ } | {
34044
+ message: string;
34045
+ created_at: string;
34046
+ warning_code: "needs_to_be_reissued";
34047
+ })[];
34048
+ is_managed: true;
34049
+ acs_system_id: string;
34050
+ acs_credential_id: string;
34051
+ access_method: "code" | "card" | "mobile_key" | "cloud_key";
34052
+ code?: string | null | undefined;
34053
+ starts_at?: string | undefined;
34054
+ ends_at?: string | undefined;
34055
+ visionline_metadata?: {
34056
+ card_function_type: "guest" | "staff";
34057
+ auto_join?: boolean | undefined;
34058
+ joiner_acs_credential_ids?: string[] | undefined;
34059
+ guest_acs_entrance_ids?: string[] | undefined;
34060
+ common_acs_entrance_ids?: string[] | undefined;
34061
+ is_valid?: boolean | undefined;
34062
+ card_id?: string | undefined;
34063
+ credential_id?: string | undefined;
34064
+ } | undefined;
34065
+ assa_abloy_vostio_metadata?: {
34066
+ key_id?: string | undefined;
34067
+ endpoint_id?: string | undefined;
34068
+ auto_join?: boolean | undefined;
34069
+ override_guest_acs_entrance_ids?: string[] | undefined;
34070
+ key_issuing_request_id?: string | undefined;
34071
+ door_names?: string[] | undefined;
34072
+ } | undefined;
34073
+ is_one_time_use?: boolean | undefined;
34074
+ user_identity_id?: string | undefined;
34075
+ issued_at?: string | null | undefined;
34076
+ is_issued?: boolean | undefined;
34077
+ acs_user_id?: string | undefined;
34078
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | "salto_ks_tag" | "avigilon_alta_credential" | undefined;
34079
+ external_type_display_name?: string | undefined;
34080
+ acs_credential_pool_id?: string | undefined;
34081
+ parent_acs_credential_id?: string | undefined;
34082
+ card_number?: string | null | undefined;
34083
+ is_multi_phone_sync_credential?: boolean | undefined;
34084
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
34085
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
34086
+ };
34087
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
34088
+ } | {
34089
+ status: "error";
34090
+ action_attempt_id: string;
34091
+ error: {
34092
+ message: string;
34093
+ type: "uncategorized_error";
34094
+ } | {
34095
+ message: string;
34096
+ type: "action_attempt_expired";
34097
+ } | {
34098
+ message: string;
34099
+ type: "no_credential_on_encoder";
34100
+ };
34101
+ result: null;
34102
+ action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
33347
34103
  } | {
33348
34104
  status: "pending";
33349
34105
  action_attempt_id: string;