/** * `weft.workers.rejections` operation + REST binding. * * Bounded, auditable log of recently declined `register` attempts (WFT-29): * the rejection code, the attempted workerId when known, and whatever * deployment/queue identity had already been parsed by the time the gate * that rejected it ran. No free-text rejection message and no manifest * content — this surfaces "who got rejected, when, and why (by code)", not * a diagnostic dump. * * @module server/operations/list-worker-registration-rejections */ import { z } from 'zod'; import type { WorkerRegistry } from '../../worker/registry.ts'; import type { UnknownRestBinding } from '../rest-bindings.ts'; declare const listWorkerRegistrationRejectionsInput: z.ZodObject<{ limit: z.ZodDefault; }, z.core.$strip>; declare const listWorkerRegistrationRejectionsOutput: z.ZodObject<{ items: z.ZodArray; workerId: z.ZodOptional; rejectedAt: z.ZodNumber; queue: z.ZodOptional; deploymentName: z.ZodOptional; buildId: z.ZodOptional; }, z.core.$strict>>; limit: z.ZodNumber; }, z.core.$strip>; export type ListWorkerRegistrationRejectionsInput = z.infer; export type ListWorkerRegistrationRejectionsOutput = z.infer; type ListWorkerRegistrationRejectionsOptions = { workerRegistry?: WorkerRegistry; }; /** * Build the `weft.workers.rejections` operation, optionally bound to a live * `WorkerRegistry`. Mirrors `createListWorkersOperation`'s discovery-only * fallback: when `workerRegistry` is omitted, `invoke` throws if reached — * reserved for discovery-only registries (OpenAPI/AsyncAPI). */ export declare function createListWorkerRegistrationRejectionsOperation(options?: ListWorkerRegistrationRejectionsOptions): import("../operation-catalog.ts").OperationDefinition<{ limit: number; }, { items: { code: "invalid_registration" | "unsupported_protocol_version" | "deployment_conflict" | "registration_rejected"; rejectedAt: number; workerId?: string | undefined; queue?: string | undefined; deploymentName?: string | undefined; buildId?: string | undefined; }[]; limit: number; }, unknown>; /** Default discovery-only operation; live servers use `createListWorkerRegistrationRejectionsOperation(...)`. */ export declare const listWorkerRegistrationRejectionsOperation: import("../operation-catalog.ts").OperationDefinition<{ limit: number; }, { items: { code: "invalid_registration" | "unsupported_protocol_version" | "deployment_conflict" | "registration_rejected"; rejectedAt: number; workerId?: string | undefined; queue?: string | undefined; deploymentName?: string | undefined; buildId?: string | undefined; }[]; limit: number; }, unknown>; /** * Build the REST binding for `weft.workers.rejections`. The * binding is metadata only; the live `WorkerRegistry` is wired into the * operation, not the binding. */ export declare function createListWorkerRegistrationRejectionsRestBinding(): UnknownRestBinding; export {};