{
  "components": {
    "securitySchemes": {
      "keycloak-bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Access token issued by the Keycloak realm `startupos`. Send it as `Authorization: Bearer <token>`. A missing, expired or invalid token returns 401; a valid token without the required role returns 403."
      },
      "stream-token": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "Short-lived, enrolment-scoped stream token minted by the matching authenticated `stream-token` operation. Used because a cross-origin video element cannot send an Authorization header."
      },
      "livekit-signature": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "JWT signed by the LiveKit server, sent without a `Bearer ` prefix and verified by the service. Only the LiveKit server calls this operation."
      }
    }
  },
  "info": {
    "title": "StartupOS ai-copilot service",
    "version": "a54687de",
    "description": "Generated at build time from the service's JAX-RS resources (SmallRye OpenAPI) and annotated by the overlay in docs-site/openapi/overlays. Every operation requires a Keycloak access token unless the operation says otherwise. Health and metrics endpoints are internal and are not documented."
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/copilot/draft-assist": {
      "post": {
        "operationId": "CopilotResource_draftAssist",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": {},
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Draft assist"
      }
    },
    "/api/v1/copilot/draft-generate": {
      "post": {
        "operationId": "CopilotResource_draftGenerate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": {},
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Draft generate"
      }
    },
    "/api/v1/copilot/history": {
      "get": {
        "operationId": "CopilotResource_getHistory",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "default": 0,
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "participantId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "size",
            "schema": {
              "default": 20,
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Get history"
      }
    },
    "/api/v1/copilot/ingest": {
      "post": {
        "operationId": "CopilotResource_ingestDocument",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Ingest document"
      }
    },
    "/api/v1/copilot/query": {
      "post": {
        "operationId": "CopilotResource_query",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": {},
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Query"
      }
    },
    "/api/v1/copilot/session": {
      "delete": {
        "operationId": "CopilotResource_clearSession",
        "parameters": [
          {
            "in": "query",
            "name": "participantId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Clear session"
      },
      "get": {
        "operationId": "CopilotResource_getSession",
        "parameters": [
          {
            "in": "query",
            "name": "participantId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Copilot"
        ],
        "summary": "Get session"
      }
    }
  },
  "security": [
    {
      "keycloak-bearer": []
    }
  ],
  "tags": [
    {
      "name": "Copilot",
      "description": "AI-assisted drafting and history."
    }
  ]
}
