@supernova-studio/model 0.35.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()
@@ -1060,8 +1061,8 @@ var PageBlockItemSingleSelectValue = z35.object({
1060
1061
  var PageBlockItemStorybookValue = z35.object({
1061
1062
  caption: z35.string().optional(),
1062
1063
  height: z35.number().optional(),
1063
- showAddons: z35.boolean().optional(),
1064
- value: z35.string()
1064
+ embedUrl: z35.string().optional(),
1065
+ value: z35.string().optional()
1065
1066
  });
1066
1067
  var PageBlockItemTextValue = z35.object({
1067
1068
  value: z35.string()
@@ -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
@@ -1824,6 +1825,72 @@ var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1824
1825
  overrides: z76.array(ThemeOverride)
1825
1826
  });
1826
1827
 
1828
+ // src/dsm/elements/utils.ts
1829
+ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
1830
+ traversePageBlockItemsV2(pageItems, (block, item) => {
1831
+ Object.entries(item.props).forEach(([propKey, value]) => {
1832
+ const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
1833
+ if (!property)
1834
+ return;
1835
+ item.props[propKey] = fn(block, item, property, value);
1836
+ });
1837
+ });
1838
+ }
1839
+ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
1840
+ traversePageBlockItemsV2(pageItems, (block, item) => {
1841
+ Object.entries(item.props).forEach(([propKey, value]) => {
1842
+ const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
1843
+ if (!property)
1844
+ return;
1845
+ fn(block, item, property, value);
1846
+ });
1847
+ });
1848
+ }
1849
+ function traversePageBlockItemsV2(pageItems, fn) {
1850
+ traversePageItemsV2(pageItems, (block) => {
1851
+ block.data.items.forEach((item) => {
1852
+ fn(block, item);
1853
+ });
1854
+ });
1855
+ }
1856
+ function traversePageItemsV2(pageItems, fn) {
1857
+ for (const item of pageItems) {
1858
+ switch (item.type) {
1859
+ case "Block":
1860
+ fn(item);
1861
+ break;
1862
+ case "Section":
1863
+ item.items.forEach((i) => {
1864
+ i.columns.forEach((c) => {
1865
+ traversePageItemsV2(c.blocks, fn);
1866
+ });
1867
+ });
1868
+ break;
1869
+ }
1870
+ }
1871
+ }
1872
+ var PageBlockDefinitionsMap = class {
1873
+ constructor(definitions) {
1874
+ this.definitionsMap = /* @__PURE__ */ new Map();
1875
+ this.propertiesMap = /* @__PURE__ */ new Map();
1876
+ definitions.forEach((d) => {
1877
+ this.definitionsMap.set(d.id, d);
1878
+ d.item.properties.forEach((p) => {
1879
+ this.propertiesMap.set(this.propertyKey(d.id, p.id), p);
1880
+ });
1881
+ });
1882
+ }
1883
+ getDefinition(id) {
1884
+ return this.definitionsMap.get(id);
1885
+ }
1886
+ getDefinitionProperty(defId, propId) {
1887
+ return this.propertiesMap.get(this.propertyKey(defId, propId));
1888
+ }
1889
+ propertyKey(defId, propId) {
1890
+ return `${defId}.${propId}`;
1891
+ }
1892
+ };
1893
+
1827
1894
  // src/dsm/import/support/figma-files.ts
1828
1895
  import { z as z77 } from "zod";
1829
1896
  var FigmaFileDownloadScope = z77.object({
@@ -2496,127 +2563,182 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2496
2563
  var RoomTypeSchema = z100.nativeEnum(RoomTypeEnum);
2497
2564
  var RoomType = RoomTypeSchema.enum;
2498
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
+
2499
2621
  // src/dsm/design-system.ts
2500
- import { z as z110 } from "zod";
2622
+ import { z as z113 } from "zod";
2501
2623
 
2502
2624
  // src/workspace/npm-registry-settings.ts
2503
- import { z as z101 } from "zod";
2504
- var NpmRegistryAuthType = z101.enum(["Basic", "Bearer", "None", "Custom"]);
2505
- var NpmRegistryType = z101.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2506
- var NpmRegistryBasicAuthConfig = z101.object({
2507
- authType: z101.literal(NpmRegistryAuthType.Enum.Basic),
2508
- username: z101.string(),
2509
- password: z101.string()
2510
- });
2511
- var NpmRegistryBearerAuthConfig = z101.object({
2512
- authType: z101.literal(NpmRegistryAuthType.Enum.Bearer),
2513
- accessToken: z101.string()
2514
- });
2515
- var NpmRegistryNoAuthConfig = z101.object({
2516
- authType: z101.literal(NpmRegistryAuthType.Enum.None)
2517
- });
2518
- var NpmRegistrCustomAuthConfig = z101.object({
2519
- authType: z101.literal(NpmRegistryAuthType.Enum.Custom),
2520
- authHeaderName: z101.string(),
2521
- authHeaderValue: z101.string()
2522
- });
2523
- 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", [
2524
2646
  NpmRegistryBasicAuthConfig,
2525
2647
  NpmRegistryBearerAuthConfig,
2526
2648
  NpmRegistryNoAuthConfig,
2527
2649
  NpmRegistrCustomAuthConfig
2528
2650
  ]);
