{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dialogflow/json-schema/google-dialogflow-google-cloud-dialogflow-v2-document-schema.json",
  "title": "GoogleCloudDialogflowV2Document",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-dialogflow-documents-api-openapi.yml#/components/schemas/GoogleCloudDialogflowV2Document",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "CREATING",
        "ACTIVE",
        "UPDATING",
        "RELOADING",
        "DELETING"
      ],
      "x-enumDescriptions": [
        "",
        "",
        "",
        "",
        "",
        ""
      ],
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "latestReloadStatus": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2DocumentReloadStatus"
    },
    "mimeType": {
      "type": "string"
    },
    "knowledgeTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "KNOWLEDGE_TYPE_UNSPECIFIED",
          "FAQ",
          "EXTRACTIVE_QA",
          "ARTICLE_SUGGESTION",
          "AGENT_FACING_SMART_REPLY"
        ],
        "x-enumDescriptions": [
          "",
          "",
          "",
          "",
          ""
        ]
      }
    },
    "enableAutoReload": {
      "type": "boolean"
    },
    "rawContent": {
      "type": "string",
      "format": "byte"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "contentUri": {
      "type": "string"
    }
  },
  "$defs": {
    "GoogleCloudDialogflowV2DocumentReloadStatus": {
      "type": "object",
      "properties": {
        "time": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/GoogleRpcStatus"
        }
      }
    },
    "GoogleRpcStatus": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        },
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            }
          }
        }
      }
    }
  }
}