import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CheckpointOut, CheckpointOut$Outbound } from "./checkpointout.js"; import { CompletionTrainingParameters, CompletionTrainingParameters$Outbound } from "./completiontrainingparameters.js"; import { EventOut, EventOut$Outbound } from "./eventout.js"; import { GithubRepositoryOut, GithubRepositoryOut$Outbound } from "./githubrepositoryout.js"; import { JobMetadataOut, JobMetadataOut$Outbound } from "./jobmetadataout.js"; import { WandbIntegrationOut, WandbIntegrationOut$Outbound } from "./wandbintegrationout.js"; export declare const CompletionDetailedJobOutStatus: { readonly Queued: "QUEUED"; readonly Started: "STARTED"; readonly Validating: "VALIDATING"; readonly Validated: "VALIDATED"; readonly Running: "RUNNING"; readonly FailedValidation: "FAILED_VALIDATION"; readonly Failed: "FAILED"; readonly Success: "SUCCESS"; readonly Cancelled: "CANCELLED"; readonly CancellationRequested: "CANCELLATION_REQUESTED"; }; export type CompletionDetailedJobOutStatus = ClosedEnum; export declare const CompletionDetailedJobOutObject: { readonly Job: "job"; }; export type CompletionDetailedJobOutObject = ClosedEnum; export type CompletionDetailedJobOutIntegrations = WandbIntegrationOut; export declare const CompletionDetailedJobOutJobType: { readonly Completion: "completion"; }; export type CompletionDetailedJobOutJobType = ClosedEnum; export type CompletionDetailedJobOutRepositories = GithubRepositoryOut; export type CompletionDetailedJobOut = { id: string; autoStart: boolean; /** * The name of the model to fine-tune. */ model: string; status: CompletionDetailedJobOutStatus; createdAt: number; modifiedAt: number; trainingFiles: Array; validationFiles?: Array | null | undefined; object?: CompletionDetailedJobOutObject | undefined; fineTunedModel?: string | null | undefined; suffix?: string | null | undefined; integrations?: Array | null | undefined; trainedTokens?: number | null | undefined; metadata?: JobMetadataOut | null | undefined; jobType?: CompletionDetailedJobOutJobType | undefined; hyperparameters: CompletionTrainingParameters; repositories?: Array | undefined; /** * Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. */ events?: Array | undefined; checkpoints?: Array | undefined; }; /** @internal */ export declare const CompletionDetailedJobOutStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CompletionDetailedJobOutStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOutStatus$ { /** @deprecated use `CompletionDetailedJobOutStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Queued: "QUEUED"; readonly Started: "STARTED"; readonly Validating: "VALIDATING"; readonly Validated: "VALIDATED"; readonly Running: "RUNNING"; readonly FailedValidation: "FAILED_VALIDATION"; readonly Failed: "FAILED"; readonly Success: "SUCCESS"; readonly Cancelled: "CANCELLED"; readonly CancellationRequested: "CANCELLATION_REQUESTED"; }>; /** @deprecated use `CompletionDetailedJobOutStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Queued: "QUEUED"; readonly Started: "STARTED"; readonly Validating: "VALIDATING"; readonly Validated: "VALIDATED"; readonly Running: "RUNNING"; readonly FailedValidation: "FAILED_VALIDATION"; readonly Failed: "FAILED"; readonly Success: "SUCCESS"; readonly Cancelled: "CANCELLED"; readonly CancellationRequested: "CANCELLATION_REQUESTED"; }>; } /** @internal */ export declare const CompletionDetailedJobOutObject$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CompletionDetailedJobOutObject$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOutObject$ { /** @deprecated use `CompletionDetailedJobOutObject$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Job: "job"; }>; /** @deprecated use `CompletionDetailedJobOutObject$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Job: "job"; }>; } /** @internal */ export declare const CompletionDetailedJobOutIntegrations$inboundSchema: z.ZodType; /** @internal */ export type CompletionDetailedJobOutIntegrations$Outbound = WandbIntegrationOut$Outbound; /** @internal */ export declare const CompletionDetailedJobOutIntegrations$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOutIntegrations$ { /** @deprecated use `CompletionDetailedJobOutIntegrations$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOutIntegrations$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOutIntegrations$Outbound` instead. */ type Outbound = CompletionDetailedJobOutIntegrations$Outbound; } export declare function completionDetailedJobOutIntegrationsToJSON(completionDetailedJobOutIntegrations: CompletionDetailedJobOutIntegrations): string; export declare function completionDetailedJobOutIntegrationsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompletionDetailedJobOutJobType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CompletionDetailedJobOutJobType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOutJobType$ { /** @deprecated use `CompletionDetailedJobOutJobType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Completion: "completion"; }>; /** @deprecated use `CompletionDetailedJobOutJobType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Completion: "completion"; }>; } /** @internal */ export declare const CompletionDetailedJobOutRepositories$inboundSchema: z.ZodType; /** @internal */ export type CompletionDetailedJobOutRepositories$Outbound = GithubRepositoryOut$Outbound; /** @internal */ export declare const CompletionDetailedJobOutRepositories$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOutRepositories$ { /** @deprecated use `CompletionDetailedJobOutRepositories$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOutRepositories$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOutRepositories$Outbound` instead. */ type Outbound = CompletionDetailedJobOutRepositories$Outbound; } export declare function completionDetailedJobOutRepositoriesToJSON(completionDetailedJobOutRepositories: CompletionDetailedJobOutRepositories): string; export declare function completionDetailedJobOutRepositoriesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompletionDetailedJobOut$inboundSchema: z.ZodType; /** @internal */ export type CompletionDetailedJobOut$Outbound = { id: string; auto_start: boolean; model: string; status: string; created_at: number; modified_at: number; training_files: Array; validation_files?: Array | null | undefined; object: string; fine_tuned_model?: string | null | undefined; suffix?: string | null | undefined; integrations?: Array | null | undefined; trained_tokens?: number | null | undefined; metadata?: JobMetadataOut$Outbound | null | undefined; job_type: string; hyperparameters: CompletionTrainingParameters$Outbound; repositories?: Array | undefined; events?: Array | undefined; checkpoints?: Array | undefined; }; /** @internal */ export declare const CompletionDetailedJobOut$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompletionDetailedJobOut$ { /** @deprecated use `CompletionDetailedJobOut$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOut$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompletionDetailedJobOut$Outbound` instead. */ type Outbound = CompletionDetailedJobOut$Outbound; } export declare function completionDetailedJobOutToJSON(completionDetailedJobOut: CompletionDetailedJobOut): string; export declare function completionDetailedJobOutFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=completiondetailedjobout.d.ts.map