@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.
- package/dist/api/endpoints.d.ts +2 -0
- package/dist/api/endpoints.d.ts.map +1 -1
- package/dist/api/endpoints.js +5 -0
- package/dist/api/endpoints.js.map +1 -1
- package/dist/financial-context-artifact-protocol.d.ts +21 -11
- package/dist/financial-context-artifact-protocol.d.ts.map +1 -1
- package/dist/financial-context-artifact-protocol.js +37 -12
- package/dist/financial-context-artifact-protocol.js.map +1 -1
- package/dist/generated/mcp-package-release-metadata.d.ts +1 -1
- package/dist/generated/mcp-package-release-metadata.d.ts.map +1 -1
- package/dist/generated/mcp-package-release-metadata.js +1 -1
- package/dist/generated/mcp-package-release-metadata.js.map +1 -1
- package/dist/generated/private-mcp-tool-descriptors.d.ts +104 -4
- package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
- package/dist/generated/private-mcp-tool-descriptors.js +149 -6
- package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
- package/dist/generated/warm-app-api-manifest.d.ts +109 -9
- package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
- package/dist/generated/warm-app-api-manifest.js +154 -11
- package/dist/generated/warm-app-api-manifest.js.map +1 -1
- package/dist/manifest.d.ts +2 -2
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/public-output.d.ts +705 -0
- package/dist/mcp/public-output.d.ts.map +1 -0
- package/dist/mcp/public-output.js +47 -0
- package/dist/mcp/public-output.js.map +1 -0
- package/dist/mcp/public-tools.d.ts +691 -0
- package/dist/mcp/public-tools.d.ts.map +1 -0
- package/dist/mcp/public-tools.js +44 -0
- package/dist/mcp/public-tools.js.map +1 -0
- package/dist/mcp/tools.d.ts +431 -15
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +41 -5
- package/dist/mcp/tools.js.map +1 -1
- package/dist/schemas/financial-context.d.ts +26 -16
- package/dist/schemas/financial-context.d.ts.map +1 -1
- package/dist/schemas/financial-context.js +14 -2
- package/dist/schemas/financial-context.js.map +1 -1
- package/package.json +4 -4
package/dist/mcp/tools.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* oxlint-disable anti-slop/no-shape-in-symbol-names -- ZodRawShape and inputShape are canonical Zod/MCP contract terms. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
4
|
-
import { automationInputSchema, automationOperationDescriptionResponseSchema, automationOperationSearchResponseSchema, financialContextMonthSchema, FINANCIAL_CONTEXT_POSITION_DESCRIPTION, financialContextSchema, latestTransactionsSchema, transactionMonthSchema, } from '../schemas/index.js';
|
|
4
|
+
import { automationInputSchema, automationOperationDescriptionResponseSchema, automationOperationSearchResponseSchema, financialContextMonthSchema, financialContextTransactionPeriodsSchema, FINANCIAL_CONTEXT_POSITION_DESCRIPTION, financialContextSchema, latestTransactionsSchema, transactionMonthSchema, } from '../schemas/index.js';
|
|
5
5
|
export const emptyMcpInputShape = {};
|
|
6
6
|
export const getTransactionsMcpInputShape = {
|
|
7
7
|
period: z
|
|
8
8
|
.union([z.literal('latest'), financialContextMonthSchema])
|
|
9
|
-
.
|
|
9
|
+
.optional()
|
|
10
|
+
.describe('Use "latest" for the fixed 10-day window or a YYYY-MM month when periods is not provided. A month outside the covered range returns an error.'),
|
|
11
|
+
periods: financialContextTransactionPeriodsSchema
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Use two or three distinct YYYY-MM months for one read. Pass periods instead of period. Months outside the covered range return an error.'),
|
|
10
14
|
};
|
|
11
15
|
export const searchOperationsMcpInputShape = {
|
|
12
16
|
query: z.string().max(200).optional().describe('Words describing the action or data you need.'),
|
|
@@ -25,12 +29,40 @@ export const invokeOperationMcpInputShape = {
|
|
|
25
29
|
.optional()
|
|
26
30
|
.describe('Approval ID returned by describe_operation for the exact write input.'),
|
|
27
31
|
};
|
|
28
|
-
export const getTransactionsMcpInputSchema = z
|
|
32
|
+
export const getTransactionsMcpInputSchema = z
|
|
33
|
+
.object(getTransactionsMcpInputShape)
|
|
34
|
+
.strict()
|
|
35
|
+
.superRefine((input, context) => {
|
|
36
|
+
if ((input.period === undefined) === (input.periods === undefined)) {
|
|
37
|
+
context.addIssue({
|
|
38
|
+
code: z.ZodIssueCode.custom,
|
|
39
|
+
message: 'Pass exactly one of period or periods.',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
29
43
|
export function normalizeGetTransactionsMcpInput(input) {
|
|
44
|
+
if (input.periods !== undefined) {
|
|
45
|
+
return { periods: input.periods };
|
|
46
|
+
}
|
|
47
|
+
if (input.period === undefined) {
|
|
48
|
+
throw new Error('Pass exactly one of period or periods.');
|
|
49
|
+
}
|
|
30
50
|
return input.period === 'latest'
|
|
31
51
|
? { latest: true }
|
|
32
52
|
: { month: input.period };
|
|
33
53
|
}
|
|
54
|
+
export const transactionMonthMcpOutputSchema = transactionMonthSchema
|
|
55
|
+
.extend({ truncated: z.boolean().optional() })
|
|
56
|
+
.strict();
|
|
57
|
+
export const latestTransactionsMcpOutputSchema = latestTransactionsSchema
|
|
58
|
+
.extend({ truncated: z.boolean().optional() })
|
|
59
|
+
.strict();
|
|
60
|
+
export const transactionPeriodsMcpOutputSchema = z
|
|
61
|
+
.object({
|
|
62
|
+
periods: z.array(transactionMonthSchema).min(2).max(3),
|
|
63
|
+
truncated: z.boolean().optional(),
|
|
64
|
+
})
|
|
65
|
+
.strict();
|
|
34
66
|
const operationInvokeOutputSchema = z
|
|
35
67
|
.object({
|
|
36
68
|
body: z.unknown(),
|
|
@@ -57,10 +89,14 @@ export const privateMcpToolDefinitions = [
|
|
|
57
89
|
}),
|
|
58
90
|
tool({
|
|
59
91
|
name: 'get_transactions',
|
|
60
|
-
description: 'Read-only transactions from the FinancialContext artifact. Pass `period: "latest"` for the fixed 10-day
|
|
92
|
+
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.',
|
|
61
93
|
annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
62
94
|
inputShape: getTransactionsMcpInputShape,
|
|
63
|
-
outputSchema: z.union([
|
|
95
|
+
outputSchema: z.union([
|
|
96
|
+
transactionMonthMcpOutputSchema,
|
|
97
|
+
latestTransactionsMcpOutputSchema,
|
|
98
|
+
transactionPeriodsMcpOutputSchema,
|
|
99
|
+
]),
|
|
64
100
|
}),
|
|
65
101
|
tool({
|
|
66
102
|
name: 'search_operations',
|
package/dist/mcp/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAC3H,OAAO,EAAE,CAAC,EAAoB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,qBAAqB,EACrB,4CAA4C,EAC5C,uCAAuC,EACvC,2BAA2B,EAC3B,sCAAsC,EACtC,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAwB,CAAC;AAC3D,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAC,CAAC;SACzD,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA,2HAA2H;A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aAAa,EAAE,mBAAmB,CAAC,eAAe,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;CAC5F,CAAC,CACH,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const FINANCIAL_CONTEXT_VERSIONS: readonly ['v1'];
|
|
3
3
|
export declare const FINANCIAL_CONTEXT_CURRENCIES: readonly ['USD'];
|
|
4
4
|
export declare const FINANCIAL_CONTEXT_ACCOUNT_TYPES: readonly ['depository', 'credit', 'loan', 'investment', 'brokerage', 'other'];
|
|
5
|
-
export declare const FINANCIAL_CONTEXT_ACCOUNT_GROUPS: readonly ['cash', 'debt', 'investments'];
|
|
5
|
+
export declare const FINANCIAL_CONTEXT_ACCOUNT_GROUPS: readonly ['cash', 'debt', 'investments', 'other'];
|
|
6
6
|
export declare const FINANCIAL_CONTEXT_RECURRING_DIRECTIONS: readonly ['inflow', 'outflow'];
|
|
7
7
|
export declare const FINANCIAL_CONTEXT_RECURRING_STATUSES: readonly ['active', 'inactive', 'dismissed'];
|
|
8
8
|
export declare const FINANCIAL_CONTEXT_BUDGET_TYPES: readonly ['category', 'merchant'];
|
|
@@ -16,6 +16,7 @@ export declare const FREQUENCIES: readonly ['WEEKLY', 'BIWEEKLY', 'MONTHLY', 'QU
|
|
|
16
16
|
export declare const LATEST_FINANCIAL_CONTEXT_TRANSACTION_WINDOW_DAYS = 10;
|
|
17
17
|
export declare const FINANCIAL_CONTEXT_POSITION_DESCRIPTION = "The status.position field is a point-in-time (as-of-date) balance snapshot, separate from transaction and behavior windows. A null position means no position snapshot is available.";
|
|
18
18
|
export declare const financialContextMonthSchema: z.ZodString;
|
|
19
|
+
export declare const financialContextTransactionPeriodsSchema: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
19
20
|
export declare function normalizeFinancialContextTransactionSelector(period: string): {
|
|
20
21
|
readonly latest: true;
|
|
21
22
|
readonly month?: never;
|
|
@@ -29,7 +30,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
29
30
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
30
31
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
31
32
|
subtype: z.ZodNullable<z.ZodString>;
|
|
32
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
33
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
33
34
|
institution: z.ZodNullable<z.ZodString>;
|
|
34
35
|
mask: z.ZodNullable<z.ZodString>;
|
|
35
36
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -42,7 +43,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
42
43
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
43
44
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
44
45
|
subtype: string | null;
|
|
45
|
-
group: "cash" | "debt" | "investments" | null;
|
|
46
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
46
47
|
institution: string | null;
|
|
47
48
|
mask: string | null;
|
|
48
49
|
balance: number | null;
|
|
@@ -55,7 +56,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
55
56
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
56
57
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
57
58
|
subtype: string | null;
|
|
58
|
-
group: "cash" | "debt" | "investments" | null;
|
|
59
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
59
60
|
institution: string | null;
|
|
60
61
|
mask: string | null;
|
|
61
62
|
balance: number | null;
|
|
@@ -154,7 +155,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
154
155
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
155
156
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
156
157
|
subtype: z.ZodNullable<z.ZodString>;
|
|
157
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
158
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
158
159
|
institution: z.ZodNullable<z.ZodString>;
|
|
159
160
|
mask: z.ZodNullable<z.ZodString>;
|
|
160
161
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -167,7 +168,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
167
168
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
168
169
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
169
170
|
subtype: string | null;
|
|
170
|
-
group: "cash" | "debt" | "investments" | null;
|
|
171
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
171
172
|
institution: string | null;
|
|
172
173
|
mask: string | null;
|
|
173
174
|
balance: number | null;
|
|
@@ -180,7 +181,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
180
181
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
181
182
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
182
183
|
subtype: string | null;
|
|
183
|
-
group: "cash" | "debt" | "investments" | null;
|
|
184
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
184
185
|
institution: string | null;
|
|
185
186
|
mask: string | null;
|
|
186
187
|
balance: number | null;
|
|
@@ -204,7 +205,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
204
205
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
205
206
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
206
207
|
subtype: string | null;
|
|
207
|
-
group: "cash" | "debt" | "investments" | null;
|
|
208
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
208
209
|
institution: string | null;
|
|
209
210
|
mask: string | null;
|
|
210
211
|
balance: number | null;
|
|
@@ -228,7 +229,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
228
229
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
229
230
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
230
231
|
subtype: string | null;
|
|
231
|
-
group: "cash" | "debt" | "investments" | null;
|
|
232
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
232
233
|
institution: string | null;
|
|
233
234
|
mask: string | null;
|
|
234
235
|
balance: number | null;
|
|
@@ -271,6 +272,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
271
272
|
merchant: z.ZodNullable<z.ZodString>;
|
|
272
273
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
273
274
|
next_date: z.ZodNullable<z.ZodString>;
|
|
275
|
+
excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
274
276
|
}, "strict", z.ZodTypeAny, {
|
|
275
277
|
id: string;
|
|
276
278
|
account_id: string | null;
|
|
@@ -280,6 +282,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
280
282
|
merchant: string | null;
|
|
281
283
|
amount: number | null;
|
|
282
284
|
next_date: string | null;
|
|
285
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
283
286
|
}, {
|
|
284
287
|
id: string;
|
|
285
288
|
account_id: string | null;
|
|
@@ -289,6 +292,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
289
292
|
merchant: string | null;
|
|
290
293
|
amount: number | null;
|
|
291
294
|
next_date: string | null;
|
|
295
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
292
296
|
}>;
|
|
293
297
|
export declare const financialContextBudgetSchema: z.ZodObject<{
|
|
294
298
|
id: z.ZodString;
|
|
@@ -531,7 +535,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
531
535
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
532
536
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
533
537
|
subtype: z.ZodNullable<z.ZodString>;
|
|
534
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
538
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
535
539
|
institution: z.ZodNullable<z.ZodString>;
|
|
536
540
|
mask: z.ZodNullable<z.ZodString>;
|
|
537
541
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -544,7 +548,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
544
548
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
545
549
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
546
550
|
subtype: string | null;
|
|
547
|
-
group: "cash" | "debt" | "investments" | null;
|
|
551
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
548
552
|
institution: string | null;
|
|
549
553
|
mask: string | null;
|
|
550
554
|
balance: number | null;
|
|
@@ -557,7 +561,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
557
561
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
558
562
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
559
563
|
subtype: string | null;
|
|
560
|
-
group: "cash" | "debt" | "investments" | null;
|
|
564
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
561
565
|
institution: string | null;
|
|
562
566
|
mask: string | null;
|
|
563
567
|
balance: number | null;
|
|
@@ -581,7 +585,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
581
585
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
582
586
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
583
587
|
subtype: string | null;
|
|
584
|
-
group: "cash" | "debt" | "investments" | null;
|
|
588
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
585
589
|
institution: string | null;
|
|
586
590
|
mask: string | null;
|
|
587
591
|
balance: number | null;
|
|
@@ -605,7 +609,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
605
609
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
606
610
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
607
611
|
subtype: string | null;
|
|
608
|
-
group: "cash" | "debt" | "investments" | null;
|
|
612
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
609
613
|
institution: string | null;
|
|
610
614
|
mask: string | null;
|
|
611
615
|
balance: number | null;
|
|
@@ -648,6 +652,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
648
652
|
merchant: z.ZodNullable<z.ZodString>;
|
|
649
653
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
650
654
|
next_date: z.ZodNullable<z.ZodString>;
|
|
655
|
+
excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
651
656
|
}, "strict", z.ZodTypeAny, {
|
|
652
657
|
id: string;
|
|
653
658
|
account_id: string | null;
|
|
@@ -657,6 +662,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
657
662
|
merchant: string | null;
|
|
658
663
|
amount: number | null;
|
|
659
664
|
next_date: string | null;
|
|
665
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
660
666
|
}, {
|
|
661
667
|
id: string;
|
|
662
668
|
account_id: string | null;
|
|
@@ -666,6 +672,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
666
672
|
merchant: string | null;
|
|
667
673
|
amount: number | null;
|
|
668
674
|
next_date: string | null;
|
|
675
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
669
676
|
}>, "many">;
|
|
670
677
|
budgets: z.ZodArray<z.ZodObject<{
|
|
671
678
|
id: z.ZodString;
|
|
@@ -892,7 +899,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
892
899
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
893
900
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
894
901
|
subtype: string | null;
|
|
895
|
-
group: "cash" | "debt" | "investments" | null;
|
|
902
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
896
903
|
institution: string | null;
|
|
897
904
|
mask: string | null;
|
|
898
905
|
balance: number | null;
|
|
@@ -917,6 +924,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
917
924
|
merchant: string | null;
|
|
918
925
|
amount: number | null;
|
|
919
926
|
next_date: string | null;
|
|
927
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
920
928
|
}[];
|
|
921
929
|
budgets: {
|
|
922
930
|
id: string;
|
|
@@ -1007,7 +1015,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
1007
1015
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
1008
1016
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
1009
1017
|
subtype: string | null;
|
|
1010
|
-
group: "cash" | "debt" | "investments" | null;
|
|
1018
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
1011
1019
|
institution: string | null;
|
|
1012
1020
|
mask: string | null;
|
|
1013
1021
|
balance: number | null;
|
|
@@ -1032,6 +1040,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
1032
1040
|
merchant: string | null;
|
|
1033
1041
|
amount: number | null;
|
|
1034
1042
|
next_date: string | null;
|
|
1043
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
1035
1044
|
}[];
|
|
1036
1045
|
budgets: {
|
|
1037
1046
|
id: string;
|
|
@@ -1320,6 +1329,7 @@ export declare const financialContextTransactionsRequestSchema: z.ZodUnion<[z.Zo
|
|
|
1320
1329
|
month?: undefined;
|
|
1321
1330
|
latest: "1";
|
|
1322
1331
|
}>]>;
|
|
1332
|
+
export declare const financialContextRebuildReasonSchema: z.ZodEnum<["data_arrival", "edit", "daily_sweep", "first_read"]>;
|
|
1323
1333
|
export declare const financialContextRebuildRequestSchema: z.ZodObject<{
|
|
1324
1334
|
user_id: z.ZodString;
|
|
1325
1335
|
reason: z.ZodOptional<z.ZodEnum<["data_arrival", "edit", "daily_sweep", "first_read"]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-context.d.ts","sourceRoot":"","sources":["../../src/schemas/financial-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B,YAAI,IAAI,CAAU,CAAC;AAC1D,eAAO,MAAM,4BAA4B,YAAI,KAAK,CAAU,CAAC;AAC7D,eAAO,MAAM,+BAA+B,YAC1C,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,WAAW,EACX,OAAO,CACC,CAAC;AACX,eAAO,MAAM,gCAAgC,YAAI,MAAM,EAAE,MAAM,EAAE,aAAa,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"financial-context.d.ts","sourceRoot":"","sources":["../../src/schemas/financial-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B,YAAI,IAAI,CAAU,CAAC;AAC1D,eAAO,MAAM,4BAA4B,YAAI,KAAK,CAAU,CAAC;AAC7D,eAAO,MAAM,+BAA+B,YAC1C,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,WAAW,EACX,OAAO,CACC,CAAC;AACX,eAAO,MAAM,gCAAgC,YAAI,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAU,CAAC;AAClG,eAAO,MAAM,sCAAsC,YAAI,QAAQ,EAAE,SAAS,CAAU,CAAC;AACrF,eAAO,MAAM,oCAAoC,YAAI,QAAQ,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC;AACjG,eAAO,MAAM,8BAA8B,YAAI,UAAU,EAAE,UAAU,CAAU,CAAC;AAChF,eAAO,MAAM,gCAAgC,YAAI,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;AAC3F,eAAO,MAAM,iCAAiC,YAAI,OAAO,EAAE,SAAS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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexB,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEZ,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;IAQpD,CAAC;AAEH,eAAO,MAAM,mCAAmC,kEAK9C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;EAKvC,CAAC"}
|
|
@@ -9,7 +9,7 @@ export const FINANCIAL_CONTEXT_ACCOUNT_TYPES = [
|
|
|
9
9
|
'brokerage',
|
|
10
10
|
'other',
|
|
11
11
|
];
|
|
12
|
-
export const FINANCIAL_CONTEXT_ACCOUNT_GROUPS = ['cash', 'debt', 'investments'];
|
|
12
|
+
export const FINANCIAL_CONTEXT_ACCOUNT_GROUPS = ['cash', 'debt', 'investments', 'other'];
|
|
13
13
|
export const FINANCIAL_CONTEXT_RECURRING_DIRECTIONS = ['inflow', 'outflow'];
|
|
14
14
|
export const FINANCIAL_CONTEXT_RECURRING_STATUSES = ['active', 'inactive', 'dismissed'];
|
|
15
15
|
export const FINANCIAL_CONTEXT_BUDGET_TYPES = ['category', 'merchant'];
|
|
@@ -51,6 +51,11 @@ export const FINANCIAL_CONTEXT_POSITION_DESCRIPTION = 'The status.position field
|
|
|
51
51
|
export const financialContextMonthSchema = z
|
|
52
52
|
.string()
|
|
53
53
|
.regex(/^\d{4}-(0[1-9]|1[0-2])$/, 'Expected YYYY-MM month.');
|
|
54
|
+
export const financialContextTransactionPeriodsSchema = z
|
|
55
|
+
.array(financialContextMonthSchema)
|
|
56
|
+
.min(2)
|
|
57
|
+
.max(3)
|
|
58
|
+
.refine((periods) => new Set(periods).size === periods.length, 'Expected unique YYYY-MM periods.');
|
|
54
59
|
export function normalizeFinancialContextTransactionSelector(period) {
|
|
55
60
|
if (period === 'latest') {
|
|
56
61
|
return { latest: true };
|
|
@@ -130,6 +135,7 @@ export const financialContextRecurringSchema = z
|
|
|
130
135
|
merchant: nullableString,
|
|
131
136
|
amount: nullableNumber,
|
|
132
137
|
next_date: nullableDate,
|
|
138
|
+
excluded_from_subscriptions: z.boolean().optional(),
|
|
133
139
|
})
|
|
134
140
|
.strict();
|
|
135
141
|
export const financialContextBudgetSchema = z
|
|
@@ -277,10 +283,16 @@ export const financialContextTransactionsRequestSchema = z.union([
|
|
|
277
283
|
.strict(),
|
|
278
284
|
z.object({ month: z.undefined().optional(), latest: z.literal('1') }).strict(),
|
|
279
285
|
]);
|
|
286
|
+
export const financialContextRebuildReasonSchema = z.enum([
|
|
287
|
+
'data_arrival',
|
|
288
|
+
'edit',
|
|
289
|
+
'daily_sweep',
|
|
290
|
+
'first_read',
|
|
291
|
+
]);
|
|
280
292
|
export const financialContextRebuildRequestSchema = z
|
|
281
293
|
.object({
|
|
282
294
|
user_id: z.string().min(1, 'Missing required field: user_id'),
|
|
283
|
-
reason:
|
|
295
|
+
reason: financialContextRebuildReasonSchema.optional(),
|
|
284
296
|
})
|
|
285
297
|
.strip();
|
|
286
298
|
//# sourceMappingURL=financial-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-context.js","sourceRoot":"","sources":["../../src/schemas/financial-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAI,CAAU,CAAC;AAC1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAK,CAAU,CAAC;AAC7D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C;IACN,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,gDAAgD,CAAC;IACxE,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iCAAiC,CAAC;CAClD,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/D,CAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,MAAM,EAAE;IACX,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,IAAI,CAAC;IACxD,cAAc;IACd,MAAM;IACN,aAAa;IACb,YAAY;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,iCAAiC,CAAC;IAC7D,MAAM,EAAE,mCAAmC,CAAC,QAAQ,EAAE;CACvD,CAAC;KACD,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmio/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Side-effect-free public API and MCP contracts for Warm.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
|
-
"build": "
|
|
89
|
-
"typecheck": "
|
|
88
|
+
"build": "tsc-ts -p tsconfig.build.json && node scripts/copy-openapi-template.mjs",
|
|
89
|
+
"typecheck": "tsc-ts --noEmit",
|
|
90
90
|
"release-manifest:digest": "node scripts/contract-release-digest.mjs",
|
|
91
91
|
"pack:check": "pnpm pack --dry-run"
|
|
92
92
|
},
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@types/node": "^24.10.9",
|
|
100
|
-
"
|
|
100
|
+
"tsc-ts": "0.0.2",
|
|
101
101
|
"typescript": "7.0.2"
|
|
102
102
|
}
|
|
103
103
|
}
|