2529
- var NpmRegistryConfigBase = z101.object({
2651
+ var NpmRegistryConfigBase = z104.object({
2530
2652
  registryType: NpmRegistryType,
2531
- enabledScopes: z101.array(z101.string()),
2532
- customRegistryUrl: z101.string().optional(),
2533
- bypassProxy: z101.boolean().default(false),
2534
- npmProxyRegistryConfigId: z101.string().optional(),
2535
- 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()
2536
2658
  });
2537
2659
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2538
2660
 
2539
2661
  // src/workspace/sso-provider.ts
2540
- import { z as z102 } from "zod";
2541
- var SsoProvider = z102.object({
2542
- providerId: z102.string(),
2543
- defaultAutoInviteValue: z102.boolean(),
2544
- autoInviteDomains: z102.record(z102.string(), z102.boolean()),
2545
- skipDocsSupernovaLogin: z102.boolean(),
2546
- areInvitesDisabled: z102.boolean(),
2547
- isTestMode: z102.boolean(),
2548
- emailDomains: z102.array(z102.string()),
2549
- 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()
2550
2672
  });
2551
2673
 
2552
2674
  // src/workspace/user-invite.ts
2553
- import { z as z104 } from "zod";
2675
+ import { z as z107 } from "zod";
2554
2676
 
2555
2677
  // src/workspace/workspace-role.ts
2556
- import { z as z103 } from "zod";
2557
- 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"]);
2558
2680
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2559
2681
 
2560
2682
  // src/workspace/user-invite.ts
2561
2683
  var MAX_MEMBERS_COUNT = 100;
2562
- var UserInvite = z104.object({
2563
- email: z104.string().email().trim().transform((value) => value.toLowerCase()),
2684
+ var UserInvite = z107.object({
2685
+ email: z107.string().email().trim().transform((value) => value.toLowerCase()),
2564
2686
  role: WorkspaceRoleSchema
2565
2687
  });
2566
- var UserInvites = z104.array(UserInvite).max(MAX_MEMBERS_COUNT);
2688
+ var UserInvites = z107.array(UserInvite).max(MAX_MEMBERS_COUNT);
2567
2689
 
2568
2690
  // src/workspace/workspace-context.ts
2569
- import { z as z106 } from "zod";
2691
+ import { z as z109 } from "zod";
2570
2692
 
2571
2693
  // src/workspace/workspace.ts
2572
- import { z as z105 } from "zod";
2694
+ import { z as z108 } from "zod";
2573
2695
  import IPCIDR from "ip-cidr";
2574
2696
  var isValidCIDR = (value) => {
2575
2697
  return IPCIDR.isValidAddress(value);
2576
2698
  };
2577
- var WorkspaceIpWhitelistEntry = z105.object({
2578
- isEnabled: z105.boolean(),
2579
- name: z105.string(),
2580
- range: z105.string().refine(isValidCIDR, {
2699
+ var WorkspaceIpWhitelistEntry = z108.object({
2700
+ isEnabled: z108.boolean(),
2701
+ name: z108.string(),
2702
+ range: z108.string().refine(isValidCIDR, {
2581
2703
  message: "Invalid IP CIDR"
2582
2704
  })
2583
2705
  });
2584
- var WorkspaceIpSettings = z105.object({
2585
- isEnabledForCloud: z105.boolean(),
2586
- isEnabledForDocs: z105.boolean(),
2587
- entries: z105.array(WorkspaceIpWhitelistEntry)
2706
+ var WorkspaceIpSettings = z108.object({
2707
+ isEnabledForCloud: z108.boolean(),
2708
+ isEnabledForDocs: z108.boolean(),
2709
+ entries: z108.array(WorkspaceIpWhitelistEntry)
2588
2710
  });
2589
- var WorkspaceProfile = z105.object({
2590
- name: z105.string(),
2591
- handle: z105.string(),
2592
- color: z105.string(),
2593
- 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()),
2594
2716
  billingDetails: nullishToOptional(BillingDetails)
2595
2717
  });
2596
- var Workspace = z105.object({
2597
- id: z105.string(),
2718
+ var Workspace = z108.object({
2719
+ id: z108.string(),
2598
2720
  profile: WorkspaceProfile,
2599
2721
  subscription: Subscription,
2600
2722
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2601
2723
  sso: nullishToOptional(SsoProvider),
2602
2724
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2603
- designSystems: z105.array(DesignSystem).nullish()
2725
+ designSystems: z108.array(DesignSystem).nullish()
2604
2726
  });
2605
- var WorkspaceWithDesignSystems = z105.object({
2727
+ var WorkspaceWithDesignSystems = z108.object({
2606
2728
  workspace: Workspace,
2607
- designSystems: z105.array(DesignSystem)
2729
+ designSystems: z108.array(DesignSystem)
2608
2730
  });
2609
2731
 
2610
2732
  // src/workspace/workspace-context.ts
2611
- var WorkspaceContext = z106.object({
2612
- workspaceId: z106.string(),
2733
+ var WorkspaceContext = z109.object({
2734
+ workspaceId: z109.string(),
2613
2735
  product: ProductCodeSchema,
2614
2736
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2615
- publicDesignSystem: z106.boolean().optional()
2737
+ publicDesignSystem: z109.boolean().optional()
2616
2738
  });
2617
2739
 
2618
2740
  // src/workspace/workspace-create.ts
2619
- import { z as z107 } from "zod";
2741
+ import { z as z110 } from "zod";
2620
2742
 
2621
2743
  // src/utils/validation.ts
2622
2744
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2626,18 +2748,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2626
2748
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2627
2749
  var HANDLE_MIN_LENGTH = 2;
2628
2750
  var HANDLE_MAX_LENGTH = 64;
2629
- var CreateWorkspaceInput = z107.object({
2630
- 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(),
2631
2753
  product: ProductCodeSchema,
2632
- priceId: z107.string(),
2633
- billingEmail: z107.string().email().optional(),
2634
- 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(),
2635
2757
  invites: UserInvites.optional(),
2636
- promoCode: z107.string().optional(),
2758
+ promoCode: z110.string().optional(),
2637
2759
  status: InternalStatusSchema.optional(),
2638
2760
  planInterval: BillingIntervalSchema.optional(),
2639
- seats: z107.number().optional(),
2640
- seatLimit: z107.number().optional(),
2761
+ seats: z110.number().optional(),
2762
+ seatLimit: z110.number().optional(),
2641
2763
  card: CardSchema.optional(),
2642
2764
  sso: SsoProvider.optional(),
2643
2765
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2645,100 +2767,100 @@ var CreateWorkspaceInput = z107.object({
2645
2767
  });
2646
2768
 
2647
2769
  // src/workspace/workspace-invitations.ts
2648
- import { z as z108 } from "zod";
2649
- var WorkspaceInvitation = z108.object({
2650
- id: z108.string(),
2651
- email: z108.string().email(),
2652
- createdAt: z108.coerce.date(),
2653
- resentAt: z108.coerce.date().nullish(),
2654
- role: z108.nativeEnum(WorkspaceRole),
2655
- workspaceId: z108.string(),
2656
- 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()
2657
2779
  });
2658
2780
 
2659
2781
  // src/workspace/workspace-membership.ts
2660
- import { z as z109 } from "zod";
2661
- var WorkspaceMembership = z109.object({
2662
- id: z109.string(),
2663
- userId: z109.string(),
2664
- workspaceId: z109.string(),
2665
- workspaceRole: z109.nativeEnum(WorkspaceRole)
2666
- });
2667
- var UpdateMembershipRolesInput = z109.object({
2668
- members: z109.array(
2669
- z109.object({
2670
- userId: z109.string(),
2671
- 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)
2672
2794
  })
2673
2795
  )
2674
2796
  });
2675
2797
 
2676
2798
  // src/dsm/design-system.ts
2677
- var DesignSystemSwitcher = z110.object({
2678
- isEnabled: z110.boolean(),
2679
- designSystemIds: z110.array(z110.string())
2680
- });
2681
- var DesignSystem = z110.object({
2682
- id: z110.string(),
2683
- workspaceId: z110.string(),
2684
- name: z110.string(),
2685
- description: z110.string(),
2686
- docExporterId: nullishToOptional(z110.string()),
2687
- docSlug: z110.string(),
2688
- docUserSlug: nullishToOptional(z110.string()),
2689
- docSlugDeprecated: z110.string(),
2690
- isPublic: z110.boolean(),
2691
- isMultibrand: z110.boolean(),
2692
- docViewUrl: nullishToOptional(z110.string()),
2693
- 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()),
2694
2816
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2695
- createdAt: z110.coerce.date(),
2696
- updatedAt: z110.coerce.date()
2817
+ createdAt: z113.coerce.date(),
2818
+ updatedAt: z113.coerce.date()
2697
2819
  });
2698
- var DesignSystemWithWorkspace = z110.object({
2820
+ var DesignSystemWithWorkspace = z113.object({
2699
2821
  designSystem: DesignSystem,
2700
2822
  workspace: Workspace
2701
2823
  });
2702
2824
 
2703
2825
  // src/dsm/desing-system-create.ts
2704
- import { z as z111 } from "zod";
2826
+ import { z as z114 } from "zod";
2705
2827
  var DS_NAME_MIN_LENGTH = 2;
2706
2828
  var DS_NAME_MAX_LENGTH = 64;
2707
2829
  var DS_DESC_MIN_LENGTH = 2;
2708
2830
  var DS_DESC_MAX_LENGTH = 64;
2709
- var DesignSystemCreateInputMetadata = z111.object({
2710
- name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2711
- 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()
2712
2834
  });
2713
- var DesignSystemCreateInput = z111.object({
2835
+ var DesignSystemCreateInput = z114.object({
2714
2836
  meta: DesignSystemCreateInputMetadata,
2715
- workspaceId: z111.string(),
2716
- isPublic: z111.boolean().optional(),
2717
- basePrefixes: z111.array(z111.string()).optional(),
2718
- docUserSlug: z111.string().nullish().optional(),
2719
- 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()
2720
2842
  });
2721
2843
 
2722
2844
  // src/dsm/desing-system-update.ts
2723
- import { z as z112 } from "zod";
2845
+ import { z as z115 } from "zod";
2724
2846
  var DS_NAME_MIN_LENGTH2 = 2;
2725
2847
  var DS_NAME_MAX_LENGTH2 = 64;
2726
2848
  var DS_DESC_MIN_LENGTH2 = 2;
2727
2849
  var DS_DESC_MAX_LENGTH2 = 64;
2728
- var DesignSystemUpdateInputMetadata = z112.object({
2729
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2730
- 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()
2731
2853
  });
2732
- var DesignSystemUpdateInput = z112.object({
2854
+ var DesignSystemUpdateInput = z115.object({
2733
2855
  meta: DesignSystemUpdateInputMetadata.optional(),
2734
- workspaceId: z112.string().optional(),
2735
- isPublic: z112.boolean().optional(),
2736
- basePrefixes: z112.array(z112.string()).optional(),
2737
- docUserSlug: z112.string().nullish().optional(),
2738
- source: z112.array(z112.string()).optional(),
2739
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2740
- description: z112.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2741
- 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()
2742
2864
  });
2743
2865
 
2744
2866
  // src/dsm/published-doc-page.ts
@@ -2750,54 +2872,68 @@ function tryParseShortPersistentId(url = "/") {
2750
2872
  }
2751
2873
 
2752
2874
  // src/dsm/published-doc.ts
2753
- import { z as z113 } from "zod";
2875
+ import { z as z116 } from "zod";
2754
2876
  var publishedDocEnvironments = ["Live", "Preview"];
2755
- var PublishedDocEnvironment = z113.enum(publishedDocEnvironments);
2756
- var PublishedDocsChecksums = z113.record(z113.string());
2757
- var PublishedDocRoutingVersion = z113.enum(["1", "2"]);
2758
- var PublishedDoc = z113.object({
2759
- id: z113.string(),
2760
- designSystemVersionId: z113.string(),
2761
- createdAt: z113.coerce.date(),
2762
- updatedAt: z113.coerce.date(),
2763
- lastPublishedAt: z113.coerce.date(),
2764
- isDefault: z113.boolean(),
2765
- 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(),
2766
2888
  environment: PublishedDocEnvironment,
2767
2889
  checksums: PublishedDocsChecksums,
2768
- storagePath: z113.string(),
2769
- wasMigrated: z113.boolean(),
2890
+ storagePath: z116.string(),
2891
+ wasMigrated: z116.boolean(),
2770
2892
  routingVersion: PublishedDocRoutingVersion,
2771
- usesLocalizations: z113.boolean(),
2772
- 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()
2773
2909
  });
2774
2910
 
2775
2911
  // src/codegen/export-jobs.ts
2776
- import { z as z114 } from "zod";
2777
- var ExporterJobDestination = z114.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2778
- var ExporterJobStatus = z114.enum(["InProgress", "Success", "Failed", "Timeout"]);
2779
- var ExporterJobLogEntryType = z114.enum(["success", "info", "warning", "error", "user"]);
2780
- var ExporterJobLogEntry = z114.object({
2781
- id: z114.string().optional(),
2782
- 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(),
2783
2919
  type: ExporterJobLogEntryType,
2784
- message: z114.string()
2920
+ message: z118.string()
2785
2921
  });
2786
- var ExporterJobResultPullRequestDestination = z114.object({
2787
- pullRequestUrl: z114.string()
2922
+ var ExporterJobResultPullRequestDestination = z118.object({
2923
+ pullRequestUrl: z118.string()
2788
2924
  });
2789
- var ExporterJobResultS3Destination = z114.object({
2790
- bucket: z114.string(),
2791
- urlPrefix: z114.string().optional(),
2792
- path: z114.string(),
2793
- 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())
2794
2930
  });
2795
- var ExporterJobResultDocsDestination = z114.object({
2796
- url: z114.string()
2931
+ var ExporterJobResultDocsDestination = z118.object({
2932
+ url: z118.string()
2797
2933
  });
2798
- var ExporterJobResult = z114.object({
2799
- error: z114.string().optional(),
2800
- logs: z114.array(ExporterJobLogEntry).optional(),
2934
+ var ExporterJobResult = z118.object({
2935
+ error: z118.string().optional(),
2936
+ logs: z118.array(ExporterJobLogEntry).optional(),
2801
2937
  s3: ExporterJobResultS3Destination.optional(),
2802
2938
  github: ExporterJobResultPullRequestDestination.optional(),
2803
2939
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2805,68 +2941,68 @@ var ExporterJobResult = z114.object({
2805
2941
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2806
2942
  sndocs: ExporterJobResultDocsDestination.optional()
2807
2943
  });
2808
- var ExporterDestinationSnDocs = z114.object({
2944
+ var ExporterDestinationSnDocs = z118.object({
2809
2945
  environment: PublishedDocEnvironment
2810
2946
  });
2811
- var ExporterDestinationS3 = z114.object({});
2812
- var ExporterDestinationGithub = z114.object({
2813
- connectionId: z114.string(),
2814
- url: z114.string(),
2815
- branch: z114.string(),
2816
- 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(),
2817
2953
  // +
2818
- userId: z114.coerce.string()
2819
- });
2820
- var ExporterDestinationAzure = z114.object({
2821
- connectionId: z114.string(),
2822
- organizationId: z114.string(),
2823
- projectId: z114.string(),
2824
- repositoryId: z114.string(),
2825
- branch: z114.string(),
2826
- 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(),
2827
2963
  // +
2828
- userId: z114.coerce.string(),
2829
- url: z114.string()
2830
- });
2831
- var ExporterDestinationGitlab = z114.object({
2832
- connectionId: z114.string(),
2833
- projectId: z114.string(),
2834
- branch: z114.string(),
2835
- 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(),
2836
2972
  // +
2837
- userId: z114.coerce.string(),
2838
- url: z114.string()
2973
+ userId: z118.coerce.string(),
2974
+ url: z118.string()
2839
2975
  });
2840
2976
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2841
2977
  var BITBUCKET_MAX_LENGTH = 64;
2842
- var ExporterDestinationBitbucket = z114.object({
2843
- connectionId: z114.string(),
2844
- workspaceSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2845
- projectKey: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2846
- repoSlug: z114.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2847
- branch: z114.string(),
2848
- 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(),
2849
2985
  // +
2850
- userId: z114.coerce.string(),
2851
- url: z114.string()
2852
- });
2853
- var ExporterJob = z114.object({
2854
- id: z114.coerce.string(),
2855
- createdAt: z114.coerce.date(),
2856
- finishedAt: z114.coerce.date().optional(),
2857
- designSystemId: z114.coerce.string(),
2858
- designSystemVersionId: z114.coerce.string(),
2859
- workspaceId: z114.coerce.string(),
2860
- scheduleId: z114.coerce.string().nullish(),
2861
- exporterId: z114.coerce.string(),
2862
- brandId: z114.coerce.string().optional(),
2863
- themeId: z114.coerce.string().optional(),
2864
- 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(),
2865
3001
  status: ExporterJobStatus,
2866
3002
  result: ExporterJobResult.optional(),
2867
- createdByUserId: z114.string().optional(),
3003
+ createdByUserId: z118.string().optional(),
2868
3004
  // CodegenDestinationsModel
2869
- webhookUrl: z114.string().optional(),
3005
+ webhookUrl: z118.string().optional(),
2870
3006
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2871
3007
  destinationS3: ExporterDestinationS3.optional(),
2872
3008
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2885,28 +3021,28 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2885
3021
  themeId: true,
2886
3022
  brandId: true
2887
3023
  }).extend({
2888
- destinations: z114.array(ExporterJobDestination),
3024
+ destinations: z118.array(ExporterJobDestination),
2889
3025
  docsEnvironment: PublishedDocEnvironment
2890
3026
  }).partial();
2891
3027
 
2892
3028
  // src/codegen/exporter-workspace-membership-role.ts
2893
- import { z as z115 } from "zod";
2894
- var ExporterWorkspaceMembershipRole = z115.enum(["Owner", "OwnerArchived", "User"]);
3029
+ import { z as z119 } from "zod";
3030
+ var ExporterWorkspaceMembershipRole = z119.enum(["Owner", "OwnerArchived", "User"]);
2895
3031
 
2896
3032
  // src/codegen/exporter-workspace-membership.ts
2897
- import { z as z116 } from "zod";
2898
- var ExporterWorkspaceMembership = z116.object({
2899
- id: z116.string(),
2900
- workspaceId: z116.string(),
2901
- 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(),
2902
3038
  role: ExporterWorkspaceMembershipRole
2903
3039
  });
2904
3040
 
2905
3041
  // src/codegen/exporter.ts
2906
- import { z as z119 } from "zod";
3042
+ import { z as z123 } from "zod";
2907
3043
 
2908
3044
  // src/codegen/git-providers.ts
2909
- import { z as z117 } from "zod";
3045
+ import { z as z121 } from "zod";
2910
3046
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2911
3047
  GitProviderNames2["Azure"] = "azure";
2912
3048
  GitProviderNames2["Github"] = "github";
@@ -2914,11 +3050,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2914
3050
  GitProviderNames2["Bitbucket"] = "bitbucket";
2915
3051
  return GitProviderNames2;
2916
3052
  })(GitProviderNames || {});
2917
- var GitProvider = z117.nativeEnum(GitProviderNames);
3053
+ var GitProvider = z121.nativeEnum(GitProviderNames);
2918
3054
 
2919
3055
  // src/codegen/pulsar.ts
2920
- import { z as z118 } from "zod";
2921
- var PulsarPropertyType = z118.enum([
3056
+ import { z as z122 } from "zod";
3057
+ var PulsarPropertyType = z122.enum([
2922
3058
  "string",
2923
3059
  "number",
2924
3060
  "boolean",
@@ -2931,108 +3067,108 @@ var PulsarPropertyType = z118.enum([
2931
3067
  "tokenProperties",
2932
3068
  "tokenType"
2933
3069
  ]);
2934
- var PulsarBaseProperty = z118.object({
2935
- label: z118.string(),
2936
- key: z118.string(),
2937
- description: z118.string().nullish(),
3070
+ var PulsarBaseProperty = z122.object({
3071
+ label: z122.string(),
3072
+ key: z122.string(),
3073
+ description: z122.string().nullish(),
2938
3074
  type: PulsarPropertyType,
2939
- values: z118.array(z118.string()).nullish(),
2940
- 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(),
2941
3077
  // PulsarPropertyValueType //is optional?
2942
- inputType: z118.enum(["code", "plain"]).optional(),
3078
+ inputType: z122.enum(["code", "plain"]).optional(),
2943
3079
  //is optional?
2944
- isMultiline: z118.boolean().nullish()
3080
+ isMultiline: z122.boolean().nullish()
2945
3081
  });
2946
3082
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2947
- category: z118.string()
3083
+ category: z122.string()
2948
3084
  });
2949
- var PulsarContributionVariant = z118.object({
2950
- key: z118.string(),
2951
- name: z118.string(),
2952
- isDefault: nullishToOptional(z118.boolean()),
2953
- description: nullishToOptional(z118.string()),
2954
- 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())
2955
3091
  });
2956
- var PulsarCustomBlock = z118.object({
2957
- title: nullishToOptional(z118.string()),
2958
- key: z118.string(),
2959
- category: nullishToOptional(z118.string()),
2960
- description: nullishToOptional(z118.string()),
2961
- iconURL: nullishToOptional(z118.string()),
2962
- mode: nullishToOptional(z118.enum(["array", "block"])),
2963
- 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 ?? [])
2964
3100
  });
2965
3101
 
2966
3102
  // src/codegen/exporter.ts
2967
- var ExporterType = z119.enum(["code", "documentation"]);
2968
- var ExporterSource = z119.enum(["git", "upload"]);
2969
- var ExporterTag = z119.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2970
- var ExporterDetails = z119.object({
2971
- description: z119.string(),
2972
- version: z119.string(),
2973
- routingVersion: nullishToOptional(z119.string()),
2974
- author: nullishToOptional(z119.string()),
2975
- organization: nullishToOptional(z119.string()),
2976
- homepage: nullishToOptional(z119.string()),
2977
- readme: nullishToOptional(z119.string()),
2978
- tags: nullishToOptional(z119.array(ExporterTag)).default([]),
2979
- packageId: nullishToOptional(z119.string().max(255)),
2980
- iconURL: nullishToOptional(z119.string()),
2981
- configurationProperties: nullishToOptional(z119.array(PulsarContributionConfigurationProperty)).default([]),
2982
- customBlocks: nullishToOptional(z119.array(PulsarCustomBlock)).default([]),
2983
- blockVariants: nullishToOptional(z119.record(z119.string(), z119.array(PulsarContributionVariant))).default({}),
2984
- usesBrands: nullishToOptional(z119.boolean()).default(false),
2985
- 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),
2986
3122
  source: ExporterSource,
2987
3123
  gitProvider: nullishToOptional(GitProvider),
2988
- gitUrl: nullishToOptional(z119.string()),
2989
- gitBranch: nullishToOptional(z119.string()),
2990
- gitDirectory: nullishToOptional(z119.string())
2991
- });
2992
- var Exporter = z119.object({
2993
- id: z119.string(),
2994
- createdAt: z119.coerce.date(),
2995
- name: z119.string(),
2996
- 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(),
2997
3133
  details: ExporterDetails,
2998
3134
  exporterType: nullishToOptional(ExporterType).default("code"),
2999
- storagePath: nullishToOptional(z119.string()).default("")
3135
+ storagePath: nullishToOptional(z123.string()).default("")
3000
3136
  });
3001
3137
 
3002
3138
  // src/custom-domains/custom-domains.ts
3003
- import { z as z120 } from "zod";
3004
- var CustomDomain = z120.object({
3005
- id: z120.string(),
3006
- designSystemId: z120.string(),
3007
- state: z120.string(),
3008
- supernovaDomain: z120.string(),
3009
- customerDomain: z120.string().nullish(),
3010
- error: z120.string().nullish(),
3011
- 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()
3012
3148
  });
3013
3149
 
3014
3150
  // src/docs-server/session.ts
3015
- import { z as z125 } from "zod";
3151
+ import { z as z129 } from "zod";
3016
3152
 
3017
3153
  // src/users/linked-integrations.ts
3018
- import { z as z121 } from "zod";
3019
- var IntegrationAuthType = z121.union([z121.literal("OAuth2"), z121.literal("PAT")]);
3020
- var ExternalServiceType = z121.union([
3021
- z121.literal("figma"),
3022
- z121.literal("github"),
3023
- z121.literal("azure"),
3024
- z121.literal("gitlab"),
3025
- 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")
3026
3162
  ]);
3027
- var IntegrationUserInfo = z121.object({
3028
- id: z121.string(),
3029
- handle: z121.string().optional(),
3030
- avatarUrl: z121.string().optional(),
3031
- 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(),
3032
3168
  authType: IntegrationAuthType.optional(),
3033
- customUrl: z121.string().optional()
3169
+ customUrl: z125.string().optional()
3034
3170
  });
3035
- var UserLinkedIntegrations = z121.object({
3171
+ var UserLinkedIntegrations = z125.object({
3036
3172
  figma: IntegrationUserInfo.optional(),
3037
3173
  github: IntegrationUserInfo.array().optional(),
3038
3174
  azure: IntegrationUserInfo.array().optional(),
@@ -3041,86 +3177,86 @@ var UserLinkedIntegrations = z121.object({
3041
3177
  });
3042
3178
 
3043
3179
  // src/users/user-identity.ts
3044
- import { z as z122 } from "zod";
3045
- var UserIdentity = z122.object({
3046
- id: z122.string(),
3047
- userId: z122.string()
3180
+ import { z as z126 } from "zod";
3181
+ var UserIdentity = z126.object({
3182
+ id: z126.string(),
3183
+ userId: z126.string()
3048
3184
  });
3049
3185
 
3050
3186
  // src/users/user-profile.ts
3051
- import { z as z123 } from "zod";
3052
- var UserOnboardingDepartment = z123.enum(["Design", "Engineering", "Brand", "Other"]);
3053
- var UserOnboardingJobLevel = z123.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3054
- var UserOnboarding = z123.object({
3055
- companyName: z123.string().optional(),
3056
- numberOfPeopleInOrg: z123.string().optional(),
3057
- 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(),
3058
3194
  department: UserOnboardingDepartment.optional(),
3059
- jobTitle: z123.string().optional(),
3060
- phase: z123.string().optional(),
3195
+ jobTitle: z127.string().optional(),
3196
+ phase: z127.string().optional(),
3061
3197
  jobLevel: UserOnboardingJobLevel.optional()
3062
3198
  });
3063
- var UserProfile = z123.object({
3064
- name: z123.string(),
3065
- avatar: z123.string().optional(),
3066
- nickname: z123.string().optional(),
3199
+ var UserProfile = z127.object({
3200
+ name: z127.string(),
3201
+ avatar: z127.string().optional(),
3202
+ nickname: z127.string().optional(),
3067
3203
  onboarding: UserOnboarding.optional()
3068
3204
  });
3069
3205
 
3070
3206
  // src/users/user.ts
3071
- import { z as z124 } from "zod";
3072
- var User = z124.object({
3073
- id: z124.string(),
3074
- email: z124.string(),
3075
- emailVerified: z124.boolean(),
3076
- createdAt: z124.coerce.date(),
3077
- 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(),
3078
3214
  profile: UserProfile,
3079
3215
  linkedIntegrations: UserLinkedIntegrations.optional(),
3080
- loggedOutAt: z124.coerce.date().optional(),
3081
- isProtected: z124.boolean()
3216
+ loggedOutAt: z128.coerce.date().optional(),
3217
+ isProtected: z128.boolean()
3082
3218
  });
3083
3219
 
3084
3220
  // src/docs-server/session.ts
3085
- var NpmProxyToken = z125.object({
3086
- access: z125.string(),
3087
- expiresAt: z125.number()
3221
+ var NpmProxyToken = z129.object({
3222
+ access: z129.string(),
3223
+ expiresAt: z129.number()
3088
3224
  });
3089
- var SessionData = z125.object({
3090
- returnToUrl: z125.string().optional(),
3225
+ var SessionData = z129.object({
3226
+ returnToUrl: z129.string().optional(),
3091
3227
  npmProxyToken: NpmProxyToken.optional()
3092
3228
  });
3093
- var Session = z125.object({
3094
- id: z125.string(),
3095
- expiresAt: z125.coerce.date(),
3096
- userId: z125.string().nullable(),
3229
+ var Session = z129.object({
3230
+ id: z129.string(),
3231
+ expiresAt: z129.coerce.date(),
3232
+ userId: z129.string().nullable(),
3097
3233
  data: SessionData
3098
3234
  });
3099
- var AuthTokens = z125.object({
3100
- access: z125.string(),
3101
- refresh: z125.string()
3235
+ var AuthTokens = z129.object({
3236
+ access: z129.string(),
3237
+ refresh: z129.string()
3102
3238
  });
3103
- var UserSession = z125.object({
3239
+ var UserSession = z129.object({
3104
3240
  session: Session,
3105
3241
  user: User.nullable()
3106
3242
  });
3107
3243
 
3108
3244
  // src/feature-flags/feature-flags.ts
3109
- import { z as z126 } from "zod";
3110
- var FlaggedFeature = z126.enum(["FigmaImporterV2"]);
3111
- var FeatureFlagMap = z126.record(FlaggedFeature, z126.boolean());
3112
- var FeatureFlag = z126.object({
3113
- 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(),
3114
3250
  feature: FlaggedFeature,
3115
- createdAt: z126.coerce.date(),
3116
- enabled: z126.boolean()
3251
+ createdAt: z130.coerce.date(),
3252
+ enabled: z130.boolean()
3117
3253
  });
3118
3254
 
3119
3255
  // src/integrations/external-oauth-request.ts
3120
- import { z as z128 } from "zod";
3256
+ import { z as z132 } from "zod";
3121
3257
 
3122
3258
  // src/integrations/oauth-providers.ts
3123
- import { z as z127 } from "zod";
3259
+ import { z as z131 } from "zod";
3124
3260
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3125
3261
  OAuthProviderNames2["Figma"] = "figma";
3126
3262
  OAuthProviderNames2["Azure"] = "azure";
@@ -3129,74 +3265,74 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3129
3265
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3130
3266
  return OAuthProviderNames2;
3131
3267
  })(OAuthProviderNames || {});
3132
- var OAuthProviderSchema = z127.nativeEnum(OAuthProviderNames);
3268
+ var OAuthProviderSchema = z131.nativeEnum(OAuthProviderNames);
3133
3269
  var OAuthProvider = OAuthProviderSchema.enum;
3134
3270
 
3135
3271
  // src/integrations/external-oauth-request.ts
3136
- var ExternalOAuthRequest = z128.object({
3137
- id: z128.string(),
3272
+ var ExternalOAuthRequest = z132.object({
3273
+ id: z132.string(),
3138
3274
  provider: OAuthProviderSchema,
3139
- userId: z128.string(),
3140
- state: z128.string(),
3141
- createdAt: z128.coerce.date()
3275
+ userId: z132.string(),
3276
+ state: z132.string(),
3277
+ createdAt: z132.coerce.date()
3142
3278
  });
3143
3279
 
3144
3280
  // src/integrations/oauth-token.ts
3145
- import { z as z129 } from "zod";
3146
- var IntegrationTokenSchema = z129.object({
3147
- id: z129.string(),
3281
+ import { z as z133 } from "zod";
3282
+ var IntegrationTokenSchema = z133.object({
3283
+ id: z133.string(),
3148
3284
  provider: OAuthProviderSchema,
3149
- scope: z129.string(),
3150
- userId: z129.string(),
3151
- accessToken: z129.string(),
3152
- refreshToken: z129.string(),
3153
- expiresAt: z129.coerce.date(),
3154
- 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()
3155
3291
  });
3156
3292
 
3157
3293
  // src/npm/npm-package.ts
3158
- import { z as z130 } from "zod";
3159
- var AnyRecord = z130.record(z130.any());
3294
+ import { z as z134 } from "zod";
3295
+ var AnyRecord = z134.record(z134.any());
3160
3296
  var NpmPackageVersionDist = AnyRecord.and(
3161
- z130.object({
3162
- tarball: z130.string()
3297
+ z134.object({
3298
+ tarball: z134.string()
3163
3299
  })
3164
3300
  );
3165
3301
  var NpmPackageVersion = AnyRecord.and(
3166
- z130.object({
3302
+ z134.object({
3167
3303
  dist: NpmPackageVersionDist
3168
3304
  })
3169
3305
  );
3170
3306
  var NpmPackage = AnyRecord.and(
3171
- z130.object({
3172
- _id: z130.string(),
3173
- name: z130.string(),
3307
+ z134.object({
3308
+ _id: z134.string(),
3309
+ name: z134.string(),
3174
3310
  // e.g. "latest": "1.2.3"
3175
- "dist-tags": z130.record(z130.string(), z130.string()),
3311
+ "dist-tags": z134.record(z134.string(), z134.string()),
3176
3312
  // "1.2.3": {...}
3177
- versions: z130.record(NpmPackageVersion)
3313
+ versions: z134.record(NpmPackageVersion)
3178
3314
  })
3179
3315
  );
3180
3316
 
3181
3317
  // src/npm/npm-proxy-token-payload.ts
3182
- import { z as z131 } from "zod";
3183
- var NpmProxyTokenPayload = z131.object({
3184
- npmProxyRegistryConfigId: z131.string()
3318
+ import { z as z135 } from "zod";
3319
+ var NpmProxyTokenPayload = z135.object({
3320
+ npmProxyRegistryConfigId: z135.string()
3185
3321
  });
3186
3322
 
3187
3323
  // src/tokens/personal-access-token.ts
3188
- import { z as z132 } from "zod";
3189
- var PersonalAccessToken = z132.object({
3190
- id: z132.string(),
3191
- userId: z132.string(),
3192
- name: z132.string(),
3193
- token: z132.string(),
3194
- createdAt: z132.coerce.date(),
3195
- hidden: z132.boolean(),
3196
- 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(),
3197
3333
  workspaceRole: WorkspaceRoleSchema.optional(),
3198
- expireAt: z132.coerce.date().optional(),
3199
- scope: z132.string().optional()
3334
+ expireAt: z136.coerce.date().optional(),
3335
+ scope: z136.string().optional()
3200
3336
  });
3201
3337
 
3202
3338
  // src/utils/errors.ts
@@ -3328,26 +3464,26 @@ async function sleep(ms) {
3328
3464
  }
3329
3465
 
3330
3466
  // src/utils/content-loader-instruction.ts
3331
- import { z as z133 } from "zod";
3332
- var ContentLoadInstruction = z133.object({
3333
- from: z133.string(),
3334
- to: z133.string(),
3335
- authorizationHeaderKvsId: z133.string().optional(),
3336
- timeout: z133.number().optional()
3337
- });
3338
- var ContentLoaderPayload = z133.object({
3339
- 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"),
3340
3476
  instruction: ContentLoadInstruction
3341
3477
  }).or(
3342
- z133.object({
3343
- type: z133.literal("Multiple"),
3344
- loadingChunkSize: z133.number().optional(),
3345
- instructions: z133.array(ContentLoadInstruction)
3478
+ z137.object({
3479
+ type: z137.literal("Multiple"),
3480
+ loadingChunkSize: z137.number().optional(),
3481
+ instructions: z137.array(ContentLoadInstruction)
3346
3482
  })
3347
3483
  ).or(
3348
- z133.object({
3349
- type: z133.literal("S3"),
3350
- location: z133.string()
3484
+ z137.object({
3485
+ type: z137.literal("S3"),
3486
+ location: z137.string()
3351
3487
  })
3352
3488
  );
3353
3489
 
@@ -4013,6 +4149,7 @@ export {
4013
4149
  BorderWidthTokenData,
4014
4150
  BorderWidthUnit,
4015
4151
  BorderWidthValue,
4152
+ Brand,
4016
4153
  BrandedElementGroup,
4017
4154
  CardSchema,
4018
4155
  ChangedImportedFigmaSourceData,
@@ -4063,6 +4200,7 @@ export {
4063
4200
  DesignSystemElementExportProps,
4064
4201
  DesignSystemSwitcher,
4065
4202
  DesignSystemUpdateInput,
4203
+ DesignSystemVersion,
4066
4204
  DesignSystemVersionRoom,
4067
4205
  DesignSystemVersionRoomInitialState,
4068
4206
  DesignSystemVersionRoomUpdate,
@@ -4113,7 +4251,16 @@ export {
4113
4251
  ElementPropertyLinkType,
4114
4252
  ElementPropertyTargetType,
4115
4253
  ElementPropertyType,
4254
+ ElementPropertyTypeSchema,
4116
4255
  ElementPropertyValue,
4256
+ ElementView,
4257
+ ElementViewBaseColumnType,
4258
+ ElementViewBasePropertyColumn,
4259
+ ElementViewColumn,
4260
+ ElementViewColumnSharedAttributes,
4261
+ ElementViewColumnType,
4262
+ ElementViewPropertyDefinitionColumn,
4263
+ ElementViewThemeColumn,
4117
4264
  Entity,
4118
4265
  Exporter,
4119
4266
  ExporterDestinationAzure,
@@ -4281,6 +4428,7 @@ export {
4281
4428
  PageBlockDefinitionTextPropertyStyle,
4282
4429
  PageBlockDefinitionUntypedPropertyOptions,
4283
4430
  PageBlockDefinitionVariant,
4431
+ PageBlockDefinitionsMap,
4284
4432
  PageBlockEditorModelV2,
4285
4433
  PageBlockFigmaFrameProperties,
4286
4434
  PageBlockFigmaNodeEntityMeta,
@@ -4489,6 +4637,7 @@ export {
4489
4637
  isSlugReserved,
4490
4638
  isTokenType,
4491
4639
  mapByUnique,
4640
+ mapPageBlockItemValuesV2,
4492
4641
  nonNullFilter,
4493
4642
  nonNullishFilter,
4494
4643
  nullishToOptional,
@@ -4500,7 +4649,10 @@ export {
4500
4649
  slugify,
4501
4650
  tokenAliasOrValue,
4502
4651
  tokenElementTypes,
4652
+ traversePageBlockItemValuesV2,
4653
+ traversePageBlockItemsV2,
4503
4654
  traversePageBlocksV1,
4655
+ traversePageItemsV2,
4504
4656
  traverseStructure,
4505
4657
  trimLeadingSlash,
4506
4658
  trimTrailingSlash,