{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/averray-com/json-schema/averray-com-siwe-nonce-response-schema.json",
  "title": "SiweNonceResponse",
  "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/SiweNonceResponse",
  "type": "object",
  "required": [
    "wallet",
    "nonce",
    "domain",
    "chainId",
    "statement",
    "issuedAt",
    "expiresAt",
    "message"
  ],
  "properties": {
    "wallet": {
      "$ref": "#/$defs/WalletSignInIdentity"
    },
    "nonce": {
      "type": "string",
      "minLength": 1
    },
    "domain": {
      "type": "string"
    },
    "chainId": {
      "type": "integer",
      "description": "EVM chain id bound into the SIWE message. Production uses Polkadot Hub mainnet (420420419)."
    },
    "statement": {
      "type": "string"
    },
    "issuedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "message": {
      "type": "string",
      "description": "Exact EIP-4361 message the wallet must sign."
    }
  },
  "additionalProperties": false,
  "$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."
        }
      ]
    }
  }
}