{
  "components": {
    "schemas": {
      "AddEntityRequest": {
        "description": "Request model for adding a new entity to the graph.",
        "properties": {
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "identification_params": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identification Params"
          },
          "labels": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties"
          }
        },
        "required": [
          "name"
        ],
        "title": "AddEntityRequest",
        "type": "object"
      },
      "AddRelationshipRequest": {
        "description": "Request model for adding a new relationship between two entities.",
        "properties": {
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "object_uuid": {
            "title": "Object Uuid",
            "type": "string"
          },
          "predicate_description": {
            "title": "Predicate Description",
            "type": "string"
          },
          "predicate_name": {
            "title": "Predicate Name",
            "type": "string"
          },
          "subject_uuid": {
            "title": "Subject Uuid",
            "type": "string"
          }
        },
        "required": [
          "subject_uuid",
          "predicate_name",
          "predicate_description",
          "object_uuid"
        ],
        "title": "AddRelationshipRequest",
        "type": "object"
      },
      "AtlasConnection": {
        "properties": {
          "advanced": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Advanced",
            "type": "object"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "details": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "integer"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Details",
            "type": "object"
          },
          "direction": {
            "enum": [
              "in",
              "out",
              "neutral"
            ],
            "title": "Direction",
            "type": "string"
          },
          "fromId": {
            "title": "Fromid",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "toId": {
            "title": "Toid",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "typeLabel": {
            "title": "Typelabel",
            "type": "string"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "description",
          "details",
          "updatedAt",
          "advanced",
          "id",
          "fromId",
          "toId",
          "type",
          "typeLabel",
          "direction"
        ],
        "title": "AtlasConnection",
        "type": "object"
      },
      "AtlasCoverage": {
        "properties": {
          "aggregated": {
            "title": "Aggregated",
            "type": "boolean"
          },
          "connections": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connections"
          },
          "things": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Things"
          }
        },
        "required": [
          "aggregated"
        ],
        "title": "AtlasCoverage",
        "type": "object"
      },
      "AtlasGroup": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parentid"
          },
          "representatives": {
            "items": {
              "$ref": "#/components/schemas/AtlasRepresentative"
            },
            "title": "Representatives",
            "type": "array"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "title": "Types",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "types",
          "parentId",
          "count",
          "representatives"
        ],
        "title": "AtlasGroup",
        "type": "object"
      },
      "AtlasGroupLink": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "fromId": {
            "title": "Fromid",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "toId": {
            "title": "Toid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "fromId",
          "toId",
          "count"
        ],
        "title": "AtlasGroupLink",
        "type": "object"
      },
      "AtlasReference": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "AtlasReference",
        "type": "object"
      },
      "AtlasRepresentative": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "title": "Types",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "types"
        ],
        "title": "AtlasRepresentative",
        "type": "object"
      },
      "AtlasResponse": {
        "properties": {
          "ancestors": {
            "items": {
              "$ref": "#/components/schemas/AtlasReference"
            },
            "title": "Ancestors",
            "type": "array"
          },
          "builtAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Builtat"
          },
          "connections": {
            "items": {
              "$ref": "#/components/schemas/AtlasConnection"
            },
            "title": "Connections",
            "type": "array"
          },
          "coverage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AtlasCoverage"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupLinks": {
            "items": {
              "$ref": "#/components/schemas/AtlasGroupLink"
            },
            "title": "Grouplinks",
            "type": "array"
          },
          "groupLinksTruncated": {
            "default": false,
            "title": "Grouplinkstruncated",
            "type": "boolean"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/AtlasGroup"
            },
            "title": "Groups",
            "type": "array"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextcursor"
          },
          "snapshotId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snapshotid"
          },
          "status": {
            "enum": [
              "ready",
              "building",
              "refreshing",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "things": {
            "items": {
              "$ref": "#/components/schemas/AtlasThing"
            },
            "title": "Things",
            "type": "array"
          },
          "totals": {
            "$ref": "#/components/schemas/AtlasTotals"
          },
          "version": {
            "const": 1,
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "version",
          "status"
        ],
        "title": "AtlasResponse",
        "type": "object"
      },
      "AtlasThing": {
        "properties": {
          "advanced": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Advanced",
            "type": "object"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "details": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "integer"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Details",
            "type": "object"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "typeLabels": {
            "items": {
              "type": "string"
            },
            "title": "Typelabels",
            "type": "array"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "title": "Types",
            "type": "array"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "description",
          "details",
          "updatedAt",
          "advanced",
          "id",
          "name",
          "types",
          "typeLabels"
        ],
        "title": "AtlasThing",
        "type": "object"
      },
      "AtlasTotals": {
        "properties": {
          "connections": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connections"
          },
          "things": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Things"
          }
        },
        "title": "AtlasTotals",
        "type": "object"
      },
      "Body_ingest_ingest_file_post": {
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "type": "string"
          },
          "group_tracking": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Tracking"
          }
        },
        "required": [
          "file"
        ],
        "title": "Body_ingest_ingest_file_post",
        "type": "object"
      },
      "Brain": {
        "description": "Model for a single brain, stored into data db",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name_key": {
            "description": "The key used to identify the brain.",
            "title": "Name Key",
            "type": "string"
          },
          "pat": {
            "description": "The personal access token for the brain.",
            "title": "Pat",
            "type": "string"
          }
        },
        "required": [
          "name_key"
        ],
        "title": "Brain",
        "type": "object"
      },
      "BrainLifecycleResponse": {
        "properties": {
          "brain_id": {
            "title": "Brain Id",
            "type": "string"
          },
          "cleared_backends": {
            "items": {
              "type": "string"
            },
            "title": "Cleared Backends",
            "type": "array"
          },
          "existed": {
            "title": "Existed",
            "type": "boolean"
          },
          "operation": {
            "enum": [
              "clear",
              "delete"
            ],
            "title": "Operation",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "brain_id",
          "operation",
          "existed",
          "cleared_backends"
        ],
        "title": "BrainLifecycleResponse",
        "type": "object"
      },
      "CancelIngestionRequest": {
        "properties": {
          "mode": {
            "enum": [
              "keep_saved",
              "rollback"
            ],
            "title": "Mode",
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "title": "CancelIngestionRequest",
        "type": "object"
      },
      "CancelIngestionResponse": {
        "properties": {
          "mode": {
            "enum": [
              "keep_saved",
              "rollback"
            ],
            "title": "Mode",
            "type": "string"
          },
          "status": {
            "enum": [
              "cancelling",
              "cancelled",
              "rollback_failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "task_id": {
            "title": "Task Id",
            "type": "string"
          }
        },
        "required": [
          "task_id",
          "mode",
          "status"
        ],
        "title": "CancelIngestionResponse",
        "type": "object"
      },
      "ChangelogItemResponse": {
        "properties": {
          "changelog": {
            "$ref": "#/components/schemas/KGChanges"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message",
          "changelog"
        ],
        "title": "ChangelogItemResponse",
        "type": "object"
      },
      "ChangelogListResponse": {
        "properties": {
          "changelogs": {
            "items": {
              "$ref": "#/components/schemas/KGChanges"
            },
            "title": "Changelogs",
            "type": "array"
          },
          "changes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ValidityChange"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changes"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Until"
          }
        },
        "required": [
          "message",
          "changelogs",
          "count"
        ],
        "title": "ChangelogListResponse",
        "type": "object"
      },
      "ConflictDismissRequest": {
        "properties": {
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          }
        },
        "title": "ConflictDismissRequest",
        "type": "object"
      },
      "ConflictEntity": {
        "properties": {
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "name": {
            "default": "",
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "default": "",
            "title": "Uuid",
            "type": "string"
          }
        },
        "title": "ConflictEntity",
        "type": "object"
      },
      "ConflictItemResponse": {
        "properties": {
          "conflict": {
            "$ref": "#/components/schemas/FactConflict"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message",
          "conflict"
        ],
        "title": "ConflictItemResponse",
        "type": "object"
      },
      "ConflictListResponse": {
        "properties": {
          "conflicts": {
            "items": {
              "$ref": "#/components/schemas/FactConflict"
            },
            "title": "Conflicts",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "conflicts",
          "count",
          "total"
        ],
        "title": "ConflictListResponse",
        "type": "object"
      },
      "ConflictReportResponse": {
        "properties": {
          "conflicts": {
            "items": {
              "$ref": "#/components/schemas/FactConflict"
            },
            "title": "Conflicts",
            "type": "array"
          },
          "markdown": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Markdown"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "summary": {
            "additionalProperties": true,
            "title": "Summary",
            "type": "object"
          }
        },
        "required": [
          "message",
          "summary",
          "conflicts"
        ],
        "title": "ConflictReportResponse",
        "type": "object"
      },
      "ConflictResolution": {
        "properties": {
          "method": {
            "anyOf": [
              {
                "enum": [
                  "dismissed",
                  "verified_side",
                  "manual",
                  "stale"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At"
          },
          "resolved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved By"
          },
          "winning_fact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Winning Fact Id"
          }
        },
        "title": "ConflictResolution",
        "type": "object"
      },
      "ConflictResolveRequest": {
        "properties": {
          "method": {
            "default": "manual",
            "title": "Method",
            "type": "string"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "winning_fact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Winning Fact Id"
          }
        },
        "title": "ConflictResolveRequest",
        "type": "object"
      },
      "ConflictScanAcceptedResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "task_id": {
            "title": "Task Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "task_id"
        ],
        "title": "ConflictScanAcceptedResponse",
        "type": "object"
      },
      "ConflictScanRequest": {
        "properties": {
          "use_llm": {
            "default": false,
            "title": "Use Llm",
            "type": "boolean"
          }
        },
        "title": "ConflictScanRequest",
        "type": "object"
      },
      "ConflictSide": {
        "properties": {
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount"
          },
          "fact_id": {
            "title": "Fact Id",
            "type": "string"
          },
          "object": {
            "$ref": "#/components/schemas/ConflictEntity"
          },
          "polarity": {
            "default": "neutral",
            "title": "Polarity",
            "type": "string"
          },
          "predicate": {
            "title": "Predicate",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/ConflictSource"
          },
          "subject": {
            "$ref": "#/components/schemas/ConflictEntity"
          },
          "superseded_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Superseded By"
          },
          "valid_from": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid From"
          },
          "valid_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid To"
          },
          "value": {
            "default": "",
            "title": "Value",
            "type": "string"
          },
          "verification_state": {
            "default": "unverified",
            "enum": [
              "unverified",
              "verified",
              "rejected"
            ],
            "title": "Verification State",
            "type": "string"
          }
        },
        "required": [
          "fact_id",
          "subject",
          "predicate",
          "object"
        ],
        "title": "ConflictSide",
        "type": "object"
      },
      "ConflictSource": {
        "properties": {
          "chunk_ids": {
            "items": {
              "type": "string"
            },
            "title": "Chunk Ids",
            "type": "array"
          },
          "document": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Document"
          },
          "source_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Key"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timestamp"
          }
        },
        "title": "ConflictSource",
        "type": "object"
      },
      "CreateBrainRequest": {
        "description": "Request body for the create brain endpoint.",
        "properties": {
          "brain_id": {
            "title": "Brain Id",
            "type": "string"
          }
        },
        "required": [
          "brain_id"
        ],
        "title": "CreateBrainRequest",
        "type": "object"
      },
      "EntityListResponse": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/Node"
            },
            "title": "Entities",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "entities",
          "total"
        ],
        "title": "EntityListResponse",
        "type": "object"
      },
      "EntitySynergy": {
        "description": "Entity synergy model.",
        "properties": {
          "association_score": {
            "title": "Association Score",
            "type": "number"
          },
          "connected_by": {
            "items": {
              "$ref": "#/components/schemas/Node"
            },
            "title": "Connected By",
            "type": "array"
          },
          "node": {
            "$ref": "#/components/schemas/Node"
          }
        },
        "required": [
          "node",
          "connected_by",
          "association_score"
        ],
        "title": "EntitySynergy",
        "type": "object"
      },
      "ErrorInfo": {
        "description": "Stable machine-readable information attached to every API error.",
        "properties": {
          "code": {
            "description": "Stable error code for programmatic handling.",
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Short human-readable error summary.",
            "title": "Message",
            "type": "string"
          },
          "request_id": {
            "description": "Identifier shared with the X-Request-ID header.",
            "title": "Request Id",
            "type": "string"
          },
          "resolution": {
            "description": "Concrete guidance for resolving the error.",
            "title": "Resolution",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "resolution",
          "request_id"
        ],
        "title": "ErrorInfo",
        "type": "object"
      },
      "ErrorResponse": {
        "description": "Additive error envelope that preserves FastAPI's legacy detail field.",
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/JsonValue",
            "description": "Original FastAPI error detail value."
          },
          "error": {
            "$ref": "#/components/schemas/ErrorInfo"
          }
        },
        "required": [
          "detail",
          "error"
        ],
        "title": "ErrorResponse",
        "type": "object"
      },
      "FactConflict": {
        "properties": {
          "claim_key": {
            "title": "Claim Key",
            "type": "string"
          },
          "confidence": {
            "default": 1,
            "title": "Confidence",
            "type": "number"
          },
          "detected_at": {
            "title": "Detected At",
            "type": "string"
          },
          "detection_method": {
            "default": "deterministic",
            "enum": [
              "deterministic",
              "llm"
            ],
            "title": "Detection Method",
            "type": "string"
          },
          "disagreement_type": {
            "enum": [
              "value_mismatch",
              "numeric_mismatch",
              "polarity_conflict",
              "semantic_contradiction"
            ],
            "title": "Disagreement Type",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "pair_key": {
            "title": "Pair Key",
            "type": "string"
          },
          "predicate": {
            "title": "Predicate",
            "type": "string"
          },
          "resolution": {
            "$ref": "#/components/schemas/ConflictResolution"
          },
          "sides": {
            "items": {
              "$ref": "#/components/schemas/ConflictSide"
            },
            "title": "Sides",
            "type": "array"
          },
          "status": {
            "default": "open",
            "enum": [
              "open",
              "resolved",
              "dismissed"
            ],
            "title": "Status",
            "type": "string"
          },
          "subject": {
            "$ref": "#/components/schemas/ConflictEntity"
          }
        },
        "required": [
          "id",
          "pair_key",
          "claim_key",
          "disagreement_type",
          "predicate",
          "sides",
          "subject"
        ],
        "title": "FactConflict",
        "type": "object"
      },
      "FactVerificationHistoryEntry": {
        "properties": {
          "from_state": {
            "enum": [
              "unverified",
              "verified",
              "rejected"
            ],
            "title": "From State",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "to_state": {
            "enum": [
              "unverified",
              "verified",
              "rejected"
            ],
            "title": "To State",
            "type": "string"
          },
          "verification_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verification Source"
          },
          "verified_at": {
            "title": "Verified At",
            "type": "string"
          },
          "verified_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified By"
          }
        },
        "required": [
          "id",
          "from_state",
          "to_state",
          "verified_at"
        ],
        "title": "FactVerificationHistoryEntry",
        "type": "object"
      },
      "FactVerificationInfo": {
        "description": "Expert verification provenance for a retrieved fact.",
        "properties": {
          "fact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fact Id"
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "relationship",
                  "node"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "state": {
            "default": "unverified",
            "enum": [
              "unverified",
              "verified",
              "rejected"
            ],
            "title": "State",
            "type": "string"
          },
          "verification_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verification Source"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified At"
          },
          "verified_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified By"
          }
        },
        "title": "FactVerificationInfo",
        "type": "object"
      },
      "FactVerificationListResponse": {
        "properties": {
          "facts": {
            "items": {
              "$ref": "#/components/schemas/FactVerificationRecord"
            },
            "title": "Facts",
            "type": "array"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "facts",
          "total"
        ],
        "title": "FactVerificationListResponse",
        "type": "object"
      },
      "FactVerificationRecord": {
        "properties": {
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "fact_id": {
            "title": "Fact Id",
            "type": "string"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/FactVerificationHistoryEntry"
            },
            "title": "History",
            "type": "array"
          },
          "kind": {
            "enum": [
              "relationship",
              "node"
            ],
            "title": "Kind",
            "type": "string"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "name": {
            "default": "",
            "title": "Name",
            "type": "string"
          },
          "object_labels": {
            "items": {
              "type": "string"
            },
            "title": "Object Labels",
            "type": "array"
          },
          "object_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Name"
          },
          "object_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Uuid"
          },
          "subject_labels": {
            "items": {
              "type": "string"
            },
            "title": "Subject Labels",
            "type": "array"
          },
          "subject_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Name"
          },
          "subject_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Uuid"
          },
          "verification": {
            "$ref": "#/components/schemas/FactVerificationInfo"
          }
        },
        "required": [
          "kind",
          "fact_id",
          "verification"
        ],
        "title": "FactVerificationRecord",
        "type": "object"
      },
      "FlatHopNode": {
        "properties": {
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "labels",
          "name"
        ],
        "title": "FlatHopNode",
        "type": "object"
      },
      "FlatHopPredicate": {
        "properties": {
          "direction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Direction"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "name"
        ],
        "title": "FlatHopPredicate",
        "type": "object"
      },
      "GetContextRequestBody": {
        "description": "Request body for the get context endpoint.",
        "properties": {
          "annotate_conflicts": {
            "default": false,
            "description": "When true, mark retrieved facts that are in an open cross-source conflict.",
            "title": "Annotate Conflicts",
            "type": "boolean"
          },
          "apply_fact_filter": {
            "default": true,
            "title": "Apply Fact Filter",
            "type": "boolean"
          },
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO-8601 datetime. When set, return the knowledge state valid at that instant.",
            "title": "As Of"
          },
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "cross_event_bridges": {
            "default": 3,
            "minimum": 0,
            "title": "Cross Event Bridges",
            "type": "integer"
          },
          "historical_limit": {
            "default": 10,
            "title": "Historical Limit",
            "type": "integer"
          },
          "include_history": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Include History"
          },
          "include_rejected": {
            "default": false,
            "description": "If true, include expert-rejected facts in the response.",
            "title": "Include Rejected",
            "type": "boolean"
          },
          "include_validity_unknown": {
            "default": false,
            "description": "When as_of is set, include undated facts in validity_unknown.",
            "title": "Include Validity Unknown",
            "type": "boolean"
          },
          "max_facts": {
            "default": 40,
            "minimum": 0,
            "title": "Max Facts",
            "type": "integer"
          },
          "max_passages": {
            "default": 8,
            "title": "Max Passages",
            "type": "integer"
          },
          "profile_stages": {
            "default": false,
            "title": "Profile Stages",
            "type": "boolean"
          },
          "sufficiency_retry": {
            "default": false,
            "title": "Sufficiency Retry",
            "type": "boolean"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "use_ppr": {
            "default": true,
            "title": "Use Ppr",
            "type": "boolean"
          }
        },
        "required": [
          "text"
        ],
        "title": "GetContextRequestBody",
        "type": "object"
      },
      "GetContextResponse": {
        "description": "Response for the get context endpoint.",
        "properties": {
          "graph_session_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graph Session Ids"
          },
          "historical_context": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Historical Context",
            "type": "array"
          },
          "paths": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paths"
          },
          "source_passages": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Source Passages",
            "type": "array"
          },
          "stage_timings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage Timings"
          },
          "temporal_conflicts": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temporal Conflicts"
          },
          "text_context": {
            "title": "Text Context",
            "type": "string"
          },
          "topics": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topics"
          },
          "triples": {
            "items": {
              "$ref": "#/components/schemas/GetContextTriple"
            },
            "title": "Triples",
            "type": "array"
          },
          "validity_unknown": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown"
          },
          "validity_unknown_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown Count"
          }
        },
        "required": [
          "text_context",
          "triples"
        ],
        "title": "GetContextResponse",
        "type": "object"
      },
      "GetContextTriple": {
        "description": "Triple for the get context endpoint.",
        "properties": {
          "identified_entity": {
            "title": "Identified Entity",
            "type": "string"
          },
          "open_conflicts": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Open Conflicts"
          },
          "source_chunk_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Chunk Ids"
          },
          "source_session_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Session Ids"
          },
          "triple": {
            "maxItems": 5,
            "minItems": 5,
            "prefixItems": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "$ref": "#/components/schemas/Predicate"
              },
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "$ref": "#/components/schemas/Predicate"
              },
              {
                "$ref": "#/components/schemas/Node"
              }
            ],
            "title": "Triple",
            "type": "array"
          },
          "verification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FactVerificationInfo"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verification"
          }
        },
        "required": [
          "identified_entity",
          "triple"
        ],
        "title": "GetContextTriple",
        "type": "object"
      },
      "GetEntityContextResponse": {
        "description": "Response model for the get entity context endpoint.",
        "properties": {
          "natural_language_web": {
            "default": [],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Natural Language Web",
            "type": "array"
          },
          "neighborhood": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Neighborhood",
            "type": "array"
          },
          "target_node": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "type": "null"
              }
            ]
          },
          "text_contexts": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Text Contexts",
            "type": "array"
          }
        },
        "required": [
          "neighborhood"
        ],
        "title": "GetEntityContextResponse",
        "type": "object"
      },
      "GetEntityInfoResponse": {
        "description": "Response model for the get entity info endpoint.",
        "properties": {
          "path": {
            "$ref": "#/components/schemas/MatchPath"
          },
          "target_node": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "path"
        ],
        "title": "GetEntityInfoResponse",
        "type": "object"
      },
      "GetEntitySibilingsResponse": {
        "description": "Response model for the get entity siblings endpoint.",
        "properties": {
          "anchors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Node"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Anchors"
          },
          "potential_anchors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Node"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Potential Anchors"
          },
          "synergies": {
            "items": {
              "$ref": "#/components/schemas/EntitySynergy"
            },
            "title": "Synergies",
            "type": "array"
          },
          "target_node": {
            "$ref": "#/components/schemas/Node"
          }
        },
        "required": [
          "target_node",
          "synergies"
        ],
        "title": "GetEntitySibilingsResponse",
        "type": "object"
      },
      "GetEntityStatusResponse": {
        "description": "Response model for the get entity status endpoint.",
        "properties": {
          "exists": {
            "title": "Exists",
            "type": "boolean"
          },
          "has_relationships": {
            "title": "Has Relationships",
            "type": "boolean"
          },
          "node": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "type": "null"
              }
            ]
          },
          "observations": {
            "items": {
              "$ref": "#/components/schemas/Observation"
            },
            "title": "Observations",
            "type": "array"
          },
          "relationships": {
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "$ref": "#/components/schemas/Predicate"
                },
                {
                  "$ref": "#/components/schemas/Node"
                }
              ],
              "type": "array"
            },
            "title": "Relationships",
            "type": "array"
          }
        },
        "required": [
          "exists",
          "has_relationships",
          "relationships",
          "observations"
        ],
        "title": "GetEntityStatusResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HealthResponse": {
        "properties": {
          "status": {
            "description": "Service health status.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "HealthResponse",
        "type": "object"
      },
      "HopListResponse": {
        "items": {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Node"
                },
                {
                  "$ref": "#/components/schemas/FlatHopNode"
                }
              ]
            },
            {
              "items": {
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Predicate"
                      },
                      {
                        "$ref": "#/components/schemas/FlatHopPredicate"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Node"
                      },
                      {
                        "$ref": "#/components/schemas/FlatHopNode"
                      }
                    ]
                  },
                  {
                    "items": {
                      "maxItems": 2,
                      "minItems": 2,
                      "prefixItems": [
                        {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/Predicate"
                            },
                            {
                              "$ref": "#/components/schemas/FlatHopPredicate"
                            }
                          ]
                        },
                        {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/Node"
                            },
                            {
                              "$ref": "#/components/schemas/FlatHopNode"
                            }
                          ]
                        }
                      ],
                      "type": "array"
                    },
                    "type": "array"
                  }
                ],
                "type": "array"
              },
              "type": "array"
            }
          ],
          "type": "array"
        },
        "title": "HopListResponse",
        "type": "array"
      },
      "IdentificationParams": {
        "additionalProperties": true,
        "description": "Identification params model.\nMust have a name property.\nThan can contain other properties.",
        "properties": {
          "entity_types": {
            "default": [],
            "description": "The types of the entity to identify.",
            "items": {
              "type": "string"
            },
            "title": "Entity Types",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "IdentificationParams",
        "type": "object"
      },
      "IngestGroupMeterResponse": {
        "properties": {
          "completed": {
            "title": "Completed",
            "type": "integer"
          },
          "failed": {
            "title": "Failed",
            "type": "integer"
          },
          "group_tracking": {
            "title": "Group Tracking",
            "type": "string"
          },
          "partial_failed": {
            "title": "Partial Failed",
            "type": "integer"
          },
          "source_chars": {
            "title": "Source Chars",
            "type": "integer"
          },
          "source_tokens": {
            "title": "Source Tokens",
            "type": "integer"
          },
          "stages": {
            "additionalProperties": {
              "$ref": "#/components/schemas/IngestGroupStageTotals"
            },
            "title": "Stages",
            "type": "object"
          },
          "task_count": {
            "title": "Task Count",
            "type": "integer"
          },
          "task_ids": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Task Ids",
            "type": "array"
          },
          "total_cached_tokens": {
            "default": 0,
            "title": "Total Cached Tokens",
            "type": "integer"
          },
          "total_input_tokens": {
            "title": "Total Input Tokens",
            "type": "integer"
          },
          "total_llm_tokens": {
            "title": "Total Llm Tokens",
            "type": "integer"
          },
          "total_output_tokens": {
            "title": "Total Output Tokens",
            "type": "integer"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "group_tracking",
          "task_count",
          "completed",
          "failed",
          "partial_failed",
          "total_llm_tokens",
          "total_input_tokens",
          "total_output_tokens",
          "source_chars",
          "source_tokens",
          "stages"
        ],
        "title": "IngestGroupMeterResponse",
        "type": "object"
      },
      "IngestGroupStageTotals": {
        "properties": {
          "cached_tokens": {
            "default": 0,
            "title": "Cached Tokens",
            "type": "integer"
          },
          "calls": {
            "default": 0,
            "title": "Calls",
            "type": "integer"
          },
          "input_tokens": {
            "default": 0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "latency_ms": {
            "default": 0,
            "title": "Latency Ms",
            "type": "number"
          },
          "output_tokens": {
            "default": 0,
            "title": "Output Tokens",
            "type": "integer"
          },
          "total_tokens": {
            "default": 0,
            "title": "Total Tokens",
            "type": "integer"
          }
        },
        "title": "IngestGroupStageTotals",
        "type": "object"
      },
      "IngestionAcceptedResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "task_id": {
            "title": "Task Id",
            "type": "string"
          }
        },
        "required": [
          "message",
          "task_id"
        ],
        "title": "IngestionAcceptedResponse",
        "type": "object"
      },
      "IngestionActivityResponse": {
        "additionalProperties": {
          "$ref": "#/components/schemas/JsonValue"
        },
        "title": "IngestionActivityResponse",
        "type": "object"
      },
      "IngestionCapabilitiesResponse": {
        "properties": {
          "concurrency": {
            "title": "Concurrency",
            "type": "integer"
          },
          "progressive": {
            "title": "Progressive",
            "type": "boolean"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "progressive",
          "version",
          "concurrency"
        ],
        "title": "IngestionCapabilitiesResponse",
        "type": "object"
      },
      "IngestionRequestBody": {
        "description": "Request body for the ingestion endpoint.",
        "properties": {
          "brain_id": {
            "default": "default",
            "description": "The brain identifier to store the data in.",
            "title": "Brain Id",
            "type": "string"
          },
          "data": {
            "discriminator": {
              "mapping": {
                "json": "#/components/schemas/IngestionTaskJsonArgs",
                "text": "#/components/schemas/IngestionTaskTextArgs"
              },
              "propertyName": "data_type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/IngestionTaskJsonArgs"
              },
              {
                "$ref": "#/components/schemas/IngestionTaskTextArgs"
              }
            ],
            "title": "Data"
          },
          "group_tracking": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional ingest-cost rollup key for this request (1-128 chars, [A-Za-z0-9._:-]).",
            "title": "Group Tracking"
          },
          "identification_params": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The parameters used to identify the data.",
            "title": "Identification Params"
          },
          "meta_keys": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shared keys that should not be treated as nodes. (eg: email because each person has an email). The keys specified here will not be analyzed but just added to the metadata.",
            "title": "Meta Keys"
          },
          "observate_for": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": [],
            "description": "What to look for and describe in the data during observation. If not provided, the observations will be generic",
            "title": "Observate For"
          },
          "preferred_extraction_entities": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": [],
            "description": "The entities that are preferred to be extracted from the data. If not provided, the extraction will be done on all the entities in the data.",
            "title": "Preferred Extraction Entities"
          },
          "skip_enrichment": {
            "default": false,
            "description": "Persist the text chunk and embedding only. Skip observations and knowledge-graph enrichment (Scout/Architect).",
            "title": "Skip Enrichment",
            "type": "boolean"
          },
          "source_timestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Reference timestamp for the source content (e.g. session date). Used to resolve relative dates like 'yesterday' into absolute dates.",
            "title": "Source Timestamp"
          }
        },
        "required": [
          "data"
        ],
        "title": "IngestionRequestBody",
        "type": "object"
      },
      "IngestionStructuredRequestBody": {
        "description": "Request body for the structured ingestion endpoint.",
        "properties": {
          "anchor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PartialNodeFilter"
              },
              {
                "type": "null"
              }
            ],
            "description": "The related information to connect the structured data to."
          },
          "brain_id": {
            "default": "default",
            "description": "The brain identifier to store the data in.",
            "title": "Brain Id",
            "type": "string"
          },
          "data": {
            "description": "The list of event-centric information triples to ingest.",
            "items": {
              "$ref": "#/components/schemas/IngestionTripleSet"
            },
            "title": "Data",
            "type": "array"
          },
          "group_tracking": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional ingest-cost rollup key for this request (1-128 chars, [A-Za-z0-9._:-]).",
            "title": "Group Tracking"
          },
          "mode": {
            "anyOf": [
              {
                "enum": [
                  "deterministic",
                  "hybrid",
                  "enrich"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Ingest mode. deterministic: no LLM (triples only; UUID anchor or exact name+type match). hybrid: persist submitted triples then optionally enrich from text. enrich: same as hybrid with LLM backfill. When omitted, inferred as hybrid if text is set else deterministic.",
            "title": "Mode"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Additional text context for the structured data.",
            "title": "Text"
          }
        },
        "required": [
          "data"
        ],
        "title": "IngestionStructuredRequestBody",
        "type": "object"
      },
      "IngestionTaskJsonArgs": {
        "description": "Arguments for the ingestion task when the data type is JSON.",
        "properties": {
          "data_type": {
            "const": "json",
            "default": "json",
            "title": "Data Type",
            "type": "string"
          },
          "json_data": {
            "additionalProperties": true,
            "title": "Json Data",
            "type": "object"
          }
        },
        "required": [
          "json_data"
        ],
        "title": "IngestionTaskJsonArgs",
        "type": "object"
      },
      "IngestionTaskTextArgs": {
        "description": "Arguments for the ingestion task when the data type is TEXT.",
        "properties": {
          "data_type": {
            "const": "text",
            "default": "text",
            "title": "Data Type",
            "type": "string"
          },
          "text_data": {
            "title": "Text Data",
            "type": "string"
          }
        },
        "required": [
          "text_data"
        ],
        "title": "IngestionTaskTextArgs",
        "type": "object"
      },
      "IngestionTripleSet": {
        "properties": {
          "event": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestPartialNode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The optional event node. Omit for a direct subject-predicate-object edge."
          },
          "event_obj": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestPartialPredicate"
              },
              {
                "type": "null"
              }
            ],
            "description": "The optional event-to-object predicate. Paired with event when present."
          },
          "object": {
            "$ref": "#/components/schemas/RequestPartialNode"
          },
          "subj_event": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestPartialPredicate"
              },
              {
                "type": "null"
              }
            ],
            "description": "The optional event predicate of the triple."
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestPartialNode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The optional actor of the triple."
          }
        },
        "required": [
          "object"
        ],
        "title": "IngestionTripleSet",
        "type": "object"
      },
      "IngestionUrlRequestBody": {
        "properties": {
          "allowed_domains": {
            "description": "Extra eTLD+1 hosts to include, max 20.",
            "items": {
              "type": "string"
            },
            "title": "Allowed Domains",
            "type": "array"
          },
          "allowed_path_prefixes": {
            "description": "Case-sensitive pathname prefixes. The seed must match a prefix when provided.",
            "items": {
              "maxLength": 2048,
              "type": "string"
            },
            "maxItems": 20,
            "title": "Allowed Path Prefixes",
            "type": "array"
          },
          "group_tracking": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional ingest-cost rollup key for this request (1-128 chars, [A-Za-z0-9._:-]).",
            "title": "Group Tracking"
          },
          "max_pages": {
            "default": 10,
            "description": "Maximum pages to crawl. Each cleaned page becomes one ingest job.",
            "maximum": 999,
            "minimum": 1,
            "title": "Max Pages",
            "type": "integer"
          },
          "progressive": {
            "default": false,
            "title": "Progressive",
            "type": "boolean"
          },
          "skip_enrichment": {
            "default": false,
            "description": "Persist cleaned page text and embeddings only. Skip Scout/Architect.",
            "title": "Skip Enrichment",
            "type": "boolean"
          },
          "url": {
            "description": "Public https URL to crawl.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "IngestionUrlRequestBody",
        "type": "object"
      },
      "JsonValue": {},
      "KGChangeLogNodePropertiesUpdated": {
        "description": "KG change log node properties updated model.",
        "properties": {
          "node": {
            "$ref": "#/components/schemas/PartialNode",
            "description": "The node that was updated."
          },
          "properties": {
            "description": "The properties that were updated.",
            "items": {
              "$ref": "#/components/schemas/KGChangeLogPredicateUpdatedProperty"
            },
            "title": "Properties",
            "type": "array"
          },
          "type": {
            "const": "node_properties_updated",
            "default": "node_properties_updated",
            "description": "The type of the change.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "node",
          "properties"
        ],
        "title": "KGChangeLogNodePropertiesUpdated",
        "type": "object"
      },
      "KGChangeLogPredicatePropertiesUpdated": {
        "description": "KG change log relationship properties updated model.",
        "properties": {
          "predicate": {
            "$ref": "#/components/schemas/PartialPredicate",
            "description": "The predicate that was updated."
          },
          "properties": {
            "description": "The properties that were updated.",
            "items": {
              "$ref": "#/components/schemas/KGChangeLogPredicateUpdatedProperty"
            },
            "title": "Properties",
            "type": "array"
          },
          "type": {
            "const": "relationship_properties_updated",
            "default": "relationship_properties_updated",
            "description": "The type of the change.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "predicate",
          "properties"
        ],
        "title": "KGChangeLogPredicatePropertiesUpdated",
        "type": "object"
      },
      "KGChangeLogPredicateUpdatedProperty": {
        "description": "KG change log relationship updated property model.",
        "properties": {
          "new_value": {
            "description": "The new value of the property.",
            "title": "New Value"
          },
          "previous_value": {
            "description": "The previous value of the property.",
            "title": "Previous Value"
          },
          "property": {
            "description": "The property that was updated.",
            "title": "Property",
            "type": "string"
          }
        },
        "required": [
          "property",
          "previous_value",
          "new_value"
        ],
        "title": "KGChangeLogPredicateUpdatedProperty",
        "type": "object"
      },
      "KGChangeLogRelationshipCreated": {
        "description": "KG change log relationship created model.",
        "properties": {
          "object": {
            "$ref": "#/components/schemas/PartialNode",
            "description": "The object of the relationship."
          },
          "predicate": {
            "$ref": "#/components/schemas/PartialPredicate",
            "description": "The predicate of the relationship."
          },
          "subject": {
            "$ref": "#/components/schemas/PartialNode",
            "description": "The subject of the relationship."
          },
          "type": {
            "const": "relationship_created",
            "default": "relationship_created",
            "description": "The type of the change.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "predicate",
          "object"
        ],
        "title": "KGChangeLogRelationshipCreated",
        "type": "object"
      },
      "KGChangeLogRelationshipDeprecated": {
        "description": "KG change log relationship deprecated model.",
        "properties": {
          "new_predicate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PartialPredicate"
              },
              {
                "type": "null"
              }
            ],
            "description": "The new predicate of the relationship."
          },
          "object": {
            "$ref": "#/components/schemas/PartialNode",
            "description": "The object of the relationship."
          },
          "predicate": {
            "$ref": "#/components/schemas/PartialPredicate",
            "description": "The predicate of the relationship."
          },
          "subject": {
            "$ref": "#/components/schemas/PartialNode",
            "description": "The subject of the relationship."
          },
          "type": {
            "const": "relationship_deprecated",
            "default": "relationship_deprecated",
            "description": "The type of the change.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "predicate",
          "object",
          "new_predicate"
        ],
        "title": "KGChangeLogRelationshipDeprecated",
        "type": "object"
      },
      "KGChanges": {
        "description": "KG changes model.",
        "properties": {
          "change": {
            "description": "The change data, discriminated by type.",
            "discriminator": {
              "mapping": {
                "node_properties_updated": "#/components/schemas/KGChangeLogNodePropertiesUpdated",
                "relationship_created": "#/components/schemas/KGChangeLogRelationshipCreated",
                "relationship_deprecated": "#/components/schemas/KGChangeLogRelationshipDeprecated",
                "relationship_properties_updated": "#/components/schemas/KGChangeLogPredicatePropertiesUpdated"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/KGChangeLogRelationshipCreated"
              },
              {
                "$ref": "#/components/schemas/KGChangeLogRelationshipDeprecated"
              },
              {
                "$ref": "#/components/schemas/KGChangeLogNodePropertiesUpdated"
              },
              {
                "$ref": "#/components/schemas/KGChangeLogPredicatePropertiesUpdated"
              }
            ],
            "title": "Change"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "timestamp": {
            "description": "The timestamp of the changes.",
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/KGChangesType",
            "description": "The type of the changes."
          }
        },
        "required": [
          "type",
          "change"
        ],
        "title": "KGChanges",
        "type": "object"
      },
      "KGChangesType": {
        "description": "KG changes type.",
        "enum": [
          "relationship_created",
          "relationship_deprecated",
          "node_properties_updated",
          "relationship_properties_updated"
        ],
        "title": "KGChangesType",
        "type": "string"
      },
      "LabelListResponse": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message",
          "labels",
          "count"
        ],
        "title": "LabelListResponse",
        "type": "object"
      },
      "LoginInfoResponse": {
        "properties": {
          "brain_id": {
            "title": "Brain Id",
            "type": "string"
          },
          "is_system_pat": {
            "title": "Is System Pat",
            "type": "boolean"
          }
        },
        "required": [
          "is_system_pat",
          "brain_id"
        ],
        "title": "LoginInfoResponse",
        "type": "object"
      },
      "MatchPath": {
        "properties": {
          "children": {
            "items": {
              "$ref": "#/components/schemas/MatchPath"
            },
            "title": "Children",
            "type": "array"
          },
          "path": {
            "maxItems": 2,
            "minItems": 2,
            "prefixItems": [
              {
                "$ref": "#/components/schemas/Predicate"
              },
              {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Node"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            ],
            "title": "Path",
            "type": "array"
          },
          "similarity": {
            "title": "Similarity",
            "type": "number"
          },
          "target_node": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "path",
          "similarity"
        ],
        "title": "MatchPath",
        "type": "object"
      },
      "Node": {
        "description": "Node model.",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "happened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The date and time the node happened at if known otherwise None. Mostly used for event nodes.",
            "title": "Happened At"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "last_updated": {
            "description": "The date and time the node was last updated.",
            "format": "date-time",
            "title": "Last Updated",
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The metadata of the node.",
            "title": "Metadata"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "observations": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Observation"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The observations of the node.",
            "title": "Observations"
          },
          "polarity": {
            "anyOf": [
              {
                "enum": [
                  "positive",
                  "negative",
                  "neutral"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "neutral",
            "description": "The polarity of the node.",
            "title": "Polarity"
          },
          "properties": {
            "additionalProperties": true,
            "title": "Properties",
            "type": "object"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "labels",
          "name"
        ],
        "title": "Node",
        "type": "object"
      },
      "Observation": {
        "description": "Observation model.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "inserted_at": {
            "description": "The date and time the observation was inserted.",
            "format": "date-time",
            "title": "Inserted At",
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "resource_id": {
            "description": "The id of the resource the observation is about.",
            "title": "Resource Id",
            "type": "string"
          },
          "text": {
            "description": "The text of the observation.",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text",
          "resource_id"
        ],
        "title": "Observation",
        "type": "object"
      },
      "ObservationItemResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "observation": {
            "$ref": "#/components/schemas/Observation"
          }
        },
        "required": [
          "message",
          "observation"
        ],
        "title": "ObservationItemResponse",
        "type": "object"
      },
      "ObservationListResponse": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "observations": {
            "items": {
              "$ref": "#/components/schemas/Observation"
            },
            "title": "Observations",
            "type": "array"
          }
        },
        "required": [
          "message",
          "observations",
          "count"
        ],
        "title": "ObservationListResponse",
        "type": "object"
      },
      "PartialNode": {
        "description": "Partial node model.",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the node.",
            "title": "Description"
          },
          "labels": {
            "description": "The labels of the node.",
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "name": {
            "description": "The name of the node.",
            "title": "Name",
            "type": "string"
          },
          "properties": {
            "additionalProperties": true,
            "description": "The properties of the node.",
            "title": "Properties",
            "type": "object"
          },
          "uuid": {
            "description": "The id of the node.",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "name",
          "labels",
          "description",
          "properties"
        ],
        "title": "PartialNode",
        "type": "object"
      },
      "PartialNodeFilter": {
        "description": "Partial node filter model.",
        "properties": {
          "meta_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "An extra description that explains what this node is about, helpful for entity resolution.",
            "title": "Meta Description"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the node to filter by.",
            "title": "Name"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of the node to filter by.",
            "title": "Type"
          },
          "uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The uuid of the node to filter by.",
            "title": "Uuid"
          }
        },
        "title": "PartialNodeFilter",
        "type": "object"
      },
      "PartialPredicate": {
        "description": "Partial relationship model.",
        "properties": {
          "amount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount of the relationship, if it is a quantitative relationship.",
            "title": "Amount"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the relationship.",
            "title": "Description"
          },
          "name": {
            "description": "The name of the relationship.",
            "title": "Name",
            "type": "string"
          },
          "properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The properties of the relationship.",
            "title": "Properties"
          },
          "uuid": {
            "description": "The id of the relationship.",
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "name",
          "description"
        ],
        "title": "PartialPredicate",
        "type": "object"
      },
      "Predicate": {
        "description": "Predicate model.",
        "properties": {
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount of the predicate.",
            "title": "Amount"
          },
          "deprecated": {
            "default": false,
            "description": "Whether the predicate is deprecated.",
            "title": "Deprecated",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "direction": {
            "anyOf": [
              {
                "enum": [
                  "in",
                  "out",
                  "neutral"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "neutral",
            "description": "The direction of the predicate.",
            "title": "Direction"
          },
          "flow_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Unique identitier for contextualizing the predicate into the context flow",
            "title": "Flow Key"
          },
          "last_updated": {
            "description": "The date and time the predicate was last updated.",
            "format": "date-time",
            "title": "Last Updated",
            "type": "string"
          },
          "level": {
            "anyOf": [
              {
                "enum": [
                  "1",
                  "2",
                  "3"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The level of the predicate. 1: directly connected to the main node. 2: connected to similar nodes of same label, not directly connected.3: connected to similar nodes of different label, not directly connected.",
            "title": "Level"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "observations": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Observation"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The observations of the predicate.",
            "title": "Observations"
          },
          "properties": {
            "additionalProperties": true,
            "title": "Properties",
            "type": "object"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "description"
        ],
        "title": "Predicate",
        "type": "object"
      },
      "PurgeCompletedAction": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id"
        ],
        "title": "PurgeCompletedAction",
        "type": "object"
      },
      "PurgeConnectionsSummary": {
        "properties": {
          "delete": {
            "title": "Delete",
            "type": "integer"
          },
          "unlink": {
            "title": "Unlink",
            "type": "integer"
          }
        },
        "required": [
          "delete",
          "unlink"
        ],
        "title": "PurgeConnectionsSummary",
        "type": "object"
      },
      "PurgeIngestionRequest": {
        "properties": {
          "digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Digest"
          },
          "source_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Key"
          }
        },
        "title": "PurgeIngestionRequest",
        "type": "object"
      },
      "PurgeIngestionResponse": {
        "properties": {
          "completed": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PurgeCompletedAction"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed"
          },
          "connections": {
            "$ref": "#/components/schemas/PurgeConnectionsSummary"
          },
          "digest": {
            "title": "Digest",
            "type": "string"
          },
          "entities": {
            "$ref": "#/components/schemas/PurgeNamedItems"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "executed": {
            "title": "Executed",
            "type": "boolean"
          },
          "ledger_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ledger Error"
          },
          "ledger_incomplete": {
            "default": false,
            "title": "Ledger Incomplete",
            "type": "boolean"
          },
          "partial": {
            "default": false,
            "title": "Partial",
            "type": "boolean"
          },
          "passages": {
            "$ref": "#/components/schemas/PurgePassagesSummary"
          },
          "records": {
            "title": "Records",
            "type": "integer"
          },
          "unresolved": {
            "title": "Unresolved",
            "type": "integer"
          }
        },
        "required": [
          "digest",
          "executed",
          "passages",
          "records",
          "entities",
          "connections",
          "unresolved"
        ],
        "title": "PurgeIngestionResponse",
        "type": "object"
      },
      "PurgeNamedItems": {
        "properties": {
          "delete": {
            "items": {
              "type": "string"
            },
            "title": "Delete",
            "type": "array"
          },
          "unlink": {
            "items": {
              "type": "string"
            },
            "title": "Unlink",
            "type": "array"
          }
        },
        "required": [
          "delete",
          "unlink"
        ],
        "title": "PurgeNamedItems",
        "type": "object"
      },
      "PurgePassagesSummary": {
        "properties": {
          "delete": {
            "title": "Delete",
            "type": "integer"
          },
          "reused": {
            "title": "Reused",
            "type": "integer"
          },
          "unlink": {
            "title": "Unlink",
            "type": "integer"
          }
        },
        "required": [
          "delete",
          "unlink",
          "reused"
        ],
        "title": "PurgePassagesSummary",
        "type": "object"
      },
      "RecommendItem": {
        "properties": {
          "channel": {
            "title": "Channel",
            "type": "string"
          },
          "connected_by": {
            "items": {
              "$ref": "#/components/schemas/Node"
            },
            "title": "Connected By",
            "type": "array"
          },
          "node": {
            "$ref": "#/components/schemas/Node"
          },
          "score": {
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "node",
          "score",
          "connected_by",
          "channel"
        ],
        "title": "RecommendItem",
        "type": "object"
      },
      "RecommendRequestBody": {
        "description": "Request body for event-graph recommendations.",
        "properties": {
          "asymmetric_direction": {
            "default": "outbound",
            "enum": [
              "outbound",
              "inbound",
              "both"
            ],
            "title": "Asymmetric Direction",
            "type": "string"
          },
          "behavior_weights": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Behavior Weights"
          },
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "dampen_degree": {
            "default": false,
            "title": "Dampen Degree",
            "type": "boolean"
          },
          "diversify": {
            "default": true,
            "title": "Diversify",
            "type": "boolean"
          },
          "exclude_seen": {
            "default": false,
            "title": "Exclude Seen",
            "type": "boolean"
          },
          "include_asymmetric": {
            "default": true,
            "title": "Include Asymmetric",
            "type": "boolean"
          },
          "include_attribute_pref": {
            "default": false,
            "title": "Include Attribute Pref",
            "type": "boolean"
          },
          "include_multi_interest": {
            "default": true,
            "title": "Include Multi Interest",
            "type": "boolean"
          },
          "labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Labels"
          },
          "polarity": {
            "default": "same",
            "enum": [
              "same",
              "opposite"
            ],
            "title": "Polarity",
            "type": "string"
          },
          "recency_half_life_days": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recency Half Life Days"
          },
          "target": {
            "title": "Target",
            "type": "string"
          },
          "top_k": {
            "default": 20,
            "maximum": 200,
            "minimum": 1,
            "title": "Top K",
            "type": "integer"
          }
        },
        "required": [
          "target"
        ],
        "title": "RecommendRequestBody",
        "type": "object"
      },
      "RecommendResponse": {
        "properties": {
          "recommendations": {
            "items": {
              "$ref": "#/components/schemas/RecommendItem"
            },
            "title": "Recommendations",
            "type": "array"
          },
          "target_node": {
            "$ref": "#/components/schemas/Node"
          }
        },
        "required": [
          "target_node",
          "recommendations"
        ],
        "title": "RecommendResponse",
        "type": "object"
      },
      "RelationshipListResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "relationships": {
            "items": {
              "$ref": "#/components/schemas/Triple"
            },
            "title": "Relationships",
            "type": "array"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "relationships",
          "total"
        ],
        "title": "RelationshipListResponse",
        "type": "object"
      },
      "RequestPartialNode": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the node.",
            "title": "Description"
          },
          "happened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The date and time the node happened at if known otherwise None. Mostly used for event nodes.",
            "title": "Happened At"
          },
          "labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional labels; defaults to [type] when omitted.",
            "title": "Labels"
          },
          "name": {
            "description": "The name of the node.",
            "title": "Name",
            "type": "string"
          },
          "properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The properties of the node.",
            "title": "Properties"
          },
          "type": {
            "description": "The type of the node.",
            "title": "Type",
            "type": "string"
          },
          "uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the node.",
            "title": "Uuid"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "title": "RequestPartialNode",
        "type": "object"
      },
      "RequestPartialPredicate": {
        "properties": {
          "amount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount of the relationship, if it is a quantitative relationship.",
            "title": "Amount"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the relationship.",
            "title": "Description"
          },
          "name": {
            "description": "The name of the relationship.",
            "title": "Name",
            "type": "string"
          },
          "properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The properties of the relationship.",
            "title": "Properties"
          },
          "uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the relationship.",
            "title": "Uuid"
          }
        },
        "required": [
          "name"
        ],
        "title": "RequestPartialPredicate",
        "type": "object"
      },
      "RetrieveNeighborsAiModeRequestBody": {
        "description": "Request body for the retrieve neighbors AI mode endpoint.",
        "properties": {
          "brain_id": {
            "default": "default",
            "description": "The brain identifier to store the data in.",
            "title": "Brain Id",
            "type": "string"
          },
          "identification_params": {
            "$ref": "#/components/schemas/IdentificationParams",
            "description": "The identification parameters of the entity to get neighbors for."
          },
          "limit": {
            "default": 10,
            "description": "The number of neighbors to return.",
            "title": "Limit",
            "type": "integer"
          },
          "looking_for": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the neighbors to look for.",
            "title": "Looking For"
          }
        },
        "required": [
          "identification_params",
          "looking_for"
        ],
        "title": "RetrieveNeighborsAiModeRequestBody",
        "type": "object"
      },
      "RetrieveNeighborsRequestResponse": {
        "description": "Response for the retrieve neighbors endpoint.",
        "properties": {
          "count": {
            "default": 0,
            "description": "The number of neighbors found.",
            "title": "Count",
            "type": "integer"
          },
          "main_node": {
            "$ref": "#/components/schemas/Node",
            "description": "The main node of the neighbors."
          },
          "neighbors": {
            "items": {
              "$ref": "#/components/schemas/RetrievedNeighborNode"
            },
            "title": "Neighbors",
            "type": "array"
          }
        },
        "required": [
          "main_node",
          "neighbors"
        ],
        "title": "RetrieveNeighborsRequestResponse",
        "type": "object"
      },
      "RetrieveNeighborsWithIdentificationParamsRequestBody": {
        "description": "Request body for the retrieve neighbors with identification params endpoint.",
        "properties": {
          "brain_id": {
            "default": "default",
            "description": "The brain identifier to store the data in.",
            "title": "Brain Id",
            "type": "string"
          },
          "identification_params": {
            "$ref": "#/components/schemas/IdentificationParams",
            "description": "The identification parameters of the entity to get neighbors for."
          },
          "limit": {
            "default": 10,
            "description": "The number of neighbors to return.",
            "title": "Limit",
            "type": "integer"
          },
          "look_for": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional filter for what type of neighbors to look for.",
            "title": "Look For"
          }
        },
        "required": [
          "identification_params"
        ],
        "title": "RetrieveNeighborsWithIdentificationParamsRequestBody",
        "type": "object"
      },
      "RetrieveRequestResponse": {
        "description": "Response for the retrieve endpoint.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/TextChunk"
            },
            "title": "Data",
            "type": "array"
          },
          "observations": {
            "items": {
              "$ref": "#/components/schemas/Observation"
            },
            "title": "Observations",
            "type": "array"
          },
          "relationships": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Relationships",
            "type": "array"
          },
          "validity_unknown": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown"
          },
          "validity_unknown_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown Count"
          }
        },
        "required": [
          "data",
          "observations",
          "relationships"
        ],
        "title": "RetrieveRequestResponse",
        "type": "object"
      },
      "RetrievedNeighborNode": {
        "description": "Node model for the retrieve neighbors endpoint.",
        "properties": {
          "most_common": {
            "$ref": "#/components/schemas/Node"
          },
          "neighbor": {
            "$ref": "#/components/schemas/Node"
          },
          "relationship": {
            "$ref": "#/components/schemas/Predicate"
          },
          "similarity_score": {
            "default": 0,
            "description": "The similarity score of the neighbor to the main node.",
            "title": "Similarity Score",
            "type": "number"
          }
        },
        "required": [
          "neighbor",
          "relationship",
          "most_common"
        ],
        "title": "RetrievedNeighborNode",
        "type": "object"
      },
      "SearchHit": {
        "properties": {
          "channel": {
            "title": "Channel",
            "type": "string"
          },
          "extras": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extras"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "node_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Node Id"
          },
          "score": {
            "title": "Score",
            "type": "number"
          },
          "scores": {
            "$ref": "#/components/schemas/SearchHitScores"
          },
          "snippet": {
            "title": "Snippet",
            "type": "string"
          }
        },
        "required": [
          "id",
          "channel",
          "score",
          "scores",
          "snippet"
        ],
        "title": "SearchHit",
        "type": "object"
      },
      "SearchHitScores": {
        "properties": {
          "bm25": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bm25"
          },
          "cc": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cc"
          },
          "dense": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dense"
          },
          "graph": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graph"
          },
          "personalize": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Personalize"
          },
          "plugin": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plugin"
          },
          "rerank": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rerank"
          },
          "rrf": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rrf"
          }
        },
        "title": "SearchHitScores",
        "type": "object"
      },
      "SearchRequestBody": {
        "properties": {
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO-8601 datetime. When set, search the knowledge state valid at that instant.",
            "title": "As Of"
          },
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "channels": {
            "items": {
              "type": "string"
            },
            "title": "Channels",
            "type": "array"
          },
          "community_labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Labels"
          },
          "expand": {
            "default": "none",
            "enum": [
              "none",
              "neighbors"
            ],
            "title": "Expand",
            "type": "string"
          },
          "extras": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extras"
          },
          "fusion": {
            "anyOf": [
              {
                "enum": [
                  "rrf",
                  "cc"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fusion"
          },
          "fusion_alpha": {
            "anyOf": [
              {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fusion Alpha"
          },
          "include_rejected": {
            "default": false,
            "description": "If true, include expert-rejected facts in search hits.",
            "title": "Include Rejected",
            "type": "boolean"
          },
          "include_validity_unknown": {
            "default": false,
            "description": "When as_of is set, include undated hits in validity_unknown.",
            "title": "Include Validity Unknown",
            "type": "boolean"
          },
          "k": {
            "default": 10,
            "maximum": 200,
            "minimum": 1,
            "title": "K",
            "type": "integer"
          },
          "mode": {
            "default": "default",
            "enum": [
              "default",
              "catalog"
            ],
            "title": "Mode",
            "type": "string"
          },
          "node_labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Node Labels"
          },
          "profile_stages": {
            "default": false,
            "title": "Profile Stages",
            "type": "boolean"
          },
          "query": {
            "title": "Query",
            "type": "string"
          },
          "rerank": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "none or plugin:<name>. Unknown plugin names return 400.",
            "title": "Rerank"
          },
          "target": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target"
          }
        },
        "required": [
          "query"
        ],
        "title": "SearchRequestBody",
        "type": "object"
      },
      "SearchResponse": {
        "properties": {
          "channel_lists": {
            "anyOf": [
              {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel Lists"
          },
          "facets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "integer"
                  },
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Facets"
          },
          "hits": {
            "items": {
              "$ref": "#/components/schemas/SearchHit"
            },
            "title": "Hits",
            "type": "array"
          },
          "node_ids": {
            "items": {
              "type": "string"
            },
            "title": "Node Ids",
            "type": "array"
          },
          "stage_timings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage Timings"
          },
          "validity_unknown": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown"
          },
          "validity_unknown_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validity Unknown Count"
          }
        },
        "required": [
          "hits"
        ],
        "title": "SearchResponse",
        "type": "object"
      },
      "StringListResponse": {
        "items": {
          "type": "string"
        },
        "title": "StringListResponse",
        "type": "array"
      },
      "StructuredData": {
        "description": "Structured data model.",
        "properties": {
          "brain_version": {
            "default": "0.0.0",
            "description": "The version of the brain when the structured data was inserted.",
            "title": "Brain Version",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "description": "The json data rapresenting the structured element.",
            "title": "Data",
            "type": "object"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "inserted_at": {
            "description": "The date and time the structured data was inserted.",
            "format": "date-time",
            "title": "Inserted At",
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "types": {
            "description": "A list of types, used to categorize the data.",
            "items": {
              "type": "string"
            },
            "title": "Types",
            "type": "array"
          }
        },
        "required": [
          "data",
          "types"
        ],
        "title": "StructuredData",
        "type": "object"
      },
      "StructuredDataItemResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StructuredData"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message",
          "data"
        ],
        "title": "StructuredDataItemResponse",
        "type": "object"
      },
      "StructuredDataListResponse": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/StructuredData"
            },
            "title": "Data",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "data",
          "count",
          "total"
        ],
        "title": "StructuredDataListResponse",
        "type": "object"
      },
      "TaskListResponse": {
        "properties": {
          "tasks": {
            "items": {
              "$ref": "#/components/schemas/TaskStateResponse"
            },
            "title": "Tasks",
            "type": "array"
          }
        },
        "required": [
          "tasks"
        ],
        "title": "TaskListResponse",
        "type": "object"
      },
      "TaskStateResponse": {
        "additionalProperties": true,
        "description": "Task payload with stable state fields and pipeline-specific extensions.",
        "properties": {
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonValue"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "task_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Id"
          }
        },
        "required": [
          "status"
        ],
        "title": "TaskStateResponse",
        "type": "object"
      },
      "TextChunk": {
        "description": "Text chunk model.",
        "properties": {
          "brain_version": {
            "default": "0.0.0",
            "description": "The version of the brain when the chunk was inserted.",
            "title": "Brain Version",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "inserted_at": {
            "description": "The date and time the chunk was inserted.",
            "format": "date-time",
            "title": "Inserted At",
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "text": {
            "description": "The text of the chunk.",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "title": "TextChunk",
        "type": "object"
      },
      "TextChunkListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/TextChunk"
            },
            "title": "Data",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "data",
          "total"
        ],
        "title": "TextChunkListResponse",
        "type": "object"
      },
      "Triple": {
        "description": "Triple model.",
        "properties": {
          "object": {
            "$ref": "#/components/schemas/Node"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "subject": {
            "$ref": "#/components/schemas/Node"
          }
        },
        "required": [
          "subject",
          "predicate",
          "object"
        ],
        "title": "Triple",
        "type": "object"
      },
      "TypeListResponse": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "title": "Types",
            "type": "array"
          }
        },
        "required": [
          "message",
          "types",
          "count"
        ],
        "title": "TypeListResponse",
        "type": "object"
      },
      "UpdateEntityRequest": {
        "description": "Request model for updating an existing entity in the graph.",
        "properties": {
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "new_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Description"
          },
          "new_labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Labels"
          },
          "new_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Name"
          },
          "new_properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Properties"
          },
          "properties_to_remove": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties To Remove"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid"
        ],
        "title": "UpdateEntityRequest",
        "type": "object"
      },
      "UpdateRelationshipRequest": {
        "description": "Request model for updating an existing relationship's properties.",
        "properties": {
          "brain_id": {
            "default": "default",
            "title": "Brain Id",
            "type": "string"
          },
          "new_properties": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Properties"
          },
          "properties_to_remove": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties To Remove"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid"
        ],
        "title": "UpdateRelationshipRequest",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "ValidityChange": {
        "properties": {
          "changelog": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changelog"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "added",
              "superseded",
              "invalidated"
            ],
            "title": "Kind",
            "type": "string"
          },
          "object": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object"
          },
          "predicate": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Predicate"
          },
          "source": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "subject": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "superseded_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Superseded By"
          },
          "target": {
            "enum": [
              "chunk",
              "relationship",
              "changelog"
            ],
            "title": "Target",
            "type": "string"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "timestamp": {
            "title": "Timestamp",
            "type": "string"
          },
          "valid_from": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid From"
          },
          "valid_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid To"
          }
        },
        "required": [
          "kind",
          "target",
          "id",
          "timestamp"
        ],
        "title": "ValidityChange",
        "type": "object"
      },
      "Vector": {
        "description": "Embedding node model.",
        "properties": {
          "distance": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cosine distance between the query and the result where lower is nearer. This is only available for search results.",
            "title": "Distance"
          },
          "embeddings": {
            "anyOf": [
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Embeddings"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          }
        },
        "required": [
          "id",
          "metadata"
        ],
        "title": "Vector",
        "type": "object"
      },
      "VectorListResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "store": {
            "title": "Store",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          },
          "vectors": {
            "items": {
              "$ref": "#/components/schemas/Vector"
            },
            "title": "Vectors",
            "type": "array"
          }
        },
        "required": [
          "message",
          "store",
          "vectors",
          "total"
        ],
        "title": "VectorListResponse",
        "type": "object"
      },
      "VectorStoreInfo": {
        "properties": {
          "dimension": {
            "title": "Dimension",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "dimension"
        ],
        "title": "VectorStoreInfo",
        "type": "object"
      },
      "VectorStoreListResponse": {
        "properties": {
          "stores": {
            "items": {
              "$ref": "#/components/schemas/VectorStoreInfo"
            },
            "title": "Stores",
            "type": "array"
          }
        },
        "required": [
          "stores"
        ],
        "title": "VectorStoreListResponse",
        "type": "object"
      },
      "VerifyFactRequest": {
        "description": "Request body for verify, reject, or reset of a fact.",
        "properties": {
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional note stored on the fact and in the audit history.",
            "title": "Note"
          },
          "verification_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Source, document, or reference id supporting the action.",
            "title": "Verification Source"
          },
          "verified_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Ignored. Actor identity is taken from the authenticated token principal; caller-supplied verified_by is not stored.",
            "title": "Verified By"
          }
        },
        "title": "VerifyFactRequest",
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "BrainAPI personal access token in an Authorization header.",
        "scheme": "bearer",
        "type": "http"
      },
      "BrainPAT": {
        "description": "BrainAPI personal access token.",
        "in": "header",
        "name": "BrainPAT",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "contact": {
      "email": "hello@lumen-labs.ai",
      "name": "BrainAPI Support",
      "url": "https://brainapi.lumen-labs.ai/docs/v2/developers"
    },
    "description": "Core BrainAPI HTTP API, including the unauthenticated health check. Official plugin routes are documented separately.",
    "license": {
      "name": "Business Source License 1.1",
      "url": "https://github.com/Lumen-Labs/brainapi2/blob/main/LICENSE"
    },
    "title": "BrainAPI V2 Core API",
    "version": "2.21.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/health": {
      "get": {
        "description": "Return public liveness status without accessing customer data.",
        "operationId": "public_health_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [],
        "summary": "Health",
        "tags": [
          "public"
        ]
      }
    },
    "/ingest/": {
      "post": {
        "description": "Accept data for asynchronous ingestion.",
        "operationId": "ingest_ingest_data_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestionRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ingest Data",
        "tags": [
          "ingest"
        ]
      }
    },
    "/ingest/file": {
      "post": {
        "description": "Ingest a file into the processing pipeline and save to the memory.",
        "operationId": "ingest_ingest_file_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_ingest_ingest_file_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ingest File",
        "tags": [
          "ingest"
        ]
      }
    },
    "/ingest/structured": {
      "post": {
        "description": "Accept structured data for asynchronous ingestion.",
        "operationId": "ingest_ingest_structured_data_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestionStructuredRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ingest Structured Data",
        "tags": [
          "ingest"
        ]
      }
    },
    "/ingest/structured/batch": {
      "post": {
        "description": "Ingest Structured Batch. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "ingest_ingest_structured_batch_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/IngestionStructuredRequestBody"
                },
                "title": "Batches",
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Ingest Structured Batch",
        "tags": [
          "ingest"
        ]
      }
    },
    "/ingest/url": {
      "post": {
        "description": "Accept a public https URL for asynchronous crawl-and-ingest.",
        "operationId": "ingest_ingest_url_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestionUrlRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ingest Url",
        "tags": [
          "ingest"
        ]
      }
    },
    "/meta/entity-labels": {
      "get": {
        "description": "Retrieve all unique node labels present in the graph.\n\nParameters:\n    brain_id (str): Identifier of the brain/graph to query. Defaults to \"default\".\n\nReturns:\n    labels (list[str]): List of unique node label names.",
        "operationId": "meta_get_entities_labels_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entities Labels",
        "tags": [
          "meta"
        ]
      }
    },
    "/meta/entity-properties": {
      "get": {
        "description": "Retrieve all unique property keys used by entities in the specified brain/graph.\n\nParameters:\n    brain_id (str): Identifier of the brain/graph to query; defaults to \"default\".\n\nReturns:\n    list[str]: A list of property key names present on entities in the graph.",
        "operationId": "meta_get_entity_properties_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entity Properties",
        "tags": [
          "meta"
        ]
      }
    },
    "/meta/ingestion-capabilities": {
      "get": {
        "description": "Ingestion Capabilities. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "meta_ingestion_capabilities_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionCapabilitiesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Ingestion Capabilities",
        "tags": [
          "meta"
        ]
      }
    },
    "/meta/login-info": {
      "get": {
        "description": "Resolve whether a BrainPAT is the system token or scoped to a single brain.",
        "operationId": "meta_get_login_info_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginInfoResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Login Info",
        "tags": [
          "meta"
        ]
      }
    },
    "/meta/relationships-properties": {
      "get": {
        "description": "Retrieve all unique relationship types present in the graph for the specified brain.\n\nParameters:\n    brain_id (str): Identifier of the brain/graph to query. Defaults to \"default\".\n\nReturns:\n    A list of relationship type names (strings) found in the specified graph.",
        "operationId": "meta_get_relationships_properties_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Relationships Properties",
        "tags": [
          "meta"
        ]
      }
    },
    "/model/entity": {
      "post": {
        "description": "Create a new entity (node) in the knowledge graph.\n\nReturns:\n    Response payload containing details of the created node.",
        "operationId": "model_add_entity_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddEntityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "items": {
                        "$ref": "#/components/schemas/Node"
                      },
                      "type": "array"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "title": "Response Model Add Entity Post"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Add Entity",
        "tags": [
          "model"
        ]
      },
      "put": {
        "description": "Update an entity (node) in the graph.\n\n@returns The controller's response containing the updated node representation or an operation result.",
        "operationId": "model_update_entity_put",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEntityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Node"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Model Update Entity Put"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Entity",
        "tags": [
          "model"
        ]
      }
    },
    "/model/facts": {
      "get": {
        "description": "List facts in a brain filtered by verification state: unverified, verified, or rejected. Default listing hides rejected facts unless include_rejected is true or state is rejected.",
        "operationId": "model_list_facts_get",
        "parameters": [
          {
            "description": "unverified, verified, or rejected",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "unverified, verified, or rejected",
              "title": "State"
            }
          },
          {
            "description": "If true, include rejected facts when state is omitted.",
            "in": "query",
            "name": "include_rejected",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, include rejected facts when state is omitted.",
              "title": "IncludeRejected",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FactVerificationListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Facts",
        "tags": [
          "model"
        ]
      }
    },
    "/model/facts/{fact_id}": {
      "get": {
        "description": "Get the current verification state, verifier info, and append-only audit history for a fact.",
        "operationId": "model_get_fact_get",
        "parameters": [
          {
            "in": "path",
            "name": "fact_id",
            "required": true,
            "schema": {
              "title": "Fact Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FactVerificationRecord"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Fact",
        "tags": [
          "model"
        ]
      }
    },
    "/model/facts/{fact_id}/reject": {
      "post": {
        "description": "Mark a fact as rejected so retrieve/search/traverse hide it by default. Requires the verification token scope.",
        "operationId": "model_reject_fact_post",
        "parameters": [
          {
            "in": "path",
            "name": "fact_id",
            "required": true,
            "schema": {
              "title": "Fact Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyFactRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FactVerificationRecord"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Reject Fact",
        "tags": [
          "model"
        ]
      }
    },
    "/model/facts/{fact_id}/reset": {
      "post": {
        "description": "Reset a fact back to unverified. Append-only audit history is retained. Requires the verification token scope.",
        "operationId": "model_reset_fact_post",
        "parameters": [
          {
            "in": "path",
            "name": "fact_id",
            "required": true,
            "schema": {
              "title": "Fact Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyFactRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FactVerificationRecord"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Reset Fact Verification",
        "tags": [
          "model"
        ]
      }
    },
    "/model/facts/{fact_id}/verify": {
      "post": {
        "description": "Mark a fact (relationship UUID or EVENT node UUID) as verified. Requires the verification token scope.",
        "operationId": "model_verify_fact_post",
        "parameters": [
          {
            "in": "path",
            "name": "fact_id",
            "required": true,
            "schema": {
              "title": "Fact Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyFactRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FactVerificationRecord"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify Fact",
        "tags": [
          "model"
        ]
      }
    },
    "/model/relationship": {
      "post": {
        "description": "Create a relationship linking two nodes in the graph.\n\nReturns:\n    relationship (dict): Representation of the created relationship.",
        "operationId": "model_add_relationship_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddRelationshipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "title": "Response Model Add Relationship Post",
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Add Relationship",
        "tags": [
          "model"
        ]
      },
      "put": {
        "description": "Update properties of an existing relationship.\n\nUses the following fields from `request`: `uuid`, `brain_id`, `new_properties` (defaults to an empty dict if missing), and `properties_to_remove` (defaults to an empty list if missing).\n\nReturns:\n    The updated relationship representation or a result object describing the outcome of the update.",
        "operationId": "model_update_relationship_put",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRelationshipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Predicate"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Model Update Relationship Put"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Relationship",
        "tags": [
          "model"
        ]
      }
    },
    "/retrieve/": {
      "get": {
        "description": "Retrieve data from the knowledge graph and data store.",
        "operationId": "retrieve_retrieve_get",
        "parameters": [
          {
            "description": "The text to search for.",
            "in": "query",
            "name": "text",
            "required": true,
            "schema": {
              "description": "The text to search for.",
              "title": "Text",
              "type": "string"
            }
          },
          {
            "description": "The number of results to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The number of results to return.",
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "The entities to prioritize in the relationships, separated by commas.",
            "in": "query",
            "name": "preferred_entities",
            "required": false,
            "schema": {
              "default": "",
              "description": "The entities to prioritize in the relationships, separated by commas.",
              "title": "Preferred Entities",
              "type": "string"
            }
          },
          {
            "description": "If true, include expert-rejected facts.",
            "in": "query",
            "name": "include_rejected",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, include expert-rejected facts.",
              "title": "IncludeRejected",
              "type": "boolean"
            }
          },
          {
            "description": "ISO-8601 datetime. When set, return the knowledge state valid at that instant.",
            "in": "query",
            "name": "as_of",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 datetime. When set, return the knowledge state valid at that instant.",
              "title": "AsOf"
            }
          },
          {
            "description": "When as_of is set, include undated facts in validity_unknown.",
            "in": "query",
            "name": "include_validity_unknown",
            "required": false,
            "schema": {
              "default": false,
              "description": "When as_of is set, include undated facts in validity_unknown.",
              "title": "IncludeValidityUnknown",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrieveRequestResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Retrieve",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/changelogs": {
      "get": {
        "description": "Retrieve a paginated list of changelogs.\n\nParameters:\n    types (Optional[str]): Optional comma-separated changelog types to filter by; each type will be applied as a filter.\n    query_text (Optional[str]): Optional text used to filter changelogs by content or metadata.\n\nReturns:\n    list: Changelog records matching the provided filters, constrained by `limit` and `skip`.",
        "operationId": "retrieve_get_changelogs_list_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Types"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "description": "ISO-8601 datetime. Inclusive start of the change window.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 datetime. Inclusive start of the change window.",
              "title": "Since"
            }
          },
          {
            "description": "ISO-8601 datetime. Exclusive end of the change window.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 datetime. Exclusive end of the change window.",
              "title": "Until"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangelogListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Changelogs List",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/changelogs/types": {
      "get": {
        "description": "Retrieve all unique changelog types for the specified brain.\n\nParameters:\n    brain_id (str): Identifier of the brain to query; defaults to \"default\".\n\nReturns:\n    list[str]: List of unique changelog type names.",
        "operationId": "retrieve_get_changelog_types_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TypeListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Changelog Types",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/changelogs/{id}": {
      "get": {
        "description": "Retrieve a changelog entry by its unique identifier.\n\nParameters:\n    id (str): Unique identifier of the changelog entry.\n    brain_id (str): Brain identifier to query. Defaults to \"default\".\n\nReturns:\n    The changelog entry corresponding to the specified identifier.",
        "operationId": "retrieve_get_changelog_by_id_get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangelogItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Changelog By Id",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts": {
      "get": {
        "description": "List cross-source fact conflicts. Filter by status, source_key, subject, and detected_at window.",
        "operationId": "retrieve_get_conflicts_list_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "open, resolved, or dismissed",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "open, resolved, or dismissed",
              "title": "Status"
            }
          },
          {
            "description": "Filter by source_key",
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by source_key",
              "title": "Source"
            }
          },
          {
            "description": "Filter by subject name",
            "in": "query",
            "name": "subject",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by subject name",
              "title": "Subject"
            }
          },
          {
            "description": "ISO-8601 detected_at start",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 detected_at start",
              "title": "Since"
            }
          },
          {
            "description": "ISO-8601 detected_at end",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 detected_at end",
              "title": "Until"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Conflicts",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts/report": {
      "get": {
        "description": "Build a JSON or markdown report of conflicts for a brain.",
        "operationId": "retrieve_get_conflict_report_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "description": "open, resolved, or dismissed",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "open, resolved, or dismissed",
              "title": "Status"
            }
          },
          {
            "description": "Filter by source_key",
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by source_key",
              "title": "Source"
            }
          },
          {
            "description": "Filter by subject name",
            "in": "query",
            "name": "subject",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by subject name",
              "title": "Subject"
            }
          },
          {
            "description": "ISO-8601 detected_at start",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 detected_at start",
              "title": "Since"
            }
          },
          {
            "description": "ISO-8601 detected_at end",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 detected_at end",
              "title": "Until"
            }
          },
          {
            "description": "json or markdown",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "default": "json",
              "description": "json or markdown",
              "title": "Format",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictReportResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Conflict Report",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts/scan": {
      "post": {
        "description": "Queue a conflict scan. Returns 202 with task_id. The body may set use_llm only; it cannot override CONFLICT_DETECT_MAX_RELATIONSHIPS.",
        "operationId": "retrieve_start_conflict_scan_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConflictScanRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictScanAcceptedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Scan Conflicts",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts/{id}": {
      "get": {
        "description": "Read one conflict by id.",
        "operationId": "retrieve_get_conflict_by_id_get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Conflict",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts/{id}/dismiss": {
      "post": {
        "description": "Dismiss a conflict without choosing a winning fact.",
        "operationId": "retrieve_dismiss_conflict_post",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConflictDismissRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Dismiss Conflict",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/conflicts/{id}/resolve": {
      "post": {
        "description": "Resolve a conflict. method=manual records a winner. method=verified_side verifies the winner and rejects the other side and requires the verification token scope.",
        "operationId": "retrieve_resolve_conflict_post",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConflictResolveRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resolve Conflict",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/context": {
      "post": {
        "description": "Handle an HTTP request to retrieve an entity's contextual information.\n\nParameters:\n    request (GetContextRequestBody): Request body containing:\n        - text: The text to search context for.\n        - brain_id: The brain/workspace identifier to query.\n\nReturns:\n    GetContextResponse: Response containing the context information.",
        "operationId": "retrieve_get_context_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetContextRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetContextResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Context",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entities": {
      "get": {
        "description": "Retrieve entities matching optional label and text filters with pagination.\n\nParameters:\n    node_labels (Optional[str]): Comma-separated node labels to filter by (e.g. \"Person,Company\"); when provided, only entities with any of these labels are returned.\n    query_text (Optional[str]): Free-text filter to match entity properties or content.\n    brain_id (str): Identifier of the brain/knowledge store to query.\n\nReturns:\n    list: A list of entity records that match the provided filters and pagination parameters.",
        "operationId": "retrieve_get_entities_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "node_labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Node Labels"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "description": "If true, include expert-rejected facts.",
            "in": "query",
            "name": "include_rejected",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, include expert-rejected facts.",
              "title": "IncludeRejected",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entities",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entities/neighbors": {
      "get": {
        "description": "Get the neighbors of an entity.",
        "operationId": "retrieve_get_neighbors_get",
        "parameters": [
          {
            "description": "The UUID of the entity to get neighbors for.",
            "in": "query",
            "name": "uuid",
            "required": true,
            "schema": {
              "description": "The UUID of the entity to get neighbors for.",
              "title": "Uuid",
              "type": "string"
            }
          },
          {
            "description": "The number of neighbors to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The number of neighbors to return.",
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "The description of what in the neighbors should share with the target.",
            "in": "query",
            "name": "look_for",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The description of what in the neighbors should share with the target.",
              "title": "Look For"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrieveNeighborsRequestResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Neighbors",
        "tags": [
          "retrieve"
        ]
      },
      "post": {
        "description": "Get the neighbors of an entity.",
        "operationId": "retrieve_get_neighbors_with_identification_params_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrieveNeighborsWithIdentificationParamsRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrieveNeighborsRequestResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Neighbors With Identification Params",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entities/neighbors/ai-mode": {
      "post": {
        "description": "Retrieve neighboring entities using AI-mode identification parameters.\n\nParameters:\n    request (RetrieveNeighborsAiModeRequestBody): Request body containing:\n        - identification_params: parameters that identify the target entity or entities.\n        - looking_for: description of the desired neighbors or relation types.\n        - limit: maximum number of neighbor results to return.\n\nReturns:\n    list: Neighboring entities that match the AI-mode identification and search criteria.",
        "operationId": "retrieve_get_neighbors_ai_mode_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrieveNeighborsAiModeRequestBody",
                "description": "The request body for the retrieve neighbors AI mode endpoint."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrieveNeighborsRequestResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Neighbors Ai Mode",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entity/context": {
      "get": {
        "description": "Retrieve contextual information for an entity identified by `target`.\n\nParameters:\n    target (str): Identifier or name of the target entity.\n    context_depth (int): Maximum depth of related context to include.\n    brain_id (str): Identifier of the brain/knowledge graph to query.\n\nReturns:\n    dict: A mapping containing the entity's contextual information.",
        "operationId": "retrieve_get_entity_context_get",
        "parameters": [
          {
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "title": "Target",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "context_depth",
            "required": false,
            "schema": {
              "default": 3,
              "title": "Context Depth",
              "type": "integer"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntityContextResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entity Context",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entity/info": {
      "get": {
        "description": "Retrieve detailed information for an entity identified by the given target and query.\n\nParameters:\n    target (str): Identifier or name of the target entity to retrieve.\n    query (str): Query text used to refine or disambiguate the requested entity information.\n    max_depth (int): Maximum graph depth to traverse when collecting related information.\n    brain_id (str): Identifier of the brain/namespace to query.\n\nReturns:\n    dict: A mapping containing the entity's attributes and related contextual information.",
        "operationId": "retrieve_get_entity_info_get",
        "parameters": [
          {
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "title": "Target",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "title": "Query",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "max_depth",
            "required": false,
            "schema": {
              "default": 3,
              "title": "Max Depth",
              "type": "integer"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntityInfoResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entity Info",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entity/status": {
      "get": {
        "description": "Retrieve status information for a specified entity.\n\nParameters:\n    target (str): Identifier or name of the entity to inspect.\n    types (Optional[List[str]]): Optional list of entity types to filter the status computation.\n    brain_id (str): Identifier of the brain (knowledge graph) to query.\n\nReturns:\n    status (dict): A dictionary containing the entity's status details.",
        "operationId": "retrieve_get_entity_status_get",
        "parameters": [
          {
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "title": "Target",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Types"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntityStatusResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entity Status",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/entity/synergies": {
      "get": {
        "description": "Retrieve synergies for a specified entity.\n\nParameters:\n    target: Identifier or name of the target entity.\n    polarity: \"same\" for matching node polarity; \"opposite\" for positive↔negative.\n    do: If True, only direct synergies are returned.\n    pa: If True, potential anchors are returned.\n    ppa: If True, seed anchors are returned.\n    top_k: Maximum synergies to return (default 50).\n    labels: Optional candidate label filter.\n    brain_id: Identifier of the knowledge brain to query.\n\nReturns:\n    Synergy records for the target entity matching the requested polarity.",
        "operationId": "retrieve_get_entity_synergies_get",
        "parameters": [
          {
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "title": "Target",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "polarity",
            "required": false,
            "schema": {
              "default": "same",
              "enum": [
                "same",
                "opposite"
              ],
              "title": "Polarity",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "do",
            "required": false,
            "schema": {
              "default": false,
              "title": "Do",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "pa",
            "required": false,
            "schema": {
              "default": false,
              "title": "Pa",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "ppa",
            "required": false,
            "schema": {
              "default": false,
              "title": "Ppa",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "top_k",
            "required": false,
            "schema": {
              "default": 50,
              "title": "Top K",
              "type": "integer"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Labels"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntitySibilingsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Entity Synergies",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/explore/v1/communities/{community_id}": {
      "get": {
        "description": "Community. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "retrieve_community_get",
        "parameters": [
          {
            "in": "path",
            "name": "community_id",
            "required": true,
            "schema": {
              "title": "Community Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "snapshot",
            "required": true,
            "schema": {
              "maxLength": 64,
              "title": "Snapshot",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 2048,
              "title": "Cursor",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Types",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "connectionTypes",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Connectiontypes",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtlasResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Community",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/explore/v1/neighbors/{entity_id}": {
      "get": {
        "description": "Neighbors. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "retrieve_neighbors_get",
        "parameters": [
          {
            "in": "path",
            "name": "entity_id",
            "required": true,
            "schema": {
              "title": "Entity Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 2048,
              "title": "Cursor",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Types",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "connectionTypes",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Connectiontypes",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtlasResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Neighbors",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/explore/v1/overview": {
      "get": {
        "description": "Overview. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "retrieve_overview_get",
        "parameters": [
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Types",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "connectionTypes",
            "required": false,
            "schema": {
              "default": "",
              "maxLength": 6500,
              "title": "Connectiontypes",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtlasResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Overview",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/hops": {
      "get": {
        "description": "Compute graph hops for the given query.\n\nParameters:\n    query (str): Search text or entity identifier to start hop traversal from.\n    degrees (int): Maximum number of hop degrees to traverse (default 2).\n    flattened (bool): If True, return a flattened list of hops; otherwise preserve nested hop structure.\n    brain_id (str): Identifier of the brain (knowledge graph) to query.\n\nReturns:\n    list: Hops (paths) connecting matching entities up to the specified degree; the exact structure varies based on `flattened`.",
        "operationId": "retrieve_get_hops_get",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "title": "Query",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "degrees",
            "required": false,
            "schema": {
              "const": 2,
              "default": 2,
              "title": "Degrees",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "flattened",
            "required": false,
            "schema": {
              "default": true,
              "title": "Flattened",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HopListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Hops",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/observations": {
      "get": {
        "description": "Retrieve a list of observations filtered by the provided parameters.\n\nParameters:\n    limit (int): Maximum number of observations to return.\n    skip (int): Number of observations to skip (offset).\n    resource_id (Optional[str]): If provided, only return observations for this resource identifier.\n    labels (Optional[str]): Comma-separated observation labels to filter by; when provided, labels are treated as a list of strings.\n    query_text (Optional[str]): Full-text query to filter observations.\n    brain_id (str): Identifier of the brain/tenant to query.\n\nReturns:\n    list: A list of observation records that match the provided filters.",
        "operationId": "retrieve_get_observations_list_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "resource_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Id"
            }
          },
          {
            "in": "query",
            "name": "labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Labels"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Observations List",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/observations/labels": {
      "get": {
        "description": "Get all unique labels from observations.",
        "operationId": "retrieve_get_observation_labels_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Observation Labels",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/observations/{id}": {
      "get": {
        "description": "Get observation by ID.",
        "operationId": "retrieve_get_observation_by_id_get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Observation By Id",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/recommend": {
      "get": {
        "description": "Preview: ranked event-graph recommendations composing synergies, asymmetric\ncomplementary walks, multi-interest medoids, and optional attribute\npreferences (retrieval-time only; no training).",
        "operationId": "retrieve_get_recommend_get",
        "parameters": [
          {
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "title": "Target",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "polarity",
            "required": false,
            "schema": {
              "default": "same",
              "enum": [
                "same",
                "opposite"
              ],
              "title": "Polarity",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "top_k",
            "required": false,
            "schema": {
              "default": 20,
              "title": "Top K",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "include_asymmetric",
            "required": false,
            "schema": {
              "default": true,
              "title": "Include Asymmetric",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "include_multi_interest",
            "required": false,
            "schema": {
              "default": true,
              "title": "Include Multi Interest",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "include_attribute_pref",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Attribute Pref",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "diversify",
            "required": false,
            "schema": {
              "default": true,
              "title": "Diversify",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "asymmetric_direction",
            "required": false,
            "schema": {
              "default": "outbound",
              "enum": [
                "outbound",
                "inbound",
                "both"
              ],
              "title": "Asymmetric Direction",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "exclude_seen",
            "required": false,
            "schema": {
              "default": false,
              "title": "Exclude Seen",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "recency_half_life_days",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Recency Half Life Days"
            }
          },
          {
            "in": "query",
            "name": "dampen_degree",
            "required": false,
            "schema": {
              "default": false,
              "title": "Dampen Degree",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Labels"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Recommend entities (Preview)",
        "tags": [
          "retrieve"
        ],
        "x-stability": "preview"
      },
      "post": {
        "description": "Preview recommendation surface; request and response compatibility is kept.",
        "operationId": "retrieve_post_recommend_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecommendRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Recommend entities from a request body (Preview)",
        "tags": [
          "retrieve"
        ],
        "x-stability": "preview"
      }
    },
    "/retrieve/relationships": {
      "get": {
        "description": "Retrieve relationships filtered by types, node labels, and query criteria.\n\nParameters:\n    relationship_types (Optional[str]): Comma-separated relationship types to include.\n    from_node_labels (Optional[str]): Comma-separated source node labels to filter.\n    to_node_labels (Optional[str]): Comma-separated target node labels to filter.\n    query_text (Optional[str]): Text to match against relationships or nodes.\n    query_search_target (Optional[str]): Target of the text query, such as \"all\", \"source\", or \"target\".\n    limit (int): Maximum number of relationships to return.\n    skip (int): Number of relationships to skip.\n    brain_id (str): Brain (dataset) identifier.\n\nReturns:\n    List of relationship records matching the filters.",
        "operationId": "retrieve_get_relationships_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "relationship_types",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Relationship Types"
            }
          },
          {
            "in": "query",
            "name": "from_node_labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "From Node Labels"
            }
          },
          {
            "in": "query",
            "name": "to_node_labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To Node Labels"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "in": "query",
            "name": "query_search_target",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": "all",
              "title": "Query Search Target"
            }
          },
          {
            "description": "If true, include expert-rejected facts.",
            "in": "query",
            "name": "include_rejected",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, include expert-rejected facts.",
              "title": "IncludeRejected",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationshipListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Relationships",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/search": {
      "get": {
        "description": "Get Search. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "retrieve_get_search_get",
        "parameters": [
          {
            "description": "The search query.",
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "description": "The search query.",
              "title": "Query",
              "type": "string"
            }
          },
          {
            "description": "Number of hits to return.",
            "in": "query",
            "name": "k",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Number of hits to return.",
              "maximum": 200,
              "minimum": 1,
              "title": "K",
              "type": "integer"
            }
          },
          {
            "description": "Comma-separated channels: passages, entities, events, communities, and/or plugin:<name>.",
            "in": "query",
            "name": "channels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": "passages",
              "description": "Comma-separated channels: passages, entities, events, communities, and/or plugin:<name>.",
              "title": "Channels"
            }
          },
          {
            "description": "Comma-separated node labels to filter the entities channel.",
            "in": "query",
            "name": "node_labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated node labels to filter the entities channel.",
              "title": "Node Labels"
            }
          },
          {
            "description": "Comma-separated hub labels for the communities channel.",
            "in": "query",
            "name": "community_labels",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated hub labels for the communities channel.",
              "title": "Community Labels"
            }
          },
          {
            "description": "Optional 1-hop expansion from graph channel seeds.",
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "default": "none",
              "description": "Optional 1-hop expansion from graph channel seeds.",
              "enum": [
                "none",
                "neighbors"
              ],
              "title": "Expand",
              "type": "string"
            }
          },
          {
            "description": "Fusion override. Default is SEARCH_FUSION.",
            "in": "query",
            "name": "fusion",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "rrf",
                    "cc"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Fusion override. Default is SEARCH_FUSION.",
              "title": "Fusion"
            }
          },
          {
            "description": "none or plugin:<name>. Unknown plugin names return 400.",
            "in": "query",
            "name": "rerank",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "none or plugin:<name>. Unknown plugin names return 400.",
              "title": "Rerank"
            }
          },
          {
            "description": "Optional USER uuid or id for query-gated rerank of retrieved hits.",
            "in": "query",
            "name": "target",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Optional USER uuid or id for query-gated rerank of retrieved hits.",
              "title": "Target"
            }
          },
          {
            "in": "query",
            "name": "profile_stages",
            "required": false,
            "schema": {
              "default": false,
              "title": "Profile Stages",
              "type": "boolean"
            }
          },
          {
            "description": "If true, include expert-rejected facts.",
            "in": "query",
            "name": "include_rejected",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, include expert-rejected facts.",
              "title": "IncludeRejected",
              "type": "boolean"
            }
          },
          {
            "description": "ISO-8601 datetime. When set, return the knowledge state valid at that instant.",
            "in": "query",
            "name": "as_of",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ISO-8601 datetime. When set, return the knowledge state valid at that instant.",
              "title": "AsOf"
            }
          },
          {
            "description": "When as_of is set, include undated facts in validity_unknown.",
            "in": "query",
            "name": "include_validity_unknown",
            "required": false,
            "schema": {
              "default": false,
              "description": "When as_of is set, include undated facts in validity_unknown.",
              "title": "IncludeValidityUnknown",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Search",
        "tags": [
          "retrieve"
        ]
      },
      "post": {
        "description": "Post Search. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "retrieve_post_search_post",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Post Search",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/structured-data": {
      "get": {
        "description": "Get a list of structured data.",
        "operationId": "retrieve_get_structured_data_list_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Types"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StructuredDataListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Structured Data List",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/structured-data/types": {
      "get": {
        "description": "Get all unique types from structured data.",
        "operationId": "retrieve_get_structured_data_types_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TypeListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Structured Data Types",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/structured-data/{id}": {
      "get": {
        "description": "Get structured data by ID.",
        "operationId": "retrieve_get_structured_data_by_id_get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "title": "Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StructuredDataItemResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Structured Data By Id",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/text-chunks": {
      "get": {
        "description": "Get text chunks by a query text and optional metadata equality filters.",
        "operationId": "retrieve_get_text_chunks_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "query_text",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Query Text"
            }
          },
          {
            "in": "query",
            "name": "metadata_eq",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Metadata Eq"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ],
              "title": "Order",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextChunkListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Text Chunks",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/vectors/stores": {
      "get": {
        "description": "List available vector store names and dimensions.",
        "operationId": "retrieve_get_vector_stores_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VectorStoreListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Vector Stores",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/retrieve/vectors/{store}": {
      "get": {
        "description": "List vectors in a store with pagination.",
        "operationId": "retrieve_get_vectors_list_get",
        "parameters": [
          {
            "in": "path",
            "name": "store",
            "required": true,
            "schema": {
              "title": "Store",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "skip",
            "required": false,
            "schema": {
              "default": 0,
              "title": "Skip",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "include_embeddings",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Embeddings",
              "type": "boolean"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VectorListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Vectors List",
        "tags": [
          "retrieve"
        ]
      }
    },
    "/system/brains": {
      "post": {
        "description": "Create a new brain",
        "operationId": "system_create_brain_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBrainRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Brain"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Brain",
        "tags": [
          "system"
        ]
      }
    },
    "/system/brains-list": {
      "get": {
        "description": "Get the list of brains.",
        "operationId": "system_get_brains_list_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Brain"
                  },
                  "title": "Response System Get Brains List Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Brains List",
        "tags": [
          "system"
        ]
      }
    },
    "/system/brains/{brain_id}": {
      "delete": {
        "description": "Delete a brain's data, registry identity, PAT, and cached credentials.",
        "operationId": "system_delete_brain_delete",
        "parameters": [
          {
            "in": "path",
            "name": "brain_id",
            "required": true,
            "schema": {
              "title": "Brain Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainLifecycleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Delete Brain",
        "tags": [
          "system"
        ]
      }
    },
    "/system/brains/{brain_id}/clear": {
      "post": {
        "description": "Clear all data for a brain while preserving its identity and PAT.",
        "operationId": "system_clear_brain_post",
        "parameters": [
          {
            "in": "path",
            "name": "brain_id",
            "required": true,
            "schema": {
              "title": "Brain Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrainLifecycleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Clear Brain",
        "tags": [
          "system"
        ]
      }
    },
    "/tasks/": {
      "get": {
        "description": "Get Tasks. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "tasks_get_tasks_get",
        "parameters": [
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Tasks",
        "tags": [
          "tasks"
        ]
      }
    },
    "/tasks/{task_id}": {
      "get": {
        "description": "Get the result of a task by its ID.",
        "operationId": "tasks_get_task_get",
        "parameters": [
          {
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "title": "Task Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStateResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get Task",
        "tags": [
          "tasks"
        ]
      }
    },
    "/tasks/{task_id}/activity": {
      "get": {
        "description": "Get Activity. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "tasks_get_activity_get",
        "parameters": [
          {
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "title": "Task Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionActivityResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Get Activity",
        "tags": [
          "tasks"
        ]
      }
    },
    "/tasks/{task_id}/cancel": {
      "post": {
        "description": "Cancel Ingestion. See the BrainAPI developer documentation for request, response, authentication, and retry semantics.",
        "operationId": "tasks_cancel_ingestion_post",
        "parameters": [
          {
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "title": "Task Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelIngestionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelIngestionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Operation forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal service error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Dependency unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Cancel Ingestion",
        "tags": [
          "tasks"
        ]
      }
    },
    "/tasks/{task_id}/purge": {
      "post": {
        "description": "Remove graph data owned by one import. Send digest from a previous preview, or source_key.",
        "operationId": "tasks_purge_ingestion_post",
        "parameters": [
          {
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "title": "Task Id",
              "type": "string"
            }
          },
          {
            "description": "Alphanumeric Brain ID from dashboard Settings (name_key), not the display name. Query/body/multipart fallbacks remain supported.",
            "in": "header",
            "name": "X-Brain-ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurgeIngestionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurgeIngestionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Authentication failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Permission denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method not allowed"
          },
          "406": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Brain not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Import changed since preview, or purge is unsafe"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Rate limited"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service unavailable"
          }
        },
        "security": [
          {
            "BrainPAT": []
          },
          {
            "BearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Direct BrainAPI deployment (replace with your deployment URL)",
            "url": "http://localhost:8000"
          }
        ],
        "summary": "Purge Ingestion",
        "tags": [
          "tasks"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Managed BrainAPI (us-east1)",
      "url": "https://system.us-east1.brainapi.lumen-labs.ai"
    },
    {
      "description": "Managed BrainAPI (europe-central2)",
      "url": "https://system.europe-central2.brainapi.lumen-labs.ai"
    },
    {
      "description": "Local BrainAPI",
      "url": "http://localhost:8000"
    }
  ],
  "tags": [
    {
      "description": "Unauthenticated service health.",
      "name": "public"
    },
    {
      "description": "Submit content for asynchronous ingestion into a brain.",
      "name": "ingest"
    },
    {
      "description": "Search and retrieve passages, graph data, observations, and recommendations.",
      "name": "retrieve"
    },
    {
      "description": "Create and update typed entities and relationships.",
      "name": "model"
    },
    {
      "description": "Inspect authentication scope and graph metadata.",
      "name": "meta"
    },
    {
      "description": "Inspect asynchronous task status and cancel supported ingestion runs.",
      "name": "tasks"
    },
    {
      "description": "Administer brains with a system personal access token.",
      "name": "system"
    }
  ]
}
