import { type BoundaryInstance, type BoundaryPlacement, type EnforcementBoundary } from "../boundary/BoundaryIdentity.js"; import { type AcceptanceSigningKey } from "../acceptance/AcceptanceReport.js"; import type { WorkloadSignal } from "@decionis/agent-safe-pipeline"; import type { CliProcess } from "./CliProcess.js"; export declare const IDENTITY_ARGUMENTS: { readonly valued: readonly ["upstream", "port", "listen", "mode", "failure-policy", "authority", "config"]; readonly flags: readonly ["verbose", "json"]; }; export declare const IDENTITY_REPORT_VERSION = "agent-safe.boundary-identity/1"; export interface IdentityReport { readonly version: typeof IDENTITY_REPORT_VERSION; readonly boundary_id: string; readonly boundary_source: "configured" | "derived"; readonly agentsafe_version: string; readonly protocol_version: string; readonly conformance_version: string; readonly deployment_type: string; readonly environment: string | null; readonly placement: BoundaryPlacement | null; readonly instance: BoundaryInstance | null; /** * What software this boundary stands in front of, as a runtime reported it, * with the trust source beside it. Null when nothing trustworthy described * it, which is an answer and not a gap. */ readonly workload: WorkloadSignal | null; /** * The key this boundary signs acceptance reports with (ADR 0009): its * `kid` and public JWK, which a buyer pins to verify a report offline; the * code why it could not be read; or null when the gateway serves no runs. */ readonly acceptance: { readonly kid: string; readonly public_jwk: AcceptanceSigningKey["publicJwk"]; } | { readonly error: "ACCEPTANCE_KEY_UNREADABLE"; } | null; /** * Whether the boundary was resolved from a usable gateway configuration. * Without one there is no upstream to stand in front of, so the derived id * is the one this process would use if nothing else changed — worth saying * out loud rather than printing as if it were settled. */ readonly configured: boolean; } export declare function identityReport(boundary: EnforcementBoundary, workload: WorkloadSignal | null, configured: boolean, acceptance?: IdentityReport["acceptance"]): IdentityReport; export declare function renderIdentityReport(report: IdentityReport, options: { readonly color: boolean; }): string; /** * `agentsafe identity`: which enforcement boundary this process is. * * An estate running many gateways needs to know which of them admitted an * effect, and an operator needs to see that the answer is stable before * relying on it. The id printed here is the one bound into every intent this * process captures, so it is the one a Decision Dossier will name. */ export declare function runIdentity(io: CliProcess, argv: readonly string[]): IdentityReport | null; //# sourceMappingURL=Identity.d.ts.map