{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fanaura-com/json-schema/fanaura-com-protected-resource-metadata-schema.json",
  "title": "ProtectedResourceMetadata",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fanaura-com-openapi.json#/components/schemas/ProtectedResourceMetadata",
  "type": "object",
  "required": [
    "resource",
    "scopes_supported"
  ],
  "properties": {
    "resource": {
      "type": "string",
      "format": "uri"
    },
    "authorization_servers": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "journeys:read",
          "journeys:write",
          "audience:read"
        ]
      }
    },
    "bearer_methods_supported": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "header"
        ]
      }
    },
    "resource_name": {
      "type": "string"
    },
    "resource_documentation": {
      "type": "string",
      "format": "uri"
    },
    "resource_policy_uri": {
      "type": "string",
      "format": "uri"
    },
    "resource_tos_uri": {
      "type": "string",
      "format": "uri"
    }
  }
}