/** * Generated by orval v7.21.0 🍺 * Do not edit manually. * certctl API * Certificate lifecycle management platform API. Manages certificates, issuers, deployment targets, agents, jobs, policies, profiles, teams, owners, agent groups, audit events, notifications, and observability metrics. All endpoints under `/api/v1/` require authentication by default (configurable via `CERTCTL_AUTH_TYPE`). Use `Bearer {api_key}` in the Authorization header. Paginated list endpoints accept `page` (default 1) and `per_page` (default 50, max 500) query parameters and return a standard envelope with `data`, `total`, `page`, and `per_page`. * OpenAPI spec version: 2.1.7 */ import type { ApprovalRequestState } from './approvalRequestState'; import type { ApprovalRequestMetadata } from './approvalRequestMetadata'; /** * Rank 7 issuance approval-workflow primitive. One row per (CertificateID, JobID) pair; the JobID points at the blocked Job whose Status is AwaitingApproval. Lifecycle: pending → approved | rejected | expired. Once terminal, the row is immutable; the audit_events table is the durable record of who decided + why. */ export interface ApprovalRequest { /** Approval request ID (ar-). */ id: string; certificate_id: string; job_id: string; profile_id: string; /** Actor that triggered the renewal. */ requested_by: string; state: ApprovalRequestState; /** * Approver identity; null while state=pending. * @nullable */ decided_by?: string | null; /** @nullable */ decided_at?: string | null; /** @nullable */ decision_note?: string | null; /** Free-form key/value (common_name, sans, issuer_id, severity_tier). */ metadata?: ApprovalRequestMetadata; created_at: string; updated_at: string; }