{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-block-datasets-response-schema.json",
  "title": "BlockDatasetsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-block-api-openapi.yml#/components/schemas/BlockDatasetsResponse",
  "properties": {
    "datasets": {
      "items": {
        "$ref": "#/$defs/BlockDatasetEntry"
      },
      "type": "array",
      "title": "Datasets"
    }
  },
  "type": "object",
  "required": [
    "datasets"
  ],
  "$defs": {
    "BlockAccessType": {
      "type": "string",
      "enum": [
        "Forward Feed",
        "Historic"
      ],
      "title": "BlockAccessType"
    },
    "BlockDatasetCut": {
      "properties": {
        "cut": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cut"
        },
        "lags": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Lags",
          "default": []
        },
        "annual_price": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Annual Price"
        },
        "bulk_row_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bulk Row Status"
        },
        "request_statuses": {
          "additionalProperties": {
            "$ref": "#/$defs/BlockRequestStatus"
          },
          "type": "object",
          "title": "Request Statuses",
          "default": {}
        }
      },
      "type": "object",
      "required": [
        "cut"
      ],
      "title": "BlockDatasetCut"
    },
    "BlockDatasetEntry": {
      "properties": {
        "dataset_id": {
          "type": "string",
          "title": "Dataset Id"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "vendor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vendor"
        },
        "offered_access_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/BlockAccessType"
            },
            {
              "type": "null"
            }
          ]
        },
        "cuts": {
          "items": {
            "$ref": "#/$defs/BlockDatasetCut"
          },
          "type": "array",
          "title": "Cuts",
          "default": []
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "frequency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Frequency"
        },
        "history": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "History"
        },
        "lag": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lag"
        },
        "use_cases": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Use Cases",
          "default": []
        },
        "ecosystem": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ecosystem"
        },
        "status": {
          "type": "string",
          "title": "Status",
          "default": "ready"
        },
        "terms_of_use_html": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terms Of Use Html"
        },
        "terms_of_use_version_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terms Of Use Version Id"
        },
        "platform_access_blocked": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Platform Access Blocked"
        }
      },
      "type": "object",
      "required": [
        "dataset_id"
      ],
      "title": "BlockDatasetEntry"
    },
    "BlockRequestStatus": {
      "type": "string",
      "enum": [
        "NONE",
        "PENDING",
        "APPROVED",
        "TRIAL_ACTIVE",
        "CONTRACTED",
        "DENIED"
      ],
      "title": "BlockRequestStatus"
    }
  }
}