{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-reconcile-post-answer-schema.json",
  "title": "ReconcilePostAnswer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-reconcile-api-openapi.yml#/components/schemas/ReconcilePostAnswer",
  "oneOf": [
    {
      "$ref": "#/$defs/ReconcilePostResponse"
    },
    {
      "$ref": "#/$defs/ReconcileExtendResponse"
    }
  ],
  "$defs": {
    "ReconcileExtendResponse": {
      "type": "object",
      "description": "The data extension: the properties asked for, and each id's values.",
      "properties": {
        "meta": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        },
        "rows": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "ReconcilePostResponse": {
      "type": "object",
      "description": "Keyed by each query's key as sent (q0, q1, …).",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    }
                  }
                },
                "score": {
                  "type": "number"
                },
                "match": {
                  "type": "boolean"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}