{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/okareo/json-schema/okareo-api-key-list-item-schema.json",
  "title": "ApiKeyListItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okareo-auth-api-keys-api-openapi.yml#/components/schemas/ApiKeyListItem",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "key_id": {
      "type": "string",
      "title": "Key Id"
    },
    "key_prefix": {
      "type": "string",
      "title": "Key Prefix"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "roles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Roles"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "last_used_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Used At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revoked At"
    },
    "source": {
      "type": "string",
      "enum": [
        "okareo",
        "frontegg"
      ],
      "title": "Source"
    }
  },
  "type": "object",
  "required": [
    "id",
    "key_id",
    "key_prefix",
    "description",
    "created_at",
    "last_used_at",
    "expires_at",
    "revoked_at",
    "source"
  ]
}