changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "appProgress": {
+ "additionalProperties": false,
+ "properties": {
+ "completed": {
+ "type": "number"
+ },
+ "total": {
+ "type": "number"
+ },
+ "transactionsSynced": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "completed",
+ "total",
+ "transactionsSynced"
+ ],
+ "type": "object"
+ },
+ "completedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "details": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "requestId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ "finishedOn": {
+ "type": "number"
+ },
+ "kind": {
+ "const": "job",
+ "type": "string"
+ },
+ "outcome": {
+ "additionalProperties": false,
+ "properties": {
+ "classificationState": {
+ "type": "string"
+ },
+ "errorTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "hasError": {
+ "type": "boolean"
+ },
+ "operationType": {
+ "type": "string"
+ },
+ "suggestedAction": {},
+ "transactionId": {
+ "type": "string"
+ },
+ "type": {
+ "const": "portfolio_transaction",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "transactionId",
+ "hasError",
+ "errorTypes",
+ "suggestedAction"
+ ],
+ "type": "object"
+ },
+ "progress": {
+ "type": "number"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "downloadUrl": {
+ "type": "string"
+ },
+ "fileSize": {
+ "type": "number"
+ },
+ "format": {
+ "enum": [
+ "xlsx",
+ "pdf",
+ "json"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "downloadUrl",
+ "fileSize",
+ "format"
+ ],
+ "type": "object"
+ },
+ "returnValue": {},
+ "status": {
+ "enum": [
+ "pending",
+ "active",
+ "delayed",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "subject": {
+ "additionalProperties": false,
+ "properties": {
+ "commandType": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "portfolio_transaction",
+ "type": "string"
+ },
+ "transactionId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "transactionId"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "enum": [
+ "sync",
+ "export",
+ "recompute",
+ "reclassify"
+ ],
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "required": [
+ "requestId",
+ "type",
+ "status",
+ "progress",
+ "createdAt",
+ "updatedAt",
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "completedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "details": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "requestId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ "kind": {
+ "const": "report",
+ "type": "string"
+ },
+ "progressPercent": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "result": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": {
+ "const": "totals",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "totals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": {
+ "const": "full",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "totals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "rows": {},
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "totalsOnly": {
+ "type": "boolean"
+ },
+ "type": {
+ "const": "json",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "rows",
+ "totals"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "processing",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "progressPercent",
+ "createdAt",
+ "kind",
+ "requestId"
+ ],
+ "type": "object"
+ }
+ ],
+ "properties": {
+ "appProgress": {
+ "additionalProperties": false,
+ "properties": {
+ "completed": {
+ "type": "number"
+ },
+ "total": {
+ "type": "number"
+ },
+ "transactionsSynced": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "completed",
+ "total",
+ "transactionsSynced"
+ ],
+ "type": "object"
+ },
+ "completedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "format": "date-time",
+ "type": "string"
+ }
+ ]
+ },
+ "createdAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "format": "date-time",
+ "type": "string"
+ }
+ ]
+ },
+ "error": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "details": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "requestId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "details": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "requestId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "finishedOn": {
+ "type": "number"
+ },
+ "kind": {
+ "enum": [
+ "job",
+ "report"
+ ],
+ "type": "string"
+ },
+ "outcome": {
+ "additionalProperties": false,
+ "properties": {
+ "classificationState": {
+ "type": "string"
+ },
+ "errorTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "hasError": {
+ "type": "boolean"
+ },
+ "operationType": {
+ "type": "string"
+ },
+ "suggestedAction": {},
+ "transactionId": {
+ "type": "string"
+ },
+ "type": {
+ "const": "portfolio_transaction",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "transactionId",
+ "hasError",
+ "errorTypes",
+ "suggestedAction"
+ ],
+ "type": "object"
+ },
+ "progress": {
+ "type": "number"
+ },
+ "progressPercent": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "requestId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ },
+ "result": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "downloadUrl": {
+ "type": "string"
+ },
+ "fileSize": {
+ "type": "number"
+ },
+ "format": {
+ "enum": [
+ "xlsx",
+ "pdf",
+ "json"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "downloadUrl",
+ "fileSize",
+ "format"
+ ],
+ "type": "object"
+ },
+ {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": {
+ "const": "totals",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "totals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": {
+ "const": "full",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "totals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "rows": {},
+ "totals": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "percentGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "totalsOnly": {
+ "type": "boolean"
+ },
+ "type": {
+ "const": "json",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "rows",
+ "totals"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ ]
+ },
+ "returnValue": {},
+ "status": {
+ "enum": [
+ "pending",
+ "active",
+ "delayed",
+ "completed",
+ "failed",
+ "processing"
+ ],
+ "type": "string"
+ },
+ "subject": {
+ "additionalProperties": false,
+ "properties": {
+ "commandType": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "portfolio_transaction",
+ "type": "string"
+ },
+ "transactionId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "transactionId"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "enum": [
+ "sync",
+ "export",
+ "recompute",
+ "reclassify"
+ ],
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "required": [
+ "requestId",
+ "status",
+ "createdAt",
+ "kind"
+ ],
+ "type": "object"
+}