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 UpdateChunkMetadata = string | number | boolean;
export type UpdateChunkRequestBody = {
    /**
     * The text content of the chunk
     */
    text?: string | undefined;
    /**
     * The embedding vector of the chunk. If not provided the chunk will be embedded with the knowledge base embeddings model.
     */
    embedding?: Array<number> | undefined;
    /**
     * Metadata of the chunk
     */
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
};
export type UpdateChunkRequest = {
    /**
     * The unique identifier of the chunk
     */
    chunkId: string;
    /**
     * The unique identifier of the data source
     */
    datasourceId: string;
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    requestBody?: UpdateChunkRequestBody | undefined;
};
export type UpdateChunkKnowledgeMetadata = string | number | boolean;
/**
 * The status of the chunk
 */
export declare const UpdateChunkStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
/**
 * The status of the chunk
 */
export type UpdateChunkStatus = ClosedEnum<typeof UpdateChunkStatus>;
/**
 * Chunk successfully updated
 */
export type UpdateChunkResponseBody = {
    /**
     * 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: UpdateChunkStatus;
    /**
     * 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;
};
/** @internal */
export declare const UpdateChunkMetadata$inboundSchema: z.ZodType<UpdateChunkMetadata, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateChunkMetadata$Outbound = string | number | boolean;
/** @internal */
export declare const UpdateChunkMetadata$outboundSchema: z.ZodType<UpdateChunkMetadata$Outbound, z.ZodTypeDef, UpdateChunkMetadata>;
export declare function updateChunkMetadataToJSON(updateChunkMetadata: UpdateChunkMetadata): string;
export declare function updateChunkMetadataFromJSON(jsonString: string): SafeParseResult<UpdateChunkMetadata, SDKValidationError>;
/** @internal */
export declare const UpdateChunkRequestBody$inboundSchema: z.ZodType<UpdateChunkRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateChunkRequestBody$Outbound = {
    text?: string | undefined;
    embedding?: Array<number> | undefined;
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
};
/** @internal */
export declare const UpdateChunkRequestBody$outboundSchema: z.ZodType<UpdateChunkRequestBody$Outbound, z.ZodTypeDef, UpdateChunkRequestBody>;
export declare function updateChunkRequestBodyToJSON(updateChunkRequestBody: UpdateChunkRequestBody): string;
export declare function updateChunkRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateChunkRequestBody, SDKValidationError>;
/** @internal */
export declare const UpdateChunkRequest$inboundSchema: z.ZodType<UpdateChunkRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateChunkRequest$Outbound = {
    chunk_id: string;
    datasource_id: string;
    knowledge_id: string;
    RequestBody?: UpdateChunkRequestBody$Outbound | undefined;
};
/** @internal */
export declare const UpdateChunkRequest$outboundSchema: z.ZodType<UpdateChunkRequest$Outbound, z.ZodTypeDef, UpdateChunkRequest>;
export declare function updateChunkRequestToJSON(updateChunkRequest: UpdateChunkRequest): string;
export declare function updateChunkRequestFromJSON(jsonString: string): SafeParseResult<UpdateChunkRequest, SDKValidationError>;
/** @internal */
export declare const UpdateChunkKnowledgeMetadata$inboundSchema: z.ZodType<UpdateChunkKnowledgeMetadata, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateChunkKnowledgeMetadata$Outbound = string | number | boolean;
/** @internal */
export declare const UpdateChunkKnowledgeMetadata$outboundSchema: z.ZodType<UpdateChunkKnowledgeMetadata$Outbound, z.ZodTypeDef, UpdateChunkKnowledgeMetadata>;
export declare function updateChunkKnowledgeMetadataToJSON(updateChunkKnowledgeMetadata: UpdateChunkKnowledgeMetadata): string;
export declare function updateChunkKnowledgeMetadataFromJSON(jsonString: string): SafeParseResult<UpdateChunkKnowledgeMetadata, SDKValidationError>;
/** @internal */
export declare const UpdateChunkStatus$inboundSchema: z.ZodNativeEnum<typeof UpdateChunkStatus>;
/** @internal */
export declare const UpdateChunkStatus$outboundSchema: z.ZodNativeEnum<typeof UpdateChunkStatus>;
/** @internal */
export declare const UpdateChunkResponseBody$inboundSchema: z.ZodType<UpdateChunkResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateChunkResponseBody$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 UpdateChunkResponseBody$outboundSchema: z.ZodType<UpdateChunkResponseBody$Outbound, z.ZodTypeDef, UpdateChunkResponseBody>;
export declare function updateChunkResponseBodyToJSON(updateChunkResponseBody: UpdateChunkResponseBody): string;
export declare function updateChunkResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateChunkResponseBody, SDKValidationError>;
//# sourceMappingURL=updatechunk.d.ts.map