@clarify-labs/cli 0.10.2 → 0.11.0

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.
@@ -3,31 +3,31 @@ import { ClarifyVariableValue } from '../../types.js';
3
3
  export declare const clarifyLogoConfigSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4
4
  light: z.ZodOptional<z.ZodString>;
5
5
  dark: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>]>;
6
+ }, z.core.$strict>]>;
7
7
  export declare const clarifyFaviconConfigSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
8
8
  light: z.ZodOptional<z.ZodString>;
9
9
  dark: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>]>;
10
+ }, z.core.$strict>]>;
11
11
  export declare const clarifyLocalizedTextSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
12
12
  export declare const clarifyLocaleConfigSchema: z.ZodObject<{
13
13
  code: z.ZodString;
14
14
  label: z.ZodString;
15
15
  dir: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>>;
16
- }, z.core.$strip>;
17
- export declare const clarifyI18nConfigSchema: z.ZodObject<{
18
- defaultLocale: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strict>;
17
+ export declare const clarifyLocalesConfigSchema: z.ZodObject<{
18
+ default: z.ZodOptional<z.ZodString>;
19
19
  missing: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fallback">, z.ZodLiteral<"404">, z.ZodLiteral<"hide">]>>;
20
20
  locales: z.ZodArray<z.ZodObject<{
21
21
  code: z.ZodString;
22
22
  label: z.ZodString;
23
23
  dir: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$strict>>;
25
+ }, z.core.$strict>;
26
26
  export declare const clarifyNavbarLinkSchema: z.ZodObject<{
27
27
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
28
28
  href: z.ZodString;
29
29
  external: z.ZodOptional<z.ZodBoolean>;
30
- }, z.core.$strip>;
30
+ }, z.core.$strict>;
31
31
  export declare const clarifyBannerConfigOptionsSchema: z.ZodObject<{
32
32
  content: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
33
33
  dismissible: z.ZodOptional<z.ZodBoolean>;
@@ -35,123 +35,37 @@ export declare const clarifyBannerConfigOptionsSchema: z.ZodObject<{
35
35
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
36
36
  href: z.ZodString;
37
37
  external: z.ZodOptional<z.ZodBoolean>;
38
- }, z.core.$strip>>;
38
+ }, z.core.$strict>>;
39
39
  }, z.core.$strict>;
40
40
  export declare const clarifyFooterConfigSchema: z.ZodObject<{
41
41
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
42
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
43
43
  href: z.ZodString;
44
44
  external: z.ZodOptional<z.ZodBoolean>;
45
- }, z.core.$strip>>>;
45
+ }, z.core.$strict>>>;
46
46
  socials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
47
47
  copyright: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
48
48
  }, z.core.$strict>;
49
49
  export declare const clarifyVariableValueSchema: z.ZodType<ClarifyVariableValue>;
50
50
  export declare const clarifyVariablesConfigSchema: z.ZodRecord<z.ZodString, z.ZodType<ClarifyVariableValue, unknown, z.core.$ZodTypeInternals<ClarifyVariableValue, unknown>>>;
51
- export declare const clarifySourceConfigSchema: z.ZodObject<{
52
- repository: z.ZodString;
51
+ export declare const clarifyRepositoryConfigSchema: z.ZodObject<{
52
+ url: z.ZodOptional<z.ZodString>;
53
53
  branch: z.ZodOptional<z.ZodString>;
54
54
  directory: z.ZodOptional<z.ZodString>;
55
- }, z.core.$strip>;
56
- export declare const clarifyPagesItemSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
57
- page: z.ZodString;
58
- path: z.ZodOptional<z.ZodString>;
59
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
60
- icon: z.ZodOptional<z.ZodString>;
61
- redirect: z.ZodOptional<z.ZodString>;
62
- }, z.core.$strip>, z.ZodObject<{
63
- openapi: z.ZodString;
64
- path: z.ZodOptional<z.ZodString>;
65
- icon: z.ZodOptional<z.ZodString>;
66
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
67
- filter: z.ZodOptional<z.ZodObject<{
68
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
- }, z.core.$strip>>;
70
- }, z.core.$strip>]>;
71
- export declare const clarifyPagesGroupSchema: z.ZodObject<{
72
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
73
- icon: z.ZodOptional<z.ZodString>;
74
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
75
- page: z.ZodString;
76
- path: z.ZodOptional<z.ZodString>;
77
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
78
- icon: z.ZodOptional<z.ZodString>;
79
- redirect: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>, z.ZodObject<{
81
- openapi: z.ZodString;
82
- path: z.ZodOptional<z.ZodString>;
83
- icon: z.ZodOptional<z.ZodString>;
84
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
85
- filter: z.ZodOptional<z.ZodObject<{
86
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- }, z.core.$strip>>;
88
- }, z.core.$strip>]>>;
89
- }, z.core.$strip>;
90
- export declare const clarifyPagesConfigSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
91
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
92
- icon: z.ZodOptional<z.ZodString>;
93
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
94
- page: z.ZodString;
95
- path: z.ZodOptional<z.ZodString>;
96
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
97
- icon: z.ZodOptional<z.ZodString>;
98
- redirect: z.ZodOptional<z.ZodString>;
99
- }, z.core.$strip>, z.ZodObject<{
100
- openapi: z.ZodString;
101
- path: z.ZodOptional<z.ZodString>;
102
- icon: z.ZodOptional<z.ZodString>;
103
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
104
- filter: z.ZodOptional<z.ZodObject<{
105
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
- }, z.core.$strip>>;
107
- }, z.core.$strip>]>>;
108
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>;
55
+ }, z.core.$strict>;
56
+ export declare const clarifyPagesItemSchema: z.ZodType<import('../../types.js').ClarifyPagesItem, import('../../types.js').ClarifyPagesItem>;
57
+ export declare const clarifyPagesGroupSchema: z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>;
58
+ export declare const clarifyPagesConfigSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>;
109
59
  export declare const clarifyTabItemSchema: z.ZodObject<{
110
60
  tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
111
61
  icon: z.ZodOptional<z.ZodString>;
112
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
113
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
114
- icon: z.ZodOptional<z.ZodString>;
115
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
116
- page: z.ZodString;
117
- path: z.ZodOptional<z.ZodString>;
118
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
119
- icon: z.ZodOptional<z.ZodString>;
120
- redirect: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>, z.ZodObject<{
122
- openapi: z.ZodString;
123
- path: z.ZodOptional<z.ZodString>;
124
- icon: z.ZodOptional<z.ZodString>;
125
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
126
- filter: z.ZodOptional<z.ZodObject<{
127
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
- }, z.core.$strip>>;
129
- }, z.core.$strip>]>>;
130
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
131
- }, z.core.$strip>;
62
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
63
+ }, z.core.$strict>;
132
64
  export declare const clarifyTabsConfigSchema: z.ZodArray<z.ZodObject<{
133
65
  tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
134
66
  icon: z.ZodOptional<z.ZodString>;
135
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
136
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
137
- icon: z.ZodOptional<z.ZodString>;
138
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
139
- page: z.ZodString;
140
- path: z.ZodOptional<z.ZodString>;
141
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
142
- icon: z.ZodOptional<z.ZodString>;
143
- redirect: z.ZodOptional<z.ZodString>;
144
- }, z.core.$strip>, z.ZodObject<{
145
- openapi: z.ZodString;
146
- path: z.ZodOptional<z.ZodString>;
147
- icon: z.ZodOptional<z.ZodString>;
148
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
149
- filter: z.ZodOptional<z.ZodObject<{
150
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
151
- }, z.core.$strip>>;
152
- }, z.core.$strip>]>>;
153
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
154
- }, z.core.$strip>>;
67
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
68
+ }, z.core.$strict>>;
155
69
  export declare const clarifyThemePresetSchema: z.ZodEnum<{
156
70
  default: "default";
157
71
  base: "base";
@@ -159,96 +73,96 @@ export declare const clarifyThemePresetSchema: z.ZodEnum<{
159
73
  export declare const clarifyThemeModeColorValueSchema: z.ZodObject<{
160
74
  light: z.ZodOptional<z.ZodString>;
161
75
  dark: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>;
76
+ }, z.core.$strict>;
163
77
  export declare const clarifyThemeColorValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
164
78
  light: z.ZodOptional<z.ZodString>;
165
79
  dark: z.ZodOptional<z.ZodString>;
166
- }, z.core.$strip>]>;
80
+ }, z.core.$strict>]>;
167
81
  export declare const clarifyThemeColorTokensConfigSchema: z.ZodObject<{
168
82
  primary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
169
83
  light: z.ZodOptional<z.ZodString>;
170
84
  dark: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strip>]>>;
85
+ }, z.core.$strict>]>>;
172
86
  accent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
173
87
  light: z.ZodOptional<z.ZodString>;
174
88
  dark: z.ZodOptional<z.ZodString>;
175
- }, z.core.$strip>]>>;
89
+ }, z.core.$strict>]>>;
176
90
  background: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
177
91
  light: z.ZodOptional<z.ZodString>;
178
92
  dark: z.ZodOptional<z.ZodString>;
179
- }, z.core.$strip>]>>;
93
+ }, z.core.$strict>]>>;
180
94
  foreground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
181
95
  light: z.ZodOptional<z.ZodString>;
182
96
  dark: z.ZodOptional<z.ZodString>;
183
- }, z.core.$strip>]>>;
97
+ }, z.core.$strict>]>>;
184
98
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
185
99
  light: z.ZodOptional<z.ZodString>;
186
100
  dark: z.ZodOptional<z.ZodString>;
187
- }, z.core.$strip>]>>;
101
+ }, z.core.$strict>]>>;
188
102
  muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
189
103
  light: z.ZodOptional<z.ZodString>;
190
104
  dark: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strip>]>>;
105
+ }, z.core.$strict>]>>;
192
106
  border: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
193
107
  light: z.ZodOptional<z.ZodString>;
194
108
  dark: z.ZodOptional<z.ZodString>;
195
- }, z.core.$strip>]>>;
109
+ }, z.core.$strict>]>>;
196
110
  codeBackground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
197
111
  light: z.ZodOptional<z.ZodString>;
198
112
  dark: z.ZodOptional<z.ZodString>;
199
- }, z.core.$strip>]>>;
200
- }, z.core.$strip>;
113
+ }, z.core.$strict>]>>;
114
+ }, z.core.$strict>;
201
115
  export declare const clarifyThemeRadiusTokensConfigSchema: z.ZodObject<{
202
116
  sm: z.ZodOptional<z.ZodString>;
203
117
  md: z.ZodOptional<z.ZodString>;
204
118
  lg: z.ZodOptional<z.ZodString>;
205
119
  xl: z.ZodOptional<z.ZodString>;
206
- }, z.core.$strip>;
120
+ }, z.core.$strict>;
207
121
  export declare const clarifyThemeTokensConfigSchema: z.ZodObject<{
208
122
  colors: z.ZodOptional<z.ZodObject<{
209
123
  primary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
210
124
  light: z.ZodOptional<z.ZodString>;
211
125
  dark: z.ZodOptional<z.ZodString>;
212
- }, z.core.$strip>]>>;
126
+ }, z.core.$strict>]>>;
213
127
  accent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
214
128
  light: z.ZodOptional<z.ZodString>;
215
129
  dark: z.ZodOptional<z.ZodString>;
216
- }, z.core.$strip>]>>;
130
+ }, z.core.$strict>]>>;
217
131
  background: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
218
132
  light: z.ZodOptional<z.ZodString>;
219
133
  dark: z.ZodOptional<z.ZodString>;
220
- }, z.core.$strip>]>>;
134
+ }, z.core.$strict>]>>;
221
135
  foreground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
222
136
  light: z.ZodOptional<z.ZodString>;
223
137
  dark: z.ZodOptional<z.ZodString>;
224
- }, z.core.$strip>]>>;
138
+ }, z.core.$strict>]>>;
225
139
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
226
140
  light: z.ZodOptional<z.ZodString>;
227
141
  dark: z.ZodOptional<z.ZodString>;
228
- }, z.core.$strip>]>>;
142
+ }, z.core.$strict>]>>;
229
143
  muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
230
144
  light: z.ZodOptional<z.ZodString>;
231
145
  dark: z.ZodOptional<z.ZodString>;
232
- }, z.core.$strip>]>>;
146
+ }, z.core.$strict>]>>;
233
147
  border: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
234
148
  light: z.ZodOptional<z.ZodString>;
235
149
  dark: z.ZodOptional<z.ZodString>;
236
- }, z.core.$strip>]>>;
150
+ }, z.core.$strict>]>>;
237
151
  codeBackground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
238
152
  light: z.ZodOptional<z.ZodString>;
239
153
  dark: z.ZodOptional<z.ZodString>;
240
- }, z.core.$strip>]>>;
241
- }, z.core.$strip>>;
154
+ }, z.core.$strict>]>>;
155
+ }, z.core.$strict>>;
242
156
  radius: z.ZodOptional<z.ZodObject<{
243
157
  sm: z.ZodOptional<z.ZodString>;
244
158
  md: z.ZodOptional<z.ZodString>;
245
159
  lg: z.ZodOptional<z.ZodString>;
246
160
  xl: z.ZodOptional<z.ZodString>;
247
- }, z.core.$strip>>;
248
- }, z.core.$strip>;
161
+ }, z.core.$strict>>;
162
+ }, z.core.$strict>;
249
163
  export declare const clarifyThemeLayoutConfigSchema: z.ZodObject<{
250
164
  maxWidth: z.ZodOptional<z.ZodString>;
251
- }, z.core.$strip>;
165
+ }, z.core.$strict>;
252
166
  export declare const clarifyThemeConfigSchema: z.ZodObject<{
253
167
  preset: z.ZodOptional<z.ZodEnum<{
254
168
  default: "default";
@@ -259,66 +173,115 @@ export declare const clarifyThemeConfigSchema: z.ZodObject<{
259
173
  primary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
260
174
  light: z.ZodOptional<z.ZodString>;
261
175
  dark: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>]>>;
176
+ }, z.core.$strict>]>>;
263
177
  accent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
264
178
  light: z.ZodOptional<z.ZodString>;
265
179
  dark: z.ZodOptional<z.ZodString>;
266
- }, z.core.$strip>]>>;
180
+ }, z.core.$strict>]>>;
267
181
  background: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
268
182
  light: z.ZodOptional<z.ZodString>;
269
183
  dark: z.ZodOptional<z.ZodString>;
270
- }, z.core.$strip>]>>;
184
+ }, z.core.$strict>]>>;
271
185
  foreground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
272
186
  light: z.ZodOptional<z.ZodString>;
273
187
  dark: z.ZodOptional<z.ZodString>;
274
- }, z.core.$strip>]>>;
188
+ }, z.core.$strict>]>>;
275
189
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
276
190
  light: z.ZodOptional<z.ZodString>;
277
191
  dark: z.ZodOptional<z.ZodString>;
278
- }, z.core.$strip>]>>;
192
+ }, z.core.$strict>]>>;
279
193
  muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
280
194
  light: z.ZodOptional<z.ZodString>;
281
195
  dark: z.ZodOptional<z.ZodString>;
282
- }, z.core.$strip>]>>;
196
+ }, z.core.$strict>]>>;
283
197
  border: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
284
198
  light: z.ZodOptional<z.ZodString>;
285
199
  dark: z.ZodOptional<z.ZodString>;
286
- }, z.core.$strip>]>>;
200
+ }, z.core.$strict>]>>;
287
201
  codeBackground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
288
202
  light: z.ZodOptional<z.ZodString>;
289
203
  dark: z.ZodOptional<z.ZodString>;
290
- }, z.core.$strip>]>>;
291
- }, z.core.$strip>>;
204
+ }, z.core.$strict>]>>;
205
+ }, z.core.$strict>>;
292
206
  radius: z.ZodOptional<z.ZodObject<{
293
207
  sm: z.ZodOptional<z.ZodString>;
294
208
  md: z.ZodOptional<z.ZodString>;
295
209
  lg: z.ZodOptional<z.ZodString>;
296
210
  xl: z.ZodOptional<z.ZodString>;
297
- }, z.core.$strip>>;
298
- }, z.core.$strip>>;
211
+ }, z.core.$strict>>;
212
+ }, z.core.$strict>>;
299
213
  layout: z.ZodOptional<z.ZodObject<{
300
214
  maxWidth: z.ZodOptional<z.ZodString>;
301
- }, z.core.$strip>>;
302
- editor: z.ZodOptional<z.ZodBoolean>;
303
- }, z.core.$strip>;
215
+ }, z.core.$strict>>;
216
+ }, z.core.$strict>;
217
+ export declare const clarifyFeaturesConfigSchema: z.ZodObject<{
218
+ search: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
219
+ enabled: z.ZodDefault<z.ZodBoolean>;
220
+ provider: z.ZodDefault<z.ZodLiteral<"pagefind">>;
221
+ }, z.core.$strict>>]>>, z.ZodTransform<{
222
+ enabled: boolean;
223
+ } | {
224
+ enabled: boolean;
225
+ provider: "pagefind";
226
+ }, boolean | {
227
+ enabled: boolean;
228
+ provider: "pagefind";
229
+ }>>;
230
+ repository: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
231
+ enabled: z.ZodDefault<z.ZodBoolean>;
232
+ url: z.ZodOptional<z.ZodString>;
233
+ branch: z.ZodOptional<z.ZodString>;
234
+ directory: z.ZodOptional<z.ZodString>;
235
+ }, z.core.$strict>>]>>, z.ZodTransform<{
236
+ enabled: boolean;
237
+ } | {
238
+ enabled: boolean;
239
+ url?: string | undefined;
240
+ branch?: string | undefined;
241
+ directory?: string | undefined;
242
+ }, boolean | {
243
+ enabled: boolean;
244
+ url?: string | undefined;
245
+ branch?: string | undefined;
246
+ directory?: string | undefined;
247
+ }>>;
248
+ themeEditor: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
249
+ enabled: z.ZodDefault<z.ZodBoolean>;
250
+ }, z.core.$strict>>]>>, z.ZodTransform<{
251
+ enabled: boolean;
252
+ } | {
253
+ enabled: boolean;
254
+ }, boolean | {
255
+ enabled: boolean;
256
+ }>>;
257
+ openapi: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
258
+ enabled: z.ZodDefault<z.ZodBoolean>;
259
+ playground: z.ZodDefault<z.ZodBoolean>;
260
+ }, z.core.$strict>>]>>, z.ZodTransform<{
261
+ enabled: boolean;
262
+ } | {
263
+ enabled: boolean;
264
+ playground: boolean;
265
+ }, boolean | {
266
+ enabled: boolean;
267
+ playground: boolean;
268
+ }>>;
269
+ }, z.core.$strict>;
304
270
  export declare const clarifyProjectConfigSchema: z.ZodObject<{
305
271
  title: z.ZodOptional<z.ZodString>;
306
272
  description: z.ZodOptional<z.ZodString>;
307
273
  siteUrl: z.ZodOptional<z.ZodString>;
308
- source: z.ZodOptional<z.ZodObject<{
309
- repository: z.ZodString;
310
- branch: z.ZodOptional<z.ZodString>;
311
- directory: z.ZodOptional<z.ZodString>;
312
- }, z.core.$strip>>;
274
+ routePrefix: z.ZodDefault<z.ZodString>;
275
+ assetPrefix: z.ZodOptional<z.ZodString>;
313
276
  logo: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
314
277
  light: z.ZodOptional<z.ZodString>;
315
278
  dark: z.ZodOptional<z.ZodString>;
316
- }, z.core.$strip>]>>;
279
+ }, z.core.$strict>]>>;
317
280
  homeUrl: z.ZodOptional<z.ZodString>;
318
281
  favicon: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
319
282
  light: z.ZodOptional<z.ZodString>;
320
283
  dark: z.ZodOptional<z.ZodString>;
321
- }, z.core.$strip>]>>;
284
+ }, z.core.$strict>]>>;
322
285
  theme: z.ZodOptional<z.ZodObject<{
323
286
  preset: z.ZodOptional<z.ZodEnum<{
324
287
  default: "default";
@@ -329,57 +292,59 @@ export declare const clarifyProjectConfigSchema: z.ZodObject<{
329
292
  primary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
330
293
  light: z.ZodOptional<z.ZodString>;
331
294
  dark: z.ZodOptional<z.ZodString>;
332
- }, z.core.$strip>]>>;
295
+ }, z.core.$strict>]>>;
333
296
  accent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
334
297
  light: z.ZodOptional<z.ZodString>;
335
298
  dark: z.ZodOptional<z.ZodString>;
336
- }, z.core.$strip>]>>;
299
+ }, z.core.$strict>]>>;
337
300
  background: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
338
301
  light: z.ZodOptional<z.ZodString>;
339
302
  dark: z.ZodOptional<z.ZodString>;
340
- }, z.core.$strip>]>>;
303
+ }, z.core.$strict>]>>;
341
304
  foreground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
342
305
  light: z.ZodOptional<z.ZodString>;
343
306
  dark: z.ZodOptional<z.ZodString>;
344
- }, z.core.$strip>]>>;
307
+ }, z.core.$strict>]>>;
345
308
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
346
309
  light: z.ZodOptional<z.ZodString>;
347
310
  dark: z.ZodOptional<z.ZodString>;
348
- }, z.core.$strip>]>>;
311
+ }, z.core.$strict>]>>;
349
312
  muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
350
313
  light: z.ZodOptional<z.ZodString>;
351
314
  dark: z.ZodOptional<z.ZodString>;
352
- }, z.core.$strip>]>>;
315
+ }, z.core.$strict>]>>;
353
316
  border: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
354
317
  light: z.ZodOptional<z.ZodString>;
355
318
  dark: z.ZodOptional<z.ZodString>;
356
- }, z.core.$strip>]>>;
319
+ }, z.core.$strict>]>>;
357
320
  codeBackground: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
358
321
  light: z.ZodOptional<z.ZodString>;
359
322
  dark: z.ZodOptional<z.ZodString>;
360
- }, z.core.$strip>]>>;
361
- }, z.core.$strip>>;
323
+ }, z.core.$strict>]>>;
324
+ }, z.core.$strict>>;
362
325
  radius: z.ZodOptional<z.ZodObject<{
363
326
  sm: z.ZodOptional<z.ZodString>;
364
327
  md: z.ZodOptional<z.ZodString>;
365
328
  lg: z.ZodOptional<z.ZodString>;
366
329
  xl: z.ZodOptional<z.ZodString>;
367
- }, z.core.$strip>>;
368
- }, z.core.$strip>>;
330
+ }, z.core.$strict>>;
331
+ }, z.core.$strict>>;
369
332
  layout: z.ZodOptional<z.ZodObject<{
370
333
  maxWidth: z.ZodOptional<z.ZodString>;
371
- }, z.core.$strip>>;
372
- editor: z.ZodOptional<z.ZodBoolean>;
373
- }, z.core.$strip>>;
374
- routePrefix: z.ZodOptional<z.ZodString>;
375
- assetPrefix: z.ZodOptional<z.ZodString>;
376
- navbar: z.ZodOptional<z.ZodObject<{
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>>;
336
+ navigation: z.ZodOptional<z.ZodObject<{
377
337
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
378
338
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
379
339
  href: z.ZodString;
380
340
  external: z.ZodOptional<z.ZodBoolean>;
381
- }, z.core.$strip>>>;
382
- }, z.core.$strip>>;
341
+ }, z.core.$strict>>>;
342
+ tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
343
+ tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
344
+ icon: z.ZodOptional<z.ZodString>;
345
+ pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodType<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup, z.core.$ZodTypeInternals<import('../../types.js').ClarifyPagesGroup, import('../../types.js').ClarifyPagesGroup>>>, z.ZodLiteral<"FileTree">]>>;
346
+ }, z.core.$strict>>>;
347
+ }, z.core.$strict>>;
383
348
  banner: z.ZodOptional<z.ZodObject<{
384
349
  content: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
385
350
  dismissible: z.ZodOptional<z.ZodBoolean>;
@@ -387,49 +352,79 @@ export declare const clarifyProjectConfigSchema: z.ZodObject<{
387
352
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
388
353
  href: z.ZodString;
389
354
  external: z.ZodOptional<z.ZodBoolean>;
390
- }, z.core.$strip>>;
355
+ }, z.core.$strict>>;
391
356
  }, z.core.$strict>>;
392
357
  footer: z.ZodOptional<z.ZodObject<{
393
358
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
359
  label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
395
360
  href: z.ZodString;
396
361
  external: z.ZodOptional<z.ZodBoolean>;
397
- }, z.core.$strip>>>;
362
+ }, z.core.$strict>>>;
398
363
  socials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
399
364
  copyright: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
400
365
  }, z.core.$strict>>;
