@warmio/mcp 5.0.0 → 6.0.0

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.
package/dist/schemas.d.ts CHANGED
@@ -1,276 +1,1248 @@
1
1
  import { z } from 'zod';
2
2
  export declare const emptyInputSchema: {};
3
- export declare const accountTypeSchema: z.ZodEnum<["depository", "credit", "loan", "investment", "other"]>;
4
- export declare const getAccountsOutputSchema: {
3
+ export declare const transactionIndexSchema: z.ZodObject<{
4
+ total: z.ZodNumber;
5
+ months: z.ZodArray<z.ZodObject<{
6
+ month: z.ZodString;
7
+ count: z.ZodNumber;
8
+ }, "strict", z.ZodTypeAny, {
9
+ month: string;
10
+ count: number;
11
+ }, {
12
+ month: string;
13
+ count: number;
14
+ }>, "many">;
15
+ }, "strict", z.ZodTypeAny, {
16
+ total: number;
17
+ months: {
18
+ month: string;
19
+ count: number;
20
+ }[];
21
+ }, {
22
+ total: number;
23
+ months: {
24
+ month: string;
25
+ count: number;
26
+ }[];
27
+ }>;
28
+ export declare const positionSchema: z.ZodObject<{
29
+ date: z.ZodNullable<z.ZodString>;
30
+ net_worth: z.ZodNullable<z.ZodNumber>;
31
+ cash: z.ZodNullable<z.ZodNumber>;
32
+ debt: z.ZodNullable<z.ZodNumber>;
33
+ investments: z.ZodNullable<z.ZodNumber>;
34
+ other_assets: z.ZodNullable<z.ZodNumber>;
35
+ total_assets: z.ZodNullable<z.ZodNumber>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ cash: number | null;
38
+ debt: number | null;
39
+ investments: number | null;
40
+ date: string | null;
41
+ net_worth: number | null;
42
+ other_assets: number | null;
43
+ total_assets: number | null;
44
+ }, {
45
+ cash: number | null;
46
+ debt: number | null;
47
+ investments: number | null;
48
+ date: string | null;
49
+ net_worth: number | null;
50
+ other_assets: number | null;
51
+ total_assets: number | null;
52
+ }>;
53
+ export declare const accountSchema: z.ZodObject<{
54
+ id: z.ZodString;
55
+ name: z.ZodString;
56
+ type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
57
+ subtype: z.ZodNullable<z.ZodString>;
58
+ group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
59
+ institution: z.ZodNullable<z.ZodString>;
60
+ mask: z.ZodNullable<z.ZodString>;
61
+ balance: z.ZodNullable<z.ZodNumber>;
62
+ available: z.ZodNullable<z.ZodNumber>;
63
+ currency: z.ZodNullable<z.ZodString>;
64
+ updated_at: z.ZodNullable<z.ZodString>;
65
+ }, "strict", z.ZodTypeAny, {
66
+ updated_at: string | null;
67
+ currency: string | null;
68
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
69
+ id: string;
70
+ name: string;
71
+ subtype: string | null;
72
+ group: "cash" | "debt" | "investments" | null;
73
+ institution: string | null;
74
+ mask: string | null;
75
+ balance: number | null;
76
+ available: number | null;
77
+ }, {
78
+ updated_at: string | null;
79
+ currency: string | null;
80
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
81
+ id: string;
82
+ name: string;
83
+ subtype: string | null;
84
+ group: "cash" | "debt" | "investments" | null;
85
+ institution: string | null;
86
+ mask: string | null;
87
+ balance: number | null;
88
+ available: number | null;
89
+ }>;
90
+ export declare const statusSchema: z.ZodObject<{
91
+ position: z.ZodNullable<z.ZodObject<{
92
+ date: z.ZodNullable<z.ZodString>;
93
+ net_worth: z.ZodNullable<z.ZodNumber>;
94
+ cash: z.ZodNullable<z.ZodNumber>;
95
+ debt: z.ZodNullable<z.ZodNumber>;
96
+ investments: z.ZodNullable<z.ZodNumber>;
97
+ other_assets: z.ZodNullable<z.ZodNumber>;
98
+ total_assets: z.ZodNullable<z.ZodNumber>;
99
+ }, "strict", z.ZodTypeAny, {
100
+ cash: number | null;
101
+ debt: number | null;
102
+ investments: number | null;
103
+ date: string | null;
104
+ net_worth: number | null;
105
+ other_assets: number | null;
106
+ total_assets: number | null;
107
+ }, {
108
+ cash: number | null;
109
+ debt: number | null;
110
+ investments: number | null;
111
+ date: string | null;
112
+ net_worth: number | null;
113
+ other_assets: number | null;
114
+ total_assets: number | null;
115
+ }>>;
5
116
  accounts: z.ZodArray<z.ZodObject<{
6
- balance: z.ZodNumber;
7
- institution: z.ZodNullable<z.ZodString>;
8
- mask: z.ZodNullable<z.ZodString>;
117
+ id: z.ZodString;
9
118
  name: z.ZodString;
119
+ type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
10
120
  subtype: z.ZodNullable<z.ZodString>;
11
- type: z.ZodEnum<["depository", "credit", "loan", "investment", "other"]>;
121
+ group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
122
+ institution: z.ZodNullable<z.ZodString>;
123
+ mask: z.ZodNullable<z.ZodString>;
124
+ balance: z.ZodNullable<z.ZodNumber>;
125
+ available: z.ZodNullable<z.ZodNumber>;
126
+ currency: z.ZodNullable<z.ZodString>;
127
+ updated_at: z.ZodNullable<z.ZodString>;
12
128
  }, "strict", z.ZodTypeAny, {
13
- balance: number;
129
+ updated_at: string | null;
130
+ currency: string | null;
131
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
132
+ id: string;
133
+ name: string;
134
+ subtype: string | null;
135
+ group: "cash" | "debt" | "investments" | null;
136
+ institution: string | null;
137
+ mask: string | null;
138
+ balance: number | null;
139
+ available: number | null;
140
+ }, {
141
+ updated_at: string | null;
142
+ currency: string | null;
143
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
144
+ id: string;
145
+ name: string;
146
+ subtype: string | null;
147
+ group: "cash" | "debt" | "investments" | null;
14
148
  institution: string | null;
15
149
  mask: string | null;
150
+ balance: number | null;
151
+ available: number | null;
152
+ }>, "many">;
153
+ }, "strict", z.ZodTypeAny, {
154
+ position: {
155
+ cash: number | null;
156
+ debt: number | null;
157
+ investments: number | null;
158
+ date: string | null;
159
+ net_worth: number | null;
160
+ other_assets: number | null;
161
+ total_assets: number | null;
162
+ } | null;
163
+ accounts: {
164
+ updated_at: string | null;
165
+ currency: string | null;
166
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
167
+ id: string;
16
168
  name: string;
17
169
  subtype: string | null;
18
- type: "depository" | "credit" | "loan" | "investment" | "other";
19
- }, {
20
- balance: number;
170
+ group: "cash" | "debt" | "investments" | null;
21
171
  institution: string | null;
22
172
  mask: string | null;
173
+ balance: number | null;
174
+ available: number | null;
175
+ }[];
176
+ }, {
177
+ position: {
178
+ cash: number | null;
179
+ debt: number | null;
180
+ investments: number | null;
181
+ date: string | null;
182
+ net_worth: number | null;
183
+ other_assets: number | null;
184
+ total_assets: number | null;
185
+ } | null;
186
+ accounts: {
187
+ updated_at: string | null;
188
+ currency: string | null;
189
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
190
+ id: string;
23
191
  name: string;
24
192
  subtype: string | null;
25
- type: "depository" | "credit" | "loan" | "investment" | "other";
26
- }>, "many">;
27
- };
28
- export declare const getTransactionsInputSchema: {
29
- cursor: z.ZodOptional<z.ZodString>;
30
- last_knowledge: z.ZodOptional<z.ZodString>;
31
- limit: z.ZodDefault<z.ZodNumber>;
32
- search: z.ZodOptional<z.ZodString>;
33
- };
34
- export declare const getTransactionsOutputSchema: {
35
- generated_at: z.ZodNullable<z.ZodString>;
36
- next_knowledge: z.ZodNullable<z.ZodString>;
37
- pagination: z.ZodObject<{
38
- has_more: z.ZodBoolean;
39
- limit: z.ZodNumber;
40
- next_cursor: z.ZodNullable<z.ZodString>;
193
+ group: "cash" | "debt" | "investments" | null;
194
+ institution: string | null;
195
+ mask: string | null;
196
+ balance: number | null;
197
+ available: number | null;
198
+ }[];
199
+ }>;
200
+ export declare const recurringSchema: z.ZodObject<{
201
+ id: z.ZodString;
202
+ account_id: z.ZodNullable<z.ZodString>;
203
+ direction: z.ZodNullable<z.ZodEnum<["inflow", "outflow"]>>;
204
+ frequency: z.ZodNullable<z.ZodEnum<["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMI_ANNUALLY", "ANNUALLY"]>>;
205
+ status: z.ZodNullable<z.ZodEnum<["active", "inactive", "dismissed"]>>;
206
+ merchant: z.ZodNullable<z.ZodString>;
207
+ amount: z.ZodNullable<z.ZodNumber>;
208
+ next_date: z.ZodNullable<z.ZodString>;
209
+ }, "strict", z.ZodTypeAny, {
210
+ merchant: string | null;
211
+ status: "active" | "inactive" | "dismissed" | null;
212
+ id: string;
213
+ account_id: string | null;
214
+ direction: "inflow" | "outflow" | null;
215
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
216
+ amount: number | null;
217
+ next_date: string | null;
218
+ }, {
219
+ merchant: string | null;
220
+ status: "active" | "inactive" | "dismissed" | null;
221
+ id: string;
222
+ account_id: string | null;
223
+ direction: "inflow" | "outflow" | null;
224
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
225
+ amount: number | null;
226
+ next_date: string | null;
227
+ }>;
228
+ export declare const budgetSchema: z.ZodObject<{
229
+ id: z.ZodString;
230
+ name: z.ZodString;
231
+ type: z.ZodEnum<["category", "merchant"]>;
232
+ period: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
233
+ status: z.ZodEnum<["under", "warning", "over"]>;
234
+ amount: z.ZodNumber;
235
+ spent: z.ZodNumber;
236
+ remaining: z.ZodNumber;
237
+ used_percent: z.ZodNumber;
238
+ }, "strict", z.ZodTypeAny, {
239
+ status: "under" | "warning" | "over";
240
+ type: "category" | "merchant";
241
+ id: string;
242
+ name: string;
243
+ amount: number;
244
+ period: "weekly" | "biweekly" | "monthly";
245
+ spent: number;
246
+ remaining: number;
247
+ used_percent: number;
248
+ }, {
249
+ status: "under" | "warning" | "over";
250
+ type: "category" | "merchant";
251
+ id: string;
252
+ name: string;
253
+ amount: number;
254
+ period: "weekly" | "biweekly" | "monthly";
255
+ spent: number;
256
+ remaining: number;
257
+ used_percent: number;
258
+ }>;
259
+ export declare const goalSchema: z.ZodObject<{
260
+ id: z.ZodString;
261
+ name: z.ZodString;
262
+ category: z.ZodString;
263
+ status: z.ZodEnum<["not_started", "in_progress", "on_track", "behind", "completed"]>;
264
+ target: z.ZodNumber;
265
+ current: z.ZodNumber;
266
+ progress_percent: z.ZodNumber;
267
+ target_date: z.ZodNullable<z.ZodString>;
268
+ }, "strict", z.ZodTypeAny, {
269
+ category: string;
270
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
271
+ id: string;
272
+ name: string;
273
+ target: number;
274
+ current: number;
275
+ progress_percent: number;
276
+ target_date: string | null;
277
+ }, {
278
+ category: string;
279
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
280
+ id: string;
281
+ name: string;
282
+ target: number;
283
+ current: number;
284
+ progress_percent: number;
285
+ target_date: string | null;
286
+ }>;
287
+ export declare const snapshotSchema: z.ZodObject<{
288
+ date: z.ZodString;
289
+ net_worth: z.ZodNullable<z.ZodNumber>;
290
+ cash: z.ZodNullable<z.ZodNumber>;
291
+ debt: z.ZodNullable<z.ZodNumber>;
292
+ income: z.ZodNullable<z.ZodNumber>;
293
+ expenses: z.ZodNullable<z.ZodNumber>;
294
+ cash_flow: z.ZodNullable<z.ZodNumber>;
295
+ savings_rate: z.ZodNullable<z.ZodNumber>;
296
+ investments: z.ZodNullable<z.ZodNumber>;
297
+ assets: z.ZodNullable<z.ZodNumber>;
298
+ health_score: z.ZodNullable<z.ZodNumber>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ cash: number | null;
301
+ debt: number | null;
302
+ investments: number | null;
303
+ date: string;
304
+ net_worth: number | null;
305
+ income: number | null;
306
+ expenses: number | null;
307
+ cash_flow: number | null;
308
+ savings_rate: number | null;
309
+ assets: number | null;
310
+ health_score: number | null;
311
+ }, {
312
+ cash: number | null;
313
+ debt: number | null;
314
+ investments: number | null;
315
+ date: string;
316
+ net_worth: number | null;
317
+ income: number | null;
318
+ expenses: number | null;
319
+ cash_flow: number | null;
320
+ savings_rate: number | null;
321
+ assets: number | null;
322
+ health_score: number | null;
323
+ }>;
324
+ export declare const liabilitySchema: z.ZodObject<{
325
+ account_id: z.ZodNullable<z.ZodString>;
326
+ type: z.ZodNullable<z.ZodEnum<["credit", "student", "mortgage", "other"]>>;
327
+ balance: z.ZodNullable<z.ZodNumber>;
328
+ minimum_payment: z.ZodNullable<z.ZodNumber>;
329
+ due_date: z.ZodNullable<z.ZodString>;
330
+ interest_rate: z.ZodNullable<z.ZodNumber>;
331
+ rate_type: z.ZodNullable<z.ZodEnum<["fixed", "variable"]>>;
332
+ overdue: z.ZodNullable<z.ZodBoolean>;
333
+ }, "strict", z.ZodTypeAny, {
334
+ type: "credit" | "other" | "student" | "mortgage" | null;
335
+ balance: number | null;
336
+ account_id: string | null;
337
+ minimum_payment: number | null;
338
+ due_date: string | null;
339
+ interest_rate: number | null;
340
+ rate_type: "fixed" | "variable" | null;
341
+ overdue: boolean | null;
342
+ }, {
343
+ type: "credit" | "other" | "student" | "mortgage" | null;
344
+ balance: number | null;
345
+ account_id: string | null;
346
+ minimum_payment: number | null;
347
+ due_date: string | null;
348
+ interest_rate: number | null;
349
+ rate_type: "fixed" | "variable" | null;
350
+ overdue: boolean | null;
351
+ }>;
352
+ export declare const holdingSchema: z.ZodObject<{
353
+ account_id: z.ZodNullable<z.ZodString>;
354
+ symbol: z.ZodNullable<z.ZodString>;
355
+ name: z.ZodNullable<z.ZodString>;
356
+ type: z.ZodNullable<z.ZodEnum<["cash", "derivative", "equity", "etf", "fixed_income", "mutual_fund", "other"]>>;
357
+ quantity: z.ZodNullable<z.ZodNumber>;
358
+ value: z.ZodNullable<z.ZodNumber>;
359
+ cost_basis: z.ZodNullable<z.ZodNumber>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ symbol: string | null;
362
+ value: number | null;
363
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
364
+ name: string | null;
365
+ account_id: string | null;
366
+ quantity: number | null;
367
+ cost_basis: number | null;
368
+ }, {
369
+ symbol: string | null;
370
+ value: number | null;
371
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
372
+ name: string | null;
373
+ account_id: string | null;
374
+ quantity: number | null;
375
+ cost_basis: number | null;
376
+ }>;
377
+ export declare const healthSchema: z.ZodObject<{
378
+ score: z.ZodNumber;
379
+ label: z.ZodEnum<["Needs Attention", "Good", "Strong"]>;
380
+ level: z.ZodEnum<["critical", "poor", "fair", "good", "strong"]>;
381
+ summary: z.ZodString;
382
+ data_completeness: z.ZodNumber;
383
+ pillars: z.ZodNullable<z.ZodObject<{
384
+ spend: z.ZodNullable<z.ZodNumber>;
385
+ save: z.ZodNullable<z.ZodNumber>;
386
+ borrow: z.ZodNullable<z.ZodNumber>;
387
+ build: z.ZodNullable<z.ZodNumber>;
388
+ }, "strict", z.ZodTypeAny, {
389
+ spend: number | null;
390
+ save: number | null;
391
+ borrow: number | null;
392
+ build: number | null;
393
+ }, {
394
+ spend: number | null;
395
+ save: number | null;
396
+ borrow: number | null;
397
+ build: number | null;
398
+ }>>;
399
+ }, "strict", z.ZodTypeAny, {
400
+ score: number;
401
+ label: "Needs Attention" | "Good" | "Strong";
402
+ level: "critical" | "poor" | "fair" | "good" | "strong";
403
+ summary: string;
404
+ data_completeness: number;
405
+ pillars: {
406
+ spend: number | null;
407
+ save: number | null;
408
+ borrow: number | null;
409
+ build: number | null;
410
+ } | null;
411
+ }, {
412
+ score: number;
413
+ label: "Needs Attention" | "Good" | "Strong";
414
+ level: "critical" | "poor" | "fair" | "good" | "strong";
415
+ summary: string;
416
+ data_completeness: number;
417
+ pillars: {
418
+ spend: number | null;
419
+ save: number | null;
420
+ borrow: number | null;
421
+ build: number | null;
422
+ } | null;
423
+ }>;
424
+ export declare const financialContextSchema: z.ZodObject<{
425
+ version: z.ZodLiteral<"v1">;
426
+ updated_at: z.ZodString;
427
+ currency: z.ZodLiteral<"USD">;
428
+ status: z.ZodObject<{
429
+ position: z.ZodNullable<z.ZodObject<{
430
+ date: z.ZodNullable<z.ZodString>;
431
+ net_worth: z.ZodNullable<z.ZodNumber>;
432
+ cash: z.ZodNullable<z.ZodNumber>;
433
+ debt: z.ZodNullable<z.ZodNumber>;
434
+ investments: z.ZodNullable<z.ZodNumber>;
435
+ other_assets: z.ZodNullable<z.ZodNumber>;
436
+ total_assets: z.ZodNullable<z.ZodNumber>;
437
+ }, "strict", z.ZodTypeAny, {
438
+ cash: number | null;
439
+ debt: number | null;
440
+ investments: number | null;
441
+ date: string | null;
442
+ net_worth: number | null;
443
+ other_assets: number | null;
444
+ total_assets: number | null;
445
+ }, {
446
+ cash: number | null;
447
+ debt: number | null;
448
+ investments: number | null;
449
+ date: string | null;
450
+ net_worth: number | null;
451
+ other_assets: number | null;
452
+ total_assets: number | null;
453
+ }>>;
454
+ accounts: z.ZodArray<z.ZodObject<{
455
+ id: z.ZodString;
456
+ name: z.ZodString;
457
+ type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
458
+ subtype: z.ZodNullable<z.ZodString>;
459
+ group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
460
+ institution: z.ZodNullable<z.ZodString>;
461
+ mask: z.ZodNullable<z.ZodString>;
462
+ balance: z.ZodNullable<z.ZodNumber>;
463
+ available: z.ZodNullable<z.ZodNumber>;
464
+ currency: z.ZodNullable<z.ZodString>;
465
+ updated_at: z.ZodNullable<z.ZodString>;
466
+ }, "strict", z.ZodTypeAny, {
467
+ updated_at: string | null;
468
+ currency: string | null;
469
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
470
+ id: string;
471
+ name: string;
472
+ subtype: string | null;
473
+ group: "cash" | "debt" | "investments" | null;
474
+ institution: string | null;
475
+ mask: string | null;
476
+ balance: number | null;
477
+ available: number | null;
478
+ }, {
479
+ updated_at: string | null;
480
+ currency: string | null;
481
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
482
+ id: string;
483
+ name: string;
484
+ subtype: string | null;
485
+ group: "cash" | "debt" | "investments" | null;
486
+ institution: string | null;
487
+ mask: string | null;
488
+ balance: number | null;
489
+ available: number | null;
490
+ }>, "many">;
41
491
  }, "strict", z.ZodTypeAny, {
42
- limit: number;
43
- has_more: boolean;
44
- next_cursor: string | null;
492
+ position: {
493
+ cash: number | null;
494
+ debt: number | null;
495
+ investments: number | null;
496
+ date: string | null;
497
+ net_worth: number | null;
498
+ other_assets: number | null;
499
+ total_assets: number | null;
500
+ } | null;
501
+ accounts: {
502
+ updated_at: string | null;
503
+ currency: string | null;
504
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
505
+ id: string;
506
+ name: string;
507
+ subtype: string | null;
508
+ group: "cash" | "debt" | "investments" | null;
509
+ institution: string | null;
510
+ mask: string | null;
511
+ balance: number | null;
512
+ available: number | null;
513
+ }[];
45
514
  }, {
46
- limit: number;
47
- has_more: boolean;
48
- next_cursor: string | null;
515
+ position: {
516
+ cash: number | null;
517
+ debt: number | null;
518
+ investments: number | null;
519
+ date: string | null;
520
+ net_worth: number | null;
521
+ other_assets: number | null;
522
+ total_assets: number | null;
523
+ } | null;
524
+ accounts: {
525
+ updated_at: string | null;
526
+ currency: string | null;
527
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
528
+ id: string;
529
+ name: string;
530
+ subtype: string | null;
531
+ group: "cash" | "debt" | "investments" | null;
532
+ institution: string | null;
533
+ mask: string | null;
534
+ balance: number | null;
535
+ available: number | null;
536
+ }[];
49
537
  }>;
50
- txns: z.ZodArray<z.ZodObject<{
51
- amount: z.ZodNumber;
52
- category: z.ZodNullable<z.ZodString>;
53
- date: z.ZodNullable<z.ZodString>;
54
- description: z.ZodNullable<z.ZodString>;
55
- detailed_category: z.ZodNullable<z.ZodString>;
56
- id: z.ZodNullable<z.ZodString>;
538
+ transactions: z.ZodObject<{
539
+ total: z.ZodNumber;
540
+ months: z.ZodArray<z.ZodObject<{
541
+ month: z.ZodString;
542
+ count: z.ZodNumber;
543
+ }, "strict", z.ZodTypeAny, {
544
+ month: string;
545
+ count: number;
546
+ }, {
547
+ month: string;
548
+ count: number;
549
+ }>, "many">;
550
+ }, "strict", z.ZodTypeAny, {
551
+ total: number;
552
+ months: {
553
+ month: string;
554
+ count: number;
555
+ }[];
556
+ }, {
557
+ total: number;
558
+ months: {
559
+ month: string;
560
+ count: number;
561
+ }[];
562
+ }>;
563
+ recurring: z.ZodArray<z.ZodObject<{
564
+ id: z.ZodString;
565
+ account_id: z.ZodNullable<z.ZodString>;
566
+ direction: z.ZodNullable<z.ZodEnum<["inflow", "outflow"]>>;
567
+ frequency: z.ZodNullable<z.ZodEnum<["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMI_ANNUALLY", "ANNUALLY"]>>;
568
+ status: z.ZodNullable<z.ZodEnum<["active", "inactive", "dismissed"]>>;
57
569
  merchant: z.ZodNullable<z.ZodString>;
570
+ amount: z.ZodNullable<z.ZodNumber>;
571
+ next_date: z.ZodNullable<z.ZodString>;
58
572
  }, "strict", z.ZodTypeAny, {
59
- amount: number;
60
- category: string | null;
61
- date: string | null;
62
- description: string | null;
63
- detailed_category: string | null;
64
- id: string | null;
65
573
  merchant: string | null;
574
+ status: "active" | "inactive" | "dismissed" | null;
575
+ id: string;
576
+ account_id: string | null;
577
+ direction: "inflow" | "outflow" | null;
578
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
579
+ amount: number | null;
580
+ next_date: string | null;
66
581
  }, {
67
- amount: number;
68
- category: string | null;
69
- date: string | null;
70
- description: string | null;
71
- detailed_category: string | null;
72
- id: string | null;
73
582
  merchant: string | null;
583
+ status: "active" | "inactive" | "dismissed" | null;
584
+ id: string;
585
+ account_id: string | null;
586
+ direction: "inflow" | "outflow" | null;
587
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
588
+ amount: number | null;
589
+ next_date: string | null;
74
590
  }>, "many">;
75
- };
76
- export declare const getFinancialStateOutputSchema: {
77
591
  budgets: z.ZodArray<z.ZodObject<{
78
- amount: z.ZodNumber;
592
+ id: z.ZodString;
79
593
  name: z.ZodString;
80
- percent_used: z.ZodNumber;
81
- period: z.ZodString;
82
- remaining: z.ZodNumber;
594
+ type: z.ZodEnum<["category", "merchant"]>;
595
+ period: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
596
+ status: z.ZodEnum<["under", "warning", "over"]>;
597
+ amount: z.ZodNumber;
83
598
  spent: z.ZodNumber;
84
- status: z.ZodNullable<z.ZodString>;
599
+ remaining: z.ZodNumber;
600
+ used_percent: z.ZodNumber;
85
601
  }, "strict", z.ZodTypeAny, {
86
- status: string | null;
602
+ status: "under" | "warning" | "over";
603
+ type: "category" | "merchant";
604
+ id: string;
87
605
  name: string;
88
606
  amount: number;
89
- percent_used: number;
90
- period: string;
91
- remaining: number;
607
+ period: "weekly" | "biweekly" | "monthly";
92
608
  spent: number;
609
+ remaining: number;
610
+ used_percent: number;
93
611
  }, {
94
- status: string | null;
612
+ status: "under" | "warning" | "over";
613
+ type: "category" | "merchant";
614
+ id: string;
95
615
  name: string;
96
616
  amount: number;
97
- percent_used: number;
98
- period: string;
99
- remaining: number;
617
+ period: "weekly" | "biweekly" | "monthly";
100
618
  spent: number;
619
+ remaining: number;
620
+ used_percent: number;
101
621
  }>, "many">;
102
- category_spending: z.ZodArray<z.ZodObject<{
103
- amount: z.ZodNumber;
104
- category: z.ZodString;
105
- }, "strict", z.ZodTypeAny, {
106
- amount: number;
107
- category: string;
108
- }, {
109
- amount: number;
110
- category: string;
111
- }>, "many">;
112
- generated_at: z.ZodString;
113
622
  goals: z.ZodArray<z.ZodObject<{
114
- category: z.ZodNullable<z.ZodString>;
115
- current: z.ZodNumber;
116
- monthly_contribution_needed: z.ZodNullable<z.ZodNumber>;
623
+ id: z.ZodString;
117
624
  name: z.ZodString;
118
- progress_percent: z.ZodNumber;
119
- status: z.ZodNullable<z.ZodString>;
625
+ category: z.ZodString;
626
+ status: z.ZodEnum<["not_started", "in_progress", "on_track", "behind", "completed"]>;
120
627
  target: z.ZodNumber;
628
+ current: z.ZodNumber;
629
+ progress_percent: z.ZodNumber;
121
630
  target_date: z.ZodNullable<z.ZodString>;
122
631
  }, "strict", z.ZodTypeAny, {
123
- status: string | null;
632
+ category: string;
633
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
634
+ id: string;
124
635
  name: string;
125
- category: string | null;
636
+ target: number;
126
637
  current: number;
127
- monthly_contribution_needed: number | null;
128
638
  progress_percent: number;
129
- target: number;
130
639
  target_date: string | null;
131
640
  }, {
132
- status: string | null;
641
+ category: string;
642
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
643
+ id: string;
133
644
  name: string;
134
- category: string | null;
645
+ target: number;
135
646
  current: number;
136
- monthly_contribution_needed: number | null;
137
647
  progress_percent: number;
138
- target: number;
139
648
  target_date: string | null;
140
649
  }>, "many">;
141
- health: z.ZodObject<{
142
- data_completeness: z.ZodNullable<z.ZodNumber>;
143
- label: z.ZodNullable<z.ZodString>;
144
- message: z.ZodNullable<z.ZodString>;
650
+ snapshots: z.ZodArray<z.ZodObject<{
651
+ date: z.ZodString;
652
+ net_worth: z.ZodNullable<z.ZodNumber>;
653
+ cash: z.ZodNullable<z.ZodNumber>;
654
+ debt: z.ZodNullable<z.ZodNumber>;
655
+ income: z.ZodNullable<z.ZodNumber>;
656
+ expenses: z.ZodNullable<z.ZodNumber>;
657
+ cash_flow: z.ZodNullable<z.ZodNumber>;
658
+ savings_rate: z.ZodNullable<z.ZodNumber>;
659
+ investments: z.ZodNullable<z.ZodNumber>;
660
+ assets: z.ZodNullable<z.ZodNumber>;
661
+ health_score: z.ZodNullable<z.ZodNumber>;
662
+ }, "strict", z.ZodTypeAny, {
663
+ cash: number | null;
664
+ debt: number | null;
665
+ investments: number | null;
666
+ date: string;
667
+ net_worth: number | null;
668
+ income: number | null;
669
+ expenses: number | null;
670
+ cash_flow: number | null;
671
+ savings_rate: number | null;
672
+ assets: number | null;
673
+ health_score: number | null;
674
+ }, {
675
+ cash: number | null;
676
+ debt: number | null;
677
+ investments: number | null;
678
+ date: string;
679
+ net_worth: number | null;
680
+ income: number | null;
681
+ expenses: number | null;
682
+ cash_flow: number | null;
683
+ savings_rate: number | null;
684
+ assets: number | null;
685
+ health_score: number | null;
686
+ }>, "many">;
687
+ liabilities: z.ZodArray<z.ZodObject<{
688
+ account_id: z.ZodNullable<z.ZodString>;
689
+ type: z.ZodNullable<z.ZodEnum<["credit", "student", "mortgage", "other"]>>;
690
+ balance: z.ZodNullable<z.ZodNumber>;
691
+ minimum_payment: z.ZodNullable<z.ZodNumber>;
692
+ due_date: z.ZodNullable<z.ZodString>;
693
+ interest_rate: z.ZodNullable<z.ZodNumber>;
694
+ rate_type: z.ZodNullable<z.ZodEnum<["fixed", "variable"]>>;
695
+ overdue: z.ZodNullable<z.ZodBoolean>;
696
+ }, "strict", z.ZodTypeAny, {
697
+ type: "credit" | "other" | "student" | "mortgage" | null;
698
+ balance: number | null;
699
+ account_id: string | null;
700
+ minimum_payment: number | null;
701
+ due_date: string | null;
702
+ interest_rate: number | null;
703
+ rate_type: "fixed" | "variable" | null;
704
+ overdue: boolean | null;
705
+ }, {
706
+ type: "credit" | "other" | "student" | "mortgage" | null;
707
+ balance: number | null;
708
+ account_id: string | null;
709
+ minimum_payment: number | null;
710
+ due_date: string | null;
711
+ interest_rate: number | null;
712
+ rate_type: "fixed" | "variable" | null;
713
+ overdue: boolean | null;
714
+ }>, "many">;
715
+ holdings: z.ZodArray<z.ZodObject<{
716
+ account_id: z.ZodNullable<z.ZodString>;
717
+ symbol: z.ZodNullable<z.ZodString>;
718
+ name: z.ZodNullable<z.ZodString>;
719
+ type: z.ZodNullable<z.ZodEnum<["cash", "derivative", "equity", "etf", "fixed_income", "mutual_fund", "other"]>>;
720
+ quantity: z.ZodNullable<z.ZodNumber>;
721
+ value: z.ZodNullable<z.ZodNumber>;
722
+ cost_basis: z.ZodNullable<z.ZodNumber>;
723
+ }, "strict", z.ZodTypeAny, {
724
+ symbol: string | null;
725
+ value: number | null;
726
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
727
+ name: string | null;
728
+ account_id: string | null;
729
+ quantity: number | null;
730
+ cost_basis: number | null;
731
+ }, {
732
+ symbol: string | null;
733
+ value: number | null;
734
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
735
+ name: string | null;
736
+ account_id: string | null;
737
+ quantity: number | null;
738
+ cost_basis: number | null;
739
+ }>, "many">;
740
+ health: z.ZodNullable<z.ZodObject<{
741
+ score: z.ZodNumber;
742
+ label: z.ZodEnum<["Needs Attention", "Good", "Strong"]>;
743
+ level: z.ZodEnum<["critical", "poor", "fair", "good", "strong"]>;
744
+ summary: z.ZodString;
745
+ data_completeness: z.ZodNumber;
145
746
  pillars: z.ZodNullable<z.ZodObject<{
747
+ spend: z.ZodNullable<z.ZodNumber>;
748
+ save: z.ZodNullable<z.ZodNumber>;
146
749
  borrow: z.ZodNullable<z.ZodNumber>;
147
750
  build: z.ZodNullable<z.ZodNumber>;
148
- save: z.ZodNullable<z.ZodNumber>;
149
- spend: z.ZodNullable<z.ZodNumber>;
150
751
  }, "strict", z.ZodTypeAny, {
752
+ spend: number | null;
753
+ save: number | null;
151
754
  borrow: number | null;
152
755
  build: number | null;
153
- save: number | null;
154
- spend: number | null;
155
756
  }, {
757
+ spend: number | null;
758
+ save: number | null;
156
759
  borrow: number | null;
157
760
  build: number | null;
158
- save: number | null;
159
- spend: number | null;
160
761
  }>>;
161
- score: z.ZodNullable<z.ZodNumber>;
162
762
  }, "strict", z.ZodTypeAny, {
763
+ score: number;
764
+ label: "Needs Attention" | "Good" | "Strong";
765
+ level: "critical" | "poor" | "fair" | "good" | "strong";
766
+ summary: string;
767
+ data_completeness: number;
163
768
  pillars: {
769
+ spend: number | null;
770
+ save: number | null;
164
771
  borrow: number | null;
165
772
  build: number | null;
166
- save: number | null;
167
- spend: number | null;
168
773
  } | null;
169
- message: string | null;
170
- data_completeness: number | null;
171
- label: string | null;
172
- score: number | null;
173
774
  }, {
775
+ score: number;
776
+ label: "Needs Attention" | "Good" | "Strong";
777
+ level: "critical" | "poor" | "fair" | "good" | "strong";
778
+ summary: string;
779
+ data_completeness: number;
174
780
  pillars: {
781
+ spend: number | null;
782
+ save: number | null;
175
783
  borrow: number | null;
176
784
  build: number | null;
177
- save: number | null;
178
- spend: number | null;
179
785
  } | null;
180
- message: string | null;
181
- data_completeness: number | null;
182
- label: string | null;
183
- score: number | null;
184
- }>;
185
- holdings: z.ZodArray<z.ZodObject<{
186
- account_id: z.ZodString;
187
- cost_basis: z.ZodNullable<z.ZodNumber>;
188
- quantity: z.ZodNumber;
189
- security_name: z.ZodNullable<z.ZodString>;
190
- symbol: z.ZodNullable<z.ZodString>;
191
- type: z.ZodNullable<z.ZodString>;
192
- value: z.ZodNullable<z.ZodNumber>;
193
- }, "strict", z.ZodTypeAny, {
786
+ }>>;
787
+ }, "strict", z.ZodTypeAny, {
788
+ version: "v1";
789
+ updated_at: string;
790
+ currency: "USD";
791
+ status: {
792
+ position: {
793
+ cash: number | null;
794
+ debt: number | null;
795
+ investments: number | null;
796
+ date: string | null;
797
+ net_worth: number | null;
798
+ other_assets: number | null;
799
+ total_assets: number | null;
800
+ } | null;
801
+ accounts: {
802
+ updated_at: string | null;
803
+ currency: string | null;
804
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
805
+ id: string;
806
+ name: string;
807
+ subtype: string | null;
808
+ group: "cash" | "debt" | "investments" | null;
809
+ institution: string | null;
810
+ mask: string | null;
811
+ balance: number | null;
812
+ available: number | null;
813
+ }[];
814
+ };
815
+ transactions: {
816
+ total: number;
817
+ months: {
818
+ month: string;
819
+ count: number;
820
+ }[];
821
+ };
822
+ recurring: {
823
+ merchant: string | null;
824
+ status: "active" | "inactive" | "dismissed" | null;
825
+ id: string;
826
+ account_id: string | null;
827
+ direction: "inflow" | "outflow" | null;
828
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
829
+ amount: number | null;
830
+ next_date: string | null;
831
+ }[];
832
+ budgets: {
833
+ status: "under" | "warning" | "over";
834
+ type: "category" | "merchant";
835
+ id: string;
836
+ name: string;
837
+ amount: number;
838
+ period: "weekly" | "biweekly" | "monthly";
839
+ spent: number;
840
+ remaining: number;
841
+ used_percent: number;
842
+ }[];
843
+ goals: {
844
+ category: string;
845
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
846
+ id: string;
847
+ name: string;
848
+ target: number;
849
+ current: number;
850
+ progress_percent: number;
851
+ target_date: string | null;
852
+ }[];
853
+ snapshots: {
854
+ cash: number | null;
855
+ debt: number | null;
856
+ investments: number | null;
857
+ date: string;
858
+ net_worth: number | null;
859
+ income: number | null;
860
+ expenses: number | null;
861
+ cash_flow: number | null;
862
+ savings_rate: number | null;
863
+ assets: number | null;
864
+ health_score: number | null;
865
+ }[];
866
+ liabilities: {
867
+ type: "credit" | "other" | "student" | "mortgage" | null;
868
+ balance: number | null;
869
+ account_id: string | null;
870
+ minimum_payment: number | null;
871
+ due_date: string | null;
872
+ interest_rate: number | null;
873
+ rate_type: "fixed" | "variable" | null;
874
+ overdue: boolean | null;
875
+ }[];
876
+ holdings: {
194
877
  symbol: string | null;
195
878
  value: number | null;
196
- type: string | null;
197
- account_id: string;
879
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
880
+ name: string | null;
881
+ account_id: string | null;
882
+ quantity: number | null;
198
883
  cost_basis: number | null;
199
- quantity: number;
200
- security_name: string | null;
201
- }, {
884
+ }[];
885
+ health: {
886
+ score: number;
887
+ label: "Needs Attention" | "Good" | "Strong";
888
+ level: "critical" | "poor" | "fair" | "good" | "strong";
889
+ summary: string;
890
+ data_completeness: number;
891
+ pillars: {
892
+ spend: number | null;
893
+ save: number | null;
894
+ borrow: number | null;
895
+ build: number | null;
896
+ } | null;
897
+ } | null;
898
+ }, {
899
+ version: "v1";
900
+ updated_at: string;
901
+ currency: "USD";
902
+ status: {
903
+ position: {
904
+ cash: number | null;
905
+ debt: number | null;
906
+ investments: number | null;
907
+ date: string | null;
908
+ net_worth: number | null;
909
+ other_assets: number | null;
910
+ total_assets: number | null;
911
+ } | null;
912
+ accounts: {
913
+ updated_at: string | null;
914
+ currency: string | null;
915
+ type: "depository" | "credit" | "loan" | "investment" | "brokerage" | "other";
916
+ id: string;
917
+ name: string;
918
+ subtype: string | null;
919
+ group: "cash" | "debt" | "investments" | null;
920
+ institution: string | null;
921
+ mask: string | null;
922
+ balance: number | null;
923
+ available: number | null;
924
+ }[];
925
+ };
926
+ transactions: {
927
+ total: number;
928
+ months: {
929
+ month: string;
930
+ count: number;
931
+ }[];
932
+ };
933
+ recurring: {
934
+ merchant: string | null;
935
+ status: "active" | "inactive" | "dismissed" | null;
936
+ id: string;
937
+ account_id: string | null;
938
+ direction: "inflow" | "outflow" | null;
939
+ frequency: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUALLY" | "ANNUALLY" | null;
940
+ amount: number | null;
941
+ next_date: string | null;
942
+ }[];
943
+ budgets: {
944
+ status: "under" | "warning" | "over";
945
+ type: "category" | "merchant";
946
+ id: string;
947
+ name: string;
948
+ amount: number;
949
+ period: "weekly" | "biweekly" | "monthly";
950
+ spent: number;
951
+ remaining: number;
952
+ used_percent: number;
953
+ }[];
954
+ goals: {
955
+ category: string;
956
+ status: "not_started" | "in_progress" | "on_track" | "behind" | "completed";
957
+ id: string;
958
+ name: string;
959
+ target: number;
960
+ current: number;
961
+ progress_percent: number;
962
+ target_date: string | null;
963
+ }[];
964
+ snapshots: {
965
+ cash: number | null;
966
+ debt: number | null;
967
+ investments: number | null;
968
+ date: string;
969
+ net_worth: number | null;
970
+ income: number | null;
971
+ expenses: number | null;
972
+ cash_flow: number | null;
973
+ savings_rate: number | null;
974
+ assets: number | null;
975
+ health_score: number | null;
976
+ }[];
977
+ liabilities: {
978
+ type: "credit" | "other" | "student" | "mortgage" | null;
979
+ balance: number | null;
980
+ account_id: string | null;
981
+ minimum_payment: number | null;
982
+ due_date: string | null;
983
+ interest_rate: number | null;
984
+ rate_type: "fixed" | "variable" | null;
985
+ overdue: boolean | null;
986
+ }[];
987
+ holdings: {
202
988
  symbol: string | null;
203
989
  value: number | null;
204
- type: string | null;
205
- account_id: string;
990
+ type: "other" | "cash" | "derivative" | "equity" | "etf" | "fixed_income" | "mutual_fund" | null;
991
+ name: string | null;
992
+ account_id: string | null;
993
+ quantity: number | null;
206
994
  cost_basis: number | null;
207
- quantity: number;
208
- security_name: string | null;
209
- }>, "many">;
210
- liabilities: z.ZodArray<z.ZodObject<{
211
- account_id: z.ZodString;
212
- apr_percentage: z.ZodNullable<z.ZodNumber>;
213
- balance: z.ZodNullable<z.ZodNumber>;
214
- is_overdue: z.ZodNullable<z.ZodBoolean>;
215
- minimum_payment: z.ZodNullable<z.ZodNumber>;
216
- next_payment_due_date: z.ZodNullable<z.ZodString>;
217
- type: z.ZodString;
995
+ }[];
996
+ health: {
997
+ score: number;
998
+ label: "Needs Attention" | "Good" | "Strong";
999
+ level: "critical" | "poor" | "fair" | "good" | "strong";
1000
+ summary: string;
1001
+ data_completeness: number;
1002
+ pillars: {
1003
+ spend: number | null;
1004
+ save: number | null;
1005
+ borrow: number | null;
1006
+ build: number | null;
1007
+ } | null;
1008
+ } | null;
1009
+ }>;
1010
+ export declare const transactionSchema: z.ZodObject<{
1011
+ id: z.ZodString;
1012
+ account_id: z.ZodNullable<z.ZodString>;
1013
+ date: z.ZodNullable<z.ZodString>;
1014
+ amount: z.ZodNumber;
1015
+ merchant: z.ZodNullable<z.ZodString>;
1016
+ name: z.ZodNullable<z.ZodString>;
1017
+ category: z.ZodNullable<z.ZodString>;
1018
+ subcategory: z.ZodNullable<z.ZodString>;
1019
+ pending: z.ZodNullable<z.ZodBoolean>;
1020
+ currency: z.ZodNullable<z.ZodString>;
1021
+ }, "strict", z.ZodTypeAny, {
1022
+ category: string | null;
1023
+ merchant: string | null;
1024
+ currency: string | null;
1025
+ date: string | null;
1026
+ id: string;
1027
+ name: string | null;
1028
+ account_id: string | null;
1029
+ amount: number;
1030
+ subcategory: string | null;
1031
+ pending: boolean | null;
1032
+ }, {
1033
+ category: string | null;
1034
+ merchant: string | null;
1035
+ currency: string | null;
1036
+ date: string | null;
1037
+ id: string;
1038
+ name: string | null;
1039
+ account_id: string | null;
1040
+ amount: number;
1041
+ subcategory: string | null;
1042
+ pending: boolean | null;
1043
+ }>;
1044
+ export declare const transactionMonthSchema: z.ZodObject<{
1045
+ month: z.ZodString;
1046
+ start_date: z.ZodString;
1047
+ end_date: z.ZodString;
1048
+ count: z.ZodNumber;
1049
+ items: z.ZodArray<z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ account_id: z.ZodNullable<z.ZodString>;
1052
+ date: z.ZodNullable<z.ZodString>;
1053
+ amount: z.ZodNumber;
1054
+ merchant: z.ZodNullable<z.ZodString>;
1055
+ name: z.ZodNullable<z.ZodString>;
1056
+ category: z.ZodNullable<z.ZodString>;
1057
+ subcategory: z.ZodNullable<z.ZodString>;
1058
+ pending: z.ZodNullable<z.ZodBoolean>;
1059
+ currency: z.ZodNullable<z.ZodString>;
218
1060
  }, "strict", z.ZodTypeAny, {
219
- balance: number | null;
220
- type: string;
221
- account_id: string;
222
- apr_percentage: number | null;
223
- is_overdue: boolean | null;
224
- minimum_payment: number | null;
225
- next_payment_due_date: string | null;
1061
+ category: string | null;
1062
+ merchant: string | null;
1063
+ currency: string | null;
1064
+ date: string | null;
1065
+ id: string;
1066
+ name: string | null;
1067
+ account_id: string | null;
1068
+ amount: number;
1069
+ subcategory: string | null;
1070
+ pending: boolean | null;
226
1071
  }, {
227
- balance: number | null;
228
- type: string;
229
- account_id: string;
230
- apr_percentage: number | null;
231
- is_overdue: boolean | null;
232
- minimum_payment: number | null;
233
- next_payment_due_date: string | null;
1072
+ category: string | null;
1073
+ merchant: string | null;
1074
+ currency: string | null;
1075
+ date: string | null;
1076
+ id: string;
1077
+ name: string | null;
1078
+ account_id: string | null;
1079
+ amount: number;
1080
+ subcategory: string | null;
1081
+ pending: boolean | null;
234
1082
  }>, "many">;
235
- recurring: z.ZodArray<z.ZodObject<{
236
- active: z.ZodBoolean;
1083
+ }, "strict", z.ZodTypeAny, {
1084
+ month: string;
1085
+ start_date: string;
1086
+ end_date: string;
1087
+ count: number;
1088
+ items: {
1089
+ category: string | null;
1090
+ merchant: string | null;
1091
+ currency: string | null;
1092
+ date: string | null;
1093
+ id: string;
1094
+ name: string | null;
1095
+ account_id: string | null;
1096
+ amount: number;
1097
+ subcategory: string | null;
1098
+ pending: boolean | null;
1099
+ }[];
1100
+ }, {
1101
+ month: string;
1102
+ start_date: string;
1103
+ end_date: string;
1104
+ count: number;
1105
+ items: {
1106
+ category: string | null;
1107
+ merchant: string | null;
1108
+ currency: string | null;
1109
+ date: string | null;
1110
+ id: string;
1111
+ name: string | null;
1112
+ account_id: string | null;
1113
+ amount: number;
1114
+ subcategory: string | null;
1115
+ pending: boolean | null;
1116
+ }[];
1117
+ }>;
1118
+ export declare const latestTransactionsSchema: z.ZodObject<{
1119
+ since: z.ZodString;
1120
+ window_days: z.ZodLiteral<10>;
1121
+ count: z.ZodNumber;
1122
+ items: z.ZodArray<z.ZodObject<{
1123
+ id: z.ZodString;
1124
+ account_id: z.ZodNullable<z.ZodString>;
1125
+ date: z.ZodNullable<z.ZodString>;
237
1126
  amount: z.ZodNumber;
238
- frequency: z.ZodString;
239
- merchant: z.ZodString;
240
- next_date: z.ZodNullable<z.ZodString>;
241
- type: z.ZodNullable<z.ZodString>;
1127
+ merchant: z.ZodNullable<z.ZodString>;
1128
+ name: z.ZodNullable<z.ZodString>;
1129
+ category: z.ZodNullable<z.ZodString>;
1130
+ subcategory: z.ZodNullable<z.ZodString>;
1131
+ pending: z.ZodNullable<z.ZodBoolean>;
1132
+ currency: z.ZodNullable<z.ZodString>;
242
1133
  }, "strict", z.ZodTypeAny, {
243
- type: string | null;
1134
+ category: string | null;
1135
+ merchant: string | null;
1136
+ currency: string | null;
1137
+ date: string | null;
1138
+ id: string;
1139
+ name: string | null;
1140
+ account_id: string | null;
244
1141
  amount: number;
245
- merchant: string;
246
- active: boolean;
247
- frequency: string;
248
- next_date: string | null;
1142
+ subcategory: string | null;
1143
+ pending: boolean | null;
249
1144
  }, {
250
- type: string | null;
1145
+ category: string | null;
1146
+ merchant: string | null;
1147
+ currency: string | null;
1148
+ date: string | null;
1149
+ id: string;
1150
+ name: string | null;
1151
+ account_id: string | null;
251
1152
  amount: number;
252
- merchant: string;
253
- active: boolean;
254
- frequency: string;
255
- next_date: string | null;
1153
+ subcategory: string | null;
1154
+ pending: boolean | null;
256
1155
  }>, "many">;
257
- snapshots: z.ZodArray<z.ZodObject<{
258
- date: z.ZodString;
259
- net_worth: z.ZodNumber;
260
- total_assets: z.ZodNumber;
261
- total_liabilities: z.ZodNumber;
1156
+ }, "strict", z.ZodTypeAny, {
1157
+ count: number;
1158
+ items: {
1159
+ category: string | null;
1160
+ merchant: string | null;
1161
+ currency: string | null;
1162
+ date: string | null;
1163
+ id: string;
1164
+ name: string | null;
1165
+ account_id: string | null;
1166
+ amount: number;
1167
+ subcategory: string | null;
1168
+ pending: boolean | null;
1169
+ }[];
1170
+ since: string;
1171
+ window_days: 10;
1172
+ }, {
1173
+ count: number;
1174
+ items: {
1175
+ category: string | null;
1176
+ merchant: string | null;
1177
+ currency: string | null;
1178
+ date: string | null;
1179
+ id: string;
1180
+ name: string | null;
1181
+ account_id: string | null;
1182
+ amount: number;
1183
+ subcategory: string | null;
1184
+ pending: boolean | null;
1185
+ }[];
1186
+ since: string;
1187
+ window_days: 10;
1188
+ }>;
1189
+ export declare const getTransactionsInputSchema: {
1190
+ month: z.ZodOptional<z.ZodString>;
1191
+ latest: z.ZodOptional<z.ZodBoolean>;
1192
+ };
1193
+ export declare const financialContextMetaSchema: z.ZodObject<{
1194
+ version: z.ZodLiteral<"v1">;
1195
+ user_id: z.ZodString;
1196
+ context_id: z.ZodString;
1197
+ generated_at: z.ZodString;
1198
+ updated_at: z.ZodString;
1199
+ content_hash: z.ZodString;
1200
+ byte_length: z.ZodNumber;
1201
+ counts: z.ZodObject<{
1202
+ accounts: z.ZodNumber;
1203
+ transaction_months: z.ZodNumber;
1204
+ transactions: z.ZodNumber;
1205
+ snapshots: z.ZodNumber;
262
1206
  }, "strict", z.ZodTypeAny, {
263
- date: string;
264
- net_worth: number;
265
- total_assets: number;
266
- total_liabilities: number;
1207
+ transactions: number;
1208
+ snapshots: number;
1209
+ accounts: number;
1210
+ transaction_months: number;
267
1211
  }, {
268
- date: string;
269
- net_worth: number;
270
- total_assets: number;
271
- total_liabilities: number;
272
- }>, "many">;
273
- };
1212
+ transactions: number;
1213
+ snapshots: number;
1214
+ accounts: number;
1215
+ transaction_months: number;
1216
+ }>;
1217
+ }, "strict", z.ZodTypeAny, {
1218
+ version: "v1";
1219
+ updated_at: string;
1220
+ user_id: string;
1221
+ context_id: string;
1222
+ generated_at: string;
1223
+ content_hash: string;
1224
+ byte_length: number;
1225
+ counts: {
1226
+ transactions: number;
1227
+ snapshots: number;
1228
+ accounts: number;
1229
+ transaction_months: number;
1230
+ };
1231
+ }, {
1232
+ version: "v1";
1233
+ updated_at: string;
1234
+ user_id: string;
1235
+ context_id: string;
1236
+ generated_at: string;
1237
+ content_hash: string;
1238
+ byte_length: number;
1239
+ counts: {
1240
+ transactions: number;
1241
+ snapshots: number;
1242
+ accounts: number;
1243
+ transaction_months: number;
1244
+ };
1245
+ }>;
274
1246
  export declare const verifyKeyOutputSchema: {
275
1247
  status: z.ZodString;
276
1248
  valid: z.ZodBoolean;