@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.
Files changed (28) hide show
  1. package/dist/index.d.mts +472 -378
  2. package/dist/index.d.ts +472 -378
  3. package/dist/index.js +149 -54
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +781 -686
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/client.ts +1 -1
  9. package/src/api/dto/design-systems/design-system.ts +1 -0
  10. package/src/api/endpoints/{design-system-members.ts → design-system/design-system-members.ts} +2 -2
  11. package/src/api/endpoints/design-system/design-system-versions.ts +20 -0
  12. package/src/api/endpoints/{design-systems.ts → design-system/design-systems.ts} +4 -3
  13. package/src/api/endpoints/design-system/index.ts +4 -0
  14. package/src/api/endpoints/design-system/versions/brands.ts +17 -0
  15. package/src/api/endpoints/design-system/versions/index.ts +4 -0
  16. package/src/api/endpoints/design-system/versions/overrides.ts +17 -0
  17. package/src/api/endpoints/design-system/versions/themes.ts +24 -0
  18. package/src/api/endpoints/design-system/versions/tokens.ts +13 -0
  19. package/src/api/endpoints/index.ts +2 -6
  20. package/src/api/endpoints/users.ts +0 -1
  21. package/src/api/endpoints/workspaces/index.ts +3 -0
  22. package/src/api/endpoints/{workspace-invites.ts → workspaces/workspace-invites.ts} +2 -2
  23. package/src/api/endpoints/{workspace-members.ts → workspaces/workspace-members.ts} +2 -2
  24. package/src/api/endpoints/{workspaces.ts → workspaces/workspaces.ts} +3 -3
  25. package/src/api/payloads/design-systems/brand.ts +6 -5
  26. package/src/api/payloads/design-systems/index.ts +1 -0
  27. package/src/api/payloads/design-systems/theme.ts +14 -0
  28. 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: DimensionUnit,
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: DimensionUnit,
624
+ unit: BorderWidthUnit,
625
625
  measure: z28.number()
626
626
  });
627
627
  var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
