ynab-mcp-deluxe 0.1.9

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.
@@ -0,0 +1,535 @@
1
+ /**
2
+ * Type definitions for the YNAB MCP server
3
+ */
4
+ import type { Account, BudgetDetail, Category, CategoryGroup, CurrencyFormat, MonthDetail, Payee, PayeeLocation, ScheduledSubTransaction, ScheduledTransactionSummary, SubTransaction, TransactionClearedStatus, TransactionFlagColor, TransactionSummary } from 'ynab';
5
+ /**
6
+ * Cleared status derived from YNAB SDK.
7
+ * DO NOT hardcode these values - always use this type.
8
+ */
9
+ export type ClearedStatus = TransactionClearedStatus;
10
+ /**
11
+ * Flag color derived from YNAB SDK.
12
+ * The SDK includes "" (empty string) for "no flag". For input types
13
+ * (create/update), use FlagColorInput which excludes the empty string.
14
+ */
15
+ export type FlagColor = TransactionFlagColor;
16
+ /**
17
+ * Flag color for input operations (create/update) - excludes the empty
18
+ * string value that the SDK includes for "no flag".
19
+ */
20
+ export type FlagColorInput = Exclude<TransactionFlagColor, ''>;
21
+ /**
22
+ * Local replica of a YNAB budget with O(1) lookup maps.
23
+ * This is NOT a cache - it's a local copy that we keep in sync with the server.
24
+ */
25
+ export interface LocalBudget {
26
+ accountById: Map<string, Account>;
27
+ accountByName: Map<string, Account>;
28
+ accounts: Account[];
29
+ budgetId: string;
30
+ budgetName: string;
31
+ categories: Category[];
32
+ categoryById: Map<string, Category>;
33
+ categoryByName: Map<string, Category>;
34
+ categoryGroupNameById: Map<string, string>;
35
+ categoryGroups: CategoryGroup[];
36
+ currencyFormat: CurrencyFormat | null;
37
+ lastSyncedAt: Date;
38
+ months: MonthDetail[];
39
+ needsSync: boolean;
40
+ payeeById: Map<string, Payee>;
41
+ payeeLocations: PayeeLocation[];
42
+ payees: Payee[];
43
+ scheduledSubtransactions: ScheduledSubTransaction[];
44
+ scheduledSubtransactionsByScheduledTransactionId: Map<string, ScheduledSubTransaction[]>;
45
+ scheduledTransactions: ScheduledTransactionSummary[];
46
+ serverKnowledge: number;
47
+ subtransactions: SubTransaction[];
48
+ subtransactionsByTransactionId: Map<string, SubTransaction[]>;
49
+ transactions: TransactionSummary[];
50
+ }
51
+ /**
52
+ * Sync type for tracking what kind of sync was performed
53
+ */
54
+ export type SyncType = 'full' | 'delta';
55
+ /**
56
+ * Options for getLocalBudgetWithSync()
57
+ */
58
+ export interface GetLocalBudgetOptions {
59
+ /**
60
+ * Force a sync operation:
61
+ * - 'full': Do a complete re-fetch (useful for sanity checks, suspected drift)
62
+ * - 'delta': Force delta sync even if interval hasn't passed
63
+ * - undefined: Let sync policy decide
64
+ */
65
+ forceSync?: 'full' | 'delta';
66
+ }
67
+ /**
68
+ * Sync history entry persisted to disk
69
+ */
70
+ export interface SyncHistoryEntry {
71
+ /**
72
+ * Budget data from YNAB API response.
73
+ * For full sync: complete budget.
74
+ * For delta sync: only changed entities.
75
+ */
76
+ budget: BudgetDetail;
77
+ /**
78
+ * For delta syncs, the server_knowledge before the sync.
79
+ * Null for full syncs.
80
+ */
81
+ previousServerKnowledge: number | null;
82
+ /**
83
+ * The server_knowledge returned by this sync.
84
+ */
85
+ serverKnowledge: number;
86
+ /**
87
+ * Type of sync performed
88
+ */
89
+ syncType: SyncType;
90
+ /**
91
+ * When this sync was performed (ISO 8601 UTC)
92
+ */
93
+ syncedAt: string;
94
+ }
95
+ /**
96
+ * Performance timing data for sync operations
97
+ */
98
+ export interface SyncPerformanceTiming {
99
+ apiDurationMs: number;
100
+ mergeDurationMs: number;
101
+ persistDurationMs: number;
102
+ rebuildMapsDurationMs: number;
103
+ totalDurationMs: number;
104
+ }
105
+ /**
106
+ * Result of a sync operation
107
+ */
108
+ export interface SyncResult {
109
+ /** Change counts from delta sync (null for full sync) */
110
+ changesReceived: {
111
+ accounts: number;
112
+ categories: number;
113
+ months: number;
114
+ payees: number;
115
+ scheduledTransactions: number;
116
+ transactions: number;
117
+ } | null;
118
+ /** The updated local budget */
119
+ localBudget: LocalBudget;
120
+ /** Type of sync performed */
121
+ syncType: SyncType;
122
+ /** Performance timing data */
123
+ timing: SyncPerformanceTiming;
124
+ }
125
+ /**
126
+ * Interface for sync providers (API, Static JSON, etc.)
127
+ */
128
+ export interface SyncProvider {
129
+ /**
130
+ * Perform a delta sync using last_knowledge_of_server.
131
+ * Returns the delta response from YNAB API.
132
+ */
133
+ deltaSync(budgetId: string, lastKnowledge: number): Promise<{
134
+ budget: BudgetDetail;
135
+ serverKnowledge: number;
136
+ }>;
137
+ /**
138
+ * Perform a full sync (initial or forced).
139
+ * Returns the complete budget from YNAB API.
140
+ */
141
+ fullSync(budgetId: string): Promise<{
142
+ budget: BudgetDetail;
143
+ serverKnowledge: number;
144
+ }>;
145
+ }
146
+ /**
147
+ * Enriched subtransaction with resolved names
148
+ */
149
+ export interface EnrichedSubTransaction {
150
+ amount: number;
151
+ amount_currency: number;
152
+ category_group_name: string | null;
153
+ category_id: string | null;
154
+ category_name: string | null;
155
+ id: string;
156
+ memo: string | null;
157
+ payee_id: string | null;
158
+ payee_name: string | null;
159
+ transaction_id: string;
160
+ transfer_account_id: string | null;
161
+ }
162
+ /**
163
+ * Enriched transaction with both IDs (for API operations) and resolved names (for LLM reasoning)
164
+ */
165
+ export interface EnrichedTransaction {
166
+ account_id: string;
167
+ account_name: string;
168
+ amount: number;
169
+ amount_currency: number;
170
+ approved: boolean;
171
+ category_group_name: string | null;
172
+ category_id: string | null;
173
+ category_name: string | null;
174
+ cleared: ClearedStatus;
175
+ date: string;
176
+ flag_color: string | null;
177
+ id: string;
178
+ import_id: string | null;
179
+ import_payee_name: string | null;
180
+ import_payee_name_original: string | null;
181
+ memo: string | null;
182
+ payee_id: string | null;
183
+ payee_name: string | null;
184
+ subtransactions: EnrichedSubTransaction[];
185
+ transfer_account_id: string | null;
186
+ }
187
+ /**
188
+ * Category with group information
189
+ */
190
+ export interface EnrichedCategory {
191
+ activity?: number;
192
+ balance?: number;
193
+ budgeted?: number;
194
+ category_group_id: string;
195
+ category_group_name: string;
196
+ deleted: boolean;
197
+ hidden: boolean;
198
+ id: string;
199
+ name: string;
200
+ }
201
+ /**
202
+ * Account with currency amounts
203
+ */
204
+ export interface EnrichedAccount {
205
+ balance: number;
206
+ balance_currency: number;
207
+ cleared_balance: number;
208
+ cleared_balance_currency: number;
209
+ closed: boolean;
210
+ /** If linked, whether the connection is in an error state */
211
+ direct_import_in_error: boolean;
212
+ /** Whether the account is linked to a financial institution for automatic import */
213
+ direct_import_linked: boolean;
214
+ id: string;
215
+ name: string;
216
+ on_budget: boolean;
217
+ type: string;
218
+ uncleared_balance: number;
219
+ uncleared_balance_currency: number;
220
+ }
221
+ /**
222
+ * Payee information
223
+ */
224
+ export interface EnrichedPayee {
225
+ id: string;
226
+ name: string;
227
+ transfer_account_id: string | null;
228
+ }
229
+ /**
230
+ * Budget summary with currency format
231
+ */
232
+ export interface EnrichedBudgetSummary {
233
+ currency_format: {
234
+ currency_symbol: string;
235
+ decimal_digits: number;
236
+ decimal_separator: string;
237
+ example_format: string;
238
+ iso_code: string;
239
+ symbol_first: boolean;
240
+ } | null;
241
+ first_month: string | null;
242
+ id: string;
243
+ last_modified_on: string | null;
244
+ last_month: string | null;
245
+ name: string;
246
+ }
247
+ /**
248
+ * Category distribution entry for payee history
249
+ */
250
+ export interface CategoryDistribution {
251
+ category_group_name: string | null;
252
+ category_name: string | null;
253
+ count: number;
254
+ percentage: number;
255
+ }
256
+ /**
257
+ * Payee history response
258
+ */
259
+ export interface PayeeHistoryResponse {
260
+ category_distribution: CategoryDistribution[];
261
+ payee_search: string;
262
+ total_matches: number;
263
+ transactions: EnrichedTransaction[];
264
+ }
265
+ /**
266
+ * Update transaction result
267
+ */
268
+ export interface UpdateTransactionsResult {
269
+ updated: EnrichedTransaction[];
270
+ }
271
+ /**
272
+ * Category group with categories (for get_categories response)
273
+ */
274
+ export interface CategoryGroupResponse {
275
+ categories: {
276
+ hidden: boolean;
277
+ id: string;
278
+ name: string;
279
+ }[];
280
+ group_id: string;
281
+ group_name: string;
282
+ }
283
+ /**
284
+ * Budget selector - can specify by name or id
285
+ */
286
+ export interface BudgetSelector {
287
+ id?: string;
288
+ name?: string;
289
+ }
290
+ /**
291
+ * Account selector - can specify by name or id
292
+ */
293
+ export interface AccountSelector {
294
+ id?: string;
295
+ name?: string;
296
+ }
297
+ /**
298
+ * Transaction status filter
299
+ */
300
+ export type TransactionStatus = 'uncategorized' | 'unapproved' | 'all';
301
+ /**
302
+ * Sort options for transactions
303
+ */
304
+ export type TransactionSortBy = 'newest' | 'oldest' | 'amount_desc' | 'amount_asc';
305
+ /**
306
+ * Update subtransaction input (for split transactions)
307
+ */
308
+ export interface UpdateSubTransactionInput {
309
+ /** Amount in milliunits (must sum to parent transaction amount) */
310
+ amount: number;
311
+ /** Category ID for this subtransaction */
312
+ category_id?: string;
313
+ /** Memo for this subtransaction (max 500 chars) */
314
+ memo?: string;
315
+ /** Payee ID for this subtransaction */
316
+ payee_id?: string;
317
+ /** Payee name (creates new if not found, max 200 chars) */
318
+ payee_name?: string;
319
+ }
320
+ /**
321
+ * Transaction update payload - supports full transaction editing
322
+ */
323
+ export interface TransactionUpdate {
324
+ /** Move transaction to different account */
325
+ account_id?: string;
326
+ /** Change amount (in milliunits) */
327
+ amount?: number;
328
+ /** Set approval status */
329
+ approved?: boolean;
330
+ /** Set category */
331
+ category_id?: string;
332
+ /** Set cleared status */
333
+ cleared?: ClearedStatus;
334
+ /** Change transaction date (YYYY-MM-DD) */
335
+ date?: string;
336
+ /** Set flag color (null to clear) */
337
+ flag_color?: FlagColorInput | null;
338
+ /** Transaction ID (required) */
339
+ id: string;
340
+ /** Set memo text */
341
+ memo?: string;
342
+ /** Set payee by ID */
343
+ payee_id?: string;
344
+ /** Set payee by name (creates new payee if not found) */
345
+ payee_name?: string;
346
+ /**
347
+ * Subtransactions for split transactions.
348
+ * WARNING: This OVERWRITES all existing subtransactions - it does not merge.
349
+ * When provided, the parent category_id should be null.
350
+ * Subtransaction amounts must sum to the parent amount.
351
+ *
352
+ * TODO: Consider adding a merge mode that fetches existing subtransactions
353
+ * and merges with the provided ones, for a more intuitive UX.
354
+ */
355
+ subtransactions?: UpdateSubTransactionInput[];
356
+ }
357
+ /**
358
+ * Category selector - can specify by name or id
359
+ */
360
+ export interface CategorySelector {
361
+ id?: string;
362
+ name?: string;
363
+ }
364
+ /**
365
+ * Payee selector - can specify by name or id
366
+ */
367
+ export interface PayeeSelector {
368
+ id?: string;
369
+ name?: string;
370
+ }
371
+ /**
372
+ * Enriched scheduled subtransaction (for split scheduled transactions)
373
+ */
374
+ export interface EnrichedScheduledSubTransaction {
375
+ amount: number;
376
+ amount_currency: number;
377
+ category_id: string | null;
378
+ category_name: string | null;
379
+ id: string;
380
+ memo: string | null;
381
+ payee_id: string | null;
382
+ payee_name: string | null;
383
+ scheduled_transaction_id: string;
384
+ transfer_account_id: string | null;
385
+ }
386
+ /**
387
+ * Enriched scheduled transaction
388
+ */
389
+ export interface EnrichedScheduledTransaction {
390
+ account_id: string;
391
+ account_name: string;
392
+ amount: number;
393
+ amount_currency: number;
394
+ category_id: string | null;
395
+ category_name: string | null;
396
+ date_first: string;
397
+ date_next: string;
398
+ flag_color: string | null;
399
+ frequency: string;
400
+ id: string;
401
+ memo: string | null;
402
+ payee_id: string | null;
403
+ payee_name: string | null;
404
+ subtransactions: EnrichedScheduledSubTransaction[];
405
+ transfer_account_id: string | null;
406
+ }
407
+ /**
408
+ * Month summary
409
+ */
410
+ export interface EnrichedMonthSummary {
411
+ activity: number;
412
+ activity_currency: number;
413
+ age_of_money: number | null;
414
+ budgeted: number;
415
+ budgeted_currency: number;
416
+ income: number;
417
+ income_currency: number;
418
+ month: string;
419
+ note: string | null;
420
+ to_be_budgeted: number;
421
+ to_be_budgeted_currency: number;
422
+ }
423
+ /**
424
+ * Budget month detail with categories
425
+ */
426
+ export interface EnrichedBudgetMonthDetail {
427
+ activity: number;
428
+ activity_currency: number;
429
+ age_of_money: number | null;
430
+ budgeted: number;
431
+ budgeted_currency: number;
432
+ categories: EnrichedMonthCategory[];
433
+ income: number;
434
+ income_currency: number;
435
+ month: string;
436
+ note: string | null;
437
+ to_be_budgeted: number;
438
+ to_be_budgeted_currency: number;
439
+ }
440
+ /**
441
+ * Category with month-specific budget info
442
+ */
443
+ export interface EnrichedMonthCategory {
444
+ activity: number;
445
+ activity_currency: number;
446
+ balance: number;
447
+ balance_currency: number;
448
+ budgeted: number;
449
+ budgeted_currency: number;
450
+ category_group_id: string;
451
+ category_group_name: string;
452
+ goal_percentage_complete: number | null;
453
+ goal_target: number | null;
454
+ goal_type: string | null;
455
+ hidden: boolean;
456
+ id: string;
457
+ name: string;
458
+ }
459
+ /**
460
+ * Create subtransaction input (for split transactions)
461
+ */
462
+ export interface CreateSubTransactionInput {
463
+ /** Amount in milliunits (must sum to parent transaction amount) */
464
+ amount: number;
465
+ /** Category ID for this subtransaction */
466
+ category_id?: string;
467
+ /** Memo for this subtransaction (max 500 chars) */
468
+ memo?: string;
469
+ /** Payee ID for this subtransaction */
470
+ payee_id?: string;
471
+ /** Payee name (creates new if not found, max 200 chars) */
472
+ payee_name?: string;
473
+ }
474
+ /**
475
+ * Create transaction input
476
+ */
477
+ export interface CreateTransactionInput {
478
+ account_id: string;
479
+ amount: number;
480
+ approved?: boolean;
481
+ category_id?: string;
482
+ cleared?: ClearedStatus;
483
+ date: string;
484
+ flag_color?: FlagColorInput;
485
+ memo?: string;
486
+ payee_id?: string;
487
+ payee_name?: string;
488
+ /**
489
+ * Subtransactions for split transactions.
490
+ * When provided, the parent category_id should be null.
491
+ * Subtransaction amounts must sum to the parent amount.
492
+ */
493
+ subtransactions?: CreateSubTransactionInput[];
494
+ }
495
+ /**
496
+ * Budget backup metadata
497
+ */
498
+ export interface BudgetBackupMetadata {
499
+ backup_timestamp: string;
500
+ budget_id: string;
501
+ budget_name: string;
502
+ server_knowledge: number;
503
+ ynab_mcp_server_version: string;
504
+ }
505
+ /**
506
+ * Complete budget backup (raw YNAB export with metadata)
507
+ */
508
+ export interface BudgetBackup {
509
+ backup_metadata: BudgetBackupMetadata;
510
+ budget: unknown;
511
+ }
512
+ /**
513
+ * Journal entry for change tracking
514
+ */
515
+ export interface JournalEntry {
516
+ after: unknown;
517
+ before: unknown;
518
+ budget: {
519
+ id: string;
520
+ name: string;
521
+ };
522
+ changes?: Record<string, {
523
+ from: unknown;
524
+ to: unknown;
525
+ }>;
526
+ id: string;
527
+ metadata?: {
528
+ affected_count?: number;
529
+ affected_ids?: string[];
530
+ summary?: string;
531
+ };
532
+ operation: string;
533
+ timestamp: string;
534
+ }
535
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACX,KAAK,EACL,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,MAAM,CAAC;AAMd;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,wBAAwB,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;AAM/D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAE1B,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGpC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,QAAQ,EAAE,CAAC;IAEvB,YAAY,EAAE,GAAG,CAAC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