@warmio/contracts 3.0.4 → 3.0.6

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 (42) 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 +5 -0
  4. package/dist/api/endpoints.js.map +1 -1
  5. package/dist/financial-context-artifact-protocol.d.ts +21 -11
  6. package/dist/financial-context-artifact-protocol.d.ts.map +1 -1
  7. package/dist/financial-context-artifact-protocol.js +37 -12
  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 +104 -4
  14. package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
  15. package/dist/generated/private-mcp-tool-descriptors.js +149 -6
  16. package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
  17. package/dist/generated/warm-app-api-manifest.d.ts +109 -9
  18. package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
  19. package/dist/generated/warm-app-api-manifest.js +154 -11
  20. package/dist/generated/warm-app-api-manifest.js.map +1 -1
  21. package/dist/manifest.d.ts +2 -2
  22. package/dist/mcp/index.d.ts +2 -0
  23. package/dist/mcp/index.d.ts.map +1 -1
  24. package/dist/mcp/index.js +2 -0
  25. package/dist/mcp/index.js.map +1 -1
  26. package/dist/mcp/public-output.d.ts +705 -0
  27. package/dist/mcp/public-output.d.ts.map +1 -0
  28. package/dist/mcp/public-output.js +47 -0
  29. package/dist/mcp/public-output.js.map +1 -0
  30. package/dist/mcp/public-tools.d.ts +691 -0
  31. package/dist/mcp/public-tools.d.ts.map +1 -0
  32. package/dist/mcp/public-tools.js +44 -0
  33. package/dist/mcp/public-tools.js.map +1 -0
  34. package/dist/mcp/tools.d.ts +431 -15
  35. package/dist/mcp/tools.d.ts.map +1 -1
  36. package/dist/mcp/tools.js +41 -5
  37. package/dist/mcp/tools.js.map +1 -1
  38. package/dist/schemas/financial-context.d.ts +26 -16
  39. package/dist/schemas/financial-context.d.ts.map +1 -1
  40. package/dist/schemas/financial-context.js +14 -2
  41. package/dist/schemas/financial-context.js.map +1 -1
  42. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-tools.d.ts","sourceRoot":"","sources":["../../src/mcp/public-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAoB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQ3E,eAAO,MAAM,+BAA+B;aAC1C,MAAM,EAAE,eAAe;aACvB,gBAAgB,EAAE,UAAU;aAC5B,MAAM;iBACJ,qBAAqB,EAAE,wBAAwB;iBAC/C,gBAAgB,EAAE,mBAAmB;;CAE/B,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,+BAA+B,CAAC,MAAM,CAAC;AACpF,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAcrE,KAAK,mBAAmB,GAAG,eAAe,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,GAAG,SAAS,CAAC;CAC9D,CAAC;AAYF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBkB,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;IAUpC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ import { zodToJsonSchema } from 'zod-to-json-schema';
