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 FileListRequest = {
    /**
     * 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;
};
export declare const FileListObject: {
    readonly List: "list";
};
export type FileListObject = ClosedEnum<typeof FileListObject>;
/**
 * The intended purpose of the uploaded file.
 */
export declare const FileListPurpose: {
    readonly Retrieval: "retrieval";
    readonly KnowledgeDatasource: "knowledge_datasource";
    readonly Batch: "batch";
};
/**
 * The intended purpose of the uploaded file.
 */
export type FileListPurpose = ClosedEnum<typeof FileListPurpose>;
export type FileListData = {
    id: string;
    /**
     * path to the file in the storage
     */
    objectName: string;
    /**
     * The intended purpose of the uploaded file.
     */
    purpose: FileListPurpose;
    bytes: number;
    fileName: string;
    /**
     * The id of the resource
     */
    workspaceId: string;
    /**
     * The date and time the resource was created
     */
    created?: Date | undefined;
};
/**
 * Files retrieved successfully
 */
export type FileListResponseBody = {
    object: FileListObject;
    data: Array<FileListData>;
    hasMore: boolean;
};
/** @internal */
export declare const FileListRequest$inboundSchema: z.ZodType<FileListRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type FileListRequest$Outbound = {
    limit: number;
    starting_after?: string | undefined;
    ending_before?: string | undefined;
};
/** @internal */
export declare const FileListRequest$outboundSchema: z.ZodType<FileListRequest$Outbound, z.ZodTypeDef, FileListRequest>;
export declare function fileListRequestToJSON(fileListRequest: FileListRequest): string;
export declare function fileListRequestFromJSON(jsonString: string): SafeParseResult<FileListRequest, SDKValidationError>;
/** @internal */
export declare const FileListObject$inboundSchema: z.ZodNativeEnum<typeof FileListObject>;
/** @internal */
export declare const FileListObject$outboundSchema: z.ZodNativeEnum<typeof FileListObject>;
/** @internal */
export declare const FileListPurpose$inboundSchema: z.ZodNativeEnum<typeof FileListPurpose>;
/** @internal */
export declare const FileListPurpose$outboundSchema: z.ZodNativeEnum<typeof FileListPurpose>;
/** @internal */
export declare const FileListData$inboundSchema: z.ZodType<FileListData, z.ZodTypeDef, unknown>;
/** @internal */
export type FileListData$Outbound = {
    _id: string;
    object_name: string;
    purpose: string;
    bytes: number;
    file_name: string;
    workspace_id: string;
    created: string;
};
/** @internal */
export declare const FileListData$outboundSchema: z.ZodType<FileListData$Outbound, z.ZodTypeDef, FileListData>;
export declare function fileListDataToJSON(fileListData: FileListData): string;
export declare function fileListDataFromJSON(jsonString: string): SafeParseResult<FileListData, SDKValidationError>;
/** @internal */
export declare const FileListResponseBody$inboundSchema: z.ZodType<FileListResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type FileListResponseBody$Outbound = {
    object: string;
    data: Array<FileListData$Outbound>;
    has_more: boolean;
};
/** @internal */
export declare const FileListResponseBody$outboundSchema: z.ZodType<FileListResponseBody$Outbound, z.ZodTypeDef, FileListResponseBody>;
export declare function fileListResponseBodyToJSON(fileListResponseBody: FileListResponseBody): string;
export declare function fileListResponseBodyFromJSON(jsonString: string): SafeParseResult<FileListResponseBody, SDKValidationError>;
//# sourceMappingURL=filelist.d.ts.map