{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "settlement": {
      "type": "string"
    },
    "payouts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "settlement": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "network": {
            "type": "string"
          },
          "mint": {
            "type": "string"
          },
          "tokenProgram": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "default": "wallet",
            "type": "string"
          },
          "payer": {
            "type": "string"
          },
          "squads": {
            "default": null,
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "multisig": {
                    "type": "string"
                  },
                  "vaultIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 255
                  },
                  "proposer": {
                    "type": "string"
                  },
                  "accountRent": {
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,77})$"
                  }
                },
                "required": [
                  "multisig",
                  "vaultIndex",
                  "proposer",
                  "accountRent"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "decimals": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "total": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d{0,77})$"
          },
          "rent": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d{0,77})$"
          },
          "fees": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d{0,77})$"
          },
          "lastValidBlockHeight": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "createdBy": {
            "type": "string"
          },
          "batches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "memo": {
                  "type": "string"
                },
                "transaction": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "signature": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amount": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d{0,77})$"
                },
                "rent": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d{0,77})$"
                },
                "transactionIndex": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "proposal": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "payments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "wallet": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "string",
                        "pattern": "^(0|[1-9]\\d{0,77})$"
                      }
                    },
                    "required": ["member", "wallet", "amount"]
                  }
                }
              },
              "required": [
                "index",
                "memo",
                "transaction",
                "status",
                "signature",
                "amount",
                "rent",
                "transactionIndex",
                "proposal",
                "payments"
              ]
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "member": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "pattern": "^[a-zA-Z0-9_-]+$"
                },
                "share": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d{0,77})$"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": ["member", "share", "reason"]
            }
          }
        },
        "required": [
          "id",
          "settlement",
          "network",
          "mint",
          "tokenProgram",
          "source",
          "payer",
          "squads",
          "decimals",
          "total",
          "rent",
          "fees",
          "lastValidBlockHeight",
          "createdAt",
          "createdBy",
          "batches",
          "skipped"
        ]
      }
    },
    "confirmation": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "settlement": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "batches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "payout": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  },
                  "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string"
                  },
                  "signature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["payout", "index", "status", "signature"]
              }
            },
            "paid": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "unpaid": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": ["settlement", "batches", "paid", "pending", "unpaid"]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": ["settlement", "payouts", "confirmation"],
  "additionalProperties": {},
  "title": "Solana payout",
  "description": "The payouts the command built. Without --keypair, one payout whose unsigned batches the team signs, and `confirmation` is null. With --keypair, each payout it signed, sent and confirmed, the last planning nothing new or paying no one, and the last confirmation."
}
