@mintlify/validation 0.1.626 → 0.1.628

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.
@@ -1,6 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { bannerSchema } from '../banner.js';
3
+ import { footerSchema } from '../footer.js';
3
4
  import { locales } from '../localization.js';
5
+ import { navbarSchema } from '../navbar.js';
4
6
  import { asyncApiSchema } from '../reusable/asyncapi.js';
5
7
  import { hiddenSchema } from '../reusable/hidden.js';
6
8
  import { hrefSchema } from '../reusable/href.js';
@@ -17,6 +19,8 @@ export const baseLanguageSchema = z.object({
17
19
  language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'),
18
20
  default: z.boolean().optional().describe('Whether this language is the default language'),
19
21
  banner: bannerSchema.optional().describe('Banner configuration specific to this language'),
22
+ footer: footerSchema.optional().describe('Footer configuration specific to this language'),
23
+ navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'),
20
24
  hidden: hiddenSchema.optional(),
21
25
  });
22
26
  export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
@@ -5,7 +5,7 @@ const redirectSchema = z.object({
5
5
  permanent: z
6
6
  .boolean()
7
7
  .optional()
8
- .describe('Whether the redirect is a 308 permanent redirect. Otherwise, it is a 307 temporary redirect.'),
8
+ .describe('Whether the redirect is a 308 permanent redirect. Defaults to true if not specified. Set to false for a 307 temporary redirect.'),
9
9
  });
10
10
  export const redirectsSchema = z
11
11
  .array(redirectSchema)
@@ -1747,29 +1747,6 @@ export declare const almondConfigSchema: z.ZodObject<{
1747
1747
  content: string;
1748
1748
  dismissible?: boolean | undefined;
1749
1749
  } | undefined;
1750
- appearance?: {
1751
- strict?: boolean | undefined;
1752
- default?: "light" | "dark" | "system" | undefined;
1753
- } | undefined;
1754
- fonts?: {
1755
- family: string;
1756
- source?: string | undefined;
1757
- weight?: number | undefined;
1758
- format?: "woff" | "woff2" | undefined;
1759
- } | {
1760
- body?: {
1761
- family: string;
1762
- source?: string | undefined;
1763
- weight?: number | undefined;
1764
- format?: "woff" | "woff2" | undefined;
1765
- } | undefined;
1766
- heading?: {
1767
- family: string;
1768
- source?: string | undefined;
1769
- weight?: number | undefined;
1770
- format?: "woff" | "woff2" | undefined;
1771
- } | undefined;
1772
- } | undefined;
1773
1750
  navbar?: {
1774
1751
  primary?: {
1775
1752
  type: "button";
@@ -1813,6 +1790,29 @@ export declare const almondConfigSchema: z.ZodObject<{
1813
1790
  label?: string | undefined;
1814
1791
  })[] | undefined;
1815
1792
  } | undefined;
1793
+ appearance?: {
1794
+ strict?: boolean | undefined;
1795
+ default?: "light" | "dark" | "system" | undefined;
1796
+ } | undefined;
1797
+ fonts?: {
1798
+ family: string;
1799
+ source?: string | undefined;
1800
+ weight?: number | undefined;
1801
+ format?: "woff" | "woff2" | undefined;
1802
+ } | {
1803
+ body?: {
1804
+ family: string;
1805
+ source?: string | undefined;
1806
+ weight?: number | undefined;
1807
+ format?: "woff" | "woff2" | undefined;
1808
+ } | undefined;
1809
+ heading?: {
1810
+ family: string;
1811
+ source?: string | undefined;
1812
+ weight?: number | undefined;
1813
+ format?: "woff" | "woff2" | undefined;
1814
+ } | undefined;
1815
+ } | undefined;
1816
1816
  icons?: {
1817
1817
  library: "fontawesome" | "lucide" | "tabler";
1818
1818
  } | undefined;
@@ -2099,29 +2099,6 @@ export declare const almondConfigSchema: z.ZodObject<{
2099
2099
  content: string;
2100
2100
  dismissible?: boolean | undefined;
2101
2101
  } | undefined;
