@warmio/contracts 3.0.3 → 3.0.5
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 +4 -2
- package/dist/api/endpoints.d.ts.map +1 -1
- package/dist/api/endpoints.js +7 -2
- package/dist/api/endpoints.js.map +1 -1
- package/dist/financial-context-artifact-protocol.d.ts +1509 -0
- package/dist/financial-context-artifact-protocol.d.ts.map +1 -0
- package/dist/financial-context-artifact-protocol.js +290 -0
- package/dist/financial-context-artifact-protocol.js.map +1 -0
- package/dist/generated/mcp-package-release-metadata.d.ts +1 -1
- package/dist/generated/mcp-package-release-metadata.js +1 -1
- package/dist/generated/private-mcp-tool-descriptors.d.ts +4 -1
- package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
- package/dist/generated/private-mcp-tool-descriptors.js +5 -1
- package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
- package/dist/generated/protected-crawler-paths.d.ts +1 -1
- package/dist/generated/protected-crawler-paths.d.ts.map +1 -1
- package/dist/generated/protected-crawler-paths.js +1 -0
- package/dist/generated/protected-crawler-paths.js.map +1 -1
- package/dist/generated/warm-app-api-manifest.d.ts +9 -6
- package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
- package/dist/generated/warm-app-api-manifest.js +10 -6
- package/dist/generated/warm-app-api-manifest.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- 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 +690 -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 +12 -7
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/schemas/financial-context.d.ts +25 -16
- package/dist/schemas/financial-context.d.ts.map +1 -1
- package/dist/schemas/financial-context.js +9 -2
- package/dist/schemas/financial-context.js.map +1 -1
- package/dist/types.d.ts +2 -4
- package/dist/types.d.ts.map +1 -1
- 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,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,MAAM,EAAE,eAAe;IACvB,gBAAgB,EAAE,UAAU;IAC5B,MAAM,EAAE;QACN,qBAAqB,EAAE,wBAAwB;QAC/C,gBAAgB,EAAE,mBAAmB;KACtC;CACO,CAAC;AAcX,MAAM,IAAI,GAAG,CACX,UAAsB,EACV,EAAE,CAAC,UAAU,CAAC;AAO5B,MAAM,mBAAmB,GAAG,CAAC,MAA2B,EAAuB,EAAE;IAC/E,MAAM,gBAAgB,GAAwB,EAAE,GAAG,MAAM,EAAE,CAAC;IAE5D,IAAI,gBAAgB,CAAC,OAAO,KAAK,yCAAyC,EAAE,CAAC;QAC3E,gBAAgB,CAAC,OAAO,GAAG,0CAA0C,CAAC;IACxE,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,CAAC;QACH,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,wUAAwU;QAC1U,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;QACjF,UAAU,EAAE,kBAAkB;QAC9B,YAAY,EAAE,+BAA+B;KAC9C,CAAC;IACF,IAAI,CAAC;QACH,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,oYAAoY;QACtY,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;QACjF,UAAU,EAAE,4BAA4B;QACxC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,+BAA+B,EAAE,iCAAiC,CAAC,CAAC;KAC5F,CAAC;CACmD,CAAC;AAExD,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,GAAG,CAClE,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"}
|
package/dist/mcp/tools.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
99
99
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
100
100
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
101
101
|
subtype: z.ZodNullable<z.ZodString>;
|
|
102
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
102
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
103
103
|
institution: z.ZodNullable<z.ZodString>;
|
|
104
104
|
mask: z.ZodNullable<z.ZodString>;
|
|
105
105
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -112,7 +112,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
112
112
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
113
113
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
114
114
|
subtype: string | null;
|
|
115
|
-
group: "cash" | "debt" | "investments" | null;
|
|
115
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
116
116
|
institution: string | null;
|
|
117
117
|
mask: string | null;
|
|
118
118
|
balance: number | null;
|
|
@@ -125,7 +125,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
125
125
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
126
126
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
127
127
|
subtype: string | null;
|
|
128
|
-
group: "cash" | "debt" | "investments" | null;
|
|
128
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
129
129
|
institution: string | null;
|
|
130
130
|
mask: string | null;
|
|
131
131
|
balance: number | null;
|
|
@@ -149,7 +149,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
149
149
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
150
150
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
151
151
|
subtype: string | null;
|
|
152
|
-
group: "cash" | "debt" | "investments" | null;
|
|
152
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
153
153
|
institution: string | null;
|
|
154
154
|
mask: string | null;
|
|
155
155
|
balance: number | null;
|
|
@@ -173,7 +173,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
173
173
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
174
174
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
175
175
|
subtype: string | null;
|
|
176
|
-
group: "cash" | "debt" | "investments" | null;
|
|
176
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
177
177
|
institution: string | null;
|
|
178
178
|
mask: string | null;
|
|
179
179
|
balance: number | null;
|
|
@@ -216,6 +216,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
216
216
|
merchant: z.ZodNullable<z.ZodString>;
|
|
217
217
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
218
218
|
next_date: z.ZodNullable<z.ZodString>;
|
|
219
|
+
excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
219
220
|
}, "strict", z.ZodTypeAny, {
|
|
220
221
|
id: string;
|
|
221
222
|
account_id: string | null;
|
|
@@ -225,6 +226,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
225
226
|
merchant: string | null;
|
|
226
227
|
amount: number | null;
|
|
227
228
|
next_date: string | null;
|
|
229
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
228
230
|
}, {
|
|
229
231
|
id: string;
|
|
230
232
|
account_id: string | null;
|
|
@@ -234,6 +236,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
234
236
|
merchant: string | null;
|
|
235
237
|
amount: number | null;
|
|
236
238
|
next_date: string | null;
|
|
239
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
237
240
|
}>, "many">;
|
|
238
241
|
budgets: z.ZodArray<z.ZodObject<{
|
|
239
242
|
id: z.ZodString;
|
|
@@ -460,7 +463,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
460
463
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
461
464
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
462
465
|
subtype: string | null;
|
|
463
|
-
group: "cash" | "debt" | "investments" | null;
|
|
466
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
464
467
|
institution: string | null;
|
|
465
468
|
mask: string | null;
|
|
466
469
|
balance: number | null;
|
|
@@ -485,6 +488,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
485
488
|
merchant: string | null;
|
|
486
489
|
amount: number | null;
|
|
487
490
|
next_date: string | null;
|
|
491
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
488
492
|
}[];
|
|
489
493
|
budgets: {
|
|
490
494
|
id: string;
|
|
@@ -575,7 +579,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
575
579
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
576
580
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
577
581
|
subtype: string | null;
|
|
578
|
-
group: "cash" | "debt" | "investments" | null;
|
|
582
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
579
583
|
institution: string | null;
|
|
580
584
|
mask: string | null;
|
|
581
585
|
balance: number | null;
|
|
@@ -600,6 +604,7 @@ export declare const privateMcpToolDefinitions: readonly [{
|
|
|
600
604
|
merchant: string | null;
|
|
601
605
|
amount: number | null;
|
|
602
606
|
next_date: string | null;
|
|
607
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
603
608
|
}[];
|
|
604
609
|
budgets: {
|
|
605
610
|
id: string;
|
package/dist/mcp/tools.d.ts.map
CHANGED
|
@@ -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;;;;;;;;;;;;CAKpB,CAAC;AACxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;CAOlB,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;EAAkD,CAAC;AAE7F,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC;;;;;;EAKrD;AAsBD,KAAK,mBAAmB,GAAG,eAAe,GAAG;IAC3C,OAAO,CAAC,EAAE,MAA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['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'];
|
|
@@ -29,7 +29,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
29
29
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
30
30
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
31
31
|
subtype: z.ZodNullable<z.ZodString>;
|
|
32
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
32
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
33
33
|
institution: z.ZodNullable<z.ZodString>;
|
|
34
34
|
mask: z.ZodNullable<z.ZodString>;
|
|
35
35
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -42,7 +42,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
42
42
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
43
43
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
44
44
|
subtype: string | null;
|
|
45
|
-
group: "cash" | "debt" | "investments" | null;
|
|
45
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
46
46
|
institution: string | null;
|
|
47
47
|
mask: string | null;
|
|
48
48
|
balance: number | null;
|
|
@@ -55,7 +55,7 @@ export declare const financialContextAccountSchema: z.ZodObject<{
|
|
|
55
55
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
56
56
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
57
57
|
subtype: string | null;
|
|
58
|
-
group: "cash" | "debt" | "investments" | null;
|
|
58
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
59
59
|
institution: string | null;
|
|
60
60
|
mask: string | null;
|
|
61
61
|
balance: number | null;
|
|
@@ -154,7 +154,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
154
154
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
155
155
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
156
156
|
subtype: z.ZodNullable<z.ZodString>;
|
|
157
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
157
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
158
158
|
institution: z.ZodNullable<z.ZodString>;
|
|
159
159
|
mask: z.ZodNullable<z.ZodString>;
|
|
160
160
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -167,7 +167,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
167
167
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
168
168
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
169
169
|
subtype: string | null;
|
|
170
|
-
group: "cash" | "debt" | "investments" | null;
|
|
170
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
171
171
|
institution: string | null;
|
|
172
172
|
mask: string | null;
|
|
173
173
|
balance: number | null;
|
|
@@ -180,7 +180,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
180
180
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
181
181
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
182
182
|
subtype: string | null;
|
|
183
|
-
group: "cash" | "debt" | "investments" | null;
|
|
183
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
184
184
|
institution: string | null;
|
|
185
185
|
mask: string | null;
|
|
186
186
|
balance: number | null;
|
|
@@ -204,7 +204,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
204
204
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
205
205
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
206
206
|
subtype: string | null;
|
|
207
|
-
group: "cash" | "debt" | "investments" | null;
|
|
207
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
208
208
|
institution: string | null;
|
|
209
209
|
mask: string | null;
|
|
210
210
|
balance: number | null;
|
|
@@ -228,7 +228,7 @@ export declare const financialContextStatusSchema: z.ZodObject<{
|
|
|
228
228
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
229
229
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
230
230
|
subtype: string | null;
|
|
231
|
-
group: "cash" | "debt" | "investments" | null;
|
|
231
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
232
232
|
institution: string | null;
|
|
233
233
|
mask: string | null;
|
|
234
234
|
balance: number | null;
|
|
@@ -271,6 +271,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
271
271
|
merchant: z.ZodNullable<z.ZodString>;
|
|
272
272
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
273
273
|
next_date: z.ZodNullable<z.ZodString>;
|
|
274
|
+
excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
274
275
|
}, "strict", z.ZodTypeAny, {
|
|
275
276
|
id: string;
|
|
276
277
|
account_id: string | null;
|
|
@@ -280,6 +281,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
280
281
|
merchant: string | null;
|
|
281
282
|
amount: number | null;
|
|
282
283
|
next_date: string | null;
|
|
284
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
283
285
|
}, {
|
|
284
286
|
id: string;
|
|
285
287
|
account_id: string | null;
|
|
@@ -289,6 +291,7 @@ export declare const financialContextRecurringSchema: z.ZodObject<{
|
|
|
289
291
|
merchant: string | null;
|
|
290
292
|
amount: number | null;
|
|
291
293
|
next_date: string | null;
|
|
294
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
292
295
|
}>;
|
|
293
296
|
export declare const financialContextBudgetSchema: z.ZodObject<{
|
|
294
297
|
id: z.ZodString;
|
|
@@ -531,7 +534,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
531
534
|
source: z.ZodNullable<z.ZodEnum<["plaid", "manual", "csv_import"]>>;
|
|
532
535
|
type: z.ZodEnum<["depository", "credit", "loan", "investment", "brokerage", "other"]>;
|
|
533
536
|
subtype: z.ZodNullable<z.ZodString>;
|
|
534
|
-
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments"]>>;
|
|
537
|
+
group: z.ZodNullable<z.ZodEnum<["cash", "debt", "investments", "other"]>>;
|
|
535
538
|
institution: z.ZodNullable<z.ZodString>;
|
|
536
539
|
mask: z.ZodNullable<z.ZodString>;
|
|
537
540
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
@@ -544,7 +547,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
544
547
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
545
548
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
546
549
|
subtype: string | null;
|
|
547
|
-
group: "cash" | "debt" | "investments" | null;
|
|
550
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
548
551
|
institution: string | null;
|
|
549
552
|
mask: string | null;
|
|
550
553
|
balance: number | null;
|
|
@@ -557,7 +560,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
557
560
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
558
561
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
559
562
|
subtype: string | null;
|
|
560
|
-
group: "cash" | "debt" | "investments" | null;
|
|
563
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
561
564
|
institution: string | null;
|
|
562
565
|
mask: string | null;
|
|
563
566
|
balance: number | null;
|
|
@@ -581,7 +584,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
581
584
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
582
585
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
583
586
|
subtype: string | null;
|
|
584
|
-
group: "cash" | "debt" | "investments" | null;
|
|
587
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
585
588
|
institution: string | null;
|
|
586
589
|
mask: string | null;
|
|
587
590
|
balance: number | null;
|
|
@@ -605,7 +608,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
605
608
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
606
609
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
607
610
|
subtype: string | null;
|
|
608
|
-
group: "cash" | "debt" | "investments" | null;
|
|
611
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
609
612
|
institution: string | null;
|
|
610
613
|
mask: string | null;
|
|
611
614
|
balance: number | null;
|
|
@@ -648,6 +651,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
648
651
|
merchant: z.ZodNullable<z.ZodString>;
|
|
649
652
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
650
653
|
next_date: z.ZodNullable<z.ZodString>;
|
|
654
|
+
excluded_from_subscriptions: z.ZodOptional<z.ZodBoolean>;
|
|
651
655
|
}, "strict", z.ZodTypeAny, {
|
|
652
656
|
id: string;
|
|
653
657
|
account_id: string | null;
|
|
@@ -657,6 +661,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
657
661
|
merchant: string | null;
|
|
658
662
|
amount: number | null;
|
|
659
663
|
next_date: string | null;
|
|
664
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
660
665
|
}, {
|
|
661
666
|
id: string;
|
|
662
667
|
account_id: string | null;
|
|
@@ -666,6 +671,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
666
671
|
merchant: string | null;
|
|
667
672
|
amount: number | null;
|
|
668
673
|
next_date: string | null;
|
|
674
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
669
675
|
}>, "many">;
|
|
670
676
|
budgets: z.ZodArray<z.ZodObject<{
|
|
671
677
|
id: z.ZodString;
|
|
@@ -892,7 +898,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
892
898
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
893
899
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
894
900
|
subtype: string | null;
|
|
895
|
-
group: "cash" | "debt" | "investments" | null;
|
|
901
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
896
902
|
institution: string | null;
|
|
897
903
|
mask: string | null;
|
|
898
904
|
balance: number | null;
|
|
@@ -917,6 +923,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
917
923
|
merchant: string | null;
|
|
918
924
|
amount: number | null;
|
|
919
925
|
next_date: string | null;
|
|
926
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
920
927
|
}[];
|
|
921
928
|
budgets: {
|
|
922
929
|
id: string;
|
|
@@ -1007,7 +1014,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
1007
1014
|
source: "csv_import" | "manual" | "plaid" | null;
|
|
1008
1015
|
type: "brokerage" | "credit" | "depository" | "investment" | "loan" | "other";
|
|
1009
1016
|
subtype: string | null;
|
|
1010
|
-
group: "cash" | "debt" | "investments" | null;
|
|
1017
|
+
group: "cash" | "debt" | "investments" | "other" | null;
|
|
1011
1018
|
institution: string | null;
|
|
1012
1019
|
mask: string | null;
|
|
1013
1020
|
balance: number | null;
|
|
@@ -1032,6 +1039,7 @@ export declare const financialContextSchema: z.ZodObject<{
|
|
|
1032
1039
|
merchant: string | null;
|
|
1033
1040
|
amount: number | null;
|
|
1034
1041
|
next_date: string | null;
|
|
1042
|
+
excluded_from_subscriptions?: boolean | undefined;
|
|
1035
1043
|
}[];
|
|
1036
1044
|
budgets: {
|
|
1037
1045
|
id: string;
|
|
@@ -1320,6 +1328,7 @@ export declare const financialContextTransactionsRequestSchema: z.ZodUnion<[z.Zo
|
|
|
1320
1328
|
month?: undefined;
|
|
1321
1329
|
latest: "1";
|
|
1322
1330
|
}>]>;
|
|
1331
|
+
export declare const financialContextRebuildReasonSchema: z.ZodEnum<["data_arrival", "edit", "daily_sweep", "first_read"]>;
|
|
1323
1332
|
export declare const financialContextRebuildRequestSchema: z.ZodObject<{
|
|
1324
1333
|
user_id: z.ZodString;
|
|
1325
1334
|
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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S = ['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'];
|
|
@@ -130,6 +130,7 @@ export const financialContextRecurringSchema = z
|
|
|
130
130
|
merchant: nullableString,
|
|
131
131
|
amount: nullableNumber,
|
|
132
132
|
next_date: nullableDate,
|
|
133
|
+
excluded_from_subscriptions: z.boolean().optional(),
|
|
133
134
|
})
|
|
134
135
|
.strict();
|
|
135
136
|
export const financialContextBudgetSchema = z
|
|
@@ -277,10 +278,16 @@ export const financialContextTransactionsRequestSchema = z.union([
|
|
|
277
278
|
.strict(),
|
|
278
279
|
z.object({ month: z.undefined().optional(), latest: z.literal('1') }).strict(),
|
|
279
280
|
]);
|
|
281
|
+
export const financialContextRebuildReasonSchema = z.enum([
|
|
282
|
+
'data_arrival',
|
|
283
|
+
'edit',
|
|
284
|
+
'daily_sweep',
|
|
285
|
+
'first_read',
|
|
286
|
+
]);
|
|
280
287
|
export const financialContextRebuildRequestSchema = z
|
|
281
288
|
.object({
|
|
282
289
|
user_id: z.string().min(1, 'Missing required field: user_id'),
|
|
283
|
-
reason:
|
|
290
|
+
reason: financialContextRebuildReasonSchema.optional(),
|
|
284
291
|
})
|
|
285
292
|
.strip();
|
|
286
293
|
//# 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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ACE,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/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
+
import type { FinancialContextArtifactEnvelope } from './financial-context-artifact-protocol.js';
|
|
2
3
|
import type { automationInputSchema, automationInvocationResponseSchema, automationOperationDescriptorSchema, automationOperationSchema, describeOperationRequestSchema, financialContextMonthSchema, financialContextMetaSchema, financialContextSchema, financialContextTransactionsRequestSchema, financialContextRebuildRequestSchema, invokeOperationRequestSchema, latestTransactionsSchema, searchOperationsRequestSchema, transactionMonthSchema } from './schemas/index.js';
|
|
3
4
|
export type AutomationInput = z.infer<typeof automationInputSchema>;
|
|
4
5
|
export type AutomationInvocationResponse = z.infer<typeof automationInvocationResponseSchema>;
|
|
@@ -35,10 +36,7 @@ export type FinancialContextResult = {
|
|
|
35
36
|
export type FinancialContextSnapshot = FinancialContext['snapshots'][number];
|
|
36
37
|
export type FinancialContextStatus = FinancialContext['status'];
|
|
37
38
|
export type FinancialContextTransactionIndex = FinancialContext['transactions'];
|
|
38
|
-
export type FinancialContextRebuildResult = {
|
|
39
|
-
context: FinancialContext;
|
|
40
|
-
meta: FinancialContextMeta;
|
|
41
|
-
months: TransactionMonth[];
|
|
39
|
+
export type FinancialContextRebuildResult = FinancialContextArtifactEnvelope & {
|
|
42
40
|
status: 'rebuilt';
|
|
43
41
|
};
|
|
44
42
|
export type FinancialContextTransactionsRequest = z.infer<typeof financialContextTransactionsRequestSchema>;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,qBAAqB,EACrB,kCAAkC,EAClC,mCAAmC,EACnC,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,yCAAyC,EACzC,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,C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pF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,sBAAsB,EAAE,GACxB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,gBAAgB,CAAC;QAC1B,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;QACvC,SAAS,CAAC,EAAE;YACV,EAAE,EAAE,MAAM,CAAC;YACX,UAAU,EAAE,MAAM,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;YACxB,KAAK,EAAE,sBAAsB,CAAC;YAC9B,cAAc,EAAE,sBAAsB,CAAC;YACvC,iBAAiB,EAAE,sBAAsB,CAAC;SAC3C,EAAE,CAAC;KACL,CAAC;IACF,QAAQ,EAAE;QACR,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACvC,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,IAAI,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmio/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
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
|
}
|