import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * The kind of command-capable resource a command targets. */ export declare const ResolvedCommandTargetResourceType: { readonly Worker: "worker"; readonly Container: "container"; readonly Daemon: "daemon"; }; /** * The kind of command-capable resource a command targets. */ export type ResolvedCommandTargetResourceType = ClosedEnum; /** * Identifies the specific resource a command is addressed to. */ export type ResolvedCommandTargetTarget = { /** * 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: ResolvedCommandTargetResourceType; }; /** * How a command is delivered to its target resource. * * @remarks * * This is a Commands-protocol-specific concept and is intentionally distinct * from `DeploymentModel` (see `stack_settings.rs`), which governs the * infrastructure-level push/pull wiring for a deployment. Serialized * lowercase for consistency with `CommandTargetType`. */ export declare const ResolvedCommandTargetDeliveryMode: { readonly Push: "push"; readonly Pull: "pull"; }; /** * How a command is delivered to its target resource. * * @remarks * * This is a Commands-protocol-specific concept and is intentionally distinct * from `DeploymentModel` (see `stack_settings.rs`), which governs the * infrastructure-level push/pull wiring for a deployment. Serialized * lowercase for consistency with `CommandTargetType`. */ export type ResolvedCommandTargetDeliveryMode = ClosedEnum; export type ResolvedCommandTarget = { /** * Identifies the specific resource a command is addressed to. */ target: ResolvedCommandTargetTarget; /** * How a command is delivered to its target resource. * * @remarks * * This is a Commands-protocol-specific concept and is intentionally distinct * from `DeploymentModel` (see `stack_settings.rs`), which governs the * infrastructure-level push/pull wiring for a deployment. Serialized * lowercase for consistency with `CommandTargetType`. */ deliveryMode: ResolvedCommandTargetDeliveryMode; }; /** @internal */ export declare const ResolvedCommandTargetResourceType$inboundSchema: z.ZodEnum; /** @internal */ export declare const ResolvedCommandTargetTarget$inboundSchema: z.ZodType; export declare function resolvedCommandTargetTargetFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResolvedCommandTargetDeliveryMode$inboundSchema: z.ZodEnum; /** @internal */ export declare const ResolvedCommandTarget$inboundSchema: z.ZodType; export declare function resolvedCommandTargetFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=resolvedcommandtarget.d.ts.map