2102
- appearance?: {
2103
- strict?: boolean | undefined;
2104
- default?: "light" | "dark" | "system" | undefined;
2105
- } | undefined;
2106
- fonts?: {
2107
- family: string;
2108
- source?: string | undefined;
2109
- weight?: number | undefined;
2110
- format?: "woff" | "woff2" | undefined;
2111
- } | {
2112
- body?: {
2113
- family: string;
2114
- source?: string | undefined;
2115
- weight?: number | undefined;
2116
- format?: "woff" | "woff2" | undefined;
2117
- } | undefined;
2118
- heading?: {
2119
- family: string;
2120
- source?: string | undefined;
2121
- weight?: number | undefined;
2122
- format?: "woff" | "woff2" | undefined;
2123
- } | undefined;
2124
- } | undefined;
2125
2102
  navbar?: {
2126
2103
  primary?: {
2127
2104
  type: "button";
@@ -2165,6 +2142,29 @@ export declare const almondConfigSchema: z.ZodObject<{
2165
2142
  label?: string | undefined;
2166
2143
  })[] | undefined;
2167
2144
  } | undefined;
2145
+ appearance?: {
2146
+ strict?: boolean | undefined;
2147
+ default?: "light" | "dark" | "system" | undefined;
2148
+ } | undefined;
2149
+ fonts?: {
2150
+ family: string;
2151
+ source?: string | undefined;
2152
+ weight?: number | undefined;
2153
+ format?: "woff" | "woff2" | undefined;
2154
+ } | {
2155
+ body?: {
2156
+ family: string;
2157
+ source?: string | undefined;
2158
+ weight?: number | undefined;
2159
+ format?: "woff" | "woff2" | undefined;
2160
+ } | undefined;
2161
+ heading?: {
2162
+ family: string;
2163
+ source?: string | undefined;
2164
+ weight?: number | undefined;
2165
+ format?: "woff" | "woff2" | undefined;
2166
+ } | undefined;
2167
+ } | undefined;
2168
2168
  icons?: {
2169
2169
  library: "fontawesome" | "lucide" | "tabler";
2170
2170
  } | undefined;
@@ -1747,29 +1747,6 @@ export declare const aspenConfigSchema: z.ZodObject<{
1747
1747
  content: string;
1748
1748
  dismissible?: boolean | undefined;
1749
1749
  } | undefined;
1750
- appearance?: {
1751
- strict?: boolean | undefined;
1752
- default?: "light" | "dark" | "system" | undefined;
1753
- } | undefined;
1754
- fonts?: {
1755
- family: string;
1756
- source?: string | undefined;
1757
- weight?: number | undefined;
1758
- format?: "woff" | "woff2" | undefined;
1759
- } | {
1760
- body?: {
1761
- family: string;
1762
- source?: string | undefined;
1763
- weight?: number | undefined;
1764
- format?: "woff" | "woff2" | undefined;
1765
- } | undefined;
1766
- heading?: {
1767
- family: string;
1768
- source?: string | undefined;
1769
- weight?: number | undefined;
1770
- format?: "woff" | "woff2" | undefined;
1771
- } | undefined;
1772
- } | undefined;
1773
1750
  navbar?: {
1774
1751
  primary?: {
1775
1752
  type: "button";
@@ -1813,6 +1790,29 @@ export declare const aspenConfigSchema: z.ZodObject<{
1813
1790
  label?: string | undefined;
1814
1791
  })[] | undefined;
1815
1792
  } | undefined;
1793
+ appearance?: {
1794
+ strict?: boolean | undefined;
1795
+ default?: "light" | "dark" | "system" | undefined;
1796
+ } | undefined;
1797
+ fonts?: {
1798
+ family: string;
1799
+ source?: string | undefined;
1800
+ weight?: number | undefined;
1801
+ format?: "woff" | "woff2" | undefined;
1802
+ } | {
1803
+ body?: {
1804
+ family: string;
1805
+ source?: string | undefined;
1806
+ weight?: number | undefined;
1807
+ format?: "woff" | "woff2" | undefined;
1808
+ } | undefined;
1809
+ heading?: {
1810
+ family: string;
1811
+ source?: string | undefined;
1812
+ weight?: number | undefined;
1813
+ format?: "woff" | "woff2" | undefined;
1814
+ } | undefined;
1815
+ } | undefined;
1816
1816
  icons?: {
1817
1817
  library: "fontawesome" | "lucide" | "tabler";
1818
1818
  } | undefined;
