@warmio/contracts 3.0.9 → 3.1.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 (57) hide show
  1. package/dist/api/endpoints.d.ts +21 -0
  2. package/dist/api/endpoints.d.ts.map +1 -1
  3. package/dist/api/endpoints.js +17 -0
  4. package/dist/api/endpoints.js.map +1 -1
  5. package/dist/financial-context-artifact-protocol.d.ts +36 -0
  6. package/dist/financial-context-artifact-protocol.d.ts.map +1 -1
  7. package/dist/generated/mcp-package-release-metadata.d.ts +1 -1
  8. package/dist/generated/mcp-package-release-metadata.d.ts.map +1 -1
  9. package/dist/generated/mcp-package-release-metadata.js +1 -1
  10. package/dist/generated/mcp-package-release-metadata.js.map +1 -1
  11. package/dist/generated/private-mcp-tool-descriptors.d.ts +27 -0
  12. package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
  13. package/dist/generated/private-mcp-tool-descriptors.js +36 -0
  14. package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
  15. package/dist/generated/warm-app-api-manifest.d.ts +32 -5
  16. package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
  17. package/dist/generated/warm-app-api-manifest.js +41 -5
  18. package/dist/generated/warm-app-api-manifest.js.map +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/mcp/card-benefits.d.ts +380 -0
  24. package/dist/mcp/card-benefits.d.ts.map +1 -0
  25. package/dist/mcp/card-benefits.js +109 -0
  26. package/dist/mcp/card-benefits.js.map +1 -0
  27. package/dist/mcp/findings.d.ts +1595 -0
  28. package/dist/mcp/findings.d.ts.map +1 -0
  29. package/dist/mcp/findings.js +172 -0
  30. package/dist/mcp/findings.js.map +1 -0
  31. package/dist/mcp/hosted-write-tools.d.ts +1335 -1
  32. package/dist/mcp/hosted-write-tools.d.ts.map +1 -1
  33. package/dist/mcp/hosted-write-tools.js +18 -0
  34. package/dist/mcp/hosted-write-tools.js.map +1 -1
  35. package/dist/mcp/index.d.ts +2 -0
  36. package/dist/mcp/index.d.ts.map +1 -1
  37. package/dist/mcp/index.js +2 -0
  38. package/dist/mcp/index.js.map +1 -1
  39. package/dist/mcp/public-output.d.ts +241 -3
  40. package/dist/mcp/public-output.d.ts.map +1 -1
  41. package/dist/mcp/public-output.js +35 -2
  42. package/dist/mcp/public-output.js.map +1 -1
  43. package/dist/mcp/public-tools.d.ts +196 -4
  44. package/dist/mcp/public-tools.d.ts.map +1 -1
  45. package/dist/mcp/public-tools.js +7 -3
  46. package/dist/mcp/public-tools.js.map +1 -1
  47. package/dist/mcp/tools.d.ts +68 -0
  48. package/dist/mcp/tools.d.ts.map +1 -1
  49. package/dist/schemas/financial-context.d.ts +26 -0
  50. package/dist/schemas/financial-context.d.ts.map +1 -1
  51. package/dist/schemas/financial-context.js +2 -0
  52. package/dist/schemas/financial-context.js.map +1 -1
  53. package/dist/scrub-text.d.ts +4 -0
  54. package/dist/scrub-text.d.ts.map +1 -0
  55. package/dist/scrub-text.js +18 -0
  56. package/dist/scrub-text.js.map +1 -0
  57. package/package.json +1 -1
