@supernova-studio/model 0.54.2 → 0.54.3

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