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"
+ }
+]
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"
+}