@supernova-studio/model 0.36.0 → 0.37.0

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
@@ -187,7 +187,7 @@ var PriceSchema = z9.object({
187
187
 
188
188
  // src/billing/product.ts
189
189
  import { z as z10 } from "zod";
190
- var ProductCodeSchema = z10.enum(["free", "team", "team_test", "company", "enterprise"]);
190
+ var ProductCodeSchema = z10.enum(["free", "team", "company", "enterprise"]);
191
191
  var ProductCode = ProductCodeSchema.enum;
192
192
 
193
193
  // src/billing/subscription.ts
@@ -596,7 +596,7 @@ var HierarchicalElements = DesignTokenType.or(
596
596
 
597
597
  // src/dsm/properties/property-definition.ts
598
598
  import { z as z30 } from "zod";
599
- var ElementPropertyType = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
599
+ var ElementPropertyTypeSchema = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
600
600
  var ElementPropertyTargetType = z30.enum(["Token", "Component", "DocumentationPage"]);
601
601
  var ElementPropertyLinkType = z30.enum(["FigmaComponent", "DocumentationPage"]);
602
602
  var ColorTokenInlineData = z30.object({
@@ -614,11 +614,12 @@ var ElementPropertyDefinition = z30.object({
614
614
  name: z30.string(),
615
615
  codeName: z30.string(),
616
616
  description: z30.string(),
617
- type: ElementPropertyType,
617
+ type: ElementPropertyTypeSchema,
618
618
  targetElementType: ElementPropertyTargetType,
619
- options: z30.array(ElementPropertyDefinitionOption).nullish(),
620
- linkElementType: ElementPropertyLinkType.nullish()
619
+ options: z30.array(ElementPropertyDefinitionOption).optional(),
620
+ linkElementType: ElementPropertyLinkType.optional()
621
621
  });
622
+ var ElementPropertyType = ElementPropertyTypeSchema.enum;
622
623
 
623
624
  // src/dsm/properties/property-value.ts
624
625
  import { z as z31 } from "zod";
@@ -631,7 +632,7 @@ var ElementPropertyValue = z31.object({
631
632
  numberValue: z31.number().nullish(),
632
633
  booleanValue: z31.boolean().nullish(),
633
634
  referenceValue: z31.string().nullish(),
634
- referenceValuePreview: z31.string().nullish()
635
+ referenceValuePreview: z31.string().optional()
635
636
  });
636
637
 
637
638
  // src/dsm/elements/primitives/point.ts
@@ -975,10 +976,10 @@ var PageBlockItemAssetValue = z35.object({
975
976
  entityType: z35.enum(["Asset", "AssetGroup"]),
976
977
  entityMeta: PageBlockAssetEntityMeta.optional()
977
978
  })
978
- )
979
+ ).default([])
979
980
  });
980
981
  var PageBlockItemAssetPropertyValue = z35.object({
981
- value: z35.array(z35.string())
982
+ value: z35.array(z35.string()).default([])
982
983
  });
983
984
  var PageBlockItemBooleanValue = z35.object({
984
985
  value: z35.boolean()
@@ -1004,7 +1005,7 @@ var PageBlockItemComponentValue = z35.object({
1004
1005
  entityId: z35.string(),
1005
1006
  entityType: z35.enum(["Component", "ComponentGroup"])
1006
1007
  })
1007
- )
1008
+ ).default([])
1008
1009
  });
1009
1010
  var PageBlockItemComponentPropertyValue = z35.object({
1010
1011
  value: z35.string()
@@ -1030,7 +1031,7 @@ var PageBlockItemFigmaNodeValue = z35.object({
1030
1031
  entityId: z35.string(),
1031
1032
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1032
1033
  })
1033
- )
1034
+ ).default([])
1034
1035
  });
1035
1036
  var PageBlockItemImageValue = z35.object({
1036
1037
  alt: z35.string().optional(),
@@ -1045,7 +1046,7 @@ var PageBlockItemMultiRichTextValue = z35.object({
1045
1046
  value: PageBlockText.array()
1046
1047
  });
1047
1048
  var PageBlockItemMultiSelectValue = z35.object({
1048
- value: z35.array(z35.string())
1049
+ value: z35.array(z35.string()).default([])
1049
1050
  });
1050
1051
  var PageBlockItemNumberValue = z35.object({
1051
1052
  value: z35.number()
@@ -1078,15 +1079,15 @@ var PageBlockItemTokenValue = z35.object({
1078
1079
  showNestedGroups: z35.boolean().optional()
1079
1080
  }).optional()
1080
1081
  })
1081
- )
1082
+ ).default([])
1082
1083
  });
1083
1084
  var PageBlockItemTokenPropertyValue = z35.object({
1084
1085
  selectedPropertyIds: z35.array(z35.string()).optional(),
1085
1086
  selectedThemeIds: z35.array(z35.string()).optional(),
1086
- value: z35.array(z35.string())
1087
+ value: z35.array(z35.string()).default([])
1087
1088
  });
1088
1089
  var PageBlockItemTokenTypeValue = z35.object({
1089
- value: z35.array(DesignTokenType)
1090
+ value: z35.array(DesignTokenType).default([])
1090
1091
  });
1091
1092
  var PageBlockItemUrlValue = z35.object({
1092
1093
  value: z35.string()
@@ -1124,7 +1125,7 @@ var PageBlockItemTableValue = z35.object({
1124
1125
  highlightHeaderColumn: z35.boolean().optional(),
1125
1126
  highlightHeaderRow: z35.boolean().optional(),
1126
1127
  showBorder: z35.boolean().optional(),
1127
- value: z35.array(PageBlockItemTableRow)
1128
+ value: z35.array(PageBlockItemTableRow).default([])
1128
1129
  });
1129
1130
 
1130
1131
  // src/dsm/elements/data/documentation-page-v1.ts
@@ -2562,127 +2563,182 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2562
2563
  var RoomTypeSchema = z100.nativeEnum(RoomTypeEnum);
2563
2564
  var RoomType = RoomTypeSchema.enum;
2564
2565
 
2566
+ // src/dsm/views/column.ts
2567
+ import { z as z101 } from "zod";
2568
+ var ElementViewBaseColumnType = z101.enum(["Name", "Description", "Value", "UpdatedAt"]);
2569
+ var ElementViewColumnType = z101.union([
2570
+ z101.literal("BaseProperty"),
2571
+ z101.literal("PropertyDefinition"),
2572
+ z101.literal("Theme")
2573
+ ]);
2574
+ var ElementViewColumnSharedAttributes = z101.object({
2575
+ id: z101.string(),
2576
+ persistentId: z101.string(),
2577
+ elementDataViewId: z101.string(),
2578
+ sortPosition: z101.number(),
2579
+ width: z101.number()
2580
+ });
2581
+ var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2582
+ type: z101.literal("BaseProperty"),
2583
+ basePropertyType: ElementViewBaseColumnType
2584
+ });
2585
+ var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2586
+ type: z101.literal("PropertyDefinition"),
2587
+ propertyDefinitionId: z101.string()
2588
+ });
2589
+ var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2590
+ type: z101.literal("Theme"),
2591
+ themeId: z101.string()
2592
+ });
2593
+ var ElementViewColumn = z101.discriminatedUnion("type", [
2594
+ ElementViewBasePropertyColumn,
2595
+ ElementViewPropertyDefinitionColumn,
2596
+ ElementViewThemeColumn
2597
+ ]);
2598
+
2599
+ // src/dsm/views/view.ts
2600
+ import { z as z102 } from "zod";
2601
+ var ElementView = z102.object({
2602
+ id: z102.string(),
2603
+ persistentId: z102.string(),
2604
+ designSystemVersionId: z102.string(),
2605
+ name: z102.string(),
2606
+ description: z102.string(),
2607
+ targetElementType: ElementPropertyTargetType,
2608
+ isDefault: z102.boolean()
2609
+ });
2610
+
2611
+ // src/dsm/brand.ts
2612
+ import { z as z103 } from "zod";
2613
+ var Brand = z103.object({
2614
+ id: z103.string(),
2615
+ designSystemVersionId: z103.string(),
2616
+ persistentId: z103.string(),
2617
+ name: z103.string(),
2618
+ description: z103.string()
2619
+ });
2620
+
2565
2621
  // src/dsm/design-system.ts
