{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lifestep-io/json-schema/lifestep-io-workbook-report-schema.json",
  "title": "WorkbookReport",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lifestep-io-openapi.json#/components/schemas/WorkbookReport",
  "properties": {
    "filename": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filename"
    },
    "total_size_bytes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total Size Bytes",
      "description": "Compressed uploaded file size."
    },
    "uncompressed_size_bytes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Uncompressed Size Bytes",
      "description": "Sum of declared uncompressed OOXML ZIP member sizes."
    },
    "sheet_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Sheet Count"
    },
    "sheet_names": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sheet Names"
    },
    "sheets": {
      "items": {
        "$ref": "#/$defs/SheetReport"
      },
      "type": "array",
      "title": "Sheets"
    },
    "totals": {
      "$ref": "#/$defs/WorkbookTotals"
    },
    "has_external_links": {
      "type": "boolean",
      "title": "Has External Links"
    },
    "has_vba_project": {
      "type": "boolean",
      "title": "Has Vba Project"
    },
    "shared_strings_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Shared Strings Count"
    },
    "defined_names_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Defined Names Count"
    },
    "calculation_settings": {
      "$ref": "#/$defs/CalculationSettings"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "filename",
    "total_size_bytes",
    "uncompressed_size_bytes",
    "sheet_count",
    "sheet_names",
    "sheets",
    "totals",
    "has_external_links",
    "has_vba_project",
    "shared_strings_count",
    "defined_names_count",
    "calculation_settings"
  ],
  "$defs": {
    "CalculationSettings": {
      "properties": {
        "calculation_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Calculation Id"
        },
        "mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mode"
        },
        "full_calculation_on_load": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Full Calculation On Load"
        },
        "force_full_calculation": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Force Full Calculation"
        },
        "calculate_on_save": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Calculate On Save"
        },
        "concurrent_calculation": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Concurrent Calculation"
        },
        "concurrent_manual_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Concurrent Manual Count"
        },
        "iteration_enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Iteration Enabled"
        },
        "iteration_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Iteration Count"
        },
        "iteration_delta": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Iteration Delta"
        },
        "reference_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reference Mode"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "CalculationSettings"
    },
    "SheetReport": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "state": {
          "type": "string",
          "enum": [
            "visible",
            "hidden",
            "veryHidden"
          ],
          "title": "State"
        },
        "formula_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Formula Count"
        },
        "cached_error_cells_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Cached Error Cells Count"
        },
        "merged_range_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Merged Range Count"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "state",
        "formula_count",
        "cached_error_cells_count",
        "merged_range_count"
      ],
      "title": "SheetReport"
    },
    "WorkbookTotals": {
      "properties": {
        "formula_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Formula Count"
        },
        "cached_error_cells_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Cached Error Cells Count"
        },
        "merged_range_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Merged Range Count"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "formula_count",
        "cached_error_cells_count",
        "merged_range_count"
      ],
      "title": "WorkbookTotals"
    }
  }
}