@mintlify/validation 0.1.241 → 0.1.243

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.
@@ -75,19 +75,6 @@ export declare const venusConfigSchema: z.ZodObject<{
75
75
  languages?: string[] | undefined;
76
76
  } | undefined;
77
77
  }>>;
78
- feedback: z.ZodOptional<z.ZodObject<{
79
- thumbs: z.ZodOptional<z.ZodBoolean>;
80
- edits: z.ZodOptional<z.ZodBoolean>;
81
- issues: z.ZodOptional<z.ZodBoolean>;
82
- }, "strip", z.ZodTypeAny, {
83
- thumbs?: boolean | undefined;
84
- edits?: boolean | undefined;
85
- issues?: boolean | undefined;
86
- }, {
87
- thumbs?: boolean | undefined;
88
- edits?: boolean | undefined;
89
- issues?: boolean | undefined;
90
- }>>;
91
78
  appearance: z.ZodOptional<z.ZodObject<{
92
79
  default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
93
80
  strict: z.ZodDefault<z.ZodBoolean>;
@@ -111,14 +98,14 @@ export declare const venusConfigSchema: z.ZodObject<{
111
98
  }>]>>;
112
99
  decoration: z.ZodDefault<z.ZodEnum<["gradient", "grid", "windows", "none"]>>;
113
100
  color: z.ZodOptional<z.ZodObject<{
114
- light: z.ZodString;
115
- dark: z.ZodString;
101
+ light: z.ZodOptional<z.ZodString>;
102
+ dark: z.ZodOptional<z.ZodString>;
116
103
  }, "strict", z.ZodTypeAny, {
117
- light: string;
118
- dark: string;
104
+ light?: string | undefined;
105
+ dark?: string | undefined;
119
106
  }, {
120
- light: string;
121
- dark: string;
107
+ light?: string | undefined;
108
+ dark?: string | undefined;
122
109
  }>>;
123
110
  }, "strip", z.ZodTypeAny, {
124
111
  decoration: "none" | "gradient" | "grid" | "windows";
@@ -127,8 +114,8 @@ export declare const venusConfigSchema: z.ZodObject<{
127
114
  dark: string;
128
115
  } | undefined;
129
116
  color?: {
130
- light: string;
131
- dark: string;
117
+ light?: string | undefined;
118
+ dark?: string | undefined;
132
119
  } | undefined;
133
120
  }, {
134
121
  image?: string | {
@@ -137,8 +124,8 @@ export declare const venusConfigSchema: z.ZodObject<{
137
124
  } | undefined;
138
125
  decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
139
126
  color?: {
140
- light: string;
141
- dark: string;
127
+ light?: string | undefined;
128
+ dark?: string | undefined;
142
129
  } | undefined;
143
130
  }>>;
144
131
  topbar: z.ZodOptional<z.ZodObject<{
@@ -609,14 +596,14 @@ export declare const venusConfigSchema: z.ZodObject<{
609
596
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
610
597
  }>]>>;
611
598
  color: z.ZodOptional<z.ZodObject<{
612
- light: z.ZodString;
613
- dark: z.ZodString;
599
+ light: z.ZodOptional<z.ZodString>;
600
+ dark: z.ZodOptional<z.ZodString>;
614
601
  }, "strict", z.ZodTypeAny, {
615
- light: string;
616
- dark: string;
602
+ light?: string | undefined;
603
+ dark?: string | undefined;
617
604
  }, {
618
- light: string;
619
- dark: string;
605
+ light?: string | undefined;
606
+ dark?: string | undefined;
620
607
  }>>;
621
608
  hidden: z.ZodOptional<z.ZodBoolean>;
622
609
  }, "strip", z.ZodTypeAny, {
@@ -626,8 +613,8 @@ export declare const venusConfigSchema: z.ZodObject<{
626
613
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
627
614
  } | undefined;
628
615
  color?: {
629
- light: string;
630
- dark: string;
616
+ light?: string | undefined;
617
+ dark?: string | undefined;
631
618
  } | undefined;
632
619
  hidden?: boolean | undefined;
633
620
  }, {
@@ -637,8 +624,8 @@ export declare const venusConfigSchema: z.ZodObject<{
637
624
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
638
625
  } | undefined;
639
626
  color?: {
640
- light: string;
641
- dark: string;
627
+ light?: string | undefined;
628
+ dark?: string | undefined;
642
629
  } | undefined;
643
630
  hidden?: boolean | undefined;
644
631
  }>, z.ZodObject<{
@@ -688,8 +675,8 @@ export declare const venusConfigSchema: z.ZodObject<{
688
675
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
689
676
  } | undefined;
690
677
  color?: {
691
- light: string;
692
- dark: string;
678
+ light?: string | undefined;
679
+ dark?: string | undefined;
693
680
  } | undefined;
694
681
  hidden?: boolean | undefined;
695
682
  } & {
@@ -735,8 +722,8 @@ export declare const venusConfigSchema: z.ZodObject<{
735
722
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
736
723
  } | undefined;
737
724
  color?: {
738
- light: string;
739
- dark: string;
725
+ light?: string | undefined;
726
+ dark?: string | undefined;
740
727
  } | undefined;
741
728
  hidden?: boolean | undefined;
742
729
  } & {
@@ -784,8 +771,8 @@ export declare const venusConfigSchema: z.ZodObject<{
784
771
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
785
772
  } | undefined;
786
773
  color?: {
787
- light: string;
788
- dark: string;
774
+ light?: string | undefined;
775
+ dark?: string | undefined;
789
776
  } | undefined;
790
777
  hidden?: boolean | undefined;
791
778
  } & {
@@ -833,8 +820,8 @@ export declare const venusConfigSchema: z.ZodObject<{
833
820
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
834
821
  } | undefined;
835
822
  color?: {
836
- light: string;
837
- dark: string;
823
+ light?: string | undefined;
824
+ dark?: string | undefined;
838
825
  } | undefined;
839
826
  hidden?: boolean | undefined;
840
827
  } & {
@@ -1399,8 +1386,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1399
1386
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1400
1387
  } | undefined;