@@ -2099,29 +2099,6 @@ export declare const aspenConfigSchema: z.ZodObject<{
2099
2099
  content: string;
2100
2100
  dismissible?: boolean | undefined;
2101
2101
  } | undefined;
2102
- appearance?: {
2103
- strict?: boolean | undefined;
2104
- default?: "light" | "dark" | "system" | undefined;
2105
- } | undefined;
2106
- fonts?: {
2107
- family: string;
2108
- source?: string | undefined;
2109
- weight?: number | undefined;
2110
- format?: "woff" | "woff2" | undefined;
2111
- } | {
2112
- body?: {
2113
- family: string;
2114
- source?: string | undefined;
2115
- weight?: number | undefined;
2116
- format?: "woff" | "woff2" | undefined;
2117
- } | undefined;
2118
- heading?: {
2119
- family: string;
2120
- source?: string | undefined;
2121
- weight?: number | undefined;
2122
- format?: "woff" | "woff2" | undefined;
2123
- } | undefined;
2124
- } | undefined;
2125
2102
  navbar?: {
2126
2103
  primary?: {
2127
2104
  type: "button";
@@ -2165,6 +2142,29 @@ export declare const aspenConfigSchema: z.ZodObject<{
2165
2142
  label?: string | undefined;
2166
2143
  })[] | undefined;
2167
2144
  } | undefined;
2145
+ appearance?: {
2146
+ strict?: boolean | undefined;
2147
+ default?: "light" | "dark" | "system" | undefined;
2148
+ } | undefined;
2149
+ fonts?: {
2150
+ family: string;
2151
+ source?: string | undefined;
2152
+ weight?: number | undefined;
2153
+ format?: "woff" | "woff2" | undefined;
2154
+ } | {
2155
+ body?: {
2156
+ family: string;
2157
+ source?: string | undefined;
2158
+ weight?: number | undefined;
2159
+ format?: "woff" | "woff2" | undefined;
2160
+ } | undefined;
2161
+ heading?: {
2162
+ family: string;
2163
+ source?: string | undefined;
2164
+ weight?: number | undefined;
2165
+ format?: "woff" | "woff2" | undefined;
2166
+ } | undefined;
2167
+ } | undefined;
2168
2168
  icons?: {
2169
2169
  library: "fontawesome" | "lucide" | "tabler";
2170
2170
  } | undefined;
@@ -1747,29 +1747,6 @@ export declare const lindenConfigSchema: z.ZodObject<{
1747
1747
  content: string;
1748
1748
  dismissible?: boolean | undefined;
1749
1749
  } | undefined;
1750
- appearance?: {
1751
- strict?: boolean | undefined;
1752
- default?: "light" | "dark" | "system" | undefined;
1753
- } | undefined;
1754
- fonts?: {
1755
- family: string;
1756
- source?: string | undefined;
1757
- weight?: number | undefined;
1758
- format?: "woff" | "woff2" | undefined;
1759
- } | {
1760
- body?: {
1761
- family: string;
1762
- source?: string | undefined;
1763
- weight?: number | undefined;
1764
- format?: "woff" | "woff2" | undefined;
1765
- } | undefined;
1766
- heading?: {
1767
- family: string;
1768
- source?: string | undefined;
1769
- weight?: number | undefined;
1770
- format?: "woff" | "woff2" | undefined;
1771
- } | undefined;
1772
- } | undefined;
1773
1750
  navbar?: {
1774
1751
  primary?: {
1775
1752
  type: "button";
@@ -1813,6 +1790,29 @@ export declare const lindenConfigSchema: z.ZodObject<{
1813
1790
  label?: string | undefined;
1814
1791
  })[] | undefined;
1815
1792
  } | undefined;
