@mintlify/validation 0.1.8 → 0.1.10

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,665 +0,0 @@
1
- import { z } from "zod";
2
- export declare const configSchema: z.ZodObject<{
3
- $schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4
- mintlify: z.ZodOptional<z.ZodString>;
5
- name: z.ZodString;
6
- logo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
7
- light: z.ZodString;
8
- dark: z.ZodString;
9
- href: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- href?: string | undefined;
12
- light: string;
13
- dark: string;
14
- }, {
15
- href?: string | undefined;
16
- light: string;
17
- dark: string;
18
- }>]>>;
19
- favicon: z.ZodEffects<z.ZodString, string, string>;
20
- openApi: z.ZodOptional<z.ZodString>;
21
- api: z.ZodOptional<z.ZodObject<{
22
- baseUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
- auth: z.ZodOptional<z.ZodObject<{
24
- method: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
25
- name: z.ZodOptional<z.ZodString>;
26
- inputPrefix: z.ZodOptional<z.ZodString>;
27
- }, "strict", z.ZodTypeAny, {
28
- name?: string | undefined;
29
- method?: string | undefined;
30
- inputPrefix?: string | undefined;
31
- }, {
32
- name?: string | undefined;
33
- method?: string | undefined;
34
- inputPrefix?: string | undefined;
35
- }>>;
36
- hidePlayground: z.ZodOptional<z.ZodBoolean>;
37
- }, "strict", z.ZodTypeAny, {
38
- baseUrl?: string | string[] | undefined;
39
- auth?: {
40
- name?: string | undefined;
41
- method?: string | undefined;
42
- inputPrefix?: string | undefined;
43
- } | undefined;
44
- hidePlayground?: boolean | undefined;
45
- }, {
46
- baseUrl?: string | string[] | undefined;
47
- auth?: {
48
- name?: string | undefined;
49
- method?: string | undefined;
50
- inputPrefix?: string | undefined;
51
- } | undefined;
52
- hidePlayground?: boolean | undefined;
53
- }>>;
54
- modeToggle: z.ZodOptional<z.ZodObject<{
55
- default: z.ZodOptional<z.ZodString>;
56
- isHidden: z.ZodOptional<z.ZodBoolean>;
57
- }, "strip", z.ZodTypeAny, {
58
- default?: string | undefined;
59
- isHidden?: boolean | undefined;
60
- }, {
61
- default?: string | undefined;
62
- isHidden?: boolean | undefined;
63
- }>>;
64
- versions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
66
- colors: z.ZodObject<{
67
- primary: z.ZodString;
68
- light: z.ZodOptional<z.ZodString>;
69
- dark: z.ZodOptional<z.ZodString>;
70
- background: z.ZodOptional<z.ZodObject<{
71
- light: z.ZodOptional<z.ZodString>;
72
- dark: z.ZodOptional<z.ZodString>;
73
- }, "strip", z.ZodTypeAny, {
74
- light?: string | undefined;
75
- dark?: string | undefined;
76
- }, {
77
- light?: string | undefined;
78
- dark?: string | undefined;
79
- }>>;
80
- anchors: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
81
- from: z.ZodString;
82
- via: z.ZodOptional<z.ZodString>;
83
- to: z.ZodString;
84
- }, "strict", z.ZodTypeAny, {
85
- via?: string | undefined;
86
- from: string;
87
- to: string;
88
- }, {
89
- via?: string | undefined;
90
- from: string;
91
- to: string;
92
- }>]>>;
93
- ultraLight: z.ZodOptional<z.ZodAny>;
94
- ultraDark: z.ZodOptional<z.ZodAny>;
95
- }, "strict", z.ZodTypeAny, {
96
- light?: string | undefined;
97
- dark?: string | undefined;
98
- background?: {
99
- light?: string | undefined;
100
- dark?: string | undefined;
101
- } | undefined;
102
- anchors?: string | {
103
- via?: string | undefined;
104
- from: string;
105
- to: string;
106
- } | undefined;
107
- ultraLight?: any;
108
- ultraDark?: any;
109
- primary: string;
110
- }, {
111
- light?: string | undefined;
112
- dark?: string | undefined;
113
- background?: {
114
- light?: string | undefined;
115
- dark?: string | undefined;
116
- } | undefined;
117
- anchors?: string | {
118
- via?: string | undefined;
119
- from: string;
120
- to: string;
121
- } | undefined;
122
- ultraLight?: any;
123
- ultraDark?: any;
124
- primary: string;
125
- }>;
126
- topbarCtaButton: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
127
- type: z.ZodOptional<z.ZodLiteral<"link">>;
128
- name: z.ZodString;
129
- url: z.ZodString;
130
- }, "strict", z.ZodTypeAny, {
131
- type?: "link" | undefined;
132
- name: string;
133
- url: string;
134
- }, {
135
- type?: "link" | undefined;
136
- name: string;
137
- url: string;
138
- }>, z.ZodObject<{
139
- type: z.ZodLiteral<"github">;
140
- url: z.ZodString;
141
- }, "strict", z.ZodTypeAny, {
142
- type: "github";
143
- url: string;
144
- }, {
145
- type: "github";
146
- url: string;
147
- }>]>>;
148
- topbarLinks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
149
- type: z.ZodOptional<z.ZodLiteral<"link">>;
150
- name: z.ZodString;
151
- url: z.ZodString;
152
- }, "strict", z.ZodTypeAny, {
153
- type?: "link" | undefined;
154
- name: string;
155
- url: string;
156
- }, {
157
- type?: "link" | undefined;
158
- name: string;
159
- url: string;
160
- }>, z.ZodObject<{
161
- type: z.ZodLiteral<"github">;
162
- url: z.ZodString;
163
- }, "strict", z.ZodTypeAny, {
164
- type: "github";
165
- url: string;
166
- }, {
167
- type: "github";
168
- url: string;
169
- }>]>, "many">>;
170
- navigation: z.ZodArray<z.ZodType<import("../types/navigation").NavigationType, z.ZodTypeDef, import("../types/navigation").NavigationType>, "many">;
171
- topAnchor: z.ZodOptional<z.ZodObject<{
172
- name: z.ZodString;
173
- icon: z.ZodOptional<z.ZodString>;
174
- }, "strict", z.ZodTypeAny, {
175
- icon?: string | undefined;
176
- name: string;
177
- }, {
178
- icon?: string | undefined;
179
- name: string;
180
- }>>;
181
- anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
- name: z.ZodString;
183
- url: z.ZodString;
184
- icon: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
185
- iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "sharp-solid", "solid", "thin"]>>;
186
- color: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
187
- from: z.ZodString;
188
- via: z.ZodOptional<z.ZodString>;
189
- to: z.ZodString;
190
- }, "strict", z.ZodTypeAny, {
191
- via?: string | undefined;
192
- from: string;
193
- to: string;
194
- }, {
195
- via?: string | undefined;
196
- from: string;
197
- to: string;
198
- }>]>>;
199
- isDefaultHidden: z.ZodOptional<z.ZodBoolean>;
200
- version: z.ZodOptional<z.ZodString>;
201
- }, "strip", z.ZodTypeAny, {
202
- icon?: string | undefined;
203
- iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
204
- color?: string | {
205
- via?: string | undefined;
206
- from: string;
207
- to: string;
208
- } | undefined;
209
- isDefaultHidden?: boolean | undefined;
210
- version?: string | undefined;
211
- name: string;
212
- url: string;
213
- }, {
214
- icon?: string | undefined;
215
- iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
216
- color?: string | {
217
- via?: string | undefined;
218
- from: string;
219
- to: string;
220
- } | undefined;
221
- isDefaultHidden?: boolean | undefined;
222
- version?: string | undefined;
223
- name: string;
224
- url: string;
225
- }>, "many">>;
226
- footerSocials: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
227
- type: z.ZodString;
228
- url: z.ZodString;
229
- }, "strip", z.ZodTypeAny, {
230
- type: string;
231
- url: string;
232
- }, {
233
- type: string;
234
- url: string;
235
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
236
- backgroundImage: z.ZodOptional<z.ZodString>;
237
- analytics: z.ZodOptional<z.ZodObject<{
238
- amplitude: z.ZodOptional<z.ZodObject<{
239
- apiKey: z.ZodString;
240
- }, "strip", z.ZodTypeAny, {
241
- apiKey: string;
242
- }, {
243
- apiKey: string;
244
- }>>;
245
- fathom: z.ZodOptional<z.ZodObject<{
246
- siteId: z.ZodString;
247
- }, "strip", z.ZodTypeAny, {
248
- siteId: string;
249
- }, {
250
- siteId: string;
251
- }>>;
252
- ga4: z.ZodOptional<z.ZodObject<{
253
- measurementId: z.ZodString;
254
- }, "strip", z.ZodTypeAny, {
255
- measurementId: string;
256
- }, {
257
- measurementId: string;
258
- }>>;
259
- gtm: z.ZodOptional<z.ZodObject<{
260
- tagId: z.ZodString;
261
- }, "strip", z.ZodTypeAny, {
262
- tagId: string;
263
- }, {
264
- tagId: string;
265
- }>>;
266
- hotjar: z.ZodOptional<z.ZodObject<{
267
- hjid: z.ZodString;
268
- hjsv: z.ZodString;
269
- }, "strip", z.ZodTypeAny, {
270
- hjid: string;
271
- hjsv: string;
272
- }, {
273
- hjid: string;
274
- hjsv: string;
275
- }>>;
276
- koala: z.ZodOptional<z.ZodObject<{
277
- projectId: z.ZodEffects<z.ZodString, string, string>;
278
- }, "strip", z.ZodTypeAny, {
279
- projectId: string;
280
- }, {
281
- projectId: string;
282
- }>>;
283
- logrocket: z.ZodOptional<z.ZodObject<{
284
- appId: z.ZodString;
285
- }, "strip", z.ZodTypeAny, {
286
- appId: string;
287
- }, {
288
- appId: string;
289
- }>>;
290
- mixpanel: z.ZodOptional<z.ZodObject<{
291
- projectToken: z.ZodString;
292
- }, "strip", z.ZodTypeAny, {
293
- projectToken: string;
294
- }, {
295
- projectToken: string;
296
- }>>;
297
- pirsch: z.ZodOptional<z.ZodObject<{
298
- id: z.ZodString;
299
- }, "strip", z.ZodTypeAny, {
300
- id: string;
301
- }, {
302
- id: string;
303
- }>>;
304
- posthog: z.ZodOptional<z.ZodObject<{
305
- apiKey: z.ZodString;
306
- apiHost: z.ZodOptional<z.ZodString>;
307
- }, "strip", z.ZodTypeAny, {
308
- apiHost?: string | undefined;
309
- apiKey: string;
310
- }, {
311
- apiHost?: string | undefined;
312
- apiKey: string;
313
- }>>;
314
- plausible: z.ZodOptional<z.ZodObject<{
315
- domain: z.ZodEffects<z.ZodString, string, string>;
316
- }, "strip", z.ZodTypeAny, {
317
- domain: string;
318
- }, {
319
- domain: string;
320
- }>>;
321
- segment: z.ZodOptional<z.ZodObject<{
322
- writeKey: z.ZodString;
323
- }, "strip", z.ZodTypeAny, {
324
- writeKey: string;
325
- }, {
326
- writeKey: string;
327
- }>>;
328
- }, "strict", z.ZodTypeAny, {
329
- amplitude?: {
330
- apiKey: string;
331
- } | undefined;
332
- fathom?: {
333
- siteId: string;
334
- } | undefined;
335
- ga4?: {
336
- measurementId: string;
337
- } | undefined;
338
- gtm?: {
339
- tagId: string;
340
- } | undefined;
341
- hotjar?: {
342
- hjid: string;
343
- hjsv: string;
344
- } | undefined;
345
- koala?: {
346
- projectId: string;
347
- } | undefined;
348
- logrocket?: {
349
- appId: string;
350
- } | undefined;
351
- mixpanel?: {
352
- projectToken: string;
353
- } | undefined;
354
- pirsch?: {
355
- id: string;
356
- } | undefined;
357
- posthog?: {
358
- apiHost?: string | undefined;
359
- apiKey: string;
360
- } | undefined;
361
- plausible?: {
362
- domain: string;
363
- } | undefined;
364
- segment?: {
365
- writeKey: string;
366
- } | undefined;
367
- }, {
368
- amplitude?: {
369
- apiKey: string;
370
- } | undefined;
371
- fathom?: {
372
- siteId: string;
373
- } | undefined;
374
- ga4?: {
375
- measurementId: string;
376
- } | undefined;
377
- gtm?: {
378
- tagId: string;
379
- } | undefined;
380
- hotjar?: {
381
- hjid: string;
382
- hjsv: string;
383
- } | undefined;
384
- koala?: {
385
- projectId: string;
386
- } | undefined;
387
- logrocket?: {
388
- appId: string;
389
- } | undefined;
390
- mixpanel?: {
391
- projectToken: string;
392
- } | undefined;
393
- pirsch?: {
394
- id: string;
395
- } | undefined;
396
- posthog?: {
397
- apiHost?: string | undefined;
398
- apiKey: string;
399
- } | undefined;
400
- plausible?: {
401
- domain: string;
402
- } | undefined;
403
- segment?: {
404
- writeKey: string;
405
- } | undefined;
406
- }>>;
407
- integrations: z.ZodOptional<z.ZodObject<{
408
- intercom: z.ZodOptional<z.ZodString>;
409
- }, "strip", z.ZodTypeAny, {
410
- intercom?: string | undefined;
411
- }, {
412
- intercom?: string | undefined;
413
- }>>;
414
- __injected: z.ZodUndefined;
415
- }, "strip", z.ZodTypeAny, {
416
- mintlify?: string | undefined;
417
- logo?: string | {
418
- href?: string | undefined;
419
- light: string;
420
- dark: string;
421
- } | undefined;
422
- openApi?: string | undefined;
423
- api?: {
424
- baseUrl?: string | string[] | undefined;
425
- auth?: {
426
- name?: string | undefined;
427
- method?: string | undefined;
428
- inputPrefix?: string | undefined;
429
- } | undefined;
430
- hidePlayground?: boolean | undefined;
431
- } | undefined;
432
- modeToggle?: {
433
- default?: string | undefined;
434
- isHidden?: boolean | undefined;
435
- } | undefined;
436
- versions?: string[] | undefined;
437
- metadata?: Record<string, string> | undefined;
438
- anchors?: {
439
- icon?: string | undefined;
440
- iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
441
- color?: string | {
442
- via?: string | undefined;
443
- from: string;
444
- to: string;
445
- } | undefined;
446
- isDefaultHidden?: boolean | undefined;
447
- version?: string | undefined;
448
- name: string;
449
- url: string;
450
- }[] | undefined;
451
- topbarCtaButton?: {
452
- type?: "link" | undefined;
453
- name: string;
454
- url: string;
455
- } | {
456
- type: "github";
457
- url: string;
458
- } | undefined;
459
- topbarLinks?: ({
460
- type?: "link" | undefined;
461
- name: string;
462
- url: string;
463
- } | {
464
- type: "github";
465
- url: string;
466
- })[] | undefined;
467
- topAnchor?: {
468
- icon?: string | undefined;
469
- name: string;
470
- } | undefined;
471
- footerSocials?: Record<string, string> | {
472
- type: string;
473
- url: string;
474
- }[] | undefined;
475
- backgroundImage?: string | undefined;
476
- analytics?: {
477
- amplitude?: {
478
- apiKey: string;
479
- } | undefined;
480
- fathom?: {
481
- siteId: string;
482
- } | undefined;
483
- ga4?: {
484
- measurementId: string;
485
- } | undefined;
486
- gtm?: {
487
- tagId: string;
488
- } | undefined;
489
- hotjar?: {
490
- hjid: string;
491
- hjsv: string;
492
- } | undefined;
493
- koala?: {
494
- projectId: string;
495
- } | undefined;
496
- logrocket?: {
497
- appId: string;
498
- } | undefined;
499
- mixpanel?: {
500
- projectToken: string;
501
- } | undefined;
502
- pirsch?: {
503
- id: string;
504
- } | undefined;
505
- posthog?: {
506
- apiHost?: string | undefined;
507
- apiKey: string;
508
- } | undefined;
509
- plausible?: {
510
- domain: string;
511
- } | undefined;
512
- segment?: {
513
- writeKey: string;
514
- } | undefined;
515
- } | undefined;
516
- integrations?: {
517
- intercom?: string | undefined;
518
- } | undefined;
519
- __injected?: undefined;
520
- $schema: string;
521
- name: string;
522
- favicon: string;
523
- colors: {
524
- light?: string | undefined;
525
- dark?: string | undefined;
526
- background?: {
527
- light?: string | undefined;
528
- dark?: string | undefined;
529
- } | undefined;
530
- anchors?: string | {
531
- via?: string | undefined;
532
- from: string;
533
- to: string;
534
- } | undefined;
535
- ultraLight?: any;
536
- ultraDark?: any;
537
- primary: string;
538
- };
539
- navigation: import("../types/navigation").NavigationType[];
540
- }, {
541
- $schema?: string | undefined;
542
- mintlify?: string | undefined;
543
- logo?: string | {
544
- href?: string | undefined;
545
- light: string;
546
- dark: string;
547
- } | undefined;
548
- openApi?: string | undefined;
549
- api?: {
550
- baseUrl?: string | string[] | undefined;
551
- auth?: {
552
- name?: string | undefined;
553
- method?: string | undefined;
554
- inputPrefix?: string | undefined;
555
- } | undefined;
556
- hidePlayground?: boolean | undefined;
557
- } | undefined;
558
- modeToggle?: {
559
- default?: string | undefined;
560
- isHidden?: boolean | undefined;
561
- } | undefined;
562
- versions?: string[] | undefined;
563
- metadata?: Record<string, string> | undefined;
564
- anchors?: {
565
- icon?: string | undefined;
566
- iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
567
- color?: string | {
568
- via?: string | undefined;
569
- from: string;
570
- to: string;
571
- } | undefined;
572
- isDefaultHidden?: boolean | undefined;
573
- version?: string | undefined;
574
- name: string;
575
- url: string;
576
- }[] | undefined;
577
- topbarCtaButton?: {
578
- type?: "link" | undefined;
579
- name: string;
580
- url: string;
581
- } | {
582
- type: "github";
583
- url: string;
584
- } | undefined;
585
- topbarLinks?: ({
586
- type?: "link" | undefined;
587
- name: string;
588
- url: string;
589
- } | {
590
- type: "github";
591
- url: string;
592
- })[] | undefined;
593
- topAnchor?: {
594
- icon?: string | undefined;
595
- name: string;
596
- } | undefined;
597
- footerSocials?: Record<string, string> | {
598
- type: string;
599
- url: string;
600
- }[] | undefined;
601
- backgroundImage?: string | undefined;
602
- analytics?: {
603
- amplitude?: {
604
- apiKey: string;
605
- } | undefined;
606
- fathom?: {
607
- siteId: string;
608
- } | undefined;
609
- ga4?: {
610
- measurementId: string;
611
- } | undefined;
612
- gtm?: {
613
- tagId: string;
614
- } | undefined;
615
- hotjar?: {
616
- hjid: string;
617
- hjsv: string;
618
- } | undefined;
619
- koala?: {
620
- projectId: string;
621
- } | undefined;
622
- logrocket?: {
623
- appId: string;
624
- } | undefined;
625
- mixpanel?: {
626
- projectToken: string;
627
- } | undefined;
628
- pirsch?: {
629
- id: string;
630
- } | undefined;
631
- posthog?: {
632
- apiHost?: string | undefined;
633
- apiKey: string;
634
- } | undefined;
635
- plausible?: {
636
- domain: string;
637
- } | undefined;
638
- segment?: {
639
- writeKey: string;
640
- } | undefined;
641
- } | undefined;
642
- integrations?: {
643
- intercom?: string | undefined;
644
- } | undefined;
645
- __injected?: undefined;
646
- name: string;
647
- favicon: string;
648
- colors: {
649
- light?: string | undefined;
650
- dark?: string | undefined;
651
- background?: {
652
- light?: string | undefined;
653
- dark?: string | undefined;
654
- } | undefined;
655
- anchors?: string | {
656
- via?: string | undefined;
657
- from: string;
658
- to: string;
659
- } | undefined;
660
- ultraLight?: any;
661
- ultraDark?: any;
662
- primary: string;
663
- };
664
- navigation: import("../types/navigation").NavigationType[];
665
- }>;
@@ -1,2 +0,0 @@
1
- import { z } from "zod";
2
- export declare const faviconSchema: z.ZodEffects<z.ZodString, string, string>;
@@ -1,2 +0,0 @@
1
- import { z } from "zod";
2
- export declare const nameSchema: z.ZodString;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { NavigationType } from "../types/navigation";
3
- export declare const navigationConfigSchema: z.ZodArray<z.ZodType<NavigationType, z.ZodTypeDef, NavigationType>, "many">;
@@ -1,2 +0,0 @@
1
- import { z } from "zod";
2
- export declare const versionsSchema: z.ZodArray<z.ZodString, "many">;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { analyticsSchema } from "../schemas/analytics";
3
- export type AnalyticsType = z.infer<typeof analyticsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { anchorsSchema } from "../schemas/anchors";
3
- export type AnchorsType = z.infer<typeof anchorsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { colorsSchema } from "../schemas/colors";
3
- export type ColorsType = z.infer<typeof colorsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { configSchema } from "../schemas/config";
3
- export type ConfigType = z.infer<typeof configSchema>;
@@ -1,6 +0,0 @@
1
- export type NavigationEntry = string | NavigationType;
2
- export type NavigationType = {
3
- group: string;
4
- pages: NavigationEntry[];
5
- version?: string;
6
- };