@supernova-studio/client 0.12.0 → 0.14.0
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 +2057 -34
- package/dist/index.d.ts +2057 -34
- package/dist/index.js +38 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1166 -1148
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/requests/elements/elements-transaction-v2.ts +53 -0
- package/src/api/requests/elements/index.ts +1 -0
- package/src/api/requests/index.ts +1 -1
- package/src/api/responses/elements/elements-transaction-v2.ts +11 -0
- package/src/api/responses/elements/index.ts +1 -0
- package/src/api/responses/index.ts +1 -0
- package/src/design-system-content/documentation-hierarchy.ts +39 -6
- package/src/design-system-content/item-configuration.ts +1 -1
- package/src/api/requests/post-bulk-doc-page-elements.ts +0 -47
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { z as z14 } from "zod";
|
|
|
16
16
|
import { z as z17 } from "zod";
|
|
17
17
|
import { z as z15 } from "zod";
|
|
18
18
|
import { z as z16 } from "zod";
|
|
19
|
-
import { z as
|
|
19
|
+
import { z as z83 } from "zod";
|
|
20
20
|
import { z as z18 } from "zod";
|
|
21
21
|
import { z as z20 } from "zod";
|
|
22
22
|
import { z as z19 } from "zod";
|
|
@@ -26,19 +26,21 @@ import { z as z25 } from "zod";
|
|
|
26
26
|
import { z as z24 } from "zod";
|
|
27
27
|
import { z as z23 } from "zod";
|
|
28
28
|
import { z as z26 } from "zod";
|
|
29
|
-
import { z as
|
|
29
|
+
import { z as z33 } from "zod";
|
|
30
30
|
import { z as z27 } from "zod";
|
|
31
31
|
import { z as z28 } from "zod";
|
|
32
32
|
import { z as z29 } from "zod";
|
|
33
33
|
import { z as z30 } from "zod";
|
|
34
34
|
import { z as z31 } from "zod";
|
|
35
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
z as z32
|
|
37
|
+
} from "zod";
|
|
38
|
+
import { z as z34 } from "zod";
|
|
39
|
+
import { z as z39 } from "zod";
|
|
36
40
|
import { z as z38 } from "zod";
|
|
37
41
|
import { z as z37 } from "zod";
|
|
38
42
|
import { z as z36 } from "zod";
|
|
39
43
|
import { z as z35 } from "zod";
|
|
40
|
-
import { z as z34 } from "zod";
|
|
41
|
-
import { z as z39 } from "zod";
|
|
42
44
|
import { z as z40 } from "zod";
|
|
43
45
|
import { z as z41 } from "zod";
|
|
44
46
|
import { z as z42 } from "zod";
|
|
@@ -68,54 +70,54 @@ import { z as z65 } from "zod";
|
|
|
68
70
|
import { z as z66 } from "zod";
|
|
69
71
|
import { z as z67 } from "zod";
|
|
70
72
|
import { z as z68 } from "zod";
|
|
71
|
-
import { z as z70 } from "zod";
|
|
72
73
|
import { z as z69 } from "zod";
|
|
73
74
|
import { z as z71 } from "zod";
|
|
75
|
+
import { z as z70 } from "zod";
|
|
74
76
|
import { z as z72 } from "zod";
|
|
75
|
-
import { z as z80 } from "zod";
|
|
76
77
|
import { z as z73 } from "zod";
|
|
77
|
-
import { z as
|
|
78
|
+
import { z as z81 } from "zod";
|
|
78
79
|
import { z as z74 } from "zod";
|
|
79
80
|
import { z as z76 } from "zod";
|
|
81
|
+
import { z as z75 } from "zod";
|
|
80
82
|
import { z as z77 } from "zod";
|
|
81
83
|
import { z as z78 } from "zod";
|
|
82
84
|
import { z as z79 } from "zod";
|
|
83
|
-
import { z as
|
|
84
|
-
import { z as
|
|
85
|
-
import { z as z86 } from "zod";
|
|
86
|
-
import { z as z85 } from "zod";
|
|
85
|
+
import { z as z80 } from "zod";
|
|
86
|
+
import { z as z82 } from "zod";
|
|
87
87
|
import { z as z84 } from "zod";
|
|
88
88
|
import { z as z87 } from "zod";
|
|
89
|
+
import { z as z86 } from "zod";
|
|
90
|
+
import { z as z85 } from "zod";
|
|
89
91
|
import { z as z88 } from "zod";
|
|
90
|
-
import { z as z98 } from "zod";
|
|
91
92
|
import { z as z89 } from "zod";
|
|
93
|
+
import { z as z99 } from "zod";
|
|
92
94
|
import { z as z90 } from "zod";
|
|
93
|
-
import { z as z92 } from "zod";
|
|
94
95
|
import { z as z91 } from "zod";
|
|
95
|
-
import { z as z94 } from "zod";
|
|
96
96
|
import { z as z93 } from "zod";
|
|
97
|
+
import { z as z92 } from "zod";
|
|
97
98
|
import { z as z95 } from "zod";
|
|
99
|
+
import { z as z94 } from "zod";
|
|
98
100
|
import { z as z96 } from "zod";
|
|
99
101
|
import { z as z97 } from "zod";
|
|
100
|
-
import { z as
|
|
102
|
+
import { z as z98 } from "zod";
|
|
101
103
|
import { z as z100 } from "zod";
|
|
102
104
|
import { z as z101 } from "zod";
|
|
103
105
|
import { z as z102 } from "zod";
|
|
104
106
|
import { z as z103 } from "zod";
|
|
105
107
|
import { z as z104 } from "zod";
|
|
106
|
-
import { z as z107 } from "zod";
|
|
107
108
|
import { z as z105 } from "zod";
|
|
108
|
-
import { z as z106 } from "zod";
|
|
109
109
|
import { z as z108 } from "zod";
|
|
110
|
-
import { z as
|
|
110
|
+
import { z as z106 } from "zod";
|
|
111
|
+
import { z as z107 } from "zod";
|
|
111
112
|
import { z as z109 } from "zod";
|
|
113
|
+
import { z as z114 } from "zod";
|
|
112
114
|
import { z as z110 } from "zod";
|
|
113
115
|
import { z as z111 } from "zod";
|
|
114
116
|
import { z as z112 } from "zod";
|
|
115
|
-
import { z as
|
|
116
|
-
import { z as z116 } from "zod";
|
|
117
|
+
import { z as z113 } from "zod";
|
|
117
118
|
import { z as z115 } from "zod";
|
|
118
119
|
import { z as z117 } from "zod";
|
|
120
|
+
import { z as z116 } from "zod";
|
|
119
121
|
import { z as z118 } from "zod";
|
|
120
122
|
import { z as z119 } from "zod";
|
|
121
123
|
import { z as z120 } from "zod";
|
|
@@ -123,6 +125,7 @@ import { z as z121 } from "zod";
|
|
|
123
125
|
import { z as z122 } from "zod";
|
|
124
126
|
import { z as z123 } from "zod";
|
|
125
127
|
import { z as z124 } from "zod";
|
|
128
|
+
import { z as z125 } from "zod";
|
|
126
129
|
var PluginOAuthRequestSchema = z.object({
|
|
127
130
|
id: z.string(),
|
|
128
131
|
codeChallenge: z.string(),
|
|
@@ -640,8 +643,8 @@ function zodUpdateInputOmit() {
|
|
|
640
643
|
function nullishToOptional(type) {
|
|
641
644
|
return type.nullish().transform((t) => t ?? void 0);
|
|
642
645
|
}
|
|
643
|
-
var PageBlockCalloutType =
|
|
644
|
-
var PageBlockTypeV1 =
|
|
646
|
+
var PageBlockCalloutType = z33.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
647
|
+
var PageBlockTypeV1 = z33.enum([
|
|
645
648
|
"Text",
|
|
646
649
|
"Heading",
|
|
647
650
|
"Code",
|
|
@@ -674,7 +677,7 @@ var PageBlockTypeV1 = z32.enum([
|
|
|
674
677
|
"TableRow",
|
|
675
678
|
"TableCell"
|
|
676
679
|
]);
|
|
677
|
-
var PageBlockCodeLanguage =
|
|
680
|
+
var PageBlockCodeLanguage = z33.enum([
|
|
678
681
|
"Angular",
|
|
679
682
|
"Bash",
|
|
680
683
|
"C",
|
|
@@ -708,68 +711,68 @@ var PageBlockCodeLanguage = z32.enum([
|
|
|
708
711
|
"XML",
|
|
709
712
|
"YAML"
|
|
710
713
|
]);
|
|
711
|
-
var PageBlockAlignment =
|
|
712
|
-
var PageBlockThemeType =
|
|
713
|
-
var PageBlockAssetType =
|
|
714
|
-
var PageBlockTilesAlignment =
|
|
715
|
-
var PageBlockTilesLayout =
|
|
716
|
-
var PageBlockTheme =
|
|
717
|
-
themeIds:
|
|
714
|
+
var PageBlockAlignment = z33.enum(["Left", "Center", "Stretch", "Right"]);
|
|
715
|
+
var PageBlockThemeType = z33.enum(["Override", "Comparison"]);
|
|
716
|
+
var PageBlockAssetType = z33.enum(["image", "figmaFrame"]);
|
|
717
|
+
var PageBlockTilesAlignment = z33.enum(["Center", "FrameHeight"]);
|
|
718
|
+
var PageBlockTilesLayout = z33.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
719
|
+
var PageBlockTheme = z33.object({
|
|
720
|
+
themeIds: z33.array(z33.string()),
|
|
718
721
|
type: PageBlockThemeType
|
|
719
722
|
});
|
|
720
|
-
var PageBlockUrlPreview =
|
|
721
|
-
title: nullishToOptional(
|
|
722
|
-
description: nullishToOptional(
|
|
723
|
-
thumbnailUrl: nullishToOptional(
|
|
724
|
-
});
|
|
725
|
-
var PageBlockFrameOrigin =
|
|
726
|
-
sourceFileName: nullishToOptional(
|
|
727
|
-
title: nullishToOptional(
|
|
728
|
-
previewUrl: nullishToOptional(
|
|
729
|
-
valid: nullishToOptional(
|
|
730
|
-
referenceId: nullishToOptional(
|
|
731
|
-
assetId: nullishToOptional(
|
|
732
|
-
assetScale: nullishToOptional(
|
|
733
|
-
width: nullishToOptional(
|
|
734
|
-
height: nullishToOptional(
|
|
735
|
-
});
|
|
736
|
-
var PageBlockFrame =
|
|
737
|
-
persistentId:
|
|
738
|
-
sourceId:
|
|
739
|
-
sourceFrameId:
|
|
740
|
-
title: nullishToOptional(
|
|
741
|
-
description: nullishToOptional(
|
|
723
|
+
var PageBlockUrlPreview = z33.object({
|
|
724
|
+
title: nullishToOptional(z33.string()),
|
|
725
|
+
description: nullishToOptional(z33.string()),
|
|
726
|
+
thumbnailUrl: nullishToOptional(z33.string())
|
|
727
|
+
});
|
|
728
|
+
var PageBlockFrameOrigin = z33.object({
|
|
729
|
+
sourceFileName: nullishToOptional(z33.string()),
|
|
730
|
+
title: nullishToOptional(z33.string()),
|
|
731
|
+
previewUrl: nullishToOptional(z33.string()),
|
|
732
|
+
valid: nullishToOptional(z33.boolean()),
|
|
733
|
+
referenceId: nullishToOptional(z33.string()),
|
|
734
|
+
assetId: nullishToOptional(z33.string()),
|
|
735
|
+
assetScale: nullishToOptional(z33.number()),
|
|
736
|
+
width: nullishToOptional(z33.number()),
|
|
737
|
+
height: nullishToOptional(z33.number())
|
|
738
|
+
});
|
|
739
|
+
var PageBlockFrame = z33.object({
|
|
740
|
+
persistentId: z33.string(),
|
|
741
|
+
sourceId: z33.string(),
|
|
742
|
+
sourceFrameId: z33.string(),
|
|
743
|
+
title: nullishToOptional(z33.string()),
|
|
744
|
+
description: nullishToOptional(z33.string()),
|
|
742
745
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
743
746
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
744
747
|
});
|
|
745
|
-
var PageBlockAsset =
|
|
748
|
+
var PageBlockAsset = z33.object({
|
|
746
749
|
type: PageBlockAssetType,
|
|
747
|
-
id: nullishToOptional(
|
|
748
|
-
url: nullishToOptional(
|
|
750
|
+
id: nullishToOptional(z33.string()),
|
|
751
|
+
url: nullishToOptional(z33.string()),
|
|
749
752
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
750
753
|
});
|
|
751
|
-
var PageBlockLinkPreview =
|
|
752
|
-
title: nullishToOptional(
|
|
753
|
-
valid: nullishToOptional(
|
|
754
|
+
var PageBlockLinkPreview = z33.object({
|
|
755
|
+
title: nullishToOptional(z33.string()),
|
|
756
|
+
valid: nullishToOptional(z33.boolean())
|
|
754
757
|
});
|
|
755
|
-
var PageBlockShortcut =
|
|
756
|
-
persistentId:
|
|
757
|
-
title: nullishToOptional(
|
|
758
|
-
description: nullishToOptional(
|
|
758
|
+
var PageBlockShortcut = z33.object({
|
|
759
|
+
persistentId: z33.string(),
|
|
760
|
+
title: nullishToOptional(z33.string()),
|
|
761
|
+
description: nullishToOptional(z33.string()),
|
|
759
762
|
asset: nullishToOptional(PageBlockAsset),
|
|
760
|
-
documentationItemId: nullishToOptional(
|
|
761
|
-
url: nullishToOptional(
|
|
763
|
+
documentationItemId: nullishToOptional(z33.string()),
|
|
764
|
+
url: nullishToOptional(z33.string()),
|
|
762
765
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
763
766
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
764
767
|
});
|
|
765
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
768
|
+
var PageBlockCustomBlockPropertyImageValue = z33.object({
|
|
766
769
|
asset: nullishToOptional(PageBlockAsset),
|
|
767
|
-
assetId: nullishToOptional(
|
|
768
|
-
assetUrl: nullishToOptional(
|
|
770
|
+
assetId: nullishToOptional(z33.string()),
|
|
771
|
+
assetUrl: nullishToOptional(z33.string())
|
|
769
772
|
});
|
|
770
|
-
var PageBlockCustomBlockPropertyValue =
|
|
771
|
-
key:
|
|
772
|
-
value:
|
|
773
|
+
var PageBlockCustomBlockPropertyValue = z33.object({
|
|
774
|
+
key: z33.string(),
|
|
775
|
+
value: z33.any()
|
|
773
776
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
774
777
|
// e.g. element id 67451 in the dev db
|
|
775
778
|
// value: z
|
|
@@ -780,312 +783,315 @@ var PageBlockCustomBlockPropertyValue = z32.object({
|
|
|
780
783
|
// .or(TypographyTokenData)
|
|
781
784
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
782
785
|
});
|
|
783
|
-
var PageBlockFigmaFrameProperties =
|
|
786
|
+
var PageBlockFigmaFrameProperties = z33.object({
|
|
784
787
|
color: nullishToOptional(
|
|
785
|
-
|
|
786
|
-
value:
|
|
788
|
+
z33.object({
|
|
789
|
+
value: z33.string()
|
|
787
790
|
})
|
|
788
791
|
),
|
|
789
792
|
alignment: PageBlockTilesAlignment,
|
|
790
793
|
layout: PageBlockTilesLayout,
|
|
791
794
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
792
|
-
showTitles:
|
|
795
|
+
showTitles: z33.boolean()
|
|
793
796
|
});
|
|
794
|
-
var PageBlockRenderCodeProperties =
|
|
795
|
-
showCode:
|
|
797
|
+
var PageBlockRenderCodeProperties = z33.object({
|
|
798
|
+
showCode: z33.boolean()
|
|
796
799
|
});
|
|
797
|
-
var PageBlockAssetComponent =
|
|
798
|
-
persistentId:
|
|
799
|
-
componentAssetId:
|
|
800
|
-
title: nullishToOptional(
|
|
801
|
-
description: nullishToOptional(
|
|
800
|
+
var PageBlockAssetComponent = z33.object({
|
|
801
|
+
persistentId: z33.string(),
|
|
802
|
+
componentAssetId: z33.string(),
|
|
803
|
+
title: nullishToOptional(z33.string()),
|
|
804
|
+
description: nullishToOptional(z33.string()),
|
|
802
805
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
803
806
|
});
|
|
804
|
-
var PageBlockTableColumn =
|
|
805
|
-
id:
|
|
807
|
+
var PageBlockTableColumn = z33.object({
|
|
808
|
+
id: z33.string(),
|
|
806
809
|
width: DimensionTokenData
|
|
807
810
|
});
|
|
808
|
-
var PageBlockTableProperties =
|
|
809
|
-
showBorders:
|
|
810
|
-
showHeaderRow:
|
|
811
|
-
showHeaderColumn:
|
|
812
|
-
columns:
|
|
811
|
+
var PageBlockTableProperties = z33.object({
|
|
812
|
+
showBorders: z33.boolean(),
|
|
813
|
+
showHeaderRow: z33.boolean(),
|
|
814
|
+
showHeaderColumn: z33.boolean(),
|
|
815
|
+
columns: z33.array(PageBlockTableColumn)
|
|
813
816
|
});
|
|
814
|
-
var PageBlockTextSpanAttributeType =
|
|
815
|
-
var PageBlockTextSpanAttribute =
|
|
817
|
+
var PageBlockTextSpanAttributeType = z33.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
818
|
+
var PageBlockTextSpanAttribute = z33.object({
|
|
816
819
|
type: PageBlockTextSpanAttributeType,
|
|
817
|
-
link: nullishToOptional(
|
|
818
|
-
documentationItemId: nullishToOptional(
|
|
819
|
-
openInNewWindow: nullishToOptional(
|
|
820
|
+
link: nullishToOptional(z33.string()),
|
|
821
|
+
documentationItemId: nullishToOptional(z33.string()),
|
|
822
|
+
openInNewWindow: nullishToOptional(z33.boolean())
|
|
820
823
|
});
|
|
821
|
-
var PageBlockTextSpan =
|
|
822
|
-
text:
|
|
823
|
-
attributes:
|
|
824
|
+
var PageBlockTextSpan = z33.object({
|
|
825
|
+
text: z33.string(),
|
|
826
|
+
attributes: z33.array(PageBlockTextSpanAttribute)
|
|
824
827
|
});
|
|
825
|
-
var PageBlockText =
|
|
826
|
-
spans:
|
|
828
|
+
var PageBlockText = z33.object({
|
|
829
|
+
spans: z33.array(PageBlockTextSpan)
|
|
827
830
|
});
|
|
828
|
-
var PageBlockBaseV1 =
|
|
829
|
-
persistentId:
|
|
831
|
+
var PageBlockBaseV1 = z33.object({
|
|
832
|
+
persistentId: z33.string(),
|
|
830
833
|
type: PageBlockTypeV1,
|
|
831
834
|
// Element linking
|
|
832
|
-
designObjectId: nullishToOptional(
|
|
833
|
-
designObjectIds: nullishToOptional(
|
|
834
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
835
|
-
showNestedGroups: nullishToOptional(
|
|
836
|
-
brandId: nullishToOptional(
|
|
835
|
+
designObjectId: nullishToOptional(z33.string()),
|
|
836
|
+
designObjectIds: nullishToOptional(z33.array(z33.string())),
|
|
837
|
+
tokenType: nullishToOptional(DesignTokenType.or(z33.literal("Font"))),
|
|
838
|
+
showNestedGroups: nullishToOptional(z33.boolean()),
|
|
839
|
+
brandId: nullishToOptional(z33.string()),
|
|
837
840
|
// Rich text
|
|
838
841
|
text: nullishToOptional(PageBlockText),
|
|
839
|
-
caption: nullishToOptional(
|
|
840
|
-
headingType: nullishToOptional(
|
|
842
|
+
caption: nullishToOptional(z33.string()),
|
|
843
|
+
headingType: nullishToOptional(z33.number().min(1).max(3)),
|
|
841
844
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
842
845
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
843
|
-
urlInput: nullishToOptional(
|
|
844
|
-
url: nullishToOptional(
|
|
846
|
+
urlInput: nullishToOptional(z33.string()),
|
|
847
|
+
url: nullishToOptional(z33.string()),
|
|
845
848
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
846
849
|
// Image
|
|
847
850
|
asset: nullishToOptional(PageBlockAsset),
|
|
848
851
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
849
852
|
// Shortcuts block
|
|
850
|
-
shortcuts: nullishToOptional(
|
|
853
|
+
shortcuts: nullishToOptional(z33.array(PageBlockShortcut)),
|
|
851
854
|
// Custom blocks
|
|
852
|
-
customBlockKey: nullishToOptional(
|
|
853
|
-
customBlockProperties: nullishToOptional(
|
|
854
|
-
variantKey: nullishToOptional(
|
|
855
|
+
customBlockKey: nullishToOptional(z33.string()),
|
|
856
|
+
customBlockProperties: nullishToOptional(z33.array(PageBlockCustomBlockPropertyValue)),
|
|
857
|
+
variantKey: nullishToOptional(z33.string()),
|
|
855
858
|
// Figma frames
|
|
856
859
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
857
|
-
figmaFrames: nullishToOptional(
|
|
860
|
+
figmaFrames: nullishToOptional(z33.array(PageBlockFrame)),
|
|
858
861
|
// Generic
|
|
859
862
|
size: nullishToOptional(Size),
|
|
860
863
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
861
864
|
// Render code
|
|
862
865
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
863
866
|
// Component assets
|
|
864
|
-
componentAssets: nullishToOptional(
|
|
867
|
+
componentAssets: nullishToOptional(z33.array(PageBlockAssetComponent)),
|
|
865
868
|
// Tables
|
|
866
869
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
867
|
-
columnId: nullishToOptional(
|
|
870
|
+
columnId: nullishToOptional(z33.string()),
|
|
868
871
|
// Token spreadsheet
|
|
869
872
|
theme: nullishToOptional(PageBlockTheme),
|
|
870
|
-
blacklistedElementProperties: nullishToOptional(
|
|
873
|
+
blacklistedElementProperties: nullishToOptional(z33.array(z33.string())),
|
|
871
874
|
// Arbitrary
|
|
872
|
-
userMetadata: nullishToOptional(
|
|
875
|
+
userMetadata: nullishToOptional(z33.string())
|
|
873
876
|
});
|
|
874
877
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
875
|
-
children:
|
|
878
|
+
children: z33.lazy(
|
|
876
879
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
877
880
|
)
|
|
878
881
|
});
|
|
879
|
-
var PageBlockLinkType =
|
|
880
|
-
var PageBlockImageType =
|
|
881
|
-
var PageBlockImageAlignment =
|
|
882
|
-
var PageBlockTableCellAlignment =
|
|
883
|
-
var PageBlockPreviewContainerSize =
|
|
884
|
-
var PageBlockThemeDisplayMode =
|
|
885
|
-
var PageBlockColorV2 =
|
|
886
|
-
|
|
882
|
+
var PageBlockLinkType = z34.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
883
|
+
var PageBlockImageType = z34.enum(["Upload", "Asset", "FigmaNode"]);
|
|
884
|
+
var PageBlockImageAlignment = z34.enum(["Left", "Center", "Stretch"]);
|
|
885
|
+
var PageBlockTableCellAlignment = z34.enum(["Left", "Center", "Right"]);
|
|
886
|
+
var PageBlockPreviewContainerSize = z34.enum(["Centered", "NaturalHeight"]);
|
|
887
|
+
var PageBlockThemeDisplayMode = z34.enum(["Split", "Override"]);
|
|
888
|
+
var PageBlockColorV2 = z34.object({
|
|
889
|
+
value: z34.string(),
|
|
890
|
+
referencedTokenId: z34.string().optional()
|
|
891
|
+
});
|
|
892
|
+
var PageBlockAppearanceV2 = z34.object({
|
|
887
893
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
888
|
-
numberOfColumns:
|
|
894
|
+
numberOfColumns: z34.number().optional()
|
|
889
895
|
});
|
|
890
|
-
var PageBlockItemUntypedValue =
|
|
891
|
-
value:
|
|
892
|
-
}).and(
|
|
893
|
-
var PageBlockLinkV2 =
|
|
896
|
+
var PageBlockItemUntypedValue = z34.object({
|
|
897
|
+
value: z34.any()
|
|
898
|
+
}).and(z34.record(z34.any()));
|
|
899
|
+
var PageBlockLinkV2 = z34.object({
|
|
894
900
|
type: PageBlockLinkType,
|
|
895
|
-
documentationItemId:
|
|
896
|
-
pageHeadingId:
|
|
897
|
-
url:
|
|
898
|
-
openInNewTab:
|
|
901
|
+
documentationItemId: z34.string().optional(),
|
|
902
|
+
pageHeadingId: z34.string().optional(),
|
|
903
|
+
url: z34.string().optional(),
|
|
904
|
+
openInNewTab: z34.boolean().optional()
|
|
899
905
|
});
|
|
900
|
-
var PageBlockItemV2 =
|
|
901
|
-
id:
|
|
906
|
+
var PageBlockItemV2 = z34.object({
|
|
907
|
+
id: z34.string(),
|
|
902
908
|
linksTo: PageBlockLinkV2.optional(),
|
|
903
|
-
props:
|
|
909
|
+
props: z34.record(PageBlockItemUntypedValue)
|
|
904
910
|
});
|
|
905
|
-
var PageBlockDataV2 =
|
|
906
|
-
packageId:
|
|
907
|
-
variantId:
|
|
908
|
-
indentLevel:
|
|
911
|
+
var PageBlockDataV2 = z34.object({
|
|
912
|
+
packageId: z34.string(),
|
|
913
|
+
variantId: z34.string().optional(),
|
|
914
|
+
indentLevel: z34.number(),
|
|
909
915
|
appearance: PageBlockAppearanceV2.optional(),
|
|
910
|
-
items:
|
|
916
|
+
items: z34.array(PageBlockItemV2)
|
|
911
917
|
});
|
|
912
|
-
var PageBlockItemImageReference =
|
|
918
|
+
var PageBlockItemImageReference = z34.object({
|
|
913
919
|
type: PageBlockImageType,
|
|
914
|
-
url:
|
|
915
|
-
assetId:
|
|
920
|
+
url: z34.string(),
|
|
921
|
+
assetId: z34.string().optional(),
|
|
916
922
|
size: Size.optional(),
|
|
917
|
-
figmaFile:
|
|
918
|
-
sourceId:
|
|
919
|
-
frameId:
|
|
920
|
-
frameReferenceId:
|
|
921
|
-
origin:
|
|
922
|
-
title:
|
|
923
|
-
sourceFileName:
|
|
923
|
+
figmaFile: z34.object({
|
|
924
|
+
sourceId: z34.string(),
|
|
925
|
+
frameId: z34.string(),
|
|
926
|
+
frameReferenceId: z34.string(),
|
|
927
|
+
origin: z34.object({
|
|
928
|
+
title: z34.string().optional(),
|
|
929
|
+
sourceFileName: z34.string().optional()
|
|
924
930
|
})
|
|
925
931
|
}).optional()
|
|
926
932
|
});
|
|
927
|
-
var PageBlockItemAssetValue =
|
|
928
|
-
selectedPropertyIds:
|
|
929
|
-
showSearch:
|
|
933
|
+
var PageBlockItemAssetValue = z34.object({
|
|
934
|
+
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
935
|
+
showSearch: z34.boolean().optional(),
|
|
930
936
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
931
937
|
backgroundColor: PageBlockColorV2.optional(),
|
|
932
|
-
value:
|
|
933
|
-
|
|
934
|
-
entityId:
|
|
935
|
-
entityType:
|
|
936
|
-
entityMeta:
|
|
937
|
-
title:
|
|
938
|
-
description:
|
|
938
|
+
value: z34.array(
|
|
939
|
+
z34.object({
|
|
940
|
+
entityId: z34.string(),
|
|
941
|
+
entityType: z34.enum(["Asset", "AssetGroup"]),
|
|
942
|
+
entityMeta: z34.object({
|
|
943
|
+
title: z34.string().optional(),
|
|
944
|
+
description: z34.string().optional()
|
|
939
945
|
}).optional()
|
|
940
946
|
})
|
|
941
947
|
)
|
|
942
948
|
});
|
|
943
|
-
var PageBlockItemAssetPropertyValue =
|
|
944
|
-
value:
|
|
949
|
+
var PageBlockItemAssetPropertyValue = z34.object({
|
|
950
|
+
value: z34.array(z34.string())
|
|
945
951
|
});
|
|
946
|
-
var PageBlockItemBooleanValue =
|
|
947
|
-
value:
|
|
952
|
+
var PageBlockItemBooleanValue = z34.object({
|
|
953
|
+
value: z34.boolean()
|
|
948
954
|
});
|
|
949
|
-
var PageBlockItemCodeValue =
|
|
955
|
+
var PageBlockItemCodeValue = z34.object({
|
|
950
956
|
format: PageBlockCodeLanguage.optional(),
|
|
951
|
-
caption:
|
|
952
|
-
value:
|
|
953
|
-
});
|
|
954
|
-
var PageBlockItemSandboxValue =
|
|
955
|
-
showCode:
|
|
956
|
-
backgroundColor:
|
|
957
|
-
alignPreview:
|
|
958
|
-
previewHeight:
|
|
959
|
-
value:
|
|
960
|
-
});
|
|
961
|
-
var PageBlockItemColorValue =
|
|
962
|
-
var PageBlockItemComponentValue =
|
|
963
|
-
selectedPropertyIds:
|
|
964
|
-
value:
|
|
965
|
-
|
|
966
|
-
entityId:
|
|
967
|
-
entityType:
|
|
957
|
+
caption: z34.string().optional(),
|
|
958
|
+
value: z34.string()
|
|
959
|
+
});
|
|
960
|
+
var PageBlockItemSandboxValue = z34.object({
|
|
961
|
+
showCode: z34.boolean().optional(),
|
|
962
|
+
backgroundColor: z34.string().optional(),
|
|
963
|
+
alignPreview: z34.enum(["Left", "Center"]).optional(),
|
|
964
|
+
previewHeight: z34.number().optional(),
|
|
965
|
+
value: z34.string()
|
|
966
|
+
});
|
|
967
|
+
var PageBlockItemColorValue = z34.record(z34.any());
|
|
968
|
+
var PageBlockItemComponentValue = z34.object({
|
|
969
|
+
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
970
|
+
value: z34.array(
|
|
971
|
+
z34.object({
|
|
972
|
+
entityId: z34.string(),
|
|
973
|
+
entityType: z34.enum(["Component", "ComponentGroup"])
|
|
968
974
|
})
|
|
969
975
|
)
|
|
970
976
|
});
|
|
971
|
-
var PageBlockItemComponentPropertyValue =
|
|
972
|
-
value:
|
|
977
|
+
var PageBlockItemComponentPropertyValue = z34.object({
|
|
978
|
+
value: z34.string()
|
|
973
979
|
});
|
|
974
|
-
var PageBlockItemDividerValue =
|
|
975
|
-
var PageBlockItemEmbedValue =
|
|
976
|
-
value:
|
|
977
|
-
caption:
|
|
978
|
-
height:
|
|
980
|
+
var PageBlockItemDividerValue = z34.object({});
|
|
981
|
+
var PageBlockItemEmbedValue = z34.object({
|
|
982
|
+
value: z34.string().optional(),
|
|
983
|
+
caption: z34.string().optional(),
|
|
984
|
+
height: z34.number().optional()
|
|
979
985
|
});
|
|
980
|
-
var PageBlockItemFigmaNodeValue =
|
|
981
|
-
selectedPropertyIds:
|
|
982
|
-
showSearch:
|
|
986
|
+
var PageBlockItemFigmaNodeValue = z34.object({
|
|
987
|
+
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
988
|
+
showSearch: z34.boolean().optional(),
|
|
983
989
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
984
|
-
backgroundColor:
|
|
985
|
-
value:
|
|
986
|
-
|
|
987
|
-
entityId:
|
|
988
|
-
entityMeta:
|
|
989
|
-
title:
|
|
990
|
-
description:
|
|
990
|
+
backgroundColor: z34.string().optional(),
|
|
991
|
+
value: z34.array(
|
|
992
|
+
z34.object({
|
|
993
|
+
entityId: z34.string(),
|
|
994
|
+
entityMeta: z34.object({
|
|
995
|
+
title: z34.string().optional(),
|
|
996
|
+
description: z34.string().optional()
|
|
991
997
|
}).optional()
|
|
992
998
|
})
|
|
993
999
|
)
|
|
994
1000
|
});
|
|
995
|
-
var PageBlockItemImageValue =
|
|
996
|
-
alt:
|
|
997
|
-
caption:
|
|
1001
|
+
var PageBlockItemImageValue = z34.object({
|
|
1002
|
+
alt: z34.string().optional(),
|
|
1003
|
+
caption: z34.string().optional(),
|
|
998
1004
|
alignment: PageBlockImageAlignment.optional(),
|
|
999
1005
|
value: PageBlockItemImageReference.optional()
|
|
1000
1006
|
});
|
|
1001
|
-
var PageBlockItemMarkdownValue =
|
|
1002
|
-
value:
|
|
1007
|
+
var PageBlockItemMarkdownValue = z34.object({
|
|
1008
|
+
value: z34.string()
|
|
1003
1009
|
});
|
|
1004
|
-
var PageBlockItemMultiRichTextValue =
|
|
1010
|
+
var PageBlockItemMultiRichTextValue = z34.object({
|
|
1005
1011
|
value: PageBlockText.array()
|
|
1006
1012
|
});
|
|
1007
|
-
var PageBlockItemMultiSelectValue =
|
|
1008
|
-
value:
|
|
1013
|
+
var PageBlockItemMultiSelectValue = z34.object({
|
|
1014
|
+
value: z34.array(z34.string())
|
|
1009
1015
|
});
|
|
1010
|
-
var PageBlockItemNumberValue =
|
|
1011
|
-
value:
|
|
1016
|
+
var PageBlockItemNumberValue = z34.object({
|
|
1017
|
+
value: z34.number()
|
|
1012
1018
|
});
|
|
1013
|
-
var PageBlockItemRichTextValue =
|
|
1019
|
+
var PageBlockItemRichTextValue = z34.object({
|
|
1014
1020
|
value: PageBlockText,
|
|
1015
1021
|
calloutType: PageBlockCalloutType.optional()
|
|
1016
1022
|
});
|
|
1017
|
-
var PageBlockItemSingleSelectValue =
|
|
1018
|
-
value:
|
|
1023
|
+
var PageBlockItemSingleSelectValue = z34.object({
|
|
1024
|
+
value: z34.string()
|
|
1019
1025
|
});
|
|
1020
|
-
var PageBlockItemStorybookValue =
|
|
1021
|
-
caption:
|
|
1022
|
-
height:
|
|
1023
|
-
showAddons:
|
|
1024
|
-
value:
|
|
1026
|
+
var PageBlockItemStorybookValue = z34.object({
|
|
1027
|
+
caption: z34.string().optional(),
|
|
1028
|
+
height: z34.number().optional(),
|
|
1029
|
+
showAddons: z34.boolean().optional(),
|
|
1030
|
+
value: z34.string()
|
|
1025
1031
|
});
|
|
1026
|
-
var PageBlockItemTextValue =
|
|
1027
|
-
value:
|
|
1032
|
+
var PageBlockItemTextValue = z34.object({
|
|
1033
|
+
value: z34.string()
|
|
1028
1034
|
});
|
|
1029
|
-
var PageBlockItemTokenValue =
|
|
1030
|
-
selectedPropertyIds:
|
|
1031
|
-
selectedThemeIds:
|
|
1035
|
+
var PageBlockItemTokenValue = z34.object({
|
|
1036
|
+
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
1037
|
+
selectedThemeIds: z34.array(z34.string()).optional(),
|
|
1032
1038
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
1033
|
-
value:
|
|
1034
|
-
|
|
1035
|
-
entityId:
|
|
1036
|
-
entityType:
|
|
1037
|
-
entityMeta:
|
|
1038
|
-
showNestedGroups:
|
|
1039
|
+
value: z34.array(
|
|
1040
|
+
z34.object({
|
|
1041
|
+
entityId: z34.string(),
|
|
1042
|
+
entityType: z34.enum(["Token", "TokenGroup"]),
|
|
1043
|
+
entityMeta: z34.object({
|
|
1044
|
+
showNestedGroups: z34.boolean().optional()
|
|
1039
1045
|
}).optional()
|
|
1040
1046
|
})
|
|
1041
1047
|
)
|
|
1042
1048
|
});
|
|
1043
|
-
var PageBlockItemTokenPropertyValue =
|
|
1044
|
-
selectedPropertyIds:
|
|
1045
|
-
selectedThemeIds:
|
|
1046
|
-
value:
|
|
1049
|
+
var PageBlockItemTokenPropertyValue = z34.object({
|
|
1050
|
+
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
1051
|
+
selectedThemeIds: z34.array(z34.string()).optional(),
|
|
1052
|
+
value: z34.array(z34.string())
|
|
1047
1053
|
});
|
|
1048
|
-
var PageBlockItemTokenTypeValue =
|
|
1049
|
-
value:
|
|
1054
|
+
var PageBlockItemTokenTypeValue = z34.object({
|
|
1055
|
+
value: z34.array(DesignTokenType)
|
|
1050
1056
|
});
|
|
1051
|
-
var PageBlockItemUrlValue =
|
|
1052
|
-
value:
|
|
1057
|
+
var PageBlockItemUrlValue = z34.object({
|
|
1058
|
+
value: z34.string()
|
|
1053
1059
|
});
|
|
1054
|
-
var PageBlockItemTableRichTextNode =
|
|
1055
|
-
type:
|
|
1060
|
+
var PageBlockItemTableRichTextNode = z34.object({
|
|
1061
|
+
type: z34.literal("RichText"),
|
|
1056
1062
|
value: PageBlockItemRichTextValue.shape.value
|
|
1057
1063
|
});
|
|
1058
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
1059
|
-
type:
|
|
1064
|
+
var PageBlockItemTableMultiRichTextNode = z34.object({
|
|
1065
|
+
type: z34.literal("MultiRichText"),
|
|
1060
1066
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
1061
1067
|
});
|
|
1062
|
-
var PageBlockItemTableImageNode =
|
|
1063
|
-
type:
|
|
1068
|
+
var PageBlockItemTableImageNode = z34.object({
|
|
1069
|
+
type: z34.literal("Image"),
|
|
1064
1070
|
caption: PageBlockItemImageValue.shape.caption,
|
|
1065
1071
|
value: PageBlockItemImageValue.shape.value
|
|
1066
1072
|
});
|
|
1067
|
-
var PageBlockItemTableNode =
|
|
1073
|
+
var PageBlockItemTableNode = z34.discriminatedUnion("type", [
|
|
1068
1074
|
PageBlockItemTableRichTextNode,
|
|
1069
1075
|
// PageBlockItemTableMultiRichTextNode,
|
|
1070
1076
|
PageBlockItemTableImageNode
|
|
1071
1077
|
]);
|
|
1072
|
-
var PageBlockItemTableCell =
|
|
1073
|
-
id:
|
|
1074
|
-
nodes:
|
|
1075
|
-
columnWidth:
|
|
1078
|
+
var PageBlockItemTableCell = z34.object({
|
|
1079
|
+
id: z34.string(),
|
|
1080
|
+
nodes: z34.array(PageBlockItemTableNode),
|
|
1081
|
+
columnWidth: z34.number().optional(),
|
|
1076
1082
|
alignment: PageBlockTableCellAlignment
|
|
1077
1083
|
});
|
|
1078
|
-
var PageBlockItemTableRow =
|
|
1079
|
-
cells:
|
|
1084
|
+
var PageBlockItemTableRow = z34.object({
|
|
1085
|
+
cells: z34.array(PageBlockItemTableCell)
|
|
1080
1086
|
});
|
|
1081
|
-
var PageBlockItemTableValue =
|
|
1082
|
-
highlightHeaderColumn:
|
|
1083
|
-
highlightHeaderRow:
|
|
1084
|
-
showBorder:
|
|
1085
|
-
value:
|
|
1087
|
+
var PageBlockItemTableValue = z34.object({
|
|
1088
|
+
highlightHeaderColumn: z34.boolean().optional(),
|
|
1089
|
+
highlightHeaderRow: z34.boolean().optional(),
|
|
1090
|
+
showBorder: z34.boolean().optional(),
|
|
1091
|
+
value: z34.array(PageBlockItemTableRow)
|
|
1086
1092
|
});
|
|
1087
1093
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1088
|
-
var SafeIdSchema =
|
|
1094
|
+
var SafeIdSchema = z35.string().refine(
|
|
1089
1095
|
(value) => {
|
|
1090
1096
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1091
1097
|
},
|
|
@@ -1093,35 +1099,35 @@ var SafeIdSchema = z34.string().refine(
|
|
|
1093
1099
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1094
1100
|
}
|
|
1095
1101
|
);
|
|
1096
|
-
var DocumentationPageAssetType =
|
|
1097
|
-
var DocumentationPageImageAsset =
|
|
1098
|
-
type:
|
|
1099
|
-
url:
|
|
1102
|
+
var DocumentationPageAssetType = z36.enum(["image", "figmaFrame"]);
|
|
1103
|
+
var DocumentationPageImageAsset = z36.object({
|
|
1104
|
+
type: z36.literal(DocumentationPageAssetType.Enum.image),
|
|
1105
|
+
url: z36.string().optional(),
|
|
1100
1106
|
id: SafeIdSchema
|
|
1101
1107
|
});
|
|
1102
|
-
var DocumentationPageFrameAsset =
|
|
1103
|
-
type:
|
|
1104
|
-
url:
|
|
1108
|
+
var DocumentationPageFrameAsset = z36.object({
|
|
1109
|
+
type: z36.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1110
|
+
url: z36.string().optional(),
|
|
1105
1111
|
figmaFrame: PageBlockFrame
|
|
1106
1112
|
});
|
|
1107
|
-
var DocumentationPageAsset =
|
|
1113
|
+
var DocumentationPageAsset = z36.discriminatedUnion("type", [
|
|
1108
1114
|
DocumentationPageImageAsset,
|
|
1109
1115
|
DocumentationPageFrameAsset
|
|
1110
1116
|
]);
|
|
1111
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
1112
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
1117
|
+
var DocumentationItemHeaderAlignmentSchema = z37.enum(["Left", "Center"]);
|
|
1118
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z37.enum(["AspectFill", "AspectFit"]);
|
|
1113
1119
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1114
1120
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1115
|
-
var DocumentationItemHeader =
|
|
1116
|
-
description:
|
|
1121
|
+
var DocumentationItemHeader = z37.object({
|
|
1122
|
+
description: z37.string(),
|
|
1117
1123
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1118
1124
|
foregroundColor: ColorTokenData.nullish(),
|
|
1119
1125
|
backgroundColor: ColorTokenData.nullish(),
|
|
1120
1126
|
backgroundImageAsset: DocumentationPageAsset.nullish(),
|
|
1121
1127
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1122
|
-
showBackgroundOverlay:
|
|
1123
|
-
showCoverText:
|
|
1124
|
-
minHeight:
|
|
1128
|
+
showBackgroundOverlay: z37.boolean(),
|
|
1129
|
+
showCoverText: z37.boolean(),
|
|
1130
|
+
minHeight: z37.number().nullish()
|
|
1125
1131
|
});
|
|
1126
1132
|
var defaultDocumentationItemHeader = {
|
|
1127
1133
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1130,158 +1136,158 @@ var defaultDocumentationItemHeader = {
|
|
|
1130
1136
|
showBackgroundOverlay: false,
|
|
1131
1137
|
showCoverText: true
|
|
1132
1138
|
};
|
|
1133
|
-
var DocumentationItemConfiguration =
|
|
1134
|
-
showSidebar:
|
|
1139
|
+
var DocumentationItemConfiguration = z38.object({
|
|
1140
|
+
showSidebar: z38.boolean(),
|
|
1135
1141
|
header: DocumentationItemHeader
|
|
1136
1142
|
});
|
|
1137
|
-
var DocumentationPageDataV1 =
|
|
1138
|
-
blocks:
|
|
1143
|
+
var DocumentationPageDataV1 = z39.object({
|
|
1144
|
+
blocks: z39.array(PageBlockV1),
|
|
1139
1145
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1140
1146
|
});
|
|
1141
|
-
var DocumentationPageElementDataV1 =
|
|
1147
|
+
var DocumentationPageElementDataV1 = z39.object({
|
|
1142
1148
|
value: DocumentationPageDataV1
|
|
1143
1149
|
});
|
|
1144
|
-
var DocumentationPageDataV2 =
|
|
1150
|
+
var DocumentationPageDataV2 = z40.object({
|
|
1145
1151
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1146
1152
|
});
|
|
1147
|
-
var DocumentationPageElementDataV2 =
|
|
1153
|
+
var DocumentationPageElementDataV2 = z40.object({
|
|
1148
1154
|
value: DocumentationPageDataV2
|
|
1149
1155
|
});
|
|
1150
|
-
var DurationUnit =
|
|
1151
|
-
var DurationValue =
|
|
1156
|
+
var DurationUnit = z41.enum(["Ms"]);
|
|
1157
|
+
var DurationValue = z41.object({
|
|
1152
1158
|
unit: DurationUnit,
|
|
1153
|
-
measure:
|
|
1159
|
+
measure: z41.number()
|
|
1154
1160
|
});
|
|
1155
1161
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1156
|
-
var FigmaFileStructureNodeType =
|
|
1157
|
-
var FigmaFileStructureNodeBase =
|
|
1158
|
-
id:
|
|
1159
|
-
name:
|
|
1162
|
+
var FigmaFileStructureNodeType = z42.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1163
|
+
var FigmaFileStructureNodeBase = z42.object({
|
|
1164
|
+
id: z42.string(),
|
|
1165
|
+
name: z42.string(),
|
|
1160
1166
|
type: FigmaFileStructureNodeType,
|
|
1161
1167
|
size: SizeOrUndefined,
|
|
1162
|
-
parentComponentSetId:
|
|
1168
|
+
parentComponentSetId: z42.string().optional()
|
|
1163
1169
|
});
|
|
1164
1170
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1165
|
-
children:
|
|
1171
|
+
children: z42.lazy(() => FigmaFileStructureNode.array())
|
|
1166
1172
|
});
|
|
1167
|
-
var FigmaFileStructureStatistics =
|
|
1168
|
-
frames:
|
|
1169
|
-
components:
|
|
1170
|
-
componentSets:
|
|
1173
|
+
var FigmaFileStructureStatistics = z42.object({
|
|
1174
|
+
frames: z42.number().nullable().optional().transform((v) => v ?? 0),
|
|
1175
|
+
components: z42.number().nullable().optional().transform((v) => v ?? 0),
|
|
1176
|
+
componentSets: z42.number().nullable().optional().transform((v) => v ?? 0)
|
|
1171
1177
|
});
|
|
1172
|
-
var FigmaFileStructureElementData =
|
|
1173
|
-
value:
|
|
1178
|
+
var FigmaFileStructureElementData = z42.object({
|
|
1179
|
+
value: z42.object({
|
|
1174
1180
|
structure: FigmaFileStructureNode,
|
|
1175
1181
|
assetsInFile: FigmaFileStructureStatistics
|
|
1176
1182
|
})
|
|
1177
1183
|
});
|
|
1178
|
-
var FigmaNodeReferenceData =
|
|
1179
|
-
structureElementId:
|
|
1180
|
-
nodeId:
|
|
1181
|
-
fileId:
|
|
1182
|
-
valid:
|
|
1183
|
-
assetId:
|
|
1184
|
-
assetScale:
|
|
1185
|
-
assetWidth:
|
|
1186
|
-
assetHeight:
|
|
1187
|
-
assetUrl:
|
|
1188
|
-
});
|
|
1189
|
-
var FigmaNodeReferenceElementData =
|
|
1184
|
+
var FigmaNodeReferenceData = z43.object({
|
|
1185
|
+
structureElementId: z43.string(),
|
|
1186
|
+
nodeId: z43.string(),
|
|
1187
|
+
fileId: z43.string().optional(),
|
|
1188
|
+
valid: z43.boolean(),
|
|
1189
|
+
assetId: z43.string().optional(),
|
|
1190
|
+
assetScale: z43.number().optional(),
|
|
1191
|
+
assetWidth: z43.number().optional(),
|
|
1192
|
+
assetHeight: z43.number().optional(),
|
|
1193
|
+
assetUrl: z43.string().optional()
|
|
1194
|
+
});
|
|
1195
|
+
var FigmaNodeReferenceElementData = z43.object({
|
|
1190
1196
|
value: FigmaNodeReferenceData
|
|
1191
1197
|
});
|
|
1192
|
-
var FontFamilyValue =
|
|
1198
|
+
var FontFamilyValue = z44.string();
|
|
1193
1199
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1194
|
-
var FontSizeUnit =
|
|
1195
|
-
var FontSizeValue =
|
|
1200
|
+
var FontSizeUnit = z45.enum(["Pixels", "Rem", "Percent"]);
|
|
1201
|
+
var FontSizeValue = z45.object({
|
|
1196
1202
|
unit: FontSizeUnit,
|
|
1197
|
-
measure:
|
|
1203
|
+
measure: z45.number()
|
|
1198
1204
|
});
|
|
1199
1205
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1200
|
-
var FontWeightValue =
|
|
1206
|
+
var FontWeightValue = z46.string();
|
|
1201
1207
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1202
|
-
var GradientType =
|
|
1203
|
-
var GradientStop =
|
|
1204
|
-
position:
|
|
1208
|
+
var GradientType = z47.enum(["Linear", "Radial", "Angular"]);
|
|
1209
|
+
var GradientStop = z47.object({
|
|
1210
|
+
position: z47.number(),
|
|
1205
1211
|
color: ColorTokenData
|
|
1206
1212
|
});
|
|
1207
|
-
var GradientLayerValue =
|
|
1213
|
+
var GradientLayerValue = z47.object({
|
|
1208
1214
|
from: Point2D,
|
|
1209
1215
|
to: Point2D,
|
|
1210
1216
|
type: GradientType,
|
|
1211
|
-
aspectRatio: nullishToOptional(
|
|
1217
|
+
aspectRatio: nullishToOptional(z47.number()),
|
|
1212
1218
|
// z.number(),
|
|
1213
|
-
stops:
|
|
1219
|
+
stops: z47.array(GradientStop).min(2)
|
|
1214
1220
|
});
|
|
1215
1221
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1216
|
-
var GradientTokenValue =
|
|
1222
|
+
var GradientTokenValue = z47.array(GradientLayerData);
|
|
1217
1223
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1218
|
-
var DocumentationGroupBehavior =
|
|
1219
|
-
var ElementGroupData =
|
|
1224
|
+
var DocumentationGroupBehavior = z48.enum(["Group", "Tabs"]);
|
|
1225
|
+
var ElementGroupData = z48.object({
|
|
1220
1226
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1221
1227
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1222
1228
|
});
|
|
1223
|
-
var ElementGroupElementData =
|
|
1229
|
+
var ElementGroupElementData = z48.object({
|
|
1224
1230
|
value: ElementGroupData.optional()
|
|
1225
1231
|
});
|
|
1226
|
-
var LetterSpacingUnit =
|
|
1227
|
-
var LetterSpacingValue =
|
|
1232
|
+
var LetterSpacingUnit = z49.enum(["Pixels", "Rem", "Percent"]);
|
|
1233
|
+
var LetterSpacingValue = z49.object({
|
|
1228
1234
|
unit: LetterSpacingUnit,
|
|
1229
|
-
measure:
|
|
1235
|
+
measure: z49.number()
|
|
1230
1236
|
});
|
|
1231
1237
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1232
|
-
var LineHeightUnit =
|
|
1233
|
-
var LineHeightValue =
|
|
1238
|
+
var LineHeightUnit = z50.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1239
|
+
var LineHeightValue = z50.object({
|
|
1234
1240
|
unit: LineHeightUnit,
|
|
1235
|
-
measure:
|
|
1241
|
+
measure: z50.number()
|
|
1236
1242
|
});
|
|
1237
1243
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1238
|
-
var ParagraphIndentUnit =
|
|
1239
|
-
var ParagraphIndentValue =
|
|
1244
|
+
var ParagraphIndentUnit = z51.enum(["Pixels", "Rem", "Percent"]);
|
|
1245
|
+
var ParagraphIndentValue = z51.object({
|
|
1240
1246
|
unit: ParagraphIndentUnit,
|
|
1241
|
-
measure:
|
|
1247
|
+
measure: z51.number()
|
|
1242
1248
|
});
|
|
1243
1249
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1244
|
-
var ParagraphSpacingUnit =
|
|
1245
|
-
var ParagraphSpacingValue =
|
|
1250
|
+
var ParagraphSpacingUnit = z52.enum(["Pixels", "Rem", "Percent"]);
|
|
1251
|
+
var ParagraphSpacingValue = z52.object({
|
|
1246
1252
|
unit: ParagraphSpacingUnit,
|
|
1247
|
-
measure:
|
|
1253
|
+
measure: z52.number()
|
|
1248
1254
|
});
|
|
1249
1255
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1250
|
-
var ProductCopyValue =
|
|
1256
|
+
var ProductCopyValue = z53.string();
|
|
1251
1257
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1252
|
-
var ShadowType =
|
|
1253
|
-
var ShadowLayerValue =
|
|
1258
|
+
var ShadowType = z54.enum(["Drop", "Inner"]);
|
|
1259
|
+
var ShadowLayerValue = z54.object({
|
|
1254
1260
|
color: ColorTokenData,
|
|
1255
|
-
x:
|
|
1256
|
-
y:
|
|
1257
|
-
radius:
|
|
1258
|
-
spread:
|
|
1261
|
+
x: z54.number(),
|
|
1262
|
+
y: z54.number(),
|
|
1263
|
+
radius: z54.number(),
|
|
1264
|
+
spread: z54.number(),
|
|
1259
1265
|
opacity: OpacityTokenData,
|
|
1260
1266
|
type: ShadowType
|
|
1261
1267
|
});
|
|
1262
1268
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1263
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1264
|
-
var SizeUnit =
|
|
1265
|
-
var SizeValue =
|
|
1269
|
+
var ShadowTokenData = tokenAliasOrValue(z54.array(ShadowTokenDataBase));
|
|
1270
|
+
var SizeUnit = z55.enum(["Pixels", "Rem", "Percent"]);
|
|
1271
|
+
var SizeValue = z55.object({
|
|
1266
1272
|
unit: SizeUnit,
|
|
1267
|
-
measure:
|
|
1273
|
+
measure: z55.number()
|
|
1268
1274
|
});
|
|
1269
1275
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1270
|
-
var SpaceUnit =
|
|
1271
|
-
var SpaceValue =
|
|
1276
|
+
var SpaceUnit = z56.enum(["Pixels", "Rem", "Percent"]);
|
|
1277
|
+
var SpaceValue = z56.object({
|
|
1272
1278
|
unit: SpaceUnit,
|
|
1273
|
-
measure:
|
|
1279
|
+
measure: z56.number()
|
|
1274
1280
|
});
|
|
1275
1281
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1276
|
-
var StringValue =
|
|
1282
|
+
var StringValue = z57.string();
|
|
1277
1283
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1278
|
-
var TextCase =
|
|
1284
|
+
var TextCase = z58.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1279
1285
|
var TextCaseValue = TextCase;
|
|
1280
1286
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1281
|
-
var TextDecoration =
|
|
1287
|
+
var TextDecoration = z59.enum(["None", "Underline", "Strikethrough"]);
|
|
1282
1288
|
var TextDecorationValue = TextDecoration;
|
|
1283
1289
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1284
|
-
var TypographyValue =
|
|
1290
|
+
var TypographyValue = z60.object({
|
|
1285
1291
|
fontSize: FontSizeTokenData,
|
|
1286
1292
|
fontFamily: FontFamilyTokenData,
|
|
1287
1293
|
fontWeight: FontWeightTokenData,
|
|
@@ -1293,75 +1299,75 @@ var TypographyValue = z59.object({
|
|
|
1293
1299
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1294
1300
|
});
|
|
1295
1301
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1296
|
-
var Visibility =
|
|
1302
|
+
var Visibility = z61.enum(["Hidden", "Visible"]);
|
|
1297
1303
|
var VisibilityValue = Visibility;
|
|
1298
1304
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1299
|
-
var ZIndexUnit =
|
|
1300
|
-
var ZIndexValue =
|
|
1305
|
+
var ZIndexUnit = z62.enum(["Raw"]);
|
|
1306
|
+
var ZIndexValue = z62.object({
|
|
1301
1307
|
unit: ZIndexUnit,
|
|
1302
|
-
measure:
|
|
1308
|
+
measure: z62.number()
|
|
1303
1309
|
});
|
|
1304
1310
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1305
|
-
var DesignElementOrigin =
|
|
1306
|
-
id:
|
|
1307
|
-
sourceId:
|
|
1308
|
-
name:
|
|
1309
|
-
});
|
|
1310
|
-
var DesignElementBase =
|
|
1311
|
-
id:
|
|
1312
|
-
persistentId:
|
|
1311
|
+
var DesignElementOrigin = z63.object({
|
|
1312
|
+
id: z63.string(),
|
|
1313
|
+
sourceId: z63.string(),
|
|
1314
|
+
name: z63.string()
|
|
1315
|
+
});
|
|
1316
|
+
var DesignElementBase = z63.object({
|
|
1317
|
+
id: z63.string(),
|
|
1318
|
+
persistentId: z63.string(),
|
|
1313
1319
|
meta: ObjectMeta,
|
|
1314
|
-
designSystemVersionId:
|
|
1315
|
-
createdAt:
|
|
1316
|
-
updatedAt:
|
|
1320
|
+
designSystemVersionId: z63.string(),
|
|
1321
|
+
createdAt: z63.date(),
|
|
1322
|
+
updatedAt: z63.date()
|
|
1317
1323
|
});
|
|
1318
1324
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1319
1325
|
origin: DesignElementOrigin
|
|
1320
1326
|
});
|
|
1321
|
-
var DesignElementGroupablePart =
|
|
1322
|
-
parentPersistentId:
|
|
1323
|
-
sortOrder:
|
|
1327
|
+
var DesignElementGroupablePart = z63.object({
|
|
1328
|
+
parentPersistentId: z63.string().optional(),
|
|
1329
|
+
sortOrder: z63.number()
|
|
1324
1330
|
});
|
|
1325
1331
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1326
1332
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1327
|
-
parentPersistentId:
|
|
1333
|
+
parentPersistentId: z63.string()
|
|
1328
1334
|
});
|
|
1329
|
-
var DesignElementBrandedPart =
|
|
1330
|
-
brandPersistentId:
|
|
1335
|
+
var DesignElementBrandedPart = z63.object({
|
|
1336
|
+
brandPersistentId: z63.string()
|
|
1331
1337
|
});
|
|
1332
|
-
var DesignElementSlugPart =
|
|
1333
|
-
slug:
|
|
1334
|
-
userSlug:
|
|
1338
|
+
var DesignElementSlugPart = z63.object({
|
|
1339
|
+
slug: z63.string().optional(),
|
|
1340
|
+
userSlug: z63.string().optional()
|
|
1335
1341
|
});
|
|
1336
|
-
var ComponentOriginPart =
|
|
1337
|
-
nodeId:
|
|
1338
|
-
width:
|
|
1339
|
-
height:
|
|
1342
|
+
var ComponentOriginPart = z64.object({
|
|
1343
|
+
nodeId: z64.string().optional(),
|
|
1344
|
+
width: z64.number().optional(),
|
|
1345
|
+
height: z64.number().optional()
|
|
1340
1346
|
});
|
|
1341
|
-
var ComponentAsset =
|
|
1342
|
-
assetId:
|
|
1343
|
-
assetPath:
|
|
1347
|
+
var ComponentAsset = z64.object({
|
|
1348
|
+
assetId: z64.string(),
|
|
1349
|
+
assetPath: z64.string()
|
|
1344
1350
|
});
|
|
1345
1351
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1346
1352
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1347
1353
|
origin: ComponentOrigin.optional(),
|
|
1348
1354
|
thumbnail: ComponentAsset,
|
|
1349
1355
|
svg: ComponentAsset.optional(),
|
|
1350
|
-
isAsset:
|
|
1356
|
+
isAsset: z64.boolean()
|
|
1351
1357
|
});
|
|
1352
1358
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1353
|
-
shortPersistentId:
|
|
1359
|
+
shortPersistentId: z65.string(),
|
|
1354
1360
|
data: DocumentationPageDataV1
|
|
1355
1361
|
});
|
|
1356
1362
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1357
|
-
shortPersistentId:
|
|
1363
|
+
shortPersistentId: z66.string(),
|
|
1358
1364
|
data: DocumentationPageDataV2
|
|
1359
1365
|
});
|
|
1360
|
-
var FigmaFileStructureOrigin =
|
|
1361
|
-
sourceId:
|
|
1362
|
-
fileId:
|
|
1366
|
+
var FigmaFileStructureOrigin = z67.object({
|
|
1367
|
+
sourceId: z67.string(),
|
|
1368
|
+
fileId: z67.string().optional()
|
|
1363
1369
|
});
|
|
1364
|
-
var FigmaFileStructureData =
|
|
1370
|
+
var FigmaFileStructureData = z67.object({
|
|
1365
1371
|
rootNode: FigmaFileStructureNode,
|
|
1366
1372
|
assetsInFile: FigmaFileStructureStatistics
|
|
1367
1373
|
});
|
|
@@ -1373,7 +1379,7 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1373
1379
|
data: FigmaNodeReferenceData
|
|
1374
1380
|
});
|
|
1375
1381
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1376
|
-
shortPersistentId:
|
|
1382
|
+
shortPersistentId: z68.string().optional(),
|
|
1377
1383
|
childType: DesignElementType,
|
|
1378
1384
|
data: ElementGroupData.optional()
|
|
1379
1385
|
});
|
|
@@ -1381,13 +1387,13 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
|
1381
1387
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1382
1388
|
data: PageBlockDataV2
|
|
1383
1389
|
});
|
|
1384
|
-
var PageBlockEditorModelV2 =
|
|
1385
|
-
id:
|
|
1390
|
+
var PageBlockEditorModelV2 = z69.object({
|
|
1391
|
+
id: z69.string(),
|
|
1386
1392
|
data: PageBlockDataV2
|
|
1387
1393
|
});
|
|
1388
|
-
var DesignTokenOriginPart =
|
|
1389
|
-
referenceOriginId:
|
|
1390
|
-
referencePersistentId:
|
|
1394
|
+
var DesignTokenOriginPart = z70.object({
|
|
1395
|
+
referenceOriginId: z70.string().optional(),
|
|
1396
|
+
referencePersistentId: z70.string().optional()
|
|
1391
1397
|
});
|
|
1392
1398
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1393
1399
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1399,111 +1405,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1399
1405
|
brandPersistentId: true,
|
|
1400
1406
|
designSystemVersionId: true
|
|
1401
1407
|
});
|
|
1402
|
-
var BlurTokenTypedData =
|
|
1403
|
-
type:
|
|
1408
|
+
var BlurTokenTypedData = z70.object({
|
|
1409
|
+
type: z70.literal("Blur"),
|
|
1404
1410
|
data: BlurTokenData
|
|
1405
1411
|
});
|
|
1406
|
-
var ColorTokenTypedData =
|
|
1407
|
-
type:
|
|
1412
|
+
var ColorTokenTypedData = z70.object({
|
|
1413
|
+
type: z70.literal("Color"),
|
|
1408
1414
|
data: ColorTokenData
|
|
1409
1415
|
});
|
|
1410
|
-
var GradientTokenTypedData =
|
|
1411
|
-
type:
|
|
1416
|
+
var GradientTokenTypedData = z70.object({
|
|
1417
|
+
type: z70.literal("Gradient"),
|
|
1412
1418
|
data: GradientTokenData
|
|
1413
1419
|
});
|
|
1414
|
-
var OpacityTokenTypedData =
|
|
1415
|
-
type:
|
|
1420
|
+
var OpacityTokenTypedData = z70.object({
|
|
1421
|
+
type: z70.literal("Opacity"),
|
|
1416
1422
|
data: OpacityTokenData
|
|
1417
1423
|
});
|
|
1418
|
-
var ShadowTokenTypedData =
|
|
1419
|
-
type:
|
|
1424
|
+
var ShadowTokenTypedData = z70.object({
|
|
1425
|
+
type: z70.literal("Shadow"),
|
|
1420
1426
|
data: ShadowTokenData
|
|
1421
1427
|
});
|
|
1422
|
-
var TypographyTokenTypedData =
|
|
1423
|
-
type:
|
|
1428
|
+
var TypographyTokenTypedData = z70.object({
|
|
1429
|
+
type: z70.literal("Typography"),
|
|
1424
1430
|
data: TypographyTokenData
|
|
1425
1431
|
});
|
|
1426
|
-
var StringTokenTypedData =
|
|
1427
|
-
type:
|
|
1432
|
+
var StringTokenTypedData = z70.object({
|
|
1433
|
+
type: z70.literal("String"),
|
|
1428
1434
|
data: StringTokenData
|
|
1429
1435
|
});
|
|
1430
|
-
var DimensionTokenTypedData =
|
|
1431
|
-
type:
|
|
1436
|
+
var DimensionTokenTypedData = z70.object({
|
|
1437
|
+
type: z70.literal("Dimension"),
|
|
1432
1438
|
data: DimensionTokenData
|
|
1433
1439
|
});
|
|
1434
|
-
var FontSizeTokenTypedData =
|
|
1435
|
-
type:
|
|
1440
|
+
var FontSizeTokenTypedData = z70.object({
|
|
1441
|
+
type: z70.literal("FontSize"),
|
|
1436
1442
|
data: FontSizeTokenData
|
|
1437
1443
|
});
|
|
1438
|
-
var FontFamilyTokenTypedData =
|
|
1439
|
-
type:
|
|
1444
|
+
var FontFamilyTokenTypedData = z70.object({
|
|
1445
|
+
type: z70.literal("FontFamily"),
|
|
1440
1446
|
data: FontFamilyTokenData
|
|
1441
1447
|
});
|
|
1442
|
-
var FontWeightTokenTypedData =
|
|
1443
|
-
type:
|
|
1448
|
+
var FontWeightTokenTypedData = z70.object({
|
|
1449
|
+
type: z70.literal("FontWeight"),
|
|
1444
1450
|
data: FontWeightTokenData
|
|
1445
1451
|
});
|
|
1446
|
-
var LetterSpacingTokenTypedData =
|
|
1447
|
-
type:
|
|
1452
|
+
var LetterSpacingTokenTypedData = z70.object({
|
|
1453
|
+
type: z70.literal("LetterSpacing"),
|
|
1448
1454
|
data: LetterSpacingTokenData
|
|
1449
1455
|
});
|
|
1450
|
-
var LineHeightTokenTypedData =
|
|
1451
|
-
type:
|
|
1456
|
+
var LineHeightTokenTypedData = z70.object({
|
|
1457
|
+
type: z70.literal("LineHeight"),
|
|
1452
1458
|
data: LineHeightTokenData
|
|
1453
1459
|
});
|
|
1454
|
-
var ParagraphSpacingTokenTypedData =
|
|
1455
|
-
type:
|
|
1460
|
+
var ParagraphSpacingTokenTypedData = z70.object({
|
|
1461
|
+
type: z70.literal("ParagraphSpacing"),
|
|
1456
1462
|
data: ParagraphSpacingTokenData
|
|
1457
1463
|
});
|
|
1458
|
-
var TextCaseTokenTypedData =
|
|
1459
|
-
type:
|
|
1464
|
+
var TextCaseTokenTypedData = z70.object({
|
|
1465
|
+
type: z70.literal("TextCase"),
|
|
1460
1466
|
data: TextCaseTokenData
|
|
1461
1467
|
});
|
|
1462
|
-
var TextDecorationTokenTypedData =
|
|
1463
|
-
type:
|
|
1468
|
+
var TextDecorationTokenTypedData = z70.object({
|
|
1469
|
+
type: z70.literal("TextDecoration"),
|
|
1464
1470
|
data: TextDecorationTokenData
|
|
1465
1471
|
});
|
|
1466
|
-
var BorderRadiusTokenTypedData =
|
|
1467
|
-
type:
|
|
1472
|
+
var BorderRadiusTokenTypedData = z70.object({
|
|
1473
|
+
type: z70.literal("BorderRadius"),
|
|
1468
1474
|
data: BorderRadiusTokenData
|
|
1469
1475
|
});
|
|
1470
|
-
var BorderWidthTokenTypedData =
|
|
1471
|
-
type:
|
|
1476
|
+
var BorderWidthTokenTypedData = z70.object({
|
|
1477
|
+
type: z70.literal("BorderWidth"),
|
|
1472
1478
|
data: BorderWidthTokenData
|
|
1473
1479
|
});
|
|
1474
|
-
var BorderTypedData =
|
|
1475
|
-
type:
|
|
1480
|
+
var BorderTypedData = z70.object({
|
|
1481
|
+
type: z70.literal("Border"),
|
|
1476
1482
|
data: BorderTokenData
|
|
1477
1483
|
});
|
|
1478
|
-
var ProductCopyTypedData =
|
|
1479
|
-
type:
|
|
1484
|
+
var ProductCopyTypedData = z70.object({
|
|
1485
|
+
type: z70.literal("ProductCopy"),
|
|
1480
1486
|
data: ProductCopyTokenData
|
|
1481
1487
|
});
|
|
1482
|
-
var SizeTypedData =
|
|
1483
|
-
type:
|
|
1488
|
+
var SizeTypedData = z70.object({
|
|
1489
|
+
type: z70.literal("Size"),
|
|
1484
1490
|
data: SizeTokenData
|
|
1485
1491
|
});
|
|
1486
|
-
var SpaceTypedData =
|
|
1487
|
-
type:
|
|
1492
|
+
var SpaceTypedData = z70.object({
|
|
1493
|
+
type: z70.literal("Space"),
|
|
1488
1494
|
data: SpaceTokenData
|
|
1489
1495
|
});
|
|
1490
|
-
var VisibilityTypedData =
|
|
1491
|
-
type:
|
|
1496
|
+
var VisibilityTypedData = z70.object({
|
|
1497
|
+
type: z70.literal("Visibility"),
|
|
1492
1498
|
data: VisibilityTokenData
|
|
1493
1499
|
});
|
|
1494
|
-
var ZIndexTypedData =
|
|
1495
|
-
type:
|
|
1500
|
+
var ZIndexTypedData = z70.object({
|
|
1501
|
+
type: z70.literal("ZIndex"),
|
|
1496
1502
|
data: ZIndexTokenData
|
|
1497
1503
|
});
|
|
1498
|
-
var DurationTypedData =
|
|
1499
|
-
type:
|
|
1504
|
+
var DurationTypedData = z70.object({
|
|
1505
|
+
type: z70.literal("Duration"),
|
|
1500
1506
|
data: DurationTokenData
|
|
1501
1507
|
});
|
|
1502
|
-
var FontTypedData =
|
|
1503
|
-
type:
|
|
1504
|
-
data:
|
|
1508
|
+
var FontTypedData = z70.object({
|
|
1509
|
+
type: z70.literal("Font"),
|
|
1510
|
+
data: z70.record(z70.any())
|
|
1505
1511
|
});
|
|
1506
|
-
var DesignTokenTypedData =
|
|
1512
|
+
var DesignTokenTypedData = z70.discriminatedUnion("type", [
|
|
1507
1513
|
BlurTokenTypedData,
|
|
1508
1514
|
BorderRadiusTokenTypedData,
|
|
1509
1515
|
BorderWidthTokenTypedData,
|
|
@@ -1536,66 +1542,66 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
1536
1542
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1537
1543
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1538
1544
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1539
|
-
|
|
1540
|
-
tokenPersistentId:
|
|
1545
|
+
z71.object({
|
|
1546
|
+
tokenPersistentId: z71.string(),
|
|
1541
1547
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1542
1548
|
})
|
|
1543
1549
|
);
|
|
1544
|
-
var ThemeElementData =
|
|
1545
|
-
value:
|
|
1546
|
-
overrides:
|
|
1550
|
+
var ThemeElementData = z71.object({
|
|
1551
|
+
value: z71.object({
|
|
1552
|
+
overrides: z71.array(ThemeOverride)
|
|
1547
1553
|
})
|
|
1548
1554
|
});
|
|
1549
|
-
var ThemeOriginPart =
|
|
1550
|
-
var ThemeOriginObject =
|
|
1551
|
-
id:
|
|
1552
|
-
name:
|
|
1555
|
+
var ThemeOriginPart = z71.object({});
|
|
1556
|
+
var ThemeOriginObject = z71.object({
|
|
1557
|
+
id: z71.string(),
|
|
1558
|
+
name: z71.string()
|
|
1553
1559
|
});
|
|
1554
|
-
var ThemeOriginSource =
|
|
1555
|
-
sourceId:
|
|
1556
|
-
sourceObjects:
|
|
1560
|
+
var ThemeOriginSource = z71.object({
|
|
1561
|
+
sourceId: z71.string(),
|
|
1562
|
+
sourceObjects: z71.array(ThemeOriginObject)
|
|
1557
1563
|
});
|
|
1558
|
-
var ThemeOrigin =
|
|
1559
|
-
sources:
|
|
1564
|
+
var ThemeOrigin = z71.object({
|
|
1565
|
+
sources: z71.array(ThemeOriginSource)
|
|
1560
1566
|
});
|
|
1561
1567
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1562
1568
|
origin: ThemeOrigin.optional(),
|
|
1563
|
-
overrides:
|
|
1569
|
+
overrides: z71.array(ThemeOverride)
|
|
1564
1570
|
});
|
|
1565
|
-
var FigmaFileDownloadScope =
|
|
1566
|
-
styles:
|
|
1567
|
-
components:
|
|
1568
|
-
currentVersion:
|
|
1569
|
-
publishedVersion:
|
|
1570
|
-
downloadChunkSize:
|
|
1571
|
+
var FigmaFileDownloadScope = z72.object({
|
|
1572
|
+
styles: z72.boolean(),
|
|
1573
|
+
components: z72.boolean(),
|
|
1574
|
+
currentVersion: z72.literal("__latest__").nullable(),
|
|
1575
|
+
publishedVersion: z72.string().nullable(),
|
|
1576
|
+
downloadChunkSize: z72.number().optional()
|
|
1571
1577
|
});
|
|
1572
|
-
var FigmaFileAccessData =
|
|
1573
|
-
accessToken:
|
|
1578
|
+
var FigmaFileAccessData = z72.object({
|
|
1579
|
+
accessToken: z72.string()
|
|
1574
1580
|
});
|
|
1575
|
-
var ImportFunctionInput =
|
|
1576
|
-
importJobId:
|
|
1577
|
-
importContextId:
|
|
1578
|
-
designSystemId:
|
|
1581
|
+
var ImportFunctionInput = z73.object({
|
|
1582
|
+
importJobId: z73.string(),
|
|
1583
|
+
importContextId: z73.string(),
|
|
1584
|
+
designSystemId: z73.string().optional()
|
|
1579
1585
|
});
|
|
1580
|
-
var ImportedFigmaSourceData =
|
|
1581
|
-
sourceId:
|
|
1586
|
+
var ImportedFigmaSourceData = z73.object({
|
|
1587
|
+
sourceId: z73.string(),
|
|
1582
1588
|
figmaRemote: DataSourceFigmaRemote
|
|
1583
1589
|
});
|
|
1584
|
-
var FigmaImportBaseContext =
|
|
1585
|
-
designSystemId:
|
|
1590
|
+
var FigmaImportBaseContext = z73.object({
|
|
1591
|
+
designSystemId: z73.string(),
|
|
1586
1592
|
/**
|
|
1587
1593
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1588
1594
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1589
1595
|
*
|
|
1590
1596
|
* fileId: file data
|
|
1591
1597
|
*/
|
|
1592
|
-
fileAccessByFileId:
|
|
1598
|
+
fileAccessByFileId: z73.record(FigmaFileAccessData),
|
|
1593
1599
|
/**
|
|
1594
1600
|
* Figma source data for which import was requested
|
|
1595
1601
|
*
|
|
1596
1602
|
* sourceId: source data
|
|
1597
1603
|
*/
|
|
1598
|
-
importedSourceDataBySourceId:
|
|
1604
|
+
importedSourceDataBySourceId: z73.record(ImportedFigmaSourceData)
|
|
1599
1605
|
});
|
|
1600
1606
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1601
1607
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1607,65 +1613,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
|
|
|
1607
1613
|
*
|
|
1608
1614
|
* File id -> file download scope
|
|
1609
1615
|
*/
|
|
1610
|
-
fileDownloadScopesByFileId:
|
|
1616
|
+
fileDownloadScopesByFileId: z73.record(FigmaFileDownloadScope),
|
|
1611
1617
|
/**
|
|
1612
1618
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1613
1619
|
* imported again.
|
|
1614
1620
|
*
|
|
1615
1621
|
* Source id -> import metadata
|
|
1616
1622
|
*/
|
|
1617
|
-
changedImportedSourceDataBySourceId:
|
|
1623
|
+
changedImportedSourceDataBySourceId: z73.record(ChangedImportedFigmaSourceData)
|
|
1618
1624
|
});
|
|
1619
|
-
var ImageImportModelType =
|
|
1620
|
-
var ImageImportModelBase =
|
|
1625
|
+
var ImageImportModelType = z74.enum(["Url", "FigmaRender"]);
|
|
1626
|
+
var ImageImportModelBase = z74.object({
|
|
1621
1627
|
scope: AssetScope
|
|
1622
1628
|
});
|
|
1623
1629
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1624
|
-
type:
|
|
1625
|
-
url:
|
|
1626
|
-
originKey:
|
|
1627
|
-
extension:
|
|
1630
|
+
type: z74.literal(ImageImportModelType.enum.Url),
|
|
1631
|
+
url: z74.string(),
|
|
1632
|
+
originKey: z74.string(),
|
|
1633
|
+
extension: z74.enum(["png", "svg", "jpg"])
|
|
1628
1634
|
});
|
|
1629
|
-
var FigmaRenderFormat =
|
|
1635
|
+
var FigmaRenderFormat = z74.enum(["Svg", "Png"]);
|
|
1630
1636
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1631
|
-
type:
|
|
1632
|
-
fileId:
|
|
1633
|
-
fileVersionId:
|
|
1634
|
-
nodeId:
|
|
1635
|
-
originKey:
|
|
1637
|
+
type: z74.literal(ImageImportModelType.enum.FigmaRender),
|
|
1638
|
+
fileId: z74.string(),
|
|
1639
|
+
fileVersionId: z74.string().optional(),
|
|
1640
|
+
nodeId: z74.string(),
|
|
1641
|
+
originKey: z74.string()
|
|
1636
1642
|
});
|
|
1637
1643
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1638
|
-
format:
|
|
1639
|
-
scale:
|
|
1644
|
+
format: z74.literal(FigmaRenderFormat.enum.Png),
|
|
1645
|
+
scale: z74.number()
|
|
1640
1646
|
});
|
|
1641
1647
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1642
|
-
format:
|
|
1648
|
+
format: z74.literal(FigmaRenderFormat.enum.Svg)
|
|
1643
1649
|
});
|
|
1644
|
-
var FigmaRenderImportModel =
|
|
1650
|
+
var FigmaRenderImportModel = z74.discriminatedUnion("format", [
|
|
1645
1651
|
FigmaPngRenderImportModel,
|
|
1646
1652
|
FigmaSvgRenderImportModel
|
|
1647
1653
|
]);
|
|
1648
|
-
var ImageImportModel =
|
|
1649
|
-
var ImportModelBase =
|
|
1650
|
-
id:
|
|
1654
|
+
var ImageImportModel = z74.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1655
|
+
var ImportModelBase = z75.object({
|
|
1656
|
+
id: z75.string(),
|
|
1651
1657
|
meta: ObjectMeta,
|
|
1652
1658
|
origin: DesignElementOrigin,
|
|
1653
|
-
brandPersistentId:
|
|
1654
|
-
sortOrder:
|
|
1659
|
+
brandPersistentId: z75.string(),
|
|
1660
|
+
sortOrder: z75.number()
|
|
1655
1661
|
});
|
|
1656
1662
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1657
1663
|
brandPersistentId: true,
|
|
1658
1664
|
origin: true,
|
|
1659
1665
|
sortOrder: true
|
|
1660
1666
|
}).extend({
|
|
1661
|
-
originId:
|
|
1662
|
-
originMetadata:
|
|
1667
|
+
originId: z75.string(),
|
|
1668
|
+
originMetadata: z75.record(z75.any())
|
|
1663
1669
|
});
|
|
1664
|
-
var ComponentImportModelPart =
|
|
1670
|
+
var ComponentImportModelPart = z76.object({
|
|
1665
1671
|
thumbnail: ImageImportModel
|
|
1666
1672
|
});
|
|
1667
1673
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1668
|
-
isAsset:
|
|
1674
|
+
isAsset: z76.boolean(),
|
|
1669
1675
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1670
1676
|
origin: ComponentOrigin
|
|
1671
1677
|
});
|
|
@@ -1677,44 +1683,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1677
1683
|
originMetadata: ComponentOriginPart
|
|
1678
1684
|
});
|
|
1679
1685
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1680
|
-
|
|
1681
|
-
id:
|
|
1686
|
+
z77.object({
|
|
1687
|
+
id: z77.string(),
|
|
1682
1688
|
meta: ObjectMeta
|
|
1683
1689
|
})
|
|
1684
1690
|
);
|
|
1685
1691
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1686
|
-
|
|
1692
|
+
z77.object({
|
|
1687
1693
|
origin: ThemeOverrideOrigin
|
|
1688
1694
|
})
|
|
1689
1695
|
);
|
|
1690
1696
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1691
|
-
|
|
1692
|
-
originId:
|
|
1697
|
+
z77.object({
|
|
1698
|
+
originId: z77.string(),
|
|
1693
1699
|
originMetadata: ThemeOverrideOriginPart
|
|
1694
1700
|
})
|
|
1695
1701
|
);
|
|
1696
|
-
var ThemeImportModel =
|
|
1702
|
+
var ThemeImportModel = z77.object({
|
|
1697
1703
|
meta: ObjectMeta,
|
|
1698
|
-
brandPersistentId:
|
|
1704
|
+
brandPersistentId: z77.string(),
|
|
1699
1705
|
originSource: ThemeOriginSource,
|
|
1700
|
-
overrides:
|
|
1701
|
-
sortOrder:
|
|
1706
|
+
overrides: z77.array(ThemeOverrideImportModel),
|
|
1707
|
+
sortOrder: z77.number()
|
|
1702
1708
|
});
|
|
1703
|
-
var ThemeImportModelInput =
|
|
1709
|
+
var ThemeImportModelInput = z77.object({
|
|
1704
1710
|
meta: ObjectMeta,
|
|
1705
|
-
originObjects:
|
|
1706
|
-
overrides:
|
|
1711
|
+
originObjects: z77.array(ThemeOriginObject),
|
|
1712
|
+
overrides: z77.array(ThemeOverrideImportModelInput)
|
|
1707
1713
|
});
|
|
1708
|
-
var ThemeUpdateImportModel =
|
|
1709
|
-
themePersistentId:
|
|
1710
|
-
overrides:
|
|
1714
|
+
var ThemeUpdateImportModel = z77.object({
|
|
1715
|
+
themePersistentId: z77.string(),
|
|
1716
|
+
overrides: z77.array(ThemeOverrideImportModel)
|
|
1711
1717
|
});
|
|
1712
|
-
var ThemeUpdateImportModelInput =
|
|
1713
|
-
themePersistentId:
|
|
1714
|
-
overrides:
|
|
1718
|
+
var ThemeUpdateImportModelInput = z77.object({
|
|
1719
|
+
themePersistentId: z77.string(),
|
|
1720
|
+
overrides: z77.array(ThemeOverrideImportModelInput)
|
|
1715
1721
|
});
|
|
1716
|
-
var DesignTokenImportModelPart =
|
|
1717
|
-
collection:
|
|
1722
|
+
var DesignTokenImportModelPart = z78.object({
|
|
1723
|
+
collection: z78.string().optional()
|
|
1718
1724
|
});
|
|
1719
1725
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1720
1726
|
origin: DesignTokenOrigin
|
|
@@ -1728,10 +1734,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
|
1728
1734
|
image: FigmaPngRenderImportModel
|
|
1729
1735
|
});
|
|
1730
1736
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1731
|
-
children:
|
|
1737
|
+
children: z79.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1732
1738
|
});
|
|
1733
|
-
var FigmaFileStructureImportModelPart =
|
|
1734
|
-
data:
|
|
1739
|
+
var FigmaFileStructureImportModelPart = z79.object({
|
|
1740
|
+
data: z79.object({
|
|
1735
1741
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1736
1742
|
assetsInFile: FigmaFileStructureStatistics
|
|
1737
1743
|
})
|
|
@@ -1742,31 +1748,31 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1742
1748
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1743
1749
|
FigmaFileStructureImportModelPart.shape
|
|
1744
1750
|
).extend({
|
|
1745
|
-
fileVersionId:
|
|
1751
|
+
fileVersionId: z79.string()
|
|
1746
1752
|
});
|
|
1747
|
-
var DataSourceImportModel =
|
|
1748
|
-
id:
|
|
1749
|
-
fileName:
|
|
1750
|
-
thumbnailUrl:
|
|
1753
|
+
var DataSourceImportModel = z80.object({
|
|
1754
|
+
id: z80.string(),
|
|
1755
|
+
fileName: z80.string().optional(),
|
|
1756
|
+
thumbnailUrl: z80.string().optional()
|
|
1751
1757
|
});
|
|
1752
|
-
var ImportModelInputCollection =
|
|
1758
|
+
var ImportModelInputCollection = z81.object({
|
|
1753
1759
|
source: DataSourceImportModel,
|
|
1754
|
-
tokens:
|
|
1755
|
-
components:
|
|
1756
|
-
assets:
|
|
1757
|
-
themeUpdates:
|
|
1758
|
-
themes:
|
|
1760
|
+
tokens: z81.array(DesignTokenImportModelInput).default([]),
|
|
1761
|
+
components: z81.array(ComponentImportModelInput).default([]),
|
|
1762
|
+
assets: z81.array(AssetImportModelInput).default([]),
|
|
1763
|
+
themeUpdates: z81.array(ThemeUpdateImportModelInput).default([]),
|
|
1764
|
+
themes: z81.array(ThemeImportModelInput).default([]),
|
|
1759
1765
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1760
1766
|
});
|
|
1761
|
-
var ImportModelCollection =
|
|
1762
|
-
sources:
|
|
1763
|
-
tokens:
|
|
1764
|
-
components:
|
|
1765
|
-
themeUpdates:
|
|
1766
|
-
themes:
|
|
1767
|
-
figmaFileStructures:
|
|
1767
|
+
var ImportModelCollection = z81.object({
|
|
1768
|
+
sources: z81.array(DataSourceImportModel),
|
|
1769
|
+
tokens: z81.array(DesignTokenImportModel).default([]),
|
|
1770
|
+
components: z81.array(ComponentImportModel).default([]),
|
|
1771
|
+
themeUpdates: z81.array(ThemeUpdateImportModel).default([]),
|
|
1772
|
+
themes: z81.array(ThemeImportModel).default([]),
|
|
1773
|
+
figmaFileStructures: z81.array(FigmaFileStructureImportModel)
|
|
1768
1774
|
});
|
|
1769
|
-
var ImportWarningType =
|
|
1775
|
+
var ImportWarningType = z82.enum([
|
|
1770
1776
|
"NoVersionFound",
|
|
1771
1777
|
"UnsupportedFill",
|
|
1772
1778
|
"UnsupportedStroke",
|
|
@@ -1780,25 +1786,25 @@ var ImportWarningType = z81.enum([
|
|
|
1780
1786
|
"DuplicateImportedStyleId",
|
|
1781
1787
|
"DuplicateImportedStylePath"
|
|
1782
1788
|
]);
|
|
1783
|
-
var ImportWarning =
|
|
1789
|
+
var ImportWarning = z82.object({
|
|
1784
1790
|
warningType: ImportWarningType,
|
|
1785
|
-
componentId:
|
|
1786
|
-
componentName:
|
|
1787
|
-
styleId:
|
|
1788
|
-
styleName:
|
|
1789
|
-
unsupportedStyleValueType:
|
|
1791
|
+
componentId: z82.string().optional(),
|
|
1792
|
+
componentName: z82.string().optional(),
|
|
1793
|
+
styleId: z82.string().optional(),
|
|
1794
|
+
styleName: z82.string().optional(),
|
|
1795
|
+
unsupportedStyleValueType: z82.string().optional()
|
|
1790
1796
|
});
|
|
1791
|
-
var FileStructureStats =
|
|
1797
|
+
var FileStructureStats = z83.object({
|
|
1792
1798
|
frames: zeroNumberByDefault2(),
|
|
1793
1799
|
components: zeroNumberByDefault2(),
|
|
1794
1800
|
componentSets: zeroNumberByDefault2()
|
|
1795
1801
|
});
|
|
1796
1802
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1797
1803
|
// Backward compatibility
|
|
1798
|
-
|
|
1804
|
+
z83.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1799
1805
|
);
|
|
1800
|
-
var SourceImportSummaryByTokenType =
|
|
1801
|
-
var SourceImportTokenSummary =
|
|
1806
|
+
var SourceImportSummaryByTokenType = z83.record(SourceImportSummaryByTokenTypeKey, z83.number());
|
|
1807
|
+
var SourceImportTokenSummary = z83.object({
|
|
1802
1808
|
tokensCreated: zeroNumberByDefault2(),
|
|
1803
1809
|
tokensUpdated: zeroNumberByDefault2(),
|
|
1804
1810
|
tokensDeleted: zeroNumberByDefault2(),
|
|
@@ -1806,7 +1812,7 @@ var SourceImportTokenSummary = z82.object({
|
|
|
1806
1812
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1807
1813
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1808
1814
|
});
|
|
1809
|
-
var SourceImportComponentSummary =
|
|
1815
|
+
var SourceImportComponentSummary = z83.object({
|
|
1810
1816
|
componentsCreated: zeroNumberByDefault2(),
|
|
1811
1817
|
componentsUpdated: zeroNumberByDefault2(),
|
|
1812
1818
|
componentsDeleted: zeroNumberByDefault2(),
|
|
@@ -1814,54 +1820,54 @@ var SourceImportComponentSummary = z82.object({
|
|
|
1814
1820
|
componentAssetsUpdated: zeroNumberByDefault2(),
|
|
1815
1821
|
componentAssetsDeleted: zeroNumberByDefault2()
|
|
1816
1822
|
});
|
|
1817
|
-
var SourceImportFrameSummary =
|
|
1823
|
+
var SourceImportFrameSummary = z83.object({
|
|
1818
1824
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1819
|
-
invalidReferencesCount: nullishToOptional(
|
|
1820
|
-
});
|
|
1821
|
-
var SourceImportSummary =
|
|
1822
|
-
sourceId: nullishToOptional(
|
|
1823
|
-
brandId: nullishToOptional(
|
|
1824
|
-
versionId: nullishToOptional(
|
|
1825
|
-
error: nullishToOptional(
|
|
1826
|
-
isFailed:
|
|
1827
|
-
warnings:
|
|
1825
|
+
invalidReferencesCount: nullishToOptional(z83.number().optional())
|
|
1826
|
+
});
|
|
1827
|
+
var SourceImportSummary = z83.object({
|
|
1828
|
+
sourceId: nullishToOptional(z83.string()),
|
|
1829
|
+
brandId: nullishToOptional(z83.string()),
|
|
1830
|
+
versionId: nullishToOptional(z83.string()),
|
|
1831
|
+
error: nullishToOptional(z83.any()),
|
|
1832
|
+
isFailed: z83.boolean(),
|
|
1833
|
+
warnings: z83.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1828
1834
|
...SourceImportTokenSummary.shape,
|
|
1829
1835
|
...SourceImportComponentSummary.shape,
|
|
1830
1836
|
...FileStructureStats.shape
|
|
1831
1837
|
});
|
|
1832
1838
|
function zeroNumberByDefault2() {
|
|
1833
|
-
return
|
|
1839
|
+
return z83.number().nullish().transform((v) => v ?? 0);
|
|
1834
1840
|
}
|
|
1835
|
-
var PageBlockDefinitionAppearance =
|
|
1836
|
-
isBordered:
|
|
1837
|
-
hasBackground:
|
|
1838
|
-
isEditorPresentationDifferent:
|
|
1839
|
-
});
|
|
1840
|
-
var PageBlockDefinitionLayoutType =
|
|
1841
|
-
var PageBlockDefinitionLayoutGap =
|
|
1842
|
-
var PageBlockDefinitionLayoutAlign =
|
|
1843
|
-
var PageBlockDefinitionLayoutResizing =
|
|
1844
|
-
var PageBlockDefinitionLayoutBase =
|
|
1841
|
+
var PageBlockDefinitionAppearance = z84.object({
|
|
1842
|
+
isBordered: z84.boolean().optional(),
|
|
1843
|
+
hasBackground: z84.boolean().optional(),
|
|
1844
|
+
isEditorPresentationDifferent: z84.boolean().optional()
|
|
1845
|
+
});
|
|
1846
|
+
var PageBlockDefinitionLayoutType = z85.enum(["Column", "Row"]);
|
|
1847
|
+
var PageBlockDefinitionLayoutGap = z85.enum(["Small", "Medium", "Large", "None"]);
|
|
1848
|
+
var PageBlockDefinitionLayoutAlign = z85.enum(["Start", "Center", "End"]);
|
|
1849
|
+
var PageBlockDefinitionLayoutResizing = z85.enum(["Fill", "Hug"]);
|
|
1850
|
+
var PageBlockDefinitionLayoutBase = z85.object({
|
|
1845
1851
|
type: PageBlockDefinitionLayoutType,
|
|
1846
1852
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1847
1853
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1848
1854
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1849
1855
|
});
|
|
1850
1856
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1851
|
-
children:
|
|
1852
|
-
});
|
|
1853
|
-
var PageBlockDefinitionVariant =
|
|
1854
|
-
id:
|
|
1855
|
-
name:
|
|
1856
|
-
image:
|
|
1857
|
-
description:
|
|
1858
|
-
documentationLink:
|
|
1857
|
+
children: z85.lazy(() => z85.array(PageBlockDefinitionLayout.or(z85.string())))
|
|
1858
|
+
});
|
|
1859
|
+
var PageBlockDefinitionVariant = z85.object({
|
|
1860
|
+
id: z85.string(),
|
|
1861
|
+
name: z85.string(),
|
|
1862
|
+
image: z85.string().optional(),
|
|
1863
|
+
description: z85.string().optional(),
|
|
1864
|
+
documentationLink: z85.string().optional(),
|
|
1859
1865
|
layout: PageBlockDefinitionLayout,
|
|
1860
|
-
maxColumns:
|
|
1861
|
-
defaultColumns:
|
|
1866
|
+
maxColumns: z85.number().optional(),
|
|
1867
|
+
defaultColumns: z85.number().optional(),
|
|
1862
1868
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1863
1869
|
});
|
|
1864
|
-
var PageBlockDefinitionPropertyType =
|
|
1870
|
+
var PageBlockDefinitionPropertyType = z86.enum([
|
|
1865
1871
|
"RichText",
|
|
1866
1872
|
"MultiRichText",
|
|
1867
1873
|
"Text",
|
|
@@ -1888,7 +1894,7 @@ var PageBlockDefinitionPropertyType = z85.enum([
|
|
|
1888
1894
|
"Storybook",
|
|
1889
1895
|
"Color"
|
|
1890
1896
|
]);
|
|
1891
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
1897
|
+
var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
|
|
1892
1898
|
"Title1",
|
|
1893
1899
|
"Title2",
|
|
1894
1900
|
"Title3",
|
|
@@ -1898,8 +1904,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
|
|
|
1898
1904
|
"Callout",
|
|
1899
1905
|
"Default"
|
|
1900
1906
|
]);
|
|
1901
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
1902
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
1907
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z86.enum(["OL", "UL", "Default"]);
|
|
1908
|
+
var PageBlockDefinitionTextPropertyStyle = z86.enum([
|
|
1903
1909
|
"Title1",
|
|
1904
1910
|
"Title2",
|
|
1905
1911
|
"Title3",
|
|
@@ -1912,77 +1918,77 @@ var PageBlockDefinitionTextPropertyStyle = z85.enum([
|
|
|
1912
1918
|
"SmallBold",
|
|
1913
1919
|
"SmallSemibold"
|
|
1914
1920
|
]);
|
|
1915
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
1916
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
1917
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
1921
|
+
var PageBlockDefinitionTextPropertyColor = z86.enum(["Neutral", "NeutralFaded"]);
|
|
1922
|
+
var PageBlockDefinitionBooleanPropertyStyle = z86.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
1923
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z86.enum([
|
|
1918
1924
|
"SegmentedControl",
|
|
1919
1925
|
"ToggleButton",
|
|
1920
1926
|
"Select",
|
|
1921
1927
|
"Checkbox"
|
|
1922
1928
|
]);
|
|
1923
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
1924
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
1925
|
-
var PageBlockDefinitionImageWidth =
|
|
1926
|
-
var PageBlockDefinitionSelectChoice =
|
|
1927
|
-
value:
|
|
1928
|
-
name:
|
|
1929
|
-
icon:
|
|
1929
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z86.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
1930
|
+
var PageBlockDefinitionImageAspectRatio = z86.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
1931
|
+
var PageBlockDefinitionImageWidth = z86.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
1932
|
+
var PageBlockDefinitionSelectChoice = z86.object({
|
|
1933
|
+
value: z86.string(),
|
|
1934
|
+
name: z86.string(),
|
|
1935
|
+
icon: z86.string().optional()
|
|
1930
1936
|
});
|
|
1931
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
1932
|
-
var PageBlockDefinitionRichTextOptions =
|
|
1937
|
+
var PageBlockDefinitionUntypedPropertyOptions = z86.record(z86.any());
|
|
1938
|
+
var PageBlockDefinitionRichTextOptions = z86.object({
|
|
1933
1939
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
1934
1940
|
});
|
|
1935
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
1941
|
+
var PageBlockDefinitionMutiRichTextOptions = z86.object({
|
|
1936
1942
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
1937
1943
|
});
|
|
1938
|
-
var PageBlockDefinitionTextOptions =
|
|
1939
|
-
placeholder:
|
|
1940
|
-
defaultValue:
|
|
1944
|
+
var PageBlockDefinitionTextOptions = z86.object({
|
|
1945
|
+
placeholder: z86.string().optional(),
|
|
1946
|
+
defaultValue: z86.string().optional(),
|
|
1941
1947
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
1942
1948
|
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
1943
1949
|
});
|
|
1944
|
-
var PageBlockDefinitionSelectOptions =
|
|
1950
|
+
var PageBlockDefinitionSelectOptions = z86.object({
|
|
1945
1951
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
1946
|
-
defaultChoice:
|
|
1947
|
-
choices:
|
|
1952
|
+
defaultChoice: z86.string(),
|
|
1953
|
+
choices: z86.array(PageBlockDefinitionSelectChoice)
|
|
1948
1954
|
});
|
|
1949
|
-
var PageBlockDefinitionImageOptions =
|
|
1955
|
+
var PageBlockDefinitionImageOptions = z86.object({
|
|
1950
1956
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
1951
1957
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
1952
|
-
allowCaption:
|
|
1953
|
-
recommendation:
|
|
1958
|
+
allowCaption: z86.boolean().optional(),
|
|
1959
|
+
recommendation: z86.string().optional()
|
|
1954
1960
|
});
|
|
1955
|
-
var PageBlockDefinitionBooleanOptions =
|
|
1956
|
-
defaultvalue:
|
|
1961
|
+
var PageBlockDefinitionBooleanOptions = z86.object({
|
|
1962
|
+
defaultvalue: z86.boolean().optional(),
|
|
1957
1963
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
1958
1964
|
});
|
|
1959
|
-
var PageBlockDefinitionNumberOptions =
|
|
1960
|
-
defaultValue:
|
|
1961
|
-
min:
|
|
1962
|
-
max:
|
|
1963
|
-
step:
|
|
1964
|
-
placeholder:
|
|
1965
|
+
var PageBlockDefinitionNumberOptions = z86.object({
|
|
1966
|
+
defaultValue: z86.number(),
|
|
1967
|
+
min: z86.number().optional(),
|
|
1968
|
+
max: z86.number().optional(),
|
|
1969
|
+
step: z86.number().optional(),
|
|
1970
|
+
placeholder: z86.string().optional()
|
|
1965
1971
|
});
|
|
1966
|
-
var PageBlockDefinitionComponentOptions =
|
|
1967
|
-
renderLayoutAs:
|
|
1968
|
-
allowPropertySelection:
|
|
1972
|
+
var PageBlockDefinitionComponentOptions = z86.object({
|
|
1973
|
+
renderLayoutAs: z86.enum(["List", "Table"]).optional(),
|
|
1974
|
+
allowPropertySelection: z86.boolean().optional()
|
|
1969
1975
|
});
|
|
1970
|
-
var PageBlockDefinitionProperty =
|
|
1971
|
-
id:
|
|
1972
|
-
name:
|
|
1976
|
+
var PageBlockDefinitionProperty = z86.object({
|
|
1977
|
+
id: z86.string(),
|
|
1978
|
+
name: z86.string(),
|
|
1973
1979
|
type: PageBlockDefinitionPropertyType,
|
|
1974
|
-
description:
|
|
1980
|
+
description: z86.string().optional(),
|
|
1975
1981
|
// TODO Docs
|
|
1976
1982
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
1977
|
-
variantOptions:
|
|
1983
|
+
variantOptions: z86.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
1978
1984
|
});
|
|
1979
|
-
var PageBlockDefinitionItem =
|
|
1980
|
-
properties:
|
|
1985
|
+
var PageBlockDefinitionItem = z86.object({
|
|
1986
|
+
properties: z86.array(PageBlockDefinitionProperty),
|
|
1981
1987
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
1982
|
-
variants:
|
|
1983
|
-
defaultVariantKey:
|
|
1988
|
+
variants: z86.array(PageBlockDefinitionVariant),
|
|
1989
|
+
defaultVariantKey: z86.string()
|
|
1984
1990
|
});
|
|
1985
|
-
var PageBlockCategory =
|
|
1991
|
+
var PageBlockCategory = z87.enum([
|
|
1986
1992
|
"Text",
|
|
1987
1993
|
"Layout",
|
|
1988
1994
|
"Media",
|
|
@@ -1996,55 +2002,41 @@ var PageBlockCategory = z86.enum([
|
|
|
1996
2002
|
"Data",
|
|
1997
2003
|
"Other"
|
|
1998
2004
|
]);
|
|
1999
|
-
var PageBlockBehaviorDataType =
|
|
2000
|
-
var PageBlockBehaviorSelectionType =
|
|
2001
|
-
var PageBlockDefinitionBehavior =
|
|
2005
|
+
var PageBlockBehaviorDataType = z87.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
2006
|
+
var PageBlockBehaviorSelectionType = z87.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2007
|
+
var PageBlockDefinitionBehavior = z87.object({
|
|
2002
2008
|
dataType: PageBlockBehaviorDataType,
|
|
2003
|
-
items:
|
|
2004
|
-
numberOfItems:
|
|
2005
|
-
allowLinks:
|
|
2009
|
+
items: z87.object({
|
|
2010
|
+
numberOfItems: z87.number(),
|
|
2011
|
+
allowLinks: z87.boolean()
|
|
2006
2012
|
}).optional(),
|
|
2007
|
-
entities:
|
|
2013
|
+
entities: z87.object({
|
|
2008
2014
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2009
|
-
maxSelected:
|
|
2015
|
+
maxSelected: z87.number()
|
|
2010
2016
|
}).optional()
|
|
2011
2017
|
});
|
|
2012
|
-
var PageBlockDefinitionOnboarding =
|
|
2013
|
-
helpText:
|
|
2014
|
-
documentationLink:
|
|
2018
|
+
var PageBlockDefinitionOnboarding = z87.object({
|
|
2019
|
+
helpText: z87.string(),
|
|
2020
|
+
documentationLink: z87.string().optional()
|
|
2015
2021
|
});
|
|
2016
|
-
var PageBlockDefinition =
|
|
2017
|
-
id:
|
|
2018
|
-
name:
|
|
2019
|
-
description:
|
|
2022
|
+
var PageBlockDefinition = z87.object({
|
|
2023
|
+
id: z87.string(),
|
|
2024
|
+
name: z87.string(),
|
|
2025
|
+
description: z87.string(),
|
|
2020
2026
|
category: PageBlockCategory,
|
|
2021
2027
|
icon: AssetValue.optional(),
|
|
2022
|
-
documentationLink:
|
|
2023
|
-
searchKeywords:
|
|
2028
|
+
documentationLink: z87.string().optional(),
|
|
2029
|
+
searchKeywords: z87.array(z87.string()).optional(),
|
|
2024
2030
|
item: PageBlockDefinitionItem,
|
|
2025
2031
|
behavior: PageBlockDefinitionBehavior,
|
|
2026
|
-
editorOptions:
|
|
2032
|
+
editorOptions: z87.object({
|
|
2027
2033
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2028
2034
|
}),
|
|
2029
2035
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2030
2036
|
});
|
|
2031
|
-
var DocumentationPageGroup =
|
|
2032
|
-
type:
|
|
2033
|
-
childType:
|
|
2034
|
-
id: z87.string(),
|
|
2035
|
-
persistentId: z87.string(),
|
|
2036
|
-
shortPersistentId: z87.string(),
|
|
2037
|
-
designSystemVersionId: z87.string(),
|
|
2038
|
-
parentPersistentId: z87.string().nullish(),
|
|
2039
|
-
sortOrder: z87.number(),
|
|
2040
|
-
title: z87.string(),
|
|
2041
|
-
slug: z87.string(),
|
|
2042
|
-
userSlug: z87.string().nullish(),
|
|
2043
|
-
createdAt: z87.date(),
|
|
2044
|
-
updatedAt: z87.date()
|
|
2045
|
-
});
|
|
2046
|
-
var DocumentationPage = z88.object({
|
|
2047
|
-
type: z88.literal("DocumentationPage"),
|
|
2037
|
+
var DocumentationPageGroup = z88.object({
|
|
2038
|
+
type: z88.literal("ElementGroup"),
|
|
2039
|
+
childType: z88.literal("DocumentationPage"),
|
|
2048
2040
|
id: z88.string(),
|
|
2049
2041
|
persistentId: z88.string(),
|
|
2050
2042
|
shortPersistentId: z88.string(),
|
|
@@ -2057,158 +2049,172 @@ var DocumentationPage = z88.object({
|
|
|
2057
2049
|
createdAt: z88.date(),
|
|
2058
2050
|
updatedAt: z88.date()
|
|
2059
2051
|
});
|
|
2060
|
-
var
|
|
2052
|
+
var DocumentationPage = z89.object({
|
|
2053
|
+
type: z89.literal("DocumentationPage"),
|
|
2054
|
+
id: z89.string(),
|
|
2055
|
+
persistentId: z89.string(),
|
|
2056
|
+
shortPersistentId: z89.string(),
|
|
2057
|
+
designSystemVersionId: z89.string(),
|
|
2058
|
+
parentPersistentId: z89.string().nullish(),
|
|
2059
|
+
sortOrder: z89.number(),
|
|
2060
|
+
title: z89.string(),
|
|
2061
|
+
slug: z89.string(),
|
|
2062
|
+
userSlug: z89.string().nullish(),
|
|
2063
|
+
createdAt: z89.date(),
|
|
2064
|
+
updatedAt: z89.date()
|
|
2065
|
+
});
|
|
2066
|
+
var NpmRegistryAuthType = z90.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2061
2067
|
var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
|
|
2062
|
-
var NpmRegistryType =
|
|
2063
|
-
var NpmRegistryTypeWithoutAzure =
|
|
2064
|
-
var NpmRegistryBasicAuthConfig =
|
|
2068
|
+
var NpmRegistryType = z90.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
|
|
2069
|
+
var NpmRegistryTypeWithoutAzure = z90.enum(registryTypesWithoutAzure);
|
|
2070
|
+
var NpmRegistryBasicAuthConfig = z90.object({
|
|
2065
2071
|
registryType: NpmRegistryType,
|
|
2066
|
-
authType:
|
|
2067
|
-
username:
|
|
2068
|
-
password:
|
|
2072
|
+
authType: z90.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2073
|
+
username: z90.string(),
|
|
2074
|
+
password: z90.string()
|
|
2069
2075
|
});
|
|
2070
|
-
var NpmRegistryBearerAuthConfig =
|
|
2076
|
+
var NpmRegistryBearerAuthConfig = z90.object({
|
|
2071
2077
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2072
|
-
authType:
|
|
2073
|
-
accessToken:
|
|
2078
|
+
authType: z90.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2079
|
+
accessToken: z90.string()
|
|
2074
2080
|
});
|
|
2075
|
-
var NpmRegistryNoAuthConfig =
|
|
2081
|
+
var NpmRegistryNoAuthConfig = z90.object({
|
|
2076
2082
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2077
|
-
authType:
|
|
2083
|
+
authType: z90.literal(NpmRegistryAuthType.Enum.None)
|
|
2078
2084
|
});
|
|
2079
|
-
var NpmRegistrCustomAuthConfig =
|
|
2085
|
+
var NpmRegistrCustomAuthConfig = z90.object({
|
|
2080
2086
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2081
|
-
authType:
|
|
2082
|
-
authHeaderName:
|
|
2083
|
-
authHeaderValue:
|
|
2087
|
+
authType: z90.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2088
|
+
authHeaderName: z90.string(),
|
|
2089
|
+
authHeaderValue: z90.string()
|
|
2084
2090
|
});
|
|
2085
|
-
var NpmRegistryAuthConfig =
|
|
2091
|
+
var NpmRegistryAuthConfig = z90.discriminatedUnion("authType", [
|
|
2086
2092
|
NpmRegistryBasicAuthConfig,
|
|
2087
2093
|
NpmRegistryBearerAuthConfig,
|
|
2088
2094
|
NpmRegistryNoAuthConfig,
|
|
2089
2095
|
NpmRegistrCustomAuthConfig
|
|
2090
2096
|
]);
|
|
2091
|
-
var NpmRegistryConfigBase =
|
|
2092
|
-
enabledScopes:
|
|
2093
|
-
customRegistryUrl:
|
|
2094
|
-
bypassProxy:
|
|
2095
|
-
npmProxyRegistryConfigId:
|
|
2096
|
-
npmProxyVersion:
|
|
2097
|
+
var NpmRegistryConfigBase = z90.object({
|
|
2098
|
+
enabledScopes: z90.array(z90.string()),
|
|
2099
|
+
customRegistryUrl: z90.string().optional(),
|
|
2100
|
+
bypassProxy: z90.boolean().default(false),
|
|
2101
|
+
npmProxyRegistryConfigId: z90.string().optional(),
|
|
2102
|
+
npmProxyVersion: z90.number().optional()
|
|
2097
2103
|
});
|
|
2098
2104
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2099
|
-
var SsoProvider =
|
|
2100
|
-
providerId:
|
|
2101
|
-
defaultAutoInviteValue:
|
|
2102
|
-
autoInviteDomains:
|
|
2103
|
-
skipDocsSupernovaLogin:
|
|
2104
|
-
areInvitesDisabled:
|
|
2105
|
-
isTestMode:
|
|
2106
|
-
emailDomains:
|
|
2107
|
-
metadataXml:
|
|
2108
|
-
});
|
|
2109
|
-
var WorkspaceRoleSchema =
|
|
2105
|
+
var SsoProvider = z91.object({
|
|
2106
|
+
providerId: z91.string(),
|
|
2107
|
+
defaultAutoInviteValue: z91.boolean(),
|
|
2108
|
+
autoInviteDomains: z91.record(z91.string(), z91.boolean()),
|
|
2109
|
+
skipDocsSupernovaLogin: z91.boolean(),
|
|
2110
|
+
areInvitesDisabled: z91.boolean(),
|
|
2111
|
+
isTestMode: z91.boolean(),
|
|
2112
|
+
emailDomains: z91.array(z91.string()),
|
|
2113
|
+
metadataXml: z91.string().nullish()
|
|
2114
|
+
});
|
|
2115
|
+
var WorkspaceRoleSchema = z92.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2110
2116
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2111
2117
|
var MAX_MEMBERS_COUNT = 100;
|
|
2112
|
-
var UserInvite =
|
|
2113
|
-
email:
|
|
2118
|
+
var UserInvite = z93.object({
|
|
2119
|
+
email: z93.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2114
2120
|
role: WorkspaceRoleSchema
|
|
2115
2121
|
});
|
|
2116
|
-
var UserInvites =
|
|
2117
|
-
var WorkspaceIpWhitelistEntry =
|
|
2118
|
-
isEnabled:
|
|
2119
|
-
name:
|
|
2120
|
-
range:
|
|
2122
|
+
var UserInvites = z93.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2123
|
+
var WorkspaceIpWhitelistEntry = z94.object({
|
|
2124
|
+
isEnabled: z94.boolean(),
|
|
2125
|
+
name: z94.string(),
|
|
2126
|
+
range: z94.string()
|
|
2121
2127
|
});
|
|
2122
|
-
var WorkspaceIpSettings =
|
|
2123
|
-
isEnabledForCloud:
|
|
2124
|
-
isEnabledForDocs:
|
|
2125
|
-
entries:
|
|
2128
|
+
var WorkspaceIpSettings = z94.object({
|
|
2129
|
+
isEnabledForCloud: z94.boolean(),
|
|
2130
|
+
isEnabledForDocs: z94.boolean(),
|
|
2131
|
+
entries: z94.array(WorkspaceIpWhitelistEntry)
|
|
2126
2132
|
}).nullish();
|
|
2127
|
-
var WorkspaceProfile =
|
|
2128
|
-
name:
|
|
2129
|
-
handle:
|
|
2130
|
-
color:
|
|
2131
|
-
avatar:
|
|
2133
|
+
var WorkspaceProfile = z94.object({
|
|
2134
|
+
name: z94.string(),
|
|
2135
|
+
handle: z94.string(),
|
|
2136
|
+
color: z94.string(),
|
|
2137
|
+
avatar: z94.string().optional(),
|
|
2132
2138
|
billingDetails: BillingDetails.optional()
|
|
2133
2139
|
});
|
|
2134
|
-
var Workspace =
|
|
2135
|
-
id:
|
|
2140
|
+
var Workspace = z94.object({
|
|
2141
|
+
id: z94.string(),
|
|
2136
2142
|
profile: WorkspaceProfile,
|
|
2137
2143
|
subscription: Subscription,
|
|
2138
2144
|
ipWhitelist: WorkspaceIpSettings,
|
|
2139
2145
|
sso: SsoProvider.nullish(),
|
|
2140
|
-
npmRegistrySettings:
|
|
2141
|
-
designSystems:
|
|
2146
|
+
npmRegistrySettings: z94.unknown().optional(),
|
|
2147
|
+
designSystems: z94.array(DesignSystem).nullish()
|
|
2142
2148
|
});
|
|
2143
|
-
var WorkspaceWithDesignSystems =
|
|
2149
|
+
var WorkspaceWithDesignSystems = z94.object({
|
|
2144
2150
|
workspace: Workspace,
|
|
2145
|
-
designSystems:
|
|
2151
|
+
designSystems: z94.array(DesignSystem)
|
|
2146
2152
|
});
|
|
2147
|
-
var WorkspaceContext =
|
|
2148
|
-
workspaceId:
|
|
2153
|
+
var WorkspaceContext = z95.object({
|
|
2154
|
+
workspaceId: z95.string(),
|
|
2149
2155
|
product: ProductCodeSchema,
|
|
2150
2156
|
ipWhitelist: WorkspaceIpSettings,
|
|
2151
|
-
publicDesignSystem:
|
|
2157
|
+
publicDesignSystem: z95.boolean().optional()
|
|
2152
2158
|
});
|
|
2153
2159
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2154
2160
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2155
2161
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2156
2162
|
var HANDLE_MIN_LENGTH = 2;
|
|
2157
2163
|
var HANDLE_MAX_LENGTH = 64;
|
|
2158
|
-
var CreateWorkspaceInput =
|
|
2159
|
-
name:
|
|
2164
|
+
var CreateWorkspaceInput = z96.object({
|
|
2165
|
+
name: z96.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2160
2166
|
product: ProductCodeSchema,
|
|
2161
|
-
priceId:
|
|
2162
|
-
billingEmail:
|
|
2163
|
-
handle:
|
|
2167
|
+
priceId: z96.string(),
|
|
2168
|
+
billingEmail: z96.string().email().optional(),
|
|
2169
|
+
handle: z96.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2164
2170
|
invites: UserInvites.optional(),
|
|
2165
|
-
promoCode:
|
|
2166
|
-
});
|
|
2167
|
-
var WorkspaceInvitation =
|
|
2168
|
-
id: z96.string(),
|
|
2169
|
-
email: z96.string().email(),
|
|
2170
|
-
createdAt: z96.date(),
|
|
2171
|
-
resentAt: z96.date().nullish(),
|
|
2172
|
-
role: z96.nativeEnum(WorkspaceRole),
|
|
2173
|
-
workspaceId: z96.string(),
|
|
2174
|
-
invitedBy: z96.string()
|
|
2175
|
-
});
|
|
2176
|
-
var WorkspaceMembership = z97.object({
|
|
2171
|
+
promoCode: z96.string().optional()
|
|
2172
|
+
});
|
|
2173
|
+
var WorkspaceInvitation = z97.object({
|
|
2177
2174
|
id: z97.string(),
|
|
2178
|
-
|
|
2175
|
+
email: z97.string().email(),
|
|
2176
|
+
createdAt: z97.date(),
|
|
2177
|
+
resentAt: z97.date().nullish(),
|
|
2178
|
+
role: z97.nativeEnum(WorkspaceRole),
|
|
2179
2179
|
workspaceId: z97.string(),
|
|
2180
|
-
|
|
2180
|
+
invitedBy: z97.string()
|
|
2181
2181
|
});
|
|
2182
|
-
var
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2182
|
+
var WorkspaceMembership = z98.object({
|
|
2183
|
+
id: z98.string(),
|
|
2184
|
+
userId: z98.string(),
|
|
2185
|
+
workspaceId: z98.string(),
|
|
2186
|
+
workspaceRole: z98.nativeEnum(WorkspaceRole)
|
|
2187
|
+
});
|
|
2188
|
+
var UpdateMembershipRolesInput = z98.object({
|
|
2189
|
+
members: z98.array(
|
|
2190
|
+
z98.object({
|
|
2191
|
+
userId: z98.string(),
|
|
2192
|
+
role: z98.nativeEnum(WorkspaceRole)
|
|
2187
2193
|
})
|
|
2188
2194
|
)
|
|
2189
2195
|
});
|
|
2190
|
-
var DesignSystemSwitcher =
|
|
2191
|
-
isEnabled:
|
|
2192
|
-
designSystemIds:
|
|
2196
|
+
var DesignSystemSwitcher = z99.object({
|
|
2197
|
+
isEnabled: z99.boolean(),
|
|
2198
|
+
designSystemIds: z99.array(z99.string())
|
|
2193
2199
|
});
|
|
2194
|
-
var DesignSystem =
|
|
2195
|
-
id:
|
|
2196
|
-
workspaceId:
|
|
2197
|
-
name:
|
|
2198
|
-
description:
|
|
2199
|
-
docExporterId: nullishToOptional(
|
|
2200
|
-
docSlug:
|
|
2201
|
-
docUserSlug: nullishToOptional(
|
|
2202
|
-
docSlugDeprecated:
|
|
2203
|
-
isPublic:
|
|
2204
|
-
isMultibrand:
|
|
2205
|
-
docViewUrl: nullishToOptional(
|
|
2206
|
-
basePrefixes:
|
|
2200
|
+
var DesignSystem = z99.object({
|
|
2201
|
+
id: z99.string(),
|
|
2202
|
+
workspaceId: z99.string(),
|
|
2203
|
+
name: z99.string(),
|
|
2204
|
+
description: z99.string(),
|
|
2205
|
+
docExporterId: nullishToOptional(z99.string()),
|
|
2206
|
+
docSlug: z99.string(),
|
|
2207
|
+
docUserSlug: nullishToOptional(z99.string()),
|
|
2208
|
+
docSlugDeprecated: z99.string(),
|
|
2209
|
+
isPublic: z99.boolean(),
|
|
2210
|
+
isMultibrand: z99.boolean(),
|
|
2211
|
+
docViewUrl: nullishToOptional(z99.string()),
|
|
2212
|
+
basePrefixes: z99.array(z99.string()),
|
|
2207
2213
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2208
|
-
createdAt:
|
|
2209
|
-
updatedAt:
|
|
2214
|
+
createdAt: z99.date(),
|
|
2215
|
+
updatedAt: z99.date()
|
|
2210
2216
|
});
|
|
2211
|
-
var DesignSystemWithWorkspace =
|
|
2217
|
+
var DesignSystemWithWorkspace = z99.object({
|
|
2212
2218
|
designSystem: DesignSystem,
|
|
2213
2219
|
workspace: Workspace
|
|
2214
2220
|
});
|
|
@@ -2216,81 +2222,81 @@ var DS_NAME_MIN_LENGTH = 2;
|
|
|
2216
2222
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2217
2223
|
var DS_DESC_MIN_LENGTH = 2;
|
|
2218
2224
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2219
|
-
var DesignSystemCreateInputMetadata =
|
|
2220
|
-
name:
|
|
2221
|
-
description:
|
|
2225
|
+
var DesignSystemCreateInputMetadata = z100.object({
|
|
2226
|
+
name: z100.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2227
|
+
description: z100.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2222
2228
|
});
|
|
2223
|
-
var DesignSystemCreateInput =
|
|
2229
|
+
var DesignSystemCreateInput = z100.object({
|
|
2224
2230
|
meta: DesignSystemCreateInputMetadata,
|
|
2225
|
-
workspaceId:
|
|
2226
|
-
isPublic:
|
|
2227
|
-
basePrefixes:
|
|
2228
|
-
docUserSlug:
|
|
2229
|
-
source:
|
|
2231
|
+
workspaceId: z100.string(),
|
|
2232
|
+
isPublic: z100.boolean().optional(),
|
|
2233
|
+
basePrefixes: z100.array(z100.string()).optional(),
|
|
2234
|
+
docUserSlug: z100.string().nullish().optional(),
|
|
2235
|
+
source: z100.array(z100.string()).optional()
|
|
2230
2236
|
});
|
|
2231
2237
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2232
2238
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2233
2239
|
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2234
2240
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2235
|
-
var DesignSystemUpdateInputMetadata =
|
|
2236
|
-
name:
|
|
2237
|
-
description:
|
|
2241
|
+
var DesignSystemUpdateInputMetadata = z101.object({
|
|
2242
|
+
name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2243
|
+
description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2238
2244
|
});
|
|
2239
|
-
var DesignSystemUpdateInput =
|
|
2245
|
+
var DesignSystemUpdateInput = z101.object({
|
|
2240
2246
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2241
|
-
workspaceId:
|
|
2242
|
-
isPublic:
|
|
2243
|
-
basePrefixes:
|
|
2244
|
-
docUserSlug:
|
|
2245
|
-
source:
|
|
2246
|
-
name:
|
|
2247
|
-
description:
|
|
2248
|
-
docExporterId:
|
|
2247
|
+
workspaceId: z101.string().optional(),
|
|
2248
|
+
isPublic: z101.boolean().optional(),
|
|
2249
|
+
basePrefixes: z101.array(z101.string()).optional(),
|
|
2250
|
+
docUserSlug: z101.string().nullish().optional(),
|
|
2251
|
+
source: z101.array(z101.string()).optional(),
|
|
2252
|
+
name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2253
|
+
description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2254
|
+
docExporterId: z101.string().optional()
|
|
2249
2255
|
});
|
|
2250
2256
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2251
|
-
var PublishedDocEnvironment =
|
|
2252
|
-
var PublishedDocsChecksums =
|
|
2253
|
-
var PublishedDocRoutingVersion =
|
|
2254
|
-
var PublishedDoc =
|
|
2255
|
-
id:
|
|
2256
|
-
designSystemVersionId:
|
|
2257
|
-
createdAt:
|
|
2258
|
-
updatedAt:
|
|
2259
|
-
lastPublishedAt:
|
|
2260
|
-
isDefault:
|
|
2261
|
-
isPublic:
|
|
2257
|
+
var PublishedDocEnvironment = z102.enum(publishedDocEnvironments);
|
|
2258
|
+
var PublishedDocsChecksums = z102.record(z102.string());
|
|
2259
|
+
var PublishedDocRoutingVersion = z102.enum(["1", "2"]);
|
|
2260
|
+
var PublishedDoc = z102.object({
|
|
2261
|
+
id: z102.string(),
|
|
2262
|
+
designSystemVersionId: z102.string(),
|
|
2263
|
+
createdAt: z102.date(),
|
|
2264
|
+
updatedAt: z102.date(),
|
|
2265
|
+
lastPublishedAt: z102.date(),
|
|
2266
|
+
isDefault: z102.boolean(),
|
|
2267
|
+
isPublic: z102.boolean(),
|
|
2262
2268
|
environment: PublishedDocEnvironment,
|
|
2263
2269
|
checksums: PublishedDocsChecksums,
|
|
2264
|
-
storagePath:
|
|
2265
|
-
wasMigrated:
|
|
2270
|
+
storagePath: z102.string(),
|
|
2271
|
+
wasMigrated: z102.boolean(),
|
|
2266
2272
|
routingVersion: PublishedDocRoutingVersion,
|
|
2267
|
-
usesLocalizations:
|
|
2268
|
-
wasPublishedWithLocalizations:
|
|
2269
|
-
});
|
|
2270
|
-
var ExporterJobDestination =
|
|
2271
|
-
var ExporterJobStatus =
|
|
2272
|
-
var ExporterJobLogEntryType =
|
|
2273
|
-
var ExporterJobLogEntry =
|
|
2274
|
-
id:
|
|
2275
|
-
time:
|
|
2273
|
+
usesLocalizations: z102.boolean(),
|
|
2274
|
+
wasPublishedWithLocalizations: z102.boolean()
|
|
2275
|
+
});
|
|
2276
|
+
var ExporterJobDestination = z103.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2277
|
+
var ExporterJobStatus = z103.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2278
|
+
var ExporterJobLogEntryType = z103.enum(["success", "info", "warning", "error", "user"]);
|
|
2279
|
+
var ExporterJobLogEntry = z103.object({
|
|
2280
|
+
id: z103.string().optional(),
|
|
2281
|
+
time: z103.coerce.date(),
|
|
2276
2282
|
type: ExporterJobLogEntryType,
|
|
2277
|
-
message:
|
|
2283
|
+
message: z103.string()
|
|
2278
2284
|
});
|
|
2279
|
-
var ExporterJobResultPullRequestDestination =
|
|
2280
|
-
pullRequestUrl:
|
|
2285
|
+
var ExporterJobResultPullRequestDestination = z103.object({
|
|
2286
|
+
pullRequestUrl: z103.string()
|
|
2281
2287
|
});
|
|
2282
|
-
var ExporterJobResultS3Destination =
|
|
2283
|
-
bucket:
|
|
2284
|
-
urlPrefix:
|
|
2285
|
-
path:
|
|
2286
|
-
files:
|
|
2288
|
+
var ExporterJobResultS3Destination = z103.object({
|
|
2289
|
+
bucket: z103.string(),
|
|
2290
|
+
urlPrefix: z103.string().optional(),
|
|
2291
|
+
path: z103.string(),
|
|
2292
|
+
files: z103.array(z103.string())
|
|
2287
2293
|
});
|
|
2288
|
-
var ExporterJobResultDocsDestination =
|
|
2289
|
-
url:
|
|
2294
|
+
var ExporterJobResultDocsDestination = z103.object({
|
|
2295
|
+
url: z103.string()
|
|
2290
2296
|
});
|
|
2291
|
-
var ExporterJobResult =
|
|
2292
|
-
error:
|
|
2293
|
-
logs:
|
|
2297
|
+
var ExporterJobResult = z103.object({
|
|
2298
|
+
error: z103.string().optional(),
|
|
2299
|
+
logs: z103.array(ExporterJobLogEntry).optional(),
|
|
2294
2300
|
s3: ExporterJobResultS3Destination.optional(),
|
|
2295
2301
|
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2296
2302
|
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
@@ -2298,68 +2304,68 @@ var ExporterJobResult = z102.object({
|
|
|
2298
2304
|
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2299
2305
|
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2300
2306
|
});
|
|
2301
|
-
var ExporterDestinationSnDocs =
|
|
2307
|
+
var ExporterDestinationSnDocs = z103.object({
|
|
2302
2308
|
environment: PublishedDocEnvironment
|
|
2303
2309
|
});
|
|
2304
|
-
var ExporterDestinationS3 =
|
|
2305
|
-
var ExporterDestinationGithub =
|
|
2306
|
-
connectionId:
|
|
2307
|
-
url:
|
|
2308
|
-
branch:
|
|
2309
|
-
relativePath:
|
|
2310
|
+
var ExporterDestinationS3 = z103.object({});
|
|
2311
|
+
var ExporterDestinationGithub = z103.object({
|
|
2312
|
+
connectionId: z103.string(),
|
|
2313
|
+
url: z103.string(),
|
|
2314
|
+
branch: z103.string(),
|
|
2315
|
+
relativePath: z103.string(),
|
|
2310
2316
|
// +
|
|
2311
|
-
userId:
|
|
2312
|
-
});
|
|
2313
|
-
var ExporterDestinationAzure =
|
|
2314
|
-
connectionId:
|
|
2315
|
-
organizationId:
|
|
2316
|
-
projectId:
|
|
2317
|
-
repositoryId:
|
|
2318
|
-
branch:
|
|
2319
|
-
relativePath:
|
|
2317
|
+
userId: z103.coerce.string()
|
|
2318
|
+
});
|
|
2319
|
+
var ExporterDestinationAzure = z103.object({
|
|
2320
|
+
connectionId: z103.string(),
|
|
2321
|
+
organizationId: z103.string(),
|
|
2322
|
+
projectId: z103.string(),
|
|
2323
|
+
repositoryId: z103.string(),
|
|
2324
|
+
branch: z103.string(),
|
|
2325
|
+
relativePath: z103.string(),
|
|
2320
2326
|
// +
|
|
2321
|
-
userId:
|
|
2322
|
-
url:
|
|
2323
|
-
});
|
|
2324
|
-
var ExporterDestinationGitlab =
|
|
2325
|
-
connectionId:
|
|
2326
|
-
projectId:
|
|
2327
|
-
branch:
|
|
2328
|
-
relativePath:
|
|
2327
|
+
userId: z103.coerce.string(),
|
|
2328
|
+
url: z103.string()
|
|
2329
|
+
});
|
|
2330
|
+
var ExporterDestinationGitlab = z103.object({
|
|
2331
|
+
connectionId: z103.string(),
|
|
2332
|
+
projectId: z103.string(),
|
|
2333
|
+
branch: z103.string(),
|
|
2334
|
+
relativePath: z103.string(),
|
|
2329
2335
|
// +
|
|
2330
|
-
userId:
|
|
2331
|
-
url:
|
|
2336
|
+
userId: z103.coerce.string(),
|
|
2337
|
+
url: z103.string()
|
|
2332
2338
|
});
|
|
2333
2339
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2334
2340
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2335
|
-
var ExporterDestinationBitbucket =
|
|
2336
|
-
connectionId:
|
|
2337
|
-
workspaceSlug:
|
|
2338
|
-
projectKey:
|
|
2339
|
-
repoSlug:
|
|
2340
|
-
branch:
|
|
2341
|
-
relativePath:
|
|
2341
|
+
var ExporterDestinationBitbucket = z103.object({
|
|
2342
|
+
connectionId: z103.string(),
|
|
2343
|
+
workspaceSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2344
|
+
projectKey: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2345
|
+
repoSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2346
|
+
branch: z103.string(),
|
|
2347
|
+
relativePath: z103.string(),
|
|
2342
2348
|
// +
|
|
2343
|
-
userId:
|
|
2344
|
-
url:
|
|
2345
|
-
});
|
|
2346
|
-
var ExporterJob =
|
|
2347
|
-
id:
|
|
2348
|
-
createdAt:
|
|
2349
|
-
finishedAt:
|
|
2350
|
-
designSystemId:
|
|
2351
|
-
designSystemVersionId:
|
|
2352
|
-
workspaceId:
|
|
2353
|
-
scheduleId:
|
|
2354
|
-
exporterId:
|
|
2355
|
-
brandId:
|
|
2356
|
-
themeId:
|
|
2357
|
-
estimatedExecutionTime:
|
|
2349
|
+
userId: z103.coerce.string(),
|
|
2350
|
+
url: z103.string()
|
|
2351
|
+
});
|
|
2352
|
+
var ExporterJob = z103.object({
|
|
2353
|
+
id: z103.coerce.string(),
|
|
2354
|
+
createdAt: z103.coerce.date(),
|
|
2355
|
+
finishedAt: z103.coerce.date().optional(),
|
|
2356
|
+
designSystemId: z103.coerce.string(),
|
|
2357
|
+
designSystemVersionId: z103.coerce.string(),
|
|
2358
|
+
workspaceId: z103.coerce.string(),
|
|
2359
|
+
scheduleId: z103.coerce.string().nullish(),
|
|
2360
|
+
exporterId: z103.coerce.string(),
|
|
2361
|
+
brandId: z103.coerce.string().optional(),
|
|
2362
|
+
themeId: z103.coerce.string().optional(),
|
|
2363
|
+
estimatedExecutionTime: z103.number().optional(),
|
|
2358
2364
|
status: ExporterJobStatus,
|
|
2359
2365
|
result: ExporterJobResult.optional(),
|
|
2360
|
-
createdByUserId:
|
|
2366
|
+
createdByUserId: z103.string().optional(),
|
|
2361
2367
|
// CodegenDestinationsModel
|
|
2362
|
-
webhookUrl:
|
|
2368
|
+
webhookUrl: z103.string().optional(),
|
|
2363
2369
|
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2364
2370
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2365
2371
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2378,14 +2384,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
|
|
|
2378
2384
|
themeId: true,
|
|
2379
2385
|
brandId: true
|
|
2380
2386
|
}).extend({
|
|
2381
|
-
destinations:
|
|
2387
|
+
destinations: z103.array(ExporterJobDestination),
|
|
2382
2388
|
docsEnvironment: PublishedDocEnvironment
|
|
2383
2389
|
}).partial();
|
|
2384
|
-
var ExporterWorkspaceMembershipRole =
|
|
2385
|
-
var ExporterWorkspaceMembership =
|
|
2386
|
-
id:
|
|
2387
|
-
workspaceId:
|
|
2388
|
-
exporterId:
|
|
2390
|
+
var ExporterWorkspaceMembershipRole = z104.enum(["Owner", "OwnerArchived", "User"]);
|
|
2391
|
+
var ExporterWorkspaceMembership = z105.object({
|
|
2392
|
+
id: z105.string(),
|
|
2393
|
+
workspaceId: z105.string(),
|
|
2394
|
+
exporterId: z105.string(),
|
|
2389
2395
|
role: ExporterWorkspaceMembershipRole
|
|
2390
2396
|
});
|
|
2391
2397
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2395,8 +2401,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2395
2401
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2396
2402
|
return GitProviderNames2;
|
|
2397
2403
|
})(GitProviderNames || {});
|
|
2398
|
-
var GitProvider =
|
|
2399
|
-
var PulsarPropertyType =
|
|
2404
|
+
var GitProvider = z106.nativeEnum(GitProviderNames);
|
|
2405
|
+
var PulsarPropertyType = z107.enum([
|
|
2400
2406
|
"string",
|
|
2401
2407
|
"number",
|
|
2402
2408
|
"boolean",
|
|
@@ -2409,164 +2415,164 @@ var PulsarPropertyType = z106.enum([
|
|
|
2409
2415
|
"tokenProperties",
|
|
2410
2416
|
"tokenType"
|
|
2411
2417
|
]);
|
|
2412
|
-
var PulsarBaseProperty =
|
|
2413
|
-
label:
|
|
2414
|
-
key:
|
|
2415
|
-
description:
|
|
2418
|
+
var PulsarBaseProperty = z107.object({
|
|
2419
|
+
label: z107.string(),
|
|
2420
|
+
key: z107.string(),
|
|
2421
|
+
description: z107.string().nullish(),
|
|
2416
2422
|
type: PulsarPropertyType,
|
|
2417
|
-
values:
|
|
2418
|
-
default:
|
|
2423
|
+
values: z107.array(z107.string()).nullish(),
|
|
2424
|
+
default: z107.union([z107.string(), z107.boolean(), z107.number()]).nullish(),
|
|
2419
2425
|
// PulsarPropertyValueType //is optional?
|
|
2420
|
-
inputType:
|
|
2426
|
+
inputType: z107.enum(["code", "plain"]).optional(),
|
|
2421
2427
|
//is optional?
|
|
2422
|
-
isMultiline:
|
|
2428
|
+
isMultiline: z107.boolean().nullish()
|
|
2423
2429
|
});
|
|
2424
2430
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2425
|
-
category:
|
|
2426
|
-
});
|
|
2427
|
-
var PulsarContributionVariant =
|
|
2428
|
-
key:
|
|
2429
|
-
name:
|
|
2430
|
-
isDefault:
|
|
2431
|
-
description:
|
|
2432
|
-
thumbnailURL:
|
|
2433
|
-
});
|
|
2434
|
-
var PulsarCustomBlock =
|
|
2435
|
-
title:
|
|
2436
|
-
key:
|
|
2437
|
-
category:
|
|
2438
|
-
description: nullishToOptional(
|
|
2439
|
-
iconURL:
|
|
2440
|
-
mode:
|
|
2441
|
-
properties:
|
|
2442
|
-
});
|
|
2443
|
-
var ExporterType =
|
|
2444
|
-
var ExporterSource =
|
|
2445
|
-
var ExporterTag =
|
|
2446
|
-
var ExporterDetails =
|
|
2447
|
-
description:
|
|
2448
|
-
version:
|
|
2449
|
-
routingVersion: nullishToOptional(
|
|
2450
|
-
author: nullishToOptional(
|
|
2451
|
-
organization: nullishToOptional(
|
|
2452
|
-
homepage: nullishToOptional(
|
|
2453
|
-
readme: nullishToOptional(
|
|
2454
|
-
tags: nullishToOptional(
|
|
2455
|
-
packageId: nullishToOptional(
|
|
2456
|
-
iconURL: nullishToOptional(
|
|
2457
|
-
configurationProperties: nullishToOptional(
|
|
2458
|
-
customBlocks: nullishToOptional(
|
|
2459
|
-
blockVariants: nullishToOptional(
|
|
2460
|
-
usesBrands: nullishToOptional(
|
|
2461
|
-
usesThemes: nullishToOptional(
|
|
2431
|
+
category: z107.string()
|
|
2432
|
+
});
|
|
2433
|
+
var PulsarContributionVariant = z107.object({
|
|
2434
|
+
key: z107.string(),
|
|
2435
|
+
name: z107.string(),
|
|
2436
|
+
isDefault: z107.boolean().nullish(),
|
|
2437
|
+
description: z107.string().nullish(),
|
|
2438
|
+
thumbnailURL: z107.string().nullish()
|
|
2439
|
+
});
|
|
2440
|
+
var PulsarCustomBlock = z107.object({
|
|
2441
|
+
title: z107.string(),
|
|
2442
|
+
key: z107.string(),
|
|
2443
|
+
category: z107.string(),
|
|
2444
|
+
description: nullishToOptional(z107.string()),
|
|
2445
|
+
iconURL: z107.string(),
|
|
2446
|
+
mode: z107.enum(["array", "block"]),
|
|
2447
|
+
properties: z107.array(PulsarBaseProperty)
|
|
2448
|
+
});
|
|
2449
|
+
var ExporterType = z108.enum(["code", "documentation"]);
|
|
2450
|
+
var ExporterSource = z108.enum(["git", "upload"]);
|
|
2451
|
+
var ExporterTag = z108.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2452
|
+
var ExporterDetails = z108.object({
|
|
2453
|
+
description: z108.string(),
|
|
2454
|
+
version: z108.string(),
|
|
2455
|
+
routingVersion: nullishToOptional(z108.string()),
|
|
2456
|
+
author: nullishToOptional(z108.string()),
|
|
2457
|
+
organization: nullishToOptional(z108.string()),
|
|
2458
|
+
homepage: nullishToOptional(z108.string()),
|
|
2459
|
+
readme: nullishToOptional(z108.string()),
|
|
2460
|
+
tags: nullishToOptional(z108.array(ExporterTag)).default([]),
|
|
2461
|
+
packageId: nullishToOptional(z108.string().max(255)),
|
|
2462
|
+
iconURL: nullishToOptional(z108.string()),
|
|
2463
|
+
configurationProperties: nullishToOptional(z108.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2464
|
+
customBlocks: nullishToOptional(z108.array(PulsarCustomBlock)).default([]),
|
|
2465
|
+
blockVariants: nullishToOptional(z108.record(z108.string(), z108.array(PulsarContributionVariant))).default({}),
|
|
2466
|
+
usesBrands: nullishToOptional(z108.boolean()).default(false),
|
|
2467
|
+
usesThemes: nullishToOptional(z108.boolean()).default(false),
|
|
2462
2468
|
source: ExporterSource,
|
|
2463
2469
|
gitProvider: nullishToOptional(GitProvider),
|
|
2464
|
-
gitUrl: nullishToOptional(
|
|
2465
|
-
gitBranch: nullishToOptional(
|
|
2466
|
-
gitDirectory: nullishToOptional(
|
|
2470
|
+
gitUrl: nullishToOptional(z108.string()),
|
|
2471
|
+
gitBranch: nullishToOptional(z108.string()),
|
|
2472
|
+
gitDirectory: nullishToOptional(z108.string())
|
|
2467
2473
|
});
|
|
2468
|
-
var Exporter =
|
|
2469
|
-
id:
|
|
2470
|
-
createdAt:
|
|
2471
|
-
name:
|
|
2472
|
-
isPrivate:
|
|
2474
|
+
var Exporter = z108.object({
|
|
2475
|
+
id: z108.string(),
|
|
2476
|
+
createdAt: z108.coerce.date(),
|
|
2477
|
+
name: z108.string(),
|
|
2478
|
+
isPrivate: z108.boolean(),
|
|
2473
2479
|
details: ExporterDetails,
|
|
2474
2480
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2475
|
-
storagePath: nullishToOptional(
|
|
2481
|
+
storagePath: nullishToOptional(z108.string()).default("")
|
|
2476
2482
|
});
|
|
2477
|
-
var CustomDomain =
|
|
2478
|
-
id: z108.string(),
|
|
2479
|
-
designSystemId: z108.string(),
|
|
2480
|
-
state: z108.string(),
|
|
2481
|
-
supernovaDomain: z108.string(),
|
|
2482
|
-
customerDomain: z108.string().nullish(),
|
|
2483
|
-
error: z108.string().nullish(),
|
|
2484
|
-
errorCode: z108.string().nullish()
|
|
2485
|
-
});
|
|
2486
|
-
var IntegrationAuthType = z109.union([z109.literal("OAuth2"), z109.literal("PAT")]);
|
|
2487
|
-
var ExternalServiceType = z109.union([
|
|
2488
|
-
z109.literal("figma"),
|
|
2489
|
-
z109.literal("github"),
|
|
2490
|
-
z109.literal("azure"),
|
|
2491
|
-
z109.literal("gitlab"),
|
|
2492
|
-
z109.literal("bitbucket")
|
|
2493
|
-
]);
|
|
2494
|
-
var IntegrationUserInfo = z109.object({
|
|
2483
|
+
var CustomDomain = z109.object({
|
|
2495
2484
|
id: z109.string(),
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2485
|
+
designSystemId: z109.string(),
|
|
2486
|
+
state: z109.string(),
|
|
2487
|
+
supernovaDomain: z109.string(),
|
|
2488
|
+
customerDomain: z109.string().nullish(),
|
|
2489
|
+
error: z109.string().nullish(),
|
|
2490
|
+
errorCode: z109.string().nullish()
|
|
2491
|
+
});
|
|
2492
|
+
var IntegrationAuthType = z110.union([z110.literal("OAuth2"), z110.literal("PAT")]);
|
|
2493
|
+
var ExternalServiceType = z110.union([
|
|
2494
|
+
z110.literal("figma"),
|
|
2495
|
+
z110.literal("github"),
|
|
2496
|
+
z110.literal("azure"),
|
|
2497
|
+
z110.literal("gitlab"),
|
|
2498
|
+
z110.literal("bitbucket")
|
|
2499
|
+
]);
|
|
2500
|
+
var IntegrationUserInfo = z110.object({
|
|
2501
|
+
id: z110.string(),
|
|
2502
|
+
handle: z110.string().optional(),
|
|
2503
|
+
avatarUrl: z110.string().optional(),
|
|
2504
|
+
email: z110.string().optional(),
|
|
2499
2505
|
authType: IntegrationAuthType.optional(),
|
|
2500
|
-
customUrl:
|
|
2506
|
+
customUrl: z110.string().optional()
|
|
2501
2507
|
});
|
|
2502
|
-
var UserLinkedIntegrations =
|
|
2508
|
+
var UserLinkedIntegrations = z110.object({
|
|
2503
2509
|
figma: IntegrationUserInfo.optional(),
|
|
2504
2510
|
github: IntegrationUserInfo.array().optional(),
|
|
2505
2511
|
azure: IntegrationUserInfo.array().optional(),
|
|
2506
2512
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2507
2513
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2508
2514
|
});
|
|
2509
|
-
var UserIdentity =
|
|
2510
|
-
id:
|
|
2511
|
-
userId:
|
|
2512
|
-
});
|
|
2513
|
-
var UserOnboardingDepartment =
|
|
2514
|
-
var UserOnboardingJobLevel =
|
|
2515
|
-
var UserOnboarding =
|
|
2516
|
-
companyName:
|
|
2517
|
-
numberOfPeopleInOrg:
|
|
2518
|
-
numberOfPeopleInDesignTeam:
|
|
2515
|
+
var UserIdentity = z111.object({
|
|
2516
|
+
id: z111.string(),
|
|
2517
|
+
userId: z111.string()
|
|
2518
|
+
});
|
|
2519
|
+
var UserOnboardingDepartment = z112.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2520
|
+
var UserOnboardingJobLevel = z112.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2521
|
+
var UserOnboarding = z112.object({
|
|
2522
|
+
companyName: z112.string().optional(),
|
|
2523
|
+
numberOfPeopleInOrg: z112.string().optional(),
|
|
2524
|
+
numberOfPeopleInDesignTeam: z112.string().optional(),
|
|
2519
2525
|
department: UserOnboardingDepartment.optional(),
|
|
2520
|
-
jobTitle:
|
|
2521
|
-
phase:
|
|
2526
|
+
jobTitle: z112.string().optional(),
|
|
2527
|
+
phase: z112.string().optional(),
|
|
2522
2528
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2523
2529
|
});
|
|
2524
|
-
var UserProfile =
|
|
2525
|
-
name:
|
|
2526
|
-
avatar:
|
|
2527
|
-
nickname:
|
|
2530
|
+
var UserProfile = z112.object({
|
|
2531
|
+
name: z112.string(),
|
|
2532
|
+
avatar: z112.string().optional(),
|
|
2533
|
+
nickname: z112.string().optional(),
|
|
2528
2534
|
onboarding: UserOnboarding.optional()
|
|
2529
2535
|
});
|
|
2530
|
-
var User =
|
|
2531
|
-
id:
|
|
2532
|
-
email:
|
|
2533
|
-
emailVerified:
|
|
2534
|
-
createdAt:
|
|
2535
|
-
trialExpiresAt:
|
|
2536
|
+
var User = z113.object({
|
|
2537
|
+
id: z113.string(),
|
|
2538
|
+
email: z113.string(),
|
|
2539
|
+
emailVerified: z113.boolean(),
|
|
2540
|
+
createdAt: z113.date(),
|
|
2541
|
+
trialExpiresAt: z113.date().optional(),
|
|
2536
2542
|
profile: UserProfile,
|
|
2537
2543
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2538
|
-
loggedOutAt:
|
|
2539
|
-
isProtected:
|
|
2544
|
+
loggedOutAt: z113.date().optional(),
|
|
2545
|
+
isProtected: z113.boolean()
|
|
2540
2546
|
});
|
|
2541
|
-
var NpmProxyToken =
|
|
2542
|
-
access:
|
|
2543
|
-
expiresAt:
|
|
2547
|
+
var NpmProxyToken = z114.object({
|
|
2548
|
+
access: z114.string(),
|
|
2549
|
+
expiresAt: z114.number()
|
|
2544
2550
|
});
|
|
2545
|
-
var SessionData =
|
|
2546
|
-
returnToUrl:
|
|
2551
|
+
var SessionData = z114.object({
|
|
2552
|
+
returnToUrl: z114.string().optional(),
|
|
2547
2553
|
npmProxyToken: NpmProxyToken.optional()
|
|
2548
2554
|
});
|
|
2549
|
-
var Session =
|
|
2550
|
-
id:
|
|
2551
|
-
expiresAt:
|
|
2552
|
-
userId:
|
|
2555
|
+
var Session = z114.object({
|
|
2556
|
+
id: z114.string(),
|
|
2557
|
+
expiresAt: z114.date(),
|
|
2558
|
+
userId: z114.string().nullable(),
|
|
2553
2559
|
data: SessionData
|
|
2554
2560
|
});
|
|
2555
|
-
var AuthTokens =
|
|
2556
|
-
access:
|
|
2557
|
-
refresh:
|
|
2561
|
+
var AuthTokens = z114.object({
|
|
2562
|
+
access: z114.string(),
|
|
2563
|
+
refresh: z114.string()
|
|
2558
2564
|
});
|
|
2559
|
-
var UserSession =
|
|
2565
|
+
var UserSession = z114.object({
|
|
2560
2566
|
session: Session,
|
|
2561
2567
|
user: User.nullable()
|
|
2562
2568
|
});
|
|
2563
|
-
var FlaggedFeature =
|
|
2564
|
-
var FeatureFlagMap =
|
|
2565
|
-
var FeatureFlag =
|
|
2566
|
-
id:
|
|
2569
|
+
var FlaggedFeature = z115.enum(["FigmaImporterV2"]);
|
|
2570
|
+
var FeatureFlagMap = z115.record(FlaggedFeature, z115.boolean());
|
|
2571
|
+
var FeatureFlag = z115.object({
|
|
2572
|
+
id: z115.string(),
|
|
2567
2573
|
feature: FlaggedFeature,
|
|
2568
|
-
createdAt:
|
|
2569
|
-
enabled:
|
|
2574
|
+
createdAt: z115.date(),
|
|
2575
|
+
enabled: z115.boolean()
|
|
2570
2576
|
});
|
|
2571
2577
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2572
2578
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2576,96 +2582,96 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2576
2582
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2577
2583
|
return OAuthProviderNames2;
|
|
2578
2584
|
})(OAuthProviderNames || {});
|
|
2579
|
-
var OAuthProviderSchema =
|
|
2585
|
+
var OAuthProviderSchema = z116.nativeEnum(OAuthProviderNames);
|
|
2580
2586
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2581
|
-
var ExternalOAuthRequest =
|
|
2582
|
-
id: z116.string(),
|
|
2583
|
-
provider: OAuthProviderSchema,
|
|
2584
|
-
userId: z116.string(),
|
|
2585
|
-
state: z116.string(),
|
|
2586
|
-
createdAt: z116.date()
|
|
2587
|
-
});
|
|
2588
|
-
var IntegrationTokenSchema = z117.object({
|
|
2587
|
+
var ExternalOAuthRequest = z117.object({
|
|
2589
2588
|
id: z117.string(),
|
|
2590
2589
|
provider: OAuthProviderSchema,
|
|
2591
|
-
scope: z117.string(),
|
|
2592
2590
|
userId: z117.string(),
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
expiresAt: z117.date(),
|
|
2596
|
-
externalUserId: z117.string().nullish()
|
|
2591
|
+
state: z117.string(),
|
|
2592
|
+
createdAt: z117.date()
|
|
2597
2593
|
});
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2600
|
-
|
|
2594
|
+
var IntegrationTokenSchema = z118.object({
|
|
2595
|
+
id: z118.string(),
|
|
2596
|
+
provider: OAuthProviderSchema,
|
|
2597
|
+
scope: z118.string(),
|
|
2598
|
+
userId: z118.string(),
|
|
2599
|
+
accessToken: z118.string(),
|
|
2600
|
+
refreshToken: z118.string(),
|
|
2601
|
+
expiresAt: z118.date(),
|
|
2602
|
+
externalUserId: z118.string().nullish()
|
|
2601
2603
|
});
|
|
2602
|
-
var
|
|
2604
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
2603
2605
|
designSystemVersionId: z119.string(),
|
|
2604
|
-
documentationPageId: z119.string(),
|
|
2605
2606
|
liveblocksId: z119.string()
|
|
2606
2607
|
});
|
|
2608
|
+
var DocumentationPageRoom = Entity.extend({
|
|
2609
|
+
designSystemVersionId: z120.string(),
|
|
2610
|
+
documentationPageId: z120.string(),
|
|
2611
|
+
liveblocksId: z120.string()
|
|
2612
|
+
});
|
|
2607
2613
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2608
2614
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2609
2615
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2610
2616
|
return RoomTypeEnum2;
|
|
2611
2617
|
})(RoomTypeEnum || {});
|
|
2612
|
-
var RoomTypeSchema =
|
|
2618
|
+
var RoomTypeSchema = z121.nativeEnum(RoomTypeEnum);
|
|
2613
2619
|
var RoomType = RoomTypeSchema.enum;
|
|
2614
|
-
var AnyRecord =
|
|
2620
|
+
var AnyRecord = z122.record(z122.any());
|
|
2615
2621
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2616
|
-
|
|
2617
|
-
tarball:
|
|
2622
|
+
z122.object({
|
|
2623
|
+
tarball: z122.string()
|
|
2618
2624
|
})
|
|
2619
2625
|
);
|
|
2620
2626
|
var NpmPackageVersion = AnyRecord.and(
|
|
2621
|
-
|
|
2627
|
+
z122.object({
|
|
2622
2628
|
dist: NpmPackageVersionDist
|
|
2623
2629
|
})
|
|
2624
2630
|
);
|
|
2625
2631
|
var NpmPackage = AnyRecord.and(
|
|
2626
|
-
|
|
2627
|
-
_id:
|
|
2628
|
-
name:
|
|
2632
|
+
z122.object({
|
|
2633
|
+
_id: z122.string(),
|
|
2634
|
+
name: z122.string(),
|
|
2629
2635
|
// e.g. "latest": "1.2.3"
|
|
2630
|
-
"dist-tags":
|
|
2636
|
+
"dist-tags": z122.record(z122.string(), z122.string()),
|
|
2631
2637
|
// "1.2.3": {...}
|
|
2632
|
-
versions:
|
|
2638
|
+
versions: z122.record(NpmPackageVersion)
|
|
2633
2639
|
})
|
|
2634
2640
|
);
|
|
2635
|
-
var NpmProxyTokenPayload =
|
|
2636
|
-
npmProxyRegistryConfigId:
|
|
2637
|
-
});
|
|
2638
|
-
var PersonalAccessToken =
|
|
2639
|
-
id:
|
|
2640
|
-
userId:
|
|
2641
|
-
name:
|
|
2642
|
-
token:
|
|
2643
|
-
createdAt:
|
|
2644
|
-
hidden:
|
|
2645
|
-
workspaceId:
|
|
2641
|
+
var NpmProxyTokenPayload = z123.object({
|
|
2642
|
+
npmProxyRegistryConfigId: z123.string()
|
|
2643
|
+
});
|
|
2644
|
+
var PersonalAccessToken = z124.object({
|
|
2645
|
+
id: z124.string(),
|
|
2646
|
+
userId: z124.string(),
|
|
2647
|
+
name: z124.string(),
|
|
2648
|
+
token: z124.string(),
|
|
2649
|
+
createdAt: z124.date(),
|
|
2650
|
+
hidden: z124.boolean(),
|
|
2651
|
+
workspaceId: z124.string().optional(),
|
|
2646
2652
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2647
|
-
expireAt:
|
|
2648
|
-
scope:
|
|
2653
|
+
expireAt: z124.date().optional(),
|
|
2654
|
+
scope: z124.string().optional()
|
|
2649
2655
|
});
|
|
2650
|
-
var ContentLoadInstruction =
|
|
2651
|
-
from:
|
|
2652
|
-
to:
|
|
2653
|
-
authorizationHeaderKvsId:
|
|
2654
|
-
timeout:
|
|
2656
|
+
var ContentLoadInstruction = z125.object({
|
|
2657
|
+
from: z125.string(),
|
|
2658
|
+
to: z125.string(),
|
|
2659
|
+
authorizationHeaderKvsId: z125.string().optional(),
|
|
2660
|
+
timeout: z125.number().optional()
|
|
2655
2661
|
});
|
|
2656
|
-
var ContentLoaderPayload =
|
|
2657
|
-
type:
|
|
2662
|
+
var ContentLoaderPayload = z125.object({
|
|
2663
|
+
type: z125.literal("Single"),
|
|
2658
2664
|
instruction: ContentLoadInstruction
|
|
2659
2665
|
}).or(
|
|
2660
|
-
|
|
2661
|
-
type:
|
|
2662
|
-
loadingChunkSize:
|
|
2663
|
-
instructions:
|
|
2666
|
+
z125.object({
|
|
2667
|
+
type: z125.literal("Multiple"),
|
|
2668
|
+
loadingChunkSize: z125.number().optional(),
|
|
2669
|
+
instructions: z125.array(ContentLoadInstruction)
|
|
2664
2670
|
})
|
|
2665
2671
|
).or(
|
|
2666
|
-
|
|
2667
|
-
type:
|
|
2668
|
-
location:
|
|
2672
|
+
z125.object({
|
|
2673
|
+
type: z125.literal("S3"),
|
|
2674
|
+
location: z125.string()
|
|
2669
2675
|
})
|
|
2670
2676
|
);
|
|
2671
2677
|
|
|
@@ -2678,22 +2684,22 @@ var DesignSystemDTO = DesignSystem.omit({
|
|
|
2678
2684
|
});
|
|
2679
2685
|
|
|
2680
2686
|
// src/api/dto/documentation-v1.ts
|
|
2681
|
-
import { z as
|
|
2687
|
+
import { z as z126 } from "zod";
|
|
2682
2688
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
2683
2689
|
data: true,
|
|
2684
2690
|
meta: true,
|
|
2685
2691
|
parentPersistentId: true,
|
|
2686
2692
|
sortOrder: true
|
|
2687
2693
|
}).extend(DocumentationPageV1.shape.data.shape).extend({
|
|
2688
|
-
title:
|
|
2689
|
-
path:
|
|
2694
|
+
title: z126.string(),
|
|
2695
|
+
path: z126.string()
|
|
2690
2696
|
});
|
|
2691
2697
|
|
|
2692
2698
|
// src/api/dto/documentation-v2.ts
|
|
2693
|
-
import { z as
|
|
2699
|
+
import { z as z128 } from "zod";
|
|
2694
2700
|
|
|
2695
2701
|
// src/api/dto/documentation.ts
|
|
2696
|
-
import { z as
|
|
2702
|
+
import { z as z127 } from "zod";
|
|
2697
2703
|
var DocumentationGroupStructureDTO = ElementGroup.omit({
|
|
2698
2704
|
sortOrder: true,
|
|
2699
2705
|
parentPersistentId: true,
|
|
@@ -2703,11 +2709,11 @@ var DocumentationGroupStructureDTO = ElementGroup.omit({
|
|
|
2703
2709
|
data: true,
|
|
2704
2710
|
shortPersistentId: true
|
|
2705
2711
|
}).extend({
|
|
2706
|
-
title:
|
|
2707
|
-
isRoot:
|
|
2708
|
-
childrenIds:
|
|
2712
|
+
title: z127.string(),
|
|
2713
|
+
isRoot: z127.boolean(),
|
|
2714
|
+
childrenIds: z127.array(z127.string()),
|
|
2709
2715
|
groupBehavior: DocumentationGroupBehavior,
|
|
2710
|
-
shortPersistentId:
|
|
2716
|
+
shortPersistentId: z127.string()
|
|
2711
2717
|
});
|
|
2712
2718
|
var DocumentationGroupDTO = DocumentationGroupStructureDTO.extend({
|
|
2713
2719
|
configuration: DocumentationItemConfiguration
|
|
@@ -2720,67 +2726,73 @@ var DocumentationPageStructureV2DTO = DocumentationPageV2.omit({
|
|
|
2720
2726
|
parentPersistentId: true,
|
|
2721
2727
|
sortOrder: true
|
|
2722
2728
|
}).extend({
|
|
2723
|
-
title:
|
|
2724
|
-
path:
|
|
2729
|
+
title: z128.string(),
|
|
2730
|
+
path: z128.string()
|
|
2725
2731
|
});
|
|
2726
2732
|
var DocumentationPageV2DTO = DocumentationPageStructureV2DTO.extend(DocumentationPageV2.shape.data.shape);
|
|
2727
|
-
var DocumentationHierarchyV2DTO =
|
|
2728
|
-
pages:
|
|
2729
|
-
groups:
|
|
2733
|
+
var DocumentationHierarchyV2DTO = z128.object({
|
|
2734
|
+
pages: z128.array(DocumentationPageStructureV2DTO),
|
|
2735
|
+
groups: z128.array(DocumentationGroupStructureDTO)
|
|
2730
2736
|
});
|
|
2731
2737
|
|
|
2732
|
-
// src/api/requests/
|
|
2733
|
-
import { z as
|
|
2734
|
-
var
|
|
2735
|
-
parentPersistentId:
|
|
2736
|
-
persistentId:
|
|
2737
|
-
title:
|
|
2738
|
+
// src/api/requests/elements/elements-transaction-v2.ts
|
|
2739
|
+
import { z as z129 } from "zod";
|
|
2740
|
+
var DTOCreateDocumentationPageInput = z129.object({
|
|
2741
|
+
parentPersistentId: z129.string().uuid(),
|
|
2742
|
+
persistentId: z129.string().uuid(),
|
|
2743
|
+
title: z129.string(),
|
|
2738
2744
|
configuration: DocumentationItemConfiguration.optional(),
|
|
2739
|
-
afterPersistentId:
|
|
2745
|
+
afterPersistentId: z129.string().uuid().optional()
|
|
2740
2746
|
});
|
|
2741
|
-
var
|
|
2742
|
-
id:
|
|
2743
|
-
title:
|
|
2747
|
+
var DTOUpdateDocumentationPageInput = z129.object({
|
|
2748
|
+
id: z129.string(),
|
|
2749
|
+
title: z129.string().optional(),
|
|
2744
2750
|
configuration: DocumentationItemConfiguration.optional(),
|
|
2745
|
-
parentPersistentId:
|
|
2746
|
-
afterPersistentId:
|
|
2747
|
-
});
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2751
|
+
parentPersistentId: z129.string().optional(),
|
|
2752
|
+
afterPersistentId: z129.string().optional()
|
|
2753
|
+
});
|
|
2754
|
+
var DTODuplicateDocumentationPageInput = z129.object({
|
|
2755
|
+
id: z129.string(),
|
|
2756
|
+
persistentId: z129.string().uuid(),
|
|
2757
|
+
parentPersistentId: z129.string().uuid(),
|
|
2758
|
+
afterPersistentId: z129.string().uuid().optional()
|
|
2759
|
+
});
|
|
2760
|
+
var DTODocumentationTransactionInput = z129.object({
|
|
2761
|
+
create: z129.array(DTOCreateDocumentationPageInput).optional(),
|
|
2762
|
+
update: z129.array(DTOUpdateDocumentationPageInput).optional(),
|
|
2763
|
+
duplicate: z129.array(DTODuplicateDocumentationPageInput).optional(),
|
|
2764
|
+
delete: z129.array(z129.string()).optional()
|
|
2765
|
+
});
|
|
2766
|
+
var DTOElementsTransactionInput = z129.object({
|
|
2767
|
+
documentationPages: DTODocumentationTransactionInput
|
|
2762
2768
|
});
|
|
2763
2769
|
|
|
2764
2770
|
// src/api/requests/post-liveblocks-auth.ts
|
|
2765
|
-
import { z as
|
|
2766
|
-
var PostLiveblocksAuth =
|
|
2767
|
-
room:
|
|
2771
|
+
import { z as z130 } from "zod";
|
|
2772
|
+
var PostLiveblocksAuth = z130.object({
|
|
2773
|
+
room: z130.string()
|
|
2768
2774
|
});
|
|
2769
2775
|
|
|
2770
2776
|
// src/api/responses/get-block-definitions.ts
|
|
2771
|
-
import { z as
|
|
2772
|
-
var GetBlockDefinitionsResponse =
|
|
2773
|
-
definitions:
|
|
2777
|
+
import { z as z131 } from "zod";
|
|
2778
|
+
var GetBlockDefinitionsResponse = z131.object({
|
|
2779
|
+
definitions: z131.array(PageBlockDefinition)
|
|
2774
2780
|
});
|
|
2775
2781
|
|
|
2776
2782
|
// src/design-system-content/documentation-hierarchy.ts
|
|
2777
|
-
function documentationHierarchyToYjs(documentationHierarchy,
|
|
2783
|
+
function documentationHierarchyToYjs(doc, documentationHierarchy, itemsToDelete) {
|
|
2778
2784
|
doc.transact((trx) => {
|
|
2779
|
-
const pagesMap = trx.doc
|
|
2785
|
+
const pagesMap = getPagesYMap(trx.doc);
|
|
2786
|
+
itemsToDelete.pagePersistentIdsToDelete.forEach((persistentId) => {
|
|
2787
|
+
pagesMap.delete(persistentId);
|
|
2788
|
+
});
|
|
2780
2789
|
documentationHierarchy.pages.forEach((page) => {
|
|
2781
2790
|
pagesMap.set(page.persistentId, page);
|
|
2782
2791
|
});
|
|
2783
|
-
const groupsMap = trx.doc
|
|
2792
|
+
const groupsMap = getGroupsYMap(trx.doc);
|
|
2793
|
+
itemsToDelete.groupPersistentIdsToDelete.forEach((persistentId) => {
|
|
2794
|
+
groupsMap.delete(persistentId);
|
|
2795
|
+
});
|
|
2784
2796
|
documentationHierarchy.groups.forEach((group) => {
|
|
2785
2797
|
groupsMap.set(group.persistentId, group);
|
|
2786
2798
|
});
|
|
@@ -2788,8 +2800,8 @@ function documentationHierarchyToYjs(documentationHierarchy, doc) {
|
|
|
2788
2800
|
return doc;
|
|
2789
2801
|
}
|
|
2790
2802
|
function yjsToDocumentationHierarchy(doc) {
|
|
2791
|
-
const pagesMap = doc
|
|
2792
|
-
const groupsMap = doc
|
|
2803
|
+
const pagesMap = getPagesYMap(doc);
|
|
2804
|
+
const groupsMap = getGroupsYMap(doc);
|
|
2793
2805
|
const pages = [];
|
|
2794
2806
|
pagesMap.forEach((page) => {
|
|
2795
2807
|
pages.push(DocumentationPageStructureV2DTO.parse(page));
|
|
@@ -2803,9 +2815,15 @@ function yjsToDocumentationHierarchy(doc) {
|
|
|
2803
2815
|
groups
|
|
2804
2816
|
};
|
|
2805
2817
|
}
|
|
2818
|
+
function getPagesYMap(doc) {
|
|
2819
|
+
return doc.getMap("documentationPages");
|
|
2820
|
+
}
|
|
2821
|
+
function getGroupsYMap(doc) {
|
|
2822
|
+
return doc.getMap("documentationGroups");
|
|
2823
|
+
}
|
|
2806
2824
|
|
|
2807
2825
|
// src/design-system-content/item-configuration.ts
|
|
2808
|
-
function itemConfigurationToYjs(
|
|
2826
|
+
function itemConfigurationToYjs(yDoc, item) {
|
|
2809
2827
|
yDoc.transact((trx) => {
|
|
2810
2828
|
const header = item.header;
|
|
2811
2829
|
if (header) {
|
|
@@ -2848,16 +2866,16 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
2848
2866
|
}
|
|
2849
2867
|
|
|
2850
2868
|
// src/docs-editor/model/block.ts
|
|
2851
|
-
import { z as
|
|
2852
|
-
var PageBlockEditorModel =
|
|
2853
|
-
id:
|
|
2869
|
+
import { z as z132 } from "zod";
|
|
2870
|
+
var PageBlockEditorModel = z132.object({
|
|
2871
|
+
id: z132.string(),
|
|
2854
2872
|
data: PageBlockDataV2
|
|
2855
2873
|
});
|
|
2856
2874
|
|
|
2857
2875
|
// src/docs-editor/model/page.ts
|
|
2858
|
-
import { z as
|
|
2859
|
-
var DocumentationPageEditorModel =
|
|
2860
|
-
blocks:
|
|
2876
|
+
import { z as z133 } from "zod";
|
|
2877
|
+
var DocumentationPageEditorModel = z133.object({
|
|
2878
|
+
blocks: z133.array(PageBlockEditorModel)
|
|
2861
2879
|
});
|
|
2862
2880
|
|
|
2863
2881
|
// src/docs-editor/prosemirror/schema.ts
|
|
@@ -6490,7 +6508,7 @@ var blocks = [
|
|
|
6490
6508
|
|
|
6491
6509
|
// src/docs-editor/prosemirror-to-blocks.ts
|
|
6492
6510
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
6493
|
-
import { z as
|
|
6511
|
+
import { z as z134 } from "zod";
|
|
6494
6512
|
function yDocToPage(yDoc, definitions) {
|
|
6495
6513
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
6496
6514
|
}
|
|
@@ -6502,7 +6520,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
|
|
|
6502
6520
|
const definitionsById = mapByUnique(definitions, (d) => d.id);
|
|
6503
6521
|
return {
|
|
6504
6522
|
blocks: (prosemirrorDoc.content ?? []).map((prosemirrorNode) => {
|
|
6505
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
6523
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z134.string());
|
|
6506
6524
|
if (!definitionId) {
|
|
6507
6525
|
console.warn(
|
|
6508
6526
|
`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`
|
|
@@ -6544,7 +6562,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
6544
6562
|
if (!id)
|
|
6545
6563
|
return null;
|
|
6546
6564
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
6547
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
6565
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z134.string().optional()));
|
|
6548
6566
|
return {
|
|
6549
6567
|
// TODO Artem: indent
|
|
6550
6568
|
id,
|
|
@@ -6644,8 +6662,8 @@ function parseRichTextAttribute(mark) {
|
|
|
6644
6662
|
case "code":
|
|
6645
6663
|
return { type: "Code" };
|
|
6646
6664
|
case "link":
|
|
6647
|
-
const itemId = getProsemirrorAttribute(mark, "itemId",
|
|
6648
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
6665
|
+
const itemId = getProsemirrorAttribute(mark, "itemId", z134.string().optional());
|
|
6666
|
+
const href = getProsemirrorAttribute(mark, "href", z134.string().optional());
|
|
6649
6667
|
return {
|
|
6650
6668
|
type: "Link",
|
|
6651
6669
|
openInNewWindow: mark.attrs?.target !== "_self",
|
|
@@ -6660,7 +6678,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
6660
6678
|
if (!id)
|
|
6661
6679
|
return null;
|
|
6662
6680
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
6663
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
6681
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z134.boolean().optional()) !== false;
|
|
6664
6682
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
6665
6683
|
if (!tableChild) {
|
|
6666
6684
|
return emptyTable(id, variantId, 0);
|
|
@@ -6706,9 +6724,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
6706
6724
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
6707
6725
|
if (!id)
|
|
6708
6726
|
return null;
|
|
6709
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
6727
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z134.string().optional());
|
|
6710
6728
|
let columnWidth;
|
|
6711
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
6729
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z134.array(z134.number()).optional());
|
|
6712
6730
|
if (columnWidthArray) {
|
|
6713
6731
|
columnWidth = columnWidthArray[0];
|
|
6714
6732
|
}
|
|
@@ -6742,7 +6760,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
6742
6760
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
6743
6761
|
};
|
|
6744
6762
|
case "image":
|
|
6745
|
-
const url = getProsemirrorAttribute(prosemirrorNode, "src",
|
|
6763
|
+
const url = getProsemirrorAttribute(prosemirrorNode, "src", z134.string().optional());
|
|
6746
6764
|
if (!url)
|
|
6747
6765
|
return null;
|
|
6748
6766
|
return {
|
|
@@ -6836,7 +6854,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
6836
6854
|
};
|
|
6837
6855
|
}
|
|
6838
6856
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
6839
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
6857
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z134.string());
|
|
6840
6858
|
if (!itemsString)
|
|
6841
6859
|
return null;
|
|
6842
6860
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -6848,11 +6866,11 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
6848
6866
|
}
|
|
6849
6867
|
function parseAppearance(prosemirrorNode) {
|
|
6850
6868
|
const appearance = {};
|
|
6851
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
6869
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z134.number().optional());
|
|
6852
6870
|
if (columns) {
|
|
6853
6871
|
appearance.numberOfColumns = columns;
|
|
6854
6872
|
}
|
|
6855
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
6873
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z134.string().optional());
|
|
6856
6874
|
if (backgroundColor) {
|
|
6857
6875
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
6858
6876
|
if (parsedColor.success) {
|
|
@@ -6943,13 +6961,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
6943
6961
|
}
|
|
6944
6962
|
}
|
|
6945
6963
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
6946
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
6964
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z134.string());
|
|
6947
6965
|
if (!id)
|
|
6948
6966
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
6949
6967
|
return id;
|
|
6950
6968
|
}
|
|
6951
6969
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
6952
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
6970
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z134.string()));
|
|
6953
6971
|
}
|
|
6954
6972
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
6955
6973
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -6974,9 +6992,11 @@ function mapByUnique(items, keyFn) {
|
|
|
6974
6992
|
export {
|
|
6975
6993
|
BlockDefinitionUtils,
|
|
6976
6994
|
BlockParsingUtils,
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6995
|
+
DTOCreateDocumentationPageInput,
|
|
6996
|
+
DTODocumentationTransactionInput,
|
|
6997
|
+
DTODuplicateDocumentationPageInput,
|
|
6998
|
+
DTOElementsTransactionInput,
|
|
6999
|
+
DTOUpdateDocumentationPageInput,
|
|
6980
7000
|
DesignSystemDTO,
|
|
6981
7001
|
DocumentationGroupDTO,
|
|
6982
7002
|
DocumentationGroupStructureDTO,
|
|
@@ -6985,11 +7005,9 @@ export {
|
|
|
6985
7005
|
DocumentationPageStructureV2DTO,
|
|
6986
7006
|
DocumentationPageV1DTO,
|
|
6987
7007
|
DocumentationPageV2DTO,
|
|
6988
|
-
DuplicateBulkElementsInput,
|
|
6989
7008
|
GetBlockDefinitionsResponse,
|
|
6990
7009
|
PageBlockEditorModel,
|
|
6991
7010
|
PostLiveblocksAuth,
|
|
6992
|
-
UpdateBulkElementsInput,
|
|
6993
7011
|
blockDefinitionForBlock,
|
|
6994
7012
|
blockToProsemirrorNode,
|
|
6995
7013
|
documentationHierarchyToYjs,
|