@dizzlkheinz/ynab-mcpb 0.26.2 → 0.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -634,6 +634,26 @@ export declare const ExecutionActionRecordSchema: z.ZodDiscriminatedUnion<[z.Zod
634
634
  transaction: z.ZodNull;
635
635
  reason: z.ZodString;
636
636
  bulk_chunk_index: z.ZodNumber;
637
+ }, z.core.$strip>, z.ZodObject<{
638
+ type: z.ZodLiteral<"batch_update_failed">;
639
+ transaction: z.ZodNull;
640
+ reason: z.ZodString;
641
+ }, z.core.$strip>, z.ZodObject<{
642
+ type: z.ZodLiteral<"batch_reconcile_failed">;
643
+ transaction: z.ZodNull;
644
+ reason: z.ZodString;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ type: z.ZodLiteral<"reconciliation_complete">;
647
+ transaction: z.ZodNull;
648
+ reason: z.ZodString;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ type: z.ZodLiteral<"diagnostic_step3_entry">;
651
+ transaction: z.ZodNull;
652
+ reason: z.ZodString;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ type: z.ZodLiteral<"diagnostic_unmatched_ynab">;
655
+ transaction: z.ZodRecord<z.ZodString, z.ZodUnknown>;
656
+ reason: z.ZodString;
637
657
  }, z.core.$strip>], "type">;
638
658
  export type ExecutionActionRecord = z.infer<typeof ExecutionActionRecordSchema>;
639
659
  export declare const ExecutionSummarySchema: z.ZodObject<{
@@ -826,6 +846,26 @@ export declare const ExecutionResultSchema: z.ZodObject<{
826
846
  transaction: z.ZodNull;
827
847
  reason: z.ZodString;
828
848
  bulk_chunk_index: z.ZodNumber;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ type: z.ZodLiteral<"batch_update_failed">;
851
+ transaction: z.ZodNull;
852
+ reason: z.ZodString;
853
+ }, z.core.$strip>, z.ZodObject<{
854
+ type: z.ZodLiteral<"batch_reconcile_failed">;
855
+ transaction: z.ZodNull;
856
+ reason: z.ZodString;
857
+ }, z.core.$strip>, z.ZodObject<{
858
+ type: z.ZodLiteral<"reconciliation_complete">;
859
+ transaction: z.ZodNull;
860
+ reason: z.ZodString;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ type: z.ZodLiteral<"diagnostic_step3_entry">;
863
+ transaction: z.ZodNull;
864
+ reason: z.ZodString;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ type: z.ZodLiteral<"diagnostic_unmatched_ynab">;
867
+ transaction: z.ZodRecord<z.ZodString, z.ZodUnknown>;
868
+ reason: z.ZodString;
829
869
  }, z.core.$strip>], "type">>;
830
870
  recommendations: z.ZodArray<z.ZodString>;
831
871
  balance_reconciliation: z.ZodOptional<z.ZodUnknown>;
@@ -866,6 +906,19 @@ export declare const CsvFormatMetadataSchema: z.ZodObject<{
866
906
  payee_column: z.ZodNullable<z.ZodString>;
867
907
  }, z.core.$strip>;
868
908
  export type CsvFormatMetadata = z.infer<typeof CsvFormatMetadataSchema>;
