{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/2.1/bridging/findIntentAgentResponse.schema.json",
  "title": "FindIntent Agent Response",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/FindIntentResponseBase"
    },
    {
      "$ref": "agentResponse.schema.json"
    }
  ],
  "$defs": {
    "FindIntentResponseBase": {
      "title": "FindIntent Response",
      "type": "object",
      "description": "A response to a findIntent request.",
      "properties": {
        "type": {
          "title": "FindIntent Response Message Type",
          "const": "findIntentResponse"
        },
        "payload": {
          "title": "FindIntent Response Payload",
          "type": "object",
          "properties": {
            "appIntent": {
              "$ref": "../api/api.schema.json#/definitions/AppIntent"
            }
          },
          "required": ["appIntent"],
          "additionalProperties": false
        },
        "meta": {
          "title": "FindIntent Response Metadata",
          "type": "object"
        }
      },
      "additionalProperties": false
    }
  }
}
