{
  "openapi": "3.1.0",
  "info": {
    "title": "Aerontra Intelligence API",
    "description": "Decision support only. Not certified for flight control, air traffic control, spacecraft maneuvers, or engineering safety approval.",
    "version": "0.1.0"
  },
  "paths": {
    "/v1/documents": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "List Documents",
        "operationId": "list_documents_v1_documents_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DocumentMetadata"
                  },
                  "type": "array",
                  "title": "Response List Documents V1 Documents Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Add Document",
        "operationId": "add_document_v1_documents_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/documents/{record_id}": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Read Document",
        "operationId": "read_document_v1_documents__record_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Delete Document",
        "operationId": "delete_document_v1_documents__record_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/research/evidence": {
      "post": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Retrieve",
        "operationId": "retrieve_v1_research_evidence_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvidenceQuery"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidenceRun"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/projects": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "List Projects",
        "operationId": "list_projects_v1_projects_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Project"
                  },
                  "type": "array",
                  "title": "Response List Projects V1 Projects Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Save Project",
        "operationId": "save_project_v1_projects_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/projects/{record_id}": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Read Project",
        "operationId": "read_project_v1_projects__record_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Review Project",
        "operationId": "review_project_v1_projects__record_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Delete Project",
        "operationId": "delete_project_v1_projects__record_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/research/status": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Research Status",
        "operationId": "research_status_v1_research_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/research/grants": {
      "post": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Approve Retrieval",
        "operationId": "approve_retrieval_v1_research_grants_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrievalGrantInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/documents/retrieve": {
      "post": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Retrieve External",
        "operationId": "retrieve_external_v1_documents_retrieve_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalDocumentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/research/retrievals": {
      "get": {
        "tags": [
          "Document evidence and projects"
        ],
        "summary": "Retrieval History",
        "operationId": "retrieval_history_v1_research_retrievals_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/auth/code/request": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Request Code",
        "operationId": "request_code_v1_auth_code_request_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeChallenge"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/code/verify": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Verify Code",
        "operationId": "verify_code_v1_auth_code_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeVerify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/onboard": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Onboard",
        "operationId": "onboard_v1_auth_onboard_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Registration"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/auth/account": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Account",
        "operationId": "get_account_v1_auth_account_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountProfile"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/auth/logout": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Logout",
        "operationId": "logout_v1_auth_logout_post",
        "responses": {
          "204": {
            "description": "Successful Response"
          }
        }
      }
    },
    "/v1/contact": {
      "post": {
        "tags": [
          "Contact"
        ],
        "summary": "Submit Contact",
        "operationId": "submit_contact_v1_contact_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactReceipt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/contact-requests": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "List Contact Requests",
        "operationId": "list_contact_requests_v1_team_contact_requests_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ContactRecord"
                  },
                  "type": "array",
                  "title": "Response List Contact Requests V1 Team Contact Requests Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/research/answer": {
      "post": {
        "tags": [
          "Research agent"
        ],
        "summary": "Answer",
        "operationId": "answer_v1_research_answer_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvidenceQuery"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidenceRun"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/team/accounts": {
      "get": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "List Accounts",
        "operationId": "list_accounts_v1_team_accounts_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/team/accounts/{account_id}": {
      "get": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Details",
        "operationId": "details_v1_team_accounts__account_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Update",
        "operationId": "update_v1_team_accounts__account_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/accounts/{account_id}/claim": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Claim",
        "operationId": "claim_v1_team_accounts__account_id__claim_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/accounts/{account_id}/notes": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Add Note",
        "operationId": "add_note_v1_team_accounts__account_id__notes_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Note"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/accounts/{account_id}/tasks": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Add Task",
        "operationId": "add_task_v1_team_accounts__account_id__tasks_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/tasks/{task_id}/complete": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Complete Task",
        "operationId": "complete_task_v1_team_tasks__task_id__complete_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Task Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/accounts/{account_id}/contacts": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Add Contact",
        "operationId": "add_contact_v1_team_accounts__account_id__contacts_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Contact"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/accounts/{account_id}/draft": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Draft",
        "operationId": "draft_v1_team_accounts__account_id__draft_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Account Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/outreach/{outreach_id}/approve": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Approve",
        "operationId": "approve_v1_team_outreach__outreach_id__approve_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "outreach_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Outreach Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Approval"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/team/outreach/{outreach_id}/send": {
      "post": {
        "tags": [
          "Employee sales platform"
        ],
        "summary": "Send",
        "operationId": "send_v1_team_outreach__outreach_id__send_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "outreach_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Outreach Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/data/sources": {
      "get": {
        "tags": [
          "Research data"
        ],
        "summary": "Data Sources",
        "operationId": "data_sources_v1_data_sources_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cost_model",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "free",
                    "paid",
                    "mixed",
                    "unknown"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cost Model"
            }
          },
          {
            "name": "institution_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "government",
                    "intergovernmental",
                    "research",
                    "commercial",
                    "community",
                    "unknown"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Institution Type"
            }
          },
          {
            "name": "jurisdiction",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Jurisdiction"
            }
          },
          {
            "name": "implemented_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Implemented Only"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataSource"
                  },
                  "title": "Response Data Sources V1 Data Sources Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/data/coverage": {
      "get": {
        "tags": [
          "Research data"
        ],
        "summary": "Coverage",
        "operationId": "coverage_v1_data_coverage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataCoverage"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/models": {
      "get": {
        "tags": [
          "Model catalog"
        ],
        "summary": "Model Catalog",
        "operationId": "model_catalog_v1_models_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ModelCard"
                  },
                  "type": "array",
                  "title": "Response Model Catalog V1 Models Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/healthz": {
      "get": {
        "summary": "Health",
        "operationId": "health_healthz_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/readyz": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Ready",
        "operationId": "ready_readyz_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "summary": "Me",
        "operationId": "me_v1_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Principal"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/sources": {
      "get": {
        "summary": "Sources",
        "operationId": "sources_v1_sources_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Source"
                  },
                  "type": "array",
                  "title": "Response Sources V1 Sources Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/references": {
      "get": {
        "summary": "References",
        "operationId": "references_v1_references_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Reference"
                  },
                  "type": "array",
                  "title": "Response References V1 References Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/research/preview": {
      "post": {
        "summary": "Research",
        "operationId": "research_v1_research_preview_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/agent": {
      "get": {
        "tags": [
          "Research agent"
        ],
        "summary": "Get Agent",
        "operationId": "get_agent_v1_agent_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/research/agent": {
      "post": {
        "tags": [
          "Research agent"
        ],
        "summary": "Agent Research",
        "operationId": "agent_research_v1_research_agent_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/organization": {
      "get": {
        "summary": "Organization",
        "operationId": "organization_v1_organization_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/operations": {
      "get": {
        "summary": "Operations",
        "operationId": "operations_v1_operations_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/ingestion/{source_id}": {
      "post": {
        "summary": "Ingest",
        "operationId": "ingest_v1_ingestion__source_id__post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Source Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "summary": "Checkout",
        "operationId": "checkout_v1_billing_checkout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/billing/stripe/webhook": {
      "post": {
        "summary": "Webhook",
        "operationId": "webhook_v1_billing_stripe_webhook_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountPatch": {
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Version"
          },
          "stage": {
            "type": "string",
            "enum": [
              "research",
              "qualified",
              "contacted",
              "meeting",
              "proposal",
              "won",
              "lost"
            ],
            "title": "Stage"
          },
          "do_not_contact": {
            "type": "boolean",
            "title": "Do Not Contact"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "version",
          "stage",
          "do_not_contact"
        ],
        "title": "AccountPatch"
      },
      "AccountProfile": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "individual",
              "organization"
            ],
            "title": "Account Type"
          },
          "workspace_id": {
            "type": "string",
            "title": "Workspace Id"
          },
          "workspace_name": {
            "type": "string",
            "title": "Workspace Name"
          },
          "roles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Roles"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "display_name",
          "account_type",
          "workspace_id",
          "workspace_name",
          "roles"
        ],
        "title": "AccountProfile"
      },
      "AgentResearchResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "const": "codex_agent",
            "title": "Mode",
            "default": "codex_agent"
          },
          "query": {
            "type": "string",
            "title": "Query"
          },
          "references": {
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "type": "array",
            "title": "References"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At"
          },
          "synthesis": {
            "type": "string",
            "title": "Synthesis"
          },
          "notice": {
            "type": "string",
            "title": "Notice",
            "default": "Decision support only. Not certified for flight control, air traffic control, spacecraft maneuvers, or engineering safety approval."
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": "Codex analysis of source-directory metadata. No live document retrieval has run; references are research starting points, not verified evidence."
          },
          "cited_reference_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Cited Reference Ids"
          },
          "engine": {
            "type": "string",
            "const": "openai/codex",
            "title": "Engine",
            "default": "openai/codex"
          }
        },
        "type": "object",
        "required": [
          "query",
          "references",
          "generated_at",
          "synthesis",
          "cited_reference_ids"
        ],
        "title": "AgentResearchResponse"
      },
      "AgentStatus": {
        "properties": {
          "engine": {
            "type": "string",
            "title": "Engine",
            "default": "openai/codex"
          },
          "provider": {
            "type": "string",
            "title": "Provider",
            "default": "Azure OpenAI"
          },
          "configured": {
            "type": "boolean",
            "title": "Configured"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "configured",
          "message"
        ],
        "title": "AgentStatus"
      },
      "Approval": {
        "properties": {
          "contact_id": {
            "type": "string",
            "format": "uuid",
            "title": "Contact Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "contact_id"
        ],
        "title": "Approval"
      },
      "Citation": {
        "properties": {
          "document_id": {
            "type": "string",
            "title": "Document Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "start": {
            "type": "integer",
            "title": "Start"
          },
          "end": {
            "type": "integer",
            "title": "End"
          },
          "quote": {
            "type": "string",
            "title": "Quote"
          },
          "context": {
            "type": "string",
            "title": "Context"
          },
          "rights": {
            "type": "string",
            "title": "Rights"
          },
          "added_at": {
            "type": "string",
            "title": "Added At"
          },
          "external": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "External"
          },
          "provenance": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provenance"
          }
        },
        "type": "object",
        "required": [
          "document_id",
          "title",
          "source_url",
          "sha256",
          "start",
          "end",
          "quote",
          "context",
          "rights",
          "added_at"
        ],
        "title": "Citation"
      },
      "CodeChallenge": {
        "properties": {
          "challenge_id": {
            "type": "string",
            "title": "Challenge Id"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In",
            "default": 600
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": "Check your email for a one-time sign-in code."
          }
        },
        "type": "object",
        "required": [
          "challenge_id"
        ],
        "title": "CodeChallenge"
      },
      "CodeRequest": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "title": "Email"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "login",
              "register"
            ],
            "title": "Purpose",
            "default": "login"
          },
          "registration": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Registration"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email"
        ],
        "title": "CodeRequest"
      },
      "CodeVerify": {
        "properties": {
          "challenge_id": {
            "type": "string",
            "maxLength": 36,
            "minLength": 36,
            "title": "Challenge Id"
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$",
            "title": "Code"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "challenge_id",
          "code"
        ],
        "title": "CodeVerify"
      },
      "Contact": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "permission_evidence": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Permission Evidence"
          },
          "approved_for_outreach": {
            "type": "boolean",
            "title": "Approved For Outreach",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "email",
          "permission_evidence"
        ],
        "title": "Contact"
      },
      "ContactReceipt": {
        "properties": {
          "status": {
            "type": "string",
            "const": "received",
            "title": "Status",
            "default": "received"
          }
        },
        "type": "object",
        "title": "ContactReceipt"
      },
      "ContactRecord": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "company": {
            "type": "string",
            "title": "Company"
          },
          "topic": {
            "type": "string",
            "title": "Topic"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "email",
          "company",
          "topic",
          "message",
          "created_at"
        ],
        "title": "ContactRecord"
      },
      "ContactRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "title": "Email"
          },
          "company": {
            "type": "string",
            "maxLength": 160,
            "title": "Company",
            "default": ""
          },
          "topic": {
            "type": "string",
            "enum": [
              "demo",
              "sales",
              "support",
              "other"
            ],
            "title": "Topic",
            "default": "other"
          },
          "message": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Message"
          },
          "website": {
            "type": "string",
            "maxLength": 200,
            "title": "Website",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "email",
          "message"
        ],
        "title": "ContactRequest"
      },
      "DataCoverage": {
        "properties": {
          "registered_sources": {
            "type": "integer",
            "title": "Registered Sources"
          },
          "implemented_connectors": {
            "type": "integer",
            "title": "Implemented Connectors"
          },
          "local_runs": {
            "type": "integer",
            "title": "Local Runs"
          },
          "successful_runs": {
            "type": "integer",
            "title": "Successful Runs"
          },
          "acquired_record_versions": {
            "type": "integer",
            "title": "Acquired Record Versions"
          },
          "corrupt_manifests": {
            "type": "integer",
            "title": "Corrupt Manifests"
          },
          "storage": {
            "type": "string",
            "title": "Storage",
            "default": "configured_local_lake"
          },
          "cloud_status": {
            "type": "string",
            "title": "Cloud Status",
            "default": "not_queried"
          },
          "training_status": {
            "type": "string",
            "title": "Training Status",
            "default": "Rights-reviewed dataset export and Azure ML registration available; no trained model implied."
          }
        },
        "type": "object",
        "required": [
          "registered_sources",
          "implemented_connectors",
          "local_runs",
          "successful_runs",
          "acquired_record_versions",
          "corrupt_manifests"
        ],
        "title": "DataCoverage"
      },
      "DataSource": {
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9-]+$",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "documentation": {
            "type": "string",
            "title": "Documentation"
          },
          "terms_url": {
            "type": "string",
            "title": "Terms Url"
          },
          "access": {
            "type": "string",
            "enum": [
              "public_research",
              "credentials_required",
              "review_required"
            ],
            "title": "Access"
          },
          "adapter": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "list",
                  "cmr",
                  "ntrs",
                  "images",
                  "table",
                  "power",
                  "csv",
                  "ogc",
                  "tap",
                  "object",
                  "worldbank",
                  "votable",
                  "hapi",
                  "horizons",
                  "bmkg",
                  "jsonstat",
                  "sdss",
                  "offset",
                  "page",
                  "atom",
                  "tsv",
                  "usaspending",
                  "paging",
                  "json_gz",
                  "zip_text",
                  "document",
                  "csv_bz2",
                  "zip_csv",
                  "fanout"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Adapter"
          },
          "fanout_list_path": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Fanout List Path"
          },
          "fanout_id_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fanout Id Field"
          },
          "zip_member": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Zip Member"
          },
          "row_column_metadata": {
            "type": "boolean",
            "title": "Row Column Metadata",
            "default": true
          },
          "accept": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accept"
          },
          "timeout_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 300.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Timeout Seconds"
          },
          "paging": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Paging"
          },
          "max_page_size": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Page Size"
          },
          "redact_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Redact Fields"
          },
          "max_response_mib": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Response Mib"
          },
          "endpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint"
          },
          "params": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Params"
          },
          "body": {
            "additionalProperties": true,
            "type": "object",
            "title": "Body"
          },
          "page_delay_seconds": {
            "type": "integer",
            "maximum": 60.0,
            "minimum": 1.0,
            "title": "Page Delay Seconds",
            "default": 1
          },
          "record_path": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Record Path"
          },
          "id_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Id Fields"
          },
          "time_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Field"
          },
          "units": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Units"
          },
          "context_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Context Fields"
          },
          "split_group_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Split Group Fields"
          },
          "group_entire_source": {
            "type": "boolean",
            "title": "Group Entire Source",
            "default": false
          },
          "data_kind": {
            "type": "string",
            "enum": [
              "metadata",
              "observation",
              "forecast",
              "reference",
              "event",
              "unknown"
            ],
            "title": "Data Kind",
            "default": "unknown"
          },
          "refresh_hours": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Refresh Hours",
            "default": 24
          },
          "scope": {
            "type": "string",
            "title": "Scope"
          },
          "limitations": {
            "type": "string",
            "title": "Limitations"
          },
          "cost_model": {
            "type": "string",
            "enum": [
              "free",
              "paid",
              "mixed",
              "unknown"
            ],
            "title": "Cost Model",
            "default": "unknown"
          },
          "pricing_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing Url"
          },
          "delivery": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Delivery"
          },
          "use_cases": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Use Cases"
          },
          "priority": {
            "type": "string",
            "enum": [
              "evaluate_first",
              "specialist",
              "discovery"
            ],
            "title": "Priority",
            "default": "discovery"
          },
          "access_requirements": {
            "type": "string",
            "title": "Access Requirements",
            "default": "Dataset-level access and rights review required."
          },
          "azure_fit": {
            "type": "string",
            "title": "Azure Fit",
            "default": "Acquire licensed data into Azure; processing and model training remain on Azure."
          },
          "evidence_checked_on": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Checked On"
          },
          "jurisdictions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Jurisdictions"
          },
          "geographic_coverage": {
            "type": "string",
            "title": "Geographic Coverage",
            "default": "See dataset documentation; provider jurisdiction is not observation coverage."
          },
          "institution_type": {
            "type": "string",
            "enum": [
              "government",
              "intergovernmental",
              "research",
              "commercial",
              "community",
              "unknown"
            ],
            "title": "Institution Type",
            "default": "unknown"
          },
          "free_access": {
            "type": "string",
            "enum": [
              "open_download",
              "free_registration",
              "research_only",
              "mixed",
              "unconfirmed"
            ],
            "title": "Free Access",
            "default": "unconfirmed"
          },
          "license_summary": {
            "type": "string",
            "title": "License Summary",
            "default": "Dataset/version-specific training and redistribution rights remain unapproved."
          },
          "evidence_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Evidence Urls"
          },
          "training_approved": {
            "type": "boolean",
            "const": false,
            "title": "Training Approved",
            "default": false
          },
          "redistribution_approved": {
            "type": "boolean",
            "const": false,
            "title": "Redistribution Approved",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "provider",
          "domain",
          "url",
          "documentation",
          "terms_url",
          "access",
          "scope",
          "limitations"
        ],
        "title": "DataSource"
      },
      "Document": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url"
          },
          "rights": {
            "type": "string",
            "title": "Rights"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "added_at": {
            "type": "string",
            "title": "Added At"
          },
          "added_by": {
            "type": "string",
            "title": "Added By"
          },
          "external": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "External"
          },
          "provenance": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provenance"
          },
          "text": {
            "type": "string",
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "source_url",
          "rights",
          "sha256",
          "added_at",
          "added_by",
          "text"
        ],
        "title": "Document"
      },
      "DocumentInput": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "text": {
            "type": "string",
            "maxLength": 100000,
            "minLength": 30,
            "title": "Text"
          },
          "source_url": {
            "type": "string",
            "maxLength": 2000,
            "title": "Source Url",
            "default": ""
          },
          "rights": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 10,
            "title": "Rights"
          },
          "authorized": {
            "type": "boolean",
            "const": true,
            "title": "Authorized"
          }
        },
        "type": "object",
        "required": [
          "title",
          "text",
          "rights",
          "authorized"
        ],
        "title": "DocumentInput"
      },
      "DocumentMetadata": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url"
          },
          "rights": {
            "type": "string",
            "title": "Rights"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "added_at": {
            "type": "string",
            "title": "Added At"
          },
          "added_by": {
            "type": "string",
            "title": "Added By"
          },
          "external": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "External"
          },
          "provenance": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provenance"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "source_url",
          "rights",
          "sha256",
          "added_at",
          "added_by"
        ],
        "title": "DocumentMetadata"
      },
      "EvidenceClaim": {
        "properties": {
          "statement": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 1,
            "title": "Statement"
          },
          "citation_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 12,
            "minItems": 1,
            "title": "Citation Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "statement",
          "citation_ids"
        ],
        "title": "EvidenceClaim"
      },
      "EvidenceQuery": {
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 3,
            "title": "Query"
          },
          "document_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Document Ids"
          },
          "search_external": {
            "type": "boolean",
            "title": "Search External",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "EvidenceQuery"
      },
      "EvidenceRun": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "query": {
            "type": "string",
            "title": "Query"
          },
          "generated_at": {
            "type": "string",
            "title": "Generated At"
          },
          "algorithm": {
            "type": "string",
            "title": "Algorithm"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "title": "Findings"
          },
          "searched_document_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Searched Document Ids"
          },
          "searched_document_count": {
            "type": "integer",
            "title": "Searched Document Count",
            "default": 0
          },
          "gaps": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Gaps"
          },
          "external_retrieval": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Retrieval"
          },
          "notice": {
            "type": "string",
            "title": "Notice"
          },
          "synthesis": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Synthesis"
          },
          "claims": {
            "items": {
              "$ref": "#/components/schemas/EvidenceClaim"
            },
            "type": "array",
            "title": "Claims"
          },
          "answer_engine": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answer Engine"
          }
        },
        "type": "object",
        "required": [
          "id",
          "query",
          "generated_at",
          "algorithm",
          "findings",
          "searched_document_ids",
          "gaps",
          "notice"
        ],
        "title": "EvidenceRun"
      },
      "ExternalDocumentRequest": {
        "properties": {
          "record_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 3,
            "minItems": 1,
            "title": "Record Ids"
          }
        },
        "type": "object",
        "required": [
          "record_ids"
        ],
        "title": "ExternalDocumentRequest"
      },
      "Finding": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "statement": {
            "type": "string",
            "title": "Statement"
          },
          "citation": {
            "$ref": "#/components/schemas/Citation"
          },
          "validation": {
            "type": "string",
            "const": "exact_quote_verified",
            "title": "Validation"
          }
        },
        "type": "object",
        "required": [
          "id",
          "statement",
          "citation",
          "validation"
        ],
        "title": "Finding"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ModelCard": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "purpose": {
            "type": "string",
            "title": "Purpose"
          },
          "model_type": {
            "type": "string",
            "title": "Model Type"
          },
          "status": {
            "type": "string",
            "const": "planned",
            "title": "Status"
          },
          "base_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model"
          },
          "model_license": {
            "type": "string",
            "title": "Model License"
          },
          "training_data_rights": {
            "type": "string",
            "title": "Training Data Rights"
          },
          "model_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Version"
          },
          "benchmark_results": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benchmark Results"
          },
          "azure_deployment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Azure Deployment"
          },
          "inference_enabled": {
            "type": "boolean",
            "title": "Inference Enabled"
          },
          "deployment_options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Deployment Options"
          },
          "notice": {
            "type": "string",
            "title": "Notice"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "purpose",
          "model_type",
          "status",
          "base_model",
          "model_license",
          "training_data_rights",
          "model_version",
          "benchmark_results",
          "azure_deployment",
          "inference_enabled",
          "deployment_options",
          "notice"
        ],
        "title": "ModelCard"
      },
      "Note": {
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Body"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "body"
        ],
        "title": "Note"
      },
      "Principal": {
        "properties": {
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id"
          },
          "roles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Roles"
          },
          "demo": {
            "type": "boolean",
            "title": "Demo",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "subject",
          "roles"
        ],
        "title": "Principal"
      },
      "Project": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "run": {
            "$ref": "#/components/schemas/EvidenceRun"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "revision": {
            "type": "integer",
            "title": "Revision"
          },
          "reviews": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Reviews"
          },
          "status": {
            "type": "string",
            "enum": [
              "needs_review",
              "accepted",
              "rejected"
            ],
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "run",
          "created_at",
          "created_by",
          "revision",
          "reviews",
          "status"
        ],
        "title": "Project"
      },
      "ProjectInput": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "run_id": {
            "type": "string",
            "title": "Run Id"
          }
        },
        "type": "object",
        "required": [
          "title",
          "run_id"
        ],
        "title": "ProjectInput"
      },
      "Reference": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "source_id": {
            "type": "string",
            "title": "Source Id"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "observed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Observed At"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "warning": {
            "type": "string",
            "title": "Warning"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "source_id",
          "domain",
          "description",
          "url",
          "tags",
          "published_at",
          "observed_at",
          "confidence",
          "kind",
          "warning"
        ],
        "title": "Reference"
      },
      "Registration": {
        "properties": {
          "account_type": {
            "type": "string",
            "enum": [
              "individual",
              "organization"
            ],
            "title": "Account Type"
          },
          "display_name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Display Name"
          },
          "organization_name": {
            "type": "string",
            "maxLength": 160,
            "title": "Organization Name",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "account_type",
          "display_name"
        ],
        "title": "Registration"
      },
      "ResearchRequest": {
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 3,
            "title": "Query"
          },
          "domain": {
            "type": "string",
            "enum": [
              "All",
              "Research",
              "Aviation",
              "Space",
              "Engineering",
              "Predict",
              "Data",
              "Climate"
            ],
            "title": "Domain",
            "default": "All"
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "ResearchRequest"
      },
      "ResearchResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "const": "directory_preview",
            "title": "Mode",
            "default": "directory_preview"
          },
          "query": {
            "type": "string",
            "title": "Query"
          },
          "references": {
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "type": "array",
            "title": "References"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At"
          },
          "synthesis": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Synthesis"
          },
          "notice": {
            "type": "string",
            "title": "Notice",
            "default": "Decision support only. Not certified for flight control, air traffic control, spacecraft maneuvers, or engineering safety approval."
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": "Source-directory matching only. No AI inference or live document retrieval has run."
          }
        },
        "type": "object",
        "required": [
          "query",
          "references",
          "generated_at"
        ],
        "title": "ResearchResponse"
      },
      "RetrievalGrantInput": {
        "properties": {
          "rights": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 20,
            "title": "Rights"
          },
          "evidence_url": {
            "type": "string",
            "maxLength": 2000,
            "pattern": "^https://",
            "title": "Evidence Url"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "active": {
            "type": "boolean",
            "title": "Active",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "rights",
          "evidence_url",
          "expires_at"
        ],
        "title": "RetrievalGrantInput"
      },
      "ReviewInput": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "needs_review",
              "accepted",
              "rejected"
            ],
            "title": "Status"
          },
          "decision": {
            "type": "string",
            "maxLength": 5000,
            "minLength": 10,
            "title": "Decision"
          },
          "expected_revision": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Expected Revision"
          }
        },
        "type": "object",
        "required": [
          "status",
          "decision",
          "expected_revision"
        ],
        "title": "ReviewInput"
      },
      "SessionResult": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In",
            "default": 86400
          },
          "account": {
            "$ref": "#/components/schemas/AccountProfile"
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "account"
        ],
        "title": "SessionResult"
      },
      "Source": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "license_status": {
            "type": "string",
            "enum": [
              "pending_review",
              "restricted",
              "approved"
            ],
            "title": "License Status"
          },
          "commercial_ingestion": {
            "type": "boolean",
            "title": "Commercial Ingestion"
          },
          "redistribution": {
            "type": "boolean",
            "title": "Redistribution"
          },
          "format": {
            "type": "string",
            "title": "Format"
          },
          "freshness": {
            "type": "string",
            "title": "Freshness"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "domain",
          "url",
          "description",
          "license_status",
          "commercial_ingestion",
          "redistribution",
          "format",
          "freshness"
        ],
        "title": "Source"
      },
      "Task": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "due_at"
        ],
        "title": "Task"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