1401
1388
  color?: {
1402
- light: string;
1403
- dark: string;
1389
+ light?: string | undefined;
1390
+ dark?: string | undefined;
1404
1391
  } | undefined;
1405
1392
  hidden?: boolean | undefined;
1406
1393
  } & {
@@ -1505,8 +1492,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1505
1492
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1506
1493
  } | undefined;
1507
1494
  color?: {
1508
- light: string;
1509
- dark: string;
1495
+ light?: string | undefined;
1496
+ dark?: string | undefined;
1510
1497
  } | undefined;
1511
1498
  hidden?: boolean | undefined;
1512
1499
  } & {
@@ -1534,11 +1521,6 @@ export declare const venusConfigSchema: z.ZodObject<{
1534
1521
  languages?: string[] | undefined;
1535
1522
  } | undefined;
1536
1523
  } | undefined;
1537
- feedback?: {
1538
- thumbs?: boolean | undefined;
1539
- edits?: boolean | undefined;
1540
- issues?: boolean | undefined;
1541
- } | undefined;
1542
1524
  appearance?: {
1543
1525
  strict: boolean;
1544
1526
  default: "light" | "dark" | "system";
@@ -1550,8 +1532,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1550
1532
  dark: string;
1551
1533
  } | undefined;
1552
1534
  color?: {
1553
- light: string;
1554
- dark: string;
1535
+ light?: string | undefined;
1536
+ dark?: string | undefined;
1555
1537
  } | undefined;
1556
1538
  } | undefined;
1557
1539
  topbar?: {
@@ -1779,8 +1761,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1779
1761
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1780
1762
  } | undefined;
1781
1763
  color?: {
1782
- light: string;
1783
- dark: string;
1764
+ light?: string | undefined;
1765
+ dark?: string | undefined;
1784
1766
  } | undefined;
1785
1767
  hidden?: boolean | undefined;
1786
1768
  } & {
@@ -1885,8 +1867,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1885
1867
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1886
1868
  } | undefined;
1887
1869
  color?: {
1888
- light: string;
1889
- dark: string;
1870
+ light?: string | undefined;
1871
+ dark?: string | undefined;
1890
1872
  } | undefined;
1891
1873
  hidden?: boolean | undefined;
1892
1874
  } & {
@@ -1915,11 +1897,6 @@ export declare const venusConfigSchema: z.ZodObject<{
1915
1897
  languages?: string[] | undefined;
1916
1898
  } | undefined;
1917
1899
  } | undefined;
1918
- feedback?: {
1919
- thumbs?: boolean | undefined;
1920
- edits?: boolean | undefined;
1921
- issues?: boolean | undefined;
1922
- } | undefined;
1923
1900
  appearance?: {
1924
1901
  default?: "light" | "dark" | "system" | undefined;
1925
1902
  strict?: boolean | undefined;
@@ -1931,8 +1908,8 @@ export declare const venusConfigSchema: z.ZodObject<{
1931
1908
  } | undefined;
1932
1909
  decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
1933
1910
  color?: {
1934
- light: string;
1935
- dark: string;
1911
+ light?: string | undefined;
1912
+ dark?: string | undefined;
1936
1913
  } | undefined;
1937
1914
  } | undefined;
