@mintlify/validation 0.1.429 → 0.1.431

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.
@@ -2,16 +2,19 @@ import { NavigationGroup } from '@mintlify/models';
2
2
  import { z } from 'zod';
3
3
  export declare const baseNavigationGroupSchema: z.ZodObject<{
4
4
  group: z.ZodString;
5
+ public: z.ZodOptional<z.ZodBoolean>;
5
6
  icon: z.ZodOptional<z.ZodString>;
6
7
  iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
7
8
  version: z.ZodOptional<z.ZodString>;
8
9
  }, "strict", z.ZodTypeAny, {
9
10
  group: string;
11
+ public?: boolean | undefined;
10
12
  icon?: string | undefined;
11
13
  iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
12
14
  version?: string | undefined;
13
15
  }, {
14
16
  group: string;
17
+ public?: boolean | undefined;
15
18
  icon?: string | undefined;
16
19
  iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
17
20
  version?: string | undefined;
@@ -5,8 +5,9 @@ import { normalizeRelativePath } from '../../transforms/normalizeRelativePath.js
5
5
  export const baseNavigationGroupSchema = z
6
6
  .object({
7
7
  // We allow top-level groups to be an empty string if the user wants to hide the title.
8
- // Future work should refactor this so nested groups are non-empty strings.
8
+ // TODO (jan 2024): future work should refactor this so nested groups are non-empty strings.
9
9
  group: z.string().describe('The label for this group in the navigation sidebar'),
10
+ public: z.boolean().optional().describe('Whether this group is public or not'),
10
11
  icon: z.string().optional(),
11
12
  iconType: z.enum(iconTypes).optional(),
12
13
  version: z.string().optional(),