@supernova-studio/model 1.96.1 → 1.96.3

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/index.mjs CHANGED
@@ -5879,6 +5879,11 @@ var Brand = z172.object({
5879
5879
  // src/dsm/design-system.ts
5880
5880
  import { z as z173 } from "zod";
5881
5881
  var DesignSystemAccessMode = z173.enum(["Open", "InviteOnly"]);
5882
+ var DOC_USER_SLUG_REGEX = /^[a-z0-9](?:[a-z0-9-]{0,30}[a-z0-9])?$/;
5883
+ var DocUserSlugSchema = z173.string().min(1).max(32).regex(
5884
+ DOC_USER_SLUG_REGEX,
5885
+ "Documentation slug can only contain lowercase letters, digits, and hyphens, and cannot start or end with a hyphen."
5886
+ );
5882
5887
  var DesignSystemSwitcher = z173.object({
5883
5888
  isEnabled: z173.boolean(),
5884
5889
  designSystemIds: z173.array(z173.string())
@@ -5890,7 +5895,7 @@ var DesignSystem = z173.object({
5890
5895
  description: z173.string(),
5891
5896
  docExporterId: nullishToOptional(z173.string()),
5892
5897
  docSlug: z173.string(),
5893
- docUserSlug: nullishToOptional(z173.string()),
5898
+ docUserSlug: nullishToOptional(DocUserSlugSchema),
5894
5899
  docSlugDeprecated: z173.string(),
5895
5900
  isMultibrand: z173.boolean(),
5896
5901
  docViewUrl: nullishToOptional(z173.string()),