changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "additionalProperties": false,
+ "properties": {
+ "actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "counterpartyName": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "target": {
+ "const": "LINE",
+ "type": "string"
+ },
+ "type": {
+ "const": "SET_COUNTERPARTY",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountNumber": {
+ "maxLength": 8,
+ "minLength": 1,
+ "type": "string"
+ },
+ "target": {
+ "const": "LINE",
+ "type": "string"
+ },
+ "type": {
+ "const": "SET_LEDGER_ACCOUNT",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "responsibilityCenterAssignments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "responsibilityCenterName": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "responsibilityCenterTypeKey": {
+ "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "target": {
+ "const": "LINE",
+ "type": "string"
+ },
+ "type": {
+ "const": "SET_RESPONSIBILITY_CENTERS",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target",
+ "responsibilityCenterAssignments"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "formatVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "formatVersion",
+ "actions"
+ ],
+ "type": "object"
+ },
+ "conditions": {
+ "additionalProperties": false,
+ "properties": {
+ "all": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fromAddressLabel",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals",
+ "contains",
+ "notEquals",
+ "notContains"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "toAddressLabel",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals",
+ "contains",
+ "notEquals",
+ "notContains"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fromAddress",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals",
+ "contains"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "toAddress",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals",
+ "contains"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "direction",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals",
+ "notEquals"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "enum": [
+ "IN",
+ "OUT",
+ "GAS"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "asset",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "assetClass",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "enum": [
+ "ERC20",
+ "FIAT",
+ "NATIVE",
+ "REBASE_LST",
+ "INTEREST_BEARING",
+ "VALUE_ACCRUING",
+ "LP_SHARE",
+ "DEBT",
+ "REFLECT",
+ "VOTE_ESCROWED",
+ "NFT"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "stablecoin",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "chain",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "operationType",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "enum": [
+ "DEPOSIT_FIAT",
+ "INCOME",
+ "REFUND",
+ "WITHDRAWAL_FIAT",
+ "EXPENSE",
+ "BUY",
+ "SELL",
+ "EXCHANGE",
+ "SWAP",
+ "MOVE",
+ "INTERCOMPANY_SEND",
+ "INTERCOMPANY_RECEIVE",
+ "STAKE",
+ "UNSTAKE",
+ "PROTOCOL_DEPOSIT",
+ "PROTOCOL_WITHDRAW",
+ "VAULT_DEPOSIT",
+ "VAULT_WITHDRAW",
+ "LP_IN",
+ "LP_OUT",
+ "LOAN_BORROW",
+ "LOAN_REPAY",
+ "LOAN_LIQUIDATION",
+ "LEND_GIVE",
+ "LEND_WITHDRAW",
+ "ADJUSTMENT",
+ "UNCATEGORIZED",
+ "SPAM"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "accountSubType",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "enum": [
+ "EXT",
+ "BNK",
+ "INC",
+ "EXP",
+ "LINT",
+ "LLIQ",
+ "LQLOSS",
+ "CLOSS",
+ "CBNK",
+ "CBAS",
+ "CRE",
+ "CGL",
+ "CEXP",
+ "CINC",
+ "TRADING_REVENUE",
+ "COGS",
+ "INVENTORY_VALUATION_ADJUSTMENT",
+ "INVENTORY_COGS_ADJUSTMENT",
+ "INVENTORY_WRITE_DOWN",
+ "INVENTORY_REMEASUREMENT_GAIN",
+ "INVENTORY_REMEASUREMENT_LOSS",
+ "CNP",
+ "UINC",
+ "UEXP",
+ "OFEXP",
+ "OFINC",
+ "ICINV",
+ "CAP",
+ "UNREALISED_FV_GAIN",
+ "UNREALISED_FV_LOSS",
+ "CFVA"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fiatValue",
+ "type": "string"
+ },
+ "operator": {
+ "const": "gt",
+ "type": "string"
+ },
+ "value": {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fiatValue",
+ "type": "string"
+ },
+ "operator": {
+ "const": "lt",
+ "type": "string"
+ },
+ "value": {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fiatValue",
+ "type": "string"
+ },
+ "operator": {
+ "const": "gte",
+ "type": "string"
+ },
+ "value": {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fiatValue",
+ "type": "string"
+ },
+ "operator": {
+ "const": "lte",
+ "type": "string"
+ },
+ "value": {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "fiatValue",
+ "type": "string"
+ },
+ "operator": {
+ "const": "between",
+ "type": "string"
+ },
+ "value": {
+ "maxItems": 2,
+ "minItems": 2,
+ "prefixItems": [
+ {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ },
+ {
+ "pattern": "^-?\\d+(\\.\\d+)?$",
+ "type": "string"
+ }
+ ],
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "entryType",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "equals"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "enum": [
+ "DR",
+ "CR"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "accountType",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "enum": [
+ "ASSET",
+ "LIABILITY",
+ "EQUITY",
+ "INCOME",
+ "EXPENSE"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "wallet",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "chainId": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "address"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "accountNumber",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "maxLength": 8,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "operator",
+ "field",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "const": "counterparty",
+ "type": "string"
+ },
+ "operator": {
+ "enum": [
+ "in",
+ "notIn"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "formatVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "formatVersion",
+ "all"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "hasInvalidDefinition": {
+ "type": "boolean"
+ },
+ "hasUnresolvedReferences": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "ruleRef": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "enabled",
+ "version",
+ "hasInvalidDefinition",
+ "hasUnresolvedReferences",
+ "createdAt",
+ "updatedAt",
+ "ruleRef"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "pagination": {
+ "additionalProperties": false,
+ "properties": {
+ "nextPageToken": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "pageSize": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pageSize"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "data",
+ "pagination"
+ ],
+ "type": "object"
+}