{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phoenixlabs-space/json-schema/phoenixlabs-space-wallet-schema.json",
  "title": "Wallet",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phoenixlabs-space-openapi.json#/components/schemas/Wallet",
  "type": "object",
  "properties": {
    "wallet_id": {
      "type": "string"
    },
    "balance_cents": {
      "type": "integer"
    },
    "spendable_cents": {
      "type": "integer"
    },
    "paused": {
      "type": "boolean"
    },
    "email": {
      "type": "string",
      "description": "Only shown to the wallet key."
    },
    "agent_key": {
      "$ref": "#/$defs/AgentKey"
    }
  },
  "$defs": {
    "AgentKey": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "limit_cents": {
          "type": "integer"
        },
        "spent_cents": {
          "type": "integer"
        },
        "remaining_cents": {
          "type": "integer"
        },
        "created_at": {
          "type": "string"
        },
        "last_used_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "revoked": {
          "type": "boolean"
        }
      }
    }
  }
}