1938
1915
  topbar?: {
@@ -90,13 +90,13 @@ function updateFooterSocials(config) {
90
90
  return footerSocials;
91
91
  }
92
92
  export function upgradeToDocsConfig(config) {
93
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
93
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
94
94
  const fonts = updateFont(config);
95
95
  const playground = updateApiPlayground(config);
96
96
  const rounded = updateRounded(config);
97
97
  const eyebrows = updateEyebrows(config);
98
98
  const codeblocks = updateCodeblocks(config);
99
- const v2Config = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ $schema: 'https://mintlify.com/docs.json', theme: 'mint', name: config.name, colors: {
99
+ const v2Config = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ $schema: 'https://mintlify.com/docs.json', theme: 'mint', name: config.name, colors: {
100
100
  primary: config.colors.primary,
101
101
  light: config.colors.light,
102
102
  dark: config.colors.dark,
@@ -131,14 +131,14 @@ export function upgradeToDocsConfig(config) {
131
131
  background: Object.assign(Object.assign(Object.assign({}, (config.backgroundImage ? { image: config.backgroundImage } : {})), { decoration: (_k = (_j = config.background) === null || _j === void 0 ? void 0 : _j.style) !== null && _k !== void 0 ? _k : 'none' }), (config.colors.background
132
132
  ? {
133
133
  color: {
134
- light: (_l = config.colors.background.light) !== null && _l !== void 0 ? _l : '',
135
- dark: (_m = config.colors.background.dark) !== null && _m !== void 0 ? _m : '',
134
+ light: config.colors.background.light,
135
+ dark: config.colors.background.dark,
136
136
  },
137
137
  }
138
138
  : {})),
139
139
  }
140
140
  : {})), { topbar: {
141
- links: (_o = config.topbarLinks) === null || _o === void 0 ? void 0 : _o.map((item) => {
141
+ links: (_l = config.topbarLinks) === null || _l === void 0 ? void 0 : _l.map((item) => {
142
142
  if (item.type === 'link' || item.type === undefined) {
143
143
  return {
144
144
  label: item.name,
@@ -153,37 +153,21 @@ export function upgradeToDocsConfig(config) {
153
153
  }
154
154
  }),
155
155
  primary: updateTopbarPrimary(config),
156
- } }), (config.feedback
157
- ? {
158
- feedback: Object.assign(Object.assign(Object.assign({}, (config.feedback.thumbsRating !== undefined
159
- ? {
160
- thumbs: config.feedback.thumbsRating,
161
- }
162
- : {})), (config.feedback.suggestEdit !== undefined
163
- ? {
164
- edits: config.feedback.suggestEdit,
165
- }
166
- : {})), (config.feedback.raiseIssue !== undefined
167
- ? {
168
- issues: config.feedback.raiseIssue,
169
- }
170
- : {})),
171
- }
172
- : {})), (((_p = config.search) === null || _p === void 0 ? void 0 : _p.prompt)
156
+ } }), (((_m = config.search) === null || _m === void 0 ? void 0 : _m.prompt)
173
157
  ? {
174
158
  search: {
175
159
  prompt: config.search.prompt,
176
160
  },
177
161
  }
178
- : {})), (config.metadata || ((_q = config.seo) === null || _q === void 0 ? void 0 : _q.indexHiddenPages) !== undefined
162
+ : {})), (config.metadata || ((_o = config.seo) === null || _o === void 0 ? void 0 : _o.indexHiddenPages) !== undefined
179
163
  ? {
180
- seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_r = config.seo) === null || _r === void 0 ? void 0 : _r.indexHiddenPages) ? 'navigable' : 'all' }),
164
+ seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_p = config.seo) === null || _p === void 0 ? void 0 : _p.indexHiddenPages) ? 'navigable' : 'all' }),
181
165
  }
182
166
  : {})), (config.footer || config.footerSocials
183
167
  ? {
184
- footer: Object.assign(Object.assign({}, (((_s = config.footer) === null || _s === void 0 ? void 0 : _s.socials) || config.footerSocials
168
+ footer: Object.assign(Object.assign({}, (((_q = config.footer) === null || _q === void 0 ? void 0 : _q.socials) || config.footerSocials
185
169
  ? { socials: updateFooterSocials(config) }
186
- : {})), (((_t = config.footer) === null || _t === void 0 ? void 0 : _t.links)
170
+ : {})), (((_r = config.footer) === null || _r === void 0 ? void 0 : _r.links)
187
171
  ? {
188
172
  links: config.footer.links.map((group) => {
189
173
  return {
@@ -201,19 +185,19 @@ export function upgradeToDocsConfig(config) {
201
185
  }
202
186
  : {})), (config.integrations || config.analytics
203
187
  ? {
204
- integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((_u = config.integrations) === null || _u === void 0 ? void 0 : _u.intercom)
188
+ integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((_s = config.integrations) === null || _s === void 0 ? void 0 : _s.intercom)
205
189
  ? {
206
190
  intercom: {
207
191
  appId: config.integrations.intercom,
208
192
  },
209
193
  }
210
- : {})), (((_v = config.integrations) === null || _v === void 0 ? void 0 : _v.frontchat)
194
+ : {})), (((_t = config.integrations) === null || _t === void 0 ? void 0 : _t.frontchat)
211
195
  ? {
212
196
  frontchat: {
213
197
  snippetId: config.integrations.frontchat,
214
198
  },
215
199
  }
216
- : {})), (((_w = config.integrations) === null || _w === void 0 ? void 0 : _w.osano)
200
+ : {})), (((_u = config.integrations) === null || _u === void 0 ? void 0 : _u.osano)
217
201
  ? {
218
202
  osano: {
219
203
  scriptSource: config.integrations.osano,