{
  "components": {
    "schemas": {
      "AgentRegistrationKeyCreate": {
        "description": "Request model for creating agent registration key",
        "properties": {
          "agent_hostname": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Agent Hostname",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "agent_hostname"
        ],
        "title": "AgentRegistrationKeyCreate",
        "type": "object"
      },
      "AgentRegistrationKeyUpdate": {
        "description": "Request model for updating agent registration key",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "AgentRegistrationKeyUpdate",
        "type": "object"
      },
      "AgentSettingsUpdate": {
        "additionalProperties": false,
        "properties": {
          "backup_storage_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Backup Storage Path"
          },
          "compression_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compression Level"
          },
          "compression_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compression Type"
          },
          "heartbeat_interval": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Heartbeat Interval"
          },
          "libvirt_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Libvirt Uri"
          },
          "log_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Log Level"
          },
          "max_concurrent_backups": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Concurrent Backups"
          },
          "selected_source_namespaces": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Source Namespaces"
          },
          "virtnbd_scratch_dir": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Virtnbd Scratch Dir"
          },
          "virtnbdbackup_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Virtnbdbackup Path"
          },
          "virtnbdrestore_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Virtnbdrestore Path"
          }
        },
        "title": "AgentSettingsUpdate",
        "type": "object"
      },
      "AgentUpdateRequest": {
        "description": "Request model for updating agent",
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          }
        },
        "title": "AgentUpdateRequest",
        "type": "object"
      },
      "BackupCreate": {
        "description": "Request model for creating backup",
        "properties": {
          "backup_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "full",
            "title": "Backup Type"
          },
          "exclude_disks": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": [],
            "title": "Exclude Disks"
          },
          "retention_days": {
            "anyOf": [
              {
                "maximum": 36500.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 30,
            "title": "Retention Days"
          },
          "tags": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": {},
            "title": "Tags"
          },
          "vm_id": {
            "title": "Vm Id",
            "type": "string"
          },
          "workers": {
            "description": "Per-backup worker overrides are unsupported",
            "title": "Workers",
            "type": "null"
          }
        },
        "required": [
          "vm_id"
        ],
        "title": "BackupCreate",
        "type": "object"
      },
      "BackupQueueCreate": {
        "description": "Request model for adding backup to queue",
        "properties": {
          "backup_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "full",
            "title": "Backup Type"
          },
          "exclude_disks": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exclude Disks"
          },
          "priority": {
            "anyOf": [
              {
                "maximum": 100.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 0,
            "title": "Priority"
          },
          "retention_days": {
            "default": 30,
            "maximum": 36500.0,
            "minimum": 1.0,
            "title": "Retention Days",
            "type": "integer"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "vm_id": {
            "title": "Vm Id",
            "type": "string"
          },
          "workers": {
            "description": "Per-backup worker overrides are unsupported",
            "title": "Workers",
            "type": "null"
          }
        },
        "required": [
          "vm_id"
        ],
        "title": "BackupQueueCreate",
        "type": "object"
      },
      "BackupRequest": {
        "properties": {
          "backup_type": {
            "default": "full",
            "pattern": "^(full|incremental)$",
            "title": "Backup Type",
            "type": "string"
          },
          "scenario": {
            "default": "success",
            "pattern": "^(success|upload_failure)$",
            "title": "Scenario",
            "type": "string"
          },
          "vm_id": {
            "title": "Vm Id",
            "type": "string"
          }
        },
        "required": [
          "vm_id"
        ],
        "title": "BackupRequest",
        "type": "object"
      },
      "Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post": {
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "type": "string"
          },
          "location": {
            "title": "Location",
            "type": "string"
          },
          "password": {
            "title": "Password",
            "type": "string"
          }
        },
        "required": [
          "file",
          "password",
          "location"
        ],
        "title": "Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post",
        "type": "object"
      },
      "Body_import_keys_api_v1_encryption_keys_import_post": {
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "type": "string"
          },
          "password": {
            "default": "",
            "title": "Password",
            "type": "string"
          }
        },
        "required": [
          "file"
        ],
        "title": "Body_import_keys_api_v1_encryption_keys_import_post",
        "type": "object"
      },
      "Body_login_api_v1_auth_login_post": {
        "properties": {
          "client_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "client_secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "format": "password",
            "title": "Client Secret"
          },
          "grant_type": {
            "anyOf": [
              {
                "pattern": "^password$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grant Type"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Org Id"
          },
          "password": {
            "format": "password",
            "title": "Password",
            "type": "string"
          },
          "scope": {
            "default": "",
            "title": "Scope",
            "type": "string"
          },
          "username": {
            "title": "Username",
            "type": "string"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "title": "Body_login_api_v1_auth_login_post",
        "type": "object"
      },
      "Body_update_report_api_v1_reports__report_id__put": {
        "properties": {
          "filters": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filters"
          },
          "recipients": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipients"
          }
        },
        "title": "Body_update_report_api_v1_reports__report_id__put",
        "type": "object"
      },
      "BulkBackupCreate": {
        "description": "Request model for bulk backup creation",
        "properties": {
          "filter": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filter"
          },
          "retention_days": {
            "default": 30,
            "maximum": 36500.0,
            "minimum": 1.0,
            "title": "Retention Days",
            "type": "integer"
          },
          "tags": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": {},
            "title": "Tags"
          },
          "vm_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vm Ids"
          },
          "workers": {
            "description": "Per-backup worker overrides are unsupported",
            "title": "Workers",
            "type": "null"
          }
        },
        "title": "BulkBackupCreate",
        "type": "object"
      },
      "BulkBackupDelete": {
        "description": "Request model for bulk backup deletion",
        "properties": {
          "backup_ids": {
            "items": {
              "type": "string"
            },
            "title": "Backup Ids",
            "type": "array"
          }
        },
        "required": [
          "backup_ids"
        ],
        "title": "BulkBackupDelete",
        "type": "object"
      },
      "BulkBackupTag": {
        "description": "Request model for bulk tagging",
        "properties": {
          "backup_ids": {
            "items": {
              "type": "string"
            },
            "title": "Backup Ids",
            "type": "array"
          },
          "overwrite": {
            "default": false,
            "title": "Overwrite",
            "type": "boolean"
          },
          "tags": {
            "additionalProperties": true,
            "title": "Tags",
            "type": "object"
          }
        },
        "required": [
          "backup_ids",
          "tags"
        ],
        "title": "BulkBackupTag",
        "type": "object"
      },
      "CreateKeyRequest": {
        "properties": {
          "algorithm": {
            "default": "aes-256-gcm",
            "title": "Algorithm",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateKeyRequest",
        "type": "object"
      },
      "CursorRealtimeEvent": {
        "properties": {
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          },
          "sequence": {
            "title": "Sequence",
            "type": "integer"
          },
          "timestamp": {
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "payload",
          "timestamp",
          "sequence"
        ],
        "title": "CursorRealtimeEvent",
        "type": "object"
      },
      "ExportKeysRequest": {
        "properties": {
          "key_ids": {
            "items": {
              "type": "string"
            },
            "title": "Key Ids",
            "type": "array"
          },
          "password": {
            "minLength": 8,
            "title": "Password",
            "type": "string"
          }
        },
        "required": [
          "key_ids",
          "password"
        ],
        "title": "ExportKeysRequest",
        "type": "object"
      },
      "GrantEnrollment": {
        "properties": {
          "enable": {
            "default": true,
            "title": "Enable",
            "type": "boolean"
          },
          "expected_revision": {
            "exclusiveMinimum": 0.0,
            "title": "Expected Revision",
            "type": "integer"
          },
          "replace_grant_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Replace Grant Id"
          },
          "request_id": {
            "format": "uuid",
            "title": "Request Id",
            "type": "string"
          },
          "scope_sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "title": "Scope Sha256",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "expected_revision",
          "scope_sha256"
        ],
        "title": "GrantEnrollment",
        "type": "object"
      },
      "GroupRequest": {
        "properties": {
          "name": {
            "maxLength": 80,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/GroupRule"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Rules",
            "type": "array"
          },
          "rules_match": {
            "default": "all",
            "pattern": "^(all|any)$",
            "title": "Rules Match",
            "type": "string"
          }
        },
        "required": [
          "name",
          "rules"
        ],
        "title": "GroupRequest",
        "type": "object"
      },
      "GroupRule": {
        "properties": {
          "field": {
            "pattern": "^(name|state|agent_id|metadata\\.environment)$",
            "title": "Field",
            "type": "string"
          },
          "op": {
            "pattern": "^(eq|neq|in)$",
            "title": "Op",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "field",
          "op",
          "value"
        ],
        "title": "GroupRule",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "ImportRequest": {
        "properties": {
          "chain_id": {
            "title": "Chain Id",
            "type": "string"
          }
        },
        "required": [
          "chain_id"
        ],
        "title": "ImportRequest",
        "type": "object"
      },
      "LegacyRealtimeEvent": {
        "properties": {
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          },
          "timestamp": {
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "payload",
          "timestamp"
        ],
        "title": "LegacyRealtimeEvent",
        "type": "object"
      },
      "OperatorAdmissionError": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "max_targets": {
                    "type": "integer"
                  },
                  "message": {
                    "type": "string"
                  },
                  "outcome": {
                    "type": "string"
                  },
                  "rotation_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "loc": {
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "integer"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "loc",
                    "msg",
                    "type"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            ]
          }
        },
        "required": [
          "detail"
        ],
        "type": "object"
      },
      "OrchestratorAPIKeyCreate": {
        "description": "Request model for creating orchestrator API key",
        "properties": {
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "OrchestratorAPIKeyCreate",
        "type": "object"
      },
      "OrchestratorAPIKeyUpdate": {
        "description": "Request model for updating orchestrator API key",
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "OrchestratorAPIKeyUpdate",
        "type": "object"
      },
      "RealtimeErrorDetail": {
        "properties": {
          "code": {
            "enum": [
              "realtime_contract_unsupported",
              "realtime_parameters_conflict",
              "realtime_cursor_invalid",
              "realtime_cursor_contract_required",
              "realtime_timestamp_invalid"
            ],
            "title": "Code",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "RealtimeErrorDetail",
        "type": "object"
      },
      "RealtimeErrorResponse": {
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/RealtimeErrorDetail"
          }
        },
        "required": [
          "detail"
        ],
        "title": "RealtimeErrorResponse",
        "type": "object"
      },
      "RealtimePage": {
        "properties": {
          "delivery": {
            "const": "best_effort",
            "title": "Delivery",
            "type": "string"
          },
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CursorRealtimeEvent"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "title": "Next Cursor",
            "type": "string"
          },
          "reset_reason": {
            "anyOf": [
              {
                "enum": [
                  "initial",
                  "process_changed",
                  "scope_changed",
                  "cursor_expired",
                  "history_lost"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reset Reason"
          },
          "reset_required": {
            "title": "Reset Required",
            "type": "boolean"
          },
          "retention_seconds": {
            "const": 300,
            "title": "Retention Seconds",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "has_more",
          "reset_required",
          "reset_reason",
          "retention_seconds",
          "delivery"
        ],
        "title": "RealtimePage",
        "type": "object"
      },
      "ReportCreate": {
        "description": "Request model for creating report",
        "properties": {
          "enabled": {
            "default": true,
            "title": "Enabled",
            "type": "boolean"
          },
          "filters": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filters"
          },
          "format": {
            "default": "pdf",
            "title": "Format",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "recipients": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipients"
          },
          "report_type": {
            "title": "Report Type",
            "type": "string"
          },
          "schedule": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Schedule"
          }
        },
        "required": [
          "name",
          "report_type"
        ],
        "title": "ReportCreate",
        "type": "object"
      },
      "RestoreCreateRequest": {
        "additionalProperties": false,
        "description": "Normalize defaults before identity matching; refuse ignored intent.",
        "properties": {
          "adjust_config": {
            "default": false,
            "title": "Adjust Config",
            "type": "boolean"
          },
          "auto_define": {
            "default": false,
            "title": "Auto Define",
            "type": "boolean"
          },
          "backup_id": {
            "minLength": 1,
            "title": "Backup Id",
            "type": "string"
          },
          "kubevirt_target": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kubevirt Target"
          },
          "native_target": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Native Target"
          },
          "restore_to_original": {
            "default": true,
            "title": "Restore To Original",
            "type": "boolean"
          },
          "selected_disks": {
            "items": {
              "type": "string"
            },
            "title": "Selected Disks",
            "type": "array"
          },
          "target_vm_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Vm Name"
          },
          "until_checkpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Until Checkpoint"
          }
        },
        "required": [
          "backup_id"
        ],
        "title": "RestoreCreateRequest",
        "type": "object"
      },
      "RestoreRequest": {
        "properties": {
          "backup_id": {
            "title": "Backup Id",
            "type": "string"
          }
        },
        "required": [
          "backup_id"
        ],
        "title": "RestoreRequest",
        "type": "object"
      },
      "RotateKeyRequest": {
        "properties": {
          "new_name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "New Name",
            "type": "string"
          }
        },
        "required": [
          "new_name"
        ],
        "title": "RotateKeyRequest",
        "type": "object"
      },
      "ScheduleCreate": {
        "description": "Request model for creating schedule",
        "properties": {
          "backup_policy": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Backup Policy"
          },
          "backup_type": {
            "default": "full",
            "enum": [
              "full",
              "incremental",
              "automatic"
            ],
            "title": "Backup Type",
            "type": "string"
          },
          "cron_expression": {
            "title": "Cron Expression",
            "type": "string"
          },
          "enabled": {
            "default": false,
            "title": "Enabled",
            "type": "boolean"
          },
          "exclude_disks": {
            "items": {
              "type": "string"
            },
            "maxItems": 256,
            "title": "Exclude Disks",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "retention_days": {
            "default": 30,
            "maximum": 36500.0,
            "minimum": 1.0,
            "title": "Retention Days",
            "type": "integer"
          },
          "tags": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": {},
            "title": "Tags"
          },
          "vm_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vm Group Id"
          },
          "vm_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vm Id"
          },
          "workers": {
            "description": "Per-backup worker overrides are unsupported",
            "title": "Workers",
            "type": "null"
          }
        },
        "required": [
          "name",
          "cron_expression"
        ],
        "title": "ScheduleCreate",
        "type": "object"
      },
      "ScheduleRequest": {
        "properties": {
          "backup_type": {
            "default": "full",
            "pattern": "^(full|incremental)$",
            "title": "Backup Type",
            "type": "string"
          },
          "cron_expression": {
            "maxLength": 80,
            "minLength": 5,
            "title": "Cron Expression",
            "type": "string"
          },
          "enabled": {
            "default": true,
            "title": "Enabled",
            "type": "boolean"
          },
          "name": {
            "maxLength": 80,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "retention_days": {
            "default": 30,
            "maximum": 90.0,
            "minimum": 1.0,
            "title": "Retention Days",
            "type": "integer"
          },
          "vm_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vm Group Id"
          },
          "vm_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vm Id"
          }
        },
        "required": [
          "name",
          "cron_expression"
        ],
        "title": "ScheduleRequest",
        "type": "object"
      },
      "ScheduleUpdate": {
        "description": "Request model for updating schedule",
        "properties": {
          "backup_policy": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Backup Policy"
          },
          "backup_type": {
            "anyOf": [
              {
                "enum": [
                  "full",
                  "incremental",
                  "automatic"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Backup Type"
          },
          "cron_expression": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cron Expression"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "exclude_disks": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "maxItems": 256,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exclude Disks"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "retention_days": {
            "anyOf": [
              {
                "maximum": 36500.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retention Days"
          },
          "tags": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "workers": {
            "description": "Per-backup worker overrides are unsupported",
            "title": "Workers",
            "type": "null"
          }
        },
        "title": "ScheduleUpdate",
        "type": "object"
      },
      "UserCreate": {
        "additionalProperties": false,
        "description": "Request model for creating user",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "password": {
            "minLength": 1,
            "title": "Password",
            "type": "string"
          },
          "role": {
            "default": "viewer",
            "enum": [
              "admin",
              "operator",
              "viewer"
            ],
            "title": "Role",
            "type": "string"
          },
          "username": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Username",
            "type": "string"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "title": "UserCreate",
        "type": "object"
      },
      "UserUpdate": {
        "additionalProperties": false,
        "description": "Request model for updating user",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "is_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Active"
          },
          "password": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "role": {
            "anyOf": [
              {
                "enum": [
                  "admin",
                  "operator",
                  "viewer"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          },
          "role_source": {
            "anyOf": [
              {
                "enum": [
                  "local",
                  "oidc"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Source"
          },
          "username": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          }
        },
        "title": "UserUpdate",
        "type": "object"
      },
      "VMGroupAddVMs": {
        "description": "Request model for adding VMs to group",
        "properties": {
          "vm_ids": {
            "items": {
              "type": "string"
            },
            "title": "Vm Ids",
            "type": "array"
          }
        },
        "required": [
          "vm_ids"
        ],
        "title": "VMGroupAddVMs",
        "type": "object"
      },
      "VMGroupCreate": {
        "description": "Request model for creating VM group",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "group_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "static",
            "title": "Group Type"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rules": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules"
          },
          "rules_match": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "all",
            "title": "Rules Match"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": [],
            "title": "Tags"
          }
        },
        "required": [
          "name"
        ],
        "title": "VMGroupCreate",
        "type": "object"
      },
      "VMGroupUpdate": {
        "description": "Request model for updating VM group",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "group_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Type"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "rules": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules"
          },
          "rules_match": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Match"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          }
        },
        "title": "VMGroupUpdate",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "VerificationCommand": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "default": "start",
            "enum": [
              "start",
              "resume",
              "cancel"
            ],
            "title": "Action",
            "type": "string"
          },
          "verification_id": {
            "title": "Verification Id",
            "type": "string"
          }
        },
        "required": [
          "verification_id"
        ],
        "title": "VerificationCommand",
        "type": "object"
      }
    },
    "securitySchemes": {
      "AgentCandidate": {
        "description": "Pending candidate proof authorizes only its exact activation route.",
        "in": "header",
        "name": "X-Agent-Key",
        "type": "apiKey"
      },
      "AgentKey": {
        "in": "header",
        "name": "X-Agent-Key",
        "type": "apiKey"
      },
      "AgentMTLS": {
        "description": "Transport-verified client certificate; never a caller-supplied fingerprint header.",
        "type": "mutualTLS"
      },
      "DemoSession": {
        "in": "cookie",
        "name": "vnbui_demo_session",
        "type": "apiKey"
      },
      "OAuth2PasswordBearer": {
        "flows": {
          "password": {
            "scopes": {},
            "tokenUrl": "/api/v1/auth/login"
          }
        },
        "type": "oauth2"
      },
      "OIDCPKCE": {
        "in": "cookie",
        "name": "oidc_pkce",
        "type": "apiKey"
      },
      "OIDCState": {
        "in": "cookie",
        "name": "oidc_state",
        "type": "apiKey"
      },
      "RegistrationKey": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "KVM Backup Orchestration Platform",
    "title": "Vesta API",
    "version": "6.0.75"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/activity": {
      "get": {
        "description": "Unified activity feed combining user actions and system events.\n\nMerges ActivityLog (user actions) and SystemEvent (agent/system events)\ninto a single chronological feed.\n\nArgs:\n    skip: Number of records to skip\n    limit: Max records to return (max 100)\n    source: Filter by source - \"user\" for ActivityLog, \"system\" for SystemEvent, None for both\n    action: Filter by action type (e.g., \"backup_created\") - applies to user events only\n    resource_type: Filter by resource type (e.g., \"backup\", \"vm_group\")\n\nReturns:\n    Combined activity list sorted by timestamp",
        "operationId": "get_activity_api_v1_activity_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          },
          {
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Action"
            }
          },
          {
            "in": "query",
            "name": "resource_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Type"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activities": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "attribution": {
                            "type": "string"
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "details": {
                            "additionalProperties": true,
                            "description": "Extensible domain metadata; keys are not a closed schema.",
                            "type": "object"
                          },
                          "event_type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "org_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resource_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resource_type": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "enum": [
                              "user",
                              "system"
                            ],
                            "type": "string"
                          },
                          "source_name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "source_name",
                          "event_type",
                          "resource_type",
                          "resource_id",
                          "details",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "activities",
                    "total",
                    "skip",
                    "limit",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Activity",
        "tags": [
          "activity"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending, source descending, id descending",
          "pagination": "offset",
          "snapshot": false
        }
      }
    },
    "/api/v1/activity/unified": {
      "get": {
        "description": "DEPRECATED: Use /api/v1/activity instead. This endpoint will be removed in v4.0.",
        "operationId": "get_unified_activity_deprecated_api_v1_activity_unified_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activities": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "attribution": {
                            "type": "string"
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "details": {
                            "additionalProperties": true,
                            "description": "Extensible domain metadata; keys are not a closed schema.",
                            "type": "object"
                          },
                          "event_type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "org_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resource_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resource_type": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "source": {
                            "enum": [
                              "user",
                              "system"
                            ],
                            "type": "string"
                          },
                          "source_name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "source_name",
                          "event_type",
                          "resource_type",
                          "resource_id",
                          "details",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "activities",
                    "total",
                    "skip",
                    "limit",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Unified Activity Deprecated",
        "tags": [
          "activity"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending, source descending, id descending",
          "pagination": "offset",
          "snapshot": false
        }
      }
    },
    "/api/v1/agents": {
      "get": {
        "description": "List all agents (protected)",
        "operationId": "list_agents_api_v1_agents_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "display_name": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hostname": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "ip_address": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "last_heartbeat": {
                        "anyOf": [
                          {
                            "format": "date-time",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "metrics": {
                        "additionalProperties": true,
                        "description": "Extensible domain metadata; keys are not a closed schema.",
                        "type": "object"
                      },
                      "port": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "vm_count": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "hostname",
                      "display_name",
                      "status",
                      "ip_address",
                      "port",
                      "version",
                      "last_heartbeat",
                      "vm_count",
                      "metrics"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Agents",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "unspecified",
          "pagination": "unpaginated",
          "snapshot": false
        }
      }
    },
    "/api/v1/agents/backups/{backup_id}/checkpoint-proof": {
      "post": {
        "operationId": "transaction_checkpoint_proof_api_v1_agents_backups__backup_id__checkpoint_proof_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Transaction Checkpoint Proof",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/finalize-intent": {
      "post": {
        "operationId": "transaction_finalize_intent_api_v1_agents_backups__backup_id__finalize_intent_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Transaction Finalize Intent",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-admission": {
      "post": {
        "operationId": "native_admission_api_v1_agents_backups__backup_id__native_admission_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Admission",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-closed-failure": {
      "post": {
        "operationId": "native_closed_failure_api_v1_agents_backups__backup_id__native_closed_failure_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Closed Failure",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-fenced-failure": {
      "post": {
        "operationId": "native_fenced_failure_api_v1_agents_backups__backup_id__native_fenced_failure_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Fenced Failure",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-inventory": {
      "post": {
        "operationId": "native_inventory_api_v1_agents_backups__backup_id__native_inventory_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Inventory",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-no-effect": {
      "post": {
        "operationId": "native_no_effect_api_v1_agents_backups__backup_id__native_no_effect_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native No Effect",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-publication": {
      "post": {
        "operationId": "native_publication_api_v1_agents_backups__backup_id__native_publication_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Publication",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/native-transaction": {
      "post": {
        "operationId": "native_transaction_api_v1_agents_backups__backup_id__native_transaction_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Native Transaction",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/prepared-receipt": {
      "post": {
        "description": "A durable acceptance permits finalize, never completion or visibility.\n\nThe agent must retain its prepared journal until this response is received.\nAuthentication installs persisted tenant identity before any reservation read.",
        "operationId": "prepared_receipt_api_v1_agents_backups__backup_id__prepared_receipt_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Prepared Receipt",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/storage-control": {
      "post": {
        "description": "Finite, authenticated control; signed authority never enters durable state.",
        "operationId": "storage_control_api_v1_agents_backups__backup_id__storage_control_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Storage Control",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/storage-retirement": {
      "post": {
        "description": "Reveal only the exact reviewed release to its original agent.",
        "operationId": "storage_retirement_api_v1_agents_backups__backup_id__storage_retirement_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Storage Retirement",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/backups/{backup_id}/transaction-key": {
      "post": {
        "description": "Authenticated, no-store, memory-only key delivery for exact live custody.",
        "operationId": "transaction_key_api_v1_agents_backups__backup_id__transaction_key_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Transaction Key",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/register": {
      "post": {
        "description": "Agent self-registration endpoint with secure key generation.\n\nRequires valid registration key from AgentRegistrationKey table.\nValidates key expiration, max uses, and enabled status.",
        "operationId": "register_agent_api_v1_agents_register_post",
        "parameters": [
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "title": "X-Api-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Agent Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "RegistrationKey": []
          }
        ],
        "summary": "Register Agent",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "agent-registration"
      }
    },
    "/api/v1/agents/{agent_id}": {
      "delete": {
        "description": "Delete agent (admin only).\n\nArgs:\n    agent_id: Agent ID to delete\n    cascade: If True, delete VMs only when they have no backup custody",
        "operationId": "delete_agent_api_v1_agents__agent_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cascade",
            "required": false,
            "schema": {
              "default": false,
              "title": "Cascade",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Agent",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get agent details by ID",
        "operationId": "get_agent_details_api_v1_agents__agent_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Agent Details",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "user-session"
      },
      "patch": {
        "description": "Update agent settings (admin only)",
        "operationId": "update_agent_api_v1_agents__agent_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Agent",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/agents/{agent_id}/key-rotations": {
      "get": {
        "operationId": "list_agent_key_rotations_api_v1_agents__agent_id__key_rotations_get",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "activated_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agent_id": {
                            "type": "string"
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expires_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "key_prefix": {
                            "type": "string"
                          },
                          "rotation_id": {
                            "type": "string"
                          },
                          "state": {
                            "enum": [
                              "pending",
                              "activated",
                              "cancelled",
                              "expired"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "rotation_id",
                          "agent_id",
                          "state",
                          "key_prefix",
                          "created_at",
                          "expires_at",
                          "activated_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Agent Key Rotations",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/agents/{agent_id}/key-rotations/{rotation_id}": {
      "delete": {
        "operationId": "cancel_agent_key_rotation_api_v1_agents__agent_id__key_rotations__rotation_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rotation_id",
            "required": true,
            "schema": {
              "title": "Rotation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activated_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent_id": {
                      "type": "string"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expires_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "key_prefix": {
                      "type": "string"
                    },
                    "rotation_id": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "activated",
                        "cancelled",
                        "expired"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "rotation_id",
                    "agent_id",
                    "state",
                    "key_prefix",
                    "created_at",
                    "expires_at",
                    "activated_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Cancel Agent Key Rotation",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "get": {
        "operationId": "get_agent_key_rotation_api_v1_agents__agent_id__key_rotations__rotation_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rotation_id",
            "required": true,
            "schema": {
              "title": "Rotation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activated_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent_id": {
                      "type": "string"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expires_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "key_prefix": {
                      "type": "string"
                    },
                    "rotation_id": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "activated",
                        "cancelled",
                        "expired"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "rotation_id",
                    "agent_id",
                    "state",
                    "key_prefix",
                    "created_at",
                    "expires_at",
                    "activated_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Agent Key Rotation",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/agents/{agent_id}/key-rotations/{rotation_id}/activate": {
      "post": {
        "description": "Candidate proof is limited to this exact rotation; no user Bearer substitute.",
        "operationId": "activate_agent_key_api_v1_agents__agent_id__key_rotations__rotation_id__activate_post",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rotation_id",
            "required": true,
            "schema": {
              "title": "Rotation Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Agent-Key"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activated_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent_id": {
                      "type": "string"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expires_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "key_prefix": {
                      "type": "string"
                    },
                    "rotation_id": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "activated",
                        "cancelled",
                        "expired"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "rotation_id",
                    "agent_id",
                    "state",
                    "key_prefix",
                    "created_at",
                    "expires_at",
                    "activated_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key."
          }
        },
        "security": [
          {
            "AgentCandidate": []
          }
        ],
        "summary": "Activate Agent Key",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "agent-candidate-activation-only",
        "x-transport-policy": "Candidate proof is bound to this agent and rotation; it grants no ordinary agent authority. When mTLS is required, a current certificate for the same agent is required in addition to the candidate."
      }
    },
    "/api/v1/agents/{agent_id}/pending-jobs": {
      "get": {
        "description": "Get backup jobs orchestrator believes are running on this agent.\n\nUsed by agent on startup to reconcile state - determine which backups\nthe orchestrator thinks are running so agent can verify reality.\n\nReturns:\n    dict: backups list with id, vm_name, storage_path, started_at",
        "operationId": "get_agent_pending_jobs_api_v1_agents__agent_id__pending_jobs_get",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Get Agent Pending Jobs",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/agents/{agent_id}/rotate-key": {
      "post": {
        "description": "Stage a one-time candidate; the current agent key remains active until proof.",
        "operationId": "rotate_agent_key_api_v1_agents__agent_id__rotate_key_post",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "discriminator": {
                    "propertyName": "secret_delivery"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "activated_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agent_id": {
                          "type": "string"
                        },
                        "api_key": {
                          "description": "First response only. Permanently absent from replay and outcome lookup.",
                          "type": "string",
                          "writeOnly": true
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "rotation_id": {
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "one_time",
                          "type": "string"
                        },
                        "state": {
                          "enum": [
                            "pending",
                            "activated",
                            "cancelled",
                            "expired"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "rotation_id",
                        "agent_id",
                        "state",
                        "key_prefix",
                        "created_at",
                        "expires_at",
                        "activated_at",
                        "request_id",
                        "secret_delivery",
                        "api_key"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "activated_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agent_id": {
                          "type": "string"
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "rotation_id": {
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "unavailable",
                          "type": "string"
                        },
                        "state": {
                          "enum": [
                            "pending",
                            "activated",
                            "cancelled",
                            "expired"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "rotation_id",
                        "agent_id",
                        "state",
                        "key_prefix",
                        "created_at",
                        "expires_at",
                        "activated_at",
                        "request_id",
                        "secret_delivery"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Rotate Agent Key",
        "tags": [
          "agents"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-operator-action": "credential.agent.rotate"
      }
    },
    "/api/v1/agents/{agent_id}/settings": {
      "patch": {
        "description": "Update agent runtime settings (admin only).\n\nSettings are delivered to agent via heartbeat response and applied\nunless overridden by local agent.env configuration.\n\nPre-condition: No active backups on agent (returns 409 if busy).",
        "operationId": "update_agent_settings_api_v1_agents__agent_id__settings_patch",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Agent Settings",
        "tags": [
          "agents"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/agents/{hostname}/vms": {
      "post": {
        "description": "Sync VMs from agent - requires agent API key authentication.",
        "operationId": "sync_agent_vms_api_v1_agents__hostname__vms_post",
        "parameters": [
          {
            "in": "path",
            "name": "hostname",
            "required": true,
            "schema": {
              "title": "Hostname",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Vms Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Sync Agent Vms",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "description": "Login endpoint - returns JWT token",
        "operationId": "login_api_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Body_login_api_v1_auth_login_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Login",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "description": "Logout endpoint. JWT is stateless so this is a no-op server-side;\nthe client clears its token.",
        "operationId": "logout_api_v1_auth_logout_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Logout",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "description": "Persisted profile only. Optional display fields are explicit JSON nulls.",
        "operationId": "get_current_user_info_api_v1_auth_me_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Current User Info",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/auth/oidc/callback": {
      "get": {
        "description": "Handle OIDC callback after authentication.\n\nExchanges code for tokens, creates/updates user, returns JWT.\nRedirects to frontend with token in URL fragment.",
        "operationId": "oidc_callback_api_v1_auth_oidc_callback_get",
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "title": "Code",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "title": "State",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "title": "Error",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error_description",
            "required": false,
            "schema": {
              "title": "Error Description",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OIDCPKCE": [],
            "OIDCState": []
          }
        ],
        "summary": "Oidc Callback",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "browser-oidc-callback",
        "x-transport-policy": "State query and browser state cookie must match; PKCE cookie and provider response are verified. This is not user Bearer authentication."
      }
    },
    "/api/v1/auth/oidc/login": {
      "get": {
        "description": "Initiate OIDC login flow.\n\nRedirects user to OIDC provider. Frontend should redirect to this URL\nor fetch it and redirect client-side.\n\nReturns:\n    302 redirect to OIDC provider, or 400 if OIDC not configured",
        "operationId": "oidc_login_api_v1_auth_oidc_login_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Oidc Login",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/auth/oidc/status": {
      "get": {
        "description": "Check if OIDC is enabled and configured.\n\nPublic endpoint - no auth required.\nFrontend uses this to show/hide SSO login button.",
        "operationId": "get_oidc_status_api_v1_auth_oidc_status_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get Oidc Status",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/auth/oidc/test": {
      "post": {
        "description": "Test OIDC configuration by fetching discovery document.\n\nRequires persisted installation authority. Tests that the issuer URL is accessible\nand returns valid OIDC discovery metadata.",
        "operationId": "test_oidc_configuration_api_v1_auth_oidc_test_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Test Oidc Configuration",
        "tags": [
          "auth"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "description": "Refresh access token. Issues a new JWT for the current user.",
        "operationId": "refresh_token_api_v1_auth_refresh_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Refresh Token",
        "tags": [
          "auth"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups": {
      "get": {
        "description": "List backups with pagination and optional filters.\n\n- skip: Number of records to skip (default: 0)\n- limit: Maximum number of records to return (default: 50, max: 100)\n- vm_id: Filter by specific VM\n- status: Filter by status (pending, running, completed, failed)\n- search: Search by VM name (partial match, case-insensitive)\n- date_from: Filter backups created after this date (ISO format: 2025-01-01)\n- date_to: Filter backups created before this date (ISO format: 2025-12-31)\n- tag_key: Filter by tag key (requires tag_value)\n- tag_value: Filter by tag value (requires tag_key)",
        "operationId": "list_backups_api_v1_backups_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "vm_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vm Id"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "in": "query",
            "name": "date_from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date From"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date To"
            }
          },
          {
            "in": "query",
            "name": "tag_key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag Key"
            }
          },
          {
            "in": "query",
            "name": "tag_value",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag Value"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "has_more": {
                      "type": "boolean"
                    },
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "backup_type": {
                            "type": "string"
                          },
                          "capacity_state": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completed_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "operator_dispatch": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "request_id": {
                                    "format": "uuid",
                                    "type": "string"
                                  },
                                  "state": {
                                    "enum": [
                                      "pending",
                                      "dispatching",
                                      "delivered",
                                      "held"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "state",
                                  "reason",
                                  "request_id"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "progress": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retention_days": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "size_bytes": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          },
                          "storage_path": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "storage_progress": {
                            "anyOf": [
                              {
                                "additionalProperties": true,
                                "description": "Extensible domain metadata; keys are not a closed schema.",
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tags": {
                            "additionalProperties": true,
                            "description": "Extensible domain metadata; keys are not a closed schema.",
                            "type": "object"
                          },
                          "vm_id": {
                            "type": "string"
                          },
                          "vm_name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "vm_id",
                          "vm_name",
                          "status",
                          "progress",
                          "storage_progress",
                          "size_bytes",
                          "retention_days",
                          "backup_type",
                          "capacity_state",
                          "storage_path",
                          "tags",
                          "created_at",
                          "completed_at",
                          "operator_dispatch"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "skip",
                    "limit",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Backups",
        "tags": [
          "backups"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending, id descending",
          "pagination": "offset",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create a new backup job for a VM (operator or admin only).\nTriggers async backup execution.",
        "operationId": "create_backup_api_v1_backups_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackupCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "discriminator": {
                    "propertyName": "status"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "executor": {
                          "enum": [
                            "real",
                            "mock"
                          ],
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "status": {
                          "const": "pending",
                          "type": "string"
                        },
                        "vm_id": {
                          "type": "string"
                        },
                        "vm_name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "vm_id",
                        "vm_name",
                        "status",
                        "message",
                        "executor",
                        "request_id"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "queue_id": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "status": {
                          "const": "queued",
                          "type": "string"
                        },
                        "vm_id": {
                          "type": "string"
                        },
                        "vm_name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "queue_id",
                        "vm_id",
                        "vm_name",
                        "message",
                        "request_id"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Backup",
        "tags": [
          "backups"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session",
        "x-operator-action": "backup.create"
      }
    },
    "/api/v1/backups/bulk-create": {
      "post": {
        "description": "Atomically freeze targets, per-target outcomes and original dispatches.",
        "operationId": "bulk_create_backups_api_v1_backups_bulk_create_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkBackupCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "details": {
                      "additionalProperties": false,
                      "properties": {
                        "created": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "backup_id": {
                                "type": "string"
                              },
                              "vm_id": {
                                "type": "string"
                              },
                              "vm_name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "backup_id",
                              "vm_id",
                              "vm_name"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "failed": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "vm_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "vm_id",
                              "reason"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "skipped": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "vm_id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "vm_id",
                              "reason"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "created",
                        "skipped",
                        "failed"
                      ],
                      "type": "object"
                    },
                    "request_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "summary": {
                      "additionalProperties": false,
                      "properties": {
                        "created": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "failed": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "skipped": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "total": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "total",
                        "created",
                        "skipped",
                        "failed"
                      ],
                      "type": "object"
                    },
                    "targets": {
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 200,
                      "minItems": 1,
                      "type": "array",
                      "uniqueItems": true
                    }
                  },
                  "required": [
                    "targets",
                    "summary",
                    "details",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Bulk Create Backups",
        "tags": [
          "bulk"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session",
        "x-operator-action": "backup.bulk_create"
      }
    },
    "/api/v1/backups/bulk-delete": {
      "post": {
        "description": "Delete multiple backups at once (operator or admin only)",
        "operationId": "bulk_delete_backups_api_v1_backups_bulk_delete_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkBackupDelete"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Bulk Delete Backups",
        "tags": [
          "bulk"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/bulk-tag": {
      "post": {
        "description": "Add or update tags on multiple backups at once (operator or admin only)",
        "operationId": "bulk_tag_backups_api_v1_backups_bulk_tag_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkBackupTag"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Bulk Tag Backups",
        "tags": [
          "bulk"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/cleanup": {
      "post": {
        "description": "Clean up expired backups based on retention policies (admin only).\n\n- dry_run: If True, return what would be deleted without actually deleting\n\nUses RetentionPolicyEnforcer which:\n- Deletes from storage (S3 or filesystem)\n- Retains accepted-generation catalog tombstones and original custody\n- Logs all deletions",
        "operationId": "cleanup_expired_backups_api_v1_backups_cleanup_post",
        "parameters": [
          {
            "in": "query",
            "name": "dry_run",
            "required": false,
            "schema": {
              "default": false,
              "title": "Dry Run",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Cleanup Expired Backups",
        "tags": [
          "backups"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/queue": {
      "get": {
        "description": "Get the current backup queue status.",
        "operationId": "get_backup_queue_api_v1_backups_queue_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "available_slots": {
                      "type": "integer"
                    },
                    "max_concurrent": {
                      "type": "integer"
                    },
                    "processing": {
                      "type": "integer"
                    },
                    "queue": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_by": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "priority": {
                            "type": "integer"
                          },
                          "queued_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "schedule_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vm_id": {
                            "type": "string"
                          },
                          "vm_name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "vm_id",
                          "vm_name",
                          "priority",
                          "position",
                          "queued_at",
                          "schedule_id",
                          "created_by"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "running_backups": {
                      "type": "integer"
                    },
                    "total_queued": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "queue",
                    "total_queued",
                    "processing",
                    "running_backups",
                    "max_concurrent",
                    "available_slots"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backup Queue",
        "tags": [
          "queue"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "priority descending, queued_at ascending; ties unspecified",
          "pagination": "unpaginated queued state only",
          "snapshot": false
        }
      },
      "post": {
        "description": "Add a backup to the queue instead of starting immediately.",
        "operationId": "add_backup_to_queue_api_v1_backups_queue_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackupQueueCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "hold_reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer"
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "queued_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "request_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "started_backup_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "vm_id": {
                      "type": "string"
                    },
                    "vm_name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "vm_id",
                    "vm_name",
                    "position",
                    "priority",
                    "queued_at",
                    "status",
                    "hold_reason",
                    "started_backup_id",
                    "message",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Add Backup To Queue",
        "tags": [
          "queue"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session",
        "x-operator-action": "queue.create"
      }
    },
    "/api/v1/backups/queue/{queue_id}": {
      "delete": {
        "description": "Cancel a queued backup.",
        "operationId": "cancel_queued_backup_api_v1_backups_queue__queue_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "queue_id",
            "required": true,
            "schema": {
              "title": "Queue Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Cancel Queued Backup",
        "tags": [
          "queue"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "A durable queue identity remains readable after it leaves the active list.",
        "operationId": "get_backup_queue_item_api_v1_backups_queue__queue_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "queue_id",
            "required": true,
            "schema": {
              "title": "Queue Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "backup_status": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "hold_reason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "position": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "queued_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "started_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "started_backup_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "vm_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "vm_id",
                    "status",
                    "hold_reason",
                    "started_backup_id",
                    "backup_status",
                    "position",
                    "priority",
                    "queued_at",
                    "started_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized current state; the immutable receipt remains separate from current dispatch/resource state."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backup Queue Item",
        "tags": [
          "queue"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}": {
      "delete": {
        "description": "Delete exact owned payload, retaining its attributable tombstone.",
        "operationId": "delete_backup_api_v1_backups__backup_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "force",
            "required": false,
            "schema": {
              "default": false,
              "title": "Force",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Backup",
        "tags": [
          "backups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get backup status and details.",
        "operationId": "get_backup_api_v1_backups__backup_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "backup_type": {
                      "type": "string"
                    },
                    "completed_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "operator_dispatch": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "reason": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "state": {
                              "enum": [
                                "pending",
                                "dispatching",
                                "delivered",
                                "held"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "state",
                            "reason",
                            "request_id"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retention_days": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "scheduler_decision": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "size_bytes": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "storage_path": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "storage_progress": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tags": {
                      "additionalProperties": true,
                      "description": "Extensible domain metadata; keys are not a closed schema.",
                      "type": "object"
                    },
                    "vm_id": {
                      "type": "string"
                    },
                    "vm_name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "vm_id",
                    "vm_name",
                    "status",
                    "progress",
                    "storage_progress",
                    "size_bytes",
                    "retention_days",
                    "backup_type",
                    "storage_path",
                    "tags",
                    "created_at",
                    "completed_at",
                    "operator_dispatch",
                    "scheduler_decision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backup",
        "tags": [
          "backups"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}/restore-bundle": {
      "get": {
        "description": "Export accepted chain metadata for vnbui-restore; no keys or credentials.",
        "operationId": "get_restore_bundle_api_v1_backups__backup_id__restore_bundle_get",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Restore Bundle",
        "tags": [
          "backups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}/resume": {
      "post": {
        "description": "Redeliver only this backup's original durable attempt; never replace it.",
        "operationId": "resume_attempt_api_v1_backups__backup_id__resume_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Resume Attempt",
        "tags": [
          "backups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}/retry-upload": {
      "post": {
        "description": "Attribute manual retry without converting uncertainty to send authority.",
        "operationId": "retry_upload_api_v1_backups__backup_id__retry_upload_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Retry Upload",
        "tags": [
          "backups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}/verifications": {
      "get": {
        "description": "List verification history for a backup",
        "operationId": "list_backup_verifications_api_v1_backups__backup_id__verifications_get",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Backup Verifications",
        "tags": [
          "verification"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/backups/{backup_id}/verify": {
      "post": {
        "description": "Admit original-ID read-only work; an acknowledgement is never proof.",
        "operationId": "verify_backup_api_v1_backups__backup_id__verify_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Verify Backup",
        "tags": [
          "verification"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/bootstrap": {
      "get": {
        "description": "Minimal prelogin installation data without license or customer details.",
        "operationId": "get_bootstrap_api_v1_bootstrap_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get Bootstrap",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/compatibility": {
      "get": {
        "description": "Check API/frontend and online agents owned by the persisted user's organization.\n\nReturns overall system compatibility status and per-component details.\nFrontend can pass its version via X-Frontend-Version header.",
        "operationId": "get_compatibility_api_v1_compatibility_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Compatibility",
        "tags": [
          "public"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/config/realtime": {
      "get": {
        "description": "Get real-time configuration for the client.",
        "operationId": "get_realtime_config_api_v1_config_realtime_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Realtime Config",
        "tags": [
          "realtime"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/dashboard/backup-trends": {
      "get": {
        "description": "Get backup trends over time",
        "operationId": "get_backup_trends_api_v1_dashboard_backup_trends_get",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "default": 7,
              "title": "Days",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backup Trends",
        "tags": [
          "dashboard"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/dashboard/storage-usage": {
      "get": {
        "description": "Get storage usage breakdown by agent",
        "operationId": "get_storage_usage_api_v1_dashboard_storage_usage_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Storage Usage",
        "tags": [
          "dashboard"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/dashboard/summary": {
      "get": {
        "description": "Get dashboard summary statistics",
        "operationId": "get_dashboard_summary_api_v1_dashboard_summary_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Dashboard Summary",
        "tags": [
          "dashboard"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/demo/backups": {
      "post": {
        "operationId": "create_backup_api_v1_demo_backups_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Create Backup",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/backups/{backup_id}/retry": {
      "post": {
        "operationId": "retry_backup_api_v1_demo_backups__backup_id__retry_post",
        "parameters": [
          {
            "in": "path",
            "name": "backup_id",
            "required": true,
            "schema": {
              "title": "Backup Id",
              "type": "string"
            }
          },
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Retry Backup",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/groups": {
      "post": {
        "operationId": "create_group_api_v1_demo_groups_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Create Group",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/groups/preview": {
      "post": {
        "operationId": "preview_group_api_v1_demo_groups_preview_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Preview Group",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/groups/{group_id}": {
      "put": {
        "operationId": "update_group_api_v1_demo_groups__group_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          },
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Update Group",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/reset": {
      "post": {
        "operationId": "reset_session_api_v1_demo_reset_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Reset Session",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/restores": {
      "post": {
        "operationId": "create_restore_api_v1_demo_restores_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Create Restore",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/schedules": {
      "post": {
        "operationId": "create_schedule_api_v1_demo_schedules_post",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Create Schedule",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/schedules/{schedule_id}/run": {
      "post": {
        "operationId": "run_schedule_api_v1_demo_schedules__schedule_id__run_post",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          },
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Run Schedule",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/sessions": {
      "post": {
        "operationId": "create_session_api_v1_demo_sessions_post",
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [],
        "summary": "Create Session",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "public-demo-bootstrap"
      }
    },
    "/api/v1/demo/sessions/current": {
      "delete": {
        "operationId": "destroy_session_api_v1_demo_sessions_current_delete",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Destroy Session",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      },
      "get": {
        "operationId": "current_session_api_v1_demo_sessions_current_get",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Current Session",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/demo/state": {
      "get": {
        "operationId": "get_state_api_v1_demo_state_get",
        "parameters": [
          {
            "in": "cookie",
            "name": "vnbui_demo_session",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Vnbui Demo Session"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "DemoSession": []
          }
        ],
        "summary": "Get State",
        "tags": [
          "demo"
        ],
        "x-credential-domain": "synthetic-demo-session"
      }
    },
    "/api/v1/encryption/keys": {
      "get": {
        "description": "List all encryption keys (metadata only, never key material)",
        "operationId": "list_keys_api_v1_encryption_keys_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "type": "string"
                          },
                          "backed_up": {
                            "type": "boolean"
                          },
                          "backed_up_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "backed_up_locations": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "backup_count": {
                            "type": "integer"
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "key_hash": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "provider": {
                            "type": "string"
                          },
                          "replaced_by_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rotated_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "algorithm",
                          "key_hash",
                          "status",
                          "provider",
                          "created_at",
                          "created_by",
                          "rotated_at",
                          "replaced_by_id",
                          "backed_up",
                          "backed_up_at",
                          "backed_up_locations",
                          "backup_count"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Keys",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "provider-defined; local created_at descending",
          "pagination": "unpaginated",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create a local KEK and its nonsecret admission receipt atomically.",
        "operationId": "create_key_api_v1_encryption_keys_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "type": "string"
                    },
                    "backed_up": {
                      "type": "boolean"
                    },
                    "backed_up_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "backed_up_locations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "backup_count": {
                      "type": "integer"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_by": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "key_hash": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "replaced_by_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "request_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "rotated_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "algorithm",
                    "key_hash",
                    "status",
                    "provider",
                    "created_at",
                    "created_by",
                    "rotated_at",
                    "replaced_by_id",
                    "backed_up",
                    "backed_up_at",
                    "backed_up_locations",
                    "backup_count",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Key",
        "tags": [
          "encryption"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-credential-domain": "user-session",
        "x-operator-action": "encryption.create"
      }
    },
    "/api/v1/encryption/keys/confirm-export": {
      "post": {
        "description": "Verify a saved encrypted export and record the admin's custody attestation.",
        "operationId": "confirm_export_custody_api_v1_encryption_keys_confirm_export_post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Confirm Export Custody",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/encryption/keys/export": {
      "post": {
        "description": "Export keys as password-protected file (local provider only)",
        "operationId": "export_keys_api_v1_encryption_keys_export_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportKeysRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/octet-stream": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Binary attachment. Saving the response does not confirm independent encryption-key backup custody.",
            "headers": {
              "Content-Disposition": {
                "description": "Attachment filename.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Export Keys",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/encryption/keys/import": {
      "post": {
        "description": "Import keys from password-protected export file",
        "operationId": "import_keys_api_v1_encryption_keys_import_post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_import_keys_api_v1_encryption_keys_import_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Import Keys",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/encryption/keys/{key_id}": {
      "get": {
        "description": "Get encryption key details + backup count",
        "operationId": "get_key_api_v1_encryption_keys__key_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Key",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/encryption/keys/{key_id}/revoke": {
      "post": {
        "description": "Revoke a key (soft delete). Fails if backups still reference it.",
        "operationId": "revoke_key_api_v1_encryption_keys__key_id__revoke_post",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Revoke Key",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/encryption/keys/{key_id}/rotate": {
      "post": {
        "description": "Replay names the same successor; a new request for a stale key conflicts.",
        "operationId": "rotate_key_api_v1_encryption_keys__key_id__rotate_post",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          },
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "type": "string"
                    },
                    "backed_up": {
                      "type": "boolean"
                    },
                    "backed_up_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "backed_up_locations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "backup_count": {
                      "type": "integer"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_by": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "key_hash": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "replaced_by_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "request_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "rotated_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "algorithm",
                    "key_hash",
                    "status",
                    "provider",
                    "created_at",
                    "created_by",
                    "rotated_at",
                    "replaced_by_id",
                    "backed_up",
                    "backed_up_at",
                    "backed_up_locations",
                    "backup_count",
                    "request_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Rotate Key",
        "tags": [
          "encryption"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-credential-domain": "user-session",
        "x-operator-action": "encryption.rotate"
      }
    },
    "/api/v1/encryption/provider": {
      "get": {
        "description": "Get current KMS provider info",
        "operationId": "get_provider_info_api_v1_encryption_provider_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Provider Info",
        "tags": [
          "encryption"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/features": {
      "get": {
        "description": "Report configured versus successfully loaded installed capabilities.\n\nCertificates are advisory and never select these flags.",
        "operationId": "get_features_api_v1_features_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get Features",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/groups": {
      "get": {
        "description": "List all VM groups with pagination",
        "operationId": "list_groups_api_v1_groups_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "in": "query",
            "name": "group_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Group Type"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Groups",
        "tags": [
          "groups"
        ],
        "x-credential-domain": "user-session"
      },
      "post": {
        "description": "Create a new VM group (operator or admin only)",
        "operationId": "create_group_api_v1_groups_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VMGroupCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Group",
        "tags": [
          "groups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/groups/{group_id}": {
      "delete": {
        "description": "Delete a VM group (operator or admin only)",
        "operationId": "delete_group_api_v1_groups__group_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Group",
        "tags": [
          "groups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get group details with paginated VM list",
        "operationId": "get_group_api_v1_groups__group_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Group",
        "tags": [
          "groups"
        ],
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update group name, description, tags, type, and rules (operator or admin only)",
        "operationId": "update_group_api_v1_groups__group_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VMGroupUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Group",
        "tags": [
          "groups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/groups/{group_id}/preview": {
      "post": {
        "description": "Preview which VMs match given rules (without saving).",
        "operationId": "preview_group_rules_api_v1_groups__group_id__preview_post",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Body",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Preview Group Rules",
        "tags": [
          "groups"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/groups/{group_id}/vms": {
      "post": {
        "description": "Add VMs to a group (operator or admin only). Only for static/hybrid groups.",
        "operationId": "add_vms_to_group_api_v1_groups__group_id__vms_post",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VMGroupAddVMs"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Add Vms To Group",
        "tags": [
          "groups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/groups/{group_id}/vms/{vm_id}": {
      "delete": {
        "description": "Remove a VM from a group (operator or admin only)",
        "operationId": "remove_vm_from_group_api_v1_groups__group_id__vms__vm_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "required": true,
            "schema": {
              "title": "Group Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "vm_id",
            "required": true,
            "schema": {
              "title": "Vm Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Remove Vm From Group",
        "tags": [
          "groups"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health": {
      "get": {
        "description": "Consolidated system health endpoint.\n\nReturns comprehensive health data for all system components. Use the `include`\nparameter to request specific sections only.\n\nArgs:\n    include: Comma-separated list of sections to include. Options:\n             database, agents, storage, s3, api, metrics, services.\n             If not specified, all sections are included.\n\nReturns:\n    Health data for requested sections.",
        "operationId": "get_health_api_v1_health_get",
        "parameters": [
          {
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Include"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Health",
        "tags": [
          "health"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health/agents": {
      "get": {
        "description": "DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.",
        "operationId": "get_agent_health_deprecated_api_v1_health_agents_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Agent Health Deprecated",
        "tags": [
          "health"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health/agents/{agent_id}/heartbeat": {
      "post": {
        "description": "Agent heartbeat endpoint - requires agent API key authentication.\n\nCalled by agent every 30 seconds to report it's alive and send metrics.\n\nArgs:\n    agent_id: Agent ID from URL path\n    request: Request body with metrics\n    agent: Authenticated agent (from X-Agent-Key header)\n    db: Database session\n\nReturns:\n    dict: Status and timestamp",
        "operationId": "agent_heartbeat_api_v1_health_agents__agent_id__heartbeat_post",
        "parameters": [
          {
            "in": "path",
            "name": "agent_id",
            "required": true,
            "schema": {
              "title": "Agent Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Agent Heartbeat",
        "tags": [
          "health"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/health/backups": {
      "get": {
        "description": "DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.",
        "operationId": "get_backup_health_deprecated_api_v1_health_backups_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backup Health Deprecated",
        "tags": [
          "health"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health/detailed": {
      "get": {
        "description": "DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.",
        "operationId": "get_detailed_health_deprecated_api_v1_health_detailed_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Detailed Health Deprecated",
        "tags": [
          "health"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health/diagnostics": {
      "get": {
        "description": "Admin-only, organization-scoped download; collection never repairs state.",
        "operationId": "support_diagnostics_api_v1_health_diagnostics_get",
        "parameters": [
          {
            "in": "query",
            "name": "backup_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Backup Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Support Diagnostics",
        "tags": [
          "health"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/health/system": {
      "get": {
        "description": "DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.",
        "operationId": "get_system_health_deprecated_api_v1_health_system_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get System Health Deprecated",
        "tags": [
          "health"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/license/info": {
      "get": {
        "description": "Legacy installed capability projection, independent of certificate status.\n\nThis endpoint does not validate a certificate or publish customer details.",
        "operationId": "get_license_info_api_v1_license_info_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get License Info",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/licensing": {
      "get": {
        "operationId": "licensing_details_api_v1_licensing_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Licensing Details",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/acknowledgement": {
      "delete": {
        "operationId": "clear_acknowledgement_api_v1_licensing_acknowledgement_delete",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Clear Acknowledgement",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/acknowledgement/confirm": {
      "post": {
        "operationId": "confirm_acknowledgement_api_v1_licensing_acknowledgement_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "challenge": {
                    "maxLength": 128,
                    "minLength": 16,
                    "title": "Challenge",
                    "type": "string"
                  },
                  "confirm": {
                    "title": "Confirm",
                    "type": "boolean"
                  },
                  "phrase": {
                    "maxLength": 128,
                    "title": "Phrase",
                    "type": "string"
                  }
                },
                "required": [
                  "confirm",
                  "challenge",
                  "phrase"
                ],
                "title": "ConfirmRequest",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Confirm Acknowledgement",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/acknowledgement/prepare": {
      "post": {
        "operationId": "prepare_acknowledgement_api_v1_licensing_acknowledgement_prepare_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "confirm": {
                    "title": "Confirm",
                    "type": "boolean"
                  }
                },
                "required": [
                  "confirm"
                ],
                "title": "PrepareRequest",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Prepare Acknowledgement",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/import": {
      "post": {
        "operationId": "import_registration_api_v1_licensing_import_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "envelope": {
                    "maxLength": 65536,
                    "title": "Envelope",
                    "type": "string"
                  }
                },
                "required": [
                  "envelope"
                ],
                "title": "ImportRequest",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Import Registration",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/registration-url": {
      "put": {
        "operationId": "registration_url_api_v1_licensing_registration_url_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "url": {
                    "maxLength": 2048,
                    "title": "Url",
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "title": "RegistrationURLRequest",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Registration Url",
        "tags": [
          "licensing"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/licensing/status": {
      "get": {
        "operationId": "licensing_status_api_v1_licensing_status_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Licensing Status",
        "tags": [
          "licensing"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications": {
      "get": {
        "description": "List notifications for the current user (from notification logs).",
        "operationId": "list_notifications_api_v1_notifications_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Notifications",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/logs": {
      "get": {
        "description": "List notification logs",
        "operationId": "list_notification_logs_api_v1_notifications_logs_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Notification Logs",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/mark-all-read": {
      "post": {
        "description": "Mark all notifications as read.",
        "operationId": "mark_all_notifications_read_api_v1_notifications_mark_all_read_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Mark All Notifications Read",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/rules": {
      "get": {
        "description": "List notification rules",
        "operationId": "list_notification_rules_api_v1_notifications_rules_get",
        "parameters": [
          {
            "in": "query",
            "name": "event_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event Type"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Notification Rules",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      },
      "post": {
        "description": "Create a notification rule",
        "operationId": "create_notification_rule_api_v1_notifications_rules_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Rule Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Notification Rule",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/rules/{rule_id}": {
      "delete": {
        "description": "Delete notification rule",
        "operationId": "delete_notification_rule_api_v1_notifications_rules__rule_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "title": "Rule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Notification Rule",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get notification rule details",
        "operationId": "get_notification_rule_api_v1_notifications_rules__rule_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "title": "Rule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Notification Rule",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update notification rule",
        "operationId": "update_notification_rule_api_v1_notifications_rules__rule_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "rule_id",
            "required": true,
            "schema": {
              "title": "Rule Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Rule Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Notification Rule",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/settings": {
      "get": {
        "description": "Get notification preferences for the current user.",
        "operationId": "get_notification_settings_api_v1_notifications_settings_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Notification Settings",
        "tags": [
          "notifications"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update notification preferences.",
        "operationId": "update_notification_settings_api_v1_notifications_settings_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Settings Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Notification Settings",
        "tags": [
          "notifications"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/test": {
      "post": {
        "description": "Send a test notification email (admin only).\n\nValidates SMTP configuration by sending a test email to the specified recipient.",
        "operationId": "test_notification_api_v1_notifications_test_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Test Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Test Notification",
        "tags": [
          "notifications"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/{notification_id}": {
      "delete": {
        "description": "Delete a notification.",
        "operationId": "delete_notification_api_v1_notifications__notification_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "title": "Notification Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Notification",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/notifications/{notification_id}/read": {
      "put": {
        "description": "Mark a notification as read.",
        "operationId": "mark_notification_read_api_v1_notifications__notification_id__read_put",
        "parameters": [
          {
            "in": "path",
            "name": "notification_id",
            "required": true,
            "schema": {
              "title": "Notification Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Mark Notification Read",
        "tags": [
          "notifications"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/operator/capabilities": {
      "get": {
        "operationId": "operator_capabilities_api_v1_operator_capabilities_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "actions": {
                      "items": {
                        "enum": [
                          "backup.bulk_create",
                          "backup.create",
                          "credential.agent.rotate",
                          "credential.orchestrator.create",
                          "credential.registration.create",
                          "encryption.create",
                          "encryption.rotate",
                          "queue.create",
                          "restore.create"
                        ],
                        "type": "string"
                      },
                      "type": "array",
                      "uniqueItems": true
                    },
                    "agent_key_rotation": {
                      "const": "staged-candidate-activation"
                    },
                    "caller_identity_required_for_lost_reply_recovery": {
                      "const": true
                    },
                    "contract_version": {
                      "const": 1,
                      "type": "integer"
                    },
                    "encryption_admission_provider": {
                      "const": "local"
                    },
                    "external_effects": {
                      "const": "original-attempt-reconciliation"
                    },
                    "max_bulk_targets": {
                      "const": 200,
                      "type": "integer"
                    },
                    "polling_contract": {
                      "const": 2
                    },
                    "request_header": {
                      "const": "Idempotency-Key"
                    },
                    "request_identity": {
                      "const": "uuid"
                    },
                    "retention": {
                      "const": "permanent-no-reuse"
                    },
                    "scope": {
                      "const": "organization-and-original-principal"
                    },
                    "secret_replay": {
                      "const": false
                    }
                  },
                  "required": [
                    "contract_version",
                    "request_header",
                    "request_identity",
                    "caller_identity_required_for_lost_reply_recovery",
                    "scope",
                    "actions",
                    "encryption_admission_provider",
                    "retention",
                    "secret_replay",
                    "max_bulk_targets",
                    "agent_key_rotation",
                    "polling_contract",
                    "external_effects"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized current state; the immutable receipt remains separate from current dispatch/resource state."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Operator Capabilities",
        "tags": [
          "operator-recovery"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/operator/requests/{request_id}": {
      "get": {
        "operationId": "operator_request_outcome_api_v1_operator_requests__request_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "action": {
                      "enum": [
                        "backup.bulk_create",
                        "backup.create",
                        "credential.agent.rotate",
                        "credential.orchestrator.create",
                        "credential.registration.create",
                        "encryption.create",
                        "encryption.rotate",
                        "queue.create",
                        "restore.create"
                      ],
                      "type": "string"
                    },
                    "completed_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contract_version": {
                      "const": 1,
                      "type": "integer"
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_resource": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resource_present": {
                              "const": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "resource_present"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "activated_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "agent_id": {
                              "type": "string"
                            },
                            "created_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expires_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "key_prefix": {
                              "type": "string"
                            },
                            "rotation_id": {
                              "type": "string"
                            },
                            "state": {
                              "enum": [
                                "pending",
                                "activated",
                                "cancelled",
                                "expired"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "rotation_id",
                            "agent_id",
                            "state",
                            "key_prefix",
                            "created_at",
                            "expires_at",
                            "activated_at"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "expires_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "is_valid": {
                              "type": "boolean"
                            },
                            "resource_present": {
                              "const": true,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "resource_present",
                            "enabled",
                            "is_valid",
                            "expires_at"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "replaced_by_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "resource_present": {
                              "const": true,
                              "type": "boolean"
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "resource_present",
                            "status",
                            "replaced_by_id"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "hold_reason": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "resource_present": {
                              "const": true,
                              "type": "boolean"
                            },
                            "started_backup_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "resource_present",
                            "status",
                            "hold_reason",
                            "started_backup_id"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dispatches": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "enum": [
                              "backup",
                              "restore"
                            ],
                            "type": "string"
                          },
                          "reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resource_id": {
                            "type": "string"
                          },
                          "resource_present": {
                            "type": "boolean"
                          },
                          "resource_status": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "enum": [
                              "pending",
                              "dispatching",
                              "delivered",
                              "held"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "resource_id",
                          "state",
                          "reason",
                          "resource_status",
                          "resource_present"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "receipt": {
                      "anyOf": [
                        {
                          "discriminator": {
                            "propertyName": "status"
                          },
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "executor": {
                                  "enum": [
                                    "real",
                                    "mock"
                                  ],
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "message": {
                                  "type": "string"
                                },
                                "request_id": {
                                  "format": "uuid",
                                  "type": "string"
                                },
                                "status": {
                                  "const": "pending",
                                  "type": "string"
                                },
                                "vm_id": {
                                  "type": "string"
                                },
                                "vm_name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "vm_id",
                                "vm_name",
                                "status",
                                "message",
                                "executor",
                                "request_id"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "message": {
                                  "type": "string"
                                },
                                "queue_id": {
                                  "type": "string"
                                },
                                "request_id": {
                                  "format": "uuid",
                                  "type": "string"
                                },
                                "status": {
                                  "const": "queued",
                                  "type": "string"
                                },
                                "vm_id": {
                                  "type": "string"
                                },
                                "vm_name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "status",
                                "queue_id",
                                "vm_id",
                                "vm_name",
                                "message",
                                "request_id"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "hold_reason": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            },
                            "position": {
                              "type": "integer"
                            },
                            "priority": {
                              "type": "integer"
                            },
                            "queued_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "started_backup_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            },
                            "vm_id": {
                              "type": "string"
                            },
                            "vm_name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "vm_id",
                            "vm_name",
                            "position",
                            "priority",
                            "queued_at",
                            "status",
                            "hold_reason",
                            "started_backup_id",
                            "message",
                            "request_id"
                          ],
                          "type": "object"
                        },
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "backup_id": {
                                  "type": "string"
                                },
                                "created_at": {
                                  "anyOf": [
                                    {
                                      "format": "date-time",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "id": {
                                  "type": "string"
                                },
                                "message": {
                                  "type": "string"
                                },
                                "progress": {
                                  "type": "integer"
                                },
                                "request_id": {
                                  "format": "uuid",
                                  "type": "string"
                                },
                                "restore_to_original": {
                                  "type": "boolean"
                                },
                                "status": {
                                  "const": "pending",
                                  "type": "string"
                                },
                                "target_vm_id": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "target_vm_name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "backup_id",
                                "status",
                                "progress",
                                "restore_to_original",
                                "target_vm_name",
                                "message",
                                "target_vm_id",
                                "created_at",
                                "request_id"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "backup_id": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "message": {
                                  "type": "string"
                                },
                                "native_target": {
                                  "additionalProperties": true,
                                  "description": "Extensible domain metadata; keys are not a closed schema.",
                                  "type": "object"
                                },
                                "progress": {
                                  "type": "integer"
                                },
                                "request_id": {
                                  "format": "uuid",
                                  "type": "string"
                                },
                                "restore_to_original": {
                                  "type": "boolean"
                                },
                                "status": {
                                  "const": "pending",
                                  "type": "string"
                                },
                                "target_vm_name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "backup_id",
                                "status",
                                "progress",
                                "restore_to_original",
                                "target_vm_name",
                                "message",
                                "native_target",
                                "request_id"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "backup_id": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kubevirt_target": {
                                  "additionalProperties": true,
                                  "description": "Extensible domain metadata; keys are not a closed schema.",
                                  "type": "object"
                                },
                                "message": {
                                  "type": "string"
                                },
                                "progress": {
                                  "type": "integer"
                                },
                                "request_id": {
                                  "format": "uuid",
                                  "type": "string"
                                },
                                "restore_to_original": {
                                  "type": "boolean"
                                },
                                "status": {
                                  "const": "pending",
                                  "type": "string"
                                },
                                "target_vm_name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "backup_id",
                                "status",
                                "progress",
                                "restore_to_original",
                                "target_vm_name",
                                "message",
                                "kubevirt_target",
                                "request_id"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "details": {
                              "additionalProperties": false,
                              "properties": {
                                "created": {
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "backup_id": {
                                        "type": "string"
                                      },
                                      "vm_id": {
                                        "type": "string"
                                      },
                                      "vm_name": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "backup_id",
                                      "vm_id",
                                      "vm_name"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "failed": {
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "vm_id": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "vm_id",
                                      "reason"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "skipped": {
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "vm_id": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "vm_id",
                                      "reason"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "created",
                                "skipped",
                                "failed"
                              ],
                              "type": "object"
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "summary": {
                              "additionalProperties": false,
                              "properties": {
                                "created": {
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "failed": {
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "skipped": {
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "total": {
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "total",
                                "created",
                                "skipped",
                                "failed"
                              ],
                              "type": "object"
                            },
                            "targets": {
                              "items": {
                                "type": "string"
                              },
                              "maxItems": 200,
                              "minItems": 1,
                              "type": "array",
                              "uniqueItems": true
                            }
                          },
                          "required": [
                            "targets",
                            "summary",
                            "details",
                            "request_id"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "created_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expires_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "key_prefix": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "secret_delivery": {
                              "const": "unavailable",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "key_prefix",
                            "expires_at",
                            "created_at",
                            "message",
                            "request_id",
                            "secret_delivery"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "agent_hostname": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "created_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expires_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "key_prefix": {
                              "type": "string"
                            },
                            "max_uses": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "message": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "secret_delivery": {
                              "const": "unavailable",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "key_prefix",
                            "expires_at",
                            "created_at",
                            "message",
                            "agent_hostname",
                            "max_uses",
                            "request_id",
                            "secret_delivery"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "activated_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "agent_id": {
                              "type": "string"
                            },
                            "created_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expires_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "key_prefix": {
                              "type": "string"
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "rotation_id": {
                              "type": "string"
                            },
                            "secret_delivery": {
                              "const": "unavailable",
                              "type": "string"
                            },
                            "state": {
                              "enum": [
                                "pending",
                                "activated",
                                "cancelled",
                                "expired"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "rotation_id",
                            "agent_id",
                            "state",
                            "key_prefix",
                            "created_at",
                            "expires_at",
                            "activated_at",
                            "request_id",
                            "secret_delivery"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "algorithm": {
                              "type": "string"
                            },
                            "backed_up": {
                              "type": "boolean"
                            },
                            "backed_up_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "backed_up_locations": {
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "backup_count": {
                              "type": "integer"
                            },
                            "created_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "created_by": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "key_hash": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "provider": {
                              "type": "string"
                            },
                            "replaced_by_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "rotated_at": {
                              "anyOf": [
                                {
                                  "format": "date-time",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "algorithm",
                            "key_hash",
                            "status",
                            "provider",
                            "created_at",
                            "created_by",
                            "rotated_at",
                            "replaced_by_id",
                            "backed_up",
                            "backed_up_at",
                            "backed_up_locations",
                            "backup_count",
                            "request_id"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "request_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "response_status": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retention": {
                      "const": "permanent-no-reuse",
                      "type": "string"
                    },
                    "secret_delivery": {
                      "enum": [
                        "unavailable",
                        "not_applicable"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "admitted",
                        "unresolved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "request_id",
                    "action",
                    "contract_version",
                    "state",
                    "created_at",
                    "completed_at",
                    "response_status",
                    "receipt",
                    "secret_delivery",
                    "dispatches",
                    "current_resource",
                    "retention"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized current state; the immutable receipt remains separate from current dispatch/resource state."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Operator Request Outcome",
        "tags": [
          "operator-recovery"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/orchestrator-keys": {
      "get": {
        "description": "List all orchestrator API keys (admin only)",
        "operationId": "list_orchestrator_keys_api_v1_orchestrator_keys_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "expires_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_expired": {
                            "type": "boolean"
                          },
                          "is_valid": {
                            "type": "boolean"
                          },
                          "key_prefix": {
                            "type": "string"
                          },
                          "last_used_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "key_prefix",
                          "expires_at",
                          "enabled",
                          "is_expired",
                          "is_valid",
                          "last_used_at",
                          "created_at",
                          "created_by"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Orchestrator Keys",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending; equal timestamps have no specified tie order",
          "pagination": "unpaginated",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create new orchestrator API key (admin only)",
        "operationId": "create_orchestrator_key_api_v1_orchestrator_keys_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrchestratorAPIKeyCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "discriminator": {
                    "propertyName": "secret_delivery"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "api_key": {
                          "description": "First response only. Permanently absent from replay and outcome lookup.",
                          "type": "string",
                          "writeOnly": true
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "one_time",
                          "type": "string"
                        },
                        "usage_snippet": {
                          "description": "First response only. Permanently absent from replay and outcome lookup.",
                          "type": "string",
                          "writeOnly": true
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "key_prefix",
                        "expires_at",
                        "created_at",
                        "message",
                        "request_id",
                        "secret_delivery",
                        "api_key",
                        "usage_snippet"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "unavailable",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "key_prefix",
                        "expires_at",
                        "created_at",
                        "message",
                        "request_id",
                        "secret_delivery"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Orchestrator Key",
        "tags": [
          "api-keys"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-operator-action": "credential.orchestrator.create"
      }
    },
    "/api/v1/orchestrator-keys/{key_id}": {
      "delete": {
        "description": "Delete orchestrator API key (admin only)",
        "operationId": "delete_orchestrator_key_api_v1_orchestrator_keys__key_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Orchestrator Key",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "patch": {
        "description": "Update orchestrator API key (admin only)",
        "operationId": "update_orchestrator_key_api_v1_orchestrator_keys__key_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrchestratorAPIKeyUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Orchestrator Key",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/pki/backend-cert": {
      "get": {
        "description": "Download backend client cert+key for OKD secret mounting (admin only).\n\nReturns JSON with cert and key PEM for manual deployment.",
        "operationId": "get_backend_cert_api_v1_pki_backend_cert_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Backend Cert",
        "tags": [
          "pki"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/pki/ca": {
      "get": {
        "description": "Download CA certificate (public, no auth required for trust distribution).",
        "operationId": "get_ca_cert_api_v1_pki_ca_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get Ca Cert",
        "tags": [
          "pki"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/pki/certificates": {
      "get": {
        "description": "List all issued certificates.",
        "operationId": "list_certificates_api_v1_pki_certificates_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Certificates",
        "tags": [
          "pki"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/pki/certificates/{cert_id}/revoke": {
      "post": {
        "description": "Revoke an agent certificate.",
        "operationId": "revoke_certificate_api_v1_pki_certificates__cert_id__revoke_post",
        "parameters": [
          {
            "in": "path",
            "name": "cert_id",
            "required": true,
            "schema": {
              "title": "Cert Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Revoke Certificate",
        "tags": [
          "pki"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/pki/initialize": {
      "post": {
        "description": "Initialize the built-in CA (one-time operation).",
        "operationId": "initialize_ca_api_v1_pki_initialize_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Initialize Ca",
        "tags": [
          "pki"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/pki/renew": {
      "post": {
        "description": "Agent submits CSR for certificate renewal.",
        "operationId": "renew_certificate_api_v1_pki_renew_post",
        "parameters": [
          {
            "in": "header",
            "name": "X-Agent-Key",
            "required": false,
            "schema": {
              "title": "X-Agent-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Body",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AgentKey": []
          },
          {
            "AgentMTLS": []
          }
        ],
        "summary": "Renew Certificate",
        "tags": [
          "pki"
        ],
        "x-credential-domain": "agent",
        "x-transport-policy": "Only a certificate verified by TLS transport is proof. Forwarded fingerprint headers are not credentials. A verified certificate selects certificate authentication; API-key fallback is unavailable when it is present."
      }
    },
    "/api/v1/pki/status": {
      "get": {
        "description": "Get CA status and certificate statistics.",
        "operationId": "get_pki_status_api_v1_pki_status_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Pki Status",
        "tags": [
          "pki"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/registration-keys": {
      "get": {
        "description": "List all agent registration keys (admin only)",
        "operationId": "list_registration_keys_api_v1_registration_keys_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "agent_hostname": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "expires_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_expired": {
                            "type": "boolean"
                          },
                          "is_max_uses_reached": {
                            "type": "boolean"
                          },
                          "is_valid": {
                            "type": "boolean"
                          },
                          "key_prefix": {
                            "type": "string"
                          },
                          "last_used_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "max_uses": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "use_count": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "key_prefix",
                          "expires_at",
                          "enabled",
                          "is_expired",
                          "is_valid",
                          "last_used_at",
                          "created_at",
                          "created_by",
                          "agent_hostname",
                          "max_uses",
                          "use_count",
                          "is_max_uses_reached"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Registration Keys",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending; equal timestamps have no specified tie order",
          "pagination": "unpaginated",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create new agent registration key (admin only)",
        "operationId": "create_registration_key_api_v1_registration_keys_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRegistrationKeyCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "discriminator": {
                    "propertyName": "secret_delivery"
                  },
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "agent_hostname": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "api_key": {
                          "description": "First response only. Permanently absent from replay and outcome lookup.",
                          "type": "string",
                          "writeOnly": true
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "max_uses": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "one_time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "key_prefix",
                        "expires_at",
                        "created_at",
                        "message",
                        "agent_hostname",
                        "max_uses",
                        "request_id",
                        "secret_delivery",
                        "api_key"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "agent_hostname": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expires_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "key_prefix": {
                          "type": "string"
                        },
                        "max_uses": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "secret_delivery": {
                          "const": "unavailable",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "key_prefix",
                        "expires_at",
                        "created_at",
                        "message",
                        "agent_hostname",
                        "max_uses",
                        "request_id",
                        "secret_delivery"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Registration Key",
        "tags": [
          "api-keys"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-operator-action": "credential.registration.create"
      }
    },
    "/api/v1/registration-keys/{key_id}": {
      "delete": {
        "description": "Delete agent registration key (admin only)",
        "operationId": "delete_registration_key_api_v1_registration_keys__key_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Registration Key",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "patch": {
        "description": "Update agent registration key (admin only)",
        "operationId": "update_registration_key_api_v1_registration_keys__key_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRegistrationKeyUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Registration Key",
        "tags": [
          "api-keys"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/report-executions/{execution_id}": {
      "get": {
        "description": "Get details of a specific report execution",
        "operationId": "get_report_execution_api_v1_report_executions__execution_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "execution_id",
            "required": true,
            "schema": {
              "title": "Execution Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Report Execution",
        "tags": [
          "reports"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/report-executions/{execution_id}/download": {
      "get": {
        "description": "Download a generated report file",
        "operationId": "download_report_api_v1_report_executions__execution_id__download_get",
        "parameters": [
          {
            "in": "path",
            "name": "execution_id",
            "required": true,
            "schema": {
              "title": "Execution Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "application/pdf": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "text/csv": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "text/html": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Binary attachment. Saving the response does not confirm independent encryption-key backup custody.",
            "headers": {
              "Content-Disposition": {
                "description": "Attachment filename.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Download Report",
        "tags": [
          "reports"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/reports": {
      "get": {
        "description": "List all reports",
        "operationId": "list_reports_api_v1_reports_get",
        "parameters": [
          {
            "in": "query",
            "name": "report_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Report Type"
            }
          },
          {
            "in": "query",
            "name": "enabled",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Enabled"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "reports": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by_user": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "username": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "filters": {
                            "anyOf": [
                              {
                                "additionalProperties": true,
                                "description": "Extensible domain metadata; keys are not a closed schema.",
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "format": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "last_run_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "next_run_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recipients": {
                            "anyOf": [
                              {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "report_type": {
                            "type": "string"
                          },
                          "schedule": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "report_type",
                          "schedule",
                          "format",
                          "recipients",
                          "filters",
                          "enabled",
                          "last_run_at",
                          "next_run_at",
                          "created_at",
                          "created_by_user"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "reports",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Reports",
        "tags": [
          "reports"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending; equal timestamps have no specified tie order",
          "pagination": "unpaginated",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create a new report configuration",
        "operationId": "create_report_api_v1_reports_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Report",
        "tags": [
          "reports"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/reports/{report_id}": {
      "delete": {
        "description": "Delete a report configuration",
        "operationId": "delete_report_api_v1_reports__report_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Report",
        "tags": [
          "reports"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get a specific report configuration",
        "operationId": "get_report_api_v1_reports__report_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Report",
        "tags": [
          "reports"
        ],
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update a report configuration",
        "operationId": "update_report_api_v1_reports__report_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name"
            }
          },
          {
            "in": "query",
            "name": "schedule",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Schedule"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Format"
            }
          },
          {
            "in": "query",
            "name": "enabled",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Enabled"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_update_report_api_v1_reports__report_id__put"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Report",
        "tags": [
          "reports"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/reports/{report_id}/executions": {
      "get": {
        "description": "List execution history for a report",
        "operationId": "list_report_executions_api_v1_reports__report_id__executions_get",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "executions": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "completed_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error_message": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "file_path": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "file_size_bytes": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "file_size_mb": {
                            "type": "number"
                          },
                          "id": {
                            "type": "string"
                          },
                          "started_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "file_path",
                          "file_size_bytes",
                          "file_size_mb",
                          "error_message",
                          "started_at",
                          "completed_at",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "report_id": {
                      "type": "string"
                    },
                    "report_name": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "executions",
                    "total",
                    "offset",
                    "limit",
                    "report_id",
                    "report_name"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Report Executions",
        "tags": [
          "reports"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending; equal timestamps have no specified tie order",
          "pagination": "offset",
          "snapshot": false
        }
      }
    },
    "/api/v1/reports/{report_id}/generate": {
      "post": {
        "description": "Generate a report immediately",
        "operationId": "generate_report_api_v1_reports__report_id__generate_post",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Generate Report",
        "tags": [
          "reports"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/restores": {
      "get": {
        "description": "Get list of restore operations",
        "operationId": "get_restores_api_v1_restores_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "backup_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Backup Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "backup": {
                            "additionalProperties": false,
                            "properties": {
                              "created_at": {
                                "anyOf": [
                                  {
                                    "format": "date-time",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "type": "string"
                              },
                              "size_bytes": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "vm_name": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "vm_name",
                              "created_at",
                              "size_bytes"
                            ],
                            "type": "object"
                          },
                          "backup_id": {
                            "type": "string"
                          },
                          "completed_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_by_user": {
                            "additionalProperties": false,
                            "properties": {
                              "role": {
                                "type": "string"
                              },
                              "username": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "username",
                              "role"
                            ],
                            "type": "object"
                          },
                          "error_message": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "kubevirt_target": {
                            "anyOf": [
                              {
                                "additionalProperties": true,
                                "description": "Extensible domain metadata; keys are not a closed schema.",
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "native_target": {
                            "anyOf": [
                              {
                                "additionalProperties": true,
                                "description": "Extensible domain metadata; keys are not a closed schema.",
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "operator_dispatch": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "request_id": {
                                    "format": "uuid",
                                    "type": "string"
                                  },
                                  "state": {
                                    "enum": [
                                      "pending",
                                      "dispatching",
                                      "delivered",
                                      "held"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "state",
                                  "reason",
                                  "request_id"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "progress": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "restore_to_original": {
                            "type": "boolean"
                          },
                          "result": {
                            "anyOf": [
                              {
                                "additionalProperties": true,
                                "description": "Extensible domain metadata; keys are not a closed schema.",
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "started_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string"
                          },
                          "target_vm_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "target_vm_name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "backup_id",
                          "status",
                          "progress",
                          "restore_to_original",
                          "target_vm_name",
                          "target_vm_id",
                          "created_by",
                          "created_at",
                          "started_at",
                          "completed_at",
                          "error_message",
                          "kubevirt_target",
                          "native_target",
                          "result",
                          "operator_dispatch"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "skip",
                    "limit"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Restores",
        "tags": [
          "restores"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending, id descending",
          "pagination": "offset",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create a restore operation from a backup",
        "operationId": "create_restore_api_v1_restores_post",
        "parameters": [
          {
            "description": "Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "backup_id": {
                          "type": "string"
                        },
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "progress": {
                          "type": "integer"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "restore_to_original": {
                          "type": "boolean"
                        },
                        "status": {
                          "const": "pending",
                          "type": "string"
                        },
                        "target_vm_id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "target_vm_name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "backup_id",
                        "status",
                        "progress",
                        "restore_to_original",
                        "target_vm_name",
                        "message",
                        "target_vm_id",
                        "created_at",
                        "request_id"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "backup_id": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "native_target": {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        "progress": {
                          "type": "integer"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "restore_to_original": {
                          "type": "boolean"
                        },
                        "status": {
                          "const": "pending",
                          "type": "string"
                        },
                        "target_vm_name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "backup_id",
                        "status",
                        "progress",
                        "restore_to_original",
                        "target_vm_name",
                        "message",
                        "native_target",
                        "request_id"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "backup_id": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "kubevirt_target": {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        "message": {
                          "type": "string"
                        },
                        "progress": {
                          "type": "integer"
                        },
                        "request_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "restore_to_original": {
                          "type": "boolean"
                        },
                        "status": {
                          "const": "pending",
                          "type": "string"
                        },
                        "target_vm_name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "backup_id",
                        "status",
                        "progress",
                        "restore_to_original",
                        "target_vm_name",
                        "message",
                        "kubevirt_target",
                        "request_id"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "Idempotency-Key": {
                "schema": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "schema": {
                  "enum": [
                    "true",
                    "false"
                  ],
                  "type": "string"
                }
              },
              "X-Request-ID": {
                "description": "Per-HTTP-request correlation, separate from durable admission identity.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Invalid domain request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authentication unavailable."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Current action authority unavailable."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Authorized resource unavailable."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Normalized intent exceeds admission limit."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Malformed identity, request validation or bulk target limit."
          },
          "423": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Existing source or operation custody prevents admission."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorAdmissionError"
                }
              }
            },
            "description": "Admission dependency unavailable."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Restore",
        "tags": [
          "restores"
        ],
        "x-admission-contract": {
          "external_effects": "original-attempt-reconciliation",
          "identity_header": "Idempotency-Key",
          "legacy_header_omission": "Server allocates an identity; lost first responses cannot be correlated by the caller.",
          "reauthorization": "Current principal, organization and action authority are rechecked on replay and lookup.",
          "retention": "permanent-no-reuse",
          "scope": "organization-and-original-principal",
          "version": 1
        },
        "x-credential-domain": "user-session",
        "x-operator-action": "restore.create"
      }
    },
    "/api/v1/restores/{restore_id}": {
      "get": {
        "description": "Get restore operation details",
        "operationId": "get_restore_api_v1_restores__restore_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "restore_id",
            "required": true,
            "schema": {
              "title": "Restore Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "backup": {
                      "additionalProperties": false,
                      "properties": {
                        "created_at": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "size_bytes": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string"
                        },
                        "vm_id": {
                          "type": "string"
                        },
                        "vm_name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "vm_name",
                        "created_at",
                        "size_bytes",
                        "vm_id",
                        "status"
                      ],
                      "type": "object"
                    },
                    "backup_id": {
                      "type": "string"
                    },
                    "completed_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_by": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_by_user": {
                      "additionalProperties": false,
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "username": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "username",
                        "role"
                      ],
                      "type": "object"
                    },
                    "error_message": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "kubevirt_target": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "native_target": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "operator_dispatch": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "reason": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "request_id": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "state": {
                              "enum": [
                                "pending",
                                "dispatching",
                                "delivered",
                                "held"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "state",
                            "reason",
                            "request_id"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "restore_to_original": {
                      "type": "boolean"
                    },
                    "result": {
                      "anyOf": [
                        {
                          "additionalProperties": true,
                          "description": "Extensible domain metadata; keys are not a closed schema.",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "started_at": {
                      "anyOf": [
                        {
                          "format": "date-time",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "target_vm": {
                      "additionalProperties": false,
                      "properties": {
                        "agent_hostname": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "state": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "state",
                        "agent_hostname"
                      ],
                      "type": "object"
                    },
                    "target_vm_id": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "target_vm_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "backup_id",
                    "status",
                    "progress",
                    "restore_to_original",
                    "target_vm_name",
                    "target_vm_id",
                    "created_by",
                    "created_at",
                    "started_at",
                    "completed_at",
                    "error_message",
                    "kubevirt_target",
                    "native_target",
                    "result",
                    "operator_dispatch"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Restore",
        "tags": [
          "restores"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/restores/{restore_id}/cancel": {
      "patch": {
        "description": "Cancel a running restore operation",
        "operationId": "cancel_restore_api_v1_restores__restore_id__cancel_patch",
        "parameters": [
          {
            "in": "path",
            "name": "restore_id",
            "required": true,
            "schema": {
              "title": "Restore Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Cancel Restore",
        "tags": [
          "restores"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/restores/{restore_id}/resume": {
      "post": {
        "description": "Resume backend monitoring/uncertain dispatch using the same durable plan.\n\nThe agent independently reopens its local journal after restart; this never\nallocates a new restore ID or overwrites failed/uncertain destinations.",
        "operationId": "resume_kubevirt_restore_api_v1_restores__restore_id__resume_post",
        "parameters": [
          {
            "in": "path",
            "name": "restore_id",
            "required": true,
            "schema": {
              "title": "Restore Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Resume Kubevirt Restore",
        "tags": [
          "restores"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/s3/discover": {
      "get": {
        "description": "Discover chain manifests in S3 and report import status.",
        "operationId": "discover_chains_api_v1_s3_discover_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Discover Chains",
        "tags": [
          "s3-import"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/s3/import": {
      "post": {
        "description": "Import a backup chain from S3 manifests. Idempotent — skips existing records.",
        "operationId": "import_chain_api_v1_s3_import_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Import Chain",
        "tags": [
          "s3-import"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/saved-searches": {
      "get": {
        "description": "List saved searches",
        "operationId": "list_saved_searches_api_v1_saved_searches_get",
        "parameters": [
          {
            "in": "query",
            "name": "search_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search Type"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Saved Searches",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      },
      "post": {
        "description": "Create a saved search",
        "operationId": "create_saved_search_api_v1_saved_searches_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Search Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Saved Search",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/saved-searches/{search_id}": {
      "delete": {
        "description": "Delete a saved search",
        "operationId": "delete_saved_search_api_v1_saved_searches__search_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "search_id",
            "required": true,
            "schema": {
              "title": "Search Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Saved Search",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get saved search details",
        "operationId": "get_saved_search_api_v1_saved_searches__search_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "search_id",
            "required": true,
            "schema": {
              "title": "Search Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Saved Search",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/saved-searches/{search_id}/execute": {
      "post": {
        "description": "Execute a saved search and return results",
        "operationId": "execute_saved_search_api_v1_saved_searches__search_id__execute_post",
        "parameters": [
          {
            "in": "path",
            "name": "search_id",
            "required": true,
            "schema": {
              "title": "Search Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Execute Saved Search",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/schedules": {
      "get": {
        "description": "List all backup schedules",
        "operationId": "list_schedules_api_v1_schedules_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "enabled",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Enabled"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Schedules",
        "tags": [
          "schedules"
        ],
        "x-credential-domain": "user-session"
      },
      "post": {
        "description": "Create a new backup schedule (operator or admin only)",
        "operationId": "create_schedule_api_v1_schedules_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create Schedule",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/schedules/{schedule_id}": {
      "delete": {
        "description": "Delete schedule (operator or admin only)",
        "operationId": "delete_schedule_api_v1_schedules__schedule_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete Schedule",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get schedule details",
        "operationId": "get_schedule_api_v1_schedules__schedule_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Schedule",
        "tags": [
          "schedules"
        ],
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update schedule (operator or admin only)",
        "operationId": "update_schedule_api_v1_schedules__schedule_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Schedule",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/schedules/{schedule_id}/grant": {
      "delete": {
        "operationId": "revoke_schedule_grant_api_v1_schedules__schedule_id__grant_delete",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Revoke Schedule Grant",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "get": {
        "operationId": "get_schedule_grant_api_v1_schedules__schedule_id__grant_get",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Schedule Grant",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      },
      "post": {
        "operationId": "enroll_schedule_grant_api_v1_schedules__schedule_id__grant_post",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEnrollment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Enroll Schedule Grant",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/schedules/{schedule_id}/run-now": {
      "post": {
        "description": "Manually trigger a schedule to run immediately (operator or admin only)",
        "operationId": "run_schedule_now_api_v1_schedules__schedule_id__run_now_post",
        "parameters": [
          {
            "in": "path",
            "name": "schedule_id",
            "required": true,
            "schema": {
              "title": "Schedule Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Run Schedule Now",
        "tags": [
          "schedules"
        ],
        "x-authorization-dependency": "get_operator_or_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/search": {
      "post": {
        "description": "Cross-entity search for VMs and backups by name.",
        "operationId": "global_search_api_v1_search_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Search Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Global Search",
        "tags": [
          "search"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/settings": {
      "get": {
        "description": "Get system settings",
        "operationId": "get_settings_api_v1_settings_get",
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Settings",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update multiple system settings at once",
        "operationId": "update_settings_bulk_api_v1_settings_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Settings Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Settings Bulk",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/settings/test-email": {
      "post": {
        "description": "Test email settings by sending a test email",
        "operationId": "test_email_settings_api_v1_settings_test_email_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Test Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Test Email Settings",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/settings/test-s3": {
      "post": {
        "description": "Test S3 connection with current settings.",
        "operationId": "test_s3_connection_api_v1_settings_test_s3_post",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Test S3 Connection",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/settings/v3": {
      "get": {
        "description": "Get v3 settings (storage and OIDC config) with secret status.",
        "operationId": "get_settings_v3_api_v1_settings_v3_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "encryption_configured": {
                      "type": "boolean"
                    },
                    "secrets": {
                      "additionalProperties": false,
                      "properties": {
                        "oidc.client_secret": {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "type": "boolean"
                            },
                            "source": {
                              "enum": [
                                "ui",
                                "env",
                                null
                              ]
                            }
                          },
                          "required": [
                            "configured",
                            "source"
                          ],
                          "type": "object"
                        },
                        "pki.ca_key": {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "type": "boolean"
                            },
                            "source": {
                              "enum": [
                                "ui",
                                "env",
                                null
                              ]
                            }
                          },
                          "required": [
                            "configured",
                            "source"
                          ],
                          "type": "object"
                        },
                        "storage.s3.access_key": {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "type": "boolean"
                            },
                            "source": {
                              "enum": [
                                "ui",
                                "env",
                                null
                              ]
                            }
                          },
                          "required": [
                            "configured",
                            "source"
                          ],
                          "type": "object"
                        },
                        "storage.s3.secret_key": {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "type": "boolean"
                            },
                            "source": {
                              "enum": [
                                "ui",
                                "env",
                                null
                              ]
                            }
                          },
                          "required": [
                            "configured",
                            "source"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "storage.s3.access_key",
                        "storage.s3.secret_key",
                        "oidc.client_secret",
                        "pki.ca_key"
                      ],
                      "type": "object"
                    },
                    "settings": {
                      "additionalProperties": false,
                      "properties": {
                        "backup.capacity_admission": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "description": "Changing a prior policy requires a strictly increased revision.",
                              "properties": {
                                "limit": {
                                  "maximum": 100000,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "maintenance": {
                                  "type": "boolean"
                                },
                                "revision": {
                                  "maximum": 9223372036854775807,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "schema": {
                                  "const": 1,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "schema",
                                "revision",
                                "limit",
                                "maintenance"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oidc.admin_values": {
                          "type": "string"
                        },
                        "oidc.client_id": {
                          "type": "string"
                        },
                        "oidc.default_role": {
                          "enum": [
                            "viewer",
                            "operator"
                          ],
                          "type": "string"
                        },
                        "oidc.enabled": {
                          "type": "boolean"
                        },
                        "oidc.issuer": {
                          "type": "string"
                        },
                        "oidc.operator_values": {
                          "type": "string"
                        },
                        "oidc.role_claim": {
                          "type": "string"
                        },
                        "oidc.scopes": {
                          "type": "string"
                        },
                        "pki.ca_cert": {
                          "type": "string"
                        },
                        "pki.require_mtls": {
                          "type": "boolean"
                        },
                        "storage.path": {
                          "type": "string"
                        },
                        "storage.s3.bucket": {
                          "type": "string"
                        },
                        "storage.s3.delete_local": {
                          "type": "boolean"
                        },
                        "storage.s3.endpoint": {
                          "type": "string"
                        },
                        "storage.s3.prefix": {
                          "type": "string"
                        },
                        "storage.s3.region": {
                          "type": "string"
                        },
                        "storage.type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "backup.capacity_admission",
                        "storage.type",
                        "storage.path",
                        "storage.s3.endpoint",
                        "storage.s3.bucket",
                        "storage.s3.region",
                        "storage.s3.prefix",
                        "storage.s3.delete_local",
                        "pki.ca_cert",
                        "pki.require_mtls",
                        "oidc.enabled",
                        "oidc.issuer",
                        "oidc.client_id",
                        "oidc.scopes",
                        "oidc.role_claim",
                        "oidc.admin_values",
                        "oidc.operator_values",
                        "oidc.default_role"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "settings",
                    "secrets",
                    "encryption_configured"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Settings V3",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update v3 settings (storage and OIDC config).",
        "operationId": "update_settings_v3_api_v1_settings_v3_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "description": "Flat settings patch; unknown keys and null are invalid. Omitted values retain prior state. String values are trimmed; booleans require JSON booleans. Effective OIDC configuration is validated together. Authorization precedes sensitive JSON decoding; malformed input returns 400 after authorization.",
                "properties": {
                  "backup.capacity_admission": {
                    "additionalProperties": false,
                    "description": "Changing a prior policy requires a strictly increased revision.",
                    "properties": {
                      "limit": {
                        "maximum": 100000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "maintenance": {
                        "type": "boolean"
                      },
                      "revision": {
                        "maximum": 9223372036854775807,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "schema": {
                        "const": 1,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "schema",
                      "revision",
                      "limit",
                      "maintenance"
                    ],
                    "type": "object"
                  },
                  "oidc.admin_values": {
                    "type": "string"
                  },
                  "oidc.client_id": {
                    "type": "string"
                  },
                  "oidc.client_secret": {
                    "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
                    "type": "string",
                    "writeOnly": true
                  },
                  "oidc.default_role": {
                    "enum": [
                      "viewer",
                      "operator"
                    ],
                    "type": "string"
                  },
                  "oidc.enabled": {
                    "type": "boolean"
                  },
                  "oidc.issuer": {
                    "type": "string"
                  },
                  "oidc.operator_values": {
                    "type": "string"
                  },
                  "oidc.role_claim": {
                    "type": "string"
                  },
                  "oidc.scopes": {
                    "type": "string"
                  },
                  "pki.ca_cert": {
                    "type": "string"
                  },
                  "pki.ca_key": {
                    "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
                    "type": "string",
                    "writeOnly": true
                  },
                  "pki.require_mtls": {
                    "type": "boolean"
                  },
                  "storage.path": {
                    "type": "string"
                  },
                  "storage.s3.access_key": {
                    "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
                    "type": "string",
                    "writeOnly": true
                  },
                  "storage.s3.bucket": {
                    "type": "string"
                  },
                  "storage.s3.delete_local": {
                    "type": "boolean"
                  },
                  "storage.s3.endpoint": {
                    "type": "string"
                  },
                  "storage.s3.prefix": {
                    "type": "string"
                  },
                  "storage.s3.region": {
                    "type": "string"
                  },
                  "storage.s3.secret_key": {
                    "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
                    "type": "string",
                    "writeOnly": true
                  },
                  "storage.type": {
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "ok",
                      "type": "string"
                    },
                    "updated_secrets": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "updated_settings": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "status",
                    "updated_settings",
                    "updated_secrets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "detail"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid configuration after authorization; secret values are never echoed."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "detail"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid or disabled authenticated identity."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "detail"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Installation authority required."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "detail"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Settings transaction failed and rolled back."
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Settings V3",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/settings/{setting_id}": {
      "put": {
        "description": "Update a system setting",
        "operationId": "update_setting_api_v1_settings__setting_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "setting_id",
            "required": true,
            "schema": {
              "title": "Setting Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Update Data",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update Setting",
        "tags": [
          "config"
        ],
        "x-authorization-dependency": "get_installation_admin",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/stats": {
      "get": {
        "description": "Get system statistics for dashboard",
        "operationId": "get_stats_api_v1_stats_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Stats",
        "tags": [
          "stats"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/updates": {
      "get": {
        "description": "Best-effort process-local invalidations, not lossless history.\n\ncontract=2 returns ordered items and an opaque continuation bound to this\nprocess and authenticated organization/user/role. History retains at most\n1000 events for 300 seconds. Initial/missing, expired, overflowed, restarted\nor different-worker/scope cursors explicitly require authoritative full-state\nresynchronization. Capture next_cursor, read snapshots, then continue from\nthat cursor. Socket messages are hints; use this feed for continuation.\n\nThe legacy since array is deprecated. It returns the oldest matching limit\nwith strict greater-than timestamps; ties and limits cannot prove completeness.\nsince requires Z or an explicit UTC offset; malformed/naive values return 400.",
        "operationId": "get_updates_api_v1_updates_get",
        "parameters": [
          {
            "description": "Deprecated aware ISO8601 timestamp; oldest-first limited array, no completeness guarantee",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Deprecated aware ISO8601 timestamp; oldest-first limited array, no completeness guarantee",
              "title": "Since"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "maximum": 500,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Set 2 for the cursor envelope",
            "in": "query",
            "name": "contract",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set 2 for the cursor envelope",
              "title": "Contract"
            }
          },
          {
            "description": "Opaque continuation from contract=2",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 2048,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque continuation from contract=2",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/RealtimePage"
                    },
                    {
                      "items": {
                        "$ref": "#/components/schemas/LegacyRealtimeEvent"
                      },
                      "type": "array"
                    }
                  ],
                  "title": "Response Get Updates Api V1 Updates Get"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_cursor": {
                    "value": {
                      "detail": {
                        "code": "realtime_cursor_invalid",
                        "message": "Invalid realtime cursor"
                      }
                    }
                  },
                  "unsupported_contract": {
                    "value": {
                      "detail": {
                        "code": "realtime_contract_unsupported",
                        "message": "Unsupported realtime contract"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/RealtimeErrorResponse"
                }
              }
            },
            "description": "Stable coded contract, cursor or timestamp refusal; no cursor content is echoed."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Updates",
        "tags": [
          "realtime"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/users": {
      "get": {
        "description": "List all users (admin only)",
        "operationId": "list_users_api_v1_users_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "has_more": {
                      "type": "boolean"
                    },
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "auth_source": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "full_name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_active": {
                            "type": "boolean"
                          },
                          "last_login": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "oidc_issuer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "oidc_subject": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "org_id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "role_source": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "username": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "email",
                          "full_name",
                          "auth_source",
                          "role_source",
                          "oidc_subject",
                          "oidc_issuer",
                          "id",
                          "username",
                          "org_id",
                          "role",
                          "is_active",
                          "last_login",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "skip",
                    "limit",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Users",
        "tags": [
          "users"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "created_at descending, id descending",
          "pagination": "offset",
          "snapshot": false
        }
      },
      "post": {
        "description": "Create a new user (admin only)",
        "operationId": "create_user_api_v1_users_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Create User",
        "tags": [
          "users"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/users/{user_id}": {
      "delete": {
        "description": "Delete user (admin only)",
        "operationId": "delete_user_api_v1_users__user_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "title": "User Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Delete User",
        "tags": [
          "users"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "get": {
        "description": "Get user details (admin only)",
        "operationId": "get_user_api_v1_users__user_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "title": "User Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get User",
        "tags": [
          "users"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      },
      "put": {
        "description": "Update user (admin only)",
        "operationId": "update_user_api_v1_users__user_id__put",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "title": "User Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Update User",
        "tags": [
          "users"
        ],
        "x-authorization-dependency": "get_admin_user",
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/verifications": {
      "get": {
        "description": "List all verification records",
        "operationId": "list_all_verifications_api_v1_verifications_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List All Verifications",
        "tags": [
          "verification"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/verifications/{verification_id}": {
      "get": {
        "description": "Get details of a specific verification",
        "operationId": "get_verification_api_v1_verifications__verification_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "verification_id",
            "required": true,
            "schema": {
              "title": "Verification Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Verification",
        "tags": [
          "verification"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/version": {
      "get": {
        "description": "Get API version information",
        "operationId": "get_version_api_v1_version_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Get Version",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/api/v1/vms": {
      "get": {
        "description": "List all VMs with pagination, filtering, and sorting (protected)",
        "operationId": "list_vms_api_v1_vms_get",
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Clamped to 100 per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "Clamped to 100 per page",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "in": "query",
            "name": "agent_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Agent Id"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "in": "query",
            "name": "group_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Group Id"
            }
          },
          {
            "in": "query",
            "name": "sort_by",
            "required": false,
            "schema": {
              "default": "name",
              "title": "Sort By",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sort_order",
            "required": false,
            "schema": {
              "default": "asc",
              "title": "Sort Order",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "inventory_present",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Inventory Present"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "has_more": {
                      "type": "boolean"
                    },
                    "items": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "absent_since": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agent_hostname": {
                            "type": "string"
                          },
                          "agent_id": {
                            "type": "string"
                          },
                          "backup_eligibility": {
                            "additionalProperties": false,
                            "properties": {
                              "eligible": {
                                "type": "boolean"
                              },
                              "has_raw": {
                                "type": "boolean"
                              },
                              "warnings": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "required": [
                              "eligible",
                              "has_raw",
                              "warnings"
                            ],
                            "type": "object"
                          },
                          "created_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "disks": {
                            "items": {
                              "additionalProperties": true,
                              "description": "Extensible domain metadata; keys are not a closed schema.",
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "id": {
                            "type": "string"
                          },
                          "inventory_present": {
                            "type": "boolean"
                          },
                          "last_backup_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "last_backup_status": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "last_backup_type": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "last_observed_at": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "memory_kb": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "additionalProperties": true,
                            "description": "Extensible domain metadata; keys are not a closed schema.",
                            "type": "object"
                          },
                          "name": {
                            "type": "string"
                          },
                          "namespace": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replaces_vm_id": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "uuid": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vcpu_count": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vm_uid": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "vmi_uid": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "uuid",
                          "state",
                          "provider",
                          "namespace",
                          "vm_uid",
                          "vmi_uid",
                          "replaces_vm_id",
                          "last_backup_type",
                          "last_backup_status",
                          "id",
                          "name",
                          "memory_kb",
                          "vcpu_count",
                          "disks",
                          "metadata",
                          "inventory_present",
                          "last_observed_at",
                          "absent_since",
                          "agent_id",
                          "agent_hostname",
                          "created_at",
                          "last_backup_at",
                          "backup_eligibility"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "skip": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "items",
                    "total",
                    "skip",
                    "limit",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Vms",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "user-session",
        "x-list-contract": {
          "completeness": "Current authorized query; concurrent changes can move offset boundaries. Counts and items are not a single snapshot.",
          "ordering": "requested sort field and direction, then id ascending",
          "pagination": "offset",
          "snapshot": false
        }
      }
    },
    "/api/v1/vms/ids-by-filter": {
      "post": {
        "description": "Get VM IDs matching filter criteria (for 'select all matching' across pages).",
        "operationId": "get_vm_ids_by_filter_api_v1_vms_ids_by_filter_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "title": "Body",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Vm Ids By Filter",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/api/v1/vms/{vm_id}": {
      "get": {
        "description": "Get VM details (protected)",
        "operationId": "get_vm_api_v1_vms__vm_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "vm_id",
            "required": true,
            "schema": {
              "title": "Vm Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Vm",
        "tags": [
          "agents"
        ],
        "x-credential-domain": "user-session"
      }
    },
    "/health": {
      "get": {
        "description": "Shallow liveness check — always 200 while the process is up.\n\nMust stay dependency-free: liveness gates pod restarts, and coupling it to\nan external dependency (DB/S3) turns a dependency outage into a restart\nkill-loop. Deep dependency checks belong in /ready.",
        "operationId": "health_check_health_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Health Check",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/metrics": {
      "get": {
        "description": "Prometheus metrics endpoint for monitoring",
        "operationId": "prometheus_metrics_metrics_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Prometheus Metrics",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    },
    "/ready": {
      "get": {
        "description": "Deep readiness check — verifies required dependencies (PostgreSQL).\n\nReadiness gates Service endpoints, so a Postgres outage drains traffic from\nthe pod instead of masking the degradation behind 'Running 1/1'. Liveness\nmust NOT use this endpoint (a DB outage should drain, not kill-loop).",
        "operationId": "readiness_check_ready_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Readiness Check",
        "tags": [
          "public"
        ],
        "x-credential-domain": "public-or-route-specific"
      }
    }
  },
  "x-contract-export-kind": "offline-source-schema; not observed live wire compatibility",
  "x-operator-contract-version": 1,
  "x-operator-first-support": {
    "planned_version": "6.0.75",
    "status": "DRAFT"
  },
  "x-response-schema-inventory": {
    "described_count": 37,
    "qualification": "Top-level response shape only; extensible metadata is intentional. Described schemas do not imply runtime validation or complete endpoint qualification.",
    "untyped": [
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/checkpoint-proof"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/finalize-intent"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-admission"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-closed-failure"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-fenced-failure"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-inventory"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-no-effect"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-publication"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/native-transaction"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/prepared-receipt"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/storage-control"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/storage-retirement"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/backups/{backup_id}/transaction-key"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/register"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{agent_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{agent_id}"
      },
      {
        "method": "PATCH",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{agent_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{agent_id}/pending-jobs"
      },
      {
        "method": "PATCH",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{agent_id}/settings"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/agents/{hostname}/vms"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/login"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/logout"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/me"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/oidc/callback"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/oidc/login"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/oidc/status"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/oidc/test"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/auth/refresh"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/bulk-delete"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/bulk-tag"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/cleanup"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/queue/{queue_id}"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}/restore-bundle"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "202:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}/resume"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}/retry-upload"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}/verifications"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "202:application/json"
        ],
        "path": "/api/v1/backups/{backup_id}/verify"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/bootstrap"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/compatibility"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/config/realtime"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/dashboard/backup-trends"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/dashboard/storage-usage"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/dashboard/summary"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/backups"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/backups/{backup_id}/retry"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/groups"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/groups/preview"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/groups/{group_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/reset"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/restores"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/schedules"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/schedules/{schedule_id}/run"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/demo/sessions"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/sessions/current"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/demo/state"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/encryption/keys/confirm-export"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/encryption/keys/import"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/encryption/keys/{key_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/encryption/keys/{key_id}/revoke"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/encryption/provider"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/features"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}/preview"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}/vms"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/groups/{group_id}/vms/{vm_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/agents"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/agents/{agent_id}/heartbeat"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/backups"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/detailed"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/diagnostics"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/health/system"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/license/info"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/acknowledgement"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/acknowledgement/confirm"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/acknowledgement/prepare"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/import"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/registration-url"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/licensing/status"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/logs"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/mark-all-read"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/rules"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/notifications/rules"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/rules/{rule_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/rules/{rule_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/rules/{rule_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/settings"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/settings"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/test"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/{notification_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/notifications/{notification_id}/read"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/orchestrator-keys/{key_id}"
      },
      {
        "method": "PATCH",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/orchestrator-keys/{key_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/backend-cert"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/ca"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/certificates"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/certificates/{cert_id}/revoke"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/initialize"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/renew"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/pki/status"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/registration-keys/{key_id}"
      },
      {
        "method": "PATCH",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/registration-keys/{key_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/report-executions/{execution_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/reports"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/reports/{report_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/reports/{report_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/reports/{report_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/reports/{report_id}/generate"
      },
      {
        "method": "PATCH",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/restores/{restore_id}/cancel"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "202:application/json"
        ],
        "path": "/api/v1/restores/{restore_id}/resume"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/s3/discover"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/s3/import"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/saved-searches"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/saved-searches"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/saved-searches/{search_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/saved-searches/{search_id}"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/saved-searches/{search_id}/execute"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/schedules"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}/grant"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}/grant"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}/grant"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/schedules/{schedule_id}/run-now"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/search"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/settings"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/settings"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/settings/test-email"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/settings/test-s3"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/settings/{setting_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/stats"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "201:application/json"
        ],
        "path": "/api/v1/users"
      },
      {
        "method": "DELETE",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/users/{user_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/users/{user_id}"
      },
      {
        "method": "PUT",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/users/{user_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/verifications"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/verifications/{verification_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/version"
      },
      {
        "method": "POST",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/vms/ids-by-filter"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/api/v1/vms/{vm_id}"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/health"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/metrics"
      },
      {
        "method": "GET",
        "opaque_responses": [
          "200:application/json"
        ],
        "path": "/ready"
      }
    ],
    "untyped_count": 152
  },
  "x-source-commit": "0d7d3bafab4f3235030eda65a0acdb030bda84d5",
  "x-source-tree-clean": true
}
