@dizzlkheinz/ynab-mcpb 0.26.3 → 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.
@@ -906,6 +906,19 @@ export declare const CsvFormatMetadataSchema: z.ZodObject<{
906
906
  payee_column: z.ZodNullable<z.ZodString>;
907
907
  }, z.core.$strip>;
908
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>;
909
922
  export declare const StructuredReconciliationUnmatchedOnlySchema: z.ZodObject<{
910
923
  unmatched_bank: z.ZodArray<z.ZodObject<{
911
924
  id: z.ZodString;
@@ -1050,795 +1063,23 @@ export declare const StructuredReconciliationUnmatchedOnlySchema: z.ZodObject<{
1050
1063
  action_hint: z.ZodOptional<z.ZodString>;
1051
1064
  recommendation: z.ZodOptional<z.ZodString>;
1052
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>>;
1053
1078
  }, z.core.$strict>;
1054
1079
  export type StructuredReconciliationUnmatchedOnly = z.infer<typeof StructuredReconciliationUnmatchedOnlySchema>;
1055
- export declare const ReconcileAccountOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
1080
+ export declare const ReconcileAccountOutputSchema: z.ZodObject<{
1056
1081
  human: z.ZodString;
1057
- structured: z.ZodUnion<readonly [z.ZodObject<{
1058
- version: z.ZodString;
1059
- schema_url: z.ZodString;
1060
- generated_at: z.ZodString;
1061
- account: z.ZodObject<{
1062
- id: z.ZodOptional<z.ZodString>;
1063
- name: z.ZodOptional<z.ZodString>;
1064
- }, z.core.$strip>;
1065
- summary: z.ZodObject<{
1066
- statement_date_range: z.ZodString;
1067
- bank_transactions_count: z.ZodNumber;
1068
- ynab_transactions_count: z.ZodNumber;
1069
- ynab_in_range_count: z.ZodOptional<z.ZodNumber>;
1070
- ynab_outside_range_count: z.ZodOptional<z.ZodNumber>;
1071
- auto_matched: z.ZodNumber;
1072
- suggested_matches: z.ZodNumber;
1073
- unmatched_bank: z.ZodNumber;
1074
- unmatched_ynab: z.ZodNumber;
1075
- current_cleared_balance: z.ZodObject<{
1076
- value_milliunits: z.ZodNumber;
1077
- value: z.ZodNumber;
1078
- value_display: z.ZodString;
1079
- currency: z.ZodString;
1080
- direction: z.ZodEnum<{
1081
- credit: "credit";
1082
- debit: "debit";
1083
- balanced: "balanced";
1084
- }>;
1085
- }, z.core.$strip>;
1086
- target_statement_balance: z.ZodObject<{
1087
- value_milliunits: z.ZodNumber;
1088
- value: z.ZodNumber;
1089
- value_display: z.ZodString;
1090
- currency: z.ZodString;
1091
- direction: z.ZodEnum<{
1092
- credit: "credit";
1093
- debit: "debit";
1094
- balanced: "balanced";
1095
- }>;
1096
- }, z.core.$strip>;
1097
- discrepancy: z.ZodObject<{
1098
- value_milliunits: z.ZodNumber;
1099
- value: z.ZodNumber;
1100
- value_display: z.ZodString;
1101
- currency: z.ZodString;
1102
- direction: z.ZodEnum<{
1103
- credit: "credit";
1104
- debit: "debit";
1105
- balanced: "balanced";
1106
- }>;
1107
- }, z.core.$strip>;
1108
- discrepancy_explanation: z.ZodString;
1109
- }, z.core.$strip>;
1110
- balance: z.ZodObject<{
1111
- current_cleared: z.ZodObject<{
1112
- value_milliunits: z.ZodNumber;
1113
- value: z.ZodNumber;
1114
- value_display: z.ZodString;
1115
- currency: z.ZodString;
1116
- direction: z.ZodEnum<{
1117
- credit: "credit";
1118
- debit: "debit";
1119
- balanced: "balanced";
1120
- }>;
1121
- }, z.core.$strip>;
1122
- current_uncleared: z.ZodObject<{
1123
- value_milliunits: z.ZodNumber;
1124
- value: z.ZodNumber;
1125
- value_display: z.ZodString;
1126
- currency: z.ZodString;
1127
- direction: z.ZodEnum<{
1128
- credit: "credit";
1129
- debit: "debit";
1130
- balanced: "balanced";
1131
- }>;
1132
- }, z.core.$strip>;
1133
- current_total: z.ZodObject<{
1134
- value_milliunits: z.ZodNumber;
1135
- value: z.ZodNumber;
1136
- value_display: z.ZodString;
1137
- currency: z.ZodString;
1138
- direction: z.ZodEnum<{
1139
- credit: "credit";
1140
- debit: "debit";
1141
- balanced: "balanced";
1142
- }>;
1143
- }, z.core.$strip>;
1144
- target_statement: z.ZodObject<{
1145
- value_milliunits: z.ZodNumber;
1146
- value: z.ZodNumber;
1147
- value_display: z.ZodString;
1148
- currency: z.ZodString;
1149
- direction: z.ZodEnum<{
1150
- credit: "credit";
1151
- debit: "debit";
1152
- balanced: "balanced";
1153
- }>;
1154
- }, z.core.$strip>;
1155
- discrepancy: z.ZodObject<{
1156
- value_milliunits: z.ZodNumber;
1157
- value: z.ZodNumber;
1158
- value_display: z.ZodString;
1159
- currency: z.ZodString;
1160
- direction: z.ZodEnum<{
1161
- credit: "credit";
1162
- debit: "debit";
1163
- balanced: "balanced";
1164
- }>;
1165
- }, z.core.$strip>;
1166
- on_track: z.ZodBoolean;
1167
- discrepancy_direction: z.ZodEnum<{
1168
- balanced: "balanced";
1169
- ynab_higher: "ynab_higher";
1170
- bank_higher: "bank_higher";
1171
- }>;
1172
- }, z.core.$strip>;
1173
- insights: z.ZodArray<z.ZodObject<{
1174
- id: z.ZodString;
1175
- type: z.ZodEnum<{
1176
- repeat_amount: "repeat_amount";
1177
- near_match: "near_match";
1178
- anomaly: "anomaly";
1179
- }>;
1180
- severity: z.ZodEnum<{
1181
- info: "info";
1182
- warning: "warning";
1183
- critical: "critical";
1184
- }>;
1185
- title: z.ZodString;
1186
- description: z.ZodString;
1187
- evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1188
- }, z.core.$strip>>;
1189
- next_steps: z.ZodArray<z.ZodString>;
1190
- matches: z.ZodObject<{
1191
- auto: z.ZodArray<z.ZodObject<{
1192
- bank_transaction: z.ZodObject<{
1193
- id: z.ZodString;
1194
- date: z.ZodString;
1195
- amount: z.ZodNumber;
1196
- payee: z.ZodString;
1197
- memo: z.ZodOptional<z.ZodString>;
1198
- sourceRow: z.ZodNumber;
1199
- raw: z.ZodObject<{
1200
- date: z.ZodString;
1201
- amount: z.ZodString;
1202
- description: z.ZodString;
1203
- }, z.core.$strict>;
1204
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1205
- amount_money: z.ZodObject<{
1206
- value_milliunits: z.ZodNumber;
1207
- value: z.ZodNumber;
1208
- value_display: z.ZodString;
1209
- currency: z.ZodString;
1210
- direction: z.ZodEnum<{
1211
- credit: "credit";
1212
- debit: "debit";
1213
- balanced: "balanced";
1214
- }>;
1215
- }, z.core.$strip>;
1216
- }, z.core.$strip>;
1217
- ynab_transaction: z.ZodOptional<z.ZodObject<{
1218
- id: z.ZodString;
1219
- date: z.ZodString;
1220
- amount: z.ZodNumber;
1221
- payee: z.ZodNullable<z.ZodString>;
1222
- categoryName: z.ZodNullable<z.ZodString>;
1223
- cleared: z.ZodEnum<{
1224
- cleared: "cleared";
1225
- uncleared: "uncleared";
1226
- reconciled: "reconciled";
1227
- }>;
1228
- approved: z.ZodBoolean;
1229
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
- amount_money: z.ZodObject<{
1231
- value_milliunits: z.ZodNumber;
1232
- value: z.ZodNumber;
1233
- value_display: z.ZodString;
1234
- currency: z.ZodString;
1235
- direction: z.ZodEnum<{
1236
- credit: "credit";
1237
- debit: "debit";
1238
- balanced: "balanced";
1239
- }>;
1240
- }, z.core.$strip>;
1241
- }, z.core.$strip>>;
1242
- candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1243
- ynab_transaction: z.ZodObject<{
1244
- id: z.ZodString;
1245
- date: z.ZodString;
1246
- amount: z.ZodNumber;
1247
- payee: z.ZodNullable<z.ZodString>;
1248
- categoryName: z.ZodNullable<z.ZodString>;
1249
- cleared: z.ZodEnum<{
1250
- cleared: "cleared";
1251
- uncleared: "uncleared";
1252
- reconciled: "reconciled";
1253
- }>;
1254
- approved: z.ZodBoolean;
1255
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1256
- amount_money: z.ZodObject<{
1257
- value_milliunits: z.ZodNumber;
1258
- value: z.ZodNumber;
1259
- value_display: z.ZodString;
1260
- currency: z.ZodString;
1261
- direction: z.ZodEnum<{
1262
- credit: "credit";
1263
- debit: "debit";
1264
- balanced: "balanced";
1265
- }>;
1266
- }, z.core.$strip>;
1267
- }, z.core.$strip>;
1268
- confidence: z.ZodNumber;
1269
- match_reason: z.ZodString;
1270
- explanation: z.ZodString;
1271
- }, z.core.$strip>>>;
1272
- confidence: z.ZodEnum<{
1273
- high: "high";
1274
- medium: "medium";
1275
- low: "low";
1276
- none: "none";
1277
- }>;
1278
- confidence_score: z.ZodNumber;
1279
- match_reason: z.ZodString;
1280
- top_confidence: z.ZodOptional<z.ZodNumber>;
1281
- action_hint: z.ZodOptional<z.ZodString>;
1282
- recommendation: z.ZodOptional<z.ZodString>;
1283
- }, z.core.$strip>>;
1284
- suggested: z.ZodArray<z.ZodObject<{
1285
- bank_transaction: z.ZodObject<{
1286
- id: z.ZodString;
1287
- date: z.ZodString;
1288
- amount: z.ZodNumber;
1289
- payee: z.ZodString;
1290
- memo: z.ZodOptional<z.ZodString>;
1291
- sourceRow: z.ZodNumber;
1292
- raw: z.ZodObject<{
1293
- date: z.ZodString;
1294
- amount: z.ZodString;
1295
- description: z.ZodString;
1296
- }, z.core.$strict>;
1297
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1298
- amount_money: z.ZodObject<{
1299
- value_milliunits: z.ZodNumber;
1300
- value: z.ZodNumber;
1301
- value_display: z.ZodString;
1302
- currency: z.ZodString;
1303
- direction: z.ZodEnum<{
1304
- credit: "credit";
1305
- debit: "debit";
1306
- balanced: "balanced";
1307
- }>;
1308
- }, z.core.$strip>;
1309
- }, z.core.$strip>;
1310
- ynab_transaction: z.ZodOptional<z.ZodObject<{
1311
- id: z.ZodString;
1312
- date: z.ZodString;
1313
- amount: z.ZodNumber;
1314
- payee: z.ZodNullable<z.ZodString>;
1315
- categoryName: z.ZodNullable<z.ZodString>;
1316
- cleared: z.ZodEnum<{
1317
- cleared: "cleared";
1318
- uncleared: "uncleared";
1319
- reconciled: "reconciled";
1320
- }>;
1321
- approved: z.ZodBoolean;
1322
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
- amount_money: z.ZodObject<{
1324
- value_milliunits: z.ZodNumber;
1325
- value: z.ZodNumber;
1326
- value_display: z.ZodString;
1327
- currency: z.ZodString;
1328
- direction: z.ZodEnum<{
1329
- credit: "credit";
1330
- debit: "debit";
1331
- balanced: "balanced";
1332
- }>;
1333
- }, z.core.$strip>;
1334
- }, z.core.$strip>>;
1335
- candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1336
- ynab_transaction: z.ZodObject<{
1337
- id: z.ZodString;
1338
- date: z.ZodString;
1339
- amount: z.ZodNumber;
1340
- payee: z.ZodNullable<z.ZodString>;
1341
- categoryName: z.ZodNullable<z.ZodString>;
1342
- cleared: z.ZodEnum<{
1343
- cleared: "cleared";
1344
- uncleared: "uncleared";
1345
- reconciled: "reconciled";
1346
- }>;
1347
- approved: z.ZodBoolean;
1348
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
- amount_money: z.ZodObject<{
1350
- value_milliunits: z.ZodNumber;
1351
- value: z.ZodNumber;
1352
- value_display: z.ZodString;
1353
- currency: z.ZodString;
1354
- direction: z.ZodEnum<{
1355
- credit: "credit";
1356
- debit: "debit";
1357
- balanced: "balanced";
1358
- }>;
1359
- }, z.core.$strip>;
1360
- }, z.core.$strip>;
1361
- confidence: z.ZodNumber;
1362
- match_reason: z.ZodString;
1363
- explanation: z.ZodString;
1364
- }, z.core.$strip>>>;
1365
- confidence: z.ZodEnum<{
1366
- high: "high";
1367
- medium: "medium";
1368
- low: "low";
1369
- none: "none";
1370
- }>;
1371
- confidence_score: z.ZodNumber;
1372
- match_reason: z.ZodString;
1373
- top_confidence: z.ZodOptional<z.ZodNumber>;
1374
- action_hint: z.ZodOptional<z.ZodString>;
1375
- recommendation: z.ZodOptional<z.ZodString>;
1376
- }, z.core.$strip>>;
1377
- }, z.core.$strip>;
1378
- unmatched: z.ZodObject<{
1379
- bank: z.ZodArray<z.ZodObject<{
1380
- id: z.ZodString;
1381
- date: z.ZodString;
1382
- amount: z.ZodNumber;
1383
- payee: z.ZodString;
1384
- memo: z.ZodOptional<z.ZodString>;
1385
- sourceRow: z.ZodNumber;
1386
- raw: z.ZodObject<{
1387
- date: z.ZodString;
1388
- amount: z.ZodString;
1389
- description: z.ZodString;
1390
- }, z.core.$strict>;
1391
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1392
- amount_money: z.ZodObject<{
1393
- value_milliunits: z.ZodNumber;
1394
- value: z.ZodNumber;
1395
- value_display: z.ZodString;
1396
- currency: z.ZodString;
1397
- direction: z.ZodEnum<{
1398
- credit: "credit";
1399
- debit: "debit";
1400
- balanced: "balanced";
1401
- }>;
1402
- }, z.core.$strip>;
1403
- }, z.core.$strip>>;
1404
- ynab: z.ZodArray<z.ZodObject<{
1405
- id: z.ZodString;
1406
- date: z.ZodString;
1407
- amount: z.ZodNumber;
1408
- payee: z.ZodNullable<z.ZodString>;
1409
- categoryName: z.ZodNullable<z.ZodString>;
1410
- cleared: z.ZodEnum<{
1411
- cleared: "cleared";
1412
- uncleared: "uncleared";
1413
- reconciled: "reconciled";
1414
- }>;
1415
- approved: z.ZodBoolean;
1416
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1417
- amount_money: z.ZodObject<{
1418
- value_milliunits: z.ZodNumber;
1419
- value: z.ZodNumber;
1420
- value_display: z.ZodString;
1421
- currency: z.ZodString;
1422
- direction: z.ZodEnum<{
1423
- credit: "credit";
1424
- debit: "debit";
1425
- balanced: "balanced";
1426
- }>;
1427
- }, z.core.$strip>;
1428
- }, z.core.$strip>>;
1429
- ynab_outside_date_range: z.ZodOptional<z.ZodArray<z.ZodObject<{
1430
- id: z.ZodString;
1431
- date: z.ZodString;
1432
- amount: z.ZodNumber;
1433
- payee: z.ZodNullable<z.ZodString>;
1434
- categoryName: z.ZodNullable<z.ZodString>;
1435
- cleared: z.ZodEnum<{
1436
- cleared: "cleared";
1437
- uncleared: "uncleared";
1438
- reconciled: "reconciled";
1439
- }>;
1440
- approved: z.ZodBoolean;
1441
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1442
- amount_money: z.ZodObject<{
1443
- value_milliunits: z.ZodNumber;
1444
- value: z.ZodNumber;
1445
- value_display: z.ZodString;
1446
- currency: z.ZodString;
1447
- direction: z.ZodEnum<{
1448
- credit: "credit";
1449
- debit: "debit";
1450
- balanced: "balanced";
1451
- }>;
1452
- }, z.core.$strip>;
1453
- }, z.core.$strip>>>;
1454
- }, z.core.$strip>;
1455
- recommendations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1456
- id: z.ZodString;
1457
- action_type: z.ZodLiteral<"create_transaction">;
1458
- priority: z.ZodEnum<{
1459
- high: "high";
1460
- medium: "medium";
1461
- low: "low";
1462
- }>;
1463
- confidence: z.ZodNumber;
1464
- message: z.ZodString;
1465
- reason: z.ZodString;
1466
- estimated_impact: z.ZodObject<{
1467
- value_milliunits: z.ZodNumber;
1468
- value: z.ZodNumber;
1469
- value_display: z.ZodString;
1470
- currency: z.ZodString;
1471
- direction: z.ZodEnum<{
1472
- credit: "credit";
1473
- debit: "debit";
1474
- balanced: "balanced";
1475
- }>;
1476
- }, z.core.$strip>;
1477
- account_id: z.ZodString;
1478
- source_insight_id: z.ZodOptional<z.ZodString>;
1479
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1480
- parameters: z.ZodObject<{
1481
- account_id: z.ZodString;
1482
- date: z.ZodString;
1483
- amount: z.ZodNumber;
1484
- payee_name: z.ZodString;
1485
- memo: z.ZodOptional<z.ZodString>;
1486
- cleared: z.ZodEnum<{
1487
- cleared: "cleared";
1488
- uncleared: "uncleared";
1489
- }>;
1490
- approved: z.ZodBoolean;
1491
- category_id: z.ZodOptional<z.ZodString>;
1492
- }, z.core.$strip>;
1493
- }, z.core.$strip>, z.ZodObject<{
1494
- id: z.ZodString;
1495
- action_type: z.ZodLiteral<"update_cleared">;
1496
- priority: z.ZodEnum<{
1497
- high: "high";
1498
- medium: "medium";
1499
- low: "low";
1500
- }>;
1501
- confidence: z.ZodNumber;
1502
- message: z.ZodString;
1503
- reason: z.ZodString;
1504
- estimated_impact: z.ZodObject<{
1505
- value_milliunits: z.ZodNumber;
1506
- value: z.ZodNumber;
1507
- value_display: z.ZodString;
1508
- currency: z.ZodString;
1509
- direction: z.ZodEnum<{
1510
- credit: "credit";
1511
- debit: "debit";
1512
- balanced: "balanced";
1513
- }>;
1514
- }, z.core.$strip>;
1515
- account_id: z.ZodString;
1516
- source_insight_id: z.ZodOptional<z.ZodString>;
1517
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1518
- parameters: z.ZodObject<{
1519
- transaction_id: z.ZodString;
1520
- cleared: z.ZodEnum<{
1521
- cleared: "cleared";
1522
- uncleared: "uncleared";
1523
- reconciled: "reconciled";
1524
- }>;
1525
- }, z.core.$strip>;
1526
- }, z.core.$strip>, z.ZodObject<{
1527
- id: z.ZodString;
1528
- action_type: z.ZodLiteral<"review_duplicate">;
1529
- priority: z.ZodEnum<{
1530
- high: "high";
1531
- medium: "medium";
1532
- low: "low";
1533
- }>;
1534
- confidence: z.ZodNumber;
1535
- message: z.ZodString;
1536
- reason: z.ZodString;
1537
- estimated_impact: z.ZodObject<{
1538
- value_milliunits: z.ZodNumber;
1539
- value: z.ZodNumber;
1540
- value_display: z.ZodString;
1541
- currency: z.ZodString;
1542
- direction: z.ZodEnum<{
1543
- credit: "credit";
1544
- debit: "debit";
1545
- balanced: "balanced";
1546
- }>;
1547
- }, z.core.$strip>;
1548
- account_id: z.ZodString;
1549
- source_insight_id: z.ZodOptional<z.ZodString>;
1550
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1551
- parameters: z.ZodObject<{
1552
- candidate_ids: z.ZodArray<z.ZodString>;
1553
- bank_transaction: z.ZodObject<{
1554
- id: z.ZodString;
1555
- date: z.ZodString;
1556
- amount: z.ZodNumber;
1557
- payee: z.ZodString;
1558
- memo: z.ZodOptional<z.ZodString>;
1559
- sourceRow: z.ZodNumber;
1560
- raw: z.ZodObject<{
1561
- date: z.ZodString;
1562
- amount: z.ZodString;
1563
- description: z.ZodString;
1564
- }, z.core.$strict>;
1565
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1566
- amount_money: z.ZodObject<{
1567
- value_milliunits: z.ZodNumber;
1568
- value: z.ZodNumber;
1569
- value_display: z.ZodString;
1570
- currency: z.ZodString;
1571
- direction: z.ZodEnum<{
1572
- credit: "credit";
1573
- debit: "debit";
1574
- balanced: "balanced";
1575
- }>;
1576
- }, z.core.$strip>;
1577
- }, z.core.$strip>;
1578
- suggested_match_id: z.ZodOptional<z.ZodString>;
1579
- }, z.core.$strip>;
1580
- }, z.core.$strip>, z.ZodObject<{
1581
- id: z.ZodString;
1582
- action_type: z.ZodLiteral<"manual_review">;
1583
- priority: z.ZodEnum<{
1584
- high: "high";
1585
- medium: "medium";
1586
- low: "low";
1587
- }>;
1588
- confidence: z.ZodNumber;
1589
- message: z.ZodString;
1590
- reason: z.ZodString;
1591
- estimated_impact: z.ZodObject<{
1592
- value_milliunits: z.ZodNumber;
1593
- value: z.ZodNumber;
1594
- value_display: z.ZodString;
1595
- currency: z.ZodString;
1596
- direction: z.ZodEnum<{
1597
- credit: "credit";
1598
- debit: "debit";
1599
- balanced: "balanced";
1600
- }>;
1601
- }, z.core.$strip>;
1602
- account_id: z.ZodString;
1603
- source_insight_id: z.ZodOptional<z.ZodString>;
1604
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1605
- parameters: z.ZodObject<{
1606
- issue_type: z.ZodString;
1607
- related_transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1608
- source: z.ZodEnum<{
1609
- ynab: "ynab";
1610
- bank: "bank";
1611
- }>;
1612
- id: z.ZodString;
1613
- description: z.ZodString;
1614
- }, z.core.$strip>>>;
1615
- }, z.core.$strip>;
1616
- }, z.core.$strip>], "action_type">>>;
1617
- csv_format: z.ZodOptional<z.ZodObject<{
1618
- delimiter: z.ZodString;
1619
- decimal_separator: z.ZodString;
1620
- thousands_separator: z.ZodNullable<z.ZodString>;
1621
- date_format: z.ZodString;
1622
- header_row: z.ZodBoolean;
1623
- date_column: z.ZodNullable<z.ZodString>;
1624
- amount_column: z.ZodNullable<z.ZodString>;
1625
- payee_column: z.ZodNullable<z.ZodString>;
1626
- }, z.core.$strip>>;
1627
- execution: z.ZodOptional<z.ZodObject<{
1628
- summary: z.ZodObject<{
1629
- bank_transactions_count: z.ZodNumber;
1630
- ynab_transactions_count: z.ZodNumber;
1631
- matches_found: z.ZodNumber;
1632
- missing_in_ynab: z.ZodNumber;
1633
- missing_in_bank: z.ZodNumber;
1634
- transactions_created: z.ZodNumber;
1635
- transactions_updated: z.ZodNumber;
1636
- dates_adjusted: z.ZodNumber;
1637
- dry_run: z.ZodBoolean;
1638
- }, z.core.$strip>;
1639
- account_balance: z.ZodObject<{
1640
- before: z.ZodObject<{
1641
- balance: z.ZodObject<{
1642
- value_milliunits: z.ZodNumber;
1643
- value: z.ZodNumber;
1644
- value_display: z.ZodString;
1645
- currency: z.ZodString;
1646
- direction: z.ZodEnum<{
1647
- credit: "credit";
1648
- debit: "debit";
1649
- balanced: "balanced";
1650
- }>;
1651
- }, z.core.$strip>;
1652
- cleared_balance: z.ZodObject<{
1653
- value_milliunits: z.ZodNumber;
1654
- value: z.ZodNumber;
1655
- value_display: z.ZodString;
1656
- currency: z.ZodString;
1657
- direction: z.ZodEnum<{
1658
- credit: "credit";
1659
- debit: "debit";
1660
- balanced: "balanced";
1661
- }>;
1662
- }, z.core.$strip>;
1663
- uncleared_balance: z.ZodObject<{
1664
- value_milliunits: z.ZodNumber;
1665
- value: z.ZodNumber;
1666
- value_display: z.ZodString;
1667
- currency: z.ZodString;
1668
- direction: z.ZodEnum<{
1669
- credit: "credit";
1670
- debit: "debit";
1671
- balanced: "balanced";
1672
- }>;
1673
- }, z.core.$strip>;
1674
- }, z.core.$strip>;
1675
- after: z.ZodObject<{
1676
- balance: z.ZodObject<{
1677
- value_milliunits: z.ZodNumber;
1678
- value: z.ZodNumber;
1679
- value_display: z.ZodString;
1680
- currency: z.ZodString;
1681
- direction: z.ZodEnum<{
1682
- credit: "credit";
1683
- debit: "debit";
1684
- balanced: "balanced";
1685
- }>;
1686
- }, z.core.$strip>;
1687
- cleared_balance: z.ZodObject<{
1688
- value_milliunits: z.ZodNumber;
1689
- value: z.ZodNumber;
1690
- value_display: z.ZodString;
1691
- currency: z.ZodString;
1692
- direction: z.ZodEnum<{
1693
- credit: "credit";
1694
- debit: "debit";
1695
- balanced: "balanced";
1696
- }>;
1697
- }, z.core.$strip>;
1698
- uncleared_balance: z.ZodObject<{
1699
- value_milliunits: z.ZodNumber;
1700
- value: z.ZodNumber;
1701
- value_display: z.ZodString;
1702
- currency: z.ZodString;
1703
- direction: z.ZodEnum<{
1704
- credit: "credit";
1705
- debit: "debit";
1706
- balanced: "balanced";
1707
- }>;
1708
- }, z.core.$strip>;
1709
- }, z.core.$strip>;
1710
- }, z.core.$strip>;
1711
- actions_taken: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1712
- type: z.ZodLiteral<"create_transaction">;
1713
- transaction: z.ZodNullable<z.ZodObject<{
1714
- id: z.ZodString;
1715
- date: z.ZodString;
1716
- amount: z.ZodNumber;
1717
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1718
- cleared: z.ZodOptional<z.ZodEnum<{
1719
- cleared: "cleared";
1720
- uncleared: "uncleared";
1721
- reconciled: "reconciled";
1722
- }>>;
1723
- approved: z.ZodOptional<z.ZodBoolean>;
1724
- payee_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
- category_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
- import_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1727
- }, z.core.$loose>>;
1728
- reason: z.ZodString;
1729
- bulk_chunk_index: z.ZodOptional<z.ZodNumber>;
1730
- correlation_key: z.ZodOptional<z.ZodString>;
1731
- }, z.core.$strip>, z.ZodObject<{
1732
- type: z.ZodLiteral<"create_transaction_failed">;
1733
- transaction: z.ZodObject<{
1734
- account_id: z.ZodString;
1735
- date: z.ZodString;
1736
- amount: z.ZodNumber;
1737
- payee_name: z.ZodOptional<z.ZodString>;
1738
- memo: z.ZodOptional<z.ZodString>;
1739
- cleared: z.ZodOptional<z.ZodEnum<{
1740
- cleared: "cleared";
1741
- uncleared: "uncleared";
1742
- }>>;
1743
- approved: z.ZodOptional<z.ZodBoolean>;
1744
- import_id: z.ZodOptional<z.ZodString>;
1745
- }, z.core.$strip>;
1746
- reason: z.ZodString;
1747
- bulk_chunk_index: z.ZodOptional<z.ZodNumber>;
1748
- correlation_key: z.ZodOptional<z.ZodString>;
1749
- }, z.core.$strip>, z.ZodObject<{
1750
- type: z.ZodLiteral<"create_transaction_duplicate">;
1751
- transaction: z.ZodObject<{
1752
- transaction_id: z.ZodNullable<z.ZodString>;
1753
- import_id: z.ZodOptional<z.ZodString>;
1754
- }, z.core.$strip>;
1755
- reason: z.ZodString;
1756
- bulk_chunk_index: z.ZodNumber;
1757
- correlation_key: z.ZodOptional<z.ZodString>;
1758
- duplicate: z.ZodLiteral<true>;
1759
- }, z.core.$strip>, z.ZodObject<{
1760
- type: z.ZodLiteral<"update_transaction">;
1761
- transaction: z.ZodUnion<readonly [z.ZodNullable<z.ZodObject<{
1762
- id: z.ZodString;
1763
- date: z.ZodString;
1764
- amount: z.ZodNumber;
1765
- memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1766
- cleared: z.ZodOptional<z.ZodEnum<{
1767
- cleared: "cleared";
1768
- uncleared: "uncleared";
1769
- reconciled: "reconciled";
1770
- }>>;
1771
- approved: z.ZodOptional<z.ZodBoolean>;
1772
- payee_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
- category_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
- import_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
- }, z.core.$loose>>, z.ZodObject<{
1776
- transaction_id: z.ZodString;
1777
- new_date: z.ZodOptional<z.ZodString>;
1778
- cleared: z.ZodOptional<z.ZodEnum<{
1779
- cleared: "cleared";
1780
- uncleared: "uncleared";
1781
- reconciled: "reconciled";
1782
- }>>;
1783
- }, z.core.$strip>]>;
1784
- reason: z.ZodString;
1785
- }, z.core.$strip>, z.ZodObject<{
1786
- type: z.ZodLiteral<"balance_checkpoint">;
1787
- transaction: z.ZodNull;
1788
- reason: z.ZodString;
1789
- }, z.core.$strip>, z.ZodObject<{
1790
- type: z.ZodLiteral<"bulk_create_fallback">;
1791
- transaction: z.ZodNull;
1792
- reason: z.ZodString;
1793
- bulk_chunk_index: z.ZodNumber;
1794
- }, z.core.$strip>, z.ZodObject<{
1795
- type: z.ZodLiteral<"batch_update_failed">;
1796
- transaction: z.ZodNull;
1797
- reason: z.ZodString;
1798
- }, z.core.$strip>, z.ZodObject<{
1799
- type: z.ZodLiteral<"batch_reconcile_failed">;
1800
- transaction: z.ZodNull;
1801
- reason: z.ZodString;
1802
- }, z.core.$strip>, z.ZodObject<{
1803
- type: z.ZodLiteral<"reconciliation_complete">;
1804
- transaction: z.ZodNull;
1805
- reason: z.ZodString;
1806
- }, z.core.$strip>, z.ZodObject<{
1807
- type: z.ZodLiteral<"diagnostic_step3_entry">;
1808
- transaction: z.ZodNull;
1809
- reason: z.ZodString;
1810
- }, z.core.$strip>, z.ZodObject<{
1811
- type: z.ZodLiteral<"diagnostic_unmatched_ynab">;
1812
- transaction: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1813
- reason: z.ZodString;
1814
- }, z.core.$strip>], "type">>;
1815
- recommendations: z.ZodArray<z.ZodString>;
1816
- balance_reconciliation: z.ZodOptional<z.ZodUnknown>;
1817
- bulk_operation_details: z.ZodOptional<z.ZodObject<{
1818
- chunks_processed: z.ZodNumber;
1819
- bulk_successes: z.ZodNumber;
1820
- sequential_fallbacks: z.ZodNumber;
1821
- duplicates_detected: z.ZodNumber;
1822
- failed_transactions: z.ZodNumber;
1823
- bulk_chunk_failures: z.ZodNumber;
1824
- transaction_failures: z.ZodNumber;
1825
- sequential_attempts: z.ZodOptional<z.ZodNumber>;
1826
- }, z.core.$strip>>;
1827
- }, z.core.$strip>>;
1828
- audit: z.ZodOptional<z.ZodObject<{
1829
- data_freshness: z.ZodString;
1830
- data_source: z.ZodString;
1831
- server_knowledge: z.ZodOptional<z.ZodNumber>;
1832
- fetched_at: z.ZodString;
1833
- accounts_count: z.ZodOptional<z.ZodNumber>;
1834
- transactions_count: z.ZodOptional<z.ZodNumber>;
1835
- cache_status: z.ZodObject<{
1836
- accounts_cached: z.ZodBoolean;
1837
- transactions_cached: z.ZodBoolean;
1838
- delta_merge_applied: z.ZodBoolean;
1839
- }, z.core.$strip>;
1840
- }, z.core.$catchall<z.ZodUnknown>>>;
1841
- }, z.core.$strip>, z.ZodObject<{
1082
+ structured: z.ZodObject<{
1842
1083
  unmatched_bank: z.ZodArray<z.ZodObject<{
1843
1084
  id: z.ZodString;
1844
1085
  date: z.ZodString;
@@ -1982,8 +1223,18 @@ export declare const ReconcileAccountOutputSchema: z.ZodUnion<readonly [z.ZodObj
1982
1223
  action_hint: z.ZodOptional<z.ZodString>;
1983
1224
  recommendation: z.ZodOptional<z.ZodString>;
1984
1225
  }, z.core.$strip>>;
1985
- }, z.core.$strict>]>;
1986
- }, z.core.$strict>, z.ZodObject<{
1987
- human: z.ZodString;
1988
- }, 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>;
1989
1240
  export type ReconcileAccountOutput = z.infer<typeof ReconcileAccountOutputSchema>;