@toolforge-js/sdk 0.7.0 → 0.8.2
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/cli/index.js +533 -76
- package/dist/components/index.d.ts +193 -87
- package/dist/components/index.js +1 -1
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.js +5 -2
- package/dist/config-schema-DcLVggqh.js +19 -0
- package/dist/{agent-DBDnKm26.js → tool-DDDEH8M3.js} +140 -87
- package/package.json +11 -5
- package/dist/config-schema-CcWOtgOv.js +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z$1 from "zod";
|
|
2
2
|
import { EventEmitter } from "node:events";
|
|
3
3
|
import { Logger } from "pino";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_auth0 from "better-auth";
|
|
5
5
|
|
|
6
6
|
//#region ../core/dist/schema/index.d.ts
|
|
7
7
|
//#region src/schema/message.d.ts
|
|
@@ -92,34 +92,34 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
92
92
|
showLegend: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
93
93
|
showLabel: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
94
94
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
95
|
-
value: z$1.ZodNumber;
|
|
96
95
|
type: z$1.ZodLiteral<"chart">;
|
|
96
|
+
value: z$1.ZodNumber;
|
|
97
97
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
98
98
|
max: z$1.ZodNumber;
|
|
99
99
|
chartType: z$1.ZodLiteral<"progress-bar">;
|
|
100
100
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
101
|
+
success: "success";
|
|
101
102
|
default: "default";
|
|
102
103
|
error: "error";
|
|
103
|
-
success: "success";
|
|
104
104
|
neutral: "neutral";
|
|
105
105
|
warning: "warning";
|
|
106
106
|
}>>>;
|
|
107
107
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
108
|
-
value: z$1.ZodNumber;
|
|
109
108
|
type: z$1.ZodLiteral<"chart">;
|
|
109
|
+
value: z$1.ZodNumber;
|
|
110
110
|
max: z$1.ZodNumber;
|
|
111
111
|
chartType: z$1.ZodLiteral<"progress-circle">;
|
|
112
112
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
113
|
+
success: "success";
|
|
113
114
|
default: "default";
|
|
114
115
|
error: "error";
|
|
115
|
-
success: "success";
|
|
116
116
|
neutral: "neutral";
|
|
117
117
|
warning: "warning";
|
|
118
118
|
}>>>;
|
|
119
119
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
120
120
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
121
|
-
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
122
121
|
type: z$1.ZodLiteral<"chart">;
|
|
122
|
+
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
123
123
|
chartType: z$1.ZodLiteral<"spark-chart">;
|
|
124
124
|
colors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
125
125
|
blue: "blue";
|
|
@@ -153,6 +153,7 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
153
153
|
line: "line";
|
|
154
154
|
}>>>;
|
|
155
155
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
156
|
+
type: z$1.ZodLiteral<"chart">;
|
|
156
157
|
data: z$1.ZodArray<z$1.ZodObject<{
|
|
157
158
|
name: z$1.ZodString;
|
|
158
159
|
color: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
@@ -170,7 +171,6 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
170
171
|
yellow: "yellow";
|
|
171
172
|
}>, z$1.ZodString]>>>;
|
|
172
173
|
}, z$1.core.$strip>>;
|
|
173
|
-
type: z$1.ZodLiteral<"chart">;
|
|
174
174
|
chartType: z$1.ZodLiteral<"tracker">;
|
|
175
175
|
defaultBackgroundColor: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
176
176
|
blue: "blue";
|
|
@@ -614,9 +614,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
614
614
|
max: z$1.ZodNumber;
|
|
615
615
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
616
616
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
617
|
+
success: "success";
|
|
617
618
|
default: "default";
|
|
618
619
|
error: "error";
|
|
619
|
-
success: "success";
|
|
620
620
|
neutral: "neutral";
|
|
621
621
|
warning: "warning";
|
|
622
622
|
}>>>;
|
|
@@ -629,9 +629,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
629
629
|
max: z$1.ZodNumber;
|
|
630
630
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
631
631
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
632
|
+
success: "success";
|
|
632
633
|
default: "default";
|
|
633
634
|
error: "error";
|
|
634
|
-
success: "success";
|
|
635
635
|
neutral: "neutral";
|
|
636
636
|
warning: "warning";
|
|
637
637
|
}>>>;
|
|
@@ -816,6 +816,22 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
816
816
|
}>>>;
|
|
817
817
|
}, z$1.core.$strip>>;
|
|
818
818
|
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<{
|
|
819
|
+
type: z$1.ZodLiteral<"timeline">;
|
|
820
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
821
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
822
|
+
content: z$1.ZodString;
|
|
823
|
+
}, z$1.core.$strip>>;
|
|
824
|
+
orientation: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
825
|
+
horizontal: "horizontal";
|
|
826
|
+
vertical: "vertical";
|
|
827
|
+
}>>>;
|
|
828
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
829
|
+
start: "start";
|
|
830
|
+
end: "end";
|
|
831
|
+
alternate: "alternate";
|
|
832
|
+
}>>>;
|
|
833
|
+
reverse: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
834
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
819
835
|
type: z$1.ZodLiteral<"layout">;
|
|
820
836
|
columns: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
821
837
|
children: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -881,34 +897,34 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
881
897
|
showLegend: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
882
898
|
showLabel: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
883
899
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
884
|
-
value: z$1.ZodNumber;
|
|
885
900
|
type: z$1.ZodLiteral<"chart">;
|
|
901
|
+
value: z$1.ZodNumber;
|
|
886
902
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
887
903
|
max: z$1.ZodNumber;
|
|
888
904
|
chartType: z$1.ZodLiteral<"progress-bar">;
|
|
889
905
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
906
|
+
success: "success";
|
|
890
907
|
default: "default";
|
|
891
908
|
error: "error";
|
|
892
|
-
success: "success";
|
|
893
909
|
neutral: "neutral";
|
|
894
910
|
warning: "warning";
|
|
895
911
|
}>>>;
|
|
896
912
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
897
|
-
value: z$1.ZodNumber;
|
|
898
913
|
type: z$1.ZodLiteral<"chart">;
|
|
914
|
+
value: z$1.ZodNumber;
|
|
899
915
|
max: z$1.ZodNumber;
|
|
900
916
|
chartType: z$1.ZodLiteral<"progress-circle">;
|
|
901
917
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
918
|
+
success: "success";
|
|
902
919
|
default: "default";
|
|
903
920
|
error: "error";
|
|
904
|
-
success: "success";
|
|
905
921
|
neutral: "neutral";
|
|
906
922
|
warning: "warning";
|
|
907
923
|
}>>>;
|
|
908
924
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
909
925
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
910
|
-
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
911
926
|
type: z$1.ZodLiteral<"chart">;
|
|
927
|
+
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
912
928
|
chartType: z$1.ZodLiteral<"spark-chart">;
|
|
913
929
|
colors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
914
930
|
blue: "blue";
|
|
@@ -942,6 +958,7 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
942
958
|
line: "line";
|
|
943
959
|
}>>>;
|
|
944
960
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
961
|
+
type: z$1.ZodLiteral<"chart">;
|
|
945
962
|
data: z$1.ZodArray<z$1.ZodObject<{
|
|
946
963
|
name: z$1.ZodString;
|
|
947
964
|
color: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
@@ -959,7 +976,6 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
959
976
|
yellow: "yellow";
|
|
960
977
|
}>, z$1.ZodString]>>>;
|
|
961
978
|
}, z$1.core.$strip>>;
|
|
962
|
-
type: z$1.ZodLiteral<"chart">;
|
|
963
979
|
chartType: z$1.ZodLiteral<"tracker">;
|
|
964
980
|
defaultBackgroundColor: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
965
981
|
blue: "blue";
|
|
@@ -1403,9 +1419,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1403
1419
|
max: z$1.ZodNumber;
|
|
1404
1420
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
1405
1421
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1422
|
+
success: "success";
|
|
1406
1423
|
default: "default";
|
|
1407
1424
|
error: "error";
|
|
1408
|
-
success: "success";
|
|
1409
1425
|
neutral: "neutral";
|
|
1410
1426
|
warning: "warning";
|
|
1411
1427
|
}>>>;
|
|
@@ -1418,9 +1434,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1418
1434
|
max: z$1.ZodNumber;
|
|
1419
1435
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
1420
1436
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1437
|
+
success: "success";
|
|
1421
1438
|
default: "default";
|
|
1422
1439
|
error: "error";
|
|
1423
|
-
success: "success";
|
|
1424
1440
|
neutral: "neutral";
|
|
1425
1441
|
warning: "warning";
|
|
1426
1442
|
}>>>;
|
|
@@ -1604,7 +1620,23 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1604
1620
|
compact: "compact";
|
|
1605
1621
|
}>>>;
|
|
1606
1622
|
}, z$1.core.$strip>>;
|
|
1607
|
-
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<
|
|
1623
|
+
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<{
|
|
1624
|
+
type: z$1.ZodLiteral<"timeline">;
|
|
1625
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
1626
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1627
|
+
content: z$1.ZodString;
|
|
1628
|
+
}, z$1.core.$strip>>;
|
|
1629
|
+
orientation: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1630
|
+
horizontal: "horizontal";
|
|
1631
|
+
vertical: "vertical";
|
|
1632
|
+
}>>>;
|
|
1633
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1634
|
+
start: "start";
|
|
1635
|
+
end: "end";
|
|
1636
|
+
alternate: "alternate";
|
|
1637
|
+
}>>>;
|
|
1638
|
+
reverse: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1639
|
+
}, z$1.core.$strip>, z$1.ZodObject< /*elided*/any, z$1.core.$strip>, z$1.ZodObject<{
|
|
1608
1640
|
type: z$1.ZodLiteral<"table">;
|
|
1609
1641
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1610
1642
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1654,9 +1686,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1654
1686
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1655
1687
|
type: z$1.ZodLiteral<"badge">;
|
|
1656
1688
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1689
|
+
success: "success";
|
|
1657
1690
|
default: "default";
|
|
1658
1691
|
error: "error";
|
|
1659
|
-
success: "success";
|
|
1660
1692
|
neutral: "neutral";
|
|
1661
1693
|
warning: "warning";
|
|
1662
1694
|
}>>>;
|
|
@@ -1677,9 +1709,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1677
1709
|
}>>>;
|
|
1678
1710
|
maxValue: z$1.ZodNumber;
|
|
1679
1711
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1712
|
+
success: "success";
|
|
1680
1713
|
default: "default";
|
|
1681
1714
|
error: "error";
|
|
1682
|
-
success: "success";
|
|
1683
1715
|
neutral: "neutral";
|
|
1684
1716
|
warning: "warning";
|
|
1685
1717
|
}>>>;
|
|
@@ -1768,9 +1800,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1768
1800
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1769
1801
|
type: z$1.ZodLiteral<"badge">;
|
|
1770
1802
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1803
|
+
success: "success";
|
|
1771
1804
|
default: "default";
|
|
1772
1805
|
error: "error";
|
|
1773
|
-
success: "success";
|
|
1774
1806
|
neutral: "neutral";
|
|
1775
1807
|
warning: "warning";
|
|
1776
1808
|
}>>>;
|
|
@@ -1791,9 +1823,9 @@ declare const showMessageMessageSchema: z$1.ZodObject<{
|
|
|
1791
1823
|
}>>>;
|
|
1792
1824
|
maxValue: z$1.ZodNumber;
|
|
1793
1825
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1826
|
+
success: "success";
|
|
1794
1827
|
default: "default";
|
|
1795
1828
|
error: "error";
|
|
1796
|
-
success: "success";
|
|
1797
1829
|
neutral: "neutral";
|
|
1798
1830
|
warning: "warning";
|
|
1799
1831
|
}>>>;
|
|
@@ -2912,9 +2944,9 @@ declare const chartBlock: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
2912
2944
|
max: z$1.ZodNumber;
|
|
2913
2945
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
2914
2946
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
2947
|
+
success: "success";
|
|
2915
2948
|
default: "default";
|
|
2916
2949
|
error: "error";
|
|
2917
|
-
success: "success";
|
|
2918
2950
|
neutral: "neutral";
|
|
2919
2951
|
warning: "warning";
|
|
2920
2952
|
}>>>;
|
|
@@ -2927,9 +2959,9 @@ declare const chartBlock: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
2927
2959
|
max: z$1.ZodNumber;
|
|
2928
2960
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
2929
2961
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
2962
|
+
success: "success";
|
|
2930
2963
|
default: "default";
|
|
2931
2964
|
error: "error";
|
|
2932
|
-
success: "success";
|
|
2933
2965
|
neutral: "neutral";
|
|
2934
2966
|
warning: "warning";
|
|
2935
2967
|
}>>>;
|
|
@@ -3235,6 +3267,20 @@ type LayoutBlock = {
|
|
|
3235
3267
|
rowSpan?: number;
|
|
3236
3268
|
}>;
|
|
3237
3269
|
};
|
|
3270
|
+
type TimelineBlock = {
|
|
3271
|
+
items: Array<{
|
|
3272
|
+
/** Title of the timeline item */
|
|
3273
|
+
title?: string;
|
|
3274
|
+
/** Content of the timeline item */
|
|
3275
|
+
content: string;
|
|
3276
|
+
}>;
|
|
3277
|
+
/** Orientation of the timeline */
|
|
3278
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3279
|
+
/** Mode of the timeline */
|
|
3280
|
+
mode?: 'start' | 'end' | 'alternate';
|
|
3281
|
+
/** Reverse the order of the timeline items */
|
|
3282
|
+
reverse?: boolean;
|
|
3283
|
+
};
|
|
3238
3284
|
declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3239
3285
|
type: z$1.ZodLiteral<"kpi-card">;
|
|
3240
3286
|
name: z$1.ZodString;
|
|
@@ -3297,34 +3343,34 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
3297
3343
|
showLegend: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
3298
3344
|
showLabel: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
3299
3345
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3300
|
-
value: z$1.ZodNumber;
|
|
3301
3346
|
type: z$1.ZodLiteral<"chart">;
|
|
3347
|
+
value: z$1.ZodNumber;
|
|
3302
3348
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
3303
3349
|
max: z$1.ZodNumber;
|
|
3304
3350
|
chartType: z$1.ZodLiteral<"progress-bar">;
|
|
3305
3351
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
3352
|
+
success: "success";
|
|
3306
3353
|
default: "default";
|
|
3307
3354
|
error: "error";
|
|
3308
|
-
success: "success";
|
|
3309
3355
|
neutral: "neutral";
|
|
3310
3356
|
warning: "warning";
|
|
3311
3357
|
}>>>;
|
|
3312
3358
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3313
|
-
value: z$1.ZodNumber;
|
|
3314
3359
|
type: z$1.ZodLiteral<"chart">;
|
|
3360
|
+
value: z$1.ZodNumber;
|
|
3315
3361
|
max: z$1.ZodNumber;
|
|
3316
3362
|
chartType: z$1.ZodLiteral<"progress-circle">;
|
|
3317
3363
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
3364
|
+
success: "success";
|
|
3318
3365
|
default: "default";
|
|
3319
3366
|
error: "error";
|
|
3320
|
-
success: "success";
|
|
3321
3367
|
neutral: "neutral";
|
|
3322
3368
|
warning: "warning";
|
|
3323
3369
|
}>>>;
|
|
3324
3370
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
3325
3371
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3326
|
-
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
3327
3372
|
type: z$1.ZodLiteral<"chart">;
|
|
3373
|
+
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
3328
3374
|
chartType: z$1.ZodLiteral<"spark-chart">;
|
|
3329
3375
|
colors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
3330
3376
|
blue: "blue";
|
|
@@ -3358,6 +3404,7 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
3358
3404
|
line: "line";
|
|
3359
3405
|
}>>>;
|
|
3360
3406
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3407
|
+
type: z$1.ZodLiteral<"chart">;
|
|
3361
3408
|
data: z$1.ZodArray<z$1.ZodObject<{
|
|
3362
3409
|
name: z$1.ZodString;
|
|
3363
3410
|
color: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
@@ -3375,7 +3422,6 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
3375
3422
|
yellow: "yellow";
|
|
3376
3423
|
}>, z$1.ZodString]>>>;
|
|
3377
3424
|
}, z$1.core.$strip>>;
|
|
3378
|
-
type: z$1.ZodLiteral<"chart">;
|
|
3379
3425
|
chartType: z$1.ZodLiteral<"tracker">;
|
|
3380
3426
|
defaultBackgroundColor: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
3381
3427
|
blue: "blue";
|
|
@@ -3819,9 +3865,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
3819
3865
|
max: z$1.ZodNumber;
|
|
3820
3866
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
3821
3867
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
3868
|
+
success: "success";
|
|
3822
3869
|
default: "default";
|
|
3823
3870
|
error: "error";
|
|
3824
|
-
success: "success";
|
|
3825
3871
|
neutral: "neutral";
|
|
3826
3872
|
warning: "warning";
|
|
3827
3873
|
}>>>;
|
|
@@ -3834,9 +3880,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
3834
3880
|
max: z$1.ZodNumber;
|
|
3835
3881
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
3836
3882
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
3883
|
+
success: "success";
|
|
3837
3884
|
default: "default";
|
|
3838
3885
|
error: "error";
|
|
3839
|
-
success: "success";
|
|
3840
3886
|
neutral: "neutral";
|
|
3841
3887
|
warning: "warning";
|
|
3842
3888
|
}>>>;
|
|
@@ -4021,6 +4067,22 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4021
4067
|
}>>>;
|
|
4022
4068
|
}, z$1.core.$strip>>;
|
|
4023
4069
|
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<{
|
|
4070
|
+
type: z$1.ZodLiteral<"timeline">;
|
|
4071
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
4072
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
4073
|
+
content: z$1.ZodString;
|
|
4074
|
+
}, z$1.core.$strip>>;
|
|
4075
|
+
orientation: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4076
|
+
horizontal: "horizontal";
|
|
4077
|
+
vertical: "vertical";
|
|
4078
|
+
}>>>;
|
|
4079
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4080
|
+
start: "start";
|
|
4081
|
+
end: "end";
|
|
4082
|
+
alternate: "alternate";
|
|
4083
|
+
}>>>;
|
|
4084
|
+
reverse: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
4085
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4024
4086
|
type: z$1.ZodLiteral<"layout">;
|
|
4025
4087
|
columns: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
4026
4088
|
children: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -4086,34 +4148,34 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4086
4148
|
showLegend: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
4087
4149
|
showLabel: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
4088
4150
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4089
|
-
value: z$1.ZodNumber;
|
|
4090
4151
|
type: z$1.ZodLiteral<"chart">;
|
|
4152
|
+
value: z$1.ZodNumber;
|
|
4091
4153
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
4092
4154
|
max: z$1.ZodNumber;
|
|
4093
4155
|
chartType: z$1.ZodLiteral<"progress-bar">;
|
|
4094
4156
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4157
|
+
success: "success";
|
|
4095
4158
|
default: "default";
|
|
4096
4159
|
error: "error";
|
|
4097
|
-
success: "success";
|
|
4098
4160
|
neutral: "neutral";
|
|
4099
4161
|
warning: "warning";
|
|
4100
4162
|
}>>>;
|
|
4101
4163
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4102
|
-
value: z$1.ZodNumber;
|
|
4103
4164
|
type: z$1.ZodLiteral<"chart">;
|
|
4165
|
+
value: z$1.ZodNumber;
|
|
4104
4166
|
max: z$1.ZodNumber;
|
|
4105
4167
|
chartType: z$1.ZodLiteral<"progress-circle">;
|
|
4106
4168
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4169
|
+
success: "success";
|
|
4107
4170
|
default: "default";
|
|
4108
4171
|
error: "error";
|
|
4109
|
-
success: "success";
|
|
4110
4172
|
neutral: "neutral";
|
|
4111
4173
|
warning: "warning";
|
|
4112
4174
|
}>>>;
|
|
4113
4175
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
4114
4176
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4115
|
-
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
4116
4177
|
type: z$1.ZodLiteral<"chart">;
|
|
4178
|
+
data: z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
4117
4179
|
chartType: z$1.ZodLiteral<"spark-chart">;
|
|
4118
4180
|
colors: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
4119
4181
|
blue: "blue";
|
|
@@ -4147,6 +4209,7 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4147
4209
|
line: "line";
|
|
4148
4210
|
}>>>;
|
|
4149
4211
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4212
|
+
type: z$1.ZodLiteral<"chart">;
|
|
4150
4213
|
data: z$1.ZodArray<z$1.ZodObject<{
|
|
4151
4214
|
name: z$1.ZodString;
|
|
4152
4215
|
color: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
@@ -4164,7 +4227,6 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4164
4227
|
yellow: "yellow";
|
|
4165
4228
|
}>, z$1.ZodString]>>>;
|
|
4166
4229
|
}, z$1.core.$strip>>;
|
|
4167
|
-
type: z$1.ZodLiteral<"chart">;
|
|
4168
4230
|
chartType: z$1.ZodLiteral<"tracker">;
|
|
4169
4231
|
defaultBackgroundColor: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
4170
4232
|
blue: "blue";
|
|
@@ -4608,9 +4670,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4608
4670
|
max: z$1.ZodNumber;
|
|
4609
4671
|
label: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
4610
4672
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4673
|
+
success: "success";
|
|
4611
4674
|
default: "default";
|
|
4612
4675
|
error: "error";
|
|
4613
|
-
success: "success";
|
|
4614
4676
|
neutral: "neutral";
|
|
4615
4677
|
warning: "warning";
|
|
4616
4678
|
}>>>;
|
|
@@ -4623,9 +4685,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4623
4685
|
max: z$1.ZodNumber;
|
|
4624
4686
|
radius: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
4625
4687
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4688
|
+
success: "success";
|
|
4626
4689
|
default: "default";
|
|
4627
4690
|
error: "error";
|
|
4628
|
-
success: "success";
|
|
4629
4691
|
neutral: "neutral";
|
|
4630
4692
|
warning: "warning";
|
|
4631
4693
|
}>>>;
|
|
@@ -4809,7 +4871,23 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4809
4871
|
compact: "compact";
|
|
4810
4872
|
}>>>;
|
|
4811
4873
|
}, z$1.core.$strip>>;
|
|
4812
|
-
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<
|
|
4874
|
+
}, z$1.core.$strip>], "chartType">, z$1.ZodObject<{
|
|
4875
|
+
type: z$1.ZodLiteral<"timeline">;
|
|
4876
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
4877
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
4878
|
+
content: z$1.ZodString;
|
|
4879
|
+
}, z$1.core.$strip>>;
|
|
4880
|
+
orientation: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4881
|
+
horizontal: "horizontal";
|
|
4882
|
+
vertical: "vertical";
|
|
4883
|
+
}>>>;
|
|
4884
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4885
|
+
start: "start";
|
|
4886
|
+
end: "end";
|
|
4887
|
+
alternate: "alternate";
|
|
4888
|
+
}>>>;
|
|
4889
|
+
reverse: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
4890
|
+
}, z$1.core.$strip>, z$1.ZodObject< /*elided*/any, z$1.core.$strip>, z$1.ZodObject<{
|
|
4813
4891
|
type: z$1.ZodLiteral<"table">;
|
|
4814
4892
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
4815
4893
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -4859,9 +4937,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4859
4937
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4860
4938
|
type: z$1.ZodLiteral<"badge">;
|
|
4861
4939
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4940
|
+
success: "success";
|
|
4862
4941
|
default: "default";
|
|
4863
4942
|
error: "error";
|
|
4864
|
-
success: "success";
|
|
4865
4943
|
neutral: "neutral";
|
|
4866
4944
|
warning: "warning";
|
|
4867
4945
|
}>>>;
|
|
@@ -4882,9 +4960,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4882
4960
|
}>>>;
|
|
4883
4961
|
maxValue: z$1.ZodNumber;
|
|
4884
4962
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
4963
|
+
success: "success";
|
|
4885
4964
|
default: "default";
|
|
4886
4965
|
error: "error";
|
|
4887
|
-
success: "success";
|
|
4888
4966
|
neutral: "neutral";
|
|
4889
4967
|
warning: "warning";
|
|
4890
4968
|
}>>>;
|
|
@@ -4973,9 +5051,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4973
5051
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4974
5052
|
type: z$1.ZodLiteral<"badge">;
|
|
4975
5053
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
5054
|
+
success: "success";
|
|
4976
5055
|
default: "default";
|
|
4977
5056
|
error: "error";
|
|
4978
|
-
success: "success";
|
|
4979
5057
|
neutral: "neutral";
|
|
4980
5058
|
warning: "warning";
|
|
4981
5059
|
}>>>;
|
|
@@ -4996,9 +5074,9 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4996
5074
|
}>>>;
|
|
4997
5075
|
maxValue: z$1.ZodNumber;
|
|
4998
5076
|
variant: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
5077
|
+
success: "success";
|
|
4999
5078
|
default: "default";
|
|
5000
5079
|
error: "error";
|
|
5001
|
-
success: "success";
|
|
5002
5080
|
neutral: "neutral";
|
|
5003
5081
|
warning: "warning";
|
|
5004
5082
|
}>>>;
|
|
@@ -5034,7 +5112,7 @@ declare const blockSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
5034
5112
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
5035
5113
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5036
5114
|
}, z$1.core.$strip>], "type">;
|
|
5037
|
-
type Block$1 = KPICard | ChartBlockOutput | TableBlock<ChartDataItem> | ImageBlock | TextBlock | ObjectBlock | LayoutBlock;
|
|
5115
|
+
type Block$1 = KPICard | ChartBlockOutput | TableBlock<ChartDataItem> | ImageBlock | TextBlock | ObjectBlock | TimelineBlock | LayoutBlock;
|
|
5038
5116
|
type BlockOutput = z$1.infer<typeof blockSchema>;
|
|
5039
5117
|
//#endregion
|
|
5040
5118
|
//#region src/schema/data.d.ts
|
|
@@ -5074,7 +5152,7 @@ declare class Block {
|
|
|
5074
5152
|
type: "number" | "currency" | "percentage";
|
|
5075
5153
|
decimals: number;
|
|
5076
5154
|
currency: string;
|
|
5077
|
-
currencyDisplay: "symbol" | "
|
|
5155
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5078
5156
|
thousandsSeparator: string;
|
|
5079
5157
|
decimalSeparator: string;
|
|
5080
5158
|
showPercentageSymbol: boolean;
|
|
@@ -5111,7 +5189,7 @@ declare class Block {
|
|
|
5111
5189
|
type: "number" | "currency" | "percentage";
|
|
5112
5190
|
decimals: number;
|
|
5113
5191
|
currency: string;
|
|
5114
|
-
currencyDisplay: "symbol" | "
|
|
5192
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5115
5193
|
thousandsSeparator: string;
|
|
5116
5194
|
decimalSeparator: string;
|
|
5117
5195
|
showPercentageSymbol: boolean;
|
|
@@ -5180,7 +5258,7 @@ declare class Block {
|
|
|
5180
5258
|
type: "number" | "currency" | "percentage";
|
|
5181
5259
|
decimals: number;
|
|
5182
5260
|
currency: string;
|
|
5183
|
-
currencyDisplay: "symbol" | "
|
|
5261
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5184
5262
|
thousandsSeparator: string;
|
|
5185
5263
|
decimalSeparator: string;
|
|
5186
5264
|
showPercentageSymbol: boolean;
|
|
@@ -5215,7 +5293,7 @@ declare class Block {
|
|
|
5215
5293
|
type: "number" | "currency" | "percentage";
|
|
5216
5294
|
decimals: number;
|
|
5217
5295
|
currency: string;
|
|
5218
|
-
currencyDisplay: "symbol" | "
|
|
5296
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5219
5297
|
thousandsSeparator: string;
|
|
5220
5298
|
decimalSeparator: string;
|
|
5221
5299
|
showPercentageSymbol: boolean;
|
|
@@ -5235,7 +5313,7 @@ declare class Block {
|
|
|
5235
5313
|
chartType: "progress-bar";
|
|
5236
5314
|
value: number;
|
|
5237
5315
|
max: number;
|
|
5238
|
-
variant: "error" | "
|
|
5316
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5239
5317
|
title?: string | undefined;
|
|
5240
5318
|
description?: string | undefined;
|
|
5241
5319
|
label?: string | number | undefined;
|
|
@@ -5251,7 +5329,7 @@ declare class Block {
|
|
|
5251
5329
|
value: number;
|
|
5252
5330
|
max: number;
|
|
5253
5331
|
radius: number;
|
|
5254
|
-
variant: "error" | "
|
|
5332
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5255
5333
|
title?: string | undefined;
|
|
5256
5334
|
description?: string | undefined;
|
|
5257
5335
|
};
|
|
@@ -5315,7 +5393,7 @@ declare class Block {
|
|
|
5315
5393
|
type: "number" | "currency" | "percentage";
|
|
5316
5394
|
decimals: number;
|
|
5317
5395
|
currency: string;
|
|
5318
|
-
currencyDisplay: "symbol" | "
|
|
5396
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5319
5397
|
thousandsSeparator: string;
|
|
5320
5398
|
decimalSeparator: string;
|
|
5321
5399
|
showPercentageSymbol: boolean;
|
|
@@ -5336,7 +5414,7 @@ declare class Block {
|
|
|
5336
5414
|
type: "number" | "currency" | "percentage";
|
|
5337
5415
|
decimals: number;
|
|
5338
5416
|
currency: string;
|
|
5339
|
-
currencyDisplay: "symbol" | "
|
|
5417
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5340
5418
|
thousandsSeparator: string;
|
|
5341
5419
|
decimalSeparator: string;
|
|
5342
5420
|
showPercentageSymbol: boolean;
|
|
@@ -5381,7 +5459,7 @@ declare class Block {
|
|
|
5381
5459
|
type: "number" | "currency" | "percentage";
|
|
5382
5460
|
decimals: number;
|
|
5383
5461
|
currency: string;
|
|
5384
|
-
currencyDisplay: "symbol" | "
|
|
5462
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5385
5463
|
thousandsSeparator: string;
|
|
5386
5464
|
decimalSeparator: string;
|
|
5387
5465
|
showPercentageSymbol: boolean;
|
|
@@ -5406,7 +5484,7 @@ declare class Block {
|
|
|
5406
5484
|
type: "number" | "currency" | "percentage";
|
|
5407
5485
|
decimals: number;
|
|
5408
5486
|
currency: string;
|
|
5409
|
-
currencyDisplay: "symbol" | "
|
|
5487
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5410
5488
|
thousandsSeparator: string;
|
|
5411
5489
|
decimalSeparator: string;
|
|
5412
5490
|
showPercentageSymbol: boolean;
|
|
@@ -5416,7 +5494,7 @@ declare class Block {
|
|
|
5416
5494
|
suffix?: string | undefined;
|
|
5417
5495
|
} | undefined;
|
|
5418
5496
|
change?: string | number | undefined;
|
|
5419
|
-
changeType?: "
|
|
5497
|
+
changeType?: "neutral" | "positive" | "negative" | undefined;
|
|
5420
5498
|
chart?: {
|
|
5421
5499
|
values: (number | {
|
|
5422
5500
|
value: number;
|
|
@@ -5432,22 +5510,22 @@ declare class Block {
|
|
|
5432
5510
|
name?: string | undefined;
|
|
5433
5511
|
} | undefined;
|
|
5434
5512
|
} | {
|
|
5435
|
-
value: number;
|
|
5436
5513
|
type: "chart";
|
|
5514
|
+
value: number;
|
|
5437
5515
|
max: number;
|
|
5438
5516
|
chartType: "progress-bar";
|
|
5439
|
-
variant: "error" | "
|
|
5517
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5440
5518
|
label?: string | number | undefined;
|
|
5441
5519
|
} | {
|
|
5442
|
-
value: number;
|
|
5443
5520
|
type: "chart";
|
|
5521
|
+
value: number;
|
|
5444
5522
|
max: number;
|
|
5445
5523
|
chartType: "progress-circle";
|
|
5446
|
-
variant: "error" | "
|
|
5524
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5447
5525
|
radius: number;
|
|
5448
5526
|
} | {
|
|
5449
|
-
data: Record<string, any>[];
|
|
5450
5527
|
type: "chart";
|
|
5528
|
+
data: Record<string, any>[];
|
|
5451
5529
|
chartType: "spark-chart";
|
|
5452
5530
|
colors: string[];
|
|
5453
5531
|
index: string;
|
|
@@ -5456,11 +5534,11 @@ declare class Block {
|
|
|
5456
5534
|
stackType: "default" | "stacked" | "percent";
|
|
5457
5535
|
sparkChartType: "bar" | "area" | "line";
|
|
5458
5536
|
} | {
|
|
5537
|
+
type: "chart";
|
|
5459
5538
|
data: {
|
|
5460
5539
|
name: string;
|
|
5461
5540
|
color: string;
|
|
5462
5541
|
}[];
|
|
5463
|
-
type: "chart";
|
|
5464
5542
|
chartType: "tracker";
|
|
5465
5543
|
defaultBackgroundColor: string;
|
|
5466
5544
|
} | undefined;
|
|
@@ -5486,7 +5564,7 @@ declare class Block {
|
|
|
5486
5564
|
type: "default";
|
|
5487
5565
|
} | {
|
|
5488
5566
|
type: "badge";
|
|
5489
|
-
variant: "error" | "
|
|
5567
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5490
5568
|
} | {
|
|
5491
5569
|
type: "image";
|
|
5492
5570
|
width: number;
|
|
@@ -5496,7 +5574,7 @@ declare class Block {
|
|
|
5496
5574
|
type: "progress";
|
|
5497
5575
|
chartType: "bar" | "circle";
|
|
5498
5576
|
maxValue: number;
|
|
5499
|
-
variant: "error" | "
|
|
5577
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5500
5578
|
} | {
|
|
5501
5579
|
type: "link";
|
|
5502
5580
|
target: "_blank" | "_self";
|
|
@@ -5507,7 +5585,7 @@ declare class Block {
|
|
|
5507
5585
|
type: "number" | "currency" | "percentage";
|
|
5508
5586
|
decimals: number;
|
|
5509
5587
|
currency: string;
|
|
5510
|
-
currencyDisplay: "symbol" | "
|
|
5588
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5511
5589
|
thousandsSeparator: string;
|
|
5512
5590
|
decimalSeparator: string;
|
|
5513
5591
|
showPercentageSymbol: boolean;
|
|
@@ -5572,7 +5650,7 @@ declare class Block {
|
|
|
5572
5650
|
type: "number" | "currency" | "percentage";
|
|
5573
5651
|
decimals: number;
|
|
5574
5652
|
currency: string;
|
|
5575
|
-
currencyDisplay: "symbol" | "
|
|
5653
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5576
5654
|
thousandsSeparator: string;
|
|
5577
5655
|
decimalSeparator: string;
|
|
5578
5656
|
showPercentageSymbol: boolean;
|
|
@@ -5582,7 +5660,7 @@ declare class Block {
|
|
|
5582
5660
|
suffix?: string | undefined;
|
|
5583
5661
|
} | undefined;
|
|
5584
5662
|
change?: string | number | undefined;
|
|
5585
|
-
changeType?: "
|
|
5663
|
+
changeType?: "neutral" | "positive" | "negative" | undefined;
|
|
5586
5664
|
chart?: {
|
|
5587
5665
|
values: (number | {
|
|
5588
5666
|
value: number;
|
|
@@ -5598,22 +5676,22 @@ declare class Block {
|
|
|
5598
5676
|
name?: string | undefined;
|
|
5599
5677
|
} | undefined;
|
|
5600
5678
|
} | {
|
|
5601
|
-
value: number;
|
|
5602
5679
|
type: "chart";
|
|
5680
|
+
value: number;
|
|
5603
5681
|
max: number;
|
|
5604
5682
|
chartType: "progress-bar";
|
|
5605
|
-
variant: "error" | "
|
|
5683
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5606
5684
|
label?: string | number | undefined;
|
|
5607
5685
|
} | {
|
|
5608
|
-
value: number;
|
|
5609
5686
|
type: "chart";
|
|
5687
|
+
value: number;
|
|
5610
5688
|
max: number;
|
|
5611
5689
|
chartType: "progress-circle";
|
|
5612
|
-
variant: "error" | "
|
|
5690
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5613
5691
|
radius: number;
|
|
5614
5692
|
} | {
|
|
5615
|
-
data: Record<string, any>[];
|
|
5616
5693
|
type: "chart";
|
|
5694
|
+
data: Record<string, any>[];
|
|
5617
5695
|
chartType: "spark-chart";
|
|
5618
5696
|
colors: string[];
|
|
5619
5697
|
index: string;
|
|
@@ -5622,11 +5700,11 @@ declare class Block {
|
|
|
5622
5700
|
stackType: "default" | "stacked" | "percent";
|
|
5623
5701
|
sparkChartType: "bar" | "area" | "line";
|
|
5624
5702
|
} | {
|
|
5703
|
+
type: "chart";
|
|
5625
5704
|
data: {
|
|
5626
5705
|
name: string;
|
|
5627
5706
|
color: string;
|
|
5628
5707
|
}[];
|
|
5629
|
-
type: "chart";
|
|
5630
5708
|
chartType: "tracker";
|
|
5631
5709
|
defaultBackgroundColor: string;
|
|
5632
5710
|
} | undefined;
|
|
@@ -5654,7 +5732,7 @@ declare class Block {
|
|
|
5654
5732
|
type: "number" | "currency" | "percentage";
|
|
5655
5733
|
decimals: number;
|
|
5656
5734
|
currency: string;
|
|
5657
|
-
currencyDisplay: "symbol" | "
|
|
5735
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5658
5736
|
thousandsSeparator: string;
|
|
5659
5737
|
decimalSeparator: string;
|
|
5660
5738
|
showPercentageSymbol: boolean;
|
|
@@ -5687,7 +5765,7 @@ declare class Block {
|
|
|
5687
5765
|
type: "number" | "currency" | "percentage";
|
|
5688
5766
|
decimals: number;
|
|
5689
5767
|
currency: string;
|
|
5690
|
-
currencyDisplay: "symbol" | "
|
|
5768
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5691
5769
|
thousandsSeparator: string;
|
|
5692
5770
|
decimalSeparator: string;
|
|
5693
5771
|
showPercentageSymbol: boolean;
|
|
@@ -5717,7 +5795,7 @@ declare class Block {
|
|
|
5717
5795
|
type: "number" | "currency" | "percentage";
|
|
5718
5796
|
decimals: number;
|
|
5719
5797
|
currency: string;
|
|
5720
|
-
currencyDisplay: "symbol" | "
|
|
5798
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5721
5799
|
thousandsSeparator: string;
|
|
5722
5800
|
decimalSeparator: string;
|
|
5723
5801
|
showPercentageSymbol: boolean;
|
|
@@ -5738,7 +5816,7 @@ declare class Block {
|
|
|
5738
5816
|
type: "number" | "currency" | "percentage";
|
|
5739
5817
|
decimals: number;
|
|
5740
5818
|
currency: string;
|
|
5741
|
-
currencyDisplay: "symbol" | "
|
|
5819
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5742
5820
|
thousandsSeparator: string;
|
|
5743
5821
|
decimalSeparator: string;
|
|
5744
5822
|
showPercentageSymbol: boolean;
|
|
@@ -5798,7 +5876,7 @@ declare class Block {
|
|
|
5798
5876
|
type: "number" | "currency" | "percentage";
|
|
5799
5877
|
decimals: number;
|
|
5800
5878
|
currency: string;
|
|
5801
|
-
currencyDisplay: "symbol" | "
|
|
5879
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5802
5880
|
thousandsSeparator: string;
|
|
5803
5881
|
decimalSeparator: string;
|
|
5804
5882
|
showPercentageSymbol: boolean;
|
|
@@ -5829,7 +5907,7 @@ declare class Block {
|
|
|
5829
5907
|
type: "number" | "currency" | "percentage";
|
|
5830
5908
|
decimals: number;
|
|
5831
5909
|
currency: string;
|
|
5832
|
-
currencyDisplay: "symbol" | "
|
|
5910
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5833
5911
|
thousandsSeparator: string;
|
|
5834
5912
|
decimalSeparator: string;
|
|
5835
5913
|
showPercentageSymbol: boolean;
|
|
@@ -5843,7 +5921,7 @@ declare class Block {
|
|
|
5843
5921
|
chartType: "progress-bar";
|
|
5844
5922
|
value: number;
|
|
5845
5923
|
max: number;
|
|
5846
|
-
variant: "error" | "
|
|
5924
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5847
5925
|
title?: string | undefined;
|
|
5848
5926
|
description?: string | undefined;
|
|
5849
5927
|
label?: string | number | undefined;
|
|
@@ -5853,7 +5931,7 @@ declare class Block {
|
|
|
5853
5931
|
value: number;
|
|
5854
5932
|
max: number;
|
|
5855
5933
|
radius: number;
|
|
5856
|
-
variant: "error" | "
|
|
5934
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5857
5935
|
title?: string | undefined;
|
|
5858
5936
|
description?: string | undefined;
|
|
5859
5937
|
} | {
|
|
@@ -5901,7 +5979,7 @@ declare class Block {
|
|
|
5901
5979
|
type: "number" | "currency" | "percentage";
|
|
5902
5980
|
decimals: number;
|
|
5903
5981
|
currency: string;
|
|
5904
|
-
currencyDisplay: "symbol" | "
|
|
5982
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5905
5983
|
thousandsSeparator: string;
|
|
5906
5984
|
decimalSeparator: string;
|
|
5907
5985
|
showPercentageSymbol: boolean;
|
|
@@ -5910,6 +5988,15 @@ declare class Block {
|
|
|
5910
5988
|
prefix?: string | undefined;
|
|
5911
5989
|
suffix?: string | undefined;
|
|
5912
5990
|
} | undefined;
|
|
5991
|
+
} | {
|
|
5992
|
+
type: "timeline";
|
|
5993
|
+
items: {
|
|
5994
|
+
content: string;
|
|
5995
|
+
title?: string | undefined;
|
|
5996
|
+
}[];
|
|
5997
|
+
orientation: "horizontal" | "vertical";
|
|
5998
|
+
mode: "start" | "end" | "alternate";
|
|
5999
|
+
reverse: boolean;
|
|
5913
6000
|
} | {
|
|
5914
6001
|
type: "table";
|
|
5915
6002
|
data: Record<string, unknown>[];
|
|
@@ -5924,7 +6011,7 @@ declare class Block {
|
|
|
5924
6011
|
type: "default";
|
|
5925
6012
|
} | {
|
|
5926
6013
|
type: "badge";
|
|
5927
|
-
variant: "error" | "
|
|
6014
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5928
6015
|
} | {
|
|
5929
6016
|
type: "image";
|
|
5930
6017
|
width: number;
|
|
@@ -5934,7 +6021,7 @@ declare class Block {
|
|
|
5934
6021
|
type: "progress";
|
|
5935
6022
|
chartType: "bar" | "circle";
|
|
5936
6023
|
maxValue: number;
|
|
5937
|
-
variant: "error" | "
|
|
6024
|
+
variant: "error" | "default" | "success" | "neutral" | "warning";
|
|
5938
6025
|
} | {
|
|
5939
6026
|
type: "link";
|
|
5940
6027
|
target: "_blank" | "_self";
|
|
@@ -5945,7 +6032,7 @@ declare class Block {
|
|
|
5945
6032
|
type: "number" | "currency" | "percentage";
|
|
5946
6033
|
decimals: number;
|
|
5947
6034
|
currency: string;
|
|
5948
|
-
currencyDisplay: "symbol" | "
|
|
6035
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
5949
6036
|
thousandsSeparator: string;
|
|
5950
6037
|
decimalSeparator: string;
|
|
5951
6038
|
showPercentageSymbol: boolean;
|
|
@@ -5979,6 +6066,21 @@ declare class Block {
|
|
|
5979
6066
|
rowSpan: number;
|
|
5980
6067
|
}[];
|
|
5981
6068
|
};
|
|
6069
|
+
/**
|
|
6070
|
+
* Creates a timeline block.
|
|
6071
|
+
*
|
|
6072
|
+
* A timeline block displays a sequence of events in chronological order.
|
|
6073
|
+
*/
|
|
6074
|
+
timeline(props: TimelineBlock): {
|
|
6075
|
+
type: "timeline";
|
|
6076
|
+
items: {
|
|
6077
|
+
content: string;
|
|
6078
|
+
title?: string | undefined;
|
|
6079
|
+
}[];
|
|
6080
|
+
orientation: "horizontal" | "vertical";
|
|
6081
|
+
mode: "start" | "end" | "alternate";
|
|
6082
|
+
reverse: boolean;
|
|
6083
|
+
};
|
|
5982
6084
|
}
|
|
5983
6085
|
//#endregion
|
|
5984
6086
|
//#region src/config/config-schema.d.ts
|
|
@@ -5986,6 +6088,8 @@ declare const toolForgeConfigSchema: z$1.ZodObject<{
|
|
|
5986
6088
|
toolsDir: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
5987
6089
|
apiKey: z$1.ZodString;
|
|
5988
6090
|
sdkServer: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodURL>>;
|
|
6091
|
+
appServerUrl: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodURL>>;
|
|
6092
|
+
appUrl: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodURL>>;
|
|
5989
6093
|
maxRetries: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
5990
6094
|
}, z$1.core.$strip>;
|
|
5991
6095
|
type ToolForgeConfig = z$1.infer<typeof toolForgeConfigSchema>;
|
|
@@ -6115,6 +6219,8 @@ declare class IO {
|
|
|
6115
6219
|
secure,
|
|
6116
6220
|
inputType,
|
|
6117
6221
|
mode,
|
|
6222
|
+
min,
|
|
6223
|
+
max,
|
|
6118
6224
|
maxRetryAttempts,
|
|
6119
6225
|
validationSchema,
|
|
6120
6226
|
defaultValue
|
|
@@ -6662,7 +6768,7 @@ declare function defineAgent<Context, Steps extends Record<string, AgentStep<Con
|
|
|
6662
6768
|
};
|
|
6663
6769
|
name: string;
|
|
6664
6770
|
description?: string;
|
|
6665
|
-
contextSchema: z$1.ZodType<Context, unknown,
|
|
6771
|
+
contextSchema: z$1.ZodType<Context, unknown, better_auth0.$ZodTypeInternals<Context, unknown>>;
|
|
6666
6772
|
workflow: (builder: IWorkflowBuilder<Context, keyof Steps>) => IWorkflowBuilder<Context, keyof Steps>;
|
|
6667
6773
|
bootstrap?: AgentBootstrapFunction<Context> | undefined;
|
|
6668
6774
|
__tf__tag__name__: symbol;
|