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