@seamapi/types 1.851.0 → 1.853.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.
- package/dist/connect.cjs +729 -60
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +8858 -470
- package/dist/index.cjs +729 -60
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +558 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-to-assign-credential.d.ts +561 -0
- package/lib/seam/connect/models/action-attempts/scan-to-assign-credential.js +38 -0
- package/lib/seam/connect/models/action-attempts/scan-to-assign-credential.js.map +1 -0
- package/lib/seam/connect/models/batch.d.ts +953 -117
- package/lib/seam/connect/models/devices/device-metadata.d.ts +28 -0
- package/lib/seam/connect/models/devices/device-metadata.js +12 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -0
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
- package/lib/seam/connect/models/devices/device-type.js +1 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +43 -3
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -3
- package/lib/seam/connect/openapi.js +621 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7379 -454
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/scan-to-assign-credential.ts +69 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +15 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +709 -0
- package/src/lib/seam/connect/route-types.ts +8322 -0
|
@@ -2842,6 +2842,564 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2842
2842
|
status: z.ZodLiteral<"pending">;
|
|
2843
2843
|
result: z.ZodNull;
|
|
2844
2844
|
error: z.ZodNull;
|
|
2845
|
+
} & {
|
|
2846
|
+
action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
|
|
2847
|
+
}, "strip", z.ZodTypeAny, {
|
|
2848
|
+
status: "pending";
|
|
2849
|
+
action_attempt_id: string;
|
|
2850
|
+
error: null;
|
|
2851
|
+
result: null;
|
|
2852
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
2853
|
+
}, {
|
|
2854
|
+
status: "pending";
|
|
2855
|
+
action_attempt_id: string;
|
|
2856
|
+
error: null;
|
|
2857
|
+
result: null;
|
|
2858
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
2859
|
+
}>, z.ZodObject<{
|
|
2860
|
+
action_attempt_id: z.ZodString;
|
|
2861
|
+
} & {
|
|
2862
|
+
status: z.ZodLiteral<"success">;
|
|
2863
|
+
error: z.ZodNull;
|
|
2864
|
+
} & {
|
|
2865
|
+
action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
|
|
2866
|
+
result: z.ZodObject<{
|
|
2867
|
+
acs_credential_id: z.ZodString;
|
|
2868
|
+
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
2869
|
+
user_identity_id: z.ZodOptional<z.ZodString>;
|
|
2870
|
+
connected_account_id: z.ZodString;
|
|
2871
|
+
acs_credential_pool_id: z.ZodOptional<z.ZodString>;
|
|
2872
|
+
acs_system_id: z.ZodString;
|
|
2873
|
+
parent_acs_credential_id: z.ZodOptional<z.ZodString>;
|
|
2874
|
+
display_name: z.ZodString;
|
|
2875
|
+
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2876
|
+
is_one_time_use: z.ZodOptional<z.ZodBoolean>;
|
|
2877
|
+
card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2878
|
+
is_issued: z.ZodOptional<z.ZodBoolean>;
|
|
2879
|
+
issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2880
|
+
access_method: z.ZodEnum<["code", "card", "mobile_key", "cloud_key"]>;
|
|
2881
|
+
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"]>>;
|
|
2882
|
+
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
created_at: z.ZodString;
|
|
2884
|
+
workspace_id: z.ZodString;
|
|
2885
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
2887
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2888
|
+
error_code: z.ZodString;
|
|
2889
|
+
message: z.ZodString;
|
|
2890
|
+
}, "strip", z.ZodTypeAny, {
|
|
2891
|
+
message: string;
|
|
2892
|
+
error_code: string;
|
|
2893
|
+
}, {
|
|
2894
|
+
message: string;
|
|
2895
|
+
error_code: string;
|
|
2896
|
+
}>, "many">;
|
|
2897
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
2898
|
+
created_at: z.ZodString;
|
|
2899
|
+
message: z.ZodString;
|
|
2900
|
+
} & {
|
|
2901
|
+
warning_code: z.ZodLiteral<"waiting_to_be_issued">;
|
|
2902
|
+
}, "strip", z.ZodTypeAny, {
|
|
2903
|
+
message: string;
|
|
2904
|
+
created_at: string;
|
|
2905
|
+
warning_code: "waiting_to_be_issued";
|
|
2906
|
+
}, {
|
|
2907
|
+
message: string;
|
|
2908
|
+
created_at: string;
|
|
2909
|
+
warning_code: "waiting_to_be_issued";
|
|
2910
|
+
}>, z.ZodObject<{
|
|
2911
|
+
created_at: z.ZodString;
|
|
2912
|
+
message: z.ZodString;
|
|
2913
|
+
} & {
|
|
2914
|
+
warning_code: z.ZodLiteral<"schedule_externally_modified">;
|
|
2915
|
+
}, "strip", z.ZodTypeAny, {
|
|
2916
|
+
message: string;
|
|
2917
|
+
created_at: string;
|
|
2918
|
+
warning_code: "schedule_externally_modified";
|
|
2919
|
+
}, {
|
|
2920
|
+
message: string;
|
|
2921
|
+
created_at: string;
|
|
2922
|
+
warning_code: "schedule_externally_modified";
|
|
2923
|
+
}>, z.ZodObject<{
|
|
2924
|
+
created_at: z.ZodString;
|
|
2925
|
+
message: z.ZodString;
|
|
2926
|
+
} & {
|
|
2927
|
+
warning_code: z.ZodLiteral<"schedule_modified">;
|
|
2928
|
+
}, "strip", z.ZodTypeAny, {
|
|
2929
|
+
message: string;
|
|
2930
|
+
created_at: string;
|
|
2931
|
+
warning_code: "schedule_modified";
|
|
2932
|
+
}, {
|
|
2933
|
+
message: string;
|
|
2934
|
+
created_at: string;
|
|
2935
|
+
warning_code: "schedule_modified";
|
|
2936
|
+
}>, z.ZodObject<{
|
|
2937
|
+
created_at: z.ZodString;
|
|
2938
|
+
message: z.ZodString;
|
|
2939
|
+
} & {
|
|
2940
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
2941
|
+
}, "strip", z.ZodTypeAny, {
|
|
2942
|
+
message: string;
|
|
2943
|
+
created_at: string;
|
|
2944
|
+
warning_code: "being_deleted";
|
|
2945
|
+
}, {
|
|
2946
|
+
message: string;
|
|
2947
|
+
created_at: string;
|
|
2948
|
+
warning_code: "being_deleted";
|
|
2949
|
+
}>, z.ZodObject<{
|
|
2950
|
+
created_at: z.ZodString;
|
|
2951
|
+
message: z.ZodString;
|
|
2952
|
+
} & {
|
|
2953
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_acs_credential">;
|
|
2954
|
+
}, "strip", z.ZodTypeAny, {
|
|
2955
|
+
message: string;
|
|
2956
|
+
created_at: string;
|
|
2957
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
2958
|
+
}, {
|
|
2959
|
+
message: string;
|
|
2960
|
+
created_at: string;
|
|
2961
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
2962
|
+
}>, z.ZodObject<{
|
|
2963
|
+
created_at: z.ZodString;
|
|
2964
|
+
message: z.ZodString;
|
|
2965
|
+
} & {
|
|
2966
|
+
warning_code: z.ZodLiteral<"needs_to_be_reissued">;
|
|
2967
|
+
}, "strip", z.ZodTypeAny, {
|
|
2968
|
+
message: string;
|
|
2969
|
+
created_at: string;
|
|
2970
|
+
warning_code: "needs_to_be_reissued";
|
|
2971
|
+
}, {
|
|
2972
|
+
message: string;
|
|
2973
|
+
created_at: string;
|
|
2974
|
+
warning_code: "needs_to_be_reissued";
|
|
2975
|
+
}>]>, "many">;
|
|
2976
|
+
is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
|
|
2977
|
+
is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2978
|
+
latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2979
|
+
visionline_metadata: z.ZodOptional<z.ZodObject<{
|
|
2980
|
+
card_function_type: z.ZodEnum<["guest", "staff"]>;
|
|
2981
|
+
joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2982
|
+
guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2983
|
+
common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2984
|
+
is_valid: z.ZodOptional<z.ZodBoolean>;
|
|
2985
|
+
auto_join: z.ZodOptional<z.ZodBoolean>;
|
|
2986
|
+
card_id: z.ZodOptional<z.ZodString>;
|
|
2987
|
+
credential_id: z.ZodOptional<z.ZodString>;
|
|
2988
|
+
}, "strip", z.ZodTypeAny, {
|
|
2989
|
+
card_function_type: "guest" | "staff";
|
|
2990
|
+
auto_join?: boolean | undefined;
|
|
2991
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
2992
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
2993
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
2994
|
+
is_valid?: boolean | undefined;
|
|
2995
|
+
card_id?: string | undefined;
|
|
2996
|
+
credential_id?: string | undefined;
|
|
2997
|
+
}, {
|
|
2998
|
+
card_function_type: "guest" | "staff";
|
|
2999
|
+
auto_join?: boolean | undefined;
|
|
3000
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
3001
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
3002
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
3003
|
+
is_valid?: boolean | undefined;
|
|
3004
|
+
card_id?: string | undefined;
|
|
3005
|
+
credential_id?: string | undefined;
|
|
3006
|
+
}>>;
|
|
3007
|
+
assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
|
|
3008
|
+
auto_join: z.ZodOptional<z.ZodBoolean>;
|
|
3009
|
+
override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3010
|
+
key_id: z.ZodOptional<z.ZodString>;
|
|
3011
|
+
key_issuing_request_id: z.ZodOptional<z.ZodString>;
|
|
3012
|
+
door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3013
|
+
endpoint_id: z.ZodOptional<z.ZodString>;
|
|
3014
|
+
}, "strip", z.ZodTypeAny, {
|
|
3015
|
+
key_id?: string | undefined;
|
|
3016
|
+
endpoint_id?: string | undefined;
|
|
3017
|
+
auto_join?: boolean | undefined;
|
|
3018
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3019
|
+
key_issuing_request_id?: string | undefined;
|
|
3020
|
+
door_names?: string[] | undefined;
|
|
3021
|
+
}, {
|
|
3022
|
+
key_id?: string | undefined;
|
|
3023
|
+
endpoint_id?: string | undefined;
|
|
3024
|
+
auto_join?: boolean | undefined;
|
|
3025
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3026
|
+
key_issuing_request_id?: string | undefined;
|
|
3027
|
+
door_names?: string[] | undefined;
|
|
3028
|
+
}>>;
|
|
3029
|
+
} & {
|
|
3030
|
+
is_managed: z.ZodLiteral<true>;
|
|
3031
|
+
}, "strip", z.ZodTypeAny, {
|
|
3032
|
+
display_name: string;
|
|
3033
|
+
workspace_id: string;
|
|
3034
|
+
created_at: string;
|
|
3035
|
+
errors: {
|
|
3036
|
+
message: string;
|
|
3037
|
+
error_code: string;
|
|
3038
|
+
}[];
|
|
3039
|
+
connected_account_id: string;
|
|
3040
|
+
warnings: ({
|
|
3041
|
+
message: string;
|
|
3042
|
+
created_at: string;
|
|
3043
|
+
warning_code: "waiting_to_be_issued";
|
|
3044
|
+
} | {
|
|
3045
|
+
message: string;
|
|
3046
|
+
created_at: string;
|
|
3047
|
+
warning_code: "schedule_externally_modified";
|
|
3048
|
+
} | {
|
|
3049
|
+
message: string;
|
|
3050
|
+
created_at: string;
|
|
3051
|
+
warning_code: "schedule_modified";
|
|
3052
|
+
} | {
|
|
3053
|
+
message: string;
|
|
3054
|
+
created_at: string;
|
|
3055
|
+
warning_code: "being_deleted";
|
|
3056
|
+
} | {
|
|
3057
|
+
message: string;
|
|
3058
|
+
created_at: string;
|
|
3059
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
3060
|
+
} | {
|
|
3061
|
+
message: string;
|
|
3062
|
+
created_at: string;
|
|
3063
|
+
warning_code: "needs_to_be_reissued";
|
|
3064
|
+
})[];
|
|
3065
|
+
is_managed: true;
|
|
3066
|
+
acs_system_id: string;
|
|
3067
|
+
acs_credential_id: string;
|
|
3068
|
+
access_method: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3069
|
+
code?: string | null | undefined;
|
|
3070
|
+
starts_at?: string | undefined;
|
|
3071
|
+
ends_at?: string | undefined;
|
|
3072
|
+
visionline_metadata?: {
|
|
3073
|
+
card_function_type: "guest" | "staff";
|
|
3074
|
+
auto_join?: boolean | undefined;
|
|
3075
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
3076
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
3077
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
3078
|
+
is_valid?: boolean | undefined;
|
|
3079
|
+
card_id?: string | undefined;
|
|
3080
|
+
credential_id?: string | undefined;
|
|
3081
|
+
} | undefined;
|
|
3082
|
+
assa_abloy_vostio_metadata?: {
|
|
3083
|
+
key_id?: string | undefined;
|
|
3084
|
+
endpoint_id?: string | undefined;
|
|
3085
|
+
auto_join?: boolean | undefined;
|
|
3086
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3087
|
+
key_issuing_request_id?: string | undefined;
|
|
3088
|
+
door_names?: string[] | undefined;
|
|
3089
|
+
} | undefined;
|
|
3090
|
+
is_one_time_use?: boolean | undefined;
|
|
3091
|
+
user_identity_id?: string | undefined;
|
|
3092
|
+
issued_at?: string | null | undefined;
|
|
3093
|
+
is_issued?: boolean | undefined;
|
|
3094
|
+
acs_user_id?: string | undefined;
|
|
3095
|
+
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;
|
|
3096
|
+
external_type_display_name?: string | undefined;
|
|
3097
|
+
acs_credential_pool_id?: string | undefined;
|
|
3098
|
+
parent_acs_credential_id?: string | undefined;
|
|
3099
|
+
card_number?: string | null | undefined;
|
|
3100
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
3101
|
+
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
3102
|
+
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
3103
|
+
}, {
|
|
3104
|
+
display_name: string;
|
|
3105
|
+
workspace_id: string;
|
|
3106
|
+
created_at: string;
|
|
3107
|
+
errors: {
|
|
3108
|
+
message: string;
|
|
3109
|
+
error_code: string;
|
|
3110
|
+
}[];
|
|
3111
|
+
connected_account_id: string;
|
|
3112
|
+
warnings: ({
|
|
3113
|
+
message: string;
|
|
3114
|
+
created_at: string;
|
|
3115
|
+
warning_code: "waiting_to_be_issued";
|
|
3116
|
+
} | {
|
|
3117
|
+
message: string;
|
|
3118
|
+
created_at: string;
|
|
3119
|
+
warning_code: "schedule_externally_modified";
|
|
3120
|
+
} | {
|
|
3121
|
+
message: string;
|
|
3122
|
+
created_at: string;
|
|
3123
|
+
warning_code: "schedule_modified";
|
|
3124
|
+
} | {
|
|
3125
|
+
message: string;
|
|
3126
|
+
created_at: string;
|
|
3127
|
+
warning_code: "being_deleted";
|
|
3128
|
+
} | {
|
|
3129
|
+
message: string;
|
|
3130
|
+
created_at: string;
|
|
3131
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
3132
|
+
} | {
|
|
3133
|
+
message: string;
|
|
3134
|
+
created_at: string;
|
|
3135
|
+
warning_code: "needs_to_be_reissued";
|
|
3136
|
+
})[];
|
|
3137
|
+
is_managed: true;
|
|
3138
|
+
acs_system_id: string;
|
|
3139
|
+
acs_credential_id: string;
|
|
3140
|
+
access_method: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3141
|
+
code?: string | null | undefined;
|
|
3142
|
+
starts_at?: string | undefined;
|
|
3143
|
+
ends_at?: string | undefined;
|
|
3144
|
+
visionline_metadata?: {
|
|
3145
|
+
card_function_type: "guest" | "staff";
|
|
3146
|
+
auto_join?: boolean | undefined;
|
|
3147
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
3148
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
3149
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
3150
|
+
is_valid?: boolean | undefined;
|
|
3151
|
+
card_id?: string | undefined;
|
|
3152
|
+
credential_id?: string | undefined;
|
|
3153
|
+
} | undefined;
|
|
3154
|
+
assa_abloy_vostio_metadata?: {
|
|
3155
|
+
key_id?: string | undefined;
|
|
3156
|
+
endpoint_id?: string | undefined;
|
|
3157
|
+
auto_join?: boolean | undefined;
|
|
3158
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3159
|
+
key_issuing_request_id?: string | undefined;
|
|
3160
|
+
door_names?: string[] | undefined;
|
|
3161
|
+
} | undefined;
|
|
3162
|
+
is_one_time_use?: boolean | undefined;
|
|
3163
|
+
user_identity_id?: string | undefined;
|
|
3164
|
+
issued_at?: string | null | undefined;
|
|
3165
|
+
is_issued?: boolean | undefined;
|
|
3166
|
+
acs_user_id?: string | undefined;
|
|
3167
|
+
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;
|
|
3168
|
+
external_type_display_name?: string | undefined;
|
|
3169
|
+
acs_credential_pool_id?: string | undefined;
|
|
3170
|
+
parent_acs_credential_id?: string | undefined;
|
|
3171
|
+
card_number?: string | null | undefined;
|
|
3172
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
3173
|
+
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
3174
|
+
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
3175
|
+
}>;
|
|
3176
|
+
}, "strip", z.ZodTypeAny, {
|
|
3177
|
+
status: "success";
|
|
3178
|
+
action_attempt_id: string;
|
|
3179
|
+
error: null;
|
|
3180
|
+
result: {
|
|
3181
|
+
display_name: string;
|
|
3182
|
+
workspace_id: string;
|
|
3183
|
+
created_at: string;
|
|
3184
|
+
errors: {
|
|
3185
|
+
message: string;
|
|
3186
|
+
error_code: string;
|
|
3187
|
+
}[];
|
|
3188
|
+
connected_account_id: string;
|
|
3189
|
+
warnings: ({
|
|
3190
|
+
message: string;
|
|
3191
|
+
created_at: string;
|
|
3192
|
+
warning_code: "waiting_to_be_issued";
|
|
3193
|
+
} | {
|
|
3194
|
+
message: string;
|
|
3195
|
+
created_at: string;
|
|
3196
|
+
warning_code: "schedule_externally_modified";
|
|
3197
|
+
} | {
|
|
3198
|
+
message: string;
|
|
3199
|
+
created_at: string;
|
|
3200
|
+
warning_code: "schedule_modified";
|
|
3201
|
+
} | {
|
|
3202
|
+
message: string;
|
|
3203
|
+
created_at: string;
|
|
3204
|
+
warning_code: "being_deleted";
|
|
3205
|
+
} | {
|
|
3206
|
+
message: string;
|
|
3207
|
+
created_at: string;
|
|
3208
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
3209
|
+
} | {
|
|
3210
|
+
message: string;
|
|
3211
|
+
created_at: string;
|
|
3212
|
+
warning_code: "needs_to_be_reissued";
|
|
3213
|
+
})[];
|
|
3214
|
+
is_managed: true;
|
|
3215
|
+
acs_system_id: string;
|
|
3216
|
+
acs_credential_id: string;
|
|
3217
|
+
access_method: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3218
|
+
code?: string | null | undefined;
|
|
3219
|
+
starts_at?: string | undefined;
|
|
3220
|
+
ends_at?: string | undefined;
|
|
3221
|
+
visionline_metadata?: {
|
|
3222
|
+
card_function_type: "guest" | "staff";
|
|
3223
|
+
auto_join?: boolean | undefined;
|
|
3224
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
3225
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
3226
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
3227
|
+
is_valid?: boolean | undefined;
|
|
3228
|
+
card_id?: string | undefined;
|
|
3229
|
+
credential_id?: string | undefined;
|
|
3230
|
+
} | undefined;
|
|
3231
|
+
assa_abloy_vostio_metadata?: {
|
|
3232
|
+
key_id?: string | undefined;
|
|
3233
|
+
endpoint_id?: string | undefined;
|
|
3234
|
+
auto_join?: boolean | undefined;
|
|
3235
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3236
|
+
key_issuing_request_id?: string | undefined;
|
|
3237
|
+
door_names?: string[] | undefined;
|
|
3238
|
+
} | undefined;
|
|
3239
|
+
is_one_time_use?: boolean | undefined;
|
|
3240
|
+
user_identity_id?: string | undefined;
|
|
3241
|
+
issued_at?: string | null | undefined;
|
|
3242
|
+
is_issued?: boolean | undefined;
|
|
3243
|
+
acs_user_id?: string | undefined;
|
|
3244
|
+
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;
|
|
3245
|
+
external_type_display_name?: string | undefined;
|
|
3246
|
+
acs_credential_pool_id?: string | undefined;
|
|
3247
|
+
parent_acs_credential_id?: string | undefined;
|
|
3248
|
+
card_number?: string | null | undefined;
|
|
3249
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
3250
|
+
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
3251
|
+
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
3252
|
+
};
|
|
3253
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
3254
|
+
}, {
|
|
3255
|
+
status: "success";
|
|
3256
|
+
action_attempt_id: string;
|
|
3257
|
+
error: null;
|
|
3258
|
+
result: {
|
|
3259
|
+
display_name: string;
|
|
3260
|
+
workspace_id: string;
|
|
3261
|
+
created_at: string;
|
|
3262
|
+
errors: {
|
|
3263
|
+
message: string;
|
|
3264
|
+
error_code: string;
|
|
3265
|
+
}[];
|
|
3266
|
+
connected_account_id: string;
|
|
3267
|
+
warnings: ({
|
|
3268
|
+
message: string;
|
|
3269
|
+
created_at: string;
|
|
3270
|
+
warning_code: "waiting_to_be_issued";
|
|
3271
|
+
} | {
|
|
3272
|
+
message: string;
|
|
3273
|
+
created_at: string;
|
|
3274
|
+
warning_code: "schedule_externally_modified";
|
|
3275
|
+
} | {
|
|
3276
|
+
message: string;
|
|
3277
|
+
created_at: string;
|
|
3278
|
+
warning_code: "schedule_modified";
|
|
3279
|
+
} | {
|
|
3280
|
+
message: string;
|
|
3281
|
+
created_at: string;
|
|
3282
|
+
warning_code: "being_deleted";
|
|
3283
|
+
} | {
|
|
3284
|
+
message: string;
|
|
3285
|
+
created_at: string;
|
|
3286
|
+
warning_code: "unknown_issue_with_acs_credential";
|
|
3287
|
+
} | {
|
|
3288
|
+
message: string;
|
|
3289
|
+
created_at: string;
|
|
3290
|
+
warning_code: "needs_to_be_reissued";
|
|
3291
|
+
})[];
|
|
3292
|
+
is_managed: true;
|
|
3293
|
+
acs_system_id: string;
|
|
3294
|
+
acs_credential_id: string;
|
|
3295
|
+
access_method: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3296
|
+
code?: string | null | undefined;
|
|
3297
|
+
starts_at?: string | undefined;
|
|
3298
|
+
ends_at?: string | undefined;
|
|
3299
|
+
visionline_metadata?: {
|
|
3300
|
+
card_function_type: "guest" | "staff";
|
|
3301
|
+
auto_join?: boolean | undefined;
|
|
3302
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
3303
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
3304
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
3305
|
+
is_valid?: boolean | undefined;
|
|
3306
|
+
card_id?: string | undefined;
|
|
3307
|
+
credential_id?: string | undefined;
|
|
3308
|
+
} | undefined;
|
|
3309
|
+
assa_abloy_vostio_metadata?: {
|
|
3310
|
+
key_id?: string | undefined;
|
|
3311
|
+
endpoint_id?: string | undefined;
|
|
3312
|
+
auto_join?: boolean | undefined;
|
|
3313
|
+
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
3314
|
+
key_issuing_request_id?: string | undefined;
|
|
3315
|
+
door_names?: string[] | undefined;
|
|
3316
|
+
} | undefined;
|
|
3317
|
+
is_one_time_use?: boolean | undefined;
|
|
3318
|
+
user_identity_id?: string | undefined;
|
|
3319
|
+
issued_at?: string | null | undefined;
|
|
3320
|
+
is_issued?: boolean | undefined;
|
|
3321
|
+
acs_user_id?: string | undefined;
|
|
3322
|
+
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;
|
|
3323
|
+
external_type_display_name?: string | undefined;
|
|
3324
|
+
acs_credential_pool_id?: string | undefined;
|
|
3325
|
+
parent_acs_credential_id?: string | undefined;
|
|
3326
|
+
card_number?: string | null | undefined;
|
|
3327
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
3328
|
+
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
3329
|
+
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
3330
|
+
};
|
|
3331
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
3332
|
+
}>, z.ZodObject<{
|
|
3333
|
+
action_attempt_id: z.ZodString;
|
|
3334
|
+
} & {
|
|
3335
|
+
status: z.ZodLiteral<"error">;
|
|
3336
|
+
result: z.ZodNull;
|
|
3337
|
+
} & {
|
|
3338
|
+
action_type: z.ZodLiteral<"SCAN_TO_ASSIGN_CREDENTIAL">;
|
|
3339
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
3340
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
3341
|
+
message: z.ZodString;
|
|
3342
|
+
}, "strip", z.ZodTypeAny, {
|
|
3343
|
+
message: string;
|
|
3344
|
+
type: "uncategorized_error";
|
|
3345
|
+
}, {
|
|
3346
|
+
message: string;
|
|
3347
|
+
type: "uncategorized_error";
|
|
3348
|
+
}>, z.ZodObject<{
|
|
3349
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
3350
|
+
message: z.ZodString;
|
|
3351
|
+
}, "strip", z.ZodTypeAny, {
|
|
3352
|
+
message: string;
|
|
3353
|
+
type: "action_attempt_expired";
|
|
3354
|
+
}, {
|
|
3355
|
+
message: string;
|
|
3356
|
+
type: "action_attempt_expired";
|
|
3357
|
+
}>, z.ZodObject<{
|
|
3358
|
+
type: z.ZodLiteral<"no_credential_on_encoder">;
|
|
3359
|
+
message: z.ZodString;
|
|
3360
|
+
}, "strip", z.ZodTypeAny, {
|
|
3361
|
+
message: string;
|
|
3362
|
+
type: "no_credential_on_encoder";
|
|
3363
|
+
}, {
|
|
3364
|
+
message: string;
|
|
3365
|
+
type: "no_credential_on_encoder";
|
|
3366
|
+
}>]>;
|
|
3367
|
+
}, "strip", z.ZodTypeAny, {
|
|
3368
|
+
status: "error";
|
|
3369
|
+
action_attempt_id: string;
|
|
3370
|
+
error: {
|
|
3371
|
+
message: string;
|
|
3372
|
+
type: "uncategorized_error";
|
|
3373
|
+
} | {
|
|
3374
|
+
message: string;
|
|
3375
|
+
type: "action_attempt_expired";
|
|
3376
|
+
} | {
|
|
3377
|
+
message: string;
|
|
3378
|
+
type: "no_credential_on_encoder";
|
|
3379
|
+
};
|
|
3380
|
+
result: null;
|
|
3381
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
3382
|
+
}, {
|
|
3383
|
+
status: "error";
|
|
3384
|
+
action_attempt_id: string;
|
|
3385
|
+
error: {
|
|
3386
|
+
message: string;
|
|
3387
|
+
type: "uncategorized_error";
|
|
3388
|
+
} | {
|
|
3389
|
+
message: string;
|
|
3390
|
+
type: "action_attempt_expired";
|
|
3391
|
+
} | {
|
|
3392
|
+
message: string;
|
|
3393
|
+
type: "no_credential_on_encoder";
|
|
3394
|
+
};
|
|
3395
|
+
result: null;
|
|
3396
|
+
action_type: "SCAN_TO_ASSIGN_CREDENTIAL";
|
|
3397
|
+
}>, z.ZodObject<{
|
|
3398
|
+
action_attempt_id: z.ZodString;
|
|
3399
|
+
} & {
|
|
3400
|
+
status: z.ZodLiteral<"pending">;
|
|
3401
|
+
result: z.ZodNull;
|
|
3402
|
+
error: z.ZodNull;
|
|
2845
3403
|
} & {
|
|
2846
3404
|
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
2847
3405
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7,6 +7,7 @@ import { lock_door_action_attempt } from './lock-door.js';
|
|
|
7
7
|
import { push_thermostat_programs_action_attempt } from './push-thermostat-programs.js';
|
|
8
8
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
9
9
|
import { scan_credential_action_attempt } from './scan-credential.js';
|
|
10
|
+
import { scan_to_assign_credential_action_attempt } from './scan-to-assign-credential.js';
|
|
10
11
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
11
12
|
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js';
|
|
12
13
|
import { simulate_keypad_code_entry_action_attempt } from './simulate-keypad-code-entry.js';
|
|
@@ -17,6 +18,7 @@ export const action_attempt = z.union([
|
|
|
17
18
|
...unlock_door_action_attempt.options,
|
|
18
19
|
...scan_credential_action_attempt.options,
|
|
19
20
|
...encode_credential_action_attempt.options,
|
|
21
|
+
...scan_to_assign_credential_action_attempt.options,
|
|
20
22
|
...reset_sandbox_workspace_action_attempt.options,
|
|
21
23
|
...set_fan_mode_action_attempt.options,
|
|
22
24
|
...set_hvac_mode_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|