{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mapposter-xyz/json-schema/mapposter-xyz-key-status-schema.json",
  "title": "KeyStatus",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mapposter-xyz-openapi.json#/components/schemas/KeyStatus",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string",
      "enum": [
        "starter",
        "pro",
        "business",
        "single"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "revoked"
      ]
    },
    "key_prefix": {
      "type": "string"
    },
    "period": {
      "type": "string",
      "description": "YYYY-MM (UTC)."
    },
    "quota": {
      "type": [
        "integer",
        "null"
      ]
    },
    "used": {
      "type": [
        "integer",
        "null"
      ]
    },
    "remaining": {
      "type": [
        "integer",
        "null"
      ]
    },
    "credits": {
      "type": [
        "integer",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}