@supernova-studio/client 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3932 -19
- package/dist/index.d.ts +3932 -19
- package/dist/index.js +119 -530
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +874 -1285
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -2
- package/src/api/index.ts +1 -0
- package/src/api/requests/index.ts +2 -0
- package/src/api/requests/post-bulk-doc-page-elements.ts +51 -0
- package/src/api/requests/post-liveblocks-auth.ts +6 -0
- package/src/docs-editor/blocks-to-prosemirror.ts +1 -1
- package/src/docs-editor/prosemirror/schema.ts +3 -0
- package/src/index.ts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/api/requests/post-bulk-doc-page-elements.ts
|
|
2
|
+
import { z as z125 } from "zod";
|
|
3
|
+
|
|
1
4
|
// ../model/dist/index.mjs
|
|
2
5
|
import { z } from "zod";
|
|
3
6
|
import { z as z2 } from "zod";
|
|
@@ -16,7 +19,7 @@ import { z as z14 } from "zod";
|
|
|
16
19
|
import { z as z17 } from "zod";
|
|
17
20
|
import { z as z15 } from "zod";
|
|
18
21
|
import { z as z16 } from "zod";
|
|
19
|
-
import { z as
|
|
22
|
+
import { z as z82 } from "zod";
|
|
20
23
|
import { z as z18 } from "zod";
|
|
21
24
|
import { z as z20 } from "zod";
|
|
22
25
|
import { z as z19 } from "zod";
|
|
@@ -33,11 +36,11 @@ import { z as z29 } from "zod";
|
|
|
33
36
|
import { z as z30 } from "zod";
|
|
34
37
|
import { z as z31 } from "zod";
|
|
35
38
|
import { z as z33 } from "zod";
|
|
39
|
+
import { z as z38 } from "zod";
|
|
40
|
+
import { z as z37 } from "zod";
|
|
41
|
+
import { z as z36 } from "zod";
|
|
36
42
|
import { z as z35 } from "zod";
|
|
37
43
|
import { z as z34 } from "zod";
|
|
38
|
-
import { z as z36 } from "zod";
|
|
39
|
-
import { z as z37 } from "zod";
|
|
40
|
-
import { z as z38 } from "zod";
|
|
41
44
|
import { z as z39 } from "zod";
|
|
42
45
|
import { z as z40 } from "zod";
|
|
43
46
|
import { z as z41 } from "zod";
|
|
@@ -65,60 +68,64 @@ import { z as z62 } from "zod";
|
|
|
65
68
|
import { z as z63 } from "zod";
|
|
66
69
|
import { z as z64 } from "zod";
|
|
67
70
|
import { z as z65 } from "zod";
|
|
68
|
-
import { z as z67 } from "zod";
|
|
69
71
|
import { z as z66 } from "zod";
|
|
72
|
+
import { z as z67 } from "zod";
|
|
70
73
|
import { z as z68 } from "zod";
|
|
71
|
-
import { z as z69 } from "zod";
|
|
72
|
-
import { z as z77 } from "zod";
|
|
73
74
|
import { z as z70 } from "zod";
|
|
74
|
-
import { z as
|
|
75
|
+
import { z as z69 } from "zod";
|
|
75
76
|
import { z as z71 } from "zod";
|
|
77
|
+
import { z as z72 } from "zod";
|
|
78
|
+
import { z as z80 } from "zod";
|
|
76
79
|
import { z as z73 } from "zod";
|
|
77
|
-
import { z as z74 } from "zod";
|
|
78
80
|
import { z as z75 } from "zod";
|
|
81
|
+
import { z as z74 } from "zod";
|
|
79
82
|
import { z as z76 } from "zod";
|
|
83
|
+
import { z as z77 } from "zod";
|
|
80
84
|
import { z as z78 } from "zod";
|
|
81
|
-
import { z as
|
|
82
|
-
import { z as z83 } from "zod";
|
|
83
|
-
import { z as z82 } from "zod";
|
|
85
|
+
import { z as z79 } from "zod";
|
|
84
86
|
import { z as z81 } from "zod";
|
|
85
|
-
import { z as
|
|
86
|
-
import { z as z85 } from "zod";
|
|
87
|
-
import { z as z95 } from "zod";
|
|
87
|
+
import { z as z83 } from "zod";
|
|
88
88
|
import { z as z86 } from "zod";
|
|
89
|
+
import { z as z85 } from "zod";
|
|
90
|
+
import { z as z84 } from "zod";
|
|
89
91
|
import { z as z87 } from "zod";
|
|
90
|
-
import { z as z89 } from "zod";
|
|
91
92
|
import { z as z88 } from "zod";
|
|
93
|
+
import { z as z98 } from "zod";
|
|
94
|
+
import { z as z89 } from "zod";
|
|
92
95
|
import { z as z90 } from "zod";
|
|
93
|
-
import { z as z91 } from "zod";
|
|
94
96
|
import { z as z92 } from "zod";
|
|
97
|
+
import { z as z91 } from "zod";
|
|
95
98
|
import { z as z93 } from "zod";
|
|
96
99
|
import { z as z94 } from "zod";
|
|
100
|
+
import { z as z95 } from "zod";
|
|
97
101
|
import { z as z96 } from "zod";
|
|
98
102
|
import { z as z97 } from "zod";
|
|
99
|
-
import { z as z98 } from "zod";
|
|
100
103
|
import { z as z99 } from "zod";
|
|
101
104
|
import { z as z100 } from "zod";
|
|
102
105
|
import { z as z101 } from "zod";
|
|
103
|
-
import { z as z104 } from "zod";
|
|
104
106
|
import { z as z102 } from "zod";
|
|
105
107
|
import { z as z103 } from "zod";
|
|
108
|
+
import { z as z104 } from "zod";
|
|
109
|
+
import { z as z107 } from "zod";
|
|
106
110
|
import { z as z105 } from "zod";
|
|
107
|
-
import { z as z110 } from "zod";
|
|
108
111
|
import { z as z106 } from "zod";
|
|
109
|
-
import { z as z107 } from "zod";
|
|
110
112
|
import { z as z108 } from "zod";
|
|
113
|
+
import { z as z113 } from "zod";
|
|
111
114
|
import { z as z109 } from "zod";
|
|
115
|
+
import { z as z110 } from "zod";
|
|
112
116
|
import { z as z111 } from "zod";
|
|
113
|
-
import { z as z113 } from "zod";
|
|
114
117
|
import { z as z112 } from "zod";
|
|
115
118
|
import { z as z114 } from "zod";
|
|
116
|
-
import { z as z115 } from "zod";
|
|
117
119
|
import { z as z116 } from "zod";
|
|
120
|
+
import { z as z115 } from "zod";
|
|
118
121
|
import { z as z117 } from "zod";
|
|
119
122
|
import { z as z118 } from "zod";
|
|
120
123
|
import { z as z119 } from "zod";
|
|
121
124
|
import { z as z120 } from "zod";
|
|
125
|
+
import { z as z121 } from "zod";
|
|
126
|
+
import { z as z122 } from "zod";
|
|
127
|
+
import { z as z123 } from "zod";
|
|
128
|
+
import { z as z124 } from "zod";
|
|
122
129
|
var PluginOAuthRequestSchema = z.object({
|
|
123
130
|
id: z.string(),
|
|
124
131
|
codeChallenge: z.string(),
|
|
@@ -332,9 +339,6 @@ var Asset = z13.object({
|
|
|
332
339
|
properties: AssetProperties.nullish(),
|
|
333
340
|
origin: AssetOrigin.nullish()
|
|
334
341
|
});
|
|
335
|
-
function isImportedAsset(asset) {
|
|
336
|
-
return !!asset.origin;
|
|
337
|
-
}
|
|
338
342
|
var DataSourceRemoteType = z14.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
339
343
|
var DataSourceUploadRemoteSource = z14.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
340
344
|
var DataSourceFigmaState = z14.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
@@ -531,9 +535,6 @@ var DesignElementType = DesignTokenType.or(
|
|
|
531
535
|
"PageBlock"
|
|
532
536
|
])
|
|
533
537
|
);
|
|
534
|
-
function isTokenType(type) {
|
|
535
|
-
return DesignTokenType.safeParse(type).success;
|
|
536
|
-
}
|
|
537
538
|
var DesignElementCategory = z27.enum([
|
|
538
539
|
"Token",
|
|
539
540
|
"Component",
|
|
@@ -871,12 +872,6 @@ var PageBlockV1 = PageBlockBaseV1.extend({
|
|
|
871
872
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
872
873
|
)
|
|
873
874
|
});
|
|
874
|
-
function traversePageBlocksV1(blocks2, action) {
|
|
875
|
-
for (const block of blocks2) {
|
|
876
|
-
action(block);
|
|
877
|
-
traversePageBlocksV1(block.children, action);
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
875
|
var PageBlockLinkType = z33.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
881
876
|
var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
882
877
|
var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
|
|
@@ -1051,168 +1046,204 @@ var PageBlockItemTableValue = z33.object({
|
|
|
1051
1046
|
showBorder: z33.boolean().optional(),
|
|
1052
1047
|
value: z33.array(PageBlockItemTableRow)
|
|
1053
1048
|
});
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1056
|
-
|
|
1049
|
+
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1050
|
+
var SafeIdSchema = z34.string().refine(
|
|
1051
|
+
(value) => {
|
|
1052
|
+
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1056
|
+
}
|
|
1057
|
+
);
|
|
1058
|
+
var DocumentationPageAssetType = z35.enum(["image", "figmaFrame"]);
|
|
1059
|
+
var DocumentationPageImageAsset = z35.object({
|
|
1060
|
+
type: z35.literal(DocumentationPageAssetType.Enum.image),
|
|
1061
|
+
url: z35.string().url().optional(),
|
|
1062
|
+
id: SafeIdSchema
|
|
1063
|
+
});
|
|
1064
|
+
var DocumentationPageFrameAsset = z35.object({
|
|
1065
|
+
type: z35.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1066
|
+
url: z35.string().url().optional(),
|
|
1067
|
+
figmaFrame: PageBlockFrame
|
|
1068
|
+
});
|
|
1069
|
+
var DocumentationPageAsset = z35.discriminatedUnion("type", [
|
|
1070
|
+
DocumentationPageImageAsset,
|
|
1071
|
+
DocumentationPageFrameAsset
|
|
1072
|
+
]);
|
|
1073
|
+
var DocumentationItemHeaderAlignmentSchema = z36.enum(["Left", "Center"]);
|
|
1074
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z36.enum(["AspectFill", "AspectFit"]);
|
|
1075
|
+
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1076
|
+
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1077
|
+
var DocumentationItemHeader = z36.object({
|
|
1078
|
+
description: z36.string(),
|
|
1079
|
+
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1080
|
+
foregroundColor: ColorTokenData.optional(),
|
|
1081
|
+
backgroundColor: ColorTokenData.optional(),
|
|
1082
|
+
backgroundImageAsset: DocumentationPageAsset.optional(),
|
|
1083
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1084
|
+
showBackgroundOverlay: z36.boolean(),
|
|
1085
|
+
showCoverText: z36.boolean(),
|
|
1086
|
+
minHeight: z36.number().optional()
|
|
1087
|
+
});
|
|
1088
|
+
var defaultDocumentationItemHeader = {
|
|
1089
|
+
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1090
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1091
|
+
description: "",
|
|
1092
|
+
showBackgroundOverlay: false,
|
|
1093
|
+
showCoverText: true
|
|
1094
|
+
};
|
|
1095
|
+
var DocumentationItemConfiguration = z37.object({
|
|
1096
|
+
showSidebar: z37.boolean(),
|
|
1097
|
+
header: DocumentationItemHeader
|
|
1057
1098
|
});
|
|
1058
|
-
var DocumentationPageDataV1 =
|
|
1059
|
-
blocks:
|
|
1099
|
+
var DocumentationPageDataV1 = z38.object({
|
|
1100
|
+
blocks: z38.array(PageBlockV1),
|
|
1060
1101
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1061
1102
|
});
|
|
1062
|
-
var DocumentationPageElementDataV1 =
|
|
1103
|
+
var DocumentationPageElementDataV1 = z38.object({
|
|
1063
1104
|
value: DocumentationPageDataV1
|
|
1064
1105
|
});
|
|
1065
|
-
var DocumentationPageDataV2 =
|
|
1106
|
+
var DocumentationPageDataV2 = z39.object({
|
|
1066
1107
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1067
1108
|
});
|
|
1068
|
-
var DocumentationPageElementDataV2 =
|
|
1109
|
+
var DocumentationPageElementDataV2 = z39.object({
|
|
1069
1110
|
value: DocumentationPageDataV2
|
|
1070
1111
|
});
|
|
1071
|
-
var DurationUnit =
|
|
1072
|
-
var DurationValue =
|
|
1112
|
+
var DurationUnit = z40.enum(["Ms"]);
|
|
1113
|
+
var DurationValue = z40.object({
|
|
1073
1114
|
unit: DurationUnit,
|
|
1074
|
-
measure:
|
|
1115
|
+
measure: z40.number()
|
|
1075
1116
|
});
|
|
1076
1117
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1077
|
-
var FigmaFileStructureNodeType =
|
|
1078
|
-
var FigmaFileStructureNodeBase =
|
|
1079
|
-
id:
|
|
1080
|
-
name:
|
|
1118
|
+
var FigmaFileStructureNodeType = z41.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1119
|
+
var FigmaFileStructureNodeBase = z41.object({
|
|
1120
|
+
id: z41.string(),
|
|
1121
|
+
name: z41.string(),
|
|
1081
1122
|
type: FigmaFileStructureNodeType,
|
|
1082
1123
|
size: SizeOrUndefined,
|
|
1083
|
-
parentComponentSetId:
|
|
1124
|
+
parentComponentSetId: z41.string().optional()
|
|
1084
1125
|
});
|
|
1085
1126
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1086
|
-
children:
|
|
1127
|
+
children: z41.lazy(() => FigmaFileStructureNode.array())
|
|
1087
1128
|
});
|
|
1088
|
-
var FigmaFileStructureStatistics =
|
|
1089
|
-
frames:
|
|
1090
|
-
components:
|
|
1091
|
-
componentSets:
|
|
1129
|
+
var FigmaFileStructureStatistics = z41.object({
|
|
1130
|
+
frames: z41.number().nullable().optional().transform((v) => v ?? 0),
|
|
1131
|
+
components: z41.number().nullable().optional().transform((v) => v ?? 0),
|
|
1132
|
+
componentSets: z41.number().nullable().optional().transform((v) => v ?? 0)
|
|
1092
1133
|
});
|
|
1093
|
-
var FigmaFileStructureElementData =
|
|
1094
|
-
value:
|
|
1134
|
+
var FigmaFileStructureElementData = z41.object({
|
|
1135
|
+
value: z41.object({
|
|
1095
1136
|
structure: FigmaFileStructureNode,
|
|
1096
1137
|
assetsInFile: FigmaFileStructureStatistics
|
|
1097
1138
|
})
|
|
1098
1139
|
});
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
nodeId: z39.string(),
|
|
1112
|
-
fileId: z39.string().optional(),
|
|
1113
|
-
valid: z39.boolean(),
|
|
1114
|
-
assetId: z39.string().optional(),
|
|
1115
|
-
assetScale: z39.number().optional(),
|
|
1116
|
-
assetWidth: z39.number().optional(),
|
|
1117
|
-
assetHeight: z39.number().optional(),
|
|
1118
|
-
assetUrl: z39.string().optional()
|
|
1119
|
-
});
|
|
1120
|
-
var FigmaNodeReferenceElementData = z39.object({
|
|
1140
|
+
var FigmaNodeReferenceData = z42.object({
|
|
1141
|
+
structureElementId: z42.string(),
|
|
1142
|
+
nodeId: z42.string(),
|
|
1143
|
+
fileId: z42.string().optional(),
|
|
1144
|
+
valid: z42.boolean(),
|
|
1145
|
+
assetId: z42.string().optional(),
|
|
1146
|
+
assetScale: z42.number().optional(),
|
|
1147
|
+
assetWidth: z42.number().optional(),
|
|
1148
|
+
assetHeight: z42.number().optional(),
|
|
1149
|
+
assetUrl: z42.string().optional()
|
|
1150
|
+
});
|
|
1151
|
+
var FigmaNodeReferenceElementData = z42.object({
|
|
1121
1152
|
value: FigmaNodeReferenceData
|
|
1122
1153
|
});
|
|
1123
|
-
var FontFamilyValue =
|
|
1154
|
+
var FontFamilyValue = z43.string();
|
|
1124
1155
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1125
|
-
var FontSizeUnit =
|
|
1126
|
-
var FontSizeValue =
|
|
1156
|
+
var FontSizeUnit = z44.enum(["Pixels", "Rem", "Percent"]);
|
|
1157
|
+
var FontSizeValue = z44.object({
|
|
1127
1158
|
unit: FontSizeUnit,
|
|
1128
|
-
measure:
|
|
1159
|
+
measure: z44.number()
|
|
1129
1160
|
});
|
|
1130
1161
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1131
|
-
var FontWeightValue =
|
|
1162
|
+
var FontWeightValue = z45.string();
|
|
1132
1163
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1133
|
-
var GradientType =
|
|
1134
|
-
var GradientStop =
|
|
1135
|
-
position:
|
|
1164
|
+
var GradientType = z46.enum(["Linear", "Radial", "Angular"]);
|
|
1165
|
+
var GradientStop = z46.object({
|
|
1166
|
+
position: z46.number(),
|
|
1136
1167
|
color: ColorTokenData
|
|
1137
1168
|
});
|
|
1138
|
-
var GradientLayerValue =
|
|
1169
|
+
var GradientLayerValue = z46.object({
|
|
1139
1170
|
from: Point2D,
|
|
1140
1171
|
to: Point2D,
|
|
1141
1172
|
type: GradientType,
|
|
1142
|
-
aspectRatio: nullishToOptional(
|
|
1173
|
+
aspectRatio: nullishToOptional(z46.number()),
|
|
1143
1174
|
// z.number(),
|
|
1144
|
-
stops:
|
|
1175
|
+
stops: z46.array(GradientStop).min(2)
|
|
1145
1176
|
});
|
|
1146
1177
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1147
|
-
var GradientTokenValue =
|
|
1178
|
+
var GradientTokenValue = z46.array(GradientLayerData);
|
|
1148
1179
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1149
|
-
var DocumentationGroupBehavior =
|
|
1150
|
-
var ElementGroupData =
|
|
1180
|
+
var DocumentationGroupBehavior = z47.enum(["Group", "Tabs"]);
|
|
1181
|
+
var ElementGroupData = z47.object({
|
|
1151
1182
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1152
1183
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1153
1184
|
});
|
|
1154
|
-
var ElementGroupElementData =
|
|
1185
|
+
var ElementGroupElementData = z47.object({
|
|
1155
1186
|
value: ElementGroupData.optional()
|
|
1156
1187
|
});
|
|
1157
|
-
var LetterSpacingUnit =
|
|
1158
|
-
var LetterSpacingValue =
|
|
1188
|
+
var LetterSpacingUnit = z48.enum(["Pixels", "Rem", "Percent"]);
|
|
1189
|
+
var LetterSpacingValue = z48.object({
|
|
1159
1190
|
unit: LetterSpacingUnit,
|
|
1160
|
-
measure:
|
|
1191
|
+
measure: z48.number()
|
|
1161
1192
|
});
|
|
1162
1193
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1163
|
-
var LineHeightUnit =
|
|
1164
|
-
var LineHeightValue =
|
|
1194
|
+
var LineHeightUnit = z49.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1195
|
+
var LineHeightValue = z49.object({
|
|
1165
1196
|
unit: LineHeightUnit,
|
|
1166
|
-
measure:
|
|
1197
|
+
measure: z49.number()
|
|
1167
1198
|
});
|
|
1168
1199
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1169
|
-
var ParagraphIndentUnit =
|
|
1170
|
-
var ParagraphIndentValue =
|
|
1200
|
+
var ParagraphIndentUnit = z50.enum(["Pixels", "Rem", "Percent"]);
|
|
1201
|
+
var ParagraphIndentValue = z50.object({
|
|
1171
1202
|
unit: ParagraphIndentUnit,
|
|
1172
|
-
measure:
|
|
1203
|
+
measure: z50.number()
|
|
1173
1204
|
});
|
|
1174
1205
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1175
|
-
var ParagraphSpacingUnit =
|
|
1176
|
-
var ParagraphSpacingValue =
|
|
1206
|
+
var ParagraphSpacingUnit = z51.enum(["Pixels", "Rem", "Percent"]);
|
|
1207
|
+
var ParagraphSpacingValue = z51.object({
|
|
1177
1208
|
unit: ParagraphSpacingUnit,
|
|
1178
|
-
measure:
|
|
1209
|
+
measure: z51.number()
|
|
1179
1210
|
});
|
|
1180
1211
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1181
|
-
var ProductCopyValue =
|
|
1212
|
+
var ProductCopyValue = z52.string();
|
|
1182
1213
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1183
|
-
var ShadowType =
|
|
1184
|
-
var ShadowLayerValue =
|
|
1214
|
+
var ShadowType = z53.enum(["Drop", "Inner"]);
|
|
1215
|
+
var ShadowLayerValue = z53.object({
|
|
1185
1216
|
color: ColorTokenData,
|
|
1186
|
-
x:
|
|
1187
|
-
y:
|
|
1188
|
-
radius:
|
|
1189
|
-
spread:
|
|
1217
|
+
x: z53.number(),
|
|
1218
|
+
y: z53.number(),
|
|
1219
|
+
radius: z53.number(),
|
|
1220
|
+
spread: z53.number(),
|
|
1190
1221
|
opacity: OpacityTokenData,
|
|
1191
1222
|
type: ShadowType
|
|
1192
1223
|
});
|
|
1193
1224
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1194
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1195
|
-
var SizeUnit =
|
|
1196
|
-
var SizeValue =
|
|
1225
|
+
var ShadowTokenData = tokenAliasOrValue(z53.array(ShadowTokenDataBase));
|
|
1226
|
+
var SizeUnit = z54.enum(["Pixels", "Rem", "Percent"]);
|
|
1227
|
+
var SizeValue = z54.object({
|
|
1197
1228
|
unit: SizeUnit,
|
|
1198
|
-
measure:
|
|
1229
|
+
measure: z54.number()
|
|
1199
1230
|
});
|
|
1200
1231
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1201
|
-
var SpaceUnit =
|
|
1202
|
-
var SpaceValue =
|
|
1232
|
+
var SpaceUnit = z55.enum(["Pixels", "Rem", "Percent"]);
|
|
1233
|
+
var SpaceValue = z55.object({
|
|
1203
1234
|
unit: SpaceUnit,
|
|
1204
|
-
measure:
|
|
1235
|
+
measure: z55.number()
|
|
1205
1236
|
});
|
|
1206
1237
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1207
|
-
var StringValue =
|
|
1238
|
+
var StringValue = z56.string();
|
|
1208
1239
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1209
|
-
var TextCase =
|
|
1240
|
+
var TextCase = z57.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1210
1241
|
var TextCaseValue = TextCase;
|
|
1211
1242
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1212
|
-
var TextDecoration =
|
|
1243
|
+
var TextDecoration = z58.enum(["None", "Underline", "Strikethrough"]);
|
|
1213
1244
|
var TextDecorationValue = TextDecoration;
|
|
1214
1245
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1215
|
-
var TypographyValue =
|
|
1246
|
+
var TypographyValue = z59.object({
|
|
1216
1247
|
fontSize: FontSizeTokenData,
|
|
1217
1248
|
fontFamily: FontFamilyTokenData,
|
|
1218
1249
|
fontWeight: FontWeightTokenData,
|
|
@@ -1224,67 +1255,64 @@ var TypographyValue = z56.object({
|
|
|
1224
1255
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1225
1256
|
});
|
|
1226
1257
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1227
|
-
var Visibility =
|
|
1258
|
+
var Visibility = z60.enum(["Hidden", "Visible"]);
|
|
1228
1259
|
var VisibilityValue = Visibility;
|
|
1229
1260
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1230
|
-
var ZIndexUnit =
|
|
1231
|
-
var ZIndexValue =
|
|
1261
|
+
var ZIndexUnit = z61.enum(["Raw"]);
|
|
1262
|
+
var ZIndexValue = z61.object({
|
|
1232
1263
|
unit: ZIndexUnit,
|
|
1233
|
-
measure:
|
|
1264
|
+
measure: z61.number()
|
|
1234
1265
|
});
|
|
1235
1266
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1236
|
-
var DesignElementOrigin =
|
|
1237
|
-
id:
|
|
1238
|
-
sourceId:
|
|
1239
|
-
name:
|
|
1240
|
-
});
|
|
1241
|
-
var DesignElementBase =
|
|
1242
|
-
id:
|
|
1243
|
-
persistentId:
|
|
1267
|
+
var DesignElementOrigin = z62.object({
|
|
1268
|
+
id: z62.string(),
|
|
1269
|
+
sourceId: z62.string(),
|
|
1270
|
+
name: z62.string()
|
|
1271
|
+
});
|
|
1272
|
+
var DesignElementBase = z62.object({
|
|
1273
|
+
id: z62.string(),
|
|
1274
|
+
persistentId: z62.string(),
|
|
1244
1275
|
meta: ObjectMeta,
|
|
1245
|
-
designSystemVersionId:
|
|
1246
|
-
createdAt:
|
|
1247
|
-
updatedAt:
|
|
1276
|
+
designSystemVersionId: z62.string(),
|
|
1277
|
+
createdAt: z62.date(),
|
|
1278
|
+
updatedAt: z62.date()
|
|
1248
1279
|
});
|
|
1249
1280
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1250
1281
|
origin: DesignElementOrigin
|
|
1251
1282
|
});
|
|
1252
|
-
var DesignElementGroupablePart =
|
|
1253
|
-
parentPersistentId:
|
|
1254
|
-
sortOrder:
|
|
1283
|
+
var DesignElementGroupablePart = z62.object({
|
|
1284
|
+
parentPersistentId: z62.string().optional(),
|
|
1285
|
+
sortOrder: z62.number()
|
|
1255
1286
|
});
|
|
1256
1287
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1257
1288
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1258
|
-
parentPersistentId:
|
|
1289
|
+
parentPersistentId: z62.string()
|
|
1259
1290
|
});
|
|
1260
|
-
var DesignElementBrandedPart =
|
|
1261
|
-
brandPersistentId:
|
|
1291
|
+
var DesignElementBrandedPart = z62.object({
|
|
1292
|
+
brandPersistentId: z62.string()
|
|
1262
1293
|
});
|
|
1263
|
-
var DesignElementSlugPart =
|
|
1264
|
-
slug:
|
|
1265
|
-
userSlug:
|
|
1294
|
+
var DesignElementSlugPart = z62.object({
|
|
1295
|
+
slug: z62.string().optional(),
|
|
1296
|
+
userSlug: z62.string().optional()
|
|
1266
1297
|
});
|
|
1267
|
-
var ComponentOriginPart =
|
|
1268
|
-
nodeId:
|
|
1269
|
-
width:
|
|
1270
|
-
height:
|
|
1298
|
+
var ComponentOriginPart = z63.object({
|
|
1299
|
+
nodeId: z63.string().optional(),
|
|
1300
|
+
width: z63.number().optional(),
|
|
1301
|
+
height: z63.number().optional()
|
|
1271
1302
|
});
|
|
1272
|
-
var ComponentAsset =
|
|
1273
|
-
assetId:
|
|
1274
|
-
assetPath:
|
|
1303
|
+
var ComponentAsset = z63.object({
|
|
1304
|
+
assetId: z63.string(),
|
|
1305
|
+
assetPath: z63.string()
|
|
1275
1306
|
});
|
|
1276
1307
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1277
1308
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1278
1309
|
origin: ComponentOrigin.optional(),
|
|
1279
1310
|
thumbnail: ComponentAsset,
|
|
1280
1311
|
svg: ComponentAsset.optional(),
|
|
1281
|
-
isAsset:
|
|
1312
|
+
isAsset: z63.boolean()
|
|
1282
1313
|
});
|
|
1283
|
-
function isImportedComponent(component) {
|
|
1284
|
-
return !!component.origin;
|
|
1285
|
-
}
|
|
1286
1314
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1287
|
-
shortPersistentId:
|
|
1315
|
+
shortPersistentId: z64.string(),
|
|
1288
1316
|
data: DocumentationPageDataV1
|
|
1289
1317
|
});
|
|
1290
1318
|
var DocumentationPageDTOV1 = DocumentationPageV1.omit({
|
|
@@ -1293,18 +1321,18 @@ var DocumentationPageDTOV1 = DocumentationPageV1.omit({
|
|
|
1293
1321
|
parentPersistentId: true,
|
|
1294
1322
|
sortOrder: true
|
|
1295
1323
|
}).extend(DocumentationPageV1.shape.data.shape).extend({
|
|
1296
|
-
title:
|
|
1297
|
-
path:
|
|
1324
|
+
title: z64.string(),
|
|
1325
|
+
path: z64.string()
|
|
1298
1326
|
});
|
|
1299
1327
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1300
|
-
shortPersistentId:
|
|
1328
|
+
shortPersistentId: z65.string(),
|
|
1301
1329
|
data: DocumentationPageDataV2
|
|
1302
1330
|
});
|
|
1303
|
-
var FigmaFileStructureOrigin =
|
|
1304
|
-
sourceId:
|
|
1305
|
-
fileId:
|
|
1331
|
+
var FigmaFileStructureOrigin = z66.object({
|
|
1332
|
+
sourceId: z66.string(),
|
|
1333
|
+
fileId: z66.string().optional()
|
|
1306
1334
|
});
|
|
1307
|
-
var FigmaFileStructureData =
|
|
1335
|
+
var FigmaFileStructureData = z66.object({
|
|
1308
1336
|
rootNode: FigmaFileStructureNode,
|
|
1309
1337
|
assetsInFile: FigmaFileStructureStatistics
|
|
1310
1338
|
});
|
|
@@ -1312,17 +1340,11 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1312
1340
|
origin: FigmaFileStructureOrigin,
|
|
1313
1341
|
data: FigmaFileStructureData
|
|
1314
1342
|
});
|
|
1315
|
-
function traverseStructure(node, action) {
|
|
1316
|
-
action(node);
|
|
1317
|
-
for (const child of node.children) {
|
|
1318
|
-
traverseStructure(child, action);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
1343
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1322
1344
|
data: FigmaNodeReferenceData
|
|
1323
1345
|
});
|
|
1324
1346
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1325
|
-
shortPersistentId:
|
|
1347
|
+
shortPersistentId: z67.string().optional(),
|
|
1326
1348
|
childType: DesignElementType,
|
|
1327
1349
|
data: ElementGroupData.optional()
|
|
1328
1350
|
});
|
|
@@ -1336,23 +1358,23 @@ var DocumentationGroupDTO = ElementGroup.omit({
|
|
|
1336
1358
|
data: true,
|
|
1337
1359
|
shortPersistentId: true
|
|
1338
1360
|
}).extend({
|
|
1339
|
-
title:
|
|
1340
|
-
isRoot:
|
|
1341
|
-
childrenIds:
|
|
1361
|
+
title: z67.string(),
|
|
1362
|
+
isRoot: z67.boolean(),
|
|
1363
|
+
childrenIds: z67.array(z67.string()),
|
|
1342
1364
|
groupBehavior: DocumentationGroupBehavior,
|
|
1343
1365
|
configuration: DocumentationItemConfiguration,
|
|
1344
|
-
shortPersistentId:
|
|
1366
|
+
shortPersistentId: z67.string()
|
|
1345
1367
|
});
|
|
1346
1368
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1347
1369
|
data: PageBlockDataV2
|
|
1348
1370
|
});
|
|
1349
|
-
var PageBlockEditorModelV2 =
|
|
1350
|
-
id:
|
|
1371
|
+
var PageBlockEditorModelV2 = z68.object({
|
|
1372
|
+
id: z68.string(),
|
|
1351
1373
|
data: PageBlockDataV2
|
|
1352
1374
|
});
|
|
1353
|
-
var DesignTokenOriginPart =
|
|
1354
|
-
referenceOriginId:
|
|
1355
|
-
referencePersistentId:
|
|
1375
|
+
var DesignTokenOriginPart = z69.object({
|
|
1376
|
+
referenceOriginId: z69.string().optional(),
|
|
1377
|
+
referencePersistentId: z69.string().optional()
|
|
1356
1378
|
});
|
|
1357
1379
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1358
1380
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1364,111 +1386,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1364
1386
|
brandPersistentId: true,
|
|
1365
1387
|
designSystemVersionId: true
|
|
1366
1388
|
});
|
|
1367
|
-
var BlurTokenTypedData =
|
|
1368
|
-
type:
|
|
1389
|
+
var BlurTokenTypedData = z69.object({
|
|
1390
|
+
type: z69.literal("Blur"),
|
|
1369
1391
|
data: BlurTokenData
|
|
1370
1392
|
});
|
|
1371
|
-
var ColorTokenTypedData =
|
|
1372
|
-
type:
|
|
1393
|
+
var ColorTokenTypedData = z69.object({
|
|
1394
|
+
type: z69.literal("Color"),
|
|
1373
1395
|
data: ColorTokenData
|
|
1374
1396
|
});
|
|
1375
|
-
var GradientTokenTypedData =
|
|
1376
|
-
type:
|
|
1397
|
+
var GradientTokenTypedData = z69.object({
|
|
1398
|
+
type: z69.literal("Gradient"),
|
|
1377
1399
|
data: GradientTokenData
|
|
1378
1400
|
});
|
|
1379
|
-
var OpacityTokenTypedData =
|
|
1380
|
-
type:
|
|
1401
|
+
var OpacityTokenTypedData = z69.object({
|
|
1402
|
+
type: z69.literal("Opacity"),
|
|
1381
1403
|
data: OpacityTokenData
|
|
1382
1404
|
});
|
|
1383
|
-
var ShadowTokenTypedData =
|
|
1384
|
-
type:
|
|
1405
|
+
var ShadowTokenTypedData = z69.object({
|
|
1406
|
+
type: z69.literal("Shadow"),
|
|
1385
1407
|
data: ShadowTokenData
|
|
1386
1408
|
});
|
|
1387
|
-
var TypographyTokenTypedData =
|
|
1388
|
-
type:
|
|
1409
|
+
var TypographyTokenTypedData = z69.object({
|
|
1410
|
+
type: z69.literal("Typography"),
|
|
1389
1411
|
data: TypographyTokenData
|
|
1390
1412
|
});
|
|
1391
|
-
var StringTokenTypedData =
|
|
1392
|
-
type:
|
|
1413
|
+
var StringTokenTypedData = z69.object({
|
|
1414
|
+
type: z69.literal("String"),
|
|
1393
1415
|
data: StringTokenData
|
|
1394
1416
|
});
|
|
1395
|
-
var DimensionTokenTypedData =
|
|
1396
|
-
type:
|
|
1417
|
+
var DimensionTokenTypedData = z69.object({
|
|
1418
|
+
type: z69.literal("Dimension"),
|
|
1397
1419
|
data: DimensionTokenData
|
|
1398
1420
|
});
|
|
1399
|
-
var FontSizeTokenTypedData =
|
|
1400
|
-
type:
|
|
1421
|
+
var FontSizeTokenTypedData = z69.object({
|
|
1422
|
+
type: z69.literal("FontSize"),
|
|
1401
1423
|
data: FontSizeTokenData
|
|
1402
1424
|
});
|
|
1403
|
-
var FontFamilyTokenTypedData =
|
|
1404
|
-
type:
|
|
1425
|
+
var FontFamilyTokenTypedData = z69.object({
|
|
1426
|
+
type: z69.literal("FontFamily"),
|
|
1405
1427
|
data: FontFamilyTokenData
|
|
1406
1428
|
});
|
|
1407
|
-
var FontWeightTokenTypedData =
|
|
1408
|
-
type:
|
|
1429
|
+
var FontWeightTokenTypedData = z69.object({
|
|
1430
|
+
type: z69.literal("FontWeight"),
|
|
1409
1431
|
data: FontWeightTokenData
|
|
1410
1432
|
});
|
|
1411
|
-
var LetterSpacingTokenTypedData =
|
|
1412
|
-
type:
|
|
1433
|
+
var LetterSpacingTokenTypedData = z69.object({
|
|
1434
|
+
type: z69.literal("LetterSpacing"),
|
|
1413
1435
|
data: LetterSpacingTokenData
|
|
1414
1436
|
});
|
|
1415
|
-
var LineHeightTokenTypedData =
|
|
1416
|
-
type:
|
|
1437
|
+
var LineHeightTokenTypedData = z69.object({
|
|
1438
|
+
type: z69.literal("LineHeight"),
|
|
1417
1439
|
data: LineHeightTokenData
|
|
1418
1440
|
});
|
|
1419
|
-
var ParagraphSpacingTokenTypedData =
|
|
1420
|
-
type:
|
|
1441
|
+
var ParagraphSpacingTokenTypedData = z69.object({
|
|
1442
|
+
type: z69.literal("ParagraphSpacing"),
|
|
1421
1443
|
data: ParagraphSpacingTokenData
|
|
1422
1444
|
});
|
|
1423
|
-
var TextCaseTokenTypedData =
|
|
1424
|
-
type:
|
|
1445
|
+
var TextCaseTokenTypedData = z69.object({
|
|
1446
|
+
type: z69.literal("TextCase"),
|
|
1425
1447
|
data: TextCaseTokenData
|
|
1426
1448
|
});
|
|
1427
|
-
var TextDecorationTokenTypedData =
|
|
1428
|
-
type:
|
|
1449
|
+
var TextDecorationTokenTypedData = z69.object({
|
|
1450
|
+
type: z69.literal("TextDecoration"),
|
|
1429
1451
|
data: TextDecorationTokenData
|
|
1430
1452
|
});
|
|
1431
|
-
var BorderRadiusTokenTypedData =
|
|
1432
|
-
type:
|
|
1453
|
+
var BorderRadiusTokenTypedData = z69.object({
|
|
1454
|
+
type: z69.literal("BorderRadius"),
|
|
1433
1455
|
data: BorderRadiusTokenData
|
|
1434
1456
|
});
|
|
1435
|
-
var BorderWidthTokenTypedData =
|
|
1436
|
-
type:
|
|
1457
|
+
var BorderWidthTokenTypedData = z69.object({
|
|
1458
|
+
type: z69.literal("BorderWidth"),
|
|
1437
1459
|
data: BorderWidthTokenData
|
|
1438
1460
|
});
|
|
1439
|
-
var BorderTypedData =
|
|
1440
|
-
type:
|
|
1461
|
+
var BorderTypedData = z69.object({
|
|
1462
|
+
type: z69.literal("Border"),
|
|
1441
1463
|
data: BorderTokenData
|
|
1442
1464
|
});
|
|
1443
|
-
var ProductCopyTypedData =
|
|
1444
|
-
type:
|
|
1465
|
+
var ProductCopyTypedData = z69.object({
|
|
1466
|
+
type: z69.literal("ProductCopy"),
|
|
1445
1467
|
data: ProductCopyTokenData
|
|
1446
1468
|
});
|
|
1447
|
-
var SizeTypedData =
|
|
1448
|
-
type:
|
|
1469
|
+
var SizeTypedData = z69.object({
|
|
1470
|
+
type: z69.literal("Size"),
|
|
1449
1471
|
data: SizeTokenData
|
|
1450
1472
|
});
|
|
1451
|
-
var SpaceTypedData =
|
|
1452
|
-
type:
|
|
1473
|
+
var SpaceTypedData = z69.object({
|
|
1474
|
+
type: z69.literal("Space"),
|
|
1453
1475
|
data: SpaceTokenData
|
|
1454
1476
|
});
|
|
1455
|
-
var VisibilityTypedData =
|
|
1456
|
-
type:
|
|
1477
|
+
var VisibilityTypedData = z69.object({
|
|
1478
|
+
type: z69.literal("Visibility"),
|
|
1457
1479
|
data: VisibilityTokenData
|
|
1458
1480
|
});
|
|
1459
|
-
var ZIndexTypedData =
|
|
1460
|
-
type:
|
|
1481
|
+
var ZIndexTypedData = z69.object({
|
|
1482
|
+
type: z69.literal("ZIndex"),
|
|
1461
1483
|
data: ZIndexTokenData
|
|
1462
1484
|
});
|
|
1463
|
-
var DurationTypedData =
|
|
1464
|
-
type:
|
|
1485
|
+
var DurationTypedData = z69.object({
|
|
1486
|
+
type: z69.literal("Duration"),
|
|
1465
1487
|
data: DurationTokenData
|
|
1466
1488
|
});
|
|
1467
|
-
var FontTypedData =
|
|
1468
|
-
type:
|
|
1469
|
-
data:
|
|
1489
|
+
var FontTypedData = z69.object({
|
|
1490
|
+
type: z69.literal("Font"),
|
|
1491
|
+
data: z69.record(z69.any())
|
|
1470
1492
|
});
|
|
1471
|
-
var DesignTokenTypedData =
|
|
1493
|
+
var DesignTokenTypedData = z69.discriminatedUnion("type", [
|
|
1472
1494
|
BlurTokenTypedData,
|
|
1473
1495
|
BorderRadiusTokenTypedData,
|
|
1474
1496
|
BorderWidthTokenTypedData,
|
|
@@ -1498,84 +1520,69 @@ var DesignTokenTypedData = z66.discriminatedUnion("type", [
|
|
|
1498
1520
|
]);
|
|
1499
1521
|
var DesignToken = DesignTokenTypedData.and(DesignTokenBase);
|
|
1500
1522
|
var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
1501
|
-
function extractTokenTypedData(source) {
|
|
1502
|
-
return {
|
|
1503
|
-
type: source.type,
|
|
1504
|
-
data: source.data
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
function isImportedDesignToken(designToken) {
|
|
1508
|
-
return !!designToken.origin;
|
|
1509
|
-
}
|
|
1510
|
-
function isDesignTokenOfType(designToken, type) {
|
|
1511
|
-
return designToken.type === type;
|
|
1512
|
-
}
|
|
1513
|
-
function designTokenTypeFilter(type) {
|
|
1514
|
-
return (designToken) => isDesignTokenOfType(designToken, type);
|
|
1515
|
-
}
|
|
1516
1523
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1517
1524
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1518
1525
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1519
|
-
|
|
1520
|
-
tokenPersistentId:
|
|
1526
|
+
z70.object({
|
|
1527
|
+
tokenPersistentId: z70.string(),
|
|
1521
1528
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1522
1529
|
})
|
|
1523
1530
|
);
|
|
1524
|
-
var ThemeElementData =
|
|
1525
|
-
value:
|
|
1526
|
-
overrides:
|
|
1531
|
+
var ThemeElementData = z70.object({
|
|
1532
|
+
value: z70.object({
|
|
1533
|
+
overrides: z70.array(ThemeOverride)
|
|
1527
1534
|
})
|
|
1528
1535
|
});
|
|
1529
|
-
var ThemeOriginPart =
|
|
1530
|
-
var ThemeOriginObject =
|
|
1531
|
-
id:
|
|
1532
|
-
name:
|
|
1536
|
+
var ThemeOriginPart = z70.object({});
|
|
1537
|
+
var ThemeOriginObject = z70.object({
|
|
1538
|
+
id: z70.string(),
|
|
1539
|
+
name: z70.string()
|
|
1533
1540
|
});
|
|
1534
|
-
var ThemeOriginSource =
|
|
1535
|
-
sourceId:
|
|
1536
|
-
sourceObjects:
|
|
1541
|
+
var ThemeOriginSource = z70.object({
|
|
1542
|
+
sourceId: z70.string(),
|
|
1543
|
+
sourceObjects: z70.array(ThemeOriginObject)
|
|
1537
1544
|
});
|
|
1538
|
-
var ThemeOrigin =
|
|
1539
|
-
sources:
|
|
1545
|
+
var ThemeOrigin = z70.object({
|
|
1546
|
+
sources: z70.array(ThemeOriginSource)
|
|
1540
1547
|
});
|
|
1541
1548
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1542
1549
|
origin: ThemeOrigin.optional(),
|
|
1543
|
-
overrides:
|
|
1550
|
+
overrides: z70.array(ThemeOverride)
|
|
1544
1551
|
});
|
|
1545
|
-
var FigmaFileDownloadScope =
|
|
1546
|
-
styles:
|
|
1547
|
-
components:
|
|
1548
|
-
currentVersion:
|
|
1549
|
-
publishedVersion:
|
|
1550
|
-
downloadChunkSize:
|
|
1552
|
+
var FigmaFileDownloadScope = z71.object({
|
|
1553
|
+
styles: z71.boolean(),
|
|
1554
|
+
components: z71.boolean(),
|
|
1555
|
+
currentVersion: z71.literal("__latest__").nullable(),
|
|
1556
|
+
publishedVersion: z71.string().nullable(),
|
|
1557
|
+
downloadChunkSize: z71.number().optional()
|
|
1551
1558
|
});
|
|
1552
|
-
var FigmaFileAccessData =
|
|
1553
|
-
accessToken:
|
|
1559
|
+
var FigmaFileAccessData = z71.object({
|
|
1560
|
+
accessToken: z71.string()
|
|
1554
1561
|
});
|
|
1555
|
-
var ImportFunctionInput =
|
|
1556
|
-
importJobId:
|
|
1557
|
-
importContextId:
|
|
1558
|
-
designSystemId:
|
|
1562
|
+
var ImportFunctionInput = z72.object({
|
|
1563
|
+
importJobId: z72.string(),
|
|
1564
|
+
importContextId: z72.string(),
|
|
1565
|
+
designSystemId: z72.string().optional()
|
|
1559
1566
|
});
|
|
1560
|
-
var ImportedFigmaSourceData =
|
|
1561
|
-
sourceId:
|
|
1567
|
+
var ImportedFigmaSourceData = z72.object({
|
|
1568
|
+
sourceId: z72.string(),
|
|
1562
1569
|
figmaRemote: DataSourceFigmaRemote
|
|
1563
1570
|
});
|
|
1564
|
-
var FigmaImportBaseContext =
|
|
1565
|
-
designSystemId:
|
|
1571
|
+
var FigmaImportBaseContext = z72.object({
|
|
1572
|
+
designSystemId: z72.string(),
|
|
1566
1573
|
/**
|
|
1567
1574
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1568
1575
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1569
1576
|
*
|
|
1570
1577
|
* fileId: file data
|
|
1571
1578
|
*/
|
|
1572
|
-
fileAccessByFileId:
|
|
1579
|
+
fileAccessByFileId: z72.record(FigmaFileAccessData),
|
|
1573
1580
|
/**
|
|
1574
1581
|
* Figma source data for which import was requested
|
|
1575
1582
|
*
|
|
1576
1583
|
* sourceId: source data
|
|
1577
1584
|
*/
|
|
1578
|
-
importedSourceDataBySourceId:
|
|
1585
|
+
importedSourceDataBySourceId: z72.record(ImportedFigmaSourceData)
|
|
1579
1586
|
});
|
|
1580
1587
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1581
1588
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1587,65 +1594,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
|
|
|
1587
1594
|
*
|
|
1588
1595
|
* File id -> file download scope
|
|
1589
1596
|
*/
|
|
1590
|
-
fileDownloadScopesByFileId:
|
|
1597
|
+
fileDownloadScopesByFileId: z72.record(FigmaFileDownloadScope),
|
|
1591
1598
|
/**
|
|
1592
1599
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1593
1600
|
* imported again.
|
|
1594
1601
|
*
|
|
1595
1602
|
* Source id -> import metadata
|
|
1596
1603
|
*/
|
|
1597
|
-
changedImportedSourceDataBySourceId:
|
|
1604
|
+
changedImportedSourceDataBySourceId: z72.record(ChangedImportedFigmaSourceData)
|
|
1598
1605
|
});
|
|
1599
|
-
var ImageImportModelType =
|
|
1600
|
-
var ImageImportModelBase =
|
|
1606
|
+
var ImageImportModelType = z73.enum(["Url", "FigmaRender"]);
|
|
1607
|
+
var ImageImportModelBase = z73.object({
|
|
1601
1608
|
scope: AssetScope
|
|
1602
1609
|
});
|
|
1603
1610
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1604
|
-
type:
|
|
1605
|
-
url:
|
|
1606
|
-
originKey:
|
|
1607
|
-
extension:
|
|
1611
|
+
type: z73.literal(ImageImportModelType.enum.Url),
|
|
1612
|
+
url: z73.string(),
|
|
1613
|
+
originKey: z73.string(),
|
|
1614
|
+
extension: z73.enum(["png", "svg", "jpg"])
|
|
1608
1615
|
});
|
|
1609
|
-
var FigmaRenderFormat =
|
|
1616
|
+
var FigmaRenderFormat = z73.enum(["Svg", "Png"]);
|
|
1610
1617
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1611
|
-
type:
|
|
1612
|
-
fileId:
|
|
1613
|
-
fileVersionId:
|
|
1614
|
-
nodeId:
|
|
1615
|
-
originKey:
|
|
1618
|
+
type: z73.literal(ImageImportModelType.enum.FigmaRender),
|
|
1619
|
+
fileId: z73.string(),
|
|
1620
|
+
fileVersionId: z73.string().optional(),
|
|
1621
|
+
nodeId: z73.string(),
|
|
1622
|
+
originKey: z73.string()
|
|
1616
1623
|
});
|
|
1617
1624
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1618
|
-
format:
|
|
1619
|
-
scale:
|
|
1625
|
+
format: z73.literal(FigmaRenderFormat.enum.Png),
|
|
1626
|
+
scale: z73.number()
|
|
1620
1627
|
});
|
|
1621
1628
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1622
|
-
format:
|
|
1629
|
+
format: z73.literal(FigmaRenderFormat.enum.Svg)
|
|
1623
1630
|
});
|
|
1624
|
-
var FigmaRenderImportModel =
|
|
1631
|
+
var FigmaRenderImportModel = z73.discriminatedUnion("format", [
|
|
1625
1632
|
FigmaPngRenderImportModel,
|
|
1626
1633
|
FigmaSvgRenderImportModel
|
|
1627
1634
|
]);
|
|
1628
|
-
var ImageImportModel =
|
|
1629
|
-
var ImportModelBase =
|
|
1630
|
-
id:
|
|
1635
|
+
var ImageImportModel = z73.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1636
|
+
var ImportModelBase = z74.object({
|
|
1637
|
+
id: z74.string(),
|
|
1631
1638
|
meta: ObjectMeta,
|
|
1632
1639
|
origin: DesignElementOrigin,
|
|
1633
|
-
brandPersistentId:
|
|
1634
|
-
sortOrder:
|
|
1640
|
+
brandPersistentId: z74.string(),
|
|
1641
|
+
sortOrder: z74.number()
|
|
1635
1642
|
});
|
|
1636
1643
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1637
1644
|
brandPersistentId: true,
|
|
1638
1645
|
origin: true,
|
|
1639
1646
|
sortOrder: true
|
|
1640
1647
|
}).extend({
|
|
1641
|
-
originId:
|
|
1642
|
-
originMetadata:
|
|
1648
|
+
originId: z74.string(),
|
|
1649
|
+
originMetadata: z74.record(z74.any())
|
|
1643
1650
|
});
|
|
1644
|
-
var ComponentImportModelPart =
|
|
1651
|
+
var ComponentImportModelPart = z75.object({
|
|
1645
1652
|
thumbnail: ImageImportModel
|
|
1646
1653
|
});
|
|
1647
1654
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1648
|
-
isAsset:
|
|
1655
|
+
isAsset: z75.boolean(),
|
|
1649
1656
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1650
1657
|
origin: ComponentOrigin
|
|
1651
1658
|
});
|
|
@@ -1657,44 +1664,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1657
1664
|
originMetadata: ComponentOriginPart
|
|
1658
1665
|
});
|
|
1659
1666
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1660
|
-
|
|
1661
|
-
id:
|
|
1667
|
+
z76.object({
|
|
1668
|
+
id: z76.string(),
|
|
1662
1669
|
meta: ObjectMeta
|
|
1663
1670
|
})
|
|
1664
1671
|
);
|
|
1665
1672
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1666
|
-
|
|
1673
|
+
z76.object({
|
|
1667
1674
|
origin: ThemeOverrideOrigin
|
|
1668
1675
|
})
|
|
1669
1676
|
);
|
|
1670
1677
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1671
|
-
|
|
1672
|
-
originId:
|
|
1678
|
+
z76.object({
|
|
1679
|
+
originId: z76.string(),
|
|
1673
1680
|
originMetadata: ThemeOverrideOriginPart
|
|
1674
1681
|
})
|
|
1675
1682
|
);
|
|
1676
|
-
var ThemeImportModel =
|
|
1683
|
+
var ThemeImportModel = z76.object({
|
|
1677
1684
|
meta: ObjectMeta,
|
|
1678
|
-
brandPersistentId:
|
|
1685
|
+
brandPersistentId: z76.string(),
|
|
1679
1686
|
originSource: ThemeOriginSource,
|
|
1680
|
-
overrides:
|
|
1681
|
-
sortOrder:
|
|
1687
|
+
overrides: z76.array(ThemeOverrideImportModel),
|
|
1688
|
+
sortOrder: z76.number()
|
|
1682
1689
|
});
|
|
1683
|
-
var ThemeImportModelInput =
|
|
1690
|
+
var ThemeImportModelInput = z76.object({
|
|
1684
1691
|
meta: ObjectMeta,
|
|
1685
|
-
originObjects:
|
|
1686
|
-
overrides:
|
|
1692
|
+
originObjects: z76.array(ThemeOriginObject),
|
|
1693
|
+
overrides: z76.array(ThemeOverrideImportModelInput)
|
|
1687
1694
|
});
|
|
1688
|
-
var ThemeUpdateImportModel =
|
|
1689
|
-
themePersistentId:
|
|
1690
|
-
overrides:
|
|
1695
|
+
var ThemeUpdateImportModel = z76.object({
|
|
1696
|
+
themePersistentId: z76.string(),
|
|
1697
|
+
overrides: z76.array(ThemeOverrideImportModel)
|
|
1691
1698
|
});
|
|
1692
|
-
var ThemeUpdateImportModelInput =
|
|
1693
|
-
themePersistentId:
|
|
1694
|
-
overrides:
|
|
1699
|
+
var ThemeUpdateImportModelInput = z76.object({
|
|
1700
|
+
themePersistentId: z76.string(),
|
|
1701
|
+
overrides: z76.array(ThemeOverrideImportModelInput)
|
|
1695
1702
|
});
|
|
1696
|
-
var DesignTokenImportModelPart =
|
|
1697
|
-
collection:
|
|
1703
|
+
var DesignTokenImportModelPart = z77.object({
|
|
1704
|
+
collection: z77.string().optional()
|
|
1698
1705
|
});
|
|
1699
1706
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1700
1707
|
origin: DesignTokenOrigin
|
|
@@ -1704,20 +1711,14 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
|
|
|
1704
1711
|
});
|
|
1705
1712
|
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
1706
1713
|
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
1707
|
-
function isDesignTokenImportModelOfType(designToken, type) {
|
|
1708
|
-
return designToken.type === type;
|
|
1709
|
-
}
|
|
1710
|
-
function designTokenImportModelTypeFilter(type) {
|
|
1711
|
-
return (designToken) => isDesignTokenImportModelOfType(designToken, type);
|
|
1712
|
-
}
|
|
1713
1714
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
1714
1715
|
image: FigmaPngRenderImportModel
|
|
1715
1716
|
});
|
|
1716
1717
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1717
|
-
children:
|
|
1718
|
+
children: z78.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1718
1719
|
});
|
|
1719
|
-
var FigmaFileStructureImportModelPart =
|
|
1720
|
-
data:
|
|
1720
|
+
var FigmaFileStructureImportModelPart = z78.object({
|
|
1721
|
+
data: z78.object({
|
|
1721
1722
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1722
1723
|
assetsInFile: FigmaFileStructureStatistics
|
|
1723
1724
|
})
|
|
@@ -1728,51 +1729,31 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1728
1729
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1729
1730
|
FigmaFileStructureImportModelPart.shape
|
|
1730
1731
|
).extend({
|
|
1731
|
-
fileVersionId:
|
|
1732
|
+
fileVersionId: z78.string()
|
|
1732
1733
|
});
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
}
|
|
1738
|
-
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
1739
|
-
map.set(node.id, node);
|
|
1740
|
-
for (const child of node.children)
|
|
1741
|
-
recursiveFigmaFileStructureToMap2(child, map);
|
|
1742
|
-
}
|
|
1743
|
-
var DataSourceImportModel = z76.object({
|
|
1744
|
-
id: z76.string(),
|
|
1745
|
-
fileName: z76.string().optional(),
|
|
1746
|
-
thumbnailUrl: z76.string().optional()
|
|
1734
|
+
var DataSourceImportModel = z79.object({
|
|
1735
|
+
id: z79.string(),
|
|
1736
|
+
fileName: z79.string().optional(),
|
|
1737
|
+
thumbnailUrl: z79.string().optional()
|
|
1747
1738
|
});
|
|
1748
|
-
var ImportModelInputCollection =
|
|
1739
|
+
var ImportModelInputCollection = z80.object({
|
|
1749
1740
|
source: DataSourceImportModel,
|
|
1750
|
-
tokens:
|
|
1751
|
-
components:
|
|
1752
|
-
assets:
|
|
1753
|
-
themeUpdates:
|
|
1754
|
-
themes:
|
|
1741
|
+
tokens: z80.array(DesignTokenImportModelInput).default([]),
|
|
1742
|
+
components: z80.array(ComponentImportModelInput).default([]),
|
|
1743
|
+
assets: z80.array(AssetImportModelInput).default([]),
|
|
1744
|
+
themeUpdates: z80.array(ThemeUpdateImportModelInput).default([]),
|
|
1745
|
+
themes: z80.array(ThemeImportModelInput).default([]),
|
|
1755
1746
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1756
1747
|
});
|
|
1757
|
-
var ImportModelCollection =
|
|
1758
|
-
sources:
|
|
1759
|
-
tokens:
|
|
1760
|
-
components:
|
|
1761
|
-
themeUpdates:
|
|
1762
|
-
themes:
|
|
1763
|
-
figmaFileStructures:
|
|
1748
|
+
var ImportModelCollection = z80.object({
|
|
1749
|
+
sources: z80.array(DataSourceImportModel),
|
|
1750
|
+
tokens: z80.array(DesignTokenImportModel).default([]),
|
|
1751
|
+
components: z80.array(ComponentImportModel).default([]),
|
|
1752
|
+
themeUpdates: z80.array(ThemeUpdateImportModel).default([]),
|
|
1753
|
+
themes: z80.array(ThemeImportModel).default([]),
|
|
1754
|
+
figmaFileStructures: z80.array(FigmaFileStructureImportModel)
|
|
1764
1755
|
});
|
|
1765
|
-
|
|
1766
|
-
return {
|
|
1767
|
-
sources: [...lhs.sources, ...rhs.sources],
|
|
1768
|
-
tokens: [...lhs.tokens, ...rhs.tokens],
|
|
1769
|
-
components: [...lhs.components, ...rhs.components],
|
|
1770
|
-
themeUpdates: [...lhs.themeUpdates, ...rhs.themeUpdates],
|
|
1771
|
-
themes: [...lhs.themes, ...rhs.themes],
|
|
1772
|
-
figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures]
|
|
1773
|
-
};
|
|
1774
|
-
}
|
|
1775
|
-
var ImportWarningType = z78.enum([
|
|
1756
|
+
var ImportWarningType = z81.enum([
|
|
1776
1757
|
"NoVersionFound",
|
|
1777
1758
|
"UnsupportedFill",
|
|
1778
1759
|
"UnsupportedStroke",
|
|
@@ -1786,25 +1767,25 @@ var ImportWarningType = z78.enum([
|
|
|
1786
1767
|
"DuplicateImportedStyleId",
|
|
1787
1768
|
"DuplicateImportedStylePath"
|
|
1788
1769
|
]);
|
|
1789
|
-
var ImportWarning =
|
|
1770
|
+
var ImportWarning = z81.object({
|
|
1790
1771
|
warningType: ImportWarningType,
|
|
1791
|
-
componentId:
|
|
1792
|
-
componentName:
|
|
1793
|
-
styleId:
|
|
1794
|
-
styleName:
|
|
1795
|
-
unsupportedStyleValueType:
|
|
1772
|
+
componentId: z81.string().optional(),
|
|
1773
|
+
componentName: z81.string().optional(),
|
|
1774
|
+
styleId: z81.string().optional(),
|
|
1775
|
+
styleName: z81.string().optional(),
|
|
1776
|
+
unsupportedStyleValueType: z81.string().optional()
|
|
1796
1777
|
});
|
|
1797
|
-
var FileStructureStats =
|
|
1778
|
+
var FileStructureStats = z82.object({
|
|
1798
1779
|
frames: zeroNumberByDefault2(),
|
|
1799
1780
|
components: zeroNumberByDefault2(),
|
|
1800
1781
|
componentSets: zeroNumberByDefault2()
|
|
1801
1782
|
});
|
|
1802
1783
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1803
1784
|
// Backward compatibility
|
|
1804
|
-
|
|
1785
|
+
z82.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1805
1786
|
);
|
|
1806
|
-
var SourceImportSummaryByTokenType =
|
|
1807
|
-
var SourceImportTokenSummary =
|
|
1787
|
+
var SourceImportSummaryByTokenType = z82.record(SourceImportSummaryByTokenTypeKey, z82.number());
|
|
1788
|
+
var SourceImportTokenSummary = z82.object({
|
|
1808
1789
|
tokensCreated: zeroNumberByDefault2(),
|
|
1809
1790
|
tokensUpdated: zeroNumberByDefault2(),
|
|
1810
1791
|
tokensDeleted: zeroNumberByDefault2(),
|
|
@@ -1812,7 +1793,7 @@ var SourceImportTokenSummary = z79.object({
|
|
|
1812
1793
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1813
1794
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1814
1795
|
});
|
|
1815
|
-
var SourceImportComponentSummary =
|
|
1796
|
+
var SourceImportComponentSummary = z82.object({
|
|
1816
1797
|
componentsCreated: zeroNumberByDefault2(),
|
|
1817
1798
|
componentsUpdated: zeroNumberByDefault2(),
|
|
1818
1799
|
componentsDeleted: zeroNumberByDefault2(),
|
|
@@ -1820,54 +1801,54 @@ var SourceImportComponentSummary = z79.object({
|
|
|
1820
1801
|
componentAssetsUpdated: zeroNumberByDefault2(),
|
|
1821
1802
|
componentAssetsDeleted: zeroNumberByDefault2()
|
|
1822
1803
|
});
|
|
1823
|
-
var SourceImportFrameSummary =
|
|
1804
|
+
var SourceImportFrameSummary = z82.object({
|
|
1824
1805
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1825
|
-
invalidReferencesCount: nullishToOptional(
|
|
1826
|
-
});
|
|
1827
|
-
var SourceImportSummary =
|
|
1828
|
-
sourceId: nullishToOptional(
|
|
1829
|
-
brandId: nullishToOptional(
|
|
1830
|
-
versionId: nullishToOptional(
|
|
1831
|
-
error: nullishToOptional(
|
|
1832
|
-
isFailed:
|
|
1833
|
-
warnings:
|
|
1806
|
+
invalidReferencesCount: nullishToOptional(z82.number().optional())
|
|
1807
|
+
});
|
|
1808
|
+
var SourceImportSummary = z82.object({
|
|
1809
|
+
sourceId: nullishToOptional(z82.string()),
|
|
1810
|
+
brandId: nullishToOptional(z82.string()),
|
|
1811
|
+
versionId: nullishToOptional(z82.string()),
|
|
1812
|
+
error: nullishToOptional(z82.any()),
|
|
1813
|
+
isFailed: z82.boolean(),
|
|
1814
|
+
warnings: z82.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1834
1815
|
...SourceImportTokenSummary.shape,
|
|
1835
1816
|
...SourceImportComponentSummary.shape,
|
|
1836
1817
|
...FileStructureStats.shape
|
|
1837
1818
|
});
|
|
1838
1819
|
function zeroNumberByDefault2() {
|
|
1839
|
-
return
|
|
1820
|
+
return z82.number().nullish().transform((v) => v ?? 0);
|
|
1840
1821
|
}
|
|
1841
|
-
var PageBlockDefinitionAppearance =
|
|
1842
|
-
isBordered:
|
|
1843
|
-
hasBackground:
|
|
1844
|
-
isEditorPresentationDifferent:
|
|
1845
|
-
});
|
|
1846
|
-
var PageBlockDefinitionLayoutType =
|
|
1847
|
-
var PageBlockDefinitionLayoutGap =
|
|
1848
|
-
var PageBlockDefinitionLayoutAlign =
|
|
1849
|
-
var PageBlockDefinitionLayoutResizing =
|
|
1850
|
-
var PageBlockDefinitionLayoutBase =
|
|
1822
|
+
var PageBlockDefinitionAppearance = z83.object({
|
|
1823
|
+
isBordered: z83.boolean().optional(),
|
|
1824
|
+
hasBackground: z83.boolean().optional(),
|
|
1825
|
+
isEditorPresentationDifferent: z83.boolean().optional()
|
|
1826
|
+
});
|
|
1827
|
+
var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
|
|
1828
|
+
var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
|
|
1829
|
+
var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
|
|
1830
|
+
var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
|
|
1831
|
+
var PageBlockDefinitionLayoutBase = z84.object({
|
|
1851
1832
|
type: PageBlockDefinitionLayoutType,
|
|
1852
1833
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1853
1834
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1854
1835
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1855
1836
|
});
|
|
1856
1837
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1857
|
-
children:
|
|
1858
|
-
});
|
|
1859
|
-
var PageBlockDefinitionVariant =
|
|
1860
|
-
id:
|
|
1861
|
-
name:
|
|
1862
|
-
image:
|
|
1863
|
-
description:
|
|
1864
|
-
documentationLink:
|
|
1838
|
+
children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
|
|
1839
|
+
});
|
|
1840
|
+
var PageBlockDefinitionVariant = z84.object({
|
|
1841
|
+
id: z84.string(),
|
|
1842
|
+
name: z84.string(),
|
|
1843
|
+
image: z84.string().optional(),
|
|
1844
|
+
description: z84.string().optional(),
|
|
1845
|
+
documentationLink: z84.string().optional(),
|
|
1865
1846
|
layout: PageBlockDefinitionLayout,
|
|
1866
|
-
maxColumns:
|
|
1867
|
-
defaultColumns:
|
|
1847
|
+
maxColumns: z84.number().optional(),
|
|
1848
|
+
defaultColumns: z84.number().optional(),
|
|
1868
1849
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1869
1850
|
});
|
|
1870
|
-
var PageBlockDefinitionPropertyType =
|
|
1851
|
+
var PageBlockDefinitionPropertyType = z85.enum([
|
|
1871
1852
|
"RichText",
|
|
1872
1853
|
"MultiRichText",
|
|
1873
1854
|
"Text",
|
|
@@ -1893,7 +1874,7 @@ var PageBlockDefinitionPropertyType = z82.enum([
|
|
|
1893
1874
|
"Storybook",
|
|
1894
1875
|
"Color"
|
|
1895
1876
|
]);
|
|
1896
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
1877
|
+
var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
|
|
1897
1878
|
"Title1",
|
|
1898
1879
|
"Title2",
|
|
1899
1880
|
"Title3",
|
|
@@ -1903,8 +1884,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z82.enum([
|
|
|
1903
1884
|
"Callout",
|
|
1904
1885
|
"Default"
|
|
1905
1886
|
]);
|
|
1906
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
1907
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
1887
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
|
|
1888
|
+
var PageBlockDefinitionTextPropertyStyle = z85.enum([
|
|
1908
1889
|
"Title1",
|
|
1909
1890
|
"Title2",
|
|
1910
1891
|
"Title3",
|
|
@@ -1917,36 +1898,36 @@ var PageBlockDefinitionTextPropertyStyle = z82.enum([
|
|
|
1917
1898
|
"SmallBold",
|
|
1918
1899
|
"SmallSemibold"
|
|
1919
1900
|
]);
|
|
1920
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
1921
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
1901
|
+
var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
1902
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
|
|
1922
1903
|
"SegmentedControl",
|
|
1923
1904
|
"ToggleButton",
|
|
1924
1905
|
"Select",
|
|
1925
1906
|
"Checkbox"
|
|
1926
1907
|
]);
|
|
1927
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
1928
|
-
var PageBlockDefinitionPropertyOptions =
|
|
1908
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
1909
|
+
var PageBlockDefinitionPropertyOptions = z85.object({
|
|
1929
1910
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional(),
|
|
1930
1911
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional(),
|
|
1931
1912
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
1932
|
-
placeholder:
|
|
1933
|
-
}).and(
|
|
1934
|
-
var PageBlockDefinitionProperty =
|
|
1935
|
-
id:
|
|
1936
|
-
name:
|
|
1913
|
+
placeholder: z85.string().optional()
|
|
1914
|
+
}).and(z85.record(z85.any()));
|
|
1915
|
+
var PageBlockDefinitionProperty = z85.object({
|
|
1916
|
+
id: z85.string(),
|
|
1917
|
+
name: z85.string(),
|
|
1937
1918
|
type: PageBlockDefinitionPropertyType,
|
|
1938
|
-
description:
|
|
1919
|
+
description: z85.string().optional(),
|
|
1939
1920
|
// TODO Docs
|
|
1940
1921
|
options: PageBlockDefinitionPropertyOptions.optional(),
|
|
1941
|
-
variantOptions:
|
|
1922
|
+
variantOptions: z85.record(PageBlockDefinitionPropertyOptions).optional()
|
|
1942
1923
|
});
|
|
1943
|
-
var PageBlockDefinitionItem =
|
|
1944
|
-
properties:
|
|
1924
|
+
var PageBlockDefinitionItem = z85.object({
|
|
1925
|
+
properties: z85.array(PageBlockDefinitionProperty),
|
|
1945
1926
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
1946
|
-
variants:
|
|
1947
|
-
defaultVariantKey:
|
|
1927
|
+
variants: z85.array(PageBlockDefinitionVariant),
|
|
1928
|
+
defaultVariantKey: z85.string()
|
|
1948
1929
|
});
|
|
1949
|
-
var PageBlockCategory =
|
|
1930
|
+
var PageBlockCategory = z86.enum([
|
|
1950
1931
|
"Text",
|
|
1951
1932
|
"Layout",
|
|
1952
1933
|
"Media",
|
|
@@ -1960,205 +1941,205 @@ var PageBlockCategory = z83.enum([
|
|
|
1960
1941
|
"Data",
|
|
1961
1942
|
"Other"
|
|
1962
1943
|
]);
|
|
1963
|
-
var PageBlockBehaviorDataType =
|
|
1964
|
-
var PageBlockBehaviorSelectionType =
|
|
1965
|
-
var PageBlockDefinitionBehavior =
|
|
1944
|
+
var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaFrame"]);
|
|
1945
|
+
var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
1946
|
+
var PageBlockDefinitionBehavior = z86.object({
|
|
1966
1947
|
dataType: PageBlockBehaviorDataType,
|
|
1967
|
-
items:
|
|
1968
|
-
numberOfItems:
|
|
1969
|
-
allowLinks:
|
|
1948
|
+
items: z86.object({
|
|
1949
|
+
numberOfItems: z86.number(),
|
|
1950
|
+
allowLinks: z86.boolean()
|
|
1970
1951
|
}).optional(),
|
|
1971
|
-
entities:
|
|
1952
|
+
entities: z86.object({
|
|
1972
1953
|
selectionType: PageBlockBehaviorSelectionType,
|
|
1973
|
-
maxSelected:
|
|
1954
|
+
maxSelected: z86.number()
|
|
1974
1955
|
}).optional()
|
|
1975
1956
|
});
|
|
1976
|
-
var PageBlockDefinitionOnboarding =
|
|
1977
|
-
helpText:
|
|
1978
|
-
documentationLink:
|
|
1957
|
+
var PageBlockDefinitionOnboarding = z86.object({
|
|
1958
|
+
helpText: z86.string(),
|
|
1959
|
+
documentationLink: z86.string().optional()
|
|
1979
1960
|
});
|
|
1980
|
-
var PageBlockDefinition =
|
|
1981
|
-
id:
|
|
1982
|
-
name:
|
|
1983
|
-
description:
|
|
1961
|
+
var PageBlockDefinition = z86.object({
|
|
1962
|
+
id: z86.string(),
|
|
1963
|
+
name: z86.string(),
|
|
1964
|
+
description: z86.string(),
|
|
1984
1965
|
category: PageBlockCategory,
|
|
1985
1966
|
icon: AssetValue.optional(),
|
|
1986
|
-
documentationLink:
|
|
1987
|
-
searchKeywords:
|
|
1967
|
+
documentationLink: z86.string().optional(),
|
|
1968
|
+
searchKeywords: z86.array(z86.string()).optional(),
|
|
1988
1969
|
item: PageBlockDefinitionItem,
|
|
1989
1970
|
behavior: PageBlockDefinitionBehavior,
|
|
1990
|
-
editorOptions:
|
|
1971
|
+
editorOptions: z86.object({
|
|
1991
1972
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
1992
1973
|
}),
|
|
1993
1974
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1994
1975
|
});
|
|
1995
|
-
var DocumentationPageGroup =
|
|
1996
|
-
type:
|
|
1997
|
-
childType:
|
|
1998
|
-
id:
|
|
1999
|
-
persistentId:
|
|
2000
|
-
shortPersistentId:
|
|
2001
|
-
designSystemVersionId:
|
|
2002
|
-
parentPersistentId:
|
|
2003
|
-
sortOrder:
|
|
2004
|
-
title:
|
|
2005
|
-
slug:
|
|
2006
|
-
userSlug:
|
|
2007
|
-
createdAt:
|
|
2008
|
-
updatedAt:
|
|
2009
|
-
});
|
|
2010
|
-
var DocumentationPage =
|
|
2011
|
-
type:
|
|
2012
|
-
id:
|
|
2013
|
-
persistentId:
|
|
2014
|
-
shortPersistentId:
|
|
2015
|
-
designSystemVersionId:
|
|
2016
|
-
parentPersistentId:
|
|
2017
|
-
sortOrder:
|
|
2018
|
-
title:
|
|
2019
|
-
slug:
|
|
2020
|
-
userSlug:
|
|
2021
|
-
createdAt:
|
|
2022
|
-
updatedAt:
|
|
2023
|
-
});
|
|
2024
|
-
var NpmRegistryAuthType =
|
|
2025
|
-
var NpmRegistryType =
|
|
2026
|
-
var NpmRegistryBasicAuthConfig =
|
|
2027
|
-
authType:
|
|
2028
|
-
username:
|
|
2029
|
-
password:
|
|
2030
|
-
});
|
|
2031
|
-
var NpmRegistryBearerAuthConfig =
|
|
2032
|
-
authType:
|
|
2033
|
-
accessToken:
|
|
2034
|
-
});
|
|
2035
|
-
var NpmRegistryNoAuthConfig =
|
|
2036
|
-
authType:
|
|
2037
|
-
});
|
|
2038
|
-
var NpmRegistrCustomAuthConfig =
|
|
2039
|
-
authType:
|
|
2040
|
-
authHeaderName:
|
|
2041
|
-
authHeaderValue:
|
|
2042
|
-
});
|
|
2043
|
-
var NpmRegistryAuthConfig =
|
|
1976
|
+
var DocumentationPageGroup = z87.object({
|
|
1977
|
+
type: z87.literal("ElementGroup"),
|
|
1978
|
+
childType: z87.literal("DocumentationPage"),
|
|
1979
|
+
id: z87.string(),
|
|
1980
|
+
persistentId: z87.string(),
|
|
1981
|
+
shortPersistentId: z87.string(),
|
|
1982
|
+
designSystemVersionId: z87.string(),
|
|
1983
|
+
parentPersistentId: z87.string().nullish(),
|
|
1984
|
+
sortOrder: z87.number(),
|
|
1985
|
+
title: z87.string(),
|
|
1986
|
+
slug: z87.string(),
|
|
1987
|
+
userSlug: z87.string().nullish(),
|
|
1988
|
+
createdAt: z87.date(),
|
|
1989
|
+
updatedAt: z87.date()
|
|
1990
|
+
});
|
|
1991
|
+
var DocumentationPage = z88.object({
|
|
1992
|
+
type: z88.literal("DocumentationPage"),
|
|
1993
|
+
id: z88.string(),
|
|
1994
|
+
persistentId: z88.string(),
|
|
1995
|
+
shortPersistentId: z88.string(),
|
|
1996
|
+
designSystemVersionId: z88.string(),
|
|
1997
|
+
parentPersistentId: z88.string().nullish(),
|
|
1998
|
+
sortOrder: z88.number(),
|
|
1999
|
+
title: z88.string(),
|
|
2000
|
+
slug: z88.string(),
|
|
2001
|
+
userSlug: z88.string().nullish(),
|
|
2002
|
+
createdAt: z88.date(),
|
|
2003
|
+
updatedAt: z88.date()
|
|
2004
|
+
});
|
|
2005
|
+
var NpmRegistryAuthType = z89.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2006
|
+
var NpmRegistryType = z89.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2007
|
+
var NpmRegistryBasicAuthConfig = z89.object({
|
|
2008
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2009
|
+
username: z89.string(),
|
|
2010
|
+
password: z89.string()
|
|
2011
|
+
});
|
|
2012
|
+
var NpmRegistryBearerAuthConfig = z89.object({
|
|
2013
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2014
|
+
accessToken: z89.string()
|
|
2015
|
+
});
|
|
2016
|
+
var NpmRegistryNoAuthConfig = z89.object({
|
|
2017
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.None)
|
|
2018
|
+
});
|
|
2019
|
+
var NpmRegistrCustomAuthConfig = z89.object({
|
|
2020
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2021
|
+
authHeaderName: z89.string(),
|
|
2022
|
+
authHeaderValue: z89.string()
|
|
2023
|
+
});
|
|
2024
|
+
var NpmRegistryAuthConfig = z89.discriminatedUnion("authType", [
|
|
2044
2025
|
NpmRegistryBasicAuthConfig,
|
|
2045
2026
|
NpmRegistryBearerAuthConfig,
|
|
2046
2027
|
NpmRegistryNoAuthConfig,
|
|
2047
2028
|
NpmRegistrCustomAuthConfig
|
|
2048
2029
|
]);
|
|
2049
|
-
var NpmRegistryConfigBase =
|
|
2030
|
+
var NpmRegistryConfigBase = z89.object({
|
|
2050
2031
|
registryType: NpmRegistryType,
|
|
2051
|
-
enabledScopes:
|
|
2052
|
-
customRegistryUrl:
|
|
2053
|
-
bypassProxy:
|
|
2054
|
-
npmProxyRegistryConfigId:
|
|
2055
|
-
npmProxyVersion:
|
|
2032
|
+
enabledScopes: z89.array(z89.string()),
|
|
2033
|
+
customRegistryUrl: z89.string().optional(),
|
|
2034
|
+
bypassProxy: z89.boolean().default(false),
|
|
2035
|
+
npmProxyRegistryConfigId: z89.string().optional(),
|
|
2036
|
+
npmProxyVersion: z89.number().optional()
|
|
2056
2037
|
});
|
|
2057
2038
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2058
|
-
var SsoProvider =
|
|
2059
|
-
providerId:
|
|
2060
|
-
defaultAutoInviteValue:
|
|
2061
|
-
autoInviteDomains:
|
|
2062
|
-
skipDocsSupernovaLogin:
|
|
2063
|
-
areInvitesDisabled:
|
|
2064
|
-
isTestMode:
|
|
2065
|
-
emailDomains:
|
|
2066
|
-
metadataXml:
|
|
2067
|
-
});
|
|
2068
|
-
var WorkspaceRoleSchema =
|
|
2039
|
+
var SsoProvider = z90.object({
|
|
2040
|
+
providerId: z90.string(),
|
|
2041
|
+
defaultAutoInviteValue: z90.boolean(),
|
|
2042
|
+
autoInviteDomains: z90.record(z90.string(), z90.boolean()),
|
|
2043
|
+
skipDocsSupernovaLogin: z90.boolean(),
|
|
2044
|
+
areInvitesDisabled: z90.boolean(),
|
|
2045
|
+
isTestMode: z90.boolean(),
|
|
2046
|
+
emailDomains: z90.array(z90.string()),
|
|
2047
|
+
metadataXml: z90.string().nullish()
|
|
2048
|
+
});
|
|
2049
|
+
var WorkspaceRoleSchema = z91.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2069
2050
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2070
2051
|
var MAX_MEMBERS_COUNT = 100;
|
|
2071
|
-
var UserInvite =
|
|
2072
|
-
email:
|
|
2052
|
+
var UserInvite = z92.object({
|
|
2053
|
+
email: z92.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2073
2054
|
role: WorkspaceRoleSchema
|
|
2074
2055
|
});
|
|
2075
|
-
var UserInvites =
|
|
2076
|
-
var WorkspaceContext =
|
|
2077
|
-
workspaceId:
|
|
2056
|
+
var UserInvites = z92.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2057
|
+
var WorkspaceContext = z93.object({
|
|
2058
|
+
workspaceId: z93.string(),
|
|
2078
2059
|
product: ProductCodeSchema,
|
|
2079
|
-
publicDesignSystem:
|
|
2060
|
+
publicDesignSystem: z93.boolean().optional()
|
|
2080
2061
|
});
|
|
2081
2062
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2082
2063
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2083
2064
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2084
2065
|
var HANDLE_MIN_LENGTH = 2;
|
|
2085
2066
|
var HANDLE_MAX_LENGTH = 64;
|
|
2086
|
-
var CreateWorkspaceInput =
|
|
2087
|
-
name:
|
|
2067
|
+
var CreateWorkspaceInput = z94.object({
|
|
2068
|
+
name: z94.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2088
2069
|
product: ProductCodeSchema,
|
|
2089
|
-
priceId:
|
|
2090
|
-
billingEmail:
|
|
2091
|
-
handle:
|
|
2070
|
+
priceId: z94.string(),
|
|
2071
|
+
billingEmail: z94.string().email().optional(),
|
|
2072
|
+
handle: z94.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2092
2073
|
invites: UserInvites.optional(),
|
|
2093
|
-
promoCode:
|
|
2094
|
-
});
|
|
2095
|
-
var WorkspaceInvitation = z92.object({
|
|
2096
|
-
id: z92.string(),
|
|
2097
|
-
email: z92.string().email(),
|
|
2098
|
-
createdAt: z92.date(),
|
|
2099
|
-
resentAt: z92.date().nullish(),
|
|
2100
|
-
role: z92.nativeEnum(WorkspaceRole),
|
|
2101
|
-
workspaceId: z92.string(),
|
|
2102
|
-
invitedBy: z92.string()
|
|
2103
|
-
});
|
|
2104
|
-
var WorkspaceMembership = z93.object({
|
|
2105
|
-
id: z93.string(),
|
|
2106
|
-
userId: z93.string(),
|
|
2107
|
-
workspaceId: z93.string(),
|
|
2108
|
-
workspaceRole: z93.nativeEnum(WorkspaceRole)
|
|
2074
|
+
promoCode: z94.string().optional()
|
|
2109
2075
|
});
|
|
2110
|
-
var
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2076
|
+
var WorkspaceInvitation = z95.object({
|
|
2077
|
+
id: z95.string(),
|
|
2078
|
+
email: z95.string().email(),
|
|
2079
|
+
createdAt: z95.date(),
|
|
2080
|
+
resentAt: z95.date().nullish(),
|
|
2081
|
+
role: z95.nativeEnum(WorkspaceRole),
|
|
2082
|
+
workspaceId: z95.string(),
|
|
2083
|
+
invitedBy: z95.string()
|
|
2084
|
+
});
|
|
2085
|
+
var WorkspaceMembership = z96.object({
|
|
2086
|
+
id: z96.string(),
|
|
2087
|
+
userId: z96.string(),
|
|
2088
|
+
workspaceId: z96.string(),
|
|
2089
|
+
workspaceRole: z96.nativeEnum(WorkspaceRole)
|
|
2090
|
+
});
|
|
2091
|
+
var WorkspaceIpWhitelistEntry = z97.object({
|
|
2092
|
+
isEnabled: z97.boolean(),
|
|
2093
|
+
name: z97.string(),
|
|
2094
|
+
range: z97.string()
|
|
2114
2095
|
});
|
|
2115
|
-
var WorkspaceIpSettings =
|
|
2116
|
-
isEnabledForCloud:
|
|
2117
|
-
isEnabledForDocs:
|
|
2118
|
-
entries:
|
|
2096
|
+
var WorkspaceIpSettings = z97.object({
|
|
2097
|
+
isEnabledForCloud: z97.boolean(),
|
|
2098
|
+
isEnabledForDocs: z97.boolean(),
|
|
2099
|
+
entries: z97.array(WorkspaceIpWhitelistEntry)
|
|
2119
2100
|
}).nullish();
|
|
2120
|
-
var WorkspaceProfile =
|
|
2121
|
-
name:
|
|
2122
|
-
handle:
|
|
2123
|
-
color:
|
|
2124
|
-
avatar:
|
|
2101
|
+
var WorkspaceProfile = z97.object({
|
|
2102
|
+
name: z97.string(),
|
|
2103
|
+
handle: z97.string(),
|
|
2104
|
+
color: z97.string(),
|
|
2105
|
+
avatar: z97.string().optional(),
|
|
2125
2106
|
billingDetails: BillingDetails.optional()
|
|
2126
2107
|
});
|
|
2127
|
-
var Workspace =
|
|
2128
|
-
id:
|
|
2108
|
+
var Workspace = z97.object({
|
|
2109
|
+
id: z97.string(),
|
|
2129
2110
|
profile: WorkspaceProfile,
|
|
2130
2111
|
subscription: Subscription,
|
|
2131
2112
|
ipWhitelist: WorkspaceIpSettings,
|
|
2132
2113
|
sso: SsoProvider.nullish(),
|
|
2133
|
-
npmRegistrySettings:
|
|
2134
|
-
designSystems:
|
|
2114
|
+
npmRegistrySettings: z97.unknown().optional(),
|
|
2115
|
+
designSystems: z97.array(DesignSystem).nullish()
|
|
2135
2116
|
});
|
|
2136
|
-
var WorkspaceWithDesignSystems =
|
|
2117
|
+
var WorkspaceWithDesignSystems = z97.object({
|
|
2137
2118
|
workspace: Workspace,
|
|
2138
|
-
designSystems:
|
|
2119
|
+
designSystems: z97.array(DesignSystem)
|
|
2139
2120
|
});
|
|
2140
|
-
var DesignSystemSwitcher =
|
|
2141
|
-
isEnabled:
|
|
2142
|
-
designSystemIds:
|
|
2121
|
+
var DesignSystemSwitcher = z98.object({
|
|
2122
|
+
isEnabled: z98.boolean(),
|
|
2123
|
+
designSystemIds: z98.string()
|
|
2143
2124
|
});
|
|
2144
|
-
var DesignSystem =
|
|
2145
|
-
id:
|
|
2146
|
-
workspaceId:
|
|
2147
|
-
name:
|
|
2148
|
-
description:
|
|
2149
|
-
docExporterId:
|
|
2150
|
-
docSlug:
|
|
2151
|
-
docUserSlug:
|
|
2152
|
-
docSlugDeprecated:
|
|
2153
|
-
isPublic:
|
|
2154
|
-
isMultibrand:
|
|
2155
|
-
docViewUrl:
|
|
2156
|
-
basePrefixes:
|
|
2125
|
+
var DesignSystem = z98.object({
|
|
2126
|
+
id: z98.string(),
|
|
2127
|
+
workspaceId: z98.string(),
|
|
2128
|
+
name: z98.string(),
|
|
2129
|
+
description: z98.string(),
|
|
2130
|
+
docExporterId: z98.string().nullish(),
|
|
2131
|
+
docSlug: z98.string(),
|
|
2132
|
+
docUserSlug: z98.string().nullish(),
|
|
2133
|
+
docSlugDeprecated: z98.string(),
|
|
2134
|
+
isPublic: z98.boolean(),
|
|
2135
|
+
isMultibrand: z98.boolean(),
|
|
2136
|
+
docViewUrl: z98.string().nullish(),
|
|
2137
|
+
basePrefixes: z98.array(z98.string()),
|
|
2157
2138
|
designSystemSwitcher: DesignSystemSwitcher.nullish(),
|
|
2158
|
-
createdAt:
|
|
2159
|
-
updatedAt:
|
|
2139
|
+
createdAt: z98.date(),
|
|
2140
|
+
updatedAt: z98.date()
|
|
2160
2141
|
});
|
|
2161
|
-
var DesignSystemWithWorkspace =
|
|
2142
|
+
var DesignSystemWithWorkspace = z98.object({
|
|
2162
2143
|
designSystem: DesignSystem,
|
|
2163
2144
|
workspace: Workspace
|
|
2164
2145
|
});
|
|
@@ -2166,87 +2147,81 @@ var DS_NAME_MIN_LENGTH = 2;
|
|
|
2166
2147
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2167
2148
|
var DS_DESC_MIN_LENGTH = 2;
|
|
2168
2149
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2169
|
-
var DesignSystemCreateInputMetadata =
|
|
2170
|
-
name:
|
|
2171
|
-
description:
|
|
2150
|
+
var DesignSystemCreateInputMetadata = z99.object({
|
|
2151
|
+
name: z99.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2152
|
+
description: z99.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2172
2153
|
});
|
|
2173
|
-
var DesignSystemCreateInput =
|
|
2154
|
+
var DesignSystemCreateInput = z99.object({
|
|
2174
2155
|
meta: DesignSystemCreateInputMetadata,
|
|
2175
|
-
workspaceId:
|
|
2176
|
-
isPublic:
|
|
2177
|
-
basePrefixes:
|
|
2178
|
-
docUserSlug:
|
|
2179
|
-
source:
|
|
2156
|
+
workspaceId: z99.string(),
|
|
2157
|
+
isPublic: z99.boolean().optional(),
|
|
2158
|
+
basePrefixes: z99.array(z99.string()).optional(),
|
|
2159
|
+
docUserSlug: z99.string().nullish().optional(),
|
|
2160
|
+
source: z99.array(z99.string()).optional()
|
|
2180
2161
|
});
|
|
2181
2162
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2182
2163
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2183
2164
|
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2184
2165
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2185
|
-
var DesignSystemUpdateInputMetadata =
|
|
2186
|
-
name:
|
|
2187
|
-
description:
|
|
2166
|
+
var DesignSystemUpdateInputMetadata = z100.object({
|
|
2167
|
+
name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2168
|
+
description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2188
2169
|
});
|
|
2189
|
-
var DesignSystemUpdateInput =
|
|
2170
|
+
var DesignSystemUpdateInput = z100.object({
|
|
2190
2171
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2191
|
-
workspaceId:
|
|
2192
|
-
isPublic:
|
|
2193
|
-
basePrefixes:
|
|
2194
|
-
docUserSlug:
|
|
2195
|
-
source:
|
|
2196
|
-
name:
|
|
2197
|
-
description:
|
|
2198
|
-
docExporterId:
|
|
2199
|
-
});
|
|
2200
|
-
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
2201
|
-
function tryParseShortPersistentId(url = "/") {
|
|
2202
|
-
const lastUrlPart = url.split("/").pop() || "";
|
|
2203
|
-
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
2204
|
-
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
2205
|
-
}
|
|
2172
|
+
workspaceId: z100.string().optional(),
|
|
2173
|
+
isPublic: z100.boolean().optional(),
|
|
2174
|
+
basePrefixes: z100.array(z100.string()).optional(),
|
|
2175
|
+
docUserSlug: z100.string().nullish().optional(),
|
|
2176
|
+
source: z100.array(z100.string()).optional(),
|
|
2177
|
+
name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2178
|
+
description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2179
|
+
docExporterId: z100.string().optional()
|
|
2180
|
+
});
|
|
2206
2181
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2207
|
-
var PublishedDocEnvironment =
|
|
2208
|
-
var PublishedDocsChecksums =
|
|
2209
|
-
var PublishedDocRoutingVersion =
|
|
2210
|
-
var PublishedDoc =
|
|
2211
|
-
id:
|
|
2212
|
-
designSystemVersionId:
|
|
2213
|
-
createdAt:
|
|
2214
|
-
updatedAt:
|
|
2215
|
-
lastPublishedAt:
|
|
2216
|
-
isDefault:
|
|
2217
|
-
isPublic:
|
|
2182
|
+
var PublishedDocEnvironment = z101.enum(publishedDocEnvironments);
|
|
2183
|
+
var PublishedDocsChecksums = z101.record(z101.string());
|
|
2184
|
+
var PublishedDocRoutingVersion = z101.enum(["1", "2"]);
|
|
2185
|
+
var PublishedDoc = z101.object({
|
|
2186
|
+
id: z101.string(),
|
|
2187
|
+
designSystemVersionId: z101.string(),
|
|
2188
|
+
createdAt: z101.date(),
|
|
2189
|
+
updatedAt: z101.date(),
|
|
2190
|
+
lastPublishedAt: z101.date(),
|
|
2191
|
+
isDefault: z101.boolean(),
|
|
2192
|
+
isPublic: z101.boolean(),
|
|
2218
2193
|
environment: PublishedDocEnvironment,
|
|
2219
2194
|
checksums: PublishedDocsChecksums,
|
|
2220
|
-
storagePath:
|
|
2221
|
-
wasMigrated:
|
|
2195
|
+
storagePath: z101.string(),
|
|
2196
|
+
wasMigrated: z101.boolean(),
|
|
2222
2197
|
routingVersion: PublishedDocRoutingVersion,
|
|
2223
|
-
usesLocalizations:
|
|
2224
|
-
wasPublishedWithLocalizations:
|
|
2225
|
-
});
|
|
2226
|
-
var ExportJobStatus =
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2198
|
+
usesLocalizations: z101.boolean(),
|
|
2199
|
+
wasPublishedWithLocalizations: z101.boolean()
|
|
2200
|
+
});
|
|
2201
|
+
var ExportJobStatus = z102.union([
|
|
2202
|
+
z102.literal("Success"),
|
|
2203
|
+
z102.literal("InProgress"),
|
|
2204
|
+
z102.literal("Timeout"),
|
|
2205
|
+
z102.literal("Failed")
|
|
2231
2206
|
]);
|
|
2232
|
-
var ExportJob =
|
|
2233
|
-
id:
|
|
2234
|
-
workspaceId:
|
|
2235
|
-
designSystemId:
|
|
2236
|
-
designSystemVersionId:
|
|
2207
|
+
var ExportJob = z102.object({
|
|
2208
|
+
id: z102.string(),
|
|
2209
|
+
workspaceId: z102.string(),
|
|
2210
|
+
designSystemId: z102.string(),
|
|
2211
|
+
designSystemVersionId: z102.string(),
|
|
2237
2212
|
status: ExportJobStatus,
|
|
2238
|
-
docsUrl:
|
|
2239
|
-
scheduleId:
|
|
2240
|
-
exporterId:
|
|
2241
|
-
createdAt:
|
|
2213
|
+
docsUrl: z102.string().nullish(),
|
|
2214
|
+
scheduleId: z102.string().nullish(),
|
|
2215
|
+
exporterId: z102.string().nullish(),
|
|
2216
|
+
createdAt: z102.date(),
|
|
2242
2217
|
environment: PublishedDocEnvironment,
|
|
2243
|
-
finishedAt:
|
|
2218
|
+
finishedAt: z102.date().nullish()
|
|
2244
2219
|
});
|
|
2245
|
-
var ExporterWorkspaceMembershipRole =
|
|
2246
|
-
var ExporterWorkspaceMembership =
|
|
2247
|
-
id:
|
|
2248
|
-
workspaceId:
|
|
2249
|
-
exporterId:
|
|
2220
|
+
var ExporterWorkspaceMembershipRole = z103.enum(["Owner", "OwnerArchived", "User"]);
|
|
2221
|
+
var ExporterWorkspaceMembership = z104.object({
|
|
2222
|
+
id: z104.string(),
|
|
2223
|
+
workspaceId: z104.string(),
|
|
2224
|
+
exporterId: z104.string(),
|
|
2250
2225
|
role: ExporterWorkspaceMembershipRole
|
|
2251
2226
|
});
|
|
2252
2227
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2256,15 +2231,15 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2256
2231
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2257
2232
|
return GitProviderNames2;
|
|
2258
2233
|
})(GitProviderNames || {});
|
|
2259
|
-
var GitProvider =
|
|
2260
|
-
var PulsarContributionVariant =
|
|
2261
|
-
key:
|
|
2262
|
-
name:
|
|
2263
|
-
isDefault:
|
|
2264
|
-
description:
|
|
2265
|
-
thumbnailURL:
|
|
2266
|
-
});
|
|
2267
|
-
var PulsarPropertyType =
|
|
2234
|
+
var GitProvider = z105.nativeEnum(GitProviderNames);
|
|
2235
|
+
var PulsarContributionVariant = z106.object({
|
|
2236
|
+
key: z106.string(),
|
|
2237
|
+
name: z106.string(),
|
|
2238
|
+
isDefault: z106.boolean().optional(),
|
|
2239
|
+
description: z106.string().optional(),
|
|
2240
|
+
thumbnailURL: z106.string().optional()
|
|
2241
|
+
});
|
|
2242
|
+
var PulsarPropertyType = z106.enum([
|
|
2268
2243
|
"string",
|
|
2269
2244
|
"number",
|
|
2270
2245
|
"boolean",
|
|
@@ -2277,155 +2252,155 @@ var PulsarPropertyType = z103.enum([
|
|
|
2277
2252
|
"tokenProperties",
|
|
2278
2253
|
"tokenType"
|
|
2279
2254
|
]);
|
|
2280
|
-
var BasePulsarProperty =
|
|
2281
|
-
label:
|
|
2282
|
-
key:
|
|
2283
|
-
description:
|
|
2255
|
+
var BasePulsarProperty = z106.object({
|
|
2256
|
+
label: z106.string(),
|
|
2257
|
+
key: z106.string(),
|
|
2258
|
+
description: z106.string().optional(),
|
|
2284
2259
|
type: PulsarPropertyType,
|
|
2285
|
-
values:
|
|
2286
|
-
default:
|
|
2260
|
+
values: z106.array(z106.string()).optional(),
|
|
2261
|
+
default: z106.union([z106.string(), z106.boolean(), z106.number()]).nullish(),
|
|
2287
2262
|
// PulsarPropertyValueType //is optional?
|
|
2288
|
-
inputType:
|
|
2263
|
+
inputType: z106.enum(["code", "plain"]).optional(),
|
|
2289
2264
|
//is optional?
|
|
2290
|
-
isMultiline:
|
|
2291
|
-
});
|
|
2292
|
-
var PulsarContributionBlock =
|
|
2293
|
-
title:
|
|
2294
|
-
key:
|
|
2295
|
-
category:
|
|
2296
|
-
description:
|
|
2297
|
-
iconURL:
|
|
2298
|
-
mode:
|
|
2299
|
-
properties:
|
|
2300
|
-
});
|
|
2301
|
-
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category:
|
|
2302
|
-
var ExporterType =
|
|
2303
|
-
var ExporterSource =
|
|
2304
|
-
var ExporterTag =
|
|
2305
|
-
var ExporterDetails =
|
|
2306
|
-
packageId:
|
|
2307
|
-
version:
|
|
2308
|
-
description:
|
|
2309
|
-
author: nullishToOptional(
|
|
2310
|
-
organization: nullishToOptional(
|
|
2311
|
-
homepage: nullishToOptional(
|
|
2312
|
-
readme: nullishToOptional(
|
|
2313
|
-
tags:
|
|
2314
|
-
routingVersion: nullishToOptional(
|
|
2315
|
-
iconURL: nullishToOptional(
|
|
2316
|
-
configurationProperties:
|
|
2317
|
-
customBlocks:
|
|
2318
|
-
blockVariants:
|
|
2319
|
-
usesBrands:
|
|
2320
|
-
usesThemes:
|
|
2265
|
+
isMultiline: z106.boolean().optional()
|
|
2266
|
+
});
|
|
2267
|
+
var PulsarContributionBlock = z106.object({
|
|
2268
|
+
title: z106.string(),
|
|
2269
|
+
key: z106.string(),
|
|
2270
|
+
category: z106.string(),
|
|
2271
|
+
description: z106.string().optional(),
|
|
2272
|
+
iconURL: z106.string(),
|
|
2273
|
+
mode: z106.enum(["array", "block"]),
|
|
2274
|
+
properties: z106.array(BasePulsarProperty)
|
|
2275
|
+
});
|
|
2276
|
+
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category: z106.string() });
|
|
2277
|
+
var ExporterType = z107.enum(["code", "documentation"]);
|
|
2278
|
+
var ExporterSource = z107.enum(["git", "upload"]);
|
|
2279
|
+
var ExporterTag = z107.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2280
|
+
var ExporterDetails = z107.object({
|
|
2281
|
+
packageId: z107.string().max(255),
|
|
2282
|
+
version: z107.string(),
|
|
2283
|
+
description: z107.string(),
|
|
2284
|
+
author: nullishToOptional(z107.string()),
|
|
2285
|
+
organization: nullishToOptional(z107.string()),
|
|
2286
|
+
homepage: nullishToOptional(z107.string()),
|
|
2287
|
+
readme: nullishToOptional(z107.string()),
|
|
2288
|
+
tags: z107.array(ExporterTag).default([]),
|
|
2289
|
+
routingVersion: nullishToOptional(z107.string()),
|
|
2290
|
+
iconURL: nullishToOptional(z107.string()),
|
|
2291
|
+
configurationProperties: z107.array(PulsarContributionConfigurationProperty).default([]),
|
|
2292
|
+
customBlocks: z107.array(PulsarContributionBlock).default([]),
|
|
2293
|
+
blockVariants: z107.record(z107.string(), z107.array(PulsarContributionVariant)).default({}),
|
|
2294
|
+
usesBrands: z107.boolean().default(false),
|
|
2295
|
+
usesThemes: z107.boolean().default(false),
|
|
2321
2296
|
source: ExporterSource,
|
|
2322
2297
|
gitProvider: nullishToOptional(GitProvider),
|
|
2323
|
-
gitUrl: nullishToOptional(
|
|
2324
|
-
gitBranch: nullishToOptional(
|
|
2325
|
-
gitDirectory: nullishToOptional(
|
|
2298
|
+
gitUrl: nullishToOptional(z107.string()),
|
|
2299
|
+
gitBranch: nullishToOptional(z107.string()),
|
|
2300
|
+
gitDirectory: nullishToOptional(z107.string())
|
|
2326
2301
|
});
|
|
2327
|
-
var Exporter =
|
|
2328
|
-
id:
|
|
2329
|
-
createdAt:
|
|
2330
|
-
name:
|
|
2331
|
-
isPrivate:
|
|
2302
|
+
var Exporter = z107.object({
|
|
2303
|
+
id: z107.string(),
|
|
2304
|
+
createdAt: z107.coerce.date(),
|
|
2305
|
+
name: z107.string(),
|
|
2306
|
+
isPrivate: z107.boolean(),
|
|
2332
2307
|
details: ExporterDetails,
|
|
2333
2308
|
exporterType: ExporterType.default("code"),
|
|
2334
|
-
storagePath:
|
|
2335
|
-
});
|
|
2336
|
-
var CustomDomain =
|
|
2337
|
-
id:
|
|
2338
|
-
designSystemId:
|
|
2339
|
-
state:
|
|
2340
|
-
supernovaDomain:
|
|
2341
|
-
customerDomain:
|
|
2342
|
-
error:
|
|
2343
|
-
errorCode:
|
|
2344
|
-
});
|
|
2345
|
-
var IntegrationAuthType =
|
|
2346
|
-
var ExternalServiceType =
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2309
|
+
storagePath: z107.string().default("")
|
|
2310
|
+
});
|
|
2311
|
+
var CustomDomain = z108.object({
|
|
2312
|
+
id: z108.string(),
|
|
2313
|
+
designSystemId: z108.string(),
|
|
2314
|
+
state: z108.string(),
|
|
2315
|
+
supernovaDomain: z108.string(),
|
|
2316
|
+
customerDomain: z108.string().nullish(),
|
|
2317
|
+
error: z108.string().nullish(),
|
|
2318
|
+
errorCode: z108.string().nullish()
|
|
2319
|
+
});
|
|
2320
|
+
var IntegrationAuthType = z109.union([z109.literal("OAuth2"), z109.literal("PAT")]);
|
|
2321
|
+
var ExternalServiceType = z109.union([
|
|
2322
|
+
z109.literal("figma"),
|
|
2323
|
+
z109.literal("github"),
|
|
2324
|
+
z109.literal("azure"),
|
|
2325
|
+
z109.literal("gitlab"),
|
|
2326
|
+
z109.literal("bitbucket")
|
|
2352
2327
|
]);
|
|
2353
|
-
var IntegrationUserInfo =
|
|
2354
|
-
id:
|
|
2355
|
-
handle:
|
|
2356
|
-
avatarUrl:
|
|
2357
|
-
email:
|
|
2328
|
+
var IntegrationUserInfo = z109.object({
|
|
2329
|
+
id: z109.string(),
|
|
2330
|
+
handle: z109.string().optional(),
|
|
2331
|
+
avatarUrl: z109.string().optional(),
|
|
2332
|
+
email: z109.string().optional(),
|
|
2358
2333
|
authType: IntegrationAuthType.optional(),
|
|
2359
|
-
customUrl:
|
|
2334
|
+
customUrl: z109.string().optional()
|
|
2360
2335
|
});
|
|
2361
|
-
var UserLinkedIntegrations =
|
|
2336
|
+
var UserLinkedIntegrations = z109.object({
|
|
2362
2337
|
figma: IntegrationUserInfo.optional(),
|
|
2363
2338
|
github: IntegrationUserInfo.array().optional(),
|
|
2364
2339
|
azure: IntegrationUserInfo.array().optional(),
|
|
2365
2340
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2366
2341
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2367
2342
|
});
|
|
2368
|
-
var UserIdentity =
|
|
2369
|
-
id:
|
|
2370
|
-
userId:
|
|
2371
|
-
});
|
|
2372
|
-
var UserOnboardingDepartment =
|
|
2373
|
-
var UserOnboardingJobLevel =
|
|
2374
|
-
var UserOnboarding =
|
|
2375
|
-
companyName:
|
|
2376
|
-
numberOfPeopleInOrg:
|
|
2377
|
-
numberOfPeopleInDesignTeam:
|
|
2343
|
+
var UserIdentity = z110.object({
|
|
2344
|
+
id: z110.string(),
|
|
2345
|
+
userId: z110.string()
|
|
2346
|
+
});
|
|
2347
|
+
var UserOnboardingDepartment = z111.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2348
|
+
var UserOnboardingJobLevel = z111.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2349
|
+
var UserOnboarding = z111.object({
|
|
2350
|
+
companyName: z111.string().optional(),
|
|
2351
|
+
numberOfPeopleInOrg: z111.string().optional(),
|
|
2352
|
+
numberOfPeopleInDesignTeam: z111.string().optional(),
|
|
2378
2353
|
department: UserOnboardingDepartment.optional(),
|
|
2379
|
-
jobTitle:
|
|
2380
|
-
phase:
|
|
2354
|
+
jobTitle: z111.string().optional(),
|
|
2355
|
+
phase: z111.string().optional(),
|
|
2381
2356
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2382
2357
|
});
|
|
2383
|
-
var UserProfile =
|
|
2384
|
-
name:
|
|
2385
|
-
avatar:
|
|
2386
|
-
nickname:
|
|
2358
|
+
var UserProfile = z111.object({
|
|
2359
|
+
name: z111.string(),
|
|
2360
|
+
avatar: z111.string().optional(),
|
|
2361
|
+
nickname: z111.string().optional(),
|
|
2387
2362
|
onboarding: UserOnboarding.optional()
|
|
2388
2363
|
});
|
|
2389
|
-
var User =
|
|
2390
|
-
id:
|
|
2391
|
-
email:
|
|
2392
|
-
emailVerified:
|
|
2393
|
-
createdAt:
|
|
2394
|
-
trialExpiresAt:
|
|
2364
|
+
var User = z112.object({
|
|
2365
|
+
id: z112.string(),
|
|
2366
|
+
email: z112.string(),
|
|
2367
|
+
emailVerified: z112.boolean(),
|
|
2368
|
+
createdAt: z112.date(),
|
|
2369
|
+
trialExpiresAt: z112.date().optional(),
|
|
2395
2370
|
profile: UserProfile,
|
|
2396
2371
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2397
|
-
loggedOutAt:
|
|
2398
|
-
isProtected:
|
|
2372
|
+
loggedOutAt: z112.date().optional(),
|
|
2373
|
+
isProtected: z112.boolean()
|
|
2399
2374
|
});
|
|
2400
|
-
var NpmProxyToken =
|
|
2401
|
-
access:
|
|
2402
|
-
expiresAt:
|
|
2375
|
+
var NpmProxyToken = z113.object({
|
|
2376
|
+
access: z113.string(),
|
|
2377
|
+
expiresAt: z113.number()
|
|
2403
2378
|
});
|
|
2404
|
-
var SessionData =
|
|
2405
|
-
returnToUrl:
|
|
2379
|
+
var SessionData = z113.object({
|
|
2380
|
+
returnToUrl: z113.string().optional(),
|
|
2406
2381
|
npmProxyToken: NpmProxyToken.optional()
|
|
2407
2382
|
});
|
|
2408
|
-
var Session =
|
|
2409
|
-
id:
|
|
2410
|
-
expiresAt:
|
|
2411
|
-
userId:
|
|
2383
|
+
var Session = z113.object({
|
|
2384
|
+
id: z113.string(),
|
|
2385
|
+
expiresAt: z113.date(),
|
|
2386
|
+
userId: z113.string().nullable(),
|
|
2412
2387
|
data: SessionData
|
|
2413
2388
|
});
|
|
2414
|
-
var AuthTokens =
|
|
2415
|
-
access:
|
|
2416
|
-
refresh:
|
|
2389
|
+
var AuthTokens = z113.object({
|
|
2390
|
+
access: z113.string(),
|
|
2391
|
+
refresh: z113.string()
|
|
2417
2392
|
});
|
|
2418
|
-
var UserSession =
|
|
2393
|
+
var UserSession = z113.object({
|
|
2419
2394
|
session: Session,
|
|
2420
2395
|
user: User.nullable()
|
|
2421
2396
|
});
|
|
2422
|
-
var FlaggedFeature =
|
|
2423
|
-
var FeatureFlagMap =
|
|
2424
|
-
var FeatureFlag =
|
|
2425
|
-
id:
|
|
2397
|
+
var FlaggedFeature = z114.enum(["FigmaImporterV2"]);
|
|
2398
|
+
var FeatureFlagMap = z114.record(FlaggedFeature, z114.boolean());
|
|
2399
|
+
var FeatureFlag = z114.object({
|
|
2400
|
+
id: z114.string(),
|
|
2426
2401
|
feature: FlaggedFeature,
|
|
2427
|
-
createdAt:
|
|
2428
|
-
enabled:
|
|
2402
|
+
createdAt: z114.date(),
|
|
2403
|
+
enabled: z114.boolean()
|
|
2429
2404
|
});
|
|
2430
2405
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2431
2406
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2435,109 +2410,153 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2435
2410
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2436
2411
|
return OAuthProviderNames2;
|
|
2437
2412
|
})(OAuthProviderNames || {});
|
|
2438
|
-
var OAuthProviderSchema =
|
|
2413
|
+
var OAuthProviderSchema = z115.nativeEnum(OAuthProviderNames);
|
|
2439
2414
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2440
|
-
var ExternalOAuthRequest =
|
|
2441
|
-
id:
|
|
2415
|
+
var ExternalOAuthRequest = z116.object({
|
|
2416
|
+
id: z116.string(),
|
|
2442
2417
|
provider: OAuthProviderSchema,
|
|
2443
|
-
userId:
|
|
2444
|
-
state:
|
|
2445
|
-
createdAt:
|
|
2418
|
+
userId: z116.string(),
|
|
2419
|
+
state: z116.string(),
|
|
2420
|
+
createdAt: z116.date()
|
|
2446
2421
|
});
|
|
2447
|
-
var IntegrationTokenSchema =
|
|
2448
|
-
id:
|
|
2422
|
+
var IntegrationTokenSchema = z117.object({
|
|
2423
|
+
id: z117.string(),
|
|
2449
2424
|
provider: OAuthProviderSchema,
|
|
2450
|
-
scope:
|
|
2451
|
-
userId:
|
|
2452
|
-
accessToken:
|
|
2453
|
-
refreshToken:
|
|
2454
|
-
expiresAt:
|
|
2455
|
-
externalUserId:
|
|
2425
|
+
scope: z117.string(),
|
|
2426
|
+
userId: z117.string(),
|
|
2427
|
+
accessToken: z117.string(),
|
|
2428
|
+
refreshToken: z117.string(),
|
|
2429
|
+
expiresAt: z117.date(),
|
|
2430
|
+
externalUserId: z117.string().nullish()
|
|
2456
2431
|
});
|
|
2457
2432
|
var DesignSystemVersionRoom = Entity.extend({
|
|
2458
|
-
designSystemVersionId:
|
|
2459
|
-
liveblocksId:
|
|
2433
|
+
designSystemVersionId: z118.string(),
|
|
2434
|
+
liveblocksId: z118.string()
|
|
2460
2435
|
});
|
|
2461
2436
|
var DocumentationPageRoom = Entity.extend({
|
|
2462
|
-
designSystemVersionId:
|
|
2463
|
-
documentationPageId:
|
|
2464
|
-
liveblocksId:
|
|
2465
|
-
});
|
|
2466
|
-
var
|
|
2437
|
+
designSystemVersionId: z119.string(),
|
|
2438
|
+
documentationPageId: z119.string(),
|
|
2439
|
+
liveblocksId: z119.string()
|
|
2440
|
+
});
|
|
2441
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2442
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2443
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2444
|
+
return RoomTypeEnum2;
|
|
2445
|
+
})(RoomTypeEnum || {});
|
|
2446
|
+
var RoomTypeSchema = z120.nativeEnum(RoomTypeEnum);
|
|
2447
|
+
var RoomType = RoomTypeSchema.enum;
|
|
2448
|
+
var AnyRecord = z121.record(z121.any());
|
|
2467
2449
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2468
|
-
|
|
2469
|
-
tarball:
|
|
2450
|
+
z121.object({
|
|
2451
|
+
tarball: z121.string()
|
|
2470
2452
|
})
|
|
2471
2453
|
);
|
|
2472
2454
|
var NpmPackageVersion = AnyRecord.and(
|
|
2473
|
-
|
|
2455
|
+
z121.object({
|
|
2474
2456
|
dist: NpmPackageVersionDist
|
|
2475
2457
|
})
|
|
2476
2458
|
);
|
|
2477
2459
|
var NpmPackage = AnyRecord.and(
|
|
2478
|
-
|
|
2479
|
-
_id:
|
|
2480
|
-
name:
|
|
2460
|
+
z121.object({
|
|
2461
|
+
_id: z121.string(),
|
|
2462
|
+
name: z121.string(),
|
|
2481
2463
|
// e.g. "latest": "1.2.3"
|
|
2482
|
-
"dist-tags":
|
|
2464
|
+
"dist-tags": z121.record(z121.string(), z121.string()),
|
|
2483
2465
|
// "1.2.3": {...}
|
|
2484
|
-
versions:
|
|
2466
|
+
versions: z121.record(NpmPackageVersion)
|
|
2485
2467
|
})
|
|
2486
2468
|
);
|
|
2487
|
-
var NpmProxyTokenPayload =
|
|
2488
|
-
npmProxyRegistryConfigId:
|
|
2489
|
-
});
|
|
2490
|
-
var PersonalAccessToken =
|
|
2491
|
-
id:
|
|
2492
|
-
userId:
|
|
2493
|
-
name:
|
|
2494
|
-
token:
|
|
2495
|
-
createdAt:
|
|
2496
|
-
hidden:
|
|
2497
|
-
workspaceId:
|
|
2469
|
+
var NpmProxyTokenPayload = z122.object({
|
|
2470
|
+
npmProxyRegistryConfigId: z122.string()
|
|
2471
|
+
});
|
|
2472
|
+
var PersonalAccessToken = z123.object({
|
|
2473
|
+
id: z123.string(),
|
|
2474
|
+
userId: z123.string(),
|
|
2475
|
+
name: z123.string(),
|
|
2476
|
+
token: z123.string(),
|
|
2477
|
+
createdAt: z123.date(),
|
|
2478
|
+
hidden: z123.boolean(),
|
|
2479
|
+
workspaceId: z123.string().optional(),
|
|
2498
2480
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2499
|
-
expireAt:
|
|
2500
|
-
scope:
|
|
2481
|
+
expireAt: z123.date().optional(),
|
|
2482
|
+
scope: z123.string().optional()
|
|
2501
2483
|
});
|
|
2502
|
-
var ContentLoadInstruction =
|
|
2503
|
-
from:
|
|
2504
|
-
to:
|
|
2505
|
-
authorizationHeaderKvsId:
|
|
2506
|
-
timeout:
|
|
2484
|
+
var ContentLoadInstruction = z124.object({
|
|
2485
|
+
from: z124.string(),
|
|
2486
|
+
to: z124.string(),
|
|
2487
|
+
authorizationHeaderKvsId: z124.string().optional(),
|
|
2488
|
+
timeout: z124.number().optional()
|
|
2507
2489
|
});
|
|
2508
|
-
var ContentLoaderPayload =
|
|
2509
|
-
type:
|
|
2490
|
+
var ContentLoaderPayload = z124.object({
|
|
2491
|
+
type: z124.literal("Single"),
|
|
2510
2492
|
instruction: ContentLoadInstruction
|
|
2511
2493
|
}).or(
|
|
2512
|
-
|
|
2513
|
-
type:
|
|
2514
|
-
loadingChunkSize:
|
|
2515
|
-
instructions:
|
|
2494
|
+
z124.object({
|
|
2495
|
+
type: z124.literal("Multiple"),
|
|
2496
|
+
loadingChunkSize: z124.number().optional(),
|
|
2497
|
+
instructions: z124.array(ContentLoadInstruction)
|
|
2516
2498
|
})
|
|
2517
2499
|
).or(
|
|
2518
|
-
|
|
2519
|
-
type:
|
|
2520
|
-
location:
|
|
2500
|
+
z124.object({
|
|
2501
|
+
type: z124.literal("S3"),
|
|
2502
|
+
location: z124.string()
|
|
2521
2503
|
})
|
|
2522
2504
|
);
|
|
2523
2505
|
|
|
2506
|
+
// src/api/requests/post-bulk-doc-page-elements.ts
|
|
2507
|
+
var CreateBulkElementsInput = z125.object({
|
|
2508
|
+
persistentId: z125.string().uuid(),
|
|
2509
|
+
title: z125.string(),
|
|
2510
|
+
configuration: DocumentationItemConfiguration,
|
|
2511
|
+
parentPersistentId: z125.string().nullish(),
|
|
2512
|
+
afterPersistentId: z125.string().nullish()
|
|
2513
|
+
});
|
|
2514
|
+
var UpdateBulkElementsInput = z125.object({
|
|
2515
|
+
id: z125.string(),
|
|
2516
|
+
title: z125.string().optional(),
|
|
2517
|
+
configuration: DocumentationItemConfiguration.optional(),
|
|
2518
|
+
parentPersistentId: z125.string().optional(),
|
|
2519
|
+
afterPersistentId: z125.string().optional()
|
|
2520
|
+
});
|
|
2521
|
+
var DeleteBulkElementsInput = z125.array(z125.string());
|
|
2522
|
+
var DuplicateBulkElementsInput = z125.object({
|
|
2523
|
+
id: z125.string(),
|
|
2524
|
+
persistentId: z125.string().uuid(),
|
|
2525
|
+
parentPersistentId: z125.string().uuid(),
|
|
2526
|
+
afterPersistentId: z125.string().uuid().nullish()
|
|
2527
|
+
});
|
|
2528
|
+
var BulkEditDocPageElementsInput = z125.object({
|
|
2529
|
+
documentationPages: z125.object({
|
|
2530
|
+
create: z125.array(CreateBulkElementsInput).optional(),
|
|
2531
|
+
update: z125.array(UpdateBulkElementsInput).optional(),
|
|
2532
|
+
delete: DeleteBulkElementsInput.optional(),
|
|
2533
|
+
duplicate: z125.array(DuplicateBulkElementsInput).optional()
|
|
2534
|
+
})
|
|
2535
|
+
});
|
|
2536
|
+
|
|
2537
|
+
// src/api/requests/post-liveblocks-auth.ts
|
|
2538
|
+
import { z as z126 } from "zod";
|
|
2539
|
+
var PostLiveblocksAuth = z126.object({
|
|
2540
|
+
room: z126.string()
|
|
2541
|
+
});
|
|
2542
|
+
|
|
2524
2543
|
// src/api/responses/get-block-definitions.ts
|
|
2525
|
-
import { z as
|
|
2526
|
-
var GetBlockDefinitionsResponse =
|
|
2527
|
-
definitions:
|
|
2544
|
+
import { z as z127 } from "zod";
|
|
2545
|
+
var GetBlockDefinitionsResponse = z127.object({
|
|
2546
|
+
definitions: z127.array(PageBlockDefinition)
|
|
2528
2547
|
});
|
|
2529
2548
|
|
|
2530
2549
|
// src/docs-editor/model/block.ts
|
|
2531
|
-
import { z as
|
|
2532
|
-
var PageBlockEditorModel =
|
|
2533
|
-
id:
|
|
2550
|
+
import { z as z128 } from "zod";
|
|
2551
|
+
var PageBlockEditorModel = z128.object({
|
|
2552
|
+
id: z128.string(),
|
|
2534
2553
|
data: PageBlockDataV2
|
|
2535
2554
|
});
|
|
2536
2555
|
|
|
2537
2556
|
// src/docs-editor/model/page.ts
|
|
2538
|
-
import { z as
|
|
2539
|
-
var DocumentationPageEditorModel =
|
|
2540
|
-
blocks:
|
|
2557
|
+
import { z as z129 } from "zod";
|
|
2558
|
+
var DocumentationPageEditorModel = z129.object({
|
|
2559
|
+
blocks: z129.array(PageBlockEditorModel)
|
|
2541
2560
|
});
|
|
2542
2561
|
|
|
2543
2562
|
// src/docs-editor/prosemirror/schema.ts
|
|
@@ -3295,6 +3314,9 @@ var newSchema = {
|
|
|
3295
3314
|
group: "block",
|
|
3296
3315
|
defining: true,
|
|
3297
3316
|
attrs: {
|
|
3317
|
+
id: {
|
|
3318
|
+
default: null
|
|
3319
|
+
},
|
|
3298
3320
|
definitionId: {
|
|
3299
3321
|
default: "io.supernova.block.blockquote"
|
|
3300
3322
|
},
|
|
@@ -4240,7 +4262,7 @@ function serializeTextSpan(span) {
|
|
|
4240
4262
|
}
|
|
4241
4263
|
);
|
|
4242
4264
|
}
|
|
4243
|
-
return interspersed;
|
|
4265
|
+
return interspersed.filter((t) => !!t.text);
|
|
4244
4266
|
}
|
|
4245
4267
|
function serializeTextSpanAttribute(spanAttribute) {
|
|
4246
4268
|
switch (spanAttribute.type) {
|
|
@@ -6103,459 +6125,26 @@ function mapByUnique(items, keyFn) {
|
|
|
6103
6125
|
return result;
|
|
6104
6126
|
}
|
|
6105
6127
|
export {
|
|
6106
|
-
Address,
|
|
6107
|
-
Asset,
|
|
6108
|
-
AssetFontProperties,
|
|
6109
|
-
AssetImportModelInput,
|
|
6110
|
-
AssetOrigin,
|
|
6111
|
-
AssetProperties,
|
|
6112
|
-
AssetReference,
|
|
6113
|
-
AssetScope,
|
|
6114
|
-
AssetType,
|
|
6115
|
-
AssetValue,
|
|
6116
|
-
AuthTokens,
|
|
6117
|
-
BasePulsarProperty,
|
|
6118
|
-
BillingDetails,
|
|
6119
|
-
BillingIntervalSchema,
|
|
6120
|
-
BillingType,
|
|
6121
|
-
BillingTypeSchema,
|
|
6122
6128
|
BlockDefinitionUtils,
|
|
6123
6129
|
BlockParsingUtils,
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
BorderPosition,
|
|
6128
|
-
BorderRadiusTokenData,
|
|
6129
|
-
BorderRadiusUnit,
|
|
6130
|
-
BorderRadiusValue,
|
|
6131
|
-
BorderStyle,
|
|
6132
|
-
BorderTokenData,
|
|
6133
|
-
BorderValue,
|
|
6134
|
-
BorderWidthTokenData,
|
|
6135
|
-
BorderWidthUnit,
|
|
6136
|
-
BorderWidthValue,
|
|
6137
|
-
BrandedElementGroup,
|
|
6138
|
-
CardSchema,
|
|
6139
|
-
ChangedImportedFigmaSourceData,
|
|
6140
|
-
ColorTokenData,
|
|
6141
|
-
ColorTokenInlineData,
|
|
6142
|
-
ColorValue,
|
|
6143
|
-
Component,
|
|
6144
|
-
ComponentElementData,
|
|
6145
|
-
ComponentImportModel,
|
|
6146
|
-
ComponentImportModelInput,
|
|
6147
|
-
ComponentOrigin,
|
|
6148
|
-
ComponentOriginPart,
|
|
6149
|
-
ContentLoadInstruction,
|
|
6150
|
-
ContentLoaderPayload,
|
|
6151
|
-
CreateDesignToken,
|
|
6152
|
-
CreateWorkspaceInput,
|
|
6153
|
-
CustomDomain,
|
|
6154
|
-
Customer,
|
|
6155
|
-
DataSourceAutoImportMode,
|
|
6156
|
-
DataSourceFigmaFileData,
|
|
6157
|
-
DataSourceFigmaFileVersionData,
|
|
6158
|
-
DataSourceFigmaImportMetadata,
|
|
6159
|
-
DataSourceFigmaRemote,
|
|
6160
|
-
DataSourceFigmaScope,
|
|
6161
|
-
DataSourceFigmaState,
|
|
6162
|
-
DataSourceImportModel,
|
|
6163
|
-
DataSourceRemote,
|
|
6164
|
-
DataSourceRemoteType,
|
|
6165
|
-
DataSourceStats,
|
|
6166
|
-
DataSourceTokenStudioRemote,
|
|
6167
|
-
DataSourceUploadImportMetadata,
|
|
6168
|
-
DataSourceUploadRemote,
|
|
6169
|
-
DataSourceUploadRemoteSource,
|
|
6170
|
-
DataSourceVersion,
|
|
6171
|
-
DesignElement,
|
|
6172
|
-
DesignElementBase,
|
|
6173
|
-
DesignElementBrandedPart,
|
|
6174
|
-
DesignElementCategory,
|
|
6175
|
-
DesignElementGroupableBase,
|
|
6176
|
-
DesignElementGroupablePart,
|
|
6177
|
-
DesignElementGroupableRequiredPart,
|
|
6178
|
-
DesignElementImportedBase,
|
|
6179
|
-
DesignElementOrigin,
|
|
6180
|
-
DesignElementSlugPart,
|
|
6181
|
-
DesignElementType,
|
|
6182
|
-
DesignSystem,
|
|
6183
|
-
DesignSystemCreateInput,
|
|
6184
|
-
DesignSystemElementExportProps,
|
|
6185
|
-
DesignSystemSwitcher,
|
|
6186
|
-
DesignSystemUpdateInput,
|
|
6187
|
-
DesignSystemVersionRoom,
|
|
6188
|
-
DesignSystemWithWorkspace,
|
|
6189
|
-
DesignToken,
|
|
6190
|
-
DesignTokenImportModel,
|
|
6191
|
-
DesignTokenImportModelBase,
|
|
6192
|
-
DesignTokenImportModelInput,
|
|
6193
|
-
DesignTokenImportModelInputBase,
|
|
6194
|
-
DesignTokenOrigin,
|
|
6195
|
-
DesignTokenOriginPart,
|
|
6196
|
-
DesignTokenType,
|
|
6197
|
-
DesignTokenTypedData,
|
|
6198
|
-
DimensionTokenData,
|
|
6199
|
-
DimensionUnit,
|
|
6200
|
-
DimensionValue,
|
|
6201
|
-
DocumentationGroupBehavior,
|
|
6202
|
-
DocumentationGroupDTO,
|
|
6203
|
-
DocumentationItemConfiguration,
|
|
6204
|
-
DocumentationPage,
|
|
6205
|
-
DocumentationPageDTOV1,
|
|
6206
|
-
DocumentationPageDataV1,
|
|
6207
|
-
DocumentationPageDataV2,
|
|
6130
|
+
BulkEditDocPageElementsInput,
|
|
6131
|
+
CreateBulkElementsInput,
|
|
6132
|
+
DeleteBulkElementsInput,
|
|
6208
6133
|
DocumentationPageEditorModel,
|
|
6209
|
-
|
|
6210
|
-
DocumentationPageElementDataV2,
|
|
6211
|
-
DocumentationPageGroup,
|
|
6212
|
-
DocumentationPageRoom,
|
|
6213
|
-
DocumentationPageV1,
|
|
6214
|
-
DocumentationPageV2,
|
|
6215
|
-
DurationTokenData,
|
|
6216
|
-
DurationUnit,
|
|
6217
|
-
DurationValue,
|
|
6218
|
-
ElementGroup,
|
|
6219
|
-
ElementGroupData,
|
|
6220
|
-
ElementGroupElementData,
|
|
6221
|
-
ElementPropertyDefinition,
|
|
6222
|
-
ElementPropertyDefinitionOption,
|
|
6223
|
-
ElementPropertyLinkType,
|
|
6224
|
-
ElementPropertyTargetType,
|
|
6225
|
-
ElementPropertyType,
|
|
6226
|
-
ElementPropertyValue,
|
|
6227
|
-
Entity,
|
|
6228
|
-
ExportJob,
|
|
6229
|
-
ExportJobStatus,
|
|
6230
|
-
Exporter,
|
|
6231
|
-
ExporterDetails,
|
|
6232
|
-
ExporterSource,
|
|
6233
|
-
ExporterTag,
|
|
6234
|
-
ExporterType,
|
|
6235
|
-
ExporterWorkspaceMembership,
|
|
6236
|
-
ExporterWorkspaceMembershipRole,
|
|
6237
|
-
ExternalOAuthRequest,
|
|
6238
|
-
ExternalServiceType,
|
|
6239
|
-
FeatureFlag,
|
|
6240
|
-
FeatureFlagMap,
|
|
6241
|
-
FeaturesSummary,
|
|
6242
|
-
FigmaFileAccessData,
|
|
6243
|
-
FigmaFileDownloadScope,
|
|
6244
|
-
FigmaFileStructure,
|
|
6245
|
-
FigmaFileStructureData,
|
|
6246
|
-
FigmaFileStructureElementData,
|
|
6247
|
-
FigmaFileStructureImportModel,
|
|
6248
|
-
FigmaFileStructureImportModelInput,
|
|
6249
|
-
FigmaFileStructureNode,
|
|
6250
|
-
FigmaFileStructureNodeBase,
|
|
6251
|
-
FigmaFileStructureNodeImportModel,
|
|
6252
|
-
FigmaFileStructureNodeType,
|
|
6253
|
-
FigmaFileStructureOrigin,
|
|
6254
|
-
FigmaFileStructureStatistics,
|
|
6255
|
-
FigmaImportBaseContext,
|
|
6256
|
-
FigmaImportContextWithDownloadScopes,
|
|
6257
|
-
FigmaNodeReference,
|
|
6258
|
-
FigmaNodeReferenceData,
|
|
6259
|
-
FigmaNodeReferenceElementData,
|
|
6260
|
-
FigmaPngRenderImportModel,
|
|
6261
|
-
FigmaRenderFormat,
|
|
6262
|
-
FigmaRenderImportModel,
|
|
6263
|
-
FigmaSvgRenderImportModel,
|
|
6264
|
-
FileStructureStats,
|
|
6265
|
-
FlaggedFeature,
|
|
6266
|
-
FontFamilyTokenData,
|
|
6267
|
-
FontFamilyValue,
|
|
6268
|
-
FontSizeTokenData,
|
|
6269
|
-
FontSizeUnit,
|
|
6270
|
-
FontSizeValue,
|
|
6271
|
-
FontWeightTokenData,
|
|
6272
|
-
FontWeightValue,
|
|
6134
|
+
DuplicateBulkElementsInput,
|
|
6273
6135
|
GetBlockDefinitionsResponse,
|
|
6274
|
-
GitProvider,
|
|
6275
|
-
GitProviderNames,
|
|
6276
|
-
GradientLayerData,
|
|
6277
|
-
GradientLayerValue,
|
|
6278
|
-
GradientStop,
|
|
6279
|
-
GradientTokenData,
|
|
6280
|
-
GradientTokenValue,
|
|
6281
|
-
GradientType,
|
|
6282
|
-
HANDLE_MAX_LENGTH,
|
|
6283
|
-
HANDLE_MIN_LENGTH,
|
|
6284
|
-
ImageImportModel,
|
|
6285
|
-
ImageImportModelType,
|
|
6286
|
-
ImportFunctionInput,
|
|
6287
|
-
ImportJob,
|
|
6288
|
-
ImportJobOperation,
|
|
6289
|
-
ImportJobState,
|
|
6290
|
-
ImportModelBase,
|
|
6291
|
-
ImportModelCollection,
|
|
6292
|
-
ImportModelInputBase,
|
|
6293
|
-
ImportModelInputCollection,
|
|
6294
|
-
ImportWarning,
|
|
6295
|
-
ImportWarningType,
|
|
6296
|
-
ImportedFigmaSourceData,
|
|
6297
|
-
IntegrationAuthType,
|
|
6298
|
-
IntegrationTokenSchema,
|
|
6299
|
-
IntegrationUserInfo,
|
|
6300
|
-
InternalStatus,
|
|
6301
|
-
InternalStatusSchema,
|
|
6302
|
-
InvoiceCouponSchema,
|
|
6303
|
-
InvoiceLineSchema,
|
|
6304
|
-
InvoiceSchema,
|
|
6305
|
-
LetterSpacingTokenData,
|
|
6306
|
-
LetterSpacingUnit,
|
|
6307
|
-
LetterSpacingValue,
|
|
6308
|
-
LineHeightTokenData,
|
|
6309
|
-
LineHeightUnit,
|
|
6310
|
-
LineHeightValue,
|
|
6311
|
-
MAX_MEMBERS_COUNT,
|
|
6312
|
-
NpmPackage,
|
|
6313
|
-
NpmProxyToken,
|
|
6314
|
-
NpmProxyTokenPayload,
|
|
6315
|
-
NpmRegistrCustomAuthConfig,
|
|
6316
|
-
NpmRegistryAuthConfig,
|
|
6317
|
-
NpmRegistryAuthType,
|
|
6318
|
-
NpmRegistryBasicAuthConfig,
|
|
6319
|
-
NpmRegistryBearerAuthConfig,
|
|
6320
|
-
NpmRegistryConfig,
|
|
6321
|
-
NpmRegistryNoAuthConfig,
|
|
6322
|
-
NpmRegistryType,
|
|
6323
|
-
OAuthProvider,
|
|
6324
|
-
OAuthProviderNames,
|
|
6325
|
-
OAuthProviderSchema,
|
|
6326
|
-
ObjectMeta,
|
|
6327
|
-
OpacityTokenData,
|
|
6328
|
-
OpacityValue,
|
|
6329
|
-
PageBlockAlignment,
|
|
6330
|
-
PageBlockAppearanceV2,
|
|
6331
|
-
PageBlockAsset,
|
|
6332
|
-
PageBlockAssetComponent,
|
|
6333
|
-
PageBlockAssetType,
|
|
6334
|
-
PageBlockBehaviorDataType,
|
|
6335
|
-
PageBlockBehaviorSelectionType,
|
|
6336
|
-
PageBlockCalloutType,
|
|
6337
|
-
PageBlockCategory,
|
|
6338
|
-
PageBlockCodeLanguage,
|
|
6339
|
-
PageBlockCustomBlockPropertyImageValue,
|
|
6340
|
-
PageBlockCustomBlockPropertyValue,
|
|
6341
|
-
PageBlockDataV2,
|
|
6342
|
-
PageBlockDefinition,
|
|
6343
|
-
PageBlockDefinitionAppearance,
|
|
6344
|
-
PageBlockDefinitionBehavior,
|
|
6345
|
-
PageBlockDefinitionBooleanPropertyStyle,
|
|
6346
|
-
PageBlockDefinitionItem,
|
|
6347
|
-
PageBlockDefinitionLayout,
|
|
6348
|
-
PageBlockDefinitionLayoutAlign,
|
|
6349
|
-
PageBlockDefinitionLayoutBase,
|
|
6350
|
-
PageBlockDefinitionLayoutGap,
|
|
6351
|
-
PageBlockDefinitionLayoutResizing,
|
|
6352
|
-
PageBlockDefinitionLayoutType,
|
|
6353
|
-
PageBlockDefinitionMultiRichTextPropertyStyle,
|
|
6354
|
-
PageBlockDefinitionMultiSelectPropertyStyle,
|
|
6355
|
-
PageBlockDefinitionOnboarding,
|
|
6356
|
-
PageBlockDefinitionProperty,
|
|
6357
|
-
PageBlockDefinitionPropertyOptions,
|
|
6358
|
-
PageBlockDefinitionPropertyType,
|
|
6359
|
-
PageBlockDefinitionRichTextPropertyStyle,
|
|
6360
|
-
PageBlockDefinitionSingleSelectPropertyStyle,
|
|
6361
|
-
PageBlockDefinitionTextPropertyStyle,
|
|
6362
|
-
PageBlockDefinitionVariant,
|
|
6363
6136
|
PageBlockEditorModel,
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
PageBlockFrame,
|
|
6367
|
-
PageBlockFrameOrigin,
|
|
6368
|
-
PageBlockImageAlignment,
|
|
6369
|
-
PageBlockImageType,
|
|
6370
|
-
PageBlockItemAssetPropertyValue,
|
|
6371
|
-
PageBlockItemAssetValue,
|
|
6372
|
-
PageBlockItemBooleanValue,
|
|
6373
|
-
PageBlockItemCodeValue,
|
|
6374
|
-
PageBlockItemColorValue,
|
|
6375
|
-
PageBlockItemComponentPropertyValue,
|
|
6376
|
-
PageBlockItemComponentValue,
|
|
6377
|
-
PageBlockItemDividerValue,
|
|
6378
|
-
PageBlockItemEmbedValue,
|
|
6379
|
-
PageBlockItemImageReference,
|
|
6380
|
-
PageBlockItemImageValue,
|
|
6381
|
-
PageBlockItemMarkdownValue,
|
|
6382
|
-
PageBlockItemMultiRichTextValue,
|
|
6383
|
-
PageBlockItemMultiSelectValue,
|
|
6384
|
-
PageBlockItemNumberValue,
|
|
6385
|
-
PageBlockItemRichTextValue,
|
|
6386
|
-
PageBlockItemSandboxValue,
|
|
6387
|
-
PageBlockItemSingleSelectValue,
|
|
6388
|
-
PageBlockItemStorybookValue,
|
|
6389
|
-
PageBlockItemTableCell,
|
|
6390
|
-
PageBlockItemTableImageNode,
|
|
6391
|
-
PageBlockItemTableMultiRichTextNode,
|
|
6392
|
-
PageBlockItemTableNode,
|
|
6393
|
-
PageBlockItemTableRichTextNode,
|
|
6394
|
-
PageBlockItemTableRow,
|
|
6395
|
-
PageBlockItemTableValue,
|
|
6396
|
-
PageBlockItemTextValue,
|
|
6397
|
-
PageBlockItemTokenPropertyValue,
|
|
6398
|
-
PageBlockItemTokenTypeValue,
|
|
6399
|
-
PageBlockItemTokenValue,
|
|
6400
|
-
PageBlockItemUntypedValue,
|
|
6401
|
-
PageBlockItemUrlValue,
|
|
6402
|
-
PageBlockItemV2,
|
|
6403
|
-
PageBlockLinkPreview,
|
|
6404
|
-
PageBlockLinkType,
|
|
6405
|
-
PageBlockLinkV2,
|
|
6406
|
-
PageBlockRenderCodeProperties,
|
|
6407
|
-
PageBlockShortcut,
|
|
6408
|
-
PageBlockTableCellAlignment,
|
|
6409
|
-
PageBlockTableColumn,
|
|
6410
|
-
PageBlockTableProperties,
|
|
6411
|
-
PageBlockText,
|
|
6412
|
-
PageBlockTextSpan,
|
|
6413
|
-
PageBlockTextSpanAttribute,
|
|
6414
|
-
PageBlockTextSpanAttributeType,
|
|
6415
|
-
PageBlockTheme,
|
|
6416
|
-
PageBlockThemeType,
|
|
6417
|
-
PageBlockTilesAlignment,
|
|
6418
|
-
PageBlockTilesLayout,
|
|
6419
|
-
PageBlockTypeV1,
|
|
6420
|
-
PageBlockUrlPreview,
|
|
6421
|
-
PageBlockV1,
|
|
6422
|
-
PageBlockV2,
|
|
6423
|
-
ParagraphIndentTokenData,
|
|
6424
|
-
ParagraphIndentUnit,
|
|
6425
|
-
ParagraphIndentValue,
|
|
6426
|
-
ParagraphSpacingTokenData,
|
|
6427
|
-
ParagraphSpacingUnit,
|
|
6428
|
-
ParagraphSpacingValue,
|
|
6429
|
-
PeriodSchema,
|
|
6430
|
-
PersonalAccessToken,
|
|
6431
|
-
PluginOAuthRequestSchema,
|
|
6432
|
-
Point2D,
|
|
6433
|
-
PostStripeCheckoutBodyInputSchema,
|
|
6434
|
-
PostStripeCheckoutOutputSchema,
|
|
6435
|
-
PostStripePortalSessionBodyInputSchema,
|
|
6436
|
-
PostStripePortalSessionOutputSchema,
|
|
6437
|
-
PostStripePortalUpdateSessionBodyInputSchema,
|
|
6438
|
-
PriceSchema,
|
|
6439
|
-
ProductCode,
|
|
6440
|
-
ProductCodeSchema,
|
|
6441
|
-
ProductCopyTokenData,
|
|
6442
|
-
ProductCopyValue,
|
|
6443
|
-
PublishedDoc,
|
|
6444
|
-
PublishedDocEnvironment,
|
|
6445
|
-
PublishedDocRoutingVersion,
|
|
6446
|
-
PublishedDocsChecksums,
|
|
6447
|
-
PulsarContributionBlock,
|
|
6448
|
-
PulsarContributionConfigurationProperty,
|
|
6449
|
-
PulsarContributionVariant,
|
|
6450
|
-
PulsarPropertyType,
|
|
6451
|
-
SHORT_PERSISTENT_ID_LENGTH,
|
|
6452
|
-
Session,
|
|
6453
|
-
SessionData,
|
|
6454
|
-
ShadowLayerValue,
|
|
6455
|
-
ShadowTokenData,
|
|
6456
|
-
ShadowType,
|
|
6457
|
-
ShallowDesignElement,
|
|
6458
|
-
Size,
|
|
6459
|
-
SizeOrUndefined,
|
|
6460
|
-
SizeTokenData,
|
|
6461
|
-
SizeUnit,
|
|
6462
|
-
SizeValue,
|
|
6463
|
-
SourceImportComponentSummary,
|
|
6464
|
-
SourceImportFrameSummary,
|
|
6465
|
-
SourceImportSummary,
|
|
6466
|
-
SourceImportSummaryByTokenType,
|
|
6467
|
-
SourceImportTokenSummary,
|
|
6468
|
-
SpaceTokenData,
|
|
6469
|
-
SpaceUnit,
|
|
6470
|
-
SpaceValue,
|
|
6471
|
-
SsoProvider,
|
|
6472
|
-
StringTokenData,
|
|
6473
|
-
StringValue,
|
|
6474
|
-
StripeSubscriptionStatus,
|
|
6475
|
-
StripeSubscriptionStatusSchema,
|
|
6476
|
-
Subscription,
|
|
6477
|
-
TextCase,
|
|
6478
|
-
TextCaseTokenData,
|
|
6479
|
-
TextCaseValue,
|
|
6480
|
-
TextDecoration,
|
|
6481
|
-
TextDecorationTokenData,
|
|
6482
|
-
TextDecorationValue,
|
|
6483
|
-
Theme,
|
|
6484
|
-
ThemeElementData,
|
|
6485
|
-
ThemeImportModel,
|
|
6486
|
-
ThemeImportModelInput,
|
|
6487
|
-
ThemeOrigin,
|
|
6488
|
-
ThemeOriginObject,
|
|
6489
|
-
ThemeOriginPart,
|
|
6490
|
-
ThemeOriginSource,
|
|
6491
|
-
ThemeOverride,
|
|
6492
|
-
ThemeOverrideImportModel,
|
|
6493
|
-
ThemeOverrideImportModelBase,
|
|
6494
|
-
ThemeOverrideImportModelInput,
|
|
6495
|
-
ThemeOverrideOrigin,
|
|
6496
|
-
ThemeOverrideOriginPart,
|
|
6497
|
-
ThemeUpdateImportModel,
|
|
6498
|
-
ThemeUpdateImportModelInput,
|
|
6499
|
-
TokenDataAliasSchema,
|
|
6500
|
-
TypographyTokenData,
|
|
6501
|
-
TypographyValue,
|
|
6502
|
-
UrlImageImportModel,
|
|
6503
|
-
User,
|
|
6504
|
-
UserIdentity,
|
|
6505
|
-
UserInvite,
|
|
6506
|
-
UserInvites,
|
|
6507
|
-
UserLinkedIntegrations,
|
|
6508
|
-
UserOnboarding,
|
|
6509
|
-
UserOnboardingDepartment,
|
|
6510
|
-
UserOnboardingJobLevel,
|
|
6511
|
-
UserProfile,
|
|
6512
|
-
UserSession,
|
|
6513
|
-
Visibility,
|
|
6514
|
-
VisibilityTokenData,
|
|
6515
|
-
VisibilityValue,
|
|
6516
|
-
Workspace,
|
|
6517
|
-
WorkspaceContext,
|
|
6518
|
-
WorkspaceInvitation,
|
|
6519
|
-
WorkspaceIpSettings,
|
|
6520
|
-
WorkspaceIpWhitelistEntry,
|
|
6521
|
-
WorkspaceMembership,
|
|
6522
|
-
WorkspaceProfile,
|
|
6523
|
-
WorkspaceRole,
|
|
6524
|
-
WorkspaceRoleSchema,
|
|
6525
|
-
WorkspaceWithDesignSystems,
|
|
6526
|
-
ZIndexTokenData,
|
|
6527
|
-
ZIndexUnit,
|
|
6528
|
-
ZIndexValue,
|
|
6529
|
-
addImportModelCollections,
|
|
6137
|
+
PostLiveblocksAuth,
|
|
6138
|
+
UpdateBulkElementsInput,
|
|
6530
6139
|
blockDefinitionForBlock,
|
|
6531
6140
|
blockToProsemirrorNode,
|
|
6532
|
-
designTokenImportModelTypeFilter,
|
|
6533
|
-
designTokenTypeFilter,
|
|
6534
|
-
extractTokenTypedData,
|
|
6535
|
-
figmaFileStructureImportModelToMap,
|
|
6536
|
-
figmaFileStructureToMap,
|
|
6537
6141
|
getMockPageBlockDefinitions,
|
|
6538
|
-
isDesignTokenImportModelOfType,
|
|
6539
|
-
isDesignTokenOfType,
|
|
6540
|
-
isImportedAsset,
|
|
6541
|
-
isImportedComponent,
|
|
6542
|
-
isImportedDesignToken,
|
|
6543
|
-
isTokenType,
|
|
6544
|
-
nullishToOptional,
|
|
6545
6142
|
pageToProsemirrorDoc,
|
|
6546
6143
|
pageToYXmlFragment,
|
|
6547
6144
|
pmSchema,
|
|
6548
6145
|
prosemirrorDocToPage,
|
|
6549
6146
|
prosemirrorNodeToBlock,
|
|
6550
|
-
publishedDocEnvironments,
|
|
6551
6147
|
serializeAsCustomBlock,
|
|
6552
|
-
|
|
6553
|
-
tokenElementTypes,
|
|
6554
|
-
traversePageBlocksV1,
|
|
6555
|
-
traverseStructure,
|
|
6556
|
-
tryParseShortPersistentId,
|
|
6557
|
-
yXmlFragmetToPage,
|
|
6558
|
-
zodCreateInputOmit,
|
|
6559
|
-
zodUpdateInputOmit
|
|
6148
|
+
yXmlFragmetToPage
|
|
6560
6149
|
};
|
|
6561
6150
|
//# sourceMappingURL=index.mjs.map
|