@warmio/contracts 3.0.10 → 3.1.0
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 +11 -0
- package/dist/api/endpoints.d.ts.map +1 -1
- package/dist/api/endpoints.js +9 -0
- package/dist/api/endpoints.js.map +1 -1
- package/dist/financial-context-artifact-protocol.d.ts +36 -0
- package/dist/financial-context-artifact-protocol.d.ts.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 +27 -0
- package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -1
- package/dist/generated/private-mcp-tool-descriptors.js +36 -0
- package/dist/generated/private-mcp-tool-descriptors.js.map +1 -1
- package/dist/generated/warm-app-api-manifest.d.ts +32 -5
- package/dist/generated/warm-app-api-manifest.d.ts.map +1 -1
- package/dist/generated/warm-app-api-manifest.js +41 -5
- 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/card-benefits.d.ts +380 -0
- package/dist/mcp/card-benefits.d.ts.map +1 -0
- package/dist/mcp/card-benefits.js +109 -0
- package/dist/mcp/card-benefits.js.map +1 -0
- package/dist/mcp/hosted-write-tools.d.ts +393 -1
- package/dist/mcp/hosted-write-tools.d.ts.map +1 -1
- package/dist/mcp/hosted-write-tools.js +9 -0
- package/dist/mcp/hosted-write-tools.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/public-output.d.ts +241 -3
- package/dist/mcp/public-output.d.ts.map +1 -1
- package/dist/mcp/public-output.js +35 -2
- package/dist/mcp/public-output.js.map +1 -1
- package/dist/mcp/public-tools.d.ts +196 -4
- package/dist/mcp/public-tools.d.ts.map +1 -1
- package/dist/mcp/public-tools.js +7 -3
- package/dist/mcp/public-tools.js.map +1 -1
- package/dist/mcp/tools.d.ts +68 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/schemas/financial-context.d.ts +26 -0
- package/dist/schemas/financial-context.d.ts.map +1 -1
- package/dist/schemas/financial-context.js +2 -0
- package/dist/schemas/financial-context.js.map +1 -1
- package/dist/scrub-text.d.ts +4 -0
- package/dist/scrub-text.d.ts.map +1 -0
- package/dist/scrub-text.js +18 -0
- package/dist/scrub-text.js.map +1 -0
- package/package.json +1 -1
|
@@ -10,21 +10,30 @@ export declare const publicMcpTransactionSchema: z.ZodObject<Pick<{
|
|
|
10
10
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
11
11
|
pending: z.ZodNullable<z.ZodBoolean>;
|
|
12
12
|
currency: z.ZodNullable<z.ZodString>;
|
|
13
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
15
|
is_internal_transfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
16
|
transfer_pair_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
transfers_interpretation_version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
16
18
|
merchants_interpretation_version: z.ZodOptional<z.ZodLiteral<0>>;
|
|
17
|
-
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "pending" | "subcategory" | "
|
|
19
|
+
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "notes" | "pending" | "subcategory" | "tags" | "transfer_pair_id" | "transfers_interpretation_version"> & {
|
|
20
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
23
|
date: string | null;
|
|
19
24
|
amount: number;
|
|
20
25
|
category: string | null;
|
|
21
26
|
subcategory: string | null;
|
|
22
27
|
pending: boolean | null;
|
|
23
28
|
currency: string | null;
|
|
29
|
+
notes?: string | null | undefined;
|
|
30
|
+
tags?: string[] | undefined;
|
|
24
31
|
is_internal_transfer?: boolean | null | undefined;
|
|
25
32
|
transfer_pair_id?: string | null | undefined;
|
|
26
33
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
27
34
|
merchants_interpretation_version?: 0 | undefined;
|
|
35
|
+
merchant?: string | null | undefined;
|
|
36
|
+
name?: string | null | undefined;
|
|
28
37
|
}, {
|
|
29
38
|
date: string | null;
|
|
30
39
|
amount: number;
|
|
@@ -32,10 +41,14 @@ export declare const publicMcpTransactionSchema: z.ZodObject<Pick<{
|
|
|
32
41
|
subcategory: string | null;
|
|
33
42
|
pending: boolean | null;
|
|
34
43
|
currency: string | null;
|
|
44
|
+
notes?: string | null | undefined;
|
|
45
|
+
tags?: string[] | undefined;
|
|
35
46
|
is_internal_transfer?: boolean | null | undefined;
|
|
36
47
|
transfer_pair_id?: string | null | undefined;
|
|
37
48
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
38
49
|
merchants_interpretation_version?: 0 | undefined;
|
|
50
|
+
merchant?: string | null | undefined;
|
|
51
|
+
name?: string | null | undefined;
|
|
39
52
|
}>;
|
|
40
53
|
export declare const publicMcpFinancialContextSchema: z.ZodObject<Pick<{
|
|
41
54
|
version: z.ZodEnum<["v1"]>;
|
|
@@ -570,21 +583,30 @@ export declare const publicMcpTransactionMonthSchema: z.ZodObject<{
|
|
|
570
583
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
571
584
|
pending: z.ZodNullable<z.ZodBoolean>;
|
|
572
585
|
currency: z.ZodNullable<z.ZodString>;
|
|
586
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
573
588
|
is_internal_transfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
574
589
|
transfer_pair_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
575
590
|
transfers_interpretation_version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
576
591
|
merchants_interpretation_version: z.ZodOptional<z.ZodLiteral<0>>;
|
|
577
|
-
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "pending" | "subcategory" | "
|
|
592
|
+
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "notes" | "pending" | "subcategory" | "tags" | "transfer_pair_id" | "transfers_interpretation_version"> & {
|
|
593
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
595
|
+
}, "strict", z.ZodTypeAny, {
|
|
578
596
|
date: string | null;
|
|
579
597
|
amount: number;
|
|
580
598
|
category: string | null;
|
|
581
599
|
subcategory: string | null;
|
|
582
600
|
pending: boolean | null;
|
|
583
601
|
currency: string | null;
|
|
602
|
+
notes?: string | null | undefined;
|
|
603
|
+
tags?: string[] | undefined;
|
|
584
604
|
is_internal_transfer?: boolean | null | undefined;
|
|
585
605
|
transfer_pair_id?: string | null | undefined;
|
|
586
606
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
587
607
|
merchants_interpretation_version?: 0 | undefined;
|
|
608
|
+
merchant?: string | null | undefined;
|
|
609
|
+
name?: string | null | undefined;
|
|
588
610
|
}, {
|
|
589
611
|
date: string | null;
|
|
590
612
|
amount: number;
|
|
@@ -592,10 +614,14 @@ export declare const publicMcpTransactionMonthSchema: z.ZodObject<{
|
|
|
592
614
|
subcategory: string | null;
|
|
593
615
|
pending: boolean | null;
|
|
594
616
|
currency: string | null;
|
|
617
|
+
notes?: string | null | undefined;
|
|
618
|
+
tags?: string[] | undefined;
|
|
595
619
|
is_internal_transfer?: boolean | null | undefined;
|
|
596
620
|
transfer_pair_id?: string | null | undefined;
|
|
597
621
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
598
622
|
merchants_interpretation_version?: 0 | undefined;
|
|
623
|
+
merchant?: string | null | undefined;
|
|
624
|
+
name?: string | null | undefined;
|
|
599
625
|
}>, "many">;
|
|
600
626
|
}, "strict", z.ZodTypeAny, {
|
|
601
627
|
month: string;
|
|
@@ -609,10 +635,14 @@ export declare const publicMcpTransactionMonthSchema: z.ZodObject<{
|
|
|
609
635
|
subcategory: string | null;
|
|
610
636
|
pending: boolean | null;
|
|
611
637
|
currency: string | null;
|
|
638
|
+
notes?: string | null | undefined;
|
|
639
|
+
tags?: string[] | undefined;
|
|
612
640
|
is_internal_transfer?: boolean | null | undefined;
|
|
613
641
|
transfer_pair_id?: string | null | undefined;
|
|
614
642
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
615
643
|
merchants_interpretation_version?: 0 | undefined;
|
|
644
|
+
merchant?: string | null | undefined;
|
|
645
|
+
name?: string | null | undefined;
|
|
616
646
|
}[];
|
|
617
647
|
}, {
|
|
618
648
|
month: string;
|
|
@@ -626,11 +656,166 @@ export declare const publicMcpTransactionMonthSchema: z.ZodObject<{
|
|
|
626
656
|
subcategory: string | null;
|
|
627
657
|
pending: boolean | null;
|
|
628
658
|
currency: string | null;
|
|
659
|
+
notes?: string | null | undefined;
|
|
660
|
+
tags?: string[] | undefined;
|
|
629
661
|
is_internal_transfer?: boolean | null | undefined;
|
|
630
662
|
transfer_pair_id?: string | null | undefined;
|
|
631
663
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
632
664
|
merchants_interpretation_version?: 0 | undefined;
|
|
665
|
+
merchant?: string | null | undefined;
|
|
666
|
+
name?: string | null | undefined;
|
|
667
|
+
}[];
|
|
668
|
+
}>;
|
|
669
|
+
export declare const publicMcpTransactionPeriodsSchema: z.ZodObject<{
|
|
670
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
671
|
+
month: z.ZodString;
|
|
672
|
+
start_date: z.ZodString;
|
|
673
|
+
end_date: z.ZodString;
|
|
674
|
+
count: z.ZodNumber;
|
|
675
|
+
} & {
|
|
676
|
+
items: z.ZodArray<z.ZodObject<Pick<{
|
|
677
|
+
id: z.ZodString;
|
|
678
|
+
account_id: z.ZodNullable<z.ZodString>;
|
|
679
|
+
date: z.ZodNullable<z.ZodString>;
|
|
680
|
+
amount: z.ZodNumber;
|
|
681
|
+
merchant: z.ZodNullable<z.ZodString>;
|
|
682
|
+
name: z.ZodNullable<z.ZodString>;
|
|
683
|
+
category: z.ZodNullable<z.ZodString>;
|
|
684
|
+
subcategory: z.ZodNullable<z.ZodString>;
|
|
685
|
+
pending: z.ZodNullable<z.ZodBoolean>;
|
|
686
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
687
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
688
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
689
|
+
is_internal_transfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
690
|
+
transfer_pair_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
691
|
+
transfers_interpretation_version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
692
|
+
merchants_interpretation_version: z.ZodOptional<z.ZodLiteral<0>>;
|
|
693
|
+
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "notes" | "pending" | "subcategory" | "tags" | "transfer_pair_id" | "transfers_interpretation_version"> & {
|
|
694
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
696
|
+
}, "strict", z.ZodTypeAny, {
|
|
697
|
+
date: string | null;
|
|
698
|
+
amount: number;
|
|
699
|
+
category: string | null;
|
|
700
|
+
subcategory: string | null;
|
|
701
|
+
pending: boolean | null;
|
|
702
|
+
currency: string | null;
|
|
703
|
+
notes?: string | null | undefined;
|
|
704
|
+
tags?: string[] | undefined;
|
|
705
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
706
|
+
transfer_pair_id?: string | null | undefined;
|
|
707
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
708
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
709
|
+
merchant?: string | null | undefined;
|
|
710
|
+
name?: string | null | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
date: string | null;
|
|
713
|
+
amount: number;
|
|
714
|
+
category: string | null;
|
|
715
|
+
subcategory: string | null;
|
|
716
|
+
pending: boolean | null;
|
|
717
|
+
currency: string | null;
|
|
718
|
+
notes?: string | null | undefined;
|
|
719
|
+
tags?: string[] | undefined;
|
|
720
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
721
|
+
transfer_pair_id?: string | null | undefined;
|
|
722
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
723
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
724
|
+
merchant?: string | null | undefined;
|
|
725
|
+
name?: string | null | undefined;
|
|
726
|
+
}>, "many">;
|
|
727
|
+
}, "strict", z.ZodTypeAny, {
|
|
728
|
+
month: string;
|
|
729
|
+
start_date: string;
|
|
730
|
+
end_date: string;
|
|
731
|
+
count: number;
|
|
732
|
+
items: {
|
|
733
|
+
date: string | null;
|
|
734
|
+
amount: number;
|
|
735
|
+
category: string | null;
|
|
736
|
+
subcategory: string | null;
|
|
737
|
+
pending: boolean | null;
|
|
738
|
+
currency: string | null;
|
|
739
|
+
notes?: string | null | undefined;
|
|
740
|
+
tags?: string[] | undefined;
|
|
741
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
742
|
+
transfer_pair_id?: string | null | undefined;
|
|
743
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
744
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
745
|
+
merchant?: string | null | undefined;
|
|
746
|
+
name?: string | null | undefined;
|
|
747
|
+
}[];
|
|
748
|
+
}, {
|
|
749
|
+
month: string;
|
|
750
|
+
start_date: string;
|
|
751
|
+
end_date: string;
|
|
752
|
+
count: number;
|
|
753
|
+
items: {
|
|
754
|
+
date: string | null;
|
|
755
|
+
amount: number;
|
|
756
|
+
category: string | null;
|
|
757
|
+
subcategory: string | null;
|
|
758
|
+
pending: boolean | null;
|
|
759
|
+
currency: string | null;
|
|
760
|
+
notes?: string | null | undefined;
|
|
761
|
+
tags?: string[] | undefined;
|
|
762
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
763
|
+
transfer_pair_id?: string | null | undefined;
|
|
764
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
765
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
766
|
+
merchant?: string | null | undefined;
|
|
767
|
+
name?: string | null | undefined;
|
|
768
|
+
}[];
|
|
769
|
+
}>, "many">;
|
|
770
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
771
|
+
}, "strict", z.ZodTypeAny, {
|
|
772
|
+
periods: {
|
|
773
|
+
month: string;
|
|
774
|
+
start_date: string;
|
|
775
|
+
end_date: string;
|
|
776
|
+
count: number;
|
|
777
|
+
items: {
|
|
778
|
+
date: string | null;
|
|
779
|
+
amount: number;
|
|
780
|
+
category: string | null;
|
|
781
|
+
subcategory: string | null;
|
|
782
|
+
pending: boolean | null;
|
|
783
|
+
currency: string | null;
|
|
784
|
+
notes?: string | null | undefined;
|
|
785
|
+
tags?: string[] | undefined;
|
|
786
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
787
|
+
transfer_pair_id?: string | null | undefined;
|
|
788
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
789
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
790
|
+
merchant?: string | null | undefined;
|
|
791
|
+
name?: string | null | undefined;
|
|
792
|
+
}[];
|
|
633
793
|
}[];
|
|
794
|
+
truncated?: boolean | undefined;
|
|
795
|
+
}, {
|
|
796
|
+
periods: {
|
|
797
|
+
month: string;
|
|
798
|
+
start_date: string;
|
|
799
|
+
end_date: string;
|
|
800
|
+
count: number;
|
|
801
|
+
items: {
|
|
802
|
+
date: string | null;
|
|
803
|
+
amount: number;
|
|
804
|
+
category: string | null;
|
|
805
|
+
subcategory: string | null;
|
|
806
|
+
pending: boolean | null;
|
|
807
|
+
currency: string | null;
|
|
808
|
+
notes?: string | null | undefined;
|
|
809
|
+
tags?: string[] | undefined;
|
|
810
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
811
|
+
transfer_pair_id?: string | null | undefined;
|
|
812
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
813
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
814
|
+
merchant?: string | null | undefined;
|
|
815
|
+
name?: string | null | undefined;
|
|
816
|
+
}[];
|
|
817
|
+
}[];
|
|
818
|
+
truncated?: boolean | undefined;
|
|
634
819
|
}>;
|
|
635
820
|
export declare const publicMcpLatestTransactionsSchema: z.ZodObject<{
|
|
636
821
|
since: z.ZodString;
|
|
@@ -648,21 +833,30 @@ export declare const publicMcpLatestTransactionsSchema: z.ZodObject<{
|
|
|
648
833
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
649
834
|
pending: z.ZodNullable<z.ZodBoolean>;
|
|
650
835
|
currency: z.ZodNullable<z.ZodString>;
|
|
836
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
837
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
651
838
|
is_internal_transfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
652
839
|
transfer_pair_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
840
|
transfers_interpretation_version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
654
841
|
merchants_interpretation_version: z.ZodOptional<z.ZodLiteral<0>>;
|
|
655
|
-
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "pending" | "subcategory" | "
|
|
842
|
+
}, "amount" | "category" | "currency" | "date" | "is_internal_transfer" | "merchants_interpretation_version" | "notes" | "pending" | "subcategory" | "tags" | "transfer_pair_id" | "transfers_interpretation_version"> & {
|
|
843
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
844
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
|
+
}, "strict", z.ZodTypeAny, {
|
|
656
846
|
date: string | null;
|
|
657
847
|
amount: number;
|
|
658
848
|
category: string | null;
|
|
659
849
|
subcategory: string | null;
|
|
660
850
|
pending: boolean | null;
|
|
661
851
|
currency: string | null;
|
|
852
|
+
notes?: string | null | undefined;
|
|
853
|
+
tags?: string[] | undefined;
|
|
662
854
|
is_internal_transfer?: boolean | null | undefined;
|
|
663
855
|
transfer_pair_id?: string | null | undefined;
|
|
664
856
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
665
857
|
merchants_interpretation_version?: 0 | undefined;
|
|
858
|
+
merchant?: string | null | undefined;
|
|
859
|
+
name?: string | null | undefined;
|
|
666
860
|
}, {
|
|
667
861
|
date: string | null;
|
|
668
862
|
amount: number;
|
|
@@ -670,10 +864,14 @@ export declare const publicMcpLatestTransactionsSchema: z.ZodObject<{
|
|
|
670
864
|
subcategory: string | null;
|
|
671
865
|
pending: boolean | null;
|
|
672
866
|
currency: string | null;
|
|
867
|
+
notes?: string | null | undefined;
|
|
868
|
+
tags?: string[] | undefined;
|
|
673
869
|
is_internal_transfer?: boolean | null | undefined;
|
|
674
870
|
transfer_pair_id?: string | null | undefined;
|
|
675
871
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
676
872
|
merchants_interpretation_version?: 0 | undefined;
|
|
873
|
+
merchant?: string | null | undefined;
|
|
874
|
+
name?: string | null | undefined;
|
|
677
875
|
}>, "many">;
|
|
678
876
|
}, "strict", z.ZodTypeAny, {
|
|
679
877
|
since: string;
|
|
@@ -686,10 +884,14 @@ export declare const publicMcpLatestTransactionsSchema: z.ZodObject<{
|
|
|
686
884
|
subcategory: string | null;
|
|
687
885
|
pending: boolean | null;
|
|
688
886
|
currency: string | null;
|
|
887
|
+
notes?: string | null | undefined;
|
|
888
|
+
tags?: string[] | undefined;
|
|
689
889
|
is_internal_transfer?: boolean | null | undefined;
|
|
690
890
|
transfer_pair_id?: string | null | undefined;
|
|
691
891
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
692
892
|
merchants_interpretation_version?: 0 | undefined;
|
|
893
|
+
merchant?: string | null | undefined;
|
|
894
|
+
name?: string | null | undefined;
|
|
693
895
|
}[];
|
|
694
896
|
}, {
|
|
695
897
|
since: string;
|
|
@@ -702,10 +904,14 @@ export declare const publicMcpLatestTransactionsSchema: z.ZodObject<{
|
|
|
702
904
|
subcategory: string | null;
|
|
703
905
|
pending: boolean | null;
|
|
704
906
|
currency: string | null;
|
|
907
|
+
notes?: string | null | undefined;
|
|
908
|
+
tags?: string[] | undefined;
|
|
705
909
|
is_internal_transfer?: boolean | null | undefined;
|
|
706
910
|
transfer_pair_id?: string | null | undefined;
|
|
707
911
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
708
912
|
merchants_interpretation_version?: 0 | undefined;
|
|
913
|
+
merchant?: string | null | undefined;
|
|
914
|
+
name?: string | null | undefined;
|
|
709
915
|
}[];
|
|
710
916
|
}>;
|
|
711
917
|
export declare function projectPublicMcpFinancialContext(input: unknown): {
|
|
@@ -744,11 +950,39 @@ export declare function projectPublicMcpTransactions(input: unknown): {
|
|
|
744
950
|
subcategory: string | null;
|
|
745
951
|
pending: boolean | null;
|
|
746
952
|
currency: string | null;
|
|
953
|
+
notes?: string | null | undefined;
|
|
954
|
+
tags?: string[] | undefined;
|
|
747
955
|
is_internal_transfer?: boolean | null | undefined;
|
|
748
956
|
transfer_pair_id?: string | null | undefined;
|
|
749
957
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
750
958
|
merchants_interpretation_version?: 0 | undefined;
|
|
959
|
+
merchant?: string | null | undefined;
|
|
960
|
+
name?: string | null | undefined;
|
|
961
|
+
}[];
|
|
962
|
+
} | {
|
|
963
|
+
periods: {
|
|
964
|
+
month: string;
|
|
965
|
+
start_date: string;
|
|
966
|
+
end_date: string;
|
|
967
|
+
count: number;
|
|
968
|
+
items: {
|
|
969
|
+
date: string | null;
|
|
970
|
+
amount: number;
|
|
971
|
+
category: string | null;
|
|
972
|
+
subcategory: string | null;
|
|
973
|
+
pending: boolean | null;
|
|
974
|
+
currency: string | null;
|
|
975
|
+
notes?: string | null | undefined;
|
|
976
|
+
tags?: string[] | undefined;
|
|
977
|
+
is_internal_transfer?: boolean | null | undefined;
|
|
978
|
+
transfer_pair_id?: string | null | undefined;
|
|
979
|
+
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
980
|
+
merchants_interpretation_version?: 0 | undefined;
|
|
981
|
+
merchant?: string | null | undefined;
|
|
982
|
+
name?: string | null | undefined;
|
|
983
|
+
}[];
|
|
751
984
|
}[];
|
|
985
|
+
truncated?: boolean | undefined;
|
|
752
986
|
} | {
|
|
753
987
|
since: string;
|
|
754
988
|
window_days: 10;
|
|
@@ -760,10 +994,14 @@ export declare function projectPublicMcpTransactions(input: unknown): {
|
|
|
760
994
|
subcategory: string | null;
|
|
761
995
|
pending: boolean | null;
|
|
762
996
|
currency: string | null;
|
|
997
|
+
notes?: string | null | undefined;
|
|
998
|
+
tags?: string[] | undefined;
|
|
763
999
|
is_internal_transfer?: boolean | null | undefined;
|
|
764
1000
|
transfer_pair_id?: string | null | undefined;
|
|
765
1001
|
transfers_interpretation_version?: 0 | 1 | undefined;
|
|
766
1002
|
merchants_interpretation_version?: 0 | undefined;
|
|
1003
|
+
merchant?: string | null | undefined;
|
|
1004
|
+
name?: string | null | undefined;
|
|
767
1005
|
}[];
|
|
768
1006
|
};
|
|
769
1007
|
//# sourceMappingURL=public-output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-output.d.ts","sourceRoot":"","sources":["../../src/mcp/public-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"public-output.d.ts","sourceRoot":"","sources":["../../src/mcp/public-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAC;AAEL,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxC,CAAC;AAEL,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5C,CAAC;AAsCH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;EAe9D;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB1D"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { financialContextSchema, financialContextStatusSchema, financialContextTransactionSchema, latestTransactionsSchema, transactionMonthSchema, } from '../schemas/index.js';
|
|
3
|
-
|
|
3
|
+
import { transactionPeriodsMcpOutputSchema } from './tools.js';
|
|
4
|
+
export const publicMcpTransactionSchema = financialContextTransactionSchema
|
|
5
|
+
.pick({
|
|
4
6
|
date: true,
|
|
5
7
|
amount: true,
|
|
6
8
|
category: true,
|
|
@@ -11,6 +13,12 @@ export const publicMcpTransactionSchema = financialContextTransactionSchema.pick
|
|
|
11
13
|
transfer_pair_id: true,
|
|
12
14
|
transfers_interpretation_version: true,
|
|
13
15
|
merchants_interpretation_version: true,
|
|
16
|
+
notes: true,
|
|
17
|
+
tags: true,
|
|
18
|
+
})
|
|
19
|
+
.extend({
|
|
20
|
+
merchant: financialContextTransactionSchema.shape.merchant.optional(),
|
|
21
|
+
name: financialContextTransactionSchema.shape.name.optional(),
|
|
14
22
|
});
|
|
15
23
|
export const publicMcpFinancialContextSchema = financialContextSchema
|
|
16
24
|
.pick({ version: true, updated_at: true, currency: true, transactions: true })
|
|
@@ -21,6 +29,12 @@ export const publicMcpFinancialContextSchema = financialContextSchema
|
|
|
21
29
|
export const publicMcpTransactionMonthSchema = transactionMonthSchema.extend({
|
|
22
30
|
items: z.array(publicMcpTransactionSchema),
|
|
23
31
|
});
|
|
32
|
+
export const publicMcpTransactionPeriodsSchema = z
|
|
33
|
+
.object({
|
|
34
|
+
periods: z.array(publicMcpTransactionMonthSchema).min(2).max(3),
|
|
35
|
+
truncated: z.boolean().optional(),
|
|
36
|
+
})
|
|
37
|
+
.strict();
|
|
24
38
|
export const publicMcpLatestTransactionsSchema = latestTransactionsSchema.extend({
|
|
25
39
|
items: z.array(publicMcpTransactionSchema),
|
|
26
40
|
});
|
|
@@ -49,6 +63,14 @@ function projectTransaction(transaction) {
|
|
|
49
63
|
merchants_interpretation_version: transaction.merchants_interpretation_version,
|
|
50
64
|
});
|
|
51
65
|
}
|
|
66
|
+
if (transaction.notes !== undefined) {
|
|
67
|
+
Object.assign(projected, {
|
|
68
|
+
merchant: transaction.merchant,
|
|
69
|
+
name: transaction.name,
|
|
70
|
+
notes: transaction.notes,
|
|
71
|
+
tags: transaction.tags ?? [],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
52
74
|
return publicMcpTransactionSchema.parse(projected);
|
|
53
75
|
}
|
|
54
76
|
export function projectPublicMcpFinancialContext(input) {
|
|
@@ -67,7 +89,18 @@ export function projectPublicMcpFinancialContext(input) {
|
|
|
67
89
|
});
|
|
68
90
|
}
|
|
69
91
|
export function projectPublicMcpTransactions(input) {
|
|
70
|
-
const transactions = z
|
|
92
|
+
const transactions = z
|
|
93
|
+
.union([transactionMonthSchema, latestTransactionsSchema, transactionPeriodsMcpOutputSchema])
|
|
94
|
+
.parse(input);
|
|
95
|
+
if ('periods' in transactions) {
|
|
96
|
+
return publicMcpTransactionPeriodsSchema.parse({
|
|
97
|
+
...transactions,
|
|
98
|
+
periods: transactions.periods.map((period) => ({
|
|
99
|
+
...period,
|
|
100
|
+
items: period.items.map(projectTransaction),
|
|
101
|
+
})),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
71
104
|
const items = transactions.items.map(projectTransaction);
|
|
72
105
|
return 'month' in transactions
|
|
73
106
|
? publicMcpTransactionMonthSchema.parse({ ...transactions, items })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-output.js","sourceRoot":"","sources":["../../src/mcp/public-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,iCAAiC,EACjC,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"public-output.js","sourceRoot":"","sources":["../../src/mcp/public-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,iCAAiC,EACjC,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAE/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,iCAAiC;KACxE,IAAI,CAAC;IACJ,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,oBAAoB,EAAE,IAAI;IAC1B,gBAAgB,EAAE,IAAI;IACtB,gCAAgC,EAAE,IAAI;IACtC,gCAAgC,EAAE,IAAI;IACtC,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;CACX,CAAC;KACD,MAAM,CAA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