Files
jarca-ledger-mcp/tests/contract_snapshots/response_contract_v1_0.json
T

102 lines
2.7 KiB
JSON

{
"contract_version": "1.0",
"runtime_exposure": "unexposed",
"policy": {
"breaking_changes": ["remove_required_key", "change_required_type", "change_required_structure"],
"additive_changes": ["add_optional_field"]
},
"scopes": {
"health": {
"required": {
"success": "bool",
"server": "str",
"db_path": "str",
"schema_version": "str",
"active_transactions": "int"
}
},
"status": {
"required": {
"success": "bool",
"db_path": "str",
"exists": "bool",
"size_bytes": "int",
"mtime": "str",
"table_counts": {"type": "dict", "required": {"accounts": "int", "transactions": "int"}},
"aggregate_totals": {"type": "dict", "required": {"month": "str", "by_cashflow_kind": "dict"}}
}
},
"list": {
"required": {
"success": "bool",
"accounts": "list",
"count": "int"
},
"items": {
"accounts": {
"required": {
"id": "str",
"name": "str",
"type": "str",
"institution": "str",
"currency": "str",
"active": "bool",
"statement_status": "str",
"liquidity_bucket": "str"
}
}
}
},
"report": {
"required": {
"success": "bool",
"month": "str",
"income": "int",
"expenses": "int",
"net_cashflow": "int",
"savings_rate": ["float", "none"],
"by_type": "dict",
"by_cashflow_kind": "dict"
}
},
"mutation_success_envelope": {
"required": {
"success": "bool",
"account": {"type": "dict", "required": {"id": "str", "name": "str", "type": "str", "active": "bool"}}
}
},
"manual_asset_mutation": {
"required": {
"success": "bool",
"manual_asset": {"type": "dict", "required": {"id": "str", "name": "str", "active": "bool", "valuation_date": "str", "liquidity_bucket": "str", "source_note": "str"}}
}
},
"asset_snapshot_preview": {
"required": {
"success": "bool",
"basis_date": "str",
"source": "str",
"is_closed_snapshot": "bool",
"total_assets": "int",
"total_liabilities": "int",
"net_worth": "int",
"warnings": "list"
}
},
"asset_snapshot_close": {
"required": {
"success": "bool",
"basis_date": "str",
"source": "str",
"is_closed_snapshot": "bool",
"snapshot_run_id": "str",
"is_correction": "bool",
"inserted_count": "int",
"total_assets": "int",
"total_liabilities": "int",
"net_worth": "int"
}
}
}
}