1793
+ appearance?: {
1794
+ strict?: boolean | undefined;
1795
+ default?: "light" | "dark" | "system" | undefined;
1796
+ } | undefined;
1797
+ fonts?: {
1798
+ family: string;
1799
+ source?: string | undefined;
1800
+ weight?: number | undefined;
1801
+ format?: "woff" | "woff2" | undefined;
1802
+ } | {
1803
+ body?: {
1804
+ family: string;
1805
+ source?: string | undefined;
1806
+ weight?: number | undefined;
1807
+ format?: "woff" | "woff2" | undefined;
1808
+ } | undefined;
1809
+ heading?: {
1810
+ family: string;
1811
+ source?: string | undefined;
1812
+ weight?: number | undefined;
1813
+ format?: "woff" | "woff2" | undefined;
1814
+ } | undefined;
1815
+ } | undefined;
1816
1816
  icons?: {
1817
1817
  library: "fontawesome" | "lucide" | "tabler";
1818
1818
  } | undefined;
@@ -2099,29 +2099,6 @@ export declare const lindenConfigSchema: z.ZodObject<{
2099
2099
  content: string;
2100
2100
  dismissible?: boolean | undefined;
2101
2101
  } | undefined;
2102
- appearance?: {
2103
- strict?: boolean | undefined;
2104
- default?: "light" | "dark" | "system" | undefined;
2105
- } | undefined;
2106
- fonts?: {
2107
- family: string;
2108
- source?: string | undefined;
2109
- weight?: number | undefined;
2110
- format?: "woff" | "woff2" | undefined;
2111
- } | {
2112
- body?: {
2113
- family: string;
2114
- source?: string | undefined;
2115
- weight?: number | undefined;
2116
- format?: "woff" | "woff2" | undefined;
2117
- } | undefined;
2118
- heading?: {
2119
- family: string;
2120
- source?: string | undefined;
2121
- weight?: number | undefined;
2122
- format?: "woff" | "woff2" | undefined;
2123
- } | undefined;
2124
- } | undefined;
2125
2102
  navbar?: {
2126
2103
  primary?: {
2127
2104
  type: "button";
@@ -2165,6 +2142,29 @@ export declare const lindenConfigSchema: z.ZodObject<{
2165
2142
  label?: string | undefined;
2166
2143
  })[] | undefined;
2167
2144
  } | undefined;
2145
+ appearance?: {
2146
+ strict?: boolean | undefined;
2147
+ default?: "light" | "dark" | "system" | undefined;
2148
+ } | undefined;
2149
+ fonts?: {
2150
+ family: string;
2151
+ source?: string | undefined;
2152
+ weight?: number | undefined;
2153
+ format?: "woff" | "woff2" | undefined;
2154
+ } | {
2155
+ body?: {
2156
+ family: string;
2157
+ source?: string | undefined;
2158
+ weight?: number | undefined;
2159
+ format?: "woff" | "woff2" | undefined;
2160
+ } | undefined;
2161
+ heading?: {
2162
+ family: string;
2163
+ source?: string | undefined;
2164
+ weight?: number | undefined;
2165
+ format?: "woff" | "woff2" | undefined;
2166
+ } | undefined;
2167
+ } | undefined;
2168
2168
  icons?: {
2169
2169
  library: "fontawesome" | "lucide" | "tabler";
2170
2170
  } | undefined;
@@ -1747,29 +1747,6 @@ export declare const lumaConfigSchema: z.ZodObject<{
1747
1747
  content: string;
1748
1748
  dismissible?: boolean | undefined;
1749
1749
  } | undefined;
1750
- appearance?: {
1751
- strict?: boolean | undefined;
1752
- default?: "light" | "dark" | "system" | undefined;
1753
- } | undefined;
1754
- fonts?: {
1755
- family: string;
1756
- source?: string | undefined;
1757
- weight?: number | undefined;
1758
- format?: "woff" | "woff2" | undefined;
1759
- } | {
1760
- body?: {
1761
- family: string;
1762
- source?: string | undefined;
1763
- weight?: number | undefined;
1764
- format?: "woff" | "woff2" | undefined;
1765
- } | undefined;
1766
- heading?: {
1767
- family: string;
1768
- source?: string | undefined;
1769
- weight?: number | undefined;
1770
- format?: "woff" | "woff2" | undefined;
1771
- } | undefined;
1772
- } | undefined;
1773
1750
  navbar?: {
1774
1751
  primary?: {
1775
1752
  type: "button";
@@ -1813,6 +1790,29 @@ export declare const lumaConfigSchema: z.ZodObject<{
1813
1790
  label?: string | undefined;
1814
1791
  })[] | undefined;
1815
1792
  } | undefined;
