import { z } from 'zod';
import { CredentialType } from '@bubblelab/shared-schemas';
export declare const SortlyItemSchema: z.ZodObject<{
    id: z.ZodNumber;
    name: z.ZodString;
    notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    type: z.ZodEnum<["item", "folder"]>;
    parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodNumber;
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        url: string;
        id: number;
    }, {
        url: string;
        id: number;
    }>, "many">>>;
    custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodNumber;
        custom_field_id: z.ZodNumber;
        value: z.ZodUnknown;
    }, "strip", z.ZodTypeAny, {
        id: number;
        custom_field_id: number;
        value?: unknown;
    }, {
        id: number;
        custom_field_id: number;
        value?: unknown;
    }>, "many">>>;
    created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    type: "folder" | "item";
    name: string;
    id: number;
    created_at?: string | null | undefined;
    price?: string | null | undefined;
    notes?: string | null | undefined;
    updated_at?: string | null | undefined;
    parent_id?: number | null | undefined;
    quantity?: number | null | undefined;
    min_quantity?: number | null | undefined;
    sid?: string | null | undefined;
    tag_names?: string[] | null | undefined;
    photos?: {
        url: string;
        id: number;
    }[] | null | undefined;
    custom_attribute_values?: {
        id: number;
        custom_field_id: number;
        value?: unknown;
    }[] | null | undefined;
}, {
    type: "folder" | "item";
    name: string;
    id: number;
    created_at?: string | null | undefined;
    price?: string | null | undefined;
    notes?: string | null | undefined;
    updated_at?: string | null | undefined;
    parent_id?: number | null | undefined;
    quantity?: number | null | undefined;
    min_quantity?: number | null | undefined;
    sid?: string | null | undefined;
    tag_names?: string[] | null | undefined;
    photos?: {
        url: string;
        id: number;
    }[] | null | undefined;
    custom_attribute_values?: {
        id: number;
        custom_field_id: number;
        value?: unknown;
    }[] | null | undefined;
}>;
export declare const SortlyCustomFieldSchema: z.ZodObject<{
    id: z.ZodNumber;
    name: z.ZodString;
    type: z.ZodString;
}, "strip", z.ZodTypeAny, {
    type: string;
    name: string;
    id: number;
}, {
    type: string;
    name: string;
    id: number;
}>;
export declare const SortlyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
    operation: z.ZodLiteral<"list_items">;
    folder_id: z.ZodOptional<z.ZodNumber>;
    page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
    per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "list_items";
    page: number;
    per_page: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    folder_id?: number | undefined;
}, {
    operation: "list_items";
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    folder_id?: number | undefined;
    page?: number | undefined;
    per_page?: number | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"get_item">;
    item_id: z.ZodNumber;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "get_item";
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}, {
    operation: "get_item";
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"create_item">;
    name: z.ZodString;
    type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["item", "folder"]>>>;
    notes: z.ZodOptional<z.ZodString>;
    price: z.ZodOptional<z.ZodString>;
    quantity: z.ZodOptional<z.ZodNumber>;
    min_quantity: z.ZodOptional<z.ZodNumber>;
    parent_id: z.ZodOptional<z.ZodNumber>;
    sid: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    type: "folder" | "item";
    name: string;
    operation: "create_item";
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    tags?: string[] | undefined;
    price?: string | undefined;
    notes?: string | undefined;
    parent_id?: number | undefined;
    quantity?: number | undefined;
    min_quantity?: number | undefined;
    sid?: string | undefined;
}, {
    name: string;
    operation: "create_item";
    type?: "folder" | "item" | undefined;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    tags?: string[] | undefined;
    price?: string | undefined;
    notes?: string | undefined;
    parent_id?: number | undefined;
    quantity?: number | undefined;
    min_quantity?: number | undefined;
    sid?: string | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"update_item">;
    item_id: z.ZodNumber;
    name: z.ZodOptional<z.ZodString>;
    notes: z.ZodOptional<z.ZodString>;
    price: z.ZodOptional<z.ZodString>;
    quantity: z.ZodOptional<z.ZodNumber>;
    min_quantity: z.ZodOptional<z.ZodNumber>;
    sid: z.ZodOptional<z.ZodString>;
    tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "update_item";
    item_id: number;
    name?: string | undefined;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    tags?: string[] | undefined;
    price?: string | undefined;
    notes?: string | undefined;
    quantity?: number | undefined;
    min_quantity?: number | undefined;
    sid?: string | undefined;
}, {
    operation: "update_item";
    item_id: number;
    name?: string | undefined;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    tags?: string[] | undefined;
    price?: string | undefined;
    notes?: string | undefined;
    quantity?: number | undefined;
    min_quantity?: number | undefined;
    sid?: string | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"delete_item">;
    item_id: z.ZodNumber;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "delete_item";
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}, {
    operation: "delete_item";
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"search_items">;
    name: z.ZodString;
    type: z.ZodOptional<z.ZodEnum<["item", "folder"]>>;
    page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
    per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    name: string;
    operation: "search_items";
    page: number;
    per_page: number;
    type?: "folder" | "item" | undefined;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}, {
    name: string;
    operation: "search_items";
    type?: "folder" | "item" | undefined;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    page?: number | undefined;
    per_page?: number | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"move_item">;
    item_id: z.ZodNumber;
    folder_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    quantity: z.ZodNumber;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "move_item";
    quantity: number;
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    folder_id?: number | null | undefined;
}, {
    operation: "move_item";
    quantity: number;
    item_id: number;
    credentials?: Partial<Record<CredentialType, string>> | undefined;
    folder_id?: number | null | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"list_custom_fields">;
    credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    operation: "list_custom_fields";
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}, {
    operation: "list_custom_fields";
    credentials?: Partial<Record<CredentialType, string>> | undefined;
}>]>;
export declare const SortlyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
    operation: z.ZodLiteral<"list_items">;
    success: z.ZodBoolean;
    items: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>, "many">>;
    page: z.ZodOptional<z.ZodNumber>;
    per_page: z.ZodOptional<z.ZodNumber>;
    total: z.ZodOptional<z.ZodNumber>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "list_items";
    items?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }[] | undefined;
    page?: number | undefined;
    total?: number | undefined;
    per_page?: number | undefined;
}, {
    error: string;
    success: boolean;
    operation: "list_items";
    items?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }[] | undefined;
    page?: number | undefined;
    total?: number | undefined;
    per_page?: number | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"get_item">;
    success: z.ZodBoolean;
    item: z.ZodOptional<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "get_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}, {
    error: string;
    success: boolean;
    operation: "get_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"create_item">;
    success: z.ZodBoolean;
    item: z.ZodOptional<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "create_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}, {
    error: string;
    success: boolean;
    operation: "create_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"update_item">;
    success: z.ZodBoolean;
    item: z.ZodOptional<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "update_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}, {
    error: string;
    success: boolean;
    operation: "update_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"delete_item">;
    success: z.ZodBoolean;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "delete_item";
}, {
    error: string;
    success: boolean;
    operation: "delete_item";
}>, z.ZodObject<{
    operation: z.ZodLiteral<"search_items">;
    success: z.ZodBoolean;
    items: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>, "many">>;
    page: z.ZodOptional<z.ZodNumber>;
    per_page: z.ZodOptional<z.ZodNumber>;
    total: z.ZodOptional<z.ZodNumber>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "search_items";
    items?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }[] | undefined;
    page?: number | undefined;
    total?: number | undefined;
    per_page?: number | undefined;
}, {
    error: string;
    success: boolean;
    operation: "search_items";
    items?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }[] | undefined;
    page?: number | undefined;
    total?: number | undefined;
    per_page?: number | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"move_item">;
    success: z.ZodBoolean;
    item: z.ZodOptional<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        min_quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        type: z.ZodEnum<["item", "folder"]>;
        parent_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
        sid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        tag_names: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
        photos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
            id: number;
        }, {
            url: string;
            id: number;
        }>, "many">>>;
        custom_attribute_values: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodNumber;
            custom_field_id: z.ZodNumber;
            value: z.ZodUnknown;
        }, "strip", z.ZodTypeAny, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }, {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }>, "many">>>;
        created_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
        updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
    }, "strip", z.ZodTypeAny, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }, {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    }>>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "move_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}, {
    error: string;
    success: boolean;
    operation: "move_item";
    item?: {
        type: "folder" | "item";
        name: string;
        id: number;
        created_at?: string | null | undefined;
        price?: string | null | undefined;
        notes?: string | null | undefined;
        updated_at?: string | null | undefined;
        parent_id?: number | null | undefined;
        quantity?: number | null | undefined;
        min_quantity?: number | null | undefined;
        sid?: string | null | undefined;
        tag_names?: string[] | null | undefined;
        photos?: {
            url: string;
            id: number;
        }[] | null | undefined;
        custom_attribute_values?: {
            id: number;
            custom_field_id: number;
            value?: unknown;
        }[] | null | undefined;
    } | undefined;
}>, z.ZodObject<{
    operation: z.ZodLiteral<"list_custom_fields">;
    success: z.ZodBoolean;
    custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodNumber;
        name: z.ZodString;
        type: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        type: string;
        name: string;
        id: number;
    }, {
        type: string;
        name: string;
        id: number;
    }>, "many">>;
    error: z.ZodString;
}, "strip", z.ZodTypeAny, {
    error: string;
    success: boolean;
    operation: "list_custom_fields";
    custom_fields?: {
        type: string;
        name: string;
        id: number;
    }[] | undefined;
}, {
    error: string;
    success: boolean;
    operation: "list_custom_fields";
    custom_fields?: {
        type: string;
        name: string;
        id: number;
    }[] | undefined;
}>]>;
export type SortlyParamsInput = z.input<typeof SortlyParamsSchema>;
export type SortlyParams = z.output<typeof SortlyParamsSchema>;
export type SortlyResult = z.output<typeof SortlyResultSchema>;
export type SortlyItem = z.output<typeof SortlyItemSchema>;
export type SortlyCustomField = z.output<typeof SortlyCustomFieldSchema>;
export type SortlyListItemsParams = Extract<SortlyParams, {
    operation: 'list_items';
}>;
export type SortlyGetItemParams = Extract<SortlyParams, {
    operation: 'get_item';
}>;
export type SortlyCreateItemParams = Extract<SortlyParams, {
    operation: 'create_item';
}>;
export type SortlyUpdateItemParams = Extract<SortlyParams, {
    operation: 'update_item';
}>;
export type SortlyDeleteItemParams = Extract<SortlyParams, {
    operation: 'delete_item';
}>;
export type SortlySearchItemsParams = Extract<SortlyParams, {
    operation: 'search_items';
}>;
export type SortlyMoveItemParams = Extract<SortlyParams, {
    operation: 'move_item';
}>;
export type SortlyListCustomFieldsParams = Extract<SortlyParams, {
    operation: 'list_custom_fields';
}>;
//# sourceMappingURL=sortly.schema.d.ts.map