@mintlify/validation 0.1.234 → 0.1.236
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.
- package/dist/mint-config/schemas/v2/index.d.ts +3091 -479
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +59 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +299 -0
- package/dist/mint-config/schemas/v2/properties/navigation/global.js +16 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +419 -2
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +146 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +4 -3
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +23 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +4 -4
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +659 -6
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +659 -6
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +659 -6
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +419 -2
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +659 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
2
|
+
export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
languages: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
4
4
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
5
5
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -292,4 +292,421 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
292
292
|
pages: any[];
|
|
293
293
|
}, {
|
|
294
294
|
pages: any[];
|
|
295
|
-
}>]
|
|
295
|
+
}>]>, z.ZodOptional<z.ZodObject<{
|
|
296
|
+
global: z.ZodObject<{
|
|
297
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
298
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
299
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
302
|
+
hidden?: boolean | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
305
|
+
hidden?: boolean | undefined;
|
|
306
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
307
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
310
|
+
}, {
|
|
311
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
312
|
+
}>, z.ZodObject<{
|
|
313
|
+
href: z.ZodString;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
href: string;
|
|
316
|
+
}, {
|
|
317
|
+
href: string;
|
|
318
|
+
}>]>>, "many">>;
|
|
319
|
+
versions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
320
|
+
version: z.ZodString;
|
|
321
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
version: string;
|
|
324
|
+
hidden?: boolean | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
version: string;
|
|
327
|
+
hidden?: boolean | undefined;
|
|
328
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
329
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
332
|
+
}, {
|
|
333
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
334
|
+
}>, z.ZodObject<{
|
|
335
|
+
href: z.ZodString;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
href: string;
|
|
338
|
+
}, {
|
|
339
|
+
href: string;
|
|
340
|
+
}>]>>, "many">>;
|
|
341
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
342
|
+
tab: z.ZodString;
|
|
343
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
344
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
345
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
name: string;
|
|
348
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
349
|
+
}, {
|
|
350
|
+
name: string;
|
|
351
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
352
|
+
}>]>>;
|
|
353
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
tab: string;
|
|
356
|
+
icon?: string | {
|
|
357
|
+
name: string;
|
|
358
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
359
|
+
} | undefined;
|
|
360
|
+
hidden?: boolean | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
tab: string;
|
|
363
|
+
icon?: string | {
|
|
364
|
+
name: string;
|
|
365
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
366
|
+
} | undefined;
|
|
367
|
+
hidden?: boolean | undefined;
|
|
368
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
369
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
372
|
+
}, {
|
|
373
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
374
|
+
}>, z.ZodObject<{
|
|
375
|
+
href: z.ZodString;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
href: string;
|
|
378
|
+
}, {
|
|
379
|
+
href: string;
|
|
380
|
+
}>]>>, "many">>;
|
|
381
|
+
dropdowns: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
382
|
+
dropdown: z.ZodString;
|
|
383
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
384
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
385
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
name: string;
|
|
388
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
389
|
+
}, {
|
|
390
|
+
name: string;
|
|
391
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
392
|
+
}>]>>;
|
|
393
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
dropdown: string;
|
|
396
|
+
icon?: string | {
|
|
397
|
+
name: string;
|
|
398
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
399
|
+
} | undefined;
|
|
400
|
+
hidden?: boolean | undefined;
|
|
401
|
+
}, {
|
|
402
|
+
dropdown: string;
|
|
403
|
+
icon?: string | {
|
|
404
|
+
name: string;
|
|
405
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
406
|
+
} | undefined;
|
|
407
|
+
hidden?: boolean | undefined;
|
|
408
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
409
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
412
|
+
}, {
|
|
413
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
414
|
+
}>, z.ZodObject<{
|
|
415
|
+
href: z.ZodString;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
href: string;
|
|
418
|
+
}, {
|
|
419
|
+
href: string;
|
|
420
|
+
}>]>>, "many">>;
|
|
421
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
422
|
+
anchor: z.ZodString;
|
|
423
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
424
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
425
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
426
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
|
+
name: string;
|
|
428
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
429
|
+
}, {
|
|
430
|
+
name: string;
|
|
431
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
432
|
+
}>]>>;
|
|
433
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
light: z.ZodString;
|
|
435
|
+
dark: z.ZodString;
|
|
436
|
+
}, "strict", z.ZodTypeAny, {
|
|
437
|
+
light: string;
|
|
438
|
+
dark: string;
|
|
439
|
+
}, {
|
|
440
|
+
light: string;
|
|
441
|
+
dark: string;
|
|
442
|
+
}>>;
|
|
443
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
anchor: string;
|
|
446
|
+
icon?: string | {
|
|
447
|
+
name: string;
|
|
448
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
449
|
+
} | undefined;
|
|
450
|
+
color?: {
|
|
451
|
+
light: string;
|
|
452
|
+
dark: string;
|
|
453
|
+
} | undefined;
|
|
454
|
+
hidden?: boolean | undefined;
|
|
455
|
+
}, {
|
|
456
|
+
anchor: string;
|
|
457
|
+
icon?: string | {
|
|
458
|
+
name: string;
|
|
459
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
460
|
+
} | undefined;
|
|
461
|
+
color?: {
|
|
462
|
+
light: string;
|
|
463
|
+
dark: string;
|
|
464
|
+
} | undefined;
|
|
465
|
+
hidden?: boolean | undefined;
|
|
466
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
467
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
470
|
+
}, {
|
|
471
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
472
|
+
}>, z.ZodObject<{
|
|
473
|
+
href: z.ZodString;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
href: string;
|
|
476
|
+
}, {
|
|
477
|
+
href: string;
|
|
478
|
+
}>]>>, "many">>;
|
|
479
|
+
}, "strict", z.ZodTypeAny, {
|
|
480
|
+
languages?: ({
|
|
481
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
482
|
+
hidden?: boolean | undefined;
|
|
483
|
+
} & ({
|
|
484
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
485
|
+
} | {
|
|
486
|
+
href: string;
|
|
487
|
+
}))[] | undefined;
|
|
488
|
+
versions?: ({
|
|
489
|
+
version: string;
|
|
490
|
+
hidden?: boolean | undefined;
|
|
491
|
+
} & ({
|
|
492
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
493
|
+
} | {
|
|
494
|
+
href: string;
|
|
495
|
+
}))[] | undefined;
|
|
496
|
+
tabs?: ({
|
|
497
|
+
tab: string;
|
|
498
|
+
icon?: string | {
|
|
499
|
+
name: string;
|
|
500
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
501
|
+
} | undefined;
|
|
502
|
+
hidden?: boolean | undefined;
|
|
503
|
+
} & ({
|
|
504
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
505
|
+
} | {
|
|
506
|
+
href: string;
|
|
507
|
+
}))[] | undefined;
|
|
508
|
+
dropdowns?: ({
|
|
509
|
+
dropdown: string;
|
|
510
|
+
icon?: string | {
|
|
511
|
+
name: string;
|
|
512
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
513
|
+
} | undefined;
|
|
514
|
+
hidden?: boolean | undefined;
|
|
515
|
+
} & ({
|
|
516
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
517
|
+
} | {
|
|
518
|
+
href: string;
|
|
519
|
+
}))[] | undefined;
|
|
520
|
+
anchors?: ({
|
|
521
|
+
anchor: string;
|
|
522
|
+
icon?: string | {
|
|
523
|
+
name: string;
|
|
524
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
525
|
+
} | undefined;
|
|
526
|
+
color?: {
|
|
527
|
+
light: string;
|
|
528
|
+
dark: string;
|
|
529
|
+
} | undefined;
|
|
530
|
+
hidden?: boolean | undefined;
|
|
531
|
+
} & ({
|
|
532
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
533
|
+
} | {
|
|
534
|
+
href: string;
|
|
535
|
+
}))[] | undefined;
|
|
536
|
+
}, {
|
|
537
|
+
languages?: ({
|
|
538
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
539
|
+
hidden?: boolean | undefined;
|
|
540
|
+
} & ({
|
|
541
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
542
|
+
} | {
|
|
543
|
+
href: string;
|
|
544
|
+
}))[] | undefined;
|
|
545
|
+
versions?: ({
|
|
546
|
+
version: string;
|
|
547
|
+
hidden?: boolean | undefined;
|
|
548
|
+
} & ({
|
|
549
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
550
|
+
} | {
|
|
551
|
+
href: string;
|
|
552
|
+
}))[] | undefined;
|
|
553
|
+
tabs?: ({
|
|
554
|
+
tab: string;
|
|
555
|
+
icon?: string | {
|
|
556
|
+
name: string;
|
|
557
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
558
|
+
} | undefined;
|
|
559
|
+
hidden?: boolean | undefined;
|
|
560
|
+
} & ({
|
|
561
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
562
|
+
} | {
|
|
563
|
+
href: string;
|
|
564
|
+
}))[] | undefined;
|
|
565
|
+
dropdowns?: ({
|
|
566
|
+
dropdown: string;
|
|
567
|
+
icon?: string | {
|
|
568
|
+
name: string;
|
|
569
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
570
|
+
} | undefined;
|
|
571
|
+
hidden?: boolean | undefined;
|
|
572
|
+
} & ({
|
|
573
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
574
|
+
} | {
|
|
575
|
+
href: string;
|
|
576
|
+
}))[] | undefined;
|
|
577
|
+
anchors?: ({
|
|
578
|
+
anchor: string;
|
|
579
|
+
icon?: string | {
|
|
580
|
+
name: string;
|
|
581
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
582
|
+
} | undefined;
|
|
583
|
+
color?: {
|
|
584
|
+
light: string;
|
|
585
|
+
dark: string;
|
|
586
|
+
} | undefined;
|
|
587
|
+
hidden?: boolean | undefined;
|
|
588
|
+
} & ({
|
|
589
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
590
|
+
} | {
|
|
591
|
+
href: string;
|
|
592
|
+
}))[] | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
global: {
|
|
596
|
+
languages?: ({
|
|
597
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
598
|
+
hidden?: boolean | undefined;
|
|
599
|
+
} & ({
|
|
600
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
601
|
+
} | {
|
|
602
|
+
href: string;
|
|
603
|
+
}))[] | undefined;
|
|
604
|
+
versions?: ({
|
|
605
|
+
version: string;
|
|
606
|
+
hidden?: boolean | undefined;
|
|
607
|
+
} & ({
|
|
608
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
609
|
+
} | {
|
|
610
|
+
href: string;
|
|
611
|
+
}))[] | undefined;
|
|
612
|
+
tabs?: ({
|
|
613
|
+
tab: string;
|
|
614
|
+
icon?: string | {
|
|
615
|
+
name: string;
|
|
616
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
617
|
+
} | undefined;
|
|
618
|
+
hidden?: boolean | undefined;
|
|
619
|
+
} & ({
|
|
620
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
621
|
+
} | {
|
|
622
|
+
href: string;
|
|
623
|
+
}))[] | undefined;
|
|
624
|
+
dropdowns?: ({
|
|
625
|
+
dropdown: string;
|
|
626
|
+
icon?: string | {
|
|
627
|
+
name: string;
|
|
628
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
629
|
+
} | undefined;
|
|
630
|
+
hidden?: boolean | undefined;
|
|
631
|
+
} & ({
|
|
632
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
633
|
+
} | {
|
|
634
|
+
href: string;
|
|
635
|
+
}))[] | undefined;
|
|
636
|
+
anchors?: ({
|
|
637
|
+
anchor: string;
|
|
638
|
+
icon?: string | {
|
|
639
|
+
name: string;
|
|
640
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
641
|
+
} | undefined;
|
|
642
|
+
color?: {
|
|
643
|
+
light: string;
|
|
644
|
+
dark: string;
|
|
645
|
+
} | undefined;
|
|
646
|
+
hidden?: boolean | undefined;
|
|
647
|
+
} & ({
|
|
648
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
649
|
+
} | {
|
|
650
|
+
href: string;
|
|
651
|
+
}))[] | undefined;
|
|
652
|
+
};
|
|
653
|
+
}, {
|
|
654
|
+
global: {
|
|
655
|
+
languages?: ({
|
|
656
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
657
|
+
hidden?: boolean | undefined;
|
|
658
|
+
} & ({
|
|
659
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
660
|
+
} | {
|
|
661
|
+
href: string;
|
|
662
|
+
}))[] | undefined;
|
|
663
|
+
versions?: ({
|
|
664
|
+
version: string;
|
|
665
|
+
hidden?: boolean | undefined;
|
|
666
|
+
} & ({
|
|
667
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
668
|
+
} | {
|
|
669
|
+
href: string;
|
|
670
|
+
}))[] | undefined;
|
|
671
|
+
tabs?: ({
|
|
672
|
+
tab: string;
|
|
673
|
+
icon?: string | {
|
|
674
|
+
name: string;
|
|
675
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
676
|
+
} | undefined;
|
|
677
|
+
hidden?: boolean | undefined;
|
|
678
|
+
} & ({
|
|
679
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
680
|
+
} | {
|
|
681
|
+
href: string;
|
|
682
|
+
}))[] | undefined;
|
|
683
|
+
dropdowns?: ({
|
|
684
|
+
dropdown: string;
|
|
685
|
+
icon?: string | {
|
|
686
|
+
name: string;
|
|
687
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
688
|
+
} | undefined;
|
|
689
|
+
hidden?: boolean | undefined;
|
|
690
|
+
} & ({
|
|
691
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
692
|
+
} | {
|
|
693
|
+
href: string;
|
|
694
|
+
}))[] | undefined;
|
|
695
|
+
anchors?: ({
|
|
696
|
+
anchor: string;
|
|
697
|
+
icon?: string | {
|
|
698
|
+
name: string;
|
|
699
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
700
|
+
} | undefined;
|
|
701
|
+
color?: {
|
|
702
|
+
light: string;
|
|
703
|
+
dark: string;
|
|
704
|
+
} | undefined;
|
|
705
|
+
hidden?: boolean | undefined;
|
|
706
|
+
} & ({
|
|
707
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
708
|
+
} | {
|
|
709
|
+
href: string;
|
|
710
|
+
}))[] | undefined;
|
|
711
|
+
};
|
|
712
|
+
}>>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { anchorsSchema } from './anchors.js';
|
|
3
3
|
import { dropdownsSchema } from './dropdown.js';
|
|
4
|
+
import { globalSchema } from './global.js';
|
|
4
5
|
import { groupsSchema } from './groups.js';
|
|
5
6
|
import { languagesSchema } from './languages.js';
|
|
6
7
|
import { pagesSchema } from './pages.js';
|
|
@@ -16,4 +17,5 @@ export const navigationSchema = z
|
|
|
16
17
|
z.object({ groups: groupsSchema }),
|
|
17
18
|
z.object({ pages: pagesSchema }),
|
|
18
19
|
])
|
|
20
|
+
.and(z.object({ global: globalSchema }).optional())
|
|
19
21
|
.describe('The navigation structure of the content');
|
|
@@ -1,4 +1,150 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
4
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
7
|
+
hidden?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
10
|
+
hidden?: boolean | undefined;
|
|
11
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
12
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
15
|
+
}, {
|
|
16
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
href: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
href: string;
|
|
21
|
+
}, {
|
|
22
|
+
href: string;
|
|
23
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
24
|
+
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
versions: any[];
|
|
27
|
+
}, {
|
|
28
|
+
versions: any[];
|
|
29
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
30
|
+
tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
tabs: any[];
|
|
33
|
+
}, {
|
|
34
|
+
tabs: any[];
|
|
35
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
36
|
+
dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
dropdowns: any[];
|
|
39
|
+
}, {
|
|
40
|
+
dropdowns: any[];
|
|
41
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
42
|
+
anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
anchors: any[];
|
|
45
|
+
}, {
|
|
46
|
+
anchors: any[];
|
|
47
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
48
|
+
groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
49
|
+
group: z.ZodString;
|
|
50
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
51
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
52
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
name: string;
|
|
55
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
56
|
+
}, {
|
|
57
|
+
name: string;
|
|
58
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
59
|
+
}>]>>;
|
|
60
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
group: string;
|
|
64
|
+
icon?: string | {
|
|
65
|
+
name: string;
|
|
66
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
67
|
+
} | undefined;
|
|
68
|
+
hidden?: boolean | undefined;
|
|
69
|
+
root?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
group: string;
|
|
72
|
+
icon?: string | {
|
|
73
|
+
name: string;
|
|
74
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
75
|
+
} | undefined;
|
|
76
|
+
hidden?: boolean | undefined;
|
|
77
|
+
root?: string | undefined;
|
|
78
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
79
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
82
|
+
}, {
|
|
83
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
84
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
85
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
pages: any[];
|
|
88
|
+
}, {
|
|
89
|
+
pages: any[];
|
|
90
|
+
}>>]>>, "many">;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
groups: ({
|
|
93
|
+
group: string;
|
|
94
|
+
icon?: string | {
|
|
95
|
+
name: string;
|
|
96
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
97
|
+
} | undefined;
|
|
98
|
+
hidden?: boolean | undefined;
|
|
99
|
+
root?: string | undefined;
|
|
100
|
+
} & ({
|
|
101
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
102
|
+
} | {
|
|
103
|
+
pages: any[];
|
|
104
|
+
}))[];
|
|
105
|
+
}, {
|
|
106
|
+
groups: ({
|
|
107
|
+
group: string;
|
|
108
|
+
icon?: string | {
|
|
109
|
+
name: string;
|
|
110
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
111
|
+
} | undefined;
|
|
112
|
+
hidden?: boolean | undefined;
|
|
113
|
+
root?: string | undefined;
|
|
114
|
+
} & ({
|
|
115
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
116
|
+
} | {
|
|
117
|
+
pages: any[];
|
|
118
|
+
}))[];
|
|
119
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
120
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
pages: any[];
|
|
123
|
+
}, {
|
|
124
|
+
pages: any[];
|
|
125
|
+
}>>]>>;
|
|
126
|
+
export declare const nonRecursiveLanguageSchema: z.ZodIntersection<z.ZodObject<{
|
|
127
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
128
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
131
|
+
hidden?: boolean | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
134
|
+
hidden?: boolean | undefined;
|
|
135
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
136
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
139
|
+
}, {
|
|
140
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
141
|
+
}>, z.ZodObject<{
|
|
142
|
+
href: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
href: string;
|
|
145
|
+
}, {
|
|
146
|
+
href: string;
|
|
147
|
+
}>]>>;
|
|
2
148
|
export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
3
149
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
4
150
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8,13 +8,13 @@ import { groupsSchema } from './groups.js';
|
|
|
8
8
|
import { pagesSchema } from './pages.js';
|
|
9
9
|
import { tabsSchema } from './tabs.js';
|
|
10
10
|
import { versionsSchema } from './version.js';
|
|
11
|
-
const
|
|
12
|
-
.object({
|
|
11
|
+
const baseLanguageSchema = z.object({
|
|
13
12
|
language: z
|
|
14
13
|
.enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de'])
|
|
15
14
|
.describe('The name of the language in the ISO 639-1 format'),
|
|
16
15
|
hidden: hiddenSchema.optional(),
|
|
17
|
-
})
|
|
16
|
+
});
|
|
17
|
+
export const languageSchema = baseLanguageSchema
|
|
18
18
|
.and(z.union([
|
|
19
19
|
z.object({ openapi: openApiSchema }),
|
|
20
20
|
z.object({ href: hrefSchema }),
|
|
@@ -26,6 +26,7 @@ const languageSchema = z
|
|
|
26
26
|
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
27
|
]))
|
|
28
28
|
.describe('Organizing by languages');
|
|
29
|
+
export const nonRecursiveLanguageSchema = baseLanguageSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
|
|
29
30
|
export const languagesSchema = z
|
|
30
31
|
.array(languageSchema)
|
|
31
32
|
.min(1, 'At least one language must be specified')
|
|
@@ -1,2 +1,43 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const tabSchema: z.ZodType;
|
|
3
|
+
export declare const nonRecursiveTabSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
+
tab: z.ZodString;
|
|
5
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
6
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
7
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
14
|
+
}>]>>;
|
|
15
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
tab: string;
|
|
18
|
+
icon?: string | {
|
|
19
|
+
name: string;
|
|
20
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
21
|
+
} | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
tab: string;
|
|
25
|
+
icon?: string | {
|
|
26
|
+
name: string;
|
|
27
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
28
|
+
} | undefined;
|
|
29
|
+
hidden?: boolean | undefined;
|
|
30
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
31
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
34
|
+
}, {
|
|
35
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
36
|
+
}>, z.ZodObject<{
|
|
37
|
+
href: z.ZodString;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
href: string;
|
|
40
|
+
}, {
|
|
41
|
+
href: string;
|
|
42
|
+
}>]>>;
|
|
2
43
|
export declare const tabsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|