@warmio/contracts 3.0.5 → 3.0.7

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 (50) hide show
  1. package/dist/api/endpoints.d.ts +2 -0
  2. package/dist/api/endpoints.d.ts.map +1 -1
  3. package/dist/api/endpoints.js +2 -0
  4. package/dist/api/endpoints.js.map +1 -1
  5. package/dist/financial-context-artifact-protocol.d.ts +1425 -7
  6. package/dist/financial-context-artifact-protocol.d.ts.map +1 -1
  7. package/dist/financial-context-artifact-protocol.js +20 -4
  8. package/dist/financial-context-artifact-protocol.js.map +1 -1
  9. package/dist/generated/mcp-package-release-metadata.d.ts +1 -1
  10. package/dist/generated/mcp-package-release-metadata.d.ts.map +1 -1
  11. package/dist/generated/mcp-package-release-metadata.js +1 -1
  12. package/dist/generated/mcp-package-release-metadata.js.map +1 -1
  13. package/dist/generated/private-mcp-tool-descriptors.d.ts +157 -3
  14. package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
  15. package/dist/generated/private-mcp-tool-descriptors.js +228 -5
  16. package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
  17. package/dist/generated/protected-crawler-paths.d.ts +1 -1
  18. package/dist/generated/protected-crawler-paths.d.ts.map +1 -1
  19. package/dist/generated/protected-crawler-paths.js +0 -3
  20. package/dist/generated/protected-crawler-paths.js.map +1 -1
  21. package/dist/generated/warm-app-api-manifest.d.ts +162 -8
  22. package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
  23. package/dist/generated/warm-app-api-manifest.js +233 -10
  24. package/dist/generated/warm-app-api-manifest.js.map +1 -1
  25. package/dist/manifest.d.ts +2 -2
  26. package/dist/mcp/hosted-write-tools.d.ts +1745 -0
  27. package/dist/mcp/hosted-write-tools.d.ts.map +1 -0
  28. package/dist/mcp/hosted-write-tools.js +318 -0
  29. package/dist/mcp/hosted-write-tools.js.map +1 -0
  30. package/dist/mcp/index.d.ts +1 -0
  31. package/dist/mcp/index.d.ts.map +1 -1
  32. package/dist/mcp/index.js +1 -0
  33. package/dist/mcp/index.js.map +1 -1
  34. package/dist/mcp/public-output.d.ts +63 -3
  35. package/dist/mcp/public-output.d.ts.map +1 -1
  36. package/dist/mcp/public-output.js +23 -2
  37. package/dist/mcp/public-output.js.map +1 -1
  38. package/dist/mcp/public-tools.d.ts +48 -3
  39. package/dist/mcp/public-tools.d.ts.map +1 -1
  40. package/dist/mcp/public-tools.js +2 -0
  41. package/dist/mcp/public-tools.js.map +1 -1
  42. package/dist/mcp/tools.d.ts +550 -6
  43. package/dist/mcp/tools.d.ts.map +1 -1
  44. package/dist/mcp/tools.js +43 -5
  45. package/dist/mcp/tools.js.map +1 -1
  46. package/dist/schemas/financial-context.d.ts +53 -0
  47. package/dist/schemas/financial-context.d.ts.map +1 -1
  48. package/dist/schemas/financial-context.js +9 -0
  49. package/dist/schemas/financial-context.js.map +1 -1
  50. package/package.json +1 -1
