@mintlify/validation 0.1.242 → 0.1.244

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 quillConfigSchema: 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>;
@@ -109,7 +96,7 @@ export declare const quillConfigSchema: z.ZodObject<{
109
96
  light: string;
110
97
  dark: string;
111
98
  }>]>>;
112
- decoration: z.ZodDefault<z.ZodEnum<["gradient", "grid", "windows", "none"]>>;
99
+ decoration: z.ZodOptional<z.ZodEnum<["gradient", "grid", "windows"]>>;
113
100
  color: z.ZodOptional<z.ZodObject<{
114
101
  light: z.ZodOptional<z.ZodString>;
115
102
  dark: z.ZodOptional<z.ZodString>;
@@ -121,11 +108,11 @@ export declare const quillConfigSchema: z.ZodObject<{
121
108
  dark?: string | undefined;
122
109
  }>>;
123
110
  }, "strip", z.ZodTypeAny, {
124
- decoration: "none" | "gradient" | "grid" | "windows";
125
111
  image?: string | {
126
112
  light: string;
127
113
  dark: string;
128
114
  } | undefined;
115
+ decoration?: "gradient" | "grid" | "windows" | undefined;
129
116
  color?: {
130
117
  light?: string | undefined;
131
118
  dark?: string | undefined;
@@ -135,7 +122,7 @@ export declare const quillConfigSchema: z.ZodObject<{
135
122
  light: string;
136
123
  dark: string;
137
124
  } | undefined;
138
- decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
125
+ decoration?: "gradient" | "grid" | "windows" | undefined;
139
126
  color?: {
140
127
  light?: string | undefined;
141
128
  dark?: string | undefined;
@@ -1534,21 +1521,16 @@ export declare const quillConfigSchema: 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";
1545
1527
  } | undefined;
1546
1528
  background?: {
1547
- decoration: "none" | "gradient" | "grid" | "windows";
1548
1529
  image?: string | {
1549
1530
  light: string;
1550
1531
  dark: string;
1551
1532
  } | undefined;
1533
+ decoration?: "gradient" | "grid" | "windows" | undefined;
1552
1534
  color?: {
1553
1535
  light?: string | undefined;
1554
1536
  dark?: string | undefined;
@@ -1915,11 +1897,6 @@ export declare const quillConfigSchema: 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;
@@ -1929,7 +1906,7 @@ export declare const quillConfigSchema: z.ZodObject<{
1929
1906
  light: string;
1930
1907
  dark: string;
1931
1908
  } | undefined;
1932
- decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
1909
+ decoration?: "gradient" | "grid" | "windows" | undefined;
1933
1910
  color?: {
1934
1911
  light?: string | undefined;
1935
1912
  dark?: string | undefined;
@@ -74,19 +74,6 @@ export declare const standardConfigSchema: {
74
74
  languages?: string[] | undefined;
75
75
  } | undefined;
76
76
  }>>;
77
- feedback: import("zod").ZodOptional<import("zod").ZodObject<{
78
- thumbs: import("zod").ZodOptional<import("zod").ZodBoolean>;
79
- edits: import("zod").ZodOptional<import("zod").ZodBoolean>;
80
- issues: import("zod").ZodOptional<import("zod").ZodBoolean>;
81
- }, "strip", import("zod").ZodTypeAny, {
82
- thumbs?: boolean | undefined;
83
- edits?: boolean | undefined;
84
- issues?: boolean | undefined;
85
- }, {
86
- thumbs?: boolean | undefined;
87
- edits?: boolean | undefined;
88
- issues?: boolean | undefined;
89
- }>>;
90
77
  appearance: import("zod").ZodOptional<import("zod").ZodObject<{
91
78
  default: import("zod").ZodDefault<import("zod").ZodEnum<["system", "light", "dark"]>>;
92
79
  strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -108,7 +95,7 @@ export declare const standardConfigSchema: {
108
95
  light: string;
109
96
  dark: string;
110
97
  }>]>>;
111
- decoration: import("zod").ZodDefault<import("zod").ZodEnum<["gradient", "grid", "windows", "none"]>>;
98
+ decoration: import("zod").ZodOptional<import("zod").ZodEnum<["gradient", "grid", "windows"]>>;
112
99
  color: import("zod").ZodOptional<import("zod").ZodObject<{
113
100
  light: import("zod").ZodOptional<import("zod").ZodString>;
114
101
  dark: import("zod").ZodOptional<import("zod").ZodString>;
@@ -120,11 +107,11 @@ export declare const standardConfigSchema: {
120
107
  dark?: string | undefined;
121
108
  }>>;
122
109
  }, "strip", import("zod").ZodTypeAny, {
123
- decoration: "none" | "gradient" | "grid" | "windows";
124
110
  image?: string | {
125
111
  light: string;
126
112
  dark: string;
127
113
  } | undefined;
114
+ decoration?: "gradient" | "grid" | "windows" | undefined;
128
115
  color?: {
129
116
  light?: string | undefined;
130
117
  dark?: string | undefined;
@@ -134,7 +121,7 @@ export declare const standardConfigSchema: {
134
121
  light: string;
135
122
  dark: string;
136
123
  } | undefined;
137
- decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
124
+ decoration?: "gradient" | "grid" | "windows" | undefined;
138
125
  color?: {
139
126
  light?: string | undefined;
140
127
  dark?: string | undefined;
@@ -6,7 +6,6 @@ import { backgroundSchema } from '../../properties/background.js';
6
6
  import { colorsSchema } from '../../properties/colors.js';
7
7
  import { descriptionSchema } from '../../properties/description.js';
8
8
  import { faviconSchema } from '../../properties/favicon.js';
9
- import { feedbackSchema } from '../../properties/feedback.js';
10
9
  import { fontsSchema } from '../../properties/font.js';
11
10
  import { footerSchema } from '../../properties/footer.js';
12
11
  import { iconsSchema } from '../../properties/icons.js';
@@ -28,7 +27,6 @@ export const standardConfigSchema = {
28
27
  favicon: faviconSchema.optional(),
29
28
  openapi: openApiSchema.optional(),
30
29
  api: apiSchema.optional(),
31
- feedback: feedbackSchema.optional(),
32
30
  appearance: appearanceSchema.optional(),
33
31
  background: backgroundSchema.optional(),
34
32
  topbar: topbarSchema.optional(),
@@ -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>;
@@ -109,7 +96,7 @@ export declare const venusConfigSchema: z.ZodObject<{
109
96
  light: string;
110
97
  dark: string;
111
98
  }>]>>;
112
- decoration: z.ZodDefault<z.ZodEnum<["gradient", "grid", "windows", "none"]>>;
99
+ decoration: z.ZodOptional<z.ZodEnum<["gradient", "grid", "windows"]>>;
113
100
  color: z.ZodOptional<z.ZodObject<{
114
101
  light: z.ZodOptional<z.ZodString>;
115
102
  dark: z.ZodOptional<z.ZodString>;
@@ -121,11 +108,11 @@ export declare const venusConfigSchema: z.ZodObject<{
121
108
  dark?: string | undefined;
122
109
  }>>;
123
110
  }, "strip", z.ZodTypeAny, {
124
- decoration: "none" | "gradient" | "grid" | "windows";
125
111
  image?: string | {
126
112
  light: string;
127
113
  dark: string;
128
114
  } | undefined;
115
+ decoration?: "gradient" | "grid" | "windows" | undefined;
129
116
  color?: {
130
117
  light?: string | undefined;
131
118
  dark?: string | undefined;
@@ -135,7 +122,7 @@ export declare const venusConfigSchema: z.ZodObject<{
135
122
  light: string;
136
123
  dark: string;
137
124
  } | undefined;
138
- decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
125
+ decoration?: "gradient" | "grid" | "windows" | undefined;
139
126
  color?: {
140
127
  light?: string | undefined;
141
128
  dark?: string | undefined;
@@ -1534,21 +1521,16 @@ 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";
1545
1527
  } | undefined;
1546
1528
  background?: {
1547
- decoration: "none" | "gradient" | "grid" | "windows";
1548
1529
  image?: string | {
1549
1530
  light: string;
1550
1531
  dark: string;
1551
1532
  } | undefined;
1533
+ decoration?: "gradient" | "grid" | "windows" | undefined;
1552
1534
  color?: {
1553
1535
  light?: string | undefined;
1554
1536
  dark?: string | undefined;
@@ -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;
@@ -1929,7 +1906,7 @@ export declare const venusConfigSchema: z.ZodObject<{
1929
1906
  light: string;
1930
1907
  dark: string;
1931
1908
  } | undefined;
1932
- decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
1909
+ decoration?: "gradient" | "grid" | "windows" | undefined;
1933
1910
  color?: {
1934
1911
  light?: string | undefined;
1935
1912
  dark?: string | undefined;
@@ -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;
93
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
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,
@@ -126,9 +126,9 @@ export function upgradeToDocsConfig(config) {
126
126
  strict: (_h = config.modeToggle.isHidden) !== null && _h !== void 0 ? _h : false,
127
127
  },
128
128
  }
129
- : {})), (config.background || config.backgroundImage
129
+ : {})), (config.background || config.backgroundImage || config.colors.background
130
130
  ? {
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
131
+ background: Object.assign(Object.assign(Object.assign({}, (config.backgroundImage ? { image: config.backgroundImage } : {})), { decoration: (_j = config.background) === null || _j === void 0 ? void 0 : _j.style }), (config.colors.background
132
132
  ? {
133
133
  color: {
134
134
  light: config.colors.background.light,
@@ -138,7 +138,7 @@ export function upgradeToDocsConfig(config) {
138
138
  : {})),
139
139
  }
140
140
  : {})), { topbar: {
141
- links: (_l = config.topbarLinks) === null || _l === void 0 ? void 0 : _l.map((item) => {
141
+ links: (_k = config.topbarLinks) === null || _k === void 0 ? void 0 : _k.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
- : {})), (((_m = config.search) === null || _m === void 0 ? void 0 : _m.prompt)
156
+ } }), (((_l = config.search) === null || _l === void 0 ? void 0 : _l.prompt)
173
157
  ? {
174
158
  search: {
175
159
  prompt: config.search.prompt,
176
160
  },
177
161
  }
178
- : {})), (config.metadata || ((_o = config.seo) === null || _o === void 0 ? void 0 : _o.indexHiddenPages) !== undefined
162
+ : {})), (config.metadata || ((_m = config.seo) === null || _m === void 0 ? void 0 : _m.indexHiddenPages) !== undefined
179
163
  ? {
180
- seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_p = config.seo) === null || _p === void 0 ? void 0 : _p.indexHiddenPages) ? 'navigable' : 'all' }),
164
+ seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_o = config.seo) === null || _o === void 0 ? void 0 : _o.indexHiddenPages) ? 'navigable' : 'all' }),
181
165
  }
182
166
  : {})), (config.footer || config.footerSocials
183
167
  ? {
184
- footer: Object.assign(Object.assign({}, (((_q = config.footer) === null || _q === void 0 ? void 0 : _q.socials) || config.footerSocials
168
+ footer: Object.assign(Object.assign({}, (((_p = config.footer) === null || _p === void 0 ? void 0 : _p.socials) || config.footerSocials
185
169
  ? { socials: updateFooterSocials(config) }
186
- : {})), (((_r = config.footer) === null || _r === void 0 ? void 0 : _r.links)
170
+ : {})), (((_q = config.footer) === null || _q === void 0 ? void 0 : _q.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), (((_s = config.integrations) === null || _s === void 0 ? void 0 : _s.intercom)
188
+ integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((_r = config.integrations) === null || _r === void 0 ? void 0 : _r.intercom)
205
189
  ? {
206
190
  intercom: {
207
191
  appId: config.integrations.intercom,
208
192
  },
209
193
  }
210
- : {})), (((_t = config.integrations) === null || _t === void 0 ? void 0 : _t.frontchat)
194
+ : {})), (((_s = config.integrations) === null || _s === void 0 ? void 0 : _s.frontchat)
211
195
  ? {
212
196
  frontchat: {
213
197
  snippetId: config.integrations.frontchat,
214
198
  },
215
199
  }
216
- : {})), (((_u = config.integrations) === null || _u === void 0 ? void 0 : _u.osano)
200
+ : {})), (((_t = config.integrations) === null || _t === void 0 ? void 0 : _t.osano)
217
201
  ? {
218
202
  osano: {
219
203
  scriptSource: config.integrations.osano,