@supernova-studio/client 0.55.18 → 0.55.20
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 +472 -378
- package/dist/index.d.ts +472 -378
- package/dist/index.js +149 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +781 -686
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/client.ts +1 -1
- package/src/api/dto/design-systems/design-system.ts +1 -0
- package/src/api/endpoints/{design-system-members.ts → design-system/design-system-members.ts} +2 -2
- package/src/api/endpoints/design-system/design-system-versions.ts +20 -0
- package/src/api/endpoints/{design-systems.ts → design-system/design-systems.ts} +4 -3
- package/src/api/endpoints/design-system/index.ts +4 -0
- package/src/api/endpoints/design-system/versions/brands.ts +17 -0
- package/src/api/endpoints/design-system/versions/index.ts +4 -0
- package/src/api/endpoints/design-system/versions/overrides.ts +17 -0
- package/src/api/endpoints/design-system/versions/themes.ts +24 -0
- package/src/api/endpoints/design-system/versions/tokens.ts +13 -0
- package/src/api/endpoints/index.ts +2 -6
- package/src/api/endpoints/users.ts +0 -1
- package/src/api/endpoints/workspaces/index.ts +3 -0
- package/src/api/endpoints/{workspace-invites.ts → workspaces/workspace-invites.ts} +2 -2
- package/src/api/endpoints/{workspace-members.ts → workspaces/workspace-members.ts} +2 -2
- package/src/api/endpoints/{workspaces.ts → workspaces/workspaces.ts} +3 -3
- package/src/api/payloads/design-systems/brand.ts +6 -5
- package/src/api/payloads/design-systems/index.ts +1 -0
- package/src/api/payloads/design-systems/theme.ts +14 -0
- package/src/api/endpoints/design-system-versions.ts +0 -10
package/dist/index.mjs
CHANGED
|
@@ -615,18 +615,18 @@ var BlurValue = z26.object({
|
|
|
615
615
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
616
616
|
var BorderRadiusUnit = z27.enum(["Pixels", "Rem", "Percent"]);
|
|
617
617
|
var BorderRadiusValue = z27.object({
|
|
618
|
-
unit:
|
|
618
|
+
unit: BorderRadiusUnit,
|
|
619
619
|
measure: z27.number()
|
|
620
620
|
});
|
|
621
621
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
622
622
|
var BorderWidthUnit = z28.enum(["Pixels"]);
|
|
623
623
|
var BorderWidthValue = z28.object({
|
|
624
|
-
unit:
|
|
624
|
+
unit: BorderWidthUnit,
|
|
625
625
|
measure: z28.number()
|
|
626
626
|
});
|
|
627
627
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
628
628
|
var OpacityValue = z29.object({
|
|
629
|
-
unit:
|
|
629
|
+
unit: z29.enum(["Raw", "Pixels"]),
|
|
630
630
|
measure: z29.number()
|
|
631
631
|
});
|
|
632
632
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
@@ -2553,7 +2553,7 @@ var PageSectionEditorModelV2 = z54.object({
|
|
|
2553
2553
|
});
|
|
2554
2554
|
var DurationUnit = z55.enum(["Ms"]);
|
|
2555
2555
|
var DurationValue = z55.object({
|
|
2556
|
-
unit:
|
|
2556
|
+
unit: DurationUnit,
|
|
2557
2557
|
measure: z55.number()
|
|
2558
2558
|
});
|
|
2559
2559
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
@@ -2601,7 +2601,7 @@ var FontFamilyValue = z58.string();
|
|
|
2601
2601
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2602
2602
|
var FontSizeUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
2603
2603
|
var FontSizeValue = z59.object({
|
|
2604
|
-
unit:
|
|
2604
|
+
unit: FontSizeUnit,
|
|
2605
2605
|
measure: z59.number()
|
|
2606
2606
|
});
|
|
2607
2607
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
@@ -2636,25 +2636,25 @@ var ElementGroupDataV2 = z63.object({
|
|
|
2636
2636
|
});
|
|
2637
2637
|
var LetterSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
|
|
2638
2638
|
var LetterSpacingValue = z64.object({
|
|
2639
|
-
unit:
|
|
2639
|
+
unit: LetterSpacingUnit,
|
|
2640
2640
|
measure: z64.number()
|
|
2641
2641
|
});
|
|
2642
2642
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
2643
2643
|
var LineHeightUnit = z65.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
2644
2644
|
var LineHeightValue = z65.object({
|
|
2645
|
-
unit:
|
|
2645
|
+
unit: LineHeightUnit,
|
|
2646
2646
|
measure: z65.number()
|
|
2647
2647
|
});
|
|
2648
2648
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
2649
2649
|
var ParagraphIndentUnit = z66.enum(["Pixels", "Rem", "Percent"]);
|
|
2650
2650
|
var ParagraphIndentValue = z66.object({
|
|
2651
|
-
unit:
|
|
2651
|
+
unit: ParagraphIndentUnit,
|
|
2652
2652
|
measure: z66.number()
|
|
2653
2653
|
});
|
|
2654
2654
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
2655
2655
|
var ParagraphSpacingUnit = z67.enum(["Pixels", "Rem", "Percent"]);
|
|
2656
2656
|
var ParagraphSpacingValue = z67.object({
|
|
2657
|
-
unit:
|
|
2657
|
+
unit: ParagraphSpacingUnit,
|
|
2658
2658
|
measure: z67.number()
|
|
2659
2659
|
});
|
|
2660
2660
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
@@ -2683,13 +2683,13 @@ var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
|
2683
2683
|
var ShadowTokenData = tokenAliasOrValue(z70.array(ShadowTokenDataBase));
|
|
2684
2684
|
var SizeUnit = z71.enum(["Pixels", "Rem", "Percent"]);
|
|
2685
2685
|
var SizeValue = z71.object({
|
|
2686
|
-
unit:
|
|
2686
|
+
unit: SizeUnit,
|
|
2687
2687
|
measure: z71.number()
|
|
2688
2688
|
});
|
|
2689
2689
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
2690
2690
|
var SpaceUnit = z72.enum(["Pixels", "Rem", "Percent"]);
|
|
2691
2691
|
var SpaceValue = z72.object({
|
|
2692
|
-
unit:
|
|
2692
|
+
unit: SpaceUnit,
|
|
2693
2693
|
measure: z72.number()
|
|
2694
2694
|
});
|
|
2695
2695
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
@@ -2718,7 +2718,7 @@ var VisibilityValue = Visibility;
|
|
|
2718
2718
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
2719
2719
|
var ZIndexUnit = z78.enum(["Raw"]);
|
|
2720
2720
|
var ZIndexValue = z78.object({
|
|
2721
|
-
unit:
|
|
2721
|
+
unit: ZIndexUnit,
|
|
2722
2722
|
measure: z78.number()
|
|
2723
2723
|
});
|
|
2724
2724
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
@@ -5031,7 +5031,7 @@ var DTOPagination = z174.object({
|
|
|
5031
5031
|
});
|
|
5032
5032
|
|
|
5033
5033
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5034
|
-
import { z as
|
|
5034
|
+
import { z as z201 } from "zod";
|
|
5035
5035
|
|
|
5036
5036
|
// src/api/dto/design-systems/brand.ts
|
|
5037
5037
|
import { z as z175 } from "zod";
|
|
@@ -5196,6 +5196,7 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5196
5196
|
meta: ObjectMeta,
|
|
5197
5197
|
docExporterId: z179.string(),
|
|
5198
5198
|
sources: z179.array(z179.any()),
|
|
5199
|
+
isPublic: z179.literal(true),
|
|
5199
5200
|
/**
|
|
5200
5201
|
* Whether or not user who is requesting the design system
|
|
5201
5202
|
* has access to the design system's contents.
|
|
@@ -5248,7 +5249,7 @@ var DTOExporterProperty = z181.any({});
|
|
|
5248
5249
|
var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
|
|
5249
5250
|
|
|
5250
5251
|
// src/api/dto/design-systems/version.ts
|
|
5251
|
-
import { z as
|
|
5252
|
+
import { z as z193 } from "zod";
|
|
5252
5253
|
|
|
5253
5254
|
// src/api/payloads/design-systems/brand.ts
|
|
5254
5255
|
import { z as z182 } from "zod";
|
|
@@ -5260,8 +5261,21 @@ var DTOCreateBrandInput = z182.object({
|
|
|
5260
5261
|
})
|
|
5261
5262
|
});
|
|
5262
5263
|
|
|
5263
|
-
// src/api/payloads/design-systems/
|
|
5264
|
+
// src/api/payloads/design-systems/theme.ts
|
|
5264
5265
|
import { z as z183 } from "zod";
|
|
5266
|
+
var DTOCreateThemeInput = z183.object({
|
|
5267
|
+
meta: ObjectMeta,
|
|
5268
|
+
persistentId: z183.string(),
|
|
5269
|
+
designSystemVersionId: z183.string(),
|
|
5270
|
+
brandId: z183.string(),
|
|
5271
|
+
codeName: z183.string(),
|
|
5272
|
+
version: z183.string().optional(),
|
|
5273
|
+
overrides: z183.array(z183.any())
|
|
5274
|
+
// TODO Add actual overrides.
|
|
5275
|
+
});
|
|
5276
|
+
|
|
5277
|
+
// src/api/payloads/design-systems/update-design-system.ts
|
|
5278
|
+
import { z as z184 } from "zod";
|
|
5265
5279
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5266
5280
|
id: true,
|
|
5267
5281
|
workspaceId: true,
|
|
@@ -5273,40 +5287,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5273
5287
|
}).extend({
|
|
5274
5288
|
meta: ObjectMeta.partial().optional()
|
|
5275
5289
|
});
|
|
5276
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5290
|
+
var DTODesignSystemUpdateAccessModeInput = z184.object({
|
|
5277
5291
|
accessMode: DesignSystemAccessMode,
|
|
5278
|
-
retain:
|
|
5279
|
-
userIds:
|
|
5280
|
-
inviteIds:
|
|
5292
|
+
retain: z184.object({
|
|
5293
|
+
userIds: z184.string().array(),
|
|
5294
|
+
inviteIds: z184.string().array()
|
|
5281
5295
|
}).optional()
|
|
5282
5296
|
});
|
|
5283
5297
|
|
|
5284
5298
|
// src/api/payloads/design-systems/version.ts
|
|
5285
|
-
import { z as
|
|
5286
|
-
var ObjectMeta2 =
|
|
5287
|
-
name:
|
|
5288
|
-
description:
|
|
5299
|
+
import { z as z185 } from "zod";
|
|
5300
|
+
var ObjectMeta2 = z185.object({
|
|
5301
|
+
name: z185.string().max(150).optional(),
|
|
5302
|
+
description: z185.string().max(2e3).optional()
|
|
5289
5303
|
});
|
|
5290
5304
|
function validateDesignSystemVersion(version) {
|
|
5291
5305
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5292
5306
|
return urlCompliantRegex.test(version);
|
|
5293
5307
|
}
|
|
5294
|
-
var DTOCreateVersionInput =
|
|
5308
|
+
var DTOCreateVersionInput = z185.object({
|
|
5295
5309
|
meta: ObjectMeta2,
|
|
5296
|
-
version:
|
|
5310
|
+
version: z185.string().refine(validateDesignSystemVersion, {
|
|
5297
5311
|
message: "Invalid semantic versioning format"
|
|
5298
5312
|
}),
|
|
5299
|
-
changeLog:
|
|
5313
|
+
changeLog: z185.string().optional()
|
|
5300
5314
|
});
|
|
5301
|
-
var DTOUpdateVersionInput =
|
|
5315
|
+
var DTOUpdateVersionInput = z185.object({
|
|
5302
5316
|
meta: ObjectMeta2,
|
|
5303
|
-
version:
|
|
5317
|
+
version: z185.string(),
|
|
5304
5318
|
// required for PUT, but not editable
|
|
5305
|
-
changeLog:
|
|
5319
|
+
changeLog: z185.string()
|
|
5306
5320
|
});
|
|
5307
5321
|
|
|
5308
5322
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5309
|
-
import { z as
|
|
5323
|
+
import { z as z186 } from "zod";
|
|
5310
5324
|
|
|
5311
5325
|
// src/api/dto/documentation/block-definition.ts
|
|
5312
5326
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5318,60 +5332,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5318
5332
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5319
5333
|
|
|
5320
5334
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5321
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5322
|
-
definitions:
|
|
5335
|
+
var DTOGetBlockDefinitionsOutput = z186.object({
|
|
5336
|
+
definitions: z186.array(DTOPageBlockDefinition)
|
|
5323
5337
|
});
|
|
5324
5338
|
|
|
5325
5339
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5326
|
-
import { z as
|
|
5327
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5328
|
-
environment:
|
|
5340
|
+
import { z as z187 } from "zod";
|
|
5341
|
+
var DTODocumentationPublishTypeQueryParams = z187.object({
|
|
5342
|
+
environment: z187.enum(["Live", "Preview"])
|
|
5329
5343
|
});
|
|
5330
5344
|
|
|
5331
5345
|
// src/api/payloads/export/pipeline.ts
|
|
5332
|
-
import { z as
|
|
5333
|
-
var DTOPipelineCreateBody =
|
|
5334
|
-
name:
|
|
5335
|
-
exporterId:
|
|
5336
|
-
designSystemId:
|
|
5337
|
-
isEnabled:
|
|
5346
|
+
import { z as z188 } from "zod";
|
|
5347
|
+
var DTOPipelineCreateBody = z188.object({
|
|
5348
|
+
name: z188.string(),
|
|
5349
|
+
exporterId: z188.string(),
|
|
5350
|
+
designSystemId: z188.string(),
|
|
5351
|
+
isEnabled: z188.boolean(),
|
|
5338
5352
|
eventType: PipelineEventType,
|
|
5339
|
-
brandPersistentId:
|
|
5340
|
-
themePersistentId:
|
|
5341
|
-
themePersistentIds:
|
|
5353
|
+
brandPersistentId: z188.string().optional(),
|
|
5354
|
+
themePersistentId: z188.string().optional(),
|
|
5355
|
+
themePersistentIds: z188.string().array().optional(),
|
|
5342
5356
|
destination: PipelineDestinationType.optional(),
|
|
5343
5357
|
gitQuery: GitObjectsQuery,
|
|
5344
|
-
destinations:
|
|
5358
|
+
destinations: z188.object({
|
|
5345
5359
|
s3: ExporterDestinationS3.nullish(),
|
|
5346
5360
|
azure: ExporterDestinationAzure.nullish(),
|
|
5347
5361
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5348
5362
|
github: ExporterDestinationGithub.nullish(),
|
|
5349
5363
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5350
5364
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5351
|
-
webhookUrl:
|
|
5365
|
+
webhookUrl: z188.string().nullish()
|
|
5352
5366
|
})
|
|
5353
5367
|
});
|
|
5354
5368
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5355
|
-
id:
|
|
5369
|
+
id: z188.string()
|
|
5356
5370
|
});
|
|
5357
|
-
var DTOPipelineTriggerBody =
|
|
5358
|
-
designSystemVersionId:
|
|
5371
|
+
var DTOPipelineTriggerBody = z188.object({
|
|
5372
|
+
designSystemVersionId: z188.string()
|
|
5359
5373
|
});
|
|
5360
5374
|
|
|
5361
5375
|
// src/api/payloads/liveblocks/auth.ts
|
|
5362
|
-
import { z as
|
|
5363
|
-
var DTOLiveblocksAuthRequest =
|
|
5364
|
-
room:
|
|
5376
|
+
import { z as z189 } from "zod";
|
|
5377
|
+
var DTOLiveblocksAuthRequest = z189.object({
|
|
5378
|
+
room: z189.string().optional()
|
|
5365
5379
|
});
|
|
5366
5380
|
|
|
5367
5381
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5368
|
-
import { z as
|
|
5369
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5382
|
+
import { z as z190 } from "zod";
|
|
5383
|
+
var DTOUpdateUserNotificationSettingsPayload = z190.object({
|
|
5370
5384
|
notificationSettings: UserNotificationSettings
|
|
5371
5385
|
});
|
|
5372
|
-
var DTOUserNotificationSettingsResponse =
|
|
5373
|
-
userId:
|
|
5374
|
-
workspaceId:
|
|
5386
|
+
var DTOUserNotificationSettingsResponse = z190.object({
|
|
5387
|
+
userId: z190.string(),
|
|
5388
|
+
workspaceId: z190.string(),
|
|
5375
5389
|
notificationSettings: UserNotificationSettings
|
|
5376
5390
|
});
|
|
5377
5391
|
|
|
@@ -5379,7 +5393,7 @@ var DTOUserNotificationSettingsResponse = z189.object({
|
|
|
5379
5393
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5380
5394
|
|
|
5381
5395
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5382
|
-
import { z as
|
|
5396
|
+
import { z as z191 } from "zod";
|
|
5383
5397
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5384
5398
|
function validateSsoPayload(ssoPayload) {
|
|
5385
5399
|
const keys = [];
|
|
@@ -5402,21 +5416,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5402
5416
|
keys
|
|
5403
5417
|
};
|
|
5404
5418
|
}
|
|
5405
|
-
var NpmRegistryInput =
|
|
5406
|
-
enabledScopes:
|
|
5407
|
-
customRegistryUrl:
|
|
5408
|
-
bypassProxy:
|
|
5409
|
-
npmProxyRegistryConfigId:
|
|
5410
|
-
npmProxyVersion:
|
|
5411
|
-
registryType:
|
|
5412
|
-
authType:
|
|
5413
|
-
authHeaderName:
|
|
5414
|
-
authHeaderValue:
|
|
5415
|
-
accessToken:
|
|
5416
|
-
username:
|
|
5417
|
-
password:
|
|
5418
|
-
});
|
|
5419
|
-
var WorkspaceConfigurationPayload =
|
|
5419
|
+
var NpmRegistryInput = z191.object({
|
|
5420
|
+
enabledScopes: z191.array(z191.string()),
|
|
5421
|
+
customRegistryUrl: z191.string().optional(),
|
|
5422
|
+
bypassProxy: z191.boolean().optional(),
|
|
5423
|
+
npmProxyRegistryConfigId: z191.string().optional(),
|
|
5424
|
+
npmProxyVersion: z191.number().optional(),
|
|
5425
|
+
registryType: z191.string(),
|
|
5426
|
+
authType: z191.string(),
|
|
5427
|
+
authHeaderName: z191.string(),
|
|
5428
|
+
authHeaderValue: z191.string(),
|
|
5429
|
+
accessToken: z191.string(),
|
|
5430
|
+
username: z191.string(),
|
|
5431
|
+
password: z191.string()
|
|
5432
|
+
});
|
|
5433
|
+
var WorkspaceConfigurationPayload = z191.object({
|
|
5420
5434
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5421
5435
|
sso: SsoProvider.partial().optional(),
|
|
5422
5436
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5424,211 +5438,211 @@ var WorkspaceConfigurationPayload = z190.object({
|
|
|
5424
5438
|
});
|
|
5425
5439
|
|
|
5426
5440
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5427
|
-
import { z as
|
|
5428
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5441
|
+
import { z as z192 } from "zod";
|
|
5442
|
+
var DTOWorkspaceIntegrationOauthInput = z192.object({
|
|
5429
5443
|
type: IntegrationType
|
|
5430
5444
|
});
|
|
5431
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5432
|
-
userId:
|
|
5445
|
+
var DTOWorkspaceIntegrationPATInput = z192.object({
|
|
5446
|
+
userId: z192.string(),
|
|
5433
5447
|
type: IntegrationType,
|
|
5434
5448
|
token: IntegrationToken
|
|
5435
5449
|
});
|
|
5436
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5437
|
-
organization:
|
|
5450
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z192.object({
|
|
5451
|
+
organization: z192.string().optional(),
|
|
5438
5452
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5439
|
-
project:
|
|
5453
|
+
project: z192.string().optional(),
|
|
5440
5454
|
// Only for Bitbucket and Azure
|
|
5441
|
-
repository:
|
|
5455
|
+
repository: z192.string().optional(),
|
|
5442
5456
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5443
|
-
branch:
|
|
5457
|
+
branch: z192.string().optional(),
|
|
5444
5458
|
// For all providers, useful for PR creations.
|
|
5445
|
-
user:
|
|
5459
|
+
user: z192.string().optional()
|
|
5446
5460
|
// Only for Gitlab User Repositories
|
|
5447
5461
|
});
|
|
5448
5462
|
|
|
5449
5463
|
// src/api/dto/design-systems/version.ts
|
|
5450
|
-
var DTODesignSystemVersion =
|
|
5451
|
-
id:
|
|
5452
|
-
createdAt:
|
|
5464
|
+
var DTODesignSystemVersion = z193.object({
|
|
5465
|
+
id: z193.string(),
|
|
5466
|
+
createdAt: z193.coerce.date(),
|
|
5453
5467
|
meta: ObjectMeta,
|
|
5454
|
-
version:
|
|
5455
|
-
isReadonly:
|
|
5456
|
-
changeLog:
|
|
5457
|
-
designSystemId:
|
|
5468
|
+
version: z193.string(),
|
|
5469
|
+
isReadonly: z193.boolean(),
|
|
5470
|
+
changeLog: z193.string(),
|
|
5471
|
+
designSystemId: z193.string()
|
|
5458
5472
|
});
|
|
5459
|
-
var DTODesignSystemVersionsListResponse =
|
|
5460
|
-
designSystemVersions:
|
|
5473
|
+
var DTODesignSystemVersionsListResponse = z193.object({
|
|
5474
|
+
designSystemVersions: z193.array(DTODesignSystemVersion)
|
|
5461
5475
|
});
|
|
5462
|
-
var DTODesignSystemVersionGetResponse =
|
|
5476
|
+
var DTODesignSystemVersionGetResponse = z193.object({
|
|
5463
5477
|
designSystemVersion: DTODesignSystemVersion
|
|
5464
5478
|
});
|
|
5465
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5479
|
+
var DTODesignSystemVersionCreationResponse = z193.object({
|
|
5466
5480
|
meta: ObjectMeta,
|
|
5467
|
-
version:
|
|
5468
|
-
changeLog:
|
|
5469
|
-
isReadOnly:
|
|
5470
|
-
designSystemId:
|
|
5471
|
-
jobId:
|
|
5472
|
-
});
|
|
5473
|
-
var VersionSQSPayload =
|
|
5474
|
-
jobId:
|
|
5475
|
-
designSystemId:
|
|
5481
|
+
version: z193.string(),
|
|
5482
|
+
changeLog: z193.string(),
|
|
5483
|
+
isReadOnly: z193.boolean(),
|
|
5484
|
+
designSystemId: z193.string(),
|
|
5485
|
+
jobId: z193.string()
|
|
5486
|
+
});
|
|
5487
|
+
var VersionSQSPayload = z193.object({
|
|
5488
|
+
jobId: z193.string(),
|
|
5489
|
+
designSystemId: z193.string(),
|
|
5476
5490
|
input: DTOCreateVersionInput
|
|
5477
5491
|
});
|
|
5478
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5479
|
-
jobs:
|
|
5492
|
+
var DTODesignSystemVersionJobsResponse = z193.object({
|
|
5493
|
+
jobs: z193.array(VersionCreationJob)
|
|
5480
5494
|
});
|
|
5481
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5495
|
+
var DTODesignSystemVersionJobStatusResponse = z193.object({
|
|
5482
5496
|
job: VersionCreationJob
|
|
5483
5497
|
});
|
|
5484
5498
|
|
|
5485
5499
|
// src/api/dto/design-systems/view.ts
|
|
5486
|
-
import { z as
|
|
5487
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5488
|
-
id:
|
|
5489
|
-
persistentId:
|
|
5490
|
-
width:
|
|
5500
|
+
import { z as z194 } from "zod";
|
|
5501
|
+
var DTOElementViewColumnSharedAttributes = z194.object({
|
|
5502
|
+
id: z194.string(),
|
|
5503
|
+
persistentId: z194.string(),
|
|
5504
|
+
width: z194.number()
|
|
5491
5505
|
});
|
|
5492
5506
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5493
|
-
type:
|
|
5507
|
+
type: z194.literal("BaseProperty"),
|
|
5494
5508
|
basePropertyType: ElementViewBaseColumnType
|
|
5495
5509
|
});
|
|
5496
5510
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5497
|
-
type:
|
|
5498
|
-
propertyDefinitionId:
|
|
5511
|
+
type: z194.literal("PropertyDefinition"),
|
|
5512
|
+
propertyDefinitionId: z194.string()
|
|
5499
5513
|
});
|
|
5500
5514
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5501
|
-
type:
|
|
5502
|
-
themeId:
|
|
5515
|
+
type: z194.literal("Theme"),
|
|
5516
|
+
themeId: z194.string()
|
|
5503
5517
|
});
|
|
5504
|
-
var DTOElementViewColumn =
|
|
5518
|
+
var DTOElementViewColumn = z194.discriminatedUnion("type", [
|
|
5505
5519
|
DTOElementViewBasePropertyColumn,
|
|
5506
5520
|
DTOElementViewPropertyDefinitionColumn,
|
|
5507
5521
|
DTOElementViewThemeColumn
|
|
5508
5522
|
]);
|
|
5509
|
-
var DTOElementView =
|
|
5523
|
+
var DTOElementView = z194.object({
|
|
5510
5524
|
meta: ObjectMeta,
|
|
5511
|
-
persistentId:
|
|
5525
|
+
persistentId: z194.string(),
|
|
5512
5526
|
targetElementType: ElementPropertyTargetType,
|
|
5513
|
-
id:
|
|
5514
|
-
isDefault:
|
|
5515
|
-
columns:
|
|
5527
|
+
id: z194.string(),
|
|
5528
|
+
isDefault: z194.boolean(),
|
|
5529
|
+
columns: z194.array(DTOElementViewColumn)
|
|
5516
5530
|
});
|
|
5517
|
-
var DTOElementViewsListResponse =
|
|
5518
|
-
elementDataViews:
|
|
5531
|
+
var DTOElementViewsListResponse = z194.object({
|
|
5532
|
+
elementDataViews: z194.array(DTOElementView)
|
|
5519
5533
|
});
|
|
5520
5534
|
|
|
5521
5535
|
// src/api/dto/workspaces/git.ts
|
|
5522
|
-
import { z as
|
|
5523
|
-
var DTOGitOrganization =
|
|
5524
|
-
id:
|
|
5525
|
-
name:
|
|
5526
|
-
url:
|
|
5527
|
-
slug:
|
|
5536
|
+
import { z as z195 } from "zod";
|
|
5537
|
+
var DTOGitOrganization = z195.object({
|
|
5538
|
+
id: z195.string(),
|
|
5539
|
+
name: z195.string(),
|
|
5540
|
+
url: z195.string(),
|
|
5541
|
+
slug: z195.string()
|
|
5528
5542
|
});
|
|
5529
|
-
var DTOGitProject =
|
|
5530
|
-
id:
|
|
5531
|
-
name:
|
|
5532
|
-
url:
|
|
5533
|
-
slug:
|
|
5543
|
+
var DTOGitProject = z195.object({
|
|
5544
|
+
id: z195.string(),
|
|
5545
|
+
name: z195.string(),
|
|
5546
|
+
url: z195.string(),
|
|
5547
|
+
slug: z195.string()
|
|
5534
5548
|
});
|
|
5535
|
-
var DTOGitRepository =
|
|
5536
|
-
id:
|
|
5537
|
-
name:
|
|
5538
|
-
url:
|
|
5539
|
-
slug:
|
|
5540
|
-
defaultBranch:
|
|
5549
|
+
var DTOGitRepository = z195.object({
|
|
5550
|
+
id: z195.string(),
|
|
5551
|
+
name: z195.string(),
|
|
5552
|
+
url: z195.string(),
|
|
5553
|
+
slug: z195.string(),
|
|
5554
|
+
defaultBranch: z195.string().optional()
|
|
5541
5555
|
});
|
|
5542
|
-
var DTOGitBranch =
|
|
5543
|
-
name:
|
|
5544
|
-
lastCommitId:
|
|
5556
|
+
var DTOGitBranch = z195.object({
|
|
5557
|
+
name: z195.string(),
|
|
5558
|
+
lastCommitId: z195.string()
|
|
5545
5559
|
});
|
|
5546
5560
|
|
|
5547
5561
|
// src/api/dto/workspaces/integrations.ts
|
|
5548
|
-
import { z as
|
|
5562
|
+
import { z as z196 } from "zod";
|
|
5549
5563
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5550
5564
|
accessToken: true,
|
|
5551
5565
|
refreshToken: true
|
|
5552
5566
|
});
|
|
5553
|
-
var DTOIntegration =
|
|
5554
|
-
id:
|
|
5555
|
-
workspaceId:
|
|
5567
|
+
var DTOIntegration = z196.object({
|
|
5568
|
+
id: z196.string(),
|
|
5569
|
+
workspaceId: z196.string(),
|
|
5556
5570
|
type: ExtendedIntegrationType,
|
|
5557
|
-
createdAt:
|
|
5558
|
-
integrationCredentials:
|
|
5559
|
-
integrationDesignSystems:
|
|
5571
|
+
createdAt: z196.coerce.date(),
|
|
5572
|
+
integrationCredentials: z196.array(DTOIntegrationCredentials).optional(),
|
|
5573
|
+
integrationDesignSystems: z196.array(IntegrationDesignSystem).optional()
|
|
5560
5574
|
});
|
|
5561
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5562
|
-
url:
|
|
5575
|
+
var DTOIntegrationOAuthGetResponse = z196.object({
|
|
5576
|
+
url: z196.string()
|
|
5563
5577
|
});
|
|
5564
|
-
var DTOIntegrationPostResponse =
|
|
5578
|
+
var DTOIntegrationPostResponse = z196.object({
|
|
5565
5579
|
integration: DTOIntegration
|
|
5566
5580
|
});
|
|
5567
|
-
var DTOIntegrationsGetListResponse =
|
|
5581
|
+
var DTOIntegrationsGetListResponse = z196.object({
|
|
5568
5582
|
integrations: DTOIntegration.array()
|
|
5569
5583
|
});
|
|
5570
5584
|
|
|
5571
5585
|
// src/api/dto/workspaces/invitations.ts
|
|
5572
|
-
import { z as
|
|
5573
|
-
var DTOWorkspaceInvitationInput =
|
|
5574
|
-
email:
|
|
5586
|
+
import { z as z197 } from "zod";
|
|
5587
|
+
var DTOWorkspaceInvitationInput = z197.object({
|
|
5588
|
+
email: z197.string().email(),
|
|
5575
5589
|
role: WorkspaceRoleSchema
|
|
5576
5590
|
});
|
|
5577
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5591
|
+
var DTOWorkspaceInvitationsListInput = z197.object({
|
|
5578
5592
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5579
|
-
designSystemId:
|
|
5593
|
+
designSystemId: z197.string().optional()
|
|
5580
5594
|
});
|
|
5581
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5595
|
+
var DTOWorkspaceInvitationsResponse = z197.object({
|
|
5582
5596
|
invitations: WorkspaceInvitation.array()
|
|
5583
5597
|
});
|
|
5584
5598
|
|
|
5585
5599
|
// src/api/dto/workspaces/membership.ts
|
|
5586
|
-
import { z as
|
|
5600
|
+
import { z as z200 } from "zod";
|
|
5587
5601
|
|
|
5588
5602
|
// src/api/dto/workspaces/workspace.ts
|
|
5589
|
-
import { z as
|
|
5603
|
+
import { z as z199 } from "zod";
|
|
5590
5604
|
|
|
5591
5605
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5592
|
-
import { z as
|
|
5606
|
+
import { z as z198 } from "zod";
|
|
5593
5607
|
var DTONpmRegistryConfigConstants = {
|
|
5594
5608
|
passwordPlaceholder: "redacted"
|
|
5595
5609
|
};
|
|
5596
|
-
var DTONpmRegistryConfig =
|
|
5610
|
+
var DTONpmRegistryConfig = z198.object({
|
|
5597
5611
|
// Registry basic configuration
|
|
5598
5612
|
registryType: NpmRegistryType,
|
|
5599
|
-
registryUrl:
|
|
5600
|
-
customRegistryUrl:
|
|
5613
|
+
registryUrl: z198.string(),
|
|
5614
|
+
customRegistryUrl: z198.string().optional(),
|
|
5601
5615
|
// URL of Supernova NPM packages proxy
|
|
5602
|
-
proxyUrl:
|
|
5616
|
+
proxyUrl: z198.string(),
|
|
5603
5617
|
// Auth configuration
|
|
5604
5618
|
authType: NpmRegistryAuthType,
|
|
5605
|
-
accessToken:
|
|
5606
|
-
username:
|
|
5607
|
-
password:
|
|
5619
|
+
accessToken: z198.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5620
|
+
username: z198.string().optional(),
|
|
5621
|
+
password: z198.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5608
5622
|
// NPM package scopes for whih the proxy should be enabled
|
|
5609
|
-
enabledScopes:
|
|
5623
|
+
enabledScopes: z198.array(z198.string()),
|
|
5610
5624
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5611
5625
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5612
|
-
bypassProxy:
|
|
5626
|
+
bypassProxy: z198.boolean()
|
|
5613
5627
|
});
|
|
5614
5628
|
|
|
5615
5629
|
// src/api/dto/workspaces/workspace.ts
|
|
5616
|
-
var DTOWorkspace =
|
|
5617
|
-
id:
|
|
5630
|
+
var DTOWorkspace = z199.object({
|
|
5631
|
+
id: z199.string(),
|
|
5618
5632
|
profile: WorkspaceProfile,
|
|
5619
5633
|
subscription: Subscription,
|
|
5620
5634
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5621
5635
|
});
|
|
5622
|
-
var DTOWorkspaceCreateInput =
|
|
5623
|
-
name:
|
|
5636
|
+
var DTOWorkspaceCreateInput = z199.object({
|
|
5637
|
+
name: z199.string()
|
|
5624
5638
|
});
|
|
5625
|
-
var DTOWorkspaceResponse =
|
|
5639
|
+
var DTOWorkspaceResponse = z199.object({
|
|
5626
5640
|
workspace: DTOWorkspace
|
|
5627
5641
|
});
|
|
5628
5642
|
|
|
5629
5643
|
// src/api/dto/workspaces/membership.ts
|
|
5630
|
-
var DTOWorkspaceRole =
|
|
5631
|
-
var DTOUserWorkspaceMembership =
|
|
5644
|
+
var DTOWorkspaceRole = z200.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5645
|
+
var DTOUserWorkspaceMembership = z200.object({
|
|
5632
5646
|
// Workspace the user is a member of
|
|
5633
5647
|
workspace: DTOWorkspace,
|
|
5634
5648
|
// Assigned role the user has in the workspace
|
|
@@ -5638,18 +5652,18 @@ var DTOUserWorkspaceMembership = z199.object({
|
|
|
5638
5652
|
// when a workspace's subscription is downgraded to free tier
|
|
5639
5653
|
effectiveRole: DTOWorkspaceRole
|
|
5640
5654
|
});
|
|
5641
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5642
|
-
membership:
|
|
5655
|
+
var DTOUserWorkspaceMembershipsResponse = z200.object({
|
|
5656
|
+
membership: z200.array(DTOUserWorkspaceMembership)
|
|
5643
5657
|
});
|
|
5644
5658
|
|
|
5645
5659
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5646
|
-
var DTOAppBootstrapDataQuery =
|
|
5647
|
-
preferredWorkspaceId:
|
|
5648
|
-
preferredDesignSystemId:
|
|
5649
|
-
preferredVersionId:
|
|
5650
|
-
preferredBrandId:
|
|
5660
|
+
var DTOAppBootstrapDataQuery = z201.object({
|
|
5661
|
+
preferredWorkspaceId: z201.string().optional(),
|
|
5662
|
+
preferredDesignSystemId: z201.string().optional(),
|
|
5663
|
+
preferredVersionId: z201.string().optional(),
|
|
5664
|
+
preferredBrandId: z201.string().optional()
|
|
5651
5665
|
});
|
|
5652
|
-
var DTOAppBootstrapDataResponse =
|
|
5666
|
+
var DTOAppBootstrapDataResponse = z201.object({
|
|
5653
5667
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5654
5668
|
designSystem: DTODesignSystem.optional(),
|
|
5655
5669
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5657,37 +5671,37 @@ var DTOAppBootstrapDataResponse = z200.object({
|
|
|
5657
5671
|
});
|
|
5658
5672
|
|
|
5659
5673
|
// src/api/dto/collections/collection.ts
|
|
5660
|
-
import { z as
|
|
5661
|
-
var DTOTokenCollection =
|
|
5662
|
-
id:
|
|
5663
|
-
persistentId:
|
|
5664
|
-
designSystemVersionId:
|
|
5674
|
+
import { z as z202 } from "zod";
|
|
5675
|
+
var DTOTokenCollection = z202.object({
|
|
5676
|
+
id: z202.string(),
|
|
5677
|
+
persistentId: z202.string(),
|
|
5678
|
+
designSystemVersionId: z202.string(),
|
|
5665
5679
|
meta: ObjectMeta,
|
|
5666
|
-
createdAt:
|
|
5667
|
-
updatedAt:
|
|
5668
|
-
origin:
|
|
5669
|
-
id:
|
|
5670
|
-
sourceId:
|
|
5680
|
+
createdAt: z202.coerce.date(),
|
|
5681
|
+
updatedAt: z202.coerce.date(),
|
|
5682
|
+
origin: z202.object({
|
|
5683
|
+
id: z202.string(),
|
|
5684
|
+
sourceId: z202.string()
|
|
5671
5685
|
})
|
|
5672
5686
|
});
|
|
5673
|
-
var DTOTokenCollectionsListReponse =
|
|
5687
|
+
var DTOTokenCollectionsListReponse = z202.object({
|
|
5674
5688
|
collections: DTOTokenCollection.array()
|
|
5675
5689
|
});
|
|
5676
5690
|
|
|
5677
5691
|
// src/api/dto/documentation/anchor.ts
|
|
5678
|
-
import { z as
|
|
5692
|
+
import { z as z203 } from "zod";
|
|
5679
5693
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5680
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5681
|
-
anchors:
|
|
5694
|
+
var DTOGetDocumentationPageAnchorsResponse = z203.object({
|
|
5695
|
+
anchors: z203.array(DTODocumentationPageAnchor)
|
|
5682
5696
|
});
|
|
5683
5697
|
|
|
5684
5698
|
// src/api/dto/documentation/approvals.ts
|
|
5685
|
-
import { z as
|
|
5699
|
+
import { z as z204 } from "zod";
|
|
5686
5700
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5687
|
-
var DTODocumentationGroupApprovalState =
|
|
5688
|
-
persistentId:
|
|
5689
|
-
groupId:
|
|
5690
|
-
designSystemVersionId:
|
|
5701
|
+
var DTODocumentationGroupApprovalState = z204.object({
|
|
5702
|
+
persistentId: z204.string(),
|
|
5703
|
+
groupId: z204.string(),
|
|
5704
|
+
designSystemVersionId: z204.string(),
|
|
5691
5705
|
approvalState: DocumentationPageApprovalState
|
|
5692
5706
|
});
|
|
5693
5707
|
|
|
@@ -5695,68 +5709,68 @@ var DTODocumentationGroupApprovalState = z203.object({
|
|
|
5695
5709
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5696
5710
|
|
|
5697
5711
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5698
|
-
import { z as
|
|
5712
|
+
import { z as z209 } from "zod";
|
|
5699
5713
|
|
|
5700
5714
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5701
|
-
import { z as
|
|
5715
|
+
import { z as z208 } from "zod";
|
|
5702
5716
|
|
|
5703
5717
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5704
|
-
import { z as
|
|
5718
|
+
import { z as z206 } from "zod";
|
|
5705
5719
|
|
|
5706
5720
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5707
|
-
import { z as
|
|
5721
|
+
import { z as z205 } from "zod";
|
|
5708
5722
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5709
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5710
|
-
showSidebar:
|
|
5711
|
-
isPrivate:
|
|
5712
|
-
isHidden:
|
|
5723
|
+
var DTODocumentationItemConfigurationV2 = z205.object({
|
|
5724
|
+
showSidebar: z205.boolean(),
|
|
5725
|
+
isPrivate: z205.boolean(),
|
|
5726
|
+
isHidden: z205.boolean(),
|
|
5713
5727
|
header: DTODocumentationItemHeaderV2
|
|
5714
5728
|
});
|
|
5715
5729
|
|
|
5716
5730
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5717
|
-
var DTODocumentationDraftChangeType =
|
|
5718
|
-
var DTODocumentationDraftStateCreated =
|
|
5719
|
-
changeType:
|
|
5720
|
-
});
|
|
5721
|
-
var DTODocumentationDraftStateUpdated =
|
|
5722
|
-
changeType:
|
|
5723
|
-
changes:
|
|
5724
|
-
previousTitle:
|
|
5731
|
+
var DTODocumentationDraftChangeType = z206.enum(["Created", "Updated", "Deleted"]);
|
|
5732
|
+
var DTODocumentationDraftStateCreated = z206.object({
|
|
5733
|
+
changeType: z206.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5734
|
+
});
|
|
5735
|
+
var DTODocumentationDraftStateUpdated = z206.object({
|
|
5736
|
+
changeType: z206.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5737
|
+
changes: z206.object({
|
|
5738
|
+
previousTitle: z206.string().optional(),
|
|
5725
5739
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5726
|
-
previousContentHash:
|
|
5740
|
+
previousContentHash: z206.string().optional()
|
|
5727
5741
|
})
|
|
5728
5742
|
});
|
|
5729
|
-
var DTODocumentationDraftStateDeleted =
|
|
5730
|
-
changeType:
|
|
5731
|
-
deletedAt:
|
|
5732
|
-
deletedByUserId:
|
|
5743
|
+
var DTODocumentationDraftStateDeleted = z206.object({
|
|
5744
|
+
changeType: z206.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5745
|
+
deletedAt: z206.coerce.date(),
|
|
5746
|
+
deletedByUserId: z206.string()
|
|
5733
5747
|
});
|
|
5734
|
-
var DTODocumentationDraftState =
|
|
5748
|
+
var DTODocumentationDraftState = z206.discriminatedUnion("changeType", [
|
|
5735
5749
|
DTODocumentationDraftStateCreated,
|
|
5736
5750
|
DTODocumentationDraftStateUpdated,
|
|
5737
5751
|
DTODocumentationDraftStateDeleted
|
|
5738
5752
|
]);
|
|
5739
5753
|
|
|
5740
5754
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5741
|
-
import { z as
|
|
5742
|
-
var DTODocumentationPublishMetadata =
|
|
5743
|
-
lastPublishedByUserId:
|
|
5744
|
-
lastPublishedAt:
|
|
5755
|
+
import { z as z207 } from "zod";
|
|
5756
|
+
var DTODocumentationPublishMetadata = z207.object({
|
|
5757
|
+
lastPublishedByUserId: z207.string(),
|
|
5758
|
+
lastPublishedAt: z207.coerce.date()
|
|
5745
5759
|
});
|
|
5746
5760
|
|
|
5747
5761
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5748
|
-
var DTODocumentationPageV2 =
|
|
5749
|
-
id:
|
|
5750
|
-
persistentId:
|
|
5751
|
-
designSystemVersionId:
|
|
5752
|
-
title:
|
|
5762
|
+
var DTODocumentationPageV2 = z208.object({
|
|
5763
|
+
id: z208.string(),
|
|
5764
|
+
persistentId: z208.string(),
|
|
5765
|
+
designSystemVersionId: z208.string(),
|
|
5766
|
+
title: z208.string(),
|
|
5753
5767
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5754
|
-
shortPersistentId:
|
|
5755
|
-
slug:
|
|
5756
|
-
userSlug:
|
|
5757
|
-
createdAt:
|
|
5758
|
-
updatedAt:
|
|
5759
|
-
path:
|
|
5768
|
+
shortPersistentId: z208.string(),
|
|
5769
|
+
slug: z208.string().optional(),
|
|
5770
|
+
userSlug: z208.string().optional(),
|
|
5771
|
+
createdAt: z208.coerce.date(),
|
|
5772
|
+
updatedAt: z208.coerce.date(),
|
|
5773
|
+
path: z208.string(),
|
|
5760
5774
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5761
5775
|
draftState: DTODocumentationDraftState.optional(),
|
|
5762
5776
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5764,197 +5778,197 @@ var DTODocumentationPageV2 = z207.object({
|
|
|
5764
5778
|
/** Defines the approval state of the documentation page */
|
|
5765
5779
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5766
5780
|
// Backward compatibility
|
|
5767
|
-
type:
|
|
5781
|
+
type: z208.literal("Page")
|
|
5768
5782
|
});
|
|
5769
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5783
|
+
var DTOCreateDocumentationPageInputV2 = z208.object({
|
|
5770
5784
|
// Identifier
|
|
5771
|
-
persistentId:
|
|
5785
|
+
persistentId: z208.string().uuid(),
|
|
5772
5786
|
// Page properties
|
|
5773
|
-
title:
|
|
5787
|
+
title: z208.string(),
|
|
5774
5788
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5775
5789
|
// Page placement properties
|
|
5776
|
-
parentPersistentId:
|
|
5777
|
-
afterPersistentId:
|
|
5790
|
+
parentPersistentId: z208.string().uuid(),
|
|
5791
|
+
afterPersistentId: z208.string().uuid().nullish()
|
|
5778
5792
|
});
|
|
5779
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5793
|
+
var DTOUpdateDocumentationPageInputV2 = z208.object({
|
|
5780
5794
|
// Identifier of the group to update
|
|
5781
|
-
id:
|
|
5795
|
+
id: z208.string(),
|
|
5782
5796
|
// Page properties
|
|
5783
|
-
title:
|
|
5797
|
+
title: z208.string().optional(),
|
|
5784
5798
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5785
5799
|
});
|
|
5786
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5800
|
+
var DTOMoveDocumentationPageInputV2 = z208.object({
|
|
5787
5801
|
// Identifier of the group to update
|
|
5788
|
-
id:
|
|
5802
|
+
id: z208.string(),
|
|
5789
5803
|
// Page placement properties
|
|
5790
|
-
parentPersistentId:
|
|
5791
|
-
afterPersistentId:
|
|
5804
|
+
parentPersistentId: z208.string().uuid(),
|
|
5805
|
+
afterPersistentId: z208.string().uuid().nullish()
|
|
5792
5806
|
});
|
|
5793
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5807
|
+
var DTODuplicateDocumentationPageInputV2 = z208.object({
|
|
5794
5808
|
// Identifier of the page to duplicate from
|
|
5795
|
-
id:
|
|
5809
|
+
id: z208.string(),
|
|
5796
5810
|
// New page persistent id
|
|
5797
|
-
persistentId:
|
|
5811
|
+
persistentId: z208.string().uuid(),
|
|
5798
5812
|
// Page placement properties
|
|
5799
|
-
parentPersistentId:
|
|
5800
|
-
afterPersistentId:
|
|
5813
|
+
parentPersistentId: z208.string().uuid(),
|
|
5814
|
+
afterPersistentId: z208.string().uuid().nullish()
|
|
5801
5815
|
});
|
|
5802
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5816
|
+
var DTODeleteDocumentationPageInputV2 = z208.object({
|
|
5803
5817
|
// Identifier
|
|
5804
|
-
id:
|
|
5818
|
+
id: z208.string()
|
|
5805
5819
|
});
|
|
5806
|
-
var DTORestoreDocumentationPageInput =
|
|
5807
|
-
persistentId:
|
|
5808
|
-
snapshotId:
|
|
5820
|
+
var DTORestoreDocumentationPageInput = z208.object({
|
|
5821
|
+
persistentId: z208.string(),
|
|
5822
|
+
snapshotId: z208.string().optional()
|
|
5809
5823
|
});
|
|
5810
|
-
var DTORestoreDocumentationGroupInput =
|
|
5811
|
-
persistentId:
|
|
5812
|
-
snapshotId:
|
|
5824
|
+
var DTORestoreDocumentationGroupInput = z208.object({
|
|
5825
|
+
persistentId: z208.string(),
|
|
5826
|
+
snapshotId: z208.string().optional()
|
|
5813
5827
|
});
|
|
5814
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5815
|
-
persistentId:
|
|
5828
|
+
var DTODocumentationPageApprovalStateChangeInput = z208.object({
|
|
5829
|
+
persistentId: z208.string(),
|
|
5816
5830
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5817
5831
|
});
|
|
5818
5832
|
|
|
5819
5833
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5820
|
-
var DTODocumentationPageSnapshot =
|
|
5821
|
-
id:
|
|
5822
|
-
designSystemVersionId:
|
|
5823
|
-
createdAt:
|
|
5824
|
-
updatedAt:
|
|
5834
|
+
var DTODocumentationPageSnapshot = z209.object({
|
|
5835
|
+
id: z209.string(),
|
|
5836
|
+
designSystemVersionId: z209.string(),
|
|
5837
|
+
createdAt: z209.string(),
|
|
5838
|
+
updatedAt: z209.string(),
|
|
5825
5839
|
documentationPage: DTODocumentationPageV2,
|
|
5826
|
-
pageContentHash:
|
|
5840
|
+
pageContentHash: z209.string(),
|
|
5827
5841
|
reason: DesignElementSnapshotReason
|
|
5828
5842
|
});
|
|
5829
5843
|
|
|
5830
5844
|
// src/api/dto/documentation/link-preview.ts
|
|
5831
|
-
import { z as
|
|
5832
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5845
|
+
import { z as z210 } from "zod";
|
|
5846
|
+
var DTODocumentationLinkPreviewResponse = z210.object({
|
|
5833
5847
|
linkPreview: DocumentationLinkPreview
|
|
5834
5848
|
});
|
|
5835
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5836
|
-
url:
|
|
5837
|
-
documentationItemPersistentId:
|
|
5849
|
+
var DTODocumentationLinkPreviewRequest = z210.object({
|
|
5850
|
+
url: z210.string().optional(),
|
|
5851
|
+
documentationItemPersistentId: z210.string().optional()
|
|
5838
5852
|
});
|
|
5839
5853
|
|
|
5840
5854
|
// src/api/dto/documentation/publish.ts
|
|
5841
|
-
import { z as
|
|
5855
|
+
import { z as z214 } from "zod";
|
|
5842
5856
|
|
|
5843
5857
|
// src/api/dto/export/exporter.ts
|
|
5844
|
-
import { z as
|
|
5845
|
-
var DTOExporterType =
|
|
5846
|
-
var DTOExporterSource =
|
|
5847
|
-
var DTOExporterMembershipRole =
|
|
5848
|
-
var DTOExporter =
|
|
5849
|
-
id:
|
|
5850
|
-
name:
|
|
5851
|
-
isPrivate:
|
|
5858
|
+
import { z as z211 } from "zod";
|
|
5859
|
+
var DTOExporterType = z211.enum(["documentation", "code"]);
|
|
5860
|
+
var DTOExporterSource = z211.enum(["git", "upload"]);
|
|
5861
|
+
var DTOExporterMembershipRole = z211.enum(["Owner", "OwnerArchived", "User"]);
|
|
5862
|
+
var DTOExporter = z211.object({
|
|
5863
|
+
id: z211.string(),
|
|
5864
|
+
name: z211.string(),
|
|
5865
|
+
isPrivate: z211.boolean(),
|
|
5852
5866
|
exporterType: DTOExporterType,
|
|
5853
|
-
isDefaultDocumentationExporter:
|
|
5854
|
-
iconURL:
|
|
5867
|
+
isDefaultDocumentationExporter: z211.boolean(),
|
|
5868
|
+
iconURL: z211.string().optional(),
|
|
5855
5869
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5856
5870
|
customBlocks: PulsarCustomBlock.array(),
|
|
5857
|
-
blockVariants:
|
|
5858
|
-
usesBrands:
|
|
5859
|
-
usesThemes:
|
|
5871
|
+
blockVariants: z211.record(z211.string(), PulsarContributionVariant.array()),
|
|
5872
|
+
usesBrands: z211.boolean(),
|
|
5873
|
+
usesThemes: z211.boolean(),
|
|
5860
5874
|
source: DTOExporterSource,
|
|
5861
|
-
gitUrl:
|
|
5862
|
-
gitBranch:
|
|
5863
|
-
gitDirectory:
|
|
5875
|
+
gitUrl: z211.string().optional(),
|
|
5876
|
+
gitBranch: z211.string().optional(),
|
|
5877
|
+
gitDirectory: z211.string().optional()
|
|
5864
5878
|
});
|
|
5865
|
-
var DTOExporterMembership =
|
|
5866
|
-
workspaceId:
|
|
5867
|
-
exporterId:
|
|
5879
|
+
var DTOExporterMembership = z211.object({
|
|
5880
|
+
workspaceId: z211.string(),
|
|
5881
|
+
exporterId: z211.string(),
|
|
5868
5882
|
role: DTOExporterMembershipRole
|
|
5869
5883
|
});
|
|
5870
|
-
var DTOExporterCreateOutput =
|
|
5884
|
+
var DTOExporterCreateOutput = z211.object({
|
|
5871
5885
|
exporter: DTOExporter,
|
|
5872
5886
|
membership: DTOExporterMembership
|
|
5873
5887
|
});
|
|
5874
|
-
var DTOExporterGitProviderEnum =
|
|
5875
|
-
var DTOExporterCreateInput =
|
|
5876
|
-
url:
|
|
5888
|
+
var DTOExporterGitProviderEnum = z211.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5889
|
+
var DTOExporterCreateInput = z211.object({
|
|
5890
|
+
url: z211.string(),
|
|
5877
5891
|
provider: DTOExporterGitProviderEnum
|
|
5878
5892
|
});
|
|
5879
|
-
var DTOExporterUpdateInput =
|
|
5880
|
-
url:
|
|
5893
|
+
var DTOExporterUpdateInput = z211.object({
|
|
5894
|
+
url: z211.string().optional()
|
|
5881
5895
|
});
|
|
5882
5896
|
|
|
5883
5897
|
// src/api/dto/export/filter.ts
|
|
5884
5898
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5885
5899
|
|
|
5886
5900
|
// src/api/dto/export/job.ts
|
|
5887
|
-
import { z as
|
|
5888
|
-
var DTOExportJobCreatedBy =
|
|
5889
|
-
userId:
|
|
5890
|
-
userName:
|
|
5901
|
+
import { z as z212 } from "zod";
|
|
5902
|
+
var DTOExportJobCreatedBy = z212.object({
|
|
5903
|
+
userId: z212.string(),
|
|
5904
|
+
userName: z212.string()
|
|
5891
5905
|
});
|
|
5892
|
-
var DTOExportJobDesignSystemPreview =
|
|
5893
|
-
id:
|
|
5906
|
+
var DTOExportJobDesignSystemPreview = z212.object({
|
|
5907
|
+
id: z212.string(),
|
|
5894
5908
|
meta: ObjectMeta
|
|
5895
5909
|
});
|
|
5896
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5897
|
-
id:
|
|
5910
|
+
var DTOExportJobDesignSystemVersionPreview = z212.object({
|
|
5911
|
+
id: z212.string(),
|
|
5898
5912
|
meta: ObjectMeta,
|
|
5899
|
-
version:
|
|
5900
|
-
isReadonly:
|
|
5913
|
+
version: z212.string(),
|
|
5914
|
+
isReadonly: z212.boolean()
|
|
5901
5915
|
});
|
|
5902
|
-
var DTOExportJobDestinations =
|
|
5916
|
+
var DTOExportJobDestinations = z212.object({
|
|
5903
5917
|
s3: ExporterDestinationS3.optional(),
|
|
5904
5918
|
azure: ExporterDestinationAzure.optional(),
|
|
5905
5919
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5906
5920
|
github: ExporterDestinationGithub.optional(),
|
|
5907
5921
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5908
5922
|
documentation: ExporterDestinationDocs.optional(),
|
|
5909
|
-
webhookUrl:
|
|
5923
|
+
webhookUrl: z212.string().optional()
|
|
5910
5924
|
});
|
|
5911
5925
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5912
5926
|
sndocs: true
|
|
5913
5927
|
}).extend({
|
|
5914
5928
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5915
5929
|
});
|
|
5916
|
-
var DTOExportJob =
|
|
5917
|
-
id:
|
|
5918
|
-
createdAt:
|
|
5919
|
-
finishedAt:
|
|
5920
|
-
index:
|
|
5930
|
+
var DTOExportJob = z212.object({
|
|
5931
|
+
id: z212.string(),
|
|
5932
|
+
createdAt: z212.coerce.date(),
|
|
5933
|
+
finishedAt: z212.coerce.date().optional(),
|
|
5934
|
+
index: z212.number().optional(),
|
|
5921
5935
|
status: ExportJobStatus,
|
|
5922
|
-
estimatedExecutionTime:
|
|
5936
|
+
estimatedExecutionTime: z212.number().optional(),
|
|
5923
5937
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5924
5938
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5925
5939
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5926
5940
|
destinations: DTOExportJobDestinations,
|
|
5927
|
-
exporterId:
|
|
5928
|
-
scheduleId:
|
|
5941
|
+
exporterId: z212.string(),
|
|
5942
|
+
scheduleId: z212.string().optional(),
|
|
5929
5943
|
result: DTOExportJobResult.optional(),
|
|
5930
|
-
brandPersistentId:
|
|
5931
|
-
themePersistentId:
|
|
5932
|
-
themePersistentIds:
|
|
5944
|
+
brandPersistentId: z212.string().optional(),
|
|
5945
|
+
themePersistentId: z212.string().optional(),
|
|
5946
|
+
themePersistentIds: z212.string().array().optional()
|
|
5933
5947
|
});
|
|
5934
|
-
var DTOExportJobResponse =
|
|
5948
|
+
var DTOExportJobResponse = z212.object({
|
|
5935
5949
|
job: DTOExportJob
|
|
5936
5950
|
});
|
|
5937
5951
|
|
|
5938
5952
|
// src/api/dto/export/pipeline.ts
|
|
5939
|
-
import { z as
|
|
5940
|
-
var DTOPipeline =
|
|
5941
|
-
id:
|
|
5942
|
-
name:
|
|
5953
|
+
import { z as z213 } from "zod";
|
|
5954
|
+
var DTOPipeline = z213.object({
|
|
5955
|
+
id: z213.string(),
|
|
5956
|
+
name: z213.string(),
|
|
5943
5957
|
eventType: PipelineEventType,
|
|
5944
|
-
isEnabled:
|
|
5945
|
-
workspaceId:
|
|
5946
|
-
designSystemId:
|
|
5947
|
-
exporterId:
|
|
5948
|
-
brandPersistentId:
|
|
5949
|
-
themePersistentId:
|
|
5950
|
-
themePersistentIds:
|
|
5958
|
+
isEnabled: z213.boolean(),
|
|
5959
|
+
workspaceId: z213.string(),
|
|
5960
|
+
designSystemId: z213.string(),
|
|
5961
|
+
exporterId: z213.string(),
|
|
5962
|
+
brandPersistentId: z213.string().optional(),
|
|
5963
|
+
themePersistentId: z213.string().optional(),
|
|
5964
|
+
themePersistentIds: z213.string().array().optional(),
|
|
5951
5965
|
...ExportDestinationsMap.shape,
|
|
5952
5966
|
latestJobs: DTOExportJob.array()
|
|
5953
5967
|
});
|
|
5954
5968
|
|
|
5955
5969
|
// src/api/dto/documentation/publish.ts
|
|
5956
5970
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5957
|
-
var DTOPublishDocumentationRequest =
|
|
5971
|
+
var DTOPublishDocumentationRequest = z214.object({
|
|
5958
5972
|
environment: PublishedDocEnvironment,
|
|
5959
5973
|
/**
|
|
5960
5974
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5962,42 +5976,42 @@ var DTOPublishDocumentationRequest = z213.object({
|
|
|
5962
5976
|
*/
|
|
5963
5977
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5964
5978
|
});
|
|
5965
|
-
var DTOPublishDocumentationResponse =
|
|
5979
|
+
var DTOPublishDocumentationResponse = z214.object({
|
|
5966
5980
|
job: DTOExportJob
|
|
5967
5981
|
});
|
|
5968
5982
|
|
|
5969
5983
|
// src/api/dto/elements/components/figma-component.ts
|
|
5970
|
-
import { z as
|
|
5984
|
+
import { z as z215 } from "zod";
|
|
5971
5985
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5972
|
-
var DTOFigmaComponentPropertyMap =
|
|
5973
|
-
var DTOFigmaComponent =
|
|
5974
|
-
id:
|
|
5975
|
-
persistentId:
|
|
5976
|
-
designSystemVersionId:
|
|
5977
|
-
brandId:
|
|
5978
|
-
thumbnailUrl:
|
|
5979
|
-
svgUrl:
|
|
5980
|
-
exportProperties:
|
|
5981
|
-
isAsset:
|
|
5986
|
+
var DTOFigmaComponentPropertyMap = z215.record(DTOFigmaComponentProperty);
|
|
5987
|
+
var DTOFigmaComponent = z215.object({
|
|
5988
|
+
id: z215.string(),
|
|
5989
|
+
persistentId: z215.string(),
|
|
5990
|
+
designSystemVersionId: z215.string(),
|
|
5991
|
+
brandId: z215.string(),
|
|
5992
|
+
thumbnailUrl: z215.string().optional(),
|
|
5993
|
+
svgUrl: z215.string().optional(),
|
|
5994
|
+
exportProperties: z215.object({
|
|
5995
|
+
isAsset: z215.boolean()
|
|
5982
5996
|
}),
|
|
5983
|
-
createdAt:
|
|
5984
|
-
updatedAt:
|
|
5997
|
+
createdAt: z215.coerce.date(),
|
|
5998
|
+
updatedAt: z215.coerce.date(),
|
|
5985
5999
|
meta: ObjectMeta,
|
|
5986
6000
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5987
|
-
parentComponentPersistentId:
|
|
5988
|
-
childrenPersistentIds:
|
|
6001
|
+
parentComponentPersistentId: z215.string().optional(),
|
|
6002
|
+
childrenPersistentIds: z215.string().array().optional(),
|
|
5989
6003
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5990
|
-
variantPropertyValues:
|
|
6004
|
+
variantPropertyValues: z215.record(z215.string()).optional()
|
|
5991
6005
|
});
|
|
5992
|
-
var DTOFigmaComponentListResponse =
|
|
6006
|
+
var DTOFigmaComponentListResponse = z215.object({
|
|
5993
6007
|
components: DTOFigmaComponent.array()
|
|
5994
6008
|
});
|
|
5995
6009
|
|
|
5996
6010
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5997
|
-
import { z as
|
|
6011
|
+
import { z as z217 } from "zod";
|
|
5998
6012
|
|
|
5999
6013
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6000
|
-
import { z as
|
|
6014
|
+
import { z as z216 } from "zod";
|
|
6001
6015
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6002
6016
|
sortOrder: true,
|
|
6003
6017
|
parentPersistentId: true,
|
|
@@ -6007,13 +6021,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6007
6021
|
data: true,
|
|
6008
6022
|
shortPersistentId: true
|
|
6009
6023
|
}).extend({
|
|
6010
|
-
title:
|
|
6011
|
-
isRoot:
|
|
6012
|
-
childrenIds:
|
|
6024
|
+
title: z216.string(),
|
|
6025
|
+
isRoot: z216.boolean(),
|
|
6026
|
+
childrenIds: z216.array(z216.string()),
|
|
6013
6027
|
groupBehavior: DocumentationGroupBehavior,
|
|
6014
|
-
shortPersistentId:
|
|
6028
|
+
shortPersistentId: z216.string(),
|
|
6015
6029
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6016
|
-
type:
|
|
6030
|
+
type: z216.literal("Group"),
|
|
6017
6031
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6018
6032
|
draftState: DTODocumentationDraftState.optional(),
|
|
6019
6033
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6021,127 +6035,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6021
6035
|
//** An approval state for frontend to utilize. */
|
|
6022
6036
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6023
6037
|
});
|
|
6024
|
-
var DTOCreateDocumentationGroupInput =
|
|
6038
|
+
var DTOCreateDocumentationGroupInput = z216.object({
|
|
6025
6039
|
// Identifier
|
|
6026
|
-
persistentId:
|
|
6040
|
+
persistentId: z216.string().uuid(),
|
|
6027
6041
|
// Group properties
|
|
6028
|
-
title:
|
|
6042
|
+
title: z216.string(),
|
|
6029
6043
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6030
6044
|
// Group placement properties
|
|
6031
|
-
afterPersistentId:
|
|
6032
|
-
parentPersistentId:
|
|
6045
|
+
afterPersistentId: z216.string().uuid().nullish(),
|
|
6046
|
+
parentPersistentId: z216.string().uuid()
|
|
6033
6047
|
});
|
|
6034
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6048
|
+
var DTOUpdateDocumentationGroupInput = z216.object({
|
|
6035
6049
|
// Identifier of the group to update
|
|
6036
|
-
id:
|
|
6050
|
+
id: z216.string(),
|
|
6037
6051
|
// Group properties
|
|
6038
|
-
title:
|
|
6052
|
+
title: z216.string().optional(),
|
|
6039
6053
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6040
6054
|
});
|
|
6041
|
-
var DTOMoveDocumentationGroupInput =
|
|
6055
|
+
var DTOMoveDocumentationGroupInput = z216.object({
|
|
6042
6056
|
// Identifier of the group to update
|
|
6043
|
-
id:
|
|
6057
|
+
id: z216.string(),
|
|
6044
6058
|
// Group placement properties
|
|
6045
|
-
parentPersistentId:
|
|
6046
|
-
afterPersistentId:
|
|
6059
|
+
parentPersistentId: z216.string().uuid(),
|
|
6060
|
+
afterPersistentId: z216.string().uuid().nullish()
|
|
6047
6061
|
});
|
|
6048
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6062
|
+
var DTODuplicateDocumentationGroupInput = z216.object({
|
|
6049
6063
|
// Identifier of the group to duplicate from
|
|
6050
|
-
id:
|
|
6064
|
+
id: z216.string(),
|
|
6051
6065
|
// New group persistent id
|
|
6052
|
-
persistentId:
|
|
6066
|
+
persistentId: z216.string().uuid(),
|
|
6053
6067
|
// Group placement properties
|
|
6054
|
-
afterPersistentId:
|
|
6055
|
-
parentPersistentId:
|
|
6068
|
+
afterPersistentId: z216.string().uuid().nullish(),
|
|
6069
|
+
parentPersistentId: z216.string().uuid()
|
|
6056
6070
|
});
|
|
6057
|
-
var DTOCreateDocumentationTabInput =
|
|
6071
|
+
var DTOCreateDocumentationTabInput = z216.object({
|
|
6058
6072
|
// New group persistent id
|
|
6059
|
-
persistentId:
|
|
6073
|
+
persistentId: z216.string().uuid(),
|
|
6060
6074
|
// If this is page, we will attempt to convert it to tab
|
|
6061
6075
|
// If this is tab group, we will add a new tab to it
|
|
6062
|
-
fromItemPersistentId:
|
|
6063
|
-
tabName:
|
|
6076
|
+
fromItemPersistentId: z216.string(),
|
|
6077
|
+
tabName: z216.string()
|
|
6064
6078
|
});
|
|
6065
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6079
|
+
var DTODeleteDocumentationTabGroupInput = z216.object({
|
|
6066
6080
|
// Deleted group id
|
|
6067
|
-
id:
|
|
6081
|
+
id: z216.string()
|
|
6068
6082
|
});
|
|
6069
|
-
var DTODeleteDocumentationGroupInput =
|
|
6083
|
+
var DTODeleteDocumentationGroupInput = z216.object({
|
|
6070
6084
|
// Identifier
|
|
6071
|
-
id:
|
|
6085
|
+
id: z216.string(),
|
|
6072
6086
|
// Deletion options
|
|
6073
|
-
deleteSubtree:
|
|
6087
|
+
deleteSubtree: z216.boolean().default(false)
|
|
6074
6088
|
});
|
|
6075
6089
|
|
|
6076
6090
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6077
|
-
var SuccessPayload =
|
|
6078
|
-
success:
|
|
6091
|
+
var SuccessPayload = z217.object({
|
|
6092
|
+
success: z217.literal(true)
|
|
6079
6093
|
});
|
|
6080
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6081
|
-
type:
|
|
6094
|
+
var DTODocumentationGroupCreateActionOutputV2 = z217.object({
|
|
6095
|
+
type: z217.literal("DocumentationGroupCreate"),
|
|
6082
6096
|
output: SuccessPayload
|
|
6083
6097
|
});
|
|
6084
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6085
|
-
type:
|
|
6098
|
+
var DTODocumentationTabCreateActionOutputV2 = z217.object({
|
|
6099
|
+
type: z217.literal("DocumentationTabCreate"),
|
|
6086
6100
|
output: SuccessPayload
|
|
6087
6101
|
});
|
|
6088
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6089
|
-
type:
|
|
6102
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z217.object({
|
|
6103
|
+
type: z217.literal("DocumentationGroupUpdate"),
|
|
6090
6104
|
output: SuccessPayload
|
|
6091
6105
|
});
|
|
6092
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6093
|
-
type:
|
|
6106
|
+
var DTODocumentationGroupMoveActionOutputV2 = z217.object({
|
|
6107
|
+
type: z217.literal("DocumentationGroupMove"),
|
|
6094
6108
|
output: SuccessPayload
|
|
6095
6109
|
});
|
|
6096
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6097
|
-
type:
|
|
6110
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z217.object({
|
|
6111
|
+
type: z217.literal("DocumentationGroupDuplicate"),
|
|
6098
6112
|
output: SuccessPayload
|
|
6099
6113
|
});
|
|
6100
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6101
|
-
type:
|
|
6114
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z217.object({
|
|
6115
|
+
type: z217.literal("DocumentationGroupDelete"),
|
|
6102
6116
|
output: SuccessPayload
|
|
6103
6117
|
});
|
|
6104
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6105
|
-
type:
|
|
6118
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z217.object({
|
|
6119
|
+
type: z217.literal("DocumentationTabGroupDelete"),
|
|
6106
6120
|
output: SuccessPayload
|
|
6107
6121
|
});
|
|
6108
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6109
|
-
type:
|
|
6122
|
+
var DTODocumentationGroupCreateActionInputV2 = z217.object({
|
|
6123
|
+
type: z217.literal("DocumentationGroupCreate"),
|
|
6110
6124
|
input: DTOCreateDocumentationGroupInput
|
|
6111
6125
|
});
|
|
6112
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6113
|
-
type:
|
|
6126
|
+
var DTODocumentationTabCreateActionInputV2 = z217.object({
|
|
6127
|
+
type: z217.literal("DocumentationTabCreate"),
|
|
6114
6128
|
input: DTOCreateDocumentationTabInput
|
|
6115
6129
|
});
|
|
6116
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6117
|
-
type:
|
|
6130
|
+
var DTODocumentationGroupUpdateActionInputV2 = z217.object({
|
|
6131
|
+
type: z217.literal("DocumentationGroupUpdate"),
|
|
6118
6132
|
input: DTOUpdateDocumentationGroupInput
|
|
6119
6133
|
});
|
|
6120
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6121
|
-
type:
|
|
6134
|
+
var DTODocumentationGroupMoveActionInputV2 = z217.object({
|
|
6135
|
+
type: z217.literal("DocumentationGroupMove"),
|
|
6122
6136
|
input: DTOMoveDocumentationGroupInput
|
|
6123
6137
|
});
|
|
6124
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6125
|
-
type:
|
|
6138
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z217.object({
|
|
6139
|
+
type: z217.literal("DocumentationGroupDuplicate"),
|
|
6126
6140
|
input: DTODuplicateDocumentationGroupInput
|
|
6127
6141
|
});
|
|
6128
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6129
|
-
type:
|
|
6142
|
+
var DTODocumentationGroupDeleteActionInputV2 = z217.object({
|
|
6143
|
+
type: z217.literal("DocumentationGroupDelete"),
|
|
6130
6144
|
input: DTODeleteDocumentationGroupInput
|
|
6131
6145
|
});
|
|
6132
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6133
|
-
type:
|
|
6146
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z217.object({
|
|
6147
|
+
type: z217.literal("DocumentationTabGroupDelete"),
|
|
6134
6148
|
input: DTODeleteDocumentationTabGroupInput
|
|
6135
6149
|
});
|
|
6136
6150
|
|
|
6137
6151
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6138
|
-
import { z as
|
|
6152
|
+
import { z as z219 } from "zod";
|
|
6139
6153
|
|
|
6140
6154
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6141
|
-
import { z as
|
|
6142
|
-
var DocumentationColorV1 =
|
|
6143
|
-
aliasTo:
|
|
6144
|
-
value:
|
|
6155
|
+
import { z as z218 } from "zod";
|
|
6156
|
+
var DocumentationColorV1 = z218.object({
|
|
6157
|
+
aliasTo: z218.string().optional(),
|
|
6158
|
+
value: z218.string().optional()
|
|
6145
6159
|
});
|
|
6146
6160
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6147
6161
|
foregroundColor: true,
|
|
@@ -6150,10 +6164,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6150
6164
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6151
6165
|
backgroundColor: DocumentationColorV1.optional()
|
|
6152
6166
|
});
|
|
6153
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6154
|
-
showSidebar:
|
|
6155
|
-
isPrivate:
|
|
6156
|
-
isHidden:
|
|
6167
|
+
var DTODocumentationItemConfigurationV1 = z218.object({
|
|
6168
|
+
showSidebar: z218.boolean(),
|
|
6169
|
+
isPrivate: z218.boolean(),
|
|
6170
|
+
isHidden: z218.boolean(),
|
|
6157
6171
|
header: DTODocumentationItemHeaderV1
|
|
6158
6172
|
});
|
|
6159
6173
|
|
|
@@ -6167,27 +6181,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6167
6181
|
data: true,
|
|
6168
6182
|
shortPersistentId: true
|
|
6169
6183
|
}).extend({
|
|
6170
|
-
title:
|
|
6171
|
-
isRoot:
|
|
6172
|
-
childrenIds:
|
|
6184
|
+
title: z219.string(),
|
|
6185
|
+
isRoot: z219.boolean(),
|
|
6186
|
+
childrenIds: z219.array(z219.string()),
|
|
6173
6187
|
groupBehavior: DocumentationGroupBehavior,
|
|
6174
|
-
shortPersistentId:
|
|
6175
|
-
type:
|
|
6188
|
+
shortPersistentId: z219.string(),
|
|
6189
|
+
type: z219.literal("Group")
|
|
6176
6190
|
});
|
|
6177
6191
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6178
6192
|
configuration: DTODocumentationItemConfigurationV1
|
|
6179
6193
|
});
|
|
6180
6194
|
|
|
6181
6195
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6182
|
-
import { z as
|
|
6183
|
-
var DTODocumentationHierarchyV2 =
|
|
6184
|
-
pages:
|
|
6196
|
+
import { z as z220 } from "zod";
|
|
6197
|
+
var DTODocumentationHierarchyV2 = z220.object({
|
|
6198
|
+
pages: z220.array(
|
|
6185
6199
|
DTODocumentationPageV2.extend({
|
|
6186
6200
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6187
6201
|
draftState: DTODocumentationDraftState.optional()
|
|
6188
6202
|
})
|
|
6189
6203
|
),
|
|
6190
|
-
groups:
|
|
6204
|
+
groups: z220.array(
|
|
6191
6205
|
DTODocumentationGroupV2.extend({
|
|
6192
6206
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6193
6207
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6196,84 +6210,84 @@ var DTODocumentationHierarchyV2 = z219.object({
|
|
|
6196
6210
|
});
|
|
6197
6211
|
|
|
6198
6212
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6199
|
-
import { z as
|
|
6200
|
-
var SuccessPayload2 =
|
|
6201
|
-
success:
|
|
6213
|
+
import { z as z221 } from "zod";
|
|
6214
|
+
var SuccessPayload2 = z221.object({
|
|
6215
|
+
success: z221.literal(true)
|
|
6202
6216
|
});
|
|
6203
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6204
|
-
type:
|
|
6217
|
+
var DTODocumentationPageCreateActionOutputV2 = z221.object({
|
|
6218
|
+
type: z221.literal("DocumentationPageCreate"),
|
|
6205
6219
|
output: SuccessPayload2
|
|
6206
6220
|
});
|
|
6207
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6208
|
-
type:
|
|
6221
|
+
var DTODocumentationPageUpdateActionOutputV2 = z221.object({
|
|
6222
|
+
type: z221.literal("DocumentationPageUpdate"),
|
|
6209
6223
|
output: SuccessPayload2
|
|
6210
6224
|
});
|
|
6211
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6212
|
-
type:
|
|
6225
|
+
var DTODocumentationPageMoveActionOutputV2 = z221.object({
|
|
6226
|
+
type: z221.literal("DocumentationPageMove"),
|
|
6213
6227
|
output: SuccessPayload2
|
|
6214
6228
|
});
|
|
6215
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6216
|
-
type:
|
|
6229
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z221.object({
|
|
6230
|
+
type: z221.literal("DocumentationPageDuplicate"),
|
|
6217
6231
|
output: SuccessPayload2
|
|
6218
6232
|
});
|
|
6219
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6220
|
-
type:
|
|
6233
|
+
var DTODocumentationPageDeleteActionOutputV2 = z221.object({
|
|
6234
|
+
type: z221.literal("DocumentationPageDelete"),
|
|
6221
6235
|
output: SuccessPayload2
|
|
6222
6236
|
});
|
|
6223
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6224
|
-
type:
|
|
6237
|
+
var DTODocumentationPageRestoreActionOutput = z221.object({
|
|
6238
|
+
type: z221.literal("DocumentationPageRestore"),
|
|
6225
6239
|
output: SuccessPayload2
|
|
6226
6240
|
});
|
|
6227
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6228
|
-
type:
|
|
6241
|
+
var DTODocumentationGroupRestoreActionOutput = z221.object({
|
|
6242
|
+
type: z221.literal("DocumentationGroupRestore"),
|
|
6229
6243
|
output: SuccessPayload2
|
|
6230
6244
|
});
|
|
6231
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6232
|
-
type:
|
|
6245
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z221.object({
|
|
6246
|
+
type: z221.literal("DocumentationPageApprovalStateChange"),
|
|
6233
6247
|
output: SuccessPayload2
|
|
6234
6248
|
});
|
|
6235
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6236
|
-
type:
|
|
6249
|
+
var DTODocumentationPageCreateActionInputV2 = z221.object({
|
|
6250
|
+
type: z221.literal("DocumentationPageCreate"),
|
|
6237
6251
|
input: DTOCreateDocumentationPageInputV2
|
|
6238
6252
|
});
|
|
6239
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6240
|
-
type:
|
|
6253
|
+
var DTODocumentationPageUpdateActionInputV2 = z221.object({
|
|
6254
|
+
type: z221.literal("DocumentationPageUpdate"),
|
|
6241
6255
|
input: DTOUpdateDocumentationPageInputV2
|
|
6242
6256
|
});
|
|
6243
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6244
|
-
type:
|
|
6257
|
+
var DTODocumentationPageMoveActionInputV2 = z221.object({
|
|
6258
|
+
type: z221.literal("DocumentationPageMove"),
|
|
6245
6259
|
input: DTOMoveDocumentationPageInputV2
|
|
6246
6260
|
});
|
|
6247
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6248
|
-
type:
|
|
6261
|
+
var DTODocumentationPageDuplicateActionInputV2 = z221.object({
|
|
6262
|
+
type: z221.literal("DocumentationPageDuplicate"),
|
|
6249
6263
|
input: DTODuplicateDocumentationPageInputV2
|
|
6250
6264
|
});
|
|
6251
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6252
|
-
type:
|
|
6265
|
+
var DTODocumentationPageDeleteActionInputV2 = z221.object({
|
|
6266
|
+
type: z221.literal("DocumentationPageDelete"),
|
|
6253
6267
|
input: DTODeleteDocumentationPageInputV2
|
|
6254
6268
|
});
|
|
6255
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6256
|
-
type:
|
|
6269
|
+
var DTODocumentationPageRestoreActionInput = z221.object({
|
|
6270
|
+
type: z221.literal("DocumentationPageRestore"),
|
|
6257
6271
|
input: DTORestoreDocumentationPageInput
|
|
6258
6272
|
});
|
|
6259
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6260
|
-
type:
|
|
6273
|
+
var DTODocumentationGroupRestoreActionInput = z221.object({
|
|
6274
|
+
type: z221.literal("DocumentationGroupRestore"),
|
|
6261
6275
|
input: DTORestoreDocumentationGroupInput
|
|
6262
6276
|
});
|
|
6263
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6264
|
-
type:
|
|
6277
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z221.object({
|
|
6278
|
+
type: z221.literal("DocumentationPageApprovalStateChange"),
|
|
6265
6279
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6266
6280
|
});
|
|
6267
6281
|
|
|
6268
6282
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6269
|
-
import { z as
|
|
6283
|
+
import { z as z222 } from "zod";
|
|
6270
6284
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6271
|
-
var DTODocumentationPageContentGetResponse =
|
|
6285
|
+
var DTODocumentationPageContentGetResponse = z222.object({
|
|
6272
6286
|
pageContent: DTODocumentationPageContent
|
|
6273
6287
|
});
|
|
6274
6288
|
|
|
6275
6289
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6276
|
-
import { z as
|
|
6290
|
+
import { z as z223 } from "zod";
|
|
6277
6291
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6278
6292
|
data: true,
|
|
6279
6293
|
meta: true,
|
|
@@ -6281,32 +6295,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6281
6295
|
sortOrder: true
|
|
6282
6296
|
}).extend({
|
|
6283
6297
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6284
|
-
blocks:
|
|
6285
|
-
title:
|
|
6286
|
-
path:
|
|
6298
|
+
blocks: z223.array(PageBlockV1),
|
|
6299
|
+
title: z223.string(),
|
|
6300
|
+
path: z223.string()
|
|
6287
6301
|
});
|
|
6288
6302
|
|
|
6289
6303
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6290
|
-
import { z as
|
|
6304
|
+
import { z as z224 } from "zod";
|
|
6291
6305
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6292
|
-
var DTOFigmaNodeOrigin =
|
|
6293
|
-
sourceId:
|
|
6294
|
-
fileId:
|
|
6295
|
-
parentName:
|
|
6306
|
+
var DTOFigmaNodeOrigin = z224.object({
|
|
6307
|
+
sourceId: z224.string(),
|
|
6308
|
+
fileId: z224.string().optional(),
|
|
6309
|
+
parentName: z224.string().optional()
|
|
6296
6310
|
});
|
|
6297
|
-
var DTOFigmaNodeData =
|
|
6311
|
+
var DTOFigmaNodeData = z224.object({
|
|
6298
6312
|
// Id of the node in the Figma file
|
|
6299
|
-
figmaNodeId:
|
|
6313
|
+
figmaNodeId: z224.string(),
|
|
6300
6314
|
// Validity
|
|
6301
|
-
isValid:
|
|
6315
|
+
isValid: z224.boolean(),
|
|
6302
6316
|
// Asset data
|
|
6303
|
-
assetId:
|
|
6304
|
-
assetUrl:
|
|
6317
|
+
assetId: z224.string(),
|
|
6318
|
+
assetUrl: z224.string(),
|
|
6305
6319
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6306
6320
|
// Asset metadata
|
|
6307
|
-
assetScale:
|
|
6308
|
-
assetWidth:
|
|
6309
|
-
assetHeight:
|
|
6321
|
+
assetScale: z224.number(),
|
|
6322
|
+
assetWidth: z224.number().optional(),
|
|
6323
|
+
assetHeight: z224.number().optional()
|
|
6310
6324
|
});
|
|
6311
6325
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6312
6326
|
data: true,
|
|
@@ -6315,15 +6329,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6315
6329
|
data: DTOFigmaNodeData,
|
|
6316
6330
|
origin: DTOFigmaNodeOrigin
|
|
6317
6331
|
});
|
|
6318
|
-
var DTOFigmaNodeRenderInput =
|
|
6332
|
+
var DTOFigmaNodeRenderInput = z224.object({
|
|
6319
6333
|
/**
|
|
6320
6334
|
* Id of a design system's data source representing a linked Figma file
|
|
6321
6335
|
*/
|
|
6322
|
-
sourceId:
|
|
6336
|
+
sourceId: z224.string(),
|
|
6323
6337
|
/**
|
|
6324
6338
|
* Id of a node within the Figma file
|
|
6325
6339
|
*/
|
|
6326
|
-
figmaFileNodeId:
|
|
6340
|
+
figmaFileNodeId: z224.string(),
|
|
6327
6341
|
/**
|
|
6328
6342
|
* Format in which the node must be rendered, png by default.
|
|
6329
6343
|
*/
|
|
@@ -6331,97 +6345,97 @@ var DTOFigmaNodeRenderInput = z223.object({
|
|
|
6331
6345
|
});
|
|
6332
6346
|
|
|
6333
6347
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6334
|
-
import { z as
|
|
6335
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6336
|
-
type:
|
|
6337
|
-
figmaNodes:
|
|
6348
|
+
import { z as z225 } from "zod";
|
|
6349
|
+
var DTOFigmaNodeRenderActionOutput = z225.object({
|
|
6350
|
+
type: z225.literal("FigmaNodeRender"),
|
|
6351
|
+
figmaNodes: z225.array(DTOFigmaNode)
|
|
6338
6352
|
});
|
|
6339
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6340
|
-
type:
|
|
6353
|
+
var DTOFigmaNodeRenderActionInput = z225.object({
|
|
6354
|
+
type: z225.literal("FigmaNodeRender"),
|
|
6341
6355
|
input: DTOFigmaNodeRenderInput.array()
|
|
6342
6356
|
});
|
|
6343
6357
|
|
|
6344
6358
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6345
|
-
import { z as
|
|
6359
|
+
import { z as z227 } from "zod";
|
|
6346
6360
|
|
|
6347
6361
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6348
|
-
import { z as
|
|
6362
|
+
import { z as z226 } from "zod";
|
|
6349
6363
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6350
|
-
var DTOElementPropertyDefinition =
|
|
6351
|
-
id:
|
|
6352
|
-
designSystemVersionId:
|
|
6364
|
+
var DTOElementPropertyDefinition = z226.object({
|
|
6365
|
+
id: z226.string(),
|
|
6366
|
+
designSystemVersionId: z226.string(),
|
|
6353
6367
|
meta: ObjectMeta,
|
|
6354
|
-
persistentId:
|
|
6368
|
+
persistentId: z226.string(),
|
|
6355
6369
|
type: ElementPropertyTypeSchema,
|
|
6356
6370
|
targetElementType: ElementPropertyTargetType,
|
|
6357
|
-
codeName:
|
|
6358
|
-
options:
|
|
6371
|
+
codeName: z226.string().regex(CODE_NAME_REGEX2),
|
|
6372
|
+
options: z226.array(ElementPropertyDefinitionOption).optional(),
|
|
6359
6373
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6360
6374
|
});
|
|
6361
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6362
|
-
definitions:
|
|
6375
|
+
var DTOElementPropertyDefinitionsGetResponse = z226.object({
|
|
6376
|
+
definitions: z226.array(DTOElementPropertyDefinition)
|
|
6363
6377
|
});
|
|
6364
6378
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6365
6379
|
id: true,
|
|
6366
6380
|
designSystemVersionId: true
|
|
6367
6381
|
});
|
|
6368
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6369
|
-
id:
|
|
6370
|
-
name:
|
|
6371
|
-
description:
|
|
6372
|
-
codeName:
|
|
6373
|
-
options:
|
|
6382
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z226.object({
|
|
6383
|
+
id: z226.string(),
|
|
6384
|
+
name: z226.string().optional(),
|
|
6385
|
+
description: z226.string().optional(),
|
|
6386
|
+
codeName: z226.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6387
|
+
options: z226.array(ElementPropertyDefinitionOption).optional()
|
|
6374
6388
|
});
|
|
6375
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6376
|
-
id:
|
|
6389
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z226.object({
|
|
6390
|
+
id: z226.string()
|
|
6377
6391
|
});
|
|
6378
6392
|
|
|
6379
6393
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6380
|
-
var SuccessPayload3 =
|
|
6381
|
-
success:
|
|
6394
|
+
var SuccessPayload3 = z227.object({
|
|
6395
|
+
success: z227.literal(true)
|
|
6382
6396
|
});
|
|
6383
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6384
|
-
type:
|
|
6397
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z227.object({
|
|
6398
|
+
type: z227.literal("PropertyDefinitionCreate"),
|
|
6385
6399
|
definition: DTOElementPropertyDefinition
|
|
6386
6400
|
});
|
|
6387
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6388
|
-
type:
|
|
6401
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z227.object({
|
|
6402
|
+
type: z227.literal("PropertyDefinitionUpdate"),
|
|
6389
6403
|
definition: DTOElementPropertyDefinition
|
|
6390
6404
|
});
|
|
6391
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6392
|
-
type:
|
|
6405
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z227.object({
|
|
6406
|
+
type: z227.literal("PropertyDefinitionDelete"),
|
|
6393
6407
|
output: SuccessPayload3
|
|
6394
6408
|
});
|
|
6395
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6396
|
-
type:
|
|
6409
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z227.object({
|
|
6410
|
+
type: z227.literal("PropertyDefinitionCreate"),
|
|
6397
6411
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6398
6412
|
});
|
|
6399
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6400
|
-
type:
|
|
6413
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z227.object({
|
|
6414
|
+
type: z227.literal("PropertyDefinitionUpdate"),
|
|
6401
6415
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6402
6416
|
});
|
|
6403
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6404
|
-
type:
|
|
6417
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z227.object({
|
|
6418
|
+
type: z227.literal("PropertyDefinitionDelete"),
|
|
6405
6419
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6406
6420
|
});
|
|
6407
6421
|
|
|
6408
6422
|
// src/api/dto/elements/properties/property-values.ts
|
|
6409
|
-
import { z as
|
|
6410
|
-
var DTOElementPropertyValue =
|
|
6411
|
-
id:
|
|
6412
|
-
designSystemVersionId:
|
|
6413
|
-
definitionId:
|
|
6414
|
-
targetElementId:
|
|
6415
|
-
value:
|
|
6416
|
-
valuePreview:
|
|
6423
|
+
import { z as z228 } from "zod";
|
|
6424
|
+
var DTOElementPropertyValue = z228.object({
|
|
6425
|
+
id: z228.string(),
|
|
6426
|
+
designSystemVersionId: z228.string(),
|
|
6427
|
+
definitionId: z228.string(),
|
|
6428
|
+
targetElementId: z228.string(),
|
|
6429
|
+
value: z228.union([z228.string(), z228.number(), z228.boolean()]).optional(),
|
|
6430
|
+
valuePreview: z228.string().optional()
|
|
6417
6431
|
});
|
|
6418
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6419
|
-
values:
|
|
6432
|
+
var DTOElementPropertyValuesGetResponse = z228.object({
|
|
6433
|
+
values: z228.array(DTOElementPropertyValue)
|
|
6420
6434
|
});
|
|
6421
6435
|
|
|
6422
6436
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6423
|
-
import { z as
|
|
6424
|
-
var DTOElementActionOutput =
|
|
6437
|
+
import { z as z229 } from "zod";
|
|
6438
|
+
var DTOElementActionOutput = z229.discriminatedUnion("type", [
|
|
6425
6439
|
// Documentation pages
|
|
6426
6440
|
DTODocumentationPageCreateActionOutputV2,
|
|
6427
6441
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6448,7 +6462,7 @@ var DTOElementActionOutput = z228.discriminatedUnion("type", [
|
|
|
6448
6462
|
// Approvals
|
|
6449
6463
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6450
6464
|
]);
|
|
6451
|
-
var DTOElementActionInput =
|
|
6465
|
+
var DTOElementActionInput = z229.discriminatedUnion("type", [
|
|
6452
6466
|
// Documentation pages
|
|
6453
6467
|
DTODocumentationPageCreateActionInputV2,
|
|
6454
6468
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6477,60 +6491,60 @@ var DTOElementActionInput = z228.discriminatedUnion("type", [
|
|
|
6477
6491
|
]);
|
|
6478
6492
|
|
|
6479
6493
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6480
|
-
import { z as
|
|
6481
|
-
var DTOElementsGetTypeFilter =
|
|
6482
|
-
var DTOElementsGetQuerySchema =
|
|
6483
|
-
types:
|
|
6494
|
+
import { z as z230 } from "zod";
|
|
6495
|
+
var DTOElementsGetTypeFilter = z230.enum(["FigmaNode"]);
|
|
6496
|
+
var DTOElementsGetQuerySchema = z230.object({
|
|
6497
|
+
types: z230.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6484
6498
|
});
|
|
6485
|
-
var DTOElementsGetOutput =
|
|
6486
|
-
figmaNodes:
|
|
6499
|
+
var DTOElementsGetOutput = z230.object({
|
|
6500
|
+
figmaNodes: z230.array(DTOFigmaNode).optional()
|
|
6487
6501
|
});
|
|
6488
6502
|
|
|
6489
6503
|
// src/api/dto/figma-components/assets/download.ts
|
|
6490
|
-
import { z as
|
|
6491
|
-
var DTOAssetRenderConfiguration =
|
|
6492
|
-
prefix:
|
|
6493
|
-
suffix:
|
|
6494
|
-
scale:
|
|
6495
|
-
format:
|
|
6496
|
-
});
|
|
6497
|
-
var DTORenderedAssetFile =
|
|
6498
|
-
assetId:
|
|
6499
|
-
fileName:
|
|
6500
|
-
sourceUrl:
|
|
6504
|
+
import { z as z231 } from "zod";
|
|
6505
|
+
var DTOAssetRenderConfiguration = z231.object({
|
|
6506
|
+
prefix: z231.string().optional(),
|
|
6507
|
+
suffix: z231.string().optional(),
|
|
6508
|
+
scale: z231.enum(["x1", "x2", "x3", "x4"]),
|
|
6509
|
+
format: z231.enum(["png", "pdf", "svg"])
|
|
6510
|
+
});
|
|
6511
|
+
var DTORenderedAssetFile = z231.object({
|
|
6512
|
+
assetId: z231.string(),
|
|
6513
|
+
fileName: z231.string(),
|
|
6514
|
+
sourceUrl: z231.string(),
|
|
6501
6515
|
settings: DTOAssetRenderConfiguration,
|
|
6502
|
-
originalName:
|
|
6516
|
+
originalName: z231.string()
|
|
6503
6517
|
});
|
|
6504
|
-
var DTODownloadAssetsRequest =
|
|
6505
|
-
persistentIds:
|
|
6518
|
+
var DTODownloadAssetsRequest = z231.object({
|
|
6519
|
+
persistentIds: z231.array(z231.string().uuid()).optional(),
|
|
6506
6520
|
settings: DTOAssetRenderConfiguration.array()
|
|
6507
6521
|
});
|
|
6508
|
-
var DTODownloadAssetsResponse =
|
|
6522
|
+
var DTODownloadAssetsResponse = z231.object({
|
|
6509
6523
|
items: DTORenderedAssetFile.array()
|
|
6510
6524
|
});
|
|
6511
6525
|
|
|
6512
6526
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6513
|
-
import { z as
|
|
6514
|
-
var DTOLiveblocksAuthResponse =
|
|
6515
|
-
token:
|
|
6527
|
+
import { z as z232 } from "zod";
|
|
6528
|
+
var DTOLiveblocksAuthResponse = z232.object({
|
|
6529
|
+
token: z232.string()
|
|
6516
6530
|
});
|
|
6517
6531
|
|
|
6518
6532
|
// src/api/dto/users/authenticated-user.ts
|
|
6519
|
-
import { z as
|
|
6533
|
+
import { z as z234 } from "zod";
|
|
6520
6534
|
|
|
6521
6535
|
// src/api/dto/users/user.ts
|
|
6522
|
-
import { z as
|
|
6523
|
-
var DTOUserProfile =
|
|
6524
|
-
name:
|
|
6525
|
-
nickname:
|
|
6526
|
-
avatar:
|
|
6527
|
-
});
|
|
6528
|
-
var DTOUser =
|
|
6529
|
-
id:
|
|
6530
|
-
email:
|
|
6536
|
+
import { z as z233 } from "zod";
|
|
6537
|
+
var DTOUserProfile = z233.object({
|
|
6538
|
+
name: z233.string(),
|
|
6539
|
+
nickname: z233.string().optional(),
|
|
6540
|
+
avatar: z233.string().optional()
|
|
6541
|
+
});
|
|
6542
|
+
var DTOUser = z233.object({
|
|
6543
|
+
id: z233.string(),
|
|
6544
|
+
email: z233.string(),
|
|
6531
6545
|
profile: DTOUserProfile
|
|
6532
6546
|
});
|
|
6533
|
-
var DTOUserGetResponse =
|
|
6547
|
+
var DTOUserGetResponse = z233.object({
|
|
6534
6548
|
user: DTOUser
|
|
6535
6549
|
});
|
|
6536
6550
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6539,38 +6553,108 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6539
6553
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6540
6554
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6541
6555
|
var DTOUserSource = UserSource;
|
|
6542
|
-
var DTOUserOnboarding =
|
|
6543
|
-
companyName:
|
|
6544
|
-
numberOfPeopleInOrg:
|
|
6545
|
-
numberOfPeopleInDesignTeam:
|
|
6556
|
+
var DTOUserOnboarding = z234.object({
|
|
6557
|
+
companyName: z234.string().optional(),
|
|
6558
|
+
numberOfPeopleInOrg: z234.string().optional(),
|
|
6559
|
+
numberOfPeopleInDesignTeam: z234.string().optional(),
|
|
6546
6560
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6547
|
-
jobTitle:
|
|
6548
|
-
phase:
|
|
6561
|
+
jobTitle: z234.string().optional(),
|
|
6562
|
+
phase: z234.string().optional(),
|
|
6549
6563
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6550
|
-
designSystemName:
|
|
6551
|
-
defaultDestination:
|
|
6552
|
-
isPageDraftOnboardingFinished:
|
|
6564
|
+
designSystemName: z234.string().optional(),
|
|
6565
|
+
defaultDestination: z234.string().optional(),
|
|
6566
|
+
isPageDraftOnboardingFinished: z234.boolean().optional()
|
|
6553
6567
|
});
|
|
6554
6568
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6555
6569
|
onboarding: DTOUserOnboarding.optional()
|
|
6556
6570
|
});
|
|
6557
6571
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6558
6572
|
profile: DTOAuthenticatedUserProfile,
|
|
6559
|
-
createdAt:
|
|
6560
|
-
loggedOutAt:
|
|
6573
|
+
createdAt: z234.coerce.date(),
|
|
6574
|
+
loggedOutAt: z234.coerce.date().optional(),
|
|
6561
6575
|
source: DTOUserSource.optional()
|
|
6562
6576
|
});
|
|
6563
|
-
var DTOAuthenticatedUserResponse =
|
|
6577
|
+
var DTOAuthenticatedUserResponse = z234.object({
|
|
6564
6578
|
user: DTOAuthenticatedUser
|
|
6565
6579
|
});
|
|
6566
6580
|
|
|
6567
6581
|
// src/api/dto/users/update.ts
|
|
6568
|
-
import { z as
|
|
6569
|
-
var DTOUserProfileUpdateResponse =
|
|
6582
|
+
import { z as z235 } from "zod";
|
|
6583
|
+
var DTOUserProfileUpdateResponse = z235.object({
|
|
6570
6584
|
user: User
|
|
6571
6585
|
});
|
|
6572
6586
|
|
|
6573
|
-
// src/api/endpoints/design-system
|
|
6587
|
+
// src/api/endpoints/design-system/versions/brands.ts
|
|
6588
|
+
import { z as z236 } from "zod";
|
|
6589
|
+
var BrandsEndpoint = class {
|
|
6590
|
+
constructor(requestExecutor) {
|
|
6591
|
+
this.requestExecutor = requestExecutor;
|
|
6592
|
+
}
|
|
6593
|
+
get(designSystemId, versionId, brandId) {
|
|
6594
|
+
return this.requestExecutor.json(
|
|
6595
|
+
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
6596
|
+
z236.any()
|
|
6597
|
+
);
|
|
6598
|
+
}
|
|
6599
|
+
list(designSystemId, versionId) {
|
|
6600
|
+
return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z236.any());
|
|
6601
|
+
}
|
|
6602
|
+
};
|
|
6603
|
+
|
|
6604
|
+
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6605
|
+
import { z as z237 } from "zod";
|
|
6606
|
+
var OverridesEndpoint = class {
|
|
6607
|
+
constructor(requestExecutor) {
|
|
6608
|
+
this.requestExecutor = requestExecutor;
|
|
6609
|
+
}
|
|
6610
|
+
create(dsId, versionId, themeId, body) {
|
|
6611
|
+
return this.requestExecutor.json(
|
|
6612
|
+
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6613
|
+
z237.any(),
|
|
6614
|
+
{
|
|
6615
|
+
method: "POST",
|
|
6616
|
+
body
|
|
6617
|
+
}
|
|
6618
|
+
);
|
|
6619
|
+
}
|
|
6620
|
+
};
|
|
6621
|
+
|
|
6622
|
+
// src/api/endpoints/design-system/versions/themes.ts
|
|
6623
|
+
import { z as z238 } from "zod";
|
|
6624
|
+
var ThemesEndpoint = class {
|
|
6625
|
+
constructor(requestExecutor) {
|
|
6626
|
+
this.requestExecutor = requestExecutor;
|
|
6627
|
+
__publicField(this, "overrides");
|
|
6628
|
+
this.overrides = new OverridesEndpoint(requestExecutor);
|
|
6629
|
+
}
|
|
6630
|
+
create(dsId, versionId, body) {
|
|
6631
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z238.any(), {
|
|
6632
|
+
method: "POST",
|
|
6633
|
+
body
|
|
6634
|
+
});
|
|
6635
|
+
}
|
|
6636
|
+
delete(dsId, versionId, themeId) {
|
|
6637
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z238.any(), {
|
|
6638
|
+
method: "DELETE"
|
|
6639
|
+
});
|
|
6640
|
+
}
|
|
6641
|
+
};
|
|
6642
|
+
|
|
6643
|
+
// src/api/endpoints/design-system/versions/tokens.ts
|
|
6644
|
+
import { z as z239 } from "zod";
|
|
6645
|
+
var TokensEndpoint = class {
|
|
6646
|
+
constructor(requestExecutor) {
|
|
6647
|
+
this.requestExecutor = requestExecutor;
|
|
6648
|
+
}
|
|
6649
|
+
create(dsId, versionId, body) {
|
|
6650
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z239.any(), {
|
|
6651
|
+
method: "POST",
|
|
6652
|
+
body
|
|
6653
|
+
});
|
|
6654
|
+
}
|
|
6655
|
+
};
|
|
6656
|
+
|
|
6657
|
+
// src/api/endpoints/design-system/design-system-members.ts
|
|
6574
6658
|
var DesignSystemMembersEndpoint = class {
|
|
6575
6659
|
constructor(requestExecutor) {
|
|
6576
6660
|
this.requestExecutor = requestExecutor;
|
|
@@ -6588,18 +6672,24 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6588
6672
|
}
|
|
6589
6673
|
};
|
|
6590
6674
|
|
|
6591
|
-
// src/api/endpoints/design-system-versions.ts
|
|
6675
|
+
// src/api/endpoints/design-system/design-system-versions.ts
|
|
6592
6676
|
var DesignSystemVersionsEndpoint = class {
|
|
6593
6677
|
constructor(requestExecutor) {
|
|
6594
6678
|
this.requestExecutor = requestExecutor;
|
|
6679
|
+
__publicField(this, "themes");
|
|
6680
|
+
__publicField(this, "brands");
|
|
6681
|
+
__publicField(this, "tokens");
|
|
6682
|
+
this.themes = new ThemesEndpoint(requestExecutor);
|
|
6683
|
+
this.brands = new BrandsEndpoint(requestExecutor);
|
|
6684
|
+
this.tokens = new TokensEndpoint(requestExecutor);
|
|
6595
6685
|
}
|
|
6596
6686
|
list(dsId) {
|
|
6597
6687
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
6598
6688
|
}
|
|
6599
6689
|
};
|
|
6600
6690
|
|
|
6601
|
-
// src/api/endpoints/design-systems.ts
|
|
6602
|
-
import { z as
|
|
6691
|
+
// src/api/endpoints/design-system/design-systems.ts
|
|
6692
|
+
import { z as z240 } from "zod";
|
|
6603
6693
|
var DesignSystemsEndpoint = class {
|
|
6604
6694
|
constructor(requestExecutor) {
|
|
6605
6695
|
this.requestExecutor = requestExecutor;
|
|
@@ -6615,10 +6705,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6615
6705
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6616
6706
|
}
|
|
6617
6707
|
get(dsId) {
|
|
6618
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6708
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z240.any());
|
|
6619
6709
|
}
|
|
6620
6710
|
delete(dsId) {
|
|
6621
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6711
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z240.any(), { method: "DELETE" });
|
|
6622
6712
|
}
|
|
6623
6713
|
update(dsId, body) {
|
|
6624
6714
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6634,42 +6724,7 @@ var DesignSystemsEndpoint = class {
|
|
|
6634
6724
|
}
|
|
6635
6725
|
};
|
|
6636
6726
|
|
|
6637
|
-
// src/api/endpoints/
|
|
6638
|
-
var TokenCollectionsEndpoint = class {
|
|
6639
|
-
constructor(requestExecutor) {
|
|
6640
|
-
this.requestExecutor = requestExecutor;
|
|
6641
|
-
}
|
|
6642
|
-
list(dsId, vId) {
|
|
6643
|
-
return this.requestExecutor.json(
|
|
6644
|
-
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6645
|
-
DTOTokenCollectionsListReponse
|
|
6646
|
-
);
|
|
6647
|
-
}
|
|
6648
|
-
};
|
|
6649
|
-
|
|
6650
|
-
// src/api/endpoints/users.ts
|
|
6651
|
-
var UsersEndpoint = class {
|
|
6652
|
-
constructor(requestExecutor) {
|
|
6653
|
-
this.requestExecutor = requestExecutor;
|
|
6654
|
-
}
|
|
6655
|
-
getMe() {
|
|
6656
|
-
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6657
|
-
}
|
|
6658
|
-
listWorkspaces(uid) {
|
|
6659
|
-
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6660
|
-
}
|
|
6661
|
-
delete(uid) {
|
|
6662
|
-
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6663
|
-
}
|
|
6664
|
-
updateProfile(uid, body) {
|
|
6665
|
-
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6666
|
-
method: "PUT",
|
|
6667
|
-
body
|
|
6668
|
-
});
|
|
6669
|
-
}
|
|
6670
|
-
};
|
|
6671
|
-
|
|
6672
|
-
// src/api/endpoints/workspace-invites.ts
|
|
6727
|
+
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
6673
6728
|
var WorkspaceInvitationsEndpoint = class {
|
|
6674
6729
|
constructor(requestExecutor) {
|
|
6675
6730
|
this.requestExecutor = requestExecutor;
|
|
@@ -6686,8 +6741,8 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6686
6741
|
}
|
|
6687
6742
|
};
|
|
6688
6743
|
|
|
6689
|
-
// src/api/endpoints/workspace-members.ts
|
|
6690
|
-
import { z as
|
|
6744
|
+
// src/api/endpoints/workspaces/workspace-members.ts
|
|
6745
|
+
import { z as z241 } from "zod";
|
|
6691
6746
|
var WorkspaceMembersEndpoint = class {
|
|
6692
6747
|
constructor(requestExecutor) {
|
|
6693
6748
|
this.requestExecutor = requestExecutor;
|
|
@@ -6704,7 +6759,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6704
6759
|
});
|
|
6705
6760
|
}
|
|
6706
6761
|
invite(workspaceId, body) {
|
|
6707
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6762
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z241.any(), { method: "POST", body });
|
|
6708
6763
|
}
|
|
6709
6764
|
delete(workspaceId, userId) {
|
|
6710
6765
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6713,8 +6768,8 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6713
6768
|
}
|
|
6714
6769
|
};
|
|
6715
6770
|
|
|
6716
|
-
// src/api/endpoints/workspaces.ts
|
|
6717
|
-
import { z as
|
|
6771
|
+
// src/api/endpoints/workspaces/workspaces.ts
|
|
6772
|
+
import { z as z242 } from "zod";
|
|
6718
6773
|
var WorkspacesEndpoint = class {
|
|
6719
6774
|
constructor(requestExecutor) {
|
|
6720
6775
|
this.requestExecutor = requestExecutor;
|
|
@@ -6734,10 +6789,45 @@ var WorkspacesEndpoint = class {
|
|
|
6734
6789
|
});
|
|
6735
6790
|
}
|
|
6736
6791
|
delete(workspaceId) {
|
|
6737
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6792
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z242.any(), { method: "DELETE" });
|
|
6738
6793
|
}
|
|
6739
6794
|
subscription(workspaceId) {
|
|
6740
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6795
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z242.any(), { method: "GET" });
|
|
6796
|
+
}
|
|
6797
|
+
};
|
|
6798
|
+
|
|
6799
|
+
// src/api/endpoints/token-collections.ts
|
|
6800
|
+
var TokenCollectionsEndpoint = class {
|
|
6801
|
+
constructor(requestExecutor) {
|
|
6802
|
+
this.requestExecutor = requestExecutor;
|
|
6803
|
+
}
|
|
6804
|
+
list(dsId, vId) {
|
|
6805
|
+
return this.requestExecutor.json(
|
|
6806
|
+
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6807
|
+
DTOTokenCollectionsListReponse
|
|
6808
|
+
);
|
|
6809
|
+
}
|
|
6810
|
+
};
|
|
6811
|
+
|
|
6812
|
+
// src/api/endpoints/users.ts
|
|
6813
|
+
var UsersEndpoint = class {
|
|
6814
|
+
constructor(requestExecutor) {
|
|
6815
|
+
this.requestExecutor = requestExecutor;
|
|
6816
|
+
}
|
|
6817
|
+
getMe() {
|
|
6818
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6819
|
+
}
|
|
6820
|
+
listWorkspaces(uid) {
|
|
6821
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6822
|
+
}
|
|
6823
|
+
delete(uid) {
|
|
6824
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6825
|
+
}
|
|
6826
|
+
updateProfile(uid, body) {
|
|
6827
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6828
|
+
method: "PUT",
|
|
6829
|
+
body
|
|
6830
|
+
});
|
|
6741
6831
|
}
|
|
6742
6832
|
};
|
|
6743
6833
|
|
|
@@ -6796,9 +6886,9 @@ ${bodyText}`,
|
|
|
6796
6886
|
|
|
6797
6887
|
// src/api/transport/request-executor.ts
|
|
6798
6888
|
import fetch from "node-fetch";
|
|
6799
|
-
import { z as
|
|
6800
|
-
var ResponseWrapper =
|
|
6801
|
-
result:
|
|
6889
|
+
import { z as z243 } from "zod";
|
|
6890
|
+
var ResponseWrapper = z243.object({
|
|
6891
|
+
result: z243.record(z243.any())
|
|
6802
6892
|
});
|
|
6803
6893
|
var RequestExecutor = class {
|
|
6804
6894
|
constructor(testServerConfig) {
|
|
@@ -6920,7 +7010,7 @@ function generateHash(input, debug = false) {
|
|
|
6920
7010
|
}
|
|
6921
7011
|
|
|
6922
7012
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6923
|
-
import { z as
|
|
7013
|
+
import { z as z244 } from "zod";
|
|
6924
7014
|
|
|
6925
7015
|
// src/yjs/version-room/base.ts
|
|
6926
7016
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7450,24 +7540,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7450
7540
|
};
|
|
7451
7541
|
|
|
7452
7542
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7453
|
-
var DocumentationHierarchySettings =
|
|
7454
|
-
routingVersion:
|
|
7455
|
-
isDraftFeatureAdopted:
|
|
7456
|
-
isApprovalFeatureEnabled:
|
|
7457
|
-
approvalRequiredForPublishing:
|
|
7543
|
+
var DocumentationHierarchySettings = z244.object({
|
|
7544
|
+
routingVersion: z244.string(),
|
|
7545
|
+
isDraftFeatureAdopted: z244.boolean(),
|
|
7546
|
+
isApprovalFeatureEnabled: z244.boolean(),
|
|
7547
|
+
approvalRequiredForPublishing: z244.boolean()
|
|
7458
7548
|
});
|
|
7459
7549
|
function yjsToDocumentationHierarchy(doc) {
|
|
7460
7550
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7461
7551
|
}
|
|
7462
7552
|
|
|
7463
7553
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7464
|
-
import { z as
|
|
7465
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7466
|
-
title:
|
|
7554
|
+
import { z as z245 } from "zod";
|
|
7555
|
+
var DTODocumentationPageRoomHeaderData = z245.object({
|
|
7556
|
+
title: z245.string(),
|
|
7467
7557
|
configuration: DTODocumentationItemConfigurationV2
|
|
7468
7558
|
});
|
|
7469
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7470
|
-
title:
|
|
7559
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z245.object({
|
|
7560
|
+
title: z245.string().optional(),
|
|
7471
7561
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7472
7562
|
});
|
|
7473
7563
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7518,7 +7608,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7518
7608
|
header: rawHeader
|
|
7519
7609
|
};
|
|
7520
7610
|
return {
|
|
7521
|
-
title:
|
|
7611
|
+
title: z245.string().parse(title),
|
|
7522
7612
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7523
7613
|
};
|
|
7524
7614
|
}
|
|
@@ -7528,9 +7618,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7528
7618
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7529
7619
|
|
|
7530
7620
|
// src/yjs/docs-editor/model/page.ts
|
|
7531
|
-
import { z as
|
|
7532
|
-
var DocumentationPageEditorModel =
|
|
7533
|
-
blocks:
|
|
7621
|
+
import { z as z246 } from "zod";
|
|
7622
|
+
var DocumentationPageEditorModel = z246.object({
|
|
7623
|
+
blocks: z246.array(DocumentationPageContentItem)
|
|
7534
7624
|
});
|
|
7535
7625
|
|
|
7536
7626
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11050,7 +11140,7 @@ var blocks = [
|
|
|
11050
11140
|
|
|
11051
11141
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11052
11142
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11053
|
-
import { z as
|
|
11143
|
+
import { z as z247 } from "zod";
|
|
11054
11144
|
function yDocToPage(yDoc, definitions) {
|
|
11055
11145
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11056
11146
|
}
|
|
@@ -11130,7 +11220,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11130
11220
|
return null;
|
|
11131
11221
|
return {
|
|
11132
11222
|
id,
|
|
11133
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11223
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z247.string()) ?? "",
|
|
11134
11224
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11135
11225
|
};
|
|
11136
11226
|
}
|
|
@@ -11165,7 +11255,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11165
11255
|
});
|
|
11166
11256
|
}
|
|
11167
11257
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11168
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11258
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z247.string());
|
|
11169
11259
|
if (!definitionId) {
|
|
11170
11260
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11171
11261
|
return [];
|
|
@@ -11207,7 +11297,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11207
11297
|
if (!id)
|
|
11208
11298
|
return null;
|
|
11209
11299
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11210
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11300
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z247.string().optional()));
|
|
11211
11301
|
return {
|
|
11212
11302
|
id,
|
|
11213
11303
|
type: "Block",
|
|
@@ -11335,10 +11425,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11335
11425
|
return null;
|
|
11336
11426
|
}
|
|
11337
11427
|
function parseProsemirrorLink(mark) {
|
|
11338
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11428
|
+
const href = getProsemirrorAttribute(mark, "href", z247.string().optional());
|
|
11339
11429
|
if (!href)
|
|
11340
11430
|
return null;
|
|
11341
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11431
|
+
const target = getProsemirrorAttribute(mark, "target", z247.string().optional());
|
|
11342
11432
|
const openInNewTab = target === "_blank";
|
|
11343
11433
|
if (href.startsWith("@")) {
|
|
11344
11434
|
return {
|
|
@@ -11357,10 +11447,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11357
11447
|
}
|
|
11358
11448
|
}
|
|
11359
11449
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11360
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11450
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z247.string().optional());
|
|
11361
11451
|
if (!highlightId)
|
|
11362
11452
|
return null;
|
|
11363
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11453
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z247.boolean().optional()) ?? false;
|
|
11364
11454
|
return {
|
|
11365
11455
|
type: "Comment",
|
|
11366
11456
|
commentHighlightId: highlightId,
|
|
@@ -11372,7 +11462,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11372
11462
|
if (!id)
|
|
11373
11463
|
return null;
|
|
11374
11464
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11375
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11465
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z247.boolean().optional()) !== false;
|
|
11376
11466
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11377
11467
|
if (!tableChild) {
|
|
11378
11468
|
return emptyTable(id, variantId, 0);
|
|
@@ -11419,9 +11509,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11419
11509
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11420
11510
|
if (!id)
|
|
11421
11511
|
return null;
|
|
11422
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11512
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z247.string().optional());
|
|
11423
11513
|
let columnWidth;
|
|
11424
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11514
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z247.array(z247.number()).nullish());
|
|
11425
11515
|
if (columnWidthArray) {
|
|
11426
11516
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11427
11517
|
}
|
|
@@ -11459,7 +11549,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11459
11549
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11460
11550
|
};
|
|
11461
11551
|
case "image":
|
|
11462
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11552
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z247.string());
|
|
11463
11553
|
if (!items)
|
|
11464
11554
|
return null;
|
|
11465
11555
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11579,7 +11669,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11579
11669
|
);
|
|
11580
11670
|
}
|
|
11581
11671
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11582
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11672
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z247.string());
|
|
11583
11673
|
if (!itemsString)
|
|
11584
11674
|
return null;
|
|
11585
11675
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11591,18 +11681,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11591
11681
|
}
|
|
11592
11682
|
function parseAppearance(prosemirrorNode) {
|
|
11593
11683
|
let appearance = {};
|
|
11594
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11684
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z247.string().optional());
|
|
11595
11685
|
if (rawAppearanceString) {
|
|
11596
11686
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11597
11687
|
if (parsedAppearance.success) {
|
|
11598
11688
|
appearance = parsedAppearance.data;
|
|
11599
11689
|
}
|
|
11600
11690
|
}
|
|
11601
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11691
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z247.number().optional());
|
|
11602
11692
|
if (columns) {
|
|
11603
11693
|
appearance.numberOfColumns = columns;
|
|
11604
11694
|
}
|
|
11605
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11695
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z247.string().optional());
|
|
11606
11696
|
if (backgroundColor) {
|
|
11607
11697
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11608
11698
|
if (parsedColor.success) {
|
|
@@ -11697,13 +11787,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11697
11787
|
}
|
|
11698
11788
|
}
|
|
11699
11789
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11700
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11790
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z247.string());
|
|
11701
11791
|
if (!id)
|
|
11702
11792
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11703
11793
|
return id;
|
|
11704
11794
|
}
|
|
11705
11795
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11706
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11796
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z247.string()));
|
|
11707
11797
|
}
|
|
11708
11798
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11709
11799
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11764,6 +11854,7 @@ export {
|
|
|
11764
11854
|
BackendVersionRoomYDoc,
|
|
11765
11855
|
BlockDefinitionUtils,
|
|
11766
11856
|
BlockParsingUtils,
|
|
11857
|
+
BrandsEndpoint,
|
|
11767
11858
|
DTOAppBootstrapDataQuery,
|
|
11768
11859
|
DTOAppBootstrapDataResponse,
|
|
11769
11860
|
DTOAssetRenderConfiguration,
|
|
@@ -11779,6 +11870,7 @@ export {
|
|
|
11779
11870
|
DTOCreateDocumentationPageInputV2,
|
|
11780
11871
|
DTOCreateDocumentationTabInput,
|
|
11781
11872
|
DTOCreateElementPropertyDefinitionInputV2,
|
|
11873
|
+
DTOCreateThemeInput,
|
|
11782
11874
|
DTOCreateVersionInput,
|
|
11783
11875
|
DTODataSource,
|
|
11784
11876
|
DTODataSourceCreationResponse,
|
|
@@ -11997,12 +12089,15 @@ export {
|
|
|
11997
12089
|
ListTreeBuilder,
|
|
11998
12090
|
NpmRegistryInput,
|
|
11999
12091
|
ObjectMeta2 as ObjectMeta,
|
|
12092
|
+
OverridesEndpoint,
|
|
12000
12093
|
PageBlockEditorModel,
|
|
12001
12094
|
PageSectionEditorModel,
|
|
12002
12095
|
RequestExecutor,
|
|
12003
12096
|
RequestExecutorError,
|
|
12004
12097
|
SupernovaApiClient,
|
|
12098
|
+
ThemesEndpoint,
|
|
12005
12099
|
TokenCollectionsEndpoint,
|
|
12100
|
+
TokensEndpoint,
|
|
12006
12101
|
UsersEndpoint,
|
|
12007
12102
|
VersionRoomBaseYDoc,
|
|
12008
12103
|
VersionSQSPayload,
|