{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-reader-api-key-schema.json",
  "title": "ReaderApiKey",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-accounts-api-openapi.yml#/components/schemas/ReaderApiKey",
  "type": "object",
  "required": [
    "id",
    "principalId",
    "role",
    "status",
    "tokenPrefix",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "principalId": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "reader"
      ]
    },
    "displayName": {
      "type": "string"
    },
    "allowedOwners": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked"
      ]
    },
    "tokenPrefix": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "revokedAt": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    }
  },
  "additionalProperties": true
}