{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/averray-com/json-schema/averray-com-siwe-verify-response-schema.json",
  "title": "SiweVerifyResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/averray-com-auth-api-openapi.yml#/components/schemas/SiweVerifyResponse",
  "type": "object",
  "required": [
    "token",
    "wallet",
    "roles",
    "capabilities",
    "expiresAt",
    "tokenType"
  ],
  "properties": {
    "token": {
      "type": "string",
      "description": "JWT supplied on protected operations as `Authorization: Bearer <token>`."
    },
    "wallet": {
      "$ref": "#/$defs/WalletSignInIdentity"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "tokenType": {
      "type": "string",
      "const": "Bearer"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "WalletSignInIdentity": {
      "description": "An EVM H160 address or a native SS58 AccountId32 (checksum and identity type are validated by the server). Native subjects preserve case and earning requires a verified revive mapping.",
      "oneOf": [
        {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        {
          "type": "string",
          "pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
          "description": "Valid SS58-encoded AccountId32."
        }
      ]
    }
  }
}