{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-account-schema.json",
  "title": "Account",
  "description": "Each account has one owner, one product tier, a region, a timezone, and a set of enabled locales.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-account-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the account was created."
    },
    "domains": {
      "type": "array",
      "description": "Hostnames associated with the account.",
      "items": {
        "type": "string"
      }
    },
    "global_id": {
      "type": "string",
      "format": "uuid",
      "description": "Globally unique identifier for the account, stable across slug changes."
    },
    "languages": {
      "type": "array",
      "description": "Locales enabled for the account, used as keys for translation maps on other resources (such as category, round, and score-set names).",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Locale code, for example `en_GB` or `en_US`."
          }
        }
      }
    },
    "name": {
      "type": "string",
      "description": "Display name of the account."
    },
    "owner": {
      "type": "object",
      "description": "User who owns the account.",
      "properties": {
        "slug": {
          "type": "string",
          "description": "Short URL-safe identifier for the owner."
        },
        "link": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URL for the owner resource."
        },
        "name": {
          "type": "string",
          "description": "Full display name of the owner."
        },
        "first_name": {
          "type": "string",
          "description": "Given name of the owner."
        },
        "last_name": {
          "type": "string",
          "description": "Family name of the owner."
        }
      }
    },
    "product": {
      "type": "string",
      "description": "Subscription plan tier the account is on, for example `Premium`."
    },
    "region": {
      "type": "string",
      "description": "Two-letter region code the account is hosted in, for example `au` or `eu`."
    },
    "slug": {
      "type": "string",
      "description": "Short URL-safe identifier for the account."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone identifier without the slash separator, for example `EuropeLondon`."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the account record was last updated."
    }
  }
}