@@ -0,0 +1,1595 @@
1
+ import { z } from 'zod';
2
+ export declare const getFindingsMcpInputShape: {};
3
+ export declare const getFindingsMcpInputSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
4
+ export declare const FINDINGS_CONTRACT_VERSION = 1;
5
+ export declare const FINDINGS_RECENT_DAYS = 30;
6
+ export declare const FINDINGS_UPCOMING_DAYS = 14;
7
+ export declare const FINDINGS_MAX_ITEMS = 100;
8
+ export declare const FINDING_TYPES: readonly ['connection_repair', 'payment_due', 'upcoming_charge', 'unusual_charge', 'duplicate_charge', 'above_average_charge', 'fee_charged', 'low_cash'];
9
+ export type FindingType = (typeof FINDING_TYPES)[number];
10
+ export declare const FINDING_ACCOUNT_KINDS: readonly ['credit', 'depository', 'loan', 'investment', 'other'];
11
+ export declare const FINDING_CANCEL_ACTION_TYPES: readonly ['cancel_subscription', 'manage_subscription', 'contact_support'];
12
+ export declare const findingAccountSchema: z.ZodObject<{
13
+ name: z.ZodNullable<z.ZodString>;
14
+ institution: z.ZodNullable<z.ZodString>;
15
+ mask: z.ZodNullable<z.ZodString>;
16
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ name: string | null;
19
+ institution: string | null;
20
+ mask: string | null;
21
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
22
+ }, {
23
+ name: string | null;
24
+ institution: string | null;
25
+ mask: string | null;
26
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
27
+ }>;
28
+ export declare const findingCancelOptionsSchema: z.ZodObject<{
29
+ actions: z.ZodArray<z.ZodObject<{
30
+ label: z.ZodString;
31
+ url: z.ZodString;
32
+ } & {
33
+ type: z.ZodEnum<["cancel_subscription", "manage_subscription", "contact_support"]>;
34
+ }, "strict", z.ZodTypeAny, {
35
+ label: string;
36
+ url: string;
37
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
38
+ }, {
39
+ label: string;
40
+ url: string;
41
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
42
+ }>, "many">;
43
+ billing_alternatives: z.ZodArray<z.ZodObject<{
44
+ label: z.ZodString;
45
+ url: z.ZodString;
46
+ }, "strict", z.ZodTypeAny, {
47
+ label: string;
48
+ url: string;
49
+ }, {
50
+ label: string;
51
+ url: string;
52
+ }>, "many">;
53
+ }, "strict", z.ZodTypeAny, {
54
+ actions: {
55
+ label: string;
56
+ url: string;
57
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
58
+ }[];
59
+ billing_alternatives: {
60
+ label: string;
61
+ url: string;
62
+ }[];
63
+ }, {
64
+ actions: {
65
+ label: string;
66
+ url: string;
67
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
68
+ }[];
69
+ billing_alternatives: {
70
+ label: string;
71
+ url: string;
72
+ }[];
73
+ }>;
74
+ export declare const findingSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
75
+ id: z.ZodString;
76
+ title: z.ZodString;
77
+ warm_url: z.ZodString;
78
+ type: z.ZodLiteral<"connection_repair">;
79
+ institution: z.ZodNullable<z.ZodString>;
80
+ since: z.ZodNullable<z.ZodString>;
81
+ }, "strict", z.ZodTypeAny, {
82
+ id: string;
83
+ title: string;
84
+ warm_url: string;
85
+ type: "connection_repair";
86
+ institution: string | null;
87
+ since: string | null;
88
+ }, {
89
+ id: string;
90
+ title: string;
91
+ warm_url: string;
92
+ type: "connection_repair";
93
+ institution: string | null;
94
+ since: string | null;
95
+ }>, z.ZodObject<{
96
+ id: z.ZodString;
97
+ title: z.ZodString;
98
+ warm_url: z.ZodString;
99
+ account: z.ZodNullable<z.ZodObject<{
100
+ name: z.ZodNullable<z.ZodString>;
101
+ institution: z.ZodNullable<z.ZodString>;
102
+ mask: z.ZodNullable<z.ZodString>;
103
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ name: string | null;
106
+ institution: string | null;
107
+ mask: string | null;
108
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
109
+ }, {
110
+ name: string | null;
111
+ institution: string | null;
112
+ mask: string | null;
113
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
114
+ }>>;
115
+ currency: z.ZodString;
116
+ type: z.ZodLiteral<"payment_due">;
117
+ due_date: z.ZodNullable<z.ZodString>;
118
+ overdue: z.ZodBoolean;
119
+ minimum_payment: z.ZodNullable<z.ZodNumber>;
120
+ statement_balance: z.ZodNullable<z.ZodNumber>;
121
+ apr_percentage: z.ZodNullable<z.ZodNumber>;
122
+ }, "strict", z.ZodTypeAny, {
123
+ id: string;
124
+ title: string;
125
+ warm_url: string;
126
+ account: {
127
+ name: string | null;
128
+ institution: string | null;
129
+ mask: string | null;
130
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
131
+ } | null;
132
+ currency: string;
133
+ type: "payment_due";
134
+ due_date: string | null;
135
+ overdue: boolean;
136
+ minimum_payment: number | null;
137
+ statement_balance: number | null;
138
+ apr_percentage: number | null;
139
+ }, {
140
+ id: string;
141
+ title: string;
142
+ warm_url: string;
143
+ account: {
144
+ name: string | null;
145
+ institution: string | null;
146
+ mask: string | null;
147
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
148
+ } | null;
149
+ currency: string;
150
+ type: "payment_due";
151
+ due_date: string | null;
152
+ overdue: boolean;
153
+ minimum_payment: number | null;
154
+ statement_balance: number | null;
155
+ apr_percentage: number | null;
156
+ }>, z.ZodObject<{
157
+ id: z.ZodString;
158
+ title: z.ZodString;
159
+ warm_url: z.ZodString;
160
+ account: z.ZodNullable<z.ZodObject<{
161
+ name: z.ZodNullable<z.ZodString>;
162
+ institution: z.ZodNullable<z.ZodString>;
163
+ mask: z.ZodNullable<z.ZodString>;
164
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
165
+ }, "strict", z.ZodTypeAny, {
166
+ name: string | null;
167
+ institution: string | null;
168
+ mask: string | null;
169
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
170
+ }, {
171
+ name: string | null;
172
+ institution: string | null;
173
+ mask: string | null;
174
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
175
+ }>>;
176
+ currency: z.ZodString;
177
+ merchant: z.ZodString;
178
+ frequency: z.ZodNullable<z.ZodString>;
179
+ last_amount: z.ZodNullable<z.ZodNumber>;
180
+ average_amount: z.ZodNullable<z.ZodNumber>;
181
+ cancel: z.ZodNullable<z.ZodObject<{
182
+ actions: z.ZodArray<z.ZodObject<{
183
+ label: z.ZodString;
184
+ url: z.ZodString;
185
+ } & {
186
+ type: z.ZodEnum<["cancel_subscription", "manage_subscription", "contact_support"]>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ label: string;
189
+ url: string;
190
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
191
+ }, {
192
+ label: string;
193
+ url: string;
194
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
195
+ }>, "many">;
196
+ billing_alternatives: z.ZodArray<z.ZodObject<{
197
+ label: z.ZodString;
198
+ url: z.ZodString;
199
+ }, "strict", z.ZodTypeAny, {
200
+ label: string;
201
+ url: string;
202
+ }, {
203
+ label: string;
204
+ url: string;
205
+ }>, "many">;
206
+ }, "strict", z.ZodTypeAny, {
207
+ actions: {
208
+ label: string;
209
+ url: string;
210
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
211
+ }[];
212
+ billing_alternatives: {
213
+ label: string;
214
+ url: string;
215
+ }[];
216
+ }, {
217
+ actions: {
218
+ label: string;
219
+ url: string;
220
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
221
+ }[];
222
+ billing_alternatives: {
223
+ label: string;
224
+ url: string;
225
+ }[];
226
+ }>>;
227
+ type: z.ZodLiteral<"upcoming_charge">;
228
+ expected_date: z.ZodString;
229
+ }, "strict", z.ZodTypeAny, {
230
+ id: string;
231
+ title: string;
232
+ warm_url: string;
233
+ account: {
234
+ name: string | null;
235
+ institution: string | null;
236
+ mask: string | null;
237
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
238
+ } | null;
239
+ currency: string;
240
+ merchant: string;
241
+ frequency: string | null;
242
+ last_amount: number | null;
243
+ average_amount: number | null;
244
+ cancel: {
245
+ actions: {
246
+ label: string;
247
+ url: string;
248
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
249
+ }[];
250
+ billing_alternatives: {
251
+ label: string;
252
+ url: string;
253
+ }[];
254
+ } | null;
255
+ type: "upcoming_charge";
256
+ expected_date: string;
257
+ }, {
258
+ id: string;
259
+ title: string;
260
+ warm_url: string;
261
+ account: {
262
+ name: string | null;
263
+ institution: string | null;
264
+ mask: string | null;
265
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
266
+ } | null;
267
+ currency: string;
268
+ merchant: string;
269
+ frequency: string | null;
270
+ last_amount: number | null;
271
+ average_amount: number | null;
272
+ cancel: {
273
+ actions: {
274
+ label: string;
275
+ url: string;
276
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
277
+ }[];
278
+ billing_alternatives: {
279
+ label: string;
280
+ url: string;
281
+ }[];
282
+ } | null;
283
+ type: "upcoming_charge";
284
+ expected_date: string;
285
+ }>, z.ZodObject<{
286
+ id: z.ZodString;
287
+ title: z.ZodString;
288
+ warm_url: z.ZodString;
289
+ account: z.ZodNullable<z.ZodObject<{
290
+ name: z.ZodNullable<z.ZodString>;
291
+ institution: z.ZodNullable<z.ZodString>;
292
+ mask: z.ZodNullable<z.ZodString>;
293
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
294
+ }, "strict", z.ZodTypeAny, {
295
+ name: string | null;
296
+ institution: string | null;
297
+ mask: string | null;
298
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
299
+ }, {
300
+ name: string | null;
301
+ institution: string | null;
302
+ mask: string | null;
303
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
304
+ }>>;
305
+ currency: z.ZodString;
306
+ type: z.ZodLiteral<"unusual_charge">;
307
+ reason: z.ZodEnum<["first_time_large", "above_usual"]>;
308
+ transaction_id: z.ZodNullable<z.ZodString>;
309
+ date: z.ZodString;
310
+ amount: z.ZodNumber;
311
+ usual_amount: z.ZodNullable<z.ZodNumber>;
312
+ merchant: z.ZodNullable<z.ZodString>;
313
+ category: z.ZodNullable<z.ZodString>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ id: string;
316
+ title: string;
317
+ warm_url: string;
318
+ account: {
319
+ name: string | null;
320
+ institution: string | null;
321
+ mask: string | null;
322
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
323
+ } | null;
324
+ currency: string;
325
+ type: "unusual_charge";
326
+ reason: "above_usual" | "first_time_large";
327
+ transaction_id: string | null;
328
+ date: string;
329
+ amount: number;
330
+ usual_amount: number | null;
331
+ merchant: string | null;
332
+ category: string | null;
333
+ }, {
334
+ id: string;
335
+ title: string;
336
+ warm_url: string;
337
+ account: {
338
+ name: string | null;
339
+ institution: string | null;
340
+ mask: string | null;
341
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
342
+ } | null;
343
+ currency: string;
344
+ type: "unusual_charge";
345
+ reason: "above_usual" | "first_time_large";
346
+ transaction_id: string | null;
347
+ date: string;
348
+ amount: number;
349
+ usual_amount: number | null;
350
+ merchant: string | null;
351
+ category: string | null;
352
+ }>, z.ZodObject<{
353
+ id: z.ZodString;
354
+ title: z.ZodString;
355
+ warm_url: z.ZodString;
356
+ account: z.ZodNullable<z.ZodObject<{
357
+ name: z.ZodNullable<z.ZodString>;
358
+ institution: z.ZodNullable<z.ZodString>;
359
+ mask: z.ZodNullable<z.ZodString>;
360
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
361
+ }, "strict", z.ZodTypeAny, {
362
+ name: string | null;
363
+ institution: string | null;
364
+ mask: string | null;
365
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
366
+ }, {
367
+ name: string | null;
368
+ institution: string | null;
369
+ mask: string | null;
370
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
371
+ }>>;
372
+ currency: z.ZodString;
373
+ type: z.ZodLiteral<"duplicate_charge">;
374
+ merchant: z.ZodNullable<z.ZodString>;
375
+ charges: z.ZodArray<z.ZodObject<{
376
+ transaction_id: z.ZodNullable<z.ZodString>;
377
+ date: z.ZodString;
378
+ amount: z.ZodNumber;
379
+ }, "strict", z.ZodTypeAny, {
380
+ transaction_id: string | null;
381
+ date: string;
382
+ amount: number;
383
+ }, {
384
+ transaction_id: string | null;
385
+ date: string;
386
+ amount: number;
387
+ }>, "many">;
388
+ }, "strict", z.ZodTypeAny, {
389
+ id: string;
390
+ title: string;
391
+ warm_url: string;
392
+ account: {
393
+ name: string | null;
394
+ institution: string | null;
395
+ mask: string | null;
396
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
397
+ } | null;
398
+ currency: string;
399
+ type: "duplicate_charge";
400
+ merchant: string | null;
401
+ charges: {
402
+ transaction_id: string | null;
403
+ date: string;
404
+ amount: number;
405
+ }[];
406
+ }, {
407
+ id: string;
408
+ title: string;
409
+ warm_url: string;
410
+ account: {
411
+ name: string | null;
412
+ institution: string | null;
413
+ mask: string | null;
414
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
415
+ } | null;
416
+ currency: string;
417
+ type: "duplicate_charge";
418
+ merchant: string | null;
419
+ charges: {
420
+ transaction_id: string | null;
421
+ date: string;
422
+ amount: number;
423
+ }[];
424
+ }>, z.ZodObject<{
425
+ id: z.ZodString;
426
+ title: z.ZodString;
427
+ warm_url: z.ZodString;
428
+ account: z.ZodNullable<z.ZodObject<{
429
+ name: z.ZodNullable<z.ZodString>;
430
+ institution: z.ZodNullable<z.ZodString>;
431
+ mask: z.ZodNullable<z.ZodString>;
432
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
433
+ }, "strict", z.ZodTypeAny, {
434
+ name: string | null;
435
+ institution: string | null;
436
+ mask: string | null;
437
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
438
+ }, {
439
+ name: string | null;
440
+ institution: string | null;
441
+ mask: string | null;
442
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
443
+ }>>;
444
+ currency: z.ZodString;
445
+ merchant: z.ZodString;
446
+ frequency: z.ZodNullable<z.ZodString>;
447
+ last_amount: z.ZodNullable<z.ZodNumber>;
448
+ average_amount: z.ZodNullable<z.ZodNumber>;
449
+ cancel: z.ZodNullable<z.ZodObject<{
450
+ actions: z.ZodArray<z.ZodObject<{
451
+ label: z.ZodString;
452
+ url: z.ZodString;
453
+ } & {
454
+ type: z.ZodEnum<["cancel_subscription", "manage_subscription", "contact_support"]>;
455
+ }, "strict", z.ZodTypeAny, {
456
+ label: string;
457
+ url: string;
458
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
459
+ }, {
460
+ label: string;
461
+ url: string;
462
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
463
+ }>, "many">;
464
+ billing_alternatives: z.ZodArray<z.ZodObject<{
465
+ label: z.ZodString;
466
+ url: z.ZodString;
467
+ }, "strict", z.ZodTypeAny, {
468
+ label: string;
469
+ url: string;
470
+ }, {
471
+ label: string;
472
+ url: string;
473
+ }>, "many">;
474
+ }, "strict", z.ZodTypeAny, {
475
+ actions: {
476
+ label: string;
477
+ url: string;
478
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
479
+ }[];
480
+ billing_alternatives: {
481
+ label: string;
482
+ url: string;
483
+ }[];
484
+ }, {
485
+ actions: {
486
+ label: string;
487
+ url: string;
488
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
489
+ }[];
490
+ billing_alternatives: {
491
+ label: string;
492
+ url: string;
493
+ }[];
494
+ }>>;
495
+ type: z.ZodLiteral<"above_average_charge">;
496
+ last_date: z.ZodNullable<z.ZodString>;
497
+ }, "strict", z.ZodTypeAny, {
498
+ id: string;
499
+ title: string;
500
+ warm_url: string;
501
+ account: {
502
+ name: string | null;
503
+ institution: string | null;
504
+ mask: string | null;
505
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
506
+ } | null;
507
+ currency: string;
508
+ merchant: string;
509
+ frequency: string | null;
510
+ last_amount: number | null;
511
+ average_amount: number | null;
512
+ cancel: {
513
+ actions: {
514
+ label: string;
515
+ url: string;
516
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
517
+ }[];
518
+ billing_alternatives: {
519
+ label: string;
520
+ url: string;
521
+ }[];
522
+ } | null;
523
+ type: "above_average_charge";
524
+ last_date: string | null;
525
+ }, {
526
+ id: string;
527
+ title: string;
528
+ warm_url: string;
529
+ account: {
530
+ name: string | null;
531
+ institution: string | null;
532
+ mask: string | null;
533
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
534
+ } | null;
535
+ currency: string;
536
+ merchant: string;
537
+ frequency: string | null;
538
+ last_amount: number | null;
539
+ average_amount: number | null;
540
+ cancel: {
541
+ actions: {
542
+ label: string;
543
+ url: string;
544
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
545
+ }[];
546
+ billing_alternatives: {
547
+ label: string;
548
+ url: string;
549
+ }[];
550
+ } | null;
551
+ type: "above_average_charge";
552
+ last_date: string | null;
553
+ }>, z.ZodObject<{
554
+ id: z.ZodString;
555
+ title: z.ZodString;
556
+ warm_url: z.ZodString;
557
+ account: z.ZodNullable<z.ZodObject<{
558
+ name: z.ZodNullable<z.ZodString>;
559
+ institution: z.ZodNullable<z.ZodString>;
560
+ mask: z.ZodNullable<z.ZodString>;
561
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
562
+ }, "strict", z.ZodTypeAny, {
563
+ name: string | null;
564
+ institution: string | null;
565
+ mask: string | null;
566
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
567
+ }, {
568
+ name: string | null;
569
+ institution: string | null;
570
+ mask: string | null;
571
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
572
+ }>>;
573
+ currency: z.ZodString;
574
+ type: z.ZodLiteral<"fee_charged">;
575
+ transaction_id: z.ZodString;
576
+ date: z.ZodString;
577
+ amount: z.ZodNumber;
578
+ name: z.ZodString;
579
+ detailed_category: z.ZodNullable<z.ZodString>;
580
+ }, "strict", z.ZodTypeAny, {
581
+ id: string;
582
+ title: string;
583
+ warm_url: string;
584
+ account: {
585
+ name: string | null;
586
+ institution: string | null;
587
+ mask: string | null;
588
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
589
+ } | null;
590
+ currency: string;
591
+ type: "fee_charged";
592
+ transaction_id: string;
593
+ date: string;
594
+ amount: number;
595
+ name: string;
596
+ detailed_category: string | null;
597
+ }, {
598
+ id: string;
599
+ title: string;
600
+ warm_url: string;
601
+ account: {
602
+ name: string | null;
603
+ institution: string | null;
604
+ mask: string | null;
605
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
606
+ } | null;
607
+ currency: string;
608
+ type: "fee_charged";
609
+ transaction_id: string;
610
+ date: string;
611
+ amount: number;
612
+ name: string;
613
+ detailed_category: string | null;
614
+ }>, z.ZodObject<{
615
+ id: z.ZodString;
616
+ title: z.ZodString;
617
+ warm_url: z.ZodString;
618
+ type: z.ZodLiteral<"low_cash">;
619
+ account: z.ZodNullable<z.ZodObject<{
620
+ name: z.ZodNullable<z.ZodString>;
621
+ institution: z.ZodNullable<z.ZodString>;
622
+ mask: z.ZodNullable<z.ZodString>;
623
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
624
+ }, "strict", z.ZodTypeAny, {
625
+ name: string | null;
626
+ institution: string | null;
627
+ mask: string | null;
628
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
629
+ }, {
630
+ name: string | null;
631
+ institution: string | null;
632
+ mask: string | null;
633
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
634
+ }>>;
635
+ currency: z.ZodString;
636
+ observed_on: z.ZodString;
637
+ balance: z.ZodNullable<z.ZodNumber>;
638
+ days_until_zero: z.ZodNullable<z.ZodNumber>;
639
+ }, "strict", z.ZodTypeAny, {
640
+ id: string;
641
+ title: string;
642
+ warm_url: string;
643
+ type: "low_cash";
644
+ account: {
645
+ name: string | null;
646
+ institution: string | null;
647
+ mask: string | null;
648
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
649
+ } | null;
650
+ currency: string;
651
+ observed_on: string;
652
+ balance: number | null;
653
+ days_until_zero: number | null;
654
+ }, {
655
+ id: string;
656
+ title: string;
657
+ warm_url: string;
658
+ type: "low_cash";
659
+ account: {
660
+ name: string | null;
661
+ institution: string | null;
662
+ mask: string | null;
663
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
664
+ } | null;
665
+ currency: string;
666
+ observed_on: string;
667
+ balance: number | null;
668
+ days_until_zero: number | null;
669
+ }>]>;
670
+ export type Finding = z.infer<typeof findingSchema>;
671
+ export type FindingAccount = z.infer<typeof findingAccountSchema>;
672
+ export type FindingCancelOptions = z.infer<typeof findingCancelOptionsSchema>;
673
+ export declare const findingsResponseSchema: z.ZodObject<{
674
+ version: z.ZodLiteral<1>;
675
+ generated_at: z.ZodString;
676
+ as_of: z.ZodString;
677
+ time_zone: z.ZodString;
678
+ recent_days: z.ZodLiteral<30>;
679
+ upcoming_days: z.ZodLiteral<14>;
680
+ truncated: z.ZodBoolean;
681
+ findings: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
682
+ id: z.ZodString;
683
+ title: z.ZodString;
684
+ warm_url: z.ZodString;
685
+ type: z.ZodLiteral<"connection_repair">;
686
+ institution: z.ZodNullable<z.ZodString>;
687
+ since: z.ZodNullable<z.ZodString>;
688
+ }, "strict", z.ZodTypeAny, {
689
+ id: string;
690
+ title: string;
691
+ warm_url: string;
692
+ type: "connection_repair";
693
+ institution: string | null;
694
+ since: string | null;
695
+ }, {
696
+ id: string;
697
+ title: string;
698
+ warm_url: string;
699
+ type: "connection_repair";
700
+ institution: string | null;
701
+ since: string | null;
702
+ }>, z.ZodObject<{
703
+ id: z.ZodString;
704
+ title: z.ZodString;
705
+ warm_url: z.ZodString;
706
+ account: z.ZodNullable<z.ZodObject<{
707
+ name: z.ZodNullable<z.ZodString>;
708
+ institution: z.ZodNullable<z.ZodString>;
709
+ mask: z.ZodNullable<z.ZodString>;
710
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
711
+ }, "strict", z.ZodTypeAny, {
712
+ name: string | null;
713
+ institution: string | null;
714
+ mask: string | null;
715
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
716
+ }, {
717
+ name: string | null;
718
+ institution: string | null;
719
+ mask: string | null;
720
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
721
+ }>>;
722
+ currency: z.ZodString;
723
+ type: z.ZodLiteral<"payment_due">;
724
+ due_date: z.ZodNullable<z.ZodString>;
725
+ overdue: z.ZodBoolean;
726
+ minimum_payment: z.ZodNullable<z.ZodNumber>;
727
+ statement_balance: z.ZodNullable<z.ZodNumber>;
728
+ apr_percentage: z.ZodNullable<z.ZodNumber>;
729
+ }, "strict", z.ZodTypeAny, {
730
+ id: string;
731
+ title: string;
732
+ warm_url: string;
733
+ account: {
734
+ name: string | null;
735
+ institution: string | null;
736
+ mask: string | null;
737
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
738
+ } | null;
739
+ currency: string;
740
+ type: "payment_due";
741
+ due_date: string | null;
742
+ overdue: boolean;
743
+ minimum_payment: number | null;
744
+ statement_balance: number | null;
745
+ apr_percentage: number | null;
746
+ }, {
747
+ id: string;
748
+ title: string;
749
+ warm_url: string;
750
+ account: {
751
+ name: string | null;
752
+ institution: string | null;
753
+ mask: string | null;
754
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
755
+ } | null;
756
+ currency: string;
757
+ type: "payment_due";
758
+ due_date: string | null;
759
+ overdue: boolean;
760
+ minimum_payment: number | null;
761
+ statement_balance: number | null;
762
+ apr_percentage: number | null;
763
+ }>, z.ZodObject<{
764
+ id: z.ZodString;
765
+ title: z.ZodString;
766
+ warm_url: z.ZodString;
767
+ account: z.ZodNullable<z.ZodObject<{
768
+ name: z.ZodNullable<z.ZodString>;
769
+ institution: z.ZodNullable<z.ZodString>;
770
+ mask: z.ZodNullable<z.ZodString>;
771
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
772
+ }, "strict", z.ZodTypeAny, {
773
+ name: string | null;
774
+ institution: string | null;
775
+ mask: string | null;
776
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
777
+ }, {
778
+ name: string | null;
779
+ institution: string | null;
780
+ mask: string | null;
781
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
782
+ }>>;
783
+ currency: z.ZodString;
784
+ merchant: z.ZodString;
785
+ frequency: z.ZodNullable<z.ZodString>;
786
+ last_amount: z.ZodNullable<z.ZodNumber>;
787
+ average_amount: z.ZodNullable<z.ZodNumber>;
788
+ cancel: z.ZodNullable<z.ZodObject<{
789
+ actions: z.ZodArray<z.ZodObject<{
790
+ label: z.ZodString;
791
+ url: z.ZodString;
792
+ } & {
793
+ type: z.ZodEnum<["cancel_subscription", "manage_subscription", "contact_support"]>;
794
+ }, "strict", z.ZodTypeAny, {
795
+ label: string;
796
+ url: string;
797
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
798
+ }, {
799
+ label: string;
800
+ url: string;
801
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
802
+ }>, "many">;
803
+ billing_alternatives: z.ZodArray<z.ZodObject<{
804
+ label: z.ZodString;
805
+ url: z.ZodString;
806
+ }, "strict", z.ZodTypeAny, {
807
+ label: string;
808
+ url: string;
809
+ }, {
810
+ label: string;
811
+ url: string;
812
+ }>, "many">;
813
+ }, "strict", z.ZodTypeAny, {
814
+ actions: {
815
+ label: string;
816
+ url: string;
817
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
818
+ }[];
819
+ billing_alternatives: {
820
+ label: string;
821
+ url: string;
822
+ }[];
823
+ }, {
824
+ actions: {
825
+ label: string;
826
+ url: string;
827
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
828
+ }[];
829
+ billing_alternatives: {
830
+ label: string;
831
+ url: string;
832
+ }[];
833
+ }>>;
834
+ type: z.ZodLiteral<"upcoming_charge">;
835
+ expected_date: z.ZodString;
836
+ }, "strict", z.ZodTypeAny, {
837
+ id: string;
838
+ title: string;
839
+ warm_url: string;
840
+ account: {
841
+ name: string | null;
842
+ institution: string | null;
843
+ mask: string | null;
844
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
845
+ } | null;
846
+ currency: string;
847
+ merchant: string;
848
+ frequency: string | null;
849
+ last_amount: number | null;
850
+ average_amount: number | null;
851
+ cancel: {
852
+ actions: {
853
+ label: string;
854
+ url: string;
855
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
856
+ }[];
857
+ billing_alternatives: {
858
+ label: string;
859
+ url: string;
860
+ }[];
861
+ } | null;
862
+ type: "upcoming_charge";
863
+ expected_date: string;
864
+ }, {
865
+ id: string;
866
+ title: string;
867
+ warm_url: string;
868
+ account: {
869
+ name: string | null;
870
+ institution: string | null;
871
+ mask: string | null;
872
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
873
+ } | null;
874
+ currency: string;
875
+ merchant: string;
876
+ frequency: string | null;
877
+ last_amount: number | null;
878
+ average_amount: number | null;
879
+ cancel: {
880
+ actions: {
881
+ label: string;
882
+ url: string;
883
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
884
+ }[];
885
+ billing_alternatives: {
886
+ label: string;
887
+ url: string;
888
+ }[];
889
+ } | null;
890
+ type: "upcoming_charge";
891
+ expected_date: string;
892
+ }>, z.ZodObject<{
893
+ id: z.ZodString;
894
+ title: z.ZodString;
895
+ warm_url: z.ZodString;
896
+ account: z.ZodNullable<z.ZodObject<{
897
+ name: z.ZodNullable<z.ZodString>;
898
+ institution: z.ZodNullable<z.ZodString>;
899
+ mask: z.ZodNullable<z.ZodString>;
900
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
901
+ }, "strict", z.ZodTypeAny, {
902
+ name: string | null;
903
+ institution: string | null;
904
+ mask: string | null;
905
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
906
+ }, {
907
+ name: string | null;
908
+ institution: string | null;
909
+ mask: string | null;
910
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
911
+ }>>;
912
+ currency: z.ZodString;
913
+ type: z.ZodLiteral<"unusual_charge">;
914
+ reason: z.ZodEnum<["first_time_large", "above_usual"]>;
915
+ transaction_id: z.ZodNullable<z.ZodString>;
916
+ date: z.ZodString;
917
+ amount: z.ZodNumber;
918
+ usual_amount: z.ZodNullable<z.ZodNumber>;
919
+ merchant: z.ZodNullable<z.ZodString>;
920
+ category: z.ZodNullable<z.ZodString>;
921
+ }, "strict", z.ZodTypeAny, {
922
+ id: string;
923
+ title: string;
924
+ warm_url: string;
925
+ account: {
926
+ name: string | null;
927
+ institution: string | null;
928
+ mask: string | null;
929
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
930
+ } | null;
931
+ currency: string;
932
+ type: "unusual_charge";
933
+ reason: "above_usual" | "first_time_large";
934
+ transaction_id: string | null;
935
+ date: string;
936
+ amount: number;
937
+ usual_amount: number | null;
938
+ merchant: string | null;
939
+ category: string | null;
940
+ }, {
941
+ id: string;
942
+ title: string;
943
+ warm_url: string;
944
+ account: {
945
+ name: string | null;
946
+ institution: string | null;
947
+ mask: string | null;
948
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
949
+ } | null;
950
+ currency: string;
951
+ type: "unusual_charge";
952
+ reason: "above_usual" | "first_time_large";
953
+ transaction_id: string | null;
954
+ date: string;
955
+ amount: number;
956
+ usual_amount: number | null;
957
+ merchant: string | null;
958
+ category: string | null;
959
+ }>, z.ZodObject<{
960
+ id: z.ZodString;
961
+ title: z.ZodString;
962
+ warm_url: z.ZodString;
963
+ account: z.ZodNullable<z.ZodObject<{
964
+ name: z.ZodNullable<z.ZodString>;
965
+ institution: z.ZodNullable<z.ZodString>;
966
+ mask: z.ZodNullable<z.ZodString>;
967
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
968
+ }, "strict", z.ZodTypeAny, {
969
+ name: string | null;
970
+ institution: string | null;
971
+ mask: string | null;
972
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
973
+ }, {
974
+ name: string | null;
975
+ institution: string | null;
976
+ mask: string | null;
977
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
978
+ }>>;
979
+ currency: z.ZodString;
980
+ type: z.ZodLiteral<"duplicate_charge">;
981
+ merchant: z.ZodNullable<z.ZodString>;
982
+ charges: z.ZodArray<z.ZodObject<{
983
+ transaction_id: z.ZodNullable<z.ZodString>;
984
+ date: z.ZodString;
985
+ amount: z.ZodNumber;
986
+ }, "strict", z.ZodTypeAny, {
987
+ transaction_id: string | null;
988
+ date: string;
989
+ amount: number;
990
+ }, {
991
+ transaction_id: string | null;
992
+ date: string;
993
+ amount: number;
994
+ }>, "many">;
995
+ }, "strict", z.ZodTypeAny, {
996
+ id: string;
997
+ title: string;
998
+ warm_url: string;
999
+ account: {
1000
+ name: string | null;
1001
+ institution: string | null;
1002
+ mask: string | null;
1003
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1004
+ } | null;
1005
+ currency: string;
1006
+ type: "duplicate_charge";
1007
+ merchant: string | null;
1008
+ charges: {
1009
+ transaction_id: string | null;
1010
+ date: string;
1011
+ amount: number;
1012
+ }[];
1013
+ }, {
1014
+ id: string;
1015
+ title: string;
1016
+ warm_url: string;
1017
+ account: {
1018
+ name: string | null;
1019
+ institution: string | null;
1020
+ mask: string | null;
1021
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1022
+ } | null;
1023
+ currency: string;
1024
+ type: "duplicate_charge";
1025
+ merchant: string | null;
1026
+ charges: {
1027
+ transaction_id: string | null;
1028
+ date: string;
1029
+ amount: number;
1030
+ }[];
1031
+ }>, z.ZodObject<{
1032
+ id: z.ZodString;
1033
+ title: z.ZodString;
1034
+ warm_url: z.ZodString;
1035
+ account: z.ZodNullable<z.ZodObject<{
1036
+ name: z.ZodNullable<z.ZodString>;
1037
+ institution: z.ZodNullable<z.ZodString>;
1038
+ mask: z.ZodNullable<z.ZodString>;
1039
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
1040
+ }, "strict", z.ZodTypeAny, {
1041
+ name: string | null;
1042
+ institution: string | null;
1043
+ mask: string | null;
1044
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1045
+ }, {
1046
+ name: string | null;
1047
+ institution: string | null;
1048
+ mask: string | null;
1049
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1050
+ }>>;
1051
+ currency: z.ZodString;
1052
+ merchant: z.ZodString;
1053
+ frequency: z.ZodNullable<z.ZodString>;
1054
+ last_amount: z.ZodNullable<z.ZodNumber>;
1055
+ average_amount: z.ZodNullable<z.ZodNumber>;
1056
+ cancel: z.ZodNullable<z.ZodObject<{
1057
+ actions: z.ZodArray<z.ZodObject<{
1058
+ label: z.ZodString;
1059
+ url: z.ZodString;
1060
+ } & {
1061
+ type: z.ZodEnum<["cancel_subscription", "manage_subscription", "contact_support"]>;
1062
+ }, "strict", z.ZodTypeAny, {
1063
+ label: string;
1064
+ url: string;
1065
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1066
+ }, {
1067
+ label: string;
1068
+ url: string;
1069
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1070
+ }>, "many">;
1071
+ billing_alternatives: z.ZodArray<z.ZodObject<{
1072
+ label: z.ZodString;
1073
+ url: z.ZodString;
1074
+ }, "strict", z.ZodTypeAny, {
1075
+ label: string;
1076
+ url: string;
1077
+ }, {
1078
+ label: string;
1079
+ url: string;
1080
+ }>, "many">;
1081
+ }, "strict", z.ZodTypeAny, {
1082
+ actions: {
1083
+ label: string;
1084
+ url: string;
1085
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1086
+ }[];
1087
+ billing_alternatives: {
1088
+ label: string;
1089
+ url: string;
1090
+ }[];
1091
+ }, {
1092
+ actions: {
1093
+ label: string;
1094
+ url: string;
1095
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1096
+ }[];
1097
+ billing_alternatives: {
1098
+ label: string;
1099
+ url: string;
1100
+ }[];
1101
+ }>>;
1102
+ type: z.ZodLiteral<"above_average_charge">;
1103
+ last_date: z.ZodNullable<z.ZodString>;
1104
+ }, "strict", z.ZodTypeAny, {
1105
+ id: string;
1106
+ title: string;
1107
+ warm_url: string;
1108
+ account: {
1109
+ name: string | null;
1110
+ institution: string | null;
1111
+ mask: string | null;
1112
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1113
+ } | null;
1114
+ currency: string;
1115
+ merchant: string;
1116
+ frequency: string | null;
1117
+ last_amount: number | null;
1118
+ average_amount: number | null;
1119
+ cancel: {
1120
+ actions: {
1121
+ label: string;
1122
+ url: string;
1123
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1124
+ }[];
1125
+ billing_alternatives: {
1126
+ label: string;
1127
+ url: string;
1128
+ }[];
1129
+ } | null;
1130
+ type: "above_average_charge";
1131
+ last_date: string | null;
1132
+ }, {
1133
+ id: string;
1134
+ title: string;
1135
+ warm_url: string;
1136
+ account: {
1137
+ name: string | null;
1138
+ institution: string | null;
1139
+ mask: string | null;
1140
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1141
+ } | null;
1142
+ currency: string;
1143
+ merchant: string;
1144
+ frequency: string | null;
1145
+ last_amount: number | null;
1146
+ average_amount: number | null;
1147
+ cancel: {
1148
+ actions: {
1149
+ label: string;
1150
+ url: string;
1151
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1152
+ }[];
1153
+ billing_alternatives: {
1154
+ label: string;
1155
+ url: string;
1156
+ }[];
1157
+ } | null;
1158
+ type: "above_average_charge";
1159
+ last_date: string | null;
1160
+ }>, z.ZodObject<{
1161
+ id: z.ZodString;
1162
+ title: z.ZodString;
1163
+ warm_url: z.ZodString;
1164
+ account: z.ZodNullable<z.ZodObject<{
1165
+ name: z.ZodNullable<z.ZodString>;
1166
+ institution: z.ZodNullable<z.ZodString>;
1167
+ mask: z.ZodNullable<z.ZodString>;
1168
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
1169
+ }, "strict", z.ZodTypeAny, {
1170
+ name: string | null;
1171
+ institution: string | null;
1172
+ mask: string | null;
1173
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1174
+ }, {
1175
+ name: string | null;
1176
+ institution: string | null;
1177
+ mask: string | null;
1178
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1179
+ }>>;
1180
+ currency: z.ZodString;
1181
+ type: z.ZodLiteral<"fee_charged">;
1182
+ transaction_id: z.ZodString;
1183
+ date: z.ZodString;
1184
+ amount: z.ZodNumber;
1185
+ name: z.ZodString;
1186
+ detailed_category: z.ZodNullable<z.ZodString>;
1187
+ }, "strict", z.ZodTypeAny, {
1188
+ id: string;
1189
+ title: string;
1190
+ warm_url: string;
1191
+ account: {
1192
+ name: string | null;
1193
+ institution: string | null;
1194
+ mask: string | null;
1195
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1196
+ } | null;
1197
+ currency: string;
1198
+ type: "fee_charged";
1199
+ transaction_id: string;
1200
+ date: string;
1201
+ amount: number;
1202
+ name: string;
1203
+ detailed_category: string | null;
1204
+ }, {
1205
+ id: string;
1206
+ title: string;
1207
+ warm_url: string;
1208
+ account: {
1209
+ name: string | null;
1210
+ institution: string | null;
1211
+ mask: string | null;
1212
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1213
+ } | null;
1214
+ currency: string;
1215
+ type: "fee_charged";
1216
+ transaction_id: string;
1217
+ date: string;
1218
+ amount: number;
1219
+ name: string;
1220
+ detailed_category: string | null;
1221
+ }>, z.ZodObject<{
1222
+ id: z.ZodString;
1223
+ title: z.ZodString;
1224
+ warm_url: z.ZodString;
1225
+ type: z.ZodLiteral<"low_cash">;
1226
+ account: z.ZodNullable<z.ZodObject<{
1227
+ name: z.ZodNullable<z.ZodString>;
1228
+ institution: z.ZodNullable<z.ZodString>;
1229
+ mask: z.ZodNullable<z.ZodString>;
1230
+ kind: z.ZodEnum<["credit", "depository", "loan", "investment", "other"]>;
1231
+ }, "strict", z.ZodTypeAny, {
1232
+ name: string | null;
1233
+ institution: string | null;
1234
+ mask: string | null;
1235
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1236
+ }, {
1237
+ name: string | null;
1238
+ institution: string | null;
1239
+ mask: string | null;
1240
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1241
+ }>>;
1242
+ currency: z.ZodString;
1243
+ observed_on: z.ZodString;
1244
+ balance: z.ZodNullable<z.ZodNumber>;
1245
+ days_until_zero: z.ZodNullable<z.ZodNumber>;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ id: string;
1248
+ title: string;
1249
+ warm_url: string;
1250
+ type: "low_cash";
1251
+ account: {
1252
+ name: string | null;
1253
+ institution: string | null;
1254
+ mask: string | null;
1255
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1256
+ } | null;
1257
+ currency: string;
1258
+ observed_on: string;
1259
+ balance: number | null;
1260
+ days_until_zero: number | null;
1261
+ }, {
1262
+ id: string;
1263
+ title: string;
1264
+ warm_url: string;
1265
+ type: "low_cash";
1266
+ account: {
1267
+ name: string | null;
1268
+ institution: string | null;
1269
+ mask: string | null;
1270
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1271
+ } | null;
1272
+ currency: string;
1273
+ observed_on: string;
1274
+ balance: number | null;
1275
+ days_until_zero: number | null;
1276
+ }>]>, "many">;
1277
+ }, "strict", z.ZodTypeAny, {
1278
+ version: 1;
1279
+ generated_at: string;
1280
+ as_of: string;
1281
+ time_zone: string;
1282
+ recent_days: 30;
1283
+ upcoming_days: 14;
1284
+ truncated: boolean;
1285
+ findings: ({
1286
+ id: string;
1287
+ title: string;
1288
+ warm_url: string;
1289
+ type: "connection_repair";
1290
+ institution: string | null;
1291
+ since: string | null;
1292
+ } | {
1293
+ id: string;
1294
+ title: string;
1295
+ warm_url: string;
1296
+ account: {
1297
+ name: string | null;
1298
+ institution: string | null;
1299
+ mask: string | null;
1300
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1301
+ } | null;
1302
+ currency: string;
1303
+ type: "payment_due";
1304
+ due_date: string | null;
1305
+ overdue: boolean;
1306
+ minimum_payment: number | null;
1307
+ statement_balance: number | null;
1308
+ apr_percentage: number | null;
1309
+ } | {
1310
+ id: string;
1311
+ title: string;
1312
+ warm_url: string;
1313
+ account: {
1314
+ name: string | null;
1315
+ institution: string | null;
1316
+ mask: string | null;
1317
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1318
+ } | null;
1319
+ currency: string;
1320
+ merchant: string;
1321
+ frequency: string | null;
1322
+ last_amount: number | null;
1323
+ average_amount: number | null;
1324
+ cancel: {
1325
+ actions: {
1326
+ label: string;
1327
+ url: string;
1328
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1329
+ }[];
1330
+ billing_alternatives: {
1331
+ label: string;
1332
+ url: string;
1333
+ }[];
1334
+ } | null;
1335
+ type: "upcoming_charge";
1336
+ expected_date: string;
1337
+ } | {
1338
+ id: string;
1339
+ title: string;
1340
+ warm_url: string;
1341
+ account: {
1342
+ name: string | null;
1343
+ institution: string | null;
1344
+ mask: string | null;
1345
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1346
+ } | null;
1347
+ currency: string;
1348
+ type: "unusual_charge";
1349
+ reason: "above_usual" | "first_time_large";
1350
+ transaction_id: string | null;
1351
+ date: string;
1352
+ amount: number;
1353
+ usual_amount: number | null;
1354
+ merchant: string | null;
1355
+ category: string | null;
1356
+ } | {
1357
+ id: string;
1358
+ title: string;
1359
+ warm_url: string;
1360
+ account: {
1361
+ name: string | null;
1362
+ institution: string | null;
1363
+ mask: string | null;
1364
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1365
+ } | null;
1366
+ currency: string;
1367
+ type: "duplicate_charge";
1368
+ merchant: string | null;
1369
+ charges: {
1370
+ transaction_id: string | null;
1371
+ date: string;
1372
+ amount: number;
1373
+ }[];
1374
+ } | {
1375
+ id: string;
1376
+ title: string;
1377
+ warm_url: string;
1378
+ account: {
1379
+ name: string | null;
1380
+ institution: string | null;
1381
+ mask: string | null;
1382
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1383
+ } | null;
1384
+ currency: string;
1385
+ merchant: string;
1386
+ frequency: string | null;
1387
+ last_amount: number | null;
1388
+ average_amount: number | null;
1389
+ cancel: {
1390
+ actions: {
1391
+ label: string;
1392
+ url: string;
1393
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1394
+ }[];
1395
+ billing_alternatives: {
1396
+ label: string;
1397
+ url: string;
1398
+ }[];
1399
+ } | null;
1400
+ type: "above_average_charge";
1401
+ last_date: string | null;
1402
+ } | {
1403
+ id: string;
1404
+ title: string;
1405
+ warm_url: string;
1406
+ account: {
1407
+ name: string | null;
1408
+ institution: string | null;
1409
+ mask: string | null;
1410
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1411
+ } | null;
1412
+ currency: string;
1413
+ type: "fee_charged";
1414
+ transaction_id: string;
1415
+ date: string;
1416
+ amount: number;
1417
+ name: string;
1418
+ detailed_category: string | null;
1419
+ } | {
1420
+ id: string;
1421
+ title: string;
1422
+ warm_url: string;
1423
+ type: "low_cash";
1424
+ account: {
1425
+ name: string | null;
1426
+ institution: string | null;
1427
+ mask: string | null;
1428
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1429
+ } | null;
1430
+ currency: string;
1431
+ observed_on: string;
1432
+ balance: number | null;
1433
+ days_until_zero: number | null;
1434
+ })[];
1435
+ }, {
1436
+ version: 1;
1437
+ generated_at: string;
1438
+ as_of: string;
1439
+ time_zone: string;
1440
+ recent_days: 30;
1441
+ upcoming_days: 14;
1442
+ truncated: boolean;
1443
+ findings: ({
1444
+ id: string;
1445
+ title: string;
1446
+ warm_url: string;
1447
+ type: "connection_repair";
1448
+ institution: string | null;
1449
+ since: string | null;
1450
+ } | {
1451
+ id: string;
1452
+ title: string;
1453
+ warm_url: string;
1454
+ account: {
1455
+ name: string | null;
1456
+ institution: string | null;
1457
+ mask: string | null;
1458
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1459
+ } | null;
1460
+ currency: string;
1461
+ type: "payment_due";
1462
+ due_date: string | null;
1463
+ overdue: boolean;
1464
+ minimum_payment: number | null;
1465
+ statement_balance: number | null;
1466
+ apr_percentage: number | null;
1467
+ } | {
1468
+ id: string;
1469
+ title: string;
1470
+ warm_url: string;
1471
+ account: {
1472
+ name: string | null;
1473
+ institution: string | null;
1474
+ mask: string | null;
1475
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1476
+ } | null;
1477
+ currency: string;
1478
+ merchant: string;
1479
+ frequency: string | null;
1480
+ last_amount: number | null;
1481
+ average_amount: number | null;
1482
+ cancel: {
1483
+ actions: {
1484
+ label: string;
1485
+ url: string;
1486
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1487
+ }[];
1488
+ billing_alternatives: {
1489
+ label: string;
1490
+ url: string;
1491
+ }[];
1492
+ } | null;
1493
+ type: "upcoming_charge";
1494
+ expected_date: string;
1495
+ } | {
1496
+ id: string;
1497
+ title: string;
1498
+ warm_url: string;
1499
+ account: {
1500
+ name: string | null;
1501
+ institution: string | null;
1502
+ mask: string | null;
1503
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1504
+ } | null;
1505
+ currency: string;
1506
+ type: "unusual_charge";
1507
+ reason: "above_usual" | "first_time_large";
1508
+ transaction_id: string | null;
1509
+ date: string;
1510
+ amount: number;
1511
+ usual_amount: number | null;
1512
+ merchant: string | null;
1513
+ category: string | null;
1514
+ } | {
1515
+ id: string;
1516
+ title: string;
1517
+ warm_url: string;
1518
+ account: {
1519
+ name: string | null;
1520
+ institution: string | null;
1521
+ mask: string | null;
1522
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1523
+ } | null;
1524
+ currency: string;
1525
+ type: "duplicate_charge";
1526
+ merchant: string | null;
1527
+ charges: {
1528
+ transaction_id: string | null;
1529
+ date: string;
1530
+ amount: number;
1531
+ }[];
1532
+ } | {
1533
+ id: string;
1534
+ title: string;
1535
+ warm_url: string;
1536
+ account: {
1537
+ name: string | null;
1538
+ institution: string | null;
1539
+ mask: string | null;
1540
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1541
+ } | null;
1542
+ currency: string;
1543
+ merchant: string;
1544
+ frequency: string | null;
1545
+ last_amount: number | null;
1546
+ average_amount: number | null;
1547
+ cancel: {
1548
+ actions: {
1549
+ label: string;
1550
+ url: string;
1551
+ type: "cancel_subscription" | "contact_support" | "manage_subscription";
1552
+ }[];
1553
+ billing_alternatives: {
1554
+ label: string;
1555
+ url: string;
1556
+ }[];
1557
+ } | null;
1558
+ type: "above_average_charge";
1559
+ last_date: string | null;
1560
+ } | {
1561
+ id: string;
1562
+ title: string;
1563
+ warm_url: string;
1564
+ account: {
1565
+ name: string | null;
1566
+ institution: string | null;
1567
+ mask: string | null;
1568
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1569
+ } | null;
1570
+ currency: string;
1571
+ type: "fee_charged";
1572
+ transaction_id: string;
1573
+ date: string;
1574
+ amount: number;
1575
+ name: string;
1576
+ detailed_category: string | null;
1577
+ } | {
1578
+ id: string;
1579
+ title: string;
1580
+ warm_url: string;
1581
+ type: "low_cash";
1582
+ account: {
1583
+ name: string | null;
1584
+ institution: string | null;
1585
+ mask: string | null;
1586
+ kind: "credit" | "depository" | "investment" | "loan" | "other";
1587
+ } | null;
1588
+ currency: string;
1589
+ observed_on: string;
1590
+ balance: number | null;
1591
+ days_until_zero: number | null;
1592
+ })[];
1593
+ }>;
1594
+ export type FindingsResponse = z.infer<typeof findingsResponseSchema>;
1595
+ //# sourceMappingURL=findings.d.ts.map