@mintlify/validation 0.1.470 → 0.1.471
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/chat-config/index.d.ts +3 -3
- package/dist/chat-config/index.js +1 -1
- package/dist/mint-config/schemas/v2/index.d.ts +21 -21
- package/dist/mint-config/schemas/v2/properties/{font.d.ts → fonts/index.d.ts} +4 -4
- package/dist/mint-config/schemas/v2/properties/{font.js → fonts/index.js} +3 -4
- package/dist/mint-config/schemas/v2/properties/fonts/source.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/fonts/source.js +32 -0
- package/dist/mint-config/schemas/v2/properties/index.d.ts +1 -1
- package/dist/mint-config/schemas/v2/properties/index.js +1 -1
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +3 -3
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +1 -1
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -80,7 +80,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
80
80
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
81
81
|
family: z.ZodString;
|
|
82
82
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
source: z.ZodOptional<z.ZodString
|
|
83
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
84
84
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
family: string;
|
|
@@ -106,7 +106,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
106
106
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
107
107
|
family: z.ZodString;
|
|
108
108
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
source: z.ZodOptional<z.ZodString
|
|
109
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
110
110
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
family: string;
|
|
@@ -132,7 +132,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
132
132
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
133
133
|
family: z.ZodString;
|
|
134
134
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
source: z.ZodOptional<z.ZodString
|
|
135
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
136
136
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
family: string;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { appearanceSchema } from '../mint-config/schemas/v2/properties/appearance.js';
|
|
3
3
|
import { colorsSchema } from '../mint-config/schemas/v2/properties/colors.js';
|
|
4
4
|
import { faviconSchema } from '../mint-config/schemas/v2/properties/favicon.js';
|
|
5
|
-
import { fontsSchema } from '../mint-config/schemas/v2/properties/
|
|
5
|
+
import { fontsSchema } from '../mint-config/schemas/v2/properties/fonts/index.js';
|
|
6
6
|
import { logoSchema } from '../mint-config/schemas/v2/properties/logo.js';
|
|
7
7
|
import { nameSchema } from '../mint-config/schemas/v2/properties/name.js';
|
|
8
8
|
import { footerSchema } from './footer.js';
|
|
@@ -741,7 +741,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
741
741
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
742
742
|
family: z.ZodString;
|
|
743
743
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
744
|
-
source: z.ZodOptional<z.ZodString
|
|
744
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
745
745
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
746
746
|
}, "strip", z.ZodTypeAny, {
|
|
747
747
|
family: string;
|
|
@@ -767,7 +767,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
767
767
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
768
768
|
family: z.ZodString;
|
|
769
769
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
770
|
-
source: z.ZodOptional<z.ZodString
|
|
770
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
771
771
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
772
772
|
}, "strip", z.ZodTypeAny, {
|
|
773
773
|
family: string;
|
|
@@ -793,7 +793,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
793
793
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
794
794
|
family: z.ZodString;
|
|
795
795
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
796
|
-
source: z.ZodOptional<z.ZodString
|
|
796
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
797
797
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
798
798
|
}, "strip", z.ZodTypeAny, {
|
|
799
799
|
family: string;
|
|
@@ -2912,7 +2912,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2912
2912
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
2913
2913
|
family: z.ZodString;
|
|
2914
2914
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
2915
|
-
source: z.ZodOptional<z.ZodString
|
|
2915
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2916
2916
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
2917
2917
|
}, "strip", z.ZodTypeAny, {
|
|
2918
2918
|
family: string;
|
|
@@ -2938,7 +2938,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2938
2938
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2939
2939
|
family: z.ZodString;
|
|
2940
2940
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
2941
|
-
source: z.ZodOptional<z.ZodString
|
|
2941
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2942
2942
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
2943
2943
|
}, "strip", z.ZodTypeAny, {
|
|
2944
2944
|
family: string;
|
|
@@ -2964,7 +2964,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2964
2964
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2965
2965
|
family: z.ZodString;
|
|
2966
2966
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
2967
|
-
source: z.ZodOptional<z.ZodString
|
|
2967
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2968
2968
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
2969
2969
|
}, "strip", z.ZodTypeAny, {
|
|
2970
2970
|
family: string;
|
|
@@ -5083,7 +5083,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5083
5083
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
5084
5084
|
family: z.ZodString;
|
|
5085
5085
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
5086
|
-
source: z.ZodOptional<z.ZodString
|
|
5086
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5087
5087
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
5088
5088
|
}, "strip", z.ZodTypeAny, {
|
|
5089
5089
|
family: string;
|
|
@@ -5109,7 +5109,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5109
5109
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
5110
5110
|
family: z.ZodString;
|
|
5111
5111
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
5112
|
-
source: z.ZodOptional<z.ZodString
|
|
5112
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5113
5113
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
5114
5114
|
}, "strip", z.ZodTypeAny, {
|
|
5115
5115
|
family: string;
|
|
@@ -5135,7 +5135,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5135
5135
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
5136
5136
|
family: z.ZodString;
|
|
5137
5137
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
5138
|
-
source: z.ZodOptional<z.ZodString
|
|
5138
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5139
5139
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
5140
5140
|
}, "strip", z.ZodTypeAny, {
|
|
5141
5141
|
family: string;
|
|
@@ -7254,7 +7254,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7254
7254
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
7255
7255
|
family: z.ZodString;
|
|
7256
7256
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
7257
|
-
source: z.ZodOptional<z.ZodString
|
|
7257
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7258
7258
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
7259
7259
|
}, "strip", z.ZodTypeAny, {
|
|
7260
7260
|
family: string;
|
|
@@ -7280,7 +7280,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7280
7280
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
7281
7281
|
family: z.ZodString;
|
|
7282
7282
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
7283
|
-
source: z.ZodOptional<z.ZodString
|
|
7283
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7284
7284
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
7285
7285
|
}, "strip", z.ZodTypeAny, {
|
|
7286
7286
|
family: string;
|
|
@@ -7306,7 +7306,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7306
7306
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
7307
7307
|
family: z.ZodString;
|
|
7308
7308
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
7309
|
-
source: z.ZodOptional<z.ZodString
|
|
7309
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7310
7310
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
7311
7311
|
}, "strip", z.ZodTypeAny, {
|
|
7312
7312
|
family: string;
|
|
@@ -9425,7 +9425,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
9425
9425
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
9426
9426
|
family: z.ZodString;
|
|
9427
9427
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
9428
|
-
source: z.ZodOptional<z.ZodString
|
|
9428
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9429
9429
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
9430
9430
|
}, "strip", z.ZodTypeAny, {
|
|
9431
9431
|
family: string;
|
|
@@ -9451,7 +9451,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
9451
9451
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
9452
9452
|
family: z.ZodString;
|
|
9453
9453
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
9454
|
-
source: z.ZodOptional<z.ZodString
|
|
9454
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9455
9455
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
9456
9456
|
}, "strip", z.ZodTypeAny, {
|
|
9457
9457
|
family: string;
|
|
@@ -9477,7 +9477,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
9477
9477
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
9478
9478
|
family: z.ZodString;
|
|
9479
9479
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
9480
|
-
source: z.ZodOptional<z.ZodString
|
|
9480
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9481
9481
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
9482
9482
|
}, "strip", z.ZodTypeAny, {
|
|
9483
9483
|
family: string;
|
|
@@ -11596,7 +11596,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
11596
11596
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
11597
11597
|
family: z.ZodString;
|
|
11598
11598
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
11599
|
-
source: z.ZodOptional<z.ZodString
|
|
11599
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11600
11600
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
11601
11601
|
}, "strip", z.ZodTypeAny, {
|
|
11602
11602
|
family: string;
|
|
@@ -11622,7 +11622,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
11622
11622
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
11623
11623
|
family: z.ZodString;
|
|
11624
11624
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
11625
|
-
source: z.ZodOptional<z.ZodString
|
|
11625
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11626
11626
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
11627
11627
|
}, "strip", z.ZodTypeAny, {
|
|
11628
11628
|
family: string;
|
|
@@ -11648,7 +11648,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
11648
11648
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
11649
11649
|
family: z.ZodString;
|
|
11650
11650
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
11651
|
-
source: z.ZodOptional<z.ZodString
|
|
11651
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11652
11652
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
11653
11653
|
}, "strip", z.ZodTypeAny, {
|
|
11654
11654
|
family: string;
|
|
@@ -13767,7 +13767,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
13767
13767
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
13768
13768
|
family: z.ZodString;
|
|
13769
13769
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
13770
|
-
source: z.ZodOptional<z.ZodString
|
|
13770
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
13771
13771
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
13772
13772
|
}, "strip", z.ZodTypeAny, {
|
|
13773
13773
|
family: string;
|
|
@@ -13793,7 +13793,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
13793
13793
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
13794
13794
|
family: z.ZodString;
|
|
13795
13795
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
13796
|
-
source: z.ZodOptional<z.ZodString
|
|
13796
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
13797
13797
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
13798
13798
|
}, "strip", z.ZodTypeAny, {
|
|
13799
13799
|
family: string;
|
|
@@ -13819,7 +13819,7 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
13819
13819
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
13820
13820
|
family: z.ZodString;
|
|
13821
13821
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
13822
|
-
source: z.ZodOptional<z.ZodString
|
|
13822
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
13823
13823
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
13824
13824
|
}, "strip", z.ZodTypeAny, {
|
|
13825
13825
|
family: string;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const fontDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
3
3
|
family: z.ZodString;
|
|
4
4
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
source: z.ZodOptional<z.ZodString
|
|
5
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6
6
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
family: string;
|
|
@@ -28,7 +28,7 @@ export declare const fontDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
28
28
|
export declare const fontsSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
29
29
|
family: z.ZodString;
|
|
30
30
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
31
|
-
source: z.ZodOptional<z.ZodString
|
|
31
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
32
32
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
family: string;
|
|
@@ -54,7 +54,7 @@ export declare const fontsSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
54
54
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
55
55
|
family: z.ZodString;
|
|
56
56
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
source: z.ZodOptional<z.ZodString
|
|
57
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
58
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
family: string;
|
|
@@ -80,7 +80,7 @@ export declare const fontsSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
80
80
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
81
81
|
family: z.ZodString;
|
|
82
82
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
source: z.ZodOptional<z.ZodString
|
|
83
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
84
84
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
family: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fontFormats } from '@mintlify/models';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { fontSourceSchema } from './source.js';
|
|
3
4
|
export const fontDetailsSchema = z
|
|
4
5
|
.object({
|
|
5
6
|
family: z.string().describe('The font family, such as "Open Sans", "Playfair Display"'),
|
|
@@ -7,11 +8,9 @@ export const fontDetailsSchema = z
|
|
|
7
8
|
.number()
|
|
8
9
|
.optional()
|
|
9
10
|
.describe('The font weight, such as 400, 700. Precise font weights such as 550 are supported for variable fonts.'),
|
|
10
|
-
source:
|
|
11
|
-
.string()
|
|
12
|
-
.url()
|
|
11
|
+
source: fontSourceSchema
|
|
13
12
|
.optional()
|
|
14
|
-
.describe('The font source, such as https://
|
|
13
|
+
.describe('The font source, such as /path/to/font.woff2 or https://example.com/path/to/font.woff2'),
|
|
15
14
|
format: z.enum(fontFormats).optional().describe('The font format, can be one of woff, woff2'),
|
|
16
15
|
})
|
|
17
16
|
.refine((data) => {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { isAbsoluteUrl } from '../../../../isAbsoluteUrl.js';
|
|
3
|
+
import { normalizeRelativePath } from '../../../../transforms/normalizeRelativePath.js';
|
|
4
|
+
export const fontSourceSchema = z
|
|
5
|
+
.string()
|
|
6
|
+
.trim()
|
|
7
|
+
.nonempty()
|
|
8
|
+
.transform((value, ctx) => {
|
|
9
|
+
if (isAbsoluteUrl(value)) {
|
|
10
|
+
try {
|
|
11
|
+
const url = new URL(value);
|
|
12
|
+
if (url.protocol !== 'https:' && url.protocol !== 'http:') {
|
|
13
|
+
ctx.addIssue({
|
|
14
|
+
code: z.ZodIssueCode.custom,
|
|
15
|
+
message: "Must use protocol https or http. Urls with 'http://' are only supported with cli option --local-schema",
|
|
16
|
+
});
|
|
17
|
+
return z.NEVER;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
catch (_a) {
|
|
21
|
+
ctx.addIssue({
|
|
22
|
+
code: z.ZodIssueCode.custom,
|
|
23
|
+
message: 'Invalid URL',
|
|
24
|
+
});
|
|
25
|
+
return z.NEVER;
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return normalizeRelativePath(value);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -738,7 +738,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const almondConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -738,7 +738,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const aspenConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -738,7 +738,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const lindenConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -738,7 +738,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const mapleConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -738,7 +738,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -738,7 +738,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|
|
@@ -737,7 +737,7 @@ export declare const standardConfigSchema: {
|
|
|
737
737
|
fonts: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodObject<{
|
|
738
738
|
family: import("zod").ZodString;
|
|
739
739
|
weight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
740
|
-
source: import("zod").ZodOptional<import("zod").ZodString
|
|
740
|
+
source: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
741
741
|
format: import("zod").ZodOptional<import("zod").ZodEnum<["woff", "woff2"]>>;
|
|
742
742
|
}, "strip", import("zod").ZodTypeAny, {
|
|
743
743
|
family: string;
|
|
@@ -763,7 +763,7 @@ export declare const standardConfigSchema: {
|
|
|
763
763
|
heading: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
|
|
764
764
|
family: import("zod").ZodString;
|
|
765
765
|
weight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
766
|
-
source: import("zod").ZodOptional<import("zod").ZodString
|
|
766
|
+
source: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
767
767
|
format: import("zod").ZodOptional<import("zod").ZodEnum<["woff", "woff2"]>>;
|
|
768
768
|
}, "strip", import("zod").ZodTypeAny, {
|
|
769
769
|
family: string;
|
|
@@ -789,7 +789,7 @@ export declare const standardConfigSchema: {
|
|
|
789
789
|
body: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
|
|
790
790
|
family: import("zod").ZodString;
|
|
791
791
|
weight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
792
|
-
source: import("zod").ZodOptional<import("zod").ZodString
|
|
792
|
+
source: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
793
793
|
format: import("zod").ZodOptional<import("zod").ZodEnum<["woff", "woff2"]>>;
|
|
794
794
|
}, "strip", import("zod").ZodTypeAny, {
|
|
795
795
|
family: string;
|
|
@@ -9,7 +9,7 @@ import { contextualSchema } from '../../properties/contextual.js';
|
|
|
9
9
|
import { descriptionSchema } from '../../properties/description.js';
|
|
10
10
|
import { errorsSchema } from '../../properties/errors.js';
|
|
11
11
|
import { faviconSchema } from '../../properties/favicon.js';
|
|
12
|
-
import { fontsSchema } from '../../properties/
|
|
12
|
+
import { fontsSchema } from '../../properties/fonts/index.js';
|
|
13
13
|
import { footerSchema } from '../../properties/footer.js';
|
|
14
14
|
import { iconsSchema } from '../../properties/icons.js';
|
|
15
15
|
import { integrationsSchema } from '../../properties/integrations.js';
|
|
@@ -738,7 +738,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
738
738
|
fonts: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
739
739
|
family: z.ZodString;
|
|
740
740
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
source: z.ZodOptional<z.ZodString
|
|
741
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
742
742
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
744
|
family: string;
|
|
@@ -764,7 +764,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
764
764
|
heading: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
765
765
|
family: z.ZodString;
|
|
766
766
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
source: z.ZodOptional<z.ZodString
|
|
767
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
768
768
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
family: string;
|
|
@@ -790,7 +790,7 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
790
790
|
body: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
791
791
|
family: z.ZodString;
|
|
792
792
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
793
|
-
source: z.ZodOptional<z.ZodString
|
|
793
|
+
source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
794
794
|
format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
family: string;
|