/** * Zod schema definitions for `weft.tasks.get` (WFT-92), split out of * `get-task-detail.ts` purely to stay under this repo's 500-line-per-file * ceiling — see `task-ledger-transitions.ts`/`task-ledger-transitions-cancellation.ts` * for the identical precedent. `get-task-detail.ts` re-exports everything a * consumer needs, so callers import from one canonical module. * * @module server/operations/get-task-detail-schema */ import { z } from 'zod'; export declare const getTaskDetailInput: z.ZodObject<{ operationId: z.ZodString; }, z.core.$strip>; export declare const retryPolicySchema: z.ZodObject<{ maxAttempts: z.ZodNumber; initialBackoff: z.ZodUnion; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>; export declare const executionRequirementSchema: z.ZodObject<{ deploymentName: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>; /** Exported for direct schema-level tests; the operation itself uses this via `outputSchema`. */ export declare const getTaskDetailOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ state: z.ZodLiteral<"queued">; availableAt: z.ZodNumber; firstQueuedAt: z.ZodNumber; lastQueuedAt: z.ZodNumber; lastDispatchedAt: z.ZodOptional; startedAt: z.ZodOptional; retryCount: z.ZodNumber; requeueCount: z.ZodNumber; lastRequeueReason: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ leaseDeadline: z.ZodNumber; firstQueuedAt: z.ZodNumber; lastQueuedAt: z.ZodNumber; startedAt: z.ZodNumber; lastHeartbeatAt: z.ZodNumber; state: z.ZodLiteral<"leased">; retryCount: z.ZodNumber; requeueCount: z.ZodNumber; lastRequeueReason: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ pendingStatus: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; resultDigest: z.ZodString; leaseDeadline: z.ZodNumber; firstQueuedAt: z.ZodNumber; lastQueuedAt: z.ZodNumber; startedAt: z.ZodNumber; lastHeartbeatAt: z.ZodNumber; state: z.ZodLiteral<"completing">; retryCount: z.ZodNumber; requeueCount: z.ZodNumber; lastRequeueReason: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ cancellationReason: z.ZodString; cancellationRequestedAt: z.ZodNumber; leaseDeadline: z.ZodNumber; firstQueuedAt: z.ZodNumber; lastQueuedAt: z.ZodNumber; startedAt: z.ZodNumber; lastHeartbeatAt: z.ZodNumber; state: z.ZodLiteral<"cancelling">; retryCount: z.ZodNumber; requeueCount: z.ZodNumber; lastRequeueReason: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{ disposition: z.ZodLiteral<"resolved">; resultDigest: z.ZodString; resultStatus: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; error: z.ZodOptional; state: z.ZodLiteral<"terminal">; terminalAt: z.ZodNumber; adopted: z.ZodBoolean; adoptedAt: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ disposition: z.ZodLiteral<"cancelled">; cancellationReason: z.ZodString; state: z.ZodLiteral<"terminal">; terminalAt: z.ZodNumber; adopted: z.ZodBoolean; adoptedAt: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ disposition: z.ZodLiteral<"retryExhausted">; error: z.ZodString; state: z.ZodLiteral<"terminal">; terminalAt: z.ZodNumber; adopted: z.ZodBoolean; adoptedAt: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>], "disposition">, z.ZodObject<{ state: z.ZodLiteral<"deadLettered">; pendingStatus: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; resultDigest: z.ZodString; deadLetteredAt: z.ZodNumber; persistenceFailureReason: z.ZodString; error: z.ZodOptional; retryCount: z.ZodNumber; requeueCount: z.ZodNumber; lastRequeueReason: z.ZodOptional; operationId: z.ZodString; workflowId: z.ZodOptional; workflowExecutionToken: z.ZodOptional; workflowRevision: z.ZodOptional; workflowType: z.ZodString; activityName: z.ZodString; queue: z.ZodString; priority: z.ZodOptional; headerKeys: z.ZodArray; visibilityTimeoutMilliseconds: z.ZodNumber; retryPolicy: z.ZodOptional; backoffMultiplier: z.ZodNumber; maxBackoff: z.ZodUnion; nonRetryableErrors: z.ZodOptional>; }, z.core.$strict>>; scheduleToCloseDeadline: z.ZodOptional; executionRequirement: z.ZodOptional; buildId: z.ZodOptional; artifactDigest: z.ZodOptional; workflowRevision: z.ZodOptional; activityContractHash: z.ZodOptional; }, z.core.$strict>>; fairShareKey: z.ZodOptional; stickyWorkflowId: z.ZodOptional; createdAt: z.ZodNumber; attempt: z.ZodNumber; }, z.core.$strict>], "state">; export type GetTaskDetailInput = z.infer; export type GetTaskDetailOutput = z.infer;