import { z } from "zod"; import { type ModelInitialLearning } from "./model-learning-intent.js"; export { ModelInitialLearningSchema, type ModelInitialLearning } from "./model-learning-intent.js"; export { MODEL_PROJECT_API_RESPONSE_MAX_BYTES, MODEL_PROJECT_SYNC_MAX_BYTES, OPENPOND_MODEL_PROJECT_MEDIA_TYPE, } from "./protocol.js"; export declare const ModelProjectImmutableRefSchema: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; export declare const ModelProjectVersionedRefSchema: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; revision: z.ZodNumber; }, z.core.$strict>; export declare const ModelProjectBaseModelSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>; export declare const ModelProjectTrainingMethodSchema: z.ZodEnum<{ dpo: "dpo"; grpo: "grpo"; opd: "opd"; opsd: "opsd"; ppo: "ppo"; sdft: "sdft"; sdpo: "sdpo"; sft: "sft"; }>; /** * A versioned recipe document stored while a Project is still mutable. * The training endpoint validates the selected recipe version in full before * accepting an immutable Job; Project sync preserves newer recipe fields. */ export declare const ModelProjectRecipeDocumentSchema: z.ZodObject<{ schemaVersion: z.ZodString; method: z.ZodEnum<{ dpo: "dpo"; grpo: "grpo"; opd: "opd"; opsd: "opsd"; ppo: "ppo"; sdft: "sdft"; sdpo: "sdpo"; sft: "sft"; }>; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>; /** The published Profile source selected for this Model's Harness. */ export declare const ModelProfileSourceSelectionSchema: z.ZodObject<{ profileProjectId: z.ZodString; sourceRevision: z.ZodString; harnessRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; /** A held-out check selected from an exact released Profile catalog. Its * Taskset and grader stay in the evaluation runtime, outside training input. */ export declare const ModelProfileEvaluationSelectionSchema: z.ZodObject<{ profileProjectId: z.ZodString; sourceRevision: z.ZodString; catalogHash: z.ZodString; definitionId: z.ZodString; harnessRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; export declare const ModelProjectTrainingSetupSchema: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; export declare const HostedModelProjectTrainingSetupSchema: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; export declare const HostedModelProjectLinkSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.hostedModelProjectLink.v1">; apiOrigin: z.ZodDefault>; teamId: z.ZodString; projectId: z.ZodString; portableProjectId: z.ZodString; revision: z.ZodNumber; etag: z.ZodString; syncedSourceRevision: z.ZodNumber; syncedAt: z.ZodString; tasksets: z.ZodDefault>; releaseId: z.ZodString; releaseRevision: z.ZodNumber; releaseHash: z.ZodString; packageHash: z.ZodDefault>; hostedTasksetId: z.ZodString; syncedAt: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>; export declare const ModelProjectTasksetSyncSchema: z.ZodObject<{ localTasksetId: z.ZodString; releaseId: z.ZodString; releaseRevision: z.ZodNumber; releaseHash: z.ZodString; state: z.ZodEnum<{ sync_failed: "sync_failed"; synced: "synced"; syncing: "syncing"; }>; hostedTasksetId: z.ZodDefault>; lastAttemptAt: z.ZodString; syncedAt: z.ZodDefault>; lastError: z.ZodDefault>; }, z.core.$strict>; export declare const ModelProjectSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.modelProject.v2">; id: z.ZodString; profileId: z.ZodString; revision: z.ZodDefault; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; hosted: z.ZodDefault; apiOrigin: z.ZodDefault>; teamId: z.ZodString; projectId: z.ZodString; portableProjectId: z.ZodString; revision: z.ZodNumber; etag: z.ZodString; syncedSourceRevision: z.ZodNumber; syncedAt: z.ZodString; tasksets: z.ZodDefault>; releaseId: z.ZodString; releaseRevision: z.ZodNumber; releaseHash: z.ZodString; packageHash: z.ZodDefault>; hostedTasksetId: z.ZodString; syncedAt: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>>>; tasksetSyncs: z.ZodDefault; hostedTasksetId: z.ZodDefault>; lastAttemptAt: z.ZodString; syncedAt: z.ZodDefault>; lastError: z.ZodDefault>; }, z.core.$strict>>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strict>; /** User-editable configuration. Execution and hosting receipts are server-owned. */ export declare const ModelProjectEditableSchema: z.ZodObject<{ id: z.ZodString; profileId: z.ZodString; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>; /** Zero creates a new Model; a positive revision updates that exact revision. */ export declare const ModelProjectSaveRequestSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.modelProjectSave.v1">; operationId: z.ZodString; expectedRevision: z.ZodNumber; project: z.ZodObject<{ id: z.ZodString; profileId: z.ZodString; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>; learning: z.ZodOptional; minimumTasks: z.ZodNumber; maximumSpendUsd: z.ZodNumber; maximumDailySpendUsd: z.ZodNumber; }, z.core.$strict>>; }, z.core.$strict>; export type ModelProjectSaveRequest = z.infer; /** A read-only configuration check; it does not establish training or grader quality. */ export declare const ModelProjectConfigurationCheckSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.modelProjectConfigurationCheck.v1">; configurationHash: z.ZodString; projectId: z.ZodString; expectedRevision: z.ZodNumber; checkedAt: z.ZodString; canSave: z.ZodBoolean; deferred: z.ZodArray>; findings: z.ZodArray; message: z.ZodString; field: z.ZodNullable; }, z.core.$strict>>; }, z.core.$strict>; export type ModelProjectConfigurationCheck = z.infer; export declare const ModelProjectBaseModelCandidateSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; available: z.ZodBoolean; preference: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>; }, z.core.$strict>; export declare function modelProjectConfigurationHash(request: ModelProjectSaveRequest): Promise; export declare function parseModelProjectSaveRequest(value: unknown): ModelProjectSaveRequest; /** Stable across transport retries; excludes server-owned revision/timestamps. */ export declare function createModelProjectSaveRequest(project: z.input, expectedRevision: number, learning?: ModelInitialLearning): Promise; export declare const HostedModelProjectSyncSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.hostedModelProjectSync.v2">; portableProjectId: z.ZodString; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; sourceRevision: z.ZodNumber; sourceUpdatedAt: z.ZodString; expectedEtag: z.ZodDefault>; }, z.core.$strict>; export declare const HostedModelProjectSummarySchema: z.ZodObject<{ id: z.ZodString; teamId: z.ZodString; portableProjectId: z.ZodString; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; sourceRevision: z.ZodNumber; sourceUpdatedAt: z.ZodString; revision: z.ZodNumber; etag: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strict>; export declare const ModelProjectResourceSummarySchema: z.ZodObject<{ kind: z.ZodEnum<{ dataset_release: "dataset_release"; evaluation_receipt: "evaluation_receipt"; evidence_set: "evidence_set"; harness_release: "harness_release"; model_version: "model_version"; reward_model_version: "reward_model_version"; taskset_release: "taskset_release"; }>; ref: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; role: z.ZodDefault>; updatedAt: z.ZodString; }, z.core.$strict>; export declare const HostedModelProjectDetailSchema: z.ZodObject<{ project: z.ZodObject<{ id: z.ZodString; teamId: z.ZodString; portableProjectId: z.ZodString; name: z.ZodString; objective: z.ZodNullable; defaultBaseModel: z.ZodNullable; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>; defaultDestinationId: z.ZodNullable; trainingSetup: z.ZodObject<{ tasksetRef: z.ZodDefault>>; evaluationTasksetRef: z.ZodOptional>>; profileSource: z.ZodOptional; }, z.core.$strict>>>; profileEvaluation: z.ZodOptional; tasksetRelease: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; }, z.core.$strict>>>; rewardBindingRef: z.ZodOptional>>; tasksetRelease: z.ZodDefault>>; harnessRelease: z.ZodDefault>>; baseModel: z.ZodDefault; modelId: z.ZodString; revision: z.ZodNullable; tokenizerRevision: z.ZodNullable; chatTemplateHash: z.ZodNullable; modelAssetId: z.ZodNullable; source: z.ZodEnum<{ builtin: "builtin"; local: "local"; managed: "managed"; }>; }, z.core.$strict>>>; method: z.ZodDefault>>; destinationId: z.ZodDefault>; managedRolloutPlacement: z.ZodDefault>; managedGpuPlacementObjective: z.ZodDefault>; managedGpuSelection: z.ZodOptional; objective: z.ZodEnum<{ balanced: "balanced"; economical: "economical"; fast: "fast"; }>; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"manual">; availabilityId: z.ZodString; gpuType: z.ZodString; gpuCount: z.ZodOptional, z.ZodLiteral<2>]>>; }, z.core.$strict>], "mode">>; continuationAdapterMode: z.ZodOptional>; managedGpuRequirement: z.ZodDefault>; runPreset: z.ZodDefault>>; recipe: z.ZodDefault; parameterization: z.ZodEnum<{ full: "full"; lora: "lora"; }>; }, z.core.$catchall>>>; preferredMaximumSpendUsd: z.ZodDefault>; preferredRetentionDays: z.ZodDefault>; }, z.core.$strict>; sourceRevision: z.ZodNumber; sourceUpdatedAt: z.ZodString; revision: z.ZodNumber; etag: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strict>; resources: z.ZodArray; ref: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strict>; role: z.ZodDefault>; updatedAt: z.ZodString; }, z.core.$strict>>; jobCount: z.ZodNumber; latestJobIds: z.ZodArray; }, z.core.$strict>; export declare const ModelProjectApiErrorSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.modelProjectApiError.v2">; code: z.ZodString; message: z.ZodString; retryable: z.ZodDefault; requestId: z.ZodDefault>; details: z.ZodDefault>; }, z.core.$strict>; export declare class OpenPondModelProjectApiError extends Error { readonly status: number; readonly code: string; readonly retryable: boolean; readonly requestId: string | null; readonly details: Record; constructor(status: number, error: z.infer); } export type ModelProject = z.infer; export type ModelProjectTrainingSetup = z.infer; export type HostedModelProjectSync = z.infer; export type HostedModelProjectSummary = z.infer; export type HostedModelProjectDetail = z.infer; type ModelProjectsFetch = typeof fetch; export declare function createModelProjectsClient(input: { baseUrl: string; fetch?: ModelProjectsFetch; headers?: HeadersInit | (() => HeadersInit | Promise); }): { configurationCandidates(): Promise<{ id: string; name: string; available: boolean; preference: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; }; }[]>; checkConfiguration(value: ModelProjectSaveRequest): Promise<{ schemaVersion: "openpond.modelProjectConfigurationCheck.v1"; configurationHash: string; projectId: string; expectedRevision: number; checkedAt: string; canSave: boolean; deferred: ("base_model" | "taskset")[]; findings: { code: string; severity: "error" | "warning"; message: string; field: string | null; }[]; }>; saveConfiguration(value: ModelProjectSaveRequest): Promise<{ id: string; teamId: string; portableProjectId: string; name: string; objective: string | null; defaultBaseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; defaultDestinationId: string | null; trainingSetup: { tasksetRef: { id: string; contentHash: string; revision: number; } | null; evaluationTasksetRef?: { id: string; contentHash: string; revision: number; } | null | undefined; profileSource?: { profileProjectId: string; sourceRevision: string; harnessRelease: { id: string; contentHash: string; }; } | null | undefined; profileEvaluation?: { profileProjectId: string; sourceRevision: string; catalogHash: string; definitionId: string; harnessRelease: { id: string; contentHash: string; }; tasksetRelease: { id: string; contentHash: string; }; } | null | undefined; rewardBindingRef?: { id: string; contentHash: string; revision: number; } | null | undefined; tasksetRelease: { id: string; contentHash: string; } | null; harnessRelease: { id: string; contentHash: string; } | null; baseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft" | null; destinationId: string | null; managedRolloutPlacement: "local" | "remote"; managedGpuPlacementObjective: "balanced" | "economical" | "fast"; managedGpuSelection?: { mode: "automatic"; objective: "balanced" | "economical" | "fast"; gpuCount?: 1 | 2 | undefined; } | { mode: "manual"; availabilityId: string; gpuType: string; gpuCount?: 1 | 2 | undefined; } | undefined; continuationAdapterMode?: "residual_append" | "sequential_merge" | "shared" | undefined; managedGpuRequirement: "any" | "h100_hbm3"; runPreset: "custom" | "small" | "small_experiment" | "standard" | null; recipe: { [x: string]: unknown; schemaVersion: string; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft"; parameterization: "full" | "lora"; } | null; preferredMaximumSpendUsd: number | null; preferredRetentionDays: number | null; }; sourceRevision: number; sourceUpdatedAt: string; revision: number; etag: string; createdAt: string; updatedAt: string; }>; upsert(project: HostedModelProjectSync): Promise<{ id: string; teamId: string; portableProjectId: string; name: string; objective: string | null; defaultBaseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; defaultDestinationId: string | null; trainingSetup: { tasksetRef: { id: string; contentHash: string; revision: number; } | null; evaluationTasksetRef?: { id: string; contentHash: string; revision: number; } | null | undefined; profileSource?: { profileProjectId: string; sourceRevision: string; harnessRelease: { id: string; contentHash: string; }; } | null | undefined; profileEvaluation?: { profileProjectId: string; sourceRevision: string; catalogHash: string; definitionId: string; harnessRelease: { id: string; contentHash: string; }; tasksetRelease: { id: string; contentHash: string; }; } | null | undefined; rewardBindingRef?: { id: string; contentHash: string; revision: number; } | null | undefined; tasksetRelease: { id: string; contentHash: string; } | null; harnessRelease: { id: string; contentHash: string; } | null; baseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft" | null; destinationId: string | null; managedRolloutPlacement: "local" | "remote"; managedGpuPlacementObjective: "balanced" | "economical" | "fast"; managedGpuSelection?: { mode: "automatic"; objective: "balanced" | "economical" | "fast"; gpuCount?: 1 | 2 | undefined; } | { mode: "manual"; availabilityId: string; gpuType: string; gpuCount?: 1 | 2 | undefined; } | undefined; continuationAdapterMode?: "residual_append" | "sequential_merge" | "shared" | undefined; managedGpuRequirement: "any" | "h100_hbm3"; runPreset: "custom" | "small" | "small_experiment" | "standard" | null; recipe: { [x: string]: unknown; schemaVersion: string; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft"; parameterization: "full" | "lora"; } | null; preferredMaximumSpendUsd: number | null; preferredRetentionDays: number | null; }; sourceRevision: number; sourceUpdatedAt: string; revision: number; etag: string; createdAt: string; updatedAt: string; }>; list(): Promise<{ id: string; teamId: string; portableProjectId: string; name: string; objective: string | null; defaultBaseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; defaultDestinationId: string | null; trainingSetup: { tasksetRef: { id: string; contentHash: string; revision: number; } | null; evaluationTasksetRef?: { id: string; contentHash: string; revision: number; } | null | undefined; profileSource?: { profileProjectId: string; sourceRevision: string; harnessRelease: { id: string; contentHash: string; }; } | null | undefined; profileEvaluation?: { profileProjectId: string; sourceRevision: string; catalogHash: string; definitionId: string; harnessRelease: { id: string; contentHash: string; }; tasksetRelease: { id: string; contentHash: string; }; } | null | undefined; rewardBindingRef?: { id: string; contentHash: string; revision: number; } | null | undefined; tasksetRelease: { id: string; contentHash: string; } | null; harnessRelease: { id: string; contentHash: string; } | null; baseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft" | null; destinationId: string | null; managedRolloutPlacement: "local" | "remote"; managedGpuPlacementObjective: "balanced" | "economical" | "fast"; managedGpuSelection?: { mode: "automatic"; objective: "balanced" | "economical" | "fast"; gpuCount?: 1 | 2 | undefined; } | { mode: "manual"; availabilityId: string; gpuType: string; gpuCount?: 1 | 2 | undefined; } | undefined; continuationAdapterMode?: "residual_append" | "sequential_merge" | "shared" | undefined; managedGpuRequirement: "any" | "h100_hbm3"; runPreset: "custom" | "small" | "small_experiment" | "standard" | null; recipe: { [x: string]: unknown; schemaVersion: string; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft"; parameterization: "full" | "lora"; } | null; preferredMaximumSpendUsd: number | null; preferredRetentionDays: number | null; }; sourceRevision: number; sourceUpdatedAt: string; revision: number; etag: string; createdAt: string; updatedAt: string; }[]>; get(projectId: string): Promise<{ project: { id: string; teamId: string; portableProjectId: string; name: string; objective: string | null; defaultBaseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; defaultDestinationId: string | null; trainingSetup: { tasksetRef: { id: string; contentHash: string; revision: number; } | null; evaluationTasksetRef?: { id: string; contentHash: string; revision: number; } | null | undefined; profileSource?: { profileProjectId: string; sourceRevision: string; harnessRelease: { id: string; contentHash: string; }; } | null | undefined; profileEvaluation?: { profileProjectId: string; sourceRevision: string; catalogHash: string; definitionId: string; harnessRelease: { id: string; contentHash: string; }; tasksetRelease: { id: string; contentHash: string; }; } | null | undefined; rewardBindingRef?: { id: string; contentHash: string; revision: number; } | null | undefined; tasksetRelease: { id: string; contentHash: string; } | null; harnessRelease: { id: string; contentHash: string; } | null; baseModel: { schemaVersion: "openpond.baseModelPreference.v1"; modelId: string; revision: string | null; tokenizerRevision: string | null; chatTemplateHash: string | null; modelAssetId: string | null; source: "builtin" | "local" | "managed"; } | null; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft" | null; destinationId: string | null; managedRolloutPlacement: "local" | "remote"; managedGpuPlacementObjective: "balanced" | "economical" | "fast"; managedGpuSelection?: { mode: "automatic"; objective: "balanced" | "economical" | "fast"; gpuCount?: 1 | 2 | undefined; } | { mode: "manual"; availabilityId: string; gpuType: string; gpuCount?: 1 | 2 | undefined; } | undefined; continuationAdapterMode?: "residual_append" | "sequential_merge" | "shared" | undefined; managedGpuRequirement: "any" | "h100_hbm3"; runPreset: "custom" | "small" | "small_experiment" | "standard" | null; recipe: { [x: string]: unknown; schemaVersion: string; method: "dpo" | "grpo" | "opd" | "opsd" | "ppo" | "sdft" | "sdpo" | "sft"; parameterization: "full" | "lora"; } | null; preferredMaximumSpendUsd: number | null; preferredRetentionDays: number | null; }; sourceRevision: number; sourceUpdatedAt: string; revision: number; etag: string; createdAt: string; updatedAt: string; }; resources: { kind: "dataset_release" | "evaluation_receipt" | "evidence_set" | "harness_release" | "model_version" | "reward_model_version" | "taskset_release"; ref: { id: string; contentHash: string; }; role: string | null; updatedAt: string; }[]; jobCount: number; latestJobIds: string[]; }>; }; //# sourceMappingURL=model-projects.d.ts.map