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