909
+ export declare const ExecutionSummaryOutputSchema: z.ZodObject<{
910
+ transactions_created: z.ZodNumber;
911
+ transactions_updated: z.ZodNumber;
912
+ dates_adjusted: z.ZodNumber;
913
+ dry_run: z.ZodBoolean;
914
+ balance_status: z.ZodOptional<z.ZodEnum<{
915
+ balanced: "balanced";
916
+ unbalanced: "unbalanced";
917
+ not_verified: "not_verified";
918
+ }>>;
919
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ }, z.core.$strip>;
921
+ export type ExecutionSummaryOutput = z.infer<typeof ExecutionSummaryOutputSchema>;
869
922
  export declare const StructuredReconciliationUnmatchedOnlySchema: z.ZodObject<{
870
923
  unmatched_bank: z.ZodArray<z.ZodObject<{
871
924
  id: z.ZodString;
@@ -1010,775 +1063,23 @@ export declare const StructuredReconciliationUnmatchedOnlySchema: z.ZodObject<{
1010
1063
  action_hint: z.ZodOptional<z.ZodString>;
1011
1064
  recommendation: z.ZodOptional<z.ZodString>;
1012
1065
  }, z.core.$strip>>;
1066
+ execution_summary: z.ZodOptional<z.ZodObject<{
1067
+ transactions_created: z.ZodNumber;
1068
+ transactions_updated: z.ZodNumber;
1069
+ dates_adjusted: z.ZodNumber;
1070
+ dry_run: z.ZodBoolean;
1071
+ balance_status: z.ZodOptional<z.ZodEnum<{
1072
+ balanced: "balanced";
1073
+ unbalanced: "unbalanced";
1074
+ not_verified: "not_verified";
1075
+ }>>;
1076
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodString>>;
1077
+ }, z.core.$strip>>;
1013
1078
  }, z.core.$strict>;
1014
1079
  export type StructuredReconciliationUnmatchedOnly = z.infer<typeof StructuredReconciliationUnmatchedOnlySchema>;
1015
- export declare const ReconcileAccountOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
1080
+ export declare const ReconcileAccountOutputSchema: z.ZodObject<{
1016
1081
  human: z.ZodString;
1017
- structured: z.ZodUnion<readonly [z.ZodObject<{
1018
- version: z.ZodString;
1019
- schema_url: z.ZodString;
1020
- generated_at: z.ZodString;
1021
- account: z.ZodObject<{
1022
- id: z.ZodOptional<z.ZodString>;
1023
- name: z.ZodOptional<z.ZodString>;
1024
- }, z.core.$strip>;
1025
- summary: z.ZodObject<{
1026
- statement_date_range: z.ZodString;
1027
- bank_transactions_count: z.ZodNumber;
1028
- ynab_transactions_count: z.ZodNumber;
1029
- ynab_in_range_count: z.ZodOptional<z.ZodNumber>;
1030
- ynab_outside_range_count: z.ZodOptional<z.ZodNumber>;
1031
- auto_matched: z.ZodNumber;
1032
- suggested_matches: z.ZodNumber;
1033
- unmatched_bank: z.ZodNumber;
1034
- unmatched_ynab: z.ZodNumber;
1035
- current_cleared_balance: z.ZodObject<{
1036
- value_milliunits: z.ZodNumber;
1037
- value: z.ZodNumber;
1038
- value_display: z.ZodString;
1039
- currency: z.ZodString;
1040
- direction: z.ZodEnum<{
1041
- credit: "credit";
1042
- debit: "debit";
1043
- balanced: "balanced";
1044
- }>;
1045
- }, z.core.$strip>;
1046
- target_statement_balance: z.ZodObject<{
1047
- value_milliunits: z.ZodNumber;
1048
- value: z.ZodNumber;
1049
- value_display: z.ZodString;
1050
- currency: z.ZodString;
1051
- direction: z.ZodEnum<{
1052
- credit: "credit";
1053
- debit: "debit";
1054
- balanced: "balanced";
1055
- }>;
1056
- }, z.core.$strip>;
1057
- discrepancy: z.ZodObject<{
1058
- value_milliunits: z.ZodNumber;
1059
- value: z.ZodNumber;
1060
- value_display: z.ZodString;
1061
- currency: z.ZodString;
1062
- direction: z.ZodEnum<{
1063
- credit: "credit";
1064
- debit: "debit";
1065
- balanced: "balanced";
1066
- }>;
1067
- }, z.core.$strip>;
1068
- discrepancy_explanation: z.ZodString;
1069
- }, z.core.$strip>;
1070
- balance: z.ZodObject<{
1071
- current_cleared: z.ZodObject<{
1072
- value_milliunits: z.ZodNumber;
1073
- value: z.ZodNumber;
1074
- value_display: z.ZodString;
1075
- currency: z.ZodString;
1076
- direction: z.ZodEnum<{
1077
- credit: "credit";
1078
- debit: "debit";
1079
- balanced: "balanced";
1080
- }>;
1081
- }, z.core.$strip>;
1082
- current_uncleared: z.ZodObject<{
1083
- value_milliunits: z.ZodNumber;
1084
- value: z.ZodNumber;
1085
- value_display: z.ZodString;
1086
- currency: z.ZodString;
1087
- direction: z.ZodEnum<{
1088
- credit: "credit";
1089
- debit: "debit";
1090
- balanced: "balanced";
1091
- }>;
1092
- }, z.core.$strip>;
1093
- current_total: z.ZodObject<{
1094
- value_milliunits: z.ZodNumber;
1095
- value: z.ZodNumber;
1096
- value_display: z.ZodString;
1097
- currency: z.ZodString;
1098
- direction: z.ZodEnum<{
1099
- credit: "credit";
1100
- debit: "debit";
1101
- balanced: "balanced";
1102
- }>;
1103
- }, z.core.$strip>;
1104
- target_statement: z.ZodObject<{
1105
- value_milliunits: z.ZodNumber;
1106
- value: z.ZodNumber;
1107
- value_display: z.ZodString;
1108
- currency: z.ZodString;
1109
- direction: z.ZodEnum<{
1110
- credit: "credit";
1111
- debit: "debit";
1112
- balanced: "balanced";
1113
- }>;
1114
- }, z.core.$strip>;
1115
- discrepancy: z.ZodObject<{
1116
- value_milliunits: z.ZodNumber;
1117
- value: z.ZodNumber;
1118
- value_display: z.ZodString;
1119
- currency: z.ZodString;
1120
- direction: z.ZodEnum<{
1121
- credit: "credit";
1122
- debit: "debit";
1123
- balanced: "balanced";
1124
- }>;
1125
- }, z.core.$strip>;
1126
- on_track: z.ZodBoolean;
1127
- discrepancy_direction: z.ZodEnum<{
1128
- balanced: "balanced";
1129
- ynab_higher: "ynab_higher";
1130
- bank_higher: "bank_higher";
1131
- }>;
1132
- }, z.core.$strip>;
1133
- insights: z.ZodArray<z.ZodObject<{
1134
- id: z.ZodString;
1135
- type: z.ZodEnum<{
1136
- repeat_amount: "repeat_amount";
1137
- near_match: "near_match";
1138
- anomaly: "anomaly";
1139
- }>;
1140
- severity: z.ZodEnum<{
1141
- info: "info";
1142
- warning: "warning";
1143
- critical: "critical";
1144
- }>;
1145
- title: z.ZodString;
1146
- description: z.ZodString;
1147
- evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1148
- }, z.core.$strip>>;
1149
- next_steps: z.ZodArray<z.ZodString>;
1150
- matches: z.ZodObject<{
1151
- auto: z.ZodArray<z.ZodObject<{
1152
- bank_transaction: z.ZodObject<{
1153
- id: z.ZodString;
1154
- date: z.ZodString;
1155
- amount: z.ZodNumber;
1156
- payee: z.ZodString;
1157
- memo: z.ZodOptional<z.ZodString>;
1158
- sourceRow: z.ZodNumber;
1159
- raw: z.ZodObject<{
1160
- date: z.ZodString;
1161
- amount: z.ZodString;
1162
- description: z.ZodString;
1163
- }, z.core.$strict>;
1164
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
- amount_money: z.ZodObject<{
1166
- value_milliunits: z.ZodNumber;
1167
- value: z.ZodNumber;
1168
- value_display: z.ZodString;
1169
- currency: z.ZodString;
1170
- direction: z.ZodEnum<{
1171
- credit: "credit";
1172
- debit: "debit";
1173
- balanced: "balanced";
1174
- }>;
1175
- }, z.core.$strip>;
1176
- }, z.core.$strip>;
1177
- ynab_transaction: z.ZodOptional<z.ZodObject<{
1178
- id: z.ZodString;
1179
- date: z.ZodString;
1180
- amount: z.ZodNumber;
1181
- payee: z.ZodNullable<z.ZodString>;
1182
- categoryName: z.ZodNullable<z.ZodString>;
1183
- cleared: z.ZodEnum<{
1184
- cleared: "cleared";
1185
- uncleared: "uncleared";
1186
- reconciled: "reconciled";
1187
- }>;
1188
- approved: z.ZodBoolean;
1189
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
- amount_money: z.ZodObject<{
1191
- value_milliunits: z.ZodNumber;
1192
- value: z.ZodNumber;
1193
- value_display: z.ZodString;
1194
- currency: z.ZodString;
1195
- direction: z.ZodEnum<{
1196
- credit: "credit";
1197
- debit: "debit";
1198
- balanced: "balanced";
1199
- }>;
1200
- }, z.core.$strip>;
1201
- }, z.core.$strip>>;
1202
- candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1203
- ynab_transaction: z.ZodObject<{
1204
- id: z.ZodString;
1205
- date: z.ZodString;
1206
- amount: z.ZodNumber;
1207
- payee: z.ZodNullable<z.ZodString>;
1208
- categoryName: z.ZodNullable<z.ZodString>;
1209
- cleared: z.ZodEnum<{
1210
- cleared: "cleared";
1211
- uncleared: "uncleared";
1212
- reconciled: "reconciled";
1213
- }>;
1214
- approved: z.ZodBoolean;
1215
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
- amount_money: z.ZodObject<{
1217
- value_milliunits: z.ZodNumber;
1218
- value: z.ZodNumber;
1219
- value_display: z.ZodString;
1220
- currency: z.ZodString;
1221
- direction: z.ZodEnum<{
1222
- credit: "credit";
1223
- debit: "debit";
1224
- balanced: "balanced";
1225
- }>;
1226
- }, z.core.$strip>;
1227
- }, z.core.$strip>;
1228
- confidence: z.ZodNumber;
1229
- match_reason: z.ZodString;
1230
- explanation: z.ZodString;
1231
- }, z.core.$strip>>>;
1232
- confidence: z.ZodEnum<{
1233
- high: "high";
1234
- medium: "medium";
1235
- low: "low";
1236
- none: "none";
1237
- }>;
1238
- confidence_score: z.ZodNumber;
1239
- match_reason: z.ZodString;
1240
- top_confidence: z.ZodOptional<z.ZodNumber>;
1241
- action_hint: z.ZodOptional<z.ZodString>;
1242
- recommendation: z.ZodOptional<z.ZodString>;
1243
- }, z.core.$strip>>;
1244
- suggested: z.ZodArray<z.ZodObject<{
1245
- bank_transaction: z.ZodObject<{
1246
- id: z.ZodString;
1247
- date: z.ZodString;
1248
- amount: z.ZodNumber;
1249
- payee: z.ZodString;
1250
- memo: z.ZodOptional<z.ZodString>;
1251
- sourceRow: z.ZodNumber;
1252
- raw: z.ZodObject<{
1253
- date: z.ZodString;
1254
- amount: z.ZodString;
1255
- description: z.ZodString;
1256
- }, z.core.$strict>;
1257
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1258
- amount_money: z.ZodObject<{
1259
- value_milliunits: z.ZodNumber;
1260
- value: z.ZodNumber;
1261
- value_display: z.ZodString;
1262
- currency: z.ZodString;
1263
- direction: z.ZodEnum<{
1264
- credit: "credit";
1265
- debit: "debit";
1266
- balanced: "balanced";
1267
- }>;
1268
- }, z.core.$strip>;
1269
- }, z.core.$strip>;
1270
- ynab_transaction: z.ZodOptional<z.ZodObject<{
1271
- id: z.ZodString;
1272
- date: z.ZodString;
1273
- amount: z.ZodNumber;
1274
- payee: z.ZodNullable<z.ZodString>;
1275
- categoryName: z.ZodNullable<z.ZodString>;
1276
- cleared: z.ZodEnum<{
1277
- cleared: "cleared";
1278
- uncleared: "uncleared";
1279
- reconciled: "reconciled";
1280
- }>;
1281
- approved: z.ZodBoolean;
1282
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
- amount_money: z.ZodObject<{
1284
- value_milliunits: z.ZodNumber;
1285
- value: z.ZodNumber;
1286
- value_display: z.ZodString;
1287
- currency: z.ZodString;
1288
- direction: z.ZodEnum<{
1289
- credit: "credit";
1290
- debit: "debit";
1291
- balanced: "balanced";
1292
- }>;
1293
- }, z.core.$strip>;
1294
- }, z.core.$strip>>;
1295
- candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1296
- ynab_transaction: z.ZodObject<{
1297
- id: z.ZodString;
1298
- date: z.ZodString;
1299
- amount: z.ZodNumber;
1300
- payee: z.ZodNullable<z.ZodString>;
1301
- categoryName: z.ZodNullable<z.ZodString>;
1302
- cleared: z.ZodEnum<{
1303
- cleared: "cleared";
1304
- uncleared: "uncleared";
1305
- reconciled: "reconciled";
1306
- }>;
1307
- approved: z.ZodBoolean;
1308
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1309
- amount_money: z.ZodObject<{
1310
- value_milliunits: z.ZodNumber;
1311
- value: z.ZodNumber;
1312
- value_display: z.ZodString;
1313
- currency: z.ZodString;
1314
- direction: z.ZodEnum<{
1315
- credit: "credit";
1316
- debit: "debit";
1317
- balanced: "balanced";
1318
- }>;
1319
- }, z.core.$strip>;
1320
- }, z.core.$strip>;
1321
- confidence: z.ZodNumber;
1322
- match_reason: z.ZodString;
1323
- explanation: z.ZodString;
1324
- }, z.core.$strip>>>;
1325
- confidence: z.ZodEnum<{
1326
- high: "high";
1327
- medium: "medium";
1328
- low: "low";
1329
- none: "none";
1330
- }>;
1331
- confidence_score: z.ZodNumber;
1332
- match_reason: z.ZodString;
1333
- top_confidence: z.ZodOptional<z.ZodNumber>;
1334
- action_hint: z.ZodOptional<z.ZodString>;
1335
- recommendation: z.ZodOptional<z.ZodString>;
1336
- }, z.core.$strip>>;
1337
- }, z.core.$strip>;
1338
- unmatched: z.ZodObject<{
1339
- bank: z.ZodArray<z.ZodObject<{
1340
- id: z.ZodString;
1341
- date: z.ZodString;
1342
- amount: z.ZodNumber;
1343
- payee: z.ZodString;
1344
- memo: z.ZodOptional<z.ZodString>;
1345
- sourceRow: z.ZodNumber;
1346
- raw: z.ZodObject<{
1347
- date: z.ZodString;
1348
- amount: z.ZodString;
1349
- description: z.ZodString;
1350
- }, z.core.$strict>;
1351
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1352
- amount_money: z.ZodObject<{
1353
- value_milliunits: z.ZodNumber;
1354
- value: z.ZodNumber;
1355
- value_display: z.ZodString;
1356
- currency: z.ZodString;
1357
- direction: z.ZodEnum<{
1358
- credit: "credit";
1359
- debit: "debit";
1360
- balanced: "balanced";
1361
- }>;
1362
- }, z.core.$strip>;
1363
- }, z.core.$strip>>;
1364
- ynab: z.ZodArray<z.ZodObject<{
1365
- id: z.ZodString;
1366
- date: z.ZodString;
1367
- amount: z.ZodNumber;
1368
- payee: z.ZodNullable<z.ZodString>;
1369
- categoryName: z.ZodNullable<z.ZodString>;
1370
- cleared: z.ZodEnum<{
1371
- cleared: "cleared";
1372
- uncleared: "uncleared";
1373
- reconciled: "reconciled";
1374
- }>;
1375
- approved: z.ZodBoolean;
1376
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1377
- amount_money: z.ZodObject<{
1378
- value_milliunits: z.ZodNumber;
1379
- value: z.ZodNumber;
1380
- value_display: z.ZodString;
1381
- currency: z.ZodString;
1382
- direction: z.ZodEnum<{
1383
- credit: "credit";
1384
- debit: "debit";
1385
- balanced: "balanced";
1386
- }>;
1387
- }, z.core.$strip>;
1388
- }, z.core.$strip>>;
1389
- ynab_outside_date_range: z.ZodOptional<z.ZodArray<z.ZodObject<{
1390
- id: z.ZodString;
1391
- date: z.ZodString;
1392
- amount: z.ZodNumber;
1393
- payee: z.ZodNullable<z.ZodString>;
1394
- categoryName: z.ZodNullable<z.ZodString>;
1395
- cleared: z.ZodEnum<{
1396
- cleared: "cleared";
1397
- uncleared: "uncleared";
1398
- reconciled: "reconciled";
1399
- }>;
1400
- approved: z.ZodBoolean;
1401
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
- amount_money: z.ZodObject<{
1403
- value_milliunits: z.ZodNumber;
1404
- value: z.ZodNumber;
1405
- value_display: z.ZodString;
1406
- currency: z.ZodString;
1407
- direction: z.ZodEnum<{
1408
- credit: "credit";
1409
- debit: "debit";
1410
- balanced: "balanced";
1411
- }>;
1412
- }, z.core.$strip>;
1413
- }, z.core.$strip>>>;
1414
- }, z.core.$strip>;
1415
- recommendations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1416
- id: z.ZodString;
1417
- action_type: z.ZodLiteral<"create_transaction">;
1418
- priority: z.ZodEnum<{
1419
- high: "high";
1420
- medium: "medium";
1421
- low: "low";
1422
- }>;
1423
- confidence: z.ZodNumber;
1424
- message: z.ZodString;
1425
- reason: z.ZodString;
1426
- estimated_impact: z.ZodObject<{
1427
- value_milliunits: z.ZodNumber;
1428
- value: z.ZodNumber;
1429
- value_display: z.ZodString;
1430
- currency: z.ZodString;
1431
- direction: z.ZodEnum<{
1432
- credit: "credit";
1433
- debit: "debit";
1434
- balanced: "balanced";
1435
- }>;
1436
- }, z.core.$strip>;
1437
- account_id: z.ZodString;
1438
- source_insight_id: z.ZodOptional<z.ZodString>;
1439
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1440
- parameters: z.ZodObject<{
1441
- account_id: z.ZodString;
1442
- date: z.ZodString;
1443
- amount: z.ZodNumber;
1444
- payee_name: z.ZodString;
1445
- memo: z.ZodOptional<z.ZodString>;
1446
- cleared: z.ZodEnum<{
1447
- cleared: "cleared";
1448
- uncleared: "uncleared";
1449
- }>;
1450
- approved: z.ZodBoolean;
1451
- category_id: z.ZodOptional<z.ZodString>;
1452
- }, z.core.$strip>;
1453
- }, z.core.$strip>, z.ZodObject<{
1454
- id: z.ZodString;
1455
- action_type: z.ZodLiteral<"update_cleared">;
1456
- priority: z.ZodEnum<{
1457
- high: "high";
1458
- medium: "medium";
1459
- low: "low";
1460
- }>;
1461
- confidence: z.ZodNumber;
1462
- message: z.ZodString;
1463
- reason: z.ZodString;
1464
- estimated_impact: z.ZodObject<{
1465
- value_milliunits: z.ZodNumber;
1466
- value: z.ZodNumber;
1467
- value_display: z.ZodString;
1468
- currency: z.ZodString;
1469
- direction: z.ZodEnum<{
1470
- credit: "credit";
1471
- debit: "debit";
1472
- balanced: "balanced";
1473
- }>;
1474
- }, z.core.$strip>;
1475
- account_id: z.ZodString;
1476
- source_insight_id: z.ZodOptional<z.ZodString>;
1477
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1478
- parameters: z.ZodObject<{
1479
- transaction_id: z.ZodString;
1480
- cleared: z.ZodEnum<{
1481
- cleared: "cleared";
1482
- uncleared: "uncleared";
1483
- reconciled: "reconciled";
1484
- }>;
1485
- }, z.core.$strip>;
1486
- }, z.core.$strip>, z.ZodObject<{
1487
- id: z.ZodString;
1488
- action_type: z.ZodLiteral<"review_duplicate">;
1489
- priority: z.ZodEnum<{
1490
- high: "high";
1491
- medium: "medium";
1492
- low: "low";
1493
- }>;
1494
- confidence: z.ZodNumber;
1495
- message: z.ZodString;
1496
- reason: z.ZodString;
1497
- estimated_impact: z.ZodObject<{
1498
- value_milliunits: z.ZodNumber;
1499
- value: z.ZodNumber;
1500
- value_display: z.ZodString;
1501
- currency: z.ZodString;
1502
- direction: z.ZodEnum<{
1503
- credit: "credit";
1504
- debit: "debit";
1505
- balanced: "balanced";
1506
- }>;
1507
- }, z.core.$strip>;
1508
- account_id: z.ZodString;
1509
- source_insight_id: z.ZodOptional<z.ZodString>;
1510
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1511
- parameters: z.ZodObject<{
1512
- candidate_ids: z.ZodArray<z.ZodString>;
1513
- bank_transaction: z.ZodObject<{
1514
- id: z.ZodString;
1515
- date: z.ZodString;
1516
- amount: z.ZodNumber;
1517
- payee: z.ZodString;
1518
- memo: z.ZodOptional<z.ZodString>;
1519
- sourceRow: z.ZodNumber;
1520
- raw: z.ZodObject<{
1521
- date: z.ZodString;
1522
- amount: z.ZodString;
1523
- description: z.ZodString;
1524
- }, z.core.$strict>;
1525
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1526
- amount_money: z.ZodObject<{
1527
- value_milliunits: z.ZodNumber;
1528
- value: z.ZodNumber;
1529
- value_display: z.ZodString;
1530
- currency: z.ZodString;
1531
- direction: z.ZodEnum<{
1532
- credit: "credit";
1533
- debit: "debit";
1534
- balanced: "balanced";
1535
- }>;
1536
- }, z.core.$strip>;
1537
- }, z.core.$strip>;
1538
- suggested_match_id: z.ZodOptional<z.ZodString>;
1539
- }, z.core.$strip>;
1540
- }, z.core.$strip>, z.ZodObject<{
1541
- id: z.ZodString;
1542
- action_type: z.ZodLiteral<"manual_review">;
1543
- priority: z.ZodEnum<{
1544
- high: "high";
1545
- medium: "medium";
1546
- low: "low";
1547
- }>;
1548
- confidence: z.ZodNumber;
1549
- message: z.ZodString;
1550
- reason: z.ZodString;
1551
- estimated_impact: z.ZodObject<{
1552
- value_milliunits: z.ZodNumber;
1553
- value: z.ZodNumber;
1554
- value_display: z.ZodString;
1555
- currency: z.ZodString;
1556
- direction: z.ZodEnum<{
1557
- credit: "credit";
1558
- debit: "debit";
1559
- balanced: "balanced";
1560
- }>;
1561
- }, z.core.$strip>;
1562
- account_id: z.ZodString;
1563
- source_insight_id: z.ZodOptional<z.ZodString>;
1564
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1565
- parameters: z.ZodObject<{
1566
- issue_type: z.ZodString;
1567
- related_transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1568
- source: z.ZodEnum<{
1569
- ynab: "ynab";
1570
- bank: "bank";
1571
- }>;
1572
- id: z.ZodString;
1573
- description: z.ZodString;
1574
- }, z.core.$strip>>>;
1575
- }, z.core.$strip>;
1576
- }, z.core.$strip>], "action_type">>>;
1577
- csv_format: z.ZodOptional<z.ZodObject<{
1578
- delimiter: z.ZodString;
1579
- decimal_separator: z.ZodString;
1580
- thousands_separator: z.ZodNullable<z.ZodString>;
1581
- date_format: z.ZodString;
1582
- header_row: z.ZodBoolean;
1583
- date_column: z.ZodNullable<z.ZodString>;
1584
- amount_column: z.ZodNullable<z.ZodString>;
1585
- payee_column: z.ZodNullable<z.ZodString>;
1586
- }, z.core.$strip>>;
1587
- execution: z.ZodOptional<z.ZodObject<{
1588
- summary: z.ZodObject<{
1589
- bank_transactions_count: z.ZodNumber;
1590
- ynab_transactions_count: z.ZodNumber;
1591
- matches_found: z.ZodNumber;
1592
- missing_in_ynab: z.ZodNumber;
1593
- missing_in_bank: z.ZodNumber;
1594
- transactions_created: z.ZodNumber;
1595
- transactions_updated: z.ZodNumber;
1596
- dates_adjusted: z.ZodNumber;
1597
- dry_run: z.ZodBoolean;
1598
- }, z.core.$strip>;
1599
- account_balance: z.ZodObject<{
1600
- before: z.ZodObject<{
1601
- balance: z.ZodObject<{
1602
- value_milliunits: z.ZodNumber;
1603
- value: z.ZodNumber;
1604
- value_display: z.ZodString;
1605
- currency: z.ZodString;
1606
- direction: z.ZodEnum<{
1607
- credit: "credit";
1608
- debit: "debit";
1609
- balanced: "balanced";
1610
- }>;
1611
- }, z.core.$strip>;
1612
- cleared_balance: z.ZodObject<{
1613
- value_milliunits: z.ZodNumber;
1614
- value: z.ZodNumber;
1615
- value_display: z.ZodString;
1616
- currency: z.ZodString;
1617
- direction: z.ZodEnum<{
1618
- credit: "credit";
1619
- debit: "debit";
1620
- balanced: "balanced";
1621
- }>;
1622
- }, z.core.$strip>;
1623
- uncleared_balance: z.ZodObject<{
1624
- value_milliunits: z.ZodNumber;
1625
- value: z.ZodNumber;
1626
- value_display: z.ZodString;
1627
- currency: z.ZodString;
1628
- direction: z.ZodEnum<{
1629
- credit: "credit";
1630
- debit: "debit";
1631
- balanced: "balanced";
1632
- }>;
1633
- }, z.core.$strip>;
1634
- }, z.core.$strip>;
1635
- after: z.ZodObject<{
1636
- balance: z.ZodObject<{
1637
- value_milliunits: z.ZodNumber;
1638
- value: z.ZodNumber;
1639
- value_display: z.ZodString;
1640
- currency: z.ZodString;
1641
- direction: z.ZodEnum<{
1642
- credit: "credit";
1643
- debit: "debit";
1644
- balanced: "balanced";
1645
- }>;
1646
- }, z.core.$strip>;
1647
- cleared_balance: z.ZodObject<{
1648
- value_milliunits: z.ZodNumber;
1649
- value: z.ZodNumber;
1650
- value_display: z.ZodString;
1651
- currency: z.ZodString;
1652
- direction: z.ZodEnum<{
1653
- credit: "credit";
1654
- debit: "debit";
1655
- balanced: "balanced";
1656
- }>;
1657
- }, z.core.$strip>;
1658
- uncleared_balance: z.ZodObject<{
1659
- value_milliunits: z.ZodNumber;
1660
- value: z.ZodNumber;
1661
- value_display: z.ZodString;
1662
- currency: z.ZodString;
1663
- direction: z.ZodEnum<{
1664
- credit: "credit";
1665
- debit: "debit";
1666
- balanced: "balanced";
1667
- }>;
1668
- }, z.core.$strip>;
1669
- }, z.core.$strip>;
1670
- }, z.core.$strip>;
1671
- actions_taken: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1672
- type: z.ZodLiteral<"create_transaction">;
1673
- transaction: z.ZodNullable<z.ZodObject<{
1674
- id: z.ZodString;
1675
- date: z.ZodString;
1676
- amount: z.ZodNumber;
1677
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
- cleared: z.ZodOptional<z.ZodEnum<{
1679
- cleared: "cleared";
1680
- uncleared: "uncleared";
1681
- reconciled: "reconciled";
1682
- }>>;
1683
- approved: z.ZodOptional<z.ZodBoolean>;
1684
- payee_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1685
- category_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1686
- import_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1687
- }, z.core.$loose>>;
1688
- reason: z.ZodString;
1689
- bulk_chunk_index: z.ZodOptional<z.ZodNumber>;
1690
- correlation_key: z.ZodOptional<z.ZodString>;
1691
- }, z.core.$strip>, z.ZodObject<{
1692
- type: z.ZodLiteral<"create_transaction_failed">;
1693
- transaction: z.ZodObject<{
1694
- account_id: z.ZodString;
1695
- date: z.ZodString;
1696
- amount: z.ZodNumber;
1697
- payee_name: z.ZodOptional<z.ZodString>;
1698
- memo: z.ZodOptional<z.ZodString>;
1699
- cleared: z.ZodOptional<z.ZodEnum<{
1700
- cleared: "cleared";
1701
- uncleared: "uncleared";
1702
- }>>;
1703
- approved: z.ZodOptional<z.ZodBoolean>;
1704
- import_id: z.ZodOptional<z.ZodString>;
1705
- }, z.core.$strip>;
1706
- reason: z.ZodString;
1707
- bulk_chunk_index: z.ZodOptional<z.ZodNumber>;
1708
- correlation_key: z.ZodOptional<z.ZodString>;
1709
- }, z.core.$strip>, z.ZodObject<{
1710
- type: z.ZodLiteral<"create_transaction_duplicate">;
1711
- transaction: z.ZodObject<{
1712
- transaction_id: z.ZodNullable<z.ZodString>;
1713
- import_id: z.ZodOptional<z.ZodString>;
1714
- }, z.core.$strip>;
1715
- reason: z.ZodString;
1716
- bulk_chunk_index: z.ZodNumber;
1717
- correlation_key: z.ZodOptional<z.ZodString>;
1718
- duplicate: z.ZodLiteral<true>;
1719
- }, z.core.$strip>, z.ZodObject<{
1720
- type: z.ZodLiteral<"update_transaction">;
1721
- transaction: z.ZodUnion<readonly [z.ZodNullable<z.ZodObject<{
1722
- id: z.ZodString;
1723
- date: z.ZodString;
1724
- amount: z.ZodNumber;
1725
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
- cleared: z.ZodOptional<z.ZodEnum<{
1727
- cleared: "cleared";
1728
- uncleared: "uncleared";
1729
- reconciled: "reconciled";
1730
- }>>;
1731
- approved: z.ZodOptional<z.ZodBoolean>;
1732
- payee_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
- category_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1734
- import_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1735
- }, z.core.$loose>>, z.ZodObject<{
1736
- transaction_id: z.ZodString;
1737
- new_date: z.ZodOptional<z.ZodString>;
1738
- cleared: z.ZodOptional<z.ZodEnum<{
1739
- cleared: "cleared";
1740
- uncleared: "uncleared";
1741
- reconciled: "reconciled";
1742
- }>>;
1743
- }, z.core.$strip>]>;
1744
- reason: z.ZodString;
1745
- }, z.core.$strip>, z.ZodObject<{
1746
- type: z.ZodLiteral<"balance_checkpoint">;
1747
- transaction: z.ZodNull;
1748
- reason: z.ZodString;
1749
- }, z.core.$strip>, z.ZodObject<{
1750
- type: z.ZodLiteral<"bulk_create_fallback">;
1751
- transaction: z.ZodNull;
1752
- reason: z.ZodString;
1753
- bulk_chunk_index: z.ZodNumber;
1754
- }, z.core.$strip>], "type">>;
1755
- recommendations: z.ZodArray<z.ZodString>;
1756
- balance_reconciliation: z.ZodOptional<z.ZodUnknown>;
1757
- bulk_operation_details: z.ZodOptional<z.ZodObject<{
1758
- chunks_processed: z.ZodNumber;
1759
- bulk_successes: z.ZodNumber;
1760
- sequential_fallbacks: z.ZodNumber;
1761
- duplicates_detected: z.ZodNumber;
1762
- failed_transactions: z.ZodNumber;
1763
- bulk_chunk_failures: z.ZodNumber;
1764
- transaction_failures: z.ZodNumber;
1765
- sequential_attempts: z.ZodOptional<z.ZodNumber>;
1766
- }, z.core.$strip>>;
1767
- }, z.core.$strip>>;
1768
- audit: z.ZodOptional<z.ZodObject<{
1769
- data_freshness: z.ZodString;
1770
- data_source: z.ZodString;
1771
- server_knowledge: z.ZodOptional<z.ZodNumber>;
1772
- fetched_at: z.ZodString;
1773
- accounts_count: z.ZodOptional<z.ZodNumber>;
1774
- transactions_count: z.ZodOptional<z.ZodNumber>;
1775
- cache_status: z.ZodObject<{
1776
- accounts_cached: z.ZodBoolean;
1777
- transactions_cached: z.ZodBoolean;
1778
- delta_merge_applied: z.ZodBoolean;
1779
- }, z.core.$strip>;
1780
- }, z.core.$catchall<z.ZodUnknown>>>;
1781
- }, z.core.$strip>, z.ZodObject<{
1082
+ structured: z.ZodObject<{
1782
1083
  unmatched_bank: z.ZodArray<z.ZodObject<{
1783
1084
  id: z.ZodString;
1784
1085
  date: z.ZodString;
@@ -1922,8 +1223,18 @@ export declare const ReconcileAccountOutputSchema: z.ZodUnion<readonly [z.ZodObj
1922
1223
  action_hint: z.ZodOptional<z.ZodString>;
1923
1224
  recommendation: z.ZodOptional<z.ZodString>;
1924
1225
  }, z.core.$strip>>;
1925
- }, z.core.$strict>]>;
1926
- }, z.core.$strict>, z.ZodObject<{
1927
- human: z.ZodString;
1928
- }, z.core.$strict>]>;
1226
+ execution_summary: z.ZodOptional<z.ZodObject<{
1227
+ transactions_created: z.ZodNumber;
1228
+ transactions_updated: z.ZodNumber;
1229
+ dates_adjusted: z.ZodNumber;
1230
+ dry_run: z.ZodBoolean;
1231
+ balance_status: z.ZodOptional<z.ZodEnum<{
1232
+ balanced: "balanced";
1233
+ unbalanced: "unbalanced";
1234
+ not_verified: "not_verified";
1235
+ }>>;
1236
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
+ }, z.core.$strip>>;
1238
+ }, z.core.$strict>;
1239
+ }, z.core.$strict>;
1929
1240
  export type ReconcileAccountOutput = z.infer<typeof ReconcileAccountOutputSchema>;