{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vestiarion-xyz/json-schema/vestiarion-xyz-get-payee-lock-evidence-response-schema.json",
  "title": "GetPayeeLockEvidenceResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vestiarion-xyz-openapi.json#/components/schemas/GetPayeeLockEvidenceResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "const": "vestiarion-payee-lock-evidence/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."
        },
        "period": {
          "type": "object",
          "properties": {
            "from": {
              "type": [
                "string",
                "null"
              ]
            },
            "to": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "from",
            "to"
          ],
          "description": "Whole UTC days, `YYYY-MM-DD`; null for an open end."
        },
        "lock": {
          "type": "object",
          "properties": {
            "now": {
              "type": "object",
              "properties": {
                "on": {
                  "type": "boolean"
                },
                "coolingHours": {
                  "type": "number",
                  "description": "Hours a changed address waits before it can be paid; 0 is no wait."
                }
              },
              "required": [
                "on",
                "coolingHours"
              ],
              "description": "The payee lock's setting."
            },
            "changes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string"
                  },
                  "by": {
                    "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"
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "userId",
                          "email"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "former_member"
                          },
                          "id": {
                            "type": "string",
                            "description": "The first 8 characters of their user id."
                          }
                        },
                        "required": [
                          "kind",
                          "id"
                        ]
                      },
                      {
                        "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."
                  },
                  "from": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "on": {
                            "type": "boolean"
                          },
                          "coolingHours": {
                            "type": "number",
                            "description": "Hours a changed address waits before it can be paid; 0 is no wait."
                          }
                        },
                        "required": [
                          "on",
                          "coolingHours"
                        ],
                        "description": "The payee lock's setting."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "on": {
                            "type": "boolean"
                          },
                          "coolingHours": {
                            "type": "number",
                            "description": "Hours a changed address waits before it can be paid; 0 is no wait."
                          }
                        },
                        "required": [
                          "on",
                          "coolingHours"
                        ],
                        "description": "The payee lock's setting."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "entry": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "at",
                  "by",
                  "from",
                  "to",
                  "entry"
                ]
              }
            }
          },
          "required": [
            "now",
            "changes"
          ]
        },
        "summary": {
          "type": "object",
          "properties": {
            "changes": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "confirmed": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "confirmedWithRecord": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "confirmedBySecondPerson": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "heldWhileUnconfirmed": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "heldForTheWait": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "heldAsNewPayee": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "paid": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "paidOnlyAfterConfirmation": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "changes",
            "confirmed",
            "confirmedWithRecord",
            "confirmedBySecondPerson",
            "heldWhileUnconfirmed",
            "heldForTheWait",
            "heldAsNewPayee",
            "paid",
            "paidOnlyAfterConfirmation"
          ]
        },
        "changes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "counterparty": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "change": {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string"
                  },
                  "from": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "to": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "chain": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "enteredBy": {
                    "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"
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "userId",
                          "email"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "former_member"
                          },
                          "id": {
                            "type": "string",
                            "description": "The first 8 characters of their user id."
                          }
                        },
                        "required": [
                          "kind",
                          "id"
                        ]
                      },
                      {
                        "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."
                  },
                  "entry": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "at",
                  "from",
                  "to",
                  "chain",
                  "enteredBy",
                  "entry"
                ]
              },
              "confirmation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "at": {
                        "type": "string"
                      },
                      "by": {
                        "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"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "userId",
                              "email"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "former_member"
                              },
                              "id": {
                                "type": "string",
                                "description": "The first 8 characters of their user id."
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ]
                          },
                          {
                            "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."
                      },
                      "via": {
                        "description": "With Confirm address (`confirm`), or by approving a payment to it (`approval`).",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "record": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "method": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "call",
                                      "message",
                                      "in_person",
                                      "other"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "methodLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "contact": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "contactOnFileBefore": {
                                "type": "boolean"
                              },
                              "note": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "method",
                              "methodLabel",
                              "contact",
                              "contactOnFileBefore",
                              "note"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "secondPerson": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "soloConfirmation": {
                        "type": "boolean"
                      },
                      "byGiver": {
                        "type": "boolean"
                      },
                      "giverUnknown": {
                        "type": "boolean"
                      },
                      "waitHours": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "payableFrom": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lookalikeOf": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ]
                        }
                      },
                      "looksLikeEarlier": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "entry": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "at",
                      "by",
                      "via",
                      "record",
                      "secondPerson",
                      "soloConfirmation",
                      "byGiver",
                      "giverUnknown",
                      "waitHours",
                      "payableFrom",
                      "lookalikeOf",
                      "looksLikeEarlier",
                      "entry"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "holds": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "rule": {
                      "type": "string"
                    },
                    "subject": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "invoice",
                                "milestone"
                              ]
                            },
                            "id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "entry": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "at",
                    "rule",
                    "subject",
                    "entry"
                  ]
                }
              },
              "firstPayment": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "at": {
                        "type": "string"
                      },
                      "amount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "currency": {
                        "type": "string"
                      },
                      "txRef": {
                        "type": "string"
                      },
                      "txUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "decidedBy": {
                        "type": "string",
                        "enum": [
                          "person",
                          "agent"
                        ]
                      },
                      "subject": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "invoice",
                                  "milestone"
                                ]
                              },
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "entry": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "at",
                      "amount",
                      "currency",
                      "txRef",
                      "txUrl",
                      "decidedBy",
                      "subject",
                      "entry"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checks": {
                "type": "object",
                "properties": {
                  "recordKept": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "contactOnFileBefore": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "secondPerson": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "paidAfterConfirmation": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "paidAfterWait": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  }
                },
                "required": [
                  "recordKept",
                  "contactOnFileBefore",
                  "secondPerson",
                  "paidAfterConfirmation",
                  "paidAfterWait"
                ]
              }
            },
            "required": [
              "counterparty",
              "change",
              "confirmation",
              "holds",
              "firstPayment",
              "checks"
            ]
          }
        },
        "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",
        "period",
        "lock",
        "summary",
        "changes",
        "signedEntryProves",
        "checkAnEntry",
        "keys",
        "entries"
      ],
      "description": "Every payout address change in a period, `vestiarion-payee-lock-evidence/1`, each fact citing the signed entries it rests on."
    }
  },
  "required": [
    "data"
  ]
}