@supernova-studio/client 0.55.19 → 0.55.21

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