{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fwozen-com/json-schema/fwozen-com-api-key-scopes-schema.json",
  "title": "ApiKeyScopes",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fwozen-com-api-keys-api-openapi.yml#/components/schemas/ApiKeyScopes",
  "type": "object",
  "properties": {
    "scopes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "freeze:read",
              "freeze:write",
              "schedule:read",
              "schedule:write",
              "exception:read",
              "exception:write",
              "repo:read",
              "repo:write",
              "audit:read",
              "billing:read",
              "billing:write"
            ]
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "defaultSelected": {
            "type": "boolean"
          }
        },
        "required": [
          "value",
          "label",
          "description",
          "defaultSelected"
        ],
        "additionalProperties": false
      }
    },
    "agentKeyMaxExpiryDays": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "scopes",
    "agentKeyMaxExpiryDays"
  ],
  "additionalProperties": false
}