Skip to main content
Glama

Tokenbooks - crypto and fiat accounting and payments

Edit Accounting Rules

edit_accounting_rules
Destructive

Create, update, enable/disable, reorder, or delete saved accounting rules -- the rule's whole authoring lifecycle. Pass preview: true on any of those to see the impact without saving; use operation: current to preview the saved ruleset as it stands. Results report when a scan is truncated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoHuman-readable rule name, shown in the rules list. Only for operation create, update; required for operation create.
actionNoOnly for operation create, update; required for operation create.
enabledNoWhether the rule evaluates. A disabled rule is kept but never fires. Only for operation create, set_enabled; required for operation set_enabled.
previewNoWhen true, evaluate the change and return its impact without saving it. Not for operation current.
ruleRefNoSaved rule handle, from list_accounting_rules. Only for operation update, set_enabled, delete; required for each.
operationYescreate: Create a new rule, or preview creating one (preview: true). update: Change the name, conditions, or actions of an existing rule, or preview the change (preview: true). Provide at least one of name, conditions, action. set_enabled: Turn an existing rule on or off without changing it, or preview the change (preview: true). reorder: Set the evaluation order of every rule in the portfolio, or preview it (preview: true). delete: Remove one saved rule from active use, or preview removing it (preview: true). current: Preview the saved rules as they stand, changing nothing.
conditionsNoOnly for operation create, update; required for operation create.
maxAffectedNoPreview only: how many affected transactions to sample, at most 25. affectedCount in the result equals this sample size; check candidateCount for the true total match count.
portfolioRefYesPortfolio name or slug inside that workspace. Call list_portfolios to resolve it.
workspaceRefYesWorkspace name or slug. Call list_workspaces to resolve it.
orderedRuleRefsNoEvery rule handle in the portfolio, in the order they should evaluate. Rules apply in order, so earlier rules win. Only for operation reorder; required for each.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
jobIdNo
detailNo
resultNo
statusNo
changesNo
truncatedByNo
scannedCountNo
affectedCountNo
candidateCountNo
lastAffectedAtNo
firstAffectedAtNo
skippedRuleEvidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "jobId": {
      -        "type": "string"
      -      },
      -      "mode": {
      -        "enum": [
      -          "sync",
      -          "async"
      -        ],
      -        "type": "string"
      -      },
      -      "result": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "data": {},
      -              "success": {
      -                "const": true,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "error": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "body": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "currentUsage": {
      -                            "type": "number"
      -                          },
      -                          "limit": {
      -                            "type": "number"
      -                          },
      -                          "usageType": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "usageType",
      -                          "currentUsage",
      -                          "limit"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {}
      -                    ]
      -                  },
      -                  "message": {
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "message",
      -                  "body"
      -                ],
      -                "type": "object"
      -              },
      -              "success": {
      -                "const": false,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success",
      -              "error"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "const": "queued",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "affectedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "candidateCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "changes": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "lines": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "account": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "maximum": 9007199254740991,
      -                                "minimum": 1,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "from",
      -                      "to"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "counterparty": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "maximum": 9007199254740991,
      -                                "minimum": 1,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "lineNumber": {
      -                    "maximum": 9007199254740991,
      -                    "minimum": 1,
      -                    "type": "integer"
      -                  },
      -                  "matchedButLost": {
      -                    "items": {
      -                      "oneOf": [
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "saved",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "ruleId": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "version": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": 1,
      -                              "type": "integer"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "ruleId",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "label": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "version": {
      -                              "const": 1,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "label",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      ]
      -                    },
      -                    "type": "array"
      -                  },
      -                  "responsibilityCenters": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "byRule": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "saved",
      -                                  "type": "string"
      -                                },
      -                                "ruleId": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "maximum": 9007199254740991,
      -                                  "minimum": 1,
      -                                  "type": "integer"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "ruleId",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "label": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "const": 1,
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "label",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "from": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": 1,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "lockedBy": {
      -                          "enum": [
      -                            "MANUAL",
      -                            "MANUAL_CLEARED",
      -                            "PAYMENT_LINK",
      -                            "SYSTEM_RULE"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "responsibilityCenterTypeKey": {
      -                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                          "type": "string"
      -                        },
      -                        "to": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": 1,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      },
      -                      "required": [
      -                        "responsibilityCenterTypeKey"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "lineNumber",
      -                  "responsibilityCenters",
      -                  "matchedButLost"
      -                ],
      -                "type": "object"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            },
      -            "portfolioTransactionId": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "timestamp": {
      -              "format": "date-time",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "portfolioTransactionId",
      -            "timestamp",
      -            "lines"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "detail": {
      -        "const": "compact",
      -        "type": "string"
      -      },
      -      "firstAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "lastAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "scannedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "truncatedBy": {
      -        "enum": [
      -          "affected",
      -          "budget",
      -          "details",
      -          "scanned"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "detail",
      -      "scannedCount",
      -      "candidateCount",
      -      "affectedCount",
      -      "changes"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "jobId": {
      +        "$ref": "#/properties/jobId"
      +      },
      +      "mode": {
      +        "$ref": "#/properties/mode"
      +      },
      +      "result": {
      +        "$ref": "#/properties/result"
      +      },
      +      "status": {
      +        "$ref": "#/properties/status"
      +      }
      +    },
      +    "required": [
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "affectedCount": {
      +        "$ref": "#/properties/affectedCount"
      +      },
      +      "candidateCount": {
      +        "$ref": "#/properties/candidateCount"
      +      },
      +      "changes": {
      +        "$ref": "#/properties/changes"
      +      },
      +      "detail": {
      +        "const": "compact",
      +        "type": "string"
      +      },
      +      "firstAffectedAt": {
      +        "$ref": "#/properties/firstAffectedAt"
      +      },
      +      "lastAffectedAt": {
      +        "$ref": "#/properties/lastAffectedAt"
      +      },
      +      "scannedCount": {
      +        "$ref": "#/properties/scannedCount"
      +      },
      +      "skippedRuleEvidence": {
      +        "$ref": "#/properties/skippedRuleEvidence"
      +      },
      +      "truncatedBy": {
      +        "$ref": "#/properties/truncatedBy"
      +      }
      +    },
      +    "required": [
      +      "detail",
      +      "scannedCount",
      +      "candidateCount",
      +      "affectedCount",
      +      "changes"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / affectedCount / maximum
      Previous value: -9007199254740991New value: +100
    • addedOutput schema / properties / changes / items / properties / lines / items / properties / assignmentChanged
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / changes / items / properties / ruleEvaluationFailures
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "rejection": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "enum": [
      +              "ACCOUNT_FACTS_INCOMPLETE",
      +              "ASSET_EVIDENCE_INCOMPLETE",
      +              "CURRENCY_MISMATCH",
      +              "WALLET_SCOPE_CONFLICT",
      +              "WALLET_PROVENANCE_AMBIGUOUS",
      +              "ASSET_EVIDENCE_CONFLICT",
      +              "ASSET_EVIDENCE_MISSING",
      +              "LOT_EVIDENCE_INCONSISTENT",
      +              "INVALID_REPORT_CLASSIFICATION",
      +              "CAPITAL_GAINS_LOT_EVIDENCE_REQUIRED",
      +              "CAPITAL_LOSS_DISPOSAL_LOT_EVIDENCE_REQUIRED",
      +              "COUNTERPARTY_NOT_SUPPORTED"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "rule": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "saved",
      +                "type": "string"
      +              },
      +              "ruleRef": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "version": {
      +                "maximum": 9007199254740991,
      +                "minimum": 1,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "ruleRef",
      +              "version"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "draft",
      +                "type": "string"
      +              },
      +              "label": {
      +                "const": "draft",
      +                "type": "string"
      +              },
      +              "version": {
      +                "const": 1,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "label",
      +              "version"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "rule"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / skippedRuleEvidence
      Added value: +{
      +  "items": {
      +    "$ref": "#/properties/changes/items"
      +  },
      +  "maxItems": 2000,
      +  "type": "array"
      +}
  2. Changed9 schema fields changed
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "description": "Create a new rule, or preview creating one (preview: true).",
      -        "enum": [
      -          "create"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "preview": {
      -        "$ref": "#/properties/preview"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "name",
      -      "conditions",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "anyOf": [
      -      {
      -        "properties": {
      -          "name": {
      -            "$ref": "#/properties/name"
      -          }
      -        },
      -        "required": [
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "conditions": {
      -            "$ref": "#/properties/conditions"
      -          }
      -        },
      -        "required": [
      -          "conditions"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "action": {
      -            "$ref": "#/properties/action"
      -          }
      -        },
      -        "required": [
      -          "action"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "description": "Change the name, conditions, or actions of an existing rule, or preview the change (preview: true).",
      -        "enum": [
      -          "update"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "preview": {
      -        "$ref": "#/properties/preview"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "operation": {
      -        "description": "Turn an existing rule on or off without changing it, or preview the change (preview: true).",
      -        "enum": [
      -          "set_enabled"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "preview": {
      -        "$ref": "#/properties/preview"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef",
      -      "enabled"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "operation": {
      -        "description": "Set the evaluation order of every rule in the portfolio, or preview it (preview: true).",
      -        "enum": [
      -          "reorder"
      -        ],
      -        "type": "string"
      -      },
      -      "orderedRuleRefs": {
      -        "$ref": "#/properties/orderedRuleRefs"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "preview": {
      -        "$ref": "#/properties/preview"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "orderedRuleRefs"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "operation": {
      -        "description": "Remove one saved rule from active use, or preview removing it (preview: true).",
      -        "enum": [
      -          "delete"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "preview": {
      -        "$ref": "#/properties/preview"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "maxAffected": {
      -        "$ref": "#/properties/maxAffected"
      -      },
      -      "operation": {
      -        "description": "Preview the saved rules as they stand, changing nothing.",
      -        "enum": [
      -          "current"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / action / description
      Added value: +"Only for operation create, update; required for operation create."
    • addedInput schema / properties / conditions / description
      Added value: +"Only for operation create, update; required for operation create."
    • changedInput schema / properties / enabled / description
      Previous value: -"Whether the rule evaluates. A disabled rule is kept but never fires."New value: +"Whether the rule evaluates. A disabled rule is kept but never fires. Only for operation create, set_enabled; required for operation set_enabled."
    • changedInput schema / properties / name / description
      Previous value: -"Human-readable rule name, shown in the rules list."New value: +"Human-readable rule name, shown in the rules list. Only for operation create, update; required for operation create."
    • changedInput schema / properties / operation / description
      Previous value: -"Create a new rule, or preview creating one (preview: true)."New value: +"create: Create a new rule, or preview creating one (preview: true). update: Change the name, conditions, or actions of an existing rule, or preview the change (preview: true). Provide at least one of name, conditions, action. set_enabled: Turn an existing rule on or off without changing it, or preview the change (preview: true). reorder: Set the evaluation order of every rule in the portfolio, or preview it (preview: true). delete: Remove one saved rule from active use, or preview removing it (preview: true). current: Preview the saved rules as they stand, changing nothing."
    • changedInput schema / properties / orderedRuleRefs / description
      Previous value: -"Every rule handle in the portfolio, in the order they should evaluate. Rules apply in order, so earlier rules win."New value: +"Every rule handle in the portfolio, in the order they should evaluate. Rules apply in order, so earlier rules win. Only for operation reorder; required for each."
    • changedInput schema / properties / preview / description
      Previous value: -"When true, evaluate the change and return its impact without saving it."New value: +"When true, evaluate the change and return its impact without saving it. Not for operation current."
    • changedInput schema / properties / ruleRef / description
      Previous value: -"Saved rule handle, from list_accounting_rules."New value: +"Saved rule handle, from list_accounting_rules. Only for operation update, set_enabled, delete; required for each."
  3. Changed11 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "jobId": {
      -        "type": "string"
      -      },
      -      "mode": {
      -        "enum": [
      -          "sync",
      -          "async"
      -        ],
      -        "type": "string"
      -      },
      -      "result": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "data": {},
      -              "success": {
      -                "const": true,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "error": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "body": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "currentUsage": {
      -                            "type": "number"
      -                          },
      -                          "limit": {
      -                            "type": "number"
      -                          },
      -                          "usageType": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "usageType",
      -                          "currentUsage",
      -                          "limit"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {}
      -                    ]
      -                  },
      -                  "message": {
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "message",
      -                  "body"
      -                ],
      -                "type": "object"
      -              },
      -              "success": {
      -                "const": false,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success",
      -              "error"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "const": "queued",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "affectedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "candidateCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "changes": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "lines": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "account": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "exclusiveMinimum": 0,
      -                                "maximum": 9007199254740991,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "from",
      -                      "to"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "counterparty": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "exclusiveMinimum": 0,
      -                                "maximum": 9007199254740991,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "lineNumber": {
      -                    "exclusiveMinimum": 0,
      -                    "maximum": 9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "matchedButLost": {
      -                    "items": {
      -                      "oneOf": [
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "saved",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "ruleId": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "version": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "ruleId",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "label": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "version": {
      -                              "const": 1,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "label",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      ]
      -                    },
      -                    "type": "array"
      -                  },
      -                  "responsibilityCenters": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "byRule": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "saved",
      -                                  "type": "string"
      -                                },
      -                                "ruleId": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "ruleId",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "label": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "const": 1,
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "label",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "from": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "lockedBy": {
      -                          "enum": [
      -                            "MANUAL",
      -                            "MANUAL_CLEARED",
      -                            "PAYMENT_LINK",
      -                            "SYSTEM_RULE"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "responsibilityCenterTypeKey": {
      -                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                          "type": "string"
      -                        },
      -                        "to": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      },
      -                      "required": [
      -                        "responsibilityCenterTypeKey"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "lineNumber",
      -                  "responsibilityCenters",
      -                  "matchedButLost"
      -                ],
      -                "type": "object"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            },
      -            "portfolioTransactionId": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "timestamp": {
      -              "format": "date-time",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "portfolioTransactionId",
      -            "timestamp",
      -            "lines"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "detail": {
      -        "const": "compact",
      -        "type": "string"
      -      },
      -      "firstAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "lastAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "scannedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "truncatedBy": {
      -        "enum": [
      -          "affected",
      -          "budget",
      -          "details",
      -          "scanned"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "detail",
      -      "scannedCount",
      -      "candidateCount",
      -      "affectedCount",
      -      "changes"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "jobId": {
      +        "type": "string"
      +      },
      +      "mode": {
      +        "enum": [
      +          "sync",
      +          "async"
      +        ],
      +        "type": "string"
      +      },
      +      "result": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "data": {},
      +              "success": {
      +                "const": true,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "success"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "error": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "body": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "currentUsage": {
      +                            "type": "number"
      +                          },
      +                          "limit": {
      +                            "type": "number"
      +                          },
      +                          "usageType": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "usageType",
      +                          "currentUsage",
      +                          "limit"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {}
      +                    ]
      +                  },
      +                  "message": {
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "message",
      +                  "body"
      +                ],
      +                "type": "object"
      +              },
      +              "success": {
      +                "const": false,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "success",
      +              "error"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "status": {
      +        "const": "queued",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "affectedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "candidateCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "changes": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "lines": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "account": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "byRule": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "ruleId": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "maximum": 9007199254740991,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleId",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "from": {
      +                        "maxLength": 8,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "lockedBy": {
      +                        "enum": [
      +                          "MANUAL",
      +                          "MANUAL_CLEARED",
      +                          "PAYMENT_LINK",
      +                          "SYSTEM_RULE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "to": {
      +                        "maxLength": 8,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "from",
      +                      "to"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "counterparty": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "byRule": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "ruleId": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "maximum": 9007199254740991,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleId",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "from": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "lockedBy": {
      +                        "enum": [
      +                          "MANUAL",
      +                          "MANUAL_CLEARED",
      +                          "PAYMENT_LINK",
      +                          "SYSTEM_RULE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "to": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "lineNumber": {
      +                    "maximum": 9007199254740991,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  },
      +                  "matchedButLost": {
      +                    "items": {
      +                      "oneOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "saved",
      +                              "type": "string"
      +                            },
      +                            "output": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "enum": [
      +                                        "account",
      +                                        "counterparty"
      +                                      ],
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "responsibilityCenter",
      +                                      "type": "string"
      +                                    },
      +                                    "responsibilityCenterTypeKey": {
      +                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "responsibilityCenterTypeKey"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "ruleId": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "maximum": 9007199254740991,
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "ruleId",
      +                            "version",
      +                            "output"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "label": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "output": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "enum": [
      +                                        "account",
      +                                        "counterparty"
      +                                      ],
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "responsibilityCenter",
      +                                      "type": "string"
      +                                    },
      +                                    "responsibilityCenterTypeKey": {
      +                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "responsibilityCenterTypeKey"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "version": {
      +                              "const": 1,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "label",
      +                            "version",
      +                            "output"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      ]
      +                    },
      +                    "type": "array"
      +                  },
      +                  "responsibilityCenters": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "byRule": {
      +                          "oneOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "saved",
      +                                  "type": "string"
      +                                },
      +                                "ruleId": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "maximum": 9007199254740991,
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "ruleId",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "label": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "label",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "from": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "percentageBps": {
      +                              "maximum": 9007199254740991,
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            },
      +                            "responsibilityCenterName": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "responsibilityCenterName",
      +                            "percentageBps"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "lockedBy": {
      +                          "enum": [
      +                            "MANUAL",
      +                            "MANUAL_CLEARED",
      +                            "PAYMENT_LINK",
      +                            "SYSTEM_RULE"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "responsibilityCenterTypeKey": {
      +                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                          "type": "string"
      +                        },
      +                        "to": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "percentageBps": {
      +                              "maximum": 9007199254740991,
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            },
      +                            "responsibilityCenterName": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "responsibilityCenterName",
      +                            "percentageBps"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "responsibilityCenterTypeKey"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "lineNumber",
      +                  "responsibilityCenters",
      +                  "matchedButLost"
      +                ],
      +                "type": "object"
      +              },
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "portfolioTransactionId": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "timestamp": {
      +              "format": "date-time",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "portfolioTransactionId",
      +            "timestamp",
      +            "lines"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "detail": {
      +        "const": "compact",
      +        "type": "string"
      +      },
      +      "firstAffectedAt": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "lastAffectedAt": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "scannedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "truncatedBy": {
      +        "enum": [
      +          "affected",
      +          "budget",
      +          "details",
      +          "scanned"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "detail",
      +      "scannedCount",
      +      "candidateCount",
      +      "affectedCount",
      +      "changes"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / changes / items / properties / lines / items / properties / account / properties / byRule / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "saved",
      -        "type": "string"
      -      },
      -      "ruleRef": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ruleRef",
      -      "version"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "label": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "version": {
      -        "const": 1,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label",
      -      "version"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "saved",
      +        "type": "string"
      +      },
      +      "ruleRef": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "version": {
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ruleRef",
      +      "version"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "label": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "version": {
      +        "const": 1,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label",
      +      "version"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / changes / items / properties / lines / items / properties / counterparty / properties / byRule / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "saved",
      -        "type": "string"
      -      },
      -      "ruleRef": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ruleRef",
      -      "version"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "label": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "version": {
      -        "const": 1,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label",
      -      "version"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "saved",
      +        "type": "string"
      +      },
      +      "ruleRef": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "version": {
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ruleRef",
      +      "version"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "label": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "version": {
      +        "const": 1,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label",
      +      "version"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / changes / items / properties / lines / items / properties / lineNumber / exclusiveMinimum
      Removed value: -0
    • addedOutput schema / properties / changes / items / properties / lines / items / properties / lineNumber / minimum
      Added value: +1
    • changedOutput schema / properties / changes / items / properties / lines / items / properties / matchedButLost / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "saved",
      -        "type": "string"
      -      },
      -      "output": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "enum": [
      -                  "account",
      -                  "counterparty"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "responsibilityCenter",
      -                "type": "string"
      -              },
      -              "responsibilityCenterTypeKey": {
      -                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "responsibilityCenterTypeKey"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "ruleRef": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ruleRef",
      -      "version",
      -      "output"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "label": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "output": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "enum": [
      -                  "account",
      -                  "counterparty"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "responsibilityCenter",
      -                "type": "string"
      -              },
      -              "responsibilityCenterTypeKey": {
      -                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "responsibilityCenterTypeKey"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "version": {
      -        "const": 1,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label",
      -      "version",
      -      "output"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "saved",
      +        "type": "string"
      +      },
      +      "output": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "enum": [
      +                  "account",
      +                  "counterparty"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "responsibilityCenter",
      +                "type": "string"
      +              },
      +              "responsibilityCenterTypeKey": {
      +                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "responsibilityCenterTypeKey"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "ruleRef": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "version": {
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ruleRef",
      +      "version",
      +      "output"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "label": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "output": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "enum": [
      +                  "account",
      +                  "counterparty"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "responsibilityCenter",
      +                "type": "string"
      +              },
      +              "responsibilityCenterTypeKey": {
      +                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "responsibilityCenterTypeKey"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "version": {
      +        "const": 1,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label",
      +      "version",
      +      "output"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / changes / items / properties / lines / items / properties / responsibilityCenters / items / properties / byRule / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "saved",
      -        "type": "string"
      -      },
      -      "ruleRef": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ruleRef",
      -      "version"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "label": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "version": {
      -        "const": 1,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label",
      -      "version"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "saved",
      +        "type": "string"
      +      },
      +      "ruleRef": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "version": {
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ruleRef",
      +      "version"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "label": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "version": {
      +        "const": 1,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label",
      +      "version"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / changes / items / properties / lines / items / properties / responsibilityCenters / items / properties / from / properties / percentageBps / exclusiveMinimum
      Removed value: -0
    • addedOutput schema / properties / changes / items / properties / lines / items / properties / responsibilityCenters / items / properties / from / properties / percentageBps / minimum
      Added value: +1
    • removedOutput schema / properties / changes / items / properties / lines / items / properties / responsibilityCenters / items / properties / to / properties / percentageBps / exclusiveMinimum
      Removed value: -0
    • addedOutput schema / properties / changes / items / properties / lines / items / properties / responsibilityCenters / items / properties / to / properties / percentageBps / minimum
      Added value: +1
  4. Changed4 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "jobId": {
      -        "type": "string"
      -      },
      -      "mode": {
      -        "enum": [
      -          "sync",
      -          "async"
      -        ],
      -        "type": "string"
      -      },
      -      "result": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "data": {},
      -              "success": {
      -                "const": true,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "error": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "body": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "currentUsage": {
      -                            "type": "number"
      -                          },
      -                          "limit": {
      -                            "type": "number"
      -                          },
      -                          "usageType": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "usageType",
      -                          "currentUsage",
      -                          "limit"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {}
      -                    ]
      -                  },
      -                  "message": {
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "message",
      -                  "body"
      -                ],
      -                "type": "object"
      -              },
      -              "success": {
      -                "const": false,
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "success",
      -              "error"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "const": "queued",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "affectedCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "candidateCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "changes": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "lines": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "account": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "byRule": {
      -                            "oneOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "saved",
      -                                    "type": "string"
      -                                  },
      -                                  "ruleId": {
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "exclusiveMinimum": 0,
      -                                    "maximum": 9007199254740991,
      -                                    "type": "integer"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "ruleId",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "label": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "label",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "from": {
      -                            "maxLength": 8,
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "lockedBy": {
      -                            "enum": [
      -                              "MANUAL",
      -                              "MANUAL_CLEARED",
      -                              "PAYMENT_LINK",
      -                              "SYSTEM_RULE"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "to": {
      -                            "maxLength": 8,
      -                            "minLength": 1,
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "from",
      -                          "to"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "counterparty": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "byRule": {
      -                            "oneOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "saved",
      -                                    "type": "string"
      -                                  },
      -                                  "ruleId": {
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "exclusiveMinimum": 0,
      -                                    "maximum": 9007199254740991,
      -                                    "type": "integer"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "ruleId",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "label": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "label",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "from": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "lockedBy": {
      -                            "enum": [
      -                              "MANUAL",
      -                              "MANUAL_CLEARED",
      -                              "PAYMENT_LINK",
      -                              "SYSTEM_RULE"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "to": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          }
      -                        },
      -                        "type": "object"
      -                      },
      -                      "lineNumber": {
      -                        "exclusiveMinimum": 0,
      -                        "maximum": 9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      "matchedButLost": {
      -                        "items": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "saved",
      -                                  "type": "string"
      -                                },
      -                                "output": {
      -                                  "oneOf": [
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "enum": [
      -                                            "account",
      -                                            "counterparty"
      -                                          ],
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "const": "responsibilityCenter",
      -                                          "type": "string"
      -                                        },
      -                                        "responsibilityCenterTypeKey": {
      -                                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind",
      -                                        "responsibilityCenterTypeKey"
      -                                      ],
      -                                      "type": "object"
      -                                    }
      -                                  ]
      -                                },
      -                                "ruleId": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "ruleId",
      -                                "version",
      -                                "output"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "label": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "output": {
      -                                  "oneOf": [
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "enum": [
      -                                            "account",
      -                                            "counterparty"
      -                                          ],
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "const": "responsibilityCenter",
      -                                          "type": "string"
      -                                        },
      -                                        "responsibilityCenterTypeKey": {
      -                                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind",
      -                                        "responsibilityCenterTypeKey"
      -                                      ],
      -                                      "type": "object"
      -                                    }
      -                                  ]
      -                                },
      -                                "version": {
      -                                  "const": 1,
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "label",
      -                                "version",
      -                                "output"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "type": "array"
      -                      },
      -                      "responsibilityCenters": {
      -                        "items": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "byRule": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "saved",
      -                                      "type": "string"
      -                                    },
      -                                    "ruleId": {
      -                                      "minLength": 1,
      -                                      "type": "string"
      -                                    },
      -                                    "version": {
      -                                      "exclusiveMinimum": 0,
      -                                      "maximum": 9007199254740991,
      -                                      "type": "integer"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "ruleId",
      -                                    "version"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "draft",
      -                                      "type": "string"
      -                                    },
      -                                    "label": {
      -                                      "const": "draft",
      -                                      "type": "string"
      -                                    },
      -                                    "version": {
      -                                      "const": 1,
      -                                      "type": "number"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "label",
      -                                    "version"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "from": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "percentageBps": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                },
      -                                "responsibilityCenterName": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "responsibilityCenterName",
      -                                "percentageBps"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            "lockedBy": {
      -                              "enum": [
      -                                "MANUAL",
      -                                "MANUAL_CLEARED",
      -                                "PAYMENT_LINK",
      -                                "SYSTEM_RULE"
      -                              ],
      -                              "type": "string"
      -                            },
      -                            "responsibilityCenterTypeKey": {
      -                              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                              "type": "string"
      -                            },
      -                            "to": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "percentageBps": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                },
      -                                "responsibilityCenterName": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "responsibilityCenterName",
      -                                "percentageBps"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterTypeKey"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "type": "array"
      -                      }
      -                    },
      -                    "required": [
      -                      "lineNumber",
      -                      "responsibilityCenters",
      -                      "matchedButLost"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "minItems": 1,
      -                  "type": "array"
      -                },
      -                "portfolioTransactionId": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "timestamp": {
      -                  "format": "date-time",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "portfolioTransactionId",
      -                "timestamp",
      -                "lines"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "detail": {
      -            "const": "compact",
      -            "type": "string"
      -          },
      -          "firstAffectedAt": {
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "lastAffectedAt": {
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "scannedCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "truncatedBy": {
      -            "enum": [
      -              "affected",
      -              "budget",
      -              "details",
      -              "scanned"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "detail",
      -          "scannedCount",
      -          "candidateCount",
      -          "affectedCount",
      -          "changes"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "affectedCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "candidateCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "changes": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "lines": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "account": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "byRule": {
      -                            "oneOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "saved",
      -                                    "type": "string"
      -                                  },
      -                                  "ruleId": {
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "exclusiveMinimum": 0,
      -                                    "maximum": 9007199254740991,
      -                                    "type": "integer"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "ruleId",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "label": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "label",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "from": {
      -                            "maxLength": 8,
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "lockedBy": {
      -                            "enum": [
      -                              "MANUAL",
      -                              "MANUAL_CLEARED",
      -                              "PAYMENT_LINK",
      -                              "SYSTEM_RULE"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "to": {
      -                            "maxLength": 8,
      -                            "minLength": 1,
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "from",
      -                          "to"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "counterparty": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "byRule": {
      -                            "oneOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "saved",
      -                                    "type": "string"
      -                                  },
      -                                  "ruleId": {
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "exclusiveMinimum": 0,
      -                                    "maximum": 9007199254740991,
      -                                    "type": "integer"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "ruleId",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "kind": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "label": {
      -                                    "const": "draft",
      -                                    "type": "string"
      -                                  },
      -                                  "version": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "kind",
      -                                  "label",
      -                                  "version"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "from": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "lockedBy": {
      -                            "enum": [
      -                              "MANUAL",
      -                              "MANUAL_CLEARED",
      -                              "PAYMENT_LINK",
      -                              "SYSTEM_RULE"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "to": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          }
      -                        },
      -                        "type": "object"
      -                      },
      -                      "lineNumber": {
      -                        "exclusiveMinimum": 0,
      -                        "maximum": 9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      "matchedButLost": {
      -                        "items": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "saved",
      -                                  "type": "string"
      -                                },
      -                                "output": {
      -                                  "oneOf": [
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "enum": [
      -                                            "account",
      -                                            "counterparty"
      -                                          ],
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "const": "responsibilityCenter",
      -                                          "type": "string"
      -                                        },
      -                                        "responsibilityCenterTypeKey": {
      -                                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind",
      -                                        "responsibilityCenterTypeKey"
      -                                      ],
      -                                      "type": "object"
      -                                    }
      -                                  ]
      -                                },
      -                                "ruleId": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "ruleId",
      -                                "version",
      -                                "output"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "label": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "output": {
      -                                  "oneOf": [
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "enum": [
      -                                            "account",
      -                                            "counterparty"
      -                                          ],
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "kind": {
      -                                          "const": "responsibilityCenter",
      -                                          "type": "string"
      -                                        },
      -                                        "responsibilityCenterTypeKey": {
      -                                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "kind",
      -                                        "responsibilityCenterTypeKey"
      -                                      ],
      -                                      "type": "object"
      -                                    }
      -                                  ]
      -                                },
      -                                "version": {
      -                                  "const": 1,
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "label",
      -                                "version",
      -                                "output"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "type": "array"
      -                      },
      -                      "responsibilityCenters": {
      -                        "items": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "byRule": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "saved",
      -                                      "type": "string"
      -                                    },
      -                                    "ruleId": {
      -                                      "minLength": 1,
      -                                      "type": "string"
      -                                    },
      -                                    "version": {
      -                                      "exclusiveMinimum": 0,
      -                                      "maximum": 9007199254740991,
      -                                      "type": "integer"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "ruleId",
      -                                    "version"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "draft",
      -                                      "type": "string"
      -                                    },
      -                                    "label": {
      -                                      "const": "draft",
      -                                      "type": "string"
      -                                    },
      -                                    "version": {
      -                                      "const": 1,
      -                                      "type": "number"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "label",
      -                                    "version"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "from": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "percentageBps": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                },
      -                                "responsibilityCenterName": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "responsibilityCenterName",
      -                                "percentageBps"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            "lockedBy": {
      -                              "enum": [
      -                                "MANUAL",
      -                                "MANUAL_CLEARED",
      -                                "PAYMENT_LINK",
      -                                "SYSTEM_RULE"
      -                              ],
      -                              "type": "string"
      -                            },
      -                            "responsibilityCenterTypeKey": {
      -                              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                              "type": "string"
      -                            },
      -                            "to": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "percentageBps": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                },
      -                                "responsibilityCenterName": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "responsibilityCenterName",
      -                                "percentageBps"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterTypeKey"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "type": "array"
      -                      }
      -                    },
      -                    "required": [
      -                      "lineNumber",
      -                      "responsibilityCenters",
      -                      "matchedButLost"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "minItems": 1,
      -                  "type": "array"
      -                },
      -                "portfolioTransactionId": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "timestamp": {
      -                  "format": "date-time",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "portfolioTransactionId",
      -                "timestamp",
      -                "lines"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "detail": {
      -            "const": "transactions",
      -            "type": "string"
      -          },
      -          "firstAffectedAt": {
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "lastAffectedAt": {
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "scannedCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "transactionViews": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "classification": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "detail": {
      -                      "type": "string"
      -                    },
      -                    "reason": {
      -                      "type": "string"
      -                    },
      -                    "state": {
      -                      "enum": [
      -                        "categorized",
      -                        "uncategorized",
      -                        "error"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "suggestedAction": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "description": {
      -                          "type": "string"
      -                        },
      -                        "tool": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "description"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  },
      -                  "required": [
      -                    "state"
      -                  ],
      -                  "type": "object"
      -                },
      -                "errorDetails": {
      -                  "items": {},
      -                  "type": "array"
      -                },
      -                "errorMessage": {
      -                  "type": "string"
      -                },
      -                "fileAttachments": {
      -                  "items": {},
      -                  "type": "array"
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "intercompanyPair": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "counterpartOperationType": {
      -                      "type": "string"
      -                    },
      -                    "counterpartPortfolioName": {
      -                      "type": "string"
      -                    },
      -                    "counterpartPortfolioSlug": {
      -                      "minLength": 1,
      -                      "pattern": "^[a-z0-9-]+$",
      -                      "type": "string"
      -                    },
      -                    "counterpartPortfolioTransactionId": {
      -                      "type": "string"
      -                    },
      -                    "counterpartStatus": {
      -                      "enum": [
      -                        "PROPOSED",
      -                        "ERROR",
      -                        "POSTED",
      -                        "CLOSED"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "counterpartSubType": {
      -                      "type": "string"
      -                    },
      -                    "lotLinkCount": {
      -                      "maximum": 9007199254740991,
      -                      "minimum": 0,
      -                      "type": "integer"
      -                    },
      -                    "pairId": {
      -                      "type": "string"
      -                    },
      -                    "side": {
      -                      "enum": [
      -                        "SEND",
      -                        "RECEIVE"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "treatment": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "pairId",
      -                    "side",
      -                    "counterpartPortfolioName",
      -                    "counterpartPortfolioSlug",
      -                    "counterpartPortfolioTransactionId",
      -                    "counterpartOperationType",
      -                    "counterpartStatus",
      -                    "lotLinkCount"
      -                  ],
      -                  "type": "object"
      -                },
      -                "journalEntry": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "adjustmentJournalImportProvenance": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "importRef": {
      -                          "maxLength": 128,
      -                          "minLength": 1,
      -                          "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      -                          "type": "string"
      -                        },
      -                        "sourceFile": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "name": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "uploadedAt": {
      -                              "format": "date-time",
      -                              "type": "string"
      -                            },
      -                            "uploader": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "name": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "name"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          },
      -                          "required": [
      -                            "name",
      -                            "uploadedAt",
      -                            "uploader"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "sourceRows": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "appliedResolutions": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "schemaVersion": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  },
      -                                  "values": {
      -                                    "additionalProperties": {
      -                                      "minLength": 1,
      -                                      "type": "string"
      -                                    },
      -                                    "propertyNames": {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "accountNumber",
      -                                            "counterpartyExternalId",
      -                                            "counterpartyName"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    "type": "object"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "schemaVersion",
      -                                  "values"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "entryId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "journalLineNumber": {
      -                                "exclusiveMinimum": 0,
      -                                "maximum": 9007199254740991,
      -                                "type": "integer"
      -                              },
      -                              "locator": {
      -                                "oneOf": [
      -                                  {
      -                                    "additionalProperties": false,
      -                                    "properties": {
      -                                      "format": {
      -                                        "const": "csv",
      -                                        "type": "string"
      -                                      },
      -                                      "lineNumber": {
      -                                        "maximum": 9007199254740991,
      -                                        "minimum": 1,
      -                                        "type": "integer"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "format",
      -                                      "lineNumber"
      -                                    ],
      -                                    "type": "object"
      -                                  },
      -                                  {
      -                                    "additionalProperties": false,
      -                                    "properties": {
      -                                      "format": {
      -                                        "const": "xlsx",
      -                                        "type": "string"
      -                                      },
      -                                      "rowNumber": {
      -                                        "maximum": 9007199254740991,
      -                                        "minimum": 1,
      -                                        "type": "integer"
      -                                      },
      -                                      "sheetName": {
      -                                        "minLength": 1,
      -                                        "type": "string"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "format",
      -                                      "rowNumber",
      -                                      "sheetName"
      -                                    ],
      -                                    "type": "object"
      -                                  }
      -                                ]
      -                              },
      -                              "normalizedValues": {
      -                                "anyOf": [
      -                                  {
      -                                    "additionalProperties": false,
      -                                    "properties": {
      -                                      "schemaVersion": {
      -                                        "const": 1,
      -                                        "type": "number"
      -                                      },
      -                                      "values": {
      -                                        "additionalProperties": {
      -                                          "anyOf": [
      -                                            {
      -                                              "type": "string"
      -                                            },
      -                                            {
      -                                              "type": "null"
      -                                            }
      -                                          ]
      -                                        },
      -                                        "propertyNames": {
      -                                          "anyOf": [
      -                                            {
      -                                              "enum": [
      -                                                "accountNumber",
      -                                                "amount",
      -                                                "counterpartyExternalId",
      -                                                "counterpartyName",
      -                                                "direction",
      -                                                "effectiveDate",
      -                                                "entryId",
      -                                                "memo"
      -                                              ],
      -                                              "type": "string"
      -                                            },
      -                                            {
      -                                              "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                              "type": "string"
      -                                            }
      -                                          ]
      -                                        },
      -                                        "type": "object"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "schemaVersion",
      -                                      "values"
      -                                    ],
      -                                    "type": "object"
      -                                  },
      -                                  {
      -                                    "additionalProperties": false,
      -                                    "properties": {
      -                                      "schemaVersion": {
      -                                        "const": 2,
      -                                        "type": "number"
      -                                      },
      -                                      "values": {
      -                                        "additionalProperties": {
      -                                          "anyOf": [
      -                                            {
      -                                              "type": "string"
      -                                            },
      -                                            {
      -                                              "type": "null"
      -                                            }
      -                                          ]
      -                                        },
      -                                        "propertyNames": {
      -                                          "anyOf": [
      -                                            {
      -                                              "enum": [
      -                                                "accountNumber",
      -                                                "amount",
      -                                                "counterpartyExternalId",
      -                                                "counterpartyName",
      -                                                "direction",
      -                                                "effectiveAt",
      -                                                "effectiveDate",
      -                                                "entryId",
      -                                                "memo"
      -                                              ],
      -                                              "type": "string"
      -                                            },
      -                                            {
      -                                              "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                              "type": "string"
      -                                            }
      -                                          ]
      -                                        },
      -                                        "type": "object"
      -                                      }
      -                                    },
      -                                    "required": [
      -                                      "schemaVersion",
      -                                      "values"
      -                                    ],
      -                                    "type": "object"
      -                                  }
      -                                ]
      -                              },
      -                              "sourceRowHash": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              }
      -                            },
      -                            "required": [
      -                              "appliedResolutions",
      -                              "entryId",
      -                              "journalLineNumber",
      -                              "locator",
      -                              "normalizedValues",
      -                              "sourceRowHash"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "minItems": 1,
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "importRef",
      -                        "sourceFile",
      -                        "sourceRows"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "id": {
      -                      "type": "string"
      -                    },
      -                    "isAdjustment": {
      -                      "type": "boolean"
      -                    },
      -                    "lines": {
      -                      "items": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "accountName": {
      -                            "type": "string"
      -                          },
      -                          "accountNormalBalanceType": {
      -                            "type": "string"
      -                          },
      -                          "accountNumber": {
      -                            "type": "string"
      -                          },
      -                          "accountSubType": {
      -                            "type": "string"
      -                          },
      -                          "accountType": {
      -                            "type": "string"
      -                          },
      -                          "assetAmount": {
      -                            "type": "string"
      -                          },
      -                          "assetId": {
      -                            "type": "string"
      -                          },
      -                          "assetSymbol": {
      -                            "type": "string"
      -                          },
      -                          "counterpartyName": {
      -                            "type": "string"
      -                          },
      -                          "entryType": {
      -                            "type": "string"
      -                          },
      -                          "fiatAmount": {
      -                            "type": "string"
      -                          },
      -                          "lineNumber": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "lot": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "entryId": {
      -                                "type": "string"
      -                              },
      -                              "entryKind": {
      -                                "type": "string"
      -                              },
      -                              "id": {
      -                                "type": "string"
      -                              },
      -                              "lotMethod": {
      -                                "type": "string"
      -                              }
      -                            },
      -                            "required": [
      -                              "id",
      -                              "entryId",
      -                              "entryKind",
      -                              "lotMethod"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "memo": {
      -                            "type": "string"
      -                          },
      -                          "responsibilityCenterAssignments": {
      -                            "items": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "percentageBps": {
      -                                  "maximum": 9007199254740991,
      -                                  "minimum": -9007199254740991,
      -                                  "type": "integer"
      -                                },
      -                                "responsibilityCenterCode": {
      -                                  "type": "string"
      -                                },
      -                                "responsibilityCenterId": {
      -                                  "type": "string"
      -                                },
      -                                "responsibilityCenterName": {
      -                                  "type": "string"
      -                                },
      -                                "responsibilityCenterType": {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "key": {
      -                                      "type": "string"
      -                                    },
      -                                    "kind": {
      -                                      "enum": [
      -                                        "COST",
      -                                        "REVENUE",
      -                                        "PROFIT",
      -                                        "INVESTMENT"
      -                                      ],
      -                                      "type": "string"
      -                                    },
      -                                    "name": {
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "key",
      -                                    "name",
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                "responsibilityCenterTypeId": {
      -                                  "type": "string"
      -                                },
      -                                "value": {
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "responsibilityCenterTypeId",
      -                                "responsibilityCenterId",
      -                                "value",
      -                                "responsibilityCenterType",
      -                                "responsibilityCenterName",
      -                                "percentageBps"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            "type": "array"
      -                          },
      -                          "transfer": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "chainId": {
      -                                "type": "string"
      -                              },
      -                              "txHash": {
      -                                "type": "string"
      -                              },
      -                              "txIndex": {
      -                                "maximum": 9007199254740991,
      -                                "minimum": -9007199254740991,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "type": "object"
      -                          }
      -                        },
      -                        "required": [
      -                          "lineNumber",
      -                          "entryType",
      -                          "fiatAmount",
      -                          "responsibilityCenterAssignments"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "type": "array"
      -                    },
      -                    "memo": {
      -                      "type": "string"
      -                    },
      -                    "operationType": {
      -                      "type": "string"
      -                    },
      -                    "portfolioTransactionId": {
      -                      "type": "string"
      -                    },
      -                    "status": {
      -                      "type": "string"
      -                    },
      -                    "subType": {
      -                      "type": "string"
      -                    },
      -                    "systemNotes": {
      -                      "type": "string"
      -                    },
      -                    "timestamp": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "timestamp",
      -                    "status",
      -                    "isAdjustment",
      -                    "lines"
      -                  ],
      -                  "type": "object"
      -                },
      -                "memo": {
      -                  "type": "string"
      -                },
      -                "operationType": {
      -                  "type": "string"
      -                },
      -                "portfolioTransactionContext": {
      -                  "additionalProperties": {},
      -                  "propertyNames": {
      -                    "type": "string"
      -                  },
      -                  "type": "object"
      -                },
      -                "status": {
      -                  "type": "string"
      -                },
      -                "subType": {
      -                  "type": "string"
      -                },
      -                "systemNotes": {
      -                  "type": "string"
      -                },
      -                "tags": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "timestamp": {
      -                  "type": "string"
      -                },
      -                "walletOperations": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "assetId": {
      -                        "type": "string"
      -                      },
      -                      "assetSymbol": {
      -                        "type": "string"
      -                      },
      -                      "chainId": {
      -                        "type": "string"
      -                      },
      -                      "defiOperation": {
      -                        "type": "string"
      -                      },
      -                      "defiPositionId": {
      -                        "type": "string"
      -                      },
      -                      "defiPositionRef": {
      -                        "type": "string"
      -                      },
      -                      "fromAddress": {
      -                        "type": "string"
      -                      },
      -                      "fromAddressLabel": {
      -                        "type": "string"
      -                      },
      -                      "isSpam": {
      -                        "type": "boolean"
      -                      },
      -                      "quoteCurrency": {
      -                        "type": "string"
      -                      },
      -                      "quoteMeta": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "s": {
      -                            "enum": [
      -                              "SYNC_SOURCE",
      -                              "FMV_ENGINE",
      -                              "DERIVED_REPRESENTED",
      -                              "DERIVED_SIBLING",
      -                              "POLICY",
      -                              "MANUAL"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "ts": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 8210266876799,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "s"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "quoteSource": {
      -                        "type": "string"
      -                      },
      -                      "stablecoinPeggedFiatCurrency": {
      -                        "type": "string"
      -                      },
      -                      "toAddress": {
      -                        "type": "string"
      -                      },
      -                      "toAddressLabel": {
      -                        "type": "string"
      -                      },
      -                      "tokenAddress": {
      -                        "type": "string"
      -                      },
      -                      "txHash": {
      -                        "type": "string"
      -                      },
      -                      "txIndex": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": -9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      "type": {
      -                        "type": "string"
      -                      },
      -                      "value": {
      -                        "type": "string"
      -                      },
      -                      "valueQuote": {
      -                        "type": "string"
      -                      },
      -                      "walletAddress": {
      -                        "type": "string"
      -                      },
      -                      "walletName": {
      -                        "type": "string"
      -                      },
      -                      "walletTransactionId": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "type",
      -                      "txHash",
      -                      "chainId",
      -                      "txIndex",
      -                      "walletTransactionId",
      -                      "fromAddress",
      -                      "toAddress",
      -                      "value",
      -                      "tokenAddress",
      -                      "isSpam",
      -                      "walletName",
      -                      "walletAddress"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "walletSource": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "blockHeight": {
      -                      "type": "string"
      -                    },
      -                    "rawTransactionId": {
      -                      "type": "string"
      -                    },
      -                    "rawTransactionSource": {
      -                      "type": "string"
      -                    },
      -                    "timestamp": {
      -                      "type": "string"
      -                    },
      -                    "wallet": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "address": {
      -                          "type": "string"
      -                        },
      -                        "chainId": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "chainId",
      -                        "address"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "walletType": {
      -                      "enum": [
      -                        "BLOCKCHAIN",
      -                        "EXCHANGE",
      -                        "BANK"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "wallet",
      -                    "walletType",
      -                    "rawTransactionId",
      -                    "rawTransactionSource",
      -                    "blockHeight",
      -                    "timestamp"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "operationType",
      -                "classification",
      -                "timestamp",
      -                "status",
      -                "tags",
      -                "fileAttachments",
      -                "walletOperations"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "truncatedBy": {
      -            "enum": [
      -              "affected",
      -              "budget",
      -              "details",
      -              "scanned"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "detail",
      -          "scannedCount",
      -          "candidateCount",
      -          "affectedCount",
      -          "changes",
      -          "transactionViews"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "properties": {
      -      "affectedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "candidateCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "changes": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "lines": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "account": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "exclusiveMinimum": 0,
      -                                "maximum": 9007199254740991,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "maxLength": 8,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "from",
      -                      "to"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "counterparty": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "byRule": {
      -                        "oneOf": [
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "saved",
      -                                "type": "string"
      -                              },
      -                              "ruleId": {
      -                                "minLength": 1,
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "exclusiveMinimum": 0,
      -                                "maximum": 9007199254740991,
      -                                "type": "integer"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "ruleId",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "kind": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "label": {
      -                                "const": "draft",
      -                                "type": "string"
      -                              },
      -                              "version": {
      -                                "const": 1,
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "kind",
      -                              "label",
      -                              "version"
      -                            ],
      -                            "type": "object"
      -                          }
      -                        ]
      -                      },
      -                      "from": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      "lockedBy": {
      -                        "enum": [
      -                          "MANUAL",
      -                          "MANUAL_CLEARED",
      -                          "PAYMENT_LINK",
      -                          "SYSTEM_RULE"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "to": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "lineNumber": {
      -                    "exclusiveMinimum": 0,
      -                    "maximum": 9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "matchedButLost": {
      -                    "items": {
      -                      "oneOf": [
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "saved",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "ruleId": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "version": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "ruleId",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "kind": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "label": {
      -                              "const": "draft",
      -                              "type": "string"
      -                            },
      -                            "output": {
      -                              "oneOf": [
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "enum": [
      -                                        "account",
      -                                        "counterparty"
      -                                      ],
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind"
      -                                  ],
      -                                  "type": "object"
      -                                },
      -                                {
      -                                  "additionalProperties": false,
      -                                  "properties": {
      -                                    "kind": {
      -                                      "const": "responsibilityCenter",
      -                                      "type": "string"
      -                                    },
      -                                    "responsibilityCenterTypeKey": {
      -                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  },
      -                                  "required": [
      -                                    "kind",
      -                                    "responsibilityCenterTypeKey"
      -                                  ],
      -                                  "type": "object"
      -                                }
      -                              ]
      -                            },
      -                            "version": {
      -                              "const": 1,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "kind",
      -                            "label",
      -                            "version",
      -                            "output"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      ]
      -                    },
      -                    "type": "array"
      -                  },
      -                  "responsibilityCenters": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "byRule": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "saved",
      -                                  "type": "string"
      -                                },
      -                                "ruleId": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "exclusiveMinimum": 0,
      -                                  "maximum": 9007199254740991,
      -                                  "type": "integer"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "ruleId",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "kind": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "label": {
      -                                  "const": "draft",
      -                                  "type": "string"
      -                                },
      -                                "version": {
      -                                  "const": 1,
      -                                  "type": "number"
      -                                }
      -                              },
      -                              "required": [
      -                                "kind",
      -                                "label",
      -                                "version"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "from": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "lockedBy": {
      -                          "enum": [
      -                            "MANUAL",
      -                            "MANUAL_CLEARED",
      -                            "PAYMENT_LINK",
      -                            "SYSTEM_RULE"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "responsibilityCenterTypeKey": {
      -                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -                          "type": "string"
      -                        },
      -                        "to": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "exclusiveMinimum": 0,
      -                              "maximum": 9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      },
      -                      "required": [
      -                        "responsibilityCenterTypeKey"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "lineNumber",
      -                  "responsibilityCenters",
      -                  "matchedButLost"
      -                ],
      -                "type": "object"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            },
      -            "portfolioTransactionId": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "timestamp": {
      -              "format": "date-time",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "portfolioTransactionId",
      -            "timestamp",
      -            "lines"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "detail": {
      -        "enum": [
      -          "compact",
      -          "transactions"
      -        ],
      -        "type": "string"
      -      },
      -      "firstAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "lastAffectedAt": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "scannedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "transactionViews": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "classification": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "detail": {
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "state": {
      -                  "enum": [
      -                    "categorized",
      -                    "uncategorized",
      -                    "error"
      -                  ],
      -                  "type": "string"
      -                },
      -                "suggestedAction": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "description": {
      -                      "type": "string"
      -                    },
      -                    "tool": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "description"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "state"
      -              ],
      -              "type": "object"
      -            },
      -            "errorDetails": {
      -              "items": {},
      -              "type": "array"
      -            },
      -            "errorMessage": {
      -              "type": "string"
      -            },
      -            "fileAttachments": {
      -              "items": {},
      -              "type": "array"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "intercompanyPair": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "counterpartOperationType": {
      -                  "type": "string"
      -                },
      -                "counterpartPortfolioName": {
      -                  "type": "string"
      -                },
      -                "counterpartPortfolioSlug": {
      -                  "minLength": 1,
      -                  "pattern": "^[a-z0-9-]+$",
      -                  "type": "string"
      -                },
      -                "counterpartPortfolioTransactionId": {
      -                  "type": "string"
      -                },
      -                "counterpartStatus": {
      -                  "enum": [
      -                    "PROPOSED",
      -                    "ERROR",
      -                    "POSTED",
      -                    "CLOSED"
      -                  ],
      -                  "type": "string"
      -                },
      -                "counterpartSubType": {
      -                  "type": "string"
      -                },
      -                "lotLinkCount": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "pairId": {
      -                  "type": "string"
      -                },
      -                "side": {
      -                  "enum": [
      -                    "SEND",
      -                    "RECEIVE"
      -                  ],
      -                  "type": "string"
      -                },
      -                "treatment": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "pairId",
      -                "side",
      -                "counterpartPortfolioName",
      -                "counterpartPortfolioSlug",
      -                "counterpartPortfolioTransactionId",
      -                "counterpartOperationType",
      -                "counterpartStatus",
      -                "lotLinkCount"
      -              ],
      -              "type": "object"
      -            },
      -            "journalEntry": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "adjustmentJournalImportProvenance": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "importRef": {
      -                      "maxLength": 128,
      -                      "minLength": 1,
      -                      "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      -                      "type": "string"
      -                    },
      -                    "sourceFile": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "name": {
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "uploadedAt": {
      -                          "format": "date-time",
      -                          "type": "string"
      -                        },
      -                        "uploader": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "name": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "name"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      },
      -                      "required": [
      -                        "name",
      -                        "uploadedAt",
      -                        "uploader"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "sourceRows": {
      -                      "items": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "appliedResolutions": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "schemaVersion": {
      -                                "const": 1,
      -                                "type": "number"
      -                              },
      -                              "values": {
      -                                "additionalProperties": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "propertyNames": {
      -                                  "anyOf": [
      -                                    {
      -                                      "enum": [
      -                                        "accountNumber",
      -                                        "counterpartyExternalId",
      -                                        "counterpartyName"
      -                                      ],
      -                                      "type": "string"
      -                                    },
      -                                    {
      -                                      "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                      "type": "string"
      -                                    }
      -                                  ]
      -                                },
      -                                "type": "object"
      -                              }
      -                            },
      -                            "required": [
      -                              "schemaVersion",
      -                              "values"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "entryId": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "journalLineNumber": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "locator": {
      -                            "oneOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "format": {
      -                                    "const": "csv",
      -                                    "type": "string"
      -                                  },
      -                                  "lineNumber": {
      -                                    "maximum": 9007199254740991,
      -                                    "minimum": 1,
      -                                    "type": "integer"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "format",
      -                                  "lineNumber"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "format": {
      -                                    "const": "xlsx",
      -                                    "type": "string"
      -                                  },
      -                                  "rowNumber": {
      -                                    "maximum": 9007199254740991,
      -                                    "minimum": 1,
      -                                    "type": "integer"
      -                                  },
      -                                  "sheetName": {
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "format",
      -                                  "rowNumber",
      -                                  "sheetName"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "normalizedValues": {
      -                            "anyOf": [
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "schemaVersion": {
      -                                    "const": 1,
      -                                    "type": "number"
      -                                  },
      -                                  "values": {
      -                                    "additionalProperties": {
      -                                      "anyOf": [
      -                                        {
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "type": "null"
      -                                        }
      -                                      ]
      -                                    },
      -                                    "propertyNames": {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "accountNumber",
      -                                            "amount",
      -                                            "counterpartyExternalId",
      -                                            "counterpartyName",
      -                                            "direction",
      -                                            "effectiveDate",
      -                                            "entryId",
      -                                            "memo"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    "type": "object"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "schemaVersion",
      -                                  "values"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "schemaVersion": {
      -                                    "const": 2,
      -                                    "type": "number"
      -                                  },
      -                                  "values": {
      -                                    "additionalProperties": {
      -                                      "anyOf": [
      -                                        {
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "type": "null"
      -                                        }
      -                                      ]
      -                                    },
      -                                    "propertyNames": {
      -                                      "anyOf": [
      -                                        {
      -                                          "enum": [
      -                                            "accountNumber",
      -                                            "amount",
      -                                            "counterpartyExternalId",
      -                                            "counterpartyName",
      -                                            "direction",
      -                                            "effectiveAt",
      -                                            "effectiveDate",
      -                                            "entryId",
      -                                            "memo"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        {
      -                                          "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                          "type": "string"
      -                                        }
      -                                      ]
      -                                    },
      -                                    "type": "object"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "schemaVersion",
      -                                  "values"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "sourceRowHash": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "appliedResolutions",
      -                          "entryId",
      -                          "journalLineNumber",
      -                          "locator",
      -                          "normalizedValues",
      -                          "sourceRowHash"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "minItems": 1,
      -                      "type": "array"
      -                    }
      -                  },
      -                  "required": [
      -                    "importRef",
      -                    "sourceFile",
      -                    "sourceRows"
      -                  ],
      -                  "type": "object"
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "isAdjustment": {
      -                  "type": "boolean"
      -                },
      -                "lines": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "accountName": {
      -                        "type": "string"
      -                      },
      -                      "accountNormalBalanceType": {
      -                        "type": "string"
      -                      },
      -                      "accountNumber": {
      -                        "type": "string"
      -                      },
      -                      "accountSubType": {
      -                        "type": "string"
      -                      },
      -                      "accountType": {
      -                        "type": "string"
      -                      },
      -                      "assetAmount": {
      -                        "type": "string"
      -                      },
      -                      "assetId": {
      -                        "type": "string"
      -                      },
      -                      "assetSymbol": {
      -                        "type": "string"
      -                      },
      -                      "counterpartyName": {
      -                        "type": "string"
      -                      },
      -                      "entryType": {
      -                        "type": "string"
      -                      },
      -                      "fiatAmount": {
      -                        "type": "string"
      -                      },
      -                      "lineNumber": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": -9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      "lot": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "entryId": {
      -                            "type": "string"
      -                          },
      -                          "entryKind": {
      -                            "type": "string"
      -                          },
      -                          "id": {
      -                            "type": "string"
      -                          },
      -                          "lotMethod": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "id",
      -                          "entryId",
      -                          "entryKind",
      -                          "lotMethod"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "memo": {
      -                        "type": "string"
      -                      },
      -                      "responsibilityCenterAssignments": {
      -                        "items": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "percentageBps": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": -9007199254740991,
      -                              "type": "integer"
      -                            },
      -                            "responsibilityCenterCode": {
      -                              "type": "string"
      -                            },
      -                            "responsibilityCenterId": {
      -                              "type": "string"
      -                            },
      -                            "responsibilityCenterName": {
      -                              "type": "string"
      -                            },
      -                            "responsibilityCenterType": {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "key": {
      -                                  "type": "string"
      -                                },
      -                                "kind": {
      -                                  "enum": [
      -                                    "COST",
      -                                    "REVENUE",
      -                                    "PROFIT",
      -                                    "INVESTMENT"
      -                                  ],
      -                                  "type": "string"
      -                                },
      -                                "name": {
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "key",
      -                                "name",
      -                                "kind"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            "responsibilityCenterTypeId": {
      -                              "type": "string"
      -                            },
      -                            "value": {
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "responsibilityCenterTypeId",
      -                            "responsibilityCenterId",
      -                            "value",
      -                            "responsibilityCenterType",
      -                            "responsibilityCenterName",
      -                            "percentageBps"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "type": "array"
      -                      },
      -                      "transfer": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "chainId": {
      -                            "type": "string"
      -                          },
      -                          "txHash": {
      -                            "type": "string"
      -                          },
      -                          "txIndex": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "type": "object"
      -                      }
      -                    },
      -                    "required": [
      -                      "lineNumber",
      -                      "entryType",
      -                      "fiatAmount",
      -                      "responsibilityCenterAssignments"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "memo": {
      -                  "type": "string"
      -                },
      -                "operationType": {
      -                  "type": "string"
      -                },
      -                "portfolioTransactionId": {
      -                  "type": "string"
      -                },
      -                "status": {
      -                  "type": "string"
      -                },
      -                "subType": {
      -                  "type": "string"
      -                },
      -                "systemNotes": {
      -                  "type": "string"
      -                },
      -                "timestamp": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "timestamp",
      -                "status",
      -                "isAdjustment",
      -                "lines"
      -              ],
      -              "type": "object"
      -            },
      -            "memo": {
      -              "type": "string"
      -            },
      -            "operationType": {
      -              "type": "string"
      -            },
      -            "portfolioTransactionContext": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "status": {
      -              "type": "string"
      -            },
      -            "subType": {
      -              "type": "string"
      -            },
      -            "systemNotes": {
      -              "type": "string"
      -            },
      -            "tags": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "timestamp": {
      -              "type": "string"
      -            },
      -            "walletOperations": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "assetId": {
      -                    "type": "string"
      -                  },
      -                  "assetSymbol": {
      -                    "type": "string"
      -                  },
      -                  "chainId": {
      -                    "type": "string"
      -                  },
      -                  "defiOperation": {
      -                    "type": "string"
      -                  },
      -                  "defiPositionId": {
      -                    "type": "string"
      -                  },
      -                  "defiPositionRef": {
      -                    "type": "string"
      -                  },
      -                  "fromAddress": {
      -                    "type": "string"
      -                  },
      -                  "fromAddressLabel": {
      -                    "type": "string"
      -                  },
      -                  "isSpam": {
      -                    "type": "boolean"
      -                  },
      -                  "quoteCurrency": {
      -                    "type": "string"
      -                  },
      -                  "quoteMeta": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "s": {
      -                        "enum": [
      -                          "SYNC_SOURCE",
      -                          "FMV_ENGINE",
      -                          "DERIVED_REPRESENTED",
      -                          "DERIVED_SIBLING",
      -                          "POLICY",
      -                          "MANUAL"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "ts": {
      -                        "exclusiveMinimum": 0,
      -                        "maximum": 8210266876799,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "s"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "quoteSource": {
      -                    "type": "string"
      -                  },
      -                  "stablecoinPeggedFiatCurrency": {
      -                    "type": "string"
      -                  },
      -                  "toAddress": {
      -                    "type": "string"
      -                  },
      -                  "toAddressLabel": {
      -                    "type": "string"
      -                  },
      -                  "tokenAddress": {
      -                    "type": "string"
      -                  },
      -                  "txHash": {
      -                    "type": "string"
      -                  },
      -                  "txIndex": {
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  "type": {
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "type": "string"
      -                  },
      -                  "valueQuote": {
      -                    "type": "string"
      -                  },
      -                  "walletAddress": {
      -                    "type": "string"
      -                  },
      -                  "walletName": {
      -                    "type": "string"
      -                  },
      -                  "walletTransactionId": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "type",
      -                  "txHash",
      -                  "chainId",
      -                  "txIndex",
      -                  "walletTransactionId",
      -                  "fromAddress",
      -                  "toAddress",
      -                  "value",
      -                  "tokenAddress",
      -                  "isSpam",
      -                  "walletName",
      -                  "walletAddress"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "walletSource": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blockHeight": {
      -                  "type": "string"
      -                },
      -                "rawTransactionId": {
      -                  "type": "string"
      -                },
      -                "rawTransactionSource": {
      -                  "type": "string"
      -                },
      -                "timestamp": {
      -                  "type": "string"
      -                },
      -                "wallet": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "address": {
      -                      "type": "string"
      -                    },
      -                    "chainId": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "chainId",
      -                    "address"
      -                  ],
      -                  "type": "object"
      -                },
      -                "walletType": {
      -                  "enum": [
      -                    "BLOCKCHAIN",
      -                    "EXCHANGE",
      -                    "BANK"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "wallet",
      -                "walletType",
      -                "rawTransactionId",
      -                "rawTransactionSource",
      -                "blockHeight",
      -                "timestamp"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "operationType",
      -            "classification",
      -            "timestamp",
      -            "status",
      -            "tags",
      -            "fileAttachments",
      -            "walletOperations"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "truncatedBy": {
      -        "enum": [
      -          "affected",
      -          "budget",
      -          "details",
      -          "scanned"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "detail",
      -      "scannedCount",
      -      "candidateCount",
      -      "affectedCount",
      -      "changes"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "jobId": {
      +        "type": "string"
      +      },
      +      "mode": {
      +        "enum": [
      +          "sync",
      +          "async"
      +        ],
      +        "type": "string"
      +      },
      +      "result": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "data": {},
      +              "success": {
      +                "const": true,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "success"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "error": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "body": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "currentUsage": {
      +                            "type": "number"
      +                          },
      +                          "limit": {
      +                            "type": "number"
      +                          },
      +                          "usageType": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "usageType",
      +                          "currentUsage",
      +                          "limit"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {}
      +                    ]
      +                  },
      +                  "message": {
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "message",
      +                  "body"
      +                ],
      +                "type": "object"
      +              },
      +              "success": {
      +                "const": false,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "success",
      +              "error"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "status": {
      +        "const": "queued",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "affectedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "candidateCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "changes": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "lines": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "account": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "byRule": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "ruleId": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleId",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "from": {
      +                        "maxLength": 8,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "lockedBy": {
      +                        "enum": [
      +                          "MANUAL",
      +                          "MANUAL_CLEARED",
      +                          "PAYMENT_LINK",
      +                          "SYSTEM_RULE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "to": {
      +                        "maxLength": 8,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "from",
      +                      "to"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "counterparty": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "byRule": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "ruleId": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleId",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "from": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "lockedBy": {
      +                        "enum": [
      +                          "MANUAL",
      +                          "MANUAL_CLEARED",
      +                          "PAYMENT_LINK",
      +                          "SYSTEM_RULE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "to": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "lineNumber": {
      +                    "exclusiveMinimum": 0,
      +                    "maximum": 9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "matchedButLost": {
      +                    "items": {
      +                      "oneOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "saved",
      +                              "type": "string"
      +                            },
      +                            "output": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "enum": [
      +                                        "account",
      +                                        "counterparty"
      +                                      ],
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "responsibilityCenter",
      +                                      "type": "string"
      +                                    },
      +                                    "responsibilityCenterTypeKey": {
      +                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "responsibilityCenterTypeKey"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "ruleId": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "ruleId",
      +                            "version",
      +                            "output"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "label": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "output": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "enum": [
      +                                        "account",
      +                                        "counterparty"
      +                                      ],
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "responsibilityCenter",
      +                                      "type": "string"
      +                                    },
      +                                    "responsibilityCenterTypeKey": {
      +                                      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "responsibilityCenterTypeKey"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "version": {
      +                              "const": 1,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "label",
      +                            "version",
      +                            "output"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      ]
      +                    },
      +                    "type": "array"
      +                  },
      +                  "responsibilityCenters": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "byRule": {
      +                          "oneOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "saved",
      +                                  "type": "string"
      +                                },
      +                                "ruleId": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "exclusiveMinimum": 0,
      +                                  "maximum": 9007199254740991,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "ruleId",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "label": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "label",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "from": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "percentageBps": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            },
      +                            "responsibilityCenterName": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "responsibilityCenterName",
      +                            "percentageBps"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "lockedBy": {
      +                          "enum": [
      +                            "MANUAL",
      +                            "MANUAL_CLEARED",
      +                            "PAYMENT_LINK",
      +                            "SYSTEM_RULE"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "responsibilityCenterTypeKey": {
      +                          "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                          "type": "string"
      +                        },
      +                        "to": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "percentageBps": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            },
      +                            "responsibilityCenterName": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "responsibilityCenterName",
      +                            "percentageBps"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "responsibilityCenterTypeKey"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "lineNumber",
      +                  "responsibilityCenters",
      +                  "matchedButLost"
      +                ],
      +                "type": "object"
      +              },
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "portfolioTransactionId": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "timestamp": {
      +              "format": "date-time",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "portfolioTransactionId",
      +            "timestamp",
      +            "lines"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "detail": {
      +        "const": "compact",
      +        "type": "string"
      +      },
      +      "firstAffectedAt": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "lastAffectedAt": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "scannedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "truncatedBy": {
      +        "enum": [
      +          "affected",
      +          "budget",
      +          "details",
      +          "scanned"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "detail",
      +      "scannedCount",
      +      "candidateCount",
      +      "affectedCount",
      +      "changes"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / detail / const
      Added value: +"compact"
    • removedOutput schema / properties / detail / enum
      Removed value: -[
      -  "compact",
      -  "transactions"
      -]
    • removedOutput schema / properties / transactionViews
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "classification": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "detail": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "state": {
      -            "enum": [
      -              "categorized",
      -              "uncategorized",
      -              "error"
      -            ],
      -            "type": "string"
      -          },
      -          "suggestedAction": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "description": {
      -                "type": "string"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "description"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      },
      -      "errorDetails": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "errorMessage": {
      -        "type": "string"
      -      },
      -      "fileAttachments": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "intercompanyPair": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "counterpartOperationType": {
      -            "type": "string"
      -          },
      -          "counterpartPortfolioName": {
      -            "type": "string"
      -          },
      -          "counterpartPortfolioSlug": {
      -            "minLength": 1,
      -            "pattern": "^[a-z0-9-]+$",
      -            "type": "string"
      -          },
      -          "counterpartPortfolioTransactionId": {
      -            "type": "string"
      -          },
      -          "counterpartStatus": {
      -            "enum": [
      -              "PROPOSED",
      -              "ERROR",
      -              "POSTED",
      -              "CLOSED"
      -            ],
      -            "type": "string"
      -          },
      -          "counterpartSubType": {
      -            "type": "string"
      -          },
      -          "lotLinkCount": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "pairId": {
      -            "type": "string"
      -          },
      -          "side": {
      -            "enum": [
      -              "SEND",
      -              "RECEIVE"
      -            ],
      -            "type": "string"
      -          },
      -          "treatment": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "pairId",
      -          "side",
      -          "counterpartPortfolioName",
      -          "counterpartPortfolioSlug",
      -          "counterpartPortfolioTransactionId",
      -          "counterpartOperationType",
      -          "counterpartStatus",
      -          "lotLinkCount"
      -        ],
      -        "type": "object"
      -      },
      -      "journalEntry": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "adjustmentJournalImportProvenance": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "importRef": {
      -                "maxLength": 128,
      -                "minLength": 1,
      -                "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      -                "type": "string"
      -              },
      -              "sourceFile": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "name": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "uploadedAt": {
      -                    "format": "date-time",
      -                    "type": "string"
      -                  },
      -                  "uploader": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "name": {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "name"
      -                    ],
      -                    "type": "object"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "uploadedAt",
      -                  "uploader"
      -                ],
      -                "type": "object"
      -              },
      -              "sourceRows": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "appliedResolutions": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "schemaVersion": {
      -                          "const": 1,
      -                          "type": "number"
      -                        },
      -                        "values": {
      -                          "additionalProperties": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "propertyNames": {
      -                            "anyOf": [
      -                              {
      -                                "enum": [
      -                                  "accountNumber",
      -                                  "counterpartyExternalId",
      -                                  "counterpartyName"
      -                                ],
      -                                "type": "string"
      -                              },
      -                              {
      -                                "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                "type": "string"
      -                              }
      -                            ]
      -                          },
      -                          "type": "object"
      -                        }
      -                      },
      -                      "required": [
      -                        "schemaVersion",
      -                        "values"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "entryId": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "journalLineNumber": {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 9007199254740991,
      -                      "type": "integer"
      -                    },
      -                    "locator": {
      -                      "oneOf": [
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "format": {
      -                              "const": "csv",
      -                              "type": "string"
      -                            },
      -                            "lineNumber": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": 1,
      -                              "type": "integer"
      -                            }
      -                          },
      -                          "required": [
      -                            "format",
      -                            "lineNumber"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "format": {
      -                              "const": "xlsx",
      -                              "type": "string"
      -                            },
      -                            "rowNumber": {
      -                              "maximum": 9007199254740991,
      -                              "minimum": 1,
      -                              "type": "integer"
      -                            },
      -                            "sheetName": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "format",
      -                            "rowNumber",
      -                            "sheetName"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      ]
      -                    },
      -                    "normalizedValues": {
      -                      "anyOf": [
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "schemaVersion": {
      -                              "const": 1,
      -                              "type": "number"
      -                            },
      -                            "values": {
      -                              "additionalProperties": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              },
      -                              "propertyNames": {
      -                                "anyOf": [
      -                                  {
      -                                    "enum": [
      -                                      "accountNumber",
      -                                      "amount",
      -                                      "counterpartyExternalId",
      -                                      "counterpartyName",
      -                                      "direction",
      -                                      "effectiveDate",
      -                                      "entryId",
      -                                      "memo"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              "type": "object"
      -                            }
      -                          },
      -                          "required": [
      -                            "schemaVersion",
      -                            "values"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "schemaVersion": {
      -                              "const": 2,
      -                              "type": "number"
      -                            },
      -                            "values": {
      -                              "additionalProperties": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              },
      -                              "propertyNames": {
      -                                "anyOf": [
      -                                  {
      -                                    "enum": [
      -                                      "accountNumber",
      -                                      "amount",
      -                                      "counterpartyExternalId",
      -                                      "counterpartyName",
      -                                      "direction",
      -                                      "effectiveAt",
      -                                      "effectiveDate",
      -                                      "entryId",
      -                                      "memo"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  {
      -                                    "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              "type": "object"
      -                            }
      -                          },
      -                          "required": [
      -                            "schemaVersion",
      -                            "values"
      -                          ],
      -                          "type": "object"
      -                        }
      -                      ]
      -                    },
      -                    "sourceRowHash": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "appliedResolutions",
      -                    "entryId",
      -                    "journalLineNumber",
      -                    "locator",
      -                    "normalizedValues",
      -                    "sourceRowHash"
      -                  ],
      -                  "type": "object"
      -                },
      -                "minItems": 1,
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "importRef",
      -              "sourceFile",
      -              "sourceRows"
      -            ],
      -            "type": "object"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "isAdjustment": {
      -            "type": "boolean"
      -          },
      -          "lines": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "accountName": {
      -                  "type": "string"
      -                },
      -                "accountNormalBalanceType": {
      -                  "type": "string"
      -                },
      -                "accountNumber": {
      -                  "type": "string"
      -                },
      -                "accountSubType": {
      -                  "type": "string"
      -                },
      -                "accountType": {
      -                  "type": "string"
      -                },
      -                "assetAmount": {
      -                  "type": "string"
      -                },
      -                "assetId": {
      -                  "type": "string"
      -                },
      -                "assetSymbol": {
      -                  "type": "string"
      -                },
      -                "counterpartyName": {
      -                  "type": "string"
      -                },
      -                "entryType": {
      -                  "type": "string"
      -                },
      -                "fiatAmount": {
      -                  "type": "string"
      -                },
      -                "lineNumber": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "lot": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "entryId": {
      -                      "type": "string"
      -                    },
      -                    "entryKind": {
      -                      "type": "string"
      -                    },
      -                    "id": {
      -                      "type": "string"
      -                    },
      -                    "lotMethod": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "entryId",
      -                    "entryKind",
      -                    "lotMethod"
      -                  ],
      -                  "type": "object"
      -                },
      -                "memo": {
      -                  "type": "string"
      -                },
      -                "responsibilityCenterAssignments": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "percentageBps": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": -9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      "responsibilityCenterCode": {
      -                        "type": "string"
      -                      },
      -                      "responsibilityCenterId": {
      -                        "type": "string"
      -                      },
      -                      "responsibilityCenterName": {
      -                        "type": "string"
      -                      },
      -                      "responsibilityCenterType": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "key": {
      -                            "type": "string"
      -                          },
      -                          "kind": {
      -                            "enum": [
      -                              "COST",
      -                              "REVENUE",
      -                              "PROFIT",
      -                              "INVESTMENT"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "name": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "key",
      -                          "name",
      -                          "kind"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "responsibilityCenterTypeId": {
      -                        "type": "string"
      -                      },
      -                      "value": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "responsibilityCenterTypeId",
      -                      "responsibilityCenterId",
      -                      "value",
      -                      "responsibilityCenterType",
      -                      "responsibilityCenterName",
      -                      "percentageBps"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "transfer": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "chainId": {
      -                      "type": "string"
      -                    },
      -                    "txHash": {
      -                      "type": "string"
      -                    },
      -                    "txIndex": {
      -                      "maximum": 9007199254740991,
      -                      "minimum": -9007199254740991,
      -                      "type": "integer"
      -                    }
      -                  },
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "lineNumber",
      -                "entryType",
      -                "fiatAmount",
      -                "responsibilityCenterAssignments"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "memo": {
      -            "type": "string"
      -          },
      -          "operationType": {
      -            "type": "string"
      -          },
      -          "portfolioTransactionId": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "type": "string"
      -          },
      -          "subType": {
      -            "type": "string"
      -          },
      -          "systemNotes": {
      -            "type": "string"
      -          },
      -          "timestamp": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "timestamp",
      -          "status",
      -          "isAdjustment",
      -          "lines"
      -        ],
      -        "type": "object"
      -      },
      -      "memo": {
      -        "type": "string"
      -      },
      -      "operationType": {
      -        "type": "string"
      -      },
      -      "portfolioTransactionContext": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "subType": {
      -        "type": "string"
      -      },
      -      "systemNotes": {
      -        "type": "string"
      -      },
      -      "tags": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "timestamp": {
      -        "type": "string"
      -      },
      -      "walletOperations": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "assetId": {
      -              "type": "string"
      -            },
      -            "assetSymbol": {
      -              "type": "string"
      -            },
      -            "chainId": {
      -              "type": "string"
      -            },
      -            "defiOperation": {
      -              "type": "string"
      -            },
      -            "defiPositionId": {
      -              "type": "string"
      -            },
      -            "defiPositionRef": {
      -              "type": "string"
      -            },
      -            "fromAddress": {
      -              "type": "string"
      -            },
      -            "fromAddressLabel": {
      -              "type": "string"
      -            },
      -            "isSpam": {
      -              "type": "boolean"
      -            },
      -            "quoteCurrency": {
      -              "type": "string"
      -            },
      -            "quoteMeta": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "s": {
      -                  "enum": [
      -                    "SYNC_SOURCE",
      -                    "FMV_ENGINE",
      -                    "DERIVED_REPRESENTED",
      -                    "DERIVED_SIBLING",
      -                    "POLICY",
      -                    "MANUAL"
      -                  ],
      -                  "type": "string"
      -                },
      -                "ts": {
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 8210266876799,
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "s"
      -              ],
      -              "type": "object"
      -            },
      -            "quoteSource": {
      -              "type": "string"
      -            },
      -            "stablecoinPeggedFiatCurrency": {
      -              "type": "string"
      -            },
      -            "toAddress": {
      -              "type": "string"
      -            },
      -            "toAddressLabel": {
      -              "type": "string"
      -            },
      -            "tokenAddress": {
      -              "type": "string"
      -            },
      -            "txHash": {
      -              "type": "string"
      -            },
      -            "txIndex": {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            "type": {
      -              "type": "string"
      -            },
      -            "value": {
      -              "type": "string"
      -            },
      -            "valueQuote": {
      -              "type": "string"
      -            },
      -            "walletAddress": {
      -              "type": "string"
      -            },
      -            "walletName": {
      -              "type": "string"
      -            },
      -            "walletTransactionId": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "txHash",
      -            "chainId",
      -            "txIndex",
      -            "walletTransactionId",
      -            "fromAddress",
      -            "toAddress",
      -            "value",
      -            "tokenAddress",
      -            "isSpam",
      -            "walletName",
      -            "walletAddress"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "walletSource": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "blockHeight": {
      -            "type": "string"
      -          },
      -          "rawTransactionId": {
      -            "type": "string"
      -          },
      -          "rawTransactionSource": {
      -            "type": "string"
      -          },
      -          "timestamp": {
      -            "type": "string"
      -          },
      -          "wallet": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "address": {
      -                "type": "string"
      -              },
      -              "chainId": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "chainId",
      -              "address"
      -            ],
      -            "type": "object"
      -          },
      -          "walletType": {
      -            "enum": [
      -              "BLOCKCHAIN",
      -              "EXCHANGE",
      -              "BANK"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "wallet",
      -          "walletType",
      -          "rawTransactionId",
      -          "rawTransactionSource",
      -          "blockHeight",
      -          "timestamp"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "operationType",
      -      "classification",
      -      "timestamp",
      -      "status",
      -      "tags",
      -      "fileAttachments",
      -      "walletOperations"
      -    ],
      -    "type": "object"
      -  },
      -  "maxItems": 100,
      -  "type": "array"
      -}
  5. Changed10 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "description": "Create a new rule.",
      -        "enum": [
      -          "create"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "name",
      -      "conditions",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "anyOf": [
      -      {
      -        "properties": {
      -          "name": {
      -            "$ref": "#/properties/name"
      -          }
      -        },
      -        "required": [
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "conditions": {
      -            "$ref": "#/properties/conditions"
      -          }
      -        },
      -        "required": [
      -          "conditions"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "action": {
      -            "$ref": "#/properties/action"
      -          }
      -        },
      -        "required": [
      -          "action"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "description": "Change the name, conditions, or actions of an existing rule.",
      -        "enum": [
      -          "update"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "operation": {
      -        "description": "Turn an existing rule on or off without changing it.",
      -        "enum": [
      -          "set_enabled"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef",
      -      "enabled"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "description": "Set the evaluation order of every rule in the portfolio.",
      -        "enum": [
      -          "reorder"
      -        ],
      -        "type": "string"
      -      },
      -      "orderedRuleRefs": {
      -        "$ref": "#/properties/orderedRuleRefs"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "orderedRuleRefs"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "$ref": "#/properties/action"
      +      },
      +      "conditions": {
      +        "$ref": "#/properties/conditions"
      +      },
      +      "enabled": {
      +        "$ref": "#/properties/enabled"
      +      },
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "name": {
      +        "$ref": "#/properties/name"
      +      },
      +      "operation": {
      +        "description": "Create a new rule, or preview creating one (preview: true).",
      +        "enum": [
      +          "create"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "preview": {
      +        "$ref": "#/properties/preview"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "name",
      +      "conditions",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "anyOf": [
      +      {
      +        "properties": {
      +          "name": {
      +            "$ref": "#/properties/name"
      +          }
      +        },
      +        "required": [
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "conditions": {
      +            "$ref": "#/properties/conditions"
      +          }
      +        },
      +        "required": [
      +          "conditions"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "action": {
      +            "$ref": "#/properties/action"
      +          }
      +        },
      +        "required": [
      +          "action"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "properties": {
      +      "action": {
      +        "$ref": "#/properties/action"
      +      },
      +      "conditions": {
      +        "$ref": "#/properties/conditions"
      +      },
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "name": {
      +        "$ref": "#/properties/name"
      +      },
      +      "operation": {
      +        "description": "Change the name, conditions, or actions of an existing rule, or preview the change (preview: true).",
      +        "enum": [
      +          "update"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "preview": {
      +        "$ref": "#/properties/preview"
      +      },
      +      "ruleRef": {
      +        "$ref": "#/properties/ruleRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "ruleRef"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "enabled": {
      +        "$ref": "#/properties/enabled"
      +      },
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "operation": {
      +        "description": "Turn an existing rule on or off without changing it, or preview the change (preview: true).",
      +        "enum": [
      +          "set_enabled"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "preview": {
      +        "$ref": "#/properties/preview"
      +      },
      +      "ruleRef": {
      +        "$ref": "#/properties/ruleRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "ruleRef",
      +      "enabled"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "operation": {
      +        "description": "Set the evaluation order of every rule in the portfolio, or preview it (preview: true).",
      +        "enum": [
      +          "reorder"
      +        ],
      +        "type": "string"
      +      },
      +      "orderedRuleRefs": {
      +        "$ref": "#/properties/orderedRuleRefs"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "preview": {
      +        "$ref": "#/properties/preview"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "orderedRuleRefs"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "operation": {
      +        "description": "Remove one saved rule from active use, or preview removing it (preview: true).",
      +        "enum": [
      +          "delete"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "preview": {
      +        "$ref": "#/properties/preview"
      +      },
      +      "ruleRef": {
      +        "$ref": "#/properties/ruleRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "ruleRef"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "maxAffected": {
      +        "$ref": "#/properties/maxAffected"
      +      },
      +      "operation": {
      +        "description": "Preview the saved rules as they stand, changing nothing.",
      +        "enum": [
      +          "current"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / action / properties / actions / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "counterpartyName": {
      -        "description": "Counterparty name, from list_counterparties.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "What the change applies to: a journal line or the transaction.",
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Which change this action makes.",
      -        "enum": [
      -          "SET_COUNTERPARTY"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "counterpartyName"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "accountNumber": {
      -        "description": "Chart-of-accounts number, from list_ledger_accounts.",
      -        "maxLength": 8,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "What the change applies to: a journal line or the transaction.",
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Which change this action makes.",
      -        "enum": [
      -          "SET_LEDGER_ACCOUNT"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "accountNumber"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "responsibilityCenterAssignments": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "responsibilityCenterName": {
      -              "description": "Responsibility center name, from list_responsibility_centers.",
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "responsibilityCenterTypeKey": {
      -              "description": "Stable responsibility-center type key. It uses lowercase alphanumeric snake_case segments.",
      -              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "responsibilityCenterTypeKey",
      -            "responsibilityCenterName"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "target": {
      -        "description": "What the change applies to: a journal line or the transaction.",
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Which change this action makes.",
      -        "enum": [
      -          "SET_RESPONSIBILITY_CENTERS"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "responsibilityCenterAssignments"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "counterpartyName": {
      +        "description": "Counterparty name, from list_journal_line_assignment_options (type: counterparty).",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_COUNTERPARTY"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "counterpartyName"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "accountNumber": {
      +        "description": "Chart-of-accounts number, from list_journal_line_assignment_options (type: ledger_account).",
      +        "maxLength": 8,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_LEDGER_ACCOUNT"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "accountNumber"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "responsibilityCenterAssignments": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "responsibilityCenterName": {
      +              "description": "Responsibility center name, from list_journal_line_assignment_options (type: responsibility_center).",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "responsibilityCenterTypeKey": {
      +              "description": "Stable responsibility-center type key. It uses lowercase alphanumeric snake_case segments.",
      +              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "responsibilityCenterTypeKey",
      +            "responsibilityCenterName"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_RESPONSIBILITY_CENTERS"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "responsibilityCenterAssignments"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / conditions / properties / all / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "fromAddressLabel"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals",
      -          "contains",
      -          "notEquals",
      -          "notContains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "toAddressLabel"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals",
      -          "contains",
      -          "notEquals",
      -          "notContains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "fromAddress"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals",
      -          "contains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "toAddress"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals",
      -          "contains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "direction"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals",
      -          "notEquals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "enum": [
      -          "IN",
      -          "OUT",
      -          "GAS"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "asset"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "assetClass"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "enum": [
      -            "ERC20",
      -            "FIAT",
      -            "NATIVE",
      -            "REBASE_LST",
      -            "INTEREST_BEARING",
      -            "VALUE_ACCRUING",
      -            "LP_SHARE",
      -            "DEBT",
      -            "REFLECT",
      -            "VOTE_ESCROWED",
      -            "NFT"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "stablecoin"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "chain"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "operationType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "enum": [
      -            "DEPOSIT_FIAT",
      -            "INCOME",
      -            "REFUND",
      -            "WITHDRAWAL_FIAT",
      -            "EXPENSE",
      -            "BUY",
      -            "SELL",
      -            "EXCHANGE",
      -            "SWAP",
      -            "MOVE",
      -            "INTERCOMPANY_SEND",
      -            "INTERCOMPANY_RECEIVE",
      -            "STAKE",
      -            "UNSTAKE",
      -            "PROTOCOL_DEPOSIT",
      -            "PROTOCOL_WITHDRAW",
      -            "VAULT_DEPOSIT",
      -            "VAULT_WITHDRAW",
      -            "LP_IN",
      -            "LP_OUT",
      -            "LOAN_BORROW",
      -            "LOAN_REPAY",
      -            "LOAN_LIQUIDATION",
      -            "LEND_GIVE",
      -            "LEND_WITHDRAW",
      -            "ADJUSTMENT",
      -            "UNCATEGORIZED",
      -            "SPAM"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "accountSubType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "enum": [
      -            "EXT",
      -            "BNK",
      -            "INC",
      -            "EXP",
      -            "LINT",
      -            "LLIQ",
      -            "LQLOSS",
      -            "CLOSS",
      -            "CBNK",
      -            "CBAS",
      -            "CRE",
      -            "CGL",
      -            "CEXP",
      -            "CINC",
      -            "TRADING_REVENUE",
      -            "COGS",
      -            "INVENTORY_VALUATION_ADJUSTMENT",
      -            "INVENTORY_COGS_ADJUSTMENT",
      -            "INVENTORY_WRITE_DOWN",
      -            "INVENTORY_REMEASUREMENT_GAIN",
      -            "INVENTORY_REMEASUREMENT_LOSS",
      -            "CNP",
      -            "UINC",
      -            "UEXP",
      -            "OFEXP",
      -            "OFINC",
      -            "ICINV",
      -            "CAP",
      -            "UNREALISED_FV_GAIN",
      -            "UNREALISED_FV_LOSS",
      -            "CFVA"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "description": "Condition field.",
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "description": "Comparison operator.",
      -            "enum": [
      -              "gt"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Decimal fiat amount to compare against.",
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "description": "Condition field.",
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "description": "Comparison operator.",
      -            "enum": [
      -              "lt"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Decimal fiat amount to compare against.",
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "description": "Condition field.",
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "description": "Comparison operator.",
      -            "enum": [
      -              "gte"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Decimal fiat amount to compare against.",
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "description": "Condition field.",
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "description": "Comparison operator.",
      -            "enum": [
      -              "lte"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Decimal fiat amount to compare against.",
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "description": "Condition field.",
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "description": "Comparison operator.",
      -            "enum": [
      -              "between"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Inclusive [low, high] decimal-string range.",
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^-?\\d+(\\.\\d+)?$",
      -                  "type": "string"
      -                },
      -                {
      -                  "pattern": "^-?\\d+(\\.\\d+)?$",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "maxItems": 2,
      -            "minItems": 2,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "entryType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "equals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "enum": [
      -          "DR",
      -          "CR"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "accountType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "enum": [
      -            "ASSET",
      -            "LIABILITY",
      -            "EQUITY",
      -            "INCOME",
      -            "EXPENSE"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "wallet"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "address": {
      -              "description": "Wallet address",
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "chainId": {
      -              "description": "Chain ID",
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "chainId",
      -            "address"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "accountNumber"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "description": "Chart-of-accounts number, from list_ledger_accounts.",
      -          "maxLength": 8,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operator",
      -      "field",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "description": "Which part of the transaction this condition tests.",
      -        "enum": [
      -          "counterparty"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "description": "How the field is compared with value.",
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The value the field is compared against.",
      -        "items": {
      -          "description": "Counterparty name, from list_counterparties.",
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "fromAddressLabel"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains",
      +          "notEquals",
      +          "notContains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "toAddressLabel"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains",
      +          "notEquals",
      +          "notContains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "fromAddress"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "toAddress"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "direction"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "notEquals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "enum": [
      +          "IN",
      +          "OUT",
      +          "GAS"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "asset"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "assetClass"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "ERC20",
      +            "FIAT",
      +            "NATIVE",
      +            "REBASE_LST",
      +            "INTEREST_BEARING",
      +            "VALUE_ACCRUING",
      +            "LP_SHARE",
      +            "DEBT",
      +            "REFLECT",
      +            "VOTE_ESCROWED",
      +            "NFT"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "stablecoin"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "chain"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "operationType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "DEPOSIT_FIAT",
      +            "INCOME",
      +            "REFUND",
      +            "WITHDRAWAL_FIAT",
      +            "EXPENSE",
      +            "BUY",
      +            "SELL",
      +            "EXCHANGE",
      +            "SWAP",
      +            "MOVE",
      +            "INTERCOMPANY_SEND",
      +            "INTERCOMPANY_RECEIVE",
      +            "STAKE",
      +            "UNSTAKE",
      +            "PROTOCOL_DEPOSIT",
      +            "PROTOCOL_WITHDRAW",
      +            "VAULT_DEPOSIT",
      +            "VAULT_WITHDRAW",
      +            "LP_IN",
      +            "LP_OUT",
      +            "LOAN_BORROW",
      +            "LOAN_REPAY",
      +            "LOAN_LIQUIDATION",
      +            "LEND_GIVE",
      +            "LEND_WITHDRAW",
      +            "ADJUSTMENT",
      +            "UNCATEGORIZED",
      +            "SPAM"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountSubType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "EXT",
      +            "BNK",
      +            "INC",
      +            "EXP",
      +            "LINT",
      +            "LLIQ",
      +            "LQLOSS",
      +            "CLOSS",
      +            "CBNK",
      +            "CBAS",
      +            "CRE",
      +            "CGL",
      +            "CEXP",
      +            "CINC",
      +            "TRADING_REVENUE",
      +            "COGS",
      +            "INVENTORY_VALUATION_ADJUSTMENT",
      +            "INVENTORY_COGS_ADJUSTMENT",
      +            "INVENTORY_WRITE_DOWN",
      +            "INVENTORY_REMEASUREMENT_GAIN",
      +            "INVENTORY_REMEASUREMENT_LOSS",
      +            "CNP",
      +            "UINC",
      +            "UEXP",
      +            "OFEXP",
      +            "OFINC",
      +            "ICINV",
      +            "CAP",
      +            "UNREALISED_FV_GAIN",
      +            "UNREALISED_FV_LOSS",
      +            "CFVA"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "gt"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "lt"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "gte"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "lte"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "between"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Inclusive [low, high] decimal-string range.",
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "pattern": "^-?\\d+(\\.\\d+)?$",
      +                  "type": "string"
      +                },
      +                {
      +                  "pattern": "^-?\\d+(\\.\\d+)?$",
      +                  "type": "string"
      +                }
      +              ]
      +            },
      +            "maxItems": 2,
      +            "minItems": 2,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "entryType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "enum": [
      +          "DR",
      +          "CR"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "ASSET",
      +            "LIABILITY",
      +            "EQUITY",
      +            "INCOME",
      +            "EXPENSE"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "wallet"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "Wallet address",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "chainId": {
      +              "description": "Chain ID",
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "chainId",
      +            "address"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountNumber"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "description": "Chart-of-accounts number, from list_journal_line_assignment_options (type: ledger_account).",
      +          "maxLength": 8,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operator",
      +      "field",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "counterparty"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "description": "Counterparty name, from list_journal_line_assignment_options (type: counterparty).",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / maxAffected
      Added value: +{
      +  "default": 10,
      +  "description": "Preview only: how many affected transactions to sample, at most 25. affectedCount in the result equals this sample size; check candidateCount for the true total match count.",
      +  "maximum": 25,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / operation / description
      Previous value: -"Create a new rule."New value: +"Create a new rule, or preview creating one (preview: true)."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create",
      -  "update",
      -  "set_enabled",
      -  "reorder"
      -]New value: +[
      +  "create",
      +  "update",
      +  "set_enabled",
      +  "reorder",
      +  "delete",
      +  "current"
      +]
    • changedInput schema / properties / portfolioRef / description
      Previous value: -"Portfolio name or slug inside that workspace. Call list_portfolios, or find_portfolios when the user named one, to resolve it."New value: +"Portfolio name or slug inside that workspace. Call list_portfolios to resolve it."
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "When true, evaluate the change and return its impact without saving it.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / workspaceRef / description
      Previous value: -"Workspace name or slug. Call list_workspaces, or find_workspaces when the user named one, to resolve it."New value: +"Workspace name or slug. Call list_workspaces to resolve it."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "jobId": {
      +          "type": "string"
      +        },
      +        "mode": {
      +          "enum": [
      +            "sync",
      +            "async"
      +          ],
      +          "type": "string"
      +        },
      +        "result": {
      +          "oneOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "data": {},
      +                "success": {
      +                  "const": true,
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "success"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "error": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "body": {
      +                      "anyOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "currentUsage": {
      +                              "type": "number"
      +                            },
      +                            "limit": {
      +                              "type": "number"
      +                            },
      +                            "usageType": {
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "usageType",
      +                            "currentUsage",
      +                            "limit"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {}
      +                      ]
      +                    },
      +                    "message": {
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "name",
      +                    "message",
      +                    "body"
      +                  ],
      +                  "type": "object"
      +                },
      +                "success": {
      +                  "const": false,
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "success",
      +                "error"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "const": "queued",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "mode"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "oneOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "affectedCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "candidateCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "changes": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "lines": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "account": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "byRule": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "saved",
      +                                      "type": "string"
      +                                    },
      +                                    "ruleId": {
      +                                      "minLength": 1,
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "exclusiveMinimum": 0,
      +                                      "maximum": 9007199254740991,
      +                                      "type": "integer"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "ruleId",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "label": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "label",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "from": {
      +                              "maxLength": 8,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "lockedBy": {
      +                              "enum": [
      +                                "MANUAL",
      +                                "MANUAL_CLEARED",
      +                                "PAYMENT_LINK",
      +                                "SYSTEM_RULE"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            "to": {
      +                              "maxLength": 8,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "from",
      +                            "to"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "counterparty": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "byRule": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "saved",
      +                                      "type": "string"
      +                                    },
      +                                    "ruleId": {
      +                                      "minLength": 1,
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "exclusiveMinimum": 0,
      +                                      "maximum": 9007199254740991,
      +                                      "type": "integer"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "ruleId",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "label": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "label",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "from": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "lockedBy": {
      +                              "enum": [
      +                                "MANUAL",
      +                                "MANUAL_CLEARED",
      +                                "PAYMENT_LINK",
      +                                "SYSTEM_RULE"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            "to": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "type": "object"
      +                        },
      +                        "lineNumber": {
      +                          "exclusiveMinimum": 0,
      +                          "maximum": 9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        "matchedButLost": {
      +                          "items": {
      +                            "oneOf": [
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "saved",
      +                                    "type": "string"
      +                                  },
      +                                  "output": {
      +                                    "oneOf": [
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "enum": [
      +                                              "account",
      +                                              "counterparty"
      +                                            ],
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind"
      +                                        ],
      +                                        "type": "object"
      +                                      },
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "const": "responsibilityCenter",
      +                                            "type": "string"
      +                                          },
      +                                          "responsibilityCenterTypeKey": {
      +                                            "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind",
      +                                          "responsibilityCenterTypeKey"
      +                                        ],
      +                                        "type": "object"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "ruleId": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "version": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "ruleId",
      +                                  "version",
      +                                  "output"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "label": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "output": {
      +                                    "oneOf": [
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "enum": [
      +                                              "account",
      +                                              "counterparty"
      +                                            ],
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind"
      +                                        ],
      +                                        "type": "object"
      +                                      },
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "const": "responsibilityCenter",
      +                                            "type": "string"
      +                                          },
      +                                          "responsibilityCenterTypeKey": {
      +                                            "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind",
      +                                          "responsibilityCenterTypeKey"
      +                                        ],
      +                                        "type": "object"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "version": {
      +                                    "const": 1,
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "label",
      +                                  "version",
      +                                  "output"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "type": "array"
      +                        },
      +                        "responsibilityCenters": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "byRule": {
      +                                "oneOf": [
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "saved",
      +                                        "type": "string"
      +                                      },
      +                                      "ruleId": {
      +                                        "minLength": 1,
      +                                        "type": "string"
      +                                      },
      +                                      "version": {
      +                                        "exclusiveMinimum": 0,
      +                                        "maximum": 9007199254740991,
      +                                        "type": "integer"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "ruleId",
      +                                      "version"
      +                                    ],
      +                                    "type": "object"
      +                                  },
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "draft",
      +                                        "type": "string"
      +                                      },
      +                                      "label": {
      +                                        "const": "draft",
      +                                        "type": "string"
      +                                      },
      +                                      "version": {
      +                                        "const": 1,
      +                                        "type": "number"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "label",
      +                                      "version"
      +                                    ],
      +                                    "type": "object"
      +                                  }
      +                                ]
      +                              },
      +                              "from": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "percentageBps": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  },
      +                                  "responsibilityCenterName": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "responsibilityCenterName",
      +                                  "percentageBps"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "lockedBy": {
      +                                "enum": [
      +                                  "MANUAL",
      +                                  "MANUAL_CLEARED",
      +                                  "PAYMENT_LINK",
      +                                  "SYSTEM_RULE"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "responsibilityCenterTypeKey": {
      +                                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                "type": "string"
      +                              },
      +                              "to": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "percentageBps": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  },
      +                                  "responsibilityCenterName": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "responsibilityCenterName",
      +                                  "percentageBps"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            },
      +                            "required": [
      +                              "responsibilityCenterTypeKey"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "lineNumber",
      +                        "responsibilityCenters",
      +                        "matchedButLost"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "minItems": 1,
      +                    "type": "array"
      +                  },
      +                  "portfolioTransactionId": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "timestamp": {
      +                    "format": "date-time",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "portfolioTransactionId",
      +                  "timestamp",
      +                  "lines"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            },
      +            "detail": {
      +              "const": "compact",
      +              "type": "string"
      +            },
      +            "firstAffectedAt": {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            "lastAffectedAt": {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            "scannedCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "truncatedBy": {
      +              "enum": [
      +                "affected",
      +                "budget",
      +                "details",
      +                "scanned"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "detail",
      +            "scannedCount",
      +            "candidateCount",
      +            "affectedCount",
      +            "changes"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "affectedCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "candidateCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "changes": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "lines": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "account": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "byRule": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "saved",
      +                                      "type": "string"
      +                                    },
      +                                    "ruleId": {
      +                                      "minLength": 1,
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "exclusiveMinimum": 0,
      +                                      "maximum": 9007199254740991,
      +                                      "type": "integer"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "ruleId",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "label": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "label",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "from": {
      +                              "maxLength": 8,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "lockedBy": {
      +                              "enum": [
      +                                "MANUAL",
      +                                "MANUAL_CLEARED",
      +                                "PAYMENT_LINK",
      +                                "SYSTEM_RULE"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            "to": {
      +                              "maxLength": 8,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "from",
      +                            "to"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "counterparty": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "byRule": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "saved",
      +                                      "type": "string"
      +                                    },
      +                                    "ruleId": {
      +                                      "minLength": 1,
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "exclusiveMinimum": 0,
      +                                      "maximum": 9007199254740991,
      +                                      "type": "integer"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "ruleId",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "kind": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "label": {
      +                                      "const": "draft",
      +                                      "type": "string"
      +                                    },
      +                                    "version": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "kind",
      +                                    "label",
      +                                    "version"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "from": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "lockedBy": {
      +                              "enum": [
      +                                "MANUAL",
      +                                "MANUAL_CLEARED",
      +                                "PAYMENT_LINK",
      +                                "SYSTEM_RULE"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            "to": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "type": "object"
      +                        },
      +                        "lineNumber": {
      +                          "exclusiveMinimum": 0,
      +                          "maximum": 9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        "matchedButLost": {
      +                          "items": {
      +                            "oneOf": [
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "saved",
      +                                    "type": "string"
      +                                  },
      +                                  "output": {
      +                                    "oneOf": [
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "enum": [
      +                                              "account",
      +                                              "counterparty"
      +                                            ],
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind"
      +                                        ],
      +                                        "type": "object"
      +                                      },
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "const": "responsibilityCenter",
      +                                            "type": "string"
      +                                          },
      +                                          "responsibilityCenterTypeKey": {
      +                                            "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind",
      +                                          "responsibilityCenterTypeKey"
      +                                        ],
      +                                        "type": "object"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "ruleId": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "version": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "ruleId",
      +                                  "version",
      +                                  "output"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "label": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "output": {
      +                                    "oneOf": [
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "enum": [
      +                                              "account",
      +                                              "counterparty"
      +                                            ],
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind"
      +                                        ],
      +                                        "type": "object"
      +                                      },
      +                                      {
      +                                        "additionalProperties": false,
      +                                        "properties": {
      +                                          "kind": {
      +                                            "const": "responsibilityCenter",
      +                                            "type": "string"
      +                                          },
      +                                          "responsibilityCenterTypeKey": {
      +                                            "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        },
      +                                        "required": [
      +                                          "kind",
      +                                          "responsibilityCenterTypeKey"
      +                                        ],
      +                                        "type": "object"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "version": {
      +                                    "const": 1,
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "label",
      +                                  "version",
      +                                  "output"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "type": "array"
      +                        },
      +                        "responsibilityCenters": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "byRule": {
      +                                "oneOf": [
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "saved",
      +                                        "type": "string"
      +                                      },
      +                                      "ruleId": {
      +                                        "minLength": 1,
      +                                        "type": "string"
      +                                      },
      +                                      "version": {
      +                                        "exclusiveMinimum": 0,
      +                                        "maximum": 9007199254740991,
      +                                        "type": "integer"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "ruleId",
      +                                      "version"
      +                                    ],
      +                                    "type": "object"
      +                                  },
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "draft",
      +                                        "type": "string"
      +                                      },
      +                                      "label": {
      +                                        "const": "draft",
      +                                        "type": "string"
      +                                      },
      +                                      "version": {
      +                                        "const": 1,
      +                                        "type": "number"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "label",
      +                                      "version"
      +                                    ],
      +                                    "type": "object"
      +                                  }
      +                                ]
      +                              },
      +                              "from": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "percentageBps": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  },
      +                                  "responsibilityCenterName": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "responsibilityCenterName",
      +                                  "percentageBps"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "lockedBy": {
      +                                "enum": [
      +                                  "MANUAL",
      +                                  "MANUAL_CLEARED",
      +                                  "PAYMENT_LINK",
      +                                  "SYSTEM_RULE"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "responsibilityCenterTypeKey": {
      +                                "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                "type": "string"
      +                              },
      +                              "to": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "percentageBps": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  },
      +                                  "responsibilityCenterName": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "responsibilityCenterName",
      +                                  "percentageBps"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            },
      +                            "required": [
      +                              "responsibilityCenterTypeKey"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "lineNumber",
      +                        "responsibilityCenters",
      +                        "matchedButLost"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "minItems": 1,
      +                    "type": "array"
      +                  },
      +                  "portfolioTransactionId": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "timestamp": {
      +                    "format": "date-time",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "portfolioTransactionId",
      +                  "timestamp",
      +                  "lines"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            },
      +            "detail": {
      +              "const": "transactions",
      +              "type": "string"
      +            },
      +            "firstAffectedAt": {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            "lastAffectedAt": {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            "scannedCount": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "transactionViews": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "classification": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "detail": {
      +                        "type": "string"
      +                      },
      +                      "reason": {
      +                        "type": "string"
      +                      },
      +                      "state": {
      +                        "enum": [
      +                          "categorized",
      +                          "uncategorized",
      +                          "error"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "suggestedAction": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "description": {
      +                            "type": "string"
      +                          },
      +                          "tool": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "description"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    },
      +                    "required": [
      +                      "state"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "errorDetails": {
      +                    "items": {},
      +                    "type": "array"
      +                  },
      +                  "errorMessage": {
      +                    "type": "string"
      +                  },
      +                  "fileAttachments": {
      +                    "items": {},
      +                    "type": "array"
      +                  },
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "intercompanyPair": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "counterpartOperationType": {
      +                        "type": "string"
      +                      },
      +                      "counterpartPortfolioName": {
      +                        "type": "string"
      +                      },
      +                      "counterpartPortfolioSlug": {
      +                        "minLength": 1,
      +                        "pattern": "^[a-z0-9-]+$",
      +                        "type": "string"
      +                      },
      +                      "counterpartPortfolioTransactionId": {
      +                        "type": "string"
      +                      },
      +                      "counterpartStatus": {
      +                        "enum": [
      +                          "PROPOSED",
      +                          "ERROR",
      +                          "POSTED",
      +                          "CLOSED"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "counterpartSubType": {
      +                        "type": "string"
      +                      },
      +                      "lotLinkCount": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "pairId": {
      +                        "type": "string"
      +                      },
      +                      "side": {
      +                        "enum": [
      +                          "SEND",
      +                          "RECEIVE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "treatment": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "pairId",
      +                      "side",
      +                      "counterpartPortfolioName",
      +                      "counterpartPortfolioSlug",
      +                      "counterpartPortfolioTransactionId",
      +                      "counterpartOperationType",
      +                      "counterpartStatus",
      +                      "lotLinkCount"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "journalEntry": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "adjustmentJournalImportProvenance": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "importRef": {
      +                            "maxLength": 128,
      +                            "minLength": 1,
      +                            "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      +                            "type": "string"
      +                          },
      +                          "sourceFile": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "name": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "uploadedAt": {
      +                                "format": "date-time",
      +                                "type": "string"
      +                              },
      +                              "uploader": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "name": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "name"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            },
      +                            "required": [
      +                              "name",
      +                              "uploadedAt",
      +                              "uploader"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "sourceRows": {
      +                            "items": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "appliedResolutions": {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "schemaVersion": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    },
      +                                    "values": {
      +                                      "additionalProperties": {
      +                                        "minLength": 1,
      +                                        "type": "string"
      +                                      },
      +                                      "propertyNames": {
      +                                        "anyOf": [
      +                                          {
      +                                            "enum": [
      +                                              "accountNumber",
      +                                              "counterpartyExternalId",
      +                                              "counterpartyName"
      +                                            ],
      +                                            "type": "string"
      +                                          },
      +                                          {
      +                                            "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        ]
      +                                      },
      +                                      "type": "object"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "schemaVersion",
      +                                    "values"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                "entryId": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "journalLineNumber": {
      +                                  "exclusiveMinimum": 0,
      +                                  "maximum": 9007199254740991,
      +                                  "type": "integer"
      +                                },
      +                                "locator": {
      +                                  "oneOf": [
      +                                    {
      +                                      "additionalProperties": false,
      +                                      "properties": {
      +                                        "format": {
      +                                          "const": "csv",
      +                                          "type": "string"
      +                                        },
      +                                        "lineNumber": {
      +                                          "maximum": 9007199254740991,
      +                                          "minimum": 1,
      +                                          "type": "integer"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "format",
      +                                        "lineNumber"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    {
      +                                      "additionalProperties": false,
      +                                      "properties": {
      +                                        "format": {
      +                                          "const": "xlsx",
      +                                          "type": "string"
      +                                        },
      +                                        "rowNumber": {
      +                                          "maximum": 9007199254740991,
      +                                          "minimum": 1,
      +                                          "type": "integer"
      +                                        },
      +                                        "sheetName": {
      +                                          "minLength": 1,
      +                                          "type": "string"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "format",
      +                                        "rowNumber",
      +                                        "sheetName"
      +                                      ],
      +                                      "type": "object"
      +                                    }
      +                                  ]
      +                                },
      +                                "normalizedValues": {
      +                                  "anyOf": [
      +                                    {
      +                                      "additionalProperties": false,
      +                                      "properties": {
      +                                        "schemaVersion": {
      +                                          "const": 1,
      +                                          "type": "number"
      +                                        },
      +                                        "values": {
      +                                          "additionalProperties": {
      +                                            "anyOf": [
      +                                              {
      +                                                "type": "string"
      +                                              },
      +                                              {
      +                                                "type": "null"
      +                                              }
      +                                            ]
      +                                          },
      +                                          "propertyNames": {
      +                                            "anyOf": [
      +                                              {
      +                                                "enum": [
      +                                                  "accountNumber",
      +                                                  "amount",
      +                                                  "counterpartyExternalId",
      +                                                  "counterpartyName",
      +                                                  "direction",
      +                                                  "effectiveDate",
      +                                                  "entryId",
      +                                                  "memo"
      +                                                ],
      +                                                "type": "string"
      +                                              },
      +                                              {
      +                                                "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                                "type": "string"
      +                                              }
      +                                            ]
      +                                          },
      +                                          "type": "object"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "schemaVersion",
      +                                        "values"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    {
      +                                      "additionalProperties": false,
      +                                      "properties": {
      +                                        "schemaVersion": {
      +                                          "const": 2,
      +                                          "type": "number"
      +                                        },
      +                                        "values": {
      +                                          "additionalProperties": {
      +                                            "anyOf": [
      +                                              {
      +                                                "type": "string"
      +                                              },
      +                                              {
      +                                                "type": "null"
      +                                              }
      +                                            ]
      +                                          },
      +                                          "propertyNames": {
      +                                            "anyOf": [
      +                                              {
      +                                                "enum": [
      +                                                  "accountNumber",
      +                                                  "amount",
      +                                                  "counterpartyExternalId",
      +                                                  "counterpartyName",
      +                                                  "direction",
      +                                                  "effectiveAt",
      +                                                  "effectiveDate",
      +                                                  "entryId",
      +                                                  "memo"
      +                                                ],
      +                                                "type": "string"
      +                                              },
      +                                              {
      +                                                "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                                "type": "string"
      +                                              }
      +                                            ]
      +                                          },
      +                                          "type": "object"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "schemaVersion",
      +                                        "values"
      +                                      ],
      +                                      "type": "object"
      +                                    }
      +                                  ]
      +                                },
      +                                "sourceRowHash": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                }
      +                              },
      +                              "required": [
      +                                "appliedResolutions",
      +                                "entryId",
      +                                "journalLineNumber",
      +                                "locator",
      +                                "normalizedValues",
      +                                "sourceRowHash"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "minItems": 1,
      +                            "type": "array"
      +                          }
      +                        },
      +                        "required": [
      +                          "importRef",
      +                          "sourceFile",
      +                          "sourceRows"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "id": {
      +                        "type": "string"
      +                      },
      +                      "isAdjustment": {
      +                        "type": "boolean"
      +                      },
      +                      "lines": {
      +                        "items": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "accountName": {
      +                              "type": "string"
      +                            },
      +                            "accountNormalBalanceType": {
      +                              "type": "string"
      +                            },
      +                            "accountNumber": {
      +                              "type": "string"
      +                            },
      +                            "accountSubType": {
      +                              "type": "string"
      +                            },
      +                            "accountType": {
      +                              "type": "string"
      +                            },
      +                            "assetAmount": {
      +                              "type": "string"
      +                            },
      +                            "assetId": {
      +                              "type": "string"
      +                            },
      +                            "assetSymbol": {
      +                              "type": "string"
      +                            },
      +                            "counterpartyName": {
      +                              "type": "string"
      +                            },
      +                            "entryType": {
      +                              "type": "string"
      +                            },
      +                            "fiatAmount": {
      +                              "type": "string"
      +                            },
      +                            "lineNumber": {
      +                              "maximum": 9007199254740991,
      +                              "minimum": -9007199254740991,
      +                              "type": "integer"
      +                            },
      +                            "lot": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "entryId": {
      +                                  "type": "string"
      +                                },
      +                                "entryKind": {
      +                                  "type": "string"
      +                                },
      +                                "id": {
      +                                  "type": "string"
      +                                },
      +                                "lotMethod": {
      +                                  "type": "string"
      +                                }
      +                              },
      +                              "required": [
      +                                "id",
      +                                "entryId",
      +                                "entryKind",
      +                                "lotMethod"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "memo": {
      +                              "type": "string"
      +                            },
      +                            "responsibilityCenterAssignments": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "percentageBps": {
      +                                    "maximum": 9007199254740991,
      +                                    "minimum": -9007199254740991,
      +                                    "type": "integer"
      +                                  },
      +                                  "responsibilityCenterCode": {
      +                                    "type": "string"
      +                                  },
      +                                  "responsibilityCenterId": {
      +                                    "type": "string"
      +                                  },
      +                                  "responsibilityCenterName": {
      +                                    "type": "string"
      +                                  },
      +                                  "responsibilityCenterType": {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "key": {
      +                                        "type": "string"
      +                                      },
      +                                      "kind": {
      +                                        "enum": [
      +                                          "COST",
      +                                          "REVENUE",
      +                                          "PROFIT",
      +                                          "INVESTMENT"
      +                                        ],
      +                                        "type": "string"
      +                                      },
      +                                      "name": {
      +                                        "type": "string"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "key",
      +                                      "name",
      +                                      "kind"
      +                                    ],
      +                                    "type": "object"
      +                                  },
      +                                  "responsibilityCenterTypeId": {
      +                                    "type": "string"
      +                                  },
      +                                  "value": {
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "responsibilityCenterTypeId",
      +                                  "responsibilityCenterId",
      +                                  "value",
      +                                  "responsibilityCenterType",
      +                                  "responsibilityCenterName",
      +                                  "percentageBps"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "transfer": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "chainId": {
      +                                  "type": "string"
      +                                },
      +                                "txHash": {
      +                                  "type": "string"
      +                                },
      +                                "txIndex": {
      +                                  "maximum": 9007199254740991,
      +                                  "minimum": -9007199254740991,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "type": "object"
      +                            }
      +                          },
      +                          "required": [
      +                            "lineNumber",
      +                            "entryType",
      +                            "fiatAmount",
      +                            "responsibilityCenterAssignments"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "memo": {
      +                        "type": "string"
      +                      },
      +                      "operationType": {
      +                        "type": "string"
      +                      },
      +                      "portfolioTransactionId": {
      +                        "type": "string"
      +                      },
      +                      "status": {
      +                        "type": "string"
      +                      },
      +                      "subType": {
      +                        "type": "string"
      +                      },
      +                      "systemNotes": {
      +                        "type": "string"
      +                      },
      +                      "timestamp": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "id",
      +                      "timestamp",
      +                      "status",
      +                      "isAdjustment",
      +                      "lines"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "memo": {
      +                    "type": "string"
      +                  },
      +                  "operationType": {
      +                    "type": "string"
      +                  },
      +                  "portfolioTransactionContext": {
      +                    "additionalProperties": {},
      +                    "propertyNames": {
      +                      "type": "string"
      +                    },
      +                    "type": "object"
      +                  },
      +                  "status": {
      +                    "type": "string"
      +                  },
      +                  "subType": {
      +                    "type": "string"
      +                  },
      +                  "systemNotes": {
      +                    "type": "string"
      +                  },
      +                  "tags": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "timestamp": {
      +                    "type": "string"
      +                  },
      +                  "walletOperations": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "assetId": {
      +                          "type": "string"
      +                        },
      +                        "assetSymbol": {
      +                          "type": "string"
      +                        },
      +                        "chainId": {
      +                          "type": "string"
      +                        },
      +                        "defiOperation": {
      +                          "type": "string"
      +                        },
      +                        "defiPositionId": {
      +                          "type": "string"
      +                        },
      +                        "defiPositionRef": {
      +                          "type": "string"
      +                        },
      +                        "fromAddress": {
      +                          "type": "string"
      +                        },
      +                        "fromAddressLabel": {
      +                          "type": "string"
      +                        },
      +                        "isSpam": {
      +                          "type": "boolean"
      +                        },
      +                        "quoteCurrency": {
      +                          "type": "string"
      +                        },
      +                        "quoteMeta": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "s": {
      +                              "enum": [
      +                                "SYNC_SOURCE",
      +                                "FMV_ENGINE",
      +                                "DERIVED_REPRESENTED",
      +                                "DERIVED_SIBLING",
      +                                "POLICY",
      +                                "MANUAL"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            "ts": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 8210266876799,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "s"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "quoteSource": {
      +                          "type": "string"
      +                        },
      +                        "stablecoinPeggedFiatCurrency": {
      +                          "type": "string"
      +                        },
      +                        "toAddress": {
      +                          "type": "string"
      +                        },
      +                        "toAddressLabel": {
      +                          "type": "string"
      +                        },
      +                        "tokenAddress": {
      +                          "type": "string"
      +                        },
      +                        "txHash": {
      +                          "type": "string"
      +                        },
      +                        "txIndex": {
      +                          "maximum": 9007199254740991,
      +                          "minimum": -9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        "type": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "string"
      +                        },
      +                        "valueQuote": {
      +                          "type": "string"
      +                        },
      +                        "walletAddress": {
      +                          "type": "string"
      +                        },
      +                        "walletName": {
      +                          "type": "string"
      +                        },
      +                        "walletTransactionId": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "type",
      +                        "txHash",
      +                        "chainId",
      +                        "txIndex",
      +                        "walletTransactionId",
      +                        "fromAddress",
      +                        "toAddress",
      +                        "value",
      +                        "tokenAddress",
      +                        "isSpam",
      +                        "walletName",
      +                        "walletAddress"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "walletSource": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "blockHeight": {
      +                        "type": "string"
      +                      },
      +                      "rawTransactionId": {
      +                        "type": "string"
      +                      },
      +                      "rawTransactionSource": {
      +                        "type": "string"
      +                      },
      +                      "timestamp": {
      +                        "type": "string"
      +                      },
      +                      "wallet": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "address": {
      +                            "type": "string"
      +                          },
      +                          "chainId": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "chainId",
      +                          "address"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "walletType": {
      +                        "enum": [
      +                          "BLOCKCHAIN",
      +                          "EXCHANGE",
      +                          "BANK"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "wallet",
      +                      "walletType",
      +                      "rawTransactionId",
      +                      "rawTransactionSource",
      +                      "blockHeight",
      +                      "timestamp"
      +                    ],
      +                    "type": "object"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "operationType",
      +                  "classification",
      +                  "timestamp",
      +                  "status",
      +                  "tags",
      +                  "fileAttachments",
      +                  "walletOperations"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            },
      +            "truncatedBy": {
      +              "enum": [
      +                "affected",
      +                "budget",
      +                "details",
      +                "scanned"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "detail",
      +            "scannedCount",
      +            "candidateCount",
      +            "affectedCount",
      +            "changes",
      +            "transactionViews"
      +          ],
      +          "type": "object"
      +        }
      +      ],
      +      "properties": {
      +        "affectedCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "candidateCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "changes": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "lines": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "account": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "byRule": {
      +                          "oneOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "saved",
      +                                  "type": "string"
      +                                },
      +                                "ruleId": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "exclusiveMinimum": 0,
      +                                  "maximum": 9007199254740991,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "ruleId",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "label": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "label",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "from": {
      +                          "maxLength": 8,
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "lockedBy": {
      +                          "enum": [
      +                            "MANUAL",
      +                            "MANUAL_CLEARED",
      +                            "PAYMENT_LINK",
      +                            "SYSTEM_RULE"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "to": {
      +                          "maxLength": 8,
      +                          "minLength": 1,
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "from",
      +                        "to"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "counterparty": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "byRule": {
      +                          "oneOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "saved",
      +                                  "type": "string"
      +                                },
      +                                "ruleId": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "exclusiveMinimum": 0,
      +                                  "maximum": 9007199254740991,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "ruleId",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "kind": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "label": {
      +                                  "const": "draft",
      +                                  "type": "string"
      +                                },
      +                                "version": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                }
      +                              },
      +                              "required": [
      +                                "kind",
      +                                "label",
      +                                "version"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "from": {
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "lockedBy": {
      +                          "enum": [
      +                            "MANUAL",
      +                            "MANUAL_CLEARED",
      +                            "PAYMENT_LINK",
      +                            "SYSTEM_RULE"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "to": {
      +                          "minLength": 1,
      +                          "type": "string"
      +                        }
      +                      },
      +                      "type": "object"
      +                    },
      +                    "lineNumber": {
      +                      "exclusiveMinimum": 0,
      +                      "maximum": 9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "matchedButLost": {
      +                      "items": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "output": {
      +                                "oneOf": [
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "enum": [
      +                                          "account",
      +                                          "counterparty"
      +                                        ],
      +                                        "type": "string"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind"
      +                                    ],
      +                                    "type": "object"
      +                                  },
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "responsibilityCenter",
      +                                        "type": "string"
      +                                      },
      +                                      "responsibilityCenterTypeKey": {
      +                                        "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                        "type": "string"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "responsibilityCenterTypeKey"
      +                                    ],
      +                                    "type": "object"
      +                                  }
      +                                ]
      +                              },
      +                              "ruleId": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleId",
      +                              "version",
      +                              "output"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "output": {
      +                                "oneOf": [
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "enum": [
      +                                          "account",
      +                                          "counterparty"
      +                                        ],
      +                                        "type": "string"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind"
      +                                    ],
      +                                    "type": "object"
      +                                  },
      +                                  {
      +                                    "additionalProperties": false,
      +                                    "properties": {
      +                                      "kind": {
      +                                        "const": "responsibilityCenter",
      +                                        "type": "string"
      +                                      },
      +                                      "responsibilityCenterTypeKey": {
      +                                        "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                        "type": "string"
      +                                      }
      +                                    },
      +                                    "required": [
      +                                      "kind",
      +                                      "responsibilityCenterTypeKey"
      +                                    ],
      +                                    "type": "object"
      +                                  }
      +                                ]
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version",
      +                              "output"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "type": "array"
      +                    },
      +                    "responsibilityCenters": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "byRule": {
      +                            "oneOf": [
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "saved",
      +                                    "type": "string"
      +                                  },
      +                                  "ruleId": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "version": {
      +                                    "exclusiveMinimum": 0,
      +                                    "maximum": 9007199254740991,
      +                                    "type": "integer"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "ruleId",
      +                                  "version"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "label": {
      +                                    "const": "draft",
      +                                    "type": "string"
      +                                  },
      +                                  "version": {
      +                                    "const": 1,
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "label",
      +                                  "version"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "from": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "percentageBps": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              },
      +                              "responsibilityCenterName": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "responsibilityCenterName",
      +                              "percentageBps"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "lockedBy": {
      +                            "enum": [
      +                              "MANUAL",
      +                              "MANUAL_CLEARED",
      +                              "PAYMENT_LINK",
      +                              "SYSTEM_RULE"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          "responsibilityCenterTypeKey": {
      +                            "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                            "type": "string"
      +                          },
      +                          "to": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "percentageBps": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              },
      +                              "responsibilityCenterName": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "responsibilityCenterName",
      +                              "percentageBps"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        },
      +                        "required": [
      +                          "responsibilityCenterTypeKey"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    }
      +                  },
      +                  "required": [
      +                    "lineNumber",
      +                    "responsibilityCenters",
      +                    "matchedButLost"
      +                  ],
      +                  "type": "object"
      +                },
      +                "minItems": 1,
      +                "type": "array"
      +              },
      +              "portfolioTransactionId": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "timestamp": {
      +                "format": "date-time",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "portfolioTransactionId",
      +              "timestamp",
      +              "lines"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 100,
      +          "type": "array"
      +        },
      +        "detail": {
      +          "enum": [
      +            "compact",
      +            "transactions"
      +          ],
      +          "type": "string"
      +        },
      +        "firstAffectedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "lastAffectedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "scannedCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "transactionViews": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "classification": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "reason": {
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "enum": [
      +                      "categorized",
      +                      "uncategorized",
      +                      "error"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "suggestedAction": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "description": {
      +                        "type": "string"
      +                      },
      +                      "tool": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "description"
      +                    ],
      +                    "type": "object"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              "errorDetails": {
      +                "items": {},
      +                "type": "array"
      +              },
      +              "errorMessage": {
      +                "type": "string"
      +              },
      +              "fileAttachments": {
      +                "items": {},
      +                "type": "array"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "intercompanyPair": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "counterpartOperationType": {
      +                    "type": "string"
      +                  },
      +                  "counterpartPortfolioName": {
      +                    "type": "string"
      +                  },
      +                  "counterpartPortfolioSlug": {
      +                    "minLength": 1,
      +                    "pattern": "^[a-z0-9-]+$",
      +                    "type": "string"
      +                  },
      +                  "counterpartPortfolioTransactionId": {
      +                    "type": "string"
      +                  },
      +                  "counterpartStatus": {
      +                    "enum": [
      +                      "PROPOSED",
      +                      "ERROR",
      +                      "POSTED",
      +                      "CLOSED"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "counterpartSubType": {
      +                    "type": "string"
      +                  },
      +                  "lotLinkCount": {
      +                    "maximum": 9007199254740991,
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "pairId": {
      +                    "type": "string"
      +                  },
      +                  "side": {
      +                    "enum": [
      +                      "SEND",
      +                      "RECEIVE"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "treatment": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "pairId",
      +                  "side",
      +                  "counterpartPortfolioName",
      +                  "counterpartPortfolioSlug",
      +                  "counterpartPortfolioTransactionId",
      +                  "counterpartOperationType",
      +                  "counterpartStatus",
      +                  "lotLinkCount"
      +                ],
      +                "type": "object"
      +              },
      +              "journalEntry": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "adjustmentJournalImportProvenance": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "importRef": {
      +                        "maxLength": 128,
      +                        "minLength": 1,
      +                        "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      +                        "type": "string"
      +                      },
      +                      "sourceFile": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "name": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          },
      +                          "uploadedAt": {
      +                            "format": "date-time",
      +                            "type": "string"
      +                          },
      +                          "uploader": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "name": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "name"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        },
      +                        "required": [
      +                          "name",
      +                          "uploadedAt",
      +                          "uploader"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "sourceRows": {
      +                        "items": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "appliedResolutions": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "schemaVersion": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                },
      +                                "values": {
      +                                  "additionalProperties": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "propertyNames": {
      +                                    "anyOf": [
      +                                      {
      +                                        "enum": [
      +                                          "accountNumber",
      +                                          "counterpartyExternalId",
      +                                          "counterpartyName"
      +                                        ],
      +                                        "type": "string"
      +                                      },
      +                                      {
      +                                        "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                        "type": "string"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "type": "object"
      +                                }
      +                              },
      +                              "required": [
      +                                "schemaVersion",
      +                                "values"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "entryId": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "journalLineNumber": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            },
      +                            "locator": {
      +                              "oneOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "format": {
      +                                      "const": "csv",
      +                                      "type": "string"
      +                                    },
      +                                    "lineNumber": {
      +                                      "maximum": 9007199254740991,
      +                                      "minimum": 1,
      +                                      "type": "integer"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "format",
      +                                    "lineNumber"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "format": {
      +                                      "const": "xlsx",
      +                                      "type": "string"
      +                                    },
      +                                    "rowNumber": {
      +                                      "maximum": 9007199254740991,
      +                                      "minimum": 1,
      +                                      "type": "integer"
      +                                    },
      +                                    "sheetName": {
      +                                      "minLength": 1,
      +                                      "type": "string"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "format",
      +                                    "rowNumber",
      +                                    "sheetName"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "normalizedValues": {
      +                              "anyOf": [
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "schemaVersion": {
      +                                      "const": 1,
      +                                      "type": "number"
      +                                    },
      +                                    "values": {
      +                                      "additionalProperties": {
      +                                        "anyOf": [
      +                                          {
      +                                            "type": "string"
      +                                          },
      +                                          {
      +                                            "type": "null"
      +                                          }
      +                                        ]
      +                                      },
      +                                      "propertyNames": {
      +                                        "anyOf": [
      +                                          {
      +                                            "enum": [
      +                                              "accountNumber",
      +                                              "amount",
      +                                              "counterpartyExternalId",
      +                                              "counterpartyName",
      +                                              "direction",
      +                                              "effectiveDate",
      +                                              "entryId",
      +                                              "memo"
      +                                            ],
      +                                            "type": "string"
      +                                          },
      +                                          {
      +                                            "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        ]
      +                                      },
      +                                      "type": "object"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "schemaVersion",
      +                                    "values"
      +                                  ],
      +                                  "type": "object"
      +                                },
      +                                {
      +                                  "additionalProperties": false,
      +                                  "properties": {
      +                                    "schemaVersion": {
      +                                      "const": 2,
      +                                      "type": "number"
      +                                    },
      +                                    "values": {
      +                                      "additionalProperties": {
      +                                        "anyOf": [
      +                                          {
      +                                            "type": "string"
      +                                          },
      +                                          {
      +                                            "type": "null"
      +                                          }
      +                                        ]
      +                                      },
      +                                      "propertyNames": {
      +                                        "anyOf": [
      +                                          {
      +                                            "enum": [
      +                                              "accountNumber",
      +                                              "amount",
      +                                              "counterpartyExternalId",
      +                                              "counterpartyName",
      +                                              "direction",
      +                                              "effectiveAt",
      +                                              "effectiveDate",
      +                                              "entryId",
      +                                              "memo"
      +                                            ],
      +                                            "type": "string"
      +                                          },
      +                                          {
      +                                            "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                            "type": "string"
      +                                          }
      +                                        ]
      +                                      },
      +                                      "type": "object"
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "schemaVersion",
      +                                    "values"
      +                                  ],
      +                                  "type": "object"
      +                                }
      +                              ]
      +                            },
      +                            "sourceRowHash": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "appliedResolutions",
      +                            "entryId",
      +                            "journalLineNumber",
      +                            "locator",
      +                            "normalizedValues",
      +                            "sourceRowHash"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "minItems": 1,
      +                        "type": "array"
      +                      }
      +                    },
      +                    "required": [
      +                      "importRef",
      +                      "sourceFile",
      +                      "sourceRows"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "isAdjustment": {
      +                    "type": "boolean"
      +                  },
      +                  "lines": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "accountName": {
      +                          "type": "string"
      +                        },
      +                        "accountNormalBalanceType": {
      +                          "type": "string"
      +                        },
      +                        "accountNumber": {
      +                          "type": "string"
      +                        },
      +                        "accountSubType": {
      +                          "type": "string"
      +                        },
      +                        "accountType": {
      +                          "type": "string"
      +                        },
      +                        "assetAmount": {
      +                          "type": "string"
      +                        },
      +                        "assetId": {
      +                          "type": "string"
      +                        },
      +                        "assetSymbol": {
      +                          "type": "string"
      +                        },
      +                        "counterpartyName": {
      +                          "type": "string"
      +                        },
      +                        "entryType": {
      +                          "type": "string"
      +                        },
      +                        "fiatAmount": {
      +                          "type": "string"
      +                        },
      +                        "lineNumber": {
      +                          "maximum": 9007199254740991,
      +                          "minimum": -9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        "lot": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "entryId": {
      +                              "type": "string"
      +                            },
      +                            "entryKind": {
      +                              "type": "string"
      +                            },
      +                            "id": {
      +                              "type": "string"
      +                            },
      +                            "lotMethod": {
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "id",
      +                            "entryId",
      +                            "entryKind",
      +                            "lotMethod"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "memo": {
      +                          "type": "string"
      +                        },
      +                        "responsibilityCenterAssignments": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "percentageBps": {
      +                                "maximum": 9007199254740991,
      +                                "minimum": -9007199254740991,
      +                                "type": "integer"
      +                              },
      +                              "responsibilityCenterCode": {
      +                                "type": "string"
      +                              },
      +                              "responsibilityCenterId": {
      +                                "type": "string"
      +                              },
      +                              "responsibilityCenterName": {
      +                                "type": "string"
      +                              },
      +                              "responsibilityCenterType": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "key": {
      +                                    "type": "string"
      +                                  },
      +                                  "kind": {
      +                                    "enum": [
      +                                      "COST",
      +                                      "REVENUE",
      +                                      "PROFIT",
      +                                      "INVESTMENT"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "name": {
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "key",
      +                                  "name",
      +                                  "kind"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "responsibilityCenterTypeId": {
      +                                "type": "string"
      +                              },
      +                              "value": {
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "responsibilityCenterTypeId",
      +                              "responsibilityCenterId",
      +                              "value",
      +                              "responsibilityCenterType",
      +                              "responsibilityCenterName",
      +                              "percentageBps"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "transfer": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "chainId": {
      +                              "type": "string"
      +                            },
      +                            "txHash": {
      +                              "type": "string"
      +                            },
      +                            "txIndex": {
      +                              "maximum": 9007199254740991,
      +                              "minimum": -9007199254740991,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "lineNumber",
      +                        "entryType",
      +                        "fiatAmount",
      +                        "responsibilityCenterAssignments"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "memo": {
      +                    "type": "string"
      +                  },
      +                  "operationType": {
      +                    "type": "string"
      +                  },
      +                  "portfolioTransactionId": {
      +                    "type": "string"
      +                  },
      +                  "status": {
      +                    "type": "string"
      +                  },
      +                  "subType": {
      +                    "type": "string"
      +                  },
      +                  "systemNotes": {
      +                    "type": "string"
      +                  },
      +                  "timestamp": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "timestamp",
      +                  "status",
      +                  "isAdjustment",
      +                  "lines"
      +                ],
      +                "type": "object"
      +              },
      +              "memo": {
      +                "type": "string"
      +              },
      +              "operationType": {
      +                "type": "string"
      +              },
      +              "portfolioTransactionContext": {
      +                "additionalProperties": {},
      +                "propertyNames": {
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "status": {
      +                "type": "string"
      +              },
      +              "subType": {
      +                "type": "string"
      +              },
      +              "systemNotes": {
      +                "type": "string"
      +              },
      +              "tags": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "timestamp": {
      +                "type": "string"
      +              },
      +              "walletOperations": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "assetId": {
      +                      "type": "string"
      +                    },
      +                    "assetSymbol": {
      +                      "type": "string"
      +                    },
      +                    "chainId": {
      +                      "type": "string"
      +                    },
      +                    "defiOperation": {
      +                      "type": "string"
      +                    },
      +                    "defiPositionId": {
      +                      "type": "string"
      +                    },
      +                    "defiPositionRef": {
      +                      "type": "string"
      +                    },
      +                    "fromAddress": {
      +                      "type": "string"
      +                    },
      +                    "fromAddressLabel": {
      +                      "type": "string"
      +                    },
      +                    "isSpam": {
      +                      "type": "boolean"
      +                    },
      +                    "quoteCurrency": {
      +                      "type": "string"
      +                    },
      +                    "quoteMeta": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "s": {
      +                          "enum": [
      +                            "SYNC_SOURCE",
      +                            "FMV_ENGINE",
      +                            "DERIVED_REPRESENTED",
      +                            "DERIVED_SIBLING",
      +                            "POLICY",
      +                            "MANUAL"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "ts": {
      +                          "exclusiveMinimum": 0,
      +                          "maximum": 8210266876799,
      +                          "type": "integer"
      +                        }
      +                      },
      +                      "required": [
      +                        "s"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "quoteSource": {
      +                      "type": "string"
      +                    },
      +                    "stablecoinPeggedFiatCurrency": {
      +                      "type": "string"
      +                    },
      +                    "toAddress": {
      +                      "type": "string"
      +                    },
      +                    "toAddressLabel": {
      +                      "type": "string"
      +                    },
      +                    "tokenAddress": {
      +                      "type": "string"
      +                    },
      +                    "txHash": {
      +                      "type": "string"
      +                    },
      +                    "txIndex": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "type": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "string"
      +                    },
      +                    "valueQuote": {
      +                      "type": "string"
      +                    },
      +                    "walletAddress": {
      +                      "type": "string"
      +                    },
      +                    "walletName": {
      +                      "type": "string"
      +                    },
      +                    "walletTransactionId": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "type",
      +                    "txHash",
      +                    "chainId",
      +                    "txIndex",
      +                    "walletTransactionId",
      +                    "fromAddress",
      +                    "toAddress",
      +                    "value",
      +                    "tokenAddress",
      +                    "isSpam",
      +                    "walletName",
      +                    "walletAddress"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "walletSource": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "blockHeight": {
      +                    "type": "string"
      +                  },
      +                  "rawTransactionId": {
      +                    "type": "string"
      +                  },
      +                  "rawTransactionSource": {
      +                    "type": "string"
      +                  },
      +                  "timestamp": {
      +                    "type": "string"
      +                  },
      +                  "wallet": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "address": {
      +                        "type": "string"
      +                      },
      +                      "chainId": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "chainId",
      +                      "address"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "walletType": {
      +                    "enum": [
      +                      "BLOCKCHAIN",
      +                      "EXCHANGE",
      +                      "BANK"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "wallet",
      +                  "walletType",
      +                  "rawTransactionId",
      +                  "rawTransactionSource",
      +                  "blockHeight",
      +                  "timestamp"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "operationType",
      +              "classification",
      +              "timestamp",
      +              "status",
      +              "tags",
      +              "fileAttachments",
      +              "walletOperations"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 100,
      +          "type": "array"
      +        },
      +        "truncatedBy": {
      +          "enum": [
      +            "affected",
      +            "budget",
      +            "details",
      +            "scanned"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "detail",
      +        "scannedCount",
      +        "candidateCount",
      +        "affectedCount",
      +        "changes"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "properties": {
      +    "affectedCount": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "candidateCount": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "changes": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "lines": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "account": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "byRule": {
      +                      "oneOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "saved",
      +                              "type": "string"
      +                            },
      +                            "ruleRef": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "ruleRef",
      +                            "version"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "label": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "const": 1,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "label",
      +                            "version"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      ]
      +                    },
      +                    "from": {
      +                      "maxLength": 8,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "lockedBy": {
      +                      "enum": [
      +                        "MANUAL",
      +                        "MANUAL_CLEARED",
      +                        "PAYMENT_LINK",
      +                        "SYSTEM_RULE"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "to": {
      +                      "maxLength": 8,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "from",
      +                    "to"
      +                  ],
      +                  "type": "object"
      +                },
      +                "counterparty": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "byRule": {
      +                      "oneOf": [
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "saved",
      +                              "type": "string"
      +                            },
      +                            "ruleRef": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "exclusiveMinimum": 0,
      +                              "maximum": 9007199254740991,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "ruleRef",
      +                            "version"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "kind": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "label": {
      +                              "const": "draft",
      +                              "type": "string"
      +                            },
      +                            "version": {
      +                              "const": 1,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "kind",
      +                            "label",
      +                            "version"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      ]
      +                    },
      +                    "from": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "lockedBy": {
      +                      "enum": [
      +                        "MANUAL",
      +                        "MANUAL_CLEARED",
      +                        "PAYMENT_LINK",
      +                        "SYSTEM_RULE"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "to": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "lineNumber": {
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 9007199254740991,
      +                  "type": "integer"
      +                },
      +                "matchedButLost": {
      +                  "items": {
      +                    "oneOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "kind": {
      +                            "const": "saved",
      +                            "type": "string"
      +                          },
      +                          "output": {
      +                            "oneOf": [
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "enum": [
      +                                      "account",
      +                                      "counterparty"
      +                                    ],
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "responsibilityCenter",
      +                                    "type": "string"
      +                                  },
      +                                  "responsibilityCenterTypeKey": {
      +                                    "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "responsibilityCenterTypeKey"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "ruleRef": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          },
      +                          "version": {
      +                            "exclusiveMinimum": 0,
      +                            "maximum": 9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "kind",
      +                          "ruleRef",
      +                          "version",
      +                          "output"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "kind": {
      +                            "const": "draft",
      +                            "type": "string"
      +                          },
      +                          "label": {
      +                            "const": "draft",
      +                            "type": "string"
      +                          },
      +                          "output": {
      +                            "oneOf": [
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "enum": [
      +                                      "account",
      +                                      "counterparty"
      +                                    ],
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "kind": {
      +                                    "const": "responsibilityCenter",
      +                                    "type": "string"
      +                                  },
      +                                  "responsibilityCenterTypeKey": {
      +                                    "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "kind",
      +                                  "responsibilityCenterTypeKey"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "version": {
      +                            "const": 1,
      +                            "type": "number"
      +                          }
      +                        },
      +                        "required": [
      +                          "kind",
      +                          "label",
      +                          "version",
      +                          "output"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    ]
      +                  },
      +                  "type": "array"
      +                },
      +                "responsibilityCenters": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "byRule": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "saved",
      +                                "type": "string"
      +                              },
      +                              "ruleRef": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "exclusiveMinimum": 0,
      +                                "maximum": 9007199254740991,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "ruleRef",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "label": {
      +                                "const": "draft",
      +                                "type": "string"
      +                              },
      +                              "version": {
      +                                "const": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "label",
      +                              "version"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "from": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "percentageBps": {
      +                            "exclusiveMinimum": 0,
      +                            "maximum": 9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "responsibilityCenterName": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "responsibilityCenterName",
      +                          "percentageBps"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "lockedBy": {
      +                        "enum": [
      +                          "MANUAL",
      +                          "MANUAL_CLEARED",
      +                          "PAYMENT_LINK",
      +                          "SYSTEM_RULE"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      "responsibilityCenterTypeKey": {
      +                        "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +                        "type": "string"
      +                      },
      +                      "to": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "percentageBps": {
      +                            "exclusiveMinimum": 0,
      +                            "maximum": 9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "responsibilityCenterName": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "responsibilityCenterName",
      +                          "percentageBps"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    },
      +                    "required": [
      +                      "responsibilityCenterTypeKey"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "lineNumber",
      +                "responsibilityCenters",
      +                "matchedButLost"
      +              ],
      +              "type": "object"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          },
      +          "portfolioTransactionId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "timestamp": {
      +            "format": "date-time",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "portfolioTransactionId",
      +          "timestamp",
      +          "lines"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    },
      +    "detail": {
      +      "enum": [
      +        "compact",
      +        "transactions"
      +      ],
      +      "type": "string"
      +    },
      +    "firstAffectedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "jobId": {
      +      "type": "string"
      +    },
      +    "lastAffectedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "enum": [
      +        "sync",
      +        "async"
      +      ],
      +      "type": "string"
      +    },
      +    "result": {
      +      "oneOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "data": {},
      +            "success": {
      +              "const": true,
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "success"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "error": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "body": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "currentUsage": {
      +                          "type": "number"
      +                        },
      +                        "limit": {
      +                          "type": "number"
      +                        },
      +                        "usageType": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "usageType",
      +                        "currentUsage",
      +                        "limit"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {}
      +                  ]
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "name",
      +                "message",
      +                "body"
      +              ],
      +              "type": "object"
      +            },
      +            "success": {
      +              "const": false,
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "success",
      +            "error"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "scannedCount": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "status": {
      +      "const": "queued",
      +      "type": "string"
      +    },
      +    "transactionViews": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "classification": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "detail": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "state": {
      +                "enum": [
      +                  "categorized",
      +                  "uncategorized",
      +                  "error"
      +                ],
      +                "type": "string"
      +              },
      +              "suggestedAction": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "description": {
      +                    "type": "string"
      +                  },
      +                  "tool": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "description"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          "errorDetails": {
      +            "items": {},
      +            "type": "array"
      +          },
      +          "errorMessage": {
      +            "type": "string"
      +          },
      +          "fileAttachments": {
      +            "items": {},
      +            "type": "array"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "intercompanyPair": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "counterpartOperationType": {
      +                "type": "string"
      +              },
      +              "counterpartPortfolioName": {
      +                "type": "string"
      +              },
      +              "counterpartPortfolioSlug": {
      +                "minLength": 1,
      +                "pattern": "^[a-z0-9-]+$",
      +                "type": "string"
      +              },
      +              "counterpartPortfolioTransactionId": {
      +                "type": "string"
      +              },
      +              "counterpartStatus": {
      +                "enum": [
      +                  "PROPOSED",
      +                  "ERROR",
      +                  "POSTED",
      +                  "CLOSED"
      +                ],
      +                "type": "string"
      +              },
      +              "counterpartSubType": {
      +                "type": "string"
      +              },
      +              "lotLinkCount": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "pairId": {
      +                "type": "string"
      +              },
      +              "side": {
      +                "enum": [
      +                  "SEND",
      +                  "RECEIVE"
      +                ],
      +                "type": "string"
      +              },
      +              "treatment": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "pairId",
      +              "side",
      +              "counterpartPortfolioName",
      +              "counterpartPortfolioSlug",
      +              "counterpartPortfolioTransactionId",
      +              "counterpartOperationType",
      +              "counterpartStatus",
      +              "lotLinkCount"
      +            ],
      +            "type": "object"
      +          },
      +          "journalEntry": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "adjustmentJournalImportProvenance": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "importRef": {
      +                    "maxLength": 128,
      +                    "minLength": 1,
      +                    "pattern": "^adjustment-journal-import-[a-z0-9-]+$",
      +                    "type": "string"
      +                  },
      +                  "sourceFile": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "name": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "uploadedAt": {
      +                        "format": "date-time",
      +                        "type": "string"
      +                      },
      +                      "uploader": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "name": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "name"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    },
      +                    "required": [
      +                      "name",
      +                      "uploadedAt",
      +                      "uploader"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "sourceRows": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "appliedResolutions": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "schemaVersion": {
      +                              "const": 1,
      +                              "type": "number"
      +                            },
      +                            "values": {
      +                              "additionalProperties": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "propertyNames": {
      +                                "anyOf": [
      +                                  {
      +                                    "enum": [
      +                                      "accountNumber",
      +                                      "counterpartyExternalId",
      +                                      "counterpartyName"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  {
      +                                    "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                    "type": "string"
      +                                  }
      +                                ]
      +                              },
      +                              "type": "object"
      +                            }
      +                          },
      +                          "required": [
      +                            "schemaVersion",
      +                            "values"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "entryId": {
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "journalLineNumber": {
      +                          "exclusiveMinimum": 0,
      +                          "maximum": 9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        "locator": {
      +                          "oneOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "format": {
      +                                  "const": "csv",
      +                                  "type": "string"
      +                                },
      +                                "lineNumber": {
      +                                  "maximum": 9007199254740991,
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "format",
      +                                "lineNumber"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "format": {
      +                                  "const": "xlsx",
      +                                  "type": "string"
      +                                },
      +                                "rowNumber": {
      +                                  "maximum": 9007199254740991,
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                },
      +                                "sheetName": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                }
      +                              },
      +                              "required": [
      +                                "format",
      +                                "rowNumber",
      +                                "sheetName"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "normalizedValues": {
      +                          "anyOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "schemaVersion": {
      +                                  "const": 1,
      +                                  "type": "number"
      +                                },
      +                                "values": {
      +                                  "additionalProperties": {
      +                                    "anyOf": [
      +                                      {
      +                                        "type": "string"
      +                                      },
      +                                      {
      +                                        "type": "null"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "propertyNames": {
      +                                    "anyOf": [
      +                                      {
      +                                        "enum": [
      +                                          "accountNumber",
      +                                          "amount",
      +                                          "counterpartyExternalId",
      +                                          "counterpartyName",
      +                                          "direction",
      +                                          "effectiveDate",
      +                                          "entryId",
      +                                          "memo"
      +                                        ],
      +                                        "type": "string"
      +                                      },
      +                                      {
      +                                        "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                        "type": "string"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "type": "object"
      +                                }
      +                              },
      +                              "required": [
      +                                "schemaVersion",
      +                                "values"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "schemaVersion": {
      +                                  "const": 2,
      +                                  "type": "number"
      +                                },
      +                                "values": {
      +                                  "additionalProperties": {
      +                                    "anyOf": [
      +                                      {
      +                                        "type": "string"
      +                                      },
      +                                      {
      +                                        "type": "null"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "propertyNames": {
      +                                    "anyOf": [
      +                                      {
      +                                        "enum": [
      +                                          "accountNumber",
      +                                          "amount",
      +                                          "counterpartyExternalId",
      +                                          "counterpartyName",
      +                                          "direction",
      +                                          "effectiveAt",
      +                                          "effectiveDate",
      +                                          "entryId",
      +                                          "memo"
      +                                        ],
      +                                        "type": "string"
      +                                      },
      +                                      {
      +                                        "pattern": "^responsibilityCenter:[a-z0-9]+(_[a-z0-9]+)*$",
      +                                        "type": "string"
      +                                      }
      +                                    ]
      +                                  },
      +                                  "type": "object"
      +                                }
      +                              },
      +                              "required": [
      +                                "schemaVersion",
      +                                "values"
      +                              ],
      +                              "type": "object"
      +                            }
      +                          ]
      +                        },
      +                        "sourceRowHash": {
      +                          "minLength": 1,
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "appliedResolutions",
      +                        "entryId",
      +                        "journalLineNumber",
      +                        "locator",
      +                        "normalizedValues",
      +                        "sourceRowHash"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "minItems": 1,
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "importRef",
      +                  "sourceFile",
      +                  "sourceRows"
      +                ],
      +                "type": "object"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "isAdjustment": {
      +                "type": "boolean"
      +              },
      +              "lines": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "accountName": {
      +                      "type": "string"
      +                    },
      +                    "accountNormalBalanceType": {
      +                      "type": "string"
      +                    },
      +                    "accountNumber": {
      +                      "type": "string"
      +                    },
      +                    "accountSubType": {
      +                      "type": "string"
      +                    },
      +                    "accountType": {
      +                      "type": "string"
      +                    },
      +                    "assetAmount": {
      +                      "type": "string"
      +                    },
      +                    "assetId": {
      +                      "type": "string"
      +                    },
      +                    "assetSymbol": {
      +                      "type": "string"
      +                    },
      +                    "counterpartyName": {
      +                      "type": "string"
      +                    },
      +                    "entryType": {
      +                      "type": "string"
      +                    },
      +                    "fiatAmount": {
      +                      "type": "string"
      +                    },
      +                    "lineNumber": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "lot": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "entryId": {
      +                          "type": "string"
      +                        },
      +                        "entryKind": {
      +                          "type": "string"
      +                        },
      +                        "id": {
      +                          "type": "string"
      +                        },
      +                        "lotMethod": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "id",
      +                        "entryId",
      +                        "entryKind",
      +                        "lotMethod"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "memo": {
      +                      "type": "string"
      +                    },
      +                    "responsibilityCenterAssignments": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "percentageBps": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "responsibilityCenterCode": {
      +                            "type": "string"
      +                          },
      +                          "responsibilityCenterId": {
      +                            "type": "string"
      +                          },
      +                          "responsibilityCenterName": {
      +                            "type": "string"
      +                          },
      +                          "responsibilityCenterType": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "key": {
      +                                "type": "string"
      +                              },
      +                              "kind": {
      +                                "enum": [
      +                                  "COST",
      +                                  "REVENUE",
      +                                  "PROFIT",
      +                                  "INVESTMENT"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "name": {
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "key",
      +                              "name",
      +                              "kind"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "responsibilityCenterTypeId": {
      +                            "type": "string"
      +                          },
      +                          "value": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "responsibilityCenterTypeId",
      +                          "responsibilityCenterId",
      +                          "value",
      +                          "responsibilityCenterType",
      +                          "responsibilityCenterName",
      +                          "percentageBps"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "transfer": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "chainId": {
      +                          "type": "string"
      +                        },
      +                        "txHash": {
      +                          "type": "string"
      +                        },
      +                        "txIndex": {
      +                          "maximum": 9007199254740991,
      +                          "minimum": -9007199254740991,
      +                          "type": "integer"
      +                        }
      +                      },
      +                      "type": "object"
      +                    }
      +                  },
      +                  "required": [
      +                    "lineNumber",
      +                    "entryType",
      +                    "fiatAmount",
      +                    "responsibilityCenterAssignments"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "memo": {
      +                "type": "string"
      +              },
      +              "operationType": {
      +                "type": "string"
      +              },
      +              "portfolioTransactionId": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "type": "string"
      +              },
      +              "subType": {
      +                "type": "string"
      +              },
      +              "systemNotes": {
      +                "type": "string"
      +              },
      +              "timestamp": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "timestamp",
      +              "status",
      +              "isAdjustment",
      +              "lines"
      +            ],
      +            "type": "object"
      +          },
      +          "memo": {
      +            "type": "string"
      +          },
      +          "operationType": {
      +            "type": "string"
      +          },
      +          "portfolioTransactionContext": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "subType": {
      +            "type": "string"
      +          },
      +          "systemNotes": {
      +            "type": "string"
      +          },
      +          "tags": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "timestamp": {
      +            "type": "string"
      +          },
      +          "walletOperations": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "assetId": {
      +                  "type": "string"
      +                },
      +                "assetSymbol": {
      +                  "type": "string"
      +                },
      +                "chainId": {
      +                  "type": "string"
      +                },
      +                "defiOperation": {
      +                  "type": "string"
      +                },
      +                "defiPositionId": {
      +                  "type": "string"
      +                },
      +                "defiPositionRef": {
      +                  "type": "string"
      +                },
      +                "fromAddress": {
      +                  "type": "string"
      +                },
      +                "fromAddressLabel": {
      +                  "type": "string"
      +                },
      +                "isSpam": {
      +                  "type": "boolean"
      +                },
      +                "quoteCurrency": {
      +                  "type": "string"
      +                },
      +                "quoteMeta": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "s": {
      +                      "enum": [
      +                        "SYNC_SOURCE",
      +                        "FMV_ENGINE",
      +                        "DERIVED_REPRESENTED",
      +                        "DERIVED_SIBLING",
      +                        "POLICY",
      +                        "MANUAL"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "ts": {
      +                      "exclusiveMinimum": 0,
      +                      "maximum": 8210266876799,
      +                      "type": "integer"
      +                    }
      +                  },
      +                  "required": [
      +                    "s"
      +                  ],
      +                  "type": "object"
      +                },
      +                "quoteSource": {
      +                  "type": "string"
      +                },
      +                "stablecoinPeggedFiatCurrency": {
      +                  "type": "string"
      +                },
      +                "toAddress": {
      +                  "type": "string"
      +                },
      +                "toAddressLabel": {
      +                  "type": "string"
      +                },
      +                "tokenAddress": {
      +                  "type": "string"
      +                },
      +                "txHash": {
      +                  "type": "string"
      +                },
      +                "txIndex": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "type": {
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "string"
      +                },
      +                "valueQuote": {
      +                  "type": "string"
      +                },
      +                "walletAddress": {
      +                  "type": "string"
      +                },
      +                "walletName": {
      +                  "type": "string"
      +                },
      +                "walletTransactionId": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "txHash",
      +                "chainId",
      +                "txIndex",
      +                "walletTransactionId",
      +                "fromAddress",
      +                "toAddress",
      +                "value",
      +                "tokenAddress",
      +                "isSpam",
      +                "walletName",
      +                "walletAddress"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "walletSource": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "blockHeight": {
      +                "type": "string"
      +              },
      +              "rawTransactionId": {
      +                "type": "string"
      +              },
      +              "rawTransactionSource": {
      +                "type": "string"
      +              },
      +              "timestamp": {
      +                "type": "string"
      +              },
      +              "wallet": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "address": {
      +                    "type": "string"
      +                  },
      +                  "chainId": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "chainId",
      +                  "address"
      +                ],
      +                "type": "object"
      +              },
      +              "walletType": {
      +                "enum": [
      +                  "BLOCKCHAIN",
      +                  "EXCHANGE",
      +                  "BANK"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "wallet",
      +              "walletType",
      +              "rawTransactionId",
      +              "rawTransactionSource",
      +              "blockHeight",
      +              "timestamp"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "operationType",
      +          "classification",
      +          "timestamp",
      +          "status",
      +          "tags",
      +          "fileAttachments",
      +          "walletOperations"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    },
      +    "truncatedBy": {
      +      "enum": [
      +        "affected",
      +        "budget",
      +        "details",
      +        "scanned"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  6. Changed16 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "enum": [
      -          "create"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "name",
      -      "conditions",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "anyOf": [
      -      {
      -        "properties": {
      -          "name": {
      -            "$ref": "#/properties/name"
      -          }
      -        },
      -        "required": [
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "conditions": {
      -            "$ref": "#/properties/conditions"
      -          }
      -        },
      -        "required": [
      -          "conditions"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "action": {
      -            "$ref": "#/properties/action"
      -          }
      -        },
      -        "required": [
      -          "action"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "properties": {
      -      "action": {
      -        "$ref": "#/properties/action"
      -      },
      -      "conditions": {
      -        "$ref": "#/properties/conditions"
      -      },
      -      "name": {
      -        "$ref": "#/properties/name"
      -      },
      -      "operation": {
      -        "enum": [
      -          "update"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "enabled": {
      -        "$ref": "#/properties/enabled"
      -      },
      -      "operation": {
      -        "enum": [
      -          "set_enabled"
      -        ],
      -        "type": "string"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "ruleRef": {
      -        "$ref": "#/properties/ruleRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "ruleRef",
      -      "enabled"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "enum": [
      -          "reorder"
      -        ],
      -        "type": "string"
      -      },
      -      "orderedRuleRefs": {
      -        "$ref": "#/properties/orderedRuleRefs"
      -      },
      -      "portfolioRef": {
      -        "$ref": "#/properties/portfolioRef"
      -      },
      -      "workspaceRef": {
      -        "$ref": "#/properties/workspaceRef"
      -      }
      -    },
      -    "required": [
      -      "workspaceRef",
      -      "portfolioRef",
      -      "operation",
      -      "orderedRuleRefs"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "$ref": "#/properties/action"
      +      },
      +      "conditions": {
      +        "$ref": "#/properties/conditions"
      +      },
      +      "enabled": {
      +        "$ref": "#/properties/enabled"
      +      },
      +      "name": {
      +        "$ref": "#/properties/name"
      +      },
      +      "operation": {
      +        "description": "Create a new rule.",
      +        "enum": [
      +          "create"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "name",
      +      "conditions",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "anyOf": [
      +      {
      +        "properties": {
      +          "name": {
      +            "$ref": "#/properties/name"
      +          }
      +        },
      +        "required": [
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "conditions": {
      +            "$ref": "#/properties/conditions"
      +          }
      +        },
      +        "required": [
      +          "conditions"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "action": {
      +            "$ref": "#/properties/action"
      +          }
      +        },
      +        "required": [
      +          "action"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "properties": {
      +      "action": {
      +        "$ref": "#/properties/action"
      +      },
      +      "conditions": {
      +        "$ref": "#/properties/conditions"
      +      },
      +      "name": {
      +        "$ref": "#/properties/name"
      +      },
      +      "operation": {
      +        "description": "Change the name, conditions, or actions of an existing rule.",
      +        "enum": [
      +          "update"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "ruleRef": {
      +        "$ref": "#/properties/ruleRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "ruleRef"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "enabled": {
      +        "$ref": "#/properties/enabled"
      +      },
      +      "operation": {
      +        "description": "Turn an existing rule on or off without changing it.",
      +        "enum": [
      +          "set_enabled"
      +        ],
      +        "type": "string"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "ruleRef": {
      +        "$ref": "#/properties/ruleRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "ruleRef",
      +      "enabled"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "description": "Set the evaluation order of every rule in the portfolio.",
      +        "enum": [
      +          "reorder"
      +        ],
      +        "type": "string"
      +      },
      +      "orderedRuleRefs": {
      +        "$ref": "#/properties/orderedRuleRefs"
      +      },
      +      "portfolioRef": {
      +        "$ref": "#/properties/portfolioRef"
      +      },
      +      "workspaceRef": {
      +        "$ref": "#/properties/workspaceRef"
      +      }
      +    },
      +    "required": [
      +      "workspaceRef",
      +      "portfolioRef",
      +      "operation",
      +      "orderedRuleRefs"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / action / properties / actions / description
      Added value: +"What the rule changes when it matches. At most one action of each type."
    • changedInput schema / properties / action / properties / actions / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "counterpartyName": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "target": {
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "SET_COUNTERPARTY"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "counterpartyName"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "accountNumber": {
      -        "maxLength": 8,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "target": {
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "SET_LEDGER_ACCOUNT"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "accountNumber"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "responsibilityCenterAssignments": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "responsibilityCenterName": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "responsibilityCenterTypeKey": {
      -              "description": "Stable responsibility-center type key. It uses lowercase alphanumeric snake_case segments.",
      -              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "responsibilityCenterTypeKey",
      -            "responsibilityCenterName"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "target": {
      -        "enum": [
      -          "LINE"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "SET_RESPONSIBILITY_CENTERS"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "target",
      -      "responsibilityCenterAssignments"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "counterpartyName": {
      +        "description": "Counterparty name, from list_counterparties.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_COUNTERPARTY"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "counterpartyName"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "accountNumber": {
      +        "description": "Chart-of-accounts number, from list_ledger_accounts.",
      +        "maxLength": 8,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_LEDGER_ACCOUNT"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "accountNumber"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "responsibilityCenterAssignments": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "responsibilityCenterName": {
      +              "description": "Responsibility center name, from list_responsibility_centers.",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "responsibilityCenterTypeKey": {
      +              "description": "Stable responsibility-center type key. It uses lowercase alphanumeric snake_case segments.",
      +              "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "responsibilityCenterTypeKey",
      +            "responsibilityCenterName"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "target": {
      +        "description": "What the change applies to: a journal line or the transaction.",
      +        "enum": [
      +          "LINE"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Which change this action makes.",
      +        "enum": [
      +          "SET_RESPONSIBILITY_CENTERS"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "target",
      +      "responsibilityCenterAssignments"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / action / properties / formatVersion / description
      Added value: +"Structure version of this envelope. Always 1."
    • addedInput schema / properties / conditions / properties / all / description
      Added value: +"Conditions that must all match for the rule to fire. At least one is required."
    • changedInput schema / properties / conditions / properties / all / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "fromAddressLabel"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals",
      -          "contains",
      -          "notEquals",
      -          "notContains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "toAddressLabel"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals",
      -          "contains",
      -          "notEquals",
      -          "notContains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "fromAddress"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals",
      -          "contains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "toAddress"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals",
      -          "contains"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "direction"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals",
      -          "notEquals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "IN",
      -          "OUT",
      -          "GAS"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "asset"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "assetClass"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "enum": [
      -            "ERC20",
      -            "FIAT",
      -            "NATIVE",
      -            "REBASE_LST",
      -            "INTEREST_BEARING",
      -            "VALUE_ACCRUING",
      -            "LP_SHARE",
      -            "DEBT",
      -            "REFLECT",
      -            "VOTE_ESCROWED",
      -            "NFT"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "stablecoin"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "chain"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "operationType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "enum": [
      -            "DEPOSIT_FIAT",
      -            "INCOME",
      -            "REFUND",
      -            "WITHDRAWAL_FIAT",
      -            "EXPENSE",
      -            "BUY",
      -            "SELL",
      -            "EXCHANGE",
      -            "SWAP",
      -            "MOVE",
      -            "INTERCOMPANY_SEND",
      -            "INTERCOMPANY_RECEIVE",
      -            "STAKE",
      -            "UNSTAKE",
      -            "PROTOCOL_DEPOSIT",
      -            "PROTOCOL_WITHDRAW",
      -            "VAULT_DEPOSIT",
      -            "VAULT_WITHDRAW",
      -            "LP_IN",
      -            "LP_OUT",
      -            "LOAN_BORROW",
      -            "LOAN_REPAY",
      -            "LOAN_LIQUIDATION",
      -            "LEND_GIVE",
      -            "LEND_WITHDRAW",
      -            "ADJUSTMENT",
      -            "UNCATEGORIZED",
      -            "SPAM"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "accountSubType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "enum": [
      -            "EXT",
      -            "BNK",
      -            "INC",
      -            "EXP",
      -            "LINT",
      -            "LLIQ",
      -            "LQLOSS",
      -            "CLOSS",
      -            "CBNK",
      -            "CBAS",
      -            "CRE",
      -            "CGL",
      -            "CEXP",
      -            "CINC",
      -            "TRADING_REVENUE",
      -            "COGS",
      -            "INVENTORY_VALUATION_ADJUSTMENT",
      -            "INVENTORY_COGS_ADJUSTMENT",
      -            "INVENTORY_WRITE_DOWN",
      -            "INVENTORY_REMEASUREMENT_GAIN",
      -            "INVENTORY_REMEASUREMENT_LOSS",
      -            "CNP",
      -            "UINC",
      -            "UEXP",
      -            "OFEXP",
      -            "OFINC",
      -            "ICINV",
      -            "CAP",
      -            "UNREALISED_FV_GAIN",
      -            "UNREALISED_FV_LOSS",
      -            "CFVA"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "enum": [
      -              "gt"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "enum": [
      -              "lt"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "enum": [
      -              "gte"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "enum": [
      -              "lte"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "pattern": "^-?\\d+(\\.\\d+)?$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "field": {
      -            "enum": [
      -              "fiatValue"
      -            ],
      -            "type": "string"
      -          },
      -          "operator": {
      -            "enum": [
      -              "between"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^-?\\d+(\\.\\d+)?$",
      -                  "type": "string"
      -                },
      -                {
      -                  "pattern": "^-?\\d+(\\.\\d+)?$",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "maxItems": 2,
      -            "minItems": 2,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "field",
      -          "operator",
      -          "value"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "entryType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "equals"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "DR",
      -          "CR"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "accountType"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "enum": [
      -            "ASSET",
      -            "LIABILITY",
      -            "EQUITY",
      -            "INCOME",
      -            "EXPENSE"
      -          ],
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "wallet"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "address": {
      -              "description": "Wallet address",
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "chainId": {
      -              "description": "Chain ID",
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "chainId",
      -            "address"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "accountNumber"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "maxLength": 8,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operator",
      -      "field",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "field": {
      -        "enum": [
      -          "counterparty"
      -        ],
      -        "type": "string"
      -      },
      -      "operator": {
      -        "enum": [
      -          "in",
      -          "notIn"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "field",
      -      "operator",
      -      "value"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "fromAddressLabel"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains",
      +          "notEquals",
      +          "notContains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "toAddressLabel"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains",
      +          "notEquals",
      +          "notContains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "fromAddress"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "toAddress"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "contains"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "direction"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals",
      +          "notEquals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "enum": [
      +          "IN",
      +          "OUT",
      +          "GAS"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "asset"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "assetClass"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "ERC20",
      +            "FIAT",
      +            "NATIVE",
      +            "REBASE_LST",
      +            "INTEREST_BEARING",
      +            "VALUE_ACCRUING",
      +            "LP_SHARE",
      +            "DEBT",
      +            "REFLECT",
      +            "VOTE_ESCROWED",
      +            "NFT"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "stablecoin"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "chain"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "operationType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "DEPOSIT_FIAT",
      +            "INCOME",
      +            "REFUND",
      +            "WITHDRAWAL_FIAT",
      +            "EXPENSE",
      +            "BUY",
      +            "SELL",
      +            "EXCHANGE",
      +            "SWAP",
      +            "MOVE",
      +            "INTERCOMPANY_SEND",
      +            "INTERCOMPANY_RECEIVE",
      +            "STAKE",
      +            "UNSTAKE",
      +            "PROTOCOL_DEPOSIT",
      +            "PROTOCOL_WITHDRAW",
      +            "VAULT_DEPOSIT",
      +            "VAULT_WITHDRAW",
      +            "LP_IN",
      +            "LP_OUT",
      +            "LOAN_BORROW",
      +            "LOAN_REPAY",
      +            "LOAN_LIQUIDATION",
      +            "LEND_GIVE",
      +            "LEND_WITHDRAW",
      +            "ADJUSTMENT",
      +            "UNCATEGORIZED",
      +            "SPAM"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountSubType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "EXT",
      +            "BNK",
      +            "INC",
      +            "EXP",
      +            "LINT",
      +            "LLIQ",
      +            "LQLOSS",
      +            "CLOSS",
      +            "CBNK",
      +            "CBAS",
      +            "CRE",
      +            "CGL",
      +            "CEXP",
      +            "CINC",
      +            "TRADING_REVENUE",
      +            "COGS",
      +            "INVENTORY_VALUATION_ADJUSTMENT",
      +            "INVENTORY_COGS_ADJUSTMENT",
      +            "INVENTORY_WRITE_DOWN",
      +            "INVENTORY_REMEASUREMENT_GAIN",
      +            "INVENTORY_REMEASUREMENT_LOSS",
      +            "CNP",
      +            "UINC",
      +            "UEXP",
      +            "OFEXP",
      +            "OFINC",
      +            "ICINV",
      +            "CAP",
      +            "UNREALISED_FV_GAIN",
      +            "UNREALISED_FV_LOSS",
      +            "CFVA"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "gt"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "lt"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "gte"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "lte"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Decimal fiat amount to compare against.",
      +            "pattern": "^-?\\d+(\\.\\d+)?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "field": {
      +            "description": "Condition field.",
      +            "enum": [
      +              "fiatValue"
      +            ],
      +            "type": "string"
      +          },
      +          "operator": {
      +            "description": "Comparison operator.",
      +            "enum": [
      +              "between"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Inclusive [low, high] decimal-string range.",
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "pattern": "^-?\\d+(\\.\\d+)?$",
      +                  "type": "string"
      +                },
      +                {
      +                  "pattern": "^-?\\d+(\\.\\d+)?$",
      +                  "type": "string"
      +                }
      +              ]
      +            },
      +            "maxItems": 2,
      +            "minItems": 2,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "operator",
      +          "value"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "entryType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "equals"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "enum": [
      +          "DR",
      +          "CR"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountType"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "enum": [
      +            "ASSET",
      +            "LIABILITY",
      +            "EQUITY",
      +            "INCOME",
      +            "EXPENSE"
      +          ],
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "wallet"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "Wallet address",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "chainId": {
      +              "description": "Chain ID",
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "chainId",
      +            "address"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "accountNumber"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "description": "Chart-of-accounts number, from list_ledger_accounts.",
      +          "maxLength": 8,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operator",
      +      "field",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "Which part of the transaction this condition tests.",
      +        "enum": [
      +          "counterparty"
      +        ],
      +        "type": "string"
      +      },
      +      "operator": {
      +        "description": "How the field is compared with value.",
      +        "enum": [
      +          "in",
      +          "notIn"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The value the field is compared against.",
      +        "items": {
      +          "description": "Counterparty name, from list_counterparties.",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "operator",
      +      "value"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / conditions / properties / formatVersion / description
      Added value: +"Structure version of this envelope. Always 1."
    • changedInput schema / properties / enabled / anyOf
      Previous value: -[
      -  {
      -    "default": true,
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]New value: +[
      +  {
      +    "default": true,
      +    "description": "Whether the rule evaluates. A disabled rule is kept but never fires.",
      +    "type": "boolean"
      +  },
      +  {
      +    "description": "Whether the rule evaluates. A disabled rule is kept but never fires.",
      +    "type": "boolean"
      +  }
      +]
    • addedInput schema / properties / enabled / description
      Added value: +"Whether the rule evaluates. A disabled rule is kept but never fires."
    • addedInput schema / properties / name / description
      Added value: +"Human-readable rule name, shown in the rules list."
    • addedInput schema / properties / operation / description
      Added value: +"Create a new rule."
    • addedInput schema / properties / orderedRuleRefs / description
      Added value: +"Every rule handle in the portfolio, in the order they should evaluate. Rules apply in order, so earlier rules win."
    • addedInput schema / properties / orderedRuleRefs / items / description
      Added value: +"Saved rule handle, from list_accounting_rules."
    • addedInput schema / properties / portfolioRef / description
      Added value: +"Portfolio name or slug inside that workspace. Call list_portfolios, or find_portfolios when the user named one, to resolve it."
    • addedInput schema / properties / ruleRef / description
      Added value: +"Saved rule handle, from list_accounting_rules."
    • addedInput schema / properties / workspaceRef / description
      Added value: +"Workspace name or slug. Call list_workspaces, or find_workspaces when the user named one, to resolve it."
  7. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructive, non-idempotent, open-world behavior. The description adds genuinely new traits: the dry-run semantics of preview, the read-only nature of operation: current, and the note that results flag a truncated scan. It does not cover permissions or what deletion does to already-applied journals, but it exceeds the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, front-loaded with the capability list before the preview mechanics. The trailing clause about truncated scans is slightly orphaned but still useful, and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with deeply nested condition/action schemas and an output schema, the description correctly focuses on operation-level behavior and the dry-run model rather than re-documenting fields. It omits any note about references required per operation (ruleRef, orderedRuleRefs), which the schema covers but which an agent would benefit from seeing summarized.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including the operation enum's per-value semantics, so the schema carries most of the load and baseline 3 applies. The description only adds the preview parameter's cross-operation behavior, which is marginal over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific set of verbs (create, update, enable/disable, reorder, delete) against a named resource (saved accounting rules) and frames the scope as 'the rule's whole authoring lifecycle', which cleanly distinguishes it from the read-only sibling list_accounting_rules and the apply_accounting_rules executor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operational context: preview: true works on any mutating operation and operation: current previews the saved ruleset. However, it never explicitly names the alternatives (list_accounting_rules for reading, apply_accounting_rules for running) or states when this tool should NOT be used, so routing is left partly to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources