@supernova-studio/model 0.54.2 → 0.54.4

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
@@ -286,7 +286,7 @@ var CustomDomain = z14.object({
286
286
  });
287
287
 
288
288
  // src/data-dumps/code-integration-dump.ts
289
- import { z as z127 } from "zod";
289
+ import { z as z128 } from "zod";
290
290
 
291
291
  // src/export/exporter.ts
292
292
  import { z as z17 } from "zod";
@@ -389,10 +389,10 @@ var Exporter = z17.object({
389
389
  });
390
390
 
391
391
  // src/export/pipeline.ts
392
- import { z as z126 } from "zod";
392
+ import { z as z127 } from "zod";
393
393
 
394
394
  // src/export/export-destinations.ts
395
- import { z as z125 } from "zod";
395
+ import { z as z126 } from "zod";
396
396
 
397
397
  // src/dsm/assets/asset-dynamo-record.ts
398
398
  import { z as z18 } from "zod";
@@ -457,7 +457,7 @@ function isImportedAsset(asset) {
457
457
  }
458
458
 
459
459
  // src/dsm/components/asset-rendering.ts
460
- import { z as z98 } from "zod";
460
+ import { z as z99 } from "zod";
461
461
 
462
462
  // src/dsm/import/support/figma-files.ts
463
463
  import { z as z22 } from "zod";
@@ -475,10 +475,10 @@ var FigmaFileAccessData = z22.object({
475
475
  });
476
476
 
477
477
  // src/dsm/import/support/import-context.ts
478
- import { z as z89 } from "zod";
478
+ import { z as z90 } from "zod";
479
479
 
480
480
  // src/dsm/data-sources/data-source.ts
481
- import { z as z87 } from "zod";
481
+ import { z as z88 } from "zod";
482
482
 
483
483
  // src/dsm/import/warning.ts
484
484
  import { z as z23 } from "zod";
@@ -509,7 +509,7 @@ var ImportWarning = z23.object({
509
509
  });
510
510
 
511
511
  // src/dsm/data-sources/import-summary.ts
512
- import { z as z86 } from "zod";
512
+ import { z as z87 } from "zod";
513
513
 
514
514
  // src/dsm/elements/data/base.ts
515
515
  import { z as z24 } from "zod";
@@ -598,27 +598,36 @@ import { z as z33 } from "zod";
598
598
  // src/dsm/elements/component-properties.ts
599
599
  import { z as z32 } from "zod";
600
600
  var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
601
- var FigmaComponentBooleanProperty = z32.object({
601
+ var FigmaComponentPropertyOrigin = z32.object({
602
+ id: z32.string()
603
+ });
604
+ var FigmaComponentPropertyBase = z32.object({
605
+ id: z32.string(),
606
+ name: z32.string()
607
+ });
608
+ var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
602
609
  type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
603
610
  defaultValue: z32.boolean()
604
611
  });
605
- var FigmaComponentInstanceSwapProperty = z32.object({
612
+ var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
606
613
  type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
607
614
  defaultValue: z32.string()
608
615
  });
609
- var FigmaComponentVariantProperty = z32.object({
616
+ var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
610
617
  type: z32.literal(FigmaComponentPropertyType.enum.Variant),
611
618
  defaultValue: z32.string(),
612
619
  options: z32.array(z32.string())
613
620
  });
614
- var FigmaComponentTextProperty = z32.object({
621
+ var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
615
622
  type: z32.literal(FigmaComponentPropertyType.enum.Text),
623
+ id: z32.string(),
616
624
  defaultValue: z32.string()
617
625
  });
618
626
  var FigmaComponentProperty = z32.discriminatedUnion("type", [
619
627
  FigmaComponentBooleanProperty,
620
628
  FigmaComponentInstanceSwapProperty,
621
- FigmaComponentTextProperty
629
+ FigmaComponentTextProperty,
630
+ FigmaComponentVariantProperty
622
631
  ]);
623
632
  var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
624
633
 
@@ -2771,82 +2780,87 @@ import { z as z60 } from "zod";
2771
2780
  var FontWeightValue = z60.string();
2772
2781
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
2773
2782
 
2774
- // src/dsm/elements/data/gradient.ts
2783
+ // src/dsm/elements/data/font.ts
2775
2784
  import { z as z61 } from "zod";
