@seamapi/types - v1.461.0
    Preparing search index...

    Variable acs_userConst

    acs_user: ZodObject<
        {
            access_schedule: ZodOptional<
                ZodObject<
                    { ends_at: ZodNullable<ZodString>; starts_at: ZodString },
                    "strip",
                    ZodTypeAny,
                    { ends_at: null | string; starts_at: string },
                    { ends_at: null | string; starts_at: string },
                >,
            >;
            acs_system_id: ZodString;
            acs_user_id: ZodString;
            connected_account_id: ZodString;
            created_at: ZodString;
            display_name: ZodString;
            errors: ZodArray<
                ZodDiscriminatedUnion<
                    "error_code",
                    [
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                error_code: ZodLiteral<"deleted_externally">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                error_code: "deleted_externally";
                                message: string;
                            },
                            {
                                created_at: string;
                                error_code: "deleted_externally";
                                message: string;
                            },
                        >,
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                error_code: ZodLiteral<"salto_ks_subscription_limit_exceeded">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                error_code: "salto_ks_subscription_limit_exceeded";
                                message: string;
                            },
                            {
                                created_at: string;
                                error_code: "salto_ks_subscription_limit_exceeded";
                                message: string;
                            },
                        >,
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                error_code: ZodLiteral<"failed_to_create_on_acs_system">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                error_code: "failed_to_create_on_acs_system";
                                message: string;
                            },
                            {
                                created_at: string;
                                error_code: "failed_to_create_on_acs_system";
                                message: string;
                            },
                        >,
                    ],
                >,
                "many",
            >;
            external_type: ZodOptional<
                ZodEnum<
                    [
                        "pti_user",
                        "brivo_user",
                        "hid_credential_manager_user",
                        "salto_site_user",
                        "latch_user",
                        "dormakaba_community_user",
                        "salto_space_user",
                    ],
                >,
            >;
            external_type_display_name: ZodOptional<ZodString>;
            hid_acs_system_id: ZodOptional<ZodString>;
            is_suspended: ZodOptional<ZodBoolean>;
            last_successful_sync_at: ZodNullable<ZodString>;
            pending_mutations: ZodOptional<
                ZodArray<
                    ZodDiscriminatedUnion<
                        "mutation_code",
                        [
                            ZodObject<
                                { created_at: ZodString; message: ZodString } & {
                                    mutation_code: ZodLiteral<(...)>;
                                },
                                "strip",
                                ZodTypeAny,
                                { created_at: string; message: string; mutation_code: "creating" },
                                { created_at: string; message: string; mutation_code: "creating" },
                            >,
                            ZodObject<
                                { created_at: ZodString; message: ZodString } & {
                                    mutation_code: ZodLiteral<(...)>;
                                },
                                "strip",
                                ZodTypeAny,
                                { created_at: string; message: string; mutation_code: "deleting" },
                                { created_at: string; message: string; mutation_code: "deleting" },
                            >,
                            ZodObject<
                                { created_at: ZodString; message: ZodString } & {
                                    from: ZodObject<(...), (...), (...), (...), (...)>;
                                    mutation_code: ZodLiteral<(...)>;
                                    to: ZodObject<(...), (...), (...), (...), (...)>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    created_at: string;
                                    from: {
                                        email_address?: (...)
                                        | (...)
                                        | (...);
                                        full_name?: (...) | (...) | (...);
                                        phone_number?: (...) | (...) | (...);
                                    };
                                    message: string;
                                    mutation_code: "updating_user_information";
                                    to: {
                                        email_address?: (...)
                                        | (...)
                                        | (...);
                                        full_name?: (...) | (...) | (...);
                                        phone_number?: (...) | (...) | (...);
                                    };
                                },
                                {
                                    created_at: string;
                                    from: {
                                        email_address?: (...)
                                        | (...)
                                        | (...);
                                        full_name?: (...) | (...) | (...);
                                        phone_number?: (...) | (...) | (...);
                                    };
                                    message: string;
                                    mutation_code: "updating_user_information";
                                    to: {
                                        email_address?: (...)
                                        | (...)
                                        | (...);
                                        full_name?: (...) | (...) | (...);
                                        phone_number?: (...) | (...) | (...);
                                    };
                                },
                            >,
                        ],
                    >,
                    "many",
                >,
            >;
            user_identity_email_address: ZodOptional<ZodNullable<ZodString>>;
            user_identity_full_name: ZodOptional<ZodNullable<ZodString>>;
            user_identity_id: ZodOptional<ZodString>;
            user_identity_phone_number: ZodOptional<ZodNullable<ZodString>>;
            warnings: ZodArray<
                ZodDiscriminatedUnion<
                    "warning_code",
                    [
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                warning_code: ZodLiteral<"being_deleted">;
                            },
                            "strip",
                            ZodTypeAny,
                            { created_at: string; message: string; warning_code: "being_deleted" },
                            { created_at: string; message: string; warning_code: "being_deleted" },
                        >,
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                warning_code: ZodLiteral<"salto_ks_user_not_subscribed">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                message: string;
                                warning_code: "salto_ks_user_not_subscribed";
                            },
                            {
                                created_at: string;
                                message: string;
                                warning_code: "salto_ks_user_not_subscribed";
                            },
                        >,
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                warning_code: ZodLiteral<"unknown_issue_with_acs_user">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                message: string;
                                warning_code: "unknown_issue_with_acs_user";
                            },
                            {
                                created_at: string;
                                message: string;
                                warning_code: "unknown_issue_with_acs_user";
                            },
                        >,
                        ZodObject<
                            { created_at: ZodString; message: ZodString } & {
                                warning_code: ZodLiteral<"latch_resident_user">;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                created_at: string;
                                message: string;
                                warning_code: "latch_resident_user";
                            },
                            {
                                created_at: string;
                                message: string;
                                warning_code: "latch_resident_user";
                            },
                        >,
                    ],
                >,
                "many",
            >;
            workspace_id: ZodString;
        } & {
            email: ZodOptional<ZodString>;
            email_address: ZodOptional<ZodString>;
            full_name: ZodOptional<ZodString>;
            phone_number: ZodOptional<ZodEffects<ZodString, string, string>>;
        } & { is_managed: ZodLiteral<true> },
        "strip",
        ZodTypeAny,
        {
            access_schedule?: { ends_at: null | string; starts_at: string };
            acs_system_id: string;
            acs_user_id: string;
            connected_account_id: string;
            created_at: string;
            display_name: string;
            email?: string;
            email_address?: string;
            errors: (
                | {
                    created_at: string;
                    error_code: "deleted_externally";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "salto_ks_subscription_limit_exceeded";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_create_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_update_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_delete_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "latch_conflict_with_resident_user";
                    message: string;
                }
            )[];
            external_type?: | "pti_user"
            | "brivo_user"
            | "hid_credential_manager_user"
            | "salto_site_user"
            | "latch_user"
            | "dormakaba_community_user"
            | "salto_space_user";
            external_type_display_name?: string;
            full_name?: string;
            hid_acs_system_id?: string;
            is_managed: true;
            is_suspended?: boolean;
            last_successful_sync_at: null
            | string;
            pending_mutations?: (
                | { created_at: string; message: string; mutation_code: "creating" }
                | { created_at: string; message: string; mutation_code: "deleting" }
                | {
                    created_at: string;
                    from: {
                        email_address?: null | string;
                        full_name?: null | string;
                        phone_number?: null | string;
                    };
                    message: string;
                    mutation_code: "updating_user_information";
                    to: {
                        email_address?: null
                        | string;
                        full_name?: null | string;
                        phone_number?: null | string;
                    };
                }
                | {
                    created_at: string;
                    from: { ends_at: null
                    | string; starts_at: null | string };
                    message: string;
                    mutation_code: "updating_access_schedule";
                    to: { ends_at: null | string; starts_at: null | string };
                }
                | {
                    created_at: string;
                    from: { is_suspended: boolean };
                    message: string;
                    mutation_code: "updating_suspension_state";
                    to: { is_suspended: boolean };
                }
                | {
                    created_at: string;
                    from: { acs_access_group_id: null
                    | string };
                    message: string;
                    mutation_code: "updating_group_membership";
                    to: { acs_access_group_id: null | string };
                }
            )[];
            phone_number?: string;
            user_identity_email_address?: null
            | string;
            user_identity_full_name?: null | string;
            user_identity_id?: string;
            user_identity_phone_number?: null | string;
            warnings: (
                | {
                    created_at: string;
                    message: string;
                    warning_code: "being_deleted";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "salto_ks_user_not_subscribed";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "unknown_issue_with_acs_user";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "latch_resident_user";
                }
            )[];
            workspace_id: string;
        },
        {
            access_schedule?: { ends_at: null
            | string; starts_at: string };
            acs_system_id: string;
            acs_user_id: string;
            connected_account_id: string;
            created_at: string;
            display_name: string;
            email?: string;
            email_address?: string;
            errors: (
                | {
                    created_at: string;
                    error_code: "deleted_externally";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "salto_ks_subscription_limit_exceeded";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_create_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_update_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "failed_to_delete_on_acs_system";
                    message: string;
                }
                | {
                    created_at: string;
                    error_code: "latch_conflict_with_resident_user";
                    message: string;
                }
            )[];
            external_type?: | "pti_user"
            | "brivo_user"
            | "hid_credential_manager_user"
            | "salto_site_user"
            | "latch_user"
            | "dormakaba_community_user"
            | "salto_space_user";
            external_type_display_name?: string;
            full_name?: string;
            hid_acs_system_id?: string;
            is_managed: true;
            is_suspended?: boolean;
            last_successful_sync_at: null
            | string;
            pending_mutations?: (
                | { created_at: string; message: string; mutation_code: "creating" }
                | { created_at: string; message: string; mutation_code: "deleting" }
                | {
                    created_at: string;
                    from: {
                        email_address?: null | string;
                        full_name?: null | string;
                        phone_number?: null | string;
                    };
                    message: string;
                    mutation_code: "updating_user_information";
                    to: {
                        email_address?: null
                        | string;
                        full_name?: null | string;
                        phone_number?: null | string;
                    };
                }
                | {
                    created_at: string;
                    from: { ends_at: null
                    | string; starts_at: null | string };
                    message: string;
                    mutation_code: "updating_access_schedule";
                    to: { ends_at: null | string; starts_at: null | string };
                }
                | {
                    created_at: string;
                    from: { is_suspended: boolean };
                    message: string;
                    mutation_code: "updating_suspension_state";
                    to: { is_suspended: boolean };
                }
                | {
                    created_at: string;
                    from: { acs_access_group_id: null
                    | string };
                    message: string;
                    mutation_code: "updating_group_membership";
                    to: { acs_access_group_id: null | string };
                }
            )[];
            phone_number?: string;
            user_identity_email_address?: null
            | string;
            user_identity_full_name?: null | string;
            user_identity_id?: string;
            user_identity_phone_number?: null | string;
            warnings: (
                | {
                    created_at: string;
                    message: string;
                    warning_code: "being_deleted";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "salto_ks_user_not_subscribed";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "unknown_issue_with_acs_user";
                }
                | {
                    created_at: string;
                    message: string;
                    warning_code: "latch_resident_user";
                }
            )[];
            workspace_id: string;
        },
    > = ...