@supernova-studio/client 0.40.0 → 0.44.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 +8731 -2798
- package/dist/index.d.ts +8731 -2798
- package/dist/index.js +398 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1135 -822
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/design-systems/elements/properties/property-definition.ts +1 -1
- package/src/api/conversion/design-systems/elements/properties/property-value.ts +1 -1
- package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +4 -11
- package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +4 -0
- package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +32 -0
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +4 -5
- package/src/api/conversion/documentation/index.ts +1 -0
- package/src/api/conversion/index.ts +1 -0
- package/src/api/conversion/integrations/index.ts +1 -0
- package/src/api/conversion/integrations/integration.ts +12 -0
- package/src/api/dto/design-systems/brand.ts +5 -0
- package/src/api/dto/design-systems/design-system.ts +2 -0
- package/src/api/dto/design-systems/exporter-property.ts +8 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/documentation/anchor.ts +15 -0
- package/src/api/dto/documentation/index.ts +1 -0
- package/src/api/dto/elements/documentation/group-v2.ts +11 -12
- package/src/api/dto/elements/documentation/index.ts +2 -0
- package/src/api/dto/elements/documentation/item-configuration-v1.ts +2 -0
- package/src/api/dto/elements/documentation/item-configuration-v2.ts +14 -0
- package/src/api/dto/elements/documentation/page-content.ts +15 -0
- package/src/api/dto/elements/documentation/page-v2.ts +13 -13
- package/src/api/dto/elements/elements-action-v2.ts +30 -12
- package/src/api/dto/elements/properties/index.ts +1 -0
- package/src/api/dto/elements/properties/property-definitions-actions-v2.ts +53 -0
- package/src/api/dto/elements/properties/property-definitions.ts +38 -3
- package/src/api/dto/workspaces/index.ts +1 -0
- package/src/api/dto/workspaces/integrations.ts +27 -0
- package/src/api/payloads/design-systems/brand.ts +11 -0
- package/src/api/payloads/design-systems/index.ts +2 -0
- package/src/api/payloads/design-systems/version.ts +18 -0
- package/src/api/payloads/index.ts +1 -0
- package/src/api/payloads/liveblocks/auth.ts +1 -1
- package/src/api/payloads/workspaces/index.ts +1 -0
- package/src/api/payloads/workspaces/workspace-integrations.ts +8 -0
- package/src/yjs/design-system-content/item-configuration.ts +14 -9
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +11 -5
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +9 -3
package/dist/index.mjs
CHANGED
|
@@ -193,41 +193,48 @@ import { z as z100 } from "zod";
|
|
|
193
193
|
import { z as z101 } from "zod";
|
|
194
194
|
import { z as z102 } from "zod";
|
|
195
195
|
import { z as z103 } from "zod";
|
|
196
|
-
import { z as z113 } from "zod";
|
|
197
196
|
import { z as z104 } from "zod";
|
|
197
|
+
import { z as z114 } from "zod";
|
|
198
198
|
import { z as z105 } from "zod";
|
|
199
|
-
import { z as z107 } from "zod";
|
|
200
199
|
import { z as z106 } from "zod";
|
|
201
|
-
import { z as z109 } from "zod";
|
|
202
200
|
import { z as z108 } from "zod";
|
|
203
|
-
import
|
|
201
|
+
import { z as z107 } from "zod";
|
|
204
202
|
import { z as z110 } from "zod";
|
|
203
|
+
import { z as z109 } from "zod";
|
|
204
|
+
import IPCIDR from "ip-cidr";
|
|
205
205
|
import { z as z111 } from "zod";
|
|
206
206
|
import { z as z112 } from "zod";
|
|
207
|
-
import { z as
|
|
207
|
+
import { z as z113 } from "zod";
|
|
208
208
|
import { z as z115 } from "zod";
|
|
209
209
|
import { z as z116 } from "zod";
|
|
210
210
|
import { z as z117 } from "zod";
|
|
211
211
|
import { z as z118 } from "zod";
|
|
212
212
|
import { z as z119 } from "zod";
|
|
213
213
|
import { z as z120 } from "zod";
|
|
214
|
-
import { z as z123 } from "zod";
|
|
215
214
|
import { z as z121 } from "zod";
|
|
216
215
|
import { z as z122 } from "zod";
|
|
216
|
+
import { z as z123 } from "zod";
|
|
217
|
+
import { z as z126 } from "zod";
|
|
217
218
|
import { z as z124 } from "zod";
|
|
218
|
-
import { z as z129 } from "zod";
|
|
219
219
|
import { z as z125 } from "zod";
|
|
220
|
-
import { z as z126 } from "zod";
|
|
221
220
|
import { z as z127 } from "zod";
|
|
221
|
+
import { z as z134 } from "zod";
|
|
222
222
|
import { z as z128 } from "zod";
|
|
223
|
+
import { z as z129 } from "zod";
|
|
223
224
|
import { z as z130 } from "zod";
|
|
224
|
-
import { z as z132 } from "zod";
|
|
225
225
|
import { z as z131 } from "zod";
|
|
226
|
+
import { z as z132 } from "zod";
|
|
226
227
|
import { z as z133 } from "zod";
|
|
227
|
-
import { z as z134 } from "zod";
|
|
228
228
|
import { z as z135 } from "zod";
|
|
229
|
-
import { z as z136 } from "zod";
|
|
230
229
|
import { z as z137 } from "zod";
|
|
230
|
+
import { z as z136 } from "zod";
|
|
231
|
+
import { z as z138 } from "zod";
|
|
232
|
+
import { z as z139 } from "zod";
|
|
233
|
+
import { z as z140 } from "zod";
|
|
234
|
+
import { z as z141 } from "zod";
|
|
235
|
+
import { z as z142 } from "zod";
|
|
236
|
+
import { z as z143 } from "zod";
|
|
237
|
+
import { z as z144 } from "zod";
|
|
231
238
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
232
239
|
var PluginOAuthRequestSchema = z.object({
|
|
233
240
|
id: z.string(),
|
|
@@ -326,7 +333,8 @@ var FeaturesSummary = z6.object({
|
|
|
326
333
|
sso: featureToggleSchema,
|
|
327
334
|
workspacePaidSeats: featureLimitedSchema,
|
|
328
335
|
workspaceViewers: featureLimitedSchema,
|
|
329
|
-
customDocumentationExporter: featureToggleSchema
|
|
336
|
+
customDocumentationExporter: featureToggleSchema,
|
|
337
|
+
protectedPages: featureToggleSchema
|
|
330
338
|
});
|
|
331
339
|
var InvoiceSchema = z7.object({
|
|
332
340
|
id: z7.string(),
|
|
@@ -715,6 +723,7 @@ var HierarchicalElements = DesignTokenType.or(
|
|
|
715
723
|
var ElementPropertyTypeSchema = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
716
724
|
var ElementPropertyTargetType = z30.enum(["Token", "Component", "DocumentationPage"]);
|
|
717
725
|
var ElementPropertyLinkType = z30.enum(["FigmaComponent", "DocumentationPage"]);
|
|
726
|
+
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
718
727
|
var ColorTokenInlineData = z30.object({
|
|
719
728
|
value: z30.string()
|
|
720
729
|
});
|
|
@@ -728,7 +737,7 @@ var ElementPropertyDefinition = z30.object({
|
|
|
728
737
|
designSystemVersionId: z30.string(),
|
|
729
738
|
persistentId: z30.string(),
|
|
730
739
|
name: z30.string(),
|
|
731
|
-
codeName: z30.string(),
|
|
740
|
+
codeName: z30.string().regex(CODE_NAME_REGEX),
|
|
732
741
|
description: z30.string(),
|
|
733
742
|
type: ElementPropertyTypeSchema,
|
|
734
743
|
targetElementType: ElementPropertyTargetType,
|
|
@@ -885,6 +894,7 @@ var PageBlockShortcut = z34.object({
|
|
|
885
894
|
asset: nullishToOptional(PageBlockAsset),
|
|
886
895
|
documentationItemId: nullishToOptional(z34.string()),
|
|
887
896
|
url: nullishToOptional(z34.string()),
|
|
897
|
+
openInNewTab: nullishToOptional(z34.boolean()),
|
|
888
898
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
889
899
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
890
900
|
});
|
|
@@ -942,7 +952,9 @@ var PageBlockTextSpanAttribute = z34.object({
|
|
|
942
952
|
type: PageBlockTextSpanAttributeType,
|
|
943
953
|
link: nullishToOptional(z34.string()),
|
|
944
954
|
documentationItemId: nullishToOptional(z34.string()),
|
|
945
|
-
openInNewWindow: nullishToOptional(z34.boolean())
|
|
955
|
+
openInNewWindow: nullishToOptional(z34.boolean()),
|
|
956
|
+
// deprecated. use openInNewTab
|
|
957
|
+
openInNewTab: nullishToOptional(z34.boolean())
|
|
946
958
|
});
|
|
947
959
|
var PageBlockTextSpan = z34.object({
|
|
948
960
|
text: z34.string(),
|
|
@@ -1247,6 +1259,8 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
1247
1259
|
};
|
|
1248
1260
|
var DocumentationItemConfigurationV1 = z38.object({
|
|
1249
1261
|
showSidebar: z38.boolean(),
|
|
1262
|
+
isPrivate: z38.boolean().optional(),
|
|
1263
|
+
isHidden: z38.boolean().optional(),
|
|
1250
1264
|
header: DocumentationItemHeaderV1
|
|
1251
1265
|
});
|
|
1252
1266
|
var DocumentationPageDataV1 = z39.object({
|
|
@@ -1273,6 +1287,8 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1273
1287
|
};
|
|
1274
1288
|
var DocumentationItemConfigurationV2 = z41.object({
|
|
1275
1289
|
showSidebar: z41.boolean(),
|
|
1290
|
+
isPrivate: z41.boolean(),
|
|
1291
|
+
isHidden: z41.boolean(),
|
|
1276
1292
|
header: DocumentationItemHeaderV2
|
|
1277
1293
|
});
|
|
1278
1294
|
var DocumentationPageDataV2 = z42.object({
|
|
@@ -2240,387 +2256,424 @@ var DocumentationLinkPreview = z94.object({
|
|
|
2240
2256
|
description: z94.string().optional(),
|
|
2241
2257
|
thumbnail: PageBlockImageReference.optional()
|
|
2242
2258
|
});
|
|
2243
|
-
var
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
updatedAt: z95.coerce.date(),
|
|
2248
|
-
documentationPageId: z95.string(),
|
|
2249
|
-
documentationPageName: z95.string(),
|
|
2250
|
-
storagePath: z95.string()
|
|
2259
|
+
var DocumentationPageAnchor = z95.object({
|
|
2260
|
+
blockId: z95.string(),
|
|
2261
|
+
level: z95.number(),
|
|
2262
|
+
text: z95.string()
|
|
2251
2263
|
});
|
|
2252
|
-
var
|
|
2253
|
-
PageBlockEditorModelV2,
|
|
2254
|
-
PageSectionEditorModelV2
|
|
2255
|
-
]);
|
|
2256
|
-
var DocumentationPageContentData = z96.object({
|
|
2257
|
-
items: z96.array(DocumentationPageContentItem)
|
|
2258
|
-
});
|
|
2259
|
-
var DocumentationPageContent = z96.object({
|
|
2264
|
+
var DocumentationPageContentBackup = z96.object({
|
|
2260
2265
|
id: z96.string(),
|
|
2261
2266
|
designSystemVersionId: z96.string(),
|
|
2262
2267
|
createdAt: z96.coerce.date(),
|
|
2263
2268
|
updatedAt: z96.coerce.date(),
|
|
2264
2269
|
documentationPageId: z96.string(),
|
|
2265
|
-
|
|
2266
|
-
|
|
2270
|
+
documentationPageName: z96.string(),
|
|
2271
|
+
storagePath: z96.string()
|
|
2272
|
+
});
|
|
2273
|
+
var DocumentationPageContentItem = z97.discriminatedUnion("type", [
|
|
2274
|
+
PageBlockEditorModelV2,
|
|
2275
|
+
PageSectionEditorModelV2
|
|
2276
|
+
]);
|
|
2277
|
+
var DocumentationPageContentData = z97.object({
|
|
2278
|
+
items: z97.array(DocumentationPageContentItem)
|
|
2267
2279
|
});
|
|
2268
|
-
var
|
|
2269
|
-
type: z97.literal("DocumentationPage"),
|
|
2280
|
+
var DocumentationPageContent = z97.object({
|
|
2270
2281
|
id: z97.string(),
|
|
2271
|
-
persistentId: z97.string(),
|
|
2272
|
-
shortPersistentId: z97.string(),
|
|
2273
2282
|
designSystemVersionId: z97.string(),
|
|
2274
|
-
parentPersistentId: z97.string().nullish(),
|
|
2275
|
-
sortOrder: z97.number(),
|
|
2276
|
-
title: z97.string(),
|
|
2277
|
-
slug: z97.string(),
|
|
2278
|
-
userSlug: z97.string().nullish(),
|
|
2279
2283
|
createdAt: z97.coerce.date(),
|
|
2280
|
-
updatedAt: z97.coerce.date()
|
|
2284
|
+
updatedAt: z97.coerce.date(),
|
|
2285
|
+
documentationPageId: z97.string(),
|
|
2286
|
+
data: DocumentationPageContentData
|
|
2287
|
+
});
|
|
2288
|
+
var DocumentationPage = z98.object({
|
|
2289
|
+
type: z98.literal("DocumentationPage"),
|
|
2290
|
+
id: z98.string(),
|
|
2291
|
+
persistentId: z98.string(),
|
|
2292
|
+
shortPersistentId: z98.string(),
|
|
2293
|
+
designSystemVersionId: z98.string(),
|
|
2294
|
+
parentPersistentId: z98.string().nullish(),
|
|
2295
|
+
sortOrder: z98.number(),
|
|
2296
|
+
title: z98.string(),
|
|
2297
|
+
slug: z98.string(),
|
|
2298
|
+
userSlug: z98.string().nullish(),
|
|
2299
|
+
createdAt: z98.coerce.date(),
|
|
2300
|
+
updatedAt: z98.coerce.date()
|
|
2281
2301
|
});
|
|
2282
2302
|
var DesignSystemVersionRoom = Entity.extend({
|
|
2283
|
-
designSystemVersionId:
|
|
2284
|
-
liveblocksId:
|
|
2303
|
+
designSystemVersionId: z99.string(),
|
|
2304
|
+
liveblocksId: z99.string()
|
|
2285
2305
|
});
|
|
2286
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
2287
|
-
routingVersion:
|
|
2306
|
+
var DesignSystemVersionRoomInternalSettings = z99.object({
|
|
2307
|
+
routingVersion: z99.string()
|
|
2288
2308
|
});
|
|
2289
|
-
var DesignSystemVersionRoomInitialState =
|
|
2290
|
-
pages:
|
|
2291
|
-
groups:
|
|
2309
|
+
var DesignSystemVersionRoomInitialState = z99.object({
|
|
2310
|
+
pages: z99.array(DocumentationPageV2),
|
|
2311
|
+
groups: z99.array(ElementGroup),
|
|
2292
2312
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2293
2313
|
});
|
|
2294
|
-
var DesignSystemVersionRoomUpdate =
|
|
2295
|
-
pages:
|
|
2296
|
-
groups:
|
|
2297
|
-
deletedPageIds:
|
|
2298
|
-
deletedGroupIds:
|
|
2314
|
+
var DesignSystemVersionRoomUpdate = z99.object({
|
|
2315
|
+
pages: z99.array(DocumentationPageV2),
|
|
2316
|
+
groups: z99.array(ElementGroup),
|
|
2317
|
+
deletedPageIds: z99.array(z99.string()),
|
|
2318
|
+
deletedGroupIds: z99.array(z99.string())
|
|
2299
2319
|
});
|
|
2300
2320
|
var DocumentationPageRoom = Entity.extend({
|
|
2301
|
-
designSystemVersionId:
|
|
2302
|
-
documentationPageId:
|
|
2303
|
-
liveblocksId:
|
|
2304
|
-
isDirty:
|
|
2321
|
+
designSystemVersionId: z100.string(),
|
|
2322
|
+
documentationPageId: z100.string(),
|
|
2323
|
+
liveblocksId: z100.string(),
|
|
2324
|
+
isDirty: z100.boolean()
|
|
2305
2325
|
});
|
|
2306
|
-
var DocumentationPageRoomState =
|
|
2307
|
-
pageItems:
|
|
2326
|
+
var DocumentationPageRoomState = z100.object({
|
|
2327
|
+
pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2308
2328
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
2309
2329
|
});
|
|
2310
|
-
var DocumentationPageRoomRoomUpdate =
|
|
2330
|
+
var DocumentationPageRoomRoomUpdate = z100.object({
|
|
2311
2331
|
page: DocumentationPageV2,
|
|
2312
2332
|
pageParent: ElementGroup
|
|
2313
2333
|
});
|
|
2314
2334
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2315
|
-
pageItems:
|
|
2316
|
-
blockDefinitions:
|
|
2335
|
+
pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2336
|
+
blockDefinitions: z100.array(PageBlockDefinition)
|
|
2317
2337
|
});
|
|
2318
2338
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2319
2339
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2320
2340
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2321
2341
|
return RoomTypeEnum2;
|
|
2322
2342
|
})(RoomTypeEnum || {});
|
|
2323
|
-
var RoomTypeSchema =
|
|
2343
|
+
var RoomTypeSchema = z101.nativeEnum(RoomTypeEnum);
|
|
2324
2344
|
var RoomType = RoomTypeSchema.enum;
|
|
2325
|
-
var ElementViewBaseColumnType =
|
|
2326
|
-
var ElementViewColumnType =
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2345
|
+
var ElementViewBaseColumnType = z102.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2346
|
+
var ElementViewColumnType = z102.union([
|
|
2347
|
+
z102.literal("BaseProperty"),
|
|
2348
|
+
z102.literal("PropertyDefinition"),
|
|
2349
|
+
z102.literal("Theme")
|
|
2330
2350
|
]);
|
|
2331
|
-
var ElementViewColumnSharedAttributes =
|
|
2332
|
-
id:
|
|
2333
|
-
persistentId:
|
|
2334
|
-
elementDataViewId:
|
|
2335
|
-
sortPosition:
|
|
2336
|
-
width:
|
|
2351
|
+
var ElementViewColumnSharedAttributes = z102.object({
|
|
2352
|
+
id: z102.string(),
|
|
2353
|
+
persistentId: z102.string(),
|
|
2354
|
+
elementDataViewId: z102.string(),
|
|
2355
|
+
sortPosition: z102.number(),
|
|
2356
|
+
width: z102.number()
|
|
2337
2357
|
});
|
|
2338
2358
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2339
|
-
type:
|
|
2359
|
+
type: z102.literal("BaseProperty"),
|
|
2340
2360
|
basePropertyType: ElementViewBaseColumnType
|
|
2341
2361
|
});
|
|
2342
2362
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2343
|
-
type:
|
|
2344
|
-
propertyDefinitionId:
|
|
2363
|
+
type: z102.literal("PropertyDefinition"),
|
|
2364
|
+
propertyDefinitionId: z102.string()
|
|
2345
2365
|
});
|
|
2346
2366
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2347
|
-
type:
|
|
2348
|
-
themeId:
|
|
2367
|
+
type: z102.literal("Theme"),
|
|
2368
|
+
themeId: z102.string()
|
|
2349
2369
|
});
|
|
2350
|
-
var ElementViewColumn =
|
|
2370
|
+
var ElementViewColumn = z102.discriminatedUnion("type", [
|
|
2351
2371
|
ElementViewBasePropertyColumn,
|
|
2352
2372
|
ElementViewPropertyDefinitionColumn,
|
|
2353
2373
|
ElementViewThemeColumn
|
|
2354
2374
|
]);
|
|
2355
|
-
var ElementView =
|
|
2356
|
-
id: z102.string(),
|
|
2357
|
-
persistentId: z102.string(),
|
|
2358
|
-
designSystemVersionId: z102.string(),
|
|
2359
|
-
name: z102.string(),
|
|
2360
|
-
description: z102.string(),
|
|
2361
|
-
targetElementType: ElementPropertyTargetType,
|
|
2362
|
-
isDefault: z102.boolean()
|
|
2363
|
-
});
|
|
2364
|
-
var Brand = z103.object({
|
|
2375
|
+
var ElementView = z103.object({
|
|
2365
2376
|
id: z103.string(),
|
|
2366
|
-
designSystemVersionId: z103.string(),
|
|
2367
2377
|
persistentId: z103.string(),
|
|
2378
|
+
designSystemVersionId: z103.string(),
|
|
2368
2379
|
name: z103.string(),
|
|
2369
|
-
description: z103.string()
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
var
|
|
2383
|
-
authType:
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2380
|
+
description: z103.string(),
|
|
2381
|
+
targetElementType: ElementPropertyTargetType,
|
|
2382
|
+
isDefault: z103.boolean()
|
|
2383
|
+
});
|
|
2384
|
+
var Brand = z104.object({
|
|
2385
|
+
id: z104.string(),
|
|
2386
|
+
designSystemVersionId: z104.string(),
|
|
2387
|
+
persistentId: z104.string(),
|
|
2388
|
+
name: z104.string(),
|
|
2389
|
+
description: z104.string()
|
|
2390
|
+
});
|
|
2391
|
+
var NpmRegistryAuthType = z105.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2392
|
+
var NpmRegistryType = z105.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2393
|
+
var NpmRegistryBasicAuthConfig = z105.object({
|
|
2394
|
+
authType: z105.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2395
|
+
username: z105.string(),
|
|
2396
|
+
password: z105.string()
|
|
2397
|
+
});
|
|
2398
|
+
var NpmRegistryBearerAuthConfig = z105.object({
|
|
2399
|
+
authType: z105.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2400
|
+
accessToken: z105.string()
|
|
2401
|
+
});
|
|
2402
|
+
var NpmRegistryNoAuthConfig = z105.object({
|
|
2403
|
+
authType: z105.literal(NpmRegistryAuthType.Enum.None)
|
|
2404
|
+
});
|
|
2405
|
+
var NpmRegistrCustomAuthConfig = z105.object({
|
|
2406
|
+
authType: z105.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2407
|
+
authHeaderName: z105.string(),
|
|
2408
|
+
authHeaderValue: z105.string()
|
|
2409
|
+
});
|
|
2410
|
+
var NpmRegistryAuthConfig = z105.discriminatedUnion("authType", [
|
|
2391
2411
|
NpmRegistryBasicAuthConfig,
|
|
2392
2412
|
NpmRegistryBearerAuthConfig,
|
|
2393
2413
|
NpmRegistryNoAuthConfig,
|
|
2394
2414
|
NpmRegistrCustomAuthConfig
|
|
2395
2415
|
]);
|
|
2396
|
-
var NpmRegistryConfigBase =
|
|
2416
|
+
var NpmRegistryConfigBase = z105.object({
|
|
2397
2417
|
registryType: NpmRegistryType,
|
|
2398
|
-
enabledScopes:
|
|
2399
|
-
customRegistryUrl:
|
|
2400
|
-
bypassProxy:
|
|
2401
|
-
npmProxyRegistryConfigId:
|
|
2402
|
-
npmProxyVersion:
|
|
2418
|
+
enabledScopes: z105.array(z105.string()),
|
|
2419
|
+
customRegistryUrl: z105.string().optional(),
|
|
2420
|
+
bypassProxy: z105.boolean().default(false),
|
|
2421
|
+
npmProxyRegistryConfigId: z105.string().optional(),
|
|
2422
|
+
npmProxyVersion: z105.number().optional()
|
|
2403
2423
|
});
|
|
2404
2424
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2405
|
-
var SsoProvider =
|
|
2406
|
-
providerId:
|
|
2407
|
-
defaultAutoInviteValue:
|
|
2408
|
-
autoInviteDomains:
|
|
2409
|
-
skipDocsSupernovaLogin:
|
|
2410
|
-
areInvitesDisabled:
|
|
2411
|
-
isTestMode:
|
|
2412
|
-
emailDomains:
|
|
2413
|
-
metadataXml:
|
|
2414
|
-
});
|
|
2415
|
-
var WorkspaceRoleSchema =
|
|
2425
|
+
var SsoProvider = z106.object({
|
|
2426
|
+
providerId: z106.string(),
|
|
2427
|
+
defaultAutoInviteValue: z106.boolean(),
|
|
2428
|
+
autoInviteDomains: z106.record(z106.string(), z106.boolean()),
|
|
2429
|
+
skipDocsSupernovaLogin: z106.boolean(),
|
|
2430
|
+
areInvitesDisabled: z106.boolean(),
|
|
2431
|
+
isTestMode: z106.boolean(),
|
|
2432
|
+
emailDomains: z106.array(z106.string()),
|
|
2433
|
+
metadataXml: z106.string().nullish()
|
|
2434
|
+
});
|
|
2435
|
+
var WorkspaceRoleSchema = z107.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2416
2436
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2417
2437
|
var MAX_MEMBERS_COUNT = 100;
|
|
2418
|
-
var UserInvite =
|
|
2419
|
-
email:
|
|
2438
|
+
var UserInvite = z108.object({
|
|
2439
|
+
email: z108.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2420
2440
|
role: WorkspaceRoleSchema
|
|
2421
2441
|
});
|
|
2422
|
-
var UserInvites =
|
|
2442
|
+
var UserInvites = z108.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2423
2443
|
var isValidCIDR = (value) => {
|
|
2424
2444
|
return IPCIDR.isValidAddress(value);
|
|
2425
2445
|
};
|
|
2426
|
-
var WorkspaceIpWhitelistEntry =
|
|
2427
|
-
isEnabled:
|
|
2428
|
-
name:
|
|
2429
|
-
range:
|
|
2446
|
+
var WorkspaceIpWhitelistEntry = z109.object({
|
|
2447
|
+
isEnabled: z109.boolean(),
|
|
2448
|
+
name: z109.string(),
|
|
2449
|
+
range: z109.string().refine(isValidCIDR, {
|
|
2430
2450
|
message: "Invalid IP CIDR"
|
|
2431
2451
|
})
|
|
2432
2452
|
});
|
|
2433
|
-
var WorkspaceIpSettings =
|
|
2434
|
-
isEnabledForCloud:
|
|
2435
|
-
isEnabledForDocs:
|
|
2436
|
-
entries:
|
|
2453
|
+
var WorkspaceIpSettings = z109.object({
|
|
2454
|
+
isEnabledForCloud: z109.boolean(),
|
|
2455
|
+
isEnabledForDocs: z109.boolean(),
|
|
2456
|
+
entries: z109.array(WorkspaceIpWhitelistEntry)
|
|
2437
2457
|
});
|
|
2438
|
-
var WorkspaceProfile =
|
|
2439
|
-
name:
|
|
2440
|
-
handle:
|
|
2441
|
-
color:
|
|
2442
|
-
avatar: nullishToOptional(
|
|
2458
|
+
var WorkspaceProfile = z109.object({
|
|
2459
|
+
name: z109.string(),
|
|
2460
|
+
handle: z109.string(),
|
|
2461
|
+
color: z109.string(),
|
|
2462
|
+
avatar: nullishToOptional(z109.string()),
|
|
2443
2463
|
billingDetails: nullishToOptional(BillingDetails)
|
|
2444
2464
|
});
|
|
2445
|
-
var Workspace =
|
|
2446
|
-
id:
|
|
2465
|
+
var Workspace = z109.object({
|
|
2466
|
+
id: z109.string(),
|
|
2447
2467
|
profile: WorkspaceProfile,
|
|
2448
2468
|
subscription: Subscription,
|
|
2449
2469
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2450
2470
|
sso: nullishToOptional(SsoProvider),
|
|
2451
2471
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
2452
|
-
designSystems:
|
|
2472
|
+
designSystems: z109.array(DesignSystem).nullish()
|
|
2453
2473
|
});
|
|
2454
|
-
var WorkspaceWithDesignSystems =
|
|
2474
|
+
var WorkspaceWithDesignSystems = z109.object({
|
|
2455
2475
|
workspace: Workspace,
|
|
2456
|
-
designSystems:
|
|
2476
|
+
designSystems: z109.array(DesignSystem)
|
|
2457
2477
|
});
|
|
2458
|
-
var WorkspaceContext =
|
|
2459
|
-
workspaceId:
|
|
2478
|
+
var WorkspaceContext = z110.object({
|
|
2479
|
+
workspaceId: z110.string(),
|
|
2460
2480
|
product: ProductCodeSchema,
|
|
2461
2481
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2462
|
-
publicDesignSystem:
|
|
2482
|
+
publicDesignSystem: z110.boolean().optional()
|
|
2463
2483
|
});
|
|
2464
2484
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2465
2485
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2466
2486
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2467
2487
|
var HANDLE_MIN_LENGTH = 2;
|
|
2468
2488
|
var HANDLE_MAX_LENGTH = 64;
|
|
2469
|
-
var CreateWorkspaceInput =
|
|
2470
|
-
name:
|
|
2489
|
+
var CreateWorkspaceInput = z111.object({
|
|
2490
|
+
name: z111.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2471
2491
|
product: ProductCodeSchema,
|
|
2472
|
-
priceId:
|
|
2473
|
-
billingEmail:
|
|
2474
|
-
handle:
|
|
2492
|
+
priceId: z111.string(),
|
|
2493
|
+
billingEmail: z111.string().email().optional(),
|
|
2494
|
+
handle: z111.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2475
2495
|
invites: UserInvites.optional(),
|
|
2476
|
-
promoCode:
|
|
2496
|
+
promoCode: z111.string().optional(),
|
|
2477
2497
|
status: InternalStatusSchema.optional(),
|
|
2478
2498
|
planInterval: BillingIntervalSchema.optional(),
|
|
2479
|
-
seats:
|
|
2480
|
-
seatLimit:
|
|
2499
|
+
seats: z111.number().optional(),
|
|
2500
|
+
seatLimit: z111.number().optional(),
|
|
2481
2501
|
card: CardSchema.optional(),
|
|
2482
2502
|
sso: SsoProvider.optional(),
|
|
2483
2503
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2484
2504
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
2485
2505
|
});
|
|
2486
|
-
var WorkspaceInvitation =
|
|
2487
|
-
id: z111.string(),
|
|
2488
|
-
email: z111.string().email(),
|
|
2489
|
-
createdAt: z111.coerce.date(),
|
|
2490
|
-
resentAt: z111.coerce.date().nullish(),
|
|
2491
|
-
role: z111.nativeEnum(WorkspaceRole),
|
|
2492
|
-
workspaceId: z111.string(),
|
|
2493
|
-
invitedBy: z111.string()
|
|
2494
|
-
});
|
|
2495
|
-
var WorkspaceMembership = z112.object({
|
|
2506
|
+
var WorkspaceInvitation = z112.object({
|
|
2496
2507
|
id: z112.string(),
|
|
2497
|
-
|
|
2508
|
+
email: z112.string().email(),
|
|
2509
|
+
createdAt: z112.coerce.date(),
|
|
2510
|
+
resentAt: z112.coerce.date().nullish(),
|
|
2511
|
+
role: z112.nativeEnum(WorkspaceRole),
|
|
2498
2512
|
workspaceId: z112.string(),
|
|
2499
|
-
|
|
2513
|
+
invitedBy: z112.string()
|
|
2500
2514
|
});
|
|
2501
|
-
var
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2515
|
+
var WorkspaceMembership = z113.object({
|
|
2516
|
+
id: z113.string(),
|
|
2517
|
+
userId: z113.string(),
|
|
2518
|
+
workspaceId: z113.string(),
|
|
2519
|
+
workspaceRole: z113.nativeEnum(WorkspaceRole)
|
|
2520
|
+
});
|
|
2521
|
+
var UpdateMembershipRolesInput = z113.object({
|
|
2522
|
+
members: z113.array(
|
|
2523
|
+
z113.object({
|
|
2524
|
+
userId: z113.string(),
|
|
2525
|
+
role: z113.nativeEnum(WorkspaceRole)
|
|
2506
2526
|
})
|
|
2507
2527
|
)
|
|
2508
2528
|
});
|
|
2509
|
-
var DesignSystemSwitcher =
|
|
2510
|
-
isEnabled:
|
|
2511
|
-
designSystemIds:
|
|
2529
|
+
var DesignSystemSwitcher = z114.object({
|
|
2530
|
+
isEnabled: z114.boolean(),
|
|
2531
|
+
designSystemIds: z114.array(z114.string())
|
|
2512
2532
|
});
|
|
2513
|
-
var DesignSystem =
|
|
2514
|
-
id:
|
|
2515
|
-
workspaceId:
|
|
2516
|
-
name:
|
|
2517
|
-
description:
|
|
2518
|
-
docExporterId: nullishToOptional(
|
|
2519
|
-
docSlug:
|
|
2520
|
-
docUserSlug: nullishToOptional(
|
|
2521
|
-
docSlugDeprecated:
|
|
2522
|
-
isPublic:
|
|
2523
|
-
isMultibrand:
|
|
2524
|
-
docViewUrl: nullishToOptional(
|
|
2525
|
-
basePrefixes:
|
|
2533
|
+
var DesignSystem = z114.object({
|
|
2534
|
+
id: z114.string(),
|
|
2535
|
+
workspaceId: z114.string(),
|
|
2536
|
+
name: z114.string(),
|
|
2537
|
+
description: z114.string(),
|
|
2538
|
+
docExporterId: nullishToOptional(z114.string()),
|
|
2539
|
+
docSlug: z114.string(),
|
|
2540
|
+
docUserSlug: nullishToOptional(z114.string()),
|
|
2541
|
+
docSlugDeprecated: z114.string(),
|
|
2542
|
+
isPublic: z114.boolean(),
|
|
2543
|
+
isMultibrand: z114.boolean(),
|
|
2544
|
+
docViewUrl: nullishToOptional(z114.string()),
|
|
2545
|
+
basePrefixes: z114.array(z114.string()),
|
|
2526
2546
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2527
|
-
createdAt:
|
|
2528
|
-
updatedAt:
|
|
2547
|
+
createdAt: z114.coerce.date(),
|
|
2548
|
+
updatedAt: z114.coerce.date()
|
|
2529
2549
|
});
|
|
2530
|
-
var DesignSystemWithWorkspace =
|
|
2550
|
+
var DesignSystemWithWorkspace = z114.object({
|
|
2531
2551
|
designSystem: DesignSystem,
|
|
2532
2552
|
workspace: Workspace
|
|
2533
2553
|
});
|
|
2534
2554
|
var DS_NAME_MIN_LENGTH = 2;
|
|
2535
2555
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2536
|
-
var DS_DESC_MIN_LENGTH = 2;
|
|
2537
2556
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2538
|
-
var DesignSystemCreateInputMetadata =
|
|
2539
|
-
name:
|
|
2540
|
-
description:
|
|
2557
|
+
var DesignSystemCreateInputMetadata = z115.object({
|
|
2558
|
+
name: z115.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2559
|
+
description: z115.string().max(DS_DESC_MAX_LENGTH).trim()
|
|
2541
2560
|
});
|
|
2542
|
-
var DesignSystemCreateInput =
|
|
2561
|
+
var DesignSystemCreateInput = z115.object({
|
|
2543
2562
|
meta: DesignSystemCreateInputMetadata,
|
|
2544
|
-
workspaceId:
|
|
2545
|
-
isPublic:
|
|
2546
|
-
basePrefixes:
|
|
2547
|
-
docUserSlug:
|
|
2548
|
-
source:
|
|
2563
|
+
workspaceId: z115.string(),
|
|
2564
|
+
isPublic: z115.boolean().optional(),
|
|
2565
|
+
basePrefixes: z115.array(z115.string()).optional(),
|
|
2566
|
+
docUserSlug: z115.string().nullish().optional(),
|
|
2567
|
+
source: z115.array(z115.string()).optional()
|
|
2549
2568
|
});
|
|
2550
2569
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2551
2570
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2552
|
-
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2553
2571
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2554
|
-
var DesignSystemUpdateInputMetadata =
|
|
2555
|
-
name:
|
|
2556
|
-
description:
|
|
2572
|
+
var DesignSystemUpdateInputMetadata = z116.object({
|
|
2573
|
+
name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2574
|
+
description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2557
2575
|
});
|
|
2558
|
-
var DesignSystemUpdateInput =
|
|
2576
|
+
var DesignSystemUpdateInput = z116.object({
|
|
2559
2577
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2560
|
-
workspaceId:
|
|
2561
|
-
isPublic:
|
|
2562
|
-
basePrefixes:
|
|
2563
|
-
docUserSlug:
|
|
2564
|
-
source:
|
|
2565
|
-
name:
|
|
2566
|
-
description:
|
|
2567
|
-
docExporterId:
|
|
2578
|
+
workspaceId: z116.string().optional(),
|
|
2579
|
+
isPublic: z116.boolean().optional(),
|
|
2580
|
+
basePrefixes: z116.array(z116.string()).optional(),
|
|
2581
|
+
docUserSlug: z116.string().nullish().optional(),
|
|
2582
|
+
source: z116.array(z116.string()).optional(),
|
|
2583
|
+
name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2584
|
+
description: z116.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2585
|
+
docExporterId: z116.string().optional()
|
|
2586
|
+
});
|
|
2587
|
+
var ExporterPropertyImageValue = z117.object({
|
|
2588
|
+
asset: PageBlockAsset.optional(),
|
|
2589
|
+
assetId: z117.string().optional(),
|
|
2590
|
+
assetUrl: z117.string().optional()
|
|
2591
|
+
});
|
|
2592
|
+
var ExporterPropertyValue = z117.object({
|
|
2593
|
+
key: z117.string(),
|
|
2594
|
+
value: z117.union([
|
|
2595
|
+
z117.number(),
|
|
2596
|
+
z117.string(),
|
|
2597
|
+
z117.boolean(),
|
|
2598
|
+
ExporterPropertyImageValue,
|
|
2599
|
+
ColorTokenData,
|
|
2600
|
+
TypographyTokenData
|
|
2601
|
+
])
|
|
2602
|
+
});
|
|
2603
|
+
var ExporterPropertyValuesCollection = z117.object({
|
|
2604
|
+
id: z117.string(),
|
|
2605
|
+
designSystemId: z117.string(),
|
|
2606
|
+
exporterId: z117.string(),
|
|
2607
|
+
values: z117.array(ExporterPropertyValue)
|
|
2608
|
+
});
|
|
2609
|
+
var PublishedDocPage = z118.object({
|
|
2610
|
+
id: z118.string(),
|
|
2611
|
+
publishedDocId: z118.string(),
|
|
2612
|
+
pageShortPersistentId: z118.string(),
|
|
2613
|
+
pathV1: z118.string(),
|
|
2614
|
+
pathV2: z118.string(),
|
|
2615
|
+
storagePath: z118.string(),
|
|
2616
|
+
locale: z118.string().optional(),
|
|
2617
|
+
isPrivate: z118.boolean(),
|
|
2618
|
+
isHidden: z118.boolean(),
|
|
2619
|
+
createdAt: z118.coerce.date(),
|
|
2620
|
+
updatedAt: z118.coerce.date()
|
|
2568
2621
|
});
|
|
2569
2622
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2570
|
-
var PublishedDocEnvironment =
|
|
2571
|
-
var PublishedDocsChecksums =
|
|
2572
|
-
var PublishedDocRoutingVersion =
|
|
2573
|
-
var PublishedDoc =
|
|
2574
|
-
id:
|
|
2575
|
-
designSystemVersionId:
|
|
2576
|
-
createdAt:
|
|
2577
|
-
updatedAt:
|
|
2578
|
-
lastPublishedAt:
|
|
2579
|
-
isDefault:
|
|
2580
|
-
isPublic:
|
|
2623
|
+
var PublishedDocEnvironment = z119.enum(publishedDocEnvironments);
|
|
2624
|
+
var PublishedDocsChecksums = z119.record(z119.string());
|
|
2625
|
+
var PublishedDocRoutingVersion = z119.enum(["1", "2"]);
|
|
2626
|
+
var PublishedDoc = z119.object({
|
|
2627
|
+
id: z119.string(),
|
|
2628
|
+
designSystemVersionId: z119.string(),
|
|
2629
|
+
createdAt: z119.coerce.date(),
|
|
2630
|
+
updatedAt: z119.coerce.date(),
|
|
2631
|
+
lastPublishedAt: z119.coerce.date(),
|
|
2632
|
+
isDefault: z119.boolean(),
|
|
2633
|
+
isPublic: z119.boolean(),
|
|
2581
2634
|
environment: PublishedDocEnvironment,
|
|
2582
2635
|
checksums: PublishedDocsChecksums,
|
|
2583
|
-
storagePath:
|
|
2584
|
-
wasMigrated:
|
|
2636
|
+
storagePath: z119.string(),
|
|
2637
|
+
wasMigrated: z119.boolean(),
|
|
2585
2638
|
routingVersion: PublishedDocRoutingVersion,
|
|
2586
|
-
usesLocalizations:
|
|
2587
|
-
wasPublishedWithLocalizations:
|
|
2639
|
+
usesLocalizations: z119.boolean(),
|
|
2640
|
+
wasPublishedWithLocalizations: z119.boolean()
|
|
2588
2641
|
});
|
|
2589
|
-
var DesignSystemVersion =
|
|
2590
|
-
id:
|
|
2591
|
-
version:
|
|
2592
|
-
createdAt:
|
|
2593
|
-
designSystemId:
|
|
2594
|
-
name:
|
|
2595
|
-
comment:
|
|
2596
|
-
isReadonly:
|
|
2597
|
-
changeLog:
|
|
2598
|
-
parentId:
|
|
2599
|
-
});
|
|
2600
|
-
var ExporterJobDestination =
|
|
2601
|
-
var ExporterJobStatus =
|
|
2602
|
-
var ExporterJobLogEntryType =
|
|
2603
|
-
var ExporterJobLogEntry =
|
|
2604
|
-
id:
|
|
2605
|
-
time:
|
|
2642
|
+
var DesignSystemVersion = z120.object({
|
|
2643
|
+
id: z120.string(),
|
|
2644
|
+
version: z120.string(),
|
|
2645
|
+
createdAt: z120.date(),
|
|
2646
|
+
designSystemId: z120.string(),
|
|
2647
|
+
name: z120.string(),
|
|
2648
|
+
comment: z120.string(),
|
|
2649
|
+
isReadonly: z120.boolean(),
|
|
2650
|
+
changeLog: z120.string(),
|
|
2651
|
+
parentId: z120.string().optional()
|
|
2652
|
+
});
|
|
2653
|
+
var ExporterJobDestination = z121.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2654
|
+
var ExporterJobStatus = z121.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2655
|
+
var ExporterJobLogEntryType = z121.enum(["success", "info", "warning", "error", "user"]);
|
|
2656
|
+
var ExporterJobLogEntry = z121.object({
|
|
2657
|
+
id: z121.string().optional(),
|
|
2658
|
+
time: z121.coerce.date(),
|
|
2606
2659
|
type: ExporterJobLogEntryType,
|
|
2607
|
-
message:
|
|
2660
|
+
message: z121.string()
|
|
2608
2661
|
});
|
|
2609
|
-
var ExporterJobResultPullRequestDestination =
|
|
2610
|
-
pullRequestUrl:
|
|
2662
|
+
var ExporterJobResultPullRequestDestination = z121.object({
|
|
2663
|
+
pullRequestUrl: z121.string()
|
|
2611
2664
|
});
|
|
2612
|
-
var ExporterJobResultS3Destination =
|
|
2613
|
-
bucket:
|
|
2614
|
-
urlPrefix:
|
|
2615
|
-
path:
|
|
2616
|
-
files:
|
|
2665
|
+
var ExporterJobResultS3Destination = z121.object({
|
|
2666
|
+
bucket: z121.string(),
|
|
2667
|
+
urlPrefix: z121.string().optional(),
|
|
2668
|
+
path: z121.string(),
|
|
2669
|
+
files: z121.array(z121.string())
|
|
2617
2670
|
});
|
|
2618
|
-
var ExporterJobResultDocsDestination =
|
|
2619
|
-
url:
|
|
2671
|
+
var ExporterJobResultDocsDestination = z121.object({
|
|
2672
|
+
url: z121.string()
|
|
2620
2673
|
});
|
|
2621
|
-
var ExporterJobResult =
|
|
2622
|
-
error:
|
|
2623
|
-
logs:
|
|
2674
|
+
var ExporterJobResult = z121.object({
|
|
2675
|
+
error: z121.string().optional(),
|
|
2676
|
+
logs: z121.array(ExporterJobLogEntry).optional(),
|
|
2624
2677
|
s3: ExporterJobResultS3Destination.optional(),
|
|
2625
2678
|
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2626
2679
|
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
@@ -2628,68 +2681,68 @@ var ExporterJobResult = z118.object({
|
|
|
2628
2681
|
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2629
2682
|
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2630
2683
|
});
|
|
2631
|
-
var ExporterDestinationSnDocs =
|
|
2684
|
+
var ExporterDestinationSnDocs = z121.object({
|
|
2632
2685
|
environment: PublishedDocEnvironment
|
|
2633
2686
|
});
|
|
2634
|
-
var ExporterDestinationS3 =
|
|
2635
|
-
var ExporterDestinationGithub =
|
|
2636
|
-
connectionId:
|
|
2637
|
-
url:
|
|
2638
|
-
branch:
|
|
2639
|
-
relativePath:
|
|
2687
|
+
var ExporterDestinationS3 = z121.object({});
|
|
2688
|
+
var ExporterDestinationGithub = z121.object({
|
|
2689
|
+
connectionId: z121.string(),
|
|
2690
|
+
url: z121.string(),
|
|
2691
|
+
branch: z121.string(),
|
|
2692
|
+
relativePath: z121.string(),
|
|
2640
2693
|
// +
|
|
2641
|
-
userId:
|
|
2642
|
-
});
|
|
2643
|
-
var ExporterDestinationAzure =
|
|
2644
|
-
connectionId:
|
|
2645
|
-
organizationId:
|
|
2646
|
-
projectId:
|
|
2647
|
-
repositoryId:
|
|
2648
|
-
branch:
|
|
2649
|
-
relativePath:
|
|
2694
|
+
userId: z121.coerce.string()
|
|
2695
|
+
});
|
|
2696
|
+
var ExporterDestinationAzure = z121.object({
|
|
2697
|
+
connectionId: z121.string(),
|
|
2698
|
+
organizationId: z121.string(),
|
|
2699
|
+
projectId: z121.string(),
|
|
2700
|
+
repositoryId: z121.string(),
|
|
2701
|
+
branch: z121.string(),
|
|
2702
|
+
relativePath: z121.string(),
|
|
2650
2703
|
// +
|
|
2651
|
-
userId:
|
|
2652
|
-
url:
|
|
2653
|
-
});
|
|
2654
|
-
var ExporterDestinationGitlab =
|
|
2655
|
-
connectionId:
|
|
2656
|
-
projectId:
|
|
2657
|
-
branch:
|
|
2658
|
-
relativePath:
|
|
2704
|
+
userId: z121.coerce.string(),
|
|
2705
|
+
url: z121.string()
|
|
2706
|
+
});
|
|
2707
|
+
var ExporterDestinationGitlab = z121.object({
|
|
2708
|
+
connectionId: z121.string(),
|
|
2709
|
+
projectId: z121.string(),
|
|
2710
|
+
branch: z121.string(),
|
|
2711
|
+
relativePath: z121.string(),
|
|
2659
2712
|
// +
|
|
2660
|
-
userId:
|
|
2661
|
-
url:
|
|
2713
|
+
userId: z121.coerce.string(),
|
|
2714
|
+
url: z121.string()
|
|
2662
2715
|
});
|
|
2663
2716
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2664
2717
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2665
|
-
var ExporterDestinationBitbucket =
|
|
2666
|
-
connectionId:
|
|
2667
|
-
workspaceSlug:
|
|
2668
|
-
projectKey:
|
|
2669
|
-
repoSlug:
|
|
2670
|
-
branch:
|
|
2671
|
-
relativePath:
|
|
2718
|
+
var ExporterDestinationBitbucket = z121.object({
|
|
2719
|
+
connectionId: z121.string(),
|
|
2720
|
+
workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2721
|
+
projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2722
|
+
repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2723
|
+
branch: z121.string(),
|
|
2724
|
+
relativePath: z121.string(),
|
|
2672
2725
|
// +
|
|
2673
|
-
userId:
|
|
2674
|
-
url:
|
|
2675
|
-
});
|
|
2676
|
-
var ExporterJob =
|
|
2677
|
-
id:
|
|
2678
|
-
createdAt:
|
|
2679
|
-
finishedAt:
|
|
2680
|
-
designSystemId:
|
|
2681
|
-
designSystemVersionId:
|
|
2682
|
-
workspaceId:
|
|
2683
|
-
scheduleId:
|
|
2684
|
-
exporterId:
|
|
2685
|
-
brandId:
|
|
2686
|
-
themeId:
|
|
2687
|
-
estimatedExecutionTime:
|
|
2726
|
+
userId: z121.coerce.string(),
|
|
2727
|
+
url: z121.string()
|
|
2728
|
+
});
|
|
2729
|
+
var ExporterJob = z121.object({
|
|
2730
|
+
id: z121.coerce.string(),
|
|
2731
|
+
createdAt: z121.coerce.date(),
|
|
2732
|
+
finishedAt: z121.coerce.date().optional(),
|
|
2733
|
+
designSystemId: z121.coerce.string(),
|
|
2734
|
+
designSystemVersionId: z121.coerce.string(),
|
|
2735
|
+
workspaceId: z121.coerce.string(),
|
|
2736
|
+
scheduleId: z121.coerce.string().nullish(),
|
|
2737
|
+
exporterId: z121.coerce.string(),
|
|
2738
|
+
brandId: z121.coerce.string().optional(),
|
|
2739
|
+
themeId: z121.coerce.string().optional(),
|
|
2740
|
+
estimatedExecutionTime: z121.number().optional(),
|
|
2688
2741
|
status: ExporterJobStatus,
|
|
2689
2742
|
result: ExporterJobResult.optional(),
|
|
2690
|
-
createdByUserId:
|
|
2743
|
+
createdByUserId: z121.string().optional(),
|
|
2691
2744
|
// CodegenDestinationsModel
|
|
2692
|
-
webhookUrl:
|
|
2745
|
+
webhookUrl: z121.string().optional(),
|
|
2693
2746
|
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2694
2747
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2695
2748
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2708,14 +2761,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
|
|
|
2708
2761
|
themeId: true,
|
|
2709
2762
|
brandId: true
|
|
2710
2763
|
}).extend({
|
|
2711
|
-
destinations:
|
|
2764
|
+
destinations: z121.array(ExporterJobDestination),
|
|
2712
2765
|
docsEnvironment: PublishedDocEnvironment
|
|
2713
2766
|
}).partial();
|
|
2714
|
-
var ExporterWorkspaceMembershipRole =
|
|
2715
|
-
var ExporterWorkspaceMembership =
|
|
2716
|
-
id:
|
|
2717
|
-
workspaceId:
|
|
2718
|
-
exporterId:
|
|
2767
|
+
var ExporterWorkspaceMembershipRole = z122.enum(["Owner", "OwnerArchived", "User"]);
|
|
2768
|
+
var ExporterWorkspaceMembership = z123.object({
|
|
2769
|
+
id: z123.string(),
|
|
2770
|
+
workspaceId: z123.string(),
|
|
2771
|
+
exporterId: z123.string(),
|
|
2719
2772
|
role: ExporterWorkspaceMembershipRole
|
|
2720
2773
|
});
|
|
2721
2774
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2725,8 +2778,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2725
2778
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2726
2779
|
return GitProviderNames2;
|
|
2727
2780
|
})(GitProviderNames || {});
|
|
2728
|
-
var GitProvider =
|
|
2729
|
-
var PulsarPropertyType =
|
|
2781
|
+
var GitProvider = z124.nativeEnum(GitProviderNames);
|
|
2782
|
+
var PulsarPropertyType = z125.enum([
|
|
2730
2783
|
"string",
|
|
2731
2784
|
"number",
|
|
2732
2785
|
"boolean",
|
|
@@ -2739,165 +2792,174 @@ var PulsarPropertyType = z122.enum([
|
|
|
2739
2792
|
"tokenProperties",
|
|
2740
2793
|
"tokenType"
|
|
2741
2794
|
]);
|
|
2742
|
-
var PulsarBaseProperty =
|
|
2743
|
-
label:
|
|
2744
|
-
key:
|
|
2745
|
-
description:
|
|
2795
|
+
var PulsarBaseProperty = z125.object({
|
|
2796
|
+
label: z125.string(),
|
|
2797
|
+
key: z125.string(),
|
|
2798
|
+
description: z125.string().nullish(),
|
|
2746
2799
|
type: PulsarPropertyType,
|
|
2747
|
-
values:
|
|
2748
|
-
default:
|
|
2800
|
+
values: z125.array(z125.string()).nullish(),
|
|
2801
|
+
default: z125.union([z125.string(), z125.boolean(), z125.number()]).nullish(),
|
|
2749
2802
|
// PulsarPropertyValueType //is optional?
|
|
2750
|
-
inputType:
|
|
2803
|
+
inputType: z125.enum(["code", "plain"]).optional(),
|
|
2751
2804
|
//is optional?
|
|
2752
|
-
isMultiline:
|
|
2805
|
+
isMultiline: z125.boolean().nullish()
|
|
2753
2806
|
});
|
|
2754
2807
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2755
|
-
category:
|
|
2756
|
-
});
|
|
2757
|
-
var PulsarContributionVariant =
|
|
2758
|
-
key:
|
|
2759
|
-
name:
|
|
2760
|
-
isDefault: nullishToOptional(
|
|
2761
|
-
description: nullishToOptional(
|
|
2762
|
-
thumbnailURL: nullishToOptional(
|
|
2763
|
-
});
|
|
2764
|
-
var PulsarCustomBlock =
|
|
2765
|
-
title: nullishToOptional(
|
|
2766
|
-
key:
|
|
2767
|
-
category: nullishToOptional(
|
|
2768
|
-
description: nullishToOptional(
|
|
2769
|
-
iconURL: nullishToOptional(
|
|
2770
|
-
mode: nullishToOptional(
|
|
2771
|
-
properties: nullishToOptional(
|
|
2772
|
-
});
|
|
2773
|
-
var ExporterType =
|
|
2774
|
-
var ExporterSource =
|
|
2775
|
-
var ExporterTag =
|
|
2776
|
-
var ExporterDetails =
|
|
2777
|
-
description:
|
|
2778
|
-
version:
|
|
2779
|
-
routingVersion: nullishToOptional(
|
|
2780
|
-
author: nullishToOptional(
|
|
2781
|
-
organization: nullishToOptional(
|
|
2782
|
-
homepage: nullishToOptional(
|
|
2783
|
-
readme: nullishToOptional(
|
|
2784
|
-
tags: nullishToOptional(
|
|
2785
|
-
packageId: nullishToOptional(
|
|
2786
|
-
iconURL: nullishToOptional(
|
|
2787
|
-
configurationProperties: nullishToOptional(
|
|
2788
|
-
customBlocks: nullishToOptional(
|
|
2789
|
-
blockVariants: nullishToOptional(
|
|
2790
|
-
usesBrands: nullishToOptional(
|
|
2791
|
-
usesThemes: nullishToOptional(
|
|
2808
|
+
category: z125.string()
|
|
2809
|
+
});
|
|
2810
|
+
var PulsarContributionVariant = z125.object({
|
|
2811
|
+
key: z125.string(),
|
|
2812
|
+
name: z125.string(),
|
|
2813
|
+
isDefault: nullishToOptional(z125.boolean()),
|
|
2814
|
+
description: nullishToOptional(z125.string()),
|
|
2815
|
+
thumbnailURL: nullishToOptional(z125.string())
|
|
2816
|
+
});
|
|
2817
|
+
var PulsarCustomBlock = z125.object({
|
|
2818
|
+
title: nullishToOptional(z125.string()),
|
|
2819
|
+
key: z125.string(),
|
|
2820
|
+
category: nullishToOptional(z125.string()),
|
|
2821
|
+
description: nullishToOptional(z125.string()),
|
|
2822
|
+
iconURL: nullishToOptional(z125.string()),
|
|
2823
|
+
mode: nullishToOptional(z125.enum(["array", "block"])),
|
|
2824
|
+
properties: nullishToOptional(z125.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2825
|
+
});
|
|
2826
|
+
var ExporterType = z126.enum(["code", "documentation"]);
|
|
2827
|
+
var ExporterSource = z126.enum(["git", "upload"]);
|
|
2828
|
+
var ExporterTag = z126.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2829
|
+
var ExporterDetails = z126.object({
|
|
2830
|
+
description: z126.string(),
|
|
2831
|
+
version: z126.string(),
|
|
2832
|
+
routingVersion: nullishToOptional(z126.string()),
|
|
2833
|
+
author: nullishToOptional(z126.string()),
|
|
2834
|
+
organization: nullishToOptional(z126.string()),
|
|
2835
|
+
homepage: nullishToOptional(z126.string()),
|
|
2836
|
+
readme: nullishToOptional(z126.string()),
|
|
2837
|
+
tags: nullishToOptional(z126.array(ExporterTag)).default([]),
|
|
2838
|
+
packageId: nullishToOptional(z126.string().max(255)),
|
|
2839
|
+
iconURL: nullishToOptional(z126.string()),
|
|
2840
|
+
configurationProperties: nullishToOptional(z126.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2841
|
+
customBlocks: nullishToOptional(z126.array(PulsarCustomBlock)).default([]),
|
|
2842
|
+
blockVariants: nullishToOptional(z126.record(z126.string(), z126.array(PulsarContributionVariant))).default({}),
|
|
2843
|
+
usesBrands: nullishToOptional(z126.boolean()).default(false),
|
|
2844
|
+
usesThemes: nullishToOptional(z126.boolean()).default(false),
|
|
2792
2845
|
source: ExporterSource,
|
|
2793
2846
|
gitProvider: nullishToOptional(GitProvider),
|
|
2794
|
-
gitUrl: nullishToOptional(
|
|
2795
|
-
gitBranch: nullishToOptional(
|
|
2796
|
-
gitDirectory: nullishToOptional(
|
|
2847
|
+
gitUrl: nullishToOptional(z126.string()),
|
|
2848
|
+
gitBranch: nullishToOptional(z126.string()),
|
|
2849
|
+
gitDirectory: nullishToOptional(z126.string())
|
|
2797
2850
|
});
|
|
2798
|
-
var Exporter =
|
|
2799
|
-
id:
|
|
2800
|
-
createdAt:
|
|
2801
|
-
name:
|
|
2802
|
-
isPrivate:
|
|
2851
|
+
var Exporter = z126.object({
|
|
2852
|
+
id: z126.string(),
|
|
2853
|
+
createdAt: z126.coerce.date(),
|
|
2854
|
+
name: z126.string(),
|
|
2855
|
+
isPrivate: z126.boolean(),
|
|
2803
2856
|
details: ExporterDetails,
|
|
2804
2857
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2805
|
-
storagePath: nullishToOptional(
|
|
2806
|
-
});
|
|
2807
|
-
var CustomDomain =
|
|
2808
|
-
id:
|
|
2809
|
-
designSystemId:
|
|
2810
|
-
state:
|
|
2811
|
-
supernovaDomain:
|
|
2812
|
-
customerDomain:
|
|
2813
|
-
error:
|
|
2814
|
-
errorCode:
|
|
2815
|
-
});
|
|
2816
|
-
var IntegrationAuthType =
|
|
2817
|
-
var ExternalServiceType =
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2858
|
+
storagePath: nullishToOptional(z126.string()).default("")
|
|
2859
|
+
});
|
|
2860
|
+
var CustomDomain = z127.object({
|
|
2861
|
+
id: z127.string(),
|
|
2862
|
+
designSystemId: z127.string(),
|
|
2863
|
+
state: z127.string(),
|
|
2864
|
+
supernovaDomain: z127.string(),
|
|
2865
|
+
customerDomain: z127.string().nullish(),
|
|
2866
|
+
error: z127.string().nullish(),
|
|
2867
|
+
errorCode: z127.string().nullish()
|
|
2868
|
+
});
|
|
2869
|
+
var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
|
|
2870
|
+
var ExternalServiceType = z128.union([
|
|
2871
|
+
z128.literal("figma"),
|
|
2872
|
+
z128.literal("github"),
|
|
2873
|
+
z128.literal("azure"),
|
|
2874
|
+
z128.literal("gitlab"),
|
|
2875
|
+
z128.literal("bitbucket")
|
|
2823
2876
|
]);
|
|
2824
|
-
var IntegrationUserInfo =
|
|
2825
|
-
id:
|
|
2826
|
-
handle:
|
|
2827
|
-
avatarUrl:
|
|
2828
|
-
email:
|
|
2877
|
+
var IntegrationUserInfo = z128.object({
|
|
2878
|
+
id: z128.string(),
|
|
2879
|
+
handle: z128.string().optional(),
|
|
2880
|
+
avatarUrl: z128.string().optional(),
|
|
2881
|
+
email: z128.string().optional(),
|
|
2829
2882
|
authType: IntegrationAuthType.optional(),
|
|
2830
|
-
customUrl:
|
|
2883
|
+
customUrl: z128.string().optional()
|
|
2831
2884
|
});
|
|
2832
|
-
var UserLinkedIntegrations =
|
|
2885
|
+
var UserLinkedIntegrations = z128.object({
|
|
2833
2886
|
figma: IntegrationUserInfo.optional(),
|
|
2834
2887
|
github: IntegrationUserInfo.array().optional(),
|
|
2835
2888
|
azure: IntegrationUserInfo.array().optional(),
|
|
2836
2889
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2837
2890
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2838
2891
|
});
|
|
2839
|
-
var
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
var
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2892
|
+
var CreateUserInput = z129.object({
|
|
2893
|
+
email: z129.string(),
|
|
2894
|
+
name: z129.string(),
|
|
2895
|
+
username: z129.string()
|
|
2896
|
+
});
|
|
2897
|
+
var UserIdentity = z130.object({
|
|
2898
|
+
id: z130.string(),
|
|
2899
|
+
userId: z130.string()
|
|
2900
|
+
});
|
|
2901
|
+
var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2902
|
+
var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2903
|
+
var UserOnboarding = z131.object({
|
|
2904
|
+
companyName: z131.string().optional(),
|
|
2905
|
+
numberOfPeopleInOrg: z131.string().optional(),
|
|
2906
|
+
numberOfPeopleInDesignTeam: z131.string().optional(),
|
|
2849
2907
|
department: UserOnboardingDepartment.optional(),
|
|
2850
|
-
jobTitle:
|
|
2851
|
-
phase:
|
|
2908
|
+
jobTitle: z131.string().optional(),
|
|
2909
|
+
phase: z131.string().optional(),
|
|
2852
2910
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2853
2911
|
});
|
|
2854
|
-
var UserProfile =
|
|
2855
|
-
name:
|
|
2856
|
-
avatar:
|
|
2857
|
-
nickname:
|
|
2912
|
+
var UserProfile = z131.object({
|
|
2913
|
+
name: z131.string(),
|
|
2914
|
+
avatar: z131.string().optional(),
|
|
2915
|
+
nickname: z131.string().optional(),
|
|
2858
2916
|
onboarding: UserOnboarding.optional()
|
|
2859
2917
|
});
|
|
2860
|
-
var
|
|
2861
|
-
id:
|
|
2862
|
-
email:
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2918
|
+
var UserTest = z132.object({
|
|
2919
|
+
id: z132.string(),
|
|
2920
|
+
email: z132.string()
|
|
2921
|
+
});
|
|
2922
|
+
var User = z133.object({
|
|
2923
|
+
id: z133.string(),
|
|
2924
|
+
email: z133.string(),
|
|
2925
|
+
emailVerified: z133.boolean(),
|
|
2926
|
+
createdAt: z133.coerce.date(),
|
|
2927
|
+
trialExpiresAt: z133.coerce.date().optional(),
|
|
2866
2928
|
profile: UserProfile,
|
|
2867
2929
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2868
|
-
loggedOutAt:
|
|
2869
|
-
isProtected:
|
|
2930
|
+
loggedOutAt: z133.coerce.date().optional(),
|
|
2931
|
+
isProtected: z133.boolean()
|
|
2870
2932
|
});
|
|
2871
|
-
var NpmProxyToken =
|
|
2872
|
-
access:
|
|
2873
|
-
expiresAt:
|
|
2933
|
+
var NpmProxyToken = z134.object({
|
|
2934
|
+
access: z134.string(),
|
|
2935
|
+
expiresAt: z134.number()
|
|
2874
2936
|
});
|
|
2875
|
-
var SessionData =
|
|
2876
|
-
returnToUrl:
|
|
2937
|
+
var SessionData = z134.object({
|
|
2938
|
+
returnToUrl: z134.string().optional(),
|
|
2877
2939
|
npmProxyToken: NpmProxyToken.optional()
|
|
2878
2940
|
});
|
|
2879
|
-
var Session =
|
|
2880
|
-
id:
|
|
2881
|
-
expiresAt:
|
|
2882
|
-
userId:
|
|
2941
|
+
var Session = z134.object({
|
|
2942
|
+
id: z134.string(),
|
|
2943
|
+
expiresAt: z134.coerce.date(),
|
|
2944
|
+
userId: z134.string().nullable(),
|
|
2883
2945
|
data: SessionData
|
|
2884
2946
|
});
|
|
2885
|
-
var AuthTokens =
|
|
2886
|
-
access:
|
|
2887
|
-
refresh:
|
|
2947
|
+
var AuthTokens = z134.object({
|
|
2948
|
+
access: z134.string(),
|
|
2949
|
+
refresh: z134.string()
|
|
2888
2950
|
});
|
|
2889
|
-
var UserSession =
|
|
2951
|
+
var UserSession = z134.object({
|
|
2890
2952
|
session: Session,
|
|
2891
2953
|
user: User.nullable()
|
|
2892
2954
|
});
|
|
2893
|
-
var FlaggedFeature =
|
|
2894
|
-
var FeatureFlagMap =
|
|
2895
|
-
var FeatureFlag =
|
|
2896
|
-
id:
|
|
2955
|
+
var FlaggedFeature = z135.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
2956
|
+
var FeatureFlagMap = z135.record(FlaggedFeature, z135.boolean());
|
|
2957
|
+
var FeatureFlag = z135.object({
|
|
2958
|
+
id: z135.string(),
|
|
2897
2959
|
feature: FlaggedFeature,
|
|
2898
|
-
createdAt:
|
|
2899
|
-
enabled:
|
|
2900
|
-
designSystemId:
|
|
2960
|
+
createdAt: z135.coerce.date(),
|
|
2961
|
+
enabled: z135.boolean(),
|
|
2962
|
+
designSystemId: z135.string().optional()
|
|
2901
2963
|
});
|
|
2902
2964
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2903
2965
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2907,60 +2969,91 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2907
2969
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2908
2970
|
return OAuthProviderNames2;
|
|
2909
2971
|
})(OAuthProviderNames || {});
|
|
2910
|
-
var OAuthProviderSchema =
|
|
2972
|
+
var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
|
|
2911
2973
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2912
|
-
var ExternalOAuthRequest =
|
|
2913
|
-
id:
|
|
2974
|
+
var ExternalOAuthRequest = z137.object({
|
|
2975
|
+
id: z137.string(),
|
|
2914
2976
|
provider: OAuthProviderSchema,
|
|
2915
|
-
userId:
|
|
2916
|
-
state:
|
|
2917
|
-
createdAt:
|
|
2977
|
+
userId: z137.string(),
|
|
2978
|
+
state: z137.string(),
|
|
2979
|
+
createdAt: z137.coerce.date()
|
|
2918
2980
|
});
|
|
2919
|
-
var
|
|
2920
|
-
|
|
2981
|
+
var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT"]);
|
|
2982
|
+
var IntegrationCredentialsProfile = z138.object({
|
|
2983
|
+
id: z138.string(),
|
|
2984
|
+
username: z138.string().optional(),
|
|
2985
|
+
avatarUrl: z138.string().optional()
|
|
2986
|
+
});
|
|
2987
|
+
var IntegrationCredentialsSchema = z138.object({
|
|
2988
|
+
id: z138.string(),
|
|
2989
|
+
type: IntegrationCredentialsType,
|
|
2990
|
+
integrationId: z138.string(),
|
|
2991
|
+
accessToken: z138.string(),
|
|
2992
|
+
userId: z138.string(),
|
|
2993
|
+
createdAt: z138.coerce.date(),
|
|
2994
|
+
refreshToken: z138.string().optional(),
|
|
2995
|
+
profile: IntegrationCredentialsProfile.optional()
|
|
2996
|
+
});
|
|
2997
|
+
var IntegrationType = z138.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2998
|
+
var Integration = z138.object({
|
|
2999
|
+
id: z138.string(),
|
|
3000
|
+
workspaceId: z138.string(),
|
|
3001
|
+
type: IntegrationType,
|
|
3002
|
+
createdAt: z138.coerce.date(),
|
|
3003
|
+
integrationCredentials: z138.array(IntegrationCredentialsSchema).optional()
|
|
3004
|
+
});
|
|
3005
|
+
var IntegrationTokenSchema = z139.object({
|
|
3006
|
+
id: z139.string(),
|
|
3007
|
+
provider: OAuthProviderSchema,
|
|
3008
|
+
scope: z139.string(),
|
|
3009
|
+
userId: z139.string(),
|
|
3010
|
+
accessToken: z139.string(),
|
|
3011
|
+
refreshToken: z139.string(),
|
|
3012
|
+
expiresAt: z139.coerce.date(),
|
|
3013
|
+
externalUserId: z139.string().nullish()
|
|
3014
|
+
});
|
|
3015
|
+
var WorkspaceOAuthRequestSchema = z140.object({
|
|
3016
|
+
id: z140.string(),
|
|
3017
|
+
workspaceId: z140.string(),
|
|
2921
3018
|
provider: OAuthProviderSchema,
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
expiresAt: z133.coerce.date(),
|
|
2927
|
-
externalUserId: z133.string().nullish()
|
|
2928
|
-
});
|
|
2929
|
-
var AnyRecord = z134.record(z134.any());
|
|
3019
|
+
userId: z140.string(),
|
|
3020
|
+
createdAt: z140.coerce.date()
|
|
3021
|
+
});
|
|
3022
|
+
var AnyRecord = z141.record(z141.any());
|
|
2930
3023
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2931
|
-
|
|
2932
|
-
tarball:
|
|
3024
|
+
z141.object({
|
|
3025
|
+
tarball: z141.string()
|
|
2933
3026
|
})
|
|
2934
3027
|
);
|
|
2935
3028
|
var NpmPackageVersion = AnyRecord.and(
|
|
2936
|
-
|
|
3029
|
+
z141.object({
|
|
2937
3030
|
dist: NpmPackageVersionDist
|
|
2938
3031
|
})
|
|
2939
3032
|
);
|
|
2940
3033
|
var NpmPackage = AnyRecord.and(
|
|
2941
|
-
|
|
2942
|
-
_id:
|
|
2943
|
-
name:
|
|
3034
|
+
z141.object({
|
|
3035
|
+
_id: z141.string(),
|
|
3036
|
+
name: z141.string(),
|
|
2944
3037
|
// e.g. "latest": "1.2.3"
|
|
2945
|
-
"dist-tags":
|
|
3038
|
+
"dist-tags": z141.record(z141.string(), z141.string()),
|
|
2946
3039
|
// "1.2.3": {...}
|
|
2947
|
-
versions:
|
|
3040
|
+
versions: z141.record(NpmPackageVersion)
|
|
2948
3041
|
})
|
|
2949
3042
|
);
|
|
2950
|
-
var NpmProxyTokenPayload =
|
|
2951
|
-
npmProxyRegistryConfigId:
|
|
2952
|
-
});
|
|
2953
|
-
var PersonalAccessToken =
|
|
2954
|
-
id:
|
|
2955
|
-
userId:
|
|
2956
|
-
|
|
2957
|
-
token: z136.string(),
|
|
2958
|
-
createdAt: z136.coerce.date(),
|
|
2959
|
-
hidden: z136.boolean(),
|
|
2960
|
-
workspaceId: z136.string().optional(),
|
|
3043
|
+
var NpmProxyTokenPayload = z142.object({
|
|
3044
|
+
npmProxyRegistryConfigId: z142.string()
|
|
3045
|
+
});
|
|
3046
|
+
var PersonalAccessToken = z143.object({
|
|
3047
|
+
id: z143.string(),
|
|
3048
|
+
userId: z143.string(),
|
|
3049
|
+
workspaceId: z143.string().optional(),
|
|
2961
3050
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2962
|
-
|
|
2963
|
-
|
|
3051
|
+
name: z143.string(),
|
|
3052
|
+
hidden: z143.boolean(),
|
|
3053
|
+
token: z143.string(),
|
|
3054
|
+
scope: z143.string().optional(),
|
|
3055
|
+
createdAt: z143.coerce.date(),
|
|
3056
|
+
expireAt: z143.coerce.date().optional()
|
|
2964
3057
|
});
|
|
2965
3058
|
var SupernovaException = class _SupernovaException extends Error {
|
|
2966
3059
|
//
|
|
@@ -3018,6 +3111,9 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
3018
3111
|
static noAccess(message) {
|
|
3019
3112
|
return new _SupernovaException("NoAccess", message);
|
|
3020
3113
|
}
|
|
3114
|
+
static missingCredentials(message) {
|
|
3115
|
+
return new _SupernovaException("MissingCredentials", message);
|
|
3116
|
+
}
|
|
3021
3117
|
//
|
|
3022
3118
|
// To refactor
|
|
3023
3119
|
//
|
|
@@ -3045,25 +3141,25 @@ function groupBy(items, keyFn) {
|
|
|
3045
3141
|
}
|
|
3046
3142
|
return result;
|
|
3047
3143
|
}
|
|
3048
|
-
var ContentLoadInstruction =
|
|
3049
|
-
from:
|
|
3050
|
-
to:
|
|
3051
|
-
authorizationHeaderKvsId:
|
|
3052
|
-
timeout:
|
|
3053
|
-
});
|
|
3054
|
-
var ContentLoaderPayload =
|
|
3055
|
-
type:
|
|
3144
|
+
var ContentLoadInstruction = z144.object({
|
|
3145
|
+
from: z144.string(),
|
|
3146
|
+
to: z144.string(),
|
|
3147
|
+
authorizationHeaderKvsId: z144.string().optional(),
|
|
3148
|
+
timeout: z144.number().optional()
|
|
3149
|
+
});
|
|
3150
|
+
var ContentLoaderPayload = z144.object({
|
|
3151
|
+
type: z144.literal("Single"),
|
|
3056
3152
|
instruction: ContentLoadInstruction
|
|
3057
3153
|
}).or(
|
|
3058
|
-
|
|
3059
|
-
type:
|
|
3060
|
-
loadingChunkSize:
|
|
3061
|
-
instructions:
|
|
3154
|
+
z144.object({
|
|
3155
|
+
type: z144.literal("Multiple"),
|
|
3156
|
+
loadingChunkSize: z144.number().optional(),
|
|
3157
|
+
instructions: z144.array(ContentLoadInstruction)
|
|
3062
3158
|
})
|
|
3063
3159
|
).or(
|
|
3064
|
-
|
|
3065
|
-
type:
|
|
3066
|
-
location:
|
|
3160
|
+
z144.object({
|
|
3161
|
+
type: z144.literal("S3"),
|
|
3162
|
+
location: z144.string()
|
|
3067
3163
|
})
|
|
3068
3164
|
);
|
|
3069
3165
|
function slugify(str, options) {
|
|
@@ -3691,6 +3787,30 @@ var RESERVED_SLUGS = [
|
|
|
3691
3787
|
];
|
|
3692
3788
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3693
3789
|
|
|
3790
|
+
// src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
|
|
3791
|
+
var dtoDefaultItemConfigurationV2 = {
|
|
3792
|
+
showSidebar: true,
|
|
3793
|
+
isHidden: false,
|
|
3794
|
+
isPrivate: false,
|
|
3795
|
+
header: {
|
|
3796
|
+
alignment: DocumentationItemHeaderAlignment.Left,
|
|
3797
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
3798
|
+
description: "",
|
|
3799
|
+
showBackgroundOverlay: false,
|
|
3800
|
+
showCoverText: true
|
|
3801
|
+
}
|
|
3802
|
+
};
|
|
3803
|
+
function documentationItemConfigurationToDTOV2(config) {
|
|
3804
|
+
if (!config)
|
|
3805
|
+
return dtoDefaultItemConfigurationV2;
|
|
3806
|
+
return {
|
|
3807
|
+
header: config.header,
|
|
3808
|
+
isHidden: config.isHidden ?? dtoDefaultItemConfigurationV2.isPrivate,
|
|
3809
|
+
isPrivate: config.isPrivate ?? dtoDefaultItemConfigurationV2.isPrivate,
|
|
3810
|
+
showSidebar: config.showSidebar
|
|
3811
|
+
};
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3694
3814
|
// src/api/conversion/documentation/documentation-group-v2-to-dto.ts
|
|
3695
3815
|
function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
|
|
3696
3816
|
const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
|
|
@@ -3701,10 +3821,7 @@ function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
|
|
|
3701
3821
|
return groups.map((group) => {
|
|
3702
3822
|
return {
|
|
3703
3823
|
...elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap),
|
|
3704
|
-
configuration: group.data?.configuration
|
|
3705
|
-
showSidebar: true,
|
|
3706
|
-
header: defaultDocumentationItemHeaderV2
|
|
3707
|
-
}
|
|
3824
|
+
configuration: documentationItemConfigurationToDTOV2(group.data?.configuration)
|
|
3708
3825
|
};
|
|
3709
3826
|
});
|
|
3710
3827
|
}
|
|
@@ -3722,6 +3839,7 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
3722
3839
|
createdAt: group.createdAt,
|
|
3723
3840
|
updatedAt: group.updatedAt,
|
|
3724
3841
|
title: group.meta.name,
|
|
3842
|
+
configuration: documentationItemConfigurationToDTOV2(group?.data?.configuration),
|
|
3725
3843
|
childrenIds,
|
|
3726
3844
|
isRoot: !group.parentPersistentId,
|
|
3727
3845
|
groupBehavior: group.data?.behavior ?? "Group",
|
|
@@ -3790,10 +3908,7 @@ function documentationPagesToDTOV2(pages, groups, routingVersion) {
|
|
|
3790
3908
|
return pages.map((page) => {
|
|
3791
3909
|
return {
|
|
3792
3910
|
...documentationPageToStructureDTOV2(page, pathsMap),
|
|
3793
|
-
configuration: page.data.configuration
|
|
3794
|
-
showSidebar: true,
|
|
3795
|
-
header: defaultDocumentationItemHeaderV2
|
|
3796
|
-
}
|
|
3911
|
+
configuration: documentationItemConfigurationToDTOV2(page.data.configuration)
|
|
3797
3912
|
};
|
|
3798
3913
|
});
|
|
3799
3914
|
}
|
|
@@ -3811,6 +3926,7 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
|
3811
3926
|
title: page.meta.name,
|
|
3812
3927
|
slug: page.slug,
|
|
3813
3928
|
userSlug: page.userSlug,
|
|
3929
|
+
configuration: documentationItemConfigurationToDTOV2(page.data.configuration),
|
|
3814
3930
|
createdAt: page.createdAt,
|
|
3815
3931
|
updatedAt: page.updatedAt,
|
|
3816
3932
|
path,
|
|
@@ -3829,6 +3945,8 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
|
|
|
3829
3945
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
3830
3946
|
var dtoDefaultItemConfigurationV1 = {
|
|
3831
3947
|
showSidebar: true,
|
|
3948
|
+
isHidden: false,
|
|
3949
|
+
isPrivate: false,
|
|
3832
3950
|
header: {
|
|
3833
3951
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
3834
3952
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
@@ -3842,6 +3960,8 @@ function documentationItemConfigurationToDTOV1(config) {
|
|
|
3842
3960
|
const { backgroundColor, foregroundColor, ...headerRest } = header;
|
|
3843
3961
|
return {
|
|
3844
3962
|
showSidebar,
|
|
3963
|
+
isHidden: config.isHidden ?? dtoDefaultItemConfigurationV1.isHidden,
|
|
3964
|
+
isPrivate: config.isPrivate ?? dtoDefaultItemConfigurationV1.isPrivate,
|
|
3845
3965
|
header: {
|
|
3846
3966
|
...headerRest,
|
|
3847
3967
|
backgroundColor: colorToDTOV1(backgroundColor ?? void 0),
|
|
@@ -3939,95 +4059,136 @@ function documentationPagesToDTOV1(pages, groups, routingVersion) {
|
|
|
3939
4059
|
});
|
|
3940
4060
|
}
|
|
3941
4061
|
|
|
4062
|
+
// src/api/conversion/integrations/integration.ts
|
|
4063
|
+
function integrationToDto(integration) {
|
|
4064
|
+
return {
|
|
4065
|
+
id: integration.id,
|
|
4066
|
+
workspaceId: integration.workspaceId,
|
|
4067
|
+
type: integration.type,
|
|
4068
|
+
createdAt: integration.createdAt,
|
|
4069
|
+
integrationCredentials: integration.integrationCredentials ?? void 0
|
|
4070
|
+
};
|
|
4071
|
+
}
|
|
4072
|
+
|
|
3942
4073
|
// src/api/dto/design-systems/brand.ts
|
|
3943
|
-
import { z as
|
|
3944
|
-
var DTOBrand =
|
|
3945
|
-
id:
|
|
3946
|
-
designSystemVersionId:
|
|
3947
|
-
persistentId:
|
|
4074
|
+
import { z as z145 } from "zod";
|
|
4075
|
+
var DTOBrand = z145.object({
|
|
4076
|
+
id: z145.string(),
|
|
4077
|
+
designSystemVersionId: z145.string(),
|
|
4078
|
+
persistentId: z145.string(),
|
|
3948
4079
|
meta: ObjectMeta
|
|
3949
4080
|
});
|
|
3950
|
-
var DTOBrandGetResponse =
|
|
3951
|
-
var
|
|
4081
|
+
var DTOBrandGetResponse = z145.object({ brand: DTOBrand });
|
|
4082
|
+
var DTOBrandCreateResponse = z145.object({
|
|
4083
|
+
brand: DTOBrand
|
|
4084
|
+
});
|
|
4085
|
+
var DTOBrandsListResponse = z145.object({ brands: z145.array(DTOBrand) });
|
|
3952
4086
|
|
|
3953
4087
|
// src/api/dto/design-systems/design-system.ts
|
|
4088
|
+
import { z as z146 } from "zod";
|
|
3954
4089
|
var DTODesignSystem = DesignSystem.omit({
|
|
3955
4090
|
name: true,
|
|
3956
|
-
description: true
|
|
4091
|
+
description: true,
|
|
4092
|
+
docExporterId: true
|
|
3957
4093
|
}).extend({
|
|
3958
|
-
meta: ObjectMeta
|
|
4094
|
+
meta: ObjectMeta,
|
|
4095
|
+
docExporterId: z146.string()
|
|
3959
4096
|
});
|
|
3960
4097
|
|
|
4098
|
+
// src/api/dto/design-systems/exporter-property.ts
|
|
4099
|
+
import { z as z147 } from "zod";
|
|
4100
|
+
var DTOExporterProperty = z147.any({});
|
|
4101
|
+
var DTOExporterPropertyListResponse = z147.object({ items: z147.array(DTOExporterProperty) });
|
|
4102
|
+
|
|
3961
4103
|
// src/api/dto/design-systems/version.ts
|
|
3962
|
-
import { z as
|
|
3963
|
-
var DTODesignSystemVersion =
|
|
3964
|
-
id:
|
|
3965
|
-
createdAt:
|
|
4104
|
+
import { z as z148 } from "zod";
|
|
4105
|
+
var DTODesignSystemVersion = z148.object({
|
|
4106
|
+
id: z148.string(),
|
|
4107
|
+
createdAt: z148.date(),
|
|
3966
4108
|
meta: ObjectMeta,
|
|
3967
|
-
version:
|
|
3968
|
-
isReadonly:
|
|
3969
|
-
changeLog:
|
|
3970
|
-
designSystemId:
|
|
4109
|
+
version: z148.string(),
|
|
4110
|
+
isReadonly: z148.boolean(),
|
|
4111
|
+
changeLog: z148.string(),
|
|
4112
|
+
designSystemId: z148.string()
|
|
3971
4113
|
});
|
|
3972
|
-
var DTODesignSystemVersionsListResponse =
|
|
3973
|
-
designSystemVersions:
|
|
4114
|
+
var DTODesignSystemVersionsListResponse = z148.object({
|
|
4115
|
+
designSystemVersions: z148.array(DTODesignSystemVersion)
|
|
3974
4116
|
});
|
|
3975
|
-
var DTODesignSystemVersionGetResponse =
|
|
4117
|
+
var DTODesignSystemVersionGetResponse = z148.object({
|
|
3976
4118
|
designSystemVersion: DTODesignSystemVersion
|
|
3977
4119
|
});
|
|
3978
4120
|
|
|
3979
4121
|
// src/api/dto/design-systems/view.ts
|
|
3980
|
-
import { z as
|
|
3981
|
-
var DTOElementViewColumnSharedAttributes =
|
|
3982
|
-
id:
|
|
3983
|
-
persistentId:
|
|
3984
|
-
width:
|
|
4122
|
+
import { z as z149 } from "zod";
|
|
4123
|
+
var DTOElementViewColumnSharedAttributes = z149.object({
|
|
4124
|
+
id: z149.string(),
|
|
4125
|
+
persistentId: z149.string(),
|
|
4126
|
+
width: z149.number()
|
|
3985
4127
|
});
|
|
3986
4128
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3987
|
-
type:
|
|
4129
|
+
type: z149.literal("BaseProperty"),
|
|
3988
4130
|
basePropertyType: ElementViewBaseColumnType
|
|
3989
4131
|
});
|
|
3990
4132
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3991
|
-
type:
|
|
3992
|
-
propertyDefinitionId:
|
|
4133
|
+
type: z149.literal("PropertyDefinition"),
|
|
4134
|
+
propertyDefinitionId: z149.string()
|
|
3993
4135
|
});
|
|
3994
4136
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3995
|
-
type:
|
|
3996
|
-
themeId:
|
|
4137
|
+
type: z149.literal("Theme"),
|
|
4138
|
+
themeId: z149.string()
|
|
3997
4139
|
});
|
|
3998
|
-
var DTOElementViewColumn =
|
|
4140
|
+
var DTOElementViewColumn = z149.discriminatedUnion("type", [
|
|
3999
4141
|
DTOElementViewBasePropertyColumn,
|
|
4000
4142
|
DTOElementViewPropertyDefinitionColumn,
|
|
4001
4143
|
DTOElementViewThemeColumn
|
|
4002
4144
|
]);
|
|
4003
|
-
var DTOElementView =
|
|
4145
|
+
var DTOElementView = z149.object({
|
|
4004
4146
|
meta: ObjectMeta,
|
|
4005
|
-
persistentId:
|
|
4147
|
+
persistentId: z149.string(),
|
|
4006
4148
|
targetElementType: ElementPropertyTargetType,
|
|
4007
|
-
id:
|
|
4008
|
-
isDefault:
|
|
4009
|
-
columns:
|
|
4149
|
+
id: z149.string(),
|
|
4150
|
+
isDefault: z149.boolean(),
|
|
4151
|
+
columns: z149.array(DTOElementViewColumn)
|
|
4152
|
+
});
|
|
4153
|
+
var DTOElementViewsListResponse = z149.object({
|
|
4154
|
+
elementDataViews: z149.array(DTOElementView)
|
|
4010
4155
|
});
|
|
4011
|
-
|
|
4012
|
-
|
|
4156
|
+
|
|
4157
|
+
// src/api/dto/documentation/anchor.ts
|
|
4158
|
+
import { z as z150 } from "zod";
|
|
4159
|
+
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4160
|
+
var DTOGetDocumentationPageAnchorsResponse = z150.object({
|
|
4161
|
+
anchors: z150.array(DTODocumentationPageAnchor)
|
|
4013
4162
|
});
|
|
4014
4163
|
|
|
4015
4164
|
// src/api/dto/documentation/link-preview.ts
|
|
4016
|
-
import { z as
|
|
4017
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4165
|
+
import { z as z151 } from "zod";
|
|
4166
|
+
var DTODocumentationLinkPreviewResponse = z151.object({
|
|
4018
4167
|
linkPreview: DocumentationLinkPreview
|
|
4019
4168
|
});
|
|
4020
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4021
|
-
url:
|
|
4022
|
-
documentationItemPersistentId:
|
|
4169
|
+
var DTODocumentationLinkPreviewRequest = z151.object({
|
|
4170
|
+
url: z151.string().optional(),
|
|
4171
|
+
documentationItemPersistentId: z151.string().optional()
|
|
4023
4172
|
});
|
|
4024
4173
|
|
|
4025
4174
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4026
|
-
import { z as
|
|
4175
|
+
import { z as z154 } from "zod";
|
|
4027
4176
|
|
|
4028
4177
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4029
|
-
import { z as
|
|
4030
|
-
|
|
4178
|
+
import { z as z153 } from "zod";
|
|
4179
|
+
|
|
4180
|
+
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4181
|
+
import { z as z152 } from "zod";
|
|
4182
|
+
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4183
|
+
var DTODocumentationItemConfigurationV2 = z152.object({
|
|
4184
|
+
showSidebar: z152.boolean(),
|
|
4185
|
+
isPrivate: z152.boolean(),
|
|
4186
|
+
isHidden: z152.boolean(),
|
|
4187
|
+
header: DTODocumentationItemHeaderV2
|
|
4188
|
+
});
|
|
4189
|
+
|
|
4190
|
+
// src/api/dto/elements/documentation/group-v2.ts
|
|
4191
|
+
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
4031
4192
|
sortOrder: true,
|
|
4032
4193
|
parentPersistentId: true,
|
|
4033
4194
|
brandPersistentId: true,
|
|
@@ -4036,137 +4197,136 @@ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
|
|
|
4036
4197
|
data: true,
|
|
4037
4198
|
shortPersistentId: true
|
|
4038
4199
|
}).extend({
|
|
4039
|
-
title:
|
|
4040
|
-
isRoot:
|
|
4041
|
-
childrenIds:
|
|
4200
|
+
title: z153.string(),
|
|
4201
|
+
isRoot: z153.boolean(),
|
|
4202
|
+
childrenIds: z153.array(z153.string()),
|
|
4042
4203
|
groupBehavior: DocumentationGroupBehavior,
|
|
4043
|
-
shortPersistentId:
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
|
|
4047
|
-
configuration: DocumentationItemConfigurationV2
|
|
4204
|
+
shortPersistentId: z153.string(),
|
|
4205
|
+
configuration: DTODocumentationItemConfigurationV2,
|
|
4206
|
+
type: z153.literal("Group")
|
|
4048
4207
|
});
|
|
4049
|
-
var
|
|
4208
|
+
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4209
|
+
var DTOCreateDocumentationGroupInput = z153.object({
|
|
4050
4210
|
// Identifier
|
|
4051
|
-
persistentId:
|
|
4211
|
+
persistentId: z153.string().uuid(),
|
|
4052
4212
|
// Group properties
|
|
4053
|
-
title:
|
|
4054
|
-
configuration:
|
|
4213
|
+
title: z153.string(),
|
|
4214
|
+
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4055
4215
|
// Group placement properties
|
|
4056
|
-
afterPersistentId:
|
|
4057
|
-
parentPersistentId:
|
|
4216
|
+
afterPersistentId: z153.string().uuid().nullish(),
|
|
4217
|
+
parentPersistentId: z153.string().uuid()
|
|
4058
4218
|
});
|
|
4059
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4219
|
+
var DTOUpdateDocumentationGroupInput = z153.object({
|
|
4060
4220
|
// Identifier of the group to update
|
|
4061
|
-
id:
|
|
4221
|
+
id: z153.string(),
|
|
4062
4222
|
// Group properties
|
|
4063
|
-
title:
|
|
4064
|
-
configuration:
|
|
4223
|
+
title: z153.string().optional(),
|
|
4224
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4065
4225
|
});
|
|
4066
|
-
var DTOMoveDocumentationGroupInput =
|
|
4226
|
+
var DTOMoveDocumentationGroupInput = z153.object({
|
|
4067
4227
|
// Identifier of the group to update
|
|
4068
|
-
id:
|
|
4228
|
+
id: z153.string(),
|
|
4069
4229
|
// Group placement properties
|
|
4070
|
-
parentPersistentId:
|
|
4071
|
-
afterPersistentId:
|
|
4230
|
+
parentPersistentId: z153.string().uuid(),
|
|
4231
|
+
afterPersistentId: z153.string().uuid().nullish()
|
|
4072
4232
|
});
|
|
4073
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4233
|
+
var DTODuplicateDocumentationGroupInput = z153.object({
|
|
4074
4234
|
// Identifier of the group to duplicate from
|
|
4075
|
-
id:
|
|
4235
|
+
id: z153.string(),
|
|
4076
4236
|
// New group persistent id
|
|
4077
|
-
persistentId:
|
|
4237
|
+
persistentId: z153.string().uuid(),
|
|
4078
4238
|
// Group placement properties
|
|
4079
|
-
afterPersistentId:
|
|
4080
|
-
parentPersistentId:
|
|
4239
|
+
afterPersistentId: z153.string().uuid().nullish(),
|
|
4240
|
+
parentPersistentId: z153.string().uuid()
|
|
4081
4241
|
});
|
|
4082
|
-
var DTOCreateDocumentationTabInput =
|
|
4242
|
+
var DTOCreateDocumentationTabInput = z153.object({
|
|
4083
4243
|
// New group persistent id
|
|
4084
|
-
persistentId:
|
|
4244
|
+
persistentId: z153.string().uuid(),
|
|
4085
4245
|
// If this is page, we will attempt to convert it to tab
|
|
4086
4246
|
// If this is tab group, we will add a new tab to it
|
|
4087
|
-
fromItemPersistentId:
|
|
4088
|
-
tabName:
|
|
4247
|
+
fromItemPersistentId: z153.string(),
|
|
4248
|
+
tabName: z153.string()
|
|
4089
4249
|
});
|
|
4090
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4250
|
+
var DTODeleteDocumentationTabGroupInput = z153.object({
|
|
4091
4251
|
// Deleted group id
|
|
4092
|
-
id:
|
|
4252
|
+
id: z153.string()
|
|
4093
4253
|
});
|
|
4094
|
-
var DTODeleteDocumentationGroupInput =
|
|
4254
|
+
var DTODeleteDocumentationGroupInput = z153.object({
|
|
4095
4255
|
// Identifier
|
|
4096
|
-
id:
|
|
4256
|
+
id: z153.string(),
|
|
4097
4257
|
// Deletion options
|
|
4098
|
-
deleteSubtree:
|
|
4258
|
+
deleteSubtree: z153.boolean().default(false)
|
|
4099
4259
|
});
|
|
4100
4260
|
|
|
4101
4261
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4102
|
-
var SuccessPayload =
|
|
4103
|
-
success:
|
|
4262
|
+
var SuccessPayload = z154.object({
|
|
4263
|
+
success: z154.literal(true)
|
|
4104
4264
|
});
|
|
4105
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4106
|
-
type:
|
|
4265
|
+
var DTODocumentationGroupCreateActionOutputV2 = z154.object({
|
|
4266
|
+
type: z154.literal("DocumentationGroupCreate"),
|
|
4107
4267
|
output: SuccessPayload
|
|
4108
4268
|
});
|
|
4109
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4110
|
-
type:
|
|
4269
|
+
var DTODocumentationTabCreateActionOutputV2 = z154.object({
|
|
4270
|
+
type: z154.literal("DocumentationTabCreate"),
|
|
4111
4271
|
output: SuccessPayload
|
|
4112
4272
|
});
|
|
4113
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4114
|
-
type:
|
|
4273
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z154.object({
|
|
4274
|
+
type: z154.literal("DocumentationGroupUpdate"),
|
|
4115
4275
|
output: SuccessPayload
|
|
4116
4276
|
});
|
|
4117
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4118
|
-
type:
|
|
4277
|
+
var DTODocumentationGroupMoveActionOutputV2 = z154.object({
|
|
4278
|
+
type: z154.literal("DocumentationGroupMove"),
|
|
4119
4279
|
output: SuccessPayload
|
|
4120
4280
|
});
|
|
4121
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4122
|
-
type:
|
|
4281
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z154.object({
|
|
4282
|
+
type: z154.literal("DocumentationGroupDuplicate"),
|
|
4123
4283
|
output: SuccessPayload
|
|
4124
4284
|
});
|
|
4125
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4126
|
-
type:
|
|
4285
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z154.object({
|
|
4286
|
+
type: z154.literal("DocumentationGroupDelete"),
|
|
4127
4287
|
output: SuccessPayload
|
|
4128
4288
|
});
|
|
4129
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4130
|
-
type:
|
|
4289
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z154.object({
|
|
4290
|
+
type: z154.literal("DocumentationTabGroupDelete"),
|
|
4131
4291
|
output: SuccessPayload
|
|
4132
4292
|
});
|
|
4133
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4134
|
-
type:
|
|
4293
|
+
var DTODocumentationGroupCreateActionInputV2 = z154.object({
|
|
4294
|
+
type: z154.literal("DocumentationGroupCreate"),
|
|
4135
4295
|
input: DTOCreateDocumentationGroupInput
|
|
4136
4296
|
});
|
|
4137
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4138
|
-
type:
|
|
4297
|
+
var DTODocumentationTabCreateActionInputV2 = z154.object({
|
|
4298
|
+
type: z154.literal("DocumentationTabCreate"),
|
|
4139
4299
|
input: DTOCreateDocumentationTabInput
|
|
4140
4300
|
});
|
|
4141
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4142
|
-
type:
|
|
4301
|
+
var DTODocumentationGroupUpdateActionInputV2 = z154.object({
|
|
4302
|
+
type: z154.literal("DocumentationGroupUpdate"),
|
|
4143
4303
|
input: DTOUpdateDocumentationGroupInput
|
|
4144
4304
|
});
|
|
4145
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4146
|
-
type:
|
|
4305
|
+
var DTODocumentationGroupMoveActionInputV2 = z154.object({
|
|
4306
|
+
type: z154.literal("DocumentationGroupMove"),
|
|
4147
4307
|
input: DTOMoveDocumentationGroupInput
|
|
4148
4308
|
});
|
|
4149
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4150
|
-
type:
|
|
4309
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z154.object({
|
|
4310
|
+
type: z154.literal("DocumentationGroupDuplicate"),
|
|
4151
4311
|
input: DTODuplicateDocumentationGroupInput
|
|
4152
4312
|
});
|
|
4153
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4154
|
-
type:
|
|
4313
|
+
var DTODocumentationGroupDeleteActionInputV2 = z154.object({
|
|
4314
|
+
type: z154.literal("DocumentationGroupDelete"),
|
|
4155
4315
|
input: DTODeleteDocumentationGroupInput
|
|
4156
4316
|
});
|
|
4157
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4158
|
-
type:
|
|
4317
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z154.object({
|
|
4318
|
+
type: z154.literal("DocumentationTabGroupDelete"),
|
|
4159
4319
|
input: DTODeleteDocumentationTabGroupInput
|
|
4160
4320
|
});
|
|
4161
4321
|
|
|
4162
4322
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4163
|
-
import { z as
|
|
4323
|
+
import { z as z156 } from "zod";
|
|
4164
4324
|
|
|
4165
4325
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4166
|
-
import { z as
|
|
4167
|
-
var DocumentationColorV1 =
|
|
4168
|
-
aliasTo:
|
|
4169
|
-
value:
|
|
4326
|
+
import { z as z155 } from "zod";
|
|
4327
|
+
var DocumentationColorV1 = z155.object({
|
|
4328
|
+
aliasTo: z155.string().optional(),
|
|
4329
|
+
value: z155.string().optional()
|
|
4170
4330
|
});
|
|
4171
4331
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4172
4332
|
foregroundColor: true,
|
|
@@ -4175,8 +4335,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4175
4335
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4176
4336
|
backgroundColor: DocumentationColorV1.optional()
|
|
4177
4337
|
});
|
|
4178
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4179
|
-
showSidebar:
|
|
4338
|
+
var DTODocumentationItemConfigurationV1 = z155.object({
|
|
4339
|
+
showSidebar: z155.boolean(),
|
|
4340
|
+
isPrivate: z155.boolean(),
|
|
4341
|
+
isHidden: z155.boolean(),
|
|
4180
4342
|
header: DTODocumentationItemHeaderV1
|
|
4181
4343
|
});
|
|
4182
4344
|
|
|
@@ -4190,124 +4352,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4190
4352
|
data: true,
|
|
4191
4353
|
shortPersistentId: true
|
|
4192
4354
|
}).extend({
|
|
4193
|
-
title:
|
|
4194
|
-
isRoot:
|
|
4195
|
-
childrenIds:
|
|
4355
|
+
title: z156.string(),
|
|
4356
|
+
isRoot: z156.boolean(),
|
|
4357
|
+
childrenIds: z156.array(z156.string()),
|
|
4196
4358
|
groupBehavior: DocumentationGroupBehavior,
|
|
4197
|
-
shortPersistentId:
|
|
4198
|
-
type:
|
|
4359
|
+
shortPersistentId: z156.string(),
|
|
4360
|
+
type: z156.literal("Group")
|
|
4199
4361
|
});
|
|
4200
4362
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4201
4363
|
configuration: DTODocumentationItemConfigurationV1
|
|
4202
4364
|
});
|
|
4203
4365
|
|
|
4204
4366
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4205
|
-
import { z as
|
|
4367
|
+
import { z as z158 } from "zod";
|
|
4206
4368
|
|
|
4207
4369
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4208
|
-
import { z as
|
|
4209
|
-
var
|
|
4370
|
+
import { z as z157 } from "zod";
|
|
4371
|
+
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4210
4372
|
data: true,
|
|
4211
4373
|
meta: true,
|
|
4212
4374
|
parentPersistentId: true,
|
|
4213
4375
|
sortOrder: true
|
|
4214
4376
|
}).extend({
|
|
4215
|
-
title:
|
|
4216
|
-
path:
|
|
4217
|
-
type:
|
|
4218
|
-
|
|
4219
|
-
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
4220
|
-
configuration: DocumentationItemConfigurationV2
|
|
4377
|
+
title: z157.string(),
|
|
4378
|
+
path: z157.string(),
|
|
4379
|
+
type: z157.literal("Page"),
|
|
4380
|
+
configuration: DTODocumentationItemConfigurationV2
|
|
4221
4381
|
});
|
|
4222
|
-
var
|
|
4223
|
-
|
|
4224
|
-
|
|
4382
|
+
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4383
|
+
var DTODocumentationHierarchyV2 = z157.object({
|
|
4384
|
+
pages: z157.array(DTODocumentationPageStructureV2),
|
|
4385
|
+
groups: z157.array(DTODocumentationGroupStructureV2)
|
|
4225
4386
|
});
|
|
4226
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4387
|
+
var DTOCreateDocumentationPageInputV2 = z157.object({
|
|
4227
4388
|
// Identifier
|
|
4228
|
-
persistentId:
|
|
4389
|
+
persistentId: z157.string().uuid(),
|
|
4229
4390
|
// Page properties
|
|
4230
|
-
title:
|
|
4231
|
-
configuration:
|
|
4391
|
+
title: z157.string(),
|
|
4392
|
+
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4232
4393
|
// Page placement properties
|
|
4233
|
-
parentPersistentId:
|
|
4234
|
-
afterPersistentId:
|
|
4394
|
+
parentPersistentId: z157.string().uuid(),
|
|
4395
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4235
4396
|
});
|
|
4236
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4397
|
+
var DTOUpdateDocumentationPageInputV2 = z157.object({
|
|
4237
4398
|
// Identifier of the group to update
|
|
4238
|
-
id:
|
|
4399
|
+
id: z157.string(),
|
|
4239
4400
|
// Page properties
|
|
4240
|
-
title:
|
|
4241
|
-
configuration:
|
|
4401
|
+
title: z157.string().optional(),
|
|
4402
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4242
4403
|
});
|
|
4243
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4404
|
+
var DTOMoveDocumentationPageInputV2 = z157.object({
|
|
4244
4405
|
// Identifier of the group to update
|
|
4245
|
-
id:
|
|
4406
|
+
id: z157.string(),
|
|
4246
4407
|
// Page placement properties
|
|
4247
|
-
parentPersistentId:
|
|
4248
|
-
afterPersistentId:
|
|
4408
|
+
parentPersistentId: z157.string().uuid(),
|
|
4409
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4249
4410
|
});
|
|
4250
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
4411
|
+
var DTODuplicateDocumentationPageInputV2 = z157.object({
|
|
4251
4412
|
// Identifier of the page to duplicate from
|
|
4252
|
-
id:
|
|
4413
|
+
id: z157.string(),
|
|
4253
4414
|
// New page persistent id
|
|
4254
|
-
persistentId:
|
|
4415
|
+
persistentId: z157.string().uuid(),
|
|
4255
4416
|
// Page placement properties
|
|
4256
|
-
parentPersistentId:
|
|
4257
|
-
afterPersistentId:
|
|
4417
|
+
parentPersistentId: z157.string().uuid(),
|
|
4418
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4258
4419
|
});
|
|
4259
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
4420
|
+
var DTODeleteDocumentationPageInputV2 = z157.object({
|
|
4260
4421
|
// Identifier
|
|
4261
|
-
id:
|
|
4422
|
+
id: z157.string()
|
|
4262
4423
|
});
|
|
4263
4424
|
|
|
4264
4425
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4265
|
-
var SuccessPayload2 =
|
|
4266
|
-
success:
|
|
4426
|
+
var SuccessPayload2 = z158.object({
|
|
4427
|
+
success: z158.literal(true)
|
|
4267
4428
|
});
|
|
4268
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4269
|
-
type:
|
|
4429
|
+
var DTODocumentationPageCreateActionOutputV2 = z158.object({
|
|
4430
|
+
type: z158.literal("DocumentationPageCreate"),
|
|
4270
4431
|
output: SuccessPayload2
|
|
4271
4432
|
});
|
|
4272
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4273
|
-
type:
|
|
4433
|
+
var DTODocumentationPageUpdateActionOutputV2 = z158.object({
|
|
4434
|
+
type: z158.literal("DocumentationPageUpdate"),
|
|
4274
4435
|
output: SuccessPayload2
|
|
4275
4436
|
});
|
|
4276
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4277
|
-
type:
|
|
4437
|
+
var DTODocumentationPageMoveActionOutputV2 = z158.object({
|
|
4438
|
+
type: z158.literal("DocumentationPageMove"),
|
|
4278
4439
|
output: SuccessPayload2
|
|
4279
4440
|
});
|
|
4280
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4281
|
-
type:
|
|
4441
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z158.object({
|
|
4442
|
+
type: z158.literal("DocumentationPageDuplicate"),
|
|
4282
4443
|
output: SuccessPayload2
|
|
4283
4444
|
});
|
|
4284
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4285
|
-
type:
|
|
4445
|
+
var DTODocumentationPageDeleteActionOutputV2 = z158.object({
|
|
4446
|
+
type: z158.literal("DocumentationPageDelete"),
|
|
4286
4447
|
output: SuccessPayload2
|
|
4287
4448
|
});
|
|
4288
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4289
|
-
type:
|
|
4449
|
+
var DTODocumentationPageCreateActionInputV2 = z158.object({
|
|
4450
|
+
type: z158.literal("DocumentationPageCreate"),
|
|
4290
4451
|
input: DTOCreateDocumentationPageInputV2
|
|
4291
4452
|
});
|
|
4292
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4293
|
-
type:
|
|
4453
|
+
var DTODocumentationPageUpdateActionInputV2 = z158.object({
|
|
4454
|
+
type: z158.literal("DocumentationPageUpdate"),
|
|
4294
4455
|
input: DTOUpdateDocumentationPageInputV2
|
|
4295
4456
|
});
|
|
4296
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4297
|
-
type:
|
|
4457
|
+
var DTODocumentationPageMoveActionInputV2 = z158.object({
|
|
4458
|
+
type: z158.literal("DocumentationPageMove"),
|
|
4298
4459
|
input: DTOMoveDocumentationPageInputV2
|
|
4299
4460
|
});
|
|
4300
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4301
|
-
type:
|
|
4461
|
+
var DTODocumentationPageDuplicateActionInputV2 = z158.object({
|
|
4462
|
+
type: z158.literal("DocumentationPageDuplicate"),
|
|
4302
4463
|
input: DTODuplicateDocumentationPageInputV2
|
|
4303
4464
|
});
|
|
4304
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4305
|
-
type:
|
|
4465
|
+
var DTODocumentationPageDeleteActionInputV2 = z158.object({
|
|
4466
|
+
type: z158.literal("DocumentationPageDelete"),
|
|
4306
4467
|
input: DTODeleteDocumentationPageInputV2
|
|
4307
4468
|
});
|
|
4308
4469
|
|
|
4470
|
+
// src/api/dto/elements/documentation/page-content.ts
|
|
4471
|
+
import { z as z159 } from "zod";
|
|
4472
|
+
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4473
|
+
var DTODocumentationPageContentGetResponse = z159.object({
|
|
4474
|
+
pageContent: DTODocumentationPageContent
|
|
4475
|
+
});
|
|
4476
|
+
|
|
4309
4477
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4310
|
-
import { z as
|
|
4478
|
+
import { z as z160 } from "zod";
|
|
4311
4479
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4312
4480
|
data: true,
|
|
4313
4481
|
meta: true,
|
|
@@ -4315,83 +4483,130 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4315
4483
|
sortOrder: true
|
|
4316
4484
|
}).extend({
|
|
4317
4485
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4318
|
-
blocks:
|
|
4319
|
-
title:
|
|
4320
|
-
path:
|
|
4486
|
+
blocks: z160.array(PageBlockV1),
|
|
4487
|
+
title: z160.string(),
|
|
4488
|
+
path: z160.string()
|
|
4321
4489
|
});
|
|
4322
4490
|
|
|
4323
4491
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4324
|
-
import { z as
|
|
4325
|
-
var DTOFigmaNodeData =
|
|
4492
|
+
import { z as z161 } from "zod";
|
|
4493
|
+
var DTOFigmaNodeData = z161.object({
|
|
4326
4494
|
// Id of the node in the Figma file
|
|
4327
|
-
figmaNodeId:
|
|
4495
|
+
figmaNodeId: z161.string(),
|
|
4328
4496
|
// Validity
|
|
4329
|
-
isValid:
|
|
4497
|
+
isValid: z161.boolean(),
|
|
4330
4498
|
// Asset data
|
|
4331
|
-
assetId:
|
|
4332
|
-
assetUrl:
|
|
4499
|
+
assetId: z161.string(),
|
|
4500
|
+
assetUrl: z161.string(),
|
|
4333
4501
|
// Asset metadata
|
|
4334
|
-
assetScale:
|
|
4335
|
-
assetWidth:
|
|
4336
|
-
assetHeight:
|
|
4502
|
+
assetScale: z161.number(),
|
|
4503
|
+
assetWidth: z161.number().optional(),
|
|
4504
|
+
assetHeight: z161.number().optional()
|
|
4337
4505
|
});
|
|
4338
4506
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
4339
4507
|
data: true
|
|
4340
4508
|
}).extend({
|
|
4341
4509
|
data: DTOFigmaNodeData
|
|
4342
4510
|
});
|
|
4343
|
-
var DTOFigmaNodeRenderInput =
|
|
4511
|
+
var DTOFigmaNodeRenderInput = z161.object({
|
|
4344
4512
|
// Id of a design system's data source representing a linked Figma file
|
|
4345
|
-
sourceId:
|
|
4513
|
+
sourceId: z161.string(),
|
|
4346
4514
|
// Id of a node within the Figma file
|
|
4347
|
-
figmaFileNodeId:
|
|
4515
|
+
figmaFileNodeId: z161.string()
|
|
4348
4516
|
});
|
|
4349
4517
|
|
|
4350
4518
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
4351
|
-
import { z as
|
|
4352
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
4353
|
-
type:
|
|
4354
|
-
figmaNodes:
|
|
4519
|
+
import { z as z162 } from "zod";
|
|
4520
|
+
var DTOFigmaNodeRenderActionOutput = z162.object({
|
|
4521
|
+
type: z162.literal("FigmaNodeRender"),
|
|
4522
|
+
figmaNodes: z162.array(DTOFigmaNode)
|
|
4355
4523
|
});
|
|
4356
|
-
var DTOFigmaNodeRenderActionInput =
|
|
4357
|
-
type:
|
|
4524
|
+
var DTOFigmaNodeRenderActionInput = z162.object({
|
|
4525
|
+
type: z162.literal("FigmaNodeRender"),
|
|
4358
4526
|
input: DTOFigmaNodeRenderInput.array()
|
|
4359
4527
|
});
|
|
4360
4528
|
|
|
4529
|
+
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4530
|
+
import { z as z164 } from "zod";
|
|
4531
|
+
|
|
4361
4532
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
4362
|
-
import { z as
|
|
4363
|
-
var
|
|
4364
|
-
|
|
4365
|
-
|
|
4533
|
+
import { z as z163 } from "zod";
|
|
4534
|
+
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
4535
|
+
var DTOElementPropertyDefinition = z163.object({
|
|
4536
|
+
id: z163.string(),
|
|
4537
|
+
designSystemVersionId: z163.string(),
|
|
4366
4538
|
meta: ObjectMeta,
|
|
4367
|
-
persistentId:
|
|
4539
|
+
persistentId: z163.string(),
|
|
4368
4540
|
type: ElementPropertyTypeSchema,
|
|
4369
4541
|
targetElementType: ElementPropertyTargetType,
|
|
4370
|
-
codeName:
|
|
4371
|
-
options:
|
|
4542
|
+
codeName: z163.string().regex(CODE_NAME_REGEX2),
|
|
4543
|
+
options: z163.array(ElementPropertyDefinitionOption).optional(),
|
|
4372
4544
|
linkElementType: ElementPropertyLinkType.optional()
|
|
4373
4545
|
});
|
|
4374
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
4375
|
-
definitions:
|
|
4546
|
+
var DTOElementPropertyDefinitionsGetResponse = z163.object({
|
|
4547
|
+
definitions: z163.array(DTOElementPropertyDefinition)
|
|
4548
|
+
});
|
|
4549
|
+
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
4550
|
+
id: true,
|
|
4551
|
+
designSystemVersionId: true
|
|
4552
|
+
});
|
|
4553
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z163.object({
|
|
4554
|
+
id: z163.string(),
|
|
4555
|
+
name: z163.string().optional(),
|
|
4556
|
+
description: z163.string().optional(),
|
|
4557
|
+
codeName: z163.string().regex(CODE_NAME_REGEX2).optional(),
|
|
4558
|
+
options: z163.array(ElementPropertyDefinitionOption).optional()
|
|
4559
|
+
});
|
|
4560
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z163.object({
|
|
4561
|
+
id: z163.string()
|
|
4376
4562
|
});
|
|
4377
4563
|
|
|
4378
|
-
// src/api/dto/elements/properties/property-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4564
|
+
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4565
|
+
var SuccessPayload3 = z164.object({
|
|
4566
|
+
success: z164.literal(true)
|
|
4567
|
+
});
|
|
4568
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z164.object({
|
|
4569
|
+
type: z164.literal("PropertyDefinitionCreate"),
|
|
4570
|
+
definition: DTOElementPropertyDefinition
|
|
4571
|
+
});
|
|
4572
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z164.object({
|
|
4573
|
+
type: z164.literal("PropertyDefinitionUpdate"),
|
|
4574
|
+
definition: DTOElementPropertyDefinition
|
|
4575
|
+
});
|
|
4576
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z164.object({
|
|
4577
|
+
type: z164.literal("PropertyDefinitionDelete"),
|
|
4578
|
+
output: SuccessPayload3
|
|
4579
|
+
});
|
|
4580
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z164.object({
|
|
4581
|
+
type: z164.literal("PropertyDefinitionCreate"),
|
|
4582
|
+
input: DTOCreateElementPropertyDefinitionInputV2
|
|
4583
|
+
});
|
|
4584
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z164.object({
|
|
4585
|
+
type: z164.literal("PropertyDefinitionUpdate"),
|
|
4586
|
+
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
4387
4587
|
});
|
|
4388
|
-
var
|
|
4389
|
-
|
|
4588
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z164.object({
|
|
4589
|
+
type: z164.literal("PropertyDefinitionDelete"),
|
|
4590
|
+
input: DTODeleteElementPropertyDefinitionInputV2
|
|
4591
|
+
});
|
|
4592
|
+
|
|
4593
|
+
// src/api/dto/elements/properties/property-values.ts
|
|
4594
|
+
import { z as z165 } from "zod";
|
|
4595
|
+
var DTOElementPropertyValue = z165.object({
|
|
4596
|
+
id: z165.string(),
|
|
4597
|
+
designSystemVersionId: z165.string(),
|
|
4598
|
+
definitionId: z165.string(),
|
|
4599
|
+
targetElementId: z165.string(),
|
|
4600
|
+
value: z165.union([z165.string(), z165.number(), z165.boolean()]).optional(),
|
|
4601
|
+
valuePreview: z165.string().optional()
|
|
4602
|
+
});
|
|
4603
|
+
var DTOElementPropertyValuesGetResponse = z165.object({
|
|
4604
|
+
values: z165.array(DTOElementPropertyValue)
|
|
4390
4605
|
});
|
|
4391
4606
|
|
|
4392
4607
|
// src/api/dto/elements/elements-action-v2.ts
|
|
4393
|
-
import { z as
|
|
4394
|
-
var DTOElementActionOutput =
|
|
4608
|
+
import { z as z166 } from "zod";
|
|
4609
|
+
var DTOElementActionOutput = z166.discriminatedUnion("type", [
|
|
4395
4610
|
// Documentation pages
|
|
4396
4611
|
DTODocumentationPageCreateActionOutputV2,
|
|
4397
4612
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -4407,9 +4622,13 @@ var DTOElementActionOutput = z153.discriminatedUnion("type", [
|
|
|
4407
4622
|
DTODocumentationGroupDeleteActionOutputV2,
|
|
4408
4623
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
4409
4624
|
// Figma frames
|
|
4410
|
-
DTOFigmaNodeRenderActionOutput
|
|
4625
|
+
DTOFigmaNodeRenderActionOutput,
|
|
4626
|
+
// Properties Definitions
|
|
4627
|
+
DTOPropertyDefinitionCreateActionOutputV2,
|
|
4628
|
+
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
4629
|
+
DTOPropertyDefinitionDeleteActionOutputV2
|
|
4411
4630
|
]);
|
|
4412
|
-
var DTOElementActionInput =
|
|
4631
|
+
var DTOElementActionInput = z166.discriminatedUnion("type", [
|
|
4413
4632
|
// Documentation pages
|
|
4414
4633
|
DTODocumentationPageCreateActionInputV2,
|
|
4415
4634
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -4425,57 +4644,80 @@ var DTOElementActionInput = z153.discriminatedUnion("type", [
|
|
|
4425
4644
|
DTODocumentationGroupDeleteActionInputV2,
|
|
4426
4645
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
4427
4646
|
// Figma frames
|
|
4428
|
-
DTOFigmaNodeRenderActionInput
|
|
4647
|
+
DTOFigmaNodeRenderActionInput,
|
|
4648
|
+
// Properties Definitions
|
|
4649
|
+
DTOPropertyDefinitionCreateActionInputV2,
|
|
4650
|
+
DTOPropertyDefinitionUpdateActionInputV2,
|
|
4651
|
+
DTOPropertyDefinitionDeleteActionInputV2
|
|
4429
4652
|
]);
|
|
4430
4653
|
|
|
4431
4654
|
// src/api/dto/elements/get-elements-v2.ts
|
|
4432
|
-
import { z as
|
|
4433
|
-
var DTOElementsGetTypeFilter =
|
|
4434
|
-
var DTOElementsGetQuerySchema =
|
|
4435
|
-
types:
|
|
4655
|
+
import { z as z167 } from "zod";
|
|
4656
|
+
var DTOElementsGetTypeFilter = z167.enum(["FigmaNode"]);
|
|
4657
|
+
var DTOElementsGetQuerySchema = z167.object({
|
|
4658
|
+
types: z167.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
4436
4659
|
});
|
|
4437
|
-
var DTOElementsGetOutput =
|
|
4438
|
-
figmaNodes:
|
|
4660
|
+
var DTOElementsGetOutput = z167.object({
|
|
4661
|
+
figmaNodes: z167.array(DTOFigmaNode).optional()
|
|
4662
|
+
});
|
|
4663
|
+
|
|
4664
|
+
// src/api/dto/workspaces/integrations.ts
|
|
4665
|
+
import { z as z168 } from "zod";
|
|
4666
|
+
var DTOIntegration = z168.object({
|
|
4667
|
+
id: z168.string(),
|
|
4668
|
+
workspaceId: z168.string(),
|
|
4669
|
+
type: IntegrationType,
|
|
4670
|
+
createdAt: z168.coerce.date(),
|
|
4671
|
+
integrationCredentials: z168.array(IntegrationCredentialsSchema).optional()
|
|
4672
|
+
});
|
|
4673
|
+
var DTOIntegrationOAuthGetResponse = z168.object({
|
|
4674
|
+
url: z168.string()
|
|
4675
|
+
});
|
|
4676
|
+
var DTOIntegrationPostResponse = z168.object({
|
|
4677
|
+
integration: DTOIntegration
|
|
4678
|
+
});
|
|
4679
|
+
var DTOIntegrationsGetListResponse = z168.object({
|
|
4680
|
+
integrations: DTOIntegration.array()
|
|
4439
4681
|
});
|
|
4440
4682
|
|
|
4441
4683
|
// src/api/dto/workspaces/membership.ts
|
|
4442
|
-
import { z as
|
|
4684
|
+
import { z as z171 } from "zod";
|
|
4443
4685
|
|
|
4444
4686
|
// src/api/dto/workspaces/workspace.ts
|
|
4445
|
-
import { z as
|
|
4687
|
+
import { z as z170 } from "zod";
|
|
4446
4688
|
|
|
4447
4689
|
// src/api/dto/workspaces/npm-registry.ts
|
|
4448
|
-
import { z as
|
|
4449
|
-
var DTONpmRegistryConfig =
|
|
4690
|
+
import { z as z169 } from "zod";
|
|
4691
|
+
var DTONpmRegistryConfig = z169.object({
|
|
4450
4692
|
// Registry basic configuration
|
|
4451
4693
|
registryType: NpmRegistryType,
|
|
4452
|
-
registryUrl:
|
|
4453
|
-
customRegistryUrl:
|
|
4694
|
+
registryUrl: z169.string(),
|
|
4695
|
+
customRegistryUrl: z169.string().optional(),
|
|
4454
4696
|
// URL of Supernova NPM packages proxy
|
|
4455
|
-
proxyUrl:
|
|
4697
|
+
proxyUrl: z169.string(),
|
|
4456
4698
|
// Auth configuration
|
|
4457
4699
|
authType: NpmRegistryAuthType,
|
|
4458
|
-
accessToken:
|
|
4459
|
-
username:
|
|
4460
|
-
password:
|
|
4700
|
+
accessToken: z169.literal("redacted").optional(),
|
|
4701
|
+
username: z169.string().optional(),
|
|
4702
|
+
password: z169.literal("redacted").optional(),
|
|
4461
4703
|
// NPM package scopes for whih the proxy should be enabled
|
|
4462
|
-
enabledScopes:
|
|
4704
|
+
enabledScopes: z169.array(z169.string()),
|
|
4463
4705
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
4464
4706
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
4465
|
-
bypassProxy:
|
|
4707
|
+
bypassProxy: z169.boolean()
|
|
4466
4708
|
});
|
|
4467
4709
|
|
|
4468
4710
|
// src/api/dto/workspaces/workspace.ts
|
|
4469
|
-
var DTOWorkspace =
|
|
4470
|
-
id:
|
|
4711
|
+
var DTOWorkspace = z170.object({
|
|
4712
|
+
id: z170.string(),
|
|
4471
4713
|
profile: WorkspaceProfile,
|
|
4472
4714
|
subscription: Subscription,
|
|
4473
4715
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
4474
4716
|
});
|
|
4475
4717
|
|
|
4476
4718
|
// src/api/dto/workspaces/membership.ts
|
|
4477
|
-
var DTOWorkspaceRole =
|
|
4478
|
-
var DTOUserWorkspaceMembership =
|
|
4719
|
+
var DTOWorkspaceRole = z171.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
4720
|
+
var DTOUserWorkspaceMembership = z171.object({
|
|
4479
4721
|
// Workspace the user is a member of
|
|
4480
4722
|
workspace: DTOWorkspace,
|
|
4481
4723
|
// Assigned role the user has in the workspace
|
|
@@ -4485,24 +4727,48 @@ var DTOUserWorkspaceMembership = z157.object({
|
|
|
4485
4727
|
// when a workspace's subscription is downgraded to free tier
|
|
4486
4728
|
effectiveRole: DTOWorkspaceRole
|
|
4487
4729
|
});
|
|
4488
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
4489
|
-
membership:
|
|
4730
|
+
var DTOUserWorkspaceMembershipsResponse = z171.object({
|
|
4731
|
+
membership: z171.array(DTOUserWorkspaceMembership)
|
|
4732
|
+
});
|
|
4733
|
+
|
|
4734
|
+
// src/api/payloads/design-systems/brand.ts
|
|
4735
|
+
import { z as z172 } from "zod";
|
|
4736
|
+
var DTOCreateBrandInput = z172.object({
|
|
4737
|
+
persistentId: z172.string().uuid(),
|
|
4738
|
+
meta: z172.object({
|
|
4739
|
+
name: z172.string(),
|
|
4740
|
+
description: z172.string()
|
|
4741
|
+
})
|
|
4742
|
+
});
|
|
4743
|
+
|
|
4744
|
+
// src/api/payloads/design-systems/version.ts
|
|
4745
|
+
import { z as z173 } from "zod";
|
|
4746
|
+
function validateSemver(version) {
|
|
4747
|
+
const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
|
|
4748
|
+
return semverRegex.test(version);
|
|
4749
|
+
}
|
|
4750
|
+
var DTOCreateVersionInput = z173.object({
|
|
4751
|
+
meta: ObjectMeta,
|
|
4752
|
+
version: z173.string().refine(validateSemver, {
|
|
4753
|
+
message: "Invalid semantic versioning format"
|
|
4754
|
+
}),
|
|
4755
|
+
changeLog: z173.string()
|
|
4490
4756
|
});
|
|
4491
4757
|
|
|
4492
4758
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4493
|
-
import { z as
|
|
4494
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4495
|
-
definitions:
|
|
4759
|
+
import { z as z174 } from "zod";
|
|
4760
|
+
var DTOGetBlockDefinitionsOutput = z174.object({
|
|
4761
|
+
definitions: z174.array(PageBlockDefinition)
|
|
4496
4762
|
});
|
|
4497
4763
|
|
|
4498
4764
|
// src/api/payloads/liveblocks/auth.ts
|
|
4499
|
-
import { z as
|
|
4500
|
-
var DTOLiveblocksAuthRequest =
|
|
4501
|
-
room:
|
|
4765
|
+
import { z as z175 } from "zod";
|
|
4766
|
+
var DTOLiveblocksAuthRequest = z175.object({
|
|
4767
|
+
room: z175.string().optional()
|
|
4502
4768
|
});
|
|
4503
4769
|
|
|
4504
4770
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4505
|
-
import { z as
|
|
4771
|
+
import { z as z176 } from "zod";
|
|
4506
4772
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4507
4773
|
function validateSsoPayload(ssoPayload) {
|
|
4508
4774
|
const keys = [];
|
|
@@ -4525,31 +4791,37 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4525
4791
|
keys
|
|
4526
4792
|
};
|
|
4527
4793
|
}
|
|
4528
|
-
var NpmRegistryInput =
|
|
4529
|
-
enabledScopes:
|
|
4530
|
-
customRegistryUrl:
|
|
4531
|
-
bypassProxy:
|
|
4532
|
-
npmProxyRegistryConfigId:
|
|
4533
|
-
npmProxyVersion:
|
|
4534
|
-
registryType:
|
|
4535
|
-
authType:
|
|
4536
|
-
authHeaderName:
|
|
4537
|
-
authHeaderValue:
|
|
4538
|
-
accessToken:
|
|
4539
|
-
username:
|
|
4540
|
-
password:
|
|
4541
|
-
});
|
|
4542
|
-
var WorkspaceConfigurationPayload =
|
|
4794
|
+
var NpmRegistryInput = z176.object({
|
|
4795
|
+
enabledScopes: z176.array(z176.string()),
|
|
4796
|
+
customRegistryUrl: z176.string().optional(),
|
|
4797
|
+
bypassProxy: z176.boolean().optional(),
|
|
4798
|
+
npmProxyRegistryConfigId: z176.string().optional(),
|
|
4799
|
+
npmProxyVersion: z176.number().optional(),
|
|
4800
|
+
registryType: z176.string(),
|
|
4801
|
+
authType: z176.string(),
|
|
4802
|
+
authHeaderName: z176.string(),
|
|
4803
|
+
authHeaderValue: z176.string(),
|
|
4804
|
+
accessToken: z176.string(),
|
|
4805
|
+
username: z176.string(),
|
|
4806
|
+
password: z176.string()
|
|
4807
|
+
});
|
|
4808
|
+
var WorkspaceConfigurationPayload = z176.object({
|
|
4543
4809
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4544
4810
|
sso: SsoProvider.partial().optional(),
|
|
4545
4811
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
4546
4812
|
profile: WorkspaceProfile.partial().optional()
|
|
4547
4813
|
});
|
|
4548
4814
|
|
|
4815
|
+
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4816
|
+
import { z as z177 } from "zod";
|
|
4817
|
+
var DTOWorkspaceIntegrationOauthInput = z177.object({
|
|
4818
|
+
type: IntegrationType
|
|
4819
|
+
});
|
|
4820
|
+
|
|
4549
4821
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
4550
|
-
import { z as
|
|
4551
|
-
var DocumentationHierarchySettings =
|
|
4552
|
-
routingVersion:
|
|
4822
|
+
import { z as z178 } from "zod";
|
|
4823
|
+
var DocumentationHierarchySettings = z178.object({
|
|
4824
|
+
routingVersion: z178.string()
|
|
4553
4825
|
});
|
|
4554
4826
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
4555
4827
|
doc.transact((trx) => {
|
|
@@ -4624,14 +4896,14 @@ function getInternalSettingsYMap(doc) {
|
|
|
4624
4896
|
}
|
|
4625
4897
|
|
|
4626
4898
|
// src/yjs/design-system-content/item-configuration.ts
|
|
4627
|
-
import { z as
|
|
4628
|
-
var DTODocumentationPageRoomHeaderData =
|
|
4629
|
-
title:
|
|
4630
|
-
configuration:
|
|
4899
|
+
import { z as z179 } from "zod";
|
|
4900
|
+
var DTODocumentationPageRoomHeaderData = z179.object({
|
|
4901
|
+
title: z179.string(),
|
|
4902
|
+
configuration: DTODocumentationItemConfigurationV2
|
|
4631
4903
|
});
|
|
4632
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
4633
|
-
title:
|
|
4634
|
-
configuration:
|
|
4904
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z179.object({
|
|
4905
|
+
title: z179.string().optional(),
|
|
4906
|
+
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
4635
4907
|
});
|
|
4636
4908
|
function itemConfigurationToYjs(yDoc, item) {
|
|
4637
4909
|
yDoc.transact((trx) => {
|
|
@@ -4653,10 +4925,10 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
4653
4925
|
header.showCoverText !== void 0 && headerYMap.set("showCoverText", header.showCoverText);
|
|
4654
4926
|
header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
|
|
4655
4927
|
}
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4928
|
+
const configYMap = trx.doc.getMap("itemConfiguration");
|
|
4929
|
+
configuration?.showSidebar !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
|
|
4930
|
+
configuration?.isHidden !== void 0 && configYMap.set("isHidden", configuration.isHidden);
|
|
4931
|
+
configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
4660
4932
|
});
|
|
4661
4933
|
}
|
|
4662
4934
|
function yjsToItemConfiguration(yDoc) {
|
|
@@ -4676,11 +4948,13 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
4676
4948
|
const configYMap = yDoc.getMap("itemConfiguration");
|
|
4677
4949
|
const rawConfig = {
|
|
4678
4950
|
showSidebar: configYMap.get("showSidebar"),
|
|
4951
|
+
isHidden: configYMap.get("isHidden") ?? false,
|
|
4952
|
+
isPrivate: configYMap.get("isPrivate") ?? false,
|
|
4679
4953
|
header: rawHeader
|
|
4680
4954
|
};
|
|
4681
4955
|
return {
|
|
4682
|
-
title:
|
|
4683
|
-
configuration:
|
|
4956
|
+
title: z179.string().parse(title),
|
|
4957
|
+
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
4684
4958
|
};
|
|
4685
4959
|
}
|
|
4686
4960
|
|
|
@@ -4689,9 +4963,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
4689
4963
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
4690
4964
|
|
|
4691
4965
|
// src/yjs/docs-editor/model/page.ts
|
|
4692
|
-
import { z as
|
|
4693
|
-
var DocumentationPageEditorModel =
|
|
4694
|
-
blocks:
|
|
4966
|
+
import { z as z180 } from "zod";
|
|
4967
|
+
var DocumentationPageEditorModel = z180.object({
|
|
4968
|
+
blocks: z180.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
4695
4969
|
});
|
|
4696
4970
|
|
|
4697
4971
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -5948,20 +6222,26 @@ function serializeTextSpanAttribute(spanAttribute) {
|
|
|
5948
6222
|
return { type: "code", attrs: {} };
|
|
5949
6223
|
case "Link":
|
|
5950
6224
|
if (spanAttribute.link) {
|
|
5951
|
-
return serializeLinkMark(
|
|
6225
|
+
return serializeLinkMark(
|
|
6226
|
+
spanAttribute.link,
|
|
6227
|
+
spanAttribute.openInNewTab ?? spanAttribute.openInNewWindow ?? false
|
|
6228
|
+
);
|
|
5952
6229
|
} else if (spanAttribute.documentationItemId) {
|
|
5953
|
-
return serializeLinkMark(
|
|
6230
|
+
return serializeLinkMark(
|
|
6231
|
+
`@page:${spanAttribute.documentationItemId}`,
|
|
6232
|
+
spanAttribute.openInNewTab ?? spanAttribute.openInNewWindow ?? false
|
|
6233
|
+
);
|
|
5954
6234
|
} else {
|
|
5955
|
-
return serializeLinkMark("about:blank", spanAttribute.openInNewWindow ?? false);
|
|
6235
|
+
return serializeLinkMark("about:blank", spanAttribute.openInNewTab ?? spanAttribute.openInNewWindow ?? false);
|
|
5956
6236
|
}
|
|
5957
6237
|
}
|
|
5958
6238
|
}
|
|
5959
|
-
function serializeLinkMark(href,
|
|
6239
|
+
function serializeLinkMark(href, openInNewTab) {
|
|
5960
6240
|
return {
|
|
5961
6241
|
type: "link",
|
|
5962
6242
|
attrs: {
|
|
5963
6243
|
href,
|
|
5964
|
-
target:
|
|
6244
|
+
target: openInNewTab ? "_blank" : "_self",
|
|
5965
6245
|
rel: "noopener noreferrer nofollow",
|
|
5966
6246
|
class: "tiptap-link"
|
|
5967
6247
|
}
|
|
@@ -7654,7 +7934,7 @@ var blocks = [
|
|
|
7654
7934
|
|
|
7655
7935
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
7656
7936
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
7657
|
-
import { z as
|
|
7937
|
+
import { z as z181 } from "zod";
|
|
7658
7938
|
function yDocToPage(yDoc, definitions) {
|
|
7659
7939
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
7660
7940
|
}
|
|
@@ -7697,7 +7977,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
7697
7977
|
return null;
|
|
7698
7978
|
return {
|
|
7699
7979
|
id,
|
|
7700
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
7980
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z181.string()) ?? "",
|
|
7701
7981
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
7702
7982
|
};
|
|
7703
7983
|
}
|
|
@@ -7732,7 +8012,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
7732
8012
|
});
|
|
7733
8013
|
}
|
|
7734
8014
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
7735
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8015
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z181.string());
|
|
7736
8016
|
if (!definitionId) {
|
|
7737
8017
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
7738
8018
|
return [];
|
|
@@ -7774,7 +8054,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
7774
8054
|
if (!id)
|
|
7775
8055
|
return null;
|
|
7776
8056
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7777
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8057
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z181.string().optional()));
|
|
7778
8058
|
return {
|
|
7779
8059
|
// TODO Artem: indent
|
|
7780
8060
|
id,
|
|
@@ -7874,6 +8154,9 @@ function parseRichText(spans) {
|
|
|
7874
8154
|
};
|
|
7875
8155
|
}
|
|
7876
8156
|
function parseRichTextSpan(span) {
|
|
8157
|
+
if (span.type === "hardBreak") {
|
|
8158
|
+
return { text: "\n", attributes: [] };
|
|
8159
|
+
}
|
|
7877
8160
|
if (span.type !== "text" || !span.text)
|
|
7878
8161
|
return null;
|
|
7879
8162
|
const marks = span.marks ?? [];
|
|
@@ -7898,21 +8181,23 @@ function parseRichTextAttribute(mark) {
|
|
|
7898
8181
|
return null;
|
|
7899
8182
|
}
|
|
7900
8183
|
function parseProsemirrorLink(mark) {
|
|
7901
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8184
|
+
const href = getProsemirrorAttribute(mark, "href", z181.string().optional());
|
|
7902
8185
|
if (!href)
|
|
7903
8186
|
return null;
|
|
7904
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
7905
|
-
const
|
|
8187
|
+
const target = getProsemirrorAttribute(mark, "target", z181.string().optional());
|
|
8188
|
+
const openInNewTab = target === "_blank";
|
|
7906
8189
|
if (href.startsWith("@")) {
|
|
7907
8190
|
return {
|
|
7908
8191
|
type: "Link",
|
|
7909
|
-
openInNewWindow,
|
|
8192
|
+
openInNewWindow: openInNewTab,
|
|
8193
|
+
openInNewTab,
|
|
7910
8194
|
documentationItemId: href.split(":")[1]
|
|
7911
8195
|
};
|
|
7912
8196
|
} else {
|
|
7913
8197
|
return {
|
|
7914
8198
|
type: "Link",
|
|
7915
|
-
openInNewWindow,
|
|
8199
|
+
openInNewWindow: openInNewTab,
|
|
8200
|
+
openInNewTab,
|
|
7916
8201
|
link: href
|
|
7917
8202
|
};
|
|
7918
8203
|
}
|
|
@@ -7922,7 +8207,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
7922
8207
|
if (!id)
|
|
7923
8208
|
return null;
|
|
7924
8209
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7925
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8210
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z181.boolean().optional()) !== false;
|
|
7926
8211
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
7927
8212
|
if (!tableChild) {
|
|
7928
8213
|
return emptyTable(id, variantId, 0);
|
|
@@ -7969,9 +8254,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
7969
8254
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
7970
8255
|
if (!id)
|
|
7971
8256
|
return null;
|
|
7972
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8257
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z181.string().optional());
|
|
7973
8258
|
let columnWidth;
|
|
7974
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8259
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z181.array(z181.number()).optional());
|
|
7975
8260
|
if (columnWidthArray) {
|
|
7976
8261
|
columnWidth = columnWidthArray[0];
|
|
7977
8262
|
}
|
|
@@ -8009,7 +8294,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8009
8294
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8010
8295
|
};
|
|
8011
8296
|
case "image":
|
|
8012
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8297
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
|
|
8013
8298
|
if (!items)
|
|
8014
8299
|
return null;
|
|
8015
8300
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8114,7 +8399,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8114
8399
|
};
|
|
8115
8400
|
}
|
|
8116
8401
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8117
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8402
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
|
|
8118
8403
|
if (!itemsString)
|
|
8119
8404
|
return null;
|
|
8120
8405
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8126,18 +8411,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8126
8411
|
}
|
|
8127
8412
|
function parseAppearance(prosemirrorNode) {
|
|
8128
8413
|
let appearance = {};
|
|
8129
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
8414
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z181.string().optional());
|
|
8130
8415
|
if (rawAppearanceString) {
|
|
8131
8416
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8132
8417
|
if (parsedAppearance.success) {
|
|
8133
8418
|
appearance = parsedAppearance.data;
|
|
8134
8419
|
}
|
|
8135
8420
|
}
|
|
8136
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
8421
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z181.number().optional());
|
|
8137
8422
|
if (columns) {
|
|
8138
8423
|
appearance.numberOfColumns = columns;
|
|
8139
8424
|
}
|
|
8140
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
8425
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z181.string().optional());
|
|
8141
8426
|
if (backgroundColor) {
|
|
8142
8427
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8143
8428
|
if (parsedColor.success) {
|
|
@@ -8228,13 +8513,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
8228
8513
|
}
|
|
8229
8514
|
}
|
|
8230
8515
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
8231
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
8516
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z181.string());
|
|
8232
8517
|
if (!id)
|
|
8233
8518
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
8234
8519
|
return id;
|
|
8235
8520
|
}
|
|
8236
8521
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
8237
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
8522
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z181.string()));
|
|
8238
8523
|
}
|
|
8239
8524
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8240
8525
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -8260,14 +8545,19 @@ export {
|
|
|
8260
8545
|
BlockDefinitionUtils,
|
|
8261
8546
|
BlockParsingUtils,
|
|
8262
8547
|
DTOBrand,
|
|
8548
|
+
DTOBrandCreateResponse,
|
|
8263
8549
|
DTOBrandGetResponse,
|
|
8264
8550
|
DTOBrandsListResponse,
|
|
8551
|
+
DTOCreateBrandInput,
|
|
8265
8552
|
DTOCreateDocumentationGroupInput,
|
|
8266
8553
|
DTOCreateDocumentationPageInputV2,
|
|
8267
8554
|
DTOCreateDocumentationTabInput,
|
|
8555
|
+
DTOCreateElementPropertyDefinitionInputV2,
|
|
8556
|
+
DTOCreateVersionInput,
|
|
8268
8557
|
DTODeleteDocumentationGroupInput,
|
|
8269
8558
|
DTODeleteDocumentationPageInputV2,
|
|
8270
8559
|
DTODeleteDocumentationTabGroupInput,
|
|
8560
|
+
DTODeleteElementPropertyDefinitionInputV2,
|
|
8271
8561
|
DTODesignSystem,
|
|
8272
8562
|
DTODesignSystemVersion,
|
|
8273
8563
|
DTODesignSystemVersionGetResponse,
|
|
@@ -8288,8 +8578,13 @@ export {
|
|
|
8288
8578
|
DTODocumentationGroupV2,
|
|
8289
8579
|
DTODocumentationHierarchyV2,
|
|
8290
8580
|
DTODocumentationItemConfigurationV1,
|
|
8581
|
+
DTODocumentationItemConfigurationV2,
|
|
8582
|
+
DTODocumentationItemHeaderV2,
|
|
8291
8583
|
DTODocumentationLinkPreviewRequest,
|
|
8292
8584
|
DTODocumentationLinkPreviewResponse,
|
|
8585
|
+
DTODocumentationPageAnchor,
|
|
8586
|
+
DTODocumentationPageContent,
|
|
8587
|
+
DTODocumentationPageContentGetResponse,
|
|
8293
8588
|
DTODocumentationPageCreateActionInputV2,
|
|
8294
8589
|
DTODocumentationPageCreateActionOutputV2,
|
|
8295
8590
|
DTODocumentationPageDeleteActionInputV2,
|
|
@@ -8326,21 +8621,36 @@ export {
|
|
|
8326
8621
|
DTOElementsGetOutput,
|
|
8327
8622
|
DTOElementsGetQuerySchema,
|
|
8328
8623
|
DTOElementsGetTypeFilter,
|
|
8624
|
+
DTOExporterProperty,
|
|
8625
|
+
DTOExporterPropertyListResponse,
|
|
8329
8626
|
DTOFigmaNode,
|
|
8330
8627
|
DTOFigmaNodeData,
|
|
8331
8628
|
DTOFigmaNodeRenderActionInput,
|
|
8332
8629
|
DTOFigmaNodeRenderActionOutput,
|
|
8333
8630
|
DTOFigmaNodeRenderInput,
|
|
8334
8631
|
DTOGetBlockDefinitionsOutput,
|
|
8632
|
+
DTOGetDocumentationPageAnchorsResponse,
|
|
8633
|
+
DTOIntegration,
|
|
8634
|
+
DTOIntegrationOAuthGetResponse,
|
|
8635
|
+
DTOIntegrationPostResponse,
|
|
8636
|
+
DTOIntegrationsGetListResponse,
|
|
8335
8637
|
DTOLiveblocksAuthRequest,
|
|
8336
8638
|
DTOMoveDocumentationGroupInput,
|
|
8337
8639
|
DTOMoveDocumentationPageInputV2,
|
|
8338
8640
|
DTONpmRegistryConfig,
|
|
8641
|
+
DTOPropertyDefinitionCreateActionInputV2,
|
|
8642
|
+
DTOPropertyDefinitionCreateActionOutputV2,
|
|
8643
|
+
DTOPropertyDefinitionDeleteActionInputV2,
|
|
8644
|
+
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
8645
|
+
DTOPropertyDefinitionUpdateActionInputV2,
|
|
8646
|
+
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
8339
8647
|
DTOUpdateDocumentationGroupInput,
|
|
8340
8648
|
DTOUpdateDocumentationPageInputV2,
|
|
8649
|
+
DTOUpdateElementPropertyDefinitionInputV2,
|
|
8341
8650
|
DTOUserWorkspaceMembership,
|
|
8342
8651
|
DTOUserWorkspaceMembershipsResponse,
|
|
8343
8652
|
DTOWorkspace,
|
|
8653
|
+
DTOWorkspaceIntegrationOauthInput,
|
|
8344
8654
|
DTOWorkspaceRole,
|
|
8345
8655
|
DocumentationHierarchySettings,
|
|
8346
8656
|
DocumentationPageEditorModel,
|
|
@@ -8358,6 +8668,7 @@ export {
|
|
|
8358
8668
|
documentationElementsToHierarchyDto,
|
|
8359
8669
|
documentationHierarchyToYjs,
|
|
8360
8670
|
documentationItemConfigurationToDTOV1,
|
|
8671
|
+
documentationItemConfigurationToDTOV2,
|
|
8361
8672
|
documentationPagesToDTOV1,
|
|
8362
8673
|
documentationPagesToDTOV2,
|
|
8363
8674
|
documentationPagesToStructureDTOV2,
|
|
@@ -8370,6 +8681,7 @@ export {
|
|
|
8370
8681
|
elementPropertyValueToDto,
|
|
8371
8682
|
elementViewToDto,
|
|
8372
8683
|
getMockPageBlockDefinitions,
|
|
8684
|
+
integrationToDto,
|
|
8373
8685
|
itemConfigurationToYjs,
|
|
8374
8686
|
pageToProsemirrorDoc,
|
|
8375
8687
|
pageToYXmlFragment,
|
|
@@ -8379,6 +8691,7 @@ export {
|
|
|
8379
8691
|
prosemirrorNodesToBlocks,
|
|
8380
8692
|
serializeAsCustomBlock,
|
|
8381
8693
|
shallowProsemirrorNodeToBlock,
|
|
8694
|
+
validateSemver,
|
|
8382
8695
|
validateSsoPayload,
|
|
8383
8696
|
yDocToPage,
|
|
8384
8697
|
yXmlFragmentToPage,
|