{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fwozen-com/json-schema/fwozen-com-create-api-key-input-input-schema.json",
  "title": "CreateApiKeyInputInput",
  "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/CreateApiKeyInputInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "scopes": {
      "minItems": 1,
      "maxItems": 11,
      "type": "array",
      "items": {
        "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"
        ]
      }
    },
    "expiresInDays": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 730
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "default": "live",
      "type": "string",
      "enum": [
        "live",
        "test"
      ]
    },
    "kind": {
      "default": "human",
      "type": "string",
      "enum": [
        "human",
        "agent"
      ]
    }
  },
  "required": [
    "name",
    "scopes",
    "expiresInDays"
  ]
}