2566
- import { z as z110 } from "zod";
2622
+ import { z as z113 } from "zod";
2567
2623
 
2568
2624
  // src/workspace/npm-registry-settings.ts
2569
- import { z as z101 } from "zod";
2570
- var NpmRegistryAuthType = z101.enum(["Basic", "Bearer", "None", "Custom"]);
2571
- var NpmRegistryType = z101.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2572
- var NpmRegistryBasicAuthConfig = z101.object({
2573
- authType: z101.literal(NpmRegistryAuthType.Enum.Basic),
2574
- username: z101.string(),
2575
- password: z101.string()
2576
- });
2577
- var NpmRegistryBearerAuthConfig = z101.object({
2578
- authType: z101.literal(NpmRegistryAuthType.Enum.Bearer),
2579
- accessToken: z101.string()
2580
- });
2581
- var NpmRegistryNoAuthConfig = z101.object({
2582
- authType: z101.literal(NpmRegistryAuthType.Enum.None)
2583
- });
2584
- var NpmRegistrCustomAuthConfig = z101.object({
2585
- authType: z101.literal(NpmRegistryAuthType.Enum.Custom),
2586
- authHeaderName: z101.string(),
2587
- authHeaderValue: z101.string()
2588
- });
2589
- var NpmRegistryAuthConfig = z101.discriminatedUnion("authType", [
2625
+ import { z as z104 } from "zod";
2626
+ var NpmRegistryAuthType = z104.enum(["Basic", "Bearer", "None", "Custom"]);
2627
+ var NpmRegistryType = z104.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2628
+ var NpmRegistryBasicAuthConfig = z104.object({
2629
+ authType: z104.literal(NpmRegistryAuthType.Enum.Basic),
2630
+ username: z104.string(),
2631
+ password: z104.string()
2632
+ });
2633
+ var NpmRegistryBearerAuthConfig = z104.object({
2634
+ authType: z104.literal(NpmRegistryAuthType.Enum.Bearer),
2635
+ accessToken: z104.string()
2636
+ });
2637
+ var NpmRegistryNoAuthConfig = z104.object({
2638
+ authType: z104.literal(NpmRegistryAuthType.Enum.None)
2639
+ });
2640
+ var NpmRegistrCustomAuthConfig = z104.object({
2641
+ authType: z104.literal(NpmRegistryAuthType.Enum.Custom),
2642
+ authHeaderName: z104.string(),
2643
+ authHeaderValue: z104.string()
2644
+ });
2645
+ var NpmRegistryAuthConfig = z104.discriminatedUnion("authType", [
2590
2646
  NpmRegistryBasicAuthConfig,
2591
2647
  NpmRegistryBearerAuthConfig,
2592
2648
  NpmRegistryNoAuthConfig,
2593
2649
  NpmRegistrCustomAuthConfig
2594
2650
  ]);
2595
- var NpmRegistryConfigBase = z101.object({
2651
+ var NpmRegistryConfigBase = z104.object({
2596
2652
  registryType: NpmRegistryType,
2597
- enabledScopes: z101.array(z101.string()),
2598
- customRegistryUrl: z101.string().optional(),
2599
- bypassProxy: z101.boolean().default(false),
2600
- npmProxyRegistryConfigId: z101.string().optional(),
2601
- npmProxyVersion: z101.number().optional()
2653
+ enabledScopes: z104.array(z104.string()),
2654
+ customRegistryUrl: z104.string().optional(),
2655
+ bypassProxy: z104.boolean().default(false),
2656
+ npmProxyRegistryConfigId: z104.string().optional(),
2657
+ npmProxyVersion: z104.number().optional()
2602
2658
  });
2603
2659
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2604
2660
 
2605
2661
  // src/workspace/sso-provider.ts
2606
- import { z as z102 } from "zod";
2607
- var SsoProvider = z102.object({
2608
- providerId: z102.string(),
2609
- defaultAutoInviteValue: z102.boolean(),
2610
- autoInviteDomains: z102.record(z102.string(), z102.boolean()),
2611
- skipDocsSupernovaLogin: z102.boolean(),
2612
- areInvitesDisabled: z102.boolean(),
2613
- isTestMode: z102.boolean(),
2614
- emailDomains: z102.array(z102.string()),
2615
- metadataXml: z102.string().nullish()
2662
+ import { z as z105 } from "zod";
2663
+ var SsoProvider = z105.object({
2664
+ providerId: z105.string(),
2665
+ defaultAutoInviteValue: z105.boolean(),
2666
+ autoInviteDomains: z105.record(z105.string(), z105.boolean()),
2667
+ skipDocsSupernovaLogin: z105.boolean(),
2668
+ areInvitesDisabled: z105.boolean(),
2669
+ isTestMode: z105.boolean(),
2670
+ emailDomains: z105.array(z105.string()),
2671
+ metadataXml: z105.string().nullish()
2616
2672
  });
2617
2673
 
2618
2674
  // src/workspace/user-invite.ts
2619
- import { z as z104 } from "zod";
2675
+ import { z as z107 } from "zod";
2620
2676
 
2621
2677
  // src/workspace/workspace-role.ts
2622
- import { z as z103 } from "zod";
2623
- var WorkspaceRoleSchema = z103.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2678
+ import { z as z106 } from "zod";
2679
+ var WorkspaceRoleSchema = z106.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2624
2680
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2625
2681
 
2626
2682
  // src/workspace/user-invite.ts
2627
2683
  var MAX_MEMBERS_COUNT = 100;
2628
- var UserInvite = z104.object({
2629
- email: z104.string().email().trim().transform((value) => value.toLowerCase()),
2684
+ var UserInvite = z107.object({
2685
+ email: z107.string().email().trim().transform((value) => value.toLowerCase()),
2630
2686
  role: WorkspaceRoleSchema
2631
2687
  });
2632
- var UserInvites = z104.array(UserInvite).max(MAX_MEMBERS_COUNT);
2688
+ var UserInvites = z107.array(UserInvite).max(MAX_MEMBERS_COUNT);
2633
2689
 
2634
2690
  // src/workspace/workspace-context.ts
2635
- import { z as z106 } from "zod";
2691
+ import { z as z109 } from "zod";
2636
2692
 
2637
2693
  // src/workspace/workspace.ts
2638
- import { z as z105 } from "zod";
2694
+ import { z as z108 } from "zod";
2639
2695
  import IPCIDR from "ip-cidr";
2640
2696
  var isValidCIDR = (value) => {
2641
2697
  return IPCIDR.isValidAddress(value);
2642
2698
  };
2643
- var WorkspaceIpWhitelistEntry = z105.object({
2644
- isEnabled: z105.boolean(),
2645
- name: z105.string(),
2646
- range: z105.string().refine(isValidCIDR, {
2699
+ var WorkspaceIpWhitelistEntry = z108.object({
2700
+ isEnabled: z108.boolean(),
2701
+ name: z108.string(),
2702
+ range: z108.string().refine(isValidCIDR, {
2647
2703
  message: "Invalid IP CIDR"
2648
2704
  })
2649
2705
  });
2650
- var WorkspaceIpSettings = z105.object({
2651
- isEnabledForCloud: z105.boolean(),
2652
- isEnabledForDocs: z105.boolean(),
2653
- entries: z105.array(WorkspaceIpWhitelistEntry)
2706
+ var WorkspaceIpSettings = z108.object({
2707
+ isEnabledForCloud: z108.boolean(),
2708
+ isEnabledForDocs: z108.boolean(),
2709
+ entries: z108.array(WorkspaceIpWhitelistEntry)
2654
2710
  });
2655
- var WorkspaceProfile = z105.object({
2656
- name: z105.string(),
2657
- handle: z105.string(),
2658
- color: z105.string(),
2659
- avatar: nullishToOptional(z105.string()),
2711
+ var WorkspaceProfile = z108.object({
2712
+ name: z108.string(),
2713
+ handle: z108.string(),
2714
+ color: z108.string(),
2715
+ avatar: nullishToOptional(z108.string()),
2660
2716
  billingDetails: nullishToOptional(BillingDetails)
2661
2717
  });
2662
- var Workspace = z105.object({
2663
- id: z105.string(),
2718
+ var Workspace = z108.object({
2719
+ id: z108.string(),
2664
2720
  profile: WorkspaceProfile,
2665
2721
  subscription: Subscription,
2666
2722
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2667
2723
  sso: nullishToOptional(SsoProvider),
2668
2724
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2669
- designSystems: z105.array(DesignSystem).nullish()
2725
+ designSystems: z108.array(DesignSystem).nullish()
2670
2726
  });
2671
- var WorkspaceWithDesignSystems = z105.object({
2727
+ var WorkspaceWithDesignSystems = z108.object({
2672
2728
  workspace: Workspace,
2673
- designSystems: z105.array(DesignSystem)
2729
+ designSystems: z108.array(DesignSystem)
2674
2730
  });
2675
2731
 
2676
2732
  // src/workspace/workspace-context.ts
2677
- var WorkspaceContext = z106.object({
2678
- workspaceId: z106.string(),
2733
+ var WorkspaceContext = z109.object({
2734
+ workspaceId: z109.string(),
2679
2735
  product: ProductCodeSchema,
2680
2736
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2681
- publicDesignSystem: z106.boolean().optional()
2737
+ publicDesignSystem: z109.boolean().optional()
2682
2738
  });
2683
2739
 
2684
2740
  // src/workspace/workspace-create.ts
2685
- import { z as z107 } from "zod";
2741
+ import { z as z110 } from "zod";
2686
2742
 
2687
2743
  // src/utils/validation.ts
2688
2744
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2692,18 +2748,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2692
2748
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2693
2749
  var HANDLE_MIN_LENGTH = 2;
2694
2750
  var HANDLE_MAX_LENGTH = 64;
2695
- var CreateWorkspaceInput = z107.object({
2696
- name: z107.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2751
+ var CreateWorkspaceInput = z110.object({
2752
+ name: z110.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2697
2753
  product: ProductCodeSchema,
2698
- priceId: z107.string(),
2699
- billingEmail: z107.string().email().optional(),
2700
- handle: z107.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2754
+ priceId: z110.string(),
2755
+ billingEmail: z110.string().email().optional(),
2756
+ handle: z110.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2701
2757
  invites: UserInvites.optional(),
2702
- promoCode: z107.string().optional(),
2758
+ promoCode: z110.string().optional(),
2703
2759
  status: InternalStatusSchema.optional(),
2704
2760
  planInterval: BillingIntervalSchema.optional(),
2705
- seats: z107.number().optional(),
2706
- seatLimit: z107.number().optional(),
2761
+ seats: z110.number().optional(),
2762
+ seatLimit: z110.number().optional(),
2707
2763
  card: CardSchema.optional(),
2708
2764
  sso: SsoProvider.optional(),
2709
2765
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2711,100 +2767,100 @@ var CreateWorkspaceInput = z107.object({
2711
2767
  });
2712
2768
 
2713
2769
  // src/workspace/workspace-invitations.ts
2714
- import { z as z108 } from "zod";
2715
- var WorkspaceInvitation = z108.object({
2716
- id: z108.string(),
2717
- email: z108.string().email(),
2718
- createdAt: z108.coerce.date(),
2719
- resentAt: z108.coerce.date().nullish(),
2720
- role: z108.nativeEnum(WorkspaceRole),
2721
- workspaceId: z108.string(),
2722
- invitedBy: z108.string()
2770
+ import { z as z111 } from "zod";
2771
+ var WorkspaceInvitation = z111.object({
2772
+ id: z111.string(),
2773
+ email: z111.string().email(),
2774
+ createdAt: z111.coerce.date(),
2775
+ resentAt: z111.coerce.date().nullish(),
2776
+ role: z111.nativeEnum(WorkspaceRole),
2777
+ workspaceId: z111.string(),
2778
+ invitedBy: z111.string()
2723
2779
  });
2724
2780
 
2725
2781
  // src/workspace/workspace-membership.ts
2726
- import { z as z109 } from "zod";
2727
- var WorkspaceMembership = z109.object({
2728
- id: z109.string(),
2729
- userId: z109.string(),
2730
- workspaceId: z109.string(),
2731
- workspaceRole: z109.nativeEnum(WorkspaceRole)
2732
- });
2733
- var UpdateMembershipRolesInput = z109.object({
2734
- members: z109.array(
2735
- z109.object({
2736
- userId: z109.string(),
2737
- role: z109.nativeEnum(WorkspaceRole)
2782
+ import { z as z112 } from "zod";
2783
+ var WorkspaceMembership = z112.object({
2784
+ id: z112.string(),
2785
+ userId: z112.string(),
2786
+ workspaceId: z112.string(),
2787
+ workspaceRole: z112.nativeEnum(WorkspaceRole)
2788
+ });
2789
+ var UpdateMembershipRolesInput = z112.object({
2790
+ members: z112.array(
2791
+ z112.object({
2792
+ userId: z112.string(),
2793
+ role: z112.nativeEnum(WorkspaceRole)
2738
2794
  })
2739
2795
  )
2740
2796
  });
2741
2797
 
2742
2798
  // src/dsm/design-system.ts
2743
- var DesignSystemSwitcher = z110.object({
2744
- isEnabled: z110.boolean(),
2745
- designSystemIds: z110.array(z110.string())
2746
- });
2747
- var DesignSystem = z110.object({
2748
- id: z110.string(),
2749
- workspaceId: z110.string(),
2750
- name: z110.string(),
2751
- description: z110.string(),
2752
- docExporterId: nullishToOptional(z110.string()),
2753
- docSlug: z110.string(),
2754
- docUserSlug: nullishToOptional(z110.string()),
2755
- docSlugDeprecated: z110.string(),
2756
- isPublic: z110.boolean(),
2757
- isMultibrand: z110.boolean(),
2758
- docViewUrl: nullishToOptional(z110.string()),
2759
- basePrefixes: z110.array(z110.string()),
2799
+ var DesignSystemSwitcher = z113.object({
2800
+ isEnabled: z113.boolean(),
2801
+ designSystemIds: z113.array(z113.string())
2802
+ });
2803
+ var DesignSystem = z113.object({
2804
+ id: z113.string(),
2805
+ workspaceId: z113.string(),
2806
+ name: z113.string(),
2807
+ description: z113.string(),
2808
+ docExporterId: nullishToOptional(z113.string()),
2809
+ docSlug: z113.string(),
2810
+ docUserSlug: nullishToOptional(z113.string()),
2811
+ docSlugDeprecated: z113.string(),
2812
+ isPublic: z113.boolean(),
2813
+ isMultibrand: z113.boolean(),
2814
+ docViewUrl: nullishToOptional(z113.string()),
2815
+ basePrefixes: z113.array(z113.string()),
2760
2816
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2761
- createdAt: z110.coerce.date(),
2762
- updatedAt: z110.coerce.date()
2817
+ createdAt: z113.coerce.date(),
2818
+ updatedAt: z113.coerce.date()
2763
2819
  });
2764
- var DesignSystemWithWorkspace = z110.object({
2820
+ var DesignSystemWithWorkspace = z113.object({
2765
2821
  designSystem: DesignSystem,
2766
2822
  workspace: Workspace
2767
2823
  });
2768
2824
 
2769
2825
  // src/dsm/desing-system-create.ts
2770
- import { z as z111 } from "zod";
2826
+ import { z as z114 } from "zod";
2771
2827
  var DS_NAME_MIN_LENGTH = 2;
2772
2828
  var DS_NAME_MAX_LENGTH = 64;
2773
2829
  var DS_DESC_MIN_LENGTH = 2;
2774
2830
  var DS_DESC_MAX_LENGTH = 64;
2775
- var DesignSystemCreateInputMetadata = z111.object({
2776
- name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2777
- description: z111.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2831
+ var DesignSystemCreateInputMetadata = z114.object({
2832
+ name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2833
+ description: z114.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2778
2834
  });
2779
- var DesignSystemCreateInput = z111.object({
2835
+ var DesignSystemCreateInput = z114.object({
2780
2836
  meta: DesignSystemCreateInputMetadata,
2781
- workspaceId: z111.string(),
2782
- isPublic: z111.boolean().optional(),
2783
- basePrefixes: z111.array(z111.string()).optional(),
2784
- docUserSlug: z111.string().nullish().optional(),
2785
- source: z111.array(z111.string()).optional()
2837
+ workspaceId: z114.string(),
2838
+ isPublic: z114.boolean().optional(),
2839
+ basePrefixes: z114.array(z114.string()).optional(),
2840
+ docUserSlug: z114.string().nullish().optional(),
2841
+ source: z114.array(z114.string()).optional()
2786
2842
  });
2787
2843
 
2788
2844
  // src/dsm/desing-system-update.ts
2789
- import { z as z112 } from "zod";
2845
+ import { z as z115 } from "zod";
2790
2846
  var DS_NAME_MIN_LENGTH2 = 2;
2791
2847
  var DS_NAME_MAX_LENGTH2 = 64;
2792
2848
  var DS_DESC_MIN_LENGTH2 = 2;
2793
2849
  var DS_DESC_MAX_LENGTH2 = 64;
2794
- var DesignSystemUpdateInputMetadata = z112.object({
2795
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2796
- description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2850
+ var DesignSystemUpdateInputMetadata = z115.object({
2851
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2852
+ description: z115.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2797
2853
  });
2798
- var DesignSystemUpdateInput = z112.object({
2854
+ var DesignSystemUpdateInput = z115.object({
2799
2855
  meta: DesignSystemUpdateInputMetadata.optional(),
2800
- workspaceId: z112.string().optional(),
2801
- isPublic: z112.boolean().optional(),
2802
- basePrefixes: z112.array(z112.string()).optional(),
2803
- docUserSlug: z112.string().nullish().optional(),
2804
- source: z112.array(z112.string()).optional(),
2805
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2806
- description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2807
- docExporterId: z112.string().optional()
2856
+ workspaceId: z115.string().optional(),
2857
+ isPublic: z115.boolean().optional(),
2858
+ basePrefixes: z115.array(z115.string()).optional(),
2859
+ docUserSlug: z115.string().nullish().optional(),
2860
+ source: z115.array(z115.string()).optional(),
2861
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2862
+ description: z115.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2863
+ docExporterId: z115.string().optional()
2808
2864
  });
2809
2865
 
2810
2866
  // src/dsm/published-doc-page.ts
@@ -2816,54 +2872,68 @@ function tryParseShortPersistentId(url = "/") {
2816
2872
  }
2817
2873
 
2818
2874
  // src/dsm/published-doc.ts
2819
- import { z as z113 } from "zod";
2875
+ import { z as z116 } from "zod";
2820
2876
  var publishedDocEnvironments = ["Live", "Preview"];
2821
- var PublishedDocEnvironment = z113.enum(publishedDocEnvironments);
2822
- var PublishedDocsChecksums = z113.record(z113.string());
2823
- var PublishedDocRoutingVersion = z113.enum(["1", "2"]);
2824
- var PublishedDoc = z113.object({
2825
- id: z113.string(),
2826
- designSystemVersionId: z113.string(),
2827
- createdAt: z113.coerce.date(),
2828
- updatedAt: z113.coerce.date(),
2829
- lastPublishedAt: z113.coerce.date(),
2830
- isDefault: z113.boolean(),
2831
- isPublic: z113.boolean(),
2877
+ var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2878
+ var PublishedDocsChecksums = z116.record(z116.string());
2879
+ var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2880
+ var PublishedDoc = z116.object({
2881
+ id: z116.string(),
2882
+ designSystemVersionId: z116.string(),
2883
+ createdAt: z116.coerce.date(),
2884
+ updatedAt: z116.coerce.date(),
2885
+ lastPublishedAt: z116.coerce.date(),
2886
+ isDefault: z116.boolean(),
2887
+ isPublic: z116.boolean(),
2832
2888
  environment: PublishedDocEnvironment,
2833
2889
  checksums: PublishedDocsChecksums,
2834
- storagePath: z113.string(),
2835
- wasMigrated: z113.boolean(),
2890
+ storagePath: z116.string(),
2891
+ wasMigrated: z116.boolean(),
2836
2892
  routingVersion: PublishedDocRoutingVersion,
2837
- usesLocalizations: z113.boolean(),
2838
- wasPublishedWithLocalizations: z113.boolean()
2893
+ usesLocalizations: z116.boolean(),
2894
+ wasPublishedWithLocalizations: z116.boolean()
2895
+ });
2896
+
2897
+ // src/dsm/version.ts
2898
+ import { z as z117 } from "zod";
2899
+ var DesignSystemVersion = z117.object({
2900
+ id: z117.string(),
2901
+ version: z117.string(),
2902
+ createdAt: z117.date(),
2903
+ designSystemId: z117.string(),
2904
+ name: z117.string(),
2905
+ comment: z117.string(),
2906
+ isReadonly: z117.boolean(),
2907
+ changeLog: z117.string(),
2908
+ parentId: z117.string().optional()
2839
2909
  });
2840
2910
 
2841
2911
  // src/codegen/export-jobs.ts
2842
- import { z as z114 } from "zod";
2843
- var ExporterJobDestination = z114.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2844
- var ExporterJobStatus = z114.enum(["InProgress", "Success", "Failed", "Timeout"]);
2845
- var ExporterJobLogEntryType = z114.enum(["success", "info", "warning", "error", "user"]);
2846
- var ExporterJobLogEntry = z114.object({
2847
- id: z114.string().optional(),
2848
- time: z114.coerce.date(),
2912
+ import { z as z118 } from "zod";
2913
+ var ExporterJobDestination = z118.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2914
+ var ExporterJobStatus = z118.enum(["InProgress", "Success", "Failed", "Timeout"]);
2915
+ var ExporterJobLogEntryType = z118.enum(["success", "info", "warning", "error", "user"]);
2916
+ var ExporterJobLogEntry = z118.object({
2917
+ id: z118.string().optional(),
2918
+ time: z118.coerce.date(),
2849
2919
  type: ExporterJobLogEntryType,
2850
- message: z114.string()
2920
+ message: z118.string()
2851
2921
  });
2852
- var ExporterJobResultPullRequestDestination = z114.object({
2853
- pullRequestUrl: z114.string()
2922
+ var ExporterJobResultPullRequestDestination = z118.object({
2923
+ pullRequestUrl: z118.string()
2854
2924
  });
2855
- var ExporterJobResultS3Destination = z114.object({
2856
- bucket: z114.string(),
2857
- urlPrefix: z114.string().optional(),
2858
- path: z114.string(),
2859
- files: z114.array(z114.string())
2925
+ var ExporterJobResultS3Destination = z118.object({
2926
+ bucket: z118.string(),
2927
+ urlPrefix: z118.string().optional(),
2928
+ path: z118.string(),
2929
+ files: z118.array(z118.string())
2860
2930
  });
2861
- var ExporterJobResultDocsDestination = z114.object({
2862
- url: z114.string()
2931
+ var ExporterJobResultDocsDestination = z118.object({
2932
+ url: z118.string()
2863
2933
  });
2864
- var ExporterJobResult = z114.object({
2865
- error: z114.string().optional(),
2866
- logs: z114.array(ExporterJobLogEntry).optional(),
2934
+ var ExporterJobResult = z118.object({
2935
+ error: z118.string().optional(),
2936
+ logs: z118.array(ExporterJobLogEntry).optional(),
2867
2937
  s3: ExporterJobResultS3Destination.optional(),
2868
2938
  github: ExporterJobResultPullRequestDestination.optional(),
2869
2939
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2871,68 +2941,68 @@ var ExporterJobResult = z114.object({
2871
2941
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2872
2942
  sndocs: ExporterJobResultDocsDestination.optional()
2873
2943
  });
2874
- var ExporterDestinationSnDocs = z114.object({
2944
+ var ExporterDestinationSnDocs = z118.object({
2875
2945
  environment: PublishedDocEnvironment
2876
2946
  });
2877
- var ExporterDestinationS3 = z114.object({});
2878
- var ExporterDestinationGithub = z114.object({
2879
- connectionId: z114.string(),
2880
- url: z114.string(),
2881
- branch: z114.string(),
2882
- relativePath: z114.string(),
2947
+ var ExporterDestinationS3 = z118.object({});
2948
+ var ExporterDestinationGithub = z118.object({
2949
+ connectionId: z118.string(),
2950
+ url: z118.string(),
2951
+ branch: z118.string(),
2952
+ relativePath: z118.string(),
2883
2953
  // +
2884
- userId: z114.coerce.string()
2885
- });
2886
- var ExporterDestinationAzure = z114.object({
2887
- connectionId: z114.string(),
2888
- organizationId: z114.string(),
2889
- projectId: z114.string(),
2890
- repositoryId: z114.string(),
2891
- branch: z114.string(),
2892
- relativePath: z114.string(),
2954
+ userId: z118.coerce.string()
2955
+ });
2956
+ var ExporterDestinationAzure = z118.object({
2957
+ connectionId: z118.string(),
2958
+ organizationId: z118.string(),
2959
+ projectId: z118.string(),
2960
+ repositoryId: z118.string(),
2961
+ branch: z118.string(),
2962
+ relativePath: z118.string(),
2893
2963
  // +
2894
- userId: z114.coerce.string(),
2895
- url: z114.string()
2896
- });
2897
- var ExporterDestinationGitlab = z114.object({
2898
- connectionId: z114.string(),
2899
- projectId: z114.string(),
2900
- branch: z114.string(),
2901
- relativePath: z114.string(),
2964
+ userId: z118.coerce.string(),
2965
+ url: z118.string()
2966
+ });
2967
+ var ExporterDestinationGitlab = z118.object({
2968
+ connectionId: z118.string(),
2969
+ projectId: z118.string(),
2970
+ branch: z118.string(),
2971
+ relativePath: z118.string(),
2902
2972
  // +
2903
- userId: z114.coerce.string(),
2904
- url: z114.string()
2973
+ userId: z118.coerce.string(),
2974
+ url: z118.string()
2905
2975
  });
2906
2976
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2907
2977
  var BITBUCKET_MAX_LENGTH = 64;
2908
- var ExporterDestinationBitbucket = z114.object({
2909
- connectionId: z114.string(),
2910
- workspaceSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2911
- projectKey: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2912
- repoSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2913
- branch: z114.string(),
2914
- relativePath: z114.string(),
2978
+ var ExporterDestinationBitbucket = z118.object({
2979
+ connectionId: z118.string(),
2980
+ workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2981
+ projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2982
+ repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2983
+ branch: z118.string(),
2984
+ relativePath: z118.string(),
2915
2985
  // +
2916
- userId: z114.coerce.string(),
2917
- url: z114.string()
2918
- });
2919
- var ExporterJob = z114.object({
2920
- id: z114.coerce.string(),
2921
- createdAt: z114.coerce.date(),
2922
- finishedAt: z114.coerce.date().optional(),
2923
- designSystemId: z114.coerce.string(),
2924
- designSystemVersionId: z114.coerce.string(),
2925
- workspaceId: z114.coerce.string(),
2926
- scheduleId: z114.coerce.string().nullish(),
2927
- exporterId: z114.coerce.string(),
2928
- brandId: z114.coerce.string().optional(),
2929
- themeId: z114.coerce.string().optional(),
2930
- estimatedExecutionTime: z114.number().optional(),
2986
+ userId: z118.coerce.string(),
2987
+ url: z118.string()
2988
+ });
2989
+ var ExporterJob = z118.object({
2990
+ id: z118.coerce.string(),
2991
+ createdAt: z118.coerce.date(),
2992
+ finishedAt: z118.coerce.date().optional(),
2993
+ designSystemId: z118.coerce.string(),
2994
+ designSystemVersionId: z118.coerce.string(),
2995
+ workspaceId: z118.coerce.string(),
2996
+ scheduleId: z118.coerce.string().nullish(),
2997
+ exporterId: z118.coerce.string(),
2998
+ brandId: z118.coerce.string().optional(),
2999
+ themeId: z118.coerce.string().optional(),
3000
+ estimatedExecutionTime: z118.number().optional(),
2931
3001
  status: ExporterJobStatus,
2932
3002
  result: ExporterJobResult.optional(),
2933
- createdByUserId: z114.string().optional(),
3003
+ createdByUserId: z118.string().optional(),
2934
3004
  // CodegenDestinationsModel
2935
- webhookUrl: z114.string().optional(),
3005
+ webhookUrl: z118.string().optional(),
2936
3006
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2937
3007
  destinationS3: ExporterDestinationS3.optional(),
2938
3008
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2951,28 +3021,28 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2951
3021
  themeId: true,
2952
3022
  brandId: true
2953
3023
  }).extend({
2954
- destinations: z114.array(ExporterJobDestination),
3024
+ destinations: z118.array(ExporterJobDestination),
2955
3025
  docsEnvironment: PublishedDocEnvironment
2956
3026
  }).partial();
2957
3027
 
2958
3028
  // src/codegen/exporter-workspace-membership-role.ts
2959
- import { z as z115 } from "zod";
2960
- var ExporterWorkspaceMembershipRole = z115.enum(["Owner", "OwnerArchived", "User"]);
3029
+ import { z as z119 } from "zod";
3030
+ var ExporterWorkspaceMembershipRole = z119.enum(["Owner", "OwnerArchived", "User"]);
2961
3031
 
2962
3032
  // src/codegen/exporter-workspace-membership.ts
2963
- import { z as z116 } from "zod";
2964
- var ExporterWorkspaceMembership = z116.object({
2965
- id: z116.string(),
2966
- workspaceId: z116.string(),
2967
- exporterId: z116.string(),
3033
+ import { z as z120 } from "zod";
3034
+ var ExporterWorkspaceMembership = z120.object({
3035
+ id: z120.string(),
3036
+ workspaceId: z120.string(),
3037
+ exporterId: z120.string(),
2968
3038
  role: ExporterWorkspaceMembershipRole
2969
3039
  });
2970
3040
 
2971
3041
  // src/codegen/exporter.ts
2972
- import { z as z119 } from "zod";
3042
+ import { z as z123 } from "zod";
2973
3043
 
2974
3044
  // src/codegen/git-providers.ts
2975
- import { z as z117 } from "zod";
3045
+ import { z as z121 } from "zod";
2976
3046
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2977
3047
  GitProviderNames2["Azure"] = "azure";
2978
3048
  GitProviderNames2["Github"] = "github";
@@ -2980,11 +3050,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2980
3050
  GitProviderNames2["Bitbucket"] = "bitbucket";
2981
3051
  return GitProviderNames2;
2982
3052
  })(GitProviderNames || {});
2983
- var GitProvider = z117.nativeEnum(GitProviderNames);
3053
+ var GitProvider = z121.nativeEnum(GitProviderNames);
2984
3054
 
2985
3055
  // src/codegen/pulsar.ts
2986
- import { z as z118 } from "zod";
2987
- var PulsarPropertyType = z118.enum([
3056
+ import { z as z122 } from "zod";
3057
+ var PulsarPropertyType = z122.enum([
2988
3058
  "string",
2989
3059
  "number",
2990
3060
  "boolean",
@@ -2997,108 +3067,108 @@ var PulsarPropertyType = z118.enum([
2997
3067
  "tokenProperties",
2998
3068
  "tokenType"
2999
3069
  ]);
3000
- var PulsarBaseProperty = z118.object({
3001
- label: z118.string(),
3002
- key: z118.string(),
3003
- description: z118.string().nullish(),
3070
+ var PulsarBaseProperty = z122.object({
3071
+ label: z122.string(),
3072
+ key: z122.string(),
3073
+ description: z122.string().nullish(),
3004
3074
  type: PulsarPropertyType,
3005
- values: z118.array(z118.string()).nullish(),
3006
- default: z118.union([z118.string(), z118.boolean(), z118.number()]).nullish(),
3075
+ values: z122.array(z122.string()).nullish(),
3076
+ default: z122.union([z122.string(), z122.boolean(), z122.number()]).nullish(),
3007
3077
  // PulsarPropertyValueType //is optional?
3008
- inputType: z118.enum(["code", "plain"]).optional(),
3078
+ inputType: z122.enum(["code", "plain"]).optional(),
3009
3079
  //is optional?
3010
- isMultiline: z118.boolean().nullish()
3080
+ isMultiline: z122.boolean().nullish()
3011
3081
  });
3012
3082
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3013
- category: z118.string()
3083
+ category: z122.string()
3014
3084
  });
3015
- var PulsarContributionVariant = z118.object({
3016
- key: z118.string(),
3017
- name: z118.string(),
3018
- isDefault: nullishToOptional(z118.boolean()),
3019
- description: nullishToOptional(z118.string()),
3020
- thumbnailURL: nullishToOptional(z118.string())
3085
+ var PulsarContributionVariant = z122.object({
3086
+ key: z122.string(),
3087
+ name: z122.string(),
3088
+ isDefault: nullishToOptional(z122.boolean()),
3089
+ description: nullishToOptional(z122.string()),
3090
+ thumbnailURL: nullishToOptional(z122.string())
3021
3091
  });
3022
- var PulsarCustomBlock = z118.object({
3023
- title: nullishToOptional(z118.string()),
3024
- key: z118.string(),
3025
- category: nullishToOptional(z118.string()),
3026
- description: nullishToOptional(z118.string()),
3027
- iconURL: nullishToOptional(z118.string()),
3028
- mode: nullishToOptional(z118.enum(["array", "block"])),
3029
- properties: nullishToOptional(z118.array(PulsarBaseProperty)).transform((v) => v ?? [])
3092
+ var PulsarCustomBlock = z122.object({
3093
+ title: nullishToOptional(z122.string()),
3094
+ key: z122.string(),
3095
+ category: nullishToOptional(z122.string()),
3096
+ description: nullishToOptional(z122.string()),
3097
+ iconURL: nullishToOptional(z122.string()),
3098
+ mode: nullishToOptional(z122.enum(["array", "block"])),
3099
+ properties: nullishToOptional(z122.array(PulsarBaseProperty)).transform((v) => v ?? [])
3030
3100
  });
3031
3101
 
3032
3102
  // src/codegen/exporter.ts
3033
- var ExporterType = z119.enum(["code", "documentation"]);
3034
- var ExporterSource = z119.enum(["git", "upload"]);
3035
- var ExporterTag = z119.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3036
- var ExporterDetails = z119.object({
3037
- description: z119.string(),
3038
- version: z119.string(),
3039
- routingVersion: nullishToOptional(z119.string()),
3040
- author: nullishToOptional(z119.string()),
3041
- organization: nullishToOptional(z119.string()),
3042
- homepage: nullishToOptional(z119.string()),
3043
- readme: nullishToOptional(z119.string()),
3044
- tags: nullishToOptional(z119.array(ExporterTag)).default([]),
3045
- packageId: nullishToOptional(z119.string().max(255)),
3046
- iconURL: nullishToOptional(z119.string()),
3047
- configurationProperties: nullishToOptional(z119.array(PulsarContributionConfigurationProperty)).default([]),
3048
- customBlocks: nullishToOptional(z119.array(PulsarCustomBlock)).default([]),
3049
- blockVariants: nullishToOptional(z119.record(z119.string(), z119.array(PulsarContributionVariant))).default({}),
3050
- usesBrands: nullishToOptional(z119.boolean()).default(false),
3051
- usesThemes: nullishToOptional(z119.boolean()).default(false),
3103
+ var ExporterType = z123.enum(["code", "documentation"]);
3104
+ var ExporterSource = z123.enum(["git", "upload"]);
3105
+ var ExporterTag = z123.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3106
+ var ExporterDetails = z123.object({
3107
+ description: z123.string(),
3108
+ version: z123.string(),
3109
+ routingVersion: nullishToOptional(z123.string()),
3110
+ author: nullishToOptional(z123.string()),
3111
+ organization: nullishToOptional(z123.string()),
3112
+ homepage: nullishToOptional(z123.string()),
3113
+ readme: nullishToOptional(z123.string()),
3114
+ tags: nullishToOptional(z123.array(ExporterTag)).default([]),
3115
+ packageId: nullishToOptional(z123.string().max(255)),
3116
+ iconURL: nullishToOptional(z123.string()),
3117
+ configurationProperties: nullishToOptional(z123.array(PulsarContributionConfigurationProperty)).default([]),
3118
+ customBlocks: nullishToOptional(z123.array(PulsarCustomBlock)).default([]),
3119
+ blockVariants: nullishToOptional(z123.record(z123.string(), z123.array(PulsarContributionVariant))).default({}),
3120
+ usesBrands: nullishToOptional(z123.boolean()).default(false),
3121
+ usesThemes: nullishToOptional(z123.boolean()).default(false),
3052
3122
  source: ExporterSource,
3053
3123
  gitProvider: nullishToOptional(GitProvider),
3054
- gitUrl: nullishToOptional(z119.string()),
3055
- gitBranch: nullishToOptional(z119.string()),
3056
- gitDirectory: nullishToOptional(z119.string())
3057
- });
3058
- var Exporter = z119.object({
3059
- id: z119.string(),
3060
- createdAt: z119.coerce.date(),
3061
- name: z119.string(),
3062
- isPrivate: z119.boolean(),
3124
+ gitUrl: nullishToOptional(z123.string()),
3125
+ gitBranch: nullishToOptional(z123.string()),
3126
+ gitDirectory: nullishToOptional(z123.string())
3127
+ });
3128
+ var Exporter = z123.object({
3129
+ id: z123.string(),
3130
+ createdAt: z123.coerce.date(),
3131
+ name: z123.string(),
3132
+ isPrivate: z123.boolean(),
3063
3133
  details: ExporterDetails,
3064
3134
  exporterType: nullishToOptional(ExporterType).default("code"),
3065
- storagePath: nullishToOptional(z119.string()).default("")
3135
+ storagePath: nullishToOptional(z123.string()).default("")
3066
3136
  });
3067
3137
 
3068
3138
  // src/custom-domains/custom-domains.ts
3069
- import { z as z120 } from "zod";
3070
- var CustomDomain = z120.object({
3071
- id: z120.string(),
3072
- designSystemId: z120.string(),
3073
- state: z120.string(),
3074
- supernovaDomain: z120.string(),
3075
- customerDomain: z120.string().nullish(),
3076
- error: z120.string().nullish(),
3077
- errorCode: z120.string().nullish()
3139
+ import { z as z124 } from "zod";
3140
+ var CustomDomain = z124.object({
3141
+ id: z124.string(),
3142
+ designSystemId: z124.string(),
3143
+ state: z124.string(),
3144
+ supernovaDomain: z124.string(),
3145
+ customerDomain: z124.string().nullish(),
3146
+ error: z124.string().nullish(),
3147
+ errorCode: z124.string().nullish()
3078
3148
  });
3079
3149
 
3080
3150
  // src/docs-server/session.ts
3081
- import { z as z125 } from "zod";
3151
+ import { z as z129 } from "zod";
3082
3152
 
3083
3153
  // src/users/linked-integrations.ts
3084
- import { z as z121 } from "zod";
3085
- var IntegrationAuthType = z121.union([z121.literal("OAuth2"), z121.literal("PAT")]);
3086
- var ExternalServiceType = z121.union([
3087
- z121.literal("figma"),
3088
- z121.literal("github"),
3089
- z121.literal("azure"),
3090
- z121.literal("gitlab"),
3091
- z121.literal("bitbucket")
3154
+ import { z as z125 } from "zod";
3155
+ var IntegrationAuthType = z125.union([z125.literal("OAuth2"), z125.literal("PAT")]);
3156
+ var ExternalServiceType = z125.union([
3157
+ z125.literal("figma"),
3158
+ z125.literal("github"),
3159
+ z125.literal("azure"),
3160
+ z125.literal("gitlab"),
3161
+ z125.literal("bitbucket")
3092
3162
  ]);
3093
- var IntegrationUserInfo = z121.object({
3094
- id: z121.string(),
3095
- handle: z121.string().optional(),
3096
- avatarUrl: z121.string().optional(),
3097
- email: z121.string().optional(),
3163
+ var IntegrationUserInfo = z125.object({
3164
+ id: z125.string(),
3165
+ handle: z125.string().optional(),
3166
+ avatarUrl: z125.string().optional(),
3167
+ email: z125.string().optional(),
3098
3168
  authType: IntegrationAuthType.optional(),
3099
- customUrl: z121.string().optional()
3169
+ customUrl: z125.string().optional()
3100
3170
  });
3101
- var UserLinkedIntegrations = z121.object({
3171
+ var UserLinkedIntegrations = z125.object({
3102
3172
  figma: IntegrationUserInfo.optional(),
3103
3173
  github: IntegrationUserInfo.array().optional(),
3104
3174
  azure: IntegrationUserInfo.array().optional(),
@@ -3107,86 +3177,86 @@ var UserLinkedIntegrations = z121.object({
3107
3177
  });
3108
3178
 
3109
3179
  // src/users/user-identity.ts
3110
- import { z as z122 } from "zod";
3111
- var UserIdentity = z122.object({
3112
- id: z122.string(),
3113
- userId: z122.string()
3180
+ import { z as z126 } from "zod";
3181
+ var UserIdentity = z126.object({
3182
+ id: z126.string(),
3183
+ userId: z126.string()
3114
3184
  });
3115
3185
 
3116
3186
  // src/users/user-profile.ts
3117
- import { z as z123 } from "zod";
3118
- var UserOnboardingDepartment = z123.enum(["Design", "Engineering", "Brand", "Other"]);
3119
- var UserOnboardingJobLevel = z123.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3120
- var UserOnboarding = z123.object({
3121
- companyName: z123.string().optional(),
3122
- numberOfPeopleInOrg: z123.string().optional(),
3123
- numberOfPeopleInDesignTeam: z123.string().optional(),
3187
+ import { z as z127 } from "zod";
3188
+ var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Brand", "Other"]);
3189
+ var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3190
+ var UserOnboarding = z127.object({
3191
+ companyName: z127.string().optional(),
3192
+ numberOfPeopleInOrg: z127.string().optional(),
3193
+ numberOfPeopleInDesignTeam: z127.string().optional(),
3124
3194
  department: UserOnboardingDepartment.optional(),
3125
- jobTitle: z123.string().optional(),
3126
- phase: z123.string().optional(),
3195
+ jobTitle: z127.string().optional(),
3196
+ phase: z127.string().optional(),
3127
3197
  jobLevel: UserOnboardingJobLevel.optional()
3128
3198
  });
3129
- var UserProfile = z123.object({
3130
- name: z123.string(),
3131
- avatar: z123.string().optional(),
3132
- nickname: z123.string().optional(),
3199
+ var UserProfile = z127.object({
3200
+ name: z127.string(),
3201
+ avatar: z127.string().optional(),
3202
+ nickname: z127.string().optional(),
3133
3203
  onboarding: UserOnboarding.optional()
3134
3204
  });
3135
3205
 
3136
3206
  // src/users/user.ts
3137
- import { z as z124 } from "zod";
3138
- var User = z124.object({
3139
- id: z124.string(),
3140
- email: z124.string(),
3141
- emailVerified: z124.boolean(),
3142
- createdAt: z124.coerce.date(),
3143
- trialExpiresAt: z124.coerce.date().optional(),
3207
+ import { z as z128 } from "zod";
3208
+ var User = z128.object({
3209
+ id: z128.string(),
3210
+ email: z128.string(),
3211
+ emailVerified: z128.boolean(),
3212
+ createdAt: z128.coerce.date(),
3213
+ trialExpiresAt: z128.coerce.date().optional(),
3144
3214
  profile: UserProfile,
3145
3215
  linkedIntegrations: UserLinkedIntegrations.optional(),
3146
- loggedOutAt: z124.coerce.date().optional(),
3147
- isProtected: z124.boolean()
3216
+ loggedOutAt: z128.coerce.date().optional(),
3217
+ isProtected: z128.boolean()
3148
3218
  });
3149
3219
 
3150
3220
  // src/docs-server/session.ts
3151
- var NpmProxyToken = z125.object({
3152
- access: z125.string(),
3153
- expiresAt: z125.number()
3221
+ var NpmProxyToken = z129.object({
3222
+ access: z129.string(),
3223
+ expiresAt: z129.number()
3154
3224
  });
3155
- var SessionData = z125.object({
3156
- returnToUrl: z125.string().optional(),
3225
+ var SessionData = z129.object({
3226
+ returnToUrl: z129.string().optional(),
3157
3227
  npmProxyToken: NpmProxyToken.optional()
3158
3228
  });
3159
- var Session = z125.object({
3160
- id: z125.string(),
3161
- expiresAt: z125.coerce.date(),
3162
- userId: z125.string().nullable(),
3229
+ var Session = z129.object({
3230
+ id: z129.string(),
3231
+ expiresAt: z129.coerce.date(),
3232
+ userId: z129.string().nullable(),
3163
3233
  data: SessionData
3164
3234
  });
3165
- var AuthTokens = z125.object({
3166
- access: z125.string(),
3167
- refresh: z125.string()
3235
+ var AuthTokens = z129.object({
3236
+ access: z129.string(),
3237
+ refresh: z129.string()
3168
3238
  });
3169
- var UserSession = z125.object({
3239
+ var UserSession = z129.object({
3170
3240
  session: Session,
3171
3241
  user: User.nullable()
3172
3242
  });
3173
3243
 
3174
3244
  // src/feature-flags/feature-flags.ts
3175
- import { z as z126 } from "zod";
3176
- var FlaggedFeature = z126.enum(["FigmaImporterV2"]);
3177
- var FeatureFlagMap = z126.record(FlaggedFeature, z126.boolean());
3178
- var FeatureFlag = z126.object({
3179
- id: z126.string(),
3245
+ import { z as z130 } from "zod";
3246
+ var FlaggedFeature = z130.enum(["FigmaImporterV2"]);
3247
+ var FeatureFlagMap = z130.record(FlaggedFeature, z130.boolean());
3248
+ var FeatureFlag = z130.object({
3249
+ id: z130.string(),
3180
3250
  feature: FlaggedFeature,
3181
- createdAt: z126.coerce.date(),
3182
- enabled: z126.boolean()
3251
+ createdAt: z130.coerce.date(),
3252
+ enabled: z130.boolean()
3183
3253
  });
3184
3254
 
3185
3255
  // src/integrations/external-oauth-request.ts
3186
- import { z as z128 } from "zod";
3256
+ import { z as z132 } from "zod";
3187
3257
 
3188
3258
  // src/integrations/oauth-providers.ts
3189
- import { z as z127 } from "zod";
3259
+ import { z as z131 } from "zod";
3190
3260
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3191
3261
  OAuthProviderNames2["Figma"] = "figma";
3192
3262
  OAuthProviderNames2["Azure"] = "azure";
@@ -3195,74 +3265,74 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3195
3265
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3196
3266
  return OAuthProviderNames2;
3197
3267
  })(OAuthProviderNames || {});
3198
- var OAuthProviderSchema = z127.nativeEnum(OAuthProviderNames);
3268
+ var OAuthProviderSchema = z131.nativeEnum(OAuthProviderNames);
3199
3269
  var OAuthProvider = OAuthProviderSchema.enum;
3200
3270
 
3201
3271
  // src/integrations/external-oauth-request.ts
3202
- var ExternalOAuthRequest = z128.object({
3203
- id: z128.string(),
3272
+ var ExternalOAuthRequest = z132.object({
3273
+ id: z132.string(),
3204
3274
  provider: OAuthProviderSchema,
3205
- userId: z128.string(),
3206
- state: z128.string(),
3207
- createdAt: z128.coerce.date()
3275
+ userId: z132.string(),
3276
+ state: z132.string(),
3277
+ createdAt: z132.coerce.date()
3208
3278
  });
3209
3279
 
3210
3280
  // src/integrations/oauth-token.ts
3211
- import { z as z129 } from "zod";
3212
- var IntegrationTokenSchema = z129.object({
3213
- id: z129.string(),
3281
+ import { z as z133 } from "zod";
3282
+ var IntegrationTokenSchema = z133.object({
3283
+ id: z133.string(),
3214
3284
  provider: OAuthProviderSchema,
3215
- scope: z129.string(),
3216
- userId: z129.string(),
3217
- accessToken: z129.string(),
3218
- refreshToken: z129.string(),
3219
- expiresAt: z129.coerce.date(),
3220
- externalUserId: z129.string().nullish()
3285
+ scope: z133.string(),
3286
+ userId: z133.string(),
3287
+ accessToken: z133.string(),
3288
+ refreshToken: z133.string(),
3289
+ expiresAt: z133.coerce.date(),
3290
+ externalUserId: z133.string().nullish()
3221
3291
  });
3222
3292
 
3223
3293
  // src/npm/npm-package.ts
3224
- import { z as z130 } from "zod";
3225
- var AnyRecord = z130.record(z130.any());
3294
+ import { z as z134 } from "zod";
3295
+ var AnyRecord = z134.record(z134.any());
3226
3296
  var NpmPackageVersionDist = AnyRecord.and(
3227
- z130.object({
3228
- tarball: z130.string()
3297
+ z134.object({
3298
+ tarball: z134.string()
3229
3299
  })
3230
3300
  );
3231
3301
  var NpmPackageVersion = AnyRecord.and(
3232
- z130.object({
3302
+ z134.object({
3233
3303
  dist: NpmPackageVersionDist
3234
3304
  })
3235
3305
  );
3236
3306
  var NpmPackage = AnyRecord.and(
3237
- z130.object({
3238
- _id: z130.string(),
3239
- name: z130.string(),
3307
+ z134.object({
3308
+ _id: z134.string(),
3309
+ name: z134.string(),
3240
3310
  // e.g. "latest": "1.2.3"
3241
- "dist-tags": z130.record(z130.string(), z130.string()),
3311
+ "dist-tags": z134.record(z134.string(), z134.string()),
3242
3312
  // "1.2.3": {...}
3243
- versions: z130.record(NpmPackageVersion)
3313
+ versions: z134.record(NpmPackageVersion)
3244
3314
  })
3245
3315
  );
3246
3316
 
3247
3317
  // src/npm/npm-proxy-token-payload.ts
3248
- import { z as z131 } from "zod";
3249
- var NpmProxyTokenPayload = z131.object({
3250
- npmProxyRegistryConfigId: z131.string()
3318
+ import { z as z135 } from "zod";
3319
+ var NpmProxyTokenPayload = z135.object({
3320
+ npmProxyRegistryConfigId: z135.string()
3251
3321
  });
3252
3322
 
3253
3323
  // src/tokens/personal-access-token.ts
3254
- import { z as z132 } from "zod";
3255
- var PersonalAccessToken = z132.object({
3256
- id: z132.string(),
3257
- userId: z132.string(),
3258
- name: z132.string(),
3259
- token: z132.string(),
3260
- createdAt: z132.coerce.date(),
3261
- hidden: z132.boolean(),
3262
- workspaceId: z132.string().optional(),
3324
+ import { z as z136 } from "zod";
3325
+ var PersonalAccessToken = z136.object({
3326
+ id: z136.string(),
3327
+ userId: z136.string(),
3328
+ name: z136.string(),
3329
+ token: z136.string(),
3330
+ createdAt: z136.coerce.date(),
3331
+ hidden: z136.boolean(),
3332
+ workspaceId: z136.string().optional(),
3263
3333
  workspaceRole: WorkspaceRoleSchema.optional(),
3264
- expireAt: z132.coerce.date().optional(),
3265
- scope: z132.string().optional()
3334
+ expireAt: z136.coerce.date().optional(),
3335
+ scope: z136.string().optional()
3266
3336
  });
3267
3337
 
3268
3338
  // src/utils/errors.ts
@@ -3394,26 +3464,26 @@ async function sleep(ms) {
3394
3464
  }
3395
3465
 
3396
3466
  // src/utils/content-loader-instruction.ts
3397
- import { z as z133 } from "zod";
3398
- var ContentLoadInstruction = z133.object({
3399
- from: z133.string(),
3400
- to: z133.string(),
3401
- authorizationHeaderKvsId: z133.string().optional(),
3402
- timeout: z133.number().optional()
3403
- });
3404
- var ContentLoaderPayload = z133.object({
3405
- type: z133.literal("Single"),
3467
+ import { z as z137 } from "zod";
3468
+ var ContentLoadInstruction = z137.object({
3469
+ from: z137.string(),
3470
+ to: z137.string(),
3471
+ authorizationHeaderKvsId: z137.string().optional(),
3472
+ timeout: z137.number().optional()
3473
+ });
3474
+ var ContentLoaderPayload = z137.object({
3475
+ type: z137.literal("Single"),
3406
3476
  instruction: ContentLoadInstruction
3407
3477
  }).or(
3408
- z133.object({
3409
- type: z133.literal("Multiple"),
3410
- loadingChunkSize: z133.number().optional(),
3411
- instructions: z133.array(ContentLoadInstruction)
3478
+ z137.object({
3479
+ type: z137.literal("Multiple"),
3480
+ loadingChunkSize: z137.number().optional(),
3481
+ instructions: z137.array(ContentLoadInstruction)
3412
3482
  })
3413
3483
  ).or(
3414
- z133.object({
3415
- type: z133.literal("S3"),
3416
- location: z133.string()
3484
+ z137.object({
3485
+ type: z137.literal("S3"),
3486
+ location: z137.string()
3417
3487
  })
3418
3488
  );
3419
3489
 
@@ -4079,6 +4149,7 @@ export {
4079
4149
  BorderWidthTokenData,
4080
4150
  BorderWidthUnit,
4081
4151
  BorderWidthValue,
4152
+ Brand,
4082
4153
  BrandedElementGroup,
4083
4154
  CardSchema,
4084
4155
  ChangedImportedFigmaSourceData,
@@ -4129,6 +4200,7 @@ export {
4129
4200
  DesignSystemElementExportProps,
4130
4201
  DesignSystemSwitcher,
4131
4202
  DesignSystemUpdateInput,
4203
+ DesignSystemVersion,
4132
4204
  DesignSystemVersionRoom,
4133
4205
  DesignSystemVersionRoomInitialState,
4134
4206
  DesignSystemVersionRoomUpdate,
@@ -4179,7 +4251,16 @@ export {
4179
4251
  ElementPropertyLinkType,
4180
4252
  ElementPropertyTargetType,
4181
4253
  ElementPropertyType,
4254
+ ElementPropertyTypeSchema,
4182
4255
  ElementPropertyValue,
4256
+ ElementView,
4257
+ ElementViewBaseColumnType,
4258
+ ElementViewBasePropertyColumn,
4259
+ ElementViewColumn,
4260
+ ElementViewColumnSharedAttributes,
4261
+ ElementViewColumnType,
4262
+ ElementViewPropertyDefinitionColumn,
4263
+ ElementViewThemeColumn,
4183
4264
  Entity,
4184
4265
  Exporter,
4185
4266
  ExporterDestinationAzure,