@supernova-studio/client 1.96.2 → 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
@@ -5503,6 +5503,11 @@ var Brand = z172.object({
5503
5503
  // ../model/src/dsm/design-system.ts
5504
5504
  import { z as z173 } from "zod";
5505
5505
  var DesignSystemAccessMode = z173.enum(["Open", "InviteOnly"]);
5506
+ var DOC_USER_SLUG_REGEX = /^[a-z0-9](?:[a-z0-9-]{0,30}[a-z0-9])?$/;
5507
+ var DocUserSlugSchema = z173.string().min(1).max(32).regex(
5508
+ DOC_USER_SLUG_REGEX,
5509
+ "Documentation slug can only contain lowercase letters, digits, and hyphens, and cannot start or end with a hyphen."
5510
+ );
5506
5511
  var DesignSystemSwitcher = z173.object({
5507
5512
  isEnabled: z173.boolean(),
5508
5513
  designSystemIds: z173.array(z173.string())
@@ -5514,7 +5519,7 @@ var DesignSystem = z173.object({
5514
5519
  description: z173.string(),
5515
5520
  docExporterId: nullishToOptional(z173.string()),
5516
5521
  docSlug: z173.string(),
5517
- docUserSlug: nullishToOptional(z173.string()),
5522
+ docUserSlug: nullishToOptional(DocUserSlugSchema),
5518
5523
  docSlugDeprecated: z173.string(),
5519
5524
  isMultibrand: z173.boolean(),
5520
5525
  docViewUrl: nullishToOptional(z173.string()),