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 UpdateDatasourceRequestBody = {
    displayName: string;
};
export type UpdateDatasourceRequest = {
    /**
     * The unique identifier of the knowledge base
     */
    knowledgeId: string;
    /**
     * The unique identifier of the datasource.
     */
    datasourceId: string;
    requestBody: UpdateDatasourceRequestBody;
};
export declare const UpdateDatasourceStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
export type UpdateDatasourceStatus = ClosedEnum<typeof UpdateDatasourceStatus>;
/**
 * Datasource successfully updated
 */
export type UpdateDatasourceResponseBody = {
    /**
     * The unique identifier of the data source
     */
    id?: string | undefined;
    /**
     * 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: UpdateDatasourceStatus;
    /**
     * 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 declare const UpdateDatasourceRequestBody$inboundSchema: z.ZodType<UpdateDatasourceRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateDatasourceRequestBody$Outbound = {
    display_name: string;
};
/** @internal */
export declare const UpdateDatasourceRequestBody$outboundSchema: z.ZodType<UpdateDatasourceRequestBody$Outbound, z.ZodTypeDef, UpdateDatasourceRequestBody>;
export declare function updateDatasourceRequestBodyToJSON(updateDatasourceRequestBody: UpdateDatasourceRequestBody): string;
export declare function updateDatasourceRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateDatasourceRequestBody, SDKValidationError>;
/** @internal */
export declare const UpdateDatasourceRequest$inboundSchema: z.ZodType<UpdateDatasourceRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateDatasourceRequest$Outbound = {
    knowledge_id: string;
    datasource_id: string;
    RequestBody: UpdateDatasourceRequestBody$Outbound;
};
/** @internal */
export declare const UpdateDatasourceRequest$outboundSchema: z.ZodType<UpdateDatasourceRequest$Outbound, z.ZodTypeDef, UpdateDatasourceRequest>;
export declare function updateDatasourceRequestToJSON(updateDatasourceRequest: UpdateDatasourceRequest): string;
export declare function updateDatasourceRequestFromJSON(jsonString: string): SafeParseResult<UpdateDatasourceRequest, SDKValidationError>;
/** @internal */
export declare const UpdateDatasourceStatus$inboundSchema: z.ZodNativeEnum<typeof UpdateDatasourceStatus>;
/** @internal */
export declare const UpdateDatasourceStatus$outboundSchema: z.ZodNativeEnum<typeof UpdateDatasourceStatus>;
/** @internal */
export declare const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<UpdateDatasourceResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type UpdateDatasourceResponseBody$Outbound = {
    _id: string;
    display_name: string;
    description?: string | undefined;
    status: string;
    file_id?: string | null | undefined;
    created: string;
    updated: string;
    created_by_id?: string | null | undefined;
    update_by_id?: string | null | undefined;
    knowledge_id: string;
    chunks_count: number;
};
/** @internal */
export declare const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<UpdateDatasourceResponseBody$Outbound, z.ZodTypeDef, UpdateDatasourceResponseBody>;
export declare function updateDatasourceResponseBodyToJSON(updateDatasourceResponseBody: UpdateDatasourceResponseBody): string;
export declare function updateDatasourceResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateDatasourceResponseBody, SDKValidationError>;
//# sourceMappingURL=updatedatasource.d.ts.map