{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-auth-session-schema.json",
  "title": "AuthSession",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-auth-api-openapi.yml#/components/schemas/AuthSession",
  "type": "object",
  "required": [
    "entity_name",
    "primary_color",
    "logo_url"
  ],
  "properties": {
    "user": {
      "type": "object",
      "additionalProperties": true,
      "description": "User object as returned by the auth service (free-form, not controlled by this API)."
    },
    "org": {
      "type": "object",
      "additionalProperties": true,
      "description": "Organisation object as returned by the auth service (free-form)."
    },
    "api_key": {
      "type": "string",
      "description": "Org-scoped KYC API key (kyc_api_key from the auth service)."
    },
    "entity_name": {
      "type": "string",
      "description": "org.name, or 'Infinihash KYC' when absent."
    },
    "primary_color": {
      "type": "string",
      "description": "org.primary_color, or '#c9a84c' when absent."
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}