{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentpaywire.com/schemas/lightning-wallets.schema.json",
  "title": "Lightning wallet catalog",
  "description": "Wallet facts for agents. Null means the cited source did not state the field.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "generated_at",
    "disclaimer",
    "description",
    "count",
    "entries"
  ],
  "properties": {
    "schema_version": {
      "const": "1"
    },
    "generated_at": {
      "type": "string"
    },
    "disclaimer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "const": "Not investment advice."
        },
        "url": {
          "const": "https://agentpaywire.com/disclaimer.json"
        }
      }
    },
    "$schema": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "selection_rule": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "markdown_url": {
      "type": "string"
    },
    "csv_url": {
      "type": "string"
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "custody",
          "mcp_support",
          "l402_support",
          "receive_only_permissions",
          "payment_idempotency",
          "limits",
          "fees",
          "license",
          "llms_txt_url",
          "docs_url",
          "source_url",
          "last_verified",
          "notes"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "custody": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp_support": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "l402_support": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "receive_only_permissions": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_idempotency": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "limits": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "fees": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "license": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "value",
                  "source",
                  "verified_at"
                ],
                "properties": {
                  "value": {},
                  "source": {
                    "type": "string",
                    "format": "uri"
                  },
                  "verified_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "llms_txt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "docs_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "last_verified": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    }
  }
}
