{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://olip.ai/spec/7.0-proposed/schemas/document-access.schema.json",
  "title": "document-access",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "maxLength": 100,
      "minLength": 20
    },
    "expires_in": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300
    },
    "label": {
      "type": "string",
      "maxLength": 80
    },
    "protection": {
      "enum": [
        "server_protected_not_e2ee",
        "v5_e2ee_envelope"
      ]
    }
  },
  "required": [
    "access_token",
    "expires_in",
    "label",
    "protection"
  ],
  "additionalProperties": false
}
