{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thecoindaily-co/json-schema/thecoindaily-co-api-metadata-schema.json",
  "title": "ApiMetadata",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/research-openapi.json#/components/schemas/ApiMetadata",
  "properties": {
    "schema_version": {
      "type": "string",
      "title": "Schema Version",
      "default": "tcd.research-api-meta/v1"
    },
    "service": {
      "type": "string",
      "title": "Service",
      "default": "The Coin Daily Research Desk API"
    },
    "browser_data_access": {
      "type": "string",
      "title": "Browser Data Access",
      "default": "server_side_authorised_only"
    },
    "analytical_authority": {
      "type": "string",
      "title": "Analytical Authority",
      "default": "immutable_same_cut_market_fabric"
    },
    "availability_states": {
      "items": {
        "$ref": "#/$defs/AvailabilityState"
      },
      "type": "array",
      "title": "Availability States"
    },
    "provenance_policies": {
      "items": {
        "$ref": "#/$defs/ProvenancePolicy"
      },
      "type": "array",
      "title": "Provenance Policies"
    }
  },
  "type": "object",
  "required": [
    "availability_states",
    "provenance_policies"
  ],
  "$defs": {
    "AvailabilityState": {
      "type": "string",
      "enum": [
        "available",
        "partial",
        "delayed",
        "quiet",
        "zero",
        "missing",
        "unavailable",
        "empty",
        "error"
      ],
      "title": "AvailabilityState",
      "description": "States intentionally kept distinct in product responses."
    },
    "MarketScope": {
      "type": "string",
      "enum": [
        "coinbase_spot",
        "coinbase_l2",
        "cross_exchange_derivatives",
        "hyperliquid_perp",
        "same_cut_analytical_cohort"
      ],
      "title": "MarketScope"
    },
    "ProvenancePolicy": {
      "properties": {
        "scope": {
          "$ref": "#/$defs/MarketScope"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "reader_rule": {
          "type": "string",
          "title": "Reader Rule"
        },
        "must_disclose": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Must Disclose"
        }
      },
      "type": "object",
      "required": [
        "scope",
        "label",
        "reader_rule"
      ],
      "title": "ProvenancePolicy"
    }
  }
}