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