{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-retrieval-response-schema.json",
  "title": "retrievalResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-copilot-copilotroot-actions-api-openapi.yml#/components/schemas/microsoft.graph.retrievalResponse",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "retrievalHits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.retrievalHit"
      }
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.dictionaries": {
      "title": "dictionaries",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.retrievalEntityType": {
      "title": "retrievalEntityType",
      "enum": [
        "site",
        "list",
        "listItem",
        "drive",
        "driveItem",
        "externalItem",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.retrievalExtract": {
      "title": "retrievalExtract",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "relevanceScore": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.retrievalHit": {
      "title": "retrievalHit",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "extracts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.retrievalExtract"
          }
        },
        "resourceMetadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.searchResourceMetadataDictionary"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "resourceType": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.retrievalEntityType"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "sensitivityLabel": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.sensitivityLabelInfo"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "webUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.searchResourceMetadataDictionary": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.dictionaries"
        },
        {
          "title": "searchResourceMetadataDictionary",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.searchResourceMetadataDictionary"
    },
    "microsoft.graph.sensitivityLabelInfo": {
      "title": "sensitivityLabelInfo",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "priority": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "format": "int32"
        },
        "sensitivityLabelId": {
          "type": [
            "string",
            "null"
          ]
        },
        "tooltip": {
          "type": [
            "string",
            "null"
          ]
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}