{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genhttp-dev/json-schema/genhttp-dev-data-store-response-schema.json",
  "title": "DataStoreResponse",
  "description": "One kind of data of a lambda, and how full it is.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/genhttp-dev-v1-openapi.json#/components/schemas/DataStoreResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "kind": {
      "type": "string",
      "description": "Which kind: `database`, the SQLite database it keeps its records in; `workspace`, the files it reads and writes; or `secrets`, the API keys and passwords it reads and nobody sees"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the lambda has it switched on"
    },
    "default": {
      "type": "boolean",
      "description": "Whether a lambda has it until its owner decides otherwise: the workspace does, the others do not"
    },
    "changed": {
      "type": [
        "string",
        "null"
      ],
      "description": "When it was last switched on or off; absent while it is as it came",
      "format": "date-time"
    },
    "items": {
      "type": "integer",
      "description": "What it holds: tables, for the database; files, for the workspace; values, for the secrets",
      "format": "int32"
    },
    "usedBytes": {
      "type": "integer",
      "description": "The room that takes, as the allowance counts it; zero for the secrets, which are counted in values",
      "format": "int64"
    },
    "quotaBytes": {
      "type": "integer",
      "description": "The room it may take: for the database and the workspace, the data allowance of the tier less what the other takes; zero for the secrets",
      "format": "int64"
    },
    "maxItems": {
      "type": [
        "integer",
        "null"
      ],
      "description": "How many it may hold, for a kind counted in values rather than bytes - the secrets",
      "format": "int32"
    }
  }
}