@supernova-studio/client 0.19.2 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +657 -6065
- package/dist/index.d.ts +657 -6065
- package/dist/index.js +78 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1068 -1034
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-to-dto.ts +6 -6
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +2 -2
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +2 -2
- package/src/api/dto/elements/documentation/group-action.ts +1 -1
- package/src/api/dto/elements/documentation/group.ts +8 -8
- package/src/api/dto/elements/documentation/page-v2.ts +3 -3
- package/src/yjs/design-system-content/index.ts +1 -0
- package/src/yjs/design-system-content/item-configuration.ts +5 -5
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { z as z14 } from "zod";
|
|
|
16
16
|
import { z as z17 } from "zod";
|
|
17
17
|
import { z as z15 } from "zod";
|
|
18
18
|
import { z as z16 } from "zod";
|
|
19
|
-
import { z as
|
|
19
|
+
import { z as z86 } from "zod";
|
|
20
20
|
import { z as z18 } from "zod";
|
|
21
21
|
import { z as z20 } from "zod";
|
|
22
22
|
import { z as z19 } from "zod";
|
|
@@ -36,15 +36,15 @@ import {
|
|
|
36
36
|
z as z32
|
|
37
37
|
} from "zod";
|
|
38
38
|
import { z as z34 } from "zod";
|
|
39
|
+
import { z as z40 } from "zod";
|
|
39
40
|
import { z as z39 } from "zod";
|
|
40
41
|
import { z as z38 } from "zod";
|
|
41
|
-
import { z as z37 } from "zod";
|
|
42
42
|
import { z as z36 } from "zod";
|
|
43
43
|
import { z as z35 } from "zod";
|
|
44
|
-
import { z as
|
|
45
|
-
import { z as z41 } from "zod";
|
|
46
|
-
import { z as z42 } from "zod";
|
|
44
|
+
import { z as z37 } from "zod";
|
|
47
45
|
import { z as z43 } from "zod";
|
|
46
|
+
import { z as z42 } from "zod";
|
|
47
|
+
import { z as z41 } from "zod";
|
|
48
48
|
import { z as z44 } from "zod";
|
|
49
49
|
import { z as z45 } from "zod";
|
|
50
50
|
import { z as z46 } from "zod";
|
|
@@ -71,61 +71,64 @@ import { z as z66 } from "zod";
|
|
|
71
71
|
import { z as z67 } from "zod";
|
|
72
72
|
import { z as z68 } from "zod";
|
|
73
73
|
import { z as z69 } from "zod";
|
|
74
|
-
import { z as z71 } from "zod";
|
|
75
74
|
import { z as z70 } from "zod";
|
|
75
|
+
import { z as z71 } from "zod";
|
|
76
76
|
import { z as z72 } from "zod";
|
|
77
|
-
import { z as z73 } from "zod";
|
|
78
|
-
import { z as z81 } from "zod";
|
|
79
77
|
import { z as z74 } from "zod";
|
|
80
|
-
import { z as
|
|
78
|
+
import { z as z73 } from "zod";
|
|
81
79
|
import { z as z75 } from "zod";
|
|
80
|
+
import { z as z76 } from "zod";
|
|
81
|
+
import { z as z84 } from "zod";
|
|
82
82
|
import { z as z77 } from "zod";
|
|
83
|
-
import { z as z78 } from "zod";
|
|
84
83
|
import { z as z79 } from "zod";
|
|
84
|
+
import { z as z78 } from "zod";
|
|
85
85
|
import { z as z80 } from "zod";
|
|
86
|
+
import { z as z81 } from "zod";
|
|
86
87
|
import { z as z82 } from "zod";
|
|
87
|
-
import { z as
|
|
88
|
-
import { z as z87 } from "zod";
|
|
89
|
-
import { z as z86 } from "zod";
|
|
88
|
+
import { z as z83 } from "zod";
|
|
90
89
|
import { z as z85 } from "zod";
|
|
91
|
-
import { z as
|
|
92
|
-
import { z as z89 } from "zod";
|
|
93
|
-
import { z as z99 } from "zod";
|
|
90
|
+
import { z as z87 } from "zod";
|
|
94
91
|
import { z as z90 } from "zod";
|
|
92
|
+
import { z as z89 } from "zod";
|
|
93
|
+
import { z as z88 } from "zod";
|
|
95
94
|
import { z as z91 } from "zod";
|
|
96
|
-
import { z as z93 } from "zod";
|
|
97
95
|
import { z as z92 } from "zod";
|
|
98
|
-
import { z as
|
|
96
|
+
import { z as z102 } from "zod";
|
|
97
|
+
import { z as z93 } from "zod";
|
|
99
98
|
import { z as z94 } from "zod";
|
|
100
99
|
import { z as z96 } from "zod";
|
|
101
|
-
import { z as
|
|
100
|
+
import { z as z95 } from "zod";
|
|
102
101
|
import { z as z98 } from "zod";
|
|
102
|
+
import { z as z97 } from "zod";
|
|
103
|
+
import { z as z99 } from "zod";
|
|
103
104
|
import { z as z100 } from "zod";
|
|
104
105
|
import { z as z101 } from "zod";
|
|
105
|
-
import { z as z102 } from "zod";
|
|
106
106
|
import { z as z103 } from "zod";
|
|
107
107
|
import { z as z104 } from "zod";
|
|
108
108
|
import { z as z105 } from "zod";
|
|
109
|
-
import { z as z108 } from "zod";
|
|
110
109
|
import { z as z106 } from "zod";
|
|
111
110
|
import { z as z107 } from "zod";
|
|
111
|
+
import { z as z108 } from "zod";
|
|
112
|
+
import { z as z111 } from "zod";
|
|
112
113
|
import { z as z109 } from "zod";
|
|
113
|
-
import { z as z114 } from "zod";
|
|
114
114
|
import { z as z110 } from "zod";
|
|
115
|
-
import { z as z111 } from "zod";
|
|
116
115
|
import { z as z112 } from "zod";
|
|
116
|
+
import { z as z117 } from "zod";
|
|
117
117
|
import { z as z113 } from "zod";
|
|
118
|
+
import { z as z114 } from "zod";
|
|
118
119
|
import { z as z115 } from "zod";
|
|
119
|
-
import { z as z117 } from "zod";
|
|
120
120
|
import { z as z116 } from "zod";
|
|
121
121
|
import { z as z118 } from "zod";
|
|
122
|
-
import { z as z119 } from "zod";
|
|
123
122
|
import { z as z120 } from "zod";
|
|
123
|
+
import { z as z119 } from "zod";
|
|
124
124
|
import { z as z121 } from "zod";
|
|
125
125
|
import { z as z122 } from "zod";
|
|
126
126
|
import { z as z123 } from "zod";
|
|
127
127
|
import { z as z124 } from "zod";
|
|
128
128
|
import { z as z125 } from "zod";
|
|
129
|
+
import { z as z126 } from "zod";
|
|
130
|
+
import { z as z127 } from "zod";
|
|
131
|
+
import { z as z128 } from "zod";
|
|
129
132
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
130
133
|
var PluginOAuthRequestSchema = z.object({
|
|
131
134
|
id: z.string(),
|
|
@@ -886,6 +889,21 @@ var PageBlockImageAlignment = z34.enum(["Left", "Center", "Stretch"]);
|
|
|
886
889
|
var PageBlockTableCellAlignment = z34.enum(["Left", "Center", "Right"]);
|
|
887
890
|
var PageBlockPreviewContainerSize = z34.enum(["Centered", "NaturalHeight"]);
|
|
888
891
|
var PageBlockThemeDisplayMode = z34.enum(["Split", "Override"]);
|
|
892
|
+
var PageBlockImageReference = z34.object({
|
|
893
|
+
type: PageBlockImageType,
|
|
894
|
+
url: z34.string(),
|
|
895
|
+
assetId: z34.string().optional(),
|
|
896
|
+
size: Size.optional(),
|
|
897
|
+
figmaFile: z34.object({
|
|
898
|
+
sourceId: z34.string(),
|
|
899
|
+
frameId: z34.string(),
|
|
900
|
+
frameReferenceId: z34.string(),
|
|
901
|
+
origin: z34.object({
|
|
902
|
+
title: z34.string().optional(),
|
|
903
|
+
sourceFileName: z34.string().optional()
|
|
904
|
+
})
|
|
905
|
+
}).optional()
|
|
906
|
+
});
|
|
889
907
|
var PageBlockColorV2 = z34.object({
|
|
890
908
|
value: z34.string(),
|
|
891
909
|
referencedTokenId: z34.string().optional()
|
|
@@ -916,21 +934,6 @@ var PageBlockDataV2 = z34.object({
|
|
|
916
934
|
appearance: PageBlockAppearanceV2.optional(),
|
|
917
935
|
items: z34.array(PageBlockItemV2)
|
|
918
936
|
});
|
|
919
|
-
var PageBlockItemImageReference = z34.object({
|
|
920
|
-
type: PageBlockImageType,
|
|
921
|
-
url: z34.string(),
|
|
922
|
-
assetId: z34.string().optional(),
|
|
923
|
-
size: Size.optional(),
|
|
924
|
-
figmaFile: z34.object({
|
|
925
|
-
sourceId: z34.string(),
|
|
926
|
-
frameId: z34.string(),
|
|
927
|
-
frameReferenceId: z34.string(),
|
|
928
|
-
origin: z34.object({
|
|
929
|
-
title: z34.string().optional(),
|
|
930
|
-
sourceFileName: z34.string().optional()
|
|
931
|
-
})
|
|
932
|
-
}).optional()
|
|
933
|
-
});
|
|
934
937
|
var PageBlockItemAssetValue = z34.object({
|
|
935
938
|
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
936
939
|
showSearch: z34.boolean().optional(),
|
|
@@ -1008,7 +1011,7 @@ var PageBlockItemImageValue = z34.object({
|
|
|
1008
1011
|
alt: z34.string().optional(),
|
|
1009
1012
|
caption: z34.string().optional(),
|
|
1010
1013
|
alignment: PageBlockImageAlignment.optional(),
|
|
1011
|
-
value:
|
|
1014
|
+
value: PageBlockImageReference.optional()
|
|
1012
1015
|
});
|
|
1013
1016
|
var PageBlockItemMarkdownValue = z34.object({
|
|
1014
1017
|
value: z34.string()
|
|
@@ -1124,176 +1127,205 @@ var DocumentationItemHeaderAlignmentSchema = z37.enum(["Left", "Center"]);
|
|
|
1124
1127
|
var DocumentationItemHeaderImageScaleTypeSchema = z37.enum(["AspectFill", "AspectFit"]);
|
|
1125
1128
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1126
1129
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1127
|
-
var
|
|
1128
|
-
description:
|
|
1130
|
+
var DocumentationItemHeaderV1 = z38.object({
|
|
1131
|
+
description: z38.string(),
|
|
1129
1132
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1130
1133
|
foregroundColor: ColorTokenData.nullish(),
|
|
1131
1134
|
backgroundColor: ColorTokenData.nullish(),
|
|
1132
1135
|
backgroundImageAsset: DocumentationPageAsset.nullish(),
|
|
1133
1136
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1134
|
-
showBackgroundOverlay:
|
|
1135
|
-
showCoverText:
|
|
1136
|
-
minHeight:
|
|
1137
|
+
showBackgroundOverlay: z38.boolean(),
|
|
1138
|
+
showCoverText: z38.boolean(),
|
|
1139
|
+
minHeight: z38.number().nullish()
|
|
1137
1140
|
});
|
|
1138
|
-
var
|
|
1141
|
+
var defaultDocumentationItemHeaderV1 = {
|
|
1139
1142
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1140
1143
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1141
1144
|
description: "",
|
|
1142
1145
|
showBackgroundOverlay: false,
|
|
1143
1146
|
showCoverText: true
|
|
1144
1147
|
};
|
|
1145
|
-
var
|
|
1146
|
-
showSidebar:
|
|
1147
|
-
header:
|
|
1148
|
+
var DocumentationItemConfigurationV1 = z39.object({
|
|
1149
|
+
showSidebar: z39.boolean(),
|
|
1150
|
+
header: DocumentationItemHeaderV1
|
|
1148
1151
|
});
|
|
1149
|
-
var DocumentationPageDataV1 =
|
|
1150
|
-
blocks:
|
|
1151
|
-
configuration: nullishToOptional(
|
|
1152
|
+
var DocumentationPageDataV1 = z40.object({
|
|
1153
|
+
blocks: z40.array(PageBlockV1),
|
|
1154
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1152
1155
|
});
|
|
1153
|
-
var DocumentationPageElementDataV1 =
|
|
1156
|
+
var DocumentationPageElementDataV1 = z40.object({
|
|
1157
|
+
dataVersion: z40.literal(1).optional().default(1),
|
|
1154
1158
|
value: DocumentationPageDataV1
|
|
1155
1159
|
});
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1160
|
+
var DocumentationItemHeaderV2 = z41.object({
|
|
1161
|
+
description: z41.string(),
|
|
1162
|
+
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1163
|
+
foregroundColor: PageBlockColorV2.nullish(),
|
|
1164
|
+
backgroundColor: PageBlockColorV2.nullish(),
|
|
1165
|
+
backgroundImageAsset: DocumentationPageAsset.nullish(),
|
|
1166
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1167
|
+
showBackgroundOverlay: z41.boolean(),
|
|
1168
|
+
showCoverText: z41.boolean(),
|
|
1169
|
+
minHeight: z41.number().nullish()
|
|
1170
|
+
});
|
|
1171
|
+
var defaultDocumentationItemHeaderV2 = {
|
|
1172
|
+
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1173
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1174
|
+
description: "",
|
|
1175
|
+
showBackgroundOverlay: false,
|
|
1176
|
+
showCoverText: true
|
|
1177
|
+
};
|
|
1178
|
+
var DocumentationItemConfigurationV2 = z42.object({
|
|
1179
|
+
showSidebar: z42.boolean(),
|
|
1180
|
+
header: DocumentationItemHeaderV2
|
|
1181
|
+
});
|
|
1182
|
+
var DocumentationPageDataV2 = z43.object({
|
|
1183
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1158
1184
|
});
|
|
1159
|
-
var DocumentationPageElementDataV2 =
|
|
1160
|
-
value:
|
|
1185
|
+
var DocumentationPageElementDataV2 = z43.object({
|
|
1186
|
+
value: DocumentationPageDataV1,
|
|
1187
|
+
valueV2: DocumentationPageDataV2.optional()
|
|
1161
1188
|
});
|
|
1162
|
-
var DurationUnit =
|
|
1163
|
-
var DurationValue =
|
|
1189
|
+
var DurationUnit = z44.enum(["Ms"]);
|
|
1190
|
+
var DurationValue = z44.object({
|
|
1164
1191
|
unit: DurationUnit,
|
|
1165
|
-
measure:
|
|
1192
|
+
measure: z44.number()
|
|
1166
1193
|
});
|
|
1167
1194
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1168
|
-
var FigmaFileStructureNodeType =
|
|
1169
|
-
var FigmaFileStructureNodeBase =
|
|
1170
|
-
id:
|
|
1171
|
-
name:
|
|
1195
|
+
var FigmaFileStructureNodeType = z45.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1196
|
+
var FigmaFileStructureNodeBase = z45.object({
|
|
1197
|
+
id: z45.string(),
|
|
1198
|
+
name: z45.string(),
|
|
1172
1199
|
type: FigmaFileStructureNodeType,
|
|
1173
1200
|
size: SizeOrUndefined,
|
|
1174
|
-
parentComponentSetId:
|
|
1201
|
+
parentComponentSetId: z45.string().optional()
|
|
1175
1202
|
});
|
|
1176
1203
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1177
|
-
children:
|
|
1204
|
+
children: z45.lazy(() => FigmaFileStructureNode.array())
|
|
1178
1205
|
});
|
|
1179
|
-
var FigmaFileStructureStatistics =
|
|
1180
|
-
frames:
|
|
1181
|
-
components:
|
|
1182
|
-
componentSets:
|
|
1206
|
+
var FigmaFileStructureStatistics = z45.object({
|
|
1207
|
+
frames: z45.number().nullable().optional().transform((v) => v ?? 0),
|
|
1208
|
+
components: z45.number().nullable().optional().transform((v) => v ?? 0),
|
|
1209
|
+
componentSets: z45.number().nullable().optional().transform((v) => v ?? 0)
|
|
1183
1210
|
});
|
|
1184
|
-
var FigmaFileStructureElementData =
|
|
1185
|
-
value:
|
|
1211
|
+
var FigmaFileStructureElementData = z45.object({
|
|
1212
|
+
value: z45.object({
|
|
1186
1213
|
structure: FigmaFileStructureNode,
|
|
1187
1214
|
assetsInFile: FigmaFileStructureStatistics
|
|
1188
1215
|
})
|
|
1189
1216
|
});
|
|
1190
|
-
var FigmaNodeReferenceData =
|
|
1191
|
-
structureElementId:
|
|
1192
|
-
nodeId:
|
|
1193
|
-
fileId:
|
|
1194
|
-
valid:
|
|
1195
|
-
assetId:
|
|
1196
|
-
assetScale:
|
|
1197
|
-
assetWidth:
|
|
1198
|
-
assetHeight:
|
|
1199
|
-
assetUrl:
|
|
1200
|
-
});
|
|
1201
|
-
var FigmaNodeReferenceElementData =
|
|
1217
|
+
var FigmaNodeReferenceData = z46.object({
|
|
1218
|
+
structureElementId: z46.string(),
|
|
1219
|
+
nodeId: z46.string(),
|
|
1220
|
+
fileId: z46.string().optional(),
|
|
1221
|
+
valid: z46.boolean(),
|
|
1222
|
+
assetId: z46.string().optional(),
|
|
1223
|
+
assetScale: z46.number().optional(),
|
|
1224
|
+
assetWidth: z46.number().optional(),
|
|
1225
|
+
assetHeight: z46.number().optional(),
|
|
1226
|
+
assetUrl: z46.string().optional()
|
|
1227
|
+
});
|
|
1228
|
+
var FigmaNodeReferenceElementData = z46.object({
|
|
1202
1229
|
value: FigmaNodeReferenceData
|
|
1203
1230
|
});
|
|
1204
|
-
var FontFamilyValue =
|
|
1231
|
+
var FontFamilyValue = z47.string();
|
|
1205
1232
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1206
|
-
var FontSizeUnit =
|
|
1207
|
-
var FontSizeValue =
|
|
1233
|
+
var FontSizeUnit = z48.enum(["Pixels", "Rem", "Percent"]);
|
|
1234
|
+
var FontSizeValue = z48.object({
|
|
1208
1235
|
unit: FontSizeUnit,
|
|
1209
|
-
measure:
|
|
1236
|
+
measure: z48.number()
|
|
1210
1237
|
});
|
|
1211
1238
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1212
|
-
var FontWeightValue =
|
|
1239
|
+
var FontWeightValue = z49.string();
|
|
1213
1240
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1214
|
-
var GradientType =
|
|
1215
|
-
var GradientStop =
|
|
1216
|
-
position:
|
|
1241
|
+
var GradientType = z50.enum(["Linear", "Radial", "Angular"]);
|
|
1242
|
+
var GradientStop = z50.object({
|
|
1243
|
+
position: z50.number(),
|
|
1217
1244
|
color: ColorTokenData
|
|
1218
1245
|
});
|
|
1219
|
-
var GradientLayerValue =
|
|
1246
|
+
var GradientLayerValue = z50.object({
|
|
1220
1247
|
from: Point2D,
|
|
1221
1248
|
to: Point2D,
|
|
1222
1249
|
type: GradientType,
|
|
1223
|
-
aspectRatio: nullishToOptional(
|
|
1250
|
+
aspectRatio: nullishToOptional(z50.number()),
|
|
1224
1251
|
// z.number(),
|
|
1225
|
-
stops:
|
|
1252
|
+
stops: z50.array(GradientStop).min(2)
|
|
1226
1253
|
});
|
|
1227
1254
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1228
|
-
var GradientTokenValue =
|
|
1255
|
+
var GradientTokenValue = z50.array(GradientLayerData);
|
|
1229
1256
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1230
|
-
var DocumentationGroupBehavior =
|
|
1231
|
-
var
|
|
1257
|
+
var DocumentationGroupBehavior = z51.enum(["Group", "Tabs"]);
|
|
1258
|
+
var ElementGroupDataDeprecated = z51.object({
|
|
1232
1259
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1233
|
-
configuration: nullishToOptional(
|
|
1260
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1234
1261
|
});
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1262
|
+
var ElementGroupDataV2 = z51.object({
|
|
1263
|
+
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1264
|
+
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1237
1265
|
});
|
|
1238
|
-
var
|
|
1239
|
-
|
|
1266
|
+
var ElementGroupElementData = z51.object({
|
|
1267
|
+
value: ElementGroupDataDeprecated.optional(),
|
|
1268
|
+
valueV2: ElementGroupDataV2.optional()
|
|
1269
|
+
});
|
|
1270
|
+
var LetterSpacingUnit = z52.enum(["Pixels", "Rem", "Percent"]);
|
|
1271
|
+
var LetterSpacingValue = z52.object({
|
|
1240
1272
|
unit: LetterSpacingUnit,
|
|
1241
|
-
measure:
|
|
1273
|
+
measure: z52.number()
|
|
1242
1274
|
});
|
|
1243
1275
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1244
|
-
var LineHeightUnit =
|
|
1245
|
-
var LineHeightValue =
|
|
1276
|
+
var LineHeightUnit = z53.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1277
|
+
var LineHeightValue = z53.object({
|
|
1246
1278
|
unit: LineHeightUnit,
|
|
1247
|
-
measure:
|
|
1279
|
+
measure: z53.number()
|
|
1248
1280
|
});
|
|
1249
1281
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1250
|
-
var ParagraphIndentUnit =
|
|
1251
|
-
var ParagraphIndentValue =
|
|
1282
|
+
var ParagraphIndentUnit = z54.enum(["Pixels", "Rem", "Percent"]);
|
|
1283
|
+
var ParagraphIndentValue = z54.object({
|
|
1252
1284
|
unit: ParagraphIndentUnit,
|
|
1253
|
-
measure:
|
|
1285
|
+
measure: z54.number()
|
|
1254
1286
|
});
|
|
1255
1287
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1256
|
-
var ParagraphSpacingUnit =
|
|
1257
|
-
var ParagraphSpacingValue =
|
|
1288
|
+
var ParagraphSpacingUnit = z55.enum(["Pixels", "Rem", "Percent"]);
|
|
1289
|
+
var ParagraphSpacingValue = z55.object({
|
|
1258
1290
|
unit: ParagraphSpacingUnit,
|
|
1259
|
-
measure:
|
|
1291
|
+
measure: z55.number()
|
|
1260
1292
|
});
|
|
1261
1293
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1262
|
-
var ProductCopyValue =
|
|
1294
|
+
var ProductCopyValue = z56.string();
|
|
1263
1295
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1264
|
-
var ShadowType =
|
|
1265
|
-
var ShadowLayerValue =
|
|
1296
|
+
var ShadowType = z57.enum(["Drop", "Inner"]);
|
|
1297
|
+
var ShadowLayerValue = z57.object({
|
|
1266
1298
|
color: ColorTokenData,
|
|
1267
|
-
x:
|
|
1268
|
-
y:
|
|
1269
|
-
radius:
|
|
1270
|
-
spread:
|
|
1299
|
+
x: z57.number(),
|
|
1300
|
+
y: z57.number(),
|
|
1301
|
+
radius: z57.number(),
|
|
1302
|
+
spread: z57.number(),
|
|
1271
1303
|
opacity: OpacityTokenData,
|
|
1272
1304
|
type: ShadowType
|
|
1273
1305
|
});
|
|
1274
1306
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1275
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1276
|
-
var SizeUnit =
|
|
1277
|
-
var SizeValue =
|
|
1307
|
+
var ShadowTokenData = tokenAliasOrValue(z57.array(ShadowTokenDataBase));
|
|
1308
|
+
var SizeUnit = z58.enum(["Pixels", "Rem", "Percent"]);
|
|
1309
|
+
var SizeValue = z58.object({
|
|
1278
1310
|
unit: SizeUnit,
|
|
1279
|
-
measure:
|
|
1311
|
+
measure: z58.number()
|
|
1280
1312
|
});
|
|
1281
1313
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1282
|
-
var SpaceUnit =
|
|
1283
|
-
var SpaceValue =
|
|
1314
|
+
var SpaceUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
1315
|
+
var SpaceValue = z59.object({
|
|
1284
1316
|
unit: SpaceUnit,
|
|
1285
|
-
measure:
|
|
1317
|
+
measure: z59.number()
|
|
1286
1318
|
});
|
|
1287
1319
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1288
|
-
var StringValue =
|
|
1320
|
+
var StringValue = z60.string();
|
|
1289
1321
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1290
|
-
var TextCase =
|
|
1322
|
+
var TextCase = z61.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1291
1323
|
var TextCaseValue = TextCase;
|
|
1292
1324
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1293
|
-
var TextDecoration =
|
|
1325
|
+
var TextDecoration = z62.enum(["None", "Underline", "Strikethrough"]);
|
|
1294
1326
|
var TextDecorationValue = TextDecoration;
|
|
1295
1327
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1296
|
-
var TypographyValue =
|
|
1328
|
+
var TypographyValue = z63.object({
|
|
1297
1329
|
fontSize: FontSizeTokenData,
|
|
1298
1330
|
fontFamily: FontFamilyTokenData,
|
|
1299
1331
|
fontWeight: FontWeightTokenData,
|
|
@@ -1305,75 +1337,77 @@ var TypographyValue = z60.object({
|
|
|
1305
1337
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1306
1338
|
});
|
|
1307
1339
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1308
|
-
var Visibility =
|
|
1340
|
+
var Visibility = z64.enum(["Hidden", "Visible"]);
|
|
1309
1341
|
var VisibilityValue = Visibility;
|
|
1310
1342
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1311
|
-
var ZIndexUnit =
|
|
1312
|
-
var ZIndexValue =
|
|
1343
|
+
var ZIndexUnit = z65.enum(["Raw"]);
|
|
1344
|
+
var ZIndexValue = z65.object({
|
|
1313
1345
|
unit: ZIndexUnit,
|
|
1314
|
-
measure:
|
|
1346
|
+
measure: z65.number()
|
|
1315
1347
|
});
|
|
1316
1348
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1317
|
-
var DesignElementOrigin =
|
|
1318
|
-
id:
|
|
1319
|
-
sourceId:
|
|
1320
|
-
name:
|
|
1321
|
-
});
|
|
1322
|
-
var DesignElementBase =
|
|
1323
|
-
id:
|
|
1324
|
-
persistentId:
|
|
1349
|
+
var DesignElementOrigin = z66.object({
|
|
1350
|
+
id: z66.string(),
|
|
1351
|
+
sourceId: z66.string(),
|
|
1352
|
+
name: z66.string()
|
|
1353
|
+
});
|
|
1354
|
+
var DesignElementBase = z66.object({
|
|
1355
|
+
id: z66.string(),
|
|
1356
|
+
persistentId: z66.string(),
|
|
1325
1357
|
meta: ObjectMeta,
|
|
1326
|
-
designSystemVersionId:
|
|
1327
|
-
createdAt:
|
|
1328
|
-
updatedAt:
|
|
1358
|
+
designSystemVersionId: z66.string(),
|
|
1359
|
+
createdAt: z66.coerce.date(),
|
|
1360
|
+
updatedAt: z66.coerce.date()
|
|
1329
1361
|
});
|
|
1330
1362
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1331
1363
|
origin: DesignElementOrigin
|
|
1332
1364
|
});
|
|
1333
|
-
var DesignElementGroupablePart =
|
|
1334
|
-
parentPersistentId:
|
|
1335
|
-
sortOrder:
|
|
1365
|
+
var DesignElementGroupablePart = z66.object({
|
|
1366
|
+
parentPersistentId: z66.string().optional(),
|
|
1367
|
+
sortOrder: z66.number()
|
|
1336
1368
|
});
|
|
1337
1369
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1338
1370
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1339
|
-
parentPersistentId:
|
|
1371
|
+
parentPersistentId: z66.string()
|
|
1340
1372
|
});
|
|
1341
|
-
var DesignElementBrandedPart =
|
|
1342
|
-
brandPersistentId:
|
|
1373
|
+
var DesignElementBrandedPart = z66.object({
|
|
1374
|
+
brandPersistentId: z66.string()
|
|
1343
1375
|
});
|
|
1344
|
-
var DesignElementSlugPart =
|
|
1345
|
-
slug:
|
|
1346
|
-
userSlug:
|
|
1376
|
+
var DesignElementSlugPart = z66.object({
|
|
1377
|
+
slug: z66.string().optional(),
|
|
1378
|
+
userSlug: z66.string().optional()
|
|
1347
1379
|
});
|
|
1348
|
-
var ComponentOriginPart =
|
|
1349
|
-
nodeId:
|
|
1350
|
-
width:
|
|
1351
|
-
height:
|
|
1380
|
+
var ComponentOriginPart = z67.object({
|
|
1381
|
+
nodeId: z67.string().optional(),
|
|
1382
|
+
width: z67.number().optional(),
|
|
1383
|
+
height: z67.number().optional()
|
|
1352
1384
|
});
|
|
1353
|
-
var ComponentAsset =
|
|
1354
|
-
assetId:
|
|
1355
|
-
assetPath:
|
|
1385
|
+
var ComponentAsset = z67.object({
|
|
1386
|
+
assetId: z67.string(),
|
|
1387
|
+
assetPath: z67.string()
|
|
1356
1388
|
});
|
|
1357
1389
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1358
1390
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1359
1391
|
origin: ComponentOrigin.optional(),
|
|
1360
1392
|
thumbnail: ComponentAsset,
|
|
1361
1393
|
svg: ComponentAsset.optional(),
|
|
1362
|
-
isAsset:
|
|
1394
|
+
isAsset: z67.boolean()
|
|
1363
1395
|
});
|
|
1364
1396
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1365
|
-
shortPersistentId:
|
|
1397
|
+
shortPersistentId: z68.string(),
|
|
1366
1398
|
data: DocumentationPageDataV1
|
|
1367
1399
|
});
|
|
1368
1400
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1369
|
-
shortPersistentId:
|
|
1370
|
-
data: DocumentationPageDataV2
|
|
1401
|
+
shortPersistentId: z69.string(),
|
|
1402
|
+
data: DocumentationPageDataV2.extend({
|
|
1403
|
+
oldBlocks: z69.array(PageBlockV1).optional()
|
|
1404
|
+
})
|
|
1371
1405
|
});
|
|
1372
|
-
var FigmaFileStructureOrigin =
|
|
1373
|
-
sourceId:
|
|
1374
|
-
fileId:
|
|
1406
|
+
var FigmaFileStructureOrigin = z70.object({
|
|
1407
|
+
sourceId: z70.string(),
|
|
1408
|
+
fileId: z70.string().optional()
|
|
1375
1409
|
});
|
|
1376
|
-
var FigmaFileStructureData =
|
|
1410
|
+
var FigmaFileStructureData = z70.object({
|
|
1377
1411
|
rootNode: FigmaFileStructureNode,
|
|
1378
1412
|
assetsInFile: FigmaFileStructureStatistics
|
|
1379
1413
|
});
|
|
@@ -1385,21 +1419,21 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1385
1419
|
data: FigmaNodeReferenceData
|
|
1386
1420
|
});
|
|
1387
1421
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1388
|
-
shortPersistentId:
|
|
1422
|
+
shortPersistentId: z71.string().optional(),
|
|
1389
1423
|
childType: DesignElementType,
|
|
1390
|
-
data:
|
|
1424
|
+
data: ElementGroupDataV2.optional()
|
|
1391
1425
|
});
|
|
1392
1426
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1393
1427
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1394
1428
|
data: PageBlockDataV2
|
|
1395
1429
|
});
|
|
1396
|
-
var PageBlockEditorModelV2 =
|
|
1397
|
-
id:
|
|
1430
|
+
var PageBlockEditorModelV2 = z72.object({
|
|
1431
|
+
id: z72.string(),
|
|
1398
1432
|
data: PageBlockDataV2
|
|
1399
1433
|
});
|
|
1400
|
-
var DesignTokenOriginPart =
|
|
1401
|
-
referenceOriginId:
|
|
1402
|
-
referencePersistentId:
|
|
1434
|
+
var DesignTokenOriginPart = z73.object({
|
|
1435
|
+
referenceOriginId: z73.string().optional(),
|
|
1436
|
+
referencePersistentId: z73.string().optional()
|
|
1403
1437
|
});
|
|
1404
1438
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1405
1439
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1411,111 +1445,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1411
1445
|
brandPersistentId: true,
|
|
1412
1446
|
designSystemVersionId: true
|
|
1413
1447
|
});
|
|
1414
|
-
var BlurTokenTypedData =
|
|
1415
|
-
type:
|
|
1448
|
+
var BlurTokenTypedData = z73.object({
|
|
1449
|
+
type: z73.literal("Blur"),
|
|
1416
1450
|
data: BlurTokenData
|
|
1417
1451
|
});
|
|
1418
|
-
var ColorTokenTypedData =
|
|
1419
|
-
type:
|
|
1452
|
+
var ColorTokenTypedData = z73.object({
|
|
1453
|
+
type: z73.literal("Color"),
|
|
1420
1454
|
data: ColorTokenData
|
|
1421
1455
|
});
|
|
1422
|
-
var GradientTokenTypedData =
|
|
1423
|
-
type:
|
|
1456
|
+
var GradientTokenTypedData = z73.object({
|
|
1457
|
+
type: z73.literal("Gradient"),
|
|
1424
1458
|
data: GradientTokenData
|
|
1425
1459
|
});
|
|
1426
|
-
var OpacityTokenTypedData =
|
|
1427
|
-
type:
|
|
1460
|
+
var OpacityTokenTypedData = z73.object({
|
|
1461
|
+
type: z73.literal("Opacity"),
|
|
1428
1462
|
data: OpacityTokenData
|
|
1429
1463
|
});
|
|
1430
|
-
var ShadowTokenTypedData =
|
|
1431
|
-
type:
|
|
1464
|
+
var ShadowTokenTypedData = z73.object({
|
|
1465
|
+
type: z73.literal("Shadow"),
|
|
1432
1466
|
data: ShadowTokenData
|
|
1433
1467
|
});
|
|
1434
|
-
var TypographyTokenTypedData =
|
|
1435
|
-
type:
|
|
1468
|
+
var TypographyTokenTypedData = z73.object({
|
|
1469
|
+
type: z73.literal("Typography"),
|
|
1436
1470
|
data: TypographyTokenData
|
|
1437
1471
|
});
|
|
1438
|
-
var StringTokenTypedData =
|
|
1439
|
-
type:
|
|
1472
|
+
var StringTokenTypedData = z73.object({
|
|
1473
|
+
type: z73.literal("String"),
|
|
1440
1474
|
data: StringTokenData
|
|
1441
1475
|
});
|
|
1442
|
-
var DimensionTokenTypedData =
|
|
1443
|
-
type:
|
|
1476
|
+
var DimensionTokenTypedData = z73.object({
|
|
1477
|
+
type: z73.literal("Dimension"),
|
|
1444
1478
|
data: DimensionTokenData
|
|
1445
1479
|
});
|
|
1446
|
-
var FontSizeTokenTypedData =
|
|
1447
|
-
type:
|
|
1480
|
+
var FontSizeTokenTypedData = z73.object({
|
|
1481
|
+
type: z73.literal("FontSize"),
|
|
1448
1482
|
data: FontSizeTokenData
|
|
1449
1483
|
});
|
|
1450
|
-
var FontFamilyTokenTypedData =
|
|
1451
|
-
type:
|
|
1484
|
+
var FontFamilyTokenTypedData = z73.object({
|
|
1485
|
+
type: z73.literal("FontFamily"),
|
|
1452
1486
|
data: FontFamilyTokenData
|
|
1453
1487
|
});
|
|
1454
|
-
var FontWeightTokenTypedData =
|
|
1455
|
-
type:
|
|
1488
|
+
var FontWeightTokenTypedData = z73.object({
|
|
1489
|
+
type: z73.literal("FontWeight"),
|
|
1456
1490
|
data: FontWeightTokenData
|
|
1457
1491
|
});
|
|
1458
|
-
var LetterSpacingTokenTypedData =
|
|
1459
|
-
type:
|
|
1492
|
+
var LetterSpacingTokenTypedData = z73.object({
|
|
1493
|
+
type: z73.literal("LetterSpacing"),
|
|
1460
1494
|
data: LetterSpacingTokenData
|
|
1461
1495
|
});
|
|
1462
|
-
var LineHeightTokenTypedData =
|
|
1463
|
-
type:
|
|
1496
|
+
var LineHeightTokenTypedData = z73.object({
|
|
1497
|
+
type: z73.literal("LineHeight"),
|
|
1464
1498
|
data: LineHeightTokenData
|
|
1465
1499
|
});
|
|
1466
|
-
var ParagraphSpacingTokenTypedData =
|
|
1467
|
-
type:
|
|
1500
|
+
var ParagraphSpacingTokenTypedData = z73.object({
|
|
1501
|
+
type: z73.literal("ParagraphSpacing"),
|
|
1468
1502
|
data: ParagraphSpacingTokenData
|
|
1469
1503
|
});
|
|
1470
|
-
var TextCaseTokenTypedData =
|
|
1471
|
-
type:
|
|
1504
|
+
var TextCaseTokenTypedData = z73.object({
|
|
1505
|
+
type: z73.literal("TextCase"),
|
|
1472
1506
|
data: TextCaseTokenData
|
|
1473
1507
|
});
|
|
1474
|
-
var TextDecorationTokenTypedData =
|
|
1475
|
-
type:
|
|
1508
|
+
var TextDecorationTokenTypedData = z73.object({
|
|
1509
|
+
type: z73.literal("TextDecoration"),
|
|
1476
1510
|
data: TextDecorationTokenData
|
|
1477
1511
|
});
|
|
1478
|
-
var BorderRadiusTokenTypedData =
|
|
1479
|
-
type:
|
|
1512
|
+
var BorderRadiusTokenTypedData = z73.object({
|
|
1513
|
+
type: z73.literal("BorderRadius"),
|
|
1480
1514
|
data: BorderRadiusTokenData
|
|
1481
1515
|
});
|
|
1482
|
-
var BorderWidthTokenTypedData =
|
|
1483
|
-
type:
|
|
1516
|
+
var BorderWidthTokenTypedData = z73.object({
|
|
1517
|
+
type: z73.literal("BorderWidth"),
|
|
1484
1518
|
data: BorderWidthTokenData
|
|
1485
1519
|
});
|
|
1486
|
-
var BorderTypedData =
|
|
1487
|
-
type:
|
|
1520
|
+
var BorderTypedData = z73.object({
|
|
1521
|
+
type: z73.literal("Border"),
|
|
1488
1522
|
data: BorderTokenData
|
|
1489
1523
|
});
|
|
1490
|
-
var ProductCopyTypedData =
|
|
1491
|
-
type:
|
|
1524
|
+
var ProductCopyTypedData = z73.object({
|
|
1525
|
+
type: z73.literal("ProductCopy"),
|
|
1492
1526
|
data: ProductCopyTokenData
|
|
1493
1527
|
});
|
|
1494
|
-
var SizeTypedData =
|
|
1495
|
-
type:
|
|
1528
|
+
var SizeTypedData = z73.object({
|
|
1529
|
+
type: z73.literal("Size"),
|
|
1496
1530
|
data: SizeTokenData
|
|
1497
1531
|
});
|
|
1498
|
-
var SpaceTypedData =
|
|
1499
|
-
type:
|
|
1532
|
+
var SpaceTypedData = z73.object({
|
|
1533
|
+
type: z73.literal("Space"),
|
|
1500
1534
|
data: SpaceTokenData
|
|
1501
1535
|
});
|
|
1502
|
-
var VisibilityTypedData =
|
|
1503
|
-
type:
|
|
1536
|
+
var VisibilityTypedData = z73.object({
|
|
1537
|
+
type: z73.literal("Visibility"),
|
|
1504
1538
|
data: VisibilityTokenData
|
|
1505
1539
|
});
|
|
1506
|
-
var ZIndexTypedData =
|
|
1507
|
-
type:
|
|
1540
|
+
var ZIndexTypedData = z73.object({
|
|
1541
|
+
type: z73.literal("ZIndex"),
|
|
1508
1542
|
data: ZIndexTokenData
|
|
1509
1543
|
});
|
|
1510
|
-
var DurationTypedData =
|
|
1511
|
-
type:
|
|
1544
|
+
var DurationTypedData = z73.object({
|
|
1545
|
+
type: z73.literal("Duration"),
|
|
1512
1546
|
data: DurationTokenData
|
|
1513
1547
|
});
|
|
1514
|
-
var FontTypedData =
|
|
1515
|
-
type:
|
|
1516
|
-
data:
|
|
1548
|
+
var FontTypedData = z73.object({
|
|
1549
|
+
type: z73.literal("Font"),
|
|
1550
|
+
data: z73.record(z73.any())
|
|
1517
1551
|
});
|
|
1518
|
-
var DesignTokenTypedData =
|
|
1552
|
+
var DesignTokenTypedData = z73.discriminatedUnion("type", [
|
|
1519
1553
|
BlurTokenTypedData,
|
|
1520
1554
|
BorderRadiusTokenTypedData,
|
|
1521
1555
|
BorderWidthTokenTypedData,
|
|
@@ -1548,66 +1582,66 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
1548
1582
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1549
1583
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1550
1584
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1551
|
-
|
|
1552
|
-
tokenPersistentId:
|
|
1585
|
+
z74.object({
|
|
1586
|
+
tokenPersistentId: z74.string(),
|
|
1553
1587
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1554
1588
|
})
|
|
1555
1589
|
);
|
|
1556
|
-
var ThemeElementData =
|
|
1557
|
-
value:
|
|
1558
|
-
overrides:
|
|
1590
|
+
var ThemeElementData = z74.object({
|
|
1591
|
+
value: z74.object({
|
|
1592
|
+
overrides: z74.array(ThemeOverride)
|
|
1559
1593
|
})
|
|
1560
1594
|
});
|
|
1561
|
-
var ThemeOriginPart =
|
|
1562
|
-
var ThemeOriginObject =
|
|
1563
|
-
id:
|
|
1564
|
-
name:
|
|
1595
|
+
var ThemeOriginPart = z74.object({});
|
|
1596
|
+
var ThemeOriginObject = z74.object({
|
|
1597
|
+
id: z74.string(),
|
|
1598
|
+
name: z74.string()
|
|
1565
1599
|
});
|
|
1566
|
-
var ThemeOriginSource =
|
|
1567
|
-
sourceId:
|
|
1568
|
-
sourceObjects:
|
|
1600
|
+
var ThemeOriginSource = z74.object({
|
|
1601
|
+
sourceId: z74.string(),
|
|
1602
|
+
sourceObjects: z74.array(ThemeOriginObject)
|
|
1569
1603
|
});
|
|
1570
|
-
var ThemeOrigin =
|
|
1571
|
-
sources:
|
|
1604
|
+
var ThemeOrigin = z74.object({
|
|
1605
|
+
sources: z74.array(ThemeOriginSource)
|
|
1572
1606
|
});
|
|
1573
1607
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1574
1608
|
origin: ThemeOrigin.optional(),
|
|
1575
|
-
overrides:
|
|
1609
|
+
overrides: z74.array(ThemeOverride)
|
|
1576
1610
|
});
|
|
1577
|
-
var FigmaFileDownloadScope =
|
|
1578
|
-
styles:
|
|
1579
|
-
components:
|
|
1580
|
-
currentVersion:
|
|
1581
|
-
publishedVersion:
|
|
1582
|
-
downloadChunkSize:
|
|
1611
|
+
var FigmaFileDownloadScope = z75.object({
|
|
1612
|
+
styles: z75.boolean(),
|
|
1613
|
+
components: z75.boolean(),
|
|
1614
|
+
currentVersion: z75.literal("__latest__").nullable(),
|
|
1615
|
+
publishedVersion: z75.string().nullable(),
|
|
1616
|
+
downloadChunkSize: z75.number().optional()
|
|
1583
1617
|
});
|
|
1584
|
-
var FigmaFileAccessData =
|
|
1585
|
-
accessToken:
|
|
1618
|
+
var FigmaFileAccessData = z75.object({
|
|
1619
|
+
accessToken: z75.string()
|
|
1586
1620
|
});
|
|
1587
|
-
var ImportFunctionInput =
|
|
1588
|
-
importJobId:
|
|
1589
|
-
importContextId:
|
|
1590
|
-
designSystemId:
|
|
1621
|
+
var ImportFunctionInput = z76.object({
|
|
1622
|
+
importJobId: z76.string(),
|
|
1623
|
+
importContextId: z76.string(),
|
|
1624
|
+
designSystemId: z76.string().optional()
|
|
1591
1625
|
});
|
|
1592
|
-
var ImportedFigmaSourceData =
|
|
1593
|
-
sourceId:
|
|
1626
|
+
var ImportedFigmaSourceData = z76.object({
|
|
1627
|
+
sourceId: z76.string(),
|
|
1594
1628
|
figmaRemote: DataSourceFigmaRemote
|
|
1595
1629
|
});
|
|
1596
|
-
var FigmaImportBaseContext =
|
|
1597
|
-
designSystemId:
|
|
1630
|
+
var FigmaImportBaseContext = z76.object({
|
|
1631
|
+
designSystemId: z76.string(),
|
|
1598
1632
|
/**
|
|
1599
1633
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1600
1634
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1601
1635
|
*
|
|
1602
1636
|
* fileId: file data
|
|
1603
1637
|
*/
|
|
1604
|
-
fileAccessByFileId:
|
|
1638
|
+
fileAccessByFileId: z76.record(FigmaFileAccessData),
|
|
1605
1639
|
/**
|
|
1606
1640
|
* Figma source data for which import was requested
|
|
1607
1641
|
*
|
|
1608
1642
|
* sourceId: source data
|
|
1609
1643
|
*/
|
|
1610
|
-
importedSourceDataBySourceId:
|
|
1644
|
+
importedSourceDataBySourceId: z76.record(ImportedFigmaSourceData)
|
|
1611
1645
|
});
|
|
1612
1646
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1613
1647
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1619,65 +1653,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
|
|
|
1619
1653
|
*
|
|
1620
1654
|
* File id -> file download scope
|
|
1621
1655
|
*/
|
|
1622
|
-
fileDownloadScopesByFileId:
|
|
1656
|
+
fileDownloadScopesByFileId: z76.record(FigmaFileDownloadScope),
|
|
1623
1657
|
/**
|
|
1624
1658
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1625
1659
|
* imported again.
|
|
1626
1660
|
*
|
|
1627
1661
|
* Source id -> import metadata
|
|
1628
1662
|
*/
|
|
1629
|
-
changedImportedSourceDataBySourceId:
|
|
1663
|
+
changedImportedSourceDataBySourceId: z76.record(ChangedImportedFigmaSourceData)
|
|
1630
1664
|
});
|
|
1631
|
-
var ImageImportModelType =
|
|
1632
|
-
var ImageImportModelBase =
|
|
1665
|
+
var ImageImportModelType = z77.enum(["Url", "FigmaRender"]);
|
|
1666
|
+
var ImageImportModelBase = z77.object({
|
|
1633
1667
|
scope: AssetScope
|
|
1634
1668
|
});
|
|
1635
1669
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1636
|
-
type:
|
|
1637
|
-
url:
|
|
1638
|
-
originKey:
|
|
1639
|
-
extension:
|
|
1670
|
+
type: z77.literal(ImageImportModelType.enum.Url),
|
|
1671
|
+
url: z77.string(),
|
|
1672
|
+
originKey: z77.string(),
|
|
1673
|
+
extension: z77.enum(["png", "svg", "jpg"])
|
|
1640
1674
|
});
|
|
1641
|
-
var FigmaRenderFormat =
|
|
1675
|
+
var FigmaRenderFormat = z77.enum(["Svg", "Png"]);
|
|
1642
1676
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1643
|
-
type:
|
|
1644
|
-
fileId:
|
|
1645
|
-
fileVersionId:
|
|
1646
|
-
nodeId:
|
|
1647
|
-
originKey:
|
|
1677
|
+
type: z77.literal(ImageImportModelType.enum.FigmaRender),
|
|
1678
|
+
fileId: z77.string(),
|
|
1679
|
+
fileVersionId: z77.string().optional(),
|
|
1680
|
+
nodeId: z77.string(),
|
|
1681
|
+
originKey: z77.string()
|
|
1648
1682
|
});
|
|
1649
1683
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1650
|
-
format:
|
|
1651
|
-
scale:
|
|
1684
|
+
format: z77.literal(FigmaRenderFormat.enum.Png),
|
|
1685
|
+
scale: z77.number()
|
|
1652
1686
|
});
|
|
1653
1687
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1654
|
-
format:
|
|
1688
|
+
format: z77.literal(FigmaRenderFormat.enum.Svg)
|
|
1655
1689
|
});
|
|
1656
|
-
var FigmaRenderImportModel =
|
|
1690
|
+
var FigmaRenderImportModel = z77.discriminatedUnion("format", [
|
|
1657
1691
|
FigmaPngRenderImportModel,
|
|
1658
1692
|
FigmaSvgRenderImportModel
|
|
1659
1693
|
]);
|
|
1660
|
-
var ImageImportModel =
|
|
1661
|
-
var ImportModelBase =
|
|
1662
|
-
id:
|
|
1694
|
+
var ImageImportModel = z77.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1695
|
+
var ImportModelBase = z78.object({
|
|
1696
|
+
id: z78.string(),
|
|
1663
1697
|
meta: ObjectMeta,
|
|
1664
1698
|
origin: DesignElementOrigin,
|
|
1665
|
-
brandPersistentId:
|
|
1666
|
-
sortOrder:
|
|
1699
|
+
brandPersistentId: z78.string(),
|
|
1700
|
+
sortOrder: z78.number()
|
|
1667
1701
|
});
|
|
1668
1702
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1669
1703
|
brandPersistentId: true,
|
|
1670
1704
|
origin: true,
|
|
1671
1705
|
sortOrder: true
|
|
1672
1706
|
}).extend({
|
|
1673
|
-
originId:
|
|
1674
|
-
originMetadata:
|
|
1707
|
+
originId: z78.string(),
|
|
1708
|
+
originMetadata: z78.record(z78.any())
|
|
1675
1709
|
});
|
|
1676
|
-
var ComponentImportModelPart =
|
|
1710
|
+
var ComponentImportModelPart = z79.object({
|
|
1677
1711
|
thumbnail: ImageImportModel
|
|
1678
1712
|
});
|
|
1679
1713
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1680
|
-
isAsset:
|
|
1714
|
+
isAsset: z79.boolean(),
|
|
1681
1715
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1682
1716
|
origin: ComponentOrigin
|
|
1683
1717
|
});
|
|
@@ -1689,44 +1723,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1689
1723
|
originMetadata: ComponentOriginPart
|
|
1690
1724
|
});
|
|
1691
1725
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1692
|
-
|
|
1693
|
-
id:
|
|
1726
|
+
z80.object({
|
|
1727
|
+
id: z80.string(),
|
|
1694
1728
|
meta: ObjectMeta
|
|
1695
1729
|
})
|
|
1696
1730
|
);
|
|
1697
1731
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1698
|
-
|
|
1732
|
+
z80.object({
|
|
1699
1733
|
origin: ThemeOverrideOrigin
|
|
1700
1734
|
})
|
|
1701
1735
|
);
|
|
1702
1736
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1703
|
-
|
|
1704
|
-
originId:
|
|
1737
|
+
z80.object({
|
|
1738
|
+
originId: z80.string(),
|
|
1705
1739
|
originMetadata: ThemeOverrideOriginPart
|
|
1706
1740
|
})
|
|
1707
1741
|
);
|
|
1708
|
-
var ThemeImportModel =
|
|
1742
|
+
var ThemeImportModel = z80.object({
|
|
1709
1743
|
meta: ObjectMeta,
|
|
1710
|
-
brandPersistentId:
|
|
1744
|
+
brandPersistentId: z80.string(),
|
|
1711
1745
|
originSource: ThemeOriginSource,
|
|
1712
|
-
overrides:
|
|
1713
|
-
sortOrder:
|
|
1746
|
+
overrides: z80.array(ThemeOverrideImportModel),
|
|
1747
|
+
sortOrder: z80.number()
|
|
1714
1748
|
});
|
|
1715
|
-
var ThemeImportModelInput =
|
|
1749
|
+
var ThemeImportModelInput = z80.object({
|
|
1716
1750
|
meta: ObjectMeta,
|
|
1717
|
-
originObjects:
|
|
1718
|
-
overrides:
|
|
1751
|
+
originObjects: z80.array(ThemeOriginObject),
|
|
1752
|
+
overrides: z80.array(ThemeOverrideImportModelInput)
|
|
1719
1753
|
});
|
|
1720
|
-
var ThemeUpdateImportModel =
|
|
1721
|
-
themePersistentId:
|
|
1722
|
-
overrides:
|
|
1754
|
+
var ThemeUpdateImportModel = z80.object({
|
|
1755
|
+
themePersistentId: z80.string(),
|
|
1756
|
+
overrides: z80.array(ThemeOverrideImportModel)
|
|
1723
1757
|
});
|
|
1724
|
-
var ThemeUpdateImportModelInput =
|
|
1725
|
-
themePersistentId:
|
|
1726
|
-
overrides:
|
|
1758
|
+
var ThemeUpdateImportModelInput = z80.object({
|
|
1759
|
+
themePersistentId: z80.string(),
|
|
1760
|
+
overrides: z80.array(ThemeOverrideImportModelInput)
|
|
1727
1761
|
});
|
|
1728
|
-
var DesignTokenImportModelPart =
|
|
1729
|
-
collection:
|
|
1762
|
+
var DesignTokenImportModelPart = z81.object({
|
|
1763
|
+
collection: z81.string().optional()
|
|
1730
1764
|
});
|
|
1731
1765
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1732
1766
|
origin: DesignTokenOrigin
|
|
@@ -1740,10 +1774,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
|
1740
1774
|
image: FigmaPngRenderImportModel
|
|
1741
1775
|
});
|
|
1742
1776
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1743
|
-
children:
|
|
1777
|
+
children: z82.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1744
1778
|
});
|
|
1745
|
-
var FigmaFileStructureImportModelPart =
|
|
1746
|
-
data:
|
|
1779
|
+
var FigmaFileStructureImportModelPart = z82.object({
|
|
1780
|
+
data: z82.object({
|
|
1747
1781
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1748
1782
|
assetsInFile: FigmaFileStructureStatistics
|
|
1749
1783
|
})
|
|
@@ -1754,31 +1788,31 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1754
1788
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1755
1789
|
FigmaFileStructureImportModelPart.shape
|
|
1756
1790
|
).extend({
|
|
1757
|
-
fileVersionId:
|
|
1791
|
+
fileVersionId: z82.string()
|
|
1758
1792
|
});
|
|
1759
|
-
var DataSourceImportModel =
|
|
1760
|
-
id:
|
|
1761
|
-
fileName:
|
|
1762
|
-
thumbnailUrl:
|
|
1793
|
+
var DataSourceImportModel = z83.object({
|
|
1794
|
+
id: z83.string(),
|
|
1795
|
+
fileName: z83.string().optional(),
|
|
1796
|
+
thumbnailUrl: z83.string().optional()
|
|
1763
1797
|
});
|
|
1764
|
-
var ImportModelInputCollection =
|
|
1798
|
+
var ImportModelInputCollection = z84.object({
|
|
1765
1799
|
source: DataSourceImportModel,
|
|
1766
|
-
tokens:
|
|
1767
|
-
components:
|
|
1768
|
-
assets:
|
|
1769
|
-
themeUpdates:
|
|
1770
|
-
themes:
|
|
1800
|
+
tokens: z84.array(DesignTokenImportModelInput).default([]),
|
|
1801
|
+
components: z84.array(ComponentImportModelInput).default([]),
|
|
1802
|
+
assets: z84.array(AssetImportModelInput).default([]),
|
|
1803
|
+
themeUpdates: z84.array(ThemeUpdateImportModelInput).default([]),
|
|
1804
|
+
themes: z84.array(ThemeImportModelInput).default([]),
|
|
1771
1805
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1772
1806
|
});
|
|
1773
|
-
var ImportModelCollection =
|
|
1774
|
-
sources:
|
|
1775
|
-
tokens:
|
|
1776
|
-
components:
|
|
1777
|
-
themeUpdates:
|
|
1778
|
-
themes:
|
|
1779
|
-
figmaFileStructures:
|
|
1807
|
+
var ImportModelCollection = z84.object({
|
|
1808
|
+
sources: z84.array(DataSourceImportModel),
|
|
1809
|
+
tokens: z84.array(DesignTokenImportModel).default([]),
|
|
1810
|
+
components: z84.array(ComponentImportModel).default([]),
|
|
1811
|
+
themeUpdates: z84.array(ThemeUpdateImportModel).default([]),
|
|
1812
|
+
themes: z84.array(ThemeImportModel).default([]),
|
|
1813
|
+
figmaFileStructures: z84.array(FigmaFileStructureImportModel)
|
|
1780
1814
|
});
|
|
1781
|
-
var ImportWarningType =
|
|
1815
|
+
var ImportWarningType = z85.enum([
|
|
1782
1816
|
"NoVersionFound",
|
|
1783
1817
|
"UnsupportedFill",
|
|
1784
1818
|
"UnsupportedStroke",
|
|
@@ -1792,25 +1826,25 @@ var ImportWarningType = z82.enum([
|
|
|
1792
1826
|
"DuplicateImportedStyleId",
|
|
1793
1827
|
"DuplicateImportedStylePath"
|
|
1794
1828
|
]);
|
|
1795
|
-
var ImportWarning =
|
|
1829
|
+
var ImportWarning = z85.object({
|
|
1796
1830
|
warningType: ImportWarningType,
|
|
1797
|
-
componentId:
|
|
1798
|
-
componentName:
|
|
1799
|
-
styleId:
|
|
1800
|
-
styleName:
|
|
1801
|
-
unsupportedStyleValueType:
|
|
1831
|
+
componentId: z85.string().optional(),
|
|
1832
|
+
componentName: z85.string().optional(),
|
|
1833
|
+
styleId: z85.string().optional(),
|
|
1834
|
+
styleName: z85.string().optional(),
|
|
1835
|
+
unsupportedStyleValueType: z85.string().optional()
|
|
1802
1836
|
});
|
|
1803
|
-
var FileStructureStats =
|
|
1837
|
+
var FileStructureStats = z86.object({
|
|
1804
1838
|
frames: zeroNumberByDefault2(),
|
|
1805
1839
|
components: zeroNumberByDefault2(),
|
|
1806
1840
|
componentSets: zeroNumberByDefault2()
|
|
1807
1841
|
});
|
|
1808
1842
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1809
1843
|
// Backward compatibility
|
|
1810
|
-
|
|
1844
|
+
z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1811
1845
|
);
|
|
1812
|
-
var SourceImportSummaryByTokenType =
|
|
1813
|
-
var SourceImportTokenSummary =
|
|
1846
|
+
var SourceImportSummaryByTokenType = z86.record(SourceImportSummaryByTokenTypeKey, z86.number());
|
|
1847
|
+
var SourceImportTokenSummary = z86.object({
|
|
1814
1848
|
tokensCreated: zeroNumberByDefault2(),
|
|
1815
1849
|
tokensUpdated: zeroNumberByDefault2(),
|
|
1816
1850
|
tokensDeleted: zeroNumberByDefault2(),
|
|
@@ -1818,7 +1852,7 @@ var SourceImportTokenSummary = z83.object({
|
|
|
1818
1852
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1819
1853
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1820
1854
|
});
|
|
1821
|
-
var SourceImportComponentSummary =
|
|
1855
|
+
var SourceImportComponentSummary = z86.object({
|
|
1822
1856
|
componentsCreated: zeroNumberByDefault2(),
|
|
1823
1857
|
componentsUpdated: zeroNumberByDefault2(),
|
|
1824
1858
|
componentsDeleted: zeroNumberByDefault2(),
|
|
@@ -1826,54 +1860,54 @@ var SourceImportComponentSummary = z83.object({
|
|
|
1826
1860
|
componentAssetsUpdated: zeroNumberByDefault2(),
|
|
1827
1861
|
componentAssetsDeleted: zeroNumberByDefault2()
|
|
1828
1862
|
});
|
|
1829
|
-
var SourceImportFrameSummary =
|
|
1863
|
+
var SourceImportFrameSummary = z86.object({
|
|
1830
1864
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1831
|
-
invalidReferencesCount: nullishToOptional(
|
|
1832
|
-
});
|
|
1833
|
-
var SourceImportSummary =
|
|
1834
|
-
sourceId: nullishToOptional(
|
|
1835
|
-
brandId: nullishToOptional(
|
|
1836
|
-
versionId: nullishToOptional(
|
|
1837
|
-
error: nullishToOptional(
|
|
1838
|
-
isFailed:
|
|
1839
|
-
warnings:
|
|
1865
|
+
invalidReferencesCount: nullishToOptional(z86.number().optional())
|
|
1866
|
+
});
|
|
1867
|
+
var SourceImportSummary = z86.object({
|
|
1868
|
+
sourceId: nullishToOptional(z86.string()),
|
|
1869
|
+
brandId: nullishToOptional(z86.string()),
|
|
1870
|
+
versionId: nullishToOptional(z86.string()),
|
|
1871
|
+
error: nullishToOptional(z86.any()),
|
|
1872
|
+
isFailed: z86.boolean(),
|
|
1873
|
+
warnings: z86.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1840
1874
|
...SourceImportTokenSummary.shape,
|
|
1841
1875
|
...SourceImportComponentSummary.shape,
|
|
1842
1876
|
...FileStructureStats.shape
|
|
1843
1877
|
});
|
|
1844
1878
|
function zeroNumberByDefault2() {
|
|
1845
|
-
return
|
|
1879
|
+
return z86.number().nullish().transform((v) => v ?? 0);
|
|
1846
1880
|
}
|
|
1847
|
-
var PageBlockDefinitionAppearance =
|
|
1848
|
-
isBordered:
|
|
1849
|
-
hasBackground:
|
|
1850
|
-
isEditorPresentationDifferent:
|
|
1851
|
-
});
|
|
1852
|
-
var PageBlockDefinitionLayoutType =
|
|
1853
|
-
var PageBlockDefinitionLayoutGap =
|
|
1854
|
-
var PageBlockDefinitionLayoutAlign =
|
|
1855
|
-
var PageBlockDefinitionLayoutResizing =
|
|
1856
|
-
var PageBlockDefinitionLayoutBase =
|
|
1881
|
+
var PageBlockDefinitionAppearance = z87.object({
|
|
1882
|
+
isBordered: z87.boolean().optional(),
|
|
1883
|
+
hasBackground: z87.boolean().optional(),
|
|
1884
|
+
isEditorPresentationDifferent: z87.boolean().optional()
|
|
1885
|
+
});
|
|
1886
|
+
var PageBlockDefinitionLayoutType = z88.enum(["Column", "Row"]);
|
|
1887
|
+
var PageBlockDefinitionLayoutGap = z88.enum(["Small", "Medium", "Large", "None"]);
|
|
1888
|
+
var PageBlockDefinitionLayoutAlign = z88.enum(["Start", "Center", "End"]);
|
|
1889
|
+
var PageBlockDefinitionLayoutResizing = z88.enum(["Fill", "Hug"]);
|
|
1890
|
+
var PageBlockDefinitionLayoutBase = z88.object({
|
|
1857
1891
|
type: PageBlockDefinitionLayoutType,
|
|
1858
1892
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1859
1893
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1860
1894
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1861
1895
|
});
|
|
1862
1896
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1863
|
-
children:
|
|
1864
|
-
});
|
|
1865
|
-
var PageBlockDefinitionVariant =
|
|
1866
|
-
id:
|
|
1867
|
-
name:
|
|
1868
|
-
image:
|
|
1869
|
-
description:
|
|
1870
|
-
documentationLink:
|
|
1897
|
+
children: z88.lazy(() => z88.array(PageBlockDefinitionLayout.or(z88.string())))
|
|
1898
|
+
});
|
|
1899
|
+
var PageBlockDefinitionVariant = z88.object({
|
|
1900
|
+
id: z88.string(),
|
|
1901
|
+
name: z88.string(),
|
|
1902
|
+
image: z88.string().optional(),
|
|
1903
|
+
description: z88.string().optional(),
|
|
1904
|
+
documentationLink: z88.string().optional(),
|
|
1871
1905
|
layout: PageBlockDefinitionLayout,
|
|
1872
|
-
maxColumns:
|
|
1873
|
-
defaultColumns:
|
|
1906
|
+
maxColumns: z88.number().optional(),
|
|
1907
|
+
defaultColumns: z88.number().optional(),
|
|
1874
1908
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1875
1909
|
});
|
|
1876
|
-
var PageBlockDefinitionPropertyType =
|
|
1910
|
+
var PageBlockDefinitionPropertyType = z89.enum([
|
|
1877
1911
|
"RichText",
|
|
1878
1912
|
"MultiRichText",
|
|
1879
1913
|
"Text",
|
|
@@ -1900,7 +1934,7 @@ var PageBlockDefinitionPropertyType = z86.enum([
|
|
|
1900
1934
|
"Storybook",
|
|
1901
1935
|
"Color"
|
|
1902
1936
|
]);
|
|
1903
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
1937
|
+
var PageBlockDefinitionRichTextPropertyStyle = z89.enum([
|
|
1904
1938
|
"Title1",
|
|
1905
1939
|
"Title2",
|
|
1906
1940
|
"Title3",
|
|
@@ -1910,8 +1944,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
|
|
|
1910
1944
|
"Callout",
|
|
1911
1945
|
"Default"
|
|
1912
1946
|
]);
|
|
1913
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
1914
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
1947
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z89.enum(["OL", "UL", "Default"]);
|
|
1948
|
+
var PageBlockDefinitionTextPropertyStyle = z89.enum([
|
|
1915
1949
|
"Title1",
|
|
1916
1950
|
"Title2",
|
|
1917
1951
|
"Title3",
|
|
@@ -1924,77 +1958,77 @@ var PageBlockDefinitionTextPropertyStyle = z86.enum([
|
|
|
1924
1958
|
"SmallBold",
|
|
1925
1959
|
"SmallSemibold"
|
|
1926
1960
|
]);
|
|
1927
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
1928
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
1929
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
1961
|
+
var PageBlockDefinitionTextPropertyColor = z89.enum(["Neutral", "NeutralFaded"]);
|
|
1962
|
+
var PageBlockDefinitionBooleanPropertyStyle = z89.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
1963
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z89.enum([
|
|
1930
1964
|
"SegmentedControl",
|
|
1931
1965
|
"ToggleButton",
|
|
1932
1966
|
"Select",
|
|
1933
1967
|
"Checkbox"
|
|
1934
1968
|
]);
|
|
1935
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
1936
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
1937
|
-
var PageBlockDefinitionImageWidth =
|
|
1938
|
-
var PageBlockDefinitionSelectChoice =
|
|
1939
|
-
value:
|
|
1940
|
-
name:
|
|
1941
|
-
icon:
|
|
1942
|
-
});
|
|
1943
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
1944
|
-
var PageBlockDefinitionRichTextOptions =
|
|
1969
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z89.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
1970
|
+
var PageBlockDefinitionImageAspectRatio = z89.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
1971
|
+
var PageBlockDefinitionImageWidth = z89.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
1972
|
+
var PageBlockDefinitionSelectChoice = z89.object({
|
|
1973
|
+
value: z89.string(),
|
|
1974
|
+
name: z89.string(),
|
|
1975
|
+
icon: z89.string().optional()
|
|
1976
|
+
});
|
|
1977
|
+
var PageBlockDefinitionUntypedPropertyOptions = z89.record(z89.any());
|
|
1978
|
+
var PageBlockDefinitionRichTextOptions = z89.object({
|
|
1945
1979
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
1946
1980
|
});
|
|
1947
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
1981
|
+
var PageBlockDefinitionMutiRichTextOptions = z89.object({
|
|
1948
1982
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
1949
1983
|
});
|
|
1950
|
-
var PageBlockDefinitionTextOptions =
|
|
1951
|
-
placeholder:
|
|
1952
|
-
defaultValue:
|
|
1984
|
+
var PageBlockDefinitionTextOptions = z89.object({
|
|
1985
|
+
placeholder: z89.string().optional(),
|
|
1986
|
+
defaultValue: z89.string().optional(),
|
|
1953
1987
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
1954
1988
|
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
1955
1989
|
});
|
|
1956
|
-
var PageBlockDefinitionSelectOptions =
|
|
1990
|
+
var PageBlockDefinitionSelectOptions = z89.object({
|
|
1957
1991
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
1958
|
-
defaultChoice:
|
|
1959
|
-
choices:
|
|
1992
|
+
defaultChoice: z89.string(),
|
|
1993
|
+
choices: z89.array(PageBlockDefinitionSelectChoice)
|
|
1960
1994
|
});
|
|
1961
|
-
var PageBlockDefinitionImageOptions =
|
|
1995
|
+
var PageBlockDefinitionImageOptions = z89.object({
|
|
1962
1996
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
1963
1997
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
1964
|
-
allowCaption:
|
|
1965
|
-
recommendation:
|
|
1998
|
+
allowCaption: z89.boolean().optional(),
|
|
1999
|
+
recommendation: z89.string().optional()
|
|
1966
2000
|
});
|
|
1967
|
-
var PageBlockDefinitionBooleanOptions =
|
|
1968
|
-
defaultvalue:
|
|
2001
|
+
var PageBlockDefinitionBooleanOptions = z89.object({
|
|
2002
|
+
defaultvalue: z89.boolean().optional(),
|
|
1969
2003
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
1970
2004
|
});
|
|
1971
|
-
var PageBlockDefinitionNumberOptions =
|
|
1972
|
-
defaultValue:
|
|
1973
|
-
min:
|
|
1974
|
-
max:
|
|
1975
|
-
step:
|
|
1976
|
-
placeholder:
|
|
2005
|
+
var PageBlockDefinitionNumberOptions = z89.object({
|
|
2006
|
+
defaultValue: z89.number(),
|
|
2007
|
+
min: z89.number().optional(),
|
|
2008
|
+
max: z89.number().optional(),
|
|
2009
|
+
step: z89.number().optional(),
|
|
2010
|
+
placeholder: z89.string().optional()
|
|
1977
2011
|
});
|
|
1978
|
-
var PageBlockDefinitionComponentOptions =
|
|
1979
|
-
renderLayoutAs:
|
|
1980
|
-
allowPropertySelection:
|
|
2012
|
+
var PageBlockDefinitionComponentOptions = z89.object({
|
|
2013
|
+
renderLayoutAs: z89.enum(["List", "Table"]).optional(),
|
|
2014
|
+
allowPropertySelection: z89.boolean().optional()
|
|
1981
2015
|
});
|
|
1982
|
-
var PageBlockDefinitionProperty =
|
|
1983
|
-
id:
|
|
1984
|
-
name:
|
|
2016
|
+
var PageBlockDefinitionProperty = z89.object({
|
|
2017
|
+
id: z89.string(),
|
|
2018
|
+
name: z89.string(),
|
|
1985
2019
|
type: PageBlockDefinitionPropertyType,
|
|
1986
|
-
description:
|
|
2020
|
+
description: z89.string().optional(),
|
|
1987
2021
|
// TODO Docs
|
|
1988
2022
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
1989
|
-
variantOptions:
|
|
2023
|
+
variantOptions: z89.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
1990
2024
|
});
|
|
1991
|
-
var PageBlockDefinitionItem =
|
|
1992
|
-
properties:
|
|
2025
|
+
var PageBlockDefinitionItem = z89.object({
|
|
2026
|
+
properties: z89.array(PageBlockDefinitionProperty),
|
|
1993
2027
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
1994
|
-
variants:
|
|
1995
|
-
defaultVariantKey:
|
|
2028
|
+
variants: z89.array(PageBlockDefinitionVariant),
|
|
2029
|
+
defaultVariantKey: z89.string()
|
|
1996
2030
|
});
|
|
1997
|
-
var PageBlockCategory =
|
|
2031
|
+
var PageBlockCategory = z90.enum([
|
|
1998
2032
|
"Text",
|
|
1999
2033
|
"Layout",
|
|
2000
2034
|
"Media",
|
|
@@ -2008,219 +2042,219 @@ var PageBlockCategory = z87.enum([
|
|
|
2008
2042
|
"Data",
|
|
2009
2043
|
"Other"
|
|
2010
2044
|
]);
|
|
2011
|
-
var PageBlockBehaviorDataType =
|
|
2012
|
-
var PageBlockBehaviorSelectionType =
|
|
2013
|
-
var PageBlockDefinitionBehavior =
|
|
2045
|
+
var PageBlockBehaviorDataType = z90.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
2046
|
+
var PageBlockBehaviorSelectionType = z90.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2047
|
+
var PageBlockDefinitionBehavior = z90.object({
|
|
2014
2048
|
dataType: PageBlockBehaviorDataType,
|
|
2015
|
-
items:
|
|
2016
|
-
numberOfItems:
|
|
2017
|
-
allowLinks:
|
|
2049
|
+
items: z90.object({
|
|
2050
|
+
numberOfItems: z90.number(),
|
|
2051
|
+
allowLinks: z90.boolean()
|
|
2018
2052
|
}).optional(),
|
|
2019
|
-
entities:
|
|
2053
|
+
entities: z90.object({
|
|
2020
2054
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2021
|
-
maxSelected:
|
|
2055
|
+
maxSelected: z90.number()
|
|
2022
2056
|
}).optional()
|
|
2023
2057
|
});
|
|
2024
|
-
var PageBlockDefinitionOnboarding =
|
|
2025
|
-
helpText:
|
|
2026
|
-
documentationLink:
|
|
2058
|
+
var PageBlockDefinitionOnboarding = z90.object({
|
|
2059
|
+
helpText: z90.string(),
|
|
2060
|
+
documentationLink: z90.string().optional()
|
|
2027
2061
|
});
|
|
2028
|
-
var PageBlockDefinition =
|
|
2029
|
-
id:
|
|
2030
|
-
name:
|
|
2031
|
-
description:
|
|
2062
|
+
var PageBlockDefinition = z90.object({
|
|
2063
|
+
id: z90.string(),
|
|
2064
|
+
name: z90.string(),
|
|
2065
|
+
description: z90.string(),
|
|
2032
2066
|
category: PageBlockCategory,
|
|
2033
2067
|
icon: AssetValue.optional(),
|
|
2034
|
-
documentationLink:
|
|
2035
|
-
searchKeywords:
|
|
2068
|
+
documentationLink: z90.string().optional(),
|
|
2069
|
+
searchKeywords: z90.array(z90.string()).optional(),
|
|
2036
2070
|
item: PageBlockDefinitionItem,
|
|
2037
2071
|
behavior: PageBlockDefinitionBehavior,
|
|
2038
|
-
editorOptions:
|
|
2072
|
+
editorOptions: z90.object({
|
|
2039
2073
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2040
2074
|
}),
|
|
2041
2075
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2042
2076
|
});
|
|
2043
|
-
var DocumentationPageGroup =
|
|
2044
|
-
type:
|
|
2045
|
-
childType:
|
|
2046
|
-
id:
|
|
2047
|
-
persistentId:
|
|
2048
|
-
shortPersistentId:
|
|
2049
|
-
designSystemVersionId:
|
|
2050
|
-
parentPersistentId:
|
|
2051
|
-
sortOrder:
|
|
2052
|
-
title:
|
|
2053
|
-
slug:
|
|
2054
|
-
userSlug:
|
|
2055
|
-
createdAt:
|
|
2056
|
-
updatedAt:
|
|
2057
|
-
});
|
|
2058
|
-
var DocumentationPage =
|
|
2059
|
-
type:
|
|
2060
|
-
id:
|
|
2061
|
-
persistentId:
|
|
2062
|
-
shortPersistentId:
|
|
2063
|
-
designSystemVersionId:
|
|
2064
|
-
parentPersistentId:
|
|
2065
|
-
sortOrder:
|
|
2066
|
-
title:
|
|
2067
|
-
slug:
|
|
2068
|
-
userSlug:
|
|
2069
|
-
createdAt:
|
|
2070
|
-
updatedAt:
|
|
2071
|
-
});
|
|
2072
|
-
var NpmRegistryAuthType =
|
|
2077
|
+
var DocumentationPageGroup = z91.object({
|
|
2078
|
+
type: z91.literal("ElementGroup"),
|
|
2079
|
+
childType: z91.literal("DocumentationPage"),
|
|
2080
|
+
id: z91.string(),
|
|
2081
|
+
persistentId: z91.string(),
|
|
2082
|
+
shortPersistentId: z91.string(),
|
|
2083
|
+
designSystemVersionId: z91.string(),
|
|
2084
|
+
parentPersistentId: z91.string().nullish(),
|
|
2085
|
+
sortOrder: z91.number(),
|
|
2086
|
+
title: z91.string(),
|
|
2087
|
+
slug: z91.string(),
|
|
2088
|
+
userSlug: z91.string().nullish(),
|
|
2089
|
+
createdAt: z91.coerce.date(),
|
|
2090
|
+
updatedAt: z91.coerce.date()
|
|
2091
|
+
});
|
|
2092
|
+
var DocumentationPage = z92.object({
|
|
2093
|
+
type: z92.literal("DocumentationPage"),
|
|
2094
|
+
id: z92.string(),
|
|
2095
|
+
persistentId: z92.string(),
|
|
2096
|
+
shortPersistentId: z92.string(),
|
|
2097
|
+
designSystemVersionId: z92.string(),
|
|
2098
|
+
parentPersistentId: z92.string().nullish(),
|
|
2099
|
+
sortOrder: z92.number(),
|
|
2100
|
+
title: z92.string(),
|
|
2101
|
+
slug: z92.string(),
|
|
2102
|
+
userSlug: z92.string().nullish(),
|
|
2103
|
+
createdAt: z92.coerce.date(),
|
|
2104
|
+
updatedAt: z92.coerce.date()
|
|
2105
|
+
});
|
|
2106
|
+
var NpmRegistryAuthType = z93.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2073
2107
|
var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
|
|
2074
|
-
var NpmRegistryType =
|
|
2075
|
-
var NpmRegistryTypeWithoutAzure =
|
|
2076
|
-
var NpmRegistryBasicAuthConfig =
|
|
2108
|
+
var NpmRegistryType = z93.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
|
|
2109
|
+
var NpmRegistryTypeWithoutAzure = z93.enum(registryTypesWithoutAzure);
|
|
2110
|
+
var NpmRegistryBasicAuthConfig = z93.object({
|
|
2077
2111
|
registryType: NpmRegistryType,
|
|
2078
|
-
authType:
|
|
2079
|
-
username:
|
|
2080
|
-
password:
|
|
2112
|
+
authType: z93.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2113
|
+
username: z93.string(),
|
|
2114
|
+
password: z93.string()
|
|
2081
2115
|
});
|
|
2082
|
-
var NpmRegistryBearerAuthConfig =
|
|
2116
|
+
var NpmRegistryBearerAuthConfig = z93.object({
|
|
2083
2117
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2084
|
-
authType:
|
|
2085
|
-
accessToken:
|
|
2118
|
+
authType: z93.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2119
|
+
accessToken: z93.string()
|
|
2086
2120
|
});
|
|
2087
|
-
var NpmRegistryNoAuthConfig =
|
|
2121
|
+
var NpmRegistryNoAuthConfig = z93.object({
|
|
2088
2122
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2089
|
-
authType:
|
|
2123
|
+
authType: z93.literal(NpmRegistryAuthType.Enum.None)
|
|
2090
2124
|
});
|
|
2091
|
-
var NpmRegistrCustomAuthConfig =
|
|
2125
|
+
var NpmRegistrCustomAuthConfig = z93.object({
|
|
2092
2126
|
registryType: NpmRegistryTypeWithoutAzure,
|
|
2093
|
-
authType:
|
|
2094
|
-
authHeaderName:
|
|
2095
|
-
authHeaderValue:
|
|
2127
|
+
authType: z93.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2128
|
+
authHeaderName: z93.string(),
|
|
2129
|
+
authHeaderValue: z93.string()
|
|
2096
2130
|
});
|
|
2097
|
-
var NpmRegistryAuthConfig =
|
|
2131
|
+
var NpmRegistryAuthConfig = z93.discriminatedUnion("authType", [
|
|
2098
2132
|
NpmRegistryBasicAuthConfig,
|
|
2099
2133
|
NpmRegistryBearerAuthConfig,
|
|
2100
2134
|
NpmRegistryNoAuthConfig,
|
|
2101
2135
|
NpmRegistrCustomAuthConfig
|
|
2102
2136
|
]);
|
|
2103
|
-
var NpmRegistryConfigBase =
|
|
2104
|
-
enabledScopes:
|
|
2105
|
-
customRegistryUrl:
|
|
2106
|
-
bypassProxy:
|
|
2107
|
-
npmProxyRegistryConfigId:
|
|
2108
|
-
npmProxyVersion:
|
|
2137
|
+
var NpmRegistryConfigBase = z93.object({
|
|
2138
|
+
enabledScopes: z93.array(z93.string()),
|
|
2139
|
+
customRegistryUrl: z93.string().optional(),
|
|
2140
|
+
bypassProxy: z93.boolean().default(false),
|
|
2141
|
+
npmProxyRegistryConfigId: z93.string().optional(),
|
|
2142
|
+
npmProxyVersion: z93.number().optional()
|
|
2109
2143
|
});
|
|
2110
2144
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2111
|
-
var SsoProvider =
|
|
2112
|
-
providerId:
|
|
2113
|
-
defaultAutoInviteValue:
|
|
2114
|
-
autoInviteDomains:
|
|
2115
|
-
skipDocsSupernovaLogin:
|
|
2116
|
-
areInvitesDisabled:
|
|
2117
|
-
isTestMode:
|
|
2118
|
-
emailDomains:
|
|
2119
|
-
metadataXml:
|
|
2120
|
-
});
|
|
2121
|
-
var WorkspaceRoleSchema =
|
|
2145
|
+
var SsoProvider = z94.object({
|
|
2146
|
+
providerId: z94.string(),
|
|
2147
|
+
defaultAutoInviteValue: z94.boolean(),
|
|
2148
|
+
autoInviteDomains: z94.record(z94.string(), z94.boolean()),
|
|
2149
|
+
skipDocsSupernovaLogin: z94.boolean(),
|
|
2150
|
+
areInvitesDisabled: z94.boolean(),
|
|
2151
|
+
isTestMode: z94.boolean(),
|
|
2152
|
+
emailDomains: z94.array(z94.string()),
|
|
2153
|
+
metadataXml: z94.string().nullish()
|
|
2154
|
+
});
|
|
2155
|
+
var WorkspaceRoleSchema = z95.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2122
2156
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2123
2157
|
var MAX_MEMBERS_COUNT = 100;
|
|
2124
|
-
var UserInvite =
|
|
2125
|
-
email:
|
|
2158
|
+
var UserInvite = z96.object({
|
|
2159
|
+
email: z96.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2126
2160
|
role: WorkspaceRoleSchema
|
|
2127
2161
|
});
|
|
2128
|
-
var UserInvites =
|
|
2129
|
-
var WorkspaceIpWhitelistEntry =
|
|
2130
|
-
isEnabled:
|
|
2131
|
-
name:
|
|
2132
|
-
range:
|
|
2162
|
+
var UserInvites = z96.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2163
|
+
var WorkspaceIpWhitelistEntry = z97.object({
|
|
2164
|
+
isEnabled: z97.boolean(),
|
|
2165
|
+
name: z97.string(),
|
|
2166
|
+
range: z97.string()
|
|
2133
2167
|
});
|
|
2134
|
-
var WorkspaceIpSettings =
|
|
2135
|
-
isEnabledForCloud:
|
|
2136
|
-
isEnabledForDocs:
|
|
2137
|
-
entries:
|
|
2168
|
+
var WorkspaceIpSettings = z97.object({
|
|
2169
|
+
isEnabledForCloud: z97.boolean(),
|
|
2170
|
+
isEnabledForDocs: z97.boolean(),
|
|
2171
|
+
entries: z97.array(WorkspaceIpWhitelistEntry)
|
|
2138
2172
|
}).nullish();
|
|
2139
|
-
var WorkspaceProfile =
|
|
2140
|
-
name:
|
|
2141
|
-
handle:
|
|
2142
|
-
color:
|
|
2143
|
-
avatar:
|
|
2173
|
+
var WorkspaceProfile = z97.object({
|
|
2174
|
+
name: z97.string(),
|
|
2175
|
+
handle: z97.string(),
|
|
2176
|
+
color: z97.string(),
|
|
2177
|
+
avatar: z97.string().optional(),
|
|
2144
2178
|
billingDetails: BillingDetails.optional()
|
|
2145
2179
|
});
|
|
2146
|
-
var Workspace =
|
|
2147
|
-
id:
|
|
2180
|
+
var Workspace = z97.object({
|
|
2181
|
+
id: z97.string(),
|
|
2148
2182
|
profile: WorkspaceProfile,
|
|
2149
2183
|
subscription: Subscription,
|
|
2150
2184
|
ipWhitelist: WorkspaceIpSettings,
|
|
2151
2185
|
sso: SsoProvider.nullish(),
|
|
2152
|
-
npmRegistrySettings:
|
|
2153
|
-
designSystems:
|
|
2186
|
+
npmRegistrySettings: z97.unknown().optional(),
|
|
2187
|
+
designSystems: z97.array(DesignSystem).nullish()
|
|
2154
2188
|
});
|
|
2155
|
-
var WorkspaceWithDesignSystems =
|
|
2189
|
+
var WorkspaceWithDesignSystems = z97.object({
|
|
2156
2190
|
workspace: Workspace,
|
|
2157
|
-
designSystems:
|
|
2191
|
+
designSystems: z97.array(DesignSystem)
|
|
2158
2192
|
});
|
|
2159
|
-
var WorkspaceContext =
|
|
2160
|
-
workspaceId:
|
|
2193
|
+
var WorkspaceContext = z98.object({
|
|
2194
|
+
workspaceId: z98.string(),
|
|
2161
2195
|
product: ProductCodeSchema,
|
|
2162
2196
|
ipWhitelist: WorkspaceIpSettings,
|
|
2163
|
-
publicDesignSystem:
|
|
2197
|
+
publicDesignSystem: z98.boolean().optional()
|
|
2164
2198
|
});
|
|
2165
2199
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2166
2200
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2167
2201
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2168
2202
|
var HANDLE_MIN_LENGTH = 2;
|
|
2169
2203
|
var HANDLE_MAX_LENGTH = 64;
|
|
2170
|
-
var CreateWorkspaceInput =
|
|
2171
|
-
name:
|
|
2204
|
+
var CreateWorkspaceInput = z99.object({
|
|
2205
|
+
name: z99.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2172
2206
|
product: ProductCodeSchema,
|
|
2173
|
-
priceId:
|
|
2174
|
-
billingEmail:
|
|
2175
|
-
handle:
|
|
2207
|
+
priceId: z99.string(),
|
|
2208
|
+
billingEmail: z99.string().email().optional(),
|
|
2209
|
+
handle: z99.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2176
2210
|
invites: UserInvites.optional(),
|
|
2177
|
-
promoCode:
|
|
2178
|
-
});
|
|
2179
|
-
var WorkspaceInvitation =
|
|
2180
|
-
id:
|
|
2181
|
-
email:
|
|
2182
|
-
createdAt:
|
|
2183
|
-
resentAt:
|
|
2184
|
-
role:
|
|
2185
|
-
workspaceId:
|
|
2186
|
-
invitedBy:
|
|
2187
|
-
});
|
|
2188
|
-
var WorkspaceMembership =
|
|
2189
|
-
id:
|
|
2190
|
-
userId:
|
|
2191
|
-
workspaceId:
|
|
2192
|
-
workspaceRole:
|
|
2193
|
-
});
|
|
2194
|
-
var UpdateMembershipRolesInput =
|
|
2195
|
-
members:
|
|
2196
|
-
|
|
2197
|
-
userId:
|
|
2198
|
-
role:
|
|
2211
|
+
promoCode: z99.string().optional()
|
|
2212
|
+
});
|
|
2213
|
+
var WorkspaceInvitation = z100.object({
|
|
2214
|
+
id: z100.string(),
|
|
2215
|
+
email: z100.string().email(),
|
|
2216
|
+
createdAt: z100.coerce.date(),
|
|
2217
|
+
resentAt: z100.coerce.date().nullish(),
|
|
2218
|
+
role: z100.nativeEnum(WorkspaceRole),
|
|
2219
|
+
workspaceId: z100.string(),
|
|
2220
|
+
invitedBy: z100.string()
|
|
2221
|
+
});
|
|
2222
|
+
var WorkspaceMembership = z101.object({
|
|
2223
|
+
id: z101.string(),
|
|
2224
|
+
userId: z101.string(),
|
|
2225
|
+
workspaceId: z101.string(),
|
|
2226
|
+
workspaceRole: z101.nativeEnum(WorkspaceRole)
|
|
2227
|
+
});
|
|
2228
|
+
var UpdateMembershipRolesInput = z101.object({
|
|
2229
|
+
members: z101.array(
|
|
2230
|
+
z101.object({
|
|
2231
|
+
userId: z101.string(),
|
|
2232
|
+
role: z101.nativeEnum(WorkspaceRole)
|
|
2199
2233
|
})
|
|
2200
2234
|
)
|
|
2201
2235
|
});
|
|
2202
|
-
var DesignSystemSwitcher =
|
|
2203
|
-
isEnabled:
|
|
2204
|
-
designSystemIds:
|
|
2205
|
-
});
|
|
2206
|
-
var DesignSystem =
|
|
2207
|
-
id:
|
|
2208
|
-
workspaceId:
|
|
2209
|
-
name:
|
|
2210
|
-
description:
|
|
2211
|
-
docExporterId: nullishToOptional(
|
|
2212
|
-
docSlug:
|
|
2213
|
-
docUserSlug: nullishToOptional(
|
|
2214
|
-
docSlugDeprecated:
|
|
2215
|
-
isPublic:
|
|
2216
|
-
isMultibrand:
|
|
2217
|
-
docViewUrl: nullishToOptional(
|
|
2218
|
-
basePrefixes:
|
|
2236
|
+
var DesignSystemSwitcher = z102.object({
|
|
2237
|
+
isEnabled: z102.boolean(),
|
|
2238
|
+
designSystemIds: z102.array(z102.string())
|
|
2239
|
+
});
|
|
2240
|
+
var DesignSystem = z102.object({
|
|
2241
|
+
id: z102.string(),
|
|
2242
|
+
workspaceId: z102.string(),
|
|
2243
|
+
name: z102.string(),
|
|
2244
|
+
description: z102.string(),
|
|
2245
|
+
docExporterId: nullishToOptional(z102.string()),
|
|
2246
|
+
docSlug: z102.string(),
|
|
2247
|
+
docUserSlug: nullishToOptional(z102.string()),
|
|
2248
|
+
docSlugDeprecated: z102.string(),
|
|
2249
|
+
isPublic: z102.boolean(),
|
|
2250
|
+
isMultibrand: z102.boolean(),
|
|
2251
|
+
docViewUrl: nullishToOptional(z102.string()),
|
|
2252
|
+
basePrefixes: z102.array(z102.string()),
|
|
2219
2253
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2220
|
-
createdAt:
|
|
2221
|
-
updatedAt:
|
|
2254
|
+
createdAt: z102.coerce.date(),
|
|
2255
|
+
updatedAt: z102.coerce.date()
|
|
2222
2256
|
});
|
|
2223
|
-
var DesignSystemWithWorkspace =
|
|
2257
|
+
var DesignSystemWithWorkspace = z102.object({
|
|
2224
2258
|
designSystem: DesignSystem,
|
|
2225
2259
|
workspace: Workspace
|
|
2226
2260
|
});
|
|
@@ -2228,81 +2262,81 @@ var DS_NAME_MIN_LENGTH = 2;
|
|
|
2228
2262
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2229
2263
|
var DS_DESC_MIN_LENGTH = 2;
|
|
2230
2264
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2231
|
-
var DesignSystemCreateInputMetadata =
|
|
2232
|
-
name:
|
|
2233
|
-
description:
|
|
2265
|
+
var DesignSystemCreateInputMetadata = z103.object({
|
|
2266
|
+
name: z103.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2267
|
+
description: z103.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2234
2268
|
});
|
|
2235
|
-
var DesignSystemCreateInput =
|
|
2269
|
+
var DesignSystemCreateInput = z103.object({
|
|
2236
2270
|
meta: DesignSystemCreateInputMetadata,
|
|
2237
|
-
workspaceId:
|
|
2238
|
-
isPublic:
|
|
2239
|
-
basePrefixes:
|
|
2240
|
-
docUserSlug:
|
|
2241
|
-
source:
|
|
2271
|
+
workspaceId: z103.string(),
|
|
2272
|
+
isPublic: z103.boolean().optional(),
|
|
2273
|
+
basePrefixes: z103.array(z103.string()).optional(),
|
|
2274
|
+
docUserSlug: z103.string().nullish().optional(),
|
|
2275
|
+
source: z103.array(z103.string()).optional()
|
|
2242
2276
|
});
|
|
2243
2277
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2244
2278
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2245
2279
|
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2246
2280
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2247
|
-
var DesignSystemUpdateInputMetadata =
|
|
2248
|
-
name:
|
|
2249
|
-
description:
|
|
2281
|
+
var DesignSystemUpdateInputMetadata = z104.object({
|
|
2282
|
+
name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2283
|
+
description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2250
2284
|
});
|
|
2251
|
-
var DesignSystemUpdateInput =
|
|
2285
|
+
var DesignSystemUpdateInput = z104.object({
|
|
2252
2286
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2253
|
-
workspaceId:
|
|
2254
|
-
isPublic:
|
|
2255
|
-
basePrefixes:
|
|
2256
|
-
docUserSlug:
|
|
2257
|
-
source:
|
|
2258
|
-
name:
|
|
2259
|
-
description:
|
|
2260
|
-
docExporterId:
|
|
2287
|
+
workspaceId: z104.string().optional(),
|
|
2288
|
+
isPublic: z104.boolean().optional(),
|
|
2289
|
+
basePrefixes: z104.array(z104.string()).optional(),
|
|
2290
|
+
docUserSlug: z104.string().nullish().optional(),
|
|
2291
|
+
source: z104.array(z104.string()).optional(),
|
|
2292
|
+
name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2293
|
+
description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2294
|
+
docExporterId: z104.string().optional()
|
|
2261
2295
|
});
|
|
2262
2296
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2263
|
-
var PublishedDocEnvironment =
|
|
2264
|
-
var PublishedDocsChecksums =
|
|
2265
|
-
var PublishedDocRoutingVersion =
|
|
2266
|
-
var PublishedDoc =
|
|
2267
|
-
id:
|
|
2268
|
-
designSystemVersionId:
|
|
2269
|
-
createdAt:
|
|
2270
|
-
updatedAt:
|
|
2271
|
-
lastPublishedAt:
|
|
2272
|
-
isDefault:
|
|
2273
|
-
isPublic:
|
|
2297
|
+
var PublishedDocEnvironment = z105.enum(publishedDocEnvironments);
|
|
2298
|
+
var PublishedDocsChecksums = z105.record(z105.string());
|
|
2299
|
+
var PublishedDocRoutingVersion = z105.enum(["1", "2"]);
|
|
2300
|
+
var PublishedDoc = z105.object({
|
|
2301
|
+
id: z105.string(),
|
|
2302
|
+
designSystemVersionId: z105.string(),
|
|
2303
|
+
createdAt: z105.coerce.date(),
|
|
2304
|
+
updatedAt: z105.coerce.date(),
|
|
2305
|
+
lastPublishedAt: z105.coerce.date(),
|
|
2306
|
+
isDefault: z105.boolean(),
|
|
2307
|
+
isPublic: z105.boolean(),
|
|
2274
2308
|
environment: PublishedDocEnvironment,
|
|
2275
2309
|
checksums: PublishedDocsChecksums,
|
|
2276
|
-
storagePath:
|
|
2277
|
-
wasMigrated:
|
|
2310
|
+
storagePath: z105.string(),
|
|
2311
|
+
wasMigrated: z105.boolean(),
|
|
2278
2312
|
routingVersion: PublishedDocRoutingVersion,
|
|
2279
|
-
usesLocalizations:
|
|
2280
|
-
wasPublishedWithLocalizations:
|
|
2281
|
-
});
|
|
2282
|
-
var ExporterJobDestination =
|
|
2283
|
-
var ExporterJobStatus =
|
|
2284
|
-
var ExporterJobLogEntryType =
|
|
2285
|
-
var ExporterJobLogEntry =
|
|
2286
|
-
id:
|
|
2287
|
-
time:
|
|
2313
|
+
usesLocalizations: z105.boolean(),
|
|
2314
|
+
wasPublishedWithLocalizations: z105.boolean()
|
|
2315
|
+
});
|
|
2316
|
+
var ExporterJobDestination = z106.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2317
|
+
var ExporterJobStatus = z106.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2318
|
+
var ExporterJobLogEntryType = z106.enum(["success", "info", "warning", "error", "user"]);
|
|
2319
|
+
var ExporterJobLogEntry = z106.object({
|
|
2320
|
+
id: z106.string().optional(),
|
|
2321
|
+
time: z106.coerce.date(),
|
|
2288
2322
|
type: ExporterJobLogEntryType,
|
|
2289
|
-
message:
|
|
2323
|
+
message: z106.string()
|
|
2290
2324
|
});
|
|
2291
|
-
var ExporterJobResultPullRequestDestination =
|
|
2292
|
-
pullRequestUrl:
|
|
2325
|
+
var ExporterJobResultPullRequestDestination = z106.object({
|
|
2326
|
+
pullRequestUrl: z106.string()
|
|
2293
2327
|
});
|
|
2294
|
-
var ExporterJobResultS3Destination =
|
|
2295
|
-
bucket:
|
|
2296
|
-
urlPrefix:
|
|
2297
|
-
path:
|
|
2298
|
-
files:
|
|
2328
|
+
var ExporterJobResultS3Destination = z106.object({
|
|
2329
|
+
bucket: z106.string(),
|
|
2330
|
+
urlPrefix: z106.string().optional(),
|
|
2331
|
+
path: z106.string(),
|
|
2332
|
+
files: z106.array(z106.string())
|
|
2299
2333
|
});
|
|
2300
|
-
var ExporterJobResultDocsDestination =
|
|
2301
|
-
url:
|
|
2334
|
+
var ExporterJobResultDocsDestination = z106.object({
|
|
2335
|
+
url: z106.string()
|
|
2302
2336
|
});
|
|
2303
|
-
var ExporterJobResult =
|
|
2304
|
-
error:
|
|
2305
|
-
logs:
|
|
2337
|
+
var ExporterJobResult = z106.object({
|
|
2338
|
+
error: z106.string().optional(),
|
|
2339
|
+
logs: z106.array(ExporterJobLogEntry).optional(),
|
|
2306
2340
|
s3: ExporterJobResultS3Destination.optional(),
|
|
2307
2341
|
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2308
2342
|
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
@@ -2310,68 +2344,68 @@ var ExporterJobResult = z103.object({
|
|
|
2310
2344
|
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2311
2345
|
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2312
2346
|
});
|
|
2313
|
-
var ExporterDestinationSnDocs =
|
|
2347
|
+
var ExporterDestinationSnDocs = z106.object({
|
|
2314
2348
|
environment: PublishedDocEnvironment
|
|
2315
2349
|
});
|
|
2316
|
-
var ExporterDestinationS3 =
|
|
2317
|
-
var ExporterDestinationGithub =
|
|
2318
|
-
connectionId:
|
|
2319
|
-
url:
|
|
2320
|
-
branch:
|
|
2321
|
-
relativePath:
|
|
2350
|
+
var ExporterDestinationS3 = z106.object({});
|
|
2351
|
+
var ExporterDestinationGithub = z106.object({
|
|
2352
|
+
connectionId: z106.string(),
|
|
2353
|
+
url: z106.string(),
|
|
2354
|
+
branch: z106.string(),
|
|
2355
|
+
relativePath: z106.string(),
|
|
2322
2356
|
// +
|
|
2323
|
-
userId:
|
|
2324
|
-
});
|
|
2325
|
-
var ExporterDestinationAzure =
|
|
2326
|
-
connectionId:
|
|
2327
|
-
organizationId:
|
|
2328
|
-
projectId:
|
|
2329
|
-
repositoryId:
|
|
2330
|
-
branch:
|
|
2331
|
-
relativePath:
|
|
2357
|
+
userId: z106.coerce.string()
|
|
2358
|
+
});
|
|
2359
|
+
var ExporterDestinationAzure = z106.object({
|
|
2360
|
+
connectionId: z106.string(),
|
|
2361
|
+
organizationId: z106.string(),
|
|
2362
|
+
projectId: z106.string(),
|
|
2363
|
+
repositoryId: z106.string(),
|
|
2364
|
+
branch: z106.string(),
|
|
2365
|
+
relativePath: z106.string(),
|
|
2332
2366
|
// +
|
|
2333
|
-
userId:
|
|
2334
|
-
url:
|
|
2335
|
-
});
|
|
2336
|
-
var ExporterDestinationGitlab =
|
|
2337
|
-
connectionId:
|
|
2338
|
-
projectId:
|
|
2339
|
-
branch:
|
|
2340
|
-
relativePath:
|
|
2367
|
+
userId: z106.coerce.string(),
|
|
2368
|
+
url: z106.string()
|
|
2369
|
+
});
|
|
2370
|
+
var ExporterDestinationGitlab = z106.object({
|
|
2371
|
+
connectionId: z106.string(),
|
|
2372
|
+
projectId: z106.string(),
|
|
2373
|
+
branch: z106.string(),
|
|
2374
|
+
relativePath: z106.string(),
|
|
2341
2375
|
// +
|
|
2342
|
-
userId:
|
|
2343
|
-
url:
|
|
2376
|
+
userId: z106.coerce.string(),
|
|
2377
|
+
url: z106.string()
|
|
2344
2378
|
});
|
|
2345
2379
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2346
2380
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2347
|
-
var ExporterDestinationBitbucket =
|
|
2348
|
-
connectionId:
|
|
2349
|
-
workspaceSlug:
|
|
2350
|
-
projectKey:
|
|
2351
|
-
repoSlug:
|
|
2352
|
-
branch:
|
|
2353
|
-
relativePath:
|
|
2381
|
+
var ExporterDestinationBitbucket = z106.object({
|
|
2382
|
+
connectionId: z106.string(),
|
|
2383
|
+
workspaceSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2384
|
+
projectKey: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2385
|
+
repoSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2386
|
+
branch: z106.string(),
|
|
2387
|
+
relativePath: z106.string(),
|
|
2354
2388
|
// +
|
|
2355
|
-
userId:
|
|
2356
|
-
url:
|
|
2357
|
-
});
|
|
2358
|
-
var ExporterJob =
|
|
2359
|
-
id:
|
|
2360
|
-
createdAt:
|
|
2361
|
-
finishedAt:
|
|
2362
|
-
designSystemId:
|
|
2363
|
-
designSystemVersionId:
|
|
2364
|
-
workspaceId:
|
|
2365
|
-
scheduleId:
|
|
2366
|
-
exporterId:
|
|
2367
|
-
brandId:
|
|
2368
|
-
themeId:
|
|
2369
|
-
estimatedExecutionTime:
|
|
2389
|
+
userId: z106.coerce.string(),
|
|
2390
|
+
url: z106.string()
|
|
2391
|
+
});
|
|
2392
|
+
var ExporterJob = z106.object({
|
|
2393
|
+
id: z106.coerce.string(),
|
|
2394
|
+
createdAt: z106.coerce.date(),
|
|
2395
|
+
finishedAt: z106.coerce.date().optional(),
|
|
2396
|
+
designSystemId: z106.coerce.string(),
|
|
2397
|
+
designSystemVersionId: z106.coerce.string(),
|
|
2398
|
+
workspaceId: z106.coerce.string(),
|
|
2399
|
+
scheduleId: z106.coerce.string().nullish(),
|
|
2400
|
+
exporterId: z106.coerce.string(),
|
|
2401
|
+
brandId: z106.coerce.string().optional(),
|
|
2402
|
+
themeId: z106.coerce.string().optional(),
|
|
2403
|
+
estimatedExecutionTime: z106.number().optional(),
|
|
2370
2404
|
status: ExporterJobStatus,
|
|
2371
2405
|
result: ExporterJobResult.optional(),
|
|
2372
|
-
createdByUserId:
|
|
2406
|
+
createdByUserId: z106.string().optional(),
|
|
2373
2407
|
// CodegenDestinationsModel
|
|
2374
|
-
webhookUrl:
|
|
2408
|
+
webhookUrl: z106.string().optional(),
|
|
2375
2409
|
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2376
2410
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2377
2411
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2390,14 +2424,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
|
|
|
2390
2424
|
themeId: true,
|
|
2391
2425
|
brandId: true
|
|
2392
2426
|
}).extend({
|
|
2393
|
-
destinations:
|
|
2427
|
+
destinations: z106.array(ExporterJobDestination),
|
|
2394
2428
|
docsEnvironment: PublishedDocEnvironment
|
|
2395
2429
|
}).partial();
|
|
2396
|
-
var ExporterWorkspaceMembershipRole =
|
|
2397
|
-
var ExporterWorkspaceMembership =
|
|
2398
|
-
id:
|
|
2399
|
-
workspaceId:
|
|
2400
|
-
exporterId:
|
|
2430
|
+
var ExporterWorkspaceMembershipRole = z107.enum(["Owner", "OwnerArchived", "User"]);
|
|
2431
|
+
var ExporterWorkspaceMembership = z108.object({
|
|
2432
|
+
id: z108.string(),
|
|
2433
|
+
workspaceId: z108.string(),
|
|
2434
|
+
exporterId: z108.string(),
|
|
2401
2435
|
role: ExporterWorkspaceMembershipRole
|
|
2402
2436
|
});
|
|
2403
2437
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2407,8 +2441,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2407
2441
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2408
2442
|
return GitProviderNames2;
|
|
2409
2443
|
})(GitProviderNames || {});
|
|
2410
|
-
var GitProvider =
|
|
2411
|
-
var PulsarPropertyType =
|
|
2444
|
+
var GitProvider = z109.nativeEnum(GitProviderNames);
|
|
2445
|
+
var PulsarPropertyType = z110.enum([
|
|
2412
2446
|
"string",
|
|
2413
2447
|
"number",
|
|
2414
2448
|
"boolean",
|
|
@@ -2421,164 +2455,164 @@ var PulsarPropertyType = z107.enum([
|
|
|
2421
2455
|
"tokenProperties",
|
|
2422
2456
|
"tokenType"
|
|
2423
2457
|
]);
|
|
2424
|
-
var PulsarBaseProperty =
|
|
2425
|
-
label:
|
|
2426
|
-
key:
|
|
2427
|
-
description:
|
|
2458
|
+
var PulsarBaseProperty = z110.object({
|
|
2459
|
+
label: z110.string(),
|
|
2460
|
+
key: z110.string(),
|
|
2461
|
+
description: z110.string().nullish(),
|
|
2428
2462
|
type: PulsarPropertyType,
|
|
2429
|
-
values:
|
|
2430
|
-
default:
|
|
2463
|
+
values: z110.array(z110.string()).nullish(),
|
|
2464
|
+
default: z110.union([z110.string(), z110.boolean(), z110.number()]).nullish(),
|
|
2431
2465
|
// PulsarPropertyValueType //is optional?
|
|
2432
|
-
inputType:
|
|
2466
|
+
inputType: z110.enum(["code", "plain"]).optional(),
|
|
2433
2467
|
//is optional?
|
|
2434
|
-
isMultiline:
|
|
2468
|
+
isMultiline: z110.boolean().nullish()
|
|
2435
2469
|
});
|
|
2436
2470
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2437
|
-
category:
|
|
2438
|
-
});
|
|
2439
|
-
var PulsarContributionVariant =
|
|
2440
|
-
key:
|
|
2441
|
-
name:
|
|
2442
|
-
isDefault:
|
|
2443
|
-
description:
|
|
2444
|
-
thumbnailURL:
|
|
2445
|
-
});
|
|
2446
|
-
var PulsarCustomBlock =
|
|
2447
|
-
title:
|
|
2448
|
-
key:
|
|
2449
|
-
category:
|
|
2450
|
-
description: nullishToOptional(
|
|
2451
|
-
iconURL:
|
|
2452
|
-
mode:
|
|
2453
|
-
properties:
|
|
2454
|
-
});
|
|
2455
|
-
var ExporterType =
|
|
2456
|
-
var ExporterSource =
|
|
2457
|
-
var ExporterTag =
|
|
2458
|
-
var ExporterDetails =
|
|
2459
|
-
description:
|
|
2460
|
-
version:
|
|
2461
|
-
routingVersion: nullishToOptional(
|
|
2462
|
-
author: nullishToOptional(
|
|
2463
|
-
organization: nullishToOptional(
|
|
2464
|
-
homepage: nullishToOptional(
|
|
2465
|
-
readme: nullishToOptional(
|
|
2466
|
-
tags: nullishToOptional(
|
|
2467
|
-
packageId: nullishToOptional(
|
|
2468
|
-
iconURL: nullishToOptional(
|
|
2469
|
-
configurationProperties: nullishToOptional(
|
|
2470
|
-
customBlocks: nullishToOptional(
|
|
2471
|
-
blockVariants: nullishToOptional(
|
|
2472
|
-
usesBrands: nullishToOptional(
|
|
2473
|
-
usesThemes: nullishToOptional(
|
|
2471
|
+
category: z110.string()
|
|
2472
|
+
});
|
|
2473
|
+
var PulsarContributionVariant = z110.object({
|
|
2474
|
+
key: z110.string(),
|
|
2475
|
+
name: z110.string(),
|
|
2476
|
+
isDefault: z110.boolean().nullish(),
|
|
2477
|
+
description: z110.string().nullish(),
|
|
2478
|
+
thumbnailURL: z110.string().nullish()
|
|
2479
|
+
});
|
|
2480
|
+
var PulsarCustomBlock = z110.object({
|
|
2481
|
+
title: z110.string(),
|
|
2482
|
+
key: z110.string(),
|
|
2483
|
+
category: z110.string(),
|
|
2484
|
+
description: nullishToOptional(z110.string()),
|
|
2485
|
+
iconURL: z110.string(),
|
|
2486
|
+
mode: z110.enum(["array", "block"]),
|
|
2487
|
+
properties: z110.array(PulsarBaseProperty)
|
|
2488
|
+
});
|
|
2489
|
+
var ExporterType = z111.enum(["code", "documentation"]);
|
|
2490
|
+
var ExporterSource = z111.enum(["git", "upload"]);
|
|
2491
|
+
var ExporterTag = z111.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2492
|
+
var ExporterDetails = z111.object({
|
|
2493
|
+
description: z111.string(),
|
|
2494
|
+
version: z111.string(),
|
|
2495
|
+
routingVersion: nullishToOptional(z111.string()),
|
|
2496
|
+
author: nullishToOptional(z111.string()),
|
|
2497
|
+
organization: nullishToOptional(z111.string()),
|
|
2498
|
+
homepage: nullishToOptional(z111.string()),
|
|
2499
|
+
readme: nullishToOptional(z111.string()),
|
|
2500
|
+
tags: nullishToOptional(z111.array(ExporterTag)).default([]),
|
|
2501
|
+
packageId: nullishToOptional(z111.string().max(255)),
|
|
2502
|
+
iconURL: nullishToOptional(z111.string()),
|
|
2503
|
+
configurationProperties: nullishToOptional(z111.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2504
|
+
customBlocks: nullishToOptional(z111.array(PulsarCustomBlock)).default([]),
|
|
2505
|
+
blockVariants: nullishToOptional(z111.record(z111.string(), z111.array(PulsarContributionVariant))).default({}),
|
|
2506
|
+
usesBrands: nullishToOptional(z111.boolean()).default(false),
|
|
2507
|
+
usesThemes: nullishToOptional(z111.boolean()).default(false),
|
|
2474
2508
|
source: ExporterSource,
|
|
2475
2509
|
gitProvider: nullishToOptional(GitProvider),
|
|
2476
|
-
gitUrl: nullishToOptional(
|
|
2477
|
-
gitBranch: nullishToOptional(
|
|
2478
|
-
gitDirectory: nullishToOptional(
|
|
2510
|
+
gitUrl: nullishToOptional(z111.string()),
|
|
2511
|
+
gitBranch: nullishToOptional(z111.string()),
|
|
2512
|
+
gitDirectory: nullishToOptional(z111.string())
|
|
2479
2513
|
});
|
|
2480
|
-
var Exporter =
|
|
2481
|
-
id:
|
|
2482
|
-
createdAt:
|
|
2483
|
-
name:
|
|
2484
|
-
isPrivate:
|
|
2514
|
+
var Exporter = z111.object({
|
|
2515
|
+
id: z111.string(),
|
|
2516
|
+
createdAt: z111.coerce.date(),
|
|
2517
|
+
name: z111.string(),
|
|
2518
|
+
isPrivate: z111.boolean(),
|
|
2485
2519
|
details: ExporterDetails,
|
|
2486
2520
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2487
|
-
storagePath: nullishToOptional(
|
|
2488
|
-
});
|
|
2489
|
-
var CustomDomain =
|
|
2490
|
-
id:
|
|
2491
|
-
designSystemId:
|
|
2492
|
-
state:
|
|
2493
|
-
supernovaDomain:
|
|
2494
|
-
customerDomain:
|
|
2495
|
-
error:
|
|
2496
|
-
errorCode:
|
|
2497
|
-
});
|
|
2498
|
-
var IntegrationAuthType =
|
|
2499
|
-
var ExternalServiceType =
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2521
|
+
storagePath: nullishToOptional(z111.string()).default("")
|
|
2522
|
+
});
|
|
2523
|
+
var CustomDomain = z112.object({
|
|
2524
|
+
id: z112.string(),
|
|
2525
|
+
designSystemId: z112.string(),
|
|
2526
|
+
state: z112.string(),
|
|
2527
|
+
supernovaDomain: z112.string(),
|
|
2528
|
+
customerDomain: z112.string().nullish(),
|
|
2529
|
+
error: z112.string().nullish(),
|
|
2530
|
+
errorCode: z112.string().nullish()
|
|
2531
|
+
});
|
|
2532
|
+
var IntegrationAuthType = z113.union([z113.literal("OAuth2"), z113.literal("PAT")]);
|
|
2533
|
+
var ExternalServiceType = z113.union([
|
|
2534
|
+
z113.literal("figma"),
|
|
2535
|
+
z113.literal("github"),
|
|
2536
|
+
z113.literal("azure"),
|
|
2537
|
+
z113.literal("gitlab"),
|
|
2538
|
+
z113.literal("bitbucket")
|
|
2505
2539
|
]);
|
|
2506
|
-
var IntegrationUserInfo =
|
|
2507
|
-
id:
|
|
2508
|
-
handle:
|
|
2509
|
-
avatarUrl:
|
|
2510
|
-
email:
|
|
2540
|
+
var IntegrationUserInfo = z113.object({
|
|
2541
|
+
id: z113.string(),
|
|
2542
|
+
handle: z113.string().optional(),
|
|
2543
|
+
avatarUrl: z113.string().optional(),
|
|
2544
|
+
email: z113.string().optional(),
|
|
2511
2545
|
authType: IntegrationAuthType.optional(),
|
|
2512
|
-
customUrl:
|
|
2546
|
+
customUrl: z113.string().optional()
|
|
2513
2547
|
});
|
|
2514
|
-
var UserLinkedIntegrations =
|
|
2548
|
+
var UserLinkedIntegrations = z113.object({
|
|
2515
2549
|
figma: IntegrationUserInfo.optional(),
|
|
2516
2550
|
github: IntegrationUserInfo.array().optional(),
|
|
2517
2551
|
azure: IntegrationUserInfo.array().optional(),
|
|
2518
2552
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2519
2553
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2520
2554
|
});
|
|
2521
|
-
var UserIdentity =
|
|
2522
|
-
id:
|
|
2523
|
-
userId:
|
|
2524
|
-
});
|
|
2525
|
-
var UserOnboardingDepartment =
|
|
2526
|
-
var UserOnboardingJobLevel =
|
|
2527
|
-
var UserOnboarding =
|
|
2528
|
-
companyName:
|
|
2529
|
-
numberOfPeopleInOrg:
|
|
2530
|
-
numberOfPeopleInDesignTeam:
|
|
2555
|
+
var UserIdentity = z114.object({
|
|
2556
|
+
id: z114.string(),
|
|
2557
|
+
userId: z114.string()
|
|
2558
|
+
});
|
|
2559
|
+
var UserOnboardingDepartment = z115.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2560
|
+
var UserOnboardingJobLevel = z115.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2561
|
+
var UserOnboarding = z115.object({
|
|
2562
|
+
companyName: z115.string().optional(),
|
|
2563
|
+
numberOfPeopleInOrg: z115.string().optional(),
|
|
2564
|
+
numberOfPeopleInDesignTeam: z115.string().optional(),
|
|
2531
2565
|
department: UserOnboardingDepartment.optional(),
|
|
2532
|
-
jobTitle:
|
|
2533
|
-
phase:
|
|
2566
|
+
jobTitle: z115.string().optional(),
|
|
2567
|
+
phase: z115.string().optional(),
|
|
2534
2568
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2535
2569
|
});
|
|
2536
|
-
var UserProfile =
|
|
2537
|
-
name:
|
|
2538
|
-
avatar:
|
|
2539
|
-
nickname:
|
|
2570
|
+
var UserProfile = z115.object({
|
|
2571
|
+
name: z115.string(),
|
|
2572
|
+
avatar: z115.string().optional(),
|
|
2573
|
+
nickname: z115.string().optional(),
|
|
2540
2574
|
onboarding: UserOnboarding.optional()
|
|
2541
2575
|
});
|
|
2542
|
-
var User =
|
|
2543
|
-
id:
|
|
2544
|
-
email:
|
|
2545
|
-
emailVerified:
|
|
2546
|
-
createdAt:
|
|
2547
|
-
trialExpiresAt:
|
|
2576
|
+
var User = z116.object({
|
|
2577
|
+
id: z116.string(),
|
|
2578
|
+
email: z116.string(),
|
|
2579
|
+
emailVerified: z116.boolean(),
|
|
2580
|
+
createdAt: z116.coerce.date(),
|
|
2581
|
+
trialExpiresAt: z116.coerce.date().optional(),
|
|
2548
2582
|
profile: UserProfile,
|
|
2549
2583
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2550
|
-
loggedOutAt:
|
|
2551
|
-
isProtected:
|
|
2584
|
+
loggedOutAt: z116.coerce.date().optional(),
|
|
2585
|
+
isProtected: z116.boolean()
|
|
2552
2586
|
});
|
|
2553
|
-
var NpmProxyToken =
|
|
2554
|
-
access:
|
|
2555
|
-
expiresAt:
|
|
2587
|
+
var NpmProxyToken = z117.object({
|
|
2588
|
+
access: z117.string(),
|
|
2589
|
+
expiresAt: z117.number()
|
|
2556
2590
|
});
|
|
2557
|
-
var SessionData =
|
|
2558
|
-
returnToUrl:
|
|
2591
|
+
var SessionData = z117.object({
|
|
2592
|
+
returnToUrl: z117.string().optional(),
|
|
2559
2593
|
npmProxyToken: NpmProxyToken.optional()
|
|
2560
2594
|
});
|
|
2561
|
-
var Session =
|
|
2562
|
-
id:
|
|
2563
|
-
expiresAt:
|
|
2564
|
-
userId:
|
|
2595
|
+
var Session = z117.object({
|
|
2596
|
+
id: z117.string(),
|
|
2597
|
+
expiresAt: z117.coerce.date(),
|
|
2598
|
+
userId: z117.string().nullable(),
|
|
2565
2599
|
data: SessionData
|
|
2566
2600
|
});
|
|
2567
|
-
var AuthTokens =
|
|
2568
|
-
access:
|
|
2569
|
-
refresh:
|
|
2601
|
+
var AuthTokens = z117.object({
|
|
2602
|
+
access: z117.string(),
|
|
2603
|
+
refresh: z117.string()
|
|
2570
2604
|
});
|
|
2571
|
-
var UserSession =
|
|
2605
|
+
var UserSession = z117.object({
|
|
2572
2606
|
session: Session,
|
|
2573
2607
|
user: User.nullable()
|
|
2574
2608
|
});
|
|
2575
|
-
var FlaggedFeature =
|
|
2576
|
-
var FeatureFlagMap =
|
|
2577
|
-
var FeatureFlag =
|
|
2578
|
-
id:
|
|
2609
|
+
var FlaggedFeature = z118.enum(["FigmaImporterV2"]);
|
|
2610
|
+
var FeatureFlagMap = z118.record(FlaggedFeature, z118.boolean());
|
|
2611
|
+
var FeatureFlag = z118.object({
|
|
2612
|
+
id: z118.string(),
|
|
2579
2613
|
feature: FlaggedFeature,
|
|
2580
|
-
createdAt:
|
|
2581
|
-
enabled:
|
|
2614
|
+
createdAt: z118.coerce.date(),
|
|
2615
|
+
enabled: z118.boolean()
|
|
2582
2616
|
});
|
|
2583
2617
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2584
2618
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2588,96 +2622,96 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2588
2622
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2589
2623
|
return OAuthProviderNames2;
|
|
2590
2624
|
})(OAuthProviderNames || {});
|
|
2591
|
-
var OAuthProviderSchema =
|
|
2625
|
+
var OAuthProviderSchema = z119.nativeEnum(OAuthProviderNames);
|
|
2592
2626
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2593
|
-
var ExternalOAuthRequest =
|
|
2594
|
-
id:
|
|
2627
|
+
var ExternalOAuthRequest = z120.object({
|
|
2628
|
+
id: z120.string(),
|
|
2595
2629
|
provider: OAuthProviderSchema,
|
|
2596
|
-
userId:
|
|
2597
|
-
state:
|
|
2598
|
-
createdAt:
|
|
2630
|
+
userId: z120.string(),
|
|
2631
|
+
state: z120.string(),
|
|
2632
|
+
createdAt: z120.coerce.date()
|
|
2599
2633
|
});
|
|
2600
|
-
var IntegrationTokenSchema =
|
|
2601
|
-
id:
|
|
2634
|
+
var IntegrationTokenSchema = z121.object({
|
|
2635
|
+
id: z121.string(),
|
|
2602
2636
|
provider: OAuthProviderSchema,
|
|
2603
|
-
scope:
|
|
2604
|
-
userId:
|
|
2605
|
-
accessToken:
|
|
2606
|
-
refreshToken:
|
|
2607
|
-
expiresAt:
|
|
2608
|
-
externalUserId:
|
|
2637
|
+
scope: z121.string(),
|
|
2638
|
+
userId: z121.string(),
|
|
2639
|
+
accessToken: z121.string(),
|
|
2640
|
+
refreshToken: z121.string(),
|
|
2641
|
+
expiresAt: z121.coerce.date(),
|
|
2642
|
+
externalUserId: z121.string().nullish()
|
|
2609
2643
|
});
|
|
2610
2644
|
var DesignSystemVersionRoom = Entity.extend({
|
|
2611
|
-
designSystemVersionId:
|
|
2612
|
-
liveblocksId:
|
|
2645
|
+
designSystemVersionId: z122.string(),
|
|
2646
|
+
liveblocksId: z122.string()
|
|
2613
2647
|
});
|
|
2614
|
-
var DesignSystemVersionRoomInitialState =
|
|
2615
|
-
pages:
|
|
2616
|
-
groups:
|
|
2648
|
+
var DesignSystemVersionRoomInitialState = z122.object({
|
|
2649
|
+
pages: z122.array(DocumentationPageV2),
|
|
2650
|
+
groups: z122.array(ElementGroup)
|
|
2617
2651
|
});
|
|
2618
2652
|
var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
|
|
2619
|
-
deletedPageIds:
|
|
2620
|
-
deletedGroupIds:
|
|
2653
|
+
deletedPageIds: z122.array(z122.string()),
|
|
2654
|
+
deletedGroupIds: z122.array(z122.string())
|
|
2621
2655
|
});
|
|
2622
2656
|
var DocumentationPageRoom = Entity.extend({
|
|
2623
|
-
designSystemVersionId:
|
|
2624
|
-
documentationPageId:
|
|
2625
|
-
liveblocksId:
|
|
2657
|
+
designSystemVersionId: z123.string(),
|
|
2658
|
+
documentationPageId: z123.string(),
|
|
2659
|
+
liveblocksId: z123.string()
|
|
2626
2660
|
});
|
|
2627
|
-
var PageBlockEditorModel =
|
|
2628
|
-
id:
|
|
2661
|
+
var PageBlockEditorModel = z123.object({
|
|
2662
|
+
id: z123.string(),
|
|
2629
2663
|
data: PageBlockDataV2
|
|
2630
2664
|
});
|
|
2631
|
-
var DocumentationPageRoomRoomUpdate =
|
|
2665
|
+
var DocumentationPageRoomRoomUpdate = z123.object({
|
|
2632
2666
|
page: DocumentationPageV2,
|
|
2633
2667
|
pageParent: ElementGroup
|
|
2634
2668
|
});
|
|
2635
2669
|
var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
|
|
2636
|
-
pageBlocks:
|
|
2637
|
-
blockDefinitions:
|
|
2670
|
+
pageBlocks: z123.array(PageBlockEditorModel),
|
|
2671
|
+
blockDefinitions: z123.array(PageBlockDefinition)
|
|
2638
2672
|
});
|
|
2639
2673
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2640
2674
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2641
2675
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2642
2676
|
return RoomTypeEnum2;
|
|
2643
2677
|
})(RoomTypeEnum || {});
|
|
2644
|
-
var RoomTypeSchema =
|
|
2678
|
+
var RoomTypeSchema = z124.nativeEnum(RoomTypeEnum);
|
|
2645
2679
|
var RoomType = RoomTypeSchema.enum;
|
|
2646
|
-
var AnyRecord =
|
|
2680
|
+
var AnyRecord = z125.record(z125.any());
|
|
2647
2681
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2648
|
-
|
|
2649
|
-
tarball:
|
|
2682
|
+
z125.object({
|
|
2683
|
+
tarball: z125.string()
|
|
2650
2684
|
})
|
|
2651
2685
|
);
|
|
2652
2686
|
var NpmPackageVersion = AnyRecord.and(
|
|
2653
|
-
|
|
2687
|
+
z125.object({
|
|
2654
2688
|
dist: NpmPackageVersionDist
|
|
2655
2689
|
})
|
|
2656
2690
|
);
|
|
2657
2691
|
var NpmPackage = AnyRecord.and(
|
|
2658
|
-
|
|
2659
|
-
_id:
|
|
2660
|
-
name:
|
|
2692
|
+
z125.object({
|
|
2693
|
+
_id: z125.string(),
|
|
2694
|
+
name: z125.string(),
|
|
2661
2695
|
// e.g. "latest": "1.2.3"
|
|
2662
|
-
"dist-tags":
|
|
2696
|
+
"dist-tags": z125.record(z125.string(), z125.string()),
|
|
2663
2697
|
// "1.2.3": {...}
|
|
2664
|
-
versions:
|
|
2698
|
+
versions: z125.record(NpmPackageVersion)
|
|
2665
2699
|
})
|
|
2666
2700
|
);
|
|
2667
|
-
var NpmProxyTokenPayload =
|
|
2668
|
-
npmProxyRegistryConfigId:
|
|
2669
|
-
});
|
|
2670
|
-
var PersonalAccessToken =
|
|
2671
|
-
id:
|
|
2672
|
-
userId:
|
|
2673
|
-
name:
|
|
2674
|
-
token:
|
|
2675
|
-
createdAt:
|
|
2676
|
-
hidden:
|
|
2677
|
-
workspaceId:
|
|
2701
|
+
var NpmProxyTokenPayload = z126.object({
|
|
2702
|
+
npmProxyRegistryConfigId: z126.string()
|
|
2703
|
+
});
|
|
2704
|
+
var PersonalAccessToken = z127.object({
|
|
2705
|
+
id: z127.string(),
|
|
2706
|
+
userId: z127.string(),
|
|
2707
|
+
name: z127.string(),
|
|
2708
|
+
token: z127.string(),
|
|
2709
|
+
createdAt: z127.coerce.date(),
|
|
2710
|
+
hidden: z127.boolean(),
|
|
2711
|
+
workspaceId: z127.string().optional(),
|
|
2678
2712
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2679
|
-
expireAt:
|
|
2680
|
-
scope:
|
|
2713
|
+
expireAt: z127.coerce.date().optional(),
|
|
2714
|
+
scope: z127.string().optional()
|
|
2681
2715
|
});
|
|
2682
2716
|
var SupernovaException = class _SupernovaException extends Error {
|
|
2683
2717
|
//
|
|
@@ -2759,25 +2793,25 @@ function groupBy(items, keyFn) {
|
|
|
2759
2793
|
}
|
|
2760
2794
|
return result;
|
|
2761
2795
|
}
|
|
2762
|
-
var ContentLoadInstruction =
|
|
2763
|
-
from:
|
|
2764
|
-
to:
|
|
2765
|
-
authorizationHeaderKvsId:
|
|
2766
|
-
timeout:
|
|
2767
|
-
});
|
|
2768
|
-
var ContentLoaderPayload =
|
|
2769
|
-
type:
|
|
2796
|
+
var ContentLoadInstruction = z128.object({
|
|
2797
|
+
from: z128.string(),
|
|
2798
|
+
to: z128.string(),
|
|
2799
|
+
authorizationHeaderKvsId: z128.string().optional(),
|
|
2800
|
+
timeout: z128.number().optional()
|
|
2801
|
+
});
|
|
2802
|
+
var ContentLoaderPayload = z128.object({
|
|
2803
|
+
type: z128.literal("Single"),
|
|
2770
2804
|
instruction: ContentLoadInstruction
|
|
2771
2805
|
}).or(
|
|
2772
|
-
|
|
2773
|
-
type:
|
|
2774
|
-
loadingChunkSize:
|
|
2775
|
-
instructions:
|
|
2806
|
+
z128.object({
|
|
2807
|
+
type: z128.literal("Multiple"),
|
|
2808
|
+
loadingChunkSize: z128.number().optional(),
|
|
2809
|
+
instructions: z128.array(ContentLoadInstruction)
|
|
2776
2810
|
})
|
|
2777
2811
|
).or(
|
|
2778
|
-
|
|
2779
|
-
type:
|
|
2780
|
-
location:
|
|
2812
|
+
z128.object({
|
|
2813
|
+
type: z128.literal("S3"),
|
|
2814
|
+
location: z128.string()
|
|
2781
2815
|
})
|
|
2782
2816
|
);
|
|
2783
2817
|
function slugify(str, options) {
|
|
@@ -3449,7 +3483,7 @@ function documentationPagesToDTOV2(pages, groups) {
|
|
|
3449
3483
|
...documentationPageToStructureDTOV2(page, pathsMap),
|
|
3450
3484
|
configuration: page.data.configuration ?? {
|
|
3451
3485
|
showSidebar: true,
|
|
3452
|
-
header:
|
|
3486
|
+
header: defaultDocumentationItemHeaderV2
|
|
3453
3487
|
}
|
|
3454
3488
|
};
|
|
3455
3489
|
});
|
|
@@ -3487,7 +3521,7 @@ function elementGroupsToDocumentationGroupDTO(groups, pages) {
|
|
|
3487
3521
|
...elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap),
|
|
3488
3522
|
configuration: group.data?.configuration ?? {
|
|
3489
3523
|
showSidebar: true,
|
|
3490
|
-
header:
|
|
3524
|
+
header: defaultDocumentationItemHeaderV2
|
|
3491
3525
|
}
|
|
3492
3526
|
};
|
|
3493
3527
|
});
|
|
@@ -3556,7 +3590,7 @@ function documentationPagesToDTOV1(pages, groups) {
|
|
|
3556
3590
|
userSlug: page.userSlug,
|
|
3557
3591
|
configuration: page.data.configuration ?? {
|
|
3558
3592
|
showSidebar: true,
|
|
3559
|
-
header:
|
|
3593
|
+
header: defaultDocumentationItemHeaderV1
|
|
3560
3594
|
},
|
|
3561
3595
|
createdAt: page.createdAt,
|
|
3562
3596
|
updatedAt: page.updatedAt,
|
|
@@ -3574,11 +3608,11 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
3574
3608
|
});
|
|
3575
3609
|
|
|
3576
3610
|
// src/api/dto/elements/documentation/group-action.ts
|
|
3577
|
-
import { z as
|
|
3611
|
+
import { z as z130 } from "zod";
|
|
3578
3612
|
|
|
3579
3613
|
// src/api/dto/elements/documentation/group.ts
|
|
3580
|
-
import { z as
|
|
3581
|
-
var
|
|
3614
|
+
import { z as z129 } from "zod";
|
|
3615
|
+
var DTODocumentationGroupStructureV2 = ElementGroup.omit({
|
|
3582
3616
|
sortOrder: true,
|
|
3583
3617
|
parentPersistentId: true,
|
|
3584
3618
|
brandPersistentId: true,
|
|
@@ -3587,233 +3621,233 @@ var DTODocumentationGroupStructure = ElementGroup.omit({
|
|
|
3587
3621
|
data: true,
|
|
3588
3622
|
shortPersistentId: true
|
|
3589
3623
|
}).extend({
|
|
3590
|
-
title:
|
|
3591
|
-
isRoot:
|
|
3592
|
-
childrenIds:
|
|
3624
|
+
title: z129.string(),
|
|
3625
|
+
isRoot: z129.boolean(),
|
|
3626
|
+
childrenIds: z129.array(z129.string()),
|
|
3593
3627
|
groupBehavior: DocumentationGroupBehavior,
|
|
3594
|
-
shortPersistentId:
|
|
3595
|
-
type:
|
|
3628
|
+
shortPersistentId: z129.string(),
|
|
3629
|
+
type: z129.literal("Group")
|
|
3596
3630
|
});
|
|
3597
|
-
var
|
|
3598
|
-
configuration:
|
|
3631
|
+
var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
|
|
3632
|
+
configuration: DocumentationItemConfigurationV2
|
|
3599
3633
|
});
|
|
3600
|
-
var DTOCreateDocumentationGroupInput =
|
|
3634
|
+
var DTOCreateDocumentationGroupInput = z129.object({
|
|
3601
3635
|
// Identifier
|
|
3602
|
-
persistentId:
|
|
3636
|
+
persistentId: z129.string().uuid(),
|
|
3603
3637
|
// Group properties
|
|
3604
|
-
title:
|
|
3605
|
-
configuration:
|
|
3638
|
+
title: z129.string(),
|
|
3639
|
+
configuration: DocumentationItemConfigurationV2.optional(),
|
|
3606
3640
|
groupBehavior: DocumentationGroupBehavior,
|
|
3607
3641
|
// Group placement properties
|
|
3608
|
-
afterPersistentId:
|
|
3609
|
-
parentPersistentId:
|
|
3642
|
+
afterPersistentId: z129.string().uuid().optional(),
|
|
3643
|
+
parentPersistentId: z129.string().uuid()
|
|
3610
3644
|
});
|
|
3611
|
-
var DTOUpdateDocumentationGroupInput =
|
|
3645
|
+
var DTOUpdateDocumentationGroupInput = z129.object({
|
|
3612
3646
|
// Identifier of the group to update
|
|
3613
|
-
id:
|
|
3647
|
+
id: z129.string().uuid(),
|
|
3614
3648
|
// Group properties
|
|
3615
|
-
title:
|
|
3616
|
-
configuration:
|
|
3649
|
+
title: z129.string().optional(),
|
|
3650
|
+
configuration: DocumentationItemConfigurationV2.optional()
|
|
3617
3651
|
});
|
|
3618
|
-
var DTOMoveDocumentationGroupInput =
|
|
3652
|
+
var DTOMoveDocumentationGroupInput = z129.object({
|
|
3619
3653
|
// Identifier of the group to update
|
|
3620
|
-
id:
|
|
3654
|
+
id: z129.string().uuid(),
|
|
3621
3655
|
// Group placement properties
|
|
3622
|
-
afterPersistentId:
|
|
3623
|
-
parentPersistentId:
|
|
3656
|
+
afterPersistentId: z129.string().uuid(),
|
|
3657
|
+
parentPersistentId: z129.string().uuid()
|
|
3624
3658
|
});
|
|
3625
|
-
var DTODuplicateDocumentationGroupInput =
|
|
3659
|
+
var DTODuplicateDocumentationGroupInput = z129.object({
|
|
3626
3660
|
// Identifier of the group to duplicate from
|
|
3627
|
-
id:
|
|
3661
|
+
id: z129.string(),
|
|
3628
3662
|
// New group persistent id
|
|
3629
|
-
persistentId:
|
|
3663
|
+
persistentId: z129.string().uuid(),
|
|
3630
3664
|
// Group placement properties
|
|
3631
|
-
afterPersistentId:
|
|
3632
|
-
parentPersistentId:
|
|
3665
|
+
afterPersistentId: z129.string().uuid().optional(),
|
|
3666
|
+
parentPersistentId: z129.string().uuid()
|
|
3633
3667
|
});
|
|
3634
|
-
var DTOCreateDocumentationTabGroupInput =
|
|
3668
|
+
var DTOCreateDocumentationTabGroupInput = z129.object({
|
|
3635
3669
|
// New group persistent id
|
|
3636
|
-
persistentId:
|
|
3670
|
+
persistentId: z129.string().uuid(),
|
|
3637
3671
|
// Page that will become first tab of the tab group
|
|
3638
|
-
fromPageId:
|
|
3639
|
-
tabName:
|
|
3672
|
+
fromPageId: z129.string(),
|
|
3673
|
+
tabName: z129.string()
|
|
3640
3674
|
});
|
|
3641
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
3675
|
+
var DTODeleteDocumentationTabGroupInput = z129.object({
|
|
3642
3676
|
// Deleted group id
|
|
3643
|
-
id:
|
|
3677
|
+
id: z129.string()
|
|
3644
3678
|
});
|
|
3645
|
-
var DTODeleteDocumentationGroupInput =
|
|
3679
|
+
var DTODeleteDocumentationGroupInput = z129.object({
|
|
3646
3680
|
// Identifier
|
|
3647
|
-
id:
|
|
3681
|
+
id: z129.string(),
|
|
3648
3682
|
// Deletion options
|
|
3649
|
-
deleteSubtree:
|
|
3683
|
+
deleteSubtree: z129.boolean().default(false)
|
|
3650
3684
|
});
|
|
3651
3685
|
|
|
3652
3686
|
// src/api/dto/elements/documentation/group-action.ts
|
|
3653
|
-
var SuccessPayload =
|
|
3654
|
-
success:
|
|
3687
|
+
var SuccessPayload = z130.object({
|
|
3688
|
+
success: z130.literal(true)
|
|
3655
3689
|
});
|
|
3656
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
3657
|
-
type:
|
|
3690
|
+
var DTODocumentationGroupCreateActionOutputV2 = z130.object({
|
|
3691
|
+
type: z130.literal("DocumentationGroupCreate"),
|
|
3658
3692
|
output: SuccessPayload
|
|
3659
3693
|
});
|
|
3660
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
3661
|
-
type:
|
|
3694
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z130.object({
|
|
3695
|
+
type: z130.literal("DocumentationGroupUpdate"),
|
|
3662
3696
|
output: SuccessPayload
|
|
3663
3697
|
});
|
|
3664
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
3665
|
-
type:
|
|
3698
|
+
var DTODocumentationGroupMoveActionOutputV2 = z130.object({
|
|
3699
|
+
type: z130.literal("DocumentationGroupMove"),
|
|
3666
3700
|
output: SuccessPayload
|
|
3667
3701
|
});
|
|
3668
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
3669
|
-
type:
|
|
3702
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z130.object({
|
|
3703
|
+
type: z130.literal("DocumentationGroupDuplicate"),
|
|
3670
3704
|
output: SuccessPayload
|
|
3671
3705
|
});
|
|
3672
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
3673
|
-
type:
|
|
3706
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z130.object({
|
|
3707
|
+
type: z130.literal("DocumentationGroupDelete"),
|
|
3674
3708
|
output: SuccessPayload
|
|
3675
3709
|
});
|
|
3676
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
3677
|
-
type:
|
|
3710
|
+
var DTODocumentationGroupCreateActionInputV2 = z130.object({
|
|
3711
|
+
type: z130.literal("DocumentationGroupCreate"),
|
|
3678
3712
|
input: DTOCreateDocumentationGroupInput
|
|
3679
3713
|
});
|
|
3680
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
3681
|
-
type:
|
|
3714
|
+
var DTODocumentationGroupUpdateActionInputV2 = z130.object({
|
|
3715
|
+
type: z130.literal("DocumentationGroupUpdate"),
|
|
3682
3716
|
input: DTOUpdateDocumentationGroupInput
|
|
3683
3717
|
});
|
|
3684
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
3685
|
-
type:
|
|
3718
|
+
var DTODocumentationGroupMoveActionInputV2 = z130.object({
|
|
3719
|
+
type: z130.literal("DocumentationGroupMove"),
|
|
3686
3720
|
input: DTOMoveDocumentationGroupInput
|
|
3687
3721
|
});
|
|
3688
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
3689
|
-
type:
|
|
3722
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z130.object({
|
|
3723
|
+
type: z130.literal("DocumentationGroupDuplicate"),
|
|
3690
3724
|
input: DTODuplicateDocumentationGroupInput
|
|
3691
3725
|
});
|
|
3692
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
3693
|
-
type:
|
|
3726
|
+
var DTODocumentationGroupDeleteActionInputV2 = z130.object({
|
|
3727
|
+
type: z130.literal("DocumentationGroupDelete"),
|
|
3694
3728
|
input: DTODeleteDocumentationGroupInput
|
|
3695
3729
|
});
|
|
3696
3730
|
|
|
3697
3731
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
3698
|
-
import { z as
|
|
3732
|
+
import { z as z132 } from "zod";
|
|
3699
3733
|
|
|
3700
3734
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
3701
|
-
import { z as
|
|
3735
|
+
import { z as z131 } from "zod";
|
|
3702
3736
|
var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
|
|
3703
3737
|
data: true,
|
|
3704
3738
|
meta: true,
|
|
3705
3739
|
parentPersistentId: true,
|
|
3706
3740
|
sortOrder: true
|
|
3707
3741
|
}).extend({
|
|
3708
|
-
title:
|
|
3709
|
-
path:
|
|
3710
|
-
type:
|
|
3742
|
+
title: z131.string(),
|
|
3743
|
+
path: z131.string(),
|
|
3744
|
+
type: z131.literal("Page")
|
|
3711
3745
|
});
|
|
3712
3746
|
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
3713
|
-
configuration:
|
|
3747
|
+
configuration: DocumentationItemConfigurationV2
|
|
3714
3748
|
});
|
|
3715
|
-
var DTODocumentationHierarchyV2 =
|
|
3716
|
-
pages:
|
|
3717
|
-
groups:
|
|
3749
|
+
var DTODocumentationHierarchyV2 = z131.object({
|
|
3750
|
+
pages: z131.array(DTODocumentationPageStructureV2),
|
|
3751
|
+
groups: z131.array(DTODocumentationGroupStructureV2)
|
|
3718
3752
|
});
|
|
3719
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
3753
|
+
var DTOCreateDocumentationPageInputV2 = z131.object({
|
|
3720
3754
|
// Identifier
|
|
3721
|
-
persistentId:
|
|
3755
|
+
persistentId: z131.string().uuid(),
|
|
3722
3756
|
// Page properties
|
|
3723
|
-
title:
|
|
3724
|
-
configuration:
|
|
3757
|
+
title: z131.string(),
|
|
3758
|
+
configuration: DocumentationItemConfigurationV2.optional(),
|
|
3725
3759
|
// Page placement properties
|
|
3726
|
-
parentPersistentId:
|
|
3727
|
-
afterPersistentId:
|
|
3760
|
+
parentPersistentId: z131.string().uuid(),
|
|
3761
|
+
afterPersistentId: z131.string().uuid().optional()
|
|
3728
3762
|
});
|
|
3729
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
3763
|
+
var DTOUpdateDocumentationPageInputV2 = z131.object({
|
|
3730
3764
|
// Identifier of the group to update
|
|
3731
|
-
id:
|
|
3765
|
+
id: z131.string(),
|
|
3732
3766
|
// Page properties
|
|
3733
|
-
title:
|
|
3734
|
-
configuration:
|
|
3767
|
+
title: z131.string().optional(),
|
|
3768
|
+
configuration: DocumentationItemConfigurationV2.optional()
|
|
3735
3769
|
});
|
|
3736
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
3770
|
+
var DTOMoveDocumentationPageInputV2 = z131.object({
|
|
3737
3771
|
// Identifier of the group to update
|
|
3738
|
-
id:
|
|
3772
|
+
id: z131.string(),
|
|
3739
3773
|
// Page placement properties
|
|
3740
|
-
parentPersistentId:
|
|
3741
|
-
afterPersistentId:
|
|
3774
|
+
parentPersistentId: z131.string().uuid(),
|
|
3775
|
+
afterPersistentId: z131.string().uuid()
|
|
3742
3776
|
});
|
|
3743
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
3777
|
+
var DTODuplicateDocumentationPageInputV2 = z131.object({
|
|
3744
3778
|
// Identifier of the page to duplicate from
|
|
3745
|
-
id:
|
|
3779
|
+
id: z131.string(),
|
|
3746
3780
|
// New page persistent id
|
|
3747
|
-
persistentId:
|
|
3781
|
+
persistentId: z131.string().uuid(),
|
|
3748
3782
|
// Page placement properties
|
|
3749
|
-
parentPersistentId:
|
|
3750
|
-
afterPersistentId:
|
|
3783
|
+
parentPersistentId: z131.string().uuid(),
|
|
3784
|
+
afterPersistentId: z131.string().uuid().optional()
|
|
3751
3785
|
});
|
|
3752
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
3786
|
+
var DTODeleteDocumentationPageInputV2 = z131.object({
|
|
3753
3787
|
// Identifier
|
|
3754
|
-
id:
|
|
3788
|
+
id: z131.string()
|
|
3755
3789
|
});
|
|
3756
3790
|
|
|
3757
3791
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
3758
|
-
var SuccessPayload2 =
|
|
3759
|
-
success:
|
|
3792
|
+
var SuccessPayload2 = z132.object({
|
|
3793
|
+
success: z132.literal(true)
|
|
3760
3794
|
});
|
|
3761
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
3762
|
-
type:
|
|
3795
|
+
var DTODocumentationPageCreateActionOutputV2 = z132.object({
|
|
3796
|
+
type: z132.literal("DocumentationPageCreate"),
|
|
3763
3797
|
output: SuccessPayload2
|
|
3764
3798
|
});
|
|
3765
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
3766
|
-
type:
|
|
3799
|
+
var DTODocumentationPageUpdateActionOutputV2 = z132.object({
|
|
3800
|
+
type: z132.literal("DocumentationPageUpdate"),
|
|
3767
3801
|
output: SuccessPayload2
|
|
3768
3802
|
});
|
|
3769
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
3770
|
-
type:
|
|
3803
|
+
var DTODocumentationPageMoveActionOutputV2 = z132.object({
|
|
3804
|
+
type: z132.literal("DocumentationPageMove"),
|
|
3771
3805
|
output: SuccessPayload2
|
|
3772
3806
|
});
|
|
3773
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
3774
|
-
type:
|
|
3807
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z132.object({
|
|
3808
|
+
type: z132.literal("DocumentationPageDuplicate"),
|
|
3775
3809
|
output: SuccessPayload2
|
|
3776
3810
|
});
|
|
3777
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
3778
|
-
type:
|
|
3811
|
+
var DTODocumentationPageDeleteActionOutputV2 = z132.object({
|
|
3812
|
+
type: z132.literal("DocumentationPageDelete"),
|
|
3779
3813
|
output: SuccessPayload2
|
|
3780
3814
|
});
|
|
3781
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
3782
|
-
type:
|
|
3815
|
+
var DTODocumentationPageCreateActionInputV2 = z132.object({
|
|
3816
|
+
type: z132.literal("DocumentationPageCreate"),
|
|
3783
3817
|
input: DTOCreateDocumentationPageInputV2
|
|
3784
3818
|
});
|
|
3785
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
3786
|
-
type:
|
|
3819
|
+
var DTODocumentationPageUpdateActionInputV2 = z132.object({
|
|
3820
|
+
type: z132.literal("DocumentationPageUpdate"),
|
|
3787
3821
|
input: DTOUpdateDocumentationPageInputV2
|
|
3788
3822
|
});
|
|
3789
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
3790
|
-
type:
|
|
3823
|
+
var DTODocumentationPageMoveActionInputV2 = z132.object({
|
|
3824
|
+
type: z132.literal("DocumentationPageMove"),
|
|
3791
3825
|
input: DTOMoveDocumentationPageInputV2
|
|
3792
3826
|
});
|
|
3793
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
3794
|
-
type:
|
|
3827
|
+
var DTODocumentationPageDuplicateActionInputV2 = z132.object({
|
|
3828
|
+
type: z132.literal("DocumentationPageDuplicate"),
|
|
3795
3829
|
input: DTODuplicateDocumentationPageInputV2
|
|
3796
3830
|
});
|
|
3797
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
3798
|
-
type:
|
|
3831
|
+
var DTODocumentationPageDeleteActionInputV2 = z132.object({
|
|
3832
|
+
type: z132.literal("DocumentationPageDelete"),
|
|
3799
3833
|
input: DTODeleteDocumentationPageInputV2
|
|
3800
3834
|
});
|
|
3801
3835
|
|
|
3802
3836
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
3803
|
-
import { z as
|
|
3837
|
+
import { z as z133 } from "zod";
|
|
3804
3838
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
3805
3839
|
data: true,
|
|
3806
3840
|
meta: true,
|
|
3807
3841
|
parentPersistentId: true,
|
|
3808
3842
|
sortOrder: true
|
|
3809
3843
|
}).extend(DocumentationPageV1.shape.data.shape).extend({
|
|
3810
|
-
title:
|
|
3811
|
-
path:
|
|
3844
|
+
title: z133.string(),
|
|
3845
|
+
path: z133.string()
|
|
3812
3846
|
});
|
|
3813
3847
|
|
|
3814
3848
|
// src/api/dto/elements/elements-action-v2.ts
|
|
3815
|
-
import { z as
|
|
3816
|
-
var DTOElementActionOutput =
|
|
3849
|
+
import { z as z134 } from "zod";
|
|
3850
|
+
var DTOElementActionOutput = z134.discriminatedUnion("type", [
|
|
3817
3851
|
// Documentation pages
|
|
3818
3852
|
DTODocumentationPageCreateActionOutputV2,
|
|
3819
3853
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -3827,7 +3861,7 @@ var DTOElementActionOutput = z131.discriminatedUnion("type", [
|
|
|
3827
3861
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
3828
3862
|
DTODocumentationGroupDeleteActionOutputV2
|
|
3829
3863
|
]);
|
|
3830
|
-
var DTOElementActionInput =
|
|
3864
|
+
var DTOElementActionInput = z134.discriminatedUnion("type", [
|
|
3831
3865
|
// Documentation pages
|
|
3832
3866
|
DTODocumentationPageCreateActionInputV2,
|
|
3833
3867
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -3843,15 +3877,15 @@ var DTOElementActionInput = z131.discriminatedUnion("type", [
|
|
|
3843
3877
|
]);
|
|
3844
3878
|
|
|
3845
3879
|
// src/api/payloads/documentation/block-definitions.ts
|
|
3846
|
-
import { z as
|
|
3847
|
-
var DTOGetBlockDefinitionsOutput =
|
|
3848
|
-
definitions:
|
|
3880
|
+
import { z as z135 } from "zod";
|
|
3881
|
+
var DTOGetBlockDefinitionsOutput = z135.object({
|
|
3882
|
+
definitions: z135.array(PageBlockDefinition)
|
|
3849
3883
|
});
|
|
3850
3884
|
|
|
3851
3885
|
// src/api/payloads/liveblocks/auth.ts
|
|
3852
|
-
import { z as
|
|
3853
|
-
var DTOLiveblocksAuthRequest =
|
|
3854
|
-
room:
|
|
3886
|
+
import { z as z136 } from "zod";
|
|
3887
|
+
var DTOLiveblocksAuthRequest = z136.object({
|
|
3888
|
+
room: z136.string()
|
|
3855
3889
|
});
|
|
3856
3890
|
|
|
3857
3891
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
@@ -3904,14 +3938,14 @@ function getGroupsYMap(doc) {
|
|
|
3904
3938
|
}
|
|
3905
3939
|
|
|
3906
3940
|
// src/yjs/design-system-content/item-configuration.ts
|
|
3907
|
-
import { z as
|
|
3908
|
-
var DTODocumentationPageRoomHeaderData =
|
|
3909
|
-
title:
|
|
3910
|
-
configuration:
|
|
3941
|
+
import { z as z137 } from "zod";
|
|
3942
|
+
var DTODocumentationPageRoomHeaderData = z137.object({
|
|
3943
|
+
title: z137.string(),
|
|
3944
|
+
configuration: DocumentationItemConfigurationV2
|
|
3911
3945
|
});
|
|
3912
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
3913
|
-
title:
|
|
3914
|
-
configuration:
|
|
3946
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z137.object({
|
|
3947
|
+
title: z137.string().optional(),
|
|
3948
|
+
configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
3915
3949
|
});
|
|
3916
3950
|
function itemConfigurationToYjs(yDoc, item) {
|
|
3917
3951
|
yDoc.transact((trx) => {
|
|
@@ -3959,8 +3993,8 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
3959
3993
|
header: rawHeader
|
|
3960
3994
|
};
|
|
3961
3995
|
return {
|
|
3962
|
-
title:
|
|
3963
|
-
configuration:
|
|
3996
|
+
title: z137.string().parse(title),
|
|
3997
|
+
configuration: DocumentationItemConfigurationV2.parse(rawConfig)
|
|
3964
3998
|
};
|
|
3965
3999
|
}
|
|
3966
4000
|
|
|
@@ -3968,9 +4002,9 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
3968
4002
|
var PageBlockEditorModel2 = PageBlockEditorModel;
|
|
3969
4003
|
|
|
3970
4004
|
// src/yjs/docs-editor/model/page.ts
|
|
3971
|
-
import { z as
|
|
3972
|
-
var DocumentationPageEditorModel =
|
|
3973
|
-
blocks:
|
|
4005
|
+
import { z as z138 } from "zod";
|
|
4006
|
+
var DocumentationPageEditorModel = z138.object({
|
|
4007
|
+
blocks: z138.array(PageBlockEditorModel2)
|
|
3974
4008
|
});
|
|
3975
4009
|
|
|
3976
4010
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -7603,7 +7637,7 @@ var blocks = [
|
|
|
7603
7637
|
|
|
7604
7638
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
7605
7639
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
7606
|
-
import { z as
|
|
7640
|
+
import { z as z139 } from "zod";
|
|
7607
7641
|
function yDocToPage(yDoc, definitions) {
|
|
7608
7642
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
7609
7643
|
}
|
|
@@ -7615,7 +7649,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
|
|
|
7615
7649
|
const definitionsById = mapByUnique2(definitions, (d) => d.id);
|
|
7616
7650
|
return {
|
|
7617
7651
|
blocks: (prosemirrorDoc.content ?? []).map((prosemirrorNode) => {
|
|
7618
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
7652
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z139.string());
|
|
7619
7653
|
if (!definitionId) {
|
|
7620
7654
|
console.warn(
|
|
7621
7655
|
`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`
|
|
@@ -7657,7 +7691,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
7657
7691
|
if (!id)
|
|
7658
7692
|
return null;
|
|
7659
7693
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7660
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
7694
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z139.string().optional()));
|
|
7661
7695
|
return {
|
|
7662
7696
|
// TODO Artem: indent
|
|
7663
7697
|
id,
|
|
@@ -7757,8 +7791,8 @@ function parseRichTextAttribute(mark) {
|
|
|
7757
7791
|
case "code":
|
|
7758
7792
|
return { type: "Code" };
|
|
7759
7793
|
case "link":
|
|
7760
|
-
const itemId = getProsemirrorAttribute(mark, "itemId",
|
|
7761
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
7794
|
+
const itemId = getProsemirrorAttribute(mark, "itemId", z139.string().optional());
|
|
7795
|
+
const href = getProsemirrorAttribute(mark, "href", z139.string().optional());
|
|
7762
7796
|
return {
|
|
7763
7797
|
type: "Link",
|
|
7764
7798
|
openInNewWindow: mark.attrs?.target !== "_self",
|
|
@@ -7773,7 +7807,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
7773
7807
|
if (!id)
|
|
7774
7808
|
return null;
|
|
7775
7809
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7776
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
7810
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z139.boolean().optional()) !== false;
|
|
7777
7811
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
7778
7812
|
if (!tableChild) {
|
|
7779
7813
|
return emptyTable(id, variantId, 0);
|
|
@@ -7819,9 +7853,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
7819
7853
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
7820
7854
|
if (!id)
|
|
7821
7855
|
return null;
|
|
7822
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
7856
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z139.string().optional());
|
|
7823
7857
|
let columnWidth;
|
|
7824
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
7858
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z139.array(z139.number()).optional());
|
|
7825
7859
|
if (columnWidthArray) {
|
|
7826
7860
|
columnWidth = columnWidthArray[0];
|
|
7827
7861
|
}
|
|
@@ -7855,7 +7889,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
7855
7889
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
7856
7890
|
};
|
|
7857
7891
|
case "image":
|
|
7858
|
-
const url = getProsemirrorAttribute(prosemirrorNode, "src",
|
|
7892
|
+
const url = getProsemirrorAttribute(prosemirrorNode, "src", z139.string().optional());
|
|
7859
7893
|
if (!url)
|
|
7860
7894
|
return null;
|
|
7861
7895
|
return {
|
|
@@ -7949,7 +7983,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
7949
7983
|
};
|
|
7950
7984
|
}
|
|
7951
7985
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
7952
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
7986
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z139.string());
|
|
7953
7987
|
if (!itemsString)
|
|
7954
7988
|
return null;
|
|
7955
7989
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -7961,11 +7995,11 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
7961
7995
|
}
|
|
7962
7996
|
function parseAppearance(prosemirrorNode) {
|
|
7963
7997
|
const appearance = {};
|
|
7964
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
7998
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z139.number().optional());
|
|
7965
7999
|
if (columns) {
|
|
7966
8000
|
appearance.numberOfColumns = columns;
|
|
7967
8001
|
}
|
|
7968
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
8002
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z139.string().optional());
|
|
7969
8003
|
if (backgroundColor) {
|
|
7970
8004
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
7971
8005
|
if (parsedColor.success) {
|
|
@@ -8056,13 +8090,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
8056
8090
|
}
|
|
8057
8091
|
}
|
|
8058
8092
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
8059
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
8093
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z139.string());
|
|
8060
8094
|
if (!id)
|
|
8061
8095
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
8062
8096
|
return id;
|
|
8063
8097
|
}
|
|
8064
8098
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
8065
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
8099
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z139.string()));
|
|
8066
8100
|
}
|
|
8067
8101
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8068
8102
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -8094,7 +8128,6 @@ export {
|
|
|
8094
8128
|
DTODeleteDocumentationPageInputV2,
|
|
8095
8129
|
DTODeleteDocumentationTabGroupInput,
|
|
8096
8130
|
DTODesignSystem,
|
|
8097
|
-
DTODocumentationGroup,
|
|
8098
8131
|
DTODocumentationGroupCreateActionInputV2,
|
|
8099
8132
|
DTODocumentationGroupCreateActionOutputV2,
|
|
8100
8133
|
DTODocumentationGroupDeleteActionInputV2,
|
|
@@ -8103,9 +8136,10 @@ export {
|
|
|
8103
8136
|
DTODocumentationGroupDuplicateActionOutputV2,
|
|
8104
8137
|
DTODocumentationGroupMoveActionInputV2,
|
|
8105
8138
|
DTODocumentationGroupMoveActionOutputV2,
|
|
8106
|
-
|
|
8139
|
+
DTODocumentationGroupStructureV2,
|
|
8107
8140
|
DTODocumentationGroupUpdateActionInputV2,
|
|
8108
8141
|
DTODocumentationGroupUpdateActionOutputV2,
|
|
8142
|
+
DTODocumentationGroupV2,
|
|
8109
8143
|
DTODocumentationHierarchyV2,
|
|
8110
8144
|
DTODocumentationPageCreateActionInputV2,
|
|
8111
8145
|
DTODocumentationPageCreateActionOutputV2,
|