import * as z from "zod/v4-mini"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; import * as models from "../index.js"; export type DeployHelixAgentRequest = { slug: string; body: models.ArchiveBase64ArchiveDigestArtifactDigest; }; export type DeployHelixAgentId = string | number; export type DeployHelixAgentAgent = { id: string | number; slug: string; name: string; description: string | null; /** * `provider/model` of the revision a slot last activated. */ model: string; /** * `archived` once deleted with every slot retired; `active` otherwise. */ status: string; sourceKind: string; archivedAt: string | null; createdAt: string; updatedAt: string; }; export type DeployHelixAgentAgentId = string | number; /** * The revision number, shown as vN. */ export type DeployHelixAgentRevisionUnion = string | number; export type DeployHelixAgentArchiveSize = string | number; /** * The mode a run uses when it names neither -p nor --rpc. */ export declare enum DeployHelixAgentMode { Interactive = "interactive", Headless = "headless" } /** * The mode a run uses when it names neither -p nor --rpc. */ export type DeployHelixAgentModeOpen = OpenEnum; export declare enum DeployHelixAgentValidationStatus { Uploaded = "uploaded", Validated = "validated", Failed = "failed" } export type DeployHelixAgentValidationStatusOpen = OpenEnum; export type DeployHelixAgentRevision = { id: string; agentId: string | number; /** * The revision number, shown as vN. */ revision: string | number; /** * A lowercase sha256 digest with its algorithm prefix */ sourceDigest: string; /** * A lowercase sha256 digest with its algorithm prefix */ artifactDigest: string; /** * A lowercase sha256 digest with its algorithm prefix */ archiveDigest: string; archiveSize: string | number; /** * `provider/model` the revision runs. */ model: string; /** * The mode a run uses when it names neither -p nor --rpc. */ mode: DeployHelixAgentModeOpen; manifest: { [k: string]: any; }; launchTemplate: { [k: string]: any; }; buildMetadata: { [k: string]: any; }; validationStatus: DeployHelixAgentValidationStatusOpen; createdAt: string; }; /** * Response for status 200 */ export type DeployHelixAgentResponse = { agent: DeployHelixAgentAgent; revision: DeployHelixAgentRevision; /** * False when the package matched an existing revision, which was reused. */ revisionCreated: boolean; deployment: models.IdAgentIdEnvironment; operation: models.IdAgentIdDeploymentId; }; /** @internal */ export type DeployHelixAgentRequest$Outbound = { slug: string; body: models.ArchiveBase64ArchiveDigestArtifactDigest$Outbound; }; /** @internal */ export declare const DeployHelixAgentRequest$outboundSchema: z.ZodMiniType; export declare function deployHelixAgentRequestToJSON(deployHelixAgentRequest: DeployHelixAgentRequest): string; /** @internal */ export declare const DeployHelixAgentId$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentAgent$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentAgentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentAgentId$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentAgentIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentRevisionUnion$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentRevisionUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentArchiveSize$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentArchiveSizeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentMode$inboundSchema: z.ZodMiniType; /** @internal */ export declare const DeployHelixAgentValidationStatus$inboundSchema: z.ZodMiniType; /** @internal */ export declare const DeployHelixAgentRevision$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentRevisionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeployHelixAgentResponse$inboundSchema: z.ZodMiniType; export declare function deployHelixAgentResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=deploy-helix-agent.d.ts.map