import { z } from "zod"; import { type CapturedIntent, type ExecutionRecoveryReference } from "@decionis/agent-safe-pipeline"; import type { ExecutorMode } from "../config/ExecutorConfig.js"; import type { AttestationHandoff, EscalationHandoff } from "./EscalationResolver.js"; /** * A producer's signed, standing signal presented with a proposal: a compact * Ed25519 JWS the authority verifies against the key the organisation * registered for the producer (purpose `signed_signal`), such as a * cardholder's grant of permission to an agent, within limits and until a * time. Evidence for the evaluation, never part of the intent: this process * carries it bounded and shaped and keeps nothing of it. */ export declare const SignedSignalSchema: z.ZodObject<{ token: z.ZodString; }, z.core.$strict>; export declare const ProposalRequestSchema: z.ZodObject<{ proposal: z.ZodObject<{ action: z.ZodString; target: z.ZodString; parameters: z.ZodOptional>>; }, z.core.$strict>; idempotency_key: z.ZodString; correlation_id: z.ZodOptional; signals: z.ZodOptional>>; }, z.core.$strict>; export type ProposalRequest = z.infer; /** The recovery reference the executor returned, presented back verbatim with the intent. */ export declare const ReconciliationRequestSchema: z.ZodObject<{ intent: z.ZodRecord; reference: z.ZodObject<{ version: z.ZodLiteral<"agent-safe.recovery/1">; decisionId: z.ZodString; dossierId: z.ZodString; grantId: z.ZodString; intentHash: z.ZodString; expiresAt: z.ZodString; idempotencyKey: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; export type ReconciliationRequest = z.infer; /** * An operator's reason for stopping or resuming the executor. It is written * to the security stream verbatim, so it is bounded and it is the * operator's own words: nothing from a proposal ever reaches it. */ export declare const HaltRequestSchema: z.ZodObject<{ reason: z.ZodString; }, z.core.$strict>; /** * A resume's reason, and, only when attempts whose outcome nobody knows are * still open, the operator's own reason for resuming over them: what they * resolved them against, which this process cannot see. */ export declare const ResumeRequestSchema: z.ZodObject<{ reason: z.ZodString; override_unknown_attempts: z.ZodOptional; }, z.core.$strict>; export type HaltRequest = z.infer; /** The consumed binding, as evidence. The token itself never leaves the process. */ export interface AuthorizationBinding { readonly decision_id: string; readonly dossier_id: string; readonly grant_id: string; readonly expires_at: string; } export interface ActionResponse { readonly mode: ExecutorMode; readonly intent_id: string; readonly intent_hash: string; readonly verdict: "ALLOW" | "ESCALATE" | "BLOCK" | null; readonly decision_id: string | null; readonly dossier_id: string | null; readonly reason_codes: readonly string[]; readonly fail_closed: boolean; /** * Shadow: the observation status. Enforcement: the executor outcome, or * `ESCALATE_PENDING` while a person has yet to answer. */ readonly outcome: string; readonly executed: boolean | null; readonly authorization: AuthorizationBinding | null; readonly finalization: "RECORDED" | "PENDING" | "UNSUPPORTED" | null; readonly result: unknown; /** * What the adapter observed about the effect, for an action family that has * an effect plane: statuses, digests and the projected fields that differ. * Null for an action with no adapter, and never a provider body, a * parameter, or a credential. */ readonly effect: Readonly> | null; /** Present only for `UNKNOWN_AFTER_DISPATCH`: what to present to reconcile. */ readonly recovery: { readonly intent: CapturedIntent["intent"]; readonly reference: ExecutionRecoveryReference; } | null; /** Present while an escalation is open: what to present to resume. */ readonly escalation: EscalationHandoff | AttestationHandoff | null; } export interface ReconciliationResponse { readonly intent_id: string; readonly intent_hash: string; readonly outcome: string; readonly executed: boolean | null; readonly recovered: boolean; readonly reason_codes: readonly string[]; readonly authorization: AuthorizationBinding | null; readonly result: unknown; readonly effect: Readonly> | null; } /** What the issuer's authorization hook is answered: approve on a held grant, or no match and why. */ export type CardAuthorizationAnswer = { readonly decision: "APPROVE"; readonly authorization_id: string; readonly intent_id: string; readonly intent_hash: string; readonly decision_id: string; readonly dossier_id: string; readonly grant_id: string; /** Until when a result is recorded as an outcome; after it, as indeterminate. */ readonly lease_expires_at: string; } | { /** * Evaluated at the commit boundary and escalated: a platform that can * pend keeps the authorization pending, the tap is presented through * `POST /v1/escalations` with the handoff's intent, and the * authorization is re-presented once the hold exists. */ readonly decision: "PENDING"; readonly authorization_id: string; readonly intent_id: string; readonly intent_hash: string; readonly decision_id: string | null; readonly dossier_id: string | null; /** Until when the platform may re-present the authorization: the intent's own expiry. */ readonly expires_at: string; /** Where the hold goes: the intent to present back with the tap, and the requirement. */ readonly escalation: EscalationHandoff | AttestationHandoff; } | { readonly decision: "NO_MATCH"; readonly code: string; }; /** What a recorded authorization result became: the commit outcome and the effect observed. */ export interface CardResultResponse { readonly authorization_id: string; readonly intent_id: string; readonly intent_hash: string; readonly outcome: "COMMITTED" | "FAILED" | "INDETERMINATE"; readonly executed: boolean | null; readonly finalization: "RECORDED" | "PENDING" | "UNSUPPORTED"; readonly reason_codes: readonly string[]; readonly effect: Readonly> | null; } //# sourceMappingURL=Requests.d.ts.map