@stina/extension-api 0.52.0 → 0.53.1
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/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/runtime.cjs +2 -2
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/dist/runtime.js.map +1 -1
- package/dist/schemas/index.cjs +545 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +735 -35
- package/dist/schemas/index.d.ts +735 -35
- package/dist/schemas/index.js +520 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/{types.tools-XpXCoPrJ.d.cts → types.tools-BL9WPsi_.d.cts} +314 -2
- package/dist/{types.tools-XpXCoPrJ.d.ts → types.tools-BL9WPsi_.d.ts} +314 -2
- package/package.json +1 -1
- package/src/index.ts +20 -0
- package/src/runtime.ts +2 -2
- package/src/schemas/card.schema.test.ts +235 -0
- package/src/schemas/card.schema.ts +606 -0
- package/src/schemas/components.schema.ts +241 -0
- package/src/schemas/index.ts +30 -0
- package/src/types.components.ts +336 -0
- package/src/types.context.ts +15 -1
- package/src/types.tools.ts +15 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -131,12 +131,12 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
131
131
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
133
|
key: string;
|
|
134
|
-
order?: string[] | undefined;
|
|
135
134
|
labels?: Record<string, string> | undefined;
|
|
135
|
+
order?: string[] | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
key: string;
|
|
138
|
-
order?: string[] | undefined;
|
|
139
138
|
labels?: Record<string, string> | undefined;
|
|
139
|
+
order?: string[] | undefined;
|
|
140
140
|
}>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
kind: "list";
|
|
@@ -165,8 +165,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
165
165
|
} | undefined;
|
|
166
166
|
groupBy?: {
|
|
167
167
|
key: string;
|
|
168
|
-
order?: string[] | undefined;
|
|
169
168
|
labels?: Record<string, string> | undefined;
|
|
169
|
+
order?: string[] | undefined;
|
|
170
170
|
} | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
kind: "list";
|
|
@@ -195,8 +195,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
195
195
|
} | undefined;
|
|
196
196
|
groupBy?: {
|
|
197
197
|
key: string;
|
|
198
|
-
order?: string[] | undefined;
|
|
199
198
|
labels?: Record<string, string> | undefined;
|
|
199
|
+
order?: string[] | undefined;
|
|
200
200
|
} | undefined;
|
|
201
201
|
}>, z.ZodObject<{
|
|
202
202
|
kind: z.ZodLiteral<"component">;
|
|
@@ -277,8 +277,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
277
277
|
} | undefined;
|
|
278
278
|
groupBy?: {
|
|
279
279
|
key: string;
|
|
280
|
-
order?: string[] | undefined;
|
|
281
280
|
labels?: Record<string, string> | undefined;
|
|
281
|
+
order?: string[] | undefined;
|
|
282
282
|
} | undefined;
|
|
283
283
|
} | {
|
|
284
284
|
content: {
|
|
@@ -324,8 +324,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
324
324
|
} | undefined;
|
|
325
325
|
groupBy?: {
|
|
326
326
|
key: string;
|
|
327
|
-
order?: string[] | undefined;
|
|
328
327
|
labels?: Record<string, string> | undefined;
|
|
328
|
+
order?: string[] | undefined;
|
|
329
329
|
} | undefined;
|
|
330
330
|
} | {
|
|
331
331
|
content: {
|
|
@@ -609,8 +609,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
609
609
|
} | undefined;
|
|
610
610
|
groupBy?: {
|
|
611
611
|
key: string;
|
|
612
|
-
order?: string[] | undefined;
|
|
613
612
|
labels?: Record<string, string> | undefined;
|
|
613
|
+
order?: string[] | undefined;
|
|
614
614
|
} | undefined;
|
|
615
615
|
} | {
|
|
616
616
|
content: {
|
|
@@ -718,8 +718,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
718
718
|
} | undefined;
|
|
719
719
|
groupBy?: {
|
|
720
720
|
key: string;
|
|
721
|
-
order?: string[] | undefined;
|
|
722
721
|
labels?: Record<string, string> | undefined;
|
|
722
|
+
order?: string[] | undefined;
|
|
723
723
|
} | undefined;
|
|
724
724
|
} | {
|
|
725
725
|
content: {
|
|
@@ -846,8 +846,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
846
846
|
} | undefined;
|
|
847
847
|
groupBy?: {
|
|
848
848
|
key: string;
|
|
849
|
-
order?: string[] | undefined;
|
|
850
849
|
labels?: Record<string, string> | undefined;
|
|
850
|
+
order?: string[] | undefined;
|
|
851
851
|
} | undefined;
|
|
852
852
|
} | {
|
|
853
853
|
content: {
|
|
@@ -974,8 +974,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
974
974
|
} | undefined;
|
|
975
975
|
groupBy?: {
|
|
976
976
|
key: string;
|
|
977
|
-
order?: string[] | undefined;
|
|
978
977
|
labels?: Record<string, string> | undefined;
|
|
978
|
+
order?: string[] | undefined;
|
|
979
979
|
} | undefined;
|
|
980
980
|
} | {
|
|
981
981
|
content: {
|
|
@@ -1163,12 +1163,12 @@ declare const ToolSettingsListGroupBySchema: z.ZodObject<{
|
|
|
1163
1163
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
1165
|
key: string;
|
|
1166
|
-
order?: string[] | undefined;
|
|
1167
1166
|
labels?: Record<string, string> | undefined;
|
|
1167
|
+
order?: string[] | undefined;
|
|
1168
1168
|
}, {
|
|
1169
1169
|
key: string;
|
|
1170
|
-
order?: string[] | undefined;
|
|
1171
1170
|
labels?: Record<string, string> | undefined;
|
|
1171
|
+
order?: string[] | undefined;
|
|
1172
1172
|
}>;
|
|
1173
1173
|
/**
|
|
1174
1174
|
* List view backed by tools
|
|
@@ -1234,12 +1234,12 @@ declare const ToolSettingsListViewSchema: z.ZodObject<{
|
|
|
1234
1234
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1236
|
key: string;
|
|
1237
|
-
order?: string[] | undefined;
|
|
1238
1237
|
labels?: Record<string, string> | undefined;
|
|
1238
|
+
order?: string[] | undefined;
|
|
1239
1239
|
}, {
|
|
1240
1240
|
key: string;
|
|
1241
|
-
order?: string[] | undefined;
|
|
1242
1241
|
labels?: Record<string, string> | undefined;
|
|
1242
|
+
order?: string[] | undefined;
|
|
1243
1243
|
}>>;
|
|
1244
1244
|
}, "strip", z.ZodTypeAny, {
|
|
1245
1245
|
kind: "list";
|
|
@@ -1268,8 +1268,8 @@ declare const ToolSettingsListViewSchema: z.ZodObject<{
|
|
|
1268
1268
|
} | undefined;
|
|
1269
1269
|
groupBy?: {
|
|
1270
1270
|
key: string;
|
|
1271
|
-
order?: string[] | undefined;
|
|
1272
1271
|
labels?: Record<string, string> | undefined;
|
|
1272
|
+
order?: string[] | undefined;
|
|
1273
1273
|
} | undefined;
|
|
1274
1274
|
}, {
|
|
1275
1275
|
kind: "list";
|
|
@@ -1298,8 +1298,8 @@ declare const ToolSettingsListViewSchema: z.ZodObject<{
|
|
|
1298
1298
|
} | undefined;
|
|
1299
1299
|
groupBy?: {
|
|
1300
1300
|
key: string;
|
|
1301
|
-
order?: string[] | undefined;
|
|
1302
1301
|
labels?: Record<string, string> | undefined;
|
|
1302
|
+
order?: string[] | undefined;
|
|
1303
1303
|
} | undefined;
|
|
1304
1304
|
}>;
|
|
1305
1305
|
/**
|
|
@@ -1418,12 +1418,12 @@ declare const ToolSettingsViewSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1418
1418
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1419
1419
|
}, "strip", z.ZodTypeAny, {
|
|
1420
1420
|
key: string;
|
|
1421
|
-
order?: string[] | undefined;
|
|
1422
1421
|
labels?: Record<string, string> | undefined;
|
|
1422
|
+
order?: string[] | undefined;
|
|
1423
1423
|
}, {
|
|
1424
1424
|
key: string;
|
|
1425
|
-
order?: string[] | undefined;
|
|
1426
1425
|
labels?: Record<string, string> | undefined;
|
|
1426
|
+
order?: string[] | undefined;
|
|
1427
1427
|
}>>;
|
|
1428
1428
|
}, "strip", z.ZodTypeAny, {
|
|
1429
1429
|
kind: "list";
|
|
@@ -1452,8 +1452,8 @@ declare const ToolSettingsViewSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1452
1452
|
} | undefined;
|
|
1453
1453
|
groupBy?: {
|
|
1454
1454
|
key: string;
|
|
1455
|
-
order?: string[] | undefined;
|
|
1456
1455
|
labels?: Record<string, string> | undefined;
|
|
1456
|
+
order?: string[] | undefined;
|
|
1457
1457
|
} | undefined;
|
|
1458
1458
|
}, {
|
|
1459
1459
|
kind: "list";
|
|
@@ -1482,8 +1482,8 @@ declare const ToolSettingsViewSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1482
1482
|
} | undefined;
|
|
1483
1483
|
groupBy?: {
|
|
1484
1484
|
key: string;
|
|
1485
|
-
order?: string[] | undefined;
|
|
1486
1485
|
labels?: Record<string, string> | undefined;
|
|
1486
|
+
order?: string[] | undefined;
|
|
1487
1487
|
} | undefined;
|
|
1488
1488
|
}>, z.ZodObject<{
|
|
1489
1489
|
kind: z.ZodLiteral<"component">;
|
|
@@ -1602,12 +1602,12 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1602
1602
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1603
1603
|
}, "strip", z.ZodTypeAny, {
|
|
1604
1604
|
key: string;
|
|
1605
|
-
order?: string[] | undefined;
|
|
1606
1605
|
labels?: Record<string, string> | undefined;
|
|
1606
|
+
order?: string[] | undefined;
|
|
1607
1607
|
}, {
|
|
1608
1608
|
key: string;
|
|
1609
|
-
order?: string[] | undefined;
|
|
1610
1609
|
labels?: Record<string, string> | undefined;
|
|
1610
|
+
order?: string[] | undefined;
|
|
1611
1611
|
}>>;
|
|
1612
1612
|
}, "strip", z.ZodTypeAny, {
|
|
1613
1613
|
kind: "list";
|
|
@@ -1636,8 +1636,8 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1636
1636
|
} | undefined;
|
|
1637
1637
|
groupBy?: {
|
|
1638
1638
|
key: string;
|
|
1639
|
-
order?: string[] | undefined;
|
|
1640
1639
|
labels?: Record<string, string> | undefined;
|
|
1640
|
+
order?: string[] | undefined;
|
|
1641
1641
|
} | undefined;
|
|
1642
1642
|
}, {
|
|
1643
1643
|
kind: "list";
|
|
@@ -1666,8 +1666,8 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1666
1666
|
} | undefined;
|
|
1667
1667
|
groupBy?: {
|
|
1668
1668
|
key: string;
|
|
1669
|
-
order?: string[] | undefined;
|
|
1670
1669
|
labels?: Record<string, string> | undefined;
|
|
1670
|
+
order?: string[] | undefined;
|
|
1671
1671
|
} | undefined;
|
|
1672
1672
|
}>, z.ZodObject<{
|
|
1673
1673
|
kind: z.ZodLiteral<"component">;
|
|
@@ -1748,8 +1748,8 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1748
1748
|
} | undefined;
|
|
1749
1749
|
groupBy?: {
|
|
1750
1750
|
key: string;
|
|
1751
|
-
order?: string[] | undefined;
|
|
1752
1751
|
labels?: Record<string, string> | undefined;
|
|
1752
|
+
order?: string[] | undefined;
|
|
1753
1753
|
} | undefined;
|
|
1754
1754
|
} | {
|
|
1755
1755
|
content: {
|
|
@@ -1795,8 +1795,8 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1795
1795
|
} | undefined;
|
|
1796
1796
|
groupBy?: {
|
|
1797
1797
|
key: string;
|
|
1798
|
-
order?: string[] | undefined;
|
|
1799
1798
|
labels?: Record<string, string> | undefined;
|
|
1799
|
+
order?: string[] | undefined;
|
|
1800
1800
|
} | undefined;
|
|
1801
1801
|
} | {
|
|
1802
1802
|
content: {
|
|
@@ -2274,12 +2274,12 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2274
2274
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2275
2275
|
}, "strip", z.ZodTypeAny, {
|
|
2276
2276
|
key: string;
|
|
2277
|
-
order?: string[] | undefined;
|
|
2278
2277
|
labels?: Record<string, string> | undefined;
|
|
2278
|
+
order?: string[] | undefined;
|
|
2279
2279
|
}, {
|
|
2280
2280
|
key: string;
|
|
2281
|
-
order?: string[] | undefined;
|
|
2282
2281
|
labels?: Record<string, string> | undefined;
|
|
2282
|
+
order?: string[] | undefined;
|
|
2283
2283
|
}>>;
|
|
2284
2284
|
}, "strip", z.ZodTypeAny, {
|
|
2285
2285
|
kind: "list";
|
|
@@ -2308,8 +2308,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2308
2308
|
} | undefined;
|
|
2309
2309
|
groupBy?: {
|
|
2310
2310
|
key: string;
|
|
2311
|
-
order?: string[] | undefined;
|
|
2312
2311
|
labels?: Record<string, string> | undefined;
|
|
2312
|
+
order?: string[] | undefined;
|
|
2313
2313
|
} | undefined;
|
|
2314
2314
|
}, {
|
|
2315
2315
|
kind: "list";
|
|
@@ -2338,8 +2338,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2338
2338
|
} | undefined;
|
|
2339
2339
|
groupBy?: {
|
|
2340
2340
|
key: string;
|
|
2341
|
-
order?: string[] | undefined;
|
|
2342
2341
|
labels?: Record<string, string> | undefined;
|
|
2342
|
+
order?: string[] | undefined;
|
|
2343
2343
|
} | undefined;
|
|
2344
2344
|
}>, z.ZodObject<{
|
|
2345
2345
|
kind: z.ZodLiteral<"component">;
|
|
@@ -2420,8 +2420,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2420
2420
|
} | undefined;
|
|
2421
2421
|
groupBy?: {
|
|
2422
2422
|
key: string;
|
|
2423
|
-
order?: string[] | undefined;
|
|
2424
2423
|
labels?: Record<string, string> | undefined;
|
|
2424
|
+
order?: string[] | undefined;
|
|
2425
2425
|
} | undefined;
|
|
2426
2426
|
} | {
|
|
2427
2427
|
content: {
|
|
@@ -2467,8 +2467,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2467
2467
|
} | undefined;
|
|
2468
2468
|
groupBy?: {
|
|
2469
2469
|
key: string;
|
|
2470
|
-
order?: string[] | undefined;
|
|
2471
2470
|
labels?: Record<string, string> | undefined;
|
|
2471
|
+
order?: string[] | undefined;
|
|
2472
2472
|
} | undefined;
|
|
2473
2473
|
} | {
|
|
2474
2474
|
content: {
|
|
@@ -2752,8 +2752,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2752
2752
|
} | undefined;
|
|
2753
2753
|
groupBy?: {
|
|
2754
2754
|
key: string;
|
|
2755
|
-
order?: string[] | undefined;
|
|
2756
2755
|
labels?: Record<string, string> | undefined;
|
|
2756
|
+
order?: string[] | undefined;
|
|
2757
2757
|
} | undefined;
|
|
2758
2758
|
} | {
|
|
2759
2759
|
content: {
|
|
@@ -2861,8 +2861,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2861
2861
|
} | undefined;
|
|
2862
2862
|
groupBy?: {
|
|
2863
2863
|
key: string;
|
|
2864
|
-
order?: string[] | undefined;
|
|
2865
2864
|
labels?: Record<string, string> | undefined;
|
|
2865
|
+
order?: string[] | undefined;
|
|
2866
2866
|
} | undefined;
|
|
2867
2867
|
} | {
|
|
2868
2868
|
content: {
|
|
@@ -4828,6 +4828,629 @@ declare const ListPropsSchema: z.ZodObject<{
|
|
|
4828
4828
|
}>]>;
|
|
4829
4829
|
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4830
4830
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4831
|
+
/**
|
|
4832
|
+
* The skies the weather components know how to draw. Closed on purpose: the
|
|
4833
|
+
* icon is chosen from this list, and a string outside it has no picture.
|
|
4834
|
+
*/
|
|
4835
|
+
declare const WeatherConditionSchema: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4836
|
+
declare const WeatherWindSchema: z.ZodObject<{
|
|
4837
|
+
speed: z.ZodNumber;
|
|
4838
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4839
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4840
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4841
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4842
|
+
speed: z.ZodNumber;
|
|
4843
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4844
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4845
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4846
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4847
|
+
speed: z.ZodNumber;
|
|
4848
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4849
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4850
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4851
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4852
|
+
declare const WeatherNowPropsSchema: z.ZodObject<{
|
|
4853
|
+
component: z.ZodLiteral<"WeatherNow">;
|
|
4854
|
+
place: z.ZodString;
|
|
4855
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4856
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4857
|
+
temperature: z.ZodNumber;
|
|
4858
|
+
feelsLike: z.ZodOptional<z.ZodNumber>;
|
|
4859
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4860
|
+
wind: z.ZodOptional<z.ZodObject<{
|
|
4861
|
+
speed: z.ZodNumber;
|
|
4862
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4863
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4864
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4865
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4866
|
+
speed: z.ZodNumber;
|
|
4867
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4868
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4869
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4870
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4871
|
+
speed: z.ZodNumber;
|
|
4872
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4873
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4874
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4875
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4876
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4877
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4878
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4879
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4880
|
+
component: z.ZodLiteral<"WeatherNow">;
|
|
4881
|
+
place: z.ZodString;
|
|
4882
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4883
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4884
|
+
temperature: z.ZodNumber;
|
|
4885
|
+
feelsLike: z.ZodOptional<z.ZodNumber>;
|
|
4886
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4887
|
+
wind: z.ZodOptional<z.ZodObject<{
|
|
4888
|
+
speed: z.ZodNumber;
|
|
4889
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4890
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4891
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4892
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4893
|
+
speed: z.ZodNumber;
|
|
4894
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4895
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4896
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4897
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4898
|
+
speed: z.ZodNumber;
|
|
4899
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4900
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4901
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4902
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4903
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4904
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4905
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4906
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4907
|
+
component: z.ZodLiteral<"WeatherNow">;
|
|
4908
|
+
place: z.ZodString;
|
|
4909
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4910
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4911
|
+
temperature: z.ZodNumber;
|
|
4912
|
+
feelsLike: z.ZodOptional<z.ZodNumber>;
|
|
4913
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4914
|
+
wind: z.ZodOptional<z.ZodObject<{
|
|
4915
|
+
speed: z.ZodNumber;
|
|
4916
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4917
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4918
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4919
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4920
|
+
speed: z.ZodNumber;
|
|
4921
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4922
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4923
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4924
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4925
|
+
speed: z.ZodNumber;
|
|
4926
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4927
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
4928
|
+
gust: z.ZodOptional<z.ZodNumber>;
|
|
4929
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
4930
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4931
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4932
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4933
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4934
|
+
declare const WeatherForecastStepSchema: z.ZodObject<{
|
|
4935
|
+
label: z.ZodString;
|
|
4936
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4937
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4938
|
+
high: z.ZodNumber;
|
|
4939
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4940
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4941
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4942
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4943
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4944
|
+
label: z.ZodString;
|
|
4945
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4946
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4947
|
+
high: z.ZodNumber;
|
|
4948
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4949
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4950
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4951
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4952
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4953
|
+
label: z.ZodString;
|
|
4954
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4955
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4956
|
+
high: z.ZodNumber;
|
|
4957
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4958
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4959
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4960
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4961
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4962
|
+
declare const WeatherForecastPropsSchema: z.ZodObject<{
|
|
4963
|
+
component: z.ZodLiteral<"WeatherForecast">;
|
|
4964
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4965
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4966
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
4967
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
4968
|
+
label: z.ZodString;
|
|
4969
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4970
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4971
|
+
high: z.ZodNumber;
|
|
4972
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4973
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4974
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4975
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4976
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4977
|
+
label: z.ZodString;
|
|
4978
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4979
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4980
|
+
high: z.ZodNumber;
|
|
4981
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4982
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4983
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4984
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4985
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4986
|
+
label: z.ZodString;
|
|
4987
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
4988
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
4989
|
+
high: z.ZodNumber;
|
|
4990
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
4991
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
4992
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
4993
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
4994
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4995
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4996
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4997
|
+
component: z.ZodLiteral<"WeatherForecast">;
|
|
4998
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5000
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5001
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
5002
|
+
label: z.ZodString;
|
|
5003
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5004
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5005
|
+
high: z.ZodNumber;
|
|
5006
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5007
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5008
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5009
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5010
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5011
|
+
label: z.ZodString;
|
|
5012
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5013
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5014
|
+
high: z.ZodNumber;
|
|
5015
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5016
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5017
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5018
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5019
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5020
|
+
label: z.ZodString;
|
|
5021
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5022
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5023
|
+
high: z.ZodNumber;
|
|
5024
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5025
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5026
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5027
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5028
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5029
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5030
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5031
|
+
component: z.ZodLiteral<"WeatherForecast">;
|
|
5032
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5033
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5034
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5035
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
5036
|
+
label: z.ZodString;
|
|
5037
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5038
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5039
|
+
high: z.ZodNumber;
|
|
5040
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5041
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5042
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5043
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5044
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5045
|
+
label: z.ZodString;
|
|
5046
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5047
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5048
|
+
high: z.ZodNumber;
|
|
5049
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5050
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5051
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5052
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5053
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5054
|
+
label: z.ZodString;
|
|
5055
|
+
condition: z.ZodEnum<["clear", "partly-cloudy", "cloudy", "overcast", "fog", "light-rain", "rain", "heavy-rain", "sleet", "light-snow", "snow", "heavy-snow", "thunderstorm", "hail", "windy"]>;
|
|
5056
|
+
conditionLabel: z.ZodOptional<z.ZodString>;
|
|
5057
|
+
high: z.ZodNumber;
|
|
5058
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
5059
|
+
night: z.ZodOptional<z.ZodBoolean>;
|
|
5060
|
+
precipitation: z.ZodOptional<z.ZodNumber>;
|
|
5061
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5062
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5063
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5064
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5065
|
+
declare const ChartKindSchema: z.ZodEnum<["line", "bar", "area"]>;
|
|
5066
|
+
declare const ChartSeriesSchema: z.ZodObject<{
|
|
5067
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5069
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5070
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5071
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5072
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5073
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5074
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5075
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5076
|
+
/**
|
|
5077
|
+
* Eight series is the ceiling because the host palette has eight slots, assigned
|
|
5078
|
+
* in a fixed order so a series keeps its colour wherever it appears. A ninth
|
|
5079
|
+
* would need a generated hue, and a generated hue is how a chart stops being
|
|
5080
|
+
* readable to colour-blind viewers.
|
|
5081
|
+
*/
|
|
5082
|
+
declare const ChartPropsSchema: z.ZodObject<{
|
|
5083
|
+
component: z.ZodLiteral<"Chart">;
|
|
5084
|
+
chart: z.ZodOptional<z.ZodEnum<["line", "bar", "area"]>>;
|
|
5085
|
+
series: z.ZodArray<z.ZodObject<{
|
|
5086
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5087
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5088
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5089
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5090
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5091
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5092
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5093
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5094
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5095
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5096
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5097
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5098
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5099
|
+
zeroBaseline: z.ZodOptional<z.ZodBoolean>;
|
|
5100
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
5101
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5102
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5103
|
+
component: z.ZodLiteral<"Chart">;
|
|
5104
|
+
chart: z.ZodOptional<z.ZodEnum<["line", "bar", "area"]>>;
|
|
5105
|
+
series: z.ZodArray<z.ZodObject<{
|
|
5106
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5107
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5108
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5110
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5111
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5112
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5113
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5114
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5115
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5116
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5117
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5118
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5119
|
+
zeroBaseline: z.ZodOptional<z.ZodBoolean>;
|
|
5120
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
5121
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5122
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5123
|
+
component: z.ZodLiteral<"Chart">;
|
|
5124
|
+
chart: z.ZodOptional<z.ZodEnum<["line", "bar", "area"]>>;
|
|
5125
|
+
series: z.ZodArray<z.ZodObject<{
|
|
5126
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5127
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5128
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5129
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5130
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5131
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5133
|
+
points: z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">;
|
|
5134
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5135
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5136
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5137
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5138
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5139
|
+
zeroBaseline: z.ZodOptional<z.ZodBoolean>;
|
|
5140
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
5141
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5142
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5143
|
+
declare const StatTrendSchema: z.ZodEnum<["up", "down", "flat"]>;
|
|
5144
|
+
declare const StatTilePropsSchema: z.ZodObject<{
|
|
5145
|
+
component: z.ZodLiteral<"StatTile">;
|
|
5146
|
+
label: z.ZodString;
|
|
5147
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5148
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5149
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
5150
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5151
|
+
trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
|
|
5152
|
+
trendLabel: z.ZodOptional<z.ZodString>;
|
|
5153
|
+
trendIsGood: z.ZodOptional<z.ZodBoolean>;
|
|
5154
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5155
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5156
|
+
component: z.ZodLiteral<"StatTile">;
|
|
5157
|
+
label: z.ZodString;
|
|
5158
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5159
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5160
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
5161
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5162
|
+
trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
|
|
5163
|
+
trendLabel: z.ZodOptional<z.ZodString>;
|
|
5164
|
+
trendIsGood: z.ZodOptional<z.ZodBoolean>;
|
|
5165
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5166
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5167
|
+
component: z.ZodLiteral<"StatTile">;
|
|
5168
|
+
label: z.ZodString;
|
|
5169
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5170
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5171
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5173
|
+
trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
|
|
5174
|
+
trendLabel: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
trendIsGood: z.ZodOptional<z.ZodBoolean>;
|
|
5176
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5177
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5178
|
+
declare const KeyValueRowSchema: z.ZodObject<{
|
|
5179
|
+
label: z.ZodString;
|
|
5180
|
+
value: z.ZodString;
|
|
5181
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5182
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5183
|
+
label: z.ZodString;
|
|
5184
|
+
value: z.ZodString;
|
|
5185
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5186
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5187
|
+
label: z.ZodString;
|
|
5188
|
+
value: z.ZodString;
|
|
5189
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5190
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5191
|
+
declare const KeyValueListPropsSchema: z.ZodObject<{
|
|
5192
|
+
component: z.ZodLiteral<"KeyValueList">;
|
|
5193
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
5194
|
+
label: z.ZodString;
|
|
5195
|
+
value: z.ZodString;
|
|
5196
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5197
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5198
|
+
label: z.ZodString;
|
|
5199
|
+
value: z.ZodString;
|
|
5200
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5201
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5202
|
+
label: z.ZodString;
|
|
5203
|
+
value: z.ZodString;
|
|
5204
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5205
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5206
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5207
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5208
|
+
component: z.ZodLiteral<"KeyValueList">;
|
|
5209
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
5210
|
+
label: z.ZodString;
|
|
5211
|
+
value: z.ZodString;
|
|
5212
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5213
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5214
|
+
label: z.ZodString;
|
|
5215
|
+
value: z.ZodString;
|
|
5216
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5217
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5218
|
+
label: z.ZodString;
|
|
5219
|
+
value: z.ZodString;
|
|
5220
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5221
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5222
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5223
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5224
|
+
component: z.ZodLiteral<"KeyValueList">;
|
|
5225
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
5226
|
+
label: z.ZodString;
|
|
5227
|
+
value: z.ZodString;
|
|
5228
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5229
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5230
|
+
label: z.ZodString;
|
|
5231
|
+
value: z.ZodString;
|
|
5232
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5233
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5234
|
+
label: z.ZodString;
|
|
5235
|
+
value: z.ZodString;
|
|
5236
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5237
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5238
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5239
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5240
|
+
declare const TimelineVariantSchema: z.ZodEnum<["default", "accent", "success", "warning", "danger"]>;
|
|
5241
|
+
declare const TimelineEntrySchema: z.ZodObject<{
|
|
5242
|
+
time: z.ZodString;
|
|
5243
|
+
title: z.ZodString;
|
|
5244
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5245
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5246
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5247
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5248
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5249
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5250
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5251
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5252
|
+
time: z.ZodString;
|
|
5253
|
+
title: z.ZodString;
|
|
5254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5255
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5256
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5257
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5258
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5259
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5260
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5261
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5262
|
+
time: z.ZodString;
|
|
5263
|
+
title: z.ZodString;
|
|
5264
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5265
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5266
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5267
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5268
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5269
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5270
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5271
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5272
|
+
declare const TimelinePropsSchema: z.ZodObject<{
|
|
5273
|
+
component: z.ZodLiteral<"Timeline">;
|
|
5274
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5275
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5276
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
5277
|
+
time: z.ZodString;
|
|
5278
|
+
title: z.ZodString;
|
|
5279
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5280
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5281
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5282
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5283
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5284
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5285
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5286
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5287
|
+
time: z.ZodString;
|
|
5288
|
+
title: z.ZodString;
|
|
5289
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5290
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5291
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5292
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5293
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5294
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5295
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5296
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5297
|
+
time: z.ZodString;
|
|
5298
|
+
title: z.ZodString;
|
|
5299
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5300
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5301
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5302
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5303
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5304
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5305
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5306
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5307
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5308
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5309
|
+
component: z.ZodLiteral<"Timeline">;
|
|
5310
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5311
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5312
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
5313
|
+
time: z.ZodString;
|
|
5314
|
+
title: z.ZodString;
|
|
5315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5316
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5317
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5318
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5319
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5320
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5321
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5322
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5323
|
+
time: z.ZodString;
|
|
5324
|
+
title: z.ZodString;
|
|
5325
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5326
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5327
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5328
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5329
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5330
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5331
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5332
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5333
|
+
time: z.ZodString;
|
|
5334
|
+
title: z.ZodString;
|
|
5335
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5336
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5337
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5338
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5339
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5340
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5341
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5342
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5343
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5344
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5345
|
+
component: z.ZodLiteral<"Timeline">;
|
|
5346
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5347
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5348
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
5349
|
+
time: z.ZodString;
|
|
5350
|
+
title: z.ZodString;
|
|
5351
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5352
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5353
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5354
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5355
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5356
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5357
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5358
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5359
|
+
time: z.ZodString;
|
|
5360
|
+
title: z.ZodString;
|
|
5361
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5362
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5363
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5364
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5365
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5366
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5367
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5368
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5369
|
+
time: z.ZodString;
|
|
5370
|
+
title: z.ZodString;
|
|
5371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5372
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5373
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5374
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5375
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
5376
|
+
past: z.ZodOptional<z.ZodBoolean>;
|
|
5377
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5378
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
5379
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5380
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5381
|
+
declare const NoteVariantSchema: z.ZodEnum<["default", "accent", "success", "warning", "danger"]>;
|
|
5382
|
+
declare const NotePropsSchema: z.ZodObject<{
|
|
5383
|
+
component: z.ZodLiteral<"Note">;
|
|
5384
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5385
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5386
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5387
|
+
content: z.ZodString;
|
|
5388
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
5389
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5390
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5391
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5392
|
+
component: z.ZodLiteral<"Note">;
|
|
5393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5394
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5395
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5396
|
+
content: z.ZodString;
|
|
5397
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
5398
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5399
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5400
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5401
|
+
component: z.ZodLiteral<"Note">;
|
|
5402
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5403
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5404
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
5405
|
+
content: z.ZodString;
|
|
5406
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
5407
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "accent", "success", "warning", "danger"]>>;
|
|
5408
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5409
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
5410
|
+
declare const CalendarEventStatusSchema: z.ZodEnum<["confirmed", "tentative", "cancelled"]>;
|
|
5411
|
+
declare const CalendarEventPropsSchema: z.ZodObject<{
|
|
5412
|
+
component: z.ZodLiteral<"CalendarEvent">;
|
|
5413
|
+
title: z.ZodString;
|
|
5414
|
+
start: z.ZodString;
|
|
5415
|
+
end: z.ZodOptional<z.ZodString>;
|
|
5416
|
+
allDay: z.ZodOptional<z.ZodBoolean>;
|
|
5417
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5418
|
+
organizer: z.ZodOptional<z.ZodString>;
|
|
5419
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5420
|
+
calendar: z.ZodOptional<z.ZodString>;
|
|
5421
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
5422
|
+
recurrence: z.ZodOptional<z.ZodString>;
|
|
5423
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
5424
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5425
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5426
|
+
component: z.ZodLiteral<"CalendarEvent">;
|
|
5427
|
+
title: z.ZodString;
|
|
5428
|
+
start: z.ZodString;
|
|
5429
|
+
end: z.ZodOptional<z.ZodString>;
|
|
5430
|
+
allDay: z.ZodOptional<z.ZodBoolean>;
|
|
5431
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5432
|
+
organizer: z.ZodOptional<z.ZodString>;
|
|
5433
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5434
|
+
calendar: z.ZodOptional<z.ZodString>;
|
|
5435
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
5436
|
+
recurrence: z.ZodOptional<z.ZodString>;
|
|
5437
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
5438
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5439
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5440
|
+
component: z.ZodLiteral<"CalendarEvent">;
|
|
5441
|
+
title: z.ZodString;
|
|
5442
|
+
start: z.ZodString;
|
|
5443
|
+
end: z.ZodOptional<z.ZodString>;
|
|
5444
|
+
allDay: z.ZodOptional<z.ZodBoolean>;
|
|
5445
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5446
|
+
organizer: z.ZodOptional<z.ZodString>;
|
|
5447
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5448
|
+
calendar: z.ZodOptional<z.ZodString>;
|
|
5449
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
5450
|
+
recurrence: z.ZodOptional<z.ZodString>;
|
|
5451
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
5452
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5453
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4831
5454
|
type AllowedCSSProperty = z.infer<typeof AllowedCSSPropertySchema>;
|
|
4832
5455
|
type ExtensionComponentStyle = z.infer<typeof ExtensionComponentStyleSchema>;
|
|
4833
5456
|
type ExtensionComponentData = z.infer<typeof ExtensionComponentDataSchema>;
|
|
@@ -4866,4 +5489,81 @@ type FrameVariant = z.infer<typeof FrameVariantSchema>;
|
|
|
4866
5489
|
type FrameProps = z.infer<typeof FramePropsSchema>;
|
|
4867
5490
|
type ListProps = z.infer<typeof ListPropsSchema>;
|
|
4868
5491
|
|
|
4869
|
-
|
|
5492
|
+
/**
|
|
5493
|
+
* Chat Card Schema
|
|
5494
|
+
*
|
|
5495
|
+
* The subset of the component DSL that may appear *in a conversation*, as
|
|
5496
|
+
* opposed to in a panel or a settings form.
|
|
5497
|
+
*
|
|
5498
|
+
* A panel is a place the user went to; a card arrives unbidden in the middle of
|
|
5499
|
+
* a reply, and it is composed by a language model rather than by an extension
|
|
5500
|
+
* author who tested it. So the card profile is narrower than the DSL in three
|
|
5501
|
+
* ways, and each one is a rule about what a card *is*:
|
|
5502
|
+
*
|
|
5503
|
+
* - **No interaction.** No buttons, no inputs, no modals. A card shows; it does
|
|
5504
|
+
* not offer. Everything the user might want to do next, they ask for in
|
|
5505
|
+
* words — which is the whole premise of talking to Stina rather than
|
|
5506
|
+
* operating her.
|
|
5507
|
+
* - **No data binding.** Panels pull from actions and iterate over the result;
|
|
5508
|
+
* a card is a finished value, written out in full. There is no scope for a
|
|
5509
|
+
* `$reference` to resolve against, so one is rejected rather than silently
|
|
5510
|
+
* rendered as nothing — see `findScopeReference`.
|
|
5511
|
+
* - **Strict props.** The panel schemas pass unknown properties through, on the
|
|
5512
|
+
* theory that a newer extension may know something this build does not. Cards
|
|
5513
|
+
* have no such future to protect: an unknown property here is a model that
|
|
5514
|
+
* invented one, and saying so is more useful than dropping it.
|
|
5515
|
+
*
|
|
5516
|
+
* The check runs where the card enters the system — in `core_show_card`, and in
|
|
5517
|
+
* anything else that accepts a card from a tool — so a rejection comes back to
|
|
5518
|
+
* the model as an error it can act on, in the same turn.
|
|
5519
|
+
*/
|
|
5520
|
+
|
|
5521
|
+
/** A card component and, recursively, everything it may contain. */
|
|
5522
|
+
type ChatCardComponent = {
|
|
5523
|
+
component: string;
|
|
5524
|
+
style?: Record<string, string>;
|
|
5525
|
+
[key: string]: unknown;
|
|
5526
|
+
};
|
|
5527
|
+
/** Every component name a card may use. Exported so the docs and the tool description stay in step. */
|
|
5528
|
+
declare const CHAT_CARD_COMPONENTS: readonly ["VerticalStack", "HorizontalStack", "Grid", "Frame", "List", "Divider", "Header", "Label", "Paragraph", "Markdown", "Icon", "Pill", "WeatherNow", "WeatherForecast", "Chart", "StatTile", "KeyValueList", "Timeline", "Note", "CalendarEvent"];
|
|
5529
|
+
/**
|
|
5530
|
+
* One component of a chat card.
|
|
5531
|
+
*
|
|
5532
|
+
* Discriminated on `component` so a wrong property is reported against the
|
|
5533
|
+
* component the author actually named, rather than as "no union member matched"
|
|
5534
|
+
* across eighteen alternatives.
|
|
5535
|
+
*/
|
|
5536
|
+
declare const ChatCardComponentSchema: z.ZodType<ChatCardComponent>;
|
|
5537
|
+
/** The root of a card. Same profile as any component within it. */
|
|
5538
|
+
declare const ChatCardSchema: z.ZodType<ChatCardComponent, z.ZodTypeDef, ChatCardComponent>;
|
|
5539
|
+
/** What came back from validating a card. */
|
|
5540
|
+
type ChatCardValidation = {
|
|
5541
|
+
ok: true;
|
|
5542
|
+
card: ChatCardComponent;
|
|
5543
|
+
} | {
|
|
5544
|
+
ok: false;
|
|
5545
|
+
error: string;
|
|
5546
|
+
};
|
|
5547
|
+
/**
|
|
5548
|
+
* Validate a card against the chat profile.
|
|
5549
|
+
*
|
|
5550
|
+
* Returns a message rather than throwing, because the caller is almost always a
|
|
5551
|
+
* tool that has to hand the reason back to the model — an exception would become
|
|
5552
|
+
* "the tool failed", which is not something anyone can fix.
|
|
5553
|
+
*/
|
|
5554
|
+
declare function validateChatCard(card: unknown): ChatCardValidation;
|
|
5555
|
+
/**
|
|
5556
|
+
* The card vocabulary, written out from the schemas themselves.
|
|
5557
|
+
*
|
|
5558
|
+
* This is what a language model is given as documentation, so it is generated
|
|
5559
|
+
* rather than kept by hand: a description that has drifted from the validator
|
|
5560
|
+
* teaches the model to write cards that are then rejected, and the model has no
|
|
5561
|
+
* way to tell which of the two was wrong.
|
|
5562
|
+
*
|
|
5563
|
+
* `style` is left out of every line. It is legal everywhere and interesting
|
|
5564
|
+
* almost nowhere — the components carry their own look, and a card that reaches
|
|
5565
|
+
* for CSS is usually one that should have picked a different component.
|
|
5566
|
+
*/
|
|
5567
|
+
declare function describeChatCardProfile(): string;
|
|
5568
|
+
|
|
5569
|
+
export { type AllowedCSSProperty, AllowedCSSPropertySchema, type Author, AuthorSchema, type ButtonProps, ButtonPropsSchema, CHAT_CARD_COMPONENTS, CalendarEventPropsSchema, CalendarEventStatusSchema, type CapabilityPermission, CapabilityPermissionSchema, ChartKindSchema, ChartPropsSchema, ChartSeriesSchema, type ChatCardComponent, ChatCardComponentSchema, ChatCardSchema, type ChatCardValidation, type CheckboxProps, CheckboxPropsSchema, type CollapsibleProps, CollapsiblePropsSchema, type CommandDefinition, CommandDefinitionSchema, type ConditionalGroupProps, ConditionalGroupPropsSchema, type DateTimeInputProps, DateTimeInputPropsSchema, type DividerProps, DividerPropsSchema, type Engines, EnginesSchema, type ExtensionActionCall, ExtensionActionCallSchema, type ExtensionActionRef, ExtensionActionRefSchema, type ExtensionComponentChildren, ExtensionComponentChildrenSchema, type ExtensionComponentData, ExtensionComponentDataSchema, type ExtensionComponentIterator, ExtensionComponentIteratorSchema, type ExtensionComponentStyle, ExtensionComponentStyleSchema, type ExtensionContributions, ExtensionContributionsSchema, type ExtensionDataSource, ExtensionDataSourceSchema, type ExtensionManifest, ExtensionManifestSchema, type FrameProps, FramePropsSchema, type FrameVariant, FrameVariantSchema, type GridProps, GridPropsSchema, type HeaderProps, HeaderPropsSchema, type HorizontalStackProps, HorizontalStackPropsSchema, type IconButtonProps, IconButtonPropsSchema, type IconButtonType, IconButtonTypeSchema, type IconPickerProps, IconPickerPropsSchema, type IconProps, IconPropsSchema, KeyValueListPropsSchema, KeyValueRowSchema, type LabelProps, LabelPropsSchema, type ListProps, ListPropsSchema, type LocalizedString, LocalizedStringSchema, type MarkdownProps, MarkdownPropsSchema, type ModalProps, ModalPropsSchema, type NetworkPermission, NetworkPermissionSchema, NotePropsSchema, NoteVariantSchema, PERMISSION_PATTERNS, type PanelAction, type PanelActionDataSource, PanelActionDataSourceSchema, PanelActionSchema, type PanelComponentView, PanelComponentViewSchema, type PanelDefinition, PanelDefinitionSchema, type PanelProps, PanelPropsSchema, type PanelUnknownView, PanelUnknownViewSchema, type PanelView, PanelViewSchema, type ParagraphProps, ParagraphPropsSchema, type Permission, PermissionSchema, type PillProps, PillPropsSchema, type PillVariant, PillVariantSchema, type Platform, PlatformSchema, type PromptContribution, PromptContributionSchema, type PromptSection, PromptSectionSchema, type ProviderConfigView, ProviderConfigViewSchema, type ProviderDefinition, ProviderDefinitionSchema, type SelectProps, SelectPropsSchema, StatTilePropsSchema, StatTrendSchema, type StoragePermission, StoragePermissionSchema, type SystemPermission, SystemPermissionSchema, type TextInputProps, TextInputPropsSchema, type TextPreviewProps, TextPreviewPropsSchema, TimelineEntrySchema, TimelinePropsSchema, TimelineVariantSchema, type ToggleProps, TogglePropsSchema, type ToolDefinition, ToolDefinitionSchema, type ToolSettingsActionDataSource, ToolSettingsActionDataSourceSchema, type ToolSettingsComponentView, ToolSettingsComponentViewSchema, type ToolSettingsListGroupBy, ToolSettingsListGroupBySchema, type ToolSettingsListMapping, ToolSettingsListMappingSchema, type ToolSettingsListView, ToolSettingsListViewSchema, type ToolSettingsView, type ToolSettingsViewDefinition, ToolSettingsViewDefinitionSchema, ToolSettingsViewSchema, type UserDataPermission, UserDataPermissionSchema, VALID_PERMISSIONS, type VerticalStackProps, VerticalStackPropsSchema, WeatherConditionSchema, WeatherForecastPropsSchema, WeatherForecastStepSchema, WeatherNowPropsSchema, WeatherWindSchema, describeChatCardProfile, isValidPermission, validateChatCard };
|