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"; /** * Current status of the export job */ export declare const GetExportStatusResponseStatus: { readonly NotFound: "NOT_FOUND"; readonly Running: "RUNNING"; readonly Completed: "COMPLETED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Terminated: "TERMINATED"; readonly ContinuedAsNew: "CONTINUED_AS_NEW"; readonly TimedOut: "TIMED_OUT"; }; /** * Current status of the export job */ export type GetExportStatusResponseStatus = ClosedEnum; /** * Current stage of the export process */ export declare const GetExportStatusResponseStage: { readonly Starting: "starting"; readonly Fetching: "fetching"; readonly Converting: "converting"; readonly Uploading: "uploading"; readonly Completed: "completed"; readonly Failed: "failed"; }; /** * Current stage of the export process */ export type GetExportStatusResponseStage = ClosedEnum; /** * Progress information (available when running) */ export type GetExportStatusResponseProgress = { /** * Current stage of the export process */ stage: GetExportStatusResponseStage; /** * Number of records fetched (available after fetching stage) */ recordCount?: number | undefined; /** * Number of completion feedback records */ completionCount?: number | undefined; /** * Number of response feedback records */ responseCount?: number | undefined; /** * Size of parquet file in bytes (available after converting stage) */ parquetBytes?: number | undefined; /** * Human-readable progress message */ message: string; }; /** * Export result (only present when status is COMPLETED) */ export type Result = { /** * Directory containing exported parquet files (S3 prefix or local path) */ outputPath: string; /** * Path to completions parquet file */ completionsFile: string; /** * Path to responses parquet file */ responsesFile: string; /** * Total number of feedback records exported */ recordCount: number; /** * Number of chat completion feedback records exported */ completionFeedbackCount: number; /** * Number of response feedback records exported */ responseFeedbackCount: number; /** * Unix timestamp (ms) when the export was created */ exportedAt: number; /** * Duration of the export in milliseconds */ durationMs: number; }; /** * Response containing the status and progress of the feedback export job. */ export type GetExportStatusResponse = { /** * Current status of the export job */ status: GetExportStatusResponseStatus; /** * When the export job started */ startTime?: Date | undefined; /** * When the export job completed (if finished) */ closeTime?: Date | undefined; /** * Progress information (available when running) */ progress?: GetExportStatusResponseProgress | undefined; /** * Export result (only present when status is COMPLETED) */ result?: Result | undefined; /** * Error message (only present when status is FAILED) */ error?: string | undefined; }; /** @internal */ export declare const GetExportStatusResponseStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetExportStatusResponseStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetExportStatusResponseStage$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetExportStatusResponseStage$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetExportStatusResponseProgress$inboundSchema: z.ZodType; /** @internal */ export type GetExportStatusResponseProgress$Outbound = { stage: string; recordCount?: number | undefined; completionCount?: number | undefined; responseCount?: number | undefined; parquetBytes?: number | undefined; message: string; }; /** @internal */ export declare const GetExportStatusResponseProgress$outboundSchema: z.ZodType; export declare function getExportStatusResponseProgressToJSON(getExportStatusResponseProgress: GetExportStatusResponseProgress): string; export declare function getExportStatusResponseProgressFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Result$inboundSchema: z.ZodType; /** @internal */ export type Result$Outbound = { outputPath: string; completionsFile: string; responsesFile: string; recordCount: number; completionFeedbackCount: number; responseFeedbackCount: number; exportedAt: number; durationMs: number; }; /** @internal */ export declare const Result$outboundSchema: z.ZodType; export declare function resultToJSON(result: Result): string; export declare function resultFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetExportStatusResponse$inboundSchema: z.ZodType; /** @internal */ export type GetExportStatusResponse$Outbound = { status: string; startTime?: string | undefined; closeTime?: string | undefined; progress?: GetExportStatusResponseProgress$Outbound | undefined; result?: Result$Outbound | undefined; error?: string | undefined; }; /** @internal */ export declare const GetExportStatusResponse$outboundSchema: z.ZodType; export declare function getExportStatusResponseToJSON(getExportStatusResponse: GetExportStatusResponse): string; export declare function getExportStatusResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getexportstatusresponse.d.ts.map