@warmio/mcp 4.2.1 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts CHANGED
@@ -1,226 +1,277 @@
1
- import * as z from 'zod/v4';
2
- export declare const emptyInputSchema: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
3
- export declare const accountTypeSchema: z.ZodEnum<{
4
- depository: "depository";
5
- credit: "credit";
6
- loan: "loan";
7
- investment: "investment";
8
- other: "other";
9
- }>;
10
- export declare const accountSchema: z.ZodObject<{
11
- name: z.ZodString;
12
- type: z.ZodEnum<{
13
- depository: "depository";
14
- credit: "credit";
15
- loan: "loan";
16
- investment: "investment";
17
- other: "other";
18
- }>;
19
- subtype: z.ZodNullable<z.ZodString>;
20
- balance: z.ZodNumber;
21
- institution: z.ZodNullable<z.ZodString>;
22
- mask: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strict>;
24
- export declare const getAccountsOutputSchema: z.ZodObject<{
1
+ import { z } from 'zod';
2
+ export declare const emptyInputSchema: {};
3
+ export declare const accountTypeSchema: z.ZodEnum<["depository", "credit", "loan", "investment", "other"]>;
4
+ export declare const getAccountsOutputSchema: {
25
5
  accounts: z.ZodArray<z.ZodObject<{
26
- name: z.ZodString;
27
- type: z.ZodEnum<{
28
- depository: "depository";
29
- credit: "credit";
30
- loan: "loan";
31
- investment: "investment";
32
- other: "other";
33
- }>;
34
- subtype: z.ZodNullable<z.ZodString>;
35
6
  balance: z.ZodNumber;
36
7
  institution: z.ZodNullable<z.ZodString>;
37
8
  mask: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strict>>;
39
- }, z.core.$strict>;
40
- export declare const getTransactionsInputSchema: z.ZodObject<{
41
- limit: z.ZodDefault<z.ZodInt>;
9
+ name: z.ZodString;
10
+ subtype: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodEnum<["depository", "credit", "loan", "investment", "other"]>;
12
+ }, "strict", z.ZodTypeAny, {
13
+ balance: number;
14
+ institution: string | null;
15
+ mask: string | null;
16
+ name: string;
17
+ subtype: string | null;
18
+ type: "depository" | "credit" | "loan" | "investment" | "other";
19
+ }, {
20
+ balance: number;
21
+ institution: string | null;
22
+ mask: string | null;
23
+ name: string;
24
+ subtype: string | null;
25
+ type: "depository" | "credit" | "loan" | "investment" | "other";
26
+ }>, "many">;
27
+ };
28
+ export declare const getTransactionsInputSchema: {
42
29
  cursor: z.ZodOptional<z.ZodString>;
43
30
  last_knowledge: z.ZodOptional<z.ZodString>;
31
+ limit: z.ZodDefault<z.ZodNumber>;
44
32
  search: z.ZodOptional<z.ZodString>;
45
- }, z.core.$strict>;
46
- export declare const transactionSchema: z.ZodObject<{
47
- id: z.ZodNullable<z.ZodString>;
48
- date: z.ZodNullable<z.ZodString>;
49
- amount: z.ZodNumber;
50
- merchant: z.ZodNullable<z.ZodString>;
51
- description: z.ZodNullable<z.ZodString>;
52
- category: z.ZodNullable<z.ZodString>;
53
- detailed_category: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strict>;
55
- export declare const getTransactionsOutputSchema: z.ZodObject<{
33
+ };
34
+ export declare const getTransactionsOutputSchema: {
56
35
  generated_at: z.ZodNullable<z.ZodString>;
57
36
  next_knowledge: z.ZodNullable<z.ZodString>;
37
+ pagination: z.ZodObject<{
38
+ has_more: z.ZodBoolean;
39
+ limit: z.ZodNumber;
40
+ next_cursor: z.ZodNullable<z.ZodString>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ limit: number;
43
+ has_more: boolean;
44
+ next_cursor: string | null;
45
+ }, {
46
+ limit: number;
47
+ has_more: boolean;
48
+ next_cursor: string | null;
49
+ }>;
58
50
  txns: z.ZodArray<z.ZodObject<{
59
- id: z.ZodNullable<z.ZodString>;
60
- date: z.ZodNullable<z.ZodString>;
61
51
  amount: z.ZodNumber;
62
- merchant: z.ZodNullable<z.ZodString>;
63
- description: z.ZodNullable<z.ZodString>;
64
52
  category: z.ZodNullable<z.ZodString>;
53
+ date: z.ZodNullable<z.ZodString>;
54
+ description: z.ZodNullable<z.ZodString>;
65
55
  detailed_category: z.ZodNullable<z.ZodString>;
66
- }, z.core.$strict>>;
67
- pagination: z.ZodObject<{
68
- limit: z.ZodInt;
69
- next_cursor: z.ZodNullable<z.ZodString>;
70
- has_more: z.ZodBoolean;
71
- }, z.core.$strict>;
72
- }, z.core.$strict>;
73
- export declare const snapshotSchema: z.ZodObject<{
74
- date: z.ZodString;
75
- net_worth: z.ZodNumber;
76
- total_assets: z.ZodNumber;
77
- total_liabilities: z.ZodNumber;
78
- }, z.core.$strict>;
79
- export declare const recurringSchema: z.ZodObject<{
80
- merchant: z.ZodString;
81
- amount: z.ZodNumber;
82
- frequency: z.ZodString;
83
- next_date: z.ZodNullable<z.ZodString>;
84
- type: z.ZodNullable<z.ZodString>;
85
- active: z.ZodBoolean;
86
- }, z.core.$strict>;
87
- export declare const budgetSchema: z.ZodObject<{
88
- name: z.ZodString;
89
- amount: z.ZodNumber;
90
- spent: z.ZodNumber;
91
- remaining: z.ZodNumber;
92
- percent_used: z.ZodNumber;
93
- period: z.ZodString;
94
- status: z.ZodNullable<z.ZodString>;
95
- }, z.core.$strict>;
96
- export declare const goalSchema: z.ZodObject<{
97
- name: z.ZodString;
98
- target: z.ZodNumber;
99
- current: z.ZodNumber;
100
- progress_percent: z.ZodNumber;
101
- target_date: z.ZodNullable<z.ZodString>;
102
- status: z.ZodNullable<z.ZodString>;
103
- category: z.ZodNullable<z.ZodString>;
104
- monthly_contribution_needed: z.ZodNullable<z.ZodNumber>;
105
- }, z.core.$strict>;
106
- export declare const healthPillarsSchema: z.ZodObject<{
107
- spend: z.ZodNullable<z.ZodNumber>;
108
- save: z.ZodNullable<z.ZodNumber>;
109
- borrow: z.ZodNullable<z.ZodNumber>;
110
- build: z.ZodNullable<z.ZodNumber>;
111
- }, z.core.$strict>;
112
- export declare const liabilitySchema: z.ZodObject<{
113
- account_id: z.ZodString;
114
- type: z.ZodString;
115
- balance: z.ZodNullable<z.ZodNumber>;
116
- apr_percentage: z.ZodNullable<z.ZodNumber>;
117
- minimum_payment: z.ZodNullable<z.ZodNumber>;
118
- next_payment_due_date: z.ZodNullable<z.ZodString>;
119
- is_overdue: z.ZodNullable<z.ZodBoolean>;
120
- }, z.core.$strict>;
121
- export declare const holdingSchema: z.ZodObject<{
122
- account_id: z.ZodString;
123
- security_name: z.ZodNullable<z.ZodString>;
124
- symbol: z.ZodNullable<z.ZodString>;
125
- type: z.ZodNullable<z.ZodString>;
126
- quantity: z.ZodNumber;
127
- value: z.ZodNullable<z.ZodNumber>;
128
- cost_basis: z.ZodNullable<z.ZodNumber>;
129
- }, z.core.$strict>;
130
- export declare const categorySpendingSchema: z.ZodObject<{
131
- category: z.ZodString;
132
- amount: z.ZodNumber;
133
- }, z.core.$strict>;
134
- export declare const financialHealthSchema: z.ZodObject<{
135
- score: z.ZodNullable<z.ZodNumber>;
136
- label: z.ZodNullable<z.ZodString>;
137
- data_completeness: z.ZodNullable<z.ZodNumber>;
138
- pillars: z.ZodNullable<z.ZodObject<{
139
- spend: z.ZodNullable<z.ZodNumber>;
140
- save: z.ZodNullable<z.ZodNumber>;
141
- borrow: z.ZodNullable<z.ZodNumber>;
142
- build: z.ZodNullable<z.ZodNumber>;
143
- }, z.core.$strict>>;
144
- message: z.ZodNullable<z.ZodString>;
145
- }, z.core.$strict>;
146
- export declare const getFinancialStateOutputSchema: z.ZodObject<{
147
- generated_at: z.ZodString;
148
- snapshots: z.ZodArray<z.ZodObject<{
149
- date: z.ZodString;
150
- net_worth: z.ZodNumber;
151
- total_assets: z.ZodNumber;
152
- total_liabilities: z.ZodNumber;
153
- }, z.core.$strict>>;
154
- recurring: z.ZodArray<z.ZodObject<{
155
- merchant: z.ZodString;
156
- amount: z.ZodNumber;
157
- frequency: z.ZodString;
158
- next_date: z.ZodNullable<z.ZodString>;
159
- type: z.ZodNullable<z.ZodString>;
160
- active: z.ZodBoolean;
161
- }, z.core.$strict>>;
56
+ id: z.ZodNullable<z.ZodString>;
57
+ merchant: z.ZodNullable<z.ZodString>;
58
+ }, "strict", z.ZodTypeAny, {
59
+ amount: number;
60
+ category: string | null;
61
+ date: string | null;
62
+ description: string | null;
63
+ detailed_category: string | null;
64
+ id: string | null;
65
+ merchant: string | null;
66
+ }, {
67
+ amount: number;
68
+ category: string | null;
69
+ date: string | null;
70
+ description: string | null;
71
+ detailed_category: string | null;
72
+ id: string | null;
73
+ merchant: string | null;
74
+ }>, "many">;
75
+ };
76
+ export declare const getFinancialStateOutputSchema: {
162
77
  budgets: z.ZodArray<z.ZodObject<{
163
- name: z.ZodString;
164
78
  amount: z.ZodNumber;
165
- spent: z.ZodNumber;
166
- remaining: z.ZodNumber;
79
+ name: z.ZodString;
167
80
  percent_used: z.ZodNumber;
168
81
  period: z.ZodString;
82
+ remaining: z.ZodNumber;
83
+ spent: z.ZodNumber;
169
84
  status: z.ZodNullable<z.ZodString>;
170
- }, z.core.$strict>>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ status: string | null;
87
+ name: string;
88
+ amount: number;
89
+ percent_used: number;
90
+ period: string;
91
+ remaining: number;
92
+ spent: number;
93
+ }, {
94
+ status: string | null;
95
+ name: string;
96
+ amount: number;
97
+ percent_used: number;
98
+ period: string;
99
+ remaining: number;
100
+ spent: number;
101
+ }>, "many">;
102
+ category_spending: z.ZodArray<z.ZodObject<{
103
+ amount: z.ZodNumber;
104
+ category: z.ZodString;
105
+ }, "strict", z.ZodTypeAny, {
106
+ amount: number;
107
+ category: string;
108
+ }, {
109
+ amount: number;
110
+ category: string;
111
+ }>, "many">;
112
+ generated_at: z.ZodString;
171
113
  goals: z.ZodArray<z.ZodObject<{
172
- name: z.ZodString;
173
- target: z.ZodNumber;
114
+ category: z.ZodNullable<z.ZodString>;
174
115
  current: z.ZodNumber;
116
+ monthly_contribution_needed: z.ZodNullable<z.ZodNumber>;
117
+ name: z.ZodString;
175
118
  progress_percent: z.ZodNumber;
176
- target_date: z.ZodNullable<z.ZodString>;
177
119
  status: z.ZodNullable<z.ZodString>;
178
- category: z.ZodNullable<z.ZodString>;
179
- monthly_contribution_needed: z.ZodNullable<z.ZodNumber>;
180
- }, z.core.$strict>>;
120
+ target: z.ZodNumber;
121
+ target_date: z.ZodNullable<z.ZodString>;
122
+ }, "strict", z.ZodTypeAny, {
123
+ status: string | null;
124
+ name: string;
125
+ category: string | null;
126
+ current: number;
127
+ monthly_contribution_needed: number | null;
128
+ progress_percent: number;
129
+ target: number;
130
+ target_date: string | null;
131
+ }, {
132
+ status: string | null;
133
+ name: string;
134
+ category: string | null;
135
+ current: number;
136
+ monthly_contribution_needed: number | null;
137
+ progress_percent: number;
138
+ target: number;
139
+ target_date: string | null;
140
+ }>, "many">;
181
141
  health: z.ZodObject<{
182
- score: z.ZodNullable<z.ZodNumber>;
183
- label: z.ZodNullable<z.ZodString>;
184
142
  data_completeness: z.ZodNullable<z.ZodNumber>;
143
+ label: z.ZodNullable<z.ZodString>;
144
+ message: z.ZodNullable<z.ZodString>;
185
145
  pillars: z.ZodNullable<z.ZodObject<{
186
- spend: z.ZodNullable<z.ZodNumber>;
187
- save: z.ZodNullable<z.ZodNumber>;
188
146
  borrow: z.ZodNullable<z.ZodNumber>;
189
147
  build: z.ZodNullable<z.ZodNumber>;
190
- }, z.core.$strict>>;
191
- message: z.ZodNullable<z.ZodString>;
192
- }, z.core.$strict>;
193
- liabilities: z.ZodArray<z.ZodObject<{
194
- account_id: z.ZodString;
195
- type: z.ZodString;
196
- balance: z.ZodNullable<z.ZodNumber>;
197
- apr_percentage: z.ZodNullable<z.ZodNumber>;
198
- minimum_payment: z.ZodNullable<z.ZodNumber>;
199
- next_payment_due_date: z.ZodNullable<z.ZodString>;
200
- is_overdue: z.ZodNullable<z.ZodBoolean>;
201
- }, z.core.$strict>>;
148
+ save: z.ZodNullable<z.ZodNumber>;
149
+ spend: z.ZodNullable<z.ZodNumber>;
150
+ }, "strict", z.ZodTypeAny, {
151
+ borrow: number | null;
152
+ build: number | null;
153
+ save: number | null;
154
+ spend: number | null;
155
+ }, {
156
+ borrow: number | null;
157
+ build: number | null;
158
+ save: number | null;
159
+ spend: number | null;
160
+ }>>;
161
+ score: z.ZodNullable<z.ZodNumber>;
162
+ }, "strict", z.ZodTypeAny, {
163
+ pillars: {
164
+ borrow: number | null;
165
+ build: number | null;
166
+ save: number | null;
167
+ spend: number | null;
168
+ } | null;
169
+ message: string | null;
170
+ data_completeness: number | null;
171
+ label: string | null;
172
+ score: number | null;
173
+ }, {
174
+ pillars: {
175
+ borrow: number | null;
176
+ build: number | null;
177
+ save: number | null;
178
+ spend: number | null;
179
+ } | null;
180
+ message: string | null;
181
+ data_completeness: number | null;
182
+ label: string | null;
183
+ score: number | null;
184
+ }>;
202
185
  holdings: z.ZodArray<z.ZodObject<{
203
186
  account_id: z.ZodString;
187
+ cost_basis: z.ZodNullable<z.ZodNumber>;
188
+ quantity: z.ZodNumber;
204
189
  security_name: z.ZodNullable<z.ZodString>;
205
190
  symbol: z.ZodNullable<z.ZodString>;
206
191
  type: z.ZodNullable<z.ZodString>;
207
- quantity: z.ZodNumber;
208
192
  value: z.ZodNullable<z.ZodNumber>;
209
- cost_basis: z.ZodNullable<z.ZodNumber>;
210
- }, z.core.$strict>>;
211
- category_spending: z.ZodArray<z.ZodObject<{
212
- category: z.ZodString;
193
+ }, "strict", z.ZodTypeAny, {
194
+ symbol: string | null;
195
+ value: number | null;
196
+ type: string | null;
197
+ account_id: string;
198
+ cost_basis: number | null;
199
+ quantity: number;
200
+ security_name: string | null;
201
+ }, {
202
+ symbol: string | null;
203
+ value: number | null;
204
+ type: string | null;
205
+ account_id: string;
206
+ cost_basis: number | null;
207
+ quantity: number;
208
+ security_name: string | null;
209
+ }>, "many">;
210
+ liabilities: z.ZodArray<z.ZodObject<{
211
+ account_id: z.ZodString;
212
+ apr_percentage: z.ZodNullable<z.ZodNumber>;
213
+ balance: z.ZodNullable<z.ZodNumber>;
214
+ is_overdue: z.ZodNullable<z.ZodBoolean>;
215
+ minimum_payment: z.ZodNullable<z.ZodNumber>;
216
+ next_payment_due_date: z.ZodNullable<z.ZodString>;
217
+ type: z.ZodString;
218
+ }, "strict", z.ZodTypeAny, {
219
+ balance: number | null;
220
+ type: string;
221
+ account_id: string;
222
+ apr_percentage: number | null;
223
+ is_overdue: boolean | null;
224
+ minimum_payment: number | null;
225
+ next_payment_due_date: string | null;
226
+ }, {
227
+ balance: number | null;
228
+ type: string;
229
+ account_id: string;
230
+ apr_percentage: number | null;
231
+ is_overdue: boolean | null;
232
+ minimum_payment: number | null;
233
+ next_payment_due_date: string | null;
234
+ }>, "many">;
235
+ recurring: z.ZodArray<z.ZodObject<{
236
+ active: z.ZodBoolean;
213
237
  amount: z.ZodNumber;
214
- }, z.core.$strict>>;
215
- }, z.core.$strict>;
216
- export declare const verifyKeyOutputSchema: z.ZodObject<{
217
- valid: z.ZodBoolean;
238
+ frequency: z.ZodString;
239
+ merchant: z.ZodString;
240
+ next_date: z.ZodNullable<z.ZodString>;
241
+ type: z.ZodNullable<z.ZodString>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ type: string | null;
244
+ amount: number;
245
+ merchant: string;
246
+ active: boolean;
247
+ frequency: string;
248
+ next_date: string | null;
249
+ }, {
250
+ type: string | null;
251
+ amount: number;
252
+ merchant: string;
253
+ active: boolean;
254
+ frequency: string;
255
+ next_date: string | null;
256
+ }>, "many">;
257
+ snapshots: z.ZodArray<z.ZodObject<{
258
+ date: z.ZodString;
259
+ net_worth: z.ZodNumber;
260
+ total_assets: z.ZodNumber;
261
+ total_liabilities: z.ZodNumber;
262
+ }, "strict", z.ZodTypeAny, {
263
+ date: string;
264
+ net_worth: number;
265
+ total_assets: number;
266
+ total_liabilities: number;
267
+ }, {
268
+ date: string;
269
+ net_worth: number;
270
+ total_assets: number;
271
+ total_liabilities: number;
272
+ }>, "many">;
273
+ };
274
+ export declare const verifyKeyOutputSchema: {
218
275
  status: z.ZodString;
219
- }, z.core.$strict>;
220
- export type Account = z.infer<typeof accountSchema>;
221
- export type FinancialHealth = z.infer<typeof financialHealthSchema>;
222
- export type GetAccountsOutput = z.infer<typeof getAccountsOutputSchema>;
223
- export type GetFinancialStateOutput = z.infer<typeof getFinancialStateOutputSchema>;
224
- export type GetTransactionsInput = z.infer<typeof getTransactionsInputSchema>;
225
- export type GetTransactionsOutput = z.infer<typeof getTransactionsOutputSchema>;
226
- export type VerifyKeyOutput = z.infer<typeof verifyKeyOutputSchema>;
276
+ valid: z.ZodBoolean;
277
+ };