@@ -0,0 +1,1745 @@
1
+ import { z } from 'zod';
2
+ import { type JsonSchema7Type } from 'zod-to-json-schema';
3
+ export declare const HOSTED_MCP_WRITE_PERMISSION = "financial_records:write";
4
+ export type HostedMcpWritePermission = typeof HOSTED_MCP_WRITE_PERMISSION;
5
+ export declare const HOSTED_MCP_WRITE_OPERATION_IDS: readonly ['transactions.update', 'tag_rules.create'];
6
+ export type HostedMcpWriteOperationId = (typeof HOSTED_MCP_WRITE_OPERATION_IDS)[number];
7
+ export declare const HOSTED_MCP_PRIMARY_CATEGORIES: readonly ['INCOME', 'TRANSFER_IN', 'TRANSFER_OUT', 'LOAN_PAYMENTS', 'BANK_FEES', 'ENTERTAINMENT', 'FOOD_AND_DRINK', 'GENERAL_MERCHANDISE', 'HOME_IMPROVEMENT', 'MEDICAL', 'PERSONAL_CARE', 'GENERAL_SERVICES', 'GOVERNMENT_AND_NON_PROFIT', 'TRANSPORTATION', 'TRAVEL', 'RENT_AND_UTILITIES'];
8
+ export declare const HOSTED_MCP_FIND_TRANSACTIONS_PAGE_SIZE = 50;
9
+ export declare const HOSTED_MCP_MAX_TRANSACTIONS_PER_CHANGE = 50;
10
+ export declare const HOSTED_MCP_MAX_TAGS_PER_CHANGE = 10;
11
+ export declare const hostedTransactionsUpdateInputSchema: z.ZodEffects<z.ZodObject<{
12
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
13
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
14
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
16
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
17
+ name: z.ZodOptional<z.ZodString>;
18
+ }, "strict", z.ZodTypeAny, {
19
+ transaction_ids: string[];
20
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
21
+ detailed_category?: string | null | undefined;
22
+ add_tags?: string[] | undefined;
23
+ remove_tags?: string[] | undefined;
24
+ name?: string | undefined;
25
+ }, {
26
+ transaction_ids: string[];
27
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
28
+ detailed_category?: string | null | undefined;
29
+ add_tags?: string[] | undefined;
30
+ remove_tags?: string[] | undefined;
31
+ name?: string | undefined;
32
+ }>, {
33
+ transaction_ids: string[];
34
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
35
+ detailed_category?: string | null | undefined;
36
+ add_tags?: string[] | undefined;
37
+ remove_tags?: string[] | undefined;
38
+ name?: string | undefined;
39
+ }, {
40
+ transaction_ids: string[];
41
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
42
+ detailed_category?: string | null | undefined;
43
+ add_tags?: string[] | undefined;
44
+ remove_tags?: string[] | undefined;
45
+ name?: string | undefined;
46
+ }>;
47
+ export declare const hostedTagRuleCreateInputSchema: z.ZodObject<{
48
+ merchant_name: z.ZodString;
49
+ tag_name: z.ZodString;
50
+ direction: z.ZodEnum<["income", "expense"]>;
51
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ merchant_name: string;
54
+ tag_name: string;
55
+ direction: "expense" | "income";
56
+ case_insensitive?: boolean | undefined;
57
+ }, {
58
+ merchant_name: string;
59
+ tag_name: string;
60
+ direction: "expense" | "income";
61
+ case_insensitive?: boolean | undefined;
62
+ }>;
63
+ export type HostedTransactionsUpdateInput = z.infer<typeof hostedTransactionsUpdateInputSchema>;
64
+ export type HostedTagRuleCreateInput = z.infer<typeof hostedTagRuleCreateInputSchema>;
65
+ export declare const hostedOperationInputSchemas: {
66
+ readonly 'transactions.update': z.ZodEffects<z.ZodObject<{
67
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
68
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
69
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
71
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
72
+ name: z.ZodOptional<z.ZodString>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ transaction_ids: string[];
75
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
76
+ detailed_category?: string | null | undefined;
77
+ add_tags?: string[] | undefined;
78
+ remove_tags?: string[] | undefined;
79
+ name?: string | undefined;
80
+ }, {
81
+ transaction_ids: string[];
82
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
83
+ detailed_category?: string | null | undefined;
84
+ add_tags?: string[] | undefined;
85
+ remove_tags?: string[] | undefined;
86
+ name?: string | undefined;
87
+ }>, {
88
+ transaction_ids: string[];
89
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
90
+ detailed_category?: string | null | undefined;
91
+ add_tags?: string[] | undefined;
92
+ remove_tags?: string[] | undefined;
93
+ name?: string | undefined;
94
+ }, {
95
+ transaction_ids: string[];
96
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
97
+ detailed_category?: string | null | undefined;
98
+ add_tags?: string[] | undefined;
99
+ remove_tags?: string[] | undefined;
100
+ name?: string | undefined;
101
+ }>;
102
+ readonly 'tag_rules.create': z.ZodObject<{
103
+ merchant_name: z.ZodString;
104
+ tag_name: z.ZodString;
105
+ direction: z.ZodEnum<["income", "expense"]>;
106
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
107
+ }, "strict", z.ZodTypeAny, {
108
+ merchant_name: string;
109
+ tag_name: string;
110
+ direction: "expense" | "income";
111
+ case_insensitive?: boolean | undefined;
112
+ }, {
113
+ merchant_name: string;
114
+ tag_name: string;
115
+ direction: "expense" | "income";
116
+ case_insensitive?: boolean | undefined;
117
+ }>;
118
+ };
119
+ export type HostedOperationRequest = {
120
+ operation_id: 'transactions.update';
121
+ input: HostedTransactionsUpdateInput;
122
+ } | {
123
+ operation_id: 'tag_rules.create';
124
+ input: HostedTagRuleCreateInput;
125
+ };
126
+ export declare function parseHostedOperationRequest(value: {
127
+ operation_id: string;
128
+ input: unknown;
129
+ }): HostedOperationRequest | null;
130
+ export declare const hostedTransactionChangePreviewSchema: z.ZodObject<{
131
+ transaction_id: z.ZodString;
132
+ date: z.ZodString;
133
+ amount: z.ZodNumber;
134
+ currency: z.ZodString;
135
+ before: z.ZodObject<{
136
+ category: z.ZodNullable<z.ZodString>;
137
+ detailed_category: z.ZodNullable<z.ZodString>;
138
+ tags: z.ZodArray<z.ZodString, "many">;
139
+ name: z.ZodString;
140
+ }, "strict", z.ZodTypeAny, {
141
+ category: string | null;
142
+ detailed_category: string | null;
143
+ tags: string[];
144
+ name: string;
145
+ }, {
146
+ category: string | null;
147
+ detailed_category: string | null;
148
+ tags: string[];
149
+ name: string;
150
+ }>;
151
+ after: z.ZodObject<{
152
+ category: z.ZodNullable<z.ZodString>;
153
+ detailed_category: z.ZodNullable<z.ZodString>;
154
+ tags: z.ZodArray<z.ZodString, "many">;
155
+ name: z.ZodString;
156
+ }, "strict", z.ZodTypeAny, {
157
+ category: string | null;
158
+ detailed_category: string | null;
159
+ tags: string[];
160
+ name: string;
161
+ }, {
162
+ category: string | null;
163
+ detailed_category: string | null;
164
+ tags: string[];
165
+ name: string;
166
+ }>;
167
+ }, "strict", z.ZodTypeAny, {
168
+ transaction_id: string;
169
+ date: string;
170
+ amount: number;
171
+ currency: string;
172
+ before: {
173
+ category: string | null;
174
+ detailed_category: string | null;
175
+ tags: string[];
176
+ name: string;
177
+ };
178
+ after: {
179
+ category: string | null;
180
+ detailed_category: string | null;
181
+ tags: string[];
182
+ name: string;
183
+ };
184
+ }, {
185
+ transaction_id: string;
186
+ date: string;
187
+ amount: number;
188
+ currency: string;
189
+ before: {
190
+ category: string | null;
191
+ detailed_category: string | null;
192
+ tags: string[];
193
+ name: string;
194
+ };
195
+ after: {
196
+ category: string | null;
197
+ detailed_category: string | null;
198
+ tags: string[];
199
+ name: string;
200
+ };
201
+ }>;
202
+ export declare const hostedOperationPreviewSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
203
+ kind: z.ZodLiteral<"transactions.update">;
204
+ changes: z.ZodArray<z.ZodObject<{
205
+ transaction_id: z.ZodString;
206
+ date: z.ZodString;
207
+ amount: z.ZodNumber;
208
+ currency: z.ZodString;
209
+ before: z.ZodObject<{
210
+ category: z.ZodNullable<z.ZodString>;
211
+ detailed_category: z.ZodNullable<z.ZodString>;
212
+ tags: z.ZodArray<z.ZodString, "many">;
213
+ name: z.ZodString;
214
+ }, "strict", z.ZodTypeAny, {
215
+ category: string | null;
216
+ detailed_category: string | null;
217
+ tags: string[];
218
+ name: string;
219
+ }, {
220
+ category: string | null;
221
+ detailed_category: string | null;
222
+ tags: string[];
223
+ name: string;
224
+ }>;
225
+ after: z.ZodObject<{
226
+ category: z.ZodNullable<z.ZodString>;
227
+ detailed_category: z.ZodNullable<z.ZodString>;
228
+ tags: z.ZodArray<z.ZodString, "many">;
229
+ name: z.ZodString;
230
+ }, "strict", z.ZodTypeAny, {
231
+ category: string | null;
232
+ detailed_category: string | null;
233
+ tags: string[];
234
+ name: string;
235
+ }, {
236
+ category: string | null;
237
+ detailed_category: string | null;
238
+ tags: string[];
239
+ name: string;
240
+ }>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ transaction_id: string;
243
+ date: string;
244
+ amount: number;
245
+ currency: string;
246
+ before: {
247
+ category: string | null;
248
+ detailed_category: string | null;
249
+ tags: string[];
250
+ name: string;
251
+ };
252
+ after: {
253
+ category: string | null;
254
+ detailed_category: string | null;
255
+ tags: string[];
256
+ name: string;
257
+ };
258
+ }, {
259
+ transaction_id: string;
260
+ date: string;
261
+ amount: number;
262
+ currency: string;
263
+ before: {
264
+ category: string | null;
265
+ detailed_category: string | null;
266
+ tags: string[];
267
+ name: string;
268
+ };
269
+ after: {
270
+ category: string | null;
271
+ detailed_category: string | null;
272
+ tags: string[];
273
+ name: string;
274
+ };
275
+ }>, "many">;
276
+ }, "strict", z.ZodTypeAny, {
277
+ kind: "transactions.update";
278
+ changes: {
279
+ transaction_id: string;
280
+ date: string;
281
+ amount: number;
282
+ currency: string;
283
+ before: {
284
+ category: string | null;
285
+ detailed_category: string | null;
286
+ tags: string[];
287
+ name: string;
288
+ };
289
+ after: {
290
+ category: string | null;
291
+ detailed_category: string | null;
292
+ tags: string[];
293
+ name: string;
294
+ };
295
+ }[];
296
+ }, {
297
+ kind: "transactions.update";
298
+ changes: {
299
+ transaction_id: string;
300
+ date: string;
301
+ amount: number;
302
+ currency: string;
303
+ before: {
304
+ category: string | null;
305
+ detailed_category: string | null;
306
+ tags: string[];
307
+ name: string;
308
+ };
309
+ after: {
310
+ category: string | null;
311
+ detailed_category: string | null;
312
+ tags: string[];
313
+ name: string;
314
+ };
315
+ }[];
316
+ }>, z.ZodObject<{
317
+ kind: z.ZodLiteral<"tag_rules.create">;
318
+ merchant_name: z.ZodString;
319
+ tag_name: z.ZodString;
320
+ direction: z.ZodEnum<["income", "expense"]>;
321
+ case_insensitive: z.ZodBoolean;
322
+ applies_to: z.ZodLiteral<"future_transactions_only">;
323
+ }, "strict", z.ZodTypeAny, {
324
+ kind: "tag_rules.create";
325
+ merchant_name: string;
326
+ tag_name: string;
327
+ direction: "expense" | "income";
328
+ case_insensitive: boolean;
329
+ applies_to: "future_transactions_only";
330
+ }, {
331
+ kind: "tag_rules.create";
332
+ merchant_name: string;
333
+ tag_name: string;
334
+ direction: "expense" | "income";
335
+ case_insensitive: boolean;
336
+ applies_to: "future_transactions_only";
337
+ }>]>;
338
+ export type HostedOperationPreview = z.infer<typeof hostedOperationPreviewSchema>;
339
+ export declare const HOSTED_OPERATION_APPROVAL_STATUSES: readonly ['pending', 'approved', 'rejected', 'consumed', 'expired'];
340
+ export declare const HOSTED_OPERATION_EXECUTION_STATUSES: readonly ['not_started', 'started', 'succeeded', 'failed', 'uncertain'];
341
+ export type HostedOperationExecutionStatus = (typeof HOSTED_OPERATION_EXECUTION_STATUSES)[number];
342
+ export declare const hostedOperationResultSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
343
+ kind: z.ZodLiteral<"transactions.update">;
344
+ updated_transaction_ids: z.ZodArray<z.ZodString, "many">;
345
+ failed_transaction_ids: z.ZodArray<z.ZodString, "many">;
346
+ }, "strict", z.ZodTypeAny, {
347
+ kind: "transactions.update";
348
+ updated_transaction_ids: string[];
349
+ failed_transaction_ids: string[];
350
+ }, {
351
+ kind: "transactions.update";
352
+ updated_transaction_ids: string[];
353
+ failed_transaction_ids: string[];
354
+ }>, z.ZodObject<{
355
+ kind: z.ZodLiteral<"tag_rules.create">;
356
+ created: z.ZodBoolean;
357
+ }, "strict", z.ZodTypeAny, {
358
+ kind: "tag_rules.create";
359
+ created: boolean;
360
+ }, {
361
+ kind: "tag_rules.create";
362
+ created: boolean;
363
+ }>]>;
364
+ export type HostedOperationResult = z.infer<typeof hostedOperationResultSchema>;
365
+ export declare const findTransactionsMcpInputShape: {
366
+ month: z.ZodOptional<z.ZodString>;
367
+ query: z.ZodOptional<z.ZodString>;
368
+ category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
369
+ tag: z.ZodOptional<z.ZodString>;
370
+ page: z.ZodOptional<z.ZodNumber>;
371
+ };
372
+ export declare const describeHostedOperationMcpInputShape: {
373
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
374
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
375
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
376
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
377
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
379
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
380
+ name: z.ZodOptional<z.ZodString>;
381
+ }, "strict", z.ZodTypeAny, {
382
+ transaction_ids: string[];
383
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
384
+ detailed_category?: string | null | undefined;
385
+ add_tags?: string[] | undefined;
386
+ remove_tags?: string[] | undefined;
387
+ name?: string | undefined;
388
+ }, {
389
+ transaction_ids: string[];
390
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
391
+ detailed_category?: string | null | undefined;
392
+ add_tags?: string[] | undefined;
393
+ remove_tags?: string[] | undefined;
394
+ name?: string | undefined;
395
+ }>, {
396
+ transaction_ids: string[];
397
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
398
+ detailed_category?: string | null | undefined;
399
+ add_tags?: string[] | undefined;
400
+ remove_tags?: string[] | undefined;
401
+ name?: string | undefined;
402
+ }, {
403
+ transaction_ids: string[];
404
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
405
+ detailed_category?: string | null | undefined;
406
+ add_tags?: string[] | undefined;
407
+ remove_tags?: string[] | undefined;
408
+ name?: string | undefined;
409
+ }>, z.ZodObject<{
410
+ merchant_name: z.ZodString;
411
+ tag_name: z.ZodString;
412
+ direction: z.ZodEnum<["income", "expense"]>;
413
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
414
+ }, "strict", z.ZodTypeAny, {
415
+ merchant_name: string;
416
+ tag_name: string;
417
+ direction: "expense" | "income";
418
+ case_insensitive?: boolean | undefined;
419
+ }, {
420
+ merchant_name: string;
421
+ tag_name: string;
422
+ direction: "expense" | "income";
423
+ case_insensitive?: boolean | undefined;
424
+ }>]>;
425
+ };
426
+ export declare const invokeHostedOperationMcpInputShape: {
427
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
428
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
429
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
430
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
431
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
433
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
434
+ name: z.ZodOptional<z.ZodString>;
435
+ }, "strict", z.ZodTypeAny, {
436
+ transaction_ids: string[];
437
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
438
+ detailed_category?: string | null | undefined;
439
+ add_tags?: string[] | undefined;
440
+ remove_tags?: string[] | undefined;
441
+ name?: string | undefined;
442
+ }, {
443
+ transaction_ids: string[];
444
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
445
+ detailed_category?: string | null | undefined;
446
+ add_tags?: string[] | undefined;
447
+ remove_tags?: string[] | undefined;
448
+ name?: string | undefined;
449
+ }>, {
450
+ transaction_ids: string[];
451
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
452
+ detailed_category?: string | null | undefined;
453
+ add_tags?: string[] | undefined;
454
+ remove_tags?: string[] | undefined;
455
+ name?: string | undefined;
456
+ }, {
457
+ transaction_ids: string[];
458
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
459
+ detailed_category?: string | null | undefined;
460
+ add_tags?: string[] | undefined;
461
+ remove_tags?: string[] | undefined;
462
+ name?: string | undefined;
463
+ }>, z.ZodObject<{
464
+ merchant_name: z.ZodString;
465
+ tag_name: z.ZodString;
466
+ direction: z.ZodEnum<["income", "expense"]>;
467
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
468
+ }, "strict", z.ZodTypeAny, {
469
+ merchant_name: string;
470
+ tag_name: string;
471
+ direction: "expense" | "income";
472
+ case_insensitive?: boolean | undefined;
473
+ }, {
474
+ merchant_name: string;
475
+ tag_name: string;
476
+ direction: "expense" | "income";
477
+ case_insensitive?: boolean | undefined;
478
+ }>]>;
479
+ approval_id: z.ZodString;
480
+ };
481
+ export declare const getOperationStatusMcpInputShape: {
482
+ approval_id: z.ZodString;
483
+ };
484
+ export declare const findTransactionsMcpInputSchema: z.ZodObject<{
485
+ month: z.ZodOptional<z.ZodString>;
486
+ query: z.ZodOptional<z.ZodString>;
487
+ category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
488
+ tag: z.ZodOptional<z.ZodString>;
489
+ page: z.ZodOptional<z.ZodNumber>;
490
+ }, "strict", z.ZodTypeAny, {
491
+ month?: string | undefined;
492
+ query?: string | undefined;
493
+ category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
494
+ tag?: string | undefined;
495
+ page?: number | undefined;
496
+ }, {
497
+ month?: string | undefined;
498
+ query?: string | undefined;
499
+ category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
500
+ tag?: string | undefined;
501
+ page?: number | undefined;
502
+ }>;
503
+ export declare const describeHostedOperationMcpInputSchema: z.ZodObject<{
504
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
505
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
506
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
507
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
508
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
510
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
511
+ name: z.ZodOptional<z.ZodString>;
512
+ }, "strict", z.ZodTypeAny, {
513
+ transaction_ids: string[];
514
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
515
+ detailed_category?: string | null | undefined;
516
+ add_tags?: string[] | undefined;
517
+ remove_tags?: string[] | undefined;
518
+ name?: string | undefined;
519
+ }, {
520
+ transaction_ids: string[];
521
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
522
+ detailed_category?: string | null | undefined;
523
+ add_tags?: string[] | undefined;
524
+ remove_tags?: string[] | undefined;
525
+ name?: string | undefined;
526
+ }>, {
527
+ transaction_ids: string[];
528
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
529
+ detailed_category?: string | null | undefined;
530
+ add_tags?: string[] | undefined;
531
+ remove_tags?: string[] | undefined;
532
+ name?: string | undefined;
533
+ }, {
534
+ transaction_ids: string[];
535
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
536
+ detailed_category?: string | null | undefined;
537
+ add_tags?: string[] | undefined;
538
+ remove_tags?: string[] | undefined;
539
+ name?: string | undefined;
540
+ }>, z.ZodObject<{
541
+ merchant_name: z.ZodString;
542
+ tag_name: z.ZodString;
543
+ direction: z.ZodEnum<["income", "expense"]>;
544
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
545
+ }, "strict", z.ZodTypeAny, {
546
+ merchant_name: string;
547
+ tag_name: string;
548
+ direction: "expense" | "income";
549
+ case_insensitive?: boolean | undefined;
550
+ }, {
551
+ merchant_name: string;
552
+ tag_name: string;
553
+ direction: "expense" | "income";
554
+ case_insensitive?: boolean | undefined;
555
+ }>]>;
556
+ }, "strict", z.ZodTypeAny, {
557
+ operation_id: "tag_rules.create" | "transactions.update";
558
+ input: {
559
+ transaction_ids: string[];
560
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
561
+ detailed_category?: string | null | undefined;
562
+ add_tags?: string[] | undefined;
563
+ remove_tags?: string[] | undefined;
564
+ name?: string | undefined;
565
+ } | {
566
+ merchant_name: string;
567
+ tag_name: string;
568
+ direction: "expense" | "income";
569
+ case_insensitive?: boolean | undefined;
570
+ };
571
+ }, {
572
+ operation_id: "tag_rules.create" | "transactions.update";
573
+ input: {
574
+ transaction_ids: string[];
575
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
576
+ detailed_category?: string | null | undefined;
577
+ add_tags?: string[] | undefined;
578
+ remove_tags?: string[] | undefined;
579
+ name?: string | undefined;
580
+ } | {
581
+ merchant_name: string;
582
+ tag_name: string;
583
+ direction: "expense" | "income";
584
+ case_insensitive?: boolean | undefined;
585
+ };
586
+ }>;
587
+ export declare const invokeHostedOperationMcpInputSchema: z.ZodObject<{
588
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
589
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
590
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
591
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
592
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
594
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
595
+ name: z.ZodOptional<z.ZodString>;
596
+ }, "strict", z.ZodTypeAny, {
597
+ transaction_ids: string[];
598
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
599
+ detailed_category?: string | null | undefined;
600
+ add_tags?: string[] | undefined;
601
+ remove_tags?: string[] | undefined;
602
+ name?: string | undefined;
603
+ }, {
604
+ transaction_ids: string[];
605
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
606
+ detailed_category?: string | null | undefined;
607
+ add_tags?: string[] | undefined;
608
+ remove_tags?: string[] | undefined;
609
+ name?: string | undefined;
610
+ }>, {
611
+ transaction_ids: string[];
612
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
613
+ detailed_category?: string | null | undefined;
614
+ add_tags?: string[] | undefined;
615
+ remove_tags?: string[] | undefined;
616
+ name?: string | undefined;
617
+ }, {
618
+ transaction_ids: string[];
619
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
620
+ detailed_category?: string | null | undefined;
621
+ add_tags?: string[] | undefined;
622
+ remove_tags?: string[] | undefined;
623
+ name?: string | undefined;
624
+ }>, z.ZodObject<{
625
+ merchant_name: z.ZodString;
626
+ tag_name: z.ZodString;
627
+ direction: z.ZodEnum<["income", "expense"]>;
628
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
629
+ }, "strict", z.ZodTypeAny, {
630
+ merchant_name: string;
631
+ tag_name: string;
632
+ direction: "expense" | "income";
633
+ case_insensitive?: boolean | undefined;
634
+ }, {
635
+ merchant_name: string;
636
+ tag_name: string;
637
+ direction: "expense" | "income";
638
+ case_insensitive?: boolean | undefined;
639
+ }>]>;
640
+ approval_id: z.ZodString;
641
+ }, "strict", z.ZodTypeAny, {
642
+ operation_id: "tag_rules.create" | "transactions.update";
643
+ input: {
644
+ transaction_ids: string[];
645
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
646
+ detailed_category?: string | null | undefined;
647
+ add_tags?: string[] | undefined;
648
+ remove_tags?: string[] | undefined;
649
+ name?: string | undefined;
650
+ } | {
651
+ merchant_name: string;
652
+ tag_name: string;
653
+ direction: "expense" | "income";
654
+ case_insensitive?: boolean | undefined;
655
+ };
656
+ approval_id: string;
657
+ }, {
658
+ operation_id: "tag_rules.create" | "transactions.update";
659
+ input: {
660
+ transaction_ids: string[];
661
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
662
+ detailed_category?: string | null | undefined;
663
+ add_tags?: string[] | undefined;
664
+ remove_tags?: string[] | undefined;
665
+ name?: string | undefined;
666
+ } | {
667
+ merchant_name: string;
668
+ tag_name: string;
669
+ direction: "expense" | "income";
670
+ case_insensitive?: boolean | undefined;
671
+ };
672
+ approval_id: string;
673
+ }>;
674
+ export declare const getOperationStatusMcpInputSchema: z.ZodObject<{
675
+ approval_id: z.ZodString;
676
+ }, "strict", z.ZodTypeAny, {
677
+ approval_id: string;
678
+ }, {
679
+ approval_id: string;
680
+ }>;
681
+ export type FindTransactionsMcpInput = z.infer<typeof findTransactionsMcpInputSchema>;
682
+ export type DescribeHostedOperationMcpInput = z.infer<typeof describeHostedOperationMcpInputSchema>;
683
+ export type InvokeHostedOperationMcpInput = z.infer<typeof invokeHostedOperationMcpInputSchema>;
684
+ export type GetOperationStatusMcpInput = z.infer<typeof getOperationStatusMcpInputSchema>;
685
+ export declare const hostedFindTransactionsItemSchema: z.ZodObject<{
686
+ id: z.ZodString;
687
+ date: z.ZodString;
688
+ amount: z.ZodNumber;
689
+ currency: z.ZodString;
690
+ name: z.ZodString;
691
+ category: z.ZodNullable<z.ZodString>;
692
+ detailed_category: z.ZodNullable<z.ZodString>;
693
+ tags: z.ZodArray<z.ZodString, "many">;
694
+ pending: z.ZodBoolean;
695
+ name_editable: z.ZodBoolean;
696
+ }, "strict", z.ZodTypeAny, {
697
+ id: string;
698
+ date: string;
699
+ amount: number;
700
+ currency: string;
701
+ name: string;
702
+ category: string | null;
703
+ detailed_category: string | null;
704
+ tags: string[];
705
+ pending: boolean;
706
+ name_editable: boolean;
707
+ }, {
708
+ id: string;
709
+ date: string;
710
+ amount: number;
711
+ currency: string;
712
+ name: string;
713
+ category: string | null;
714
+ detailed_category: string | null;
715
+ tags: string[];
716
+ pending: boolean;
717
+ name_editable: boolean;
718
+ }>;
719
+ export declare const findTransactionsMcpOutputSchema: z.ZodObject<{
720
+ items: z.ZodArray<z.ZodObject<{
721
+ id: z.ZodString;
722
+ date: z.ZodString;
723
+ amount: z.ZodNumber;
724
+ currency: z.ZodString;
725
+ name: z.ZodString;
726
+ category: z.ZodNullable<z.ZodString>;
727
+ detailed_category: z.ZodNullable<z.ZodString>;
728
+ tags: z.ZodArray<z.ZodString, "many">;
729
+ pending: z.ZodBoolean;
730
+ name_editable: z.ZodBoolean;
731
+ }, "strict", z.ZodTypeAny, {
732
+ id: string;
733
+ date: string;
734
+ amount: number;
735
+ currency: string;
736
+ name: string;
737
+ category: string | null;
738
+ detailed_category: string | null;
739
+ tags: string[];
740
+ pending: boolean;
741
+ name_editable: boolean;
742
+ }, {
743
+ id: string;
744
+ date: string;
745
+ amount: number;
746
+ currency: string;
747
+ name: string;
748
+ category: string | null;
749
+ detailed_category: string | null;
750
+ tags: string[];
751
+ pending: boolean;
752
+ name_editable: boolean;
753
+ }>, "many">;
754
+ page: z.ZodNumber;
755
+ page_size: z.ZodLiteral<50>;
756
+ has_more: z.ZodBoolean;
757
+ }, "strict", z.ZodTypeAny, {
758
+ items: {
759
+ id: string;
760
+ date: string;
761
+ amount: number;
762
+ currency: string;
763
+ name: string;
764
+ category: string | null;
765
+ detailed_category: string | null;
766
+ tags: string[];
767
+ pending: boolean;
768
+ name_editable: boolean;
769
+ }[];
770
+ page: number;
771
+ page_size: 50;
772
+ has_more: boolean;
773
+ }, {
774
+ items: {
775
+ id: string;
776
+ date: string;
777
+ amount: number;
778
+ currency: string;
779
+ name: string;
780
+ category: string | null;
781
+ detailed_category: string | null;
782
+ tags: string[];
783
+ pending: boolean;
784
+ name_editable: boolean;
785
+ }[];
786
+ page: number;
787
+ page_size: 50;
788
+ has_more: boolean;
789
+ }>;
790
+ export declare const describeHostedOperationMcpOutputSchema: z.ZodObject<{
791
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
792
+ approval: z.ZodObject<{
793
+ id: z.ZodString;
794
+ status: z.ZodLiteral<"pending">;
795
+ approval_url: z.ZodString;
796
+ expires_at: z.ZodString;
797
+ }, "strict", z.ZodTypeAny, {
798
+ id: string;
799
+ status: "pending";
800
+ approval_url: string;
801
+ expires_at: string;
802
+ }, {
803
+ id: string;
804
+ status: "pending";
805
+ approval_url: string;
806
+ expires_at: string;
807
+ }>;
808
+ preview: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
809
+ kind: z.ZodLiteral<"transactions.update">;
810
+ changes: z.ZodArray<z.ZodObject<{
811
+ transaction_id: z.ZodString;
812
+ date: z.ZodString;
813
+ amount: z.ZodNumber;
814
+ currency: z.ZodString;
815
+ before: z.ZodObject<{
816
+ category: z.ZodNullable<z.ZodString>;
817
+ detailed_category: z.ZodNullable<z.ZodString>;
818
+ tags: z.ZodArray<z.ZodString, "many">;
819
+ name: z.ZodString;
820
+ }, "strict", z.ZodTypeAny, {
821
+ category: string | null;
822
+ detailed_category: string | null;
823
+ tags: string[];
824
+ name: string;
825
+ }, {
826
+ category: string | null;
827
+ detailed_category: string | null;
828
+ tags: string[];
829
+ name: string;
830
+ }>;
831
+ after: z.ZodObject<{
832
+ category: z.ZodNullable<z.ZodString>;
833
+ detailed_category: z.ZodNullable<z.ZodString>;
834
+ tags: z.ZodArray<z.ZodString, "many">;
835
+ name: z.ZodString;
836
+ }, "strict", z.ZodTypeAny, {
837
+ category: string | null;
838
+ detailed_category: string | null;
839
+ tags: string[];
840
+ name: string;
841
+ }, {
842
+ category: string | null;
843
+ detailed_category: string | null;
844
+ tags: string[];
845
+ name: string;
846
+ }>;
847
+ }, "strict", z.ZodTypeAny, {
848
+ transaction_id: string;
849
+ date: string;
850
+ amount: number;
851
+ currency: string;
852
+ before: {
853
+ category: string | null;
854
+ detailed_category: string | null;
855
+ tags: string[];
856
+ name: string;
857
+ };
858
+ after: {
859
+ category: string | null;
860
+ detailed_category: string | null;
861
+ tags: string[];
862
+ name: string;
863
+ };
864
+ }, {
865
+ transaction_id: string;
866
+ date: string;
867
+ amount: number;
868
+ currency: string;
869
+ before: {
870
+ category: string | null;
871
+ detailed_category: string | null;
872
+ tags: string[];
873
+ name: string;
874
+ };
875
+ after: {
876
+ category: string | null;
877
+ detailed_category: string | null;
878
+ tags: string[];
879
+ name: string;
880
+ };
881
+ }>, "many">;
882
+ }, "strict", z.ZodTypeAny, {
883
+ kind: "transactions.update";
884
+ changes: {
885
+ transaction_id: string;
886
+ date: string;
887
+ amount: number;
888
+ currency: string;
889
+ before: {
890
+ category: string | null;
891
+ detailed_category: string | null;
892
+ tags: string[];
893
+ name: string;
894
+ };
895
+ after: {
896
+ category: string | null;
897
+ detailed_category: string | null;
898
+ tags: string[];
899
+ name: string;
900
+ };
901
+ }[];
902
+ }, {
903
+ kind: "transactions.update";
904
+ changes: {
905
+ transaction_id: string;
906
+ date: string;
907
+ amount: number;
908
+ currency: string;
909
+ before: {
910
+ category: string | null;
911
+ detailed_category: string | null;
912
+ tags: string[];
913
+ name: string;
914
+ };
915
+ after: {
916
+ category: string | null;
917
+ detailed_category: string | null;
918
+ tags: string[];
919
+ name: string;
920
+ };
921
+ }[];
922
+ }>, z.ZodObject<{
923
+ kind: z.ZodLiteral<"tag_rules.create">;
924
+ merchant_name: z.ZodString;
925
+ tag_name: z.ZodString;
926
+ direction: z.ZodEnum<["income", "expense"]>;
927
+ case_insensitive: z.ZodBoolean;
928
+ applies_to: z.ZodLiteral<"future_transactions_only">;
929
+ }, "strict", z.ZodTypeAny, {
930
+ kind: "tag_rules.create";
931
+ merchant_name: string;
932
+ tag_name: string;
933
+ direction: "expense" | "income";
934
+ case_insensitive: boolean;
935
+ applies_to: "future_transactions_only";
936
+ }, {
937
+ kind: "tag_rules.create";
938
+ merchant_name: string;
939
+ tag_name: string;
940
+ direction: "expense" | "income";
941
+ case_insensitive: boolean;
942
+ applies_to: "future_transactions_only";
943
+ }>]>;
944
+ }, "strict", z.ZodTypeAny, {
945
+ operation_id: "tag_rules.create" | "transactions.update";
946
+ approval: {
947
+ id: string;
948
+ status: "pending";
949
+ approval_url: string;
950
+ expires_at: string;
951
+ };
952
+ preview: {
953
+ kind: "transactions.update";
954
+ changes: {
955
+ transaction_id: string;
956
+ date: string;
957
+ amount: number;
958
+ currency: string;
959
+ before: {
960
+ category: string | null;
961
+ detailed_category: string | null;
962
+ tags: string[];
963
+ name: string;
964
+ };
965
+ after: {
966
+ category: string | null;
967
+ detailed_category: string | null;
968
+ tags: string[];
969
+ name: string;
970
+ };
971
+ }[];
972
+ } | {
973
+ kind: "tag_rules.create";
974
+ merchant_name: string;
975
+ tag_name: string;
976
+ direction: "expense" | "income";
977
+ case_insensitive: boolean;
978
+ applies_to: "future_transactions_only";
979
+ };
980
+ }, {
981
+ operation_id: "tag_rules.create" | "transactions.update";
982
+ approval: {
983
+ id: string;
984
+ status: "pending";
985
+ approval_url: string;
986
+ expires_at: string;
987
+ };
988
+ preview: {
989
+ kind: "transactions.update";
990
+ changes: {
991
+ transaction_id: string;
992
+ date: string;
993
+ amount: number;
994
+ currency: string;
995
+ before: {
996
+ category: string | null;
997
+ detailed_category: string | null;
998
+ tags: string[];
999
+ name: string;
1000
+ };
1001
+ after: {
1002
+ category: string | null;
1003
+ detailed_category: string | null;
1004
+ tags: string[];
1005
+ name: string;
1006
+ };
1007
+ }[];
1008
+ } | {
1009
+ kind: "tag_rules.create";
1010
+ merchant_name: string;
1011
+ tag_name: string;
1012
+ direction: "expense" | "income";
1013
+ case_insensitive: boolean;
1014
+ applies_to: "future_transactions_only";
1015
+ };
1016
+ }>;
1017
+ export declare const invokeHostedOperationMcpOutputSchema: z.ZodObject<{
1018
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1019
+ approval_id: z.ZodString;
1020
+ execution_status: z.ZodEnum<["succeeded", "failed", "uncertain"]>;
1021
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1022
+ kind: z.ZodLiteral<"transactions.update">;
1023
+ updated_transaction_ids: z.ZodArray<z.ZodString, "many">;
1024
+ failed_transaction_ids: z.ZodArray<z.ZodString, "many">;
1025
+ }, "strict", z.ZodTypeAny, {
1026
+ kind: "transactions.update";
1027
+ updated_transaction_ids: string[];
1028
+ failed_transaction_ids: string[];
1029
+ }, {
1030
+ kind: "transactions.update";
1031
+ updated_transaction_ids: string[];
1032
+ failed_transaction_ids: string[];
1033
+ }>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"tag_rules.create">;
1035
+ created: z.ZodBoolean;
1036
+ }, "strict", z.ZodTypeAny, {
1037
+ kind: "tag_rules.create";
1038
+ created: boolean;
1039
+ }, {
1040
+ kind: "tag_rules.create";
1041
+ created: boolean;
1042
+ }>]>>;
1043
+ }, "strict", z.ZodTypeAny, {
1044
+ operation_id: "tag_rules.create" | "transactions.update";
1045
+ approval_id: string;
1046
+ execution_status: "failed" | "succeeded" | "uncertain";
1047
+ result: {
1048
+ kind: "transactions.update";
1049
+ updated_transaction_ids: string[];
1050
+ failed_transaction_ids: string[];
1051
+ } | {
1052
+ kind: "tag_rules.create";
1053
+ created: boolean;
1054
+ } | null;
1055
+ }, {
1056
+ operation_id: "tag_rules.create" | "transactions.update";
1057
+ approval_id: string;
1058
+ execution_status: "failed" | "succeeded" | "uncertain";
1059
+ result: {
1060
+ kind: "transactions.update";
1061
+ updated_transaction_ids: string[];
1062
+ failed_transaction_ids: string[];
1063
+ } | {
1064
+ kind: "tag_rules.create";
1065
+ created: boolean;
1066
+ } | null;
1067
+ }>;
1068
+ export declare const getOperationStatusMcpOutputSchema: z.ZodObject<{
1069
+ approval_id: z.ZodString;
1070
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1071
+ approval_status: z.ZodEnum<["pending", "approved", "rejected", "consumed", "expired"]>;
1072
+ execution_status: z.ZodEnum<["not_started", "started", "succeeded", "failed", "uncertain"]>;
1073
+ expires_at: z.ZodString;
1074
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1075
+ kind: z.ZodLiteral<"transactions.update">;
1076
+ updated_transaction_ids: z.ZodArray<z.ZodString, "many">;
1077
+ failed_transaction_ids: z.ZodArray<z.ZodString, "many">;
1078
+ }, "strict", z.ZodTypeAny, {
1079
+ kind: "transactions.update";
1080
+ updated_transaction_ids: string[];
1081
+ failed_transaction_ids: string[];
1082
+ }, {
1083
+ kind: "transactions.update";
1084
+ updated_transaction_ids: string[];
1085
+ failed_transaction_ids: string[];
1086
+ }>, z.ZodObject<{
1087
+ kind: z.ZodLiteral<"tag_rules.create">;
1088
+ created: z.ZodBoolean;
1089
+ }, "strict", z.ZodTypeAny, {
1090
+ kind: "tag_rules.create";
1091
+ created: boolean;
1092
+ }, {
1093
+ kind: "tag_rules.create";
1094
+ created: boolean;
1095
+ }>]>>;
1096
+ }, "strict", z.ZodTypeAny, {
1097
+ approval_id: string;
1098
+ operation_id: "tag_rules.create" | "transactions.update";
1099
+ approval_status: "approved" | "consumed" | "expired" | "pending" | "rejected";
1100
+ execution_status: "failed" | "not_started" | "started" | "succeeded" | "uncertain";
1101
+ expires_at: string;
1102
+ result: {
1103
+ kind: "transactions.update";
1104
+ updated_transaction_ids: string[];
1105
+ failed_transaction_ids: string[];
1106
+ } | {
1107
+ kind: "tag_rules.create";
1108
+ created: boolean;
1109
+ } | null;
1110
+ }, {
1111
+ approval_id: string;
1112
+ operation_id: "tag_rules.create" | "transactions.update";
1113
+ approval_status: "approved" | "consumed" | "expired" | "pending" | "rejected";
1114
+ execution_status: "failed" | "not_started" | "started" | "succeeded" | "uncertain";
1115
+ expires_at: string;
1116
+ result: {
1117
+ kind: "transactions.update";
1118
+ updated_transaction_ids: string[];
1119
+ failed_transaction_ids: string[];
1120
+ } | {
1121
+ kind: "tag_rules.create";
1122
+ created: boolean;
1123
+ } | null;
1124
+ }>;
1125
+ export type FindTransactionsMcpOutput = z.infer<typeof findTransactionsMcpOutputSchema>;
1126
+ export type DescribeHostedOperationMcpOutput = z.infer<typeof describeHostedOperationMcpOutputSchema>;
1127
+ export type InvokeHostedOperationMcpOutput = z.infer<typeof invokeHostedOperationMcpOutputSchema>;
1128
+ export type GetOperationStatusMcpOutput = z.infer<typeof getOperationStatusMcpOutputSchema>;
1129
+ export type HostedWriteMcpToolName = 'find_transactions' | 'describe_operation' | 'invoke_operation' | 'get_operation_status';
1130
+ type JsonSchema7Document = JsonSchema7Type & {
1131
+ $schema?: string | undefined;
1132
+ definitions?: {
1133
+ [key: string]: JsonSchema7Type;
1134
+ } | undefined;
1135
+ };
1136
+ export declare const hostedWriteMcpToolDefinitions: readonly [{
1137
+ readonly name: "find_transactions";
1138
+ readonly title: "Find transactions";
1139
+ readonly description: "Find transactions to change. Returns pages of up to 50 items with id, date, amount, currency, name, category, detailed category, tags, pending status, and whether the name can be edited. Amounts are negative for money out and positive for money in. Account details and notes are omitted. Use the ids with describe_operation.";
1140
+ readonly annotations: {
1141
+ readonly readOnlyHint: true;
1142
+ readonly destructiveHint: false;
1143
+ readonly openWorldHint: false;
1144
+ };
1145
+ readonly inputShape: {
1146
+ month: z.ZodOptional<z.ZodString>;
1147
+ query: z.ZodOptional<z.ZodString>;
1148
+ category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
1149
+ tag: z.ZodOptional<z.ZodString>;
1150
+ page: z.ZodOptional<z.ZodNumber>;
1151
+ };
1152
+ readonly outputSchema: z.ZodObject<{
1153
+ items: z.ZodArray<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ date: z.ZodString;
1156
+ amount: z.ZodNumber;
1157
+ currency: z.ZodString;
1158
+ name: z.ZodString;
1159
+ category: z.ZodNullable<z.ZodString>;
1160
+ detailed_category: z.ZodNullable<z.ZodString>;
1161
+ tags: z.ZodArray<z.ZodString, "many">;
1162
+ pending: z.ZodBoolean;
1163
+ name_editable: z.ZodBoolean;
1164
+ }, "strict", z.ZodTypeAny, {
1165
+ id: string;
1166
+ date: string;
1167
+ amount: number;
1168
+ currency: string;
1169
+ name: string;
1170
+ category: string | null;
1171
+ detailed_category: string | null;
1172
+ tags: string[];
1173
+ pending: boolean;
1174
+ name_editable: boolean;
1175
+ }, {
1176
+ id: string;
1177
+ date: string;
1178
+ amount: number;
1179
+ currency: string;
1180
+ name: string;
1181
+ category: string | null;
1182
+ detailed_category: string | null;
1183
+ tags: string[];
1184
+ pending: boolean;
1185
+ name_editable: boolean;
1186
+ }>, "many">;
1187
+ page: z.ZodNumber;
1188
+ page_size: z.ZodLiteral<50>;
1189
+ has_more: z.ZodBoolean;
1190
+ }, "strict", z.ZodTypeAny, {
1191
+ items: {
1192
+ id: string;
1193
+ date: string;
1194
+ amount: number;
1195
+ currency: string;
1196
+ name: string;
1197
+ category: string | null;
1198
+ detailed_category: string | null;
1199
+ tags: string[];
1200
+ pending: boolean;
1201
+ name_editable: boolean;
1202
+ }[];
1203
+ page: number;
1204
+ page_size: 50;
1205
+ has_more: boolean;
1206
+ }, {
1207
+ items: {
1208
+ id: string;
1209
+ date: string;
1210
+ amount: number;
1211
+ currency: string;
1212
+ name: string;
1213
+ category: string | null;
1214
+ detailed_category: string | null;
1215
+ tags: string[];
1216
+ pending: boolean;
1217
+ name_editable: boolean;
1218
+ }[];
1219
+ page: number;
1220
+ page_size: 50;
1221
+ has_more: boolean;
1222
+ }>;
1223
+ }, {
1224
+ readonly name: "describe_operation";
1225
+ readonly title: "Prepare a change for approval";
1226
+ readonly description: "Prepare one change and get a preview plus an approval id. Supported operations: transactions.update (set category or detailed category, add or remove tags, or rename one manually added transaction; up to 50 transactions with the same change) and tag_rules.create (tag future transactions from a merchant; past transactions are not changed). Nothing changes until the user approves it in Warm at approval_url. Show the user the preview and the link.";
1227
+ readonly annotations: {
1228
+ readonly readOnlyHint: false;
1229
+ readonly destructiveHint: false;
1230
+ readonly openWorldHint: false;
1231
+ };
1232
+ readonly inputShape: {
1233
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1234
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1235
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1236
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
1237
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1238
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1239
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1240
+ name: z.ZodOptional<z.ZodString>;
1241
+ }, "strict", z.ZodTypeAny, {
1242
+ transaction_ids: string[];
1243
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1244
+ detailed_category?: string | null | undefined;
1245
+ add_tags?: string[] | undefined;
1246
+ remove_tags?: string[] | undefined;
1247
+ name?: string | undefined;
1248
+ }, {
1249
+ transaction_ids: string[];
1250
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1251
+ detailed_category?: string | null | undefined;
1252
+ add_tags?: string[] | undefined;
1253
+ remove_tags?: string[] | undefined;
1254
+ name?: string | undefined;
1255
+ }>, {
1256
+ transaction_ids: string[];
1257
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1258
+ detailed_category?: string | null | undefined;
1259
+ add_tags?: string[] | undefined;
1260
+ remove_tags?: string[] | undefined;
1261
+ name?: string | undefined;
1262
+ }, {
1263
+ transaction_ids: string[];
1264
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1265
+ detailed_category?: string | null | undefined;
1266
+ add_tags?: string[] | undefined;
1267
+ remove_tags?: string[] | undefined;
1268
+ name?: string | undefined;
1269
+ }>, z.ZodObject<{
1270
+ merchant_name: z.ZodString;
1271
+ tag_name: z.ZodString;
1272
+ direction: z.ZodEnum<["income", "expense"]>;
1273
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
1274
+ }, "strict", z.ZodTypeAny, {
1275
+ merchant_name: string;
1276
+ tag_name: string;
1277
+ direction: "expense" | "income";
1278
+ case_insensitive?: boolean | undefined;
1279
+ }, {
1280
+ merchant_name: string;
1281
+ tag_name: string;
1282
+ direction: "expense" | "income";
1283
+ case_insensitive?: boolean | undefined;
1284
+ }>]>;
1285
+ };
1286
+ readonly outputSchema: z.ZodObject<{
1287
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1288
+ approval: z.ZodObject<{
1289
+ id: z.ZodString;
1290
+ status: z.ZodLiteral<"pending">;
1291
+ approval_url: z.ZodString;
1292
+ expires_at: z.ZodString;
1293
+ }, "strict", z.ZodTypeAny, {
1294
+ id: string;
1295
+ status: "pending";
1296
+ approval_url: string;
1297
+ expires_at: string;
1298
+ }, {
1299
+ id: string;
1300
+ status: "pending";
1301
+ approval_url: string;
1302
+ expires_at: string;
1303
+ }>;
1304
+ preview: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1305
+ kind: z.ZodLiteral<"transactions.update">;
1306
+ changes: z.ZodArray<z.ZodObject<{
1307
+ transaction_id: z.ZodString;
1308
+ date: z.ZodString;
1309
+ amount: z.ZodNumber;
1310
+ currency: z.ZodString;
1311
+ before: z.ZodObject<{
1312
+ category: z.ZodNullable<z.ZodString>;
1313
+ detailed_category: z.ZodNullable<z.ZodString>;
1314
+ tags: z.ZodArray<z.ZodString, "many">;
1315
+ name: z.ZodString;
1316
+ }, "strict", z.ZodTypeAny, {
1317
+ category: string | null;
1318
+ detailed_category: string | null;
1319
+ tags: string[];
1320
+ name: string;
1321
+ }, {
1322
+ category: string | null;
1323
+ detailed_category: string | null;
1324
+ tags: string[];
1325
+ name: string;
1326
+ }>;
1327
+ after: z.ZodObject<{
1328
+ category: z.ZodNullable<z.ZodString>;
1329
+ detailed_category: z.ZodNullable<z.ZodString>;
1330
+ tags: z.ZodArray<z.ZodString, "many">;
1331
+ name: z.ZodString;
1332
+ }, "strict", z.ZodTypeAny, {
1333
+ category: string | null;
1334
+ detailed_category: string | null;
1335
+ tags: string[];
1336
+ name: string;
1337
+ }, {
1338
+ category: string | null;
1339
+ detailed_category: string | null;
1340
+ tags: string[];
1341
+ name: string;
1342
+ }>;
1343
+ }, "strict", z.ZodTypeAny, {
1344
+ transaction_id: string;
1345
+ date: string;
1346
+ amount: number;
1347
+ currency: string;
1348
+ before: {
1349
+ category: string | null;
1350
+ detailed_category: string | null;
1351
+ tags: string[];
1352
+ name: string;
1353
+ };
1354
+ after: {
1355
+ category: string | null;
1356
+ detailed_category: string | null;
1357
+ tags: string[];
1358
+ name: string;
1359
+ };
1360
+ }, {
1361
+ transaction_id: string;
1362
+ date: string;
1363
+ amount: number;
1364
+ currency: string;
1365
+ before: {
1366
+ category: string | null;
1367
+ detailed_category: string | null;
1368
+ tags: string[];
1369
+ name: string;
1370
+ };
1371
+ after: {
1372
+ category: string | null;
1373
+ detailed_category: string | null;
1374
+ tags: string[];
1375
+ name: string;
1376
+ };
1377
+ }>, "many">;
1378
+ }, "strict", z.ZodTypeAny, {
1379
+ kind: "transactions.update";
1380
+ changes: {
1381
+ transaction_id: string;
1382
+ date: string;
1383
+ amount: number;
1384
+ currency: string;
1385
+ before: {
1386
+ category: string | null;
1387
+ detailed_category: string | null;
1388
+ tags: string[];
1389
+ name: string;
1390
+ };
1391
+ after: {
1392
+ category: string | null;
1393
+ detailed_category: string | null;
1394
+ tags: string[];
1395
+ name: string;
1396
+ };
1397
+ }[];
1398
+ }, {
1399
+ kind: "transactions.update";
1400
+ changes: {
1401
+ transaction_id: string;
1402
+ date: string;
1403
+ amount: number;
1404
+ currency: string;
1405
+ before: {
1406
+ category: string | null;
1407
+ detailed_category: string | null;
1408
+ tags: string[];
1409
+ name: string;
1410
+ };
1411
+ after: {
1412
+ category: string | null;
1413
+ detailed_category: string | null;
1414
+ tags: string[];
1415
+ name: string;
1416
+ };
1417
+ }[];
1418
+ }>, z.ZodObject<{
1419
+ kind: z.ZodLiteral<"tag_rules.create">;
1420
+ merchant_name: z.ZodString;
1421
+ tag_name: z.ZodString;
1422
+ direction: z.ZodEnum<["income", "expense"]>;
1423
+ case_insensitive: z.ZodBoolean;
1424
+ applies_to: z.ZodLiteral<"future_transactions_only">;
1425
+ }, "strict", z.ZodTypeAny, {
1426
+ kind: "tag_rules.create";
1427
+ merchant_name: string;
1428
+ tag_name: string;
1429
+ direction: "expense" | "income";
1430
+ case_insensitive: boolean;
1431
+ applies_to: "future_transactions_only";
1432
+ }, {
1433
+ kind: "tag_rules.create";
1434
+ merchant_name: string;
1435
+ tag_name: string;
1436
+ direction: "expense" | "income";
1437
+ case_insensitive: boolean;
1438
+ applies_to: "future_transactions_only";
1439
+ }>]>;
1440
+ }, "strict", z.ZodTypeAny, {
1441
+ operation_id: "tag_rules.create" | "transactions.update";
1442
+ approval: {
1443
+ id: string;
1444
+ status: "pending";
1445
+ approval_url: string;
1446
+ expires_at: string;
1447
+ };
1448
+ preview: {
1449
+ kind: "transactions.update";
1450
+ changes: {
1451
+ transaction_id: string;
1452
+ date: string;
1453
+ amount: number;
1454
+ currency: string;
1455
+ before: {
1456
+ category: string | null;
1457
+ detailed_category: string | null;
1458
+ tags: string[];
1459
+ name: string;
1460
+ };
1461
+ after: {
1462
+ category: string | null;
1463
+ detailed_category: string | null;
1464
+ tags: string[];
1465
+ name: string;
1466
+ };
1467
+ }[];
1468
+ } | {
1469
+ kind: "tag_rules.create";
1470
+ merchant_name: string;
1471
+ tag_name: string;
1472
+ direction: "expense" | "income";
1473
+ case_insensitive: boolean;
1474
+ applies_to: "future_transactions_only";
1475
+ };
1476
+ }, {
1477
+ operation_id: "tag_rules.create" | "transactions.update";
1478
+ approval: {
1479
+ id: string;
1480
+ status: "pending";
1481
+ approval_url: string;
1482
+ expires_at: string;
1483
+ };
1484
+ preview: {
1485
+ kind: "transactions.update";
1486
+ changes: {
1487
+ transaction_id: string;
1488
+ date: string;
1489
+ amount: number;
1490
+ currency: string;
1491
+ before: {
1492
+ category: string | null;
1493
+ detailed_category: string | null;
1494
+ tags: string[];
1495
+ name: string;
1496
+ };
1497
+ after: {
1498
+ category: string | null;
1499
+ detailed_category: string | null;
1500
+ tags: string[];
1501
+ name: string;
1502
+ };
1503
+ }[];
1504
+ } | {
1505
+ kind: "tag_rules.create";
1506
+ merchant_name: string;
1507
+ tag_name: string;
1508
+ direction: "expense" | "income";
1509
+ case_insensitive: boolean;
1510
+ applies_to: "future_transactions_only";
1511
+ };
1512
+ }>;
1513
+ }, {
1514
+ readonly name: "invoke_operation";
1515
+ readonly title: "Apply an approved change";
1516
+ readonly description: "Apply a change after the user approved it in Warm. Pass the same operation_id and input used with describe_operation and its approval_id. Each approval works once. If the data changed since the preview, the change is refused and needs a new approval.";
1517
+ readonly annotations: {
1518
+ readonly readOnlyHint: false;
1519
+ readonly destructiveHint: true;
1520
+ readonly openWorldHint: false;
1521
+ };
1522
+ readonly inputShape: {
1523
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1524
+ input: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1525
+ transaction_ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1526
+ primary_category: z.ZodOptional<z.ZodEnum<["INCOME", "TRANSFER_IN", "TRANSFER_OUT", "LOAN_PAYMENTS", "BANK_FEES", "ENTERTAINMENT", "FOOD_AND_DRINK", "GENERAL_MERCHANDISE", "HOME_IMPROVEMENT", "MEDICAL", "PERSONAL_CARE", "GENERAL_SERVICES", "GOVERNMENT_AND_NON_PROFIT", "TRANSPORTATION", "TRAVEL", "RENT_AND_UTILITIES"]>>;
1527
+ detailed_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1528
+ add_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1529
+ remove_tags: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1530
+ name: z.ZodOptional<z.ZodString>;
1531
+ }, "strict", z.ZodTypeAny, {
1532
+ transaction_ids: string[];
1533
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1534
+ detailed_category?: string | null | undefined;
1535
+ add_tags?: string[] | undefined;
1536
+ remove_tags?: string[] | undefined;
1537
+ name?: string | undefined;
1538
+ }, {
1539
+ transaction_ids: string[];
1540
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1541
+ detailed_category?: string | null | undefined;
1542
+ add_tags?: string[] | undefined;
1543
+ remove_tags?: string[] | undefined;
1544
+ name?: string | undefined;
1545
+ }>, {
1546
+ transaction_ids: string[];
1547
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1548
+ detailed_category?: string | null | undefined;
1549
+ add_tags?: string[] | undefined;
1550
+ remove_tags?: string[] | undefined;
1551
+ name?: string | undefined;
1552
+ }, {
1553
+ transaction_ids: string[];
1554
+ primary_category?: "BANK_FEES" | "ENTERTAINMENT" | "FOOD_AND_DRINK" | "GENERAL_MERCHANDISE" | "GENERAL_SERVICES" | "GOVERNMENT_AND_NON_PROFIT" | "HOME_IMPROVEMENT" | "INCOME" | "LOAN_PAYMENTS" | "MEDICAL" | "PERSONAL_CARE" | "RENT_AND_UTILITIES" | "TRANSFER_IN" | "TRANSFER_OUT" | "TRANSPORTATION" | "TRAVEL" | undefined;
1555
+ detailed_category?: string | null | undefined;
1556
+ add_tags?: string[] | undefined;
1557
+ remove_tags?: string[] | undefined;
1558
+ name?: string | undefined;
1559
+ }>, z.ZodObject<{
1560
+ merchant_name: z.ZodString;
1561
+ tag_name: z.ZodString;
1562
+ direction: z.ZodEnum<["income", "expense"]>;
1563
+ case_insensitive: z.ZodOptional<z.ZodBoolean>;
1564
+ }, "strict", z.ZodTypeAny, {
1565
+ merchant_name: string;
1566
+ tag_name: string;
1567
+ direction: "expense" | "income";
1568
+ case_insensitive?: boolean | undefined;
1569
+ }, {
1570
+ merchant_name: string;
1571
+ tag_name: string;
1572
+ direction: "expense" | "income";
1573
+ case_insensitive?: boolean | undefined;
1574
+ }>]>;
1575
+ approval_id: z.ZodString;
1576
+ };
1577
+ readonly outputSchema: z.ZodObject<{
1578
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1579
+ approval_id: z.ZodString;
1580
+ execution_status: z.ZodEnum<["succeeded", "failed", "uncertain"]>;
1581
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1582
+ kind: z.ZodLiteral<"transactions.update">;
1583
+ updated_transaction_ids: z.ZodArray<z.ZodString, "many">;
1584
+ failed_transaction_ids: z.ZodArray<z.ZodString, "many">;
1585
+ }, "strict", z.ZodTypeAny, {
1586
+ kind: "transactions.update";
1587
+ updated_transaction_ids: string[];
1588
+ failed_transaction_ids: string[];
1589
+ }, {
1590
+ kind: "transactions.update";
1591
+ updated_transaction_ids: string[];
1592
+ failed_transaction_ids: string[];
1593
+ }>, z.ZodObject<{
1594
+ kind: z.ZodLiteral<"tag_rules.create">;
1595
+ created: z.ZodBoolean;
1596
+ }, "strict", z.ZodTypeAny, {
1597
+ kind: "tag_rules.create";
1598
+ created: boolean;
1599
+ }, {
1600
+ kind: "tag_rules.create";
1601
+ created: boolean;
1602
+ }>]>>;
1603
+ }, "strict", z.ZodTypeAny, {
1604
+ operation_id: "tag_rules.create" | "transactions.update";
1605
+ approval_id: string;
1606
+ execution_status: "failed" | "succeeded" | "uncertain";
1607
+ result: {
1608
+ kind: "transactions.update";
1609
+ updated_transaction_ids: string[];
1610
+ failed_transaction_ids: string[];
1611
+ } | {
1612
+ kind: "tag_rules.create";
1613
+ created: boolean;
1614
+ } | null;
1615
+ }, {
1616
+ operation_id: "tag_rules.create" | "transactions.update";
1617
+ approval_id: string;
1618
+ execution_status: "failed" | "succeeded" | "uncertain";
1619
+ result: {
1620
+ kind: "transactions.update";
1621
+ updated_transaction_ids: string[];
1622
+ failed_transaction_ids: string[];
1623
+ } | {
1624
+ kind: "tag_rules.create";
1625
+ created: boolean;
1626
+ } | null;
1627
+ }>;
1628
+ }, {
1629
+ readonly name: "get_operation_status";
1630
+ readonly title: "Check a change";
1631
+ readonly description: "Check whether a change is still waiting for approval, was approved or rejected, and whether it was applied.";
1632
+ readonly annotations: {
1633
+ readonly readOnlyHint: true;
1634
+ readonly destructiveHint: false;
1635
+ readonly openWorldHint: false;
1636
+ };
1637
+ readonly inputShape: {
1638
+ approval_id: z.ZodString;
1639
+ };
1640
+ readonly outputSchema: z.ZodObject<{
1641
+ approval_id: z.ZodString;
1642
+ operation_id: z.ZodEnum<["transactions.update", "tag_rules.create"]>;
1643
+ approval_status: z.ZodEnum<["pending", "approved", "rejected", "consumed", "expired"]>;
1644
+ execution_status: z.ZodEnum<["not_started", "started", "succeeded", "failed", "uncertain"]>;
1645
+ expires_at: z.ZodString;
1646
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1647
+ kind: z.ZodLiteral<"transactions.update">;
1648
+ updated_transaction_ids: z.ZodArray<z.ZodString, "many">;
1649
+ failed_transaction_ids: z.ZodArray<z.ZodString, "many">;
1650
+ }, "strict", z.ZodTypeAny, {
1651
+ kind: "transactions.update";
1652
+ updated_transaction_ids: string[];
1653
+ failed_transaction_ids: string[];
1654
+ }, {
1655
+ kind: "transactions.update";
1656
+ updated_transaction_ids: string[];
1657
+ failed_transaction_ids: string[];
1658
+ }>, z.ZodObject<{
1659
+ kind: z.ZodLiteral<"tag_rules.create">;
1660
+ created: z.ZodBoolean;
1661
+ }, "strict", z.ZodTypeAny, {
1662
+ kind: "tag_rules.create";
1663
+ created: boolean;
1664
+ }, {
1665
+ kind: "tag_rules.create";
1666
+ created: boolean;
1667
+ }>]>>;
1668
+ }, "strict", z.ZodTypeAny, {
1669
+ approval_id: string;
1670
+ operation_id: "tag_rules.create" | "transactions.update";
1671
+ approval_status: "approved" | "consumed" | "expired" | "pending" | "rejected";
1672
+ execution_status: "failed" | "not_started" | "started" | "succeeded" | "uncertain";
1673
+ expires_at: string;
1674
+ result: {
1675
+ kind: "transactions.update";
1676
+ updated_transaction_ids: string[];
1677
+ failed_transaction_ids: string[];
1678
+ } | {
1679
+ kind: "tag_rules.create";
1680
+ created: boolean;
1681
+ } | null;
1682
+ }, {
1683
+ approval_id: string;
1684
+ operation_id: "tag_rules.create" | "transactions.update";
1685
+ approval_status: "approved" | "consumed" | "expired" | "pending" | "rejected";
1686
+ execution_status: "failed" | "not_started" | "started" | "succeeded" | "uncertain";
1687
+ expires_at: string;
1688
+ result: {
1689
+ kind: "transactions.update";
1690
+ updated_transaction_ids: string[];
1691
+ failed_transaction_ids: string[];
1692
+ } | {
1693
+ kind: "tag_rules.create";
1694
+ created: boolean;
1695
+ } | null;
1696
+ }>;
1697
+ }];
1698
+ export declare const hostedWriteMcpToolDescriptors: ({
1699
+ name: "find_transactions";
1700
+ title: "Find transactions";
1701
+ description: "Find transactions to change. Returns pages of up to 50 items with id, date, amount, currency, name, category, detailed category, tags, pending status, and whether the name can be edited. Amounts are negative for money out and positive for money in. Account details and notes are omitted. Use the ids with describe_operation.";
1702
+ annotations: {
1703
+ readonly readOnlyHint: true;
1704
+ readonly destructiveHint: false;
1705
+ readonly openWorldHint: false;
1706
+ };
1707
+ input_schema: JsonSchema7Document;
1708
+ output_schema: JsonSchema7Document;
1709
+ } | {
1710
+ name: "describe_operation";
1711
+ title: "Prepare a change for approval";
1712
+ description: "Prepare one change and get a preview plus an approval id. Supported operations: transactions.update (set category or detailed category, add or remove tags, or rename one manually added transaction; up to 50 transactions with the same change) and tag_rules.create (tag future transactions from a merchant; past transactions are not changed). Nothing changes until the user approves it in Warm at approval_url. Show the user the preview and the link.";
1713
+ annotations: {
1714
+ readonly readOnlyHint: false;
1715
+ readonly destructiveHint: false;
1716
+ readonly openWorldHint: false;
1717
+ };
1718
+ input_schema: JsonSchema7Document;
1719
+ output_schema: JsonSchema7Document;
1720
+ } | {
1721
+ name: "invoke_operation";
1722
+ title: "Apply an approved change";
1723
+ description: "Apply a change after the user approved it in Warm. Pass the same operation_id and input used with describe_operation and its approval_id. Each approval works once. If the data changed since the preview, the change is refused and needs a new approval.";
1724
+ annotations: {
1725
+ readonly readOnlyHint: false;
1726
+ readonly destructiveHint: true;
1727
+ readonly openWorldHint: false;
1728
+ };
1729
+ input_schema: JsonSchema7Document;
1730
+ output_schema: JsonSchema7Document;
1731
+ } | {
1732
+ name: "get_operation_status";
1733
+ title: "Check a change";
1734
+ description: "Check whether a change is still waiting for approval, was approved or rejected, and whether it was applied.";
1735
+ annotations: {
1736
+ readonly readOnlyHint: true;
1737
+ readonly destructiveHint: false;
1738
+ readonly openWorldHint: false;
1739
+ };
1740
+ input_schema: JsonSchema7Document;
1741
+ output_schema: JsonSchema7Document;
1742
+ })[];
1743
+ export type HostedWriteMcpToolDescriptor = (typeof hostedWriteMcpToolDescriptors)[number];
1744
+ export {};
1745
+ //# sourceMappingURL=hosted-write-tools.d.ts.map