{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/v3.BulkFileList",
  "title": "v3.BulkFileList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roic-ai-bulk-downloads-api-openapi.yml#/components/schemas/v3.BulkFileList",
  "additionalProperties": false,
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "additionalProperties": false,
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "dataset": {
            "type": "string",
            "enum": [
              "fundamentals",
              "earnings-calls",
              "stock-prices"
            ]
          },
          "year": {
            "minimum": 1900,
            "maximum": 2100,
            "anyOf": [
              {
                "format": "integer",
                "default": 0,
                "type": "string"
              },
              {
                "minimum": 1900,
                "maximum": 2100,
                "type": "integer"
              }
            ]
          },
          "period": {
            "description": "Dataset-specific period: financial cadence, fiscal quarter, or two-digit calendar month.",
            "type": "string"
          },
          "format": {
            "const": "csv",
            "type": "string"
          },
          "compression": {
            "description": "Files are gzip-compressed. Decompress before reading the CSV.",
            "const": "gzip",
            "type": "string"
          },
          "size": {
            "minimum": 0,
            "description": "Size of the compressed file in bytes.",
            "anyOf": [
              {
                "format": "integer",
                "default": 0,
                "type": "string"
              },
              {
                "minimum": 0,
                "description": "Size of the compressed file in bytes.",
                "type": "integer"
              }
            ]
          },
          "sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "description": "SHA-256 of the compressed file, for verifying a download.",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "description": "Signed download link. Send a plain GET request without the API key.",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "description": "Time after which the signed link stops working.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "dataset",
          "year",
          "period",
          "format",
          "compression",
          "size",
          "sha256",
          "updated_at",
          "url",
          "expires_at"
        ],
        "$id": "#/components/schemas/v3.BulkFile"
      }
    },
    "next_page_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "previous_page_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "data",
    "next_page_url",
    "previous_page_url"
  ]
}