628
628
  var OpacityValue = z29.object({
629
- unit: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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: DimensionUnit,
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 z200 } from "zod";
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 z192 } from "zod";
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/update-design-system.ts
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 = z183.object({
5290
+ var DTODesignSystemUpdateAccessModeInput = z184.object({
5277
5291
  accessMode: DesignSystemAccessMode,
5278
- retain: z183.object({
5279
- userIds: z183.string().array(),
5280
- inviteIds: z183.string().array()
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 z184 } from "zod";
5286
- var ObjectMeta2 = z184.object({
5287
- name: z184.string().max(150).optional(),
5288
- description: z184.string().max(2e3).optional()
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 = z184.object({
5308
+ var DTOCreateVersionInput = z185.object({
5295
5309
  meta: ObjectMeta2,
5296
- version: z184.string().refine(validateDesignSystemVersion, {
5310
+ version: z185.string().refine(validateDesignSystemVersion, {
5297
5311
  message: "Invalid semantic versioning format"
5298
5312
  }),
5299
- changeLog: z184.string().optional()
5313
+ changeLog: z185.string().optional()
5300
5314
  });
5301
- var DTOUpdateVersionInput = z184.object({
5315
+ var DTOUpdateVersionInput = z185.object({
5302
5316
  meta: ObjectMeta2,
5303
- version: z184.string(),
5317
+ version: z185.string(),
5304
5318
  // required for PUT, but not editable
5305
- changeLog: z184.string()
5319
+ changeLog: z185.string()
5306
5320
  });
5307
5321
 
5308
5322
  // src/api/payloads/documentation/block-definitions.ts
5309
- import { z as z185 } from "zod";
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 = z185.object({
5322
- definitions: z185.array(DTOPageBlockDefinition)
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 z186 } from "zod";
5327
- var DTODocumentationPublishTypeQueryParams = z186.object({
5328
- environment: z186.enum(["Live", "Preview"])
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 z187 } from "zod";
5333
- var DTOPipelineCreateBody = z187.object({
5334
- name: z187.string(),
5335
- exporterId: z187.string(),
5336
- designSystemId: z187.string(),
5337
- isEnabled: z187.boolean(),
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: z187.string().optional(),
5340
- themePersistentId: z187.string().optional(),
5341
- themePersistentIds: z187.string().array().optional(),
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: z187.object({
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: z187.string().nullish()
5365
+ webhookUrl: z188.string().nullish()
5352
5366
  })
5353
5367
  });
5354
5368
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5355
- id: z187.string()
5369
+ id: z188.string()
5356
5370
  });
5357
- var DTOPipelineTriggerBody = z187.object({
5358
- designSystemVersionId: z187.string()
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 z188 } from "zod";
5363
- var DTOLiveblocksAuthRequest = z188.object({
5364
- room: z188.string().optional()
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 z189 } from "zod";
5369
- var DTOUpdateUserNotificationSettingsPayload = z189.object({
5382
+ import { z as z190 } from "zod";
5383
+ var DTOUpdateUserNotificationSettingsPayload = z190.object({
5370
5384
  notificationSettings: UserNotificationSettings
5371
5385
  });
5372
- var DTOUserNotificationSettingsResponse = z189.object({
5373
- userId: z189.string(),
5374
- workspaceId: z189.string(),
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 z190 } from "zod";
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 = z190.object({
5406
- enabledScopes: z190.array(z190.string()),
5407
- customRegistryUrl: z190.string().optional(),
5408
- bypassProxy: z190.boolean().optional(),
5409
- npmProxyRegistryConfigId: z190.string().optional(),
5410
- npmProxyVersion: z190.number().optional(),
5411
- registryType: z190.string(),
5412
- authType: z190.string(),
5413
- authHeaderName: z190.string(),
5414
- authHeaderValue: z190.string(),
5415
- accessToken: z190.string(),
5416
- username: z190.string(),
5417
- password: z190.string()
5418
- });
5419
- var WorkspaceConfigurationPayload = z190.object({
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 z191 } from "zod";
5428
- var DTOWorkspaceIntegrationOauthInput = z191.object({
5441
+ import { z as z192 } from "zod";
5442
+ var DTOWorkspaceIntegrationOauthInput = z192.object({
5429
5443
  type: IntegrationType
5430
5444
  });
5431
- var DTOWorkspaceIntegrationPATInput = z191.object({
5432
- userId: z191.string(),
5445
+ var DTOWorkspaceIntegrationPATInput = z192.object({
5446
+ userId: z192.string(),
5433
5447
  type: IntegrationType,
5434
5448
  token: IntegrationToken
5435
5449
  });
5436
- var DTOWorkspaceIntegrationGetGitObjectsInput = z191.object({
5437
- organization: z191.string().optional(),
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: z191.string().optional(),
5453
+ project: z192.string().optional(),
5440
5454
  // Only for Bitbucket and Azure
5441
- repository: z191.string().optional(),
5455
+ repository: z192.string().optional(),
5442
5456
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5443
- branch: z191.string().optional(),
5457
+ branch: z192.string().optional(),
5444
5458
  // For all providers, useful for PR creations.
5445
- user: z191.string().optional()
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 = z192.object({
5451
- id: z192.string(),
5452
- createdAt: z192.coerce.date(),
5464
+ var DTODesignSystemVersion = z193.object({
5465
+ id: z193.string(),
5466
+ createdAt: z193.coerce.date(),
5453
5467
  meta: ObjectMeta,
5454
- version: z192.string(),
5455
- isReadonly: z192.boolean(),
5456
- changeLog: z192.string(),
5457
- designSystemId: z192.string()
5468
+ version: z193.string(),
5469
+ isReadonly: z193.boolean(),
5470
+ changeLog: z193.string(),
5471
+ designSystemId: z193.string()
5458
5472
  });
5459
- var DTODesignSystemVersionsListResponse = z192.object({
5460
- designSystemVersions: z192.array(DTODesignSystemVersion)
5473
+ var DTODesignSystemVersionsListResponse = z193.object({
5474
+ designSystemVersions: z193.array(DTODesignSystemVersion)
5461
5475
  });
5462
- var DTODesignSystemVersionGetResponse = z192.object({
5476
+ var DTODesignSystemVersionGetResponse = z193.object({
5463
5477
  designSystemVersion: DTODesignSystemVersion
5464
5478
  });
5465
- var DTODesignSystemVersionCreationResponse = z192.object({
5479
+ var DTODesignSystemVersionCreationResponse = z193.object({
5466
5480
  meta: ObjectMeta,
5467
- version: z192.string(),
5468
- changeLog: z192.string(),
5469
- isReadOnly: z192.boolean(),
5470
- designSystemId: z192.string(),
5471
- jobId: z192.string()
5472
- });
5473
- var VersionSQSPayload = z192.object({
5474
- jobId: z192.string(),
5475
- designSystemId: z192.string(),
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 = z192.object({
5479
- jobs: z192.array(VersionCreationJob)
5492
+ var DTODesignSystemVersionJobsResponse = z193.object({
5493
+ jobs: z193.array(VersionCreationJob)
5480
5494
  });
5481
- var DTODesignSystemVersionJobStatusResponse = z192.object({
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 z193 } from "zod";
5487
- var DTOElementViewColumnSharedAttributes = z193.object({
5488
- id: z193.string(),
5489
- persistentId: z193.string(),
5490
- width: z193.number()
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: z193.literal("BaseProperty"),
5507
+ type: z194.literal("BaseProperty"),
5494
5508
  basePropertyType: ElementViewBaseColumnType
5495
5509
  });
5496
5510
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5497
- type: z193.literal("PropertyDefinition"),
5498
- propertyDefinitionId: z193.string()
5511
+ type: z194.literal("PropertyDefinition"),
5512
+ propertyDefinitionId: z194.string()
5499
5513
  });
5500
5514
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5501
- type: z193.literal("Theme"),
5502
- themeId: z193.string()
5515
+ type: z194.literal("Theme"),
5516
+ themeId: z194.string()
5503
5517
  });
5504
- var DTOElementViewColumn = z193.discriminatedUnion("type", [
5518
+ var DTOElementViewColumn = z194.discriminatedUnion("type", [
5505
5519
  DTOElementViewBasePropertyColumn,
5506
5520
  DTOElementViewPropertyDefinitionColumn,
5507
5521
  DTOElementViewThemeColumn
5508
5522
  ]);
5509
- var DTOElementView = z193.object({
5523
+ var DTOElementView = z194.object({
5510
5524
  meta: ObjectMeta,
5511
- persistentId: z193.string(),
5525
+ persistentId: z194.string(),
5512
5526
  targetElementType: ElementPropertyTargetType,
5513
- id: z193.string(),
5514
- isDefault: z193.boolean(),
5515
- columns: z193.array(DTOElementViewColumn)
5527
+ id: z194.string(),
5528
+ isDefault: z194.boolean(),
5529
+ columns: z194.array(DTOElementViewColumn)
5516
5530
  });
5517
- var DTOElementViewsListResponse = z193.object({
5518
- elementDataViews: z193.array(DTOElementView)
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 z194 } from "zod";
5523
- var DTOGitOrganization = z194.object({
5524
- id: z194.string(),
5525
- name: z194.string(),
5526
- url: z194.string(),
5527
- slug: z194.string()
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 = z194.object({
5530
- id: z194.string(),
5531
- name: z194.string(),
5532
- url: z194.string(),
5533
- slug: z194.string()
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 = z194.object({
5536
- id: z194.string(),
5537
- name: z194.string(),
5538
- url: z194.string(),
5539
- slug: z194.string(),
5540
- defaultBranch: z194.string().optional()
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 = z194.object({
5543
- name: z194.string(),
5544
- lastCommitId: z194.string()
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 z195 } from "zod";
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 = z195.object({
5554
- id: z195.string(),
5555
- workspaceId: z195.string(),
5567
+ var DTOIntegration = z196.object({
5568
+ id: z196.string(),
5569
+ workspaceId: z196.string(),
5556
5570
  type: ExtendedIntegrationType,
5557
- createdAt: z195.coerce.date(),
5558
- integrationCredentials: z195.array(DTOIntegrationCredentials).optional(),
5559
- integrationDesignSystems: z195.array(IntegrationDesignSystem).optional()
5571
+ createdAt: z196.coerce.date(),
5572
+ integrationCredentials: z196.array(DTOIntegrationCredentials).optional(),
5573
+ integrationDesignSystems: z196.array(IntegrationDesignSystem).optional()
5560
5574
  });
5561
- var DTOIntegrationOAuthGetResponse = z195.object({
5562
- url: z195.string()
5575
+ var DTOIntegrationOAuthGetResponse = z196.object({
5576
+ url: z196.string()
5563
5577
  });
5564
- var DTOIntegrationPostResponse = z195.object({
5578
+ var DTOIntegrationPostResponse = z196.object({
5565
5579
  integration: DTOIntegration
5566
5580
  });
5567
- var DTOIntegrationsGetListResponse = z195.object({
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 z196 } from "zod";
5573
- var DTOWorkspaceInvitationInput = z196.object({
5574
- email: z196.string().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 = z196.object({
5591
+ var DTOWorkspaceInvitationsListInput = z197.object({
5578
5592
  invites: DTOWorkspaceInvitationInput.array().max(100),
5579
- designSystemId: z196.string().optional()
5593
+ designSystemId: z197.string().optional()
5580
5594
  });
5581
- var DTOWorkspaceInvitationsResponse = z196.object({
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 z199 } from "zod";
5600
+ import { z as z200 } from "zod";
5587
5601
 
5588
5602
  // src/api/dto/workspaces/workspace.ts
5589
- import { z as z198 } from "zod";
5603
+ import { z as z199 } from "zod";
5590
5604
 
5591
5605
  // src/api/dto/workspaces/npm-registry.ts
5592
- import { z as z197 } from "zod";
5606
+ import { z as z198 } from "zod";
5593
5607
  var DTONpmRegistryConfigConstants = {
5594
5608
  passwordPlaceholder: "redacted"
5595
5609
  };
5596
- var DTONpmRegistryConfig = z197.object({
5610
+ var DTONpmRegistryConfig = z198.object({
5597
5611
  // Registry basic configuration
5598
5612
  registryType: NpmRegistryType,
5599
- registryUrl: z197.string(),
5600
- customRegistryUrl: z197.string().optional(),
5613
+ registryUrl: z198.string(),
5614
+ customRegistryUrl: z198.string().optional(),
5601
5615
  // URL of Supernova NPM packages proxy
5602
- proxyUrl: z197.string(),
5616
+ proxyUrl: z198.string(),
5603
5617
  // Auth configuration
5604
5618
  authType: NpmRegistryAuthType,
5605
- accessToken: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5606
- username: z197.string().optional(),
5607
- password: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
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: z197.array(z197.string()),
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: z197.boolean()
5626
+ bypassProxy: z198.boolean()
5613
5627
  });
5614
5628
 
5615
5629
  // src/api/dto/workspaces/workspace.ts
5616
- var DTOWorkspace = z198.object({
5617
- id: z198.string(),
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 = z198.object({
5623
- name: z198.string()
5636
+ var DTOWorkspaceCreateInput = z199.object({
5637
+ name: z199.string()
5624
5638
  });
5625
- var DTOWorkspaceResponse = z198.object({
5639
+ var DTOWorkspaceResponse = z199.object({
5626
5640
  workspace: DTOWorkspace
5627
5641
  });
5628
5642
 
5629
5643
  // src/api/dto/workspaces/membership.ts
5630
- var DTOWorkspaceRole = z199.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5631
- var DTOUserWorkspaceMembership = z199.object({
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 = z199.object({
5642
- membership: z199.array(DTOUserWorkspaceMembership)
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 = z200.object({
5647
- preferredWorkspaceId: z200.string().optional(),
5648
- preferredDesignSystemId: z200.string().optional(),
5649
- preferredVersionId: z200.string().optional(),
5650
- preferredBrandId: z200.string().optional()
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 = z200.object({
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 z201 } from "zod";
5661
- var DTOTokenCollection = z201.object({
5662
- id: z201.string(),
5663
- persistentId: z201.string(),
5664
- designSystemVersionId: z201.string(),
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: z201.coerce.date(),
5667
- updatedAt: z201.coerce.date(),
5668
- origin: z201.object({
5669
- id: z201.string(),
5670
- sourceId: z201.string()
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 = z201.object({
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 z202 } from "zod";
5692
+ import { z as z203 } from "zod";
5679
5693
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5680
- var DTOGetDocumentationPageAnchorsResponse = z202.object({
5681
- anchors: z202.array(DTODocumentationPageAnchor)
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 z203 } from "zod";
5699
+ import { z as z204 } from "zod";
5686
5700
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5687
- var DTODocumentationGroupApprovalState = z203.object({
5688
- persistentId: z203.string(),
5689
- groupId: z203.string(),
5690
- designSystemVersionId: z203.string(),
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 z208 } from "zod";
5712
+ import { z as z209 } from "zod";
5699
5713
 
5700
5714
  // src/api/dto/elements/documentation/page-v2.ts
5701
- import { z as z207 } from "zod";
5715
+ import { z as z208 } from "zod";
5702
5716
 
5703
5717
  // src/api/dto/elements/documentation/draft-state.ts
5704
- import { z as z205 } from "zod";
5718
+ import { z as z206 } from "zod";
5705
5719
 
5706
5720
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5707
- import { z as z204 } from "zod";
5721
+ import { z as z205 } from "zod";
5708
5722
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5709
- var DTODocumentationItemConfigurationV2 = z204.object({
5710
- showSidebar: z204.boolean(),
5711
- isPrivate: z204.boolean(),
5712
- isHidden: z204.boolean(),
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 = z205.enum(["Created", "Updated", "Deleted"]);
5718
- var DTODocumentationDraftStateCreated = z205.object({
5719
- changeType: z205.literal(DTODocumentationDraftChangeType.enum.Created)
5720
- });
5721
- var DTODocumentationDraftStateUpdated = z205.object({
5722
- changeType: z205.literal(DTODocumentationDraftChangeType.enum.Updated),
5723
- changes: z205.object({
5724
- previousTitle: z205.string().optional(),
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: z205.string().optional()
5740
+ previousContentHash: z206.string().optional()
5727
5741
  })
5728
5742
  });
5729
- var DTODocumentationDraftStateDeleted = z205.object({
5730
- changeType: z205.literal(DTODocumentationDraftChangeType.enum.Deleted),
5731
- deletedAt: z205.coerce.date(),
5732
- deletedByUserId: z205.string()
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 = z205.discriminatedUnion("changeType", [
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 z206 } from "zod";
5742
- var DTODocumentationPublishMetadata = z206.object({
5743
- lastPublishedByUserId: z206.string(),
5744
- lastPublishedAt: z206.coerce.date()
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 = z207.object({
5749
- id: z207.string(),
5750
- persistentId: z207.string(),
5751
- designSystemVersionId: z207.string(),
5752
- title: z207.string(),
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: z207.string(),
5755
- slug: z207.string().optional(),
5756
- userSlug: z207.string().optional(),
5757
- createdAt: z207.coerce.date(),
5758
- updatedAt: z207.coerce.date(),
5759
- path: z207.string(),
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: z207.literal("Page")
5781
+ type: z208.literal("Page")
5768
5782
  });
5769
- var DTOCreateDocumentationPageInputV2 = z207.object({
5783
+ var DTOCreateDocumentationPageInputV2 = z208.object({
5770
5784
  // Identifier
5771
- persistentId: z207.string().uuid(),
5785
+ persistentId: z208.string().uuid(),
5772
5786
  // Page properties
5773
- title: z207.string(),
5787
+ title: z208.string(),
5774
5788
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5775
5789
  // Page placement properties
5776
- parentPersistentId: z207.string().uuid(),
5777
- afterPersistentId: z207.string().uuid().nullish()
5790
+ parentPersistentId: z208.string().uuid(),
5791
+ afterPersistentId: z208.string().uuid().nullish()
5778
5792
  });
5779
- var DTOUpdateDocumentationPageInputV2 = z207.object({
5793
+ var DTOUpdateDocumentationPageInputV2 = z208.object({
5780
5794
  // Identifier of the group to update
5781
- id: z207.string(),
5795
+ id: z208.string(),
5782
5796
  // Page properties
5783
- title: z207.string().optional(),
5797
+ title: z208.string().optional(),
5784
5798
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5785
5799
  });
5786
- var DTOMoveDocumentationPageInputV2 = z207.object({
5800
+ var DTOMoveDocumentationPageInputV2 = z208.object({
5787
5801
  // Identifier of the group to update
5788
- id: z207.string(),
5802
+ id: z208.string(),
5789
5803
  // Page placement properties
5790
- parentPersistentId: z207.string().uuid(),
5791
- afterPersistentId: z207.string().uuid().nullish()
5804
+ parentPersistentId: z208.string().uuid(),
5805
+ afterPersistentId: z208.string().uuid().nullish()
5792
5806
  });
5793
- var DTODuplicateDocumentationPageInputV2 = z207.object({
5807
+ var DTODuplicateDocumentationPageInputV2 = z208.object({
5794
5808
  // Identifier of the page to duplicate from
5795
- id: z207.string(),
5809
+ id: z208.string(),
5796
5810
  // New page persistent id
5797
- persistentId: z207.string().uuid(),
5811
+ persistentId: z208.string().uuid(),
5798
5812
  // Page placement properties
5799
- parentPersistentId: z207.string().uuid(),
5800
- afterPersistentId: z207.string().uuid().nullish()
5813
+ parentPersistentId: z208.string().uuid(),
5814
+ afterPersistentId: z208.string().uuid().nullish()
5801
5815
  });
5802
- var DTODeleteDocumentationPageInputV2 = z207.object({
5816
+ var DTODeleteDocumentationPageInputV2 = z208.object({
5803
5817
  // Identifier
5804
- id: z207.string()
5818
+ id: z208.string()
5805
5819
  });
5806
- var DTORestoreDocumentationPageInput = z207.object({
5807
- persistentId: z207.string(),
5808
- snapshotId: z207.string().optional()
5820
+ var DTORestoreDocumentationPageInput = z208.object({
5821
+ persistentId: z208.string(),
5822
+ snapshotId: z208.string().optional()
5809
5823
  });
5810
- var DTORestoreDocumentationGroupInput = z207.object({
5811
- persistentId: z207.string(),
5812
- snapshotId: z207.string().optional()
5824
+ var DTORestoreDocumentationGroupInput = z208.object({
5825
+ persistentId: z208.string(),
5826
+ snapshotId: z208.string().optional()
5813
5827
  });
5814
- var DTODocumentationPageApprovalStateChangeInput = z207.object({
5815
- persistentId: z207.string(),
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 = z208.object({
5821
- id: z208.string(),
5822
- designSystemVersionId: z208.string(),
5823
- createdAt: z208.string(),
5824
- updatedAt: z208.string(),
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: z208.string(),
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 z209 } from "zod";
5832
- var DTODocumentationLinkPreviewResponse = z209.object({
5845
+ import { z as z210 } from "zod";
5846
+ var DTODocumentationLinkPreviewResponse = z210.object({
5833
5847
  linkPreview: DocumentationLinkPreview
5834
5848
  });
5835
- var DTODocumentationLinkPreviewRequest = z209.object({
5836
- url: z209.string().optional(),
5837
- documentationItemPersistentId: z209.string().optional()
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 z213 } from "zod";
5855
+ import { z as z214 } from "zod";
5842
5856
 
5843
5857
  // src/api/dto/export/exporter.ts
5844
- import { z as z210 } from "zod";
5845
- var DTOExporterType = z210.enum(["documentation", "code"]);
5846
- var DTOExporterSource = z210.enum(["git", "upload"]);
5847
- var DTOExporterMembershipRole = z210.enum(["Owner", "OwnerArchived", "User"]);
5848
- var DTOExporter = z210.object({
5849
- id: z210.string(),
5850
- name: z210.string(),
5851
- isPrivate: z210.boolean(),
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: z210.boolean(),
5854
- iconURL: z210.string().optional(),
5867
+ isDefaultDocumentationExporter: z211.boolean(),
5868
+ iconURL: z211.string().optional(),
5855
5869
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5856
5870
  customBlocks: PulsarCustomBlock.array(),
5857
- blockVariants: z210.record(z210.string(), PulsarContributionVariant.array()),
5858
- usesBrands: z210.boolean(),
5859
- usesThemes: z210.boolean(),
5871
+ blockVariants: z211.record(z211.string(), PulsarContributionVariant.array()),
5872
+ usesBrands: z211.boolean(),
5873
+ usesThemes: z211.boolean(),
5860
5874
  source: DTOExporterSource,
5861
- gitUrl: z210.string().optional(),
5862
- gitBranch: z210.string().optional(),
5863
- gitDirectory: z210.string().optional()
5875
+ gitUrl: z211.string().optional(),
5876
+ gitBranch: z211.string().optional(),
5877
+ gitDirectory: z211.string().optional()
5864
5878
  });
5865
- var DTOExporterMembership = z210.object({
5866
- workspaceId: z210.string(),
5867
- exporterId: z210.string(),
5879
+ var DTOExporterMembership = z211.object({
5880
+ workspaceId: z211.string(),
5881
+ exporterId: z211.string(),
5868
5882
  role: DTOExporterMembershipRole
5869
5883
  });
5870
- var DTOExporterCreateOutput = z210.object({
5884
+ var DTOExporterCreateOutput = z211.object({
5871
5885
  exporter: DTOExporter,
5872
5886
  membership: DTOExporterMembership
5873
5887
  });
5874
- var DTOExporterGitProviderEnum = z210.enum(["github", "gitlab", "bitbucket", "azure"]);
5875
- var DTOExporterCreateInput = z210.object({
5876
- url: z210.string(),
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 = z210.object({
5880
- url: z210.string().optional()
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 z211 } from "zod";
5888
- var DTOExportJobCreatedBy = z211.object({
5889
- userId: z211.string(),
5890
- userName: z211.string()
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 = z211.object({
5893
- id: z211.string(),
5906
+ var DTOExportJobDesignSystemPreview = z212.object({
5907
+ id: z212.string(),
5894
5908
  meta: ObjectMeta
5895
5909
  });
5896
- var DTOExportJobDesignSystemVersionPreview = z211.object({
5897
- id: z211.string(),
5910
+ var DTOExportJobDesignSystemVersionPreview = z212.object({
5911
+ id: z212.string(),
5898
5912
  meta: ObjectMeta,
5899
- version: z211.string(),
5900
- isReadonly: z211.boolean()
5913
+ version: z212.string(),
5914
+ isReadonly: z212.boolean()
5901
5915
  });
5902
- var DTOExportJobDestinations = z211.object({
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: z211.string().optional()
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 = z211.object({
5917
- id: z211.string(),
5918
- createdAt: z211.coerce.date(),
5919
- finishedAt: z211.coerce.date().optional(),
5920
- index: z211.number().optional(),
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: z211.number().optional(),
5936
+ estimatedExecutionTime: z212.number().optional(),
5923
5937
  createdBy: DTOExportJobCreatedBy.optional(),
5924
5938
  designSystem: DTOExportJobDesignSystemPreview,
5925
5939
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5926
5940
  destinations: DTOExportJobDestinations,
5927
- exporterId: z211.string(),
5928
- scheduleId: z211.string().optional(),
5941
+ exporterId: z212.string(),
5942
+ scheduleId: z212.string().optional(),
5929
5943
  result: DTOExportJobResult.optional(),
5930
- brandPersistentId: z211.string().optional(),
5931
- themePersistentId: z211.string().optional(),
5932
- themePersistentIds: z211.string().array().optional()
5944
+ brandPersistentId: z212.string().optional(),
5945
+ themePersistentId: z212.string().optional(),
5946
+ themePersistentIds: z212.string().array().optional()
5933
5947
  });
5934
- var DTOExportJobResponse = z211.object({
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 z212 } from "zod";
5940
- var DTOPipeline = z212.object({
5941
- id: z212.string(),
5942
- name: z212.string(),
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: z212.boolean(),
5945
- workspaceId: z212.string(),
5946
- designSystemId: z212.string(),
5947
- exporterId: z212.string(),
5948
- brandPersistentId: z212.string().optional(),
5949
- themePersistentId: z212.string().optional(),
5950
- themePersistentIds: z212.string().array().optional(),
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 = z213.object({
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 = z213.object({
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 z214 } from "zod";
5984
+ import { z as z215 } from "zod";
5971
5985
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5972
- var DTOFigmaComponentPropertyMap = z214.record(DTOFigmaComponentProperty);
5973
- var DTOFigmaComponent = z214.object({
5974
- id: z214.string(),
5975
- persistentId: z214.string(),
5976
- designSystemVersionId: z214.string(),
5977
- brandId: z214.string(),
5978
- thumbnailUrl: z214.string().optional(),
5979
- svgUrl: z214.string().optional(),
5980
- exportProperties: z214.object({
5981
- isAsset: z214.boolean()
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: z214.coerce.date(),
5984
- updatedAt: z214.coerce.date(),
5997
+ createdAt: z215.coerce.date(),
5998
+ updatedAt: z215.coerce.date(),
5985
5999
  meta: ObjectMeta,
5986
6000
  originComponent: FigmaComponentOrigin.optional(),
5987
- parentComponentPersistentId: z214.string().optional(),
5988
- childrenPersistentIds: z214.string().array().optional(),
6001
+ parentComponentPersistentId: z215.string().optional(),
6002
+ childrenPersistentIds: z215.string().array().optional(),
5989
6003
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5990
- variantPropertyValues: z214.record(z214.string()).optional()
6004
+ variantPropertyValues: z215.record(z215.string()).optional()
5991
6005
  });
5992
- var DTOFigmaComponentListResponse = z214.object({
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 z216 } from "zod";
6011
+ import { z as z217 } from "zod";
5998
6012
 
5999
6013
  // src/api/dto/elements/documentation/group-v2.ts
6000
- import { z as z215 } from "zod";
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: z215.string(),
6011
- isRoot: z215.boolean(),
6012
- childrenIds: z215.array(z215.string()),
6024
+ title: z216.string(),
6025
+ isRoot: z216.boolean(),
6026
+ childrenIds: z216.array(z216.string()),
6013
6027
  groupBehavior: DocumentationGroupBehavior,
6014
- shortPersistentId: z215.string(),
6028
+ shortPersistentId: z216.string(),
6015
6029
  configuration: DTODocumentationItemConfigurationV2,
6016
- type: z215.literal("Group"),
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 = z215.object({
6038
+ var DTOCreateDocumentationGroupInput = z216.object({
6025
6039
  // Identifier
6026
- persistentId: z215.string().uuid(),
6040
+ persistentId: z216.string().uuid(),
6027
6041
  // Group properties
6028
- title: z215.string(),
6042
+ title: z216.string(),
6029
6043
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6030
6044
  // Group placement properties
6031
- afterPersistentId: z215.string().uuid().nullish(),
6032
- parentPersistentId: z215.string().uuid()
6045
+ afterPersistentId: z216.string().uuid().nullish(),
6046
+ parentPersistentId: z216.string().uuid()
6033
6047
  });
6034
- var DTOUpdateDocumentationGroupInput = z215.object({
6048
+ var DTOUpdateDocumentationGroupInput = z216.object({
6035
6049
  // Identifier of the group to update
6036
- id: z215.string(),
6050
+ id: z216.string(),
6037
6051
  // Group properties
6038
- title: z215.string().optional(),
6052
+ title: z216.string().optional(),
6039
6053
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6040
6054
  });
6041
- var DTOMoveDocumentationGroupInput = z215.object({
6055
+ var DTOMoveDocumentationGroupInput = z216.object({
6042
6056
  // Identifier of the group to update
6043
- id: z215.string(),
6057
+ id: z216.string(),
6044
6058
  // Group placement properties
6045
- parentPersistentId: z215.string().uuid(),
6046
- afterPersistentId: z215.string().uuid().nullish()
6059
+ parentPersistentId: z216.string().uuid(),
6060
+ afterPersistentId: z216.string().uuid().nullish()
6047
6061
  });
6048
- var DTODuplicateDocumentationGroupInput = z215.object({
6062
+ var DTODuplicateDocumentationGroupInput = z216.object({
6049
6063
  // Identifier of the group to duplicate from
6050
- id: z215.string(),
6064
+ id: z216.string(),
6051
6065
  // New group persistent id
6052
- persistentId: z215.string().uuid(),
6066
+ persistentId: z216.string().uuid(),
6053
6067
  // Group placement properties
6054
- afterPersistentId: z215.string().uuid().nullish(),
6055
- parentPersistentId: z215.string().uuid()
6068
+ afterPersistentId: z216.string().uuid().nullish(),
6069
+ parentPersistentId: z216.string().uuid()
6056
6070
  });
6057
- var DTOCreateDocumentationTabInput = z215.object({
6071
+ var DTOCreateDocumentationTabInput = z216.object({
6058
6072
  // New group persistent id
6059
- persistentId: z215.string().uuid(),
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: z215.string(),
6063
- tabName: z215.string()
6076
+ fromItemPersistentId: z216.string(),
6077
+ tabName: z216.string()
6064
6078
  });
6065
- var DTODeleteDocumentationTabGroupInput = z215.object({
6079
+ var DTODeleteDocumentationTabGroupInput = z216.object({
6066
6080
  // Deleted group id
6067
- id: z215.string()
6081
+ id: z216.string()
6068
6082
  });
6069
- var DTODeleteDocumentationGroupInput = z215.object({
6083
+ var DTODeleteDocumentationGroupInput = z216.object({
6070
6084
  // Identifier
6071
- id: z215.string(),
6085
+ id: z216.string(),
6072
6086
  // Deletion options
6073
- deleteSubtree: z215.boolean().default(false)
6087
+ deleteSubtree: z216.boolean().default(false)
6074
6088
  });
6075
6089
 
6076
6090
  // src/api/dto/elements/documentation/group-action.ts
6077
- var SuccessPayload = z216.object({
6078
- success: z216.literal(true)
6091
+ var SuccessPayload = z217.object({
6092
+ success: z217.literal(true)
6079
6093
  });
6080
- var DTODocumentationGroupCreateActionOutputV2 = z216.object({
6081
- type: z216.literal("DocumentationGroupCreate"),
6094
+ var DTODocumentationGroupCreateActionOutputV2 = z217.object({
6095
+ type: z217.literal("DocumentationGroupCreate"),
6082
6096
  output: SuccessPayload
6083
6097
  });
6084
- var DTODocumentationTabCreateActionOutputV2 = z216.object({
6085
- type: z216.literal("DocumentationTabCreate"),
6098
+ var DTODocumentationTabCreateActionOutputV2 = z217.object({
6099
+ type: z217.literal("DocumentationTabCreate"),
6086
6100
  output: SuccessPayload
6087
6101
  });
6088
- var DTODocumentationGroupUpdateActionOutputV2 = z216.object({
6089
- type: z216.literal("DocumentationGroupUpdate"),
6102
+ var DTODocumentationGroupUpdateActionOutputV2 = z217.object({
6103
+ type: z217.literal("DocumentationGroupUpdate"),
6090
6104
  output: SuccessPayload
6091
6105
  });
6092
- var DTODocumentationGroupMoveActionOutputV2 = z216.object({
6093
- type: z216.literal("DocumentationGroupMove"),
6106
+ var DTODocumentationGroupMoveActionOutputV2 = z217.object({
6107
+ type: z217.literal("DocumentationGroupMove"),
6094
6108
  output: SuccessPayload
6095
6109
  });
6096
- var DTODocumentationGroupDuplicateActionOutputV2 = z216.object({
6097
- type: z216.literal("DocumentationGroupDuplicate"),
6110
+ var DTODocumentationGroupDuplicateActionOutputV2 = z217.object({
6111
+ type: z217.literal("DocumentationGroupDuplicate"),
6098
6112
  output: SuccessPayload
6099
6113
  });
6100
- var DTODocumentationGroupDeleteActionOutputV2 = z216.object({
6101
- type: z216.literal("DocumentationGroupDelete"),
6114
+ var DTODocumentationGroupDeleteActionOutputV2 = z217.object({
6115
+ type: z217.literal("DocumentationGroupDelete"),
6102
6116
  output: SuccessPayload
6103
6117
  });
6104
- var DTODocumentationTabGroupDeleteActionOutputV2 = z216.object({
6105
- type: z216.literal("DocumentationTabGroupDelete"),
6118
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z217.object({
6119
+ type: z217.literal("DocumentationTabGroupDelete"),
6106
6120
  output: SuccessPayload
6107
6121
  });
6108
- var DTODocumentationGroupCreateActionInputV2 = z216.object({
6109
- type: z216.literal("DocumentationGroupCreate"),
6122
+ var DTODocumentationGroupCreateActionInputV2 = z217.object({
6123
+ type: z217.literal("DocumentationGroupCreate"),
6110
6124
  input: DTOCreateDocumentationGroupInput
6111
6125
  });
6112
- var DTODocumentationTabCreateActionInputV2 = z216.object({
6113
- type: z216.literal("DocumentationTabCreate"),
6126
+ var DTODocumentationTabCreateActionInputV2 = z217.object({
6127
+ type: z217.literal("DocumentationTabCreate"),
6114
6128
  input: DTOCreateDocumentationTabInput
6115
6129
  });
6116
- var DTODocumentationGroupUpdateActionInputV2 = z216.object({
6117
- type: z216.literal("DocumentationGroupUpdate"),
6130
+ var DTODocumentationGroupUpdateActionInputV2 = z217.object({
6131
+ type: z217.literal("DocumentationGroupUpdate"),
6118
6132
  input: DTOUpdateDocumentationGroupInput
6119
6133
  });
6120
- var DTODocumentationGroupMoveActionInputV2 = z216.object({
6121
- type: z216.literal("DocumentationGroupMove"),
6134
+ var DTODocumentationGroupMoveActionInputV2 = z217.object({
6135
+ type: z217.literal("DocumentationGroupMove"),
6122
6136
  input: DTOMoveDocumentationGroupInput
6123
6137
  });
6124
- var DTODocumentationGroupDuplicateActionInputV2 = z216.object({
6125
- type: z216.literal("DocumentationGroupDuplicate"),
6138
+ var DTODocumentationGroupDuplicateActionInputV2 = z217.object({
6139
+ type: z217.literal("DocumentationGroupDuplicate"),
6126
6140
  input: DTODuplicateDocumentationGroupInput
6127
6141
  });
6128
- var DTODocumentationGroupDeleteActionInputV2 = z216.object({
6129
- type: z216.literal("DocumentationGroupDelete"),
6142
+ var DTODocumentationGroupDeleteActionInputV2 = z217.object({
6143
+ type: z217.literal("DocumentationGroupDelete"),
6130
6144
  input: DTODeleteDocumentationGroupInput
6131
6145
  });
6132
- var DTODocumentationTabGroupDeleteActionInputV2 = z216.object({
6133
- type: z216.literal("DocumentationTabGroupDelete"),
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 z218 } from "zod";
6152
+ import { z as z219 } from "zod";
6139
6153
 
6140
6154
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6141
- import { z as z217 } from "zod";
6142
- var DocumentationColorV1 = z217.object({
6143
- aliasTo: z217.string().optional(),
6144
- value: z217.string().optional()
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 = z217.object({
6154
- showSidebar: z217.boolean(),
6155
- isPrivate: z217.boolean(),
6156
- isHidden: z217.boolean(),
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: z218.string(),
6171
- isRoot: z218.boolean(),
6172
- childrenIds: z218.array(z218.string()),
6184
+ title: z219.string(),
6185
+ isRoot: z219.boolean(),
6186
+ childrenIds: z219.array(z219.string()),
6173
6187
  groupBehavior: DocumentationGroupBehavior,
6174
- shortPersistentId: z218.string(),
6175
- type: z218.literal("Group")
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 z219 } from "zod";
6183
- var DTODocumentationHierarchyV2 = z219.object({
6184
- pages: z219.array(
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: z219.array(
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 z220 } from "zod";
6200
- var SuccessPayload2 = z220.object({
6201
- success: z220.literal(true)
6213
+ import { z as z221 } from "zod";
6214
+ var SuccessPayload2 = z221.object({
6215
+ success: z221.literal(true)
6202
6216
  });
6203
- var DTODocumentationPageCreateActionOutputV2 = z220.object({
6204
- type: z220.literal("DocumentationPageCreate"),
6217
+ var DTODocumentationPageCreateActionOutputV2 = z221.object({
6218
+ type: z221.literal("DocumentationPageCreate"),
6205
6219
  output: SuccessPayload2
6206
6220
  });
6207
- var DTODocumentationPageUpdateActionOutputV2 = z220.object({
6208
- type: z220.literal("DocumentationPageUpdate"),
6221
+ var DTODocumentationPageUpdateActionOutputV2 = z221.object({
6222
+ type: z221.literal("DocumentationPageUpdate"),
6209
6223
  output: SuccessPayload2
6210
6224
  });
6211
- var DTODocumentationPageMoveActionOutputV2 = z220.object({
6212
- type: z220.literal("DocumentationPageMove"),
6225
+ var DTODocumentationPageMoveActionOutputV2 = z221.object({
6226
+ type: z221.literal("DocumentationPageMove"),
6213
6227
  output: SuccessPayload2
6214
6228
  });
6215
- var DTODocumentationPageDuplicateActionOutputV2 = z220.object({
6216
- type: z220.literal("DocumentationPageDuplicate"),
6229
+ var DTODocumentationPageDuplicateActionOutputV2 = z221.object({
6230
+ type: z221.literal("DocumentationPageDuplicate"),
6217
6231
  output: SuccessPayload2
6218
6232
  });
6219
- var DTODocumentationPageDeleteActionOutputV2 = z220.object({
6220
- type: z220.literal("DocumentationPageDelete"),
6233
+ var DTODocumentationPageDeleteActionOutputV2 = z221.object({
6234
+ type: z221.literal("DocumentationPageDelete"),
6221
6235
  output: SuccessPayload2
6222
6236
  });
6223
- var DTODocumentationPageRestoreActionOutput = z220.object({
6224
- type: z220.literal("DocumentationPageRestore"),
6237
+ var DTODocumentationPageRestoreActionOutput = z221.object({
6238
+ type: z221.literal("DocumentationPageRestore"),
6225
6239
  output: SuccessPayload2
6226
6240
  });
6227
- var DTODocumentationGroupRestoreActionOutput = z220.object({
6228
- type: z220.literal("DocumentationGroupRestore"),
6241
+ var DTODocumentationGroupRestoreActionOutput = z221.object({
6242
+ type: z221.literal("DocumentationGroupRestore"),
6229
6243
  output: SuccessPayload2
6230
6244
  });
6231
- var DTODocumentationPageApprovalStateChangeActionOutput = z220.object({
6232
- type: z220.literal("DocumentationPageApprovalStateChange"),
6245
+ var DTODocumentationPageApprovalStateChangeActionOutput = z221.object({
6246
+ type: z221.literal("DocumentationPageApprovalStateChange"),
6233
6247
  output: SuccessPayload2
6234
6248
  });
6235
- var DTODocumentationPageCreateActionInputV2 = z220.object({
6236
- type: z220.literal("DocumentationPageCreate"),
6249
+ var DTODocumentationPageCreateActionInputV2 = z221.object({
6250
+ type: z221.literal("DocumentationPageCreate"),
6237
6251
  input: DTOCreateDocumentationPageInputV2
6238
6252
  });
6239
- var DTODocumentationPageUpdateActionInputV2 = z220.object({
6240
- type: z220.literal("DocumentationPageUpdate"),
6253
+ var DTODocumentationPageUpdateActionInputV2 = z221.object({
6254
+ type: z221.literal("DocumentationPageUpdate"),
6241
6255
  input: DTOUpdateDocumentationPageInputV2
6242
6256
  });
6243
- var DTODocumentationPageMoveActionInputV2 = z220.object({
6244
- type: z220.literal("DocumentationPageMove"),
6257
+ var DTODocumentationPageMoveActionInputV2 = z221.object({
6258
+ type: z221.literal("DocumentationPageMove"),
6245
6259
  input: DTOMoveDocumentationPageInputV2
6246
6260
  });
6247
- var DTODocumentationPageDuplicateActionInputV2 = z220.object({
6248
- type: z220.literal("DocumentationPageDuplicate"),
6261
+ var DTODocumentationPageDuplicateActionInputV2 = z221.object({
6262
+ type: z221.literal("DocumentationPageDuplicate"),
6249
6263
  input: DTODuplicateDocumentationPageInputV2
6250
6264
  });
6251
- var DTODocumentationPageDeleteActionInputV2 = z220.object({
6252
- type: z220.literal("DocumentationPageDelete"),
6265
+ var DTODocumentationPageDeleteActionInputV2 = z221.object({
6266
+ type: z221.literal("DocumentationPageDelete"),
6253
6267
  input: DTODeleteDocumentationPageInputV2
6254
6268
  });
6255
- var DTODocumentationPageRestoreActionInput = z220.object({
6256
- type: z220.literal("DocumentationPageRestore"),
6269
+ var DTODocumentationPageRestoreActionInput = z221.object({
6270
+ type: z221.literal("DocumentationPageRestore"),
6257
6271
  input: DTORestoreDocumentationPageInput
6258
6272
  });
6259
- var DTODocumentationGroupRestoreActionInput = z220.object({
6260
- type: z220.literal("DocumentationGroupRestore"),
6273
+ var DTODocumentationGroupRestoreActionInput = z221.object({
6274
+ type: z221.literal("DocumentationGroupRestore"),
6261
6275
  input: DTORestoreDocumentationGroupInput
6262
6276
  });
6263
- var DTODocumentationPageApprovalStateChangeActionInput = z220.object({
6264
- type: z220.literal("DocumentationPageApprovalStateChange"),
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 z221 } from "zod";
6283
+ import { z as z222 } from "zod";
6270
6284
  var DTODocumentationPageContent = DocumentationPageContent;
6271
- var DTODocumentationPageContentGetResponse = z221.object({
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 z222 } from "zod";
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: z222.array(PageBlockV1),
6285
- title: z222.string(),
6286
- path: z222.string()
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 z223 } from "zod";
6304
+ import { z as z224 } from "zod";
6291
6305
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6292
- var DTOFigmaNodeOrigin = z223.object({
6293
- sourceId: z223.string(),
6294
- fileId: z223.string().optional(),
6295
- parentName: z223.string().optional()
6306
+ var DTOFigmaNodeOrigin = z224.object({
6307
+ sourceId: z224.string(),
6308
+ fileId: z224.string().optional(),
6309
+ parentName: z224.string().optional()
6296
6310
  });
6297
- var DTOFigmaNodeData = z223.object({
6311
+ var DTOFigmaNodeData = z224.object({
6298
6312
  // Id of the node in the Figma file
6299
- figmaNodeId: z223.string(),
6313
+ figmaNodeId: z224.string(),
6300
6314
  // Validity
6301
- isValid: z223.boolean(),
6315
+ isValid: z224.boolean(),
6302
6316
  // Asset data
6303
- assetId: z223.string(),
6304
- assetUrl: z223.string(),
6317
+ assetId: z224.string(),
6318
+ assetUrl: z224.string(),
6305
6319
  assetFormat: DTOFigmaNodeRenderFormat,
6306
6320
  // Asset metadata
6307
- assetScale: z223.number(),
6308
- assetWidth: z223.number().optional(),
6309
- assetHeight: z223.number().optional()
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 = z223.object({
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: z223.string(),
6336
+ sourceId: z224.string(),
6323
6337
  /**
6324
6338
  * Id of a node within the Figma file
6325
6339
  */
6326
- figmaFileNodeId: z223.string(),
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 z224 } from "zod";
6335
- var DTOFigmaNodeRenderActionOutput = z224.object({
6336
- type: z224.literal("FigmaNodeRender"),
6337
- figmaNodes: z224.array(DTOFigmaNode)
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 = z224.object({
6340
- type: z224.literal("FigmaNodeRender"),
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 z226 } from "zod";
6359
+ import { z as z227 } from "zod";
6346
6360
 
6347
6361
  // src/api/dto/elements/properties/property-definitions.ts
6348
- import { z as z225 } from "zod";
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 = z225.object({
6351
- id: z225.string(),
6352
- designSystemVersionId: z225.string(),
6364
+ var DTOElementPropertyDefinition = z226.object({
6365
+ id: z226.string(),
6366
+ designSystemVersionId: z226.string(),
6353
6367
  meta: ObjectMeta,
6354
- persistentId: z225.string(),
6368
+ persistentId: z226.string(),
6355
6369
  type: ElementPropertyTypeSchema,
6356
6370
  targetElementType: ElementPropertyTargetType,
6357
- codeName: z225.string().regex(CODE_NAME_REGEX2),
6358
- options: z225.array(ElementPropertyDefinitionOption).optional(),
6371
+ codeName: z226.string().regex(CODE_NAME_REGEX2),
6372
+ options: z226.array(ElementPropertyDefinitionOption).optional(),
6359
6373
  linkElementType: ElementPropertyLinkType.optional()
6360
6374
  });
6361
- var DTOElementPropertyDefinitionsGetResponse = z225.object({
6362
- definitions: z225.array(DTOElementPropertyDefinition)
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 = z225.object({
6369
- id: z225.string(),
6370
- name: z225.string().optional(),
6371
- description: z225.string().optional(),
6372
- codeName: z225.string().regex(CODE_NAME_REGEX2).optional(),
6373
- options: z225.array(ElementPropertyDefinitionOption).optional()
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 = z225.object({
6376
- id: z225.string()
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 = z226.object({
6381
- success: z226.literal(true)
6394
+ var SuccessPayload3 = z227.object({
6395
+ success: z227.literal(true)
6382
6396
  });
6383
- var DTOPropertyDefinitionCreateActionOutputV2 = z226.object({
6384
- type: z226.literal("PropertyDefinitionCreate"),
6397
+ var DTOPropertyDefinitionCreateActionOutputV2 = z227.object({
6398
+ type: z227.literal("PropertyDefinitionCreate"),
6385
6399
  definition: DTOElementPropertyDefinition
6386
6400
  });
6387
- var DTOPropertyDefinitionUpdateActionOutputV2 = z226.object({
6388
- type: z226.literal("PropertyDefinitionUpdate"),
6401
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z227.object({
6402
+ type: z227.literal("PropertyDefinitionUpdate"),
6389
6403
  definition: DTOElementPropertyDefinition
6390
6404
  });
6391
- var DTOPropertyDefinitionDeleteActionOutputV2 = z226.object({
6392
- type: z226.literal("PropertyDefinitionDelete"),
6405
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z227.object({
6406
+ type: z227.literal("PropertyDefinitionDelete"),
6393
6407
  output: SuccessPayload3
6394
6408
  });
6395
- var DTOPropertyDefinitionCreateActionInputV2 = z226.object({
6396
- type: z226.literal("PropertyDefinitionCreate"),
6409
+ var DTOPropertyDefinitionCreateActionInputV2 = z227.object({
6410
+ type: z227.literal("PropertyDefinitionCreate"),
6397
6411
  input: DTOCreateElementPropertyDefinitionInputV2
6398
6412
  });
6399
- var DTOPropertyDefinitionUpdateActionInputV2 = z226.object({
6400
- type: z226.literal("PropertyDefinitionUpdate"),
6413
+ var DTOPropertyDefinitionUpdateActionInputV2 = z227.object({
6414
+ type: z227.literal("PropertyDefinitionUpdate"),
6401
6415
  input: DTOUpdateElementPropertyDefinitionInputV2
6402
6416
  });
6403
- var DTOPropertyDefinitionDeleteActionInputV2 = z226.object({
6404
- type: z226.literal("PropertyDefinitionDelete"),
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 z227 } from "zod";
6410
- var DTOElementPropertyValue = z227.object({
6411
- id: z227.string(),
6412
- designSystemVersionId: z227.string(),
6413
- definitionId: z227.string(),
6414
- targetElementId: z227.string(),
6415
- value: z227.union([z227.string(), z227.number(), z227.boolean()]).optional(),
6416
- valuePreview: z227.string().optional()
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 = z227.object({
6419
- values: z227.array(DTOElementPropertyValue)
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 z228 } from "zod";
6424
- var DTOElementActionOutput = z228.discriminatedUnion("type", [
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 = z228.discriminatedUnion("type", [
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 z229 } from "zod";
6481
- var DTOElementsGetTypeFilter = z229.enum(["FigmaNode"]);
6482
- var DTOElementsGetQuerySchema = z229.object({
6483
- types: z229.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
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 = z229.object({
6486
- figmaNodes: z229.array(DTOFigmaNode).optional()
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 z230 } from "zod";
6491
- var DTOAssetRenderConfiguration = z230.object({
6492
- prefix: z230.string().optional(),
6493
- suffix: z230.string().optional(),
6494
- scale: z230.enum(["x1", "x2", "x3", "x4"]),
6495
- format: z230.enum(["png", "pdf", "svg"])
6496
- });
6497
- var DTORenderedAssetFile = z230.object({
6498
- assetId: z230.string(),
6499
- fileName: z230.string(),
6500
- sourceUrl: z230.string(),
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: z230.string()
6516
+ originalName: z231.string()
6503
6517
  });
6504
- var DTODownloadAssetsRequest = z230.object({
6505
- persistentIds: z230.array(z230.string().uuid()).optional(),
6518
+ var DTODownloadAssetsRequest = z231.object({
6519
+ persistentIds: z231.array(z231.string().uuid()).optional(),
6506
6520
  settings: DTOAssetRenderConfiguration.array()
6507
6521
  });
6508
- var DTODownloadAssetsResponse = z230.object({
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 z231 } from "zod";
6514
- var DTOLiveblocksAuthResponse = z231.object({
6515
- token: z231.string()
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 z233 } from "zod";
6533
+ import { z as z234 } from "zod";
6520
6534
 
6521
6535
  // src/api/dto/users/user.ts
6522
- import { z as z232 } from "zod";
6523
- var DTOUserProfile = z232.object({
6524
- name: z232.string(),
6525
- nickname: z232.string().optional(),
6526
- avatar: z232.string().optional()
6527
- });
6528
- var DTOUser = z232.object({
6529
- id: z232.string(),
6530
- email: z232.string(),
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 = z232.object({
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 = z233.object({
6543
- companyName: z233.string().optional(),
6544
- numberOfPeopleInOrg: z233.string().optional(),
6545
- numberOfPeopleInDesignTeam: z233.string().optional(),
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: z233.string().optional(),
6548
- phase: z233.string().optional(),
6561
+ jobTitle: z234.string().optional(),
6562
+ phase: z234.string().optional(),
6549
6563
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6550
- designSystemName: z233.string().optional(),
6551
- defaultDestination: z233.string().optional(),
6552
- isPageDraftOnboardingFinished: z233.boolean().optional()
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: z233.coerce.date(),
6560
- loggedOutAt: z233.coerce.date().optional(),
6573
+ createdAt: z234.coerce.date(),
6574
+ loggedOutAt: z234.coerce.date().optional(),
6561
6575
  source: DTOUserSource.optional()
6562
6576
  });
6563
- var DTOAuthenticatedUserResponse = z233.object({
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 z234 } from "zod";
6569
- var DTOUserProfileUpdateResponse = z234.object({
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-members.ts
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 z235 } from "zod";
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}`, z235.any());
6708
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z240.any());
6619
6709
  }
6620
6710
  delete(dsId) {
6621
- return this.requestExecutor.json(`/design-systems/${dsId}`, z235.any(), { method: "DELETE" });
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/token-collections.ts
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 z236 } from "zod";
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`, z236.any(), { method: "POST", body });
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 z237 } from "zod";
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}`, z237.any(), { method: "DELETE" });
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`, z237.any(), { method: "GET" });
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 z238 } from "zod";
6800
- var ResponseWrapper = z238.object({
6801
- result: z238.record(z238.any())
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 z239 } from "zod";
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 = z239.object({
7454
- routingVersion: z239.string(),
7455
- isDraftFeatureAdopted: z239.boolean(),
7456
- isApprovalFeatureEnabled: z239.boolean(),
7457
- approvalRequiredForPublishing: z239.boolean()
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 z240 } from "zod";
7465
- var DTODocumentationPageRoomHeaderData = z240.object({
7466
- title: z240.string(),
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 = z240.object({
7470
- title: z240.string().optional(),
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: z240.string().parse(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 z241 } from "zod";
7532
- var DocumentationPageEditorModel = z241.object({
7533
- blocks: z241.array(DocumentationPageContentItem)
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 z242 } from "zod";
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", z242.string()) ?? "",
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", z242.string());
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", z242.string().optional()));
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", z242.string().optional());
11428
+ const href = getProsemirrorAttribute(mark, "href", z247.string().optional());
11339
11429
  if (!href)
11340
11430
  return null;
11341
- const target = getProsemirrorAttribute(mark, "target", z242.string().optional());
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", z242.string().optional());
11450
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z247.string().optional());
11361
11451
  if (!highlightId)
11362
11452
  return null;
11363
- const isResolved = getProsemirrorAttribute(mark, "resolved", z242.boolean().optional()) ?? false;
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", z242.boolean().optional()) !== false;
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", z242.string().optional());
11512
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z247.string().optional());
11423
11513
  let columnWidth;
11424
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z242.array(z242.number()).nullish());
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", z242.string());
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", z242.string());
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", z242.string().optional());
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", z242.number().optional());
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", z242.string().optional());
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", z242.string());
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(z242.string()));
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,