{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-app-usage-schema-schema.json",
  "title": "AppUsageSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-app-usage-api-openapi.yml#/components/schemas/AppUsageSchema",
  "properties": {
    "workspace": {
      "$ref": "#/$defs/AppUsageFieldSchema"
    }
  },
  "type": "object",
  "required": [
    "workspace"
  ],
  "$defs": {
    "AppUsageFieldSchema": {
      "properties": {
        "storage_used": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Storage used",
          "description": "Total storage used by the workspace"
        },
        "current_storage_allowed": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current storage allowed",
          "description": "Current storage allowed for the workspace"
        },
        "plan_storage_value": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan storage value",
          "description": "Initial storage offered by the plan"
        },
        "max_storage_allowed": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max storage allowed",
          "description": "Maximum storage allowed that can be allowed for the workspace with current plan and addons"
        },
        "row_count_utilized": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Row count utilized",
          "description": "Total row count utilized by the workspace"
        },
        "current_row_count_allowed": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current row count allowed",
          "description": "Current row count allowed for the workspace"
        },
        "plan_row_count_value": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan row count value",
          "description": "Initial row count offered by the plan"
        },
        "max_row_count_allowed": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max row count allowed",
          "description": "Maximum row count allowed that can be allowed for the workspace with current plan and addons"
        }
      },
      "type": "object",
      "required": [],
      "title": "AppUsageFieldSchema"
    }
  }
}