import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { CommandDeploymentInfo } from "./commanddeploymentinfo.js"; import { CommandProjectInfo } from "./commandprojectinfo.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Command states in the Commands protocol lifecycle */ export declare const CommandListItemResponseState: { readonly PendingUpload: "PENDING_UPLOAD"; readonly Pending: "PENDING"; readonly Dispatched: "DISPATCHED"; readonly Succeeded: "SUCCEEDED"; readonly Failed: "FAILED"; readonly Expired: "EXPIRED"; }; /** * Command states in the Commands protocol lifecycle */ export type CommandListItemResponseState = ClosedEnum; /** * Delivery mode for this command (push/pull), derived from the target at creation time */ export declare const CommandListItemResponseDeploymentModel: { readonly Push: "push"; readonly Pull: "pull"; }; /** * Delivery mode for this command (push/pull), derived from the target at creation time */ export type CommandListItemResponseDeploymentModel = ClosedEnum; /** * The kind of command-capable resource a command targets. */ export declare const CommandListItemResponseResourceType: { readonly Worker: "worker"; readonly Container: "container"; readonly Daemon: "daemon"; }; /** * The kind of command-capable resource a command targets. */ export type CommandListItemResponseResourceType = ClosedEnum; /** * Resource the command is addressed to; null on commands created before target routing */ export type CommandListItemResponseTarget = { /** * The resource ID within the deployment's stack (e.g. a Worker/Container/Daemon id). */ resourceId: string; /** * The kind of command-capable resource a command targets. */ resourceType: CommandListItemResponseResourceType; }; /** * Whether a successful operation result is included or withheld pending explicit confirmation */ export declare const CommandListItemResponseResultAvailability: { readonly Available: "available"; readonly Protected: "protected"; }; /** * Whether a successful operation result is included or withheld pending explicit confirmation */ export type CommandListItemResponseResultAvailability = ClosedEnum; export type CommandListItemResponse = { /** * Unique identifier for the command. */ id: string; /** * Unique identifier for the deployment. */ deploymentId: string; /** * Unique identifier for the project. */ projectId: string; /** * Unique identifier for the workspace. */ workspaceId: string; /** * Command name (e.g., 'analyze-repository', 'sync-data') */ name: string; /** * Command states in the Commands protocol lifecycle */ state: CommandListItemResponseState; /** * Delivery mode for this command (push/pull), derived from the target at creation time */ deploymentModel: CommandListItemResponseDeploymentModel; /** * Resource the command is addressed to; null on commands created before target routing */ target: CommandListItemResponseTarget | null; /** * Current attempt number */ attempt: number | null; /** * Optional deadline for command execution */ deadline: Date | null; /** * Size of command params in bytes */ requestSizeBytes: number | null; /** * Size of command response in bytes */ responseSizeBytes: number | null; /** * When the command was created */ createdAt: Date; /** * When the command was dispatched to the deployment */ dispatchedAt: Date | null; /** * When the command completed */ completedAt: Date | null; /** * Error details if command failed */ error: { [k: string]: any | null; } | null; /** * Decoded command result when available */ result?: any | null | undefined; /** * Whether a successful operation result is included or withheld pending explicit confirmation */ resultAvailability?: CommandListItemResponseResultAvailability | undefined; deployment?: CommandDeploymentInfo | undefined; project?: CommandProjectInfo | undefined; }; /** @internal */ export declare const CommandListItemResponseState$inboundSchema: z.ZodEnum; /** @internal */ export declare const CommandListItemResponseDeploymentModel$inboundSchema: z.ZodEnum; /** @internal */ export declare const CommandListItemResponseResourceType$inboundSchema: z.ZodEnum; /** @internal */ export declare const CommandListItemResponseTarget$inboundSchema: z.ZodType; export declare function commandListItemResponseTargetFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CommandListItemResponseResultAvailability$inboundSchema: z.ZodEnum; /** @internal */ export declare const CommandListItemResponse$inboundSchema: z.ZodType; export declare function commandListItemResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=commandlistitemresponse.d.ts.map