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