401
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ClarifyVariableValue, unknown, z.core.$ZodTypeInternals<ClarifyVariableValue, unknown>>>>;
402
- i18n: z.ZodOptional<z.ZodObject<{
403
- defaultLocale: z.ZodOptional<z.ZodString>;
366
+ locales: z.ZodOptional<z.ZodObject<{
367
+ default: z.ZodOptional<z.ZodString>;
404
368
  missing: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fallback">, z.ZodLiteral<"404">, z.ZodLiteral<"hide">]>>;
405
369
  locales: z.ZodArray<z.ZodObject<{
406
370
  code: z.ZodString;
407
371
  label: z.ZodString;
408
372
  dir: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>>;
409
- }, z.core.$strip>>;
410
- }, z.core.$strip>>;
411
- tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
- tab: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
413
- icon: z.ZodOptional<z.ZodString>;
414
- pages: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
415
- group: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
416
- icon: z.ZodOptional<z.ZodString>;
417
- pages: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
418
- page: z.ZodString;
419
- path: z.ZodOptional<z.ZodString>;
420
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
421
- icon: z.ZodOptional<z.ZodString>;
422
- redirect: z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>, z.ZodObject<{
424
- openapi: z.ZodString;
425
- path: z.ZodOptional<z.ZodString>;
426
- icon: z.ZodOptional<z.ZodString>;
427
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
428
- filter: z.ZodOptional<z.ZodObject<{
429
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
- }, z.core.$strip>>;
431
- }, z.core.$strip>]>>;
432
- }, z.core.$strip>>, z.ZodLiteral<"FileTree">]>>;
433
- }, z.core.$strip>>>;
434
- }, z.core.$strip>;
373
+ }, z.core.$strict>>;
374
+ }, z.core.$strict>>;
375
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ClarifyVariableValue, unknown, z.core.$ZodTypeInternals<ClarifyVariableValue, unknown>>>>;
376
+ features: z.ZodOptional<z.ZodObject<{
377
+ search: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
378
+ enabled: z.ZodDefault<z.ZodBoolean>;
379
+ provider: z.ZodDefault<z.ZodLiteral<"pagefind">>;
380
+ }, z.core.$strict>>]>>, z.ZodTransform<{
381
+ enabled: boolean;
382
+ } | {
383
+ enabled: boolean;
384
+ provider: "pagefind";
385
+ }, boolean | {
386
+ enabled: boolean;
387
+ provider: "pagefind";
388
+ }>>;
389
+ repository: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
390
+ enabled: z.ZodDefault<z.ZodBoolean>;
391
+ url: z.ZodOptional<z.ZodString>;
392
+ branch: z.ZodOptional<z.ZodString>;
393
+ directory: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strict>>]>>, z.ZodTransform<{
395
+ enabled: boolean;
396
+ } | {
397
+ enabled: boolean;
398
+ url?: string | undefined;
399
+ branch?: string | undefined;
400
+ directory?: string | undefined;
401
+ }, boolean | {
402
+ enabled: boolean;
403
+ url?: string | undefined;
404
+ branch?: string | undefined;
405
+ directory?: string | undefined;
406
+ }>>;
407
+ themeEditor: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
408
+ enabled: z.ZodDefault<z.ZodBoolean>;
409
+ }, z.core.$strict>>]>>, z.ZodTransform<{
410
+ enabled: boolean;
411
+ } | {
412
+ enabled: boolean;
413
+ }, boolean | {
414
+ enabled: boolean;
415
+ }>>;
416
+ openapi: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDefault<z.ZodObject<{
417
+ enabled: z.ZodDefault<z.ZodBoolean>;
418
+ playground: z.ZodDefault<z.ZodBoolean>;
419
+ }, z.core.$strict>>]>>, z.ZodTransform<{
420
+ enabled: boolean;
421
+ } | {
422
+ enabled: boolean;
423
+ playground: boolean;
424
+ }, boolean | {
425
+ enabled: boolean;
426
+ playground: boolean;
427
+ }>>;
428
+ }, z.core.$strict>>;
429
+ }, z.core.$strict>;
435
430
  export type ClarifyProjectConfigInput = z.input<typeof clarifyProjectConfigSchema>;
@@ -1,3 +1,4 @@
1
- import { ClarifyProjectConfig, ResolvedProjectConfig } from '../../types.js';
1
+ import { ClarifyFeaturesConfig, ClarifyProjectConfig, ResolvedClarifyFeaturesConfig, ResolvedProjectConfig } from '../../types.js';
2
2
  export declare function validateProjectConfig(value: unknown): ClarifyProjectConfig;
3
+ export declare function resolveFeaturesConfig(features?: ClarifyFeaturesConfig): ResolvedClarifyFeaturesConfig;
3
4
  export declare function resolveProjectConfig(config?: ClarifyProjectConfig): ResolvedProjectConfig;
@@ -6,11 +6,6 @@ export type ClarifyBuildOptions = ClarifyProjectConfig & {
6
6
  rootDirectory?: string;
7
7
  /** Output directory for the built docs site. When omitted, Vite's build.outDir is used. */
8
8
  outputDirectory?: string;
9
- /** Static generation behavior. */
10
- ssg?: {
11
- /** Fail the build when SSG fails. Default: true. */
12
- failOnError?: boolean;
13
- };
14
9
  /** Clarify plugin extensions for translation, search, and other build-time features. */
15
10
  plugins?: ClarifyPlugin[];
16
11
  };
@@ -18,8 +13,5 @@ export type ResolvedBuildOptions = {
18
13
  projectRoot: string;
19
14
  rootDirectory: string;
20
15
  outputDirectory?: string;
21
- ssg: {
22
- failOnError: boolean;
23
- };
24
16
  };
25
17
  export declare function resolveBuildOptions(options?: ClarifyBuildOptions): ResolvedBuildOptions;