2776
- var GradientType = z61.enum(["Linear", "Radial", "Angular"]);
2777
- var GradientStop = z61.object({
2778
- position: z61.number(),
2785
+ var FontValue = z61.unknown();
2786
+ var FontTokenData = tokenAliasOrValue(FontValue);
2787
+
2788
+ // src/dsm/elements/data/gradient.ts
2789
+ import { z as z62 } from "zod";
2790
+ var GradientType = z62.enum(["Linear", "Radial", "Angular"]);
2791
+ var GradientStop = z62.object({
2792
+ position: z62.number(),
2779
2793
  color: ColorTokenData
2780
2794
  });
2781
- var GradientLayerValue = z61.object({
2795
+ var GradientLayerValue = z62.object({
2782
2796
  from: Point2D,
2783
2797
  to: Point2D,
2784
2798
  type: GradientType,
2785
- aspectRatio: nullishToOptional(z61.number()),
2799
+ aspectRatio: nullishToOptional(z62.number()),
2786
2800
  // z.number(),
2787
- stops: z61.array(GradientStop).min(2)
2801
+ stops: z62.array(GradientStop).min(2)
2788
2802
  });
2789
2803
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
2790
- var GradientTokenValue = z61.array(GradientLayerData);
2804
+ var GradientTokenValue = z62.array(GradientLayerData);
2791
2805
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
2792
2806
 
2793
2807
  // src/dsm/elements/data/group.ts
2794
- import { z as z62 } from "zod";
2795
- var DocumentationGroupBehavior = z62.enum(["Group", "Tabs"]);
2796
- var ElementGroupDataV1 = z62.object({
2808
+ import { z as z63 } from "zod";
2809
+ var DocumentationGroupBehavior = z63.enum(["Group", "Tabs"]);
2810
+ var ElementGroupDataV1 = z63.object({
2797
2811
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
2798
2812
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
2799
2813
  });
2800
- var ElementGroupDataV2 = z62.object({
2814
+ var ElementGroupDataV2 = z63.object({
2801
2815
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
2802
2816
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2803
2817
  });
2804
2818
 
2805
2819
  // src/dsm/elements/data/letter-spacing.ts
2806
- import { z as z63 } from "zod";
2807
- var LetterSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
2808
- var LetterSpacingValue = z63.object({
2820
+ import { z as z64 } from "zod";
2821
+ var LetterSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
2822
+ var LetterSpacingValue = z64.object({
2809
2823
  unit: LetterSpacingUnit,
2810
- measure: z63.number()
2824
+ measure: z64.number()
2811
2825
  });
2812
2826
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
2813
2827
 
2814
2828
  // src/dsm/elements/data/line-height.ts
2815
- import { z as z64 } from "zod";
2816
- var LineHeightUnit = z64.enum(["Pixels", "Rem", "Percent", "Raw"]);
2817
- var LineHeightValue = z64.object({
2829
+ import { z as z65 } from "zod";
2830
+ var LineHeightUnit = z65.enum(["Pixels", "Rem", "Percent", "Raw"]);
2831
+ var LineHeightValue = z65.object({
2818
2832
  unit: LineHeightUnit,
2819
- measure: z64.number()
2833
+ measure: z65.number()
2820
2834
  });
2821
2835
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
2822
2836
 
2823
2837
  // src/dsm/elements/data/paragraph-indent.ts
2824
- import { z as z65 } from "zod";
2825
- var ParagraphIndentUnit = z65.enum(["Pixels", "Rem", "Percent"]);
2826
- var ParagraphIndentValue = z65.object({
2838
+ import { z as z66 } from "zod";
2839
+ var ParagraphIndentUnit = z66.enum(["Pixels", "Rem", "Percent"]);
2840
+ var ParagraphIndentValue = z66.object({
2827
2841
  unit: ParagraphIndentUnit,
2828
- measure: z65.number()
2842
+ measure: z66.number()
2829
2843
  });
2830
2844
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
2831
2845
 
2832
2846
  // src/dsm/elements/data/paragraph-spacing.ts
2833
- import { z as z66 } from "zod";
2834
- var ParagraphSpacingUnit = z66.enum(["Pixels", "Rem", "Percent"]);
2835
- var ParagraphSpacingValue = z66.object({
2847
+ import { z as z67 } from "zod";
2848
+ var ParagraphSpacingUnit = z67.enum(["Pixels", "Rem", "Percent"]);
2849
+ var ParagraphSpacingValue = z67.object({
2836
2850
  unit: ParagraphSpacingUnit,
2837
- measure: z66.number()
2851
+ measure: z67.number()
2838
2852
  });
2839
2853
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
2840
2854
 
2841
2855
  // src/dsm/elements/data/product-copy.ts
2842
- import { z as z67 } from "zod";
2843
- var ProductCopyValue = z67.string();
2856
+ import { z as z68 } from "zod";
2857
+ var ProductCopyValue = z68.string();
2844
2858
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
2845
2859
 
2846
2860
  // src/dsm/elements/data/safe-id.ts
2847
- import { z as z68 } from "zod";
2861
+ import { z as z69 } from "zod";
2848
2862
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
2849
- var SafeIdSchema = z68.string().refine(
2863
+ var SafeIdSchema = z69.string().refine(
2850
2864
  (value) => {
2851
2865
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
2852
2866
  },
@@ -2856,58 +2870,58 @@ var SafeIdSchema = z68.string().refine(
2856
2870
  );
2857
2871
 
2858
2872
  // src/dsm/elements/data/shadow.ts
2859
- import { z as z69 } from "zod";
2860
- var ShadowType = z69.enum(["Drop", "Inner"]);
2861
- var ShadowLayerValue = z69.object({
2873
+ import { z as z70 } from "zod";
2874
+ var ShadowType = z70.enum(["Drop", "Inner"]);
2875
+ var ShadowLayerValue = z70.object({
2862
2876
  color: ColorTokenData,
2863
- x: z69.number(),
2864
- y: z69.number(),
2865
- radius: z69.number(),
2866
- spread: z69.number(),
2877
+ x: z70.number(),
2878
+ y: z70.number(),
2879
+ radius: z70.number(),
2880
+ spread: z70.number(),
2867
2881
  opacity: OpacityTokenData.optional(),
2868
2882
  type: ShadowType
2869
2883
  });
2870
2884
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
2871
- var ShadowTokenData = tokenAliasOrValue(z69.array(ShadowTokenDataBase));
2885
+ var ShadowTokenData = tokenAliasOrValue(z70.array(ShadowTokenDataBase));
2872
2886
 
2873
2887
  // src/dsm/elements/data/size.ts
2874
- import { z as z70 } from "zod";
2875
- var SizeUnit = z70.enum(["Pixels", "Rem", "Percent"]);
2876
- var SizeValue = z70.object({
2888
+ import { z as z71 } from "zod";
2889
+ var SizeUnit = z71.enum(["Pixels", "Rem", "Percent"]);
2890
+ var SizeValue = z71.object({
2877
2891
  unit: SizeUnit,
2878
- measure: z70.number()
2892
+ measure: z71.number()
2879
2893
  });
2880
2894
  var SizeTokenData = tokenAliasOrValue(SizeValue);
2881
2895
 
2882
2896
  // src/dsm/elements/data/space.ts
2883
- import { z as z71 } from "zod";
2884
- var SpaceUnit = z71.enum(["Pixels", "Rem", "Percent"]);
2885
- var SpaceValue = z71.object({
2897
+ import { z as z72 } from "zod";
2898
+ var SpaceUnit = z72.enum(["Pixels", "Rem", "Percent"]);
2899
+ var SpaceValue = z72.object({
2886
2900
  unit: SpaceUnit,
2887
- measure: z71.number()
2901
+ measure: z72.number()
2888
2902
  });
2889
2903
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
2890
2904
 
2891
2905
  // src/dsm/elements/data/string.ts
2892
- import { z as z72 } from "zod";
2893
- var StringValue = z72.string();
2906
+ import { z as z73 } from "zod";
2907
+ var StringValue = z73.string();
2894
2908
  var StringTokenData = tokenAliasOrValue(StringValue);
2895
2909
 
2896
2910
  // src/dsm/elements/data/text-case.ts
2897
- import { z as z73 } from "zod";
2898
- var TextCase = z73.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2911
+ import { z as z74 } from "zod";
2912
+ var TextCase = z74.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2899
2913
  var TextCaseValue = TextCase;
2900
2914
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
2901
2915
 
2902
2916
  // src/dsm/elements/data/text-decoration.ts
2903
- import { z as z74 } from "zod";
2904
- var TextDecoration = z74.enum(["None", "Underline", "Strikethrough"]);
2917
+ import { z as z75 } from "zod";
2918
+ var TextDecoration = z75.enum(["None", "Underline", "Strikethrough"]);
2905
2919
  var TextDecorationValue = TextDecoration;
2906
2920
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
2907
2921
 
2908
2922
  // src/dsm/elements/data/typography.ts
2909
- import { z as z75 } from "zod";
2910
- var TypographyValue = z75.object({
2923
+ import { z as z76 } from "zod";
2924
+ var TypographyValue = z76.object({
2911
2925
  fontSize: FontSizeTokenData,
2912
2926
  fontFamily: FontFamilyTokenData,
2913
2927
  fontWeight: FontWeightTokenData,
@@ -2921,27 +2935,27 @@ var TypographyValue = z75.object({
2921
2935
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
2922
2936
 
2923
2937
  // src/dsm/elements/data/visibility.ts
2924
- import { z as z76 } from "zod";
2925
- var Visibility = z76.enum(["Hidden", "Visible"]);
2938
+ import { z as z77 } from "zod";
2939
+ var Visibility = z77.enum(["Hidden", "Visible"]);
2926
2940
  var VisibilityValue = Visibility;
2927
2941
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
2928
2942
 
2929
2943
  // src/dsm/elements/data/z-index.ts
2930
- import { z as z77 } from "zod";
2931
- var ZIndexUnit = z77.enum(["Raw"]);
2932
- var ZIndexValue = z77.object({
2944
+ import { z as z78 } from "zod";
2945
+ var ZIndexUnit = z78.enum(["Raw"]);
2946
+ var ZIndexValue = z78.object({
2933
2947
  unit: ZIndexUnit,
2934
- measure: z77.number()
2948
+ measure: z78.number()
2935
2949
  });
2936
2950
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
2937
2951
 
2938
2952
  // src/dsm/elements/documentation-page-v1.ts
2939
- import { z as z79 } from "zod";
2953
+ import { z as z80 } from "zod";
2940
2954
 
2941
2955
  // src/dsm/elements/group.ts
2942
- import { z as z78 } from "zod";
2956
+ import { z as z79 } from "zod";
2943
2957
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
2944
- shortPersistentId: z78.string().optional(),
2958
+ shortPersistentId: z79.string().optional(),
2945
2959
  childType: DesignElementType,
2946
2960
  data: ElementGroupDataV2.optional()
2947
2961
  });
@@ -2949,7 +2963,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
2949
2963
 
2950
2964
  // src/dsm/elements/documentation-page-v1.ts
2951
2965
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
2952
- shortPersistentId: z79.string(),
2966
+ shortPersistentId: z80.string(),
2953
2967
  data: DocumentationPageDataV1
2954
2968
  });
2955
2969
  var DocumentationGroupV1 = ElementGroup.omit({
@@ -2959,24 +2973,24 @@ var DocumentationGroupV1 = ElementGroup.omit({
2959
2973
  });
2960
2974
 
2961
2975
  // src/dsm/elements/documentation-page-v2.ts
2962
- import { z as z80 } from "zod";
2976
+ import { z as z81 } from "zod";
2963
2977
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
2964
- shortPersistentId: z80.string(),
2978
+ shortPersistentId: z81.string(),
2965
2979
  data: DocumentationPageDataV2.extend({
2966
- oldBlocks: z80.array(PageBlockV1).optional()
2980
+ oldBlocks: z81.array(PageBlockV1).optional()
2967
2981
  })
2968
2982
  });
2969
2983
 
2970
2984
  // src/dsm/elements/figma-component.ts
2971
- import { z as z81 } from "zod";
2972
- var FigmaComponentOriginPart = z81.object({
2973
- nodeId: z81.string().optional(),
2974
- width: z81.number().optional(),
2975
- height: z81.number().optional()
2985
+ import { z as z82 } from "zod";
2986
+ var FigmaComponentOriginPart = z82.object({
2987
+ nodeId: z82.string().optional(),
2988
+ width: z82.number().optional(),
2989
+ height: z82.number().optional()
2976
2990
  });
2977
- var FigmaComponentAsset = z81.object({
2978
- assetId: z81.string(),
2979
- assetPath: z81.string()
2991
+ var FigmaComponentAsset = z82.object({
2992
+ assetId: z82.string(),
2993
+ assetPath: z82.string()
2980
2994
  });
2981
2995
  var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
2982
2996
  var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -2984,20 +2998,20 @@ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart
2984
2998
  thumbnail: FigmaComponentAsset,
2985
2999
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
2986
3000
  svg: FigmaComponentAsset.optional(),
2987
- isAsset: z81.boolean(),
2988
- parentComponentPersistentId: nullishToOptional(z81.string())
3001
+ isAsset: z82.boolean(),
3002
+ parentComponentPersistentId: nullishToOptional(z82.string())
2989
3003
  });
2990
3004
  function isImportedFigmaComponent(component) {
2991
3005
  return !!component.origin;
2992
3006
  }
2993
3007
 
2994
3008
  // src/dsm/elements/figma-file-structures.ts
2995
- import { z as z82 } from "zod";
2996
- var FigmaFileStructureOrigin = z82.object({
2997
- sourceId: z82.string(),
2998
- fileId: z82.string().optional()
3009
+ import { z as z83 } from "zod";
3010
+ var FigmaFileStructureOrigin = z83.object({
3011
+ sourceId: z83.string(),
3012
+ fileId: z83.string().optional()
2999
3013
  });
3000
- var FigmaFileStructureData = z82.object({
3014
+ var FigmaFileStructureData = z83.object({
3001
3015
  rootNode: FigmaFileStructureNode,
3002
3016
  assetsInFile: FigmaFileStructureStatistics
3003
3017
  });
@@ -3013,10 +3027,10 @@ function traverseStructure(node, action) {
3013
3027
  }
3014
3028
 
3015
3029
  // src/dsm/elements/figma-node-reference.ts
3016
- import { z as z83 } from "zod";
3017
- var FigmaNodeReferenceOrigin = z83.object({
3018
- sourceId: z83.string(),
3019
- parentName: z83.string().optional()
3030
+ import { z as z84 } from "zod";
3031
+ var FigmaNodeReferenceOrigin = z84.object({
3032
+ sourceId: z84.string(),
3033
+ parentName: z84.string().optional()
3020
3034
  });
3021
3035
  var FigmaNodeReference = DesignElementBase.extend({
3022
3036
  data: FigmaNodeReferenceData,
@@ -3024,18 +3038,18 @@ var FigmaNodeReference = DesignElementBase.extend({
3024
3038
  });
3025
3039
 
3026
3040
  // src/dsm/elements/theme.ts
3027
- import { z as z85 } from "zod";
3041
+ import { z as z86 } from "zod";
3028
3042
 
3029
3043
  // src/dsm/elements/tokens.ts
3030
- import { z as z84 } from "zod";
3031
- var DesignTokenOriginPart = z84.object({
3032
- referenceOriginId: z84.string().optional(),
3033
- referenceOriginKey: z84.string().optional(),
3034
- referenceOriginName: z84.string().optional(),
3035
- referenceOriginRemote: z84.boolean().optional(),
3036
- referencePersistentId: z84.string().optional(),
3037
- referenceResolutionFailed: z84.boolean().optional(),
3038
- key: z84.string().optional()
3044
+ import { z as z85 } from "zod";
3045
+ var DesignTokenOriginPart = z85.object({
3046
+ referenceOriginId: z85.string().optional(),
3047
+ referenceOriginKey: z85.string().optional(),
3048
+ referenceOriginName: z85.string().optional(),
3049
+ referenceOriginRemote: z85.boolean().optional(),
3050
+ referencePersistentId: z85.string().optional(),
3051
+ referenceResolutionFailed: z85.boolean().optional(),
3052
+ key: z85.string().optional()
3039
3053
  });
3040
3054
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
3041
3055
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -3047,111 +3061,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
3047
3061
  brandPersistentId: true,
3048
3062
  designSystemVersionId: true
3049
3063
  });
3050
- var BlurTokenTypedData = z84.object({
3051
- type: z84.literal("Blur"),
3064
+ var BlurTokenTypedData = z85.object({
3065
+ type: z85.literal("Blur"),
3052
3066
  data: BlurTokenData
3053
3067
  });
3054
- var ColorTokenTypedData = z84.object({
3055
- type: z84.literal("Color"),
3068
+ var ColorTokenTypedData = z85.object({
3069
+ type: z85.literal("Color"),
3056
3070
  data: ColorTokenData
3057
3071
  });
3058
- var GradientTokenTypedData = z84.object({
3059
- type: z84.literal("Gradient"),
3072
+ var GradientTokenTypedData = z85.object({
3073
+ type: z85.literal("Gradient"),
3060
3074
  data: GradientTokenData
3061
3075
  });
3062
- var OpacityTokenTypedData = z84.object({
3063
- type: z84.literal("Opacity"),
3076
+ var OpacityTokenTypedData = z85.object({
3077
+ type: z85.literal("Opacity"),
3064
3078
  data: OpacityTokenData
3065
3079
  });
3066
- var ShadowTokenTypedData = z84.object({
3067
- type: z84.literal("Shadow"),
3080
+ var ShadowTokenTypedData = z85.object({
3081
+ type: z85.literal("Shadow"),
3068
3082
  data: ShadowTokenData
3069
3083
  });
3070
- var TypographyTokenTypedData = z84.object({
3071
- type: z84.literal("Typography"),
3084
+ var TypographyTokenTypedData = z85.object({
3085
+ type: z85.literal("Typography"),
3072
3086
  data: TypographyTokenData
3073
3087
  });
3074
- var StringTokenTypedData = z84.object({
3075
- type: z84.literal("String"),
3088
+ var StringTokenTypedData = z85.object({
3089
+ type: z85.literal("String"),
3076
3090
  data: StringTokenData
3077
3091
  });
3078
- var DimensionTokenTypedData = z84.object({
3079
- type: z84.literal("Dimension"),
3092
+ var DimensionTokenTypedData = z85.object({
3093
+ type: z85.literal("Dimension"),
3080
3094
  data: DimensionTokenData
3081
3095
  });
3082
- var FontSizeTokenTypedData = z84.object({
3083
- type: z84.literal("FontSize"),
3096
+ var FontSizeTokenTypedData = z85.object({
3097
+ type: z85.literal("FontSize"),
3084
3098
  data: FontSizeTokenData
3085
3099
  });
3086
- var FontFamilyTokenTypedData = z84.object({
3087
- type: z84.literal("FontFamily"),
3100
+ var FontFamilyTokenTypedData = z85.object({
3101
+ type: z85.literal("FontFamily"),
3088
3102
  data: FontFamilyTokenData
3089
3103
  });
3090
- var FontWeightTokenTypedData = z84.object({
3091
- type: z84.literal("FontWeight"),
3104
+ var FontWeightTokenTypedData = z85.object({
3105
+ type: z85.literal("FontWeight"),
3092
3106
  data: FontWeightTokenData
3093
3107
  });
3094
- var LetterSpacingTokenTypedData = z84.object({
3095
- type: z84.literal("LetterSpacing"),
3108
+ var LetterSpacingTokenTypedData = z85.object({
3109
+ type: z85.literal("LetterSpacing"),
3096
3110
  data: LetterSpacingTokenData
3097
3111
  });
3098
- var LineHeightTokenTypedData = z84.object({
3099
- type: z84.literal("LineHeight"),
3112
+ var LineHeightTokenTypedData = z85.object({
3113
+ type: z85.literal("LineHeight"),
3100
3114
  data: LineHeightTokenData
3101
3115
  });
3102
- var ParagraphSpacingTokenTypedData = z84.object({
3103
- type: z84.literal("ParagraphSpacing"),
3116
+ var ParagraphSpacingTokenTypedData = z85.object({
3117
+ type: z85.literal("ParagraphSpacing"),
3104
3118
  data: ParagraphSpacingTokenData
3105
3119
  });
3106
- var TextCaseTokenTypedData = z84.object({
3107
- type: z84.literal("TextCase"),
3120
+ var TextCaseTokenTypedData = z85.object({
3121
+ type: z85.literal("TextCase"),
3108
3122
  data: TextCaseTokenData
3109
3123
  });
3110
- var TextDecorationTokenTypedData = z84.object({
3111
- type: z84.literal("TextDecoration"),
3124
+ var TextDecorationTokenTypedData = z85.object({
3125
+ type: z85.literal("TextDecoration"),
3112
3126
  data: TextDecorationTokenData
3113
3127
  });
3114
- var BorderRadiusTokenTypedData = z84.object({
3115
- type: z84.literal("BorderRadius"),
3128
+ var BorderRadiusTokenTypedData = z85.object({
3129
+ type: z85.literal("BorderRadius"),
3116
3130
  data: BorderRadiusTokenData
3117
3131
  });
3118
- var BorderWidthTokenTypedData = z84.object({
3119
- type: z84.literal("BorderWidth"),
3132
+ var BorderWidthTokenTypedData = z85.object({
3133
+ type: z85.literal("BorderWidth"),
3120
3134
  data: BorderWidthTokenData
3121
3135
  });
3122
- var BorderTypedData = z84.object({
3123
- type: z84.literal("Border"),
3136
+ var BorderTypedData = z85.object({
3137
+ type: z85.literal("Border"),
3124
3138
  data: BorderTokenData
3125
3139
  });
3126
- var ProductCopyTypedData = z84.object({
3127
- type: z84.literal("ProductCopy"),
3140
+ var ProductCopyTypedData = z85.object({
3141
+ type: z85.literal("ProductCopy"),
3128
3142
  data: ProductCopyTokenData
3129
3143
  });
3130
- var SizeTypedData = z84.object({
3131
- type: z84.literal("Size"),
3144
+ var SizeTypedData = z85.object({
3145
+ type: z85.literal("Size"),
3132
3146
  data: SizeTokenData
3133
3147
  });
3134
- var SpaceTypedData = z84.object({
3135
- type: z84.literal("Space"),
3148
+ var SpaceTypedData = z85.object({
3149
+ type: z85.literal("Space"),
3136
3150
  data: SpaceTokenData
3137
3151
  });
3138
- var VisibilityTypedData = z84.object({
3139
- type: z84.literal("Visibility"),
3152
+ var VisibilityTypedData = z85.object({
3153
+ type: z85.literal("Visibility"),
3140
3154
  data: VisibilityTokenData
3141
3155
  });
3142
- var ZIndexTypedData = z84.object({
3143
- type: z84.literal("ZIndex"),
3156
+ var ZIndexTypedData = z85.object({
3157
+ type: z85.literal("ZIndex"),
3144
3158
  data: ZIndexTokenData
3145
3159
  });
3146
- var DurationTypedData = z84.object({
3147
- type: z84.literal("Duration"),
3160
+ var DurationTypedData = z85.object({
3161
+ type: z85.literal("Duration"),
3148
3162
  data: DurationTokenData
3149
3163
  });
3150
- var FontTypedData = z84.object({
3151
- type: z84.literal("Font"),
3152
- data: z84.record(z84.any())
3164
+ var FontTypedData = z85.object({
3165
+ type: z85.literal("Font"),
3166
+ data: FontTokenData
3153
3167
  });
3154
- var DesignTokenTypedData = z84.discriminatedUnion("type", [
3168
+ var DesignTokenTypedData = z85.discriminatedUnion("type", [
3155
3169
  BlurTokenTypedData,
3156
3170
  BorderRadiusTokenTypedData,
3157
3171
  BorderWidthTokenTypedData,
@@ -3201,32 +3215,32 @@ function designTokenTypeFilter(type) {
3201
3215
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
3202
3216
  var ThemeOverrideOrigin = DesignTokenOrigin;
3203
3217
  var ThemeOverride = DesignTokenTypedData.and(
3204
- z85.object({
3205
- tokenPersistentId: z85.string(),
3218
+ z86.object({
3219
+ tokenPersistentId: z86.string(),
3206
3220
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
3207
3221
  })
3208
3222
  );
3209
- var ThemeElementData = z85.object({
3210
- value: z85.object({
3211
- overrides: z85.array(ThemeOverride)
3223
+ var ThemeElementData = z86.object({
3224
+ value: z86.object({
3225
+ overrides: z86.array(ThemeOverride)
3212
3226
  })
3213
3227
  });
3214
- var ThemeOriginPart = z85.object({});
3215
- var ThemeOriginObject = z85.object({
3216
- id: z85.string(),
3217
- name: z85.string()
3228
+ var ThemeOriginPart = z86.object({});
3229
+ var ThemeOriginObject = z86.object({
3230
+ id: z86.string(),
3231
+ name: z86.string()
3218
3232
  });
3219
- var ThemeOriginSource = z85.object({
3220
- sourceId: z85.string(),
3221
- sourceObjects: z85.array(ThemeOriginObject)
3233
+ var ThemeOriginSource = z86.object({
3234
+ sourceId: z86.string(),
3235
+ sourceObjects: z86.array(ThemeOriginObject)
3222
3236
  });
3223
- var ThemeOrigin = z85.object({
3224
- sources: z85.array(ThemeOriginSource)
3237
+ var ThemeOrigin = z86.object({
3238
+ sources: z86.array(ThemeOriginSource)
3225
3239
  });
3226
3240
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
3227
3241
  origin: ThemeOrigin.optional(),
3228
- overrides: z85.array(ThemeOverride),
3229
- codeName: z85.string()
3242
+ overrides: z86.array(ThemeOverride),
3243
+ codeName: z86.string()
3230
3244
  });
3231
3245
 
3232
3246
  // src/dsm/elements/utils.ts
@@ -3296,17 +3310,17 @@ var PageBlockDefinitionsMap = class {
3296
3310
  };
3297
3311
 
3298
3312
  // src/dsm/data-sources/import-summary.ts
3299
- var FileStructureStats = z86.object({
3313
+ var FileStructureStats = z87.object({
3300
3314
  frames: zeroNumberByDefault(),
3301
3315
  components: zeroNumberByDefault(),
3302
3316
  componentSets: zeroNumberByDefault()
3303
3317
  });
3304
3318
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
3305
3319
  // Backward compatibility
3306
- z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
3320
+ z87.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
3307
3321
  );
3308
- var SourceImportSummaryByTokenType = z86.record(SourceImportSummaryByTokenTypeKey, z86.number());
3309
- var SourceImportTokenSummary = z86.object({
3322
+ var SourceImportSummaryByTokenType = z87.record(SourceImportSummaryByTokenTypeKey, z87.number());
3323
+ var SourceImportTokenSummary = z87.object({
3310
3324
  tokensCreated: zeroNumberByDefault(),
3311
3325
  tokensUpdated: zeroNumberByDefault(),
3312
3326
  tokensDeleted: zeroNumberByDefault(),
@@ -3314,7 +3328,7 @@ var SourceImportTokenSummary = z86.object({
3314
3328
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
3315
3329
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
3316
3330
  });
3317
- var SourceImportComponentSummary = z86.object({
3331
+ var SourceImportComponentSummary = z87.object({
3318
3332
  componentsCreated: zeroNumberByDefault(),
3319
3333
  componentsUpdated: zeroNumberByDefault(),
3320
3334
  componentsDeleted: zeroNumberByDefault(),
@@ -3322,163 +3336,163 @@ var SourceImportComponentSummary = z86.object({
3322
3336
  componentAssetsUpdated: zeroNumberByDefault(),
3323
3337
  componentAssetsDeleted: zeroNumberByDefault()
3324
3338
  });
3325
- var SourceImportFrameSummary = z86.object({
3339
+ var SourceImportFrameSummary = z87.object({
3326
3340
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
3327
- invalidReferencesCount: nullishToOptional(z86.number().optional())
3328
- });
3329
- var SourceImportSummary = z86.object({
3330
- sourceId: nullishToOptional(z86.string()),
3331
- brandId: nullishToOptional(z86.string()),
3332
- versionId: nullishToOptional(z86.string()),
3333
- error: nullishToOptional(z86.any()),
3334
- isFailed: z86.boolean(),
3335
- warnings: z86.array(ImportWarning).nullish().transform((v) => v ?? []),
3341
+ invalidReferencesCount: nullishToOptional(z87.number().optional())
3342
+ });
3343
+ var SourceImportSummary = z87.object({
3344
+ sourceId: nullishToOptional(z87.string()),
3345
+ brandId: nullishToOptional(z87.string()),
3346
+ versionId: nullishToOptional(z87.string()),
3347
+ error: nullishToOptional(z87.any()),
3348
+ isFailed: z87.boolean(),
3349
+ warnings: z87.array(ImportWarning).nullish().transform((v) => v ?? []),
3336
3350
  ...SourceImportTokenSummary.shape,
3337
3351
  ...SourceImportComponentSummary.shape,
3338
3352
  ...FileStructureStats.shape
3339
3353
  });
3340
3354
  function zeroNumberByDefault() {
3341
- return z86.number().nullish().transform((v) => v ?? 0);
3355
+ return z87.number().nullish().transform((v) => v ?? 0);
3342
3356
  }
3343
3357
 
3344
3358
  // src/dsm/data-sources/data-source.ts
3345
- var DataSourceRemoteType = z87.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
3346
- var DataSourceUploadRemoteSource = z87.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
3347
- var DataSourceFigmaState = z87.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
3348
- var DataSourceAutoImportMode = z87.enum(["Never", "Hourly"]);
3349
- var DataSourceStats = z87.object({
3359
+ var DataSourceRemoteType = z88.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
3360
+ var DataSourceUploadRemoteSource = z88.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
3361
+ var DataSourceFigmaState = z88.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
3362
+ var DataSourceAutoImportMode = z88.enum(["Never", "Hourly"]);
3363
+ var DataSourceStats = z88.object({
3350
3364
  tokens: zeroNumberByDefault2(),
3351
3365
  components: zeroNumberByDefault2(),
3352
3366
  assets: zeroNumberByDefault2(),
3353
3367
  frames: zeroNumberByDefault2()
3354
3368
  });
3355
- var DataSourceFigmaFileData = z87.object({
3356
- lastUpdatedAt: z87.coerce.date()
3369
+ var DataSourceFigmaFileData = z88.object({
3370
+ lastUpdatedAt: z88.coerce.date()
3357
3371
  });
3358
- var DataSourceFigmaFileVersionData = z87.object({
3359
- id: z87.string(),
3360
- label: z87.string().optional(),
3361
- description: z87.string().optional(),
3362
- createdAt: z87.coerce.date()
3372
+ var DataSourceFigmaFileVersionData = z88.object({
3373
+ id: z88.string(),
3374
+ label: z88.string().optional(),
3375
+ description: z88.string().optional(),
3376
+ createdAt: z88.coerce.date()
3363
3377
  });
3364
- var DataSourceFigmaScope = z87.object({
3365
- assets: z87.boolean(),
3366
- components: z87.boolean(),
3367
- documentationFrames: z87.boolean(),
3368
- tokens: z87.boolean(),
3369
- themePersistentId: z87.string().optional(),
3370
- isUnpublishedContentFallbackEnabled: z87.boolean()
3378
+ var DataSourceFigmaScope = z88.object({
3379
+ assets: z88.boolean(),
3380
+ components: z88.boolean(),
3381
+ documentationFrames: z88.boolean(),
3382
+ tokens: z88.boolean(),
3383
+ themePersistentId: z88.string().optional(),
3384
+ isUnpublishedContentFallbackEnabled: z88.boolean()
3371
3385
  });
3372
- var DataSourceFigmaImportMetadata = z87.object({
3386
+ var DataSourceFigmaImportMetadata = z88.object({
3373
3387
  fileData: DataSourceFigmaFileData.optional(),
3374
3388
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
3375
3389
  });
3376
- var DataSourceFigmaRemote = z87.object({
3377
- type: z87.literal(DataSourceRemoteType.Enum.Figma),
3378
- fileId: z87.string(),
3379
- preferredCredentialId: z87.string().optional(),
3380
- ownerId: z87.string(),
3390
+ var DataSourceFigmaRemote = z88.object({
3391
+ type: z88.literal(DataSourceRemoteType.Enum.Figma),
3392
+ fileId: z88.string(),
3393
+ preferredCredentialId: z88.string().optional(),
3394
+ ownerId: z88.string(),
3381
3395
  // todo remove or keep to reference who created data source
3382
- ownerName: z87.string(),
3396
+ ownerName: z88.string(),
3383
3397
  // todo probably remove
3384
3398
  scope: DataSourceFigmaScope,
3385
3399
  state: DataSourceFigmaState,
3386
- requiresSync: z87.boolean().optional().transform((v) => v ?? false),
3400
+ requiresSync: z88.boolean().optional().transform((v) => v ?? false),
3387
3401
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
3388
- downloadChunkSize: z87.number().optional(),
3389
- figmaRenderChunkSize: z87.number().optional(),
3390
- maxFileDepth: z87.number().optional()
3402
+ downloadChunkSize: z88.number().optional(),
3403
+ figmaRenderChunkSize: z88.number().optional(),
3404
+ maxFileDepth: z88.number().optional()
3391
3405
  });
3392
- var DataSourceTokenStudioRemote = z87.object({
3393
- type: z87.literal(DataSourceRemoteType.Enum.TokenStudio)
3406
+ var DataSourceTokenStudioRemote = z88.object({
3407
+ type: z88.literal(DataSourceRemoteType.Enum.TokenStudio)
3394
3408
  });
3395
- var DataSourceUploadImportMetadata = z87.record(z87.any());
3396
- var DataSourceUploadRemote = z87.object({
3397
- type: z87.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
3398
- remoteId: z87.string(),
3409
+ var DataSourceUploadImportMetadata = z88.record(z88.any());
3410
+ var DataSourceUploadRemote = z88.object({
3411
+ type: z88.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
3412
+ remoteId: z88.string(),
3399
3413
  remoteSourceType: DataSourceUploadRemoteSource,
3400
3414
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
3401
3415
  warnings: nullishToOptional(ImportWarning.array())
3402
3416
  });
3403
- var DataSourceRemote = z87.discriminatedUnion("type", [
3417
+ var DataSourceRemote = z88.discriminatedUnion("type", [
3404
3418
  DataSourceFigmaRemote,
3405
3419
  DataSourceUploadRemote,
3406
3420
  DataSourceTokenStudioRemote
3407
3421
  ]);
3408
- var DataSource = z87.object({
3409
- id: z87.string(),
3410
- name: z87.string(),
3411
- thumbnailUrl: z87.string().optional(),
3412
- createdAt: z87.coerce.date().optional(),
3413
- lastImportedAt: z87.coerce.date().optional(),
3422
+ var DataSource = z88.object({
3423
+ id: z88.string(),
3424
+ name: z88.string(),
3425
+ thumbnailUrl: z88.string().optional(),
3426
+ createdAt: z88.coerce.date().optional(),
3427
+ lastImportedAt: z88.coerce.date().optional(),
3414
3428
  lastImportSummary: SourceImportSummary.optional(),
3415
- designSystemId: z87.string(),
3416
- brandPersistentId: z87.string(),
3429
+ designSystemId: z88.string(),
3430
+ brandPersistentId: z88.string(),
3417
3431
  autoImportMode: DataSourceAutoImportMode,
3418
3432
  stats: DataSourceStats,
3419
3433
  remote: DataSourceRemote,
3420
- sortOrder: z87.number()
3434
+ sortOrder: z88.number()
3421
3435
  });
3422
- var DataSourceVersion = z87.object({
3423
- id: z87.string(),
3424
- createdAt: z87.coerce.date(),
3425
- label: z87.string().nullish(),
3426
- description: z87.string().nullish()
3436
+ var DataSourceVersion = z88.object({
3437
+ id: z88.string(),
3438
+ createdAt: z88.coerce.date(),
3439
+ label: z88.string().nullish(),
3440
+ description: z88.string().nullish()
3427
3441
  });
3428
3442
  function zeroNumberByDefault2() {
3429
- return z87.number().nullish().transform((v) => v ?? 0);
3443
+ return z88.number().nullish().transform((v) => v ?? 0);
3430
3444
  }
3431
3445
 
3432
3446
  // src/dsm/data-sources/import-job.ts
3433
- import { z as z88 } from "zod";
3434
- var ImportJobState = z88.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
3435
- var ImportJobOperation = z88.enum(["Check", "Import"]);
3447
+ import { z as z89 } from "zod";
3448
+ var ImportJobState = z89.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
3449
+ var ImportJobOperation = z89.enum(["Check", "Import"]);
3436
3450
  var ImportJob = Entity.extend({
3437
- designSystemId: z88.string(),
3438
- designSystemVersionId: z88.string(),
3439
- sourceIds: z88.array(z88.string()),
3451
+ designSystemId: z89.string(),
3452
+ designSystemVersionId: z89.string(),
3453
+ sourceIds: z89.array(z89.string()),
3440
3454
  state: ImportJobState,
3441
- createdByUserId: z88.string().optional(),
3442
- importContextId: z88.string(),
3443
- error: z88.string().optional(),
3455
+ createdByUserId: z89.string().optional(),
3456
+ importContextId: z89.string(),
3457
+ error: z89.string().optional(),
3444
3458
  sourceType: DataSourceRemoteType,
3445
- importContextCleanedUp: z88.boolean()
3459
+ importContextCleanedUp: z89.boolean()
3446
3460
  });
3447
3461
 
3448
3462
  // src/dsm/import/support/import-context.ts
3449
- var ImportFunctionInput = z89.object({
3450
- importJobId: z89.string(),
3451
- importContextId: z89.string(),
3452
- designSystemId: z89.string().optional()
3463
+ var ImportFunctionInput = z90.object({
3464
+ importJobId: z90.string(),
3465
+ importContextId: z90.string(),
3466
+ designSystemId: z90.string().optional()
3453
3467
  });
3454
- var ImportedFigmaSourceData = z89.object({
3455
- sourceId: z89.string(),
3468
+ var ImportedFigmaSourceData = z90.object({
3469
+ sourceId: z90.string(),
3456
3470
  figmaRemote: DataSourceFigmaRemote
3457
3471
  });
3458
- var FigmaImportBaseContext = z89.object({
3459
- designSystemId: z89.string(),
3472
+ var FigmaImportBaseContext = z90.object({
3473
+ designSystemId: z90.string(),
3460
3474
  /**
3461
3475
  * Data required for accessing Figma files. This should contain access data for all file ids
3462
3476
  * mentioned in the `importedSourceDataBySourceId`
3463
3477
  *
3464
3478
  * fileId: file data
3465
3479
  */
3466
- fileAccessByFileId: z89.record(FigmaFileAccessData),
3480
+ fileAccessByFileId: z90.record(FigmaFileAccessData),
3467
3481
  /**
3468
3482
  * Figma source data for which import was requested
3469
3483
  *
3470
3484
  * sourceId: source data
3471
3485
  */
3472
- importedSourceDataBySourceId: z89.record(ImportedFigmaSourceData),
3486
+ importedSourceDataBySourceId: z90.record(ImportedFigmaSourceData),
3473
3487
  /**
3474
3488
  * Array of warnings that will be written into the import result summary at the end
3475
3489
  * of import job execution and displayed by the client.
3476
3490
  */
3477
- importWarnings: z89.record(ImportWarning.array()).default({})
3491
+ importWarnings: z90.record(ImportWarning.array()).default({})
3478
3492
  });
3479
3493
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
3480
- sourcesWithMissingAccess: z89.array(z89.string()).default([]),
3481
- shadowOpacityOptional: z89.boolean().default(false)
3494
+ sourcesWithMissingAccess: z90.array(z90.string()).default([]),
3495
+ shadowOpacityOptional: z90.boolean().default(false)
3482
3496
  });
3483
3497
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
3484
3498
  importMetadata: DataSourceFigmaImportMetadata
@@ -3490,72 +3504,72 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
3490
3504
  *
3491
3505
  * File id -> file download scope
3492
3506
  */
3493
- fileDownloadScopesByFileId: z89.record(FigmaFileDownloadScope),
3507
+ fileDownloadScopesByFileId: z90.record(FigmaFileDownloadScope),
3494
3508
  /**
3495
3509
  * Sources filtered down to the ones that have changed since last import and therefore need to be
3496
3510
  * imported again.
3497
3511
  *
3498
3512
  * Source id -> import metadata
3499
3513
  */
3500
- changedImportedSourceDataBySourceId: z89.record(ChangedImportedFigmaSourceData)
3514
+ changedImportedSourceDataBySourceId: z90.record(ChangedImportedFigmaSourceData)
3501
3515
  });
3502
3516
 
3503
3517
  // src/dsm/import/support/import-model-collections.ts
3504
- import { z as z97 } from "zod";
3518
+ import { z as z98 } from "zod";
3505
3519
 
3506
3520
  // src/dsm/import/component.ts
3507
- import { z as z92 } from "zod";
3521
+ import { z as z93 } from "zod";
3508
3522
 
3509
3523
  // src/dsm/import/base.ts
3510
- import { z as z90 } from "zod";
3511
- var ImportModelBase = z90.object({
3512
- id: z90.string(),
3524
+ import { z as z91 } from "zod";
3525
+ var ImportModelBase = z91.object({
3526
+ id: z91.string(),
3513
3527
  meta: ObjectMeta,
3514
3528
  origin: DesignElementOrigin,
3515
- brandPersistentId: z90.string(),
3516
- sortOrder: z90.number()
3529
+ brandPersistentId: z91.string(),
3530
+ sortOrder: z91.number()
3517
3531
  });
3518
3532
  var ImportModelInputBase = ImportModelBase.omit({
3519
3533
  brandPersistentId: true,
3520
3534
  origin: true,
3521
3535
  sortOrder: true
3522
3536
  }).extend({
3523
- originId: z90.string(),
3524
- originMetadata: z90.record(z90.any())
3537
+ originId: z91.string(),
3538
+ originMetadata: z91.record(z91.any())
3525
3539
  });
3526
3540
 
3527
3541
  // src/dsm/import/image.ts
3528
- import { z as z91 } from "zod";
3529
- var ImageImportModelType = z91.enum(["Url", "FigmaRender"]);
3530
- var ImageImportModelBase = z91.object({
3542
+ import { z as z92 } from "zod";
3543
+ var ImageImportModelType = z92.enum(["Url", "FigmaRender"]);
3544
+ var ImageImportModelBase = z92.object({
3531
3545
  scope: AssetScope
3532
3546
  });
3533
3547
  var UrlImageImportModel = ImageImportModelBase.extend({
3534
- type: z91.literal(ImageImportModelType.enum.Url),
3535
- url: z91.string(),
3536
- originKey: z91.string(),
3537
- extension: z91.string()
3548
+ type: z92.literal(ImageImportModelType.enum.Url),
3549
+ url: z92.string(),
3550
+ originKey: z92.string(),
3551
+ extension: z92.string()
3538
3552
  });
3539
- var FigmaRenderFormat = z91.enum(["Svg", "Png", "Pdf"]);
3553
+ var FigmaRenderFormat = z92.enum(["Svg", "Png", "Pdf"]);
3540
3554
  var FigmaRenderBase = ImageImportModelBase.extend({
3541
- type: z91.literal(ImageImportModelType.enum.FigmaRender),
3542
- fileId: z91.string(),
3543
- fileVersionId: z91.string().optional(),
3544
- nodeId: z91.string(),
3545
- originKey: z91.string()
3555
+ type: z92.literal(ImageImportModelType.enum.FigmaRender),
3556
+ fileId: z92.string(),
3557
+ fileVersionId: z92.string().optional(),
3558
+ nodeId: z92.string(),
3559
+ originKey: z92.string()
3546
3560
  });
3547
3561
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
3548
- format: z91.literal(FigmaRenderFormat.enum.Png),
3549
- scale: z91.number()
3562
+ format: z92.literal(FigmaRenderFormat.enum.Png),
3563
+ scale: z92.number()
3550
3564
  });
3551
3565
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
3552
- format: z91.literal(FigmaRenderFormat.enum.Svg)
3566
+ format: z92.literal(FigmaRenderFormat.enum.Svg)
3553
3567
  });
3554
- var FigmaRenderImportModel = z91.discriminatedUnion("format", [
3568
+ var FigmaRenderImportModel = z92.discriminatedUnion("format", [
3555
3569
  FigmaPngRenderImportModel,
3556
3570
  FigmaSvgRenderImportModel
3557
3571
  ]);
3558
- var ImageImportModel = z91.union([UrlImageImportModel, FigmaRenderImportModel]);
3572
+ var ImageImportModel = z92.union([UrlImageImportModel, FigmaRenderImportModel]);
3559
3573
  function getFigmaRenderFormatFileExtension(format) {
3560
3574
  switch (format) {
3561
3575
  case "Pdf":
@@ -3568,13 +3582,13 @@ function getFigmaRenderFormatFileExtension(format) {
3568
3582
  }
3569
3583
 
3570
3584
  // src/dsm/import/component.ts
3571
- var FigmaComponentImportModelPart = z92.object({
3585
+ var FigmaComponentImportModelPart = z93.object({
3572
3586
  thumbnail: ImageImportModel,
3573
- parentComponentId: z92.string().optional(),
3587
+ parentComponentId: z93.string().optional(),
3574
3588
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
3575
3589
  });
3576
3590
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3577
- isAsset: z92.boolean(),
3591
+ isAsset: z93.boolean(),
3578
3592
  svg: FigmaSvgRenderImportModel.optional(),
3579
3593
  origin: FigmaComponentOrigin
3580
3594
  });
@@ -3587,24 +3601,24 @@ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportMode
3587
3601
  });
3588
3602
 
3589
3603
  // src/dsm/import/data-source.ts
3590
- import { z as z93 } from "zod";
3591
- var DataSourceImportModel = z93.object({
3592
- id: z93.string(),
3593
- fileName: z93.string().optional(),
3594
- thumbnailUrl: z93.string().optional()
3604
+ import { z as z94 } from "zod";
3605
+ var DataSourceImportModel = z94.object({
3606
+ id: z94.string(),
3607
+ fileName: z94.string().optional(),
3608
+ thumbnailUrl: z94.string().optional()
3595
3609
  });
3596
3610
 
3597
3611
  // src/dsm/import/figma-frames.ts
3598
- import { z as z94 } from "zod";
3612
+ import { z as z95 } from "zod";
3599
3613
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
3600
3614
  png: FigmaPngRenderImportModel,
3601
3615
  svg: FigmaSvgRenderImportModel
3602
3616
  });
3603
3617
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
3604
- children: z94.lazy(() => FigmaFileStructureNodeImportModel.array())
3618
+ children: z95.lazy(() => FigmaFileStructureNodeImportModel.array())
3605
3619
  });
3606
- var FigmaFileStructureImportModelPart = z94.object({
3607
- data: z94.object({
3620
+ var FigmaFileStructureImportModelPart = z95.object({
3621
+ data: z95.object({
3608
3622
  rootNode: FigmaFileStructureNodeImportModel,
3609
3623
  assetsInFile: FigmaFileStructureStatistics
3610
3624
  })
@@ -3615,7 +3629,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
3615
3629
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
3616
3630
  FigmaFileStructureImportModelPart.shape
3617
3631
  ).extend({
3618
- fileVersionId: z94.string()
3632
+ fileVersionId: z95.string()
3619
3633
  });
3620
3634
  function figmaFileStructureImportModelToMap(root) {
3621
3635
  const map = /* @__PURE__ */ new Map();
@@ -3629,50 +3643,50 @@ function recursiveFigmaFileStructureToMap2(node, map) {
3629
3643
  }
3630
3644
 
3631
3645
  // src/dsm/import/theme.ts
3632
- import { z as z95 } from "zod";
3646
+ import { z as z96 } from "zod";
3633
3647
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
3634
- z95.object({
3635
- id: z95.string(),
3648
+ z96.object({
3649
+ id: z96.string(),
3636
3650
  meta: ObjectMeta
3637
3651
  })
3638
3652
  );
3639
3653
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
3640
- z95.object({
3654
+ z96.object({
3641
3655
  origin: ThemeOverrideOrigin
3642
3656
  })
3643
3657
  );
3644
3658
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
3645
- z95.object({
3646
- originId: z95.string(),
3659
+ z96.object({
3660
+ originId: z96.string(),
3647
3661
  originMetadata: ThemeOverrideOriginPart
3648
3662
  })
3649
3663
  );
3650
- var ThemeImportModel = z95.object({
3664
+ var ThemeImportModel = z96.object({
3651
3665
  meta: ObjectMeta,
3652
- brandPersistentId: z95.string(),
3666
+ brandPersistentId: z96.string(),
3653
3667
  originSource: ThemeOriginSource,
3654
- overrides: z95.array(ThemeOverrideImportModel),
3655
- sortOrder: z95.number()
3668
+ overrides: z96.array(ThemeOverrideImportModel),
3669
+ sortOrder: z96.number()
3656
3670
  });
3657
- var ThemeImportModelInput = z95.object({
3671
+ var ThemeImportModelInput = z96.object({
3658
3672
  meta: ObjectMeta,
3659
- originObjects: z95.array(ThemeOriginObject),
3660
- overrides: z95.array(ThemeOverrideImportModelInput)
3673
+ originObjects: z96.array(ThemeOriginObject),
3674
+ overrides: z96.array(ThemeOverrideImportModelInput)
3661
3675
  });
3662
- var ThemeUpdateImportModel = z95.object({
3663
- themePersistentId: z95.string(),
3664
- overrides: z95.array(ThemeOverrideImportModel)
3676
+ var ThemeUpdateImportModel = z96.object({
3677
+ themePersistentId: z96.string(),
3678
+ overrides: z96.array(ThemeOverrideImportModel)
3665
3679
  });
3666
- var ThemeUpdateImportModelInput = z95.object({
3667
- themePersistentId: z95.string(),
3668
- overrides: z95.array(ThemeOverrideImportModelInput)
3680
+ var ThemeUpdateImportModelInput = z96.object({
3681
+ themePersistentId: z96.string(),
3682
+ overrides: z96.array(ThemeOverrideImportModelInput)
3669
3683
  });
3670
3684
 
3671
3685
  // src/dsm/import/tokens.ts
3672
- import { z as z96 } from "zod";
3673
- var DesignTokenImportModelPart = z96.object({
3674
- collection: z96.string().optional(),
3675
- codeSyntax: z96.record(z96.coerce.string()).optional()
3686
+ import { z as z97 } from "zod";
3687
+ var DesignTokenImportModelPart = z97.object({
3688
+ collection: z97.string().optional(),
3689
+ codeSyntax: z97.record(z97.coerce.string()).optional()
3676
3690
  });
3677
3691
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
3678
3692
  origin: DesignTokenOrigin
@@ -3690,22 +3704,22 @@ function designTokenImportModelTypeFilter(type) {
3690
3704
  }
3691
3705
 
3692
3706
  // src/dsm/import/support/import-model-collections.ts
3693
- var ImportModelInputCollection = z97.object({
3707
+ var ImportModelInputCollection = z98.object({
3694
3708
  source: DataSourceImportModel,
3695
- tokens: z97.array(DesignTokenImportModelInput).default([]),
3696
- components: z97.array(FigmaComponentImportModelInput).default([]),
3697
- assets: z97.array(AssetImportModelInput).default([]),
3698
- themeUpdates: z97.array(ThemeUpdateImportModelInput).default([]),
3699
- themes: z97.array(ThemeImportModelInput).default([]),
3709
+ tokens: z98.array(DesignTokenImportModelInput).default([]),
3710
+ components: z98.array(FigmaComponentImportModelInput).default([]),
3711
+ assets: z98.array(AssetImportModelInput).default([]),
3712
+ themeUpdates: z98.array(ThemeUpdateImportModelInput).default([]),
3713
+ themes: z98.array(ThemeImportModelInput).default([]),
3700
3714
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
3701
3715
  });
3702
- var ImportModelCollection = z97.object({
3703
- sources: z97.array(DataSourceImportModel),
3704
- tokens: z97.array(DesignTokenImportModel).default([]),
3705
- components: z97.array(FigmaComponentImportModel).default([]),
3706
- themeUpdates: z97.array(ThemeUpdateImportModel).default([]),
3707
- themes: z97.array(ThemeImportModel).default([]),
3708
- figmaFileStructures: z97.array(FigmaFileStructureImportModel)
3716
+ var ImportModelCollection = z98.object({
3717
+ sources: z98.array(DataSourceImportModel),
3718
+ tokens: z98.array(DesignTokenImportModel).default([]),
3719
+ components: z98.array(FigmaComponentImportModel).default([]),
3720
+ themeUpdates: z98.array(ThemeUpdateImportModel).default([]),
3721
+ themes: z98.array(ThemeImportModel).default([]),
3722
+ figmaFileStructures: z98.array(FigmaFileStructureImportModel)
3709
3723
  });
3710
3724
  function addImportModelCollections(lhs, rhs) {
3711
3725
  return {
@@ -3719,41 +3733,41 @@ function addImportModelCollections(lhs, rhs) {
3719
3733
  }
3720
3734
 
3721
3735
  // src/dsm/components/asset-rendering.ts
3722
- var AssetRenderConfiguration = z98.object({
3723
- prefix: z98.string().optional(),
3724
- suffix: z98.string().optional(),
3725
- scale: z98.number(),
3736
+ var AssetRenderConfiguration = z99.object({
3737
+ prefix: z99.string().optional(),
3738
+ suffix: z99.string().optional(),
3739
+ scale: z99.number(),
3726
3740
  format: FigmaRenderFormat
3727
3741
  });
3728
- var RenderedAssetFile = z98.object({
3729
- assetPersistentId: z98.string(),
3730
- assetName: z98.string(),
3731
- renderedImageFileName: z98.string(),
3732
- renderedImageUrl: z98.string(),
3742
+ var RenderedAssetFile = z99.object({
3743
+ assetPersistentId: z99.string(),
3744
+ assetName: z99.string(),
3745
+ renderedImageFileName: z99.string(),
3746
+ renderedImageUrl: z99.string(),
3733
3747
  settings: AssetRenderConfiguration
3734
3748
  });
3735
3749
 
3736
3750
  // src/dsm/documentation/approvals/approval-state.ts
3737
- import { z as z99 } from "zod";
3738
- var DocumentationPageApprovalState = z99.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3751
+ import { z as z100 } from "zod";
3752
+ var DocumentationPageApprovalState = z100.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3739
3753
 
3740
3754
  // src/dsm/documentation/approvals/approval.ts
3741
- import { z as z100 } from "zod";
3742
- var DocumentationPageApproval = z100.object({
3743
- id: z100.string(),
3755
+ import { z as z101 } from "zod";
3756
+ var DocumentationPageApproval = z101.object({
3757
+ id: z101.string(),
3744
3758
  approvalState: DocumentationPageApprovalState,
3745
- persistentId: z100.string(),
3746
- pageId: z100.string(),
3747
- pagePersistentId: z100.string(),
3748
- updatedByUserId: z100.string(),
3749
- designSystemVersionId: z100.string(),
3750
- updatedAt: z100.coerce.date(),
3751
- createdAt: z100.coerce.date()
3759
+ persistentId: z101.string(),
3760
+ pageId: z101.string(),
3761
+ pagePersistentId: z101.string(),
3762
+ updatedByUserId: z101.string(),
3763
+ designSystemVersionId: z101.string(),
3764
+ updatedAt: z101.coerce.date(),
3765
+ createdAt: z101.coerce.date()
3752
3766
  });
3753
3767
 
3754
3768
  // src/dsm/documentation/block-definitions/definition.ts
3755
- import { z as z101 } from "zod";
3756
- var PageBlockCategory = z101.enum([
3769
+ import { z as z102 } from "zod";
3770
+ var PageBlockCategory = z102.enum([
3757
3771
  "Text",
3758
3772
  "Layout",
3759
3773
  "Media",
@@ -3767,174 +3781,174 @@ var PageBlockCategory = z101.enum([
3767
3781
  "Data",
3768
3782
  "Other"
3769
3783
  ]);
3770
- var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3771
- var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
3772
- var PageBlockDefinitionBehavior = z101.object({
3784
+ var PageBlockBehaviorDataType = z102.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3785
+ var PageBlockBehaviorSelectionType = z102.enum(["Entity", "Group", "EntityAndGroup"]);
3786
+ var PageBlockDefinitionBehavior = z102.object({
3773
3787
  dataType: PageBlockBehaviorDataType,
3774
- items: z101.object({
3775
- numberOfItems: z101.number(),
3776
- allowLinks: z101.boolean(),
3777
- newItemLabel: z101.string().optional()
3788
+ items: z102.object({
3789
+ numberOfItems: z102.number(),
3790
+ allowLinks: z102.boolean(),
3791
+ newItemLabel: z102.string().optional()
3778
3792
  }).optional(),
3779
- entities: z101.object({
3793
+ entities: z102.object({
3780
3794
  selectionType: PageBlockBehaviorSelectionType,
3781
- maxSelected: z101.number()
3795
+ maxSelected: z102.number()
3782
3796
  }).optional()
3783
3797
  });
3784
- var PageBlockDefinitionOnboarding = z101.object({
3785
- helpText: z101.string(),
3786
- documentationLink: z101.string().optional()
3798
+ var PageBlockDefinitionOnboarding = z102.object({
3799
+ helpText: z102.string(),
3800
+ documentationLink: z102.string().optional()
3787
3801
  });
3788
- var PageBlockDefinition = z101.object({
3789
- id: z101.string(),
3790
- name: z101.string(),
3791
- description: z101.string(),
3802
+ var PageBlockDefinition = z102.object({
3803
+ id: z102.string(),
3804
+ name: z102.string(),
3805
+ description: z102.string(),
3792
3806
  category: PageBlockCategory,
3793
- icon: z101.string().optional(),
3794
- documentationLink: z101.string().optional(),
3795
- searchKeywords: z101.array(z101.string()).optional(),
3807
+ icon: z102.string().optional(),
3808
+ documentationLink: z102.string().optional(),
3809
+ searchKeywords: z102.array(z102.string()).optional(),
3796
3810
  item: PageBlockDefinitionItem,
3797
3811
  behavior: PageBlockDefinitionBehavior,
3798
- editorOptions: z101.object({
3812
+ editorOptions: z102.object({
3799
3813
  onboarding: PageBlockDefinitionOnboarding.optional(),
3800
- newItemLabel: z101.string().optional()
3814
+ newItemLabel: z102.string().optional()
3801
3815
  }),
3802
3816
  appearance: PageBlockDefinitionAppearance.optional()
3803
3817
  });
3804
3818
 
3805
3819
  // src/dsm/documentation/group.ts
3806
- import { z as z102 } from "zod";
3807
- var DocumentationPageGroup = z102.object({
3808
- type: z102.literal("ElementGroup"),
3809
- childType: z102.literal("DocumentationPage"),
3810
- id: z102.string(),
3811
- persistentId: z102.string(),
3812
- shortPersistentId: z102.string(),
3813
- designSystemVersionId: z102.string(),
3814
- parentPersistentId: z102.string().nullish(),
3815
- sortOrder: z102.number(),
3816
- title: z102.string(),
3817
- slug: z102.string(),
3818
- userSlug: z102.string().nullish(),
3819
- createdAt: z102.coerce.date(),
3820
- updatedAt: z102.coerce.date()
3820
+ import { z as z103 } from "zod";
3821
+ var DocumentationPageGroup = z103.object({
3822
+ type: z103.literal("ElementGroup"),
3823
+ childType: z103.literal("DocumentationPage"),
3824
+ id: z103.string(),
3825
+ persistentId: z103.string(),
3826
+ shortPersistentId: z103.string(),
3827
+ designSystemVersionId: z103.string(),
3828
+ parentPersistentId: z103.string().nullish(),
3829
+ sortOrder: z103.number(),
3830
+ title: z103.string(),
3831
+ slug: z103.string(),
3832
+ userSlug: z103.string().nullish(),
3833
+ createdAt: z103.coerce.date(),
3834
+ updatedAt: z103.coerce.date()
3821
3835
  });
3822
3836
 
3823
3837
  // src/dsm/documentation/link-preview.ts
3824
- import { z as z103 } from "zod";
3825
- var DocumentationLinkPreview = z103.object({
3826
- title: z103.string().optional(),
3827
- description: z103.string().optional(),
3838
+ import { z as z104 } from "zod";
3839
+ var DocumentationLinkPreview = z104.object({
3840
+ title: z104.string().optional(),
3841
+ description: z104.string().optional(),
3828
3842
  thumbnail: PageBlockImageReference.optional()
3829
3843
  });
3830
3844
 
3831
3845
  // src/dsm/documentation/page-anchor.ts
3832
- import { z as z104 } from "zod";
3833
- var DocumentationPageAnchor = z104.object({
3834
- blockId: z104.string(),
3835
- level: z104.number(),
3836
- text: z104.string()
3837
- });
3838
-
3839
- // src/dsm/documentation/page-content-backup.ts
3840
3846
  import { z as z105 } from "zod";
3841
- var DocumentationPageContentBackup = z105.object({
3842
- id: z105.string(),
3843
- designSystemVersionId: z105.string(),
3844
- createdAt: z105.coerce.date(),
3845
- updatedAt: z105.coerce.date(),
3846
- documentationPageId: z105.string(),
3847
- documentationPageName: z105.string(),
3848
- storagePath: z105.string()
3847
+ var DocumentationPageAnchor = z105.object({
3848
+ blockId: z105.string(),
3849
+ level: z105.number(),
3850
+ text: z105.string()
3849
3851
  });
3850
3852
 
3851
- // src/dsm/documentation/page-content.ts
3853
+ // src/dsm/documentation/page-content-backup.ts
3852
3854
  import { z as z106 } from "zod";
3853
- var DocumentationPageContentItem = z106.discriminatedUnion("type", [
3854
- PageBlockEditorModelV2,
3855
- PageSectionEditorModelV2
3856
- ]);
3857
- var DocumentationPageContentData = z106.object({
3858
- items: z106.array(DocumentationPageContentItem)
3859
- });
3860
- var DocumentationPageContent = z106.object({
3855
+ var DocumentationPageContentBackup = z106.object({
3861
3856
  id: z106.string(),
3862
3857
  designSystemVersionId: z106.string(),
3863
3858
  createdAt: z106.coerce.date(),
3864
3859
  updatedAt: z106.coerce.date(),
3865
3860
  documentationPageId: z106.string(),
3866
- data: DocumentationPageContentData
3861
+ documentationPageName: z106.string(),
3862
+ storagePath: z106.string()
3867
3863
  });
3868
3864
 
3869
- // src/dsm/documentation/page.ts
3865
+ // src/dsm/documentation/page-content.ts
3870
3866
  import { z as z107 } from "zod";
3871
- var DocumentationPage = z107.object({
3872
- type: z107.literal("DocumentationPage"),
3867
+ var DocumentationPageContentItem = z107.discriminatedUnion("type", [
3868
+ PageBlockEditorModelV2,
3869
+ PageSectionEditorModelV2
3870
+ ]);
3871
+ var DocumentationPageContentData = z107.object({
3872
+ items: z107.array(DocumentationPageContentItem)
3873
+ });
3874
+ var DocumentationPageContent = z107.object({
3873
3875
  id: z107.string(),
3874
- persistentId: z107.string(),
3875
- shortPersistentId: z107.string(),
3876
3876
  designSystemVersionId: z107.string(),
3877
- parentPersistentId: z107.string().nullish(),
3878
- sortOrder: z107.number(),
3879
- title: z107.string(),
3880
- slug: z107.string(),
3881
- userSlug: z107.string().nullish(),
3882
3877
  createdAt: z107.coerce.date(),
3883
- updatedAt: z107.coerce.date()
3878
+ updatedAt: z107.coerce.date(),
3879
+ documentationPageId: z107.string(),
3880
+ data: DocumentationPageContentData
3884
3881
  });
3885
3882
 
3886
- // src/dsm/documentation/settings.ts
3883
+ // src/dsm/documentation/page.ts
3887
3884
  import { z as z108 } from "zod";
3888
- var DocumentationSettings = z108.object({
3889
- // Basic
3885
+ var DocumentationPage = z108.object({
3886
+ type: z108.literal("DocumentationPage"),
3887
+ id: z108.string(),
3888
+ persistentId: z108.string(),
3889
+ shortPersistentId: z108.string(),
3890
3890
  designSystemVersionId: z108.string(),
3891
+ parentPersistentId: z108.string().nullish(),
3892
+ sortOrder: z108.number(),
3893
+ title: z108.string(),
3894
+ slug: z108.string(),
3895
+ userSlug: z108.string().nullish(),
3891
3896
  createdAt: z108.coerce.date(),
3892
- updatedAt: z108.coerce.date(),
3893
- // Configuration
3894
- isTabbedLayoutEnabled: z108.boolean(),
3895
- storybookEmbedErrorMessage: z108.string().optional(),
3896
- renderCodePackageJson: z108.string().optional(),
3897
- selectedBrandPersistentId: z108.string().optional(),
3898
- serveDefaultVersionOnly: z108.boolean(),
3899
- isPublic: z108.boolean()
3897
+ updatedAt: z108.coerce.date()
3900
3898
  });
3901
3899
 
3902
- // src/dsm/documentation/thread.ts
3900
+ // src/dsm/documentation/settings.ts
3903
3901
  import { z as z109 } from "zod";
3904
- var DocumentationComment = z109.object({
3905
- id: z109.string(),
3906
- authorId: z109.string(),
3907
- threadId: z109.string(),
3908
- roomId: z109.string(),
3909
- createdAt: z109.coerce.date(),
3910
- editedAt: z109.coerce.date().optional(),
3911
- deletedAt: z109.coerce.date().optional(),
3912
- body: z109.string()
3913
- });
3914
- var DocumentationCommentThread = z109.object({
3915
- id: z109.string(),
3916
- roomId: z109.string(),
3917
- pagePersistentId: z109.string(),
3918
- brandId: z109.string(),
3902
+ var DocumentationSettings = z109.object({
3903
+ // Basic
3919
3904
  designSystemVersionId: z109.string(),
3920
- designSystemId: z109.string(),
3921
- blockId: z109.string().optional(),
3922
- resolved: z109.boolean(),
3923
3905
  createdAt: z109.coerce.date(),
3924
- updatedAt: z109.coerce.date()
3906
+ updatedAt: z109.coerce.date(),
3907
+ // Configuration
3908
+ isTabbedLayoutEnabled: z109.boolean(),
3909
+ storybookEmbedErrorMessage: z109.string().optional(),
3910
+ renderCodePackageJson: z109.string().optional(),
3911
+ selectedBrandPersistentId: z109.string().optional(),
3912
+ serveDefaultVersionOnly: z109.boolean(),
3913
+ isPublic: z109.boolean()
3925
3914
  });
3926
3915
 
3927
- // src/dsm/element-snapshots/base.ts
3916
+ // src/dsm/documentation/thread.ts
3928
3917
  import { z as z110 } from "zod";
3929
- var DesignElementSnapshotReason = z110.enum(["Publish", "Deletion"]);
3930
- var DesignElementSnapshotBase = z110.object({
3918
+ var DocumentationComment = z110.object({
3919
+ id: z110.string(),
3920
+ authorId: z110.string(),
3921
+ threadId: z110.string(),
3922
+ roomId: z110.string(),
3923
+ createdAt: z110.coerce.date(),
3924
+ editedAt: z110.coerce.date().optional(),
3925
+ deletedAt: z110.coerce.date().optional(),
3926
+ body: z110.string()
3927
+ });
3928
+ var DocumentationCommentThread = z110.object({
3931
3929
  id: z110.string(),
3932
- persistentId: z110.string(),
3930
+ roomId: z110.string(),
3931
+ pagePersistentId: z110.string(),
3932
+ brandId: z110.string(),
3933
3933
  designSystemVersionId: z110.string(),
3934
+ designSystemId: z110.string(),
3935
+ blockId: z110.string().optional(),
3936
+ resolved: z110.boolean(),
3934
3937
  createdAt: z110.coerce.date(),
3935
- updatedAt: z110.coerce.date(),
3938
+ updatedAt: z110.coerce.date()
3939
+ });
3940
+
3941
+ // src/dsm/element-snapshots/base.ts
3942
+ import { z as z111 } from "zod";
3943
+ var DesignElementSnapshotReason = z111.enum(["Publish", "Deletion"]);
3944
+ var DesignElementSnapshotBase = z111.object({
3945
+ id: z111.string(),
3946
+ persistentId: z111.string(),
3947
+ designSystemVersionId: z111.string(),
3948
+ createdAt: z111.coerce.date(),
3949
+ updatedAt: z111.coerce.date(),
3936
3950
  reason: DesignElementSnapshotReason,
3937
- createdByUserId: z110.string()
3951
+ createdByUserId: z111.string()
3938
3952
  });
3939
3953
  function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3940
3954
  const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
@@ -3945,11 +3959,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3945
3959
  }
3946
3960
 
3947
3961
  // src/dsm/element-snapshots/documentation-page-snapshot.ts
3948
- import { z as z111 } from "zod";
3962
+ import { z as z112 } from "zod";
3949
3963
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
3950
3964
  page: DocumentationPageV2,
3951
- pageContentHash: z111.string(),
3952
- pageContentStorageKey: z111.string()
3965
+ pageContentHash: z112.string(),
3966
+ pageContentStorageKey: z112.string()
3953
3967
  });
3954
3968
  function pickLatestPageSnapshots(snapshots) {
3955
3969
  return pickLatestSnapshots(snapshots, (s) => s.page.id);
@@ -3964,184 +3978,184 @@ function pickLatestGroupSnapshots(snapshots) {
3964
3978
  }
3965
3979
 
3966
3980
  // src/dsm/views/column.ts
3967
- import { z as z112 } from "zod";
3968
- var ElementViewBaseColumnType = z112.enum(["Name", "Description", "Value", "UpdatedAt"]);
3969
- var ElementViewColumnType = z112.union([
3970
- z112.literal("BaseProperty"),
3971
- z112.literal("PropertyDefinition"),
3972
- z112.literal("Theme")
3981
+ import { z as z113 } from "zod";
3982
+ var ElementViewBaseColumnType = z113.enum(["Name", "Description", "Value", "UpdatedAt"]);
3983
+ var ElementViewColumnType = z113.union([
3984
+ z113.literal("BaseProperty"),
3985
+ z113.literal("PropertyDefinition"),
3986
+ z113.literal("Theme")
3973
3987
  ]);
3974
- var ElementViewColumnSharedAttributes = z112.object({
3975
- id: z112.string(),
3976
- persistentId: z112.string(),
3977
- elementDataViewId: z112.string(),
3978
- sortPosition: z112.number(),
3979
- width: z112.number()
3988
+ var ElementViewColumnSharedAttributes = z113.object({
3989
+ id: z113.string(),
3990
+ persistentId: z113.string(),
3991
+ elementDataViewId: z113.string(),
3992
+ sortPosition: z113.number(),
3993
+ width: z113.number()
3980
3994
  });
3981
3995
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3982
- type: z112.literal("BaseProperty"),
3996
+ type: z113.literal("BaseProperty"),
3983
3997
  basePropertyType: ElementViewBaseColumnType
3984
3998
  });
3985
3999
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3986
- type: z112.literal("PropertyDefinition"),
3987
- propertyDefinitionId: z112.string()
4000
+ type: z113.literal("PropertyDefinition"),
4001
+ propertyDefinitionId: z113.string()
3988
4002
  });
3989
4003
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3990
- type: z112.literal("Theme"),
3991
- themeId: z112.string()
4004
+ type: z113.literal("Theme"),
4005
+ themeId: z113.string()
3992
4006
  });
3993
- var ElementViewColumn = z112.discriminatedUnion("type", [
4007
+ var ElementViewColumn = z113.discriminatedUnion("type", [
3994
4008
  ElementViewBasePropertyColumn,
3995
4009
  ElementViewPropertyDefinitionColumn,
3996
4010
  ElementViewThemeColumn
3997
4011
  ]);
3998
4012
 
3999
4013
  // src/dsm/views/view.ts
4000
- import { z as z113 } from "zod";
4001
- var ElementView = z113.object({
4002
- id: z113.string(),
4003
- persistentId: z113.string(),
4004
- designSystemVersionId: z113.string(),
4005
- name: z113.string(),
4006
- description: z113.string(),
4007
- targetElementType: ElementPropertyTargetType,
4008
- isDefault: z113.boolean()
4009
- });
4010
-
4011
- // src/dsm/brand.ts
4012
4014
  import { z as z114 } from "zod";
4013
- var Brand = z114.object({
4015
+ var ElementView = z114.object({
4014
4016
  id: z114.string(),
4015
- designSystemVersionId: z114.string(),
4016
4017
  persistentId: z114.string(),
4018
+ designSystemVersionId: z114.string(),
4017
4019
  name: z114.string(),
4018
- description: z114.string()
4020
+ description: z114.string(),
4021
+ targetElementType: ElementPropertyTargetType,
4022
+ isDefault: z114.boolean()
4023
+ });
4024
+
4025
+ // src/dsm/brand.ts
4026
+ import { z as z115 } from "zod";
4027
+ var Brand = z115.object({
4028
+ id: z115.string(),
4029
+ designSystemVersionId: z115.string(),
4030
+ persistentId: z115.string(),
4031
+ name: z115.string(),
4032
+ description: z115.string()
4019
4033
  });
4020
4034
 
4021
4035
  // src/dsm/design-system-update.ts
4022
- import { z as z119 } from "zod";
4036
+ import { z as z120 } from "zod";
4023
4037
 
4024
4038
  // src/dsm/design-system.ts
4025
- import { z as z118 } from "zod";
4039
+ import { z as z119 } from "zod";
4026
4040
 
4027
4041
  // src/workspace/workspace.ts
4028
4042
  import IPCIDR from "ip-cidr";
4029
- import { z as z117 } from "zod";
4043
+ import { z as z118 } from "zod";
4030
4044
 
4031
4045
  // src/workspace/npm-registry-settings.ts
4032
- import { z as z115 } from "zod";
4033
- var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
4034
- var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4035
- var NpmRegistryBasicAuthConfig = z115.object({
4036
- authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
4037
- username: z115.string(),
4038
- password: z115.string()
4039
- });
4040
- var NpmRegistryBearerAuthConfig = z115.object({
4041
- authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
4042
- accessToken: z115.string()
4043
- });
4044
- var NpmRegistryNoAuthConfig = z115.object({
4045
- authType: z115.literal(NpmRegistryAuthType.Enum.None)
4046
- });
4047
- var NpmRegistrCustomAuthConfig = z115.object({
4048
- authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
4049
- authHeaderName: z115.string(),
4050
- authHeaderValue: z115.string()
4051
- });
4052
- var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
4046
+ import { z as z116 } from "zod";
4047
+ var NpmRegistryAuthType = z116.enum(["Basic", "Bearer", "None", "Custom"]);
4048
+ var NpmRegistryType = z116.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4049
+ var NpmRegistryBasicAuthConfig = z116.object({
4050
+ authType: z116.literal(NpmRegistryAuthType.Enum.Basic),
4051
+ username: z116.string(),
4052
+ password: z116.string()
4053
+ });
4054
+ var NpmRegistryBearerAuthConfig = z116.object({
4055
+ authType: z116.literal(NpmRegistryAuthType.Enum.Bearer),
4056
+ accessToken: z116.string()
4057
+ });
4058
+ var NpmRegistryNoAuthConfig = z116.object({
4059
+ authType: z116.literal(NpmRegistryAuthType.Enum.None)
4060
+ });
4061
+ var NpmRegistrCustomAuthConfig = z116.object({
4062
+ authType: z116.literal(NpmRegistryAuthType.Enum.Custom),
4063
+ authHeaderName: z116.string(),
4064
+ authHeaderValue: z116.string()
4065
+ });
4066
+ var NpmRegistryAuthConfig = z116.discriminatedUnion("authType", [
4053
4067
  NpmRegistryBasicAuthConfig,
4054
4068
  NpmRegistryBearerAuthConfig,
4055
4069
  NpmRegistryNoAuthConfig,
4056
4070
  NpmRegistrCustomAuthConfig
4057
4071
  ]);
4058
- var NpmRegistryConfigBase = z115.object({
4072
+ var NpmRegistryConfigBase = z116.object({
4059
4073
  registryType: NpmRegistryType,
4060
- enabledScopes: z115.array(z115.string()),
4061
- customRegistryUrl: z115.string().optional(),
4062
- bypassProxy: z115.boolean().default(false),
4063
- npmProxyRegistryConfigId: z115.string().optional(),
4064
- npmProxyVersion: z115.number().optional()
4074
+ enabledScopes: z116.array(z116.string()),
4075
+ customRegistryUrl: z116.string().optional(),
4076
+ bypassProxy: z116.boolean().default(false),
4077
+ npmProxyRegistryConfigId: z116.string().optional(),
4078
+ npmProxyVersion: z116.number().optional()
4065
4079
  });
4066
4080
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4067
4081
 
4068
4082
  // src/workspace/sso-provider.ts
4069
- import { z as z116 } from "zod";
4070
- var SsoProvider = z116.object({
4071
- providerId: z116.string(),
4072
- defaultAutoInviteValue: z116.boolean(),
4073
- autoInviteDomains: z116.record(z116.string(), z116.boolean()),
4074
- skipDocsSupernovaLogin: z116.boolean(),
4075
- areInvitesDisabled: z116.boolean(),
4076
- isTestMode: z116.boolean(),
4077
- emailDomains: z116.array(z116.string()),
4078
- metadataXml: z116.string().nullish()
4083
+ import { z as z117 } from "zod";
4084
+ var SsoProvider = z117.object({
4085
+ providerId: z117.string(),
4086
+ defaultAutoInviteValue: z117.boolean(),
4087
+ autoInviteDomains: z117.record(z117.string(), z117.boolean()),
4088
+ skipDocsSupernovaLogin: z117.boolean(),
4089
+ areInvitesDisabled: z117.boolean(),
4090
+ isTestMode: z117.boolean(),
4091
+ emailDomains: z117.array(z117.string()),
4092
+ metadataXml: z117.string().nullish()
4079
4093
  });
4080
4094
 
4081
4095
  // src/workspace/workspace.ts
4082
4096
  var isValidCIDR = (value) => {
4083
4097
  return IPCIDR.isValidAddress(value);
4084
4098
  };
4085
- var WorkspaceIpWhitelistEntry = z117.object({
4086
- isEnabled: z117.boolean(),
4087
- name: z117.string(),
4088
- range: z117.string().refine(isValidCIDR, {
4099
+ var WorkspaceIpWhitelistEntry = z118.object({
4100
+ isEnabled: z118.boolean(),
4101
+ name: z118.string(),
4102
+ range: z118.string().refine(isValidCIDR, {
4089
4103
  message: "Invalid IP CIDR"
4090
4104
  })
4091
4105
  });
4092
- var WorkspaceIpSettings = z117.object({
4093
- isEnabledForCloud: z117.boolean(),
4094
- isEnabledForDocs: z117.boolean(),
4095
- entries: z117.array(WorkspaceIpWhitelistEntry)
4106
+ var WorkspaceIpSettings = z118.object({
4107
+ isEnabledForCloud: z118.boolean(),
4108
+ isEnabledForDocs: z118.boolean(),
4109
+ entries: z118.array(WorkspaceIpWhitelistEntry)
4096
4110
  });
4097
- var WorkspaceProfile = z117.object({
4098
- name: z117.string(),
4099
- handle: z117.string(),
4100
- color: z117.string(),
4101
- avatar: nullishToOptional(z117.string()),
4111
+ var WorkspaceProfile = z118.object({
4112
+ name: z118.string(),
4113
+ handle: z118.string(),
4114
+ color: z118.string(),
4115
+ avatar: nullishToOptional(z118.string()),
4102
4116
  billingDetails: nullishToOptional(BillingDetails)
4103
4117
  });
4104
4118
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4105
4119
  avatar: true
4106
4120
  });
4107
- var Workspace = z117.object({
4108
- id: z117.string(),
4121
+ var Workspace = z118.object({
4122
+ id: z118.string(),
4109
4123
  profile: WorkspaceProfile,
4110
4124
  subscription: Subscription,
4111
4125
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4112
4126
  sso: nullishToOptional(SsoProvider),
4113
4127
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4114
4128
  });
4115
- var WorkspaceWithDesignSystems = z117.object({
4129
+ var WorkspaceWithDesignSystems = z118.object({
4116
4130
  workspace: Workspace,
4117
- designSystems: z117.array(DesignSystem)
4131
+ designSystems: z118.array(DesignSystem)
4118
4132
  });
4119
4133
 
4120
4134
  // src/dsm/design-system.ts
4121
- var DesignSystemSwitcher = z118.object({
4122
- isEnabled: z118.boolean(),
4123
- designSystemIds: z118.array(z118.string())
4124
- });
4125
- var DesignSystem = z118.object({
4126
- id: z118.string(),
4127
- workspaceId: z118.string(),
4128
- name: z118.string(),
4129
- description: z118.string(),
4130
- docExporterId: nullishToOptional(z118.string()),
4131
- docSlug: z118.string(),
4132
- docUserSlug: nullishToOptional(z118.string()),
4133
- docSlugDeprecated: z118.string(),
4134
- isPublic: z118.boolean(),
4135
- isMultibrand: z118.boolean(),
4136
- docViewUrl: nullishToOptional(z118.string()),
4137
- basePrefixes: z118.array(z118.string()),
4135
+ var DesignSystemSwitcher = z119.object({
4136
+ isEnabled: z119.boolean(),
4137
+ designSystemIds: z119.array(z119.string())
4138
+ });
4139
+ var DesignSystem = z119.object({
4140
+ id: z119.string(),
4141
+ workspaceId: z119.string(),
4142
+ name: z119.string(),
4143
+ description: z119.string(),
4144
+ docExporterId: nullishToOptional(z119.string()),
4145
+ docSlug: z119.string(),
4146
+ docUserSlug: nullishToOptional(z119.string()),
4147
+ docSlugDeprecated: z119.string(),
4148
+ isPublic: z119.boolean(),
4149
+ isMultibrand: z119.boolean(),
4150
+ docViewUrl: nullishToOptional(z119.string()),
4151
+ basePrefixes: z119.array(z119.string()),
4138
4152
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4139
- isApprovalFeatureEnabled: z118.boolean(),
4140
- approvalRequiredForPublishing: z118.boolean(),
4141
- createdAt: z118.coerce.date(),
4142
- updatedAt: z118.coerce.date()
4153
+ isApprovalFeatureEnabled: z119.boolean(),
4154
+ approvalRequiredForPublishing: z119.boolean(),
4155
+ createdAt: z119.coerce.date(),
4156
+ updatedAt: z119.coerce.date()
4143
4157
  });
4144
- var DesignSystemWithWorkspace = z118.object({
4158
+ var DesignSystemWithWorkspace = z119.object({
4145
4159
  designSystem: DesignSystem,
4146
4160
  workspace: Workspace
4147
4161
  });
@@ -4150,9 +4164,9 @@ var DesignSystemWithWorkspace = z118.object({
4150
4164
  var DS_NAME_MIN_LENGTH = 2;
4151
4165
  var DS_NAME_MAX_LENGTH = 64;
4152
4166
  var DS_DESC_MAX_LENGTH = 2048;
4153
- var DesignSystemUpdateInputMetadata = z119.object({
4154
- name: z119.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4155
- description: z119.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4167
+ var DesignSystemUpdateInputMetadata = z120.object({
4168
+ name: z120.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4169
+ description: z120.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4156
4170
  });
4157
4171
  var DesignSystemUpdateInput = DesignSystem.partial().omit({
4158
4172
  id: true,
@@ -4166,197 +4180,197 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
4166
4180
  });
4167
4181
 
4168
4182
  // src/dsm/desing-system-create.ts
4169
- import { z as z120 } from "zod";
4183
+ import { z as z121 } from "zod";
4170
4184
  var DS_NAME_MIN_LENGTH2 = 2;
4171
4185
  var DS_NAME_MAX_LENGTH2 = 64;
4172
4186
  var DS_DESC_MAX_LENGTH2 = 64;
4173
- var DesignSystemCreateInputMetadata = z120.object({
4174
- name: z120.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4175
- description: z120.string().max(DS_DESC_MAX_LENGTH2).trim()
4187
+ var DesignSystemCreateInputMetadata = z121.object({
4188
+ name: z121.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4189
+ description: z121.string().max(DS_DESC_MAX_LENGTH2).trim()
4176
4190
  });
4177
- var DesignSystemCreateInput = z120.object({
4191
+ var DesignSystemCreateInput = z121.object({
4178
4192
  meta: DesignSystemCreateInputMetadata,
4179
- workspaceId: z120.string(),
4180
- isPublic: z120.boolean().optional(),
4181
- basePrefixes: z120.array(z120.string()).optional(),
4182
- docUserSlug: z120.string().nullish().optional(),
4183
- source: z120.array(z120.string()).optional()
4193
+ workspaceId: z121.string(),
4194
+ isPublic: z121.boolean().optional(),
4195
+ basePrefixes: z121.array(z121.string()).optional(),
4196
+ docUserSlug: z121.string().nullish().optional(),
4197
+ source: z121.array(z121.string()).optional()
4184
4198
  });
4185
4199
 
4186
4200
  // src/dsm/exporter-property-values-collection.ts
4187
- import { z as z121 } from "zod";
4188
- var ExporterPropertyImageValue = z121.object({
4201
+ import { z as z122 } from "zod";
4202
+ var ExporterPropertyImageValue = z122.object({
4189
4203
  asset: PageBlockAsset.optional(),
4190
- assetId: z121.string().optional(),
4191
- assetUrl: z121.string().optional()
4192
- });
4193
- var ExporterPropertyValue = z121.object({
4194
- key: z121.string(),
4195
- value: z121.union([
4196
- z121.number(),
4197
- z121.string(),
4198
- z121.boolean(),
4204
+ assetId: z122.string().optional(),
4205
+ assetUrl: z122.string().optional()
4206
+ });
4207
+ var ExporterPropertyValue = z122.object({
4208
+ key: z122.string(),
4209
+ value: z122.union([
4210
+ z122.number(),
4211
+ z122.string(),
4212
+ z122.boolean(),
4199
4213
  ExporterPropertyImageValue,
4200
4214
  ColorTokenData,
4201
4215
  TypographyTokenData
4202
4216
  ])
4203
4217
  });
4204
- var ExporterPropertyValuesCollection = z121.object({
4205
- id: z121.string(),
4206
- designSystemId: z121.string(),
4207
- exporterId: z121.string(),
4208
- values: z121.array(ExporterPropertyValue)
4218
+ var ExporterPropertyValuesCollection = z122.object({
4219
+ id: z122.string(),
4220
+ designSystemId: z122.string(),
4221
+ exporterId: z122.string(),
4222
+ values: z122.array(ExporterPropertyValue)
4209
4223
  });
4210
4224
 
4211
4225
  // src/dsm/published-doc-page.ts
4212
- import { z as z122 } from "zod";
4226
+ import { z as z123 } from "zod";
4213
4227
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4214
4228
  function tryParseShortPersistentId(url = "/") {
4215
4229
  const lastUrlPart = url.split("/").pop() || "";
4216
4230
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4217
4231
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4218
4232
  }
4219
- var PublishedDocPage = z122.object({
4220
- id: z122.string(),
4221
- publishedDocId: z122.string(),
4222
- pageShortPersistentId: z122.string(),
4223
- pathV1: z122.string(),
4224
- pathV2: z122.string(),
4225
- storagePath: z122.string(),
4226
- locale: z122.string().optional(),
4227
- isPrivate: z122.boolean(),
4228
- isHidden: z122.boolean(),
4229
- createdAt: z122.coerce.date(),
4230
- updatedAt: z122.coerce.date()
4233
+ var PublishedDocPage = z123.object({
4234
+ id: z123.string(),
4235
+ publishedDocId: z123.string(),
4236
+ pageShortPersistentId: z123.string(),
4237
+ pathV1: z123.string(),
4238
+ pathV2: z123.string(),
4239
+ storagePath: z123.string(),
4240
+ locale: z123.string().optional(),
4241
+ isPrivate: z123.boolean(),
4242
+ isHidden: z123.boolean(),
4243
+ createdAt: z123.coerce.date(),
4244
+ updatedAt: z123.coerce.date()
4231
4245
  });
4232
4246
 
4233
4247
  // src/dsm/published-doc.ts
4234
- import { z as z123 } from "zod";
4248
+ import { z as z124 } from "zod";
4235
4249
  var publishedDocEnvironments = ["Live", "Preview"];
4236
- var PublishedDocEnvironment = z123.enum(publishedDocEnvironments);
4237
- var PublishedDocsChecksums = z123.record(z123.string());
4238
- var PublishedDocRoutingVersion = z123.enum(["1", "2"]);
4239
- var PublishedDoc = z123.object({
4240
- id: z123.string(),
4241
- designSystemVersionId: z123.string(),
4242
- createdAt: z123.coerce.date(),
4243
- updatedAt: z123.coerce.date(),
4244
- lastPublishedAt: z123.coerce.date(),
4245
- isDefault: z123.boolean(),
4246
- isPublic: z123.boolean(),
4250
+ var PublishedDocEnvironment = z124.enum(publishedDocEnvironments);
4251
+ var PublishedDocsChecksums = z124.record(z124.string());
4252
+ var PublishedDocRoutingVersion = z124.enum(["1", "2"]);
4253
+ var PublishedDoc = z124.object({
4254
+ id: z124.string(),
4255
+ designSystemVersionId: z124.string(),
4256
+ createdAt: z124.coerce.date(),
4257
+ updatedAt: z124.coerce.date(),
4258
+ lastPublishedAt: z124.coerce.date(),
4259
+ isDefault: z124.boolean(),
4260
+ isPublic: z124.boolean(),
4247
4261
  environment: PublishedDocEnvironment,
4248
4262
  checksums: PublishedDocsChecksums,
4249
- storagePath: z123.string(),
4250
- wasMigrated: z123.boolean(),
4263
+ storagePath: z124.string(),
4264
+ wasMigrated: z124.boolean(),
4251
4265
  routingVersion: PublishedDocRoutingVersion,
4252
- usesLocalizations: z123.boolean(),
4253
- wasPublishedWithLocalizations: z123.boolean(),
4254
- tokenCount: z123.number(),
4255
- assetCount: z123.number()
4266
+ usesLocalizations: z124.boolean(),
4267
+ wasPublishedWithLocalizations: z124.boolean(),
4268
+ tokenCount: z124.number(),
4269
+ assetCount: z124.number()
4256
4270
  });
4257
4271
 
4258
4272
  // src/dsm/version.ts
4259
- import { z as z124 } from "zod";
4260
- var DesignSystemVersion = z124.object({
4261
- id: z124.string(),
4262
- version: z124.string(),
4263
- createdAt: z124.coerce.date(),
4264
- designSystemId: z124.string(),
4265
- name: z124.string(),
4266
- comment: z124.string(),
4267
- isReadonly: z124.boolean(),
4268
- changeLog: z124.string(),
4269
- parentId: z124.string().optional(),
4270
- isDraftsFeatureAdopted: z124.boolean()
4271
- });
4272
- var VersionCreationJobStatus = z124.enum(["Success", "InProgress", "Error"]);
4273
- var VersionCreationJob = z124.object({
4274
- id: z124.string(),
4275
- version: z124.string(),
4276
- designSystemId: z124.string(),
4277
- designSystemVersionId: nullishToOptional(z124.string()),
4273
+ import { z as z125 } from "zod";
4274
+ var DesignSystemVersion = z125.object({
4275
+ id: z125.string(),
4276
+ version: z125.string(),
4277
+ createdAt: z125.coerce.date(),
4278
+ designSystemId: z125.string(),
4279
+ name: z125.string(),
4280
+ comment: z125.string(),
4281
+ isReadonly: z125.boolean(),
4282
+ changeLog: z125.string(),
4283
+ parentId: z125.string().optional(),
4284
+ isDraftsFeatureAdopted: z125.boolean()
4285
+ });
4286
+ var VersionCreationJobStatus = z125.enum(["Success", "InProgress", "Error"]);
4287
+ var VersionCreationJob = z125.object({
4288
+ id: z125.string(),
4289
+ version: z125.string(),
4290
+ designSystemId: z125.string(),
4291
+ designSystemVersionId: nullishToOptional(z125.string()),
4278
4292
  status: VersionCreationJobStatus,
4279
- errorMessage: nullishToOptional(z124.string())
4293
+ errorMessage: nullishToOptional(z125.string())
4280
4294
  });
4281
4295
 
4282
4296
  // src/export/export-destinations.ts
4283
4297
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4284
4298
  var BITBUCKET_MAX_LENGTH = 64;
4285
- var ExportJobDocumentationChanges = z125.object({
4286
- pagePersistentIds: z125.string().array(),
4287
- groupPersistentIds: z125.string().array()
4299
+ var ExportJobDocumentationChanges = z126.object({
4300
+ pagePersistentIds: z126.string().array(),
4301
+ groupPersistentIds: z126.string().array()
4288
4302
  });
4289
- var ExporterDestinationDocs = z125.object({
4303
+ var ExporterDestinationDocs = z126.object({
4290
4304
  environment: PublishedDocEnvironment,
4291
4305
  changes: nullishToOptional(ExportJobDocumentationChanges)
4292
4306
  });
4293
- var ExporterDestinationS3 = z125.object({});
4294
- var ExporterDestinationGithub = z125.object({
4295
- credentialId: z125.string().optional(),
4307
+ var ExporterDestinationS3 = z126.object({});
4308
+ var ExporterDestinationGithub = z126.object({
4309
+ credentialId: z126.string().optional(),
4296
4310
  // Repository
4297
- url: z125.string(),
4311
+ url: z126.string(),
4298
4312
  // Location
4299
- branch: z125.string(),
4300
- relativePath: nullishToOptional(z125.string()),
4313
+ branch: z126.string(),
4314
+ relativePath: nullishToOptional(z126.string()),
4301
4315
  // Commit metadata
4302
- commitAuthorName: nullishToOptional(z125.string()),
4303
- commitAuthorEmail: nullishToOptional(z125.string()),
4316
+ commitAuthorName: nullishToOptional(z126.string()),
4317
+ commitAuthorEmail: nullishToOptional(z126.string()),
4304
4318
  // Legacy deprecated fields. Use `credentialId` instead
4305
- connectionId: nullishToOptional(z125.string()),
4306
- userId: nullishToOptional(z125.number())
4319
+ connectionId: nullishToOptional(z126.string()),
4320
+ userId: nullishToOptional(z126.number())
4307
4321
  });
4308
- var ExporterDestinationAzure = z125.object({
4309
- credentialId: z125.string().optional(),
4322
+ var ExporterDestinationAzure = z126.object({
4323
+ credentialId: z126.string().optional(),
4310
4324
  // Repository
4311
- organizationId: z125.string(),
4312
- projectId: z125.string(),
4313
- repositoryId: z125.string(),
4325
+ organizationId: z126.string(),
4326
+ projectId: z126.string(),
4327
+ repositoryId: z126.string(),
4314
4328
  // Commit metadata
4315
- commitAuthorName: nullishToOptional(z125.string()),
4316
- commitAuthorEmail: nullishToOptional(z125.string()),
4329
+ commitAuthorName: nullishToOptional(z126.string()),
4330
+ commitAuthorEmail: nullishToOptional(z126.string()),
4317
4331
  // Location
4318
- branch: z125.string(),
4319
- relativePath: nullishToOptional(z125.string()),
4332
+ branch: z126.string(),
4333
+ relativePath: nullishToOptional(z126.string()),
4320
4334
  // Maybe not needed
4321
- url: nullishToOptional(z125.string()),
4335
+ url: nullishToOptional(z126.string()),
4322
4336
  // Legacy deprecated fields. Use `credentialId` instead
4323
- connectionId: nullishToOptional(z125.string()),
4324
- userId: nullishToOptional(z125.number())
4337
+ connectionId: nullishToOptional(z126.string()),
4338
+ userId: nullishToOptional(z126.number())
4325
4339
  });
4326
- var ExporterDestinationGitlab = z125.object({
4327
- credentialId: z125.string().optional(),
4340
+ var ExporterDestinationGitlab = z126.object({
4341
+ credentialId: z126.string().optional(),
4328
4342
  // Repository
4329
- projectId: z125.string(),
4343
+ projectId: z126.string(),
4330
4344
  // Commit metadata
4331
- commitAuthorName: nullishToOptional(z125.string()),
4332
- commitAuthorEmail: nullishToOptional(z125.string()),
4345
+ commitAuthorName: nullishToOptional(z126.string()),
4346
+ commitAuthorEmail: nullishToOptional(z126.string()),
4333
4347
  // Location
4334
- branch: z125.string(),
4335
- relativePath: nullishToOptional(z125.string()),
4348
+ branch: z126.string(),
4349
+ relativePath: nullishToOptional(z126.string()),
4336
4350
  // Maybe not needed
4337
- url: nullishToOptional(z125.string()),
4351
+ url: nullishToOptional(z126.string()),
4338
4352
  // Legacy deprecated fields. Use `credentialId` instead
4339
- connectionId: nullishToOptional(z125.string()),
4340
- userId: nullishToOptional(z125.number())
4353
+ connectionId: nullishToOptional(z126.string()),
4354
+ userId: nullishToOptional(z126.number())
4341
4355
  });
4342
- var ExporterDestinationBitbucket = z125.object({
4343
- credentialId: z125.string().optional(),
4356
+ var ExporterDestinationBitbucket = z126.object({
4357
+ credentialId: z126.string().optional(),
4344
4358
  // Repository
4345
- workspaceSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4346
- projectKey: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4347
- repoSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4359
+ workspaceSlug: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4360
+ projectKey: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4361
+ repoSlug: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4348
4362
  // Commit metadata
4349
- commitAuthorName: nullishToOptional(z125.string()),
4350
- commitAuthorEmail: nullishToOptional(z125.string()),
4363
+ commitAuthorName: nullishToOptional(z126.string()),
4364
+ commitAuthorEmail: nullishToOptional(z126.string()),
4351
4365
  // Location
4352
- branch: z125.string(),
4353
- relativePath: nullishToOptional(z125.string()),
4366
+ branch: z126.string(),
4367
+ relativePath: nullishToOptional(z126.string()),
4354
4368
  // Legacy deprecated fields. Use `credentialId` instead
4355
- connectionId: nullishToOptional(z125.string()),
4356
- userId: nullishToOptional(z125.number())
4369
+ connectionId: nullishToOptional(z126.string()),
4370
+ userId: nullishToOptional(z126.number())
4357
4371
  });
4358
- var ExportDestinationsMap = z125.object({
4359
- webhookUrl: z125.string().optional(),
4372
+ var ExportDestinationsMap = z126.object({
4373
+ webhookUrl: z126.string().optional(),
4360
4374
  destinationSnDocs: ExporterDestinationDocs.optional(),
4361
4375
  destinationS3: ExporterDestinationS3.optional(),
4362
4376
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4366,148 +4380,148 @@ var ExportDestinationsMap = z125.object({
4366
4380
  });
4367
4381
 
4368
4382
  // src/export/pipeline.ts
4369
- var PipelineEventType = z126.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4370
- var PipelineDestinationGitType = z126.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4371
- var PipelineDestinationExtraType = z126.enum(["WebhookUrl", "S3", "Documentation"]);
4372
- var PipelineDestinationType = z126.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4373
- var Pipeline = z126.object({
4374
- id: z126.string(),
4375
- name: z126.string(),
4383
+ var PipelineEventType = z127.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4384
+ var PipelineDestinationGitType = z127.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4385
+ var PipelineDestinationExtraType = z127.enum(["WebhookUrl", "S3", "Documentation"]);
4386
+ var PipelineDestinationType = z127.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4387
+ var Pipeline = z127.object({
4388
+ id: z127.string(),
4389
+ name: z127.string(),
4376
4390
  eventType: PipelineEventType,
4377
- isEnabled: z126.boolean(),
4378
- workspaceId: z126.string(),
4379
- designSystemId: z126.string(),
4380
- exporterId: z126.string(),
4381
- brandPersistentId: z126.string().optional(),
4382
- themePersistentId: z126.string().optional(),
4391
+ isEnabled: z127.boolean(),
4392
+ workspaceId: z127.string(),
4393
+ designSystemId: z127.string(),
4394
+ exporterId: z127.string(),
4395
+ brandPersistentId: z127.string().optional(),
4396
+ themePersistentId: z127.string().optional(),
4383
4397
  // Destinations
4384
4398
  ...ExportDestinationsMap.shape
4385
4399
  });
4386
4400
 
4387
4401
  // src/data-dumps/code-integration-dump.ts
4388
- var ExportJobDump = z127.object({
4389
- id: z127.string(),
4390
- createdAt: z127.coerce.date(),
4391
- finishedAt: z127.coerce.date(),
4392
- exportArtefacts: z127.string()
4402
+ var ExportJobDump = z128.object({
4403
+ id: z128.string(),
4404
+ createdAt: z128.coerce.date(),
4405
+ finishedAt: z128.coerce.date(),
4406
+ exportArtefacts: z128.string()
4393
4407
  });
4394
- var CodeIntegrationDump = z127.object({
4408
+ var CodeIntegrationDump = z128.object({
4395
4409
  exporters: Exporter.array(),
4396
4410
  pipelines: Pipeline.array(),
4397
4411
  exportJobs: ExportJobDump.array()
4398
4412
  });
4399
4413
 
4400
4414
  // src/data-dumps/design-system-dump.ts
4401
- import { z as z134 } from "zod";
4415
+ import { z as z135 } from "zod";
4402
4416
 
4403
4417
  // src/data-dumps/design-system-version-dump.ts
4404
- import { z as z133 } from "zod";
4418
+ import { z as z134 } from "zod";
4405
4419
 
4406
4420
  // src/liveblocks/rooms/design-system-version-room.ts
4407
- import { z as z128 } from "zod";
4421
+ import { z as z129 } from "zod";
4408
4422
  var DesignSystemVersionRoom = Entity.extend({
4409
- designSystemVersionId: z128.string(),
4410
- liveblocksId: z128.string()
4411
- });
4412
- var DesignSystemVersionRoomInternalSettings = z128.object({
4413
- routingVersion: z128.string(),
4414
- isDraftFeatureAdopted: z128.boolean(),
4415
- isApprovalFeatureEnabled: z128.boolean(),
4416
- approvalRequiredForPublishing: z128.boolean()
4417
- });
4418
- var DesignSystemVersionRoomInitialState = z128.object({
4419
- pages: z128.array(DocumentationPageV2),
4420
- groups: z128.array(ElementGroup),
4421
- pageSnapshots: z128.array(DocumentationPageSnapshot),
4422
- groupSnapshots: z128.array(ElementGroupSnapshot),
4423
- pageApprovals: z128.array(DocumentationPageApproval),
4423
+ designSystemVersionId: z129.string(),
4424
+ liveblocksId: z129.string()
4425
+ });
4426
+ var DesignSystemVersionRoomInternalSettings = z129.object({
4427
+ routingVersion: z129.string(),
4428
+ isDraftFeatureAdopted: z129.boolean(),
4429
+ isApprovalFeatureEnabled: z129.boolean(),
4430
+ approvalRequiredForPublishing: z129.boolean()
4431
+ });
4432
+ var DesignSystemVersionRoomInitialState = z129.object({
4433
+ pages: z129.array(DocumentationPageV2),
4434
+ groups: z129.array(ElementGroup),
4435
+ pageSnapshots: z129.array(DocumentationPageSnapshot),
4436
+ groupSnapshots: z129.array(ElementGroupSnapshot),
4437
+ pageApprovals: z129.array(DocumentationPageApproval),
4424
4438
  internalSettings: DesignSystemVersionRoomInternalSettings
4425
4439
  });
4426
- var DesignSystemVersionRoomUpdate = z128.object({
4427
- pages: z128.array(DocumentationPageV2),
4428
- groups: z128.array(ElementGroup),
4429
- pageIdsToDelete: z128.array(z128.string()),
4430
- groupIdsToDelete: z128.array(z128.string()),
4431
- pageSnapshots: z128.array(DocumentationPageSnapshot),
4432
- groupSnapshots: z128.array(ElementGroupSnapshot),
4433
- pageSnapshotIdsToDelete: z128.array(z128.string()),
4434
- groupSnapshotIdsToDelete: z128.array(z128.string()),
4435
- pageHashesToUpdate: z128.record(z128.string(), z128.string()),
4436
- pageApprovals: z128.array(DocumentationPageApproval),
4437
- pageApprovalIdsToDelete: z128.array(z128.string())
4440
+ var DesignSystemVersionRoomUpdate = z129.object({
4441
+ pages: z129.array(DocumentationPageV2),
4442
+ groups: z129.array(ElementGroup),
4443
+ pageIdsToDelete: z129.array(z129.string()),
4444
+ groupIdsToDelete: z129.array(z129.string()),
4445
+ pageSnapshots: z129.array(DocumentationPageSnapshot),
4446
+ groupSnapshots: z129.array(ElementGroupSnapshot),
4447
+ pageSnapshotIdsToDelete: z129.array(z129.string()),
4448
+ groupSnapshotIdsToDelete: z129.array(z129.string()),
4449
+ pageHashesToUpdate: z129.record(z129.string(), z129.string()),
4450
+ pageApprovals: z129.array(DocumentationPageApproval),
4451
+ pageApprovalIdsToDelete: z129.array(z129.string())
4438
4452
  });
4439
4453
 
4440
4454
  // src/liveblocks/rooms/documentation-page-room.ts
4441
- import { z as z129 } from "zod";
4455
+ import { z as z130 } from "zod";
4442
4456
  var DocumentationPageRoom = Entity.extend({
4443
- designSystemVersionId: z129.string(),
4444
- documentationPageId: z129.string(),
4445
- liveblocksId: z129.string(),
4446
- isDirty: z129.boolean()
4457
+ designSystemVersionId: z130.string(),
4458
+ documentationPageId: z130.string(),
4459
+ liveblocksId: z130.string(),
4460
+ isDirty: z130.boolean()
4447
4461
  });
4448
- var DocumentationPageRoomState = z129.object({
4449
- pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4462
+ var DocumentationPageRoomState = z130.object({
4463
+ pageItems: z130.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4450
4464
  itemConfiguration: DocumentationItemConfigurationV2
4451
4465
  });
4452
- var DocumentationPageRoomRoomUpdate = z129.object({
4466
+ var DocumentationPageRoomRoomUpdate = z130.object({
4453
4467
  page: DocumentationPageV2,
4454
4468
  pageParent: ElementGroup
4455
4469
  });
4456
4470
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4457
- pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4458
- blockDefinitions: z129.array(PageBlockDefinition)
4471
+ pageItems: z130.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4472
+ blockDefinitions: z130.array(PageBlockDefinition)
4459
4473
  });
4460
- var RestoredDocumentationPage = z129.object({
4474
+ var RestoredDocumentationPage = z130.object({
4461
4475
  page: DocumentationPageV2,
4462
4476
  pageParent: ElementGroup,
4463
4477
  pageContent: DocumentationPageContentData,
4464
- contentHash: z129.string(),
4465
- snapshotId: z129.string(),
4466
- roomId: z129.string().optional()
4478
+ contentHash: z130.string(),
4479
+ snapshotId: z130.string(),
4480
+ roomId: z130.string().optional()
4467
4481
  });
4468
- var RestoredDocumentationGroup = z129.object({
4482
+ var RestoredDocumentationGroup = z130.object({
4469
4483
  group: ElementGroup,
4470
4484
  parent: ElementGroup
4471
4485
  });
4472
4486
 
4473
4487
  // src/liveblocks/rooms/room-type.ts
4474
- import { z as z130 } from "zod";
4488
+ import { z as z131 } from "zod";
4475
4489
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4476
4490
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4477
4491
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4478
4492
  RoomTypeEnum2["Workspace"] = "workspace";
4479
4493
  return RoomTypeEnum2;
4480
4494
  })(RoomTypeEnum || {});
4481
- var RoomTypeSchema = z130.nativeEnum(RoomTypeEnum);
4495
+ var RoomTypeSchema = z131.nativeEnum(RoomTypeEnum);
4482
4496
  var RoomType = RoomTypeSchema.enum;
4483
4497
 
4484
4498
  // src/liveblocks/rooms/workspace-room.ts
4485
- import { z as z131 } from "zod";
4499
+ import { z as z132 } from "zod";
4486
4500
  var WorkspaceRoom = Entity.extend({
4487
- workspaceId: z131.string(),
4488
- liveblocksId: z131.string()
4501
+ workspaceId: z132.string(),
4502
+ liveblocksId: z132.string()
4489
4503
  });
4490
4504
 
4491
4505
  // src/data-dumps/published-docs-dump.ts
4492
- import { z as z132 } from "zod";
4493
- var PublishedDocsDump = z132.object({
4506
+ import { z as z133 } from "zod";
4507
+ var PublishedDocsDump = z133.object({
4494
4508
  documentation: PublishedDoc,
4495
4509
  pages: PublishedDocPage.array()
4496
4510
  });
4497
4511
 
4498
4512
  // src/data-dumps/design-system-version-dump.ts
4499
- var DocumentationThreadDump = z133.object({
4513
+ var DocumentationThreadDump = z134.object({
4500
4514
  thread: DocumentationCommentThread,
4501
4515
  comments: DocumentationComment.array()
4502
4516
  });
4503
- var DocumentationPageRoomDump = z133.object({
4517
+ var DocumentationPageRoomDump = z134.object({
4504
4518
  room: DocumentationPageRoom,
4505
4519
  threads: DocumentationThreadDump.array()
4506
4520
  });
4507
- var DesignSystemVersionMultiplayerDump = z133.object({
4521
+ var DesignSystemVersionMultiplayerDump = z134.object({
4508
4522
  documentationPages: DocumentationPageRoomDump.array()
4509
4523
  });
4510
- var DesignSystemVersionDump = z133.object({
4524
+ var DesignSystemVersionDump = z134.object({
4511
4525
  version: DesignSystemVersion,
4512
4526
  brands: Brand.array(),
4513
4527
  elements: DesignElement.array(),
@@ -4522,7 +4536,7 @@ var DesignSystemVersionDump = z133.object({
4522
4536
  });
4523
4537
 
4524
4538
  // src/data-dumps/design-system-dump.ts
4525
- var DesignSystemDump = z134.object({
4539
+ var DesignSystemDump = z135.object({
4526
4540
  designSystem: DesignSystem,
4527
4541
  dataSources: DataSource.array(),
4528
4542
  versions: DesignSystemVersionDump.array(),
@@ -4531,27 +4545,27 @@ var DesignSystemDump = z134.object({
4531
4545
  });
4532
4546
 
4533
4547
  // src/data-dumps/user-data-dump.ts
4534
- import { z as z146 } from "zod";
4548
+ import { z as z147 } from "zod";
4535
4549
 
4536
4550
  // src/users/linked-integrations.ts
4537
- import { z as z135 } from "zod";
4538
- var IntegrationAuthType = z135.union([z135.literal("OAuth2"), z135.literal("PAT")]);
4539
- var ExternalServiceType = z135.union([
4540
- z135.literal("figma"),
4541
- z135.literal("github"),
4542
- z135.literal("azure"),
4543
- z135.literal("gitlab"),
4544
- z135.literal("bitbucket")
4551
+ import { z as z136 } from "zod";
4552
+ var IntegrationAuthType = z136.union([z136.literal("OAuth2"), z136.literal("PAT")]);
4553
+ var ExternalServiceType = z136.union([
4554
+ z136.literal("figma"),
4555
+ z136.literal("github"),
4556
+ z136.literal("azure"),
4557
+ z136.literal("gitlab"),
4558
+ z136.literal("bitbucket")
4545
4559
  ]);
4546
- var IntegrationUserInfo = z135.object({
4547
- id: z135.string(),
4548
- handle: z135.string().optional(),
4549
- avatarUrl: z135.string().optional(),
4550
- email: z135.string().optional(),
4560
+ var IntegrationUserInfo = z136.object({
4561
+ id: z136.string(),
4562
+ handle: z136.string().optional(),
4563
+ avatarUrl: z136.string().optional(),
4564
+ email: z136.string().optional(),
4551
4565
  authType: IntegrationAuthType.optional(),
4552
- customUrl: z135.string().optional()
4566
+ customUrl: z136.string().optional()
4553
4567
  });
4554
- var UserLinkedIntegrations = z135.object({
4568
+ var UserLinkedIntegrations = z136.object({
4555
4569
  figma: IntegrationUserInfo.optional(),
4556
4570
  github: IntegrationUserInfo.array().optional(),
4557
4571
  azure: IntegrationUserInfo.array().optional(),
@@ -4560,46 +4574,46 @@ var UserLinkedIntegrations = z135.object({
4560
4574
  });
4561
4575
 
4562
4576
  // src/users/user-analytics-cleanup-schedule.ts
4563
- import { z as z136 } from "zod";
4564
- var UserAnalyticsCleanupSchedule = z136.object({
4565
- userId: z136.string(),
4566
- createdAt: z136.coerce.date(),
4567
- deleteAt: z136.coerce.date()
4577
+ import { z as z137 } from "zod";
4578
+ var UserAnalyticsCleanupSchedule = z137.object({
4579
+ userId: z137.string(),
4580
+ createdAt: z137.coerce.date(),
4581
+ deleteAt: z137.coerce.date()
4568
4582
  });
4569
4583
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4570
4584
  createdAt: true
4571
4585
  });
4572
4586
 
4573
4587
  // src/users/user-create.ts
4574
- import { z as z137 } from "zod";
4575
- var CreateUserInput = z137.object({
4576
- email: z137.string(),
4577
- name: z137.string(),
4578
- username: z137.string()
4588
+ import { z as z138 } from "zod";
4589
+ var CreateUserInput = z138.object({
4590
+ email: z138.string(),
4591
+ name: z138.string(),
4592
+ username: z138.string()
4579
4593
  });
4580
4594
 
4581
4595
  // src/users/user-identity.ts
4582
- import { z as z138 } from "zod";
4583
- var UserIdentity = z138.object({
4584
- id: z138.string(),
4585
- userId: z138.string()
4596
+ import { z as z139 } from "zod";
4597
+ var UserIdentity = z139.object({
4598
+ id: z139.string(),
4599
+ userId: z139.string()
4586
4600
  });
4587
4601
 
4588
4602
  // src/users/user-minified.ts
4589
- import { z as z139 } from "zod";
4590
- var UserMinified = z139.object({
4591
- id: z139.string(),
4592
- name: z139.string(),
4593
- email: z139.string(),
4594
- avatar: z139.string().optional()
4603
+ import { z as z140 } from "zod";
4604
+ var UserMinified = z140.object({
4605
+ id: z140.string(),
4606
+ name: z140.string(),
4607
+ email: z140.string(),
4608
+ avatar: z140.string().optional()
4595
4609
  });
4596
4610
 
4597
4611
  // src/users/user-notification-settings.ts
4598
- import { z as z140 } from "zod";
4599
- var LiveblocksNotificationSettings = z140.object({
4600
- sendCommentNotificationEmails: z140.boolean()
4612
+ import { z as z141 } from "zod";
4613
+ var LiveblocksNotificationSettings = z141.object({
4614
+ sendCommentNotificationEmails: z141.boolean()
4601
4615
  });
4602
- var UserNotificationSettings = z140.object({
4616
+ var UserNotificationSettings = z141.object({
4603
4617
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4604
4618
  });
4605
4619
  var defaultNotificationSettings = {
@@ -4609,27 +4623,27 @@ var defaultNotificationSettings = {
4609
4623
  };
4610
4624
 
4611
4625
  // src/users/user-profile.ts
4612
- import { z as z141 } from "zod";
4613
- var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4614
- var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4615
- var UserOnboarding = z141.object({
4616
- companyName: z141.string().optional(),
4617
- numberOfPeopleInOrg: z141.string().optional(),
4618
- numberOfPeopleInDesignTeam: z141.string().optional(),
4626
+ import { z as z142 } from "zod";
4627
+ var UserOnboardingDepartment = z142.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4628
+ var UserOnboardingJobLevel = z142.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4629
+ var UserOnboarding = z142.object({
4630
+ companyName: z142.string().optional(),
4631
+ numberOfPeopleInOrg: z142.string().optional(),
4632
+ numberOfPeopleInDesignTeam: z142.string().optional(),
4619
4633
  department: UserOnboardingDepartment.optional(),
4620
- jobTitle: z141.string().optional(),
4621
- phase: z141.string().optional(),
4634
+ jobTitle: z142.string().optional(),
4635
+ phase: z142.string().optional(),
4622
4636
  jobLevel: UserOnboardingJobLevel.optional(),
4623
- designSystemName: z141.string().optional(),
4624
- defaultDestination: z141.string().optional(),
4625
- figmaUrl: z141.string().optional(),
4626
- isPageDraftOnboardingFinished: z141.boolean().optional(),
4627
- isApprovalsOnboardingFinished: z141.boolean().optional()
4628
- });
4629
- var UserProfile = z141.object({
4630
- name: z141.string(),
4631
- avatar: z141.string().optional(),
4632
- nickname: z141.string().optional(),
4637
+ designSystemName: z142.string().optional(),
4638
+ defaultDestination: z142.string().optional(),
4639
+ figmaUrl: z142.string().optional(),
4640
+ isPageDraftOnboardingFinished: z142.boolean().optional(),
4641
+ isApprovalsOnboardingFinished: z142.boolean().optional()
4642
+ });
4643
+ var UserProfile = z142.object({
4644
+ name: z142.string(),
4645
+ avatar: z142.string().optional(),
4646
+ nickname: z142.string().optional(),
4633
4647
  onboarding: UserOnboarding.optional()
4634
4648
  });
4635
4649
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4637,68 +4651,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
4637
4651
  });
4638
4652
 
4639
4653
  // src/users/user-test.ts
4640
- import { z as z142 } from "zod";
4641
- var UserTest = z142.object({
4642
- id: z142.string(),
4643
- email: z142.string()
4654
+ import { z as z143 } from "zod";
4655
+ var UserTest = z143.object({
4656
+ id: z143.string(),
4657
+ email: z143.string()
4644
4658
  });
4645
4659
 
4646
4660
  // src/users/user.ts
4647
- import { z as z143 } from "zod";
4648
- var User = z143.object({
4649
- id: z143.string(),
4650
- email: z143.string(),
4651
- emailVerified: z143.boolean(),
4652
- createdAt: z143.coerce.date(),
4653
- trialExpiresAt: z143.coerce.date().optional(),
4661
+ import { z as z144 } from "zod";
4662
+ var User = z144.object({
4663
+ id: z144.string(),
4664
+ email: z144.string(),
4665
+ emailVerified: z144.boolean(),
4666
+ createdAt: z144.coerce.date(),
4667
+ trialExpiresAt: z144.coerce.date().optional(),
4654
4668
  profile: UserProfile,
4655
4669
  linkedIntegrations: UserLinkedIntegrations.optional(),
4656
- loggedOutAt: z143.coerce.date().optional(),
4657
- isProtected: z143.boolean()
4670
+ loggedOutAt: z144.coerce.date().optional(),
4671
+ isProtected: z144.boolean()
4658
4672
  });
4659
4673
 
4660
4674
  // src/data-dumps/workspace-dump.ts
4661
- import { z as z145 } from "zod";
4675
+ import { z as z146 } from "zod";
4662
4676
 
4663
4677
  // src/integrations/integration.ts
4664
- import { z as z144 } from "zod";
4665
- var IntegrationDesignSystem = z144.object({
4666
- designSystemId: z144.string(),
4667
- brandId: z144.string(),
4668
- title: z144.string().optional(),
4669
- userId: z144.string().optional(),
4670
- date: z144.coerce.date().optional()
4671
- });
4672
- var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
4673
- var IntegrationCredentialsState = z144.enum(["Active", "Inactive"]);
4674
- var IntegrationCredentialsProfile = z144.object({
4675
- id: nullishToOptional(z144.string()),
4676
- email: nullishToOptional(z144.string()),
4677
- handle: nullishToOptional(z144.string()),
4678
- type: nullishToOptional(z144.string()),
4679
- avatarUrl: nullishToOptional(z144.string()),
4680
- organization: nullishToOptional(z144.string()),
4681
- collection: nullishToOptional(z144.string())
4682
- });
4683
- var IntegrationCredentials = z144.object({
4684
- id: z144.string(),
4678
+ import { z as z145 } from "zod";
4679
+ var IntegrationDesignSystem = z145.object({
4680
+ designSystemId: z145.string(),
4681
+ brandId: z145.string(),
4682
+ title: z145.string().optional(),
4683
+ userId: z145.string().optional(),
4684
+ date: z145.coerce.date().optional()
4685
+ });
4686
+ var IntegrationCredentialsType = z145.enum(["OAuth2", "PAT", "GithubApp"]);
4687
+ var IntegrationCredentialsState = z145.enum(["Active", "Inactive"]);
4688
+ var IntegrationCredentialsProfile = z145.object({
4689
+ id: nullishToOptional(z145.string()),
4690
+ email: nullishToOptional(z145.string()),
4691
+ handle: nullishToOptional(z145.string()),
4692
+ type: nullishToOptional(z145.string()),
4693
+ avatarUrl: nullishToOptional(z145.string()),
4694
+ organization: nullishToOptional(z145.string()),
4695
+ collection: nullishToOptional(z145.string())
4696
+ });
4697
+ var IntegrationCredentials = z145.object({
4698
+ id: z145.string(),
4685
4699
  type: IntegrationCredentialsType,
4686
- integrationId: z144.string(),
4687
- accessToken: z144.string(),
4688
- userId: z144.string(),
4689
- createdAt: z144.coerce.date(),
4690
- refreshToken: z144.string().optional(),
4691
- tokenName: z144.string().optional(),
4692
- expiresAt: z144.coerce.date().optional(),
4693
- refreshedAt: z144.coerce.date().optional(),
4694
- username: z144.string().optional(),
4695
- appInstallationId: z144.string().optional(),
4700
+ integrationId: z145.string(),
4701
+ accessToken: z145.string(),
4702
+ userId: z145.string(),
4703
+ createdAt: z145.coerce.date(),
4704
+ refreshToken: z145.string().optional(),
4705
+ tokenName: z145.string().optional(),
4706
+ expiresAt: z145.coerce.date().optional(),
4707
+ refreshedAt: z145.coerce.date().optional(),
4708
+ username: z145.string().optional(),
4709
+ appInstallationId: z145.string().optional(),
4696
4710
  profile: IntegrationCredentialsProfile.optional(),
4697
- customUrl: z144.string().optional(),
4711
+ customUrl: z145.string().optional(),
4698
4712
  state: IntegrationCredentialsState,
4699
4713
  user: UserMinified.optional()
4700
4714
  });
4701
- var ExtendedIntegrationType = z144.enum([
4715
+ var ExtendedIntegrationType = z145.enum([
4702
4716
  "Figma",
4703
4717
  "Github",
4704
4718
  "Gitlab",
@@ -4709,26 +4723,26 @@ var ExtendedIntegrationType = z144.enum([
4709
4723
  ]);
4710
4724
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4711
4725
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4712
- var Integration = z144.object({
4713
- id: z144.string(),
4714
- workspaceId: z144.string(),
4726
+ var Integration = z145.object({
4727
+ id: z145.string(),
4728
+ workspaceId: z145.string(),
4715
4729
  type: IntegrationType,
4716
- createdAt: z144.coerce.date(),
4717
- integrationCredentials: z144.array(IntegrationCredentials).optional()
4718
- });
4719
- var IntegrationToken = z144.object({
4720
- access_token: z144.string(),
4721
- refresh_token: z144.string().optional(),
4722
- expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
4723
- token_type: z144.string().optional(),
4724
- token_name: z144.string().optional(),
4725
- token_azure_organization_name: z144.string().optional(),
4730
+ createdAt: z145.coerce.date(),
4731
+ integrationCredentials: z145.array(IntegrationCredentials).optional()
4732
+ });
4733
+ var IntegrationToken = z145.object({
4734
+ access_token: z145.string(),
4735
+ refresh_token: z145.string().optional(),
4736
+ expires_in: z145.union([z145.number().optional(), z145.string().optional()]),
4737
+ token_type: z145.string().optional(),
4738
+ token_name: z145.string().optional(),
4739
+ token_azure_organization_name: z145.string().optional(),
4726
4740
  // Azure Cloud PAT only
4727
- token_azure_collection_name: z144.string().optional(),
4741
+ token_azure_collection_name: z145.string().optional(),
4728
4742
  // Azure Server PAT only
4729
- token_bitbucket_username: z144.string().optional(),
4743
+ token_bitbucket_username: z145.string().optional(),
4730
4744
  // Bitbucket only
4731
- custom_url: z144.string().optional().transform((value) => {
4745
+ custom_url: z145.string().optional().transform((value) => {
4732
4746
  if (!value?.trim())
4733
4747
  return void 0;
4734
4748
  return formatCustomUrl(value);
@@ -4766,7 +4780,7 @@ function formatCustomUrl(url) {
4766
4780
  }
4767
4781
 
4768
4782
  // src/data-dumps/workspace-dump.ts
4769
- var WorkspaceDump = z145.object({
4783
+ var WorkspaceDump = z146.object({
4770
4784
  workspace: Workspace,
4771
4785
  designSystems: DesignSystemDump.array(),
4772
4786
  codeIntegration: CodeIntegrationDump,
@@ -4774,93 +4788,93 @@ var WorkspaceDump = z145.object({
4774
4788
  });
4775
4789
 
4776
4790
  // src/data-dumps/user-data-dump.ts
4777
- var UserDump = z146.object({
4791
+ var UserDump = z147.object({
4778
4792
  user: User,
4779
4793
  workspaces: WorkspaceDump.array()
4780
4794
  });
4781
4795
 
4782
4796
  // src/docs-server/session.ts
4783
- import { z as z147 } from "zod";
4784
- var NpmProxyToken = z147.object({
4785
- access: z147.string(),
4786
- expiresAt: z147.number()
4797
+ import { z as z148 } from "zod";
4798
+ var NpmProxyToken = z148.object({
4799
+ access: z148.string(),
4800
+ expiresAt: z148.number()
4787
4801
  });
4788
- var SessionData = z147.object({
4789
- returnToUrl: z147.string().optional(),
4802
+ var SessionData = z148.object({
4803
+ returnToUrl: z148.string().optional(),
4790
4804
  npmProxyToken: NpmProxyToken.optional()
4791
4805
  });
4792
- var Session = z147.object({
4793
- id: z147.string(),
4794
- expiresAt: z147.coerce.date(),
4795
- userId: z147.string().nullable(),
4806
+ var Session = z148.object({
4807
+ id: z148.string(),
4808
+ expiresAt: z148.coerce.date(),
4809
+ userId: z148.string().nullable(),
4796
4810
  data: SessionData
4797
4811
  });
4798
- var AuthTokens = z147.object({
4799
- access: z147.string(),
4800
- refresh: z147.string()
4812
+ var AuthTokens = z148.object({
4813
+ access: z148.string(),
4814
+ refresh: z148.string()
4801
4815
  });
4802
- var UserSession = z147.object({
4816
+ var UserSession = z148.object({
4803
4817
  session: Session,
4804
4818
  user: User.nullable()
4805
4819
  });
4806
4820
 
4807
4821
  // src/events/base.ts
4808
- import { z as z150 } from "zod";
4822
+ import { z as z151 } from "zod";
4809
4823
 
4810
4824
  // src/events/data-source-imported.ts
4811
- import { z as z148 } from "zod";
4812
- var EventDataSourceImported = z148.object({
4813
- type: z148.literal("DataSourceImported"),
4814
- workspaceId: z148.string(),
4815
- designSystemId: z148.string()
4825
+ import { z as z149 } from "zod";
4826
+ var EventDataSourceImported = z149.object({
4827
+ type: z149.literal("DataSourceImported"),
4828
+ workspaceId: z149.string(),
4829
+ designSystemId: z149.string()
4816
4830
  });
4817
4831
 
4818
4832
  // src/events/version-released.ts
4819
- import { z as z149 } from "zod";
4820
- var EventVersionReleased = z149.object({
4821
- type: z149.literal("DesignSystemVersionReleased"),
4822
- workspaceId: z149.string(),
4823
- designSystemId: z149.string(),
4824
- versionId: z149.string()
4833
+ import { z as z150 } from "zod";
4834
+ var EventVersionReleased = z150.object({
4835
+ type: z150.literal("DesignSystemVersionReleased"),
4836
+ workspaceId: z150.string(),
4837
+ designSystemId: z150.string(),
4838
+ versionId: z150.string()
4825
4839
  });
4826
4840
 
4827
4841
  // src/events/base.ts
4828
- var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4842
+ var Event = z151.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4829
4843
 
4830
4844
  // src/export/export-runner/export-context.ts
4831
- import { z as z151 } from "zod";
4832
- var ExportJobDocumentationContext = z151.object({
4833
- isSingleVersionDocs: z151.boolean(),
4834
- versionSlug: z151.string(),
4845
+ import { z as z152 } from "zod";
4846
+ var ExportJobDocumentationContext = z152.object({
4847
+ isSingleVersionDocs: z152.boolean(),
4848
+ versionSlug: z152.string(),
4835
4849
  environment: PublishedDocEnvironment
4836
4850
  });
4837
- var ExportJobContext = z151.object({
4838
- apiUrl: z151.string(),
4839
- accessToken: z151.string(),
4840
- designSystemId: z151.string(),
4841
- designSystemName: z151.string(),
4842
- exporterId: z151.string(),
4843
- versionId: z151.string(),
4844
- brandId: z151.string().optional(),
4845
- themeId: z151.string().optional(),
4846
- exporterName: z151.string(),
4847
- exporterPackageUrl: z151.string(),
4851
+ var ExportJobContext = z152.object({
4852
+ apiUrl: z152.string(),
4853
+ accessToken: z152.string(),
4854
+ designSystemId: z152.string(),
4855
+ designSystemName: z152.string(),
4856
+ exporterId: z152.string(),
4857
+ versionId: z152.string(),
4858
+ brandId: z152.string().optional(),
4859
+ themeId: z152.string().optional(),
4860
+ exporterName: z152.string(),
4861
+ exporterPackageUrl: z152.string(),
4848
4862
  exporterPropertyValues: ExporterPropertyValue.array(),
4849
4863
  documentation: ExportJobDocumentationContext.optional()
4850
4864
  });
4851
4865
 
4852
4866
  // src/export/export-runner/exporter-payload.ts
4853
- import { z as z152 } from "zod";
4854
- var ExporterFunctionPayload = z152.object({
4855
- exportJobId: z152.string(),
4856
- exportContextId: z152.string(),
4857
- designSystemId: z152.string(),
4858
- workspaceId: z152.string()
4867
+ import { z as z153 } from "zod";
4868
+ var ExporterFunctionPayload = z153.object({
4869
+ exportJobId: z153.string(),
4870
+ exportContextId: z153.string(),
4871
+ designSystemId: z153.string(),
4872
+ workspaceId: z153.string()
4859
4873
  });
4860
4874
 
4861
4875
  // src/export/export-jobs.ts
4862
- import { z as z153 } from "zod";
4863
- var ExportJobDestinationType = z153.enum([
4876
+ import { z as z154 } from "zod";
4877
+ var ExportJobDestinationType = z154.enum([
4864
4878
  "s3",
4865
4879
  "webhookUrl",
4866
4880
  "github",
@@ -4869,30 +4883,30 @@ var ExportJobDestinationType = z153.enum([
4869
4883
  "gitlab",
4870
4884
  "bitbucket"
4871
4885
  ]);
4872
- var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4873
- var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4874
- var ExportJobLogEntry = z153.object({
4875
- id: z153.string().optional(),
4876
- time: z153.coerce.date(),
4886
+ var ExportJobStatus = z154.enum(["InProgress", "Success", "Failed", "Timeout"]);
4887
+ var ExportJobLogEntryType = z154.enum(["success", "info", "warning", "error", "user"]);
4888
+ var ExportJobLogEntry = z154.object({
4889
+ id: z154.string().optional(),
4890
+ time: z154.coerce.date(),
4877
4891
  type: ExportJobLogEntryType,
4878
- message: z153.string()
4892
+ message: z154.string()
4879
4893
  });
4880
- var ExportJobPullRequestDestinationResult = z153.object({
4881
- pullRequestUrl: z153.string()
4894
+ var ExportJobPullRequestDestinationResult = z154.object({
4895
+ pullRequestUrl: z154.string()
4882
4896
  });
4883
- var ExportJobS3DestinationResult = z153.object({
4884
- bucket: z153.string(),
4885
- urlPrefix: z153.string().optional(),
4886
- path: z153.string(),
4887
- files: z153.array(z153.string()),
4888
- url: nullishToOptional(z153.string()),
4889
- urls: nullishToOptional(z153.string().array())
4897
+ var ExportJobS3DestinationResult = z154.object({
4898
+ bucket: z154.string(),
4899
+ urlPrefix: z154.string().optional(),
4900
+ path: z154.string(),
4901
+ files: z154.array(z154.string()),
4902
+ url: nullishToOptional(z154.string()),
4903
+ urls: nullishToOptional(z154.string().array())
4890
4904
  });
4891
- var ExportJobDocsDestinationResult = z153.object({
4892
- url: z153.string()
4905
+ var ExportJobDocsDestinationResult = z154.object({
4906
+ url: z154.string()
4893
4907
  });
4894
- var ExportJobResult = z153.object({
4895
- error: z153.string().optional(),
4908
+ var ExportJobResult = z154.object({
4909
+ error: z154.string().optional(),
4896
4910
  s3: nullishToOptional(ExportJobS3DestinationResult),
4897
4911
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4898
4912
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4901,21 +4915,21 @@ var ExportJobResult = z153.object({
4901
4915
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4902
4916
  logs: nullishToOptional(ExportJobLogEntry.array())
4903
4917
  });
4904
- var ExportJob = z153.object({
4905
- id: z153.string(),
4906
- createdAt: z153.coerce.date(),
4907
- finishedAt: z153.coerce.date().optional(),
4908
- designSystemId: z153.string(),
4909
- designSystemVersionId: z153.string(),
4910
- workspaceId: z153.string(),
4911
- scheduleId: z153.string().nullish(),
4912
- exporterId: z153.string(),
4913
- brandId: z153.string().optional(),
4914
- themeId: z153.string().optional(),
4915
- estimatedExecutionTime: z153.number().optional(),
4918
+ var ExportJob = z154.object({
4919
+ id: z154.string(),
4920
+ createdAt: z154.coerce.date(),
4921
+ finishedAt: z154.coerce.date().optional(),
4922
+ designSystemId: z154.string(),
4923
+ designSystemVersionId: z154.string(),
4924
+ workspaceId: z154.string(),
4925
+ scheduleId: z154.string().nullish(),
4926
+ exporterId: z154.string(),
4927
+ brandId: z154.string().optional(),
4928
+ themeId: z154.string().optional(),
4929
+ estimatedExecutionTime: z154.number().optional(),
4916
4930
  status: ExportJobStatus,
4917
4931
  result: ExportJobResult.optional(),
4918
- createdByUserId: z153.string().optional(),
4932
+ createdByUserId: z154.string().optional(),
4919
4933
  // Destinations
4920
4934
  ...ExportDestinationsMap.shape
4921
4935
  });
@@ -4929,40 +4943,40 @@ var ExportJobFindByFilter = ExportJob.pick({
4929
4943
  themeId: true,
4930
4944
  brandId: true
4931
4945
  }).extend({
4932
- destinations: z153.array(ExportJobDestinationType),
4946
+ destinations: z154.array(ExportJobDestinationType),
4933
4947
  docsEnvironment: PublishedDocEnvironment
4934
4948
  }).partial();
4935
4949
 
4936
4950
  // src/export/exporter-workspace-membership-role.ts
4937
- import { z as z154 } from "zod";
4938
- var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4951
+ import { z as z155 } from "zod";
4952
+ var ExporterWorkspaceMembershipRole = z155.enum(["Owner", "OwnerArchived", "User"]);
4939
4953
 
4940
4954
  // src/export/exporter-workspace-membership.ts
4941
- import { z as z155 } from "zod";
4942
- var ExporterWorkspaceMembership = z155.object({
4943
- id: z155.string(),
4944
- workspaceId: z155.string(),
4945
- exporterId: z155.string(),
4955
+ import { z as z156 } from "zod";
4956
+ var ExporterWorkspaceMembership = z156.object({
4957
+ id: z156.string(),
4958
+ workspaceId: z156.string(),
4959
+ exporterId: z156.string(),
4946
4960
  role: ExporterWorkspaceMembershipRole
4947
4961
  });
4948
4962
 
4949
4963
  // src/feature-flags/feature-flags.ts
4950
- import { z as z156 } from "zod";
4951
- var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4952
- var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4953
- var FeatureFlag = z156.object({
4954
- id: z156.string(),
4964
+ import { z as z157 } from "zod";
4965
+ var FlaggedFeature = z157.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4966
+ var FeatureFlagMap = z157.record(FlaggedFeature, z157.boolean());
4967
+ var FeatureFlag = z157.object({
4968
+ id: z157.string(),
4955
4969
  feature: FlaggedFeature,
4956
- createdAt: z156.coerce.date(),
4957
- enabled: z156.boolean(),
4958
- designSystemId: z156.string().optional()
4970
+ createdAt: z157.coerce.date(),
4971
+ enabled: z157.boolean(),
4972
+ designSystemId: z157.string().optional()
4959
4973
  });
4960
4974
 
4961
4975
  // src/integrations/external-oauth-request.ts
4962
- import { z as z158 } from "zod";
4976
+ import { z as z159 } from "zod";
4963
4977
 
4964
4978
  // src/integrations/oauth-providers.ts
4965
- import { z as z157 } from "zod";
4979
+ import { z as z158 } from "zod";
4966
4980
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4967
4981
  OAuthProviderNames2["Figma"] = "figma";
4968
4982
  OAuthProviderNames2["Azure"] = "azure";
@@ -4971,137 +4985,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4971
4985
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4972
4986
  return OAuthProviderNames2;
4973
4987
  })(OAuthProviderNames || {});
4974
- var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
4988
+ var OAuthProviderSchema = z158.nativeEnum(OAuthProviderNames);
4975
4989
  var OAuthProvider = OAuthProviderSchema.enum;
4976
4990
 
4977
4991
  // src/integrations/external-oauth-request.ts
4978
- var ExternalOAuthRequest = z158.object({
4979
- id: z158.string(),
4992
+ var ExternalOAuthRequest = z159.object({
4993
+ id: z159.string(),
4980
4994
  provider: OAuthProviderSchema,
4981
- userId: z158.string(),
4982
- state: z158.string(),
4983
- createdAt: z158.coerce.date()
4995
+ userId: z159.string(),
4996
+ state: z159.string(),
4997
+ createdAt: z159.coerce.date()
4984
4998
  });
4985
4999
 
4986
5000
  // src/integrations/git.ts
4987
- import { z as z159 } from "zod";
4988
- var GitObjectsQuery = z159.object({
4989
- organization: z159.string().optional(),
5001
+ import { z as z160 } from "zod";
5002
+ var GitObjectsQuery = z160.object({
5003
+ organization: z160.string().optional(),
4990
5004
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4991
- project: z159.string().optional(),
5005
+ project: z160.string().optional(),
4992
5006
  // Only for Bitbucket and Azure
4993
- repository: z159.string().optional(),
5007
+ repository: z160.string().optional(),
4994
5008
  // For all providers. For Gitlab, it's called "project".
4995
- branch: z159.string().optional(),
5009
+ branch: z160.string().optional(),
4996
5010
  // For all providers.
4997
- user: z159.string().optional()
5011
+ user: z160.string().optional()
4998
5012
  // Gitlab user
4999
5013
  });
5000
- var GitOrganization = z159.object({
5001
- id: z159.string(),
5002
- name: z159.string(),
5003
- url: z159.string(),
5004
- slug: z159.string()
5014
+ var GitOrganization = z160.object({
5015
+ id: z160.string(),
5016
+ name: z160.string(),
5017
+ url: z160.string(),
5018
+ slug: z160.string()
5005
5019
  });
5006
- var GitProject = z159.object({
5007
- id: z159.string(),
5008
- name: z159.string(),
5009
- url: z159.string(),
5010
- slug: z159.string()
5020
+ var GitProject = z160.object({
5021
+ id: z160.string(),
5022
+ name: z160.string(),
5023
+ url: z160.string(),
5024
+ slug: z160.string()
5011
5025
  });
5012
- var GitRepository = z159.object({
5013
- id: z159.string(),
5014
- name: z159.string(),
5015
- url: z159.string(),
5016
- slug: z159.string(),
5026
+ var GitRepository = z160.object({
5027
+ id: z160.string(),
5028
+ name: z160.string(),
5029
+ url: z160.string(),
5030
+ slug: z160.string(),
5017
5031
  /**
5018
5032
  * Can be undefined when:
5019
5033
  * - there are no branches in the repository yet
5020
5034
  * - Git provider doesn't expose this information on a repository via their API
5021
5035
  */
5022
- defaultBranch: z159.string().optional()
5036
+ defaultBranch: z160.string().optional()
5023
5037
  });
5024
- var GitBranch = z159.object({
5025
- name: z159.string(),
5026
- lastCommitId: z159.string()
5038
+ var GitBranch = z160.object({
5039
+ name: z160.string(),
5040
+ lastCommitId: z160.string()
5027
5041
  });
5028
5042
 
5029
5043
  // src/integrations/oauth-token.ts
5030
- import { z as z160 } from "zod";
5031
- var IntegrationTokenSchemaOld = z160.object({
5032
- id: z160.string(),
5044
+ import { z as z161 } from "zod";
5045
+ var IntegrationTokenSchemaOld = z161.object({
5046
+ id: z161.string(),
5033
5047
  provider: OAuthProviderSchema,
5034
- scope: z160.string(),
5035
- userId: z160.string(),
5036
- accessToken: z160.string(),
5037
- refreshToken: z160.string(),
5038
- expiresAt: z160.coerce.date(),
5039
- externalUserId: z160.string().nullish()
5048
+ scope: z161.string(),
5049
+ userId: z161.string(),
5050
+ accessToken: z161.string(),
5051
+ refreshToken: z161.string(),
5052
+ expiresAt: z161.coerce.date(),
5053
+ externalUserId: z161.string().nullish()
5040
5054
  });
5041
5055
 
5042
5056
  // src/integrations/workspace-oauth-requests.ts
5043
- import { z as z161 } from "zod";
5044
- var WorkspaceOAuthRequestSchema = z161.object({
5045
- id: z161.string(),
5046
- workspaceId: z161.string(),
5057
+ import { z as z162 } from "zod";
5058
+ var WorkspaceOAuthRequestSchema = z162.object({
5059
+ id: z162.string(),
5060
+ workspaceId: z162.string(),
5047
5061
  provider: OAuthProviderSchema,
5048
- userId: z161.string(),
5049
- createdAt: z161.coerce.date()
5062
+ userId: z162.string(),
5063
+ createdAt: z162.coerce.date()
5050
5064
  });
5051
5065
 
5052
5066
  // src/npm/npm-package.ts
5053
- import { z as z162 } from "zod";
5054
- var AnyRecord = z162.record(z162.any());
5067
+ import { z as z163 } from "zod";
5068
+ var AnyRecord = z163.record(z163.any());
5055
5069
  var NpmPackageVersionDist = AnyRecord.and(
5056
- z162.object({
5057
- tarball: z162.string()
5070
+ z163.object({
5071
+ tarball: z163.string()
5058
5072
  })
5059
5073
  );
5060
5074
  var NpmPackageVersion = AnyRecord.and(
5061
- z162.object({
5075
+ z163.object({
5062
5076
  dist: NpmPackageVersionDist
5063
5077
  })
5064
5078
  );
5065
5079
  var NpmPackage = AnyRecord.and(
5066
- z162.object({
5067
- _id: z162.string(),
5068
- name: z162.string(),
5080
+ z163.object({
5081
+ _id: z163.string(),
5082
+ name: z163.string(),
5069
5083
  // e.g. "latest": "1.2.3"
5070
- "dist-tags": z162.record(z162.string(), z162.string()),
5084
+ "dist-tags": z163.record(z163.string(), z163.string()),
5071
5085
  // "1.2.3": {...}
5072
- versions: z162.record(NpmPackageVersion)
5086
+ versions: z163.record(NpmPackageVersion)
5073
5087
  })
5074
5088
  );
5075
5089
 
5076
5090
  // src/npm/npm-proxy-token-payload.ts
5077
- import { z as z163 } from "zod";
5078
- var NpmProxyTokenPayload = z163.object({
5079
- npmProxyRegistryConfigId: z163.string()
5091
+ import { z as z164 } from "zod";
5092
+ var NpmProxyTokenPayload = z164.object({
5093
+ npmProxyRegistryConfigId: z164.string()
5080
5094
  });
5081
5095
 
5082
5096
  // src/tokens/personal-access-token.ts
5083
- import { z as z171 } from "zod";
5097
+ import { z as z172 } from "zod";
5084
5098
 
5085
5099
  // src/workspace/user-invite.ts
5086
- import { z as z165 } from "zod";
5100
+ import { z as z166 } from "zod";
5087
5101
 
5088
5102
  // src/workspace/workspace-role.ts
5089
- import { z as z164 } from "zod";
5090
- var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5103
+ import { z as z165 } from "zod";
5104
+ var WorkspaceRoleSchema = z165.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5091
5105
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5092
5106
 
5093
5107
  // src/workspace/user-invite.ts
5094
5108
  var MAX_MEMBERS_COUNT = 100;
5095
- var UserInvite = z165.object({
5096
- email: z165.string().email().trim().transform((value) => value.toLowerCase()),
5109
+ var UserInvite = z166.object({
5110
+ email: z166.string().email().trim().transform((value) => value.toLowerCase()),
5097
5111
  role: WorkspaceRoleSchema
5098
5112
  });
5099
- var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
5113
+ var UserInvites = z166.array(UserInvite).max(MAX_MEMBERS_COUNT);
5100
5114
 
5101
5115
  // src/workspace/workspace-configuration.ts
5102
- import { z as z166 } from "zod";
5103
- var WorkspaceConfigurationUpdate = z166.object({
5104
- id: z166.string(),
5116
+ import { z as z167 } from "zod";
5117
+ var WorkspaceConfigurationUpdate = z167.object({
5118
+ id: z167.string(),
5105
5119
  ipWhitelist: WorkspaceIpSettings.optional(),
5106
5120
  sso: SsoProvider.optional(),
5107
5121
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5109,32 +5123,32 @@ var WorkspaceConfigurationUpdate = z166.object({
5109
5123
  });
5110
5124
 
5111
5125
  // src/workspace/workspace-context.ts
5112
- import { z as z167 } from "zod";
5113
- var WorkspaceContext = z167.object({
5114
- workspaceId: z167.string(),
5126
+ import { z as z168 } from "zod";
5127
+ var WorkspaceContext = z168.object({
5128
+ workspaceId: z168.string(),
5115
5129
  product: ProductCodeSchema,
5116
5130
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5117
- publicDesignSystem: z167.boolean().optional()
5131
+ publicDesignSystem: z168.boolean().optional()
5118
5132
  });
5119
5133
 
5120
5134
  // src/workspace/workspace-create.ts
5121
- import { z as z168 } from "zod";
5135
+ import { z as z169 } from "zod";
5122
5136
  var WORKSPACE_NAME_MIN_LENGTH = 2;
5123
5137
  var WORKSPACE_NAME_MAX_LENGTH = 64;
5124
5138
  var HANDLE_MIN_LENGTH = 2;
5125
5139
  var HANDLE_MAX_LENGTH = 64;
5126
- var CreateWorkspaceInput = z168.object({
5127
- name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5140
+ var CreateWorkspaceInput = z169.object({
5141
+ name: z169.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5128
5142
  product: ProductCodeSchema,
5129
- priceId: z168.string(),
5130
- billingEmail: z168.string().email().optional(),
5131
- handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5143
+ priceId: z169.string(),
5144
+ billingEmail: z169.string().email().optional(),
5145
+ handle: z169.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5132
5146
  invites: UserInvites.optional(),
5133
- promoCode: z168.string().optional(),
5147
+ promoCode: z169.string().optional(),
5134
5148
  status: InternalStatusSchema.optional(),
5135
5149
  planInterval: BillingIntervalSchema.optional(),
5136
- seats: z168.number().optional(),
5137
- seatLimit: z168.number().optional(),
5150
+ seats: z169.number().optional(),
5151
+ seatLimit: z169.number().optional(),
5138
5152
  card: CardSchema.optional(),
5139
5153
  sso: SsoProvider.optional(),
5140
5154
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5142,47 +5156,47 @@ var CreateWorkspaceInput = z168.object({
5142
5156
  });
5143
5157
 
5144
5158
  // src/workspace/workspace-invitations.ts
5145
- import { z as z169 } from "zod";
5146
- var WorkspaceInvitation = z169.object({
5147
- id: z169.string(),
5148
- email: z169.string().email(),
5149
- createdAt: z169.coerce.date(),
5150
- resentAt: z169.coerce.date().nullish(),
5151
- role: z169.nativeEnum(WorkspaceRole),
5152
- workspaceId: z169.string(),
5153
- invitedBy: z169.string()
5154
- });
5155
-
5156
- // src/workspace/workspace-membership.ts
5157
5159
  import { z as z170 } from "zod";
5158
- var WorkspaceMembership = z170.object({
5160
+ var WorkspaceInvitation = z170.object({
5159
5161
  id: z170.string(),
5160
- userId: z170.string(),
5162
+ email: z170.string().email(),
5163
+ createdAt: z170.coerce.date(),
5164
+ resentAt: z170.coerce.date().nullish(),
5165
+ role: z170.nativeEnum(WorkspaceRole),
5161
5166
  workspaceId: z170.string(),
5162
- workspaceRole: z170.nativeEnum(WorkspaceRole),
5167
+ invitedBy: z170.string()
5168
+ });
5169
+
5170
+ // src/workspace/workspace-membership.ts
5171
+ import { z as z171 } from "zod";
5172
+ var WorkspaceMembership = z171.object({
5173
+ id: z171.string(),
5174
+ userId: z171.string(),
5175
+ workspaceId: z171.string(),
5176
+ workspaceRole: z171.nativeEnum(WorkspaceRole),
5163
5177
  notificationSettings: UserNotificationSettings
5164
5178
  });
5165
- var UpdateMembershipRolesInput = z170.object({
5166
- members: z170.array(
5167
- z170.object({
5168
- userId: z170.string(),
5169
- role: z170.nativeEnum(WorkspaceRole)
5179
+ var UpdateMembershipRolesInput = z171.object({
5180
+ members: z171.array(
5181
+ z171.object({
5182
+ userId: z171.string(),
5183
+ role: z171.nativeEnum(WorkspaceRole)
5170
5184
  })
5171
5185
  )
5172
5186
  });
5173
5187
 
5174
5188
  // src/tokens/personal-access-token.ts
5175
- var PersonalAccessToken = z171.object({
5176
- id: z171.string(),
5177
- userId: z171.string(),
5178
- workspaceId: z171.string().optional(),
5189
+ var PersonalAccessToken = z172.object({
5190
+ id: z172.string(),
5191
+ userId: z172.string(),
5192
+ workspaceId: z172.string().optional(),
5179
5193
  workspaceRole: WorkspaceRoleSchema.optional(),
5180
- name: z171.string(),
5181
- hidden: z171.boolean(),
5182
- token: z171.string(),
5183
- scope: z171.string().optional(),
5184
- createdAt: z171.coerce.date(),
5185
- expireAt: z171.coerce.date().optional()
5194
+ name: z172.string(),
5195
+ hidden: z172.boolean(),
5196
+ token: z172.string(),
5197
+ scope: z172.string().optional(),
5198
+ createdAt: z172.coerce.date(),
5199
+ expireAt: z172.coerce.date().optional()
5186
5200
  });
5187
5201
  export {
5188
5202
  Address,
@@ -5397,6 +5411,7 @@ export {
5397
5411
  FigmaComponentOriginPart,
5398
5412
  FigmaComponentProperty,
5399
5413
  FigmaComponentPropertyMap,
5414
+ FigmaComponentPropertyOrigin,
5400
5415
  FigmaComponentPropertyType,
5401
5416
  FigmaComponentTextProperty,
5402
5417
  FigmaComponentVariantProperty,
@@ -5432,6 +5447,8 @@ export {
5432
5447
  FontSizeTokenData,
5433
5448
  FontSizeUnit,
5434
5449
  FontSizeValue,
5450
+ FontTokenData,
5451
+ FontValue,
5435
5452
  FontWeightTokenData,
5436
5453
  FontWeightValue,
5437
5454
  GitBranch,