{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-caller-identity-response-schema.json",
  "title": "CallerIdentityResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-identity-api-openapi.yml#/components/schemas/CallerIdentityResponse",
  "properties": {
    "principal": {
      "type": "string",
      "title": "Principal"
    },
    "private_principal": {
      "type": "boolean",
      "title": "Private Principal"
    },
    "auth_method": {
      "type": "string",
      "title": "Auth Method"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes"
    },
    "billing_eligible": {
      "type": "boolean",
      "title": "Billing Eligible"
    },
    "owner_authorized": {
      "type": "boolean",
      "title": "Owner Authorized"
    },
    "owner_delegated": {
      "type": "boolean",
      "title": "Owner Delegated"
    },
    "issuance_authority": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issuance Authority"
    }
  },
  "type": "object",
  "required": [
    "principal",
    "private_principal",
    "auth_method",
    "scopes",
    "billing_eligible",
    "owner_authorized",
    "owner_delegated"
  ]
}