@supernova-studio/client 0.47.48 → 0.47.49
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 +214 -214
- package/dist/index.d.ts +214 -214
- package/dist/index.js +215 -215
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1093 -1093
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -30,38 +30,38 @@ import { z as z18 } from "zod";
|
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
32
32
|
import { z as z21 } from "zod";
|
|
33
|
-
import { z as
|
|
33
|
+
import { z as z81 } from "zod";
|
|
34
34
|
import { z as z22 } from "zod";
|
|
35
|
-
import { z as
|
|
35
|
+
import { z as z80 } from "zod";
|
|
36
36
|
import { z as z23 } from "zod";
|
|
37
|
-
import { z as z89 } from "zod";
|
|
38
37
|
import { z as z25 } from "zod";
|
|
38
|
+
import { z as z24 } from "zod";
|
|
39
39
|
import { z as z26 } from "zod";
|
|
40
|
-
import { z as z28 } from "zod";
|
|
41
40
|
import { z as z27 } from "zod";
|
|
42
|
-
import { z as z29 } from "zod";
|
|
43
41
|
import { z as z30 } from "zod";
|
|
44
|
-
import { z as
|
|
45
|
-
import { z as
|
|
42
|
+
import { z as z29 } from "zod";
|
|
43
|
+
import { z as z28 } from "zod";
|
|
46
44
|
import { z as z31 } from "zod";
|
|
45
|
+
import { z as z37 } from "zod";
|
|
46
|
+
import { z as z32 } from "zod";
|
|
47
|
+
import { z as z33 } from "zod";
|
|
47
48
|
import { z as z34 } from "zod";
|
|
48
|
-
import { z as z40 } from "zod";
|
|
49
49
|
import { z as z35 } from "zod";
|
|
50
50
|
import { z as z36 } from "zod";
|
|
51
|
-
import { z as z37 } from "zod";
|
|
52
51
|
import { z as z38 } from "zod";
|
|
53
|
-
import { z as
|
|
52
|
+
import { z as z42 } from "zod";
|
|
54
53
|
import { z as z41 } from "zod";
|
|
54
|
+
import { z as z40 } from "zod";
|
|
55
|
+
import { z as z39 } from "zod";
|
|
55
56
|
import { z as z45 } from "zod";
|
|
56
57
|
import { z as z44 } from "zod";
|
|
57
58
|
import { z as z43 } from "zod";
|
|
58
|
-
import { z as z42 } from "zod";
|
|
59
59
|
import { z as z48 } from "zod";
|
|
60
60
|
import { z as z47 } from "zod";
|
|
61
61
|
import { z as z46 } from "zod";
|
|
62
|
-
import { z as z51 } from "zod";
|
|
63
|
-
import { z as z50 } from "zod";
|
|
64
62
|
import { z as z49 } from "zod";
|
|
63
|
+
import { z as z50 } from "zod";
|
|
64
|
+
import { z as z51 } from "zod";
|
|
65
65
|
import { z as z52 } from "zod";
|
|
66
66
|
import { z as z53 } from "zod";
|
|
67
67
|
import { z as z54 } from "zod";
|
|
@@ -83,37 +83,37 @@ import { z as z69 } from "zod";
|
|
|
83
83
|
import { z as z70 } from "zod";
|
|
84
84
|
import { z as z71 } from "zod";
|
|
85
85
|
import { z as z72 } from "zod";
|
|
86
|
-
import { z as z73 } from "zod";
|
|
87
86
|
import { z as z74 } from "zod";
|
|
87
|
+
import { z as z73 } from "zod";
|
|
88
88
|
import { z as z75 } from "zod";
|
|
89
|
-
import { z as z77 } from "zod";
|
|
90
89
|
import { z as z76 } from "zod";
|
|
91
|
-
import { z as
|
|
90
|
+
import { z as z77 } from "zod";
|
|
92
91
|
import { z as z79 } from "zod";
|
|
93
|
-
import { z as
|
|
92
|
+
import { z as z78 } from "zod";
|
|
94
93
|
import { z as z82 } from "zod";
|
|
95
|
-
import { z as z81 } from "zod";
|
|
96
|
-
import { z as z84 } from "zod";
|
|
97
94
|
import { z as z83 } from "zod";
|
|
98
|
-
import { z as z85 } from "zod";
|
|
99
95
|
import { z as z86 } from "zod";
|
|
96
|
+
import { z as z85 } from "zod";
|
|
97
|
+
import { z as z84 } from "zod";
|
|
100
98
|
import { z as z87 } from "zod";
|
|
101
99
|
import { z as z88 } from "zod";
|
|
100
|
+
import { z as z89 } from "zod";
|
|
102
101
|
import { z as z90 } from "zod";
|
|
102
|
+
import { z as z91 } from "zod";
|
|
103
103
|
import { z as z92 } from "zod";
|
|
104
104
|
import { z as z93 } from "zod";
|
|
105
|
-
import { z as z96 } from "zod";
|
|
106
|
-
import { z as z95 } from "zod";
|
|
107
105
|
import { z as z94 } from "zod";
|
|
106
|
+
import { z as z95 } from "zod";
|
|
107
|
+
import { z as z96 } from "zod";
|
|
108
108
|
import { z as z97 } from "zod";
|
|
109
|
+
import { z as z105 } from "zod";
|
|
109
110
|
import { z as z98 } from "zod";
|
|
110
|
-
import { z as z99 } from "zod";
|
|
111
111
|
import { z as z100 } from "zod";
|
|
112
|
+
import { z as z99 } from "zod";
|
|
112
113
|
import { z as z101 } from "zod";
|
|
113
114
|
import { z as z102 } from "zod";
|
|
114
115
|
import { z as z103 } from "zod";
|
|
115
116
|
import { z as z104 } from "zod";
|
|
116
|
-
import { z as z105 } from "zod";
|
|
117
117
|
import { z as z106 } from "zod";
|
|
118
118
|
import { z as z107 } from "zod";
|
|
119
119
|
import { z as z108 } from "zod";
|
|
@@ -536,18 +536,7 @@ var Asset = z21.object({
|
|
|
536
536
|
var ResolvedAsset = Asset.extend({
|
|
537
537
|
url: z21.string()
|
|
538
538
|
});
|
|
539
|
-
var
|
|
540
|
-
styles: z22.boolean(),
|
|
541
|
-
components: z22.boolean(),
|
|
542
|
-
currentVersion: z22.literal("__latest__").nullable(),
|
|
543
|
-
publishedVersion: z22.string().nullable(),
|
|
544
|
-
downloadChunkSize: z22.number().optional(),
|
|
545
|
-
maxFileDepth: z22.number().optional()
|
|
546
|
-
});
|
|
547
|
-
var FigmaFileAccessData = z22.object({
|
|
548
|
-
accessToken: z22.string()
|
|
549
|
-
});
|
|
550
|
-
var ImportWarningType = z23.enum([
|
|
539
|
+
var ImportWarningType = z22.enum([
|
|
551
540
|
"NoVersionFound",
|
|
552
541
|
"UnsupportedFill",
|
|
553
542
|
"UnsupportedStroke",
|
|
@@ -563,166 +552,83 @@ var ImportWarningType = z23.enum([
|
|
|
563
552
|
"NoUnpublishedStyles",
|
|
564
553
|
"ReferenceResolutionFailed"
|
|
565
554
|
]);
|
|
566
|
-
var ImportWarning =
|
|
555
|
+
var ImportWarning = z22.object({
|
|
567
556
|
warningType: ImportWarningType,
|
|
568
|
-
componentId:
|
|
569
|
-
componentName:
|
|
570
|
-
styleId:
|
|
571
|
-
styleName:
|
|
572
|
-
unsupportedStyleValueType:
|
|
573
|
-
referenceId:
|
|
574
|
-
});
|
|
575
|
-
var ImportFunctionInput = z24.object({
|
|
576
|
-
importJobId: z24.string(),
|
|
577
|
-
importContextId: z24.string(),
|
|
578
|
-
designSystemId: z24.string().optional()
|
|
579
|
-
});
|
|
580
|
-
var ImportedFigmaSourceData = z24.object({
|
|
581
|
-
sourceId: z24.string(),
|
|
582
|
-
figmaRemote: DataSourceFigmaRemote
|
|
583
|
-
});
|
|
584
|
-
var FigmaImportBaseContext = z24.object({
|
|
585
|
-
designSystemId: z24.string(),
|
|
586
|
-
/**
|
|
587
|
-
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
588
|
-
* mentioned in the `importedSourceDataBySourceId`
|
|
589
|
-
*
|
|
590
|
-
* fileId: file data
|
|
591
|
-
*/
|
|
592
|
-
fileAccessByFileId: z24.record(FigmaFileAccessData),
|
|
593
|
-
/**
|
|
594
|
-
* Figma source data for which import was requested
|
|
595
|
-
*
|
|
596
|
-
* sourceId: source data
|
|
597
|
-
*/
|
|
598
|
-
importedSourceDataBySourceId: z24.record(ImportedFigmaSourceData),
|
|
599
|
-
/**
|
|
600
|
-
* Array of warnings that will be written into the import result summary at the end
|
|
601
|
-
* of import job execution and displayed by the client.
|
|
602
|
-
*/
|
|
603
|
-
importWarnings: z24.record(ImportWarning.array()).default({})
|
|
557
|
+
componentId: z22.string().optional(),
|
|
558
|
+
componentName: z22.string().optional(),
|
|
559
|
+
styleId: z22.string().optional(),
|
|
560
|
+
styleName: z22.string().optional(),
|
|
561
|
+
unsupportedStyleValueType: z22.string().optional(),
|
|
562
|
+
referenceId: z22.string().optional()
|
|
604
563
|
});
|
|
605
|
-
var
|
|
606
|
-
|
|
607
|
-
shadowOpacityOptional: z24.boolean().default(false)
|
|
608
|
-
});
|
|
609
|
-
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
610
|
-
importMetadata: DataSourceFigmaImportMetadata
|
|
611
|
-
});
|
|
612
|
-
var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.extend({
|
|
613
|
-
/**
|
|
614
|
-
* Describes what to download from each file, this should contain all file id mentioned in
|
|
615
|
-
* importMetadataBySourceId.
|
|
616
|
-
*
|
|
617
|
-
* File id -> file download scope
|
|
618
|
-
*/
|
|
619
|
-
fileDownloadScopesByFileId: z24.record(FigmaFileDownloadScope),
|
|
620
|
-
/**
|
|
621
|
-
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
622
|
-
* imported again.
|
|
623
|
-
*
|
|
624
|
-
* Source id -> import metadata
|
|
625
|
-
*/
|
|
626
|
-
changedImportedSourceDataBySourceId: z24.record(ChangedImportedFigmaSourceData)
|
|
627
|
-
});
|
|
628
|
-
var ImageImportModelType = z25.enum(["Url", "FigmaRender"]);
|
|
629
|
-
var ImageImportModelBase = z25.object({
|
|
630
|
-
scope: AssetScope
|
|
631
|
-
});
|
|
632
|
-
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
633
|
-
type: z25.literal(ImageImportModelType.enum.Url),
|
|
634
|
-
url: z25.string(),
|
|
635
|
-
originKey: z25.string(),
|
|
636
|
-
extension: z25.string()
|
|
637
|
-
});
|
|
638
|
-
var FigmaRenderFormat = z25.enum(["Svg", "Png"]);
|
|
639
|
-
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
640
|
-
type: z25.literal(ImageImportModelType.enum.FigmaRender),
|
|
641
|
-
fileId: z25.string(),
|
|
642
|
-
fileVersionId: z25.string().optional(),
|
|
643
|
-
nodeId: z25.string(),
|
|
644
|
-
originKey: z25.string()
|
|
645
|
-
});
|
|
646
|
-
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
647
|
-
format: z25.literal(FigmaRenderFormat.enum.Png),
|
|
648
|
-
scale: z25.number()
|
|
649
|
-
});
|
|
650
|
-
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
651
|
-
format: z25.literal(FigmaRenderFormat.enum.Svg)
|
|
652
|
-
});
|
|
653
|
-
var FigmaRenderImportModel = z25.discriminatedUnion("format", [
|
|
654
|
-
FigmaPngRenderImportModel,
|
|
655
|
-
FigmaSvgRenderImportModel
|
|
656
|
-
]);
|
|
657
|
-
var ImageImportModel = z25.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
658
|
-
var TokenDataAliasSchema = z26.object({
|
|
659
|
-
aliasTo: z26.string().optional().nullable().transform((v) => v ?? void 0)
|
|
564
|
+
var TokenDataAliasSchema = z23.object({
|
|
565
|
+
aliasTo: z23.string().optional().nullable().transform((v) => v ?? void 0)
|
|
660
566
|
});
|
|
661
567
|
function tokenAliasOrValue(value) {
|
|
662
568
|
return TokenDataAliasSchema.extend({
|
|
663
569
|
value: value.optional().nullable().transform((v) => v ?? void 0)
|
|
664
570
|
});
|
|
665
571
|
}
|
|
666
|
-
var DimensionUnit =
|
|
667
|
-
var DimensionValue =
|
|
572
|
+
var DimensionUnit = z24.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
573
|
+
var DimensionValue = z24.object({
|
|
668
574
|
unit: DimensionUnit,
|
|
669
|
-
measure:
|
|
575
|
+
measure: z24.number()
|
|
670
576
|
});
|
|
671
577
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
672
|
-
var BlurType =
|
|
673
|
-
var BlurValue =
|
|
578
|
+
var BlurType = z25.enum(["Layer", "Background"]);
|
|
579
|
+
var BlurValue = z25.object({
|
|
674
580
|
type: BlurType,
|
|
675
581
|
radius: DimensionTokenData
|
|
676
582
|
});
|
|
677
583
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
678
|
-
var BorderRadiusUnit =
|
|
679
|
-
var BorderRadiusValue =
|
|
584
|
+
var BorderRadiusUnit = z26.enum(["Pixels", "Rem", "Percent"]);
|
|
585
|
+
var BorderRadiusValue = z26.object({
|
|
680
586
|
unit: BorderRadiusUnit,
|
|
681
|
-
measure:
|
|
587
|
+
measure: z26.number()
|
|
682
588
|
});
|
|
683
589
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
684
|
-
var BorderWidthUnit =
|
|
685
|
-
var BorderWidthValue =
|
|
590
|
+
var BorderWidthUnit = z27.enum(["Pixels"]);
|
|
591
|
+
var BorderWidthValue = z27.object({
|
|
686
592
|
unit: BorderWidthUnit,
|
|
687
|
-
measure:
|
|
593
|
+
measure: z27.number()
|
|
688
594
|
});
|
|
689
595
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
690
|
-
var OpacityValue =
|
|
691
|
-
unit:
|
|
692
|
-
measure:
|
|
596
|
+
var OpacityValue = z28.object({
|
|
597
|
+
unit: z28.enum(["Raw", "Pixels"]),
|
|
598
|
+
measure: z28.number()
|
|
693
599
|
});
|
|
694
600
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
695
|
-
var ColorValue =
|
|
601
|
+
var ColorValue = z29.object({
|
|
696
602
|
opacity: OpacityTokenData,
|
|
697
|
-
color:
|
|
603
|
+
color: z29.string().or(TokenDataAliasSchema)
|
|
698
604
|
});
|
|
699
605
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
700
|
-
var BorderPosition =
|
|
701
|
-
var BorderStyle =
|
|
702
|
-
var BorderValue =
|
|
606
|
+
var BorderPosition = z30.enum(["Inside", "Center", "Outside"]);
|
|
607
|
+
var BorderStyle = z30.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
608
|
+
var BorderValue = z30.object({
|
|
703
609
|
color: ColorTokenData,
|
|
704
610
|
width: BorderWidthTokenData,
|
|
705
611
|
position: BorderPosition,
|
|
706
612
|
style: BorderStyle.optional()
|
|
707
613
|
});
|
|
708
614
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
709
|
-
var ComponentElementData =
|
|
710
|
-
value:
|
|
711
|
-
thumbnailImage:
|
|
712
|
-
value:
|
|
713
|
-
url:
|
|
714
|
-
assetId:
|
|
615
|
+
var ComponentElementData = z31.object({
|
|
616
|
+
value: z31.object({
|
|
617
|
+
thumbnailImage: z31.object({
|
|
618
|
+
value: z31.object({
|
|
619
|
+
url: z31.string(),
|
|
620
|
+
assetId: z31.string()
|
|
715
621
|
})
|
|
716
622
|
}),
|
|
717
|
-
svg:
|
|
718
|
-
value:
|
|
719
|
-
url:
|
|
720
|
-
assetId:
|
|
623
|
+
svg: z31.object({
|
|
624
|
+
value: z31.object({
|
|
625
|
+
url: z31.string(),
|
|
626
|
+
assetId: z31.string()
|
|
721
627
|
})
|
|
722
628
|
}).optional()
|
|
723
629
|
})
|
|
724
630
|
});
|
|
725
|
-
var DesignTokenType =
|
|
631
|
+
var DesignTokenType = z32.enum([
|
|
726
632
|
"Color",
|
|
727
633
|
"Border",
|
|
728
634
|
"Gradient",
|
|
@@ -754,7 +660,7 @@ var DesignTokenType = z35.enum([
|
|
|
754
660
|
]);
|
|
755
661
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
756
662
|
var DesignElementType = DesignTokenType.or(
|
|
757
|
-
|
|
663
|
+
z32.enum([
|
|
758
664
|
"Component",
|
|
759
665
|
"Theme",
|
|
760
666
|
"Documentation",
|
|
@@ -766,7 +672,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
766
672
|
"PageBlock"
|
|
767
673
|
])
|
|
768
674
|
);
|
|
769
|
-
var DesignElementCategory =
|
|
675
|
+
var DesignElementCategory = z32.enum([
|
|
770
676
|
"Token",
|
|
771
677
|
"Component",
|
|
772
678
|
"DesignSystemComponent",
|
|
@@ -774,82 +680,82 @@ var DesignElementCategory = z35.enum([
|
|
|
774
680
|
"Theme",
|
|
775
681
|
"PageBlock"
|
|
776
682
|
]);
|
|
777
|
-
var DesignSystemElementExportProps =
|
|
778
|
-
isAsset:
|
|
779
|
-
codeName:
|
|
780
|
-
});
|
|
781
|
-
var ShallowDesignElement =
|
|
782
|
-
id:
|
|
783
|
-
persistentId:
|
|
784
|
-
designSystemVersionId:
|
|
683
|
+
var DesignSystemElementExportProps = z32.object({
|
|
684
|
+
isAsset: z32.boolean().nullish().transform((v) => v ?? false),
|
|
685
|
+
codeName: z32.string().nullish()
|
|
686
|
+
});
|
|
687
|
+
var ShallowDesignElement = z32.object({
|
|
688
|
+
id: z32.string(),
|
|
689
|
+
persistentId: z32.string(),
|
|
690
|
+
designSystemVersionId: z32.string(),
|
|
785
691
|
type: DesignElementType,
|
|
786
|
-
brandPersistentId:
|
|
787
|
-
parentPersistentId:
|
|
788
|
-
shortPersistentId:
|
|
692
|
+
brandPersistentId: z32.string().optional(),
|
|
693
|
+
parentPersistentId: z32.string().optional(),
|
|
694
|
+
shortPersistentId: z32.string().optional(),
|
|
789
695
|
childType: DesignElementType.optional(),
|
|
790
|
-
sortOrder:
|
|
791
|
-
origin:
|
|
696
|
+
sortOrder: z32.number(),
|
|
697
|
+
origin: z32.record(z32.any()).optional()
|
|
792
698
|
});
|
|
793
699
|
var DesignElement = ShallowDesignElement.extend({
|
|
794
700
|
meta: ObjectMeta,
|
|
795
|
-
slug:
|
|
796
|
-
userSlug:
|
|
797
|
-
createdAt:
|
|
798
|
-
updatedAt:
|
|
701
|
+
slug: z32.string().optional(),
|
|
702
|
+
userSlug: z32.string().optional(),
|
|
703
|
+
createdAt: z32.coerce.date(),
|
|
704
|
+
updatedAt: z32.coerce.date(),
|
|
799
705
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
800
|
-
data:
|
|
801
|
-
origin:
|
|
706
|
+
data: z32.record(z32.any()),
|
|
707
|
+
origin: z32.record(z32.any()).optional()
|
|
802
708
|
});
|
|
803
709
|
var HierarchicalElements = DesignTokenType.or(
|
|
804
|
-
|
|
710
|
+
z32.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
805
711
|
);
|
|
806
|
-
var ElementPropertyTypeSchema =
|
|
807
|
-
var ElementPropertyTargetType =
|
|
808
|
-
var ElementPropertyLinkType =
|
|
712
|
+
var ElementPropertyTypeSchema = z33.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
713
|
+
var ElementPropertyTargetType = z33.enum(["Token", "Component", "DocumentationPage"]);
|
|
714
|
+
var ElementPropertyLinkType = z33.enum(["FigmaComponent", "DocumentationPage"]);
|
|
809
715
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
810
|
-
var ColorTokenInlineData =
|
|
811
|
-
value:
|
|
716
|
+
var ColorTokenInlineData = z33.object({
|
|
717
|
+
value: z33.string()
|
|
812
718
|
});
|
|
813
|
-
var ElementPropertyDefinitionOption =
|
|
814
|
-
id:
|
|
815
|
-
name:
|
|
719
|
+
var ElementPropertyDefinitionOption = z33.object({
|
|
720
|
+
id: z33.string(),
|
|
721
|
+
name: z33.string(),
|
|
816
722
|
backgroundColor: ColorTokenInlineData.optional()
|
|
817
723
|
});
|
|
818
|
-
var ElementPropertyDefinition =
|
|
819
|
-
id:
|
|
820
|
-
designSystemVersionId:
|
|
821
|
-
persistentId:
|
|
822
|
-
name:
|
|
823
|
-
codeName:
|
|
824
|
-
description:
|
|
724
|
+
var ElementPropertyDefinition = z33.object({
|
|
725
|
+
id: z33.string(),
|
|
726
|
+
designSystemVersionId: z33.string(),
|
|
727
|
+
persistentId: z33.string(),
|
|
728
|
+
name: z33.string(),
|
|
729
|
+
codeName: z33.string().regex(CODE_NAME_REGEX),
|
|
730
|
+
description: z33.string(),
|
|
825
731
|
type: ElementPropertyTypeSchema,
|
|
826
732
|
targetElementType: ElementPropertyTargetType,
|
|
827
|
-
options:
|
|
733
|
+
options: z33.array(ElementPropertyDefinitionOption).optional(),
|
|
828
734
|
linkElementType: ElementPropertyLinkType.optional()
|
|
829
735
|
});
|
|
830
736
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
831
|
-
var ElementPropertyValue =
|
|
832
|
-
id:
|
|
833
|
-
designSystemVersionId:
|
|
834
|
-
targetElementPersistentId:
|
|
835
|
-
definitionPersistentId:
|
|
836
|
-
stringValue:
|
|
837
|
-
numberValue:
|
|
838
|
-
booleanValue:
|
|
839
|
-
referenceValue:
|
|
840
|
-
referenceValuePreview:
|
|
841
|
-
});
|
|
842
|
-
var Point2D =
|
|
843
|
-
x:
|
|
844
|
-
y:
|
|
737
|
+
var ElementPropertyValue = z34.object({
|
|
738
|
+
id: z34.string(),
|
|
739
|
+
designSystemVersionId: z34.string(),
|
|
740
|
+
targetElementPersistentId: z34.string(),
|
|
741
|
+
definitionPersistentId: z34.string(),
|
|
742
|
+
stringValue: z34.string().nullish(),
|
|
743
|
+
numberValue: z34.number().nullish(),
|
|
744
|
+
booleanValue: z34.boolean().nullish(),
|
|
745
|
+
referenceValue: z34.string().nullish(),
|
|
746
|
+
referenceValuePreview: z34.string().optional()
|
|
747
|
+
});
|
|
748
|
+
var Point2D = z35.object({
|
|
749
|
+
x: z35.number(),
|
|
750
|
+
y: z35.number()
|
|
845
751
|
});
|
|
846
752
|
var nullSize = { height: -1, width: -1 };
|
|
847
753
|
function isNullSize(size) {
|
|
848
754
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
849
755
|
}
|
|
850
|
-
var Size =
|
|
851
|
-
width:
|
|
852
|
-
height:
|
|
756
|
+
var Size = z36.object({
|
|
757
|
+
width: z36.number().nullish().transform((v) => v ?? nullSize.width),
|
|
758
|
+
height: z36.number().nullish().transform((v) => v ?? nullSize.height)
|
|
853
759
|
});
|
|
854
760
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
855
761
|
if (!v)
|
|
@@ -858,8 +764,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
858
764
|
return void 0;
|
|
859
765
|
return v;
|
|
860
766
|
});
|
|
861
|
-
var PageBlockCalloutType =
|
|
862
|
-
var PageBlockTypeV1 =
|
|
767
|
+
var PageBlockCalloutType = z37.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
768
|
+
var PageBlockTypeV1 = z37.enum([
|
|
863
769
|
"Text",
|
|
864
770
|
"Heading",
|
|
865
771
|
"Code",
|
|
@@ -892,7 +798,7 @@ var PageBlockTypeV1 = z40.enum([
|
|
|
892
798
|
"TableRow",
|
|
893
799
|
"TableCell"
|
|
894
800
|
]);
|
|
895
|
-
var PageBlockCodeLanguage =
|
|
801
|
+
var PageBlockCodeLanguage = z37.enum([
|
|
896
802
|
"Angular",
|
|
897
803
|
"Bash",
|
|
898
804
|
"C",
|
|
@@ -926,70 +832,70 @@ var PageBlockCodeLanguage = z40.enum([
|
|
|
926
832
|
"XML",
|
|
927
833
|
"YAML"
|
|
928
834
|
]);
|
|
929
|
-
var PageBlockAlignment =
|
|
930
|
-
var PageBlockThemeType =
|
|
931
|
-
var PageBlockAssetType =
|
|
932
|
-
var PageBlockTilesAlignment =
|
|
933
|
-
var PageBlockTilesLayout =
|
|
934
|
-
var PageBlockTheme =
|
|
935
|
-
themeIds:
|
|
835
|
+
var PageBlockAlignment = z37.enum(["Left", "Center", "Stretch", "Right"]);
|
|
836
|
+
var PageBlockThemeType = z37.enum(["Override", "Comparison"]);
|
|
837
|
+
var PageBlockAssetType = z37.enum(["image", "figmaFrame"]);
|
|
838
|
+
var PageBlockTilesAlignment = z37.enum(["Center", "FrameHeight"]);
|
|
839
|
+
var PageBlockTilesLayout = z37.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
840
|
+
var PageBlockTheme = z37.object({
|
|
841
|
+
themeIds: z37.array(z37.string()),
|
|
936
842
|
type: PageBlockThemeType
|
|
937
843
|
});
|
|
938
|
-
var PageBlockUrlPreview =
|
|
939
|
-
title: nullishToOptional(
|
|
940
|
-
description: nullishToOptional(
|
|
941
|
-
thumbnailUrl: nullishToOptional(
|
|
942
|
-
});
|
|
943
|
-
var PageBlockFrameOrigin =
|
|
944
|
-
sourceFileName: nullishToOptional(
|
|
945
|
-
title: nullishToOptional(
|
|
946
|
-
previewUrl: nullishToOptional(
|
|
947
|
-
valid: nullishToOptional(
|
|
948
|
-
referenceId: nullishToOptional(
|
|
949
|
-
assetId: nullishToOptional(
|
|
950
|
-
assetScale: nullishToOptional(
|
|
951
|
-
width: nullishToOptional(
|
|
952
|
-
height: nullishToOptional(
|
|
953
|
-
});
|
|
954
|
-
var PageBlockFrame =
|
|
955
|
-
persistentId:
|
|
956
|
-
sourceId:
|
|
957
|
-
sourceFrameId:
|
|
958
|
-
title: nullishToOptional(
|
|
959
|
-
description: nullishToOptional(
|
|
844
|
+
var PageBlockUrlPreview = z37.object({
|
|
845
|
+
title: nullishToOptional(z37.string()),
|
|
846
|
+
description: nullishToOptional(z37.string()),
|
|
847
|
+
thumbnailUrl: nullishToOptional(z37.string())
|
|
848
|
+
});
|
|
849
|
+
var PageBlockFrameOrigin = z37.object({
|
|
850
|
+
sourceFileName: nullishToOptional(z37.string()),
|
|
851
|
+
title: nullishToOptional(z37.string()),
|
|
852
|
+
previewUrl: nullishToOptional(z37.string()),
|
|
853
|
+
valid: nullishToOptional(z37.boolean()),
|
|
854
|
+
referenceId: nullishToOptional(z37.string()),
|
|
855
|
+
assetId: nullishToOptional(z37.string()),
|
|
856
|
+
assetScale: nullishToOptional(z37.number()),
|
|
857
|
+
width: nullishToOptional(z37.number()),
|
|
858
|
+
height: nullishToOptional(z37.number())
|
|
859
|
+
});
|
|
860
|
+
var PageBlockFrame = z37.object({
|
|
861
|
+
persistentId: z37.string(),
|
|
862
|
+
sourceId: z37.string(),
|
|
863
|
+
sourceFrameId: z37.string(),
|
|
864
|
+
title: nullishToOptional(z37.string()),
|
|
865
|
+
description: nullishToOptional(z37.string()),
|
|
960
866
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
961
867
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
962
868
|
});
|
|
963
|
-
var PageBlockAsset =
|
|
869
|
+
var PageBlockAsset = z37.object({
|
|
964
870
|
type: PageBlockAssetType,
|
|
965
|
-
id: nullishToOptional(
|
|
966
|
-
url: nullishToOptional(
|
|
871
|
+
id: nullishToOptional(z37.string()),
|
|
872
|
+
url: nullishToOptional(z37.string()),
|
|
967
873
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
968
874
|
});
|
|
969
|
-
var PageBlockLinkPreview =
|
|
970
|
-
title: nullishToOptional(
|
|
971
|
-
valid: nullishToOptional(
|
|
875
|
+
var PageBlockLinkPreview = z37.object({
|
|
876
|
+
title: nullishToOptional(z37.string()),
|
|
877
|
+
valid: nullishToOptional(z37.boolean())
|
|
972
878
|
});
|
|
973
|
-
var PageBlockShortcut =
|
|
974
|
-
persistentId:
|
|
975
|
-
title: nullishToOptional(
|
|
976
|
-
description: nullishToOptional(
|
|
879
|
+
var PageBlockShortcut = z37.object({
|
|
880
|
+
persistentId: z37.string(),
|
|
881
|
+
title: nullishToOptional(z37.string()),
|
|
882
|
+
description: nullishToOptional(z37.string()),
|
|
977
883
|
asset: nullishToOptional(PageBlockAsset),
|
|
978
|
-
documentationItemId: nullishToOptional(
|
|
979
|
-
pageHeadingId: nullishToOptional(
|
|
980
|
-
url: nullishToOptional(
|
|
981
|
-
openInNewTab: nullishToOptional(
|
|
884
|
+
documentationItemId: nullishToOptional(z37.string()),
|
|
885
|
+
pageHeadingId: nullishToOptional(z37.string()),
|
|
886
|
+
url: nullishToOptional(z37.string()),
|
|
887
|
+
openInNewTab: nullishToOptional(z37.boolean()),
|
|
982
888
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
983
889
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
984
890
|
});
|
|
985
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
891
|
+
var PageBlockCustomBlockPropertyImageValue = z37.object({
|
|
986
892
|
asset: nullishToOptional(PageBlockAsset),
|
|
987
|
-
assetId: nullishToOptional(
|
|
988
|
-
assetUrl: nullishToOptional(
|
|
893
|
+
assetId: nullishToOptional(z37.string()),
|
|
894
|
+
assetUrl: nullishToOptional(z37.string())
|
|
989
895
|
});
|
|
990
|
-
var PageBlockCustomBlockPropertyValue =
|
|
991
|
-
key:
|
|
992
|
-
value:
|
|
896
|
+
var PageBlockCustomBlockPropertyValue = z37.object({
|
|
897
|
+
key: z37.string(),
|
|
898
|
+
value: z37.any()
|
|
993
899
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
994
900
|
// e.g. element id 67451 in the dev db
|
|
995
901
|
// value: z
|
|
@@ -1000,360 +906,360 @@ var PageBlockCustomBlockPropertyValue = z40.object({
|
|
|
1000
906
|
// .or(TypographyTokenData)
|
|
1001
907
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1002
908
|
});
|
|
1003
|
-
var PageBlockFigmaFrameProperties =
|
|
909
|
+
var PageBlockFigmaFrameProperties = z37.object({
|
|
1004
910
|
color: nullishToOptional(
|
|
1005
|
-
|
|
1006
|
-
value:
|
|
911
|
+
z37.object({
|
|
912
|
+
value: z37.string()
|
|
1007
913
|
})
|
|
1008
914
|
),
|
|
1009
915
|
alignment: PageBlockTilesAlignment,
|
|
1010
916
|
layout: PageBlockTilesLayout,
|
|
1011
917
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1012
|
-
showTitles:
|
|
918
|
+
showTitles: z37.boolean()
|
|
1013
919
|
});
|
|
1014
|
-
var PageBlockRenderCodeProperties =
|
|
1015
|
-
showCode:
|
|
1016
|
-
showControls:
|
|
920
|
+
var PageBlockRenderCodeProperties = z37.object({
|
|
921
|
+
showCode: z37.boolean(),
|
|
922
|
+
showControls: z37.boolean().optional()
|
|
1017
923
|
});
|
|
1018
|
-
var PageBlockAssetComponent =
|
|
1019
|
-
persistentId:
|
|
1020
|
-
componentAssetId:
|
|
1021
|
-
title: nullishToOptional(
|
|
1022
|
-
description: nullishToOptional(
|
|
924
|
+
var PageBlockAssetComponent = z37.object({
|
|
925
|
+
persistentId: z37.string(),
|
|
926
|
+
componentAssetId: z37.string(),
|
|
927
|
+
title: nullishToOptional(z37.string()),
|
|
928
|
+
description: nullishToOptional(z37.string()),
|
|
1023
929
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1024
930
|
});
|
|
1025
|
-
var PageBlockTableColumn =
|
|
1026
|
-
id:
|
|
931
|
+
var PageBlockTableColumn = z37.object({
|
|
932
|
+
id: z37.string(),
|
|
1027
933
|
width: DimensionTokenData
|
|
1028
934
|
});
|
|
1029
|
-
var PageBlockTableProperties =
|
|
1030
|
-
showBorders:
|
|
1031
|
-
showHeaderRow:
|
|
1032
|
-
showHeaderColumn:
|
|
1033
|
-
columns:
|
|
935
|
+
var PageBlockTableProperties = z37.object({
|
|
936
|
+
showBorders: z37.boolean(),
|
|
937
|
+
showHeaderRow: z37.boolean(),
|
|
938
|
+
showHeaderColumn: z37.boolean(),
|
|
939
|
+
columns: z37.array(PageBlockTableColumn)
|
|
1034
940
|
});
|
|
1035
|
-
var PageBlockTextSpanAttributeType =
|
|
1036
|
-
var PageBlockTextSpanAttribute =
|
|
941
|
+
var PageBlockTextSpanAttributeType = z37.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
942
|
+
var PageBlockTextSpanAttribute = z37.object({
|
|
1037
943
|
type: PageBlockTextSpanAttributeType,
|
|
1038
|
-
link: nullishToOptional(
|
|
1039
|
-
documentationItemId: nullishToOptional(
|
|
1040
|
-
openInNewWindow: nullishToOptional(
|
|
944
|
+
link: nullishToOptional(z37.string()),
|
|
945
|
+
documentationItemId: nullishToOptional(z37.string()),
|
|
946
|
+
openInNewWindow: nullishToOptional(z37.boolean()),
|
|
1041
947
|
// deprecated. use openInNewTab
|
|
1042
|
-
openInNewTab: nullishToOptional(
|
|
948
|
+
openInNewTab: nullishToOptional(z37.boolean())
|
|
1043
949
|
});
|
|
1044
|
-
var PageBlockTextSpan =
|
|
1045
|
-
text:
|
|
1046
|
-
attributes:
|
|
950
|
+
var PageBlockTextSpan = z37.object({
|
|
951
|
+
text: z37.string(),
|
|
952
|
+
attributes: z37.array(PageBlockTextSpanAttribute)
|
|
1047
953
|
});
|
|
1048
|
-
var PageBlockText =
|
|
1049
|
-
spans:
|
|
954
|
+
var PageBlockText = z37.object({
|
|
955
|
+
spans: z37.array(PageBlockTextSpan)
|
|
1050
956
|
});
|
|
1051
|
-
var PageBlockBaseV1 =
|
|
1052
|
-
persistentId:
|
|
957
|
+
var PageBlockBaseV1 = z37.object({
|
|
958
|
+
persistentId: z37.string(),
|
|
1053
959
|
type: PageBlockTypeV1,
|
|
1054
960
|
// Element linking
|
|
1055
|
-
designObjectId: nullishToOptional(
|
|
1056
|
-
designObjectIds: nullishToOptional(
|
|
1057
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
1058
|
-
showNestedGroups: nullishToOptional(
|
|
1059
|
-
brandId: nullishToOptional(
|
|
961
|
+
designObjectId: nullishToOptional(z37.string()),
|
|
962
|
+
designObjectIds: nullishToOptional(z37.array(z37.string())),
|
|
963
|
+
tokenType: nullishToOptional(DesignTokenType.or(z37.literal("Font"))),
|
|
964
|
+
showNestedGroups: nullishToOptional(z37.boolean()),
|
|
965
|
+
brandId: nullishToOptional(z37.string()),
|
|
1060
966
|
// Rich text
|
|
1061
967
|
text: nullishToOptional(PageBlockText),
|
|
1062
|
-
caption: nullishToOptional(
|
|
1063
|
-
headingType: nullishToOptional(
|
|
968
|
+
caption: nullishToOptional(z37.string()),
|
|
969
|
+
headingType: nullishToOptional(z37.number().min(1).max(3)),
|
|
1064
970
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
1065
971
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
1066
|
-
urlInput: nullishToOptional(
|
|
1067
|
-
url: nullishToOptional(
|
|
972
|
+
urlInput: nullishToOptional(z37.string()),
|
|
973
|
+
url: nullishToOptional(z37.string()),
|
|
1068
974
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1069
975
|
// Image
|
|
1070
976
|
asset: nullishToOptional(PageBlockAsset),
|
|
1071
977
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
1072
978
|
// Shortcuts block
|
|
1073
|
-
shortcuts: nullishToOptional(
|
|
979
|
+
shortcuts: nullishToOptional(z37.array(PageBlockShortcut)),
|
|
1074
980
|
// Custom blocks
|
|
1075
|
-
customBlockKey: nullishToOptional(
|
|
1076
|
-
customBlockProperties: nullishToOptional(
|
|
1077
|
-
variantKey: nullishToOptional(
|
|
981
|
+
customBlockKey: nullishToOptional(z37.string()),
|
|
982
|
+
customBlockProperties: nullishToOptional(z37.array(PageBlockCustomBlockPropertyValue)),
|
|
983
|
+
variantKey: nullishToOptional(z37.string()),
|
|
1078
984
|
// Figma frames
|
|
1079
985
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
1080
|
-
figmaFrames: nullishToOptional(
|
|
986
|
+
figmaFrames: nullishToOptional(z37.array(PageBlockFrame)),
|
|
1081
987
|
// Generic
|
|
1082
988
|
size: nullishToOptional(Size),
|
|
1083
989
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1084
990
|
// Render code
|
|
1085
991
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
1086
992
|
// Component assets
|
|
1087
|
-
componentAssets: nullishToOptional(
|
|
993
|
+
componentAssets: nullishToOptional(z37.array(PageBlockAssetComponent)),
|
|
1088
994
|
// Tables
|
|
1089
995
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
1090
|
-
columnId: nullishToOptional(
|
|
996
|
+
columnId: nullishToOptional(z37.string()),
|
|
1091
997
|
// Token spreadsheet
|
|
1092
998
|
theme: nullishToOptional(PageBlockTheme),
|
|
1093
|
-
blacklistedElementProperties: nullishToOptional(
|
|
999
|
+
blacklistedElementProperties: nullishToOptional(z37.array(z37.string())),
|
|
1094
1000
|
// Arbitrary
|
|
1095
|
-
userMetadata: nullishToOptional(
|
|
1001
|
+
userMetadata: nullishToOptional(z37.string())
|
|
1096
1002
|
});
|
|
1097
1003
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
1098
|
-
children:
|
|
1004
|
+
children: z37.lazy(
|
|
1099
1005
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
1100
1006
|
)
|
|
1101
1007
|
});
|
|
1102
|
-
var PageBlockLinkType =
|
|
1103
|
-
var PageBlockImageType =
|
|
1104
|
-
var PageBlockImageAlignment =
|
|
1105
|
-
var PageBlockTableCellAlignment =
|
|
1106
|
-
var PageBlockPreviewContainerSize =
|
|
1107
|
-
var PageBlockThemeDisplayMode =
|
|
1108
|
-
var PageBlockImageResourceReference =
|
|
1109
|
-
resourceId:
|
|
1110
|
-
url:
|
|
1111
|
-
});
|
|
1112
|
-
var PageBlockResourceFrameNodeReference =
|
|
1113
|
-
sourceId:
|
|
1114
|
-
frameReferenceId:
|
|
1115
|
-
});
|
|
1116
|
-
var PageBlockImageReference =
|
|
1008
|
+
var PageBlockLinkType = z38.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
1009
|
+
var PageBlockImageType = z38.enum(["Resource", "FigmaNode"]);
|
|
1010
|
+
var PageBlockImageAlignment = z38.enum(["Left", "Center", "Stretch"]);
|
|
1011
|
+
var PageBlockTableCellAlignment = z38.enum(["Left", "Center", "Right"]);
|
|
1012
|
+
var PageBlockPreviewContainerSize = z38.enum(["Centered", "NaturalHeight"]);
|
|
1013
|
+
var PageBlockThemeDisplayMode = z38.enum(["Split", "Override"]);
|
|
1014
|
+
var PageBlockImageResourceReference = z38.object({
|
|
1015
|
+
resourceId: z38.string(),
|
|
1016
|
+
url: z38.string()
|
|
1017
|
+
});
|
|
1018
|
+
var PageBlockResourceFrameNodeReference = z38.object({
|
|
1019
|
+
sourceId: z38.string(),
|
|
1020
|
+
frameReferenceId: z38.string()
|
|
1021
|
+
});
|
|
1022
|
+
var PageBlockImageReference = z38.object({
|
|
1117
1023
|
type: PageBlockImageType,
|
|
1118
1024
|
resource: PageBlockImageResourceReference.optional(),
|
|
1119
1025
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
1120
1026
|
});
|
|
1121
|
-
var PageBlockColorV2 =
|
|
1122
|
-
value:
|
|
1123
|
-
referencedTokenId:
|
|
1027
|
+
var PageBlockColorV2 = z38.object({
|
|
1028
|
+
value: z38.string(),
|
|
1029
|
+
referencedTokenId: z38.string().optional()
|
|
1124
1030
|
});
|
|
1125
|
-
var PageBlockAssetEntityMeta =
|
|
1126
|
-
title:
|
|
1127
|
-
description:
|
|
1031
|
+
var PageBlockAssetEntityMeta = z38.object({
|
|
1032
|
+
title: z38.string().optional(),
|
|
1033
|
+
description: z38.string().optional(),
|
|
1128
1034
|
backgroundColor: PageBlockColorV2.optional()
|
|
1129
1035
|
});
|
|
1130
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
1131
|
-
title:
|
|
1132
|
-
description:
|
|
1036
|
+
var PageBlockFigmaComponentEntityMeta = z38.object({
|
|
1037
|
+
title: z38.string().optional(),
|
|
1038
|
+
description: z38.string().optional(),
|
|
1133
1039
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1134
|
-
selectedComponentProperties:
|
|
1040
|
+
selectedComponentProperties: z38.array(z38.string()).optional()
|
|
1135
1041
|
});
|
|
1136
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
1137
|
-
title:
|
|
1138
|
-
description:
|
|
1042
|
+
var PageBlockFigmaNodeEntityMeta = z38.object({
|
|
1043
|
+
title: z38.string().optional(),
|
|
1044
|
+
description: z38.string().optional(),
|
|
1139
1045
|
backgroundColor: PageBlockColorV2.optional()
|
|
1140
1046
|
});
|
|
1141
|
-
var PageBlockAppearanceV2 =
|
|
1047
|
+
var PageBlockAppearanceV2 = z38.object({
|
|
1142
1048
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
1143
|
-
numberOfColumns:
|
|
1049
|
+
numberOfColumns: z38.number().optional()
|
|
1144
1050
|
});
|
|
1145
|
-
var PageBlockItemUntypedValue =
|
|
1146
|
-
value:
|
|
1147
|
-
}).and(
|
|
1148
|
-
var PageBlockLinkV2 =
|
|
1051
|
+
var PageBlockItemUntypedValue = z38.object({
|
|
1052
|
+
value: z38.any()
|
|
1053
|
+
}).and(z38.record(z38.any()));
|
|
1054
|
+
var PageBlockLinkV2 = z38.object({
|
|
1149
1055
|
type: PageBlockLinkType,
|
|
1150
|
-
documentationItemId:
|
|
1151
|
-
pageHeadingId:
|
|
1152
|
-
url:
|
|
1153
|
-
openInNewTab:
|
|
1056
|
+
documentationItemId: z38.string().optional(),
|
|
1057
|
+
pageHeadingId: z38.string().optional(),
|
|
1058
|
+
url: z38.string().optional(),
|
|
1059
|
+
openInNewTab: z38.boolean().optional()
|
|
1154
1060
|
});
|
|
1155
|
-
var PageBlockItemV2 =
|
|
1156
|
-
id:
|
|
1061
|
+
var PageBlockItemV2 = z38.object({
|
|
1062
|
+
id: z38.string(),
|
|
1157
1063
|
linksTo: PageBlockLinkV2.optional(),
|
|
1158
|
-
props:
|
|
1064
|
+
props: z38.record(PageBlockItemUntypedValue)
|
|
1159
1065
|
});
|
|
1160
|
-
var PageBlockDataV2 =
|
|
1161
|
-
packageId:
|
|
1162
|
-
variantId:
|
|
1163
|
-
indentLevel:
|
|
1066
|
+
var PageBlockDataV2 = z38.object({
|
|
1067
|
+
packageId: z38.string(),
|
|
1068
|
+
variantId: z38.string().optional(),
|
|
1069
|
+
indentLevel: z38.number(),
|
|
1164
1070
|
appearance: PageBlockAppearanceV2.optional(),
|
|
1165
|
-
items:
|
|
1071
|
+
items: z38.array(PageBlockItemV2)
|
|
1166
1072
|
});
|
|
1167
|
-
var PageBlockItemAssetValue =
|
|
1168
|
-
selectedPropertyIds:
|
|
1169
|
-
showSearch:
|
|
1073
|
+
var PageBlockItemAssetValue = z38.object({
|
|
1074
|
+
selectedPropertyIds: z38.array(z38.string()).optional(),
|
|
1075
|
+
showSearch: z38.boolean().optional(),
|
|
1170
1076
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1171
1077
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1172
|
-
value:
|
|
1173
|
-
|
|
1174
|
-
entityId:
|
|
1175
|
-
entityType:
|
|
1078
|
+
value: z38.array(
|
|
1079
|
+
z38.object({
|
|
1080
|
+
entityId: z38.string(),
|
|
1081
|
+
entityType: z38.enum(["Asset", "AssetGroup"]),
|
|
1176
1082
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
1177
1083
|
})
|
|
1178
1084
|
).default([])
|
|
1179
1085
|
});
|
|
1180
|
-
var PageBlockItemAssetPropertyValue =
|
|
1181
|
-
value:
|
|
1086
|
+
var PageBlockItemAssetPropertyValue = z38.object({
|
|
1087
|
+
value: z38.array(z38.string()).default([])
|
|
1182
1088
|
});
|
|
1183
|
-
var PageBlockItemFigmaComponentValue =
|
|
1184
|
-
showComponentName:
|
|
1185
|
-
showComponentDescription:
|
|
1186
|
-
showPropertyList:
|
|
1089
|
+
var PageBlockItemFigmaComponentValue = z38.object({
|
|
1090
|
+
showComponentName: z38.boolean().optional(),
|
|
1091
|
+
showComponentDescription: z38.boolean().optional(),
|
|
1092
|
+
showPropertyList: z38.boolean().optional(),
|
|
1187
1093
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1188
1094
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1189
|
-
value:
|
|
1190
|
-
|
|
1191
|
-
entityId:
|
|
1192
|
-
entityType:
|
|
1095
|
+
value: z38.array(
|
|
1096
|
+
z38.object({
|
|
1097
|
+
entityId: z38.string(),
|
|
1098
|
+
entityType: z38.enum(["FigmaComponent"]),
|
|
1193
1099
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
1194
1100
|
})
|
|
1195
1101
|
).default([])
|
|
1196
1102
|
});
|
|
1197
|
-
var PageBlockItemBooleanValue =
|
|
1198
|
-
value:
|
|
1103
|
+
var PageBlockItemBooleanValue = z38.object({
|
|
1104
|
+
value: z38.boolean()
|
|
1199
1105
|
});
|
|
1200
|
-
var PageBlockItemCodeValue =
|
|
1106
|
+
var PageBlockItemCodeValue = z38.object({
|
|
1201
1107
|
format: PageBlockCodeLanguage.optional(),
|
|
1202
|
-
caption:
|
|
1203
|
-
value:
|
|
1204
|
-
});
|
|
1205
|
-
var PageBlockItemSandboxValue =
|
|
1206
|
-
showCode:
|
|
1207
|
-
showControls:
|
|
1208
|
-
backgroundColor:
|
|
1209
|
-
alignPreview:
|
|
1210
|
-
previewHeight:
|
|
1211
|
-
value:
|
|
1212
|
-
});
|
|
1213
|
-
var PageBlockItemColorValue =
|
|
1214
|
-
var PageBlockItemComponentValue =
|
|
1215
|
-
selectedPropertyIds:
|
|
1216
|
-
value:
|
|
1217
|
-
|
|
1218
|
-
entityId:
|
|
1219
|
-
entityType:
|
|
1108
|
+
caption: z38.string().optional(),
|
|
1109
|
+
value: z38.string()
|
|
1110
|
+
});
|
|
1111
|
+
var PageBlockItemSandboxValue = z38.object({
|
|
1112
|
+
showCode: z38.boolean().optional(),
|
|
1113
|
+
showControls: z38.boolean().optional(),
|
|
1114
|
+
backgroundColor: z38.string().optional(),
|
|
1115
|
+
alignPreview: z38.enum(["Left", "Center"]).optional(),
|
|
1116
|
+
previewHeight: z38.number().optional(),
|
|
1117
|
+
value: z38.string()
|
|
1118
|
+
});
|
|
1119
|
+
var PageBlockItemColorValue = z38.record(z38.any());
|
|
1120
|
+
var PageBlockItemComponentValue = z38.object({
|
|
1121
|
+
selectedPropertyIds: z38.array(z38.string()).optional(),
|
|
1122
|
+
value: z38.array(
|
|
1123
|
+
z38.object({
|
|
1124
|
+
entityId: z38.string(),
|
|
1125
|
+
entityType: z38.enum(["Component", "ComponentGroup"])
|
|
1220
1126
|
})
|
|
1221
1127
|
).default([])
|
|
1222
1128
|
});
|
|
1223
|
-
var PageBlockItemComponentPropertyValue =
|
|
1224
|
-
value:
|
|
1225
|
-
});
|
|
1226
|
-
var PageBlockItemDividerValue =
|
|
1227
|
-
var PageBlockItemEmbedValue =
|
|
1228
|
-
value:
|
|
1229
|
-
caption:
|
|
1230
|
-
height:
|
|
1231
|
-
openGraph:
|
|
1232
|
-
title:
|
|
1233
|
-
description:
|
|
1234
|
-
imageUrl:
|
|
1129
|
+
var PageBlockItemComponentPropertyValue = z38.object({
|
|
1130
|
+
value: z38.string()
|
|
1131
|
+
});
|
|
1132
|
+
var PageBlockItemDividerValue = z38.object({});
|
|
1133
|
+
var PageBlockItemEmbedValue = z38.object({
|
|
1134
|
+
value: z38.string().optional(),
|
|
1135
|
+
caption: z38.string().optional(),
|
|
1136
|
+
height: z38.number().optional(),
|
|
1137
|
+
openGraph: z38.object({
|
|
1138
|
+
title: z38.string().optional(),
|
|
1139
|
+
description: z38.string().optional(),
|
|
1140
|
+
imageUrl: z38.string().optional()
|
|
1235
1141
|
}).optional()
|
|
1236
1142
|
});
|
|
1237
|
-
var PageBlockItemFigmaNodeValue =
|
|
1238
|
-
showSearch:
|
|
1143
|
+
var PageBlockItemFigmaNodeValue = z38.object({
|
|
1144
|
+
showSearch: z38.boolean().optional(),
|
|
1239
1145
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1240
1146
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1241
|
-
showFrameDetails:
|
|
1242
|
-
value:
|
|
1243
|
-
|
|
1244
|
-
entityId:
|
|
1147
|
+
showFrameDetails: z38.boolean().optional(),
|
|
1148
|
+
value: z38.array(
|
|
1149
|
+
z38.object({
|
|
1150
|
+
entityId: z38.string(),
|
|
1245
1151
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
1246
1152
|
})
|
|
1247
1153
|
).default([])
|
|
1248
1154
|
});
|
|
1249
|
-
var PageBlockItemImageValue =
|
|
1250
|
-
alt:
|
|
1251
|
-
caption:
|
|
1155
|
+
var PageBlockItemImageValue = z38.object({
|
|
1156
|
+
alt: z38.string().optional(),
|
|
1157
|
+
caption: z38.string().optional(),
|
|
1252
1158
|
alignment: PageBlockImageAlignment.optional(),
|
|
1253
1159
|
value: PageBlockImageReference.optional()
|
|
1254
1160
|
});
|
|
1255
|
-
var PageBlockItemMarkdownValue =
|
|
1256
|
-
value:
|
|
1161
|
+
var PageBlockItemMarkdownValue = z38.object({
|
|
1162
|
+
value: z38.string()
|
|
1257
1163
|
});
|
|
1258
|
-
var PageBlockItemMultiRichTextValue =
|
|
1164
|
+
var PageBlockItemMultiRichTextValue = z38.object({
|
|
1259
1165
|
value: PageBlockText.array()
|
|
1260
1166
|
});
|
|
1261
|
-
var PageBlockItemMultiSelectValue =
|
|
1262
|
-
value:
|
|
1167
|
+
var PageBlockItemMultiSelectValue = z38.object({
|
|
1168
|
+
value: z38.array(z38.string()).default([])
|
|
1263
1169
|
});
|
|
1264
|
-
var PageBlockItemNumberValue =
|
|
1265
|
-
value:
|
|
1170
|
+
var PageBlockItemNumberValue = z38.object({
|
|
1171
|
+
value: z38.number()
|
|
1266
1172
|
});
|
|
1267
|
-
var PageBlockItemRichTextValue =
|
|
1173
|
+
var PageBlockItemRichTextValue = z38.object({
|
|
1268
1174
|
value: PageBlockText,
|
|
1269
1175
|
calloutType: PageBlockCalloutType.optional()
|
|
1270
1176
|
});
|
|
1271
|
-
var PageBlockItemSingleSelectValue =
|
|
1272
|
-
value:
|
|
1177
|
+
var PageBlockItemSingleSelectValue = z38.object({
|
|
1178
|
+
value: z38.string()
|
|
1273
1179
|
});
|
|
1274
|
-
var PageBlockItemStorybookValue =
|
|
1275
|
-
caption:
|
|
1276
|
-
height:
|
|
1277
|
-
embedUrl:
|
|
1278
|
-
value:
|
|
1180
|
+
var PageBlockItemStorybookValue = z38.object({
|
|
1181
|
+
caption: z38.string().optional(),
|
|
1182
|
+
height: z38.number().optional(),
|
|
1183
|
+
embedUrl: z38.string().optional(),
|
|
1184
|
+
value: z38.string().optional()
|
|
1279
1185
|
});
|
|
1280
|
-
var PageBlockItemTextValue =
|
|
1281
|
-
value:
|
|
1186
|
+
var PageBlockItemTextValue = z38.object({
|
|
1187
|
+
value: z38.string()
|
|
1282
1188
|
});
|
|
1283
|
-
var PageBlockItemTokenValue =
|
|
1284
|
-
selectedPropertyIds:
|
|
1285
|
-
selectedThemeIds:
|
|
1189
|
+
var PageBlockItemTokenValue = z38.object({
|
|
1190
|
+
selectedPropertyIds: z38.array(z38.string()).optional(),
|
|
1191
|
+
selectedThemeIds: z38.array(z38.string()).optional(),
|
|
1286
1192
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
1287
|
-
value:
|
|
1288
|
-
|
|
1289
|
-
entityId:
|
|
1290
|
-
entityType:
|
|
1291
|
-
entityMeta:
|
|
1292
|
-
showNestedGroups:
|
|
1193
|
+
value: z38.array(
|
|
1194
|
+
z38.object({
|
|
1195
|
+
entityId: z38.string(),
|
|
1196
|
+
entityType: z38.enum(["Token", "TokenGroup"]),
|
|
1197
|
+
entityMeta: z38.object({
|
|
1198
|
+
showNestedGroups: z38.boolean().optional()
|
|
1293
1199
|
}).optional()
|
|
1294
1200
|
})
|
|
1295
1201
|
).default([])
|
|
1296
1202
|
});
|
|
1297
|
-
var PageBlockItemTokenPropertyValue =
|
|
1298
|
-
selectedPropertyIds:
|
|
1299
|
-
selectedThemeIds:
|
|
1300
|
-
value:
|
|
1203
|
+
var PageBlockItemTokenPropertyValue = z38.object({
|
|
1204
|
+
selectedPropertyIds: z38.array(z38.string()).optional(),
|
|
1205
|
+
selectedThemeIds: z38.array(z38.string()).optional(),
|
|
1206
|
+
value: z38.array(z38.string()).default([])
|
|
1301
1207
|
});
|
|
1302
|
-
var PageBlockItemTokenTypeValue =
|
|
1303
|
-
value:
|
|
1208
|
+
var PageBlockItemTokenTypeValue = z38.object({
|
|
1209
|
+
value: z38.array(DesignTokenType).default([])
|
|
1304
1210
|
});
|
|
1305
|
-
var PageBlockItemUrlValue =
|
|
1306
|
-
value:
|
|
1211
|
+
var PageBlockItemUrlValue = z38.object({
|
|
1212
|
+
value: z38.string()
|
|
1307
1213
|
});
|
|
1308
|
-
var PageBlockItemTableRichTextNode =
|
|
1309
|
-
type:
|
|
1310
|
-
id:
|
|
1214
|
+
var PageBlockItemTableRichTextNode = z38.object({
|
|
1215
|
+
type: z38.literal("RichText"),
|
|
1216
|
+
id: z38.string(),
|
|
1311
1217
|
value: PageBlockItemRichTextValue.shape.value
|
|
1312
1218
|
});
|
|
1313
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
1314
|
-
type:
|
|
1219
|
+
var PageBlockItemTableMultiRichTextNode = z38.object({
|
|
1220
|
+
type: z38.literal("MultiRichText"),
|
|
1315
1221
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
1316
1222
|
});
|
|
1317
|
-
var PageBlockItemTableImageNode =
|
|
1318
|
-
type:
|
|
1319
|
-
id:
|
|
1223
|
+
var PageBlockItemTableImageNode = z38.object({
|
|
1224
|
+
type: z38.literal("Image"),
|
|
1225
|
+
id: z38.string(),
|
|
1320
1226
|
caption: PageBlockItemImageValue.shape.caption,
|
|
1321
1227
|
value: PageBlockItemImageValue.shape.value
|
|
1322
1228
|
});
|
|
1323
|
-
var PageBlockItemTableNode =
|
|
1229
|
+
var PageBlockItemTableNode = z38.discriminatedUnion("type", [
|
|
1324
1230
|
PageBlockItemTableRichTextNode,
|
|
1325
1231
|
// PageBlockItemTableMultiRichTextNode,
|
|
1326
1232
|
PageBlockItemTableImageNode
|
|
1327
1233
|
]);
|
|
1328
|
-
var PageBlockItemTableCell =
|
|
1329
|
-
id:
|
|
1330
|
-
nodes:
|
|
1331
|
-
columnWidth:
|
|
1234
|
+
var PageBlockItemTableCell = z38.object({
|
|
1235
|
+
id: z38.string(),
|
|
1236
|
+
nodes: z38.array(PageBlockItemTableNode),
|
|
1237
|
+
columnWidth: z38.number().optional(),
|
|
1332
1238
|
alignment: PageBlockTableCellAlignment
|
|
1333
1239
|
});
|
|
1334
|
-
var PageBlockItemTableRow =
|
|
1335
|
-
cells:
|
|
1240
|
+
var PageBlockItemTableRow = z38.object({
|
|
1241
|
+
cells: z38.array(PageBlockItemTableCell)
|
|
1336
1242
|
});
|
|
1337
|
-
var PageBlockItemTableValue =
|
|
1338
|
-
highlightHeaderColumn:
|
|
1339
|
-
highlightHeaderRow:
|
|
1340
|
-
showBorder:
|
|
1341
|
-
value:
|
|
1243
|
+
var PageBlockItemTableValue = z38.object({
|
|
1244
|
+
highlightHeaderColumn: z38.boolean().optional(),
|
|
1245
|
+
highlightHeaderRow: z38.boolean().optional(),
|
|
1246
|
+
showBorder: z38.boolean().optional(),
|
|
1247
|
+
value: z38.array(PageBlockItemTableRow).default([])
|
|
1342
1248
|
});
|
|
1343
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
1344
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
1249
|
+
var DocumentationItemHeaderAlignmentSchema = z39.enum(["Left", "Center"]);
|
|
1250
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z39.enum(["AspectFill", "AspectFit"]);
|
|
1345
1251
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1346
1252
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1347
|
-
var DocumentationItemHeaderV1 =
|
|
1348
|
-
description:
|
|
1253
|
+
var DocumentationItemHeaderV1 = z40.object({
|
|
1254
|
+
description: z40.string(),
|
|
1349
1255
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1350
1256
|
foregroundColor: ColorTokenData.nullish(),
|
|
1351
1257
|
backgroundColor: ColorTokenData.nullish(),
|
|
1352
1258
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
1353
1259
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1354
|
-
showBackgroundOverlay:
|
|
1355
|
-
showCoverText:
|
|
1356
|
-
minHeight:
|
|
1260
|
+
showBackgroundOverlay: z40.boolean(),
|
|
1261
|
+
showCoverText: z40.boolean(),
|
|
1262
|
+
minHeight: z40.number().nullish()
|
|
1357
1263
|
});
|
|
1358
1264
|
var defaultDocumentationItemHeaderV1 = {
|
|
1359
1265
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1362,26 +1268,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
1362
1268
|
showBackgroundOverlay: false,
|
|
1363
1269
|
showCoverText: true
|
|
1364
1270
|
};
|
|
1365
|
-
var DocumentationItemConfigurationV1 =
|
|
1366
|
-
showSidebar:
|
|
1367
|
-
isPrivate:
|
|
1368
|
-
isHidden:
|
|
1271
|
+
var DocumentationItemConfigurationV1 = z41.object({
|
|
1272
|
+
showSidebar: z41.boolean(),
|
|
1273
|
+
isPrivate: z41.boolean().optional(),
|
|
1274
|
+
isHidden: z41.boolean().optional(),
|
|
1369
1275
|
header: DocumentationItemHeaderV1
|
|
1370
1276
|
});
|
|
1371
|
-
var DocumentationPageDataV1 =
|
|
1372
|
-
blocks:
|
|
1277
|
+
var DocumentationPageDataV1 = z42.object({
|
|
1278
|
+
blocks: z42.array(PageBlockV1),
|
|
1373
1279
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1374
1280
|
});
|
|
1375
|
-
var DocumentationItemHeaderV2 =
|
|
1376
|
-
description:
|
|
1281
|
+
var DocumentationItemHeaderV2 = z43.object({
|
|
1282
|
+
description: z43.string(),
|
|
1377
1283
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1378
1284
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
1379
1285
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
1380
1286
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
1381
1287
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1382
|
-
showBackgroundOverlay:
|
|
1383
|
-
showCoverText:
|
|
1384
|
-
minHeight:
|
|
1288
|
+
showBackgroundOverlay: z43.boolean(),
|
|
1289
|
+
showCoverText: z43.boolean(),
|
|
1290
|
+
minHeight: z43.number().nullish()
|
|
1385
1291
|
});
|
|
1386
1292
|
var defaultDocumentationItemHeaderV2 = {
|
|
1387
1293
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1390,192 +1296,192 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1390
1296
|
showBackgroundOverlay: false,
|
|
1391
1297
|
showCoverText: true
|
|
1392
1298
|
};
|
|
1393
|
-
var DocumentationItemConfigurationV2 =
|
|
1394
|
-
showSidebar:
|
|
1395
|
-
isPrivate:
|
|
1396
|
-
isHidden:
|
|
1299
|
+
var DocumentationItemConfigurationV2 = z44.object({
|
|
1300
|
+
showSidebar: z44.boolean(),
|
|
1301
|
+
isPrivate: z44.boolean().optional(),
|
|
1302
|
+
isHidden: z44.boolean().optional(),
|
|
1397
1303
|
header: DocumentationItemHeaderV2
|
|
1398
1304
|
});
|
|
1399
|
-
var DocumentationPageDataV2 =
|
|
1305
|
+
var DocumentationPageDataV2 = z45.object({
|
|
1400
1306
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1401
1307
|
});
|
|
1402
|
-
var DesignElementOrigin =
|
|
1403
|
-
id:
|
|
1404
|
-
sourceId:
|
|
1405
|
-
name:
|
|
1308
|
+
var DesignElementOrigin = z46.object({
|
|
1309
|
+
id: z46.string(),
|
|
1310
|
+
sourceId: z46.string(),
|
|
1311
|
+
name: z46.string()
|
|
1406
1312
|
});
|
|
1407
|
-
var DesignElementBase =
|
|
1408
|
-
id:
|
|
1409
|
-
persistentId:
|
|
1313
|
+
var DesignElementBase = z46.object({
|
|
1314
|
+
id: z46.string(),
|
|
1315
|
+
persistentId: z46.string(),
|
|
1410
1316
|
meta: ObjectMeta,
|
|
1411
|
-
designSystemVersionId:
|
|
1412
|
-
createdAt:
|
|
1413
|
-
updatedAt:
|
|
1317
|
+
designSystemVersionId: z46.string(),
|
|
1318
|
+
createdAt: z46.coerce.date(),
|
|
1319
|
+
updatedAt: z46.coerce.date()
|
|
1414
1320
|
});
|
|
1415
1321
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1416
1322
|
origin: DesignElementOrigin
|
|
1417
1323
|
});
|
|
1418
|
-
var DesignElementGroupablePart =
|
|
1419
|
-
parentPersistentId:
|
|
1420
|
-
sortOrder:
|
|
1324
|
+
var DesignElementGroupablePart = z46.object({
|
|
1325
|
+
parentPersistentId: z46.string().optional(),
|
|
1326
|
+
sortOrder: z46.number()
|
|
1421
1327
|
});
|
|
1422
1328
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1423
1329
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1424
|
-
parentPersistentId:
|
|
1330
|
+
parentPersistentId: z46.string()
|
|
1425
1331
|
});
|
|
1426
|
-
var DesignElementBrandedPart =
|
|
1427
|
-
brandPersistentId:
|
|
1332
|
+
var DesignElementBrandedPart = z46.object({
|
|
1333
|
+
brandPersistentId: z46.string()
|
|
1428
1334
|
});
|
|
1429
|
-
var DesignElementSlugPart =
|
|
1430
|
-
slug:
|
|
1431
|
-
userSlug:
|
|
1335
|
+
var DesignElementSlugPart = z46.object({
|
|
1336
|
+
slug: z46.string().optional(),
|
|
1337
|
+
userSlug: z46.string().optional()
|
|
1432
1338
|
});
|
|
1433
1339
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1434
1340
|
data: PageBlockDataV2
|
|
1435
1341
|
});
|
|
1436
|
-
var PageBlockEditorModelV2 =
|
|
1437
|
-
id:
|
|
1438
|
-
type:
|
|
1342
|
+
var PageBlockEditorModelV2 = z47.object({
|
|
1343
|
+
id: z47.string(),
|
|
1344
|
+
type: z47.literal("Block"),
|
|
1439
1345
|
data: PageBlockDataV2
|
|
1440
1346
|
});
|
|
1441
|
-
var PageSectionTypeV2 =
|
|
1442
|
-
var PageSectionColumnV2 =
|
|
1443
|
-
id:
|
|
1444
|
-
blocks:
|
|
1445
|
-
});
|
|
1446
|
-
var PageSectionItemV2 =
|
|
1447
|
-
id:
|
|
1448
|
-
title:
|
|
1449
|
-
columns:
|
|
1450
|
-
});
|
|
1451
|
-
var PageSectionPaddingV2 =
|
|
1452
|
-
top:
|
|
1453
|
-
bottom:
|
|
1454
|
-
left:
|
|
1455
|
-
right:
|
|
1456
|
-
});
|
|
1457
|
-
var PageSectionAppearanceV2 =
|
|
1458
|
-
expandToEdges:
|
|
1459
|
-
contentExpandToEdges:
|
|
1347
|
+
var PageSectionTypeV2 = z48.enum(["Tabs"]);
|
|
1348
|
+
var PageSectionColumnV2 = z48.object({
|
|
1349
|
+
id: z48.string(),
|
|
1350
|
+
blocks: z48.array(PageBlockEditorModelV2)
|
|
1351
|
+
});
|
|
1352
|
+
var PageSectionItemV2 = z48.object({
|
|
1353
|
+
id: z48.string(),
|
|
1354
|
+
title: z48.string(),
|
|
1355
|
+
columns: z48.array(PageSectionColumnV2)
|
|
1356
|
+
});
|
|
1357
|
+
var PageSectionPaddingV2 = z48.object({
|
|
1358
|
+
top: z48.number().optional(),
|
|
1359
|
+
bottom: z48.number().optional(),
|
|
1360
|
+
left: z48.number().optional(),
|
|
1361
|
+
right: z48.number().optional()
|
|
1362
|
+
});
|
|
1363
|
+
var PageSectionAppearanceV2 = z48.object({
|
|
1364
|
+
expandToEdges: z48.boolean(),
|
|
1365
|
+
contentExpandToEdges: z48.boolean(),
|
|
1460
1366
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1461
1367
|
foregroundColor: PageBlockColorV2.optional(),
|
|
1462
1368
|
padding: PageSectionPaddingV2.optional()
|
|
1463
1369
|
});
|
|
1464
|
-
var PageSectionEditorModelV2 =
|
|
1465
|
-
id:
|
|
1466
|
-
type:
|
|
1467
|
-
variantId:
|
|
1370
|
+
var PageSectionEditorModelV2 = z48.object({
|
|
1371
|
+
id: z48.string(),
|
|
1372
|
+
type: z48.literal("Section"),
|
|
1373
|
+
variantId: z48.string().optional(),
|
|
1468
1374
|
sectionType: PageSectionTypeV2,
|
|
1469
1375
|
appearance: PageSectionAppearanceV2,
|
|
1470
|
-
items:
|
|
1376
|
+
items: z48.array(PageSectionItemV2)
|
|
1471
1377
|
});
|
|
1472
|
-
var DurationUnit =
|
|
1473
|
-
var DurationValue =
|
|
1378
|
+
var DurationUnit = z49.enum(["Ms"]);
|
|
1379
|
+
var DurationValue = z49.object({
|
|
1474
1380
|
unit: DurationUnit,
|
|
1475
|
-
measure:
|
|
1381
|
+
measure: z49.number()
|
|
1476
1382
|
});
|
|
1477
1383
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1478
|
-
var FigmaFileStructureNodeType =
|
|
1479
|
-
var FigmaFileStructureNodeBase =
|
|
1480
|
-
id:
|
|
1481
|
-
name:
|
|
1384
|
+
var FigmaFileStructureNodeType = z50.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1385
|
+
var FigmaFileStructureNodeBase = z50.object({
|
|
1386
|
+
id: z50.string(),
|
|
1387
|
+
name: z50.string(),
|
|
1482
1388
|
type: FigmaFileStructureNodeType,
|
|
1483
1389
|
size: SizeOrUndefined,
|
|
1484
|
-
parentComponentSetId:
|
|
1390
|
+
parentComponentSetId: z50.string().optional()
|
|
1485
1391
|
});
|
|
1486
1392
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1487
|
-
children:
|
|
1393
|
+
children: z50.lazy(() => FigmaFileStructureNode.array())
|
|
1488
1394
|
});
|
|
1489
|
-
var FigmaFileStructureStatistics =
|
|
1490
|
-
frames:
|
|
1491
|
-
components:
|
|
1492
|
-
componentSets:
|
|
1395
|
+
var FigmaFileStructureStatistics = z50.object({
|
|
1396
|
+
frames: z50.number().nullable().optional().transform((v) => v ?? 0),
|
|
1397
|
+
components: z50.number().nullable().optional().transform((v) => v ?? 0),
|
|
1398
|
+
componentSets: z50.number().nullable().optional().transform((v) => v ?? 0)
|
|
1493
1399
|
});
|
|
1494
|
-
var FigmaFileStructureElementData =
|
|
1495
|
-
value:
|
|
1400
|
+
var FigmaFileStructureElementData = z50.object({
|
|
1401
|
+
value: z50.object({
|
|
1496
1402
|
structure: FigmaFileStructureNode,
|
|
1497
1403
|
assetsInFile: FigmaFileStructureStatistics
|
|
1498
1404
|
})
|
|
1499
1405
|
});
|
|
1500
|
-
var FigmaNodeReferenceData =
|
|
1501
|
-
structureElementId:
|
|
1502
|
-
nodeId:
|
|
1503
|
-
fileId:
|
|
1504
|
-
valid:
|
|
1406
|
+
var FigmaNodeReferenceData = z51.object({
|
|
1407
|
+
structureElementId: z51.string(),
|
|
1408
|
+
nodeId: z51.string(),
|
|
1409
|
+
fileId: z51.string().optional(),
|
|
1410
|
+
valid: z51.boolean(),
|
|
1505
1411
|
// Asset data
|
|
1506
|
-
assetId:
|
|
1507
|
-
assetScale:
|
|
1508
|
-
assetWidth:
|
|
1509
|
-
assetHeight:
|
|
1510
|
-
assetUrl:
|
|
1511
|
-
assetOriginKey:
|
|
1512
|
-
});
|
|
1513
|
-
var FigmaNodeReferenceElementData =
|
|
1412
|
+
assetId: z51.string().optional(),
|
|
1413
|
+
assetScale: z51.number().optional(),
|
|
1414
|
+
assetWidth: z51.number().optional(),
|
|
1415
|
+
assetHeight: z51.number().optional(),
|
|
1416
|
+
assetUrl: z51.string().optional(),
|
|
1417
|
+
assetOriginKey: z51.string().optional()
|
|
1418
|
+
});
|
|
1419
|
+
var FigmaNodeReferenceElementData = z51.object({
|
|
1514
1420
|
value: FigmaNodeReferenceData
|
|
1515
1421
|
});
|
|
1516
|
-
var FontFamilyValue =
|
|
1422
|
+
var FontFamilyValue = z52.string();
|
|
1517
1423
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1518
|
-
var FontSizeUnit =
|
|
1519
|
-
var FontSizeValue =
|
|
1424
|
+
var FontSizeUnit = z53.enum(["Pixels", "Rem", "Percent"]);
|
|
1425
|
+
var FontSizeValue = z53.object({
|
|
1520
1426
|
unit: FontSizeUnit,
|
|
1521
|
-
measure:
|
|
1427
|
+
measure: z53.number()
|
|
1522
1428
|
});
|
|
1523
1429
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1524
|
-
var FontWeightValue =
|
|
1430
|
+
var FontWeightValue = z54.string();
|
|
1525
1431
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1526
|
-
var GradientType =
|
|
1527
|
-
var GradientStop =
|
|
1528
|
-
position:
|
|
1432
|
+
var GradientType = z55.enum(["Linear", "Radial", "Angular"]);
|
|
1433
|
+
var GradientStop = z55.object({
|
|
1434
|
+
position: z55.number(),
|
|
1529
1435
|
color: ColorTokenData
|
|
1530
1436
|
});
|
|
1531
|
-
var GradientLayerValue =
|
|
1437
|
+
var GradientLayerValue = z55.object({
|
|
1532
1438
|
from: Point2D,
|
|
1533
1439
|
to: Point2D,
|
|
1534
1440
|
type: GradientType,
|
|
1535
|
-
aspectRatio: nullishToOptional(
|
|
1441
|
+
aspectRatio: nullishToOptional(z55.number()),
|
|
1536
1442
|
// z.number(),
|
|
1537
|
-
stops:
|
|
1443
|
+
stops: z55.array(GradientStop).min(2)
|
|
1538
1444
|
});
|
|
1539
1445
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1540
|
-
var GradientTokenValue =
|
|
1446
|
+
var GradientTokenValue = z55.array(GradientLayerData);
|
|
1541
1447
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1542
|
-
var DocumentationGroupBehavior =
|
|
1543
|
-
var ElementGroupDataV1 =
|
|
1448
|
+
var DocumentationGroupBehavior = z56.enum(["Group", "Tabs"]);
|
|
1449
|
+
var ElementGroupDataV1 = z56.object({
|
|
1544
1450
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1545
1451
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1546
1452
|
});
|
|
1547
|
-
var ElementGroupDataV2 =
|
|
1453
|
+
var ElementGroupDataV2 = z56.object({
|
|
1548
1454
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1549
1455
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1550
1456
|
});
|
|
1551
|
-
var LetterSpacingUnit =
|
|
1552
|
-
var LetterSpacingValue =
|
|
1457
|
+
var LetterSpacingUnit = z57.enum(["Pixels", "Rem", "Percent"]);
|
|
1458
|
+
var LetterSpacingValue = z57.object({
|
|
1553
1459
|
unit: LetterSpacingUnit,
|
|
1554
|
-
measure:
|
|
1460
|
+
measure: z57.number()
|
|
1555
1461
|
});
|
|
1556
1462
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1557
|
-
var LineHeightUnit =
|
|
1558
|
-
var LineHeightValue =
|
|
1463
|
+
var LineHeightUnit = z58.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1464
|
+
var LineHeightValue = z58.object({
|
|
1559
1465
|
unit: LineHeightUnit,
|
|
1560
|
-
measure:
|
|
1466
|
+
measure: z58.number()
|
|
1561
1467
|
});
|
|
1562
1468
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1563
|
-
var ParagraphIndentUnit =
|
|
1564
|
-
var ParagraphIndentValue =
|
|
1469
|
+
var ParagraphIndentUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
1470
|
+
var ParagraphIndentValue = z59.object({
|
|
1565
1471
|
unit: ParagraphIndentUnit,
|
|
1566
|
-
measure:
|
|
1472
|
+
measure: z59.number()
|
|
1567
1473
|
});
|
|
1568
1474
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1569
|
-
var ParagraphSpacingUnit =
|
|
1570
|
-
var ParagraphSpacingValue =
|
|
1475
|
+
var ParagraphSpacingUnit = z60.enum(["Pixels", "Rem", "Percent"]);
|
|
1476
|
+
var ParagraphSpacingValue = z60.object({
|
|
1571
1477
|
unit: ParagraphSpacingUnit,
|
|
1572
|
-
measure:
|
|
1478
|
+
measure: z60.number()
|
|
1573
1479
|
});
|
|
1574
1480
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1575
|
-
var ProductCopyValue =
|
|
1481
|
+
var ProductCopyValue = z61.string();
|
|
1576
1482
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1577
1483
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1578
|
-
var SafeIdSchema =
|
|
1484
|
+
var SafeIdSchema = z62.string().refine(
|
|
1579
1485
|
(value) => {
|
|
1580
1486
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1581
1487
|
},
|
|
@@ -1583,39 +1489,39 @@ var SafeIdSchema = z65.string().refine(
|
|
|
1583
1489
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1584
1490
|
}
|
|
1585
1491
|
);
|
|
1586
|
-
var ShadowType =
|
|
1587
|
-
var ShadowLayerValue =
|
|
1492
|
+
var ShadowType = z63.enum(["Drop", "Inner"]);
|
|
1493
|
+
var ShadowLayerValue = z63.object({
|
|
1588
1494
|
color: ColorTokenData,
|
|
1589
|
-
x:
|
|
1590
|
-
y:
|
|
1591
|
-
radius:
|
|
1592
|
-
spread:
|
|
1495
|
+
x: z63.number(),
|
|
1496
|
+
y: z63.number(),
|
|
1497
|
+
radius: z63.number(),
|
|
1498
|
+
spread: z63.number(),
|
|
1593
1499
|
opacity: OpacityTokenData.optional(),
|
|
1594
1500
|
type: ShadowType
|
|
1595
1501
|
});
|
|
1596
1502
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1597
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1598
|
-
var SizeUnit =
|
|
1599
|
-
var SizeValue =
|
|
1503
|
+
var ShadowTokenData = tokenAliasOrValue(z63.array(ShadowTokenDataBase));
|
|
1504
|
+
var SizeUnit = z64.enum(["Pixels", "Rem", "Percent"]);
|
|
1505
|
+
var SizeValue = z64.object({
|
|
1600
1506
|
unit: SizeUnit,
|
|
1601
|
-
measure:
|
|
1507
|
+
measure: z64.number()
|
|
1602
1508
|
});
|
|
1603
1509
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1604
|
-
var SpaceUnit =
|
|
1605
|
-
var SpaceValue =
|
|
1510
|
+
var SpaceUnit = z65.enum(["Pixels", "Rem", "Percent"]);
|
|
1511
|
+
var SpaceValue = z65.object({
|
|
1606
1512
|
unit: SpaceUnit,
|
|
1607
|
-
measure:
|
|
1513
|
+
measure: z65.number()
|
|
1608
1514
|
});
|
|
1609
1515
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1610
|
-
var StringValue =
|
|
1516
|
+
var StringValue = z66.string();
|
|
1611
1517
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1612
|
-
var TextCase =
|
|
1518
|
+
var TextCase = z67.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1613
1519
|
var TextCaseValue = TextCase;
|
|
1614
1520
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1615
|
-
var TextDecoration =
|
|
1521
|
+
var TextDecoration = z68.enum(["None", "Underline", "Strikethrough"]);
|
|
1616
1522
|
var TextDecorationValue = TextDecoration;
|
|
1617
1523
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1618
|
-
var TypographyValue =
|
|
1524
|
+
var TypographyValue = z69.object({
|
|
1619
1525
|
fontSize: FontSizeTokenData,
|
|
1620
1526
|
fontFamily: FontFamilyTokenData,
|
|
1621
1527
|
fontWeight: FontWeightTokenData,
|
|
@@ -1627,39 +1533,39 @@ var TypographyValue = z72.object({
|
|
|
1627
1533
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1628
1534
|
});
|
|
1629
1535
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1630
|
-
var Visibility =
|
|
1536
|
+
var Visibility = z70.enum(["Hidden", "Visible"]);
|
|
1631
1537
|
var VisibilityValue = Visibility;
|
|
1632
1538
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1633
|
-
var ZIndexUnit =
|
|
1634
|
-
var ZIndexValue =
|
|
1539
|
+
var ZIndexUnit = z71.enum(["Raw"]);
|
|
1540
|
+
var ZIndexValue = z71.object({
|
|
1635
1541
|
unit: ZIndexUnit,
|
|
1636
|
-
measure:
|
|
1542
|
+
measure: z71.number()
|
|
1637
1543
|
});
|
|
1638
1544
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1639
|
-
var ComponentOriginPart =
|
|
1640
|
-
nodeId:
|
|
1641
|
-
width:
|
|
1642
|
-
height:
|
|
1545
|
+
var ComponentOriginPart = z72.object({
|
|
1546
|
+
nodeId: z72.string().optional(),
|
|
1547
|
+
width: z72.number().optional(),
|
|
1548
|
+
height: z72.number().optional()
|
|
1643
1549
|
});
|
|
1644
|
-
var ComponentAsset =
|
|
1645
|
-
assetId:
|
|
1646
|
-
assetPath:
|
|
1550
|
+
var ComponentAsset = z72.object({
|
|
1551
|
+
assetId: z72.string(),
|
|
1552
|
+
assetPath: z72.string()
|
|
1647
1553
|
});
|
|
1648
1554
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1649
1555
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1650
1556
|
origin: ComponentOrigin.optional(),
|
|
1651
1557
|
thumbnail: ComponentAsset,
|
|
1652
1558
|
svg: ComponentAsset.optional(),
|
|
1653
|
-
isAsset:
|
|
1559
|
+
isAsset: z72.boolean()
|
|
1654
1560
|
});
|
|
1655
1561
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1656
|
-
shortPersistentId:
|
|
1562
|
+
shortPersistentId: z73.string().optional(),
|
|
1657
1563
|
childType: DesignElementType,
|
|
1658
1564
|
data: ElementGroupDataV2.optional()
|
|
1659
1565
|
});
|
|
1660
1566
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1661
1567
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1662
|
-
shortPersistentId:
|
|
1568
|
+
shortPersistentId: z74.string(),
|
|
1663
1569
|
data: DocumentationPageDataV1
|
|
1664
1570
|
});
|
|
1665
1571
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -1668,16 +1574,16 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
1668
1574
|
data: ElementGroupDataV1.optional()
|
|
1669
1575
|
});
|
|
1670
1576
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1671
|
-
shortPersistentId:
|
|
1577
|
+
shortPersistentId: z75.string(),
|
|
1672
1578
|
data: DocumentationPageDataV2.extend({
|
|
1673
|
-
oldBlocks:
|
|
1579
|
+
oldBlocks: z75.array(PageBlockV1).optional()
|
|
1674
1580
|
})
|
|
1675
1581
|
});
|
|
1676
|
-
var FigmaFileStructureOrigin =
|
|
1677
|
-
sourceId:
|
|
1678
|
-
fileId:
|
|
1582
|
+
var FigmaFileStructureOrigin = z76.object({
|
|
1583
|
+
sourceId: z76.string(),
|
|
1584
|
+
fileId: z76.string().optional()
|
|
1679
1585
|
});
|
|
1680
|
-
var FigmaFileStructureData =
|
|
1586
|
+
var FigmaFileStructureData = z76.object({
|
|
1681
1587
|
rootNode: FigmaFileStructureNode,
|
|
1682
1588
|
assetsInFile: FigmaFileStructureStatistics
|
|
1683
1589
|
});
|
|
@@ -1685,19 +1591,19 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1685
1591
|
origin: FigmaFileStructureOrigin,
|
|
1686
1592
|
data: FigmaFileStructureData
|
|
1687
1593
|
});
|
|
1688
|
-
var FigmaNodeReferenceOrigin =
|
|
1689
|
-
sourceId:
|
|
1690
|
-
parentName:
|
|
1594
|
+
var FigmaNodeReferenceOrigin = z77.object({
|
|
1595
|
+
sourceId: z77.string(),
|
|
1596
|
+
parentName: z77.string().optional()
|
|
1691
1597
|
});
|
|
1692
1598
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1693
1599
|
data: FigmaNodeReferenceData,
|
|
1694
1600
|
origin: FigmaNodeReferenceOrigin
|
|
1695
1601
|
});
|
|
1696
|
-
var DesignTokenOriginPart =
|
|
1697
|
-
referenceOriginId:
|
|
1698
|
-
referencePersistentId:
|
|
1699
|
-
referenceResolutionFailed:
|
|
1700
|
-
key:
|
|
1602
|
+
var DesignTokenOriginPart = z78.object({
|
|
1603
|
+
referenceOriginId: z78.string().optional(),
|
|
1604
|
+
referencePersistentId: z78.string().optional(),
|
|
1605
|
+
referenceResolutionFailed: z78.boolean().optional(),
|
|
1606
|
+
key: z78.string().optional()
|
|
1701
1607
|
});
|
|
1702
1608
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1703
1609
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1709,111 +1615,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1709
1615
|
brandPersistentId: true,
|
|
1710
1616
|
designSystemVersionId: true
|
|
1711
1617
|
});
|
|
1712
|
-
var BlurTokenTypedData =
|
|
1713
|
-
type:
|
|
1618
|
+
var BlurTokenTypedData = z78.object({
|
|
1619
|
+
type: z78.literal("Blur"),
|
|
1714
1620
|
data: BlurTokenData
|
|
1715
1621
|
});
|
|
1716
|
-
var ColorTokenTypedData =
|
|
1717
|
-
type:
|
|
1622
|
+
var ColorTokenTypedData = z78.object({
|
|
1623
|
+
type: z78.literal("Color"),
|
|
1718
1624
|
data: ColorTokenData
|
|
1719
1625
|
});
|
|
1720
|
-
var GradientTokenTypedData =
|
|
1721
|
-
type:
|
|
1626
|
+
var GradientTokenTypedData = z78.object({
|
|
1627
|
+
type: z78.literal("Gradient"),
|
|
1722
1628
|
data: GradientTokenData
|
|
1723
1629
|
});
|
|
1724
|
-
var OpacityTokenTypedData =
|
|
1725
|
-
type:
|
|
1630
|
+
var OpacityTokenTypedData = z78.object({
|
|
1631
|
+
type: z78.literal("Opacity"),
|
|
1726
1632
|
data: OpacityTokenData
|
|
1727
1633
|
});
|
|
1728
|
-
var ShadowTokenTypedData =
|
|
1729
|
-
type:
|
|
1634
|
+
var ShadowTokenTypedData = z78.object({
|
|
1635
|
+
type: z78.literal("Shadow"),
|
|
1730
1636
|
data: ShadowTokenData
|
|
1731
1637
|
});
|
|
1732
|
-
var TypographyTokenTypedData =
|
|
1733
|
-
type:
|
|
1638
|
+
var TypographyTokenTypedData = z78.object({
|
|
1639
|
+
type: z78.literal("Typography"),
|
|
1734
1640
|
data: TypographyTokenData
|
|
1735
1641
|
});
|
|
1736
|
-
var StringTokenTypedData =
|
|
1737
|
-
type:
|
|
1642
|
+
var StringTokenTypedData = z78.object({
|
|
1643
|
+
type: z78.literal("String"),
|
|
1738
1644
|
data: StringTokenData
|
|
1739
1645
|
});
|
|
1740
|
-
var DimensionTokenTypedData =
|
|
1741
|
-
type:
|
|
1646
|
+
var DimensionTokenTypedData = z78.object({
|
|
1647
|
+
type: z78.literal("Dimension"),
|
|
1742
1648
|
data: DimensionTokenData
|
|
1743
1649
|
});
|
|
1744
|
-
var FontSizeTokenTypedData =
|
|
1745
|
-
type:
|
|
1650
|
+
var FontSizeTokenTypedData = z78.object({
|
|
1651
|
+
type: z78.literal("FontSize"),
|
|
1746
1652
|
data: FontSizeTokenData
|
|
1747
1653
|
});
|
|
1748
|
-
var FontFamilyTokenTypedData =
|
|
1749
|
-
type:
|
|
1654
|
+
var FontFamilyTokenTypedData = z78.object({
|
|
1655
|
+
type: z78.literal("FontFamily"),
|
|
1750
1656
|
data: FontFamilyTokenData
|
|
1751
1657
|
});
|
|
1752
|
-
var FontWeightTokenTypedData =
|
|
1753
|
-
type:
|
|
1658
|
+
var FontWeightTokenTypedData = z78.object({
|
|
1659
|
+
type: z78.literal("FontWeight"),
|
|
1754
1660
|
data: FontWeightTokenData
|
|
1755
1661
|
});
|
|
1756
|
-
var LetterSpacingTokenTypedData =
|
|
1757
|
-
type:
|
|
1662
|
+
var LetterSpacingTokenTypedData = z78.object({
|
|
1663
|
+
type: z78.literal("LetterSpacing"),
|
|
1758
1664
|
data: LetterSpacingTokenData
|
|
1759
1665
|
});
|
|
1760
|
-
var LineHeightTokenTypedData =
|
|
1761
|
-
type:
|
|
1666
|
+
var LineHeightTokenTypedData = z78.object({
|
|
1667
|
+
type: z78.literal("LineHeight"),
|
|
1762
1668
|
data: LineHeightTokenData
|
|
1763
1669
|
});
|
|
1764
|
-
var ParagraphSpacingTokenTypedData =
|
|
1765
|
-
type:
|
|
1670
|
+
var ParagraphSpacingTokenTypedData = z78.object({
|
|
1671
|
+
type: z78.literal("ParagraphSpacing"),
|
|
1766
1672
|
data: ParagraphSpacingTokenData
|
|
1767
1673
|
});
|
|
1768
|
-
var TextCaseTokenTypedData =
|
|
1769
|
-
type:
|
|
1674
|
+
var TextCaseTokenTypedData = z78.object({
|
|
1675
|
+
type: z78.literal("TextCase"),
|
|
1770
1676
|
data: TextCaseTokenData
|
|
1771
1677
|
});
|
|
1772
|
-
var TextDecorationTokenTypedData =
|
|
1773
|
-
type:
|
|
1678
|
+
var TextDecorationTokenTypedData = z78.object({
|
|
1679
|
+
type: z78.literal("TextDecoration"),
|
|
1774
1680
|
data: TextDecorationTokenData
|
|
1775
1681
|
});
|
|
1776
|
-
var BorderRadiusTokenTypedData =
|
|
1777
|
-
type:
|
|
1682
|
+
var BorderRadiusTokenTypedData = z78.object({
|
|
1683
|
+
type: z78.literal("BorderRadius"),
|
|
1778
1684
|
data: BorderRadiusTokenData
|
|
1779
1685
|
});
|
|
1780
|
-
var BorderWidthTokenTypedData =
|
|
1781
|
-
type:
|
|
1686
|
+
var BorderWidthTokenTypedData = z78.object({
|
|
1687
|
+
type: z78.literal("BorderWidth"),
|
|
1782
1688
|
data: BorderWidthTokenData
|
|
1783
1689
|
});
|
|
1784
|
-
var BorderTypedData =
|
|
1785
|
-
type:
|
|
1690
|
+
var BorderTypedData = z78.object({
|
|
1691
|
+
type: z78.literal("Border"),
|
|
1786
1692
|
data: BorderTokenData
|
|
1787
1693
|
});
|
|
1788
|
-
var ProductCopyTypedData =
|
|
1789
|
-
type:
|
|
1694
|
+
var ProductCopyTypedData = z78.object({
|
|
1695
|
+
type: z78.literal("ProductCopy"),
|
|
1790
1696
|
data: ProductCopyTokenData
|
|
1791
1697
|
});
|
|
1792
|
-
var SizeTypedData =
|
|
1793
|
-
type:
|
|
1698
|
+
var SizeTypedData = z78.object({
|
|
1699
|
+
type: z78.literal("Size"),
|
|
1794
1700
|
data: SizeTokenData
|
|
1795
1701
|
});
|
|
1796
|
-
var SpaceTypedData =
|
|
1797
|
-
type:
|
|
1702
|
+
var SpaceTypedData = z78.object({
|
|
1703
|
+
type: z78.literal("Space"),
|
|
1798
1704
|
data: SpaceTokenData
|
|
1799
1705
|
});
|
|
1800
|
-
var VisibilityTypedData =
|
|
1801
|
-
type:
|
|
1706
|
+
var VisibilityTypedData = z78.object({
|
|
1707
|
+
type: z78.literal("Visibility"),
|
|
1802
1708
|
data: VisibilityTokenData
|
|
1803
1709
|
});
|
|
1804
|
-
var ZIndexTypedData =
|
|
1805
|
-
type:
|
|
1710
|
+
var ZIndexTypedData = z78.object({
|
|
1711
|
+
type: z78.literal("ZIndex"),
|
|
1806
1712
|
data: ZIndexTokenData
|
|
1807
1713
|
});
|
|
1808
|
-
var DurationTypedData =
|
|
1809
|
-
type:
|
|
1714
|
+
var DurationTypedData = z78.object({
|
|
1715
|
+
type: z78.literal("Duration"),
|
|
1810
1716
|
data: DurationTokenData
|
|
1811
1717
|
});
|
|
1812
|
-
var FontTypedData =
|
|
1813
|
-
type:
|
|
1814
|
-
data:
|
|
1718
|
+
var FontTypedData = z78.object({
|
|
1719
|
+
type: z78.literal("Font"),
|
|
1720
|
+
data: z78.record(z78.any())
|
|
1815
1721
|
});
|
|
1816
|
-
var DesignTokenTypedData =
|
|
1722
|
+
var DesignTokenTypedData = z78.discriminatedUnion("type", [
|
|
1817
1723
|
BlurTokenTypedData,
|
|
1818
1724
|
BorderRadiusTokenTypedData,
|
|
1819
1725
|
BorderWidthTokenTypedData,
|
|
@@ -1846,165 +1752,44 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
1846
1752
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1847
1753
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1848
1754
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1849
|
-
|
|
1850
|
-
tokenPersistentId:
|
|
1755
|
+
z79.object({
|
|
1756
|
+
tokenPersistentId: z79.string(),
|
|
1851
1757
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1852
1758
|
})
|
|
1853
1759
|
);
|
|
1854
|
-
var ThemeElementData =
|
|
1855
|
-
value:
|
|
1856
|
-
overrides:
|
|
1760
|
+
var ThemeElementData = z79.object({
|
|
1761
|
+
value: z79.object({
|
|
1762
|
+
overrides: z79.array(ThemeOverride)
|
|
1857
1763
|
})
|
|
1858
1764
|
});
|
|
1859
|
-
var ThemeOriginPart =
|
|
1860
|
-
var ThemeOriginObject =
|
|
1861
|
-
id:
|
|
1862
|
-
name:
|
|
1765
|
+
var ThemeOriginPart = z79.object({});
|
|
1766
|
+
var ThemeOriginObject = z79.object({
|
|
1767
|
+
id: z79.string(),
|
|
1768
|
+
name: z79.string()
|
|
1863
1769
|
});
|
|
1864
|
-
var ThemeOriginSource =
|
|
1865
|
-
sourceId:
|
|
1866
|
-
sourceObjects:
|
|
1770
|
+
var ThemeOriginSource = z79.object({
|
|
1771
|
+
sourceId: z79.string(),
|
|
1772
|
+
sourceObjects: z79.array(ThemeOriginObject)
|
|
1867
1773
|
});
|
|
1868
|
-
var ThemeOrigin =
|
|
1869
|
-
sources:
|
|
1774
|
+
var ThemeOrigin = z79.object({
|
|
1775
|
+
sources: z79.array(ThemeOriginSource)
|
|
1870
1776
|
});
|
|
1871
1777
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1872
1778
|
origin: ThemeOrigin.optional(),
|
|
1873
|
-
overrides:
|
|
1874
|
-
codeName:
|
|
1875
|
-
});
|
|
1876
|
-
var ImportModelBase = z83.object({
|
|
1877
|
-
id: z83.string(),
|
|
1878
|
-
meta: ObjectMeta,
|
|
1879
|
-
origin: DesignElementOrigin,
|
|
1880
|
-
brandPersistentId: z83.string(),
|
|
1881
|
-
sortOrder: z83.number()
|
|
1882
|
-
});
|
|
1883
|
-
var ImportModelInputBase = ImportModelBase.omit({
|
|
1884
|
-
brandPersistentId: true,
|
|
1885
|
-
origin: true,
|
|
1886
|
-
sortOrder: true
|
|
1887
|
-
}).extend({
|
|
1888
|
-
originId: z83.string(),
|
|
1889
|
-
originMetadata: z83.record(z83.any())
|
|
1890
|
-
});
|
|
1891
|
-
var ComponentImportModelPart = z84.object({
|
|
1892
|
-
thumbnail: ImageImportModel
|
|
1893
|
-
});
|
|
1894
|
-
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1895
|
-
isAsset: z84.boolean(),
|
|
1896
|
-
svg: FigmaSvgRenderImportModel.optional(),
|
|
1897
|
-
origin: ComponentOrigin
|
|
1898
|
-
});
|
|
1899
|
-
var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
1900
|
-
originMetadata: ComponentOriginPart
|
|
1901
|
-
});
|
|
1902
|
-
var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
1903
|
-
svg: FigmaSvgRenderImportModel,
|
|
1904
|
-
originMetadata: ComponentOriginPart
|
|
1905
|
-
});
|
|
1906
|
-
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1907
|
-
z85.object({
|
|
1908
|
-
id: z85.string(),
|
|
1909
|
-
meta: ObjectMeta
|
|
1910
|
-
})
|
|
1911
|
-
);
|
|
1912
|
-
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1913
|
-
z85.object({
|
|
1914
|
-
origin: ThemeOverrideOrigin
|
|
1915
|
-
})
|
|
1916
|
-
);
|
|
1917
|
-
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1918
|
-
z85.object({
|
|
1919
|
-
originId: z85.string(),
|
|
1920
|
-
originMetadata: ThemeOverrideOriginPart
|
|
1921
|
-
})
|
|
1922
|
-
);
|
|
1923
|
-
var ThemeImportModel = z85.object({
|
|
1924
|
-
meta: ObjectMeta,
|
|
1925
|
-
brandPersistentId: z85.string(),
|
|
1926
|
-
originSource: ThemeOriginSource,
|
|
1927
|
-
overrides: z85.array(ThemeOverrideImportModel),
|
|
1928
|
-
sortOrder: z85.number()
|
|
1929
|
-
});
|
|
1930
|
-
var ThemeImportModelInput = z85.object({
|
|
1931
|
-
meta: ObjectMeta,
|
|
1932
|
-
originObjects: z85.array(ThemeOriginObject),
|
|
1933
|
-
overrides: z85.array(ThemeOverrideImportModelInput)
|
|
1934
|
-
});
|
|
1935
|
-
var ThemeUpdateImportModel = z85.object({
|
|
1936
|
-
themePersistentId: z85.string(),
|
|
1937
|
-
overrides: z85.array(ThemeOverrideImportModel)
|
|
1938
|
-
});
|
|
1939
|
-
var ThemeUpdateImportModelInput = z85.object({
|
|
1940
|
-
themePersistentId: z85.string(),
|
|
1941
|
-
overrides: z85.array(ThemeOverrideImportModelInput)
|
|
1942
|
-
});
|
|
1943
|
-
var DesignTokenImportModelPart = z86.object({
|
|
1944
|
-
collection: z86.string().optional(),
|
|
1945
|
-
codeSyntax: z86.record(z86.coerce.string()).optional()
|
|
1946
|
-
});
|
|
1947
|
-
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1948
|
-
origin: DesignTokenOrigin
|
|
1949
|
-
});
|
|
1950
|
-
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1951
|
-
originMetadata: DesignTokenOriginPart
|
|
1952
|
-
});
|
|
1953
|
-
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
1954
|
-
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
1955
|
-
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
1956
|
-
image: FigmaPngRenderImportModel
|
|
1957
|
-
});
|
|
1958
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1959
|
-
children: z87.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1960
|
-
});
|
|
1961
|
-
var FigmaFileStructureImportModelPart = z87.object({
|
|
1962
|
-
data: z87.object({
|
|
1963
|
-
rootNode: FigmaFileStructureNodeImportModel,
|
|
1964
|
-
assetsInFile: FigmaFileStructureStatistics
|
|
1965
|
-
})
|
|
1966
|
-
});
|
|
1967
|
-
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
1968
|
-
origin: FigmaFileStructureOrigin
|
|
1969
|
-
});
|
|
1970
|
-
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1971
|
-
FigmaFileStructureImportModelPart.shape
|
|
1972
|
-
).extend({
|
|
1973
|
-
fileVersionId: z87.string()
|
|
1974
|
-
});
|
|
1975
|
-
var DataSourceImportModel = z88.object({
|
|
1976
|
-
id: z88.string(),
|
|
1977
|
-
fileName: z88.string().optional(),
|
|
1978
|
-
thumbnailUrl: z88.string().optional()
|
|
1979
|
-
});
|
|
1980
|
-
var ImportModelInputCollection = z89.object({
|
|
1981
|
-
source: DataSourceImportModel,
|
|
1982
|
-
tokens: z89.array(DesignTokenImportModelInput).default([]),
|
|
1983
|
-
components: z89.array(ComponentImportModelInput).default([]),
|
|
1984
|
-
assets: z89.array(AssetImportModelInput).default([]),
|
|
1985
|
-
themeUpdates: z89.array(ThemeUpdateImportModelInput).default([]),
|
|
1986
|
-
themes: z89.array(ThemeImportModelInput).default([]),
|
|
1987
|
-
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1988
|
-
});
|
|
1989
|
-
var ImportModelCollection = z89.object({
|
|
1990
|
-
sources: z89.array(DataSourceImportModel),
|
|
1991
|
-
tokens: z89.array(DesignTokenImportModel).default([]),
|
|
1992
|
-
components: z89.array(ComponentImportModel).default([]),
|
|
1993
|
-
themeUpdates: z89.array(ThemeUpdateImportModel).default([]),
|
|
1994
|
-
themes: z89.array(ThemeImportModel).default([]),
|
|
1995
|
-
figmaFileStructures: z89.array(FigmaFileStructureImportModel)
|
|
1779
|
+
overrides: z79.array(ThemeOverride),
|
|
1780
|
+
codeName: z79.string()
|
|
1996
1781
|
});
|
|
1997
|
-
var FileStructureStats =
|
|
1782
|
+
var FileStructureStats = z80.object({
|
|
1998
1783
|
frames: zeroNumberByDefault(),
|
|
1999
1784
|
components: zeroNumberByDefault(),
|
|
2000
1785
|
componentSets: zeroNumberByDefault()
|
|
2001
1786
|
});
|
|
2002
1787
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
2003
1788
|
// Backward compatibility
|
|
2004
|
-
|
|
1789
|
+
z80.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
2005
1790
|
);
|
|
2006
|
-
var SourceImportSummaryByTokenType =
|
|
2007
|
-
var SourceImportTokenSummary =
|
|
1791
|
+
var SourceImportSummaryByTokenType = z80.record(SourceImportSummaryByTokenTypeKey, z80.number());
|
|
1792
|
+
var SourceImportTokenSummary = z80.object({
|
|
2008
1793
|
tokensCreated: zeroNumberByDefault(),
|
|
2009
1794
|
tokensUpdated: zeroNumberByDefault(),
|
|
2010
1795
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -2012,7 +1797,7 @@ var SourceImportTokenSummary = z90.object({
|
|
|
2012
1797
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
2013
1798
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
2014
1799
|
});
|
|
2015
|
-
var SourceImportComponentSummary =
|
|
1800
|
+
var SourceImportComponentSummary = z80.object({
|
|
2016
1801
|
componentsCreated: zeroNumberByDefault(),
|
|
2017
1802
|
componentsUpdated: zeroNumberByDefault(),
|
|
2018
1803
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -2020,154 +1805,154 @@ var SourceImportComponentSummary = z90.object({
|
|
|
2020
1805
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
2021
1806
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
2022
1807
|
});
|
|
2023
|
-
var SourceImportFrameSummary =
|
|
1808
|
+
var SourceImportFrameSummary = z80.object({
|
|
2024
1809
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
2025
|
-
invalidReferencesCount: nullishToOptional(
|
|
2026
|
-
});
|
|
2027
|
-
var SourceImportSummary =
|
|
2028
|
-
sourceId: nullishToOptional(
|
|
2029
|
-
brandId: nullishToOptional(
|
|
2030
|
-
versionId: nullishToOptional(
|
|
2031
|
-
error: nullishToOptional(
|
|
2032
|
-
isFailed:
|
|
2033
|
-
warnings:
|
|
1810
|
+
invalidReferencesCount: nullishToOptional(z80.number().optional())
|
|
1811
|
+
});
|
|
1812
|
+
var SourceImportSummary = z80.object({
|
|
1813
|
+
sourceId: nullishToOptional(z80.string()),
|
|
1814
|
+
brandId: nullishToOptional(z80.string()),
|
|
1815
|
+
versionId: nullishToOptional(z80.string()),
|
|
1816
|
+
error: nullishToOptional(z80.any()),
|
|
1817
|
+
isFailed: z80.boolean(),
|
|
1818
|
+
warnings: z80.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
2034
1819
|
...SourceImportTokenSummary.shape,
|
|
2035
1820
|
...SourceImportComponentSummary.shape,
|
|
2036
1821
|
...FileStructureStats.shape
|
|
2037
1822
|
});
|
|
2038
1823
|
function zeroNumberByDefault() {
|
|
2039
|
-
return
|
|
1824
|
+
return z80.number().nullish().transform((v) => v ?? 0);
|
|
2040
1825
|
}
|
|
2041
|
-
var DataSourceRemoteType =
|
|
2042
|
-
var DataSourceUploadRemoteSource =
|
|
2043
|
-
var DataSourceFigmaState =
|
|
2044
|
-
var DataSourceAutoImportMode =
|
|
2045
|
-
var DataSourceStats =
|
|
1826
|
+
var DataSourceRemoteType = z81.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
1827
|
+
var DataSourceUploadRemoteSource = z81.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
1828
|
+
var DataSourceFigmaState = z81.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
1829
|
+
var DataSourceAutoImportMode = z81.enum(["Never", "Hourly"]);
|
|
1830
|
+
var DataSourceStats = z81.object({
|
|
2046
1831
|
tokens: zeroNumberByDefault2(),
|
|
2047
1832
|
components: zeroNumberByDefault2(),
|
|
2048
1833
|
assets: zeroNumberByDefault2(),
|
|
2049
1834
|
frames: zeroNumberByDefault2()
|
|
2050
1835
|
});
|
|
2051
|
-
var DataSourceFigmaFileData =
|
|
2052
|
-
lastUpdatedAt:
|
|
1836
|
+
var DataSourceFigmaFileData = z81.object({
|
|
1837
|
+
lastUpdatedAt: z81.coerce.date()
|
|
2053
1838
|
});
|
|
2054
|
-
var DataSourceFigmaFileVersionData =
|
|
2055
|
-
id:
|
|
2056
|
-
label:
|
|
2057
|
-
description:
|
|
2058
|
-
createdAt:
|
|
2059
|
-
});
|
|
2060
|
-
var DataSourceFigmaScope =
|
|
2061
|
-
assets:
|
|
2062
|
-
components:
|
|
2063
|
-
documentationFrames:
|
|
2064
|
-
tokens:
|
|
2065
|
-
themePersistentId:
|
|
2066
|
-
isUnpublishedContentFallbackEnabled:
|
|
2067
|
-
});
|
|
2068
|
-
var DataSourceFigmaImportMetadata =
|
|
1839
|
+
var DataSourceFigmaFileVersionData = z81.object({
|
|
1840
|
+
id: z81.string(),
|
|
1841
|
+
label: z81.string().optional(),
|
|
1842
|
+
description: z81.string().optional(),
|
|
1843
|
+
createdAt: z81.coerce.date()
|
|
1844
|
+
});
|
|
1845
|
+
var DataSourceFigmaScope = z81.object({
|
|
1846
|
+
assets: z81.boolean(),
|
|
1847
|
+
components: z81.boolean(),
|
|
1848
|
+
documentationFrames: z81.boolean(),
|
|
1849
|
+
tokens: z81.boolean(),
|
|
1850
|
+
themePersistentId: z81.string().optional(),
|
|
1851
|
+
isUnpublishedContentFallbackEnabled: z81.boolean()
|
|
1852
|
+
});
|
|
1853
|
+
var DataSourceFigmaImportMetadata = z81.object({
|
|
2069
1854
|
fileData: DataSourceFigmaFileData.optional(),
|
|
2070
1855
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
2071
1856
|
});
|
|
2072
|
-
var DataSourceFigmaRemote =
|
|
2073
|
-
type:
|
|
2074
|
-
fileId:
|
|
2075
|
-
preferredCredentialId:
|
|
2076
|
-
ownerId:
|
|
1857
|
+
var DataSourceFigmaRemote = z81.object({
|
|
1858
|
+
type: z81.literal(DataSourceRemoteType.Enum.Figma),
|
|
1859
|
+
fileId: z81.string(),
|
|
1860
|
+
preferredCredentialId: z81.string().optional(),
|
|
1861
|
+
ownerId: z81.string(),
|
|
2077
1862
|
// todo remove or keep to reference who created data source
|
|
2078
|
-
ownerName:
|
|
1863
|
+
ownerName: z81.string(),
|
|
2079
1864
|
// todo probably remove
|
|
2080
1865
|
scope: DataSourceFigmaScope,
|
|
2081
1866
|
state: DataSourceFigmaState,
|
|
2082
|
-
requiresSync:
|
|
1867
|
+
requiresSync: z81.boolean().optional().transform((v) => v ?? false),
|
|
2083
1868
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
2084
|
-
downloadChunkSize:
|
|
2085
|
-
figmaRenderChunkSize:
|
|
2086
|
-
maxFileDepth:
|
|
1869
|
+
downloadChunkSize: z81.number().optional(),
|
|
1870
|
+
figmaRenderChunkSize: z81.number().optional(),
|
|
1871
|
+
maxFileDepth: z81.number().optional()
|
|
2087
1872
|
});
|
|
2088
|
-
var DataSourceTokenStudioRemote =
|
|
2089
|
-
type:
|
|
1873
|
+
var DataSourceTokenStudioRemote = z81.object({
|
|
1874
|
+
type: z81.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
2090
1875
|
});
|
|
2091
|
-
var DataSourceUploadImportMetadata =
|
|
2092
|
-
var DataSourceUploadRemote =
|
|
2093
|
-
type:
|
|
2094
|
-
remoteId:
|
|
1876
|
+
var DataSourceUploadImportMetadata = z81.record(z81.any());
|
|
1877
|
+
var DataSourceUploadRemote = z81.object({
|
|
1878
|
+
type: z81.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
1879
|
+
remoteId: z81.string(),
|
|
2095
1880
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
2096
1881
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
2097
1882
|
warnings: nullishToOptional(ImportWarning.array())
|
|
2098
1883
|
});
|
|
2099
|
-
var DataSourceRemote =
|
|
1884
|
+
var DataSourceRemote = z81.discriminatedUnion("type", [
|
|
2100
1885
|
DataSourceFigmaRemote,
|
|
2101
1886
|
DataSourceUploadRemote,
|
|
2102
1887
|
DataSourceTokenStudioRemote
|
|
2103
1888
|
]);
|
|
2104
|
-
var DataSource =
|
|
2105
|
-
id:
|
|
2106
|
-
name:
|
|
2107
|
-
thumbnailUrl:
|
|
2108
|
-
createdAt:
|
|
2109
|
-
lastImportedAt:
|
|
1889
|
+
var DataSource = z81.object({
|
|
1890
|
+
id: z81.string(),
|
|
1891
|
+
name: z81.string(),
|
|
1892
|
+
thumbnailUrl: z81.string().optional(),
|
|
1893
|
+
createdAt: z81.coerce.date().optional(),
|
|
1894
|
+
lastImportedAt: z81.coerce.date().optional(),
|
|
2110
1895
|
lastImportSummary: SourceImportSummary.optional(),
|
|
2111
|
-
designSystemId:
|
|
2112
|
-
brandPersistentId:
|
|
1896
|
+
designSystemId: z81.string(),
|
|
1897
|
+
brandPersistentId: z81.string(),
|
|
2113
1898
|
autoImportMode: DataSourceAutoImportMode,
|
|
2114
1899
|
stats: DataSourceStats,
|
|
2115
1900
|
remote: DataSourceRemote,
|
|
2116
|
-
sortOrder:
|
|
1901
|
+
sortOrder: z81.number()
|
|
2117
1902
|
});
|
|
2118
|
-
var DataSourceVersion =
|
|
2119
|
-
id:
|
|
2120
|
-
createdAt:
|
|
2121
|
-
label:
|
|
2122
|
-
description:
|
|
1903
|
+
var DataSourceVersion = z81.object({
|
|
1904
|
+
id: z81.string(),
|
|
1905
|
+
createdAt: z81.coerce.date(),
|
|
1906
|
+
label: z81.string().nullish(),
|
|
1907
|
+
description: z81.string().nullish()
|
|
2123
1908
|
});
|
|
2124
1909
|
function zeroNumberByDefault2() {
|
|
2125
|
-
return
|
|
1910
|
+
return z81.number().nullish().transform((v) => v ?? 0);
|
|
2126
1911
|
}
|
|
2127
|
-
var ImportJobState =
|
|
2128
|
-
var ImportJobOperation =
|
|
1912
|
+
var ImportJobState = z82.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
1913
|
+
var ImportJobOperation = z82.enum(["Check", "Import"]);
|
|
2129
1914
|
var ImportJob = Entity.extend({
|
|
2130
|
-
designSystemId:
|
|
2131
|
-
designSystemVersionId:
|
|
2132
|
-
sourceIds:
|
|
1915
|
+
designSystemId: z82.string(),
|
|
1916
|
+
designSystemVersionId: z82.string(),
|
|
1917
|
+
sourceIds: z82.array(z82.string()),
|
|
2133
1918
|
state: ImportJobState,
|
|
2134
|
-
createdByUserId:
|
|
2135
|
-
importContextId:
|
|
2136
|
-
error:
|
|
1919
|
+
createdByUserId: z82.string().optional(),
|
|
1920
|
+
importContextId: z82.string(),
|
|
1921
|
+
error: z82.string().optional(),
|
|
2137
1922
|
sourceType: DataSourceRemoteType,
|
|
2138
|
-
importContextCleanedUp:
|
|
2139
|
-
});
|
|
2140
|
-
var PageBlockDefinitionAppearance =
|
|
2141
|
-
isBordered:
|
|
2142
|
-
hasBackground:
|
|
2143
|
-
isEditorPresentationDifferent:
|
|
2144
|
-
showBlockHeaderInEditor:
|
|
2145
|
-
});
|
|
2146
|
-
var PageBlockDefinitionLayoutType =
|
|
2147
|
-
var PageBlockDefinitionLayoutGap =
|
|
2148
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2149
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2150
|
-
var PageBlockDefinitionLayoutBase =
|
|
1923
|
+
importContextCleanedUp: z82.boolean()
|
|
1924
|
+
});
|
|
1925
|
+
var PageBlockDefinitionAppearance = z83.object({
|
|
1926
|
+
isBordered: z83.boolean().optional(),
|
|
1927
|
+
hasBackground: z83.boolean().optional(),
|
|
1928
|
+
isEditorPresentationDifferent: z83.boolean().optional(),
|
|
1929
|
+
showBlockHeaderInEditor: z83.boolean().optional()
|
|
1930
|
+
});
|
|
1931
|
+
var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
|
|
1932
|
+
var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
|
|
1933
|
+
var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
|
|
1934
|
+
var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
|
|
1935
|
+
var PageBlockDefinitionLayoutBase = z84.object({
|
|
2151
1936
|
type: PageBlockDefinitionLayoutType,
|
|
2152
1937
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
2153
1938
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
2154
1939
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
2155
1940
|
});
|
|
2156
1941
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
2157
|
-
children:
|
|
2158
|
-
});
|
|
2159
|
-
var PageBlockDefinitionVariant =
|
|
2160
|
-
id:
|
|
2161
|
-
name:
|
|
2162
|
-
image:
|
|
2163
|
-
description:
|
|
2164
|
-
documentationLink:
|
|
1942
|
+
children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
|
|
1943
|
+
});
|
|
1944
|
+
var PageBlockDefinitionVariant = z84.object({
|
|
1945
|
+
id: z84.string(),
|
|
1946
|
+
name: z84.string(),
|
|
1947
|
+
image: z84.string().optional(),
|
|
1948
|
+
description: z84.string().optional(),
|
|
1949
|
+
documentationLink: z84.string().optional(),
|
|
2165
1950
|
layout: PageBlockDefinitionLayout,
|
|
2166
|
-
maxColumns:
|
|
2167
|
-
defaultColumns:
|
|
1951
|
+
maxColumns: z84.number().optional(),
|
|
1952
|
+
defaultColumns: z84.number().optional(),
|
|
2168
1953
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2169
1954
|
});
|
|
2170
|
-
var PageBlockDefinitionPropertyType =
|
|
1955
|
+
var PageBlockDefinitionPropertyType = z85.enum([
|
|
2171
1956
|
"RichText",
|
|
2172
1957
|
"MultiRichText",
|
|
2173
1958
|
"Text",
|
|
@@ -2195,7 +1980,7 @@ var PageBlockDefinitionPropertyType = z95.enum([
|
|
|
2195
1980
|
"Color",
|
|
2196
1981
|
"FigmaComponent"
|
|
2197
1982
|
]);
|
|
2198
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
1983
|
+
var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
|
|
2199
1984
|
"Title1",
|
|
2200
1985
|
"Title2",
|
|
2201
1986
|
"Title3",
|
|
@@ -2205,8 +1990,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z95.enum([
|
|
|
2205
1990
|
"Callout",
|
|
2206
1991
|
"Default"
|
|
2207
1992
|
]);
|
|
2208
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2209
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
1993
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
|
|
1994
|
+
var PageBlockDefinitionTextPropertyStyle = z85.enum([
|
|
2210
1995
|
"Title1",
|
|
2211
1996
|
"Title2",
|
|
2212
1997
|
"Title3",
|
|
@@ -2220,15 +2005,15 @@ var PageBlockDefinitionTextPropertyStyle = z95.enum([
|
|
|
2220
2005
|
"SmallSemibold",
|
|
2221
2006
|
"Custom"
|
|
2222
2007
|
]);
|
|
2223
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2224
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2225
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2008
|
+
var PageBlockDefinitionTextPropertyColor = z85.enum(["Neutral", "NeutralFaded"]);
|
|
2009
|
+
var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2010
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
|
|
2226
2011
|
"SegmentedControl",
|
|
2227
2012
|
"ToggleButton",
|
|
2228
2013
|
"Select",
|
|
2229
2014
|
"Checkbox"
|
|
2230
2015
|
]);
|
|
2231
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2016
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z85.enum([
|
|
2232
2017
|
"Green",
|
|
2233
2018
|
"Red",
|
|
2234
2019
|
"Yellow",
|
|
@@ -2243,76 +2028,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z95.enum([
|
|
|
2243
2028
|
"Cyan",
|
|
2244
2029
|
"Fuchsia"
|
|
2245
2030
|
]);
|
|
2246
|
-
var IconSet =
|
|
2031
|
+
var IconSet = z85.enum([
|
|
2247
2032
|
"CheckCircle",
|
|
2248
2033
|
"CrossCircle",
|
|
2249
2034
|
"Alert"
|
|
2250
2035
|
]);
|
|
2251
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2252
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2253
|
-
var PageBlockDefinitionImageWidth =
|
|
2254
|
-
var PageBlockDefinitionSelectChoice =
|
|
2255
|
-
value:
|
|
2256
|
-
name:
|
|
2036
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2037
|
+
var PageBlockDefinitionImageAspectRatio = z85.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2038
|
+
var PageBlockDefinitionImageWidth = z85.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2039
|
+
var PageBlockDefinitionSelectChoice = z85.object({
|
|
2040
|
+
value: z85.string(),
|
|
2041
|
+
name: z85.string(),
|
|
2257
2042
|
icon: IconSet.optional(),
|
|
2258
|
-
customIconUrl:
|
|
2043
|
+
customIconUrl: z85.string().optional(),
|
|
2259
2044
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2260
2045
|
});
|
|
2261
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2262
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2046
|
+
var PageBlockDefinitionUntypedPropertyOptions = z85.record(z85.any());
|
|
2047
|
+
var PageBlockDefinitionRichTextOptions = z85.object({
|
|
2263
2048
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2264
2049
|
});
|
|
2265
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2050
|
+
var PageBlockDefinitionMutiRichTextOptions = z85.object({
|
|
2266
2051
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2267
2052
|
});
|
|
2268
|
-
var PageBlockDefinitionTextOptions =
|
|
2269
|
-
placeholder:
|
|
2270
|
-
defaultValue:
|
|
2053
|
+
var PageBlockDefinitionTextOptions = z85.object({
|
|
2054
|
+
placeholder: z85.string().optional(),
|
|
2055
|
+
defaultValue: z85.string().optional(),
|
|
2271
2056
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2272
2057
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2273
|
-
allowLineBreaks:
|
|
2058
|
+
allowLineBreaks: z85.boolean().optional()
|
|
2274
2059
|
});
|
|
2275
|
-
var PageBlockDefinitionSelectOptions =
|
|
2060
|
+
var PageBlockDefinitionSelectOptions = z85.object({
|
|
2276
2061
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2277
|
-
defaultChoice:
|
|
2278
|
-
choices:
|
|
2062
|
+
defaultChoice: z85.string(),
|
|
2063
|
+
choices: z85.array(PageBlockDefinitionSelectChoice)
|
|
2279
2064
|
});
|
|
2280
|
-
var PageBlockDefinitionImageOptions =
|
|
2065
|
+
var PageBlockDefinitionImageOptions = z85.object({
|
|
2281
2066
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2282
2067
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2283
|
-
allowCaption:
|
|
2284
|
-
recommendation:
|
|
2068
|
+
allowCaption: z85.boolean().optional(),
|
|
2069
|
+
recommendation: z85.string().optional()
|
|
2285
2070
|
});
|
|
2286
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2287
|
-
defaultvalue:
|
|
2071
|
+
var PageBlockDefinitionBooleanOptions = z85.object({
|
|
2072
|
+
defaultvalue: z85.boolean().optional(),
|
|
2288
2073
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2289
2074
|
});
|
|
2290
|
-
var PageBlockDefinitionNumberOptions =
|
|
2291
|
-
defaultValue:
|
|
2292
|
-
min:
|
|
2293
|
-
max:
|
|
2294
|
-
step:
|
|
2295
|
-
placeholder:
|
|
2075
|
+
var PageBlockDefinitionNumberOptions = z85.object({
|
|
2076
|
+
defaultValue: z85.number(),
|
|
2077
|
+
min: z85.number().optional(),
|
|
2078
|
+
max: z85.number().optional(),
|
|
2079
|
+
step: z85.number().optional(),
|
|
2080
|
+
placeholder: z85.string().optional()
|
|
2296
2081
|
});
|
|
2297
|
-
var PageBlockDefinitionComponentOptions =
|
|
2298
|
-
renderLayoutAs:
|
|
2299
|
-
allowPropertySelection:
|
|
2082
|
+
var PageBlockDefinitionComponentOptions = z85.object({
|
|
2083
|
+
renderLayoutAs: z85.enum(["List", "Table"]).optional(),
|
|
2084
|
+
allowPropertySelection: z85.boolean().optional()
|
|
2300
2085
|
});
|
|
2301
|
-
var PageBlockDefinitionProperty =
|
|
2302
|
-
id:
|
|
2303
|
-
name:
|
|
2086
|
+
var PageBlockDefinitionProperty = z85.object({
|
|
2087
|
+
id: z85.string(),
|
|
2088
|
+
name: z85.string(),
|
|
2304
2089
|
type: PageBlockDefinitionPropertyType,
|
|
2305
|
-
description:
|
|
2090
|
+
description: z85.string().optional(),
|
|
2306
2091
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2307
|
-
variantOptions:
|
|
2092
|
+
variantOptions: z85.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2308
2093
|
});
|
|
2309
|
-
var PageBlockDefinitionItem =
|
|
2310
|
-
properties:
|
|
2094
|
+
var PageBlockDefinitionItem = z85.object({
|
|
2095
|
+
properties: z85.array(PageBlockDefinitionProperty),
|
|
2311
2096
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2312
|
-
variants:
|
|
2313
|
-
defaultVariantKey:
|
|
2097
|
+
variants: z85.array(PageBlockDefinitionVariant),
|
|
2098
|
+
defaultVariantKey: z85.string()
|
|
2314
2099
|
});
|
|
2315
|
-
var PageBlockCategory =
|
|
2100
|
+
var PageBlockCategory = z86.enum([
|
|
2316
2101
|
"Text",
|
|
2317
2102
|
"Layout",
|
|
2318
2103
|
"Media",
|
|
@@ -2326,139 +2111,354 @@ var PageBlockCategory = z96.enum([
|
|
|
2326
2111
|
"Data",
|
|
2327
2112
|
"Other"
|
|
2328
2113
|
]);
|
|
2329
|
-
var PageBlockBehaviorDataType =
|
|
2330
|
-
var PageBlockBehaviorSelectionType =
|
|
2331
|
-
var PageBlockDefinitionBehavior =
|
|
2114
|
+
var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2115
|
+
var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2116
|
+
var PageBlockDefinitionBehavior = z86.object({
|
|
2332
2117
|
dataType: PageBlockBehaviorDataType,
|
|
2333
|
-
items:
|
|
2334
|
-
numberOfItems:
|
|
2335
|
-
allowLinks:
|
|
2336
|
-
newItemLabel:
|
|
2118
|
+
items: z86.object({
|
|
2119
|
+
numberOfItems: z86.number(),
|
|
2120
|
+
allowLinks: z86.boolean(),
|
|
2121
|
+
newItemLabel: z86.string().optional()
|
|
2337
2122
|
}).optional(),
|
|
2338
|
-
entities:
|
|
2123
|
+
entities: z86.object({
|
|
2339
2124
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2340
|
-
maxSelected:
|
|
2125
|
+
maxSelected: z86.number()
|
|
2341
2126
|
}).optional()
|
|
2342
2127
|
});
|
|
2343
|
-
var PageBlockDefinitionOnboarding =
|
|
2344
|
-
helpText:
|
|
2345
|
-
documentationLink:
|
|
2128
|
+
var PageBlockDefinitionOnboarding = z86.object({
|
|
2129
|
+
helpText: z86.string(),
|
|
2130
|
+
documentationLink: z86.string().optional()
|
|
2346
2131
|
});
|
|
2347
|
-
var PageBlockDefinition =
|
|
2348
|
-
id:
|
|
2349
|
-
name:
|
|
2350
|
-
description:
|
|
2132
|
+
var PageBlockDefinition = z86.object({
|
|
2133
|
+
id: z86.string(),
|
|
2134
|
+
name: z86.string(),
|
|
2135
|
+
description: z86.string(),
|
|
2351
2136
|
category: PageBlockCategory,
|
|
2352
|
-
icon:
|
|
2353
|
-
documentationLink:
|
|
2354
|
-
searchKeywords:
|
|
2137
|
+
icon: z86.string().optional(),
|
|
2138
|
+
documentationLink: z86.string().optional(),
|
|
2139
|
+
searchKeywords: z86.array(z86.string()).optional(),
|
|
2355
2140
|
item: PageBlockDefinitionItem,
|
|
2356
2141
|
behavior: PageBlockDefinitionBehavior,
|
|
2357
|
-
editorOptions:
|
|
2142
|
+
editorOptions: z86.object({
|
|
2358
2143
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2359
2144
|
}),
|
|
2360
2145
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2361
2146
|
});
|
|
2362
|
-
var DocumentationPageGroup =
|
|
2363
|
-
type:
|
|
2364
|
-
childType:
|
|
2365
|
-
id:
|
|
2366
|
-
persistentId:
|
|
2367
|
-
shortPersistentId:
|
|
2368
|
-
designSystemVersionId:
|
|
2369
|
-
parentPersistentId:
|
|
2370
|
-
sortOrder:
|
|
2371
|
-
title:
|
|
2372
|
-
slug:
|
|
2373
|
-
userSlug:
|
|
2374
|
-
createdAt:
|
|
2375
|
-
updatedAt:
|
|
2376
|
-
});
|
|
2377
|
-
var DocumentationLinkPreview =
|
|
2378
|
-
title:
|
|
2379
|
-
description:
|
|
2147
|
+
var DocumentationPageGroup = z87.object({
|
|
2148
|
+
type: z87.literal("ElementGroup"),
|
|
2149
|
+
childType: z87.literal("DocumentationPage"),
|
|
2150
|
+
id: z87.string(),
|
|
2151
|
+
persistentId: z87.string(),
|
|
2152
|
+
shortPersistentId: z87.string(),
|
|
2153
|
+
designSystemVersionId: z87.string(),
|
|
2154
|
+
parentPersistentId: z87.string().nullish(),
|
|
2155
|
+
sortOrder: z87.number(),
|
|
2156
|
+
title: z87.string(),
|
|
2157
|
+
slug: z87.string(),
|
|
2158
|
+
userSlug: z87.string().nullish(),
|
|
2159
|
+
createdAt: z87.coerce.date(),
|
|
2160
|
+
updatedAt: z87.coerce.date()
|
|
2161
|
+
});
|
|
2162
|
+
var DocumentationLinkPreview = z88.object({
|
|
2163
|
+
title: z88.string().optional(),
|
|
2164
|
+
description: z88.string().optional(),
|
|
2380
2165
|
thumbnail: PageBlockImageReference.optional()
|
|
2381
2166
|
});
|
|
2382
|
-
var DocumentationPageAnchor =
|
|
2383
|
-
blockId:
|
|
2384
|
-
level:
|
|
2385
|
-
text:
|
|
2386
|
-
});
|
|
2387
|
-
var DocumentationPageContentBackup =
|
|
2388
|
-
id:
|
|
2389
|
-
designSystemVersionId:
|
|
2390
|
-
createdAt:
|
|
2391
|
-
updatedAt:
|
|
2392
|
-
documentationPageId:
|
|
2393
|
-
documentationPageName:
|
|
2394
|
-
storagePath:
|
|
2395
|
-
});
|
|
2396
|
-
var DocumentationPageContentItem =
|
|
2167
|
+
var DocumentationPageAnchor = z89.object({
|
|
2168
|
+
blockId: z89.string(),
|
|
2169
|
+
level: z89.number(),
|
|
2170
|
+
text: z89.string()
|
|
2171
|
+
});
|
|
2172
|
+
var DocumentationPageContentBackup = z90.object({
|
|
2173
|
+
id: z90.string(),
|
|
2174
|
+
designSystemVersionId: z90.string(),
|
|
2175
|
+
createdAt: z90.coerce.date(),
|
|
2176
|
+
updatedAt: z90.coerce.date(),
|
|
2177
|
+
documentationPageId: z90.string(),
|
|
2178
|
+
documentationPageName: z90.string(),
|
|
2179
|
+
storagePath: z90.string()
|
|
2180
|
+
});
|
|
2181
|
+
var DocumentationPageContentItem = z91.discriminatedUnion("type", [
|
|
2397
2182
|
PageBlockEditorModelV2,
|
|
2398
2183
|
PageSectionEditorModelV2
|
|
2399
2184
|
]);
|
|
2400
|
-
var DocumentationPageContentData =
|
|
2401
|
-
items:
|
|
2402
|
-
});
|
|
2403
|
-
var DocumentationPageContent =
|
|
2404
|
-
id:
|
|
2405
|
-
designSystemVersionId:
|
|
2406
|
-
createdAt:
|
|
2407
|
-
updatedAt:
|
|
2408
|
-
documentationPageId:
|
|
2185
|
+
var DocumentationPageContentData = z91.object({
|
|
2186
|
+
items: z91.array(DocumentationPageContentItem)
|
|
2187
|
+
});
|
|
2188
|
+
var DocumentationPageContent = z91.object({
|
|
2189
|
+
id: z91.string(),
|
|
2190
|
+
designSystemVersionId: z91.string(),
|
|
2191
|
+
createdAt: z91.coerce.date(),
|
|
2192
|
+
updatedAt: z91.coerce.date(),
|
|
2193
|
+
documentationPageId: z91.string(),
|
|
2409
2194
|
data: DocumentationPageContentData
|
|
2410
2195
|
});
|
|
2411
|
-
var DocumentationPage =
|
|
2412
|
-
type:
|
|
2413
|
-
id:
|
|
2414
|
-
persistentId:
|
|
2415
|
-
shortPersistentId:
|
|
2416
|
-
designSystemVersionId:
|
|
2417
|
-
parentPersistentId:
|
|
2418
|
-
sortOrder:
|
|
2419
|
-
title:
|
|
2420
|
-
slug:
|
|
2421
|
-
userSlug:
|
|
2422
|
-
createdAt:
|
|
2423
|
-
updatedAt:
|
|
2424
|
-
});
|
|
2425
|
-
var DocumentationComment =
|
|
2426
|
-
id:
|
|
2427
|
-
authorId:
|
|
2428
|
-
threadId:
|
|
2429
|
-
roomId:
|
|
2430
|
-
createdAt:
|
|
2431
|
-
editedAt:
|
|
2432
|
-
deletedAt:
|
|
2433
|
-
body:
|
|
2434
|
-
});
|
|
2435
|
-
var DocumentationCommentThread =
|
|
2436
|
-
id:
|
|
2437
|
-
roomId:
|
|
2438
|
-
pagePersistentId:
|
|
2439
|
-
brandId:
|
|
2440
|
-
designSystemVersionId:
|
|
2441
|
-
designSystemId:
|
|
2442
|
-
blockId:
|
|
2443
|
-
resolved:
|
|
2444
|
-
createdAt:
|
|
2445
|
-
updatedAt:
|
|
2446
|
-
});
|
|
2447
|
-
var DesignElementSnapshotReason =
|
|
2448
|
-
var DesignElementSnapshotBase =
|
|
2449
|
-
id:
|
|
2450
|
-
designSystemVersionId:
|
|
2451
|
-
createdAt:
|
|
2452
|
-
updatedAt:
|
|
2196
|
+
var DocumentationPage = z92.object({
|
|
2197
|
+
type: z92.literal("DocumentationPage"),
|
|
2198
|
+
id: z92.string(),
|
|
2199
|
+
persistentId: z92.string(),
|
|
2200
|
+
shortPersistentId: z92.string(),
|
|
2201
|
+
designSystemVersionId: z92.string(),
|
|
2202
|
+
parentPersistentId: z92.string().nullish(),
|
|
2203
|
+
sortOrder: z92.number(),
|
|
2204
|
+
title: z92.string(),
|
|
2205
|
+
slug: z92.string(),
|
|
2206
|
+
userSlug: z92.string().nullish(),
|
|
2207
|
+
createdAt: z92.coerce.date(),
|
|
2208
|
+
updatedAt: z92.coerce.date()
|
|
2209
|
+
});
|
|
2210
|
+
var DocumentationComment = z93.object({
|
|
2211
|
+
id: z93.string(),
|
|
2212
|
+
authorId: z93.string(),
|
|
2213
|
+
threadId: z93.string(),
|
|
2214
|
+
roomId: z93.string(),
|
|
2215
|
+
createdAt: z93.coerce.date(),
|
|
2216
|
+
editedAt: z93.coerce.date().optional(),
|
|
2217
|
+
deletedAt: z93.coerce.date().optional(),
|
|
2218
|
+
body: z93.string()
|
|
2219
|
+
});
|
|
2220
|
+
var DocumentationCommentThread = z93.object({
|
|
2221
|
+
id: z93.string(),
|
|
2222
|
+
roomId: z93.string(),
|
|
2223
|
+
pagePersistentId: z93.string(),
|
|
2224
|
+
brandId: z93.string(),
|
|
2225
|
+
designSystemVersionId: z93.string(),
|
|
2226
|
+
designSystemId: z93.string(),
|
|
2227
|
+
blockId: z93.string().optional(),
|
|
2228
|
+
resolved: z93.boolean(),
|
|
2229
|
+
createdAt: z93.coerce.date(),
|
|
2230
|
+
updatedAt: z93.coerce.date()
|
|
2231
|
+
});
|
|
2232
|
+
var DesignElementSnapshotReason = z94.enum(["Publish", "Deletion"]);
|
|
2233
|
+
var DesignElementSnapshotBase = z94.object({
|
|
2234
|
+
id: z94.string(),
|
|
2235
|
+
designSystemVersionId: z94.string(),
|
|
2236
|
+
createdAt: z94.coerce.date(),
|
|
2237
|
+
updatedAt: z94.coerce.date(),
|
|
2453
2238
|
reason: DesignElementSnapshotReason
|
|
2454
2239
|
});
|
|
2455
2240
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
2456
2241
|
page: DocumentationPageV2,
|
|
2457
|
-
pageContentHash:
|
|
2242
|
+
pageContentHash: z95.string()
|
|
2458
2243
|
});
|
|
2459
2244
|
var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
2460
2245
|
group: ElementGroup
|
|
2461
2246
|
});
|
|
2247
|
+
var FigmaFileDownloadScope = z96.object({
|
|
2248
|
+
styles: z96.boolean(),
|
|
2249
|
+
components: z96.boolean(),
|
|
2250
|
+
currentVersion: z96.literal("__latest__").nullable(),
|
|
2251
|
+
publishedVersion: z96.string().nullable(),
|
|
2252
|
+
downloadChunkSize: z96.number().optional(),
|
|
2253
|
+
maxFileDepth: z96.number().optional()
|
|
2254
|
+
});
|
|
2255
|
+
var FigmaFileAccessData = z96.object({
|
|
2256
|
+
accessToken: z96.string()
|
|
2257
|
+
});
|
|
2258
|
+
var ImportFunctionInput = z97.object({
|
|
2259
|
+
importJobId: z97.string(),
|
|
2260
|
+
importContextId: z97.string(),
|
|
2261
|
+
designSystemId: z97.string().optional()
|
|
2262
|
+
});
|
|
2263
|
+
var ImportedFigmaSourceData = z97.object({
|
|
2264
|
+
sourceId: z97.string(),
|
|
2265
|
+
figmaRemote: DataSourceFigmaRemote
|
|
2266
|
+
});
|
|
2267
|
+
var FigmaImportBaseContext = z97.object({
|
|
2268
|
+
designSystemId: z97.string(),
|
|
2269
|
+
/**
|
|
2270
|
+
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
2271
|
+
* mentioned in the `importedSourceDataBySourceId`
|
|
2272
|
+
*
|
|
2273
|
+
* fileId: file data
|
|
2274
|
+
*/
|
|
2275
|
+
fileAccessByFileId: z97.record(FigmaFileAccessData),
|
|
2276
|
+
/**
|
|
2277
|
+
* Figma source data for which import was requested
|
|
2278
|
+
*
|
|
2279
|
+
* sourceId: source data
|
|
2280
|
+
*/
|
|
2281
|
+
importedSourceDataBySourceId: z97.record(ImportedFigmaSourceData),
|
|
2282
|
+
/**
|
|
2283
|
+
* Array of warnings that will be written into the import result summary at the end
|
|
2284
|
+
* of import job execution and displayed by the client.
|
|
2285
|
+
*/
|
|
2286
|
+
importWarnings: z97.record(ImportWarning.array()).default({})
|
|
2287
|
+
});
|
|
2288
|
+
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
2289
|
+
sourcesWithMissingAccess: z97.array(z97.string()).default([]),
|
|
2290
|
+
shadowOpacityOptional: z97.boolean().default(false)
|
|
2291
|
+
});
|
|
2292
|
+
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
2293
|
+
importMetadata: DataSourceFigmaImportMetadata
|
|
2294
|
+
});
|
|
2295
|
+
var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.extend({
|
|
2296
|
+
/**
|
|
2297
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
2298
|
+
* importMetadataBySourceId.
|
|
2299
|
+
*
|
|
2300
|
+
* File id -> file download scope
|
|
2301
|
+
*/
|
|
2302
|
+
fileDownloadScopesByFileId: z97.record(FigmaFileDownloadScope),
|
|
2303
|
+
/**
|
|
2304
|
+
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
2305
|
+
* imported again.
|
|
2306
|
+
*
|
|
2307
|
+
* Source id -> import metadata
|
|
2308
|
+
*/
|
|
2309
|
+
changedImportedSourceDataBySourceId: z97.record(ChangedImportedFigmaSourceData)
|
|
2310
|
+
});
|
|
2311
|
+
var ImageImportModelType = z98.enum(["Url", "FigmaRender"]);
|
|
2312
|
+
var ImageImportModelBase = z98.object({
|
|
2313
|
+
scope: AssetScope
|
|
2314
|
+
});
|
|
2315
|
+
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
2316
|
+
type: z98.literal(ImageImportModelType.enum.Url),
|
|
2317
|
+
url: z98.string(),
|
|
2318
|
+
originKey: z98.string(),
|
|
2319
|
+
extension: z98.string()
|
|
2320
|
+
});
|
|
2321
|
+
var FigmaRenderFormat = z98.enum(["Svg", "Png"]);
|
|
2322
|
+
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
2323
|
+
type: z98.literal(ImageImportModelType.enum.FigmaRender),
|
|
2324
|
+
fileId: z98.string(),
|
|
2325
|
+
fileVersionId: z98.string().optional(),
|
|
2326
|
+
nodeId: z98.string(),
|
|
2327
|
+
originKey: z98.string()
|
|
2328
|
+
});
|
|
2329
|
+
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
2330
|
+
format: z98.literal(FigmaRenderFormat.enum.Png),
|
|
2331
|
+
scale: z98.number()
|
|
2332
|
+
});
|
|
2333
|
+
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
2334
|
+
format: z98.literal(FigmaRenderFormat.enum.Svg)
|
|
2335
|
+
});
|
|
2336
|
+
var FigmaRenderImportModel = z98.discriminatedUnion("format", [
|
|
2337
|
+
FigmaPngRenderImportModel,
|
|
2338
|
+
FigmaSvgRenderImportModel
|
|
2339
|
+
]);
|
|
2340
|
+
var ImageImportModel = z98.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
2341
|
+
var ImportModelBase = z99.object({
|
|
2342
|
+
id: z99.string(),
|
|
2343
|
+
meta: ObjectMeta,
|
|
2344
|
+
origin: DesignElementOrigin,
|
|
2345
|
+
brandPersistentId: z99.string(),
|
|
2346
|
+
sortOrder: z99.number()
|
|
2347
|
+
});
|
|
2348
|
+
var ImportModelInputBase = ImportModelBase.omit({
|
|
2349
|
+
brandPersistentId: true,
|
|
2350
|
+
origin: true,
|
|
2351
|
+
sortOrder: true
|
|
2352
|
+
}).extend({
|
|
2353
|
+
originId: z99.string(),
|
|
2354
|
+
originMetadata: z99.record(z99.any())
|
|
2355
|
+
});
|
|
2356
|
+
var ComponentImportModelPart = z100.object({
|
|
2357
|
+
thumbnail: ImageImportModel
|
|
2358
|
+
});
|
|
2359
|
+
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
2360
|
+
isAsset: z100.boolean(),
|
|
2361
|
+
svg: FigmaSvgRenderImportModel.optional(),
|
|
2362
|
+
origin: ComponentOrigin
|
|
2363
|
+
});
|
|
2364
|
+
var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
2365
|
+
originMetadata: ComponentOriginPart
|
|
2366
|
+
});
|
|
2367
|
+
var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
2368
|
+
svg: FigmaSvgRenderImportModel,
|
|
2369
|
+
originMetadata: ComponentOriginPart
|
|
2370
|
+
});
|
|
2371
|
+
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
2372
|
+
z101.object({
|
|
2373
|
+
id: z101.string(),
|
|
2374
|
+
meta: ObjectMeta
|
|
2375
|
+
})
|
|
2376
|
+
);
|
|
2377
|
+
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
2378
|
+
z101.object({
|
|
2379
|
+
origin: ThemeOverrideOrigin
|
|
2380
|
+
})
|
|
2381
|
+
);
|
|
2382
|
+
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
2383
|
+
z101.object({
|
|
2384
|
+
originId: z101.string(),
|
|
2385
|
+
originMetadata: ThemeOverrideOriginPart
|
|
2386
|
+
})
|
|
2387
|
+
);
|
|
2388
|
+
var ThemeImportModel = z101.object({
|
|
2389
|
+
meta: ObjectMeta,
|
|
2390
|
+
brandPersistentId: z101.string(),
|
|
2391
|
+
originSource: ThemeOriginSource,
|
|
2392
|
+
overrides: z101.array(ThemeOverrideImportModel),
|
|
2393
|
+
sortOrder: z101.number()
|
|
2394
|
+
});
|
|
2395
|
+
var ThemeImportModelInput = z101.object({
|
|
2396
|
+
meta: ObjectMeta,
|
|
2397
|
+
originObjects: z101.array(ThemeOriginObject),
|
|
2398
|
+
overrides: z101.array(ThemeOverrideImportModelInput)
|
|
2399
|
+
});
|
|
2400
|
+
var ThemeUpdateImportModel = z101.object({
|
|
2401
|
+
themePersistentId: z101.string(),
|
|
2402
|
+
overrides: z101.array(ThemeOverrideImportModel)
|
|
2403
|
+
});
|
|
2404
|
+
var ThemeUpdateImportModelInput = z101.object({
|
|
2405
|
+
themePersistentId: z101.string(),
|
|
2406
|
+
overrides: z101.array(ThemeOverrideImportModelInput)
|
|
2407
|
+
});
|
|
2408
|
+
var DesignTokenImportModelPart = z102.object({
|
|
2409
|
+
collection: z102.string().optional(),
|
|
2410
|
+
codeSyntax: z102.record(z102.coerce.string()).optional()
|
|
2411
|
+
});
|
|
2412
|
+
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2413
|
+
origin: DesignTokenOrigin
|
|
2414
|
+
});
|
|
2415
|
+
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2416
|
+
originMetadata: DesignTokenOriginPart
|
|
2417
|
+
});
|
|
2418
|
+
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
2419
|
+
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
2420
|
+
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
2421
|
+
image: FigmaPngRenderImportModel
|
|
2422
|
+
});
|
|
2423
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
2424
|
+
children: z103.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
2425
|
+
});
|
|
2426
|
+
var FigmaFileStructureImportModelPart = z103.object({
|
|
2427
|
+
data: z103.object({
|
|
2428
|
+
rootNode: FigmaFileStructureNodeImportModel,
|
|
2429
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
2430
|
+
})
|
|
2431
|
+
});
|
|
2432
|
+
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
2433
|
+
origin: FigmaFileStructureOrigin
|
|
2434
|
+
});
|
|
2435
|
+
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
2436
|
+
FigmaFileStructureImportModelPart.shape
|
|
2437
|
+
).extend({
|
|
2438
|
+
fileVersionId: z103.string()
|
|
2439
|
+
});
|
|
2440
|
+
var DataSourceImportModel = z104.object({
|
|
2441
|
+
id: z104.string(),
|
|
2442
|
+
fileName: z104.string().optional(),
|
|
2443
|
+
thumbnailUrl: z104.string().optional()
|
|
2444
|
+
});
|
|
2445
|
+
var ImportModelInputCollection = z105.object({
|
|
2446
|
+
source: DataSourceImportModel,
|
|
2447
|
+
tokens: z105.array(DesignTokenImportModelInput).default([]),
|
|
2448
|
+
components: z105.array(ComponentImportModelInput).default([]),
|
|
2449
|
+
assets: z105.array(AssetImportModelInput).default([]),
|
|
2450
|
+
themeUpdates: z105.array(ThemeUpdateImportModelInput).default([]),
|
|
2451
|
+
themes: z105.array(ThemeImportModelInput).default([]),
|
|
2452
|
+
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
2453
|
+
});
|
|
2454
|
+
var ImportModelCollection = z105.object({
|
|
2455
|
+
sources: z105.array(DataSourceImportModel),
|
|
2456
|
+
tokens: z105.array(DesignTokenImportModel).default([]),
|
|
2457
|
+
components: z105.array(ComponentImportModel).default([]),
|
|
2458
|
+
themeUpdates: z105.array(ThemeUpdateImportModel).default([]),
|
|
2459
|
+
themes: z105.array(ThemeImportModel).default([]),
|
|
2460
|
+
figmaFileStructures: z105.array(FigmaFileStructureImportModel)
|
|
2461
|
+
});
|
|
2462
2462
|
var ElementViewBaseColumnType = z106.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2463
2463
|
var ElementViewColumnType = z106.union([
|
|
2464
2464
|
z106.literal("BaseProperty"),
|