1793
+ appearance?: {
1794
+ strict?: boolean | undefined;
1795
+ default?: "light" | "dark" | "system" | undefined;
1796
+ } | undefined;
1797
+ fonts?: {
1798
+ family: string;
1799
+ source?: string | undefined;
1800
+ weight?: number | undefined;
1801
+ format?: "woff" | "woff2" | undefined;
1802
+ } | {
1803
+ body?: {
1804
+ family: string;
1805
+ source?: string | undefined;
1806
+ weight?: number | undefined;
1807
+ format?: "woff" | "woff2" | undefined;
1808
+ } | undefined;
1809
+ heading?: {
1810
+ family: string;
1811
+ source?: string | undefined;
1812
+ weight?: number | undefined;
1813
+ format?: "woff" | "woff2" | undefined;
1814
+ } | undefined;
1815
+ } | undefined;
1816
1816
  icons?: {
1817
1817
  library: "fontawesome" | "lucide" | "tabler";
1818
1818
  } | undefined;
@@ -2099,29 +2099,6 @@ export declare const lumaConfigSchema: z.ZodObject<{
2099
2099
  content: string;
2100
2100
  dismissible?: boolean | undefined;
2101
2101
  } | undefined;
2102
- appearance?: {
2103
- strict?: boolean | undefined;
2104
- default?: "light" | "dark" | "system" | undefined;
2105
- } | undefined;
2106
- fonts?: {
2107
- family: string;
2108
- source?: string | undefined;
2109
- weight?: number | undefined;
2110
- format?: "woff" | "woff2" | undefined;
2111
- } | {
2112
- body?: {
2113
- family: string;
2114
- source?: string | undefined;
2115
- weight?: number | undefined;
2116
- format?: "woff" | "woff2" | undefined;
2117
- } | undefined;
2118
- heading?: {
2119
- family: string;
2120
- source?: string | undefined;
2121
- weight?: number | undefined;
2122
- format?: "woff" | "woff2" | undefined;
2123
- } | undefined;
2124
- } | undefined;
2125
2102
  navbar?: {
2126
2103
  primary?: {
2127
2104
  type: "button";
@@ -2165,6 +2142,29 @@ export declare const lumaConfigSchema: z.ZodObject<{
2165
2142
  label?: string | undefined;
2166
2143
  })[] | undefined;
2167
2144
  } | undefined;
2145
+ appearance?: {
2146
+ strict?: boolean | undefined;
2147
+ default?: "light" | "dark" | "system" | undefined;
2148
+ } | undefined;
2149
+ fonts?: {
2150
+ family: string;
2151
+ source?: string | undefined;
2152
+ weight?: number | undefined;
2153
+ format?: "woff" | "woff2" | undefined;
2154
+ } | {
2155
+ body?: {
2156
+ family: string;
2157
+ source?: string | undefined;
2158
+ weight?: number | undefined;
2159
+ format?: "woff" | "woff2" | undefined;
2160
+ } | undefined;
2161
+ heading?: {
2162
+ family: string;
2163
+ source?: string | undefined;
2164
+ weight?: number | undefined;
2165
+ format?: "woff" | "woff2" | undefined;
2166
+ } | undefined;
2167
+ } | undefined;
2168
2168
  icons?: {
2169
2169
  library: "fontawesome" | "lucide" | "tabler";
2170
2170
  } | undefined;
@@ -1747,29 +1747,6 @@ export declare const mapleConfigSchema: z.ZodObject<{
1747
1747
  content: string;
1748
1748
  dismissible?: boolean | undefined;
1749
1749
  } | undefined;
