{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-queued-approvals-response-schema.json",
  "title": "QueuedApprovalsResponse",
  "description": "Response envelope for ``GET /approvals/queue``.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-approvals-api-openapi.yml#/components/schemas/QueuedApprovalsResponse",
  "properties": {
    "pending": {
      "items": {
        "$ref": "#/$defs/QueuedApprovalResponse"
      },
      "type": "array",
      "title": "Pending"
    }
  },
  "type": "object",
  "required": [
    "pending"
  ],
  "$defs": {
    "QueuedApprovalResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "session_id": {
          "type": "string",
          "title": "Session Id"
        },
        "agent_role": {
          "type": "string",
          "title": "Agent Role"
        },
        "tool_name": {
          "type": "string",
          "title": "Tool Name"
        },
        "tool_args": {
          "additionalProperties": true,
          "type": "object",
          "title": "Tool Args"
        },
        "created_at": {
          "type": "number",
          "title": "Created At"
        },
        "ttl_seconds": {
          "type": "integer",
          "title": "Ttl Seconds"
        },
        "nonce": {
          "type": "string",
          "title": "Nonce"
        }
      },
      "type": "object",
      "required": [
        "id",
        "session_id",
        "agent_role",
        "tool_name",
        "tool_args",
        "created_at",
        "ttl_seconds",
        "nonce"
      ],
      "title": "QueuedApprovalResponse",
      "description": "One queued tool-call approval from the op-002 approval queue.\n\nThe ``nonce`` field is the hex-encoded single-use token the reply\nmust echo. It travels only over the human-channel surface (TUI,\ndashboard, chat bridge) and never reaches agent stdin or any\nrendered prompt template."
    }
  }
}