import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type ListChunksPaginatedRequestBody = {
    /**
     * Search query to find chunks by text content
     */
    q?: string | undefined;
    /**
     * Filter chunks by enabled status
     */
    enabled?: boolean | undefined;
    /**
     * Filter chunks by processing status
     */
    status?: string | undefined;
    limit?: number | undefined;
    page?: number | undefined;
};
export type ListChunksPaginatedRequest = {
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    /**
     * The unique identifier of the datasource.
     */
    datasourceId: string;
    requestBody?: ListChunksPaginatedRequestBody | undefined;
};
export declare const ListChunksPaginatedObject: {
    readonly List: "list";
};
export type ListChunksPaginatedObject = ClosedEnum<typeof ListChunksPaginatedObject>;
export type ListChunksPaginatedMetadata = string | number | boolean;
/**
 * The status of the chunk
 */
export declare const ListChunksPaginatedStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
/**
 * The status of the chunk
 */
export type ListChunksPaginatedStatus = ClosedEnum<typeof ListChunksPaginatedStatus>;
export type ListChunksPaginatedData = {
    /**
     * The unique identifier of the chunk
     */
    id: string;
    /**
     * The text content of the chunk
     */
    text: string;
    /**
     * Metadata of the chunk. Can include `page_number` or any other key-value pairs
     */
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
    /**
     * Whether the chunk is enabled
     */
    enabled: boolean;
    /**
     * The status of the chunk
     */
    status: ListChunksPaginatedStatus;
    /**
     * The date and time the chunk was created
     */
    created: string;
    /**
     * The date and time the chunk was updated
     */
    updated: string;
    /**
     * The unique identifier of the user who created the chunk
     */
    createdById?: string | null | undefined;
    /**
     * The unique identifier of the user who updated the chunk
     */
    updateById?: string | null | undefined;
};
/**
 * Chunks successfully retrieved
 */
export type ListChunksPaginatedResponseBody = {
    object: ListChunksPaginatedObject;
    data: Array<ListChunksPaginatedData>;
    hasMore: boolean;
};
/** @internal */
export declare const ListChunksPaginatedRequestBody$inboundSchema: z.ZodType<ListChunksPaginatedRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type ListChunksPaginatedRequestBody$Outbound = {
    q: string;
    enabled?: boolean | undefined;
    status?: string | undefined;
    limit: number;
    page: number;
};
/** @internal */
export declare const ListChunksPaginatedRequestBody$outboundSchema: z.ZodType<ListChunksPaginatedRequestBody$Outbound, z.ZodTypeDef, ListChunksPaginatedRequestBody>;
export declare function listChunksPaginatedRequestBodyToJSON(listChunksPaginatedRequestBody: ListChunksPaginatedRequestBody): string;
export declare function listChunksPaginatedRequestBodyFromJSON(jsonString: string): SafeParseResult<ListChunksPaginatedRequestBody, SDKValidationError>;
/** @internal */
export declare const ListChunksPaginatedRequest$inboundSchema: z.ZodType<ListChunksPaginatedRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type ListChunksPaginatedRequest$Outbound = {
    knowledge_id: string;
    datasource_id: string;
    RequestBody?: ListChunksPaginatedRequestBody$Outbound | undefined;
};
/** @internal */
export declare const ListChunksPaginatedRequest$outboundSchema: z.ZodType<ListChunksPaginatedRequest$Outbound, z.ZodTypeDef, ListChunksPaginatedRequest>;
export declare function listChunksPaginatedRequestToJSON(listChunksPaginatedRequest: ListChunksPaginatedRequest): string;
export declare function listChunksPaginatedRequestFromJSON(jsonString: string): SafeParseResult<ListChunksPaginatedRequest, SDKValidationError>;
/** @internal */
export declare const ListChunksPaginatedObject$inboundSchema: z.ZodNativeEnum<typeof ListChunksPaginatedObject>;
/** @internal */
export declare const ListChunksPaginatedObject$outboundSchema: z.ZodNativeEnum<typeof ListChunksPaginatedObject>;
/** @internal */
export declare const ListChunksPaginatedMetadata$inboundSchema: z.ZodType<ListChunksPaginatedMetadata, z.ZodTypeDef, unknown>;
/** @internal */
export type ListChunksPaginatedMetadata$Outbound = string | number | boolean;
/** @internal */
export declare const ListChunksPaginatedMetadata$outboundSchema: z.ZodType<ListChunksPaginatedMetadata$Outbound, z.ZodTypeDef, ListChunksPaginatedMetadata>;
export declare function listChunksPaginatedMetadataToJSON(listChunksPaginatedMetadata: ListChunksPaginatedMetadata): string;
export declare function listChunksPaginatedMetadataFromJSON(jsonString: string): SafeParseResult<ListChunksPaginatedMetadata, SDKValidationError>;
/** @internal */
export declare const ListChunksPaginatedStatus$inboundSchema: z.ZodNativeEnum<typeof ListChunksPaginatedStatus>;
/** @internal */
export declare const ListChunksPaginatedStatus$outboundSchema: z.ZodNativeEnum<typeof ListChunksPaginatedStatus>;
/** @internal */
export declare const ListChunksPaginatedData$inboundSchema: z.ZodType<ListChunksPaginatedData, z.ZodTypeDef, unknown>;
/** @internal */
export type ListChunksPaginatedData$Outbound = {
    _id: string;
    text: string;
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
    enabled: boolean;
    status: string;
    created: string;
    updated: string;
    created_by_id?: string | null | undefined;
    update_by_id?: string | null | undefined;
};
/** @internal */
export declare const ListChunksPaginatedData$outboundSchema: z.ZodType<ListChunksPaginatedData$Outbound, z.ZodTypeDef, ListChunksPaginatedData>;
export declare function listChunksPaginatedDataToJSON(listChunksPaginatedData: ListChunksPaginatedData): string;
export declare function listChunksPaginatedDataFromJSON(jsonString: string): SafeParseResult<ListChunksPaginatedData, SDKValidationError>;
/** @internal */
export declare const ListChunksPaginatedResponseBody$inboundSchema: z.ZodType<ListChunksPaginatedResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type ListChunksPaginatedResponseBody$Outbound = {
    object: string;
    data: Array<ListChunksPaginatedData$Outbound>;
    has_more: boolean;
};
/** @internal */
export declare const ListChunksPaginatedResponseBody$outboundSchema: z.ZodType<ListChunksPaginatedResponseBody$Outbound, z.ZodTypeDef, ListChunksPaginatedResponseBody>;
export declare function listChunksPaginatedResponseBodyToJSON(listChunksPaginatedResponseBody: ListChunksPaginatedResponseBody): string;
export declare function listChunksPaginatedResponseBodyFromJSON(jsonString: string): SafeParseResult<ListChunksPaginatedResponseBody, SDKValidationError>;
//# sourceMappingURL=listchunkspaginated.d.ts.map