1750
- appearance?: {
1751
- strict?: boolean | undefined;
1752
- default?: "light" | "dark" | "system" | undefined;
1753
- } | undefined;
1754
- fonts?: {
1755
- family: string;
1756
- source?: string | undefined;
1757
- weight?: number | undefined;
1758
- format?: "woff" | "woff2" | undefined;
1759
- } | {
1760
- body?: {
1761
- family: string;
1762
- source?: string | undefined;
1763
- weight?: number | undefined;
1764
- format?: "woff" | "woff2" | undefined;
1765
- } | undefined;
1766
- heading?: {
1767
- family: string;
1768
- source?: string | undefined;
1769
- weight?: number | undefined;
1770
- format?: "woff" | "woff2" | undefined;
1771
- } | undefined;
1772
- } | undefined;
1773
1750
  navbar?: {
1774
1751
  primary?: {
1775
1752
  type: "button";
@@ -1813,6 +1790,29 @@ export declare const mapleConfigSchema: z.ZodObject<{
1813
1790
  label?: string | undefined;
1814
1791
  })[] | undefined;
1815
1792
  } | undefined;
1793
+ appearance?: {
1794
+ strict?: boolean | undefined;
1795
+ default?: "light" | "dark" | "system" | undefined;
1796
+ } | undefined;
1797
+ fonts?: {
1798
+ family: string;
1799
+ source?: string | undefined;
1800
+ weight?: number | undefined;
1801
+ format?: "woff" | "woff2" | undefined;
1802
+ } | {
1803
+ body?: {
1804
+ family: string;
1805
+ source?: string | undefined;
1806
+ weight?: number | undefined;
1807
+ format?: "woff" | "woff2" | undefined;
1808
+ } | undefined;
1809
+ heading?: {
1810
+ family: string;
1811
+ source?: string | undefined;
1812
+ weight?: number | undefined;
1813
+ format?: "woff" | "woff2" | undefined;
1814
+ } | undefined;
1815
+ } | undefined;
1816
1816
  icons?: {
1817
1817
  library: "fontawesome" | "lucide" | "tabler";
1818
1818
  } | undefined;
@@ -2099,29 +2099,6 @@ export declare const mapleConfigSchema: z.ZodObject<{
2099
2099
  content: string;
2100
2100
  dismissible?: boolean | undefined;
2101
2101
  } | undefined;
2102
- appearance?: {
2103
- strict?: boolean | undefined;
2104
- default?: "light" | "dark" | "system" | undefined;
2105
- } | undefined;
2106
- fonts?: {
2107
- family: string;
2108
- source?: string | undefined;
2109
- weight?: number | undefined;
2110
- format?: "woff" | "woff2" | undefined;
2111
- } | {
2112
- body?: {
2113
- family: string;
2114
- source?: string | undefined;
2115
- weight?: number | undefined;
2116
- format?: "woff" | "woff2" | undefined;
2117
- } | undefined;
2118
- heading?: {
2119
- family: string;
2120
- source?: string | undefined;
2121
- weight?: number | undefined;
2122
- format?: "woff" | "woff2" | undefined;
2123
- } | undefined;
2124
- } | undefined;
2125
2102
  navbar?: {
2126
2103
  primary?: {
2127
2104
  type: "button";
@@ -2165,6 +2142,29 @@ export declare const mapleConfigSchema: z.ZodObject<{
2165
2142
  label?: string | undefined;
2166
2143
  })[] | undefined;
2167
2144
  } | undefined;
2145
+ appearance?: {
2146
+ strict?: boolean | undefined;
2147
+ default?: "light" | "dark" | "system" | undefined;
2148
+ } | undefined;
2149
+ fonts?: {
2150
+ family: string;
2151
+ source?: string | undefined;
2152
+ weight?: number | undefined;
2153
+ format?: "woff" | "woff2" | undefined;
2154
+ } | {
2155
+ body?: {
2156
+ family: string;
2157
+ source?: string | undefined;
2158
+ weight?: number | undefined;
2159
+ format?: "woff" | "woff2" | undefined;
2160
+ } | undefined;
2161
+ heading?: {
2162
+ family: string;
2163
+ source?: string | undefined;
2164
+ weight?: number | undefined;
2165
+ format?: "woff" | "woff2" | undefined;
2166
+ } | undefined;
2167
+ } | undefined;
2168
2168
  icons?: {
2169
2169
  library: "fontawesome" | "lucide" | "tabler";
2170
2170
  } | undefined;