{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vestiarion-xyz/json-schema/vestiarion-xyz-get-close-pack-response-schema.json",
  "title": "GetClosePackResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vestiarion-xyz-openapi.json#/components/schemas/GetClosePackResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "const": "vestiarion-close-pack/1"
        },
        "exportedAt": {
          "type": "string"
        },
        "workspace": {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "slug",
            "name"
          ],
          "description": "The workspace the document is of."
        },
        "network": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "enum": [
                "arc-testnet",
                "arc-mainnet"
              ]
            },
            "label": {
              "type": "string",
              "description": "The network's name, as the workspace's pages write it."
            }
          },
          "required": [
            "id",
            "label"
          ],
          "description": "The workspace's network."
        },
        "month": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "description": "The first day, `YYYY-MM-DD` (UTC)."
            },
            "to": {
              "type": "string",
              "description": "The next month's first day: the month runs up to it, not including it."
            },
            "label": {
              "type": "string"
            },
            "key": {
              "type": "string",
              "description": "`YYYY-MM`."
            },
            "ended": {
              "type": "boolean",
              "description": "Whether the month has ended: false for this month so far."
            }
          },
          "required": [
            "from",
            "to",
            "label",
            "key",
            "ended"
          ],
          "description": "A calendar month in UTC."
        },
        "ledgerHead": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "seq": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "hash": {
                  "type": "string"
                }
              },
              "required": [
                "seq",
                "hash"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "The ledger's newest entry when the pack was read."
        },
        "cut": {
          "type": "boolean",
          "description": "The month holds more payments than one pack reads (2,000), and the pack stops there."
        },
        "unread": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "members",
              "screening"
            ]
          },
          "description": "Parts that could not be read just now; the rest shows."
        },
        "totals": {
          "type": "object",
          "properties": {
            "onChain": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "enum": [
                      "USDC",
                      "EURC"
                    ]
                  },
                  "payments": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "amount": {
                    "type": "string",
                    "description": "An amount as text with exactly six decimal places, never a float."
                  },
                  "routeFeesUsdc": {
                    "type": "string",
                    "description": "An amount as text with exactly six decimal places, never a float."
                  }
                },
                "required": [
                  "token",
                  "payments",
                  "amount",
                  "routeFeesUsdc"
                ]
              }
            },
            "simulated": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "enum": [
                      "USDC",
                      "EURC"
                    ]
                  },
                  "payments": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "amount": {
                    "type": "string",
                    "description": "An amount as text with exactly six decimal places, never a float."
                  },
                  "routeFeesUsdc": {
                    "type": "string",
                    "description": "An amount as text with exactly six decimal places, never a float."
                  }
                },
                "required": [
                  "token",
                  "payments",
                  "amount",
                  "routeFeesUsdc"
                ]
              }
            },
            "shadow": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "notSettled": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "enum": [
                  "settled_later",
                  "waiting",
                  "in_flight",
                  "unknown",
                  "gateway_failed",
                  "failed",
                  "cancelled",
                  "not_sent",
                  "refunded"
                ]
              },
              "additionalProperties": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "withoutBill": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "entries": {
              "type": "object",
              "properties": {
                "cited": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "verified": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "failed": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "unchecked": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "cited",
                "verified",
                "failed",
                "unchecked"
              ]
            }
          },
          "required": [
            "onChain",
            "simulated",
            "shadow",
            "notSettled",
            "withoutBill",
            "entries"
          ]
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "paymentId": {
                "type": "string"
              },
              "source": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "milestone"
                    ]
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "id"
                ]
              },
              "paidAt": {
                "type": "string"
              },
              "sentAt": {
                "type": "string"
              },
              "amount": {
                "type": "string",
                "description": "An amount as text with exactly six decimal places, never a float."
              },
              "token": {
                "type": "string",
                "enum": [
                  "USDC",
                  "EURC"
                ]
              },
              "discount": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "simulated": {
                "type": "boolean"
              },
              "shadow": {
                "type": "boolean"
              },
              "payee": {
                "type": "object",
                "properties": {
                  "counterpartyId": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "address": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "bank": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "const": "blindpay"
                          },
                          "bankCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "last4": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "rail": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "receiverAmount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "receiverCurrency": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "payoutId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "provider",
                          "bankCode",
                          "last4",
                          "rail",
                          "receiverAmount",
                          "receiverCurrency",
                          "payoutId"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "counterpartyId",
                  "name",
                  "address",
                  "bank"
                ]
              },
              "bill": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "invoice"
                      },
                      "id": {
                        "type": "string"
                      },
                      "number": {
                        "description": "The vendor's own number.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "amount": {
                        "type": "string",
                        "description": "An amount as text with exactly six decimal places, never a float."
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USDC",
                          "EURC"
                        ]
                      },
                      "written": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueDate": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "poReference": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "memo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "document": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "sha256": {
                                "type": "string"
                              },
                              "kind": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "sha256",
                              "kind"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "The document the bill was read from, by its SHA-256; the document itself is not kept."
                      },
                      "vendorDocuments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sha256": {
                              "type": "string"
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "at": {
                              "type": "string"
                            },
                            "entry": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "sha256",
                            "type",
                            "at",
                            "entry"
                          ]
                        }
                      },
                      "entry": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "number",
                      "amount",
                      "currency",
                      "written",
                      "dueDate",
                      "poReference",
                      "memo",
                      "document",
                      "vendorDocuments",
                      "entry"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "milestone"
                      },
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "string",
                        "description": "An amount as text with exactly six decimal places, never a float."
                      },
                      "currency": {
                        "type": "string",
                        "const": "USDC"
                      },
                      "entry": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "title",
                      "amount",
                      "currency",
                      "entry"
                    ]
                  }
                ]
              },
              "approval": {
                "type": "object",
                "properties": {
                  "authorizedBy": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "code",
                          "person",
                          "two_people"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agent": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string"
                          },
                          "decider": {
                            "type": "string"
                          },
                          "guardrailRule": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "shadow": {
                            "type": "boolean"
                          },
                          "at": {
                            "type": "string"
                          },
                          "entry": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "action",
                          "decider",
                          "guardrailRule",
                          "shadow",
                          "at",
                          "entry"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approvals": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "who": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "member"
                                },
                                "userId": {
                                  "type": "string"
                                },
                                "email": {
                                  "description": "Null through the API, which names members by user id only.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "roleNow": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "owner",
                                        "admin",
                                        "approver",
                                        "accountant",
                                        "viewer"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "userId",
                                "email",
                                "roleNow"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "former_member"
                                },
                                "userId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "userId"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "payee_link"
                                },
                                "linkId": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "linkId"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "github"
                                },
                                "login": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "login"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "unknown"
                                }
                              },
                              "required": [
                                "kind"
                              ]
                            }
                          ],
                          "description": "Who did a step."
                        },
                        "at": {
                          "type": "string"
                        },
                        "cosign": {
                          "type": "boolean"
                        },
                        "paid": {
                          "type": "boolean"
                        },
                        "via": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "entry": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "who",
                        "at",
                        "cosign",
                        "paid",
                        "via",
                        "entry"
                      ]
                    }
                  },
                  "verdict": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "verdict": {
                            "type": "string",
                            "enum": [
                              "agree",
                              "disagree"
                            ]
                          },
                          "who": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "member"
                                  },
                                  "userId": {
                                    "type": "string"
                                  },
                                  "email": {
                                    "description": "Null through the API, which names members by user id only.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "roleNow": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "owner",
                                          "admin",
                                          "approver",
                                          "accountant",
                                          "viewer"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "userId",
                                  "email",
                                  "roleNow"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "former_member"
                                  },
                                  "userId": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "userId"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "payee_link"
                                  },
                                  "linkId": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "linkId"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "github"
                                  },
                                  "login": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "login"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "unknown"
                                  }
                                },
                                "required": [
                                  "kind"
                                ]
                              }
                            ],
                            "description": "Who did a step."
                          },
                          "at": {
                            "type": "string"
                          },
                          "entry": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "verdict",
                          "who",
                          "at",
                          "entry"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "flags": {
                    "type": "object",
                    "properties": {
                      "soleApprover": {
                        "type": "boolean"
                      },
                      "addressGiverApproved": {
                        "type": "boolean"
                      },
                      "firstPayment": {
                        "type": "boolean"
                      },
                      "fewApprovers": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "soleApprover",
                      "addressGiverApproved",
                      "firstPayment",
                      "fewApprovers"
                    ]
                  },
                  "address": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string"
                          },
                          "mirror": {
                            "type": "boolean"
                          },
                          "givenBy": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "member"
                                      },
                                      "userId": {
                                        "type": "string"
                                      },
                                      "email": {
                                        "description": "Null through the API, which names members by user id only.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "roleNow": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "owner",
                                              "admin",
                                              "approver",
                                              "accountant",
                                              "viewer"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "userId",
                                      "email",
                                      "roleNow"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "former_member"
                                      },
                                      "userId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "userId"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "payee_link"
                                      },
                                      "linkId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "linkId"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "github"
                                      },
                                      "login": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "login"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "unknown"
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ]
                                  }
                                ],
                                "description": "Who did a step."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "givenAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "confirmedBy": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "member"
                                      },
                                      "userId": {
                                        "type": "string"
                                      },
                                      "email": {
                                        "description": "Null through the API, which names members by user id only.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "roleNow": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "owner",
                                              "admin",
                                              "approver",
                                              "accountant",
                                              "viewer"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "userId",
                                      "email",
                                      "roleNow"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "former_member"
                                      },
                                      "userId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "userId"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "payee_link"
                                      },
                                      "linkId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "linkId"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "github"
                                      },
                                      "login": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "login"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "unknown"
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ]
                                  }
                                ],
                                "description": "Who did a step."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confirmedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "confirmedWith": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "confirm",
                                  "approval"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "secondPerson": {
                            "type": [
                              "boolean",
                              "null"
                            ]
                          },
                          "entries": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          }
                        },
                        "required": [
                          "address",
                          "mirror",
                          "givenBy",
                          "givenAt",
                          "confirmedBy",
                          "confirmedAt",
                          "confirmedWith",
                          "secondPerson",
                          "entries"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "authorizedBy",
                  "agent",
                  "approvals",
                  "verdict",
                  "flags",
                  "address"
                ]
              },
              "checks": {
                "type": "object",
                "properties": {
                  "guardrails": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  },
                  "screening": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  },
                  "walletList": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  },
                  "payeeLock": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  },
                  "payTo": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  },
                  "milestone": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "checked",
                          "verified",
                          "stated",
                          "inferred",
                          "missing",
                          "unreachable",
                          "contradicted",
                          "not_applicable"
                        ]
                      },
                      "text": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entries": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "warn": {
                        "type": "boolean",
                        "description": "Bad news, however well it is known."
                      }
                    },
                    "required": [
                      "kind",
                      "text",
                      "notes",
                      "at",
                      "entries",
                      "warn"
                    ]
                  }
                },
                "required": [
                  "guardrails",
                  "screening",
                  "walletList",
                  "payeeLock",
                  "payTo",
                  "milestone"
                ]
              },
              "transaction": {
                "type": "object",
                "properties": {
                  "route": {
                    "type": "string",
                    "enum": [
                      "direct",
                      "cctp",
                      "gateway",
                      "escrow",
                      "bank",
                      "simulated"
                    ]
                  },
                  "txHash": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "chain": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "chainLabel": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "explorerUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceTxHash": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceExplorerUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "simulatedRef": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "note": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "networkFeeUsd": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "networkFeeSource": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "chain_reported",
                          "provider_estimate",
                          "simulated_profile"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "routeFeeUsdc": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "earlierAttempts": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "route",
                  "txHash",
                  "chain",
                  "chainLabel",
                  "explorerUrl",
                  "sourceTxHash",
                  "sourceExplorerUrl",
                  "simulatedRef",
                  "note",
                  "networkFeeUsd",
                  "networkFeeSource",
                  "routeFeeUsdc",
                  "earlierAttempts"
                ]
              },
              "record": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "seq": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "action": {
                        "type": "string"
                      },
                      "ts": {
                        "type": "string"
                      },
                      "hash": {
                        "type": "string"
                      },
                      "signature": {
                        "type": "string"
                      },
                      "signingKeyId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "check": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "ok": {
                                "type": "boolean",
                                "const": true
                              }
                            },
                            "required": [
                              "ok"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "ok": {
                                "type": "boolean",
                                "const": false
                              },
                              "reason": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "ok",
                              "reason"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "ok": {
                                "type": "null"
                              },
                              "reason": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "ok",
                              "reason"
                            ]
                          }
                        ],
                        "description": "One entry checked alone: `true` it verifies, `false` it does not, `null` it could not be checked here, for example by a key not known here."
                      }
                    },
                    "required": [
                      "seq",
                      "action",
                      "ts",
                      "hash",
                      "signature",
                      "signingKeyId",
                      "check"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The signed entry that records the payment: a copy of its hash and signature, which `entries` carries in full."
              },
              "books": {
                "type": "object",
                "properties": {
                  "markedPaid": {
                    "type": "boolean"
                  },
                  "mismatch": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "confirmed_not_marked_paid",
                          "marked_paid_not_confirmed",
                          "marked_paid_other_transaction",
                          "no_signed_entry"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "booked": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "tool": {
                            "type": "string"
                          },
                          "state": {
                            "type": "string"
                          },
                          "paymentId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "at": {
                            "type": "string"
                          },
                          "entry": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "tool",
                          "state",
                          "paymentId",
                          "at",
                          "entry"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "markedPaid",
                  "mismatch",
                  "booked"
                ]
              },
              "evidencePath": {
                "type": "string"
              },
              "entries": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "description": "Every entry the row cites, ascending."
              },
              "evidenceUrl": {
                "type": "string"
              }
            },
            "required": [
              "paymentId",
              "source",
              "paidAt",
              "sentAt",
              "amount",
              "token",
              "discount",
              "simulated",
              "shadow",
              "payee",
              "bill",
              "approval",
              "checks",
              "transaction",
              "record",
              "books",
              "evidencePath",
              "entries",
              "evidenceUrl"
            ],
            "description": "A payment settled in the month."
          }
        },
        "notSettled": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "paymentId": {
                "type": "string"
              },
              "source": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "milestone"
                    ]
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "id"
                ]
              },
              "payee": {
                "type": "object",
                "properties": {
                  "counterpartyId": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "counterpartyId",
                  "name"
                ]
              },
              "amount": {
                "type": "string",
                "description": "An amount as text with exactly six decimal places, never a float."
              },
              "token": {
                "type": "string",
                "enum": [
                  "USDC",
                  "EURC"
                ]
              },
              "simulated": {
                "type": "boolean"
              },
              "state": {
                "type": "string",
                "enum": [
                  "settled_later",
                  "waiting",
                  "in_flight",
                  "unknown",
                  "gateway_failed",
                  "failed",
                  "cancelled",
                  "not_sent",
                  "refunded"
                ]
              },
              "sentAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "settledAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "txHash": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "explorerUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evidencePath": {
                "type": "string"
              },
              "evidenceUrl": {
                "type": "string"
              }
            },
            "required": [
              "paymentId",
              "source",
              "payee",
              "amount",
              "token",
              "simulated",
              "state",
              "sentAt",
              "settledAt",
              "reason",
              "txHash",
              "explorerUrl",
              "evidencePath",
              "evidenceUrl"
            ],
            "description": "A payment of the month not settled in it."
          }
        },
        "escrow": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "funded",
                  "refunded"
                ]
              },
              "at": {
                "type": "string"
              },
              "milestoneId": {
                "type": "string"
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "amount": {
                "type": "string",
                "description": "An amount as text with exactly six decimal places, never a float."
              },
              "txHash": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "explorerUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "entry": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "kind",
              "at",
              "milestoneId",
              "title",
              "amount",
              "txHash",
              "explorerUrl",
              "entry"
            ]
          }
        },
        "labels": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "checked",
              "verified",
              "stated",
              "inferred",
              "missing",
              "unreachable",
              "contradicted",
              "not_applicable"
            ]
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "words": {
                "type": "string"
              },
              "meaning": {
                "type": "string"
              }
            },
            "required": [
              "words",
              "meaning"
            ]
          },
          "required": [
            "checked",
            "verified",
            "stated",
            "inferred",
            "missing",
            "unreachable",
            "contradicted",
            "not_applicable"
          ],
          "description": "Each check kind's words and what it means."
        },
        "signedEntryProves": {
          "type": "string",
          "description": "What a signed entry proves, and what it does not."
        },
        "checkAnEntry": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "How to check one entry alone: its body hash, its signature and its chain hash."
        },
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The first 16 hex characters of the SHA-256 of the key's public SPKI: a key counts only under this id."
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "retired"
                ]
              },
              "publicKeyPem": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "status",
              "publicKeyPem"
            ],
            "description": "One of the workspace's ledger signing keys, its public half only."
          },
          "description": "The workspace's public keys, active and retired, each under its id: what the entries were signed with."
        },
        "entries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "seq": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ts": {
                "type": "string"
              },
              "actor": {
                "type": "string"
              },
              "domain": {
                "type": "string"
              },
              "action": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "detail": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "body_hash": {
                "type": "string"
              },
              "signature": {
                "type": "string"
              },
              "prev_hash": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "signing_key_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "check": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": [
                          "ok"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean",
                            "const": false
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "ok",
                          "reason"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "null"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "ok",
                          "reason"
                        ]
                      }
                    ],
                    "description": "One entry checked alone: `true` it verifies, `false` it does not, `null` it could not be checked here, for example by a key not known here."
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The server's check of this entry alone. A checker re-checks it rather than trust this field."
              }
            },
            "required": [
              "seq",
              "id",
              "ts",
              "actor",
              "domain",
              "action",
              "summary",
              "detail",
              "body_hash",
              "signature",
              "prev_hash",
              "hash",
              "signing_key_id",
              "check"
            ],
            "description": "A ledger entry in full, as the audit export writes it (snake_case), with the server's check."
          },
          "description": "Every entry the document cites, oldest first, in full, each with the server's check."
        }
      },
      "required": [
        "format",
        "exportedAt",
        "workspace",
        "network",
        "month",
        "ledgerHead",
        "cut",
        "unread",
        "totals",
        "rows",
        "notSettled",
        "escrow",
        "labels",
        "signedEntryProves",
        "checkAnEntry",
        "keys",
        "entries"
      ],
      "description": "A month's close pack, `vestiarion-close-pack/1`: every payment settled in it, one row each with its signed entry, the payments not settled, the escrow moves, totals, and every cited entry in full."
    }
  },
  "required": [
    "data"
  ]
}