{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coloringbookify-com/json-schema/coloringbookify-com-account-envelope-schema.json",
  "title": "AccountEnvelope",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coloringbookify-com-openapi.yml#/components/schemas/AccountEnvelope",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "name",
        "email",
        "plan",
        "credits",
        "capabilities"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "plan": {
          "type": "string",
          "const": "Business"
        },
        "credits": {
          "type": "integer"
        },
        "capabilities": {
          "type": "object",
          "properties": {
            "characters": {
              "type": "boolean"
            },
            "api_read": {
              "type": "boolean",
              "const": true
            },
            "api_generation": {
              "type": "boolean",
              "const": true
            }
          }
        }
      }
    }
  }
}