3
+ import { emptyMcpInputShape, getTransactionsMcpInputShape } from './tools.js';
4
+ import { publicMcpFinancialContextSchema, publicMcpLatestTransactionsSchema, publicMcpTransactionMonthSchema, } from './public-output.js';
5
+ export const publicMcpToolPermissionContract = {
6
+ status: 'contract_only',
7
+ enforcementOwner: 'provider',
8
+ byTool: {
9
+ get_financial_context: 'financial_context:read',
10
+ get_transactions: 'transactions:read',
11
+ },
12
+ };
13
+ const tool = (definition) => definition;
14
+ const normalizeJsonSchema = (schema) => {
15
+ const normalizedSchema = { ...schema };
16
+ if (normalizedSchema.$schema === 'http://json-schema.org/draft-07/schema#') {
17
+ normalizedSchema.$schema = 'https://json-schema.org/draft-07/schema#';
18
+ }
19
+ return normalizedSchema;
20
+ };
21
+ export const publicMcpToolDefinitions = [
22
+ tool({
23
+ name: 'get_financial_context',
24
+ description: 'Read-only financial context summary. Returns version, updated_at, currency, status.position, and transaction-index totals and months. Account details and transaction items are omitted; use get_transactions for transaction items. The point-in-time position is a balance snapshot, separate from transaction and behavior windows.',
25
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
26
+ inputShape: emptyMcpInputShape,
27
+ outputSchema: publicMcpFinancialContextSchema,
28
+ }),
29
+ tool({
30
+ name: 'get_transactions',
31
+ description: 'Read-only transaction pages from the financial context. Pass `period: "latest"` for the fixed 10-day window or `period: "YYYY-MM"` for a month page. Transaction items include date, amount, category, subcategory, pending, and currency; IDs, account details, merchants, and names are omitted. The latest window is not caller-configurable. Months outside the covered range return an error.',
32
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
33
+ inputShape: getTransactionsMcpInputShape,
34
+ outputSchema: z.union([publicMcpTransactionMonthSchema, publicMcpLatestTransactionsSchema]),
35
+ }),
36
+ ];
37
+ export const publicMcpToolDescriptors = publicMcpToolDefinitions.map(({ inputShape, outputSchema, ...toolDefinition }) => ({
38
+ ...toolDefinition,
39
+ input_schema: normalizeJsonSchema(zodToJsonSchema(z.object(inputShape).strict(), {
40
+ $refStrategy: 'none',
41
+ })),
42
+ output_schema: normalizeJsonSchema(zodToJsonSchema(outputSchema, { $refStrategy: 'none' })),
43
+ }));
44
+ //# sourceMappingURL=public-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-tools.js","sourceRoot":"","sources":["../../src/mcp/public-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAoB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAC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CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,GAAG,cAAc;IACjB,YAAY,EAAE,mBAAmB,CAC/B,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,EAAE;QAC7C,YAAY,EAAE,MAAM;KACrB,CAAC,CACH;IACD,aAAa,EAAE,mBAAmB,CAAC,eAAe,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;CAC5F,CAAC,CACH,CAAC"}
@@ -2,7 +2,8 @@ import { z } from 'zod';
2
2
  import { type JsonSchema7Type } from 'zod-to-json-schema';
3
3
  export declare const emptyMcpInputShape: {};
4
4
  export declare const getTransactionsMcpInputShape: {
5
- period: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
5
+ period: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>>;
6
+ periods: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
6
7
  };
7
8
  export declare const searchOperationsMcpInputShape: {
8
9
  query: z.ZodOptional<z.ZodString>;
@@ -34,20 +35,305 @@ export declare const invokeOperationMcpInputShape: {
34
35
  }>>;
35
36
  approval_id: z.ZodOptional<z.ZodString>;
36
37
  };
37
- export declare const getTransactionsMcpInputSchema: z.ZodObject<{
38
- period: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
38
+ export declare const getTransactionsMcpInputSchema: z.ZodEffects<z.ZodObject<{
39
+ period: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>>;
40
+ periods: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
39
41
  }, "strict", z.ZodTypeAny, {
40
- period: string;
42
+ period?: string | undefined;
43
+ periods?: string[] | undefined;
41
44
  }, {
42
- period: string;
45
+ period?: string | undefined;
46
+ periods?: string[] | undefined;
47
+ }>, {
48
+ period?: string | undefined;
49
+ periods?: string[] | undefined;
50
+ }, {
51
+ period?: string | undefined;
52
+ periods?: string[] | undefined;
43
53
  }>;
44
54
  export declare function normalizeGetTransactionsMcpInput(input: z.infer<typeof getTransactionsMcpInputSchema>): {
55
+ readonly periods: string[];
56
+ readonly latest?: never;
57
+ readonly month?: never;
58
+ } | {
59
+ readonly periods?: never;
45
60
  readonly latest: true;
46
61
  readonly month?: never;
47
62
  } | {
63
+ readonly periods?: never;
48
64
  readonly latest?: never;
49
65
  readonly month: string;
50
66
  };
67
+ export declare const transactionMonthMcpOutputSchema: z.ZodObject<{
68
+ month: z.ZodString;
69
+ start_date: z.ZodString;
70
+ end_date: z.ZodString;
71
+ count: z.ZodNumber;
72
+ items: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodString;
74
+ account_id: z.ZodNullable<z.ZodString>;
75
+ date: z.ZodNullable<z.ZodString>;
76
+ amount: z.ZodNumber;
77
+ merchant: z.ZodNullable<z.ZodString>;
78
+ name: z.ZodNullable<z.ZodString>;
79
+ category: z.ZodNullable<z.ZodString>;
80
+ subcategory: z.ZodNullable<z.ZodString>;
81
+ pending: z.ZodNullable<z.ZodBoolean>;
82
+ currency: z.ZodNullable<z.ZodString>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ id: string;
85
+ account_id: string | null;
86
+ date: string | null;
87
+ amount: number;
88
+ merchant: string | null;
89
+ name: string | null;
90
+ category: string | null;
91
+ subcategory: string | null;
92
+ pending: boolean | null;
93
+ currency: string | null;
94
+ }, {
95
+ id: string;
96
+ account_id: string | null;
97
+ date: string | null;
98
+ amount: number;
99
+ merchant: string | null;
100
+ name: string | null;
101
+ category: string | null;
102
+ subcategory: string | null;
103
+ pending: boolean | null;
104
+ currency: string | null;
105
+ }>, "many">;
106
+ } & {
107
+ truncated: z.ZodOptional<z.ZodBoolean>;
108
+ }, "strict", z.ZodTypeAny, {
109
+ month: string;
110
+ start_date: string;
111
+ end_date: string;
112
+ count: number;
113
+ items: {
114
+ id: string;
115
+ account_id: string | null;
116
+ date: string | null;
117
+ amount: number;
118
+ merchant: string | null;
119
+ name: string | null;
120
+ category: string | null;
121
+ subcategory: string | null;
122
+ pending: boolean | null;
123
+ currency: string | null;
124
+ }[];
125
+ truncated?: boolean | undefined;
126
+ }, {
127
+ month: string;
128
+ start_date: string;
129
+ end_date: string;
130
+ count: number;
131
+ items: {
132
+ id: string;
133
+ account_id: string | null;
134
+ date: string | null;
135
+ amount: number;
136
+ merchant: string | null;
137
+ name: string | null;
138
+ category: string | null;
139
+ subcategory: string | null;
140
+ pending: boolean | null;
141
+ currency: string | null;
142
+ }[];
143
+ truncated?: boolean | undefined;
144
+ }>;
145
+ export declare const latestTransactionsMcpOutputSchema: z.ZodObject<{
146
+ since: z.ZodString;
147
+ window_days: z.ZodLiteral<10>;
148
+ count: z.ZodNumber;
149
+ items: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodString;
151
+ account_id: z.ZodNullable<z.ZodString>;
152
+ date: z.ZodNullable<z.ZodString>;
153
+ amount: z.ZodNumber;
154
+ merchant: z.ZodNullable<z.ZodString>;
155
+ name: z.ZodNullable<z.ZodString>;
156
+ category: z.ZodNullable<z.ZodString>;
157
+ subcategory: z.ZodNullable<z.ZodString>;
158
+ pending: z.ZodNullable<z.ZodBoolean>;
159
+ currency: z.ZodNullable<z.ZodString>;
160
+ }, "strict", z.ZodTypeAny, {
161
+ id: string;
162
+ account_id: string | null;
163
+ date: string | null;
164
+ amount: number;
165
+ merchant: string | null;
166
+ name: string | null;
167
+ category: string | null;
168
+ subcategory: string | null;
169
+ pending: boolean | null;
170
+ currency: string | null;
171
+ }, {
172
+ id: string;
173
+ account_id: string | null;
174
+ date: string | null;
175
+ amount: number;
176
+ merchant: string | null;
177
+ name: string | null;
178
+ category: string | null;
179
+ subcategory: string | null;
180
+ pending: boolean | null;
181
+ currency: string | null;
182
+ }>, "many">;
183
+ } & {
184
+ truncated: z.ZodOptional<z.ZodBoolean>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ since: string;
187
+ window_days: 10;
188
+ count: number;
189
+ items: {
190
+ id: string;
191
+ account_id: string | null;
192
+ date: string | null;
193
+ amount: number;
194
+ merchant: string | null;
195
+ name: string | null;
196
+ category: string | null;
197
+ subcategory: string | null;
198
+ pending: boolean | null;
199
+ currency: string | null;
200
+ }[];
201
+ truncated?: boolean | undefined;
202
+ }, {
203
+ since: string;
204
+ window_days: 10;
205
+ count: number;
206
+ items: {
207
+ id: string;
208
+ account_id: string | null;
209
+ date: string | null;
210
+ amount: number;
211
+ merchant: string | null;
212
+ name: string | null;
213
+ category: string | null;
214
+ subcategory: string | null;
215
+ pending: boolean | null;
216
+ currency: string | null;
217
+ }[];
218
+ truncated?: boolean | undefined;
219
+ }>;
220
+ export declare const transactionPeriodsMcpOutputSchema: z.ZodObject<{
221
+ periods: z.ZodArray<z.ZodObject<{
222
+ month: z.ZodString;
223
+ start_date: z.ZodString;
224
+ end_date: z.ZodString;
225
+ count: z.ZodNumber;
226
+ items: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ account_id: z.ZodNullable<z.ZodString>;
229
+ date: z.ZodNullable<z.ZodString>;
230
+ amount: z.ZodNumber;
231
+ merchant: z.ZodNullable<z.ZodString>;
232
+ name: z.ZodNullable<z.ZodString>;
233
+ category: z.ZodNullable<z.ZodString>;
234
+ subcategory: z.ZodNullable<z.ZodString>;
235
+ pending: z.ZodNullable<z.ZodBoolean>;
236
+ currency: z.ZodNullable<z.ZodString>;
237
+ }, "strict", z.ZodTypeAny, {
238
+ id: string;
239
+ account_id: string | null;
240
+ date: string | null;
241
+ amount: number;
242
+ merchant: string | null;
243
+ name: string | null;
244
+ category: string | null;
245
+ subcategory: string | null;
246
+ pending: boolean | null;
247
+ currency: string | null;
248
+ }, {
249
+ id: string;
250
+ account_id: string | null;
251
+ date: string | null;
252
+ amount: number;
253
+ merchant: string | null;
254
+ name: string | null;
255
+ category: string | null;
256
+ subcategory: string | null;
257
+ pending: boolean | null;
258
+ currency: string | null;
259
+ }>, "many">;
260
+ }, "strict", z.ZodTypeAny, {
261
+ month: string;
262
+ start_date: string;
263
+ end_date: string;
264
+ count: number;
265
+ items: {
266
+ id: string;
267
+ account_id: string | null;
268
+ date: string | null;
269
+ amount: number;
270
+ merchant: string | null;
271
+ name: string | null;
272
+ category: string | null;
273
+ subcategory: string | null;
274
+ pending: boolean | null;
275
+ currency: string | null;
276
+ }[];
277
+ }, {
278
+ month: string;
279
+ start_date: string;
280
+ end_date: string;
281
+ count: number;
282
+ items: {
283
+ id: string;
284
+ account_id: string | null;
285
+ date: string | null;
286
+ amount: number;
287
+ merchant: string | null;
288
+ name: string | null;
289
+ category: string | null;
290
+ subcategory: string | null;
291
+ pending: boolean | null;
292
+ currency: string | null;
293
+ }[];
294
+ }>, "many">;
295
+ truncated: z.ZodOptional<z.ZodBoolean>;
296
+ }, "strict", z.ZodTypeAny, {
297
+ periods: {
298
+ month: string;
299
+ start_date: string;
300
+ end_date: string;
301
+ count: number;
302
+ items: {
303
+ id: string;
304
+ account_id: string | null;
305
+ date: string | null;
306
+ amount: number;
307
+ merchant: string | null;
308
+ name: string | null;
309
+ category: string | null;
310
+ subcategory: string | null;
311
+ pending: boolean | null;
312
+ currency: string | null;
313
+ }[];
314
+ }[];
315
+ truncated?: boolean | undefined;
316
+ }, {
317
+ periods: {
318
+ month: string;
319
+ start_date: string;
320
+ end_date: string;
321
+ count: number;
322
+ items: {
323
+ id: string;
324
+ account_id: string | null;
325
+ date: string | null;
326
+ amount: number;
327
+ merchant: string | null;
328
+ name: string | null;
329
+ category: string | null;
330
+ subcategory: string | null;
331
+ pending: boolean | null;
332
+ currency: string | null;
333
+ }[];
334
+ }[];
335
+ truncated?: boolean | undefined;
336
+ }>;
51
337
  type JsonSchema7Document = JsonSchema7Type & {
52
338
  $schema?: string | undefined;
53
339
  definitions?: {
@@ -99,7 +385,7 @@ export declare const privateMcpToolDefinitions: readonly [{
99
385
  source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
100
386
  type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
101
387
  subtype: z.ZodNullable<z.ZodString>;
102
- group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
388
+ group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
103
389
  institution: z.ZodNullable<z.ZodString>;
104
390
  mask: z.ZodNullable<z.ZodString>;
105
391
  balance: z.ZodNullable<z.ZodNumber>;
@@ -112,7 +398,7 @@ export declare const privateMcpToolDefinitions: readonly [{
112
398
  source: "csv_import" | "manual" | "plaid" | null;
113
399
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
114
400
  subtype: string | null;
115
- group: "cash" | "debt" | "investments" | null;
401
+ group: "cash" | "debt" | "investments" | "other" | null;
116
402
  institution: string | null;
117
403
  mask: string | null;
118
404
  balance: number | null;
@@ -125,7 +411,7 @@ export declare const privateMcpToolDefinitions: readonly [{
125
411
  source: "csv_import" | "manual" | "plaid" | null;
126
412
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
127
413
  subtype: string | null;
128
- group: "cash" | "debt" | "investments" | null;
414
+ group: "cash" | "debt" | "investments" | "other" | null;
129
415
  institution: string | null;
130
416
  mask: string | null;
131
417
  balance: number | null;
@@ -149,7 +435,7 @@ export declare const privateMcpToolDefinitions: readonly [{
149
435
  source: "csv_import" | "manual" | "plaid" | null;
150
436
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
151
437
  subtype: string | null;
152
- group: "cash" | "debt" | "investments" | null;
438
+ group: "cash" | "debt" | "investments" | "other" | null;
153
439
  institution: string | null;
154
440
  mask: string | null;
155
441
  balance: number | null;
@@ -173,7 +459,7 @@ export declare const privateMcpToolDefinitions: readonly [{
173
459
  source: "csv_import" | "manual" | "plaid" | null;
174
460
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
175
461
  subtype: string | null;
176
- group: "cash" | "debt" | "investments" | null;
462
+ group: "cash" | "debt" | "investments" | "other" | null;
177
463
  institution: string | null;
178
464
  mask: string | null;
179
465
  balance: number | null;
@@ -216,6 +502,7 @@ export declare const privateMcpToolDefinitions: readonly [{
216
502
  merchant: z.ZodNullable<z.ZodString>;
217
503
  amount: z.ZodNullable<z.ZodNumber>;
218
504
  next_date: z.ZodNullable<z.ZodString>;
505
+ excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
219
506
  }, "strict", z.ZodTypeAny, {
220
507
  id: string;
221
508
  account_id: string | null;
@@ -225,6 +512,7 @@ export declare const privateMcpToolDefinitions: readonly [{
225
512
  merchant: string | null;
226
513
  amount: number | null;
227
514
  next_date: string | null;
515
+ excluded_from_subscriptions?: boolean | undefined;
228
516
  }, {
229
517
  id: string;
230
518
  account_id: string | null;
@@ -234,6 +522,7 @@ export declare const privateMcpToolDefinitions: readonly [{
234
522
  merchant: string | null;
235
523
  amount: number | null;
236
524
  next_date: string | null;
525
+ excluded_from_subscriptions?: boolean | undefined;
237
526
  }>, "many">;
238
527
  budgets: z.ZodArray<z.ZodObject<{
239
528
  id: z.ZodString;
@@ -460,7 +749,7 @@ export declare const privateMcpToolDefinitions: readonly [{
460
749
  source: "csv_import" | "manual" | "plaid" | null;
461
750
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
462
751
  subtype: string | null;
463
- group: "cash" | "debt" | "investments" | null;
752
+ group: "cash" | "debt" | "investments" | "other" | null;
464
753
  institution: string | null;
465
754
  mask: string | null;
466
755
  balance: number | null;
@@ -485,6 +774,7 @@ export declare const privateMcpToolDefinitions: readonly [{
485
774
  merchant: string | null;
486
775
  amount: number | null;
487
776
  next_date: string | null;
777
+ excluded_from_subscriptions?: boolean | undefined;
488
778
  }[];
489
779
  budgets: {
490
780
  id: string;
@@ -575,7 +865,7 @@ export declare const privateMcpToolDefinitions: readonly [{
575
865
  source: "csv_import" | "manual" | "plaid" | null;
576
866
  type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
577
867
  subtype: string | null;
578
- group: "cash" | "debt" | "investments" | null;
868
+ group: "cash" | "debt" | "investments" | "other" | null;
579
869
  institution: string | null;
580
870
  mask: string | null;
581
871
  balance: number | null;
@@ -600,6 +890,7 @@ export declare const privateMcpToolDefinitions: readonly [{
600
890
  merchant: string | null;
601
891
  amount: number | null;
602
892
  next_date: string | null;
893
+ excluded_from_subscriptions?: boolean | undefined;
603
894
  }[];
604
895
  budgets: {
605
896
  id: string;
@@ -673,14 +964,15 @@ export declare const privateMcpToolDefinitions: readonly [{
673
964
  }>;
674
965
  }, {
675
966
  readonly name: "get_transactions";
676
- readonly description: "Read-only transactions from the FinancialContext artifact. Pass `period: \"latest\"` for the fixed 10-day latest window or `period: \"YYYY-MM\"` for a month page. The latest window is not caller-configurable. Months outside the covered range return an error.";
967
+ readonly description: "Read-only transactions from the FinancialContext artifact. Pass exactly one of `period` or `periods`. Use `period: \"latest\"` for the fixed 10-day window, `period: \"YYYY-MM\"` for one month, or `periods` for two or three distinct months. Multi-month output contains one month page per requested period in input order. The latest window is not caller-configurable. Months outside the covered range return an error.";
677
968
  readonly annotations: {
678
969
  readonly readOnlyHint: true;
679
970
  readonly destructiveHint: false;
680
971
  readonly openWorldHint: false;
681
972
  };
682
973
  readonly inputShape: {
683
- period: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
974
+ period: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>>;
975
+ periods: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
684
976
  };
685
977
  readonly outputSchema: z.ZodUnion<[z.ZodObject<{
686
978
  month: z.ZodString;
@@ -721,6 +1013,8 @@ export declare const privateMcpToolDefinitions: readonly [{
721
1013
  pending: boolean | null;
722
1014
  currency: string | null;
723
1015
  }>, "many">;
1016
+ } & {
1017
+ truncated: z.ZodOptional<z.ZodBoolean>;
724
1018
  }, "strict", z.ZodTypeAny, {
725
1019
  month: string;
726
1020
  start_date: string;
@@ -738,6 +1032,7 @@ export declare const privateMcpToolDefinitions: readonly [{
738
1032
  pending: boolean | null;
739
1033
  currency: string | null;
740
1034
  }[];
1035
+ truncated?: boolean | undefined;
741
1036
  }, {
742
1037
  month: string;
743
1038
  start_date: string;
@@ -755,6 +1050,7 @@ export declare const privateMcpToolDefinitions: readonly [{
755
1050
  pending: boolean | null;
756
1051
  currency: string | null;
757
1052
  }[];
1053
+ truncated?: boolean | undefined;
758
1054
  }>, z.ZodObject<{
759
1055
  since: z.ZodString;
760
1056
  window_days: z.ZodLiteral<10>;
@@ -793,6 +1089,8 @@ export declare const privateMcpToolDefinitions: readonly [{
793
1089
  pending: boolean | null;
794
1090
  currency: string | null;
795
1091
  }>, "many">;
1092
+ } & {
1093
+ truncated: z.ZodOptional<z.ZodBoolean>;
796
1094
  }, "strict", z.ZodTypeAny, {
797
1095
  since: string;
798
1096
  window_days: 10;
@@ -809,6 +1107,7 @@ export declare const privateMcpToolDefinitions: readonly [{
809
1107
  pending: boolean | null;
810
1108
  currency: string | null;
811
1109
  }[];
1110
+ truncated?: boolean | undefined;
812
1111
  }, {
813
1112
  since: string;
814
1113
  window_days: 10;
@@ -825,6 +1124,123 @@ export declare const privateMcpToolDefinitions: readonly [{
825
1124
  pending: boolean | null;
826
1125
  currency: string | null;
827
1126
  }[];
1127
+ truncated?: boolean | undefined;
1128
+ }>, z.ZodObject<{
1129
+ periods: z.ZodArray<z.ZodObject<{
1130
+ month: z.ZodString;
1131
+ start_date: z.ZodString;
1132
+ end_date: z.ZodString;
1133
+ count: z.ZodNumber;
1134
+ items: z.ZodArray<z.ZodObject<{
1135
+ id: z.ZodString;
1136
+ account_id: z.ZodNullable<z.ZodString>;
1137
+ date: z.ZodNullable<z.ZodString>;
1138
+ amount: z.ZodNumber;
1139
+ merchant: z.ZodNullable<z.ZodString>;
1140
+ name: z.ZodNullable<z.ZodString>;
1141
+ category: z.ZodNullable<z.ZodString>;
1142
+ subcategory: z.ZodNullable<z.ZodString>;
1143
+ pending: z.ZodNullable<z.ZodBoolean>;
1144
+ currency: z.ZodNullable<z.ZodString>;
1145
+ }, "strict", z.ZodTypeAny, {
1146
+ id: string;
1147
+ account_id: string | null;
1148
+ date: string | null;
1149
+ amount: number;
1150
+ merchant: string | null;
1151
+ name: string | null;
1152
+ category: string | null;
1153
+ subcategory: string | null;
1154
+ pending: boolean | null;
1155
+ currency: string | null;
1156
+ }, {
1157
+ id: string;
1158
+ account_id: string | null;
1159
+ date: string | null;
1160
+ amount: number;
1161
+ merchant: string | null;
1162
+ name: string | null;
1163
+ category: string | null;
1164
+ subcategory: string | null;
1165
+ pending: boolean | null;
1166
+ currency: string | null;
1167
+ }>, "many">;
1168
+ }, "strict", z.ZodTypeAny, {
1169
+ month: string;
1170
+ start_date: string;
1171
+ end_date: string;
1172
+ count: number;
1173
+ items: {
1174
+ id: string;
1175
+ account_id: string | null;
1176
+ date: string | null;
1177
+ amount: number;
1178
+ merchant: string | null;
1179
+ name: string | null;
1180
+ category: string | null;
1181
+ subcategory: string | null;
1182
+ pending: boolean | null;
1183
+ currency: string | null;
1184
+ }[];
1185
+ }, {
1186
+ month: string;
1187
+ start_date: string;
1188
+ end_date: string;
1189
+ count: number;
1190
+ items: {
1191
+ id: string;
1192
+ account_id: string | null;
1193
+ date: string | null;
1194
+ amount: number;
1195
+ merchant: string | null;
1196
+ name: string | null;
1197
+ category: string | null;
1198
+ subcategory: string | null;
1199
+ pending: boolean | null;
1200
+ currency: string | null;
1201
+ }[];
1202
+ }>, "many">;
1203
+ truncated: z.ZodOptional<z.ZodBoolean>;
1204
+ }, "strict", z.ZodTypeAny, {
1205
+ periods: {
1206
+ month: string;
1207
+ start_date: string;
1208
+ end_date: string;
1209
+ count: number;
1210
+ items: {
1211
+ id: string;
1212
+ account_id: string | null;
1213
+ date: string | null;
1214
+ amount: number;
1215
+ merchant: string | null;
1216
+ name: string | null;
1217
+ category: string | null;
1218
+ subcategory: string | null;
1219
+ pending: boolean | null;
1220
+ currency: string | null;
1221
+ }[];
1222
+ }[];
1223
+ truncated?: boolean | undefined;
1224
+ }, {
1225
+ periods: {
1226
+ month: string;
1227
+ start_date: string;
1228
+ end_date: string;
1229
+ count: number;
1230
+ items: {
1231
+ id: string;
1232
+ account_id: string | null;
1233
+ date: string | null;
1234
+ amount: number;
1235
+ merchant: string | null;
1236
+ name: string | null;
1237
+ category: string | null;
1238
+ subcategory: string | null;
1239
+ pending: boolean | null;
1240
+ currency: string | null;
1241
+ }[];
1242
+ }[];
1243
+ truncated?: boolean | undefined;
828
1244
  }>]>;
829
1245
  }, {
830
1246
  readonly name: "search_operations";
@@ -1039,7 +1455,7 @@ export declare const privateMcpToolDescriptors: ({
1039
1455
  output_schema: JsonSchema7Document;
1040
1456
  } | {
1041
1457
  name: "get_transactions";
1042
- description: "Read-only transactions from the FinancialContext artifact. Pass `period: \"latest\"` for the fixed 10-day latest window or `period: \"YYYY-MM\"` for a month page. The latest window is not caller-configurable. Months outside the covered range return an error.";
1458
+ description: "Read-only transactions from the FinancialContext artifact. Pass exactly one of `period` or `periods`. Use `period: \"latest\"` for the fixed 10-day window, `period: \"YYYY-MM\"` for one month, or `periods` for two or three distinct months. Multi-month output contains one month page per requested period in input order. The latest window is not caller-configurable. Months outside the covered range return an error.";
1043
1459
  annotations: {
1044
1460
  readonly readOnlyHint: true;
1045
1461
  readonly destructiveHint: false;
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAoB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY3E,eAAO,MAAM,kBAAkB,IAA2B,CAAC;AAC3D,eAAO,MAAM,4BAA4B;;CAMlB,CAAC;AACxB,eAAO,MAAM,6BAA6B;;CAEnB,CAAC;AACxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;CAKp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