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 RetrieveDatasourceRequest = {
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    /**
     * The unique identifier of the datasource.
     */
    datasourceId: string;
};
export declare const RetrieveDatasourceStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
export type RetrieveDatasourceStatus = ClosedEnum<typeof RetrieveDatasourceStatus>;
/**
 * Datasource successfully retrieved
 */
export type RetrieveDatasourceResponseBody = {
    /**
     * The unique identifier of the data source
     */
    id: string;
    /**
     * The display name of the datasource. Normally the name of the uploaded file
     */
    displayName: string;
    /**
     * The description of the knowledge base
     */
    description?: string | undefined;
    status: RetrieveDatasourceStatus;
    /**
     * The unique identifier of the file used to create the datasource.
     */
    fileId?: string | null | undefined;
    /**
     * The date and time the datasource was created
     */
    created: string;
    /**
     * The date and time the datasource was updated
     */
    updated: string;
    /**
     * The user ID of the creator of the knowledge base
     */
    createdById?: string | null | undefined;
    /**
     * The user ID of the last user who updated the knowledge base
     */
    updateById?: string | null | undefined;
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    /**
     * The number of chunks in the datasource
     */
    chunksCount: number;
};
/** @internal */
export type RetrieveDatasourceRequest$Outbound = {
    knowledge_id: string;
    datasource_id: string;
};
/** @internal */
export declare const RetrieveDatasourceRequest$outboundSchema: z.ZodType<RetrieveDatasourceRequest$Outbound, z.ZodTypeDef, RetrieveDatasourceRequest>;
export declare function retrieveDatasourceRequestToJSON(retrieveDatasourceRequest: RetrieveDatasourceRequest): string;
/** @internal */
export declare const RetrieveDatasourceStatus$inboundSchema: z.ZodNativeEnum<typeof RetrieveDatasourceStatus>;
/** @internal */
export declare const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<RetrieveDatasourceResponseBody, z.ZodTypeDef, unknown>;
export declare function retrieveDatasourceResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveDatasourceResponseBody, SDKValidationError>;
//# sourceMappingURL=retrievedatasource.d.ts.map