{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-signer-schema.json",
  "title": "Signer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-contracts-api-openapi.yml#/components/schemas/Signer",
  "type": "object",
  "required": [
    "project_id",
    "project_id",
    "chain",
    "address",
    "status",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^cwlt_[A-Za-z0-9_-]+$"
    },
    "project_id": {
      "$ref": "#/$defs/ProjectId"
    },
    "chain": {
      "type": "string",
      "enum": [
        "base-mainnet",
        "base-sepolia"
      ]
    },
    "address": {
      "$ref": "#/$defs/WalletAddress"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "deleted"
      ]
    },
    "recovery_address": {
      "allOf": [
        {
          "$ref": "#/$defs/WalletAddress"
        }
      ]
    },
    "low_balance_threshold_wei": {
      "type": "string"
    },
    "last_alert_sent_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_rent_debited_on": {
      "type": [
        "string",
        "null"
      ]
    },
    "suspended_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "native_balance_wei": {
      "type": "string"
    },
    "native_balance_usd_micros": {
      "type": "integer"
    },
    "non_custodial_notice": {
      "type": "string"
    }
  },
  "$defs": {
    "ProjectId": {
      "type": "string",
      "description": "Run402 project ID. Public IDs are not UUIDs.",
      "pattern": "^prj_[A-Za-z0-9_-]+$"
    },
    "WalletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    }
  }
}