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 declare const QueryParam2: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
export type QueryParam2 = ClosedEnum<typeof QueryParam2>;
export declare const QueryParam1: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
export type QueryParam1 = ClosedEnum<typeof QueryParam1>;
/**
 * Filter chunks by status.
 */
export type QueryParamStatus = Array<QueryParam1> | QueryParam2;
export type ListChunksRequest = {
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    /**
     * The unique identifier of the datasource.
     */
    datasourceId: string;
    /**
     * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
     */
    limit?: number | undefined;
    /**
     * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
     */
    startingAfter?: string | undefined;
    /**
     * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
     */
    endingBefore?: string | undefined;
    /**
     * Search query to find datasources by name.
     */
    q?: string | undefined;
    /**
     * Filter chunks by status.
     */
    status?: Array<QueryParam1> | QueryParam2 | undefined;
};
export declare const ListChunksObject: {
    readonly List: "list";
};
export type ListChunksObject = ClosedEnum<typeof ListChunksObject>;
export type ListChunksMetadata = string | number | boolean;
/**
 * The status of the chunk
 */
export declare const ListChunksStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
/**
 * The status of the chunk
 */
export type ListChunksStatus = ClosedEnum<typeof ListChunksStatus>;
export type ListChunksData = {
    /**
     * 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: ListChunksStatus;
    /**
     * 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 ListChunksResponseBody = {
    object: ListChunksObject;
    data: Array<ListChunksData>;
    hasMore: boolean;
};
/** @internal */
export declare const QueryParam2$outboundSchema: z.ZodNativeEnum<typeof QueryParam2>;
/** @internal */
export declare const QueryParam1$outboundSchema: z.ZodNativeEnum<typeof QueryParam1>;
/** @internal */
export type QueryParamStatus$Outbound = Array<string> | string;
/** @internal */
export declare const QueryParamStatus$outboundSchema: z.ZodType<QueryParamStatus$Outbound, z.ZodTypeDef, QueryParamStatus>;
export declare function queryParamStatusToJSON(queryParamStatus: QueryParamStatus): string;
/** @internal */
export type ListChunksRequest$Outbound = {
    knowledge_id: string;
    datasource_id: string;
    limit: number;
    starting_after?: string | undefined;
    ending_before?: string | undefined;
    q?: string | undefined;
    status?: Array<string> | string | undefined;
};
/** @internal */
export declare const ListChunksRequest$outboundSchema: z.ZodType<ListChunksRequest$Outbound, z.ZodTypeDef, ListChunksRequest>;
export declare function listChunksRequestToJSON(listChunksRequest: ListChunksRequest): string;
/** @internal */
export declare const ListChunksObject$inboundSchema: z.ZodNativeEnum<typeof ListChunksObject>;
/** @internal */
export declare const ListChunksMetadata$inboundSchema: z.ZodType<ListChunksMetadata, z.ZodTypeDef, unknown>;
export declare function listChunksMetadataFromJSON(jsonString: string): SafeParseResult<ListChunksMetadata, SDKValidationError>;
/** @internal */
export declare const ListChunksStatus$inboundSchema: z.ZodNativeEnum<typeof ListChunksStatus>;
/** @internal */
export declare const ListChunksData$inboundSchema: z.ZodType<ListChunksData, z.ZodTypeDef, unknown>;
export declare function listChunksDataFromJSON(jsonString: string): SafeParseResult<ListChunksData, SDKValidationError>;
/** @internal */
export declare const ListChunksResponseBody$inboundSchema: z.ZodType<ListChunksResponseBody, z.ZodTypeDef, unknown>;
export declare function listChunksResponseBodyFromJSON(jsonString: string): SafeParseResult<ListChunksResponseBody, SDKValidationError>;
//# sourceMappingURL=listchunks.d.ts.map