@supernova-studio/client 0.55.22 → 0.55.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3626,6 +3626,9 @@ var DesignSystemMemberUpdate = z115.object({
3626
3626
  designSystemRole: DesignSystemRole.nullable()
3627
3627
  });
3628
3628
  var DesignSystemInviteUpdate = z115.object({
3629
+ /**
3630
+ * Workspace invitation id
3631
+ */
3629
3632
  inviteId: z115.string(),
3630
3633
  designSystemRole: DesignSystemRole.nullable()
3631
3634
  });
@@ -5041,7 +5044,7 @@ var DTOPagination = z174.object({
5041
5044
  });
5042
5045
 
5043
5046
  // src/api/dto/bff/app-bootstrap-data.ts
5044
- import { z as z201 } from "zod";
5047
+ import { z as z202 } from "zod";
5045
5048
 
5046
5049
  // src/api/dto/design-systems/brand.ts
5047
5050
  import { z as z175 } from "zod";
@@ -5258,34 +5261,46 @@ import { z as z181 } from "zod";
5258
5261
  var DTOExporterProperty = z181.any({});
5259
5262
  var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
5260
5263
 
5264
+ // src/api/dto/design-systems/stats.ts
5265
+ import { z as z182 } from "zod";
5266
+ var DTODesignSystemVersionStats = z182.object({
5267
+ tokens: z182.number(),
5268
+ designSystemComponents: z182.number(),
5269
+ assets: z182.number(),
5270
+ documentationPages: z182.number()
5271
+ });
5272
+ var DTODesignSystemVersionStatsQuery = z182.object({
5273
+ brandId: z182.string().optional()
5274
+ });
5275
+
5261
5276
  // src/api/dto/design-systems/version.ts
5262
- import { z as z193 } from "zod";
5277
+ import { z as z194 } from "zod";
5263
5278
 
5264
5279
  // src/api/payloads/design-systems/brand.ts
5265
- import { z as z182 } from "zod";
5266
- var DTOCreateBrandInput = z182.object({
5267
- persistentId: z182.string().uuid(),
5268
- meta: z182.object({
5269
- name: z182.string(),
5270
- description: z182.string()
5280
+ import { z as z183 } from "zod";
5281
+ var DTOCreateBrandInput = z183.object({
5282
+ persistentId: z183.string().uuid(),
5283
+ meta: z183.object({
5284
+ name: z183.string(),
5285
+ description: z183.string()
5271
5286
  })
5272
5287
  });
5273
5288
 
5274
5289
  // src/api/payloads/design-systems/theme.ts
5275
- import { z as z183 } from "zod";
5276
- var DTOCreateThemeInput = z183.object({
5290
+ import { z as z184 } from "zod";
5291
+ var DTOCreateThemeInput = z184.object({
5277
5292
  meta: ObjectMeta,
5278
- persistentId: z183.string(),
5279
- designSystemVersionId: z183.string(),
5280
- brandId: z183.string(),
5281
- codeName: z183.string(),
5282
- version: z183.string().optional(),
5283
- overrides: z183.array(z183.any())
5293
+ persistentId: z184.string(),
5294
+ designSystemVersionId: z184.string(),
5295
+ brandId: z184.string(),
5296
+ codeName: z184.string(),
5297
+ version: z184.string().optional(),
5298
+ overrides: z184.array(z184.any())
5284
5299
  // TODO Add actual overrides.
5285
5300
  });
5286
5301
 
5287
5302
  // src/api/payloads/design-systems/update-design-system.ts
5288
- import { z as z184 } from "zod";
5303
+ import { z as z185 } from "zod";
5289
5304
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5290
5305
  id: true,
5291
5306
  workspaceId: true,
@@ -5297,40 +5312,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5297
5312
  }).extend({
5298
5313
  meta: ObjectMeta.partial().optional()
5299
5314
  });
5300
- var DTODesignSystemUpdateAccessModeInput = z184.object({
5315
+ var DTODesignSystemUpdateAccessModeInput = z185.object({
5301
5316
  accessMode: DesignSystemAccessMode,
5302
- retain: z184.object({
5303
- userIds: z184.string().array(),
5304
- inviteIds: z184.string().array()
5317
+ retain: z185.object({
5318
+ userIds: z185.string().array(),
5319
+ inviteIds: z185.string().array()
5305
5320
  }).optional()
5306
5321
  });
5307
5322
 
5308
5323
  // src/api/payloads/design-systems/version.ts
5309
- import { z as z185 } from "zod";
5310
- var ObjectMeta2 = z185.object({
5311
- name: z185.string().max(150).optional(),
5312
- description: z185.string().max(2e3).optional()
5324
+ import { z as z186 } from "zod";
5325
+ var ObjectMeta2 = z186.object({
5326
+ name: z186.string().max(150).optional(),
5327
+ description: z186.string().max(2e3).optional()
5313
5328
  });
5314
5329
  function validateDesignSystemVersion(version) {
5315
5330
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5316
5331
  return urlCompliantRegex.test(version);
5317
5332
  }
5318
- var DTOCreateVersionInput = z185.object({
5333
+ var DTOCreateVersionInput = z186.object({
5319
5334
  meta: ObjectMeta2,
5320
- version: z185.string().refine(validateDesignSystemVersion, {
5335
+ version: z186.string().refine(validateDesignSystemVersion, {
5321
5336
  message: "Invalid semantic versioning format"
5322
5337
  }),
5323
- changeLog: z185.string().optional()
5338
+ changeLog: z186.string().optional()
5324
5339
  });
5325
- var DTOUpdateVersionInput = z185.object({
5340
+ var DTOUpdateVersionInput = z186.object({
5326
5341
  meta: ObjectMeta2,
5327
- version: z185.string(),
5342
+ version: z186.string(),
5328
5343
  // required for PUT, but not editable
5329
- changeLog: z185.string()
5344
+ changeLog: z186.string()
5330
5345
  });
5331
5346
 
5332
5347
  // src/api/payloads/documentation/block-definitions.ts
5333
- import { z as z186 } from "zod";
5348
+ import { z as z187 } from "zod";
5334
5349
 
5335
5350
  // src/api/dto/documentation/block-definition.ts
5336
5351
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5342,60 +5357,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5342
5357
  var DTOPageBlockDefinition = PageBlockDefinition;
5343
5358
 
5344
5359
  // src/api/payloads/documentation/block-definitions.ts
5345
- var DTOGetBlockDefinitionsOutput = z186.object({
5346
- definitions: z186.array(DTOPageBlockDefinition)
5360
+ var DTOGetBlockDefinitionsOutput = z187.object({
5361
+ definitions: z187.array(DTOPageBlockDefinition)
5347
5362
  });
5348
5363
 
5349
5364
  // src/api/payloads/documentation/design-data-doc-diff.ts
5350
- import { z as z187 } from "zod";
5351
- var DTODocumentationPublishTypeQueryParams = z187.object({
5352
- environment: z187.enum(["Live", "Preview"])
5365
+ import { z as z188 } from "zod";
5366
+ var DTODocumentationPublishTypeQueryParams = z188.object({
5367
+ environment: z188.enum(["Live", "Preview"])
5353
5368
  });
5354
5369
 
5355
5370
  // src/api/payloads/export/pipeline.ts
5356
- import { z as z188 } from "zod";
5357
- var DTOPipelineCreateBody = z188.object({
5358
- name: z188.string(),
5359
- exporterId: z188.string(),
5360
- designSystemId: z188.string(),
5361
- isEnabled: z188.boolean(),
5371
+ import { z as z189 } from "zod";
5372
+ var DTOPipelineCreateBody = z189.object({
5373
+ name: z189.string(),
5374
+ exporterId: z189.string(),
5375
+ designSystemId: z189.string(),
5376
+ isEnabled: z189.boolean(),
5362
5377
  eventType: PipelineEventType,
5363
- brandPersistentId: z188.string().optional(),
5364
- themePersistentId: z188.string().optional(),
5365
- themePersistentIds: z188.string().array().optional(),
5378
+ brandPersistentId: z189.string().optional(),
5379
+ themePersistentId: z189.string().optional(),
5380
+ themePersistentIds: z189.string().array().optional(),
5366
5381
  destination: PipelineDestinationType.optional(),
5367
5382
  gitQuery: GitObjectsQuery,
5368
- destinations: z188.object({
5383
+ destinations: z189.object({
5369
5384
  s3: ExporterDestinationS3.nullish(),
5370
5385
  azure: ExporterDestinationAzure.nullish(),
5371
5386
  bitbucket: ExporterDestinationBitbucket.nullish(),
5372
5387
  github: ExporterDestinationGithub.nullish(),
5373
5388
  gitlab: ExporterDestinationGitlab.nullish(),
5374
5389
  documentation: ExporterDestinationDocs.nullish(),
5375
- webhookUrl: z188.string().nullish()
5390
+ webhookUrl: z189.string().nullish()
5376
5391
  })
5377
5392
  });
5378
5393
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5379
- id: z188.string()
5394
+ id: z189.string()
5380
5395
  });
5381
- var DTOPipelineTriggerBody = z188.object({
5382
- designSystemVersionId: z188.string()
5396
+ var DTOPipelineTriggerBody = z189.object({
5397
+ designSystemVersionId: z189.string()
5383
5398
  });
5384
5399
 
5385
5400
  // src/api/payloads/liveblocks/auth.ts
5386
- import { z as z189 } from "zod";
5387
- var DTOLiveblocksAuthRequest = z189.object({
5388
- room: z189.string().optional()
5401
+ import { z as z190 } from "zod";
5402
+ var DTOLiveblocksAuthRequest = z190.object({
5403
+ room: z190.string().optional()
5389
5404
  });
5390
5405
 
5391
5406
  // src/api/payloads/users/notifications/notification-settings.ts
5392
- import { z as z190 } from "zod";
5393
- var DTOUpdateUserNotificationSettingsPayload = z190.object({
5407
+ import { z as z191 } from "zod";
5408
+ var DTOUpdateUserNotificationSettingsPayload = z191.object({
5394
5409
  notificationSettings: UserNotificationSettings
5395
5410
  });
5396
- var DTOUserNotificationSettingsResponse = z190.object({
5397
- userId: z190.string(),
5398
- workspaceId: z190.string(),
5411
+ var DTOUserNotificationSettingsResponse = z191.object({
5412
+ userId: z191.string(),
5413
+ workspaceId: z191.string(),
5399
5414
  notificationSettings: UserNotificationSettings
5400
5415
  });
5401
5416
 
@@ -5403,7 +5418,7 @@ var DTOUserNotificationSettingsResponse = z190.object({
5403
5418
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5404
5419
 
5405
5420
  // src/api/payloads/workspaces/workspace-configuration.ts
5406
- import { z as z191 } from "zod";
5421
+ import { z as z192 } from "zod";
5407
5422
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5408
5423
  function validateSsoPayload(ssoPayload) {
5409
5424
  const keys = [];
@@ -5426,21 +5441,21 @@ function validateSsoPayload(ssoPayload) {
5426
5441
  keys
5427
5442
  };
5428
5443
  }
5429
- var NpmRegistryInput = z191.object({
5430
- enabledScopes: z191.array(z191.string()),
5431
- customRegistryUrl: z191.string().optional(),
5432
- bypassProxy: z191.boolean().optional(),
5433
- npmProxyRegistryConfigId: z191.string().optional(),
5434
- npmProxyVersion: z191.number().optional(),
5435
- registryType: z191.string(),
5436
- authType: z191.string(),
5437
- authHeaderName: z191.string(),
5438
- authHeaderValue: z191.string(),
5439
- accessToken: z191.string(),
5440
- username: z191.string(),
5441
- password: z191.string()
5442
- });
5443
- var WorkspaceConfigurationPayload = z191.object({
5444
+ var NpmRegistryInput = z192.object({
5445
+ enabledScopes: z192.array(z192.string()),
5446
+ customRegistryUrl: z192.string().optional(),
5447
+ bypassProxy: z192.boolean().optional(),
5448
+ npmProxyRegistryConfigId: z192.string().optional(),
5449
+ npmProxyVersion: z192.number().optional(),
5450
+ registryType: z192.string(),
5451
+ authType: z192.string(),
5452
+ authHeaderName: z192.string(),
5453
+ authHeaderValue: z192.string(),
5454
+ accessToken: z192.string(),
5455
+ username: z192.string(),
5456
+ password: z192.string()
5457
+ });
5458
+ var WorkspaceConfigurationPayload = z192.object({
5444
5459
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5445
5460
  sso: SsoProvider.partial().optional(),
5446
5461
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5448,211 +5463,211 @@ var WorkspaceConfigurationPayload = z191.object({
5448
5463
  });
5449
5464
 
5450
5465
  // src/api/payloads/workspaces/workspace-integrations.ts
5451
- import { z as z192 } from "zod";
5452
- var DTOWorkspaceIntegrationOauthInput = z192.object({
5466
+ import { z as z193 } from "zod";
5467
+ var DTOWorkspaceIntegrationOauthInput = z193.object({
5453
5468
  type: IntegrationType
5454
5469
  });
5455
- var DTOWorkspaceIntegrationPATInput = z192.object({
5456
- userId: z192.string(),
5470
+ var DTOWorkspaceIntegrationPATInput = z193.object({
5471
+ userId: z193.string(),
5457
5472
  type: IntegrationType,
5458
5473
  token: IntegrationToken
5459
5474
  });
5460
- var DTOWorkspaceIntegrationGetGitObjectsInput = z192.object({
5461
- organization: z192.string().optional(),
5475
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z193.object({
5476
+ organization: z193.string().optional(),
5462
5477
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5463
- project: z192.string().optional(),
5478
+ project: z193.string().optional(),
5464
5479
  // Only for Bitbucket and Azure
5465
- repository: z192.string().optional(),
5480
+ repository: z193.string().optional(),
5466
5481
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5467
- branch: z192.string().optional(),
5482
+ branch: z193.string().optional(),
5468
5483
  // For all providers, useful for PR creations.
5469
- user: z192.string().optional()
5484
+ user: z193.string().optional()
5470
5485
  // Only for Gitlab User Repositories
5471
5486
  });
5472
5487
 
5473
5488
  // src/api/dto/design-systems/version.ts
5474
- var DTODesignSystemVersion = z193.object({
5475
- id: z193.string(),
5476
- createdAt: z193.coerce.date(),
5489
+ var DTODesignSystemVersion = z194.object({
5490
+ id: z194.string(),
5491
+ createdAt: z194.coerce.date(),
5477
5492
  meta: ObjectMeta,
5478
- version: z193.string(),
5479
- isReadonly: z193.boolean(),
5480
- changeLog: z193.string(),
5481
- designSystemId: z193.string()
5493
+ version: z194.string(),
5494
+ isReadonly: z194.boolean(),
5495
+ changeLog: z194.string(),
5496
+ designSystemId: z194.string()
5482
5497
  });
5483
- var DTODesignSystemVersionsListResponse = z193.object({
5484
- designSystemVersions: z193.array(DTODesignSystemVersion)
5498
+ var DTODesignSystemVersionsListResponse = z194.object({
5499
+ designSystemVersions: z194.array(DTODesignSystemVersion)
5485
5500
  });
5486
- var DTODesignSystemVersionGetResponse = z193.object({
5501
+ var DTODesignSystemVersionGetResponse = z194.object({
5487
5502
  designSystemVersion: DTODesignSystemVersion
5488
5503
  });
5489
- var DTODesignSystemVersionCreationResponse = z193.object({
5504
+ var DTODesignSystemVersionCreationResponse = z194.object({
5490
5505
  meta: ObjectMeta,
5491
- version: z193.string(),
5492
- changeLog: z193.string(),
5493
- isReadOnly: z193.boolean(),
5494
- designSystemId: z193.string(),
5495
- jobId: z193.string()
5496
- });
5497
- var VersionSQSPayload = z193.object({
5498
- jobId: z193.string(),
5499
- designSystemId: z193.string(),
5506
+ version: z194.string(),
5507
+ changeLog: z194.string(),
5508
+ isReadOnly: z194.boolean(),
5509
+ designSystemId: z194.string(),
5510
+ jobId: z194.string()
5511
+ });
5512
+ var VersionSQSPayload = z194.object({
5513
+ jobId: z194.string(),
5514
+ designSystemId: z194.string(),
5500
5515
  input: DTOCreateVersionInput
5501
5516
  });
5502
- var DTODesignSystemVersionJobsResponse = z193.object({
5503
- jobs: z193.array(VersionCreationJob)
5517
+ var DTODesignSystemVersionJobsResponse = z194.object({
5518
+ jobs: z194.array(VersionCreationJob)
5504
5519
  });
5505
- var DTODesignSystemVersionJobStatusResponse = z193.object({
5520
+ var DTODesignSystemVersionJobStatusResponse = z194.object({
5506
5521
  job: VersionCreationJob
5507
5522
  });
5508
5523
 
5509
5524
  // src/api/dto/design-systems/view.ts
5510
- import { z as z194 } from "zod";
5511
- var DTOElementViewColumnSharedAttributes = z194.object({
5512
- id: z194.string(),
5513
- persistentId: z194.string(),
5514
- width: z194.number()
5525
+ import { z as z195 } from "zod";
5526
+ var DTOElementViewColumnSharedAttributes = z195.object({
5527
+ id: z195.string(),
5528
+ persistentId: z195.string(),
5529
+ width: z195.number()
5515
5530
  });
5516
5531
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5517
- type: z194.literal("BaseProperty"),
5532
+ type: z195.literal("BaseProperty"),
5518
5533
  basePropertyType: ElementViewBaseColumnType
5519
5534
  });
5520
5535
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5521
- type: z194.literal("PropertyDefinition"),
5522
- propertyDefinitionId: z194.string()
5536
+ type: z195.literal("PropertyDefinition"),
5537
+ propertyDefinitionId: z195.string()
5523
5538
  });
5524
5539
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5525
- type: z194.literal("Theme"),
5526
- themeId: z194.string()
5540
+ type: z195.literal("Theme"),
5541
+ themeId: z195.string()
5527
5542
  });
5528
- var DTOElementViewColumn = z194.discriminatedUnion("type", [
5543
+ var DTOElementViewColumn = z195.discriminatedUnion("type", [
5529
5544
  DTOElementViewBasePropertyColumn,
5530
5545
  DTOElementViewPropertyDefinitionColumn,
5531
5546
  DTOElementViewThemeColumn
5532
5547
  ]);
5533
- var DTOElementView = z194.object({
5548
+ var DTOElementView = z195.object({
5534
5549
  meta: ObjectMeta,
5535
- persistentId: z194.string(),
5550
+ persistentId: z195.string(),
5536
5551
  targetElementType: ElementPropertyTargetType,
5537
- id: z194.string(),
5538
- isDefault: z194.boolean(),
5539
- columns: z194.array(DTOElementViewColumn)
5552
+ id: z195.string(),
5553
+ isDefault: z195.boolean(),
5554
+ columns: z195.array(DTOElementViewColumn)
5540
5555
  });
5541
- var DTOElementViewsListResponse = z194.object({
5542
- elementDataViews: z194.array(DTOElementView)
5556
+ var DTOElementViewsListResponse = z195.object({
5557
+ elementDataViews: z195.array(DTOElementView)
5543
5558
  });
5544
5559
 
5545
5560
  // src/api/dto/workspaces/git.ts
5546
- import { z as z195 } from "zod";
5547
- var DTOGitOrganization = z195.object({
5548
- id: z195.string(),
5549
- name: z195.string(),
5550
- url: z195.string(),
5551
- slug: z195.string()
5561
+ import { z as z196 } from "zod";
5562
+ var DTOGitOrganization = z196.object({
5563
+ id: z196.string(),
5564
+ name: z196.string(),
5565
+ url: z196.string(),
5566
+ slug: z196.string()
5552
5567
  });
5553
- var DTOGitProject = z195.object({
5554
- id: z195.string(),
5555
- name: z195.string(),
5556
- url: z195.string(),
5557
- slug: z195.string()
5568
+ var DTOGitProject = z196.object({
5569
+ id: z196.string(),
5570
+ name: z196.string(),
5571
+ url: z196.string(),
5572
+ slug: z196.string()
5558
5573
  });
5559
- var DTOGitRepository = z195.object({
5560
- id: z195.string(),
5561
- name: z195.string(),
5562
- url: z195.string(),
5563
- slug: z195.string(),
5564
- defaultBranch: z195.string().optional()
5574
+ var DTOGitRepository = z196.object({
5575
+ id: z196.string(),
5576
+ name: z196.string(),
5577
+ url: z196.string(),
5578
+ slug: z196.string(),
5579
+ defaultBranch: z196.string().optional()
5565
5580
  });
5566
- var DTOGitBranch = z195.object({
5567
- name: z195.string(),
5568
- lastCommitId: z195.string()
5581
+ var DTOGitBranch = z196.object({
5582
+ name: z196.string(),
5583
+ lastCommitId: z196.string()
5569
5584
  });
5570
5585
 
5571
5586
  // src/api/dto/workspaces/integrations.ts
5572
- import { z as z196 } from "zod";
5587
+ import { z as z197 } from "zod";
5573
5588
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5574
5589
  accessToken: true,
5575
5590
  refreshToken: true
5576
5591
  });
5577
- var DTOIntegration = z196.object({
5578
- id: z196.string(),
5579
- workspaceId: z196.string(),
5592
+ var DTOIntegration = z197.object({
5593
+ id: z197.string(),
5594
+ workspaceId: z197.string(),
5580
5595
  type: ExtendedIntegrationType,
5581
- createdAt: z196.coerce.date(),
5582
- integrationCredentials: z196.array(DTOIntegrationCredentials).optional(),
5583
- integrationDesignSystems: z196.array(IntegrationDesignSystem).optional()
5596
+ createdAt: z197.coerce.date(),
5597
+ integrationCredentials: z197.array(DTOIntegrationCredentials).optional(),
5598
+ integrationDesignSystems: z197.array(IntegrationDesignSystem).optional()
5584
5599
  });
5585
- var DTOIntegrationOAuthGetResponse = z196.object({
5586
- url: z196.string()
5600
+ var DTOIntegrationOAuthGetResponse = z197.object({
5601
+ url: z197.string()
5587
5602
  });
5588
- var DTOIntegrationPostResponse = z196.object({
5603
+ var DTOIntegrationPostResponse = z197.object({
5589
5604
  integration: DTOIntegration
5590
5605
  });
5591
- var DTOIntegrationsGetListResponse = z196.object({
5606
+ var DTOIntegrationsGetListResponse = z197.object({
5592
5607
  integrations: DTOIntegration.array()
5593
5608
  });
5594
5609
 
5595
5610
  // src/api/dto/workspaces/invitations.ts
5596
- import { z as z197 } from "zod";
5597
- var DTOWorkspaceInvitationInput = z197.object({
5598
- email: z197.string().email(),
5611
+ import { z as z198 } from "zod";
5612
+ var DTOWorkspaceInvitationInput = z198.object({
5613
+ email: z198.string().email(),
5599
5614
  role: WorkspaceRoleSchema
5600
5615
  });
5601
- var DTOWorkspaceInvitationsListInput = z197.object({
5616
+ var DTOWorkspaceInvitationsListInput = z198.object({
5602
5617
  invites: DTOWorkspaceInvitationInput.array().max(100),
5603
- designSystemId: z197.string().optional()
5618
+ designSystemId: z198.string().optional()
5604
5619
  });
5605
- var DTOWorkspaceInvitationsResponse = z197.object({
5620
+ var DTOWorkspaceInvitationsResponse = z198.object({
5606
5621
  invitations: WorkspaceInvitation.array()
5607
5622
  });
5608
5623
 
5609
5624
  // src/api/dto/workspaces/membership.ts
5610
- import { z as z200 } from "zod";
5625
+ import { z as z201 } from "zod";
5611
5626
 
5612
5627
  // src/api/dto/workspaces/workspace.ts
5613
- import { z as z199 } from "zod";
5628
+ import { z as z200 } from "zod";
5614
5629
 
5615
5630
  // src/api/dto/workspaces/npm-registry.ts
5616
- import { z as z198 } from "zod";
5631
+ import { z as z199 } from "zod";
5617
5632
  var DTONpmRegistryConfigConstants = {
5618
5633
  passwordPlaceholder: "redacted"
5619
5634
  };
5620
- var DTONpmRegistryConfig = z198.object({
5635
+ var DTONpmRegistryConfig = z199.object({
5621
5636
  // Registry basic configuration
5622
5637
  registryType: NpmRegistryType,
5623
- registryUrl: z198.string(),
5624
- customRegistryUrl: z198.string().optional(),
5638
+ registryUrl: z199.string(),
5639
+ customRegistryUrl: z199.string().optional(),
5625
5640
  // URL of Supernova NPM packages proxy
5626
- proxyUrl: z198.string(),
5641
+ proxyUrl: z199.string(),
5627
5642
  // Auth configuration
5628
5643
  authType: NpmRegistryAuthType,
5629
- accessToken: z198.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5630
- username: z198.string().optional(),
5631
- password: z198.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5644
+ accessToken: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5645
+ username: z199.string().optional(),
5646
+ password: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5632
5647
  // NPM package scopes for whih the proxy should be enabled
5633
- enabledScopes: z198.array(z198.string()),
5648
+ enabledScopes: z199.array(z199.string()),
5634
5649
  // True if client should bypass Supernova proxy and connect directly to the registry
5635
5650
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5636
- bypassProxy: z198.boolean()
5651
+ bypassProxy: z199.boolean()
5637
5652
  });
5638
5653
 
5639
5654
  // src/api/dto/workspaces/workspace.ts
5640
- var DTOWorkspace = z199.object({
5641
- id: z199.string(),
5655
+ var DTOWorkspace = z200.object({
5656
+ id: z200.string(),
5642
5657
  profile: WorkspaceProfile,
5643
5658
  subscription: Subscription,
5644
5659
  npmRegistry: DTONpmRegistryConfig.optional()
5645
5660
  });
5646
- var DTOWorkspaceCreateInput = z199.object({
5647
- name: z199.string()
5661
+ var DTOWorkspaceCreateInput = z200.object({
5662
+ name: z200.string()
5648
5663
  });
5649
- var DTOWorkspaceResponse = z199.object({
5664
+ var DTOWorkspaceResponse = z200.object({
5650
5665
  workspace: DTOWorkspace
5651
5666
  });
5652
5667
 
5653
5668
  // src/api/dto/workspaces/membership.ts
5654
- var DTOWorkspaceRole = z200.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5655
- var DTOUserWorkspaceMembership = z200.object({
5669
+ var DTOWorkspaceRole = z201.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5670
+ var DTOUserWorkspaceMembership = z201.object({
5656
5671
  // Workspace the user is a member of
5657
5672
  workspace: DTOWorkspace,
5658
5673
  // Assigned role the user has in the workspace
@@ -5662,18 +5677,18 @@ var DTOUserWorkspaceMembership = z200.object({
5662
5677
  // when a workspace's subscription is downgraded to free tier
5663
5678
  effectiveRole: DTOWorkspaceRole
5664
5679
  });
5665
- var DTOUserWorkspaceMembershipsResponse = z200.object({
5666
- membership: z200.array(DTOUserWorkspaceMembership)
5680
+ var DTOUserWorkspaceMembershipsResponse = z201.object({
5681
+ membership: z201.array(DTOUserWorkspaceMembership)
5667
5682
  });
5668
5683
 
5669
5684
  // src/api/dto/bff/app-bootstrap-data.ts
5670
- var DTOAppBootstrapDataQuery = z201.object({
5671
- preferredWorkspaceId: z201.string().optional(),
5672
- preferredDesignSystemId: z201.string().optional(),
5673
- preferredVersionId: z201.string().optional(),
5674
- preferredBrandId: z201.string().optional()
5685
+ var DTOAppBootstrapDataQuery = z202.object({
5686
+ preferredWorkspaceId: z202.string().optional(),
5687
+ preferredDesignSystemId: z202.string().optional(),
5688
+ preferredVersionId: z202.string().optional(),
5689
+ preferredBrandId: z202.string().optional()
5675
5690
  });
5676
- var DTOAppBootstrapDataResponse = z201.object({
5691
+ var DTOAppBootstrapDataResponse = z202.object({
5677
5692
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5678
5693
  designSystem: DTODesignSystem.optional(),
5679
5694
  version: DTODesignSystemVersion.optional(),
@@ -5681,37 +5696,37 @@ var DTOAppBootstrapDataResponse = z201.object({
5681
5696
  });
5682
5697
 
5683
5698
  // src/api/dto/collections/collection.ts
5684
- import { z as z202 } from "zod";
5685
- var DTOTokenCollection = z202.object({
5686
- id: z202.string(),
5687
- persistentId: z202.string(),
5688
- designSystemVersionId: z202.string(),
5699
+ import { z as z203 } from "zod";
5700
+ var DTOTokenCollection = z203.object({
5701
+ id: z203.string(),
5702
+ persistentId: z203.string(),
5703
+ designSystemVersionId: z203.string(),
5689
5704
  meta: ObjectMeta,
5690
- createdAt: z202.coerce.date(),
5691
- updatedAt: z202.coerce.date(),
5692
- origin: z202.object({
5693
- id: z202.string(),
5694
- sourceId: z202.string()
5705
+ createdAt: z203.coerce.date(),
5706
+ updatedAt: z203.coerce.date(),
5707
+ origin: z203.object({
5708
+ id: z203.string(),
5709
+ sourceId: z203.string()
5695
5710
  })
5696
5711
  });
5697
- var DTOTokenCollectionsListReponse = z202.object({
5712
+ var DTOTokenCollectionsListReponse = z203.object({
5698
5713
  collections: DTOTokenCollection.array()
5699
5714
  });
5700
5715
 
5701
5716
  // src/api/dto/documentation/anchor.ts
5702
- import { z as z203 } from "zod";
5717
+ import { z as z204 } from "zod";
5703
5718
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5704
- var DTOGetDocumentationPageAnchorsResponse = z203.object({
5705
- anchors: z203.array(DTODocumentationPageAnchor)
5719
+ var DTOGetDocumentationPageAnchorsResponse = z204.object({
5720
+ anchors: z204.array(DTODocumentationPageAnchor)
5706
5721
  });
5707
5722
 
5708
5723
  // src/api/dto/documentation/approvals.ts
5709
- import { z as z204 } from "zod";
5724
+ import { z as z205 } from "zod";
5710
5725
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5711
- var DTODocumentationGroupApprovalState = z204.object({
5712
- persistentId: z204.string(),
5713
- groupId: z204.string(),
5714
- designSystemVersionId: z204.string(),
5726
+ var DTODocumentationGroupApprovalState = z205.object({
5727
+ persistentId: z205.string(),
5728
+ groupId: z205.string(),
5729
+ designSystemVersionId: z205.string(),
5715
5730
  approvalState: DocumentationPageApprovalState
5716
5731
  });
5717
5732
 
@@ -5719,68 +5734,68 @@ var DTODocumentationGroupApprovalState = z204.object({
5719
5734
  var DTOPageBlockItemV2 = PageBlockItemV2;
5720
5735
 
5721
5736
  // src/api/dto/documentation/documentation-page-snapshot.ts
5722
- import { z as z209 } from "zod";
5737
+ import { z as z210 } from "zod";
5723
5738
 
5724
5739
  // src/api/dto/elements/documentation/page-v2.ts
5725
- import { z as z208 } from "zod";
5740
+ import { z as z209 } from "zod";
5726
5741
 
5727
5742
  // src/api/dto/elements/documentation/draft-state.ts
5728
- import { z as z206 } from "zod";
5743
+ import { z as z207 } from "zod";
5729
5744
 
5730
5745
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5731
- import { z as z205 } from "zod";
5746
+ import { z as z206 } from "zod";
5732
5747
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5733
- var DTODocumentationItemConfigurationV2 = z205.object({
5734
- showSidebar: z205.boolean(),
5735
- isPrivate: z205.boolean(),
5736
- isHidden: z205.boolean(),
5748
+ var DTODocumentationItemConfigurationV2 = z206.object({
5749
+ showSidebar: z206.boolean(),
5750
+ isPrivate: z206.boolean(),
5751
+ isHidden: z206.boolean(),
5737
5752
  header: DTODocumentationItemHeaderV2
5738
5753
  });
5739
5754
 
5740
5755
  // src/api/dto/elements/documentation/draft-state.ts
5741
- var DTODocumentationDraftChangeType = z206.enum(["Created", "Updated", "Deleted"]);
5742
- var DTODocumentationDraftStateCreated = z206.object({
5743
- changeType: z206.literal(DTODocumentationDraftChangeType.enum.Created)
5744
- });
5745
- var DTODocumentationDraftStateUpdated = z206.object({
5746
- changeType: z206.literal(DTODocumentationDraftChangeType.enum.Updated),
5747
- changes: z206.object({
5748
- previousTitle: z206.string().optional(),
5756
+ var DTODocumentationDraftChangeType = z207.enum(["Created", "Updated", "Deleted"]);
5757
+ var DTODocumentationDraftStateCreated = z207.object({
5758
+ changeType: z207.literal(DTODocumentationDraftChangeType.enum.Created)
5759
+ });
5760
+ var DTODocumentationDraftStateUpdated = z207.object({
5761
+ changeType: z207.literal(DTODocumentationDraftChangeType.enum.Updated),
5762
+ changes: z207.object({
5763
+ previousTitle: z207.string().optional(),
5749
5764
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5750
- previousContentHash: z206.string().optional()
5765
+ previousContentHash: z207.string().optional()
5751
5766
  })
5752
5767
  });
5753
- var DTODocumentationDraftStateDeleted = z206.object({
5754
- changeType: z206.literal(DTODocumentationDraftChangeType.enum.Deleted),
5755
- deletedAt: z206.coerce.date(),
5756
- deletedByUserId: z206.string()
5768
+ var DTODocumentationDraftStateDeleted = z207.object({
5769
+ changeType: z207.literal(DTODocumentationDraftChangeType.enum.Deleted),
5770
+ deletedAt: z207.coerce.date(),
5771
+ deletedByUserId: z207.string()
5757
5772
  });
5758
- var DTODocumentationDraftState = z206.discriminatedUnion("changeType", [
5773
+ var DTODocumentationDraftState = z207.discriminatedUnion("changeType", [
5759
5774
  DTODocumentationDraftStateCreated,
5760
5775
  DTODocumentationDraftStateUpdated,
5761
5776
  DTODocumentationDraftStateDeleted
5762
5777
  ]);
5763
5778
 
5764
5779
  // src/api/dto/elements/documentation/metadata.ts
5765
- import { z as z207 } from "zod";
5766
- var DTODocumentationPublishMetadata = z207.object({
5767
- lastPublishedByUserId: z207.string(),
5768
- lastPublishedAt: z207.coerce.date()
5780
+ import { z as z208 } from "zod";
5781
+ var DTODocumentationPublishMetadata = z208.object({
5782
+ lastPublishedByUserId: z208.string(),
5783
+ lastPublishedAt: z208.coerce.date()
5769
5784
  });
5770
5785
 
5771
5786
  // src/api/dto/elements/documentation/page-v2.ts
5772
- var DTODocumentationPageV2 = z208.object({
5773
- id: z208.string(),
5774
- persistentId: z208.string(),
5775
- designSystemVersionId: z208.string(),
5776
- title: z208.string(),
5787
+ var DTODocumentationPageV2 = z209.object({
5788
+ id: z209.string(),
5789
+ persistentId: z209.string(),
5790
+ designSystemVersionId: z209.string(),
5791
+ title: z209.string(),
5777
5792
  configuration: DTODocumentationItemConfigurationV2,
5778
- shortPersistentId: z208.string(),
5779
- slug: z208.string().optional(),
5780
- userSlug: z208.string().optional(),
5781
- createdAt: z208.coerce.date(),
5782
- updatedAt: z208.coerce.date(),
5783
- path: z208.string(),
5793
+ shortPersistentId: z209.string(),
5794
+ slug: z209.string().optional(),
5795
+ userSlug: z209.string().optional(),
5796
+ createdAt: z209.coerce.date(),
5797
+ updatedAt: z209.coerce.date(),
5798
+ path: z209.string(),
5784
5799
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5785
5800
  draftState: DTODocumentationDraftState.optional(),
5786
5801
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5788,197 +5803,197 @@ var DTODocumentationPageV2 = z208.object({
5788
5803
  /** Defines the approval state of the documentation page */
5789
5804
  approvalState: DTODocumentationPageApprovalState.optional(),
5790
5805
  // Backward compatibility
5791
- type: z208.literal("Page")
5806
+ type: z209.literal("Page")
5792
5807
  });
5793
- var DTOCreateDocumentationPageInputV2 = z208.object({
5808
+ var DTOCreateDocumentationPageInputV2 = z209.object({
5794
5809
  // Identifier
5795
- persistentId: z208.string().uuid(),
5810
+ persistentId: z209.string().uuid(),
5796
5811
  // Page properties
5797
- title: z208.string(),
5812
+ title: z209.string(),
5798
5813
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5799
5814
  // Page placement properties
5800
- parentPersistentId: z208.string().uuid(),
5801
- afterPersistentId: z208.string().uuid().nullish()
5815
+ parentPersistentId: z209.string().uuid(),
5816
+ afterPersistentId: z209.string().uuid().nullish()
5802
5817
  });
5803
- var DTOUpdateDocumentationPageInputV2 = z208.object({
5818
+ var DTOUpdateDocumentationPageInputV2 = z209.object({
5804
5819
  // Identifier of the group to update
5805
- id: z208.string(),
5820
+ id: z209.string(),
5806
5821
  // Page properties
5807
- title: z208.string().optional(),
5822
+ title: z209.string().optional(),
5808
5823
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5809
5824
  });
5810
- var DTOMoveDocumentationPageInputV2 = z208.object({
5825
+ var DTOMoveDocumentationPageInputV2 = z209.object({
5811
5826
  // Identifier of the group to update
5812
- id: z208.string(),
5827
+ id: z209.string(),
5813
5828
  // Page placement properties
5814
- parentPersistentId: z208.string().uuid(),
5815
- afterPersistentId: z208.string().uuid().nullish()
5829
+ parentPersistentId: z209.string().uuid(),
5830
+ afterPersistentId: z209.string().uuid().nullish()
5816
5831
  });
5817
- var DTODuplicateDocumentationPageInputV2 = z208.object({
5832
+ var DTODuplicateDocumentationPageInputV2 = z209.object({
5818
5833
  // Identifier of the page to duplicate from
5819
- id: z208.string(),
5834
+ id: z209.string(),
5820
5835
  // New page persistent id
5821
- persistentId: z208.string().uuid(),
5836
+ persistentId: z209.string().uuid(),
5822
5837
  // Page placement properties
5823
- parentPersistentId: z208.string().uuid(),
5824
- afterPersistentId: z208.string().uuid().nullish()
5838
+ parentPersistentId: z209.string().uuid(),
5839
+ afterPersistentId: z209.string().uuid().nullish()
5825
5840
  });
5826
- var DTODeleteDocumentationPageInputV2 = z208.object({
5841
+ var DTODeleteDocumentationPageInputV2 = z209.object({
5827
5842
  // Identifier
5828
- id: z208.string()
5843
+ id: z209.string()
5829
5844
  });
5830
- var DTORestoreDocumentationPageInput = z208.object({
5831
- persistentId: z208.string(),
5832
- snapshotId: z208.string().optional()
5845
+ var DTORestoreDocumentationPageInput = z209.object({
5846
+ persistentId: z209.string(),
5847
+ snapshotId: z209.string().optional()
5833
5848
  });
5834
- var DTORestoreDocumentationGroupInput = z208.object({
5835
- persistentId: z208.string(),
5836
- snapshotId: z208.string().optional()
5849
+ var DTORestoreDocumentationGroupInput = z209.object({
5850
+ persistentId: z209.string(),
5851
+ snapshotId: z209.string().optional()
5837
5852
  });
5838
- var DTODocumentationPageApprovalStateChangeInput = z208.object({
5839
- persistentId: z208.string(),
5853
+ var DTODocumentationPageApprovalStateChangeInput = z209.object({
5854
+ persistentId: z209.string(),
5840
5855
  approvalState: DocumentationPageApprovalState.optional()
5841
5856
  });
5842
5857
 
5843
5858
  // src/api/dto/documentation/documentation-page-snapshot.ts
5844
- var DTODocumentationPageSnapshot = z209.object({
5845
- id: z209.string(),
5846
- designSystemVersionId: z209.string(),
5847
- createdAt: z209.string(),
5848
- updatedAt: z209.string(),
5859
+ var DTODocumentationPageSnapshot = z210.object({
5860
+ id: z210.string(),
5861
+ designSystemVersionId: z210.string(),
5862
+ createdAt: z210.string(),
5863
+ updatedAt: z210.string(),
5849
5864
  documentationPage: DTODocumentationPageV2,
5850
- pageContentHash: z209.string(),
5865
+ pageContentHash: z210.string(),
5851
5866
  reason: DesignElementSnapshotReason
5852
5867
  });
5853
5868
 
5854
5869
  // src/api/dto/documentation/link-preview.ts
5855
- import { z as z210 } from "zod";
5856
- var DTODocumentationLinkPreviewResponse = z210.object({
5870
+ import { z as z211 } from "zod";
5871
+ var DTODocumentationLinkPreviewResponse = z211.object({
5857
5872
  linkPreview: DocumentationLinkPreview
5858
5873
  });
5859
- var DTODocumentationLinkPreviewRequest = z210.object({
5860
- url: z210.string().optional(),
5861
- documentationItemPersistentId: z210.string().optional()
5874
+ var DTODocumentationLinkPreviewRequest = z211.object({
5875
+ url: z211.string().optional(),
5876
+ documentationItemPersistentId: z211.string().optional()
5862
5877
  });
5863
5878
 
5864
5879
  // src/api/dto/documentation/publish.ts
5865
- import { z as z214 } from "zod";
5880
+ import { z as z215 } from "zod";
5866
5881
 
5867
5882
  // src/api/dto/export/exporter.ts
5868
- import { z as z211 } from "zod";
5869
- var DTOExporterType = z211.enum(["documentation", "code"]);
5870
- var DTOExporterSource = z211.enum(["git", "upload"]);
5871
- var DTOExporterMembershipRole = z211.enum(["Owner", "OwnerArchived", "User"]);
5872
- var DTOExporter = z211.object({
5873
- id: z211.string(),
5874
- name: z211.string(),
5875
- isPrivate: z211.boolean(),
5883
+ import { z as z212 } from "zod";
5884
+ var DTOExporterType = z212.enum(["documentation", "code"]);
5885
+ var DTOExporterSource = z212.enum(["git", "upload"]);
5886
+ var DTOExporterMembershipRole = z212.enum(["Owner", "OwnerArchived", "User"]);
5887
+ var DTOExporter = z212.object({
5888
+ id: z212.string(),
5889
+ name: z212.string(),
5890
+ isPrivate: z212.boolean(),
5876
5891
  exporterType: DTOExporterType,
5877
- isDefaultDocumentationExporter: z211.boolean(),
5878
- iconURL: z211.string().optional(),
5892
+ isDefaultDocumentationExporter: z212.boolean(),
5893
+ iconURL: z212.string().optional(),
5879
5894
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5880
5895
  customBlocks: PulsarCustomBlock.array(),
5881
- blockVariants: z211.record(z211.string(), PulsarContributionVariant.array()),
5882
- usesBrands: z211.boolean(),
5883
- usesThemes: z211.boolean(),
5896
+ blockVariants: z212.record(z212.string(), PulsarContributionVariant.array()),
5897
+ usesBrands: z212.boolean(),
5898
+ usesThemes: z212.boolean(),
5884
5899
  source: DTOExporterSource,
5885
- gitUrl: z211.string().optional(),
5886
- gitBranch: z211.string().optional(),
5887
- gitDirectory: z211.string().optional()
5900
+ gitUrl: z212.string().optional(),
5901
+ gitBranch: z212.string().optional(),
5902
+ gitDirectory: z212.string().optional()
5888
5903
  });
5889
- var DTOExporterMembership = z211.object({
5890
- workspaceId: z211.string(),
5891
- exporterId: z211.string(),
5904
+ var DTOExporterMembership = z212.object({
5905
+ workspaceId: z212.string(),
5906
+ exporterId: z212.string(),
5892
5907
  role: DTOExporterMembershipRole
5893
5908
  });
5894
- var DTOExporterCreateOutput = z211.object({
5909
+ var DTOExporterCreateOutput = z212.object({
5895
5910
  exporter: DTOExporter,
5896
5911
  membership: DTOExporterMembership
5897
5912
  });
5898
- var DTOExporterGitProviderEnum = z211.enum(["github", "gitlab", "bitbucket", "azure"]);
5899
- var DTOExporterCreateInput = z211.object({
5900
- url: z211.string(),
5913
+ var DTOExporterGitProviderEnum = z212.enum(["github", "gitlab", "bitbucket", "azure"]);
5914
+ var DTOExporterCreateInput = z212.object({
5915
+ url: z212.string(),
5901
5916
  provider: DTOExporterGitProviderEnum
5902
5917
  });
5903
- var DTOExporterUpdateInput = z211.object({
5904
- url: z211.string().optional()
5918
+ var DTOExporterUpdateInput = z212.object({
5919
+ url: z212.string().optional()
5905
5920
  });
5906
5921
 
5907
5922
  // src/api/dto/export/filter.ts
5908
5923
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5909
5924
 
5910
5925
  // src/api/dto/export/job.ts
5911
- import { z as z212 } from "zod";
5912
- var DTOExportJobCreatedBy = z212.object({
5913
- userId: z212.string(),
5914
- userName: z212.string()
5926
+ import { z as z213 } from "zod";
5927
+ var DTOExportJobCreatedBy = z213.object({
5928
+ userId: z213.string(),
5929
+ userName: z213.string()
5915
5930
  });
5916
- var DTOExportJobDesignSystemPreview = z212.object({
5917
- id: z212.string(),
5931
+ var DTOExportJobDesignSystemPreview = z213.object({
5932
+ id: z213.string(),
5918
5933
  meta: ObjectMeta
5919
5934
  });
5920
- var DTOExportJobDesignSystemVersionPreview = z212.object({
5921
- id: z212.string(),
5935
+ var DTOExportJobDesignSystemVersionPreview = z213.object({
5936
+ id: z213.string(),
5922
5937
  meta: ObjectMeta,
5923
- version: z212.string(),
5924
- isReadonly: z212.boolean()
5938
+ version: z213.string(),
5939
+ isReadonly: z213.boolean()
5925
5940
  });
5926
- var DTOExportJobDestinations = z212.object({
5941
+ var DTOExportJobDestinations = z213.object({
5927
5942
  s3: ExporterDestinationS3.optional(),
5928
5943
  azure: ExporterDestinationAzure.optional(),
5929
5944
  bitbucket: ExporterDestinationBitbucket.optional(),
5930
5945
  github: ExporterDestinationGithub.optional(),
5931
5946
  gitlab: ExporterDestinationGitlab.optional(),
5932
5947
  documentation: ExporterDestinationDocs.optional(),
5933
- webhookUrl: z212.string().optional()
5948
+ webhookUrl: z213.string().optional()
5934
5949
  });
5935
5950
  var DTOExportJobResult = ExportJobResult.omit({
5936
5951
  sndocs: true
5937
5952
  }).extend({
5938
5953
  documentation: ExportJobDocsDestinationResult.optional()
5939
5954
  });
5940
- var DTOExportJob = z212.object({
5941
- id: z212.string(),
5942
- createdAt: z212.coerce.date(),
5943
- finishedAt: z212.coerce.date().optional(),
5944
- index: z212.number().optional(),
5955
+ var DTOExportJob = z213.object({
5956
+ id: z213.string(),
5957
+ createdAt: z213.coerce.date(),
5958
+ finishedAt: z213.coerce.date().optional(),
5959
+ index: z213.number().optional(),
5945
5960
  status: ExportJobStatus,
5946
- estimatedExecutionTime: z212.number().optional(),
5961
+ estimatedExecutionTime: z213.number().optional(),
5947
5962
  createdBy: DTOExportJobCreatedBy.optional(),
5948
5963
  designSystem: DTOExportJobDesignSystemPreview,
5949
5964
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5950
5965
  destinations: DTOExportJobDestinations,
5951
- exporterId: z212.string(),
5952
- scheduleId: z212.string().optional(),
5966
+ exporterId: z213.string(),
5967
+ scheduleId: z213.string().optional(),
5953
5968
  result: DTOExportJobResult.optional(),
5954
- brandPersistentId: z212.string().optional(),
5955
- themePersistentId: z212.string().optional(),
5956
- themePersistentIds: z212.string().array().optional()
5969
+ brandPersistentId: z213.string().optional(),
5970
+ themePersistentId: z213.string().optional(),
5971
+ themePersistentIds: z213.string().array().optional()
5957
5972
  });
5958
- var DTOExportJobResponse = z212.object({
5973
+ var DTOExportJobResponse = z213.object({
5959
5974
  job: DTOExportJob
5960
5975
  });
5961
5976
 
5962
5977
  // src/api/dto/export/pipeline.ts
5963
- import { z as z213 } from "zod";
5964
- var DTOPipeline = z213.object({
5965
- id: z213.string(),
5966
- name: z213.string(),
5978
+ import { z as z214 } from "zod";
5979
+ var DTOPipeline = z214.object({
5980
+ id: z214.string(),
5981
+ name: z214.string(),
5967
5982
  eventType: PipelineEventType,
5968
- isEnabled: z213.boolean(),
5969
- workspaceId: z213.string(),
5970
- designSystemId: z213.string(),
5971
- exporterId: z213.string(),
5972
- brandPersistentId: z213.string().optional(),
5973
- themePersistentId: z213.string().optional(),
5974
- themePersistentIds: z213.string().array().optional(),
5983
+ isEnabled: z214.boolean(),
5984
+ workspaceId: z214.string(),
5985
+ designSystemId: z214.string(),
5986
+ exporterId: z214.string(),
5987
+ brandPersistentId: z214.string().optional(),
5988
+ themePersistentId: z214.string().optional(),
5989
+ themePersistentIds: z214.string().array().optional(),
5975
5990
  ...ExportDestinationsMap.shape,
5976
5991
  latestJobs: DTOExportJob.array()
5977
5992
  });
5978
5993
 
5979
5994
  // src/api/dto/documentation/publish.ts
5980
5995
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5981
- var DTOPublishDocumentationRequest = z214.object({
5996
+ var DTOPublishDocumentationRequest = z215.object({
5982
5997
  environment: PublishedDocEnvironment,
5983
5998
  /**
5984
5999
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5986,42 +6001,42 @@ var DTOPublishDocumentationRequest = z214.object({
5986
6001
  */
5987
6002
  changes: DTOPublishDocumentationChanges.optional()
5988
6003
  });
5989
- var DTOPublishDocumentationResponse = z214.object({
6004
+ var DTOPublishDocumentationResponse = z215.object({
5990
6005
  job: DTOExportJob
5991
6006
  });
5992
6007
 
5993
6008
  // src/api/dto/elements/components/figma-component.ts
5994
- import { z as z215 } from "zod";
6009
+ import { z as z216 } from "zod";
5995
6010
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5996
- var DTOFigmaComponentPropertyMap = z215.record(DTOFigmaComponentProperty);
5997
- var DTOFigmaComponent = z215.object({
5998
- id: z215.string(),
5999
- persistentId: z215.string(),
6000
- designSystemVersionId: z215.string(),
6001
- brandId: z215.string(),
6002
- thumbnailUrl: z215.string().optional(),
6003
- svgUrl: z215.string().optional(),
6004
- exportProperties: z215.object({
6005
- isAsset: z215.boolean()
6011
+ var DTOFigmaComponentPropertyMap = z216.record(DTOFigmaComponentProperty);
6012
+ var DTOFigmaComponent = z216.object({
6013
+ id: z216.string(),
6014
+ persistentId: z216.string(),
6015
+ designSystemVersionId: z216.string(),
6016
+ brandId: z216.string(),
6017
+ thumbnailUrl: z216.string().optional(),
6018
+ svgUrl: z216.string().optional(),
6019
+ exportProperties: z216.object({
6020
+ isAsset: z216.boolean()
6006
6021
  }),
6007
- createdAt: z215.coerce.date(),
6008
- updatedAt: z215.coerce.date(),
6022
+ createdAt: z216.coerce.date(),
6023
+ updatedAt: z216.coerce.date(),
6009
6024
  meta: ObjectMeta,
6010
6025
  originComponent: FigmaComponentOrigin.optional(),
6011
- parentComponentPersistentId: z215.string().optional(),
6012
- childrenPersistentIds: z215.string().array().optional(),
6026
+ parentComponentPersistentId: z216.string().optional(),
6027
+ childrenPersistentIds: z216.string().array().optional(),
6013
6028
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6014
- variantPropertyValues: z215.record(z215.string()).optional()
6029
+ variantPropertyValues: z216.record(z216.string()).optional()
6015
6030
  });
6016
- var DTOFigmaComponentListResponse = z215.object({
6031
+ var DTOFigmaComponentListResponse = z216.object({
6017
6032
  components: DTOFigmaComponent.array()
6018
6033
  });
6019
6034
 
6020
6035
  // src/api/dto/elements/documentation/group-action.ts
6021
- import { z as z217 } from "zod";
6036
+ import { z as z218 } from "zod";
6022
6037
 
6023
6038
  // src/api/dto/elements/documentation/group-v2.ts
6024
- import { z as z216 } from "zod";
6039
+ import { z as z217 } from "zod";
6025
6040
  var DTODocumentationGroupV2 = ElementGroup.omit({
6026
6041
  sortOrder: true,
6027
6042
  parentPersistentId: true,
@@ -6031,13 +6046,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6031
6046
  data: true,
6032
6047
  shortPersistentId: true
6033
6048
  }).extend({
6034
- title: z216.string(),
6035
- isRoot: z216.boolean(),
6036
- childrenIds: z216.array(z216.string()),
6049
+ title: z217.string(),
6050
+ isRoot: z217.boolean(),
6051
+ childrenIds: z217.array(z217.string()),
6037
6052
  groupBehavior: DocumentationGroupBehavior,
6038
- shortPersistentId: z216.string(),
6053
+ shortPersistentId: z217.string(),
6039
6054
  configuration: DTODocumentationItemConfigurationV2,
6040
- type: z216.literal("Group"),
6055
+ type: z217.literal("Group"),
6041
6056
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6042
6057
  draftState: DTODocumentationDraftState.optional(),
6043
6058
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6045,127 +6060,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6045
6060
  //** An approval state for frontend to utilize. */
6046
6061
  approvalState: DTODocumentationGroupApprovalState.optional()
6047
6062
  });
6048
- var DTOCreateDocumentationGroupInput = z216.object({
6063
+ var DTOCreateDocumentationGroupInput = z217.object({
6049
6064
  // Identifier
6050
- persistentId: z216.string().uuid(),
6065
+ persistentId: z217.string().uuid(),
6051
6066
  // Group properties
6052
- title: z216.string(),
6067
+ title: z217.string(),
6053
6068
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6054
6069
  // Group placement properties
6055
- afterPersistentId: z216.string().uuid().nullish(),
6056
- parentPersistentId: z216.string().uuid()
6070
+ afterPersistentId: z217.string().uuid().nullish(),
6071
+ parentPersistentId: z217.string().uuid()
6057
6072
  });
6058
- var DTOUpdateDocumentationGroupInput = z216.object({
6073
+ var DTOUpdateDocumentationGroupInput = z217.object({
6059
6074
  // Identifier of the group to update
6060
- id: z216.string(),
6075
+ id: z217.string(),
6061
6076
  // Group properties
6062
- title: z216.string().optional(),
6077
+ title: z217.string().optional(),
6063
6078
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6064
6079
  });
6065
- var DTOMoveDocumentationGroupInput = z216.object({
6080
+ var DTOMoveDocumentationGroupInput = z217.object({
6066
6081
  // Identifier of the group to update
6067
- id: z216.string(),
6082
+ id: z217.string(),
6068
6083
  // Group placement properties
6069
- parentPersistentId: z216.string().uuid(),
6070
- afterPersistentId: z216.string().uuid().nullish()
6084
+ parentPersistentId: z217.string().uuid(),
6085
+ afterPersistentId: z217.string().uuid().nullish()
6071
6086
  });
6072
- var DTODuplicateDocumentationGroupInput = z216.object({
6087
+ var DTODuplicateDocumentationGroupInput = z217.object({
6073
6088
  // Identifier of the group to duplicate from
6074
- id: z216.string(),
6089
+ id: z217.string(),
6075
6090
  // New group persistent id
6076
- persistentId: z216.string().uuid(),
6091
+ persistentId: z217.string().uuid(),
6077
6092
  // Group placement properties
6078
- afterPersistentId: z216.string().uuid().nullish(),
6079
- parentPersistentId: z216.string().uuid()
6093
+ afterPersistentId: z217.string().uuid().nullish(),
6094
+ parentPersistentId: z217.string().uuid()
6080
6095
  });
6081
- var DTOCreateDocumentationTabInput = z216.object({
6096
+ var DTOCreateDocumentationTabInput = z217.object({
6082
6097
  // New group persistent id
6083
- persistentId: z216.string().uuid(),
6098
+ persistentId: z217.string().uuid(),
6084
6099
  // If this is page, we will attempt to convert it to tab
6085
6100
  // If this is tab group, we will add a new tab to it
6086
- fromItemPersistentId: z216.string(),
6087
- tabName: z216.string()
6101
+ fromItemPersistentId: z217.string(),
6102
+ tabName: z217.string()
6088
6103
  });
6089
- var DTODeleteDocumentationTabGroupInput = z216.object({
6104
+ var DTODeleteDocumentationTabGroupInput = z217.object({
6090
6105
  // Deleted group id
6091
- id: z216.string()
6106
+ id: z217.string()
6092
6107
  });
6093
- var DTODeleteDocumentationGroupInput = z216.object({
6108
+ var DTODeleteDocumentationGroupInput = z217.object({
6094
6109
  // Identifier
6095
- id: z216.string(),
6110
+ id: z217.string(),
6096
6111
  // Deletion options
6097
- deleteSubtree: z216.boolean().default(false)
6112
+ deleteSubtree: z217.boolean().default(false)
6098
6113
  });
6099
6114
 
6100
6115
  // src/api/dto/elements/documentation/group-action.ts
6101
- var SuccessPayload = z217.object({
6102
- success: z217.literal(true)
6116
+ var SuccessPayload = z218.object({
6117
+ success: z218.literal(true)
6103
6118
  });
6104
- var DTODocumentationGroupCreateActionOutputV2 = z217.object({
6105
- type: z217.literal("DocumentationGroupCreate"),
6119
+ var DTODocumentationGroupCreateActionOutputV2 = z218.object({
6120
+ type: z218.literal("DocumentationGroupCreate"),
6106
6121
  output: SuccessPayload
6107
6122
  });
6108
- var DTODocumentationTabCreateActionOutputV2 = z217.object({
6109
- type: z217.literal("DocumentationTabCreate"),
6123
+ var DTODocumentationTabCreateActionOutputV2 = z218.object({
6124
+ type: z218.literal("DocumentationTabCreate"),
6110
6125
  output: SuccessPayload
6111
6126
  });
6112
- var DTODocumentationGroupUpdateActionOutputV2 = z217.object({
6113
- type: z217.literal("DocumentationGroupUpdate"),
6127
+ var DTODocumentationGroupUpdateActionOutputV2 = z218.object({
6128
+ type: z218.literal("DocumentationGroupUpdate"),
6114
6129
  output: SuccessPayload
6115
6130
  });
6116
- var DTODocumentationGroupMoveActionOutputV2 = z217.object({
6117
- type: z217.literal("DocumentationGroupMove"),
6131
+ var DTODocumentationGroupMoveActionOutputV2 = z218.object({
6132
+ type: z218.literal("DocumentationGroupMove"),
6118
6133
  output: SuccessPayload
6119
6134
  });
6120
- var DTODocumentationGroupDuplicateActionOutputV2 = z217.object({
6121
- type: z217.literal("DocumentationGroupDuplicate"),
6135
+ var DTODocumentationGroupDuplicateActionOutputV2 = z218.object({
6136
+ type: z218.literal("DocumentationGroupDuplicate"),
6122
6137
  output: SuccessPayload
6123
6138
  });
6124
- var DTODocumentationGroupDeleteActionOutputV2 = z217.object({
6125
- type: z217.literal("DocumentationGroupDelete"),
6139
+ var DTODocumentationGroupDeleteActionOutputV2 = z218.object({
6140
+ type: z218.literal("DocumentationGroupDelete"),
6126
6141
  output: SuccessPayload
6127
6142
  });
6128
- var DTODocumentationTabGroupDeleteActionOutputV2 = z217.object({
6129
- type: z217.literal("DocumentationTabGroupDelete"),
6143
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z218.object({
6144
+ type: z218.literal("DocumentationTabGroupDelete"),
6130
6145
  output: SuccessPayload
6131
6146
  });
6132
- var DTODocumentationGroupCreateActionInputV2 = z217.object({
6133
- type: z217.literal("DocumentationGroupCreate"),
6147
+ var DTODocumentationGroupCreateActionInputV2 = z218.object({
6148
+ type: z218.literal("DocumentationGroupCreate"),
6134
6149
  input: DTOCreateDocumentationGroupInput
6135
6150
  });
6136
- var DTODocumentationTabCreateActionInputV2 = z217.object({
6137
- type: z217.literal("DocumentationTabCreate"),
6151
+ var DTODocumentationTabCreateActionInputV2 = z218.object({
6152
+ type: z218.literal("DocumentationTabCreate"),
6138
6153
  input: DTOCreateDocumentationTabInput
6139
6154
  });
6140
- var DTODocumentationGroupUpdateActionInputV2 = z217.object({
6141
- type: z217.literal("DocumentationGroupUpdate"),
6155
+ var DTODocumentationGroupUpdateActionInputV2 = z218.object({
6156
+ type: z218.literal("DocumentationGroupUpdate"),
6142
6157
  input: DTOUpdateDocumentationGroupInput
6143
6158
  });
6144
- var DTODocumentationGroupMoveActionInputV2 = z217.object({
6145
- type: z217.literal("DocumentationGroupMove"),
6159
+ var DTODocumentationGroupMoveActionInputV2 = z218.object({
6160
+ type: z218.literal("DocumentationGroupMove"),
6146
6161
  input: DTOMoveDocumentationGroupInput
6147
6162
  });
6148
- var DTODocumentationGroupDuplicateActionInputV2 = z217.object({
6149
- type: z217.literal("DocumentationGroupDuplicate"),
6163
+ var DTODocumentationGroupDuplicateActionInputV2 = z218.object({
6164
+ type: z218.literal("DocumentationGroupDuplicate"),
6150
6165
  input: DTODuplicateDocumentationGroupInput
6151
6166
  });
6152
- var DTODocumentationGroupDeleteActionInputV2 = z217.object({
6153
- type: z217.literal("DocumentationGroupDelete"),
6167
+ var DTODocumentationGroupDeleteActionInputV2 = z218.object({
6168
+ type: z218.literal("DocumentationGroupDelete"),
6154
6169
  input: DTODeleteDocumentationGroupInput
6155
6170
  });
6156
- var DTODocumentationTabGroupDeleteActionInputV2 = z217.object({
6157
- type: z217.literal("DocumentationTabGroupDelete"),
6171
+ var DTODocumentationTabGroupDeleteActionInputV2 = z218.object({
6172
+ type: z218.literal("DocumentationTabGroupDelete"),
6158
6173
  input: DTODeleteDocumentationTabGroupInput
6159
6174
  });
6160
6175
 
6161
6176
  // src/api/dto/elements/documentation/group-v1.ts
6162
- import { z as z219 } from "zod";
6177
+ import { z as z220 } from "zod";
6163
6178
 
6164
6179
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6165
- import { z as z218 } from "zod";
6166
- var DocumentationColorV1 = z218.object({
6167
- aliasTo: z218.string().optional(),
6168
- value: z218.string().optional()
6180
+ import { z as z219 } from "zod";
6181
+ var DocumentationColorV1 = z219.object({
6182
+ aliasTo: z219.string().optional(),
6183
+ value: z219.string().optional()
6169
6184
  });
6170
6185
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6171
6186
  foregroundColor: true,
@@ -6174,10 +6189,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6174
6189
  foregroundColor: DocumentationColorV1.optional(),
6175
6190
  backgroundColor: DocumentationColorV1.optional()
6176
6191
  });
6177
- var DTODocumentationItemConfigurationV1 = z218.object({
6178
- showSidebar: z218.boolean(),
6179
- isPrivate: z218.boolean(),
6180
- isHidden: z218.boolean(),
6192
+ var DTODocumentationItemConfigurationV1 = z219.object({
6193
+ showSidebar: z219.boolean(),
6194
+ isPrivate: z219.boolean(),
6195
+ isHidden: z219.boolean(),
6181
6196
  header: DTODocumentationItemHeaderV1
6182
6197
  });
6183
6198
 
@@ -6191,27 +6206,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6191
6206
  data: true,
6192
6207
  shortPersistentId: true
6193
6208
  }).extend({
6194
- title: z219.string(),
6195
- isRoot: z219.boolean(),
6196
- childrenIds: z219.array(z219.string()),
6209
+ title: z220.string(),
6210
+ isRoot: z220.boolean(),
6211
+ childrenIds: z220.array(z220.string()),
6197
6212
  groupBehavior: DocumentationGroupBehavior,
6198
- shortPersistentId: z219.string(),
6199
- type: z219.literal("Group")
6213
+ shortPersistentId: z220.string(),
6214
+ type: z220.literal("Group")
6200
6215
  });
6201
6216
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6202
6217
  configuration: DTODocumentationItemConfigurationV1
6203
6218
  });
6204
6219
 
6205
6220
  // src/api/dto/elements/documentation/hierarchy.ts
6206
- import { z as z220 } from "zod";
6207
- var DTODocumentationHierarchyV2 = z220.object({
6208
- pages: z220.array(
6221
+ import { z as z221 } from "zod";
6222
+ var DTODocumentationHierarchyV2 = z221.object({
6223
+ pages: z221.array(
6209
6224
  DTODocumentationPageV2.extend({
6210
6225
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6211
6226
  draftState: DTODocumentationDraftState.optional()
6212
6227
  })
6213
6228
  ),
6214
- groups: z220.array(
6229
+ groups: z221.array(
6215
6230
  DTODocumentationGroupV2.extend({
6216
6231
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6217
6232
  draftState: DTODocumentationDraftState.optional()
@@ -6220,84 +6235,84 @@ var DTODocumentationHierarchyV2 = z220.object({
6220
6235
  });
6221
6236
 
6222
6237
  // src/api/dto/elements/documentation/page-actions-v2.ts
6223
- import { z as z221 } from "zod";
6224
- var SuccessPayload2 = z221.object({
6225
- success: z221.literal(true)
6238
+ import { z as z222 } from "zod";
6239
+ var SuccessPayload2 = z222.object({
6240
+ success: z222.literal(true)
6226
6241
  });
6227
- var DTODocumentationPageCreateActionOutputV2 = z221.object({
6228
- type: z221.literal("DocumentationPageCreate"),
6242
+ var DTODocumentationPageCreateActionOutputV2 = z222.object({
6243
+ type: z222.literal("DocumentationPageCreate"),
6229
6244
  output: SuccessPayload2
6230
6245
  });
6231
- var DTODocumentationPageUpdateActionOutputV2 = z221.object({
6232
- type: z221.literal("DocumentationPageUpdate"),
6246
+ var DTODocumentationPageUpdateActionOutputV2 = z222.object({
6247
+ type: z222.literal("DocumentationPageUpdate"),
6233
6248
  output: SuccessPayload2
6234
6249
  });
6235
- var DTODocumentationPageMoveActionOutputV2 = z221.object({
6236
- type: z221.literal("DocumentationPageMove"),
6250
+ var DTODocumentationPageMoveActionOutputV2 = z222.object({
6251
+ type: z222.literal("DocumentationPageMove"),
6237
6252
  output: SuccessPayload2
6238
6253
  });
6239
- var DTODocumentationPageDuplicateActionOutputV2 = z221.object({
6240
- type: z221.literal("DocumentationPageDuplicate"),
6254
+ var DTODocumentationPageDuplicateActionOutputV2 = z222.object({
6255
+ type: z222.literal("DocumentationPageDuplicate"),
6241
6256
  output: SuccessPayload2
6242
6257
  });
6243
- var DTODocumentationPageDeleteActionOutputV2 = z221.object({
6244
- type: z221.literal("DocumentationPageDelete"),
6258
+ var DTODocumentationPageDeleteActionOutputV2 = z222.object({
6259
+ type: z222.literal("DocumentationPageDelete"),
6245
6260
  output: SuccessPayload2
6246
6261
  });
6247
- var DTODocumentationPageRestoreActionOutput = z221.object({
6248
- type: z221.literal("DocumentationPageRestore"),
6262
+ var DTODocumentationPageRestoreActionOutput = z222.object({
6263
+ type: z222.literal("DocumentationPageRestore"),
6249
6264
  output: SuccessPayload2
6250
6265
  });
6251
- var DTODocumentationGroupRestoreActionOutput = z221.object({
6252
- type: z221.literal("DocumentationGroupRestore"),
6266
+ var DTODocumentationGroupRestoreActionOutput = z222.object({
6267
+ type: z222.literal("DocumentationGroupRestore"),
6253
6268
  output: SuccessPayload2
6254
6269
  });
6255
- var DTODocumentationPageApprovalStateChangeActionOutput = z221.object({
6256
- type: z221.literal("DocumentationPageApprovalStateChange"),
6270
+ var DTODocumentationPageApprovalStateChangeActionOutput = z222.object({
6271
+ type: z222.literal("DocumentationPageApprovalStateChange"),
6257
6272
  output: SuccessPayload2
6258
6273
  });
6259
- var DTODocumentationPageCreateActionInputV2 = z221.object({
6260
- type: z221.literal("DocumentationPageCreate"),
6274
+ var DTODocumentationPageCreateActionInputV2 = z222.object({
6275
+ type: z222.literal("DocumentationPageCreate"),
6261
6276
  input: DTOCreateDocumentationPageInputV2
6262
6277
  });
6263
- var DTODocumentationPageUpdateActionInputV2 = z221.object({
6264
- type: z221.literal("DocumentationPageUpdate"),
6278
+ var DTODocumentationPageUpdateActionInputV2 = z222.object({
6279
+ type: z222.literal("DocumentationPageUpdate"),
6265
6280
  input: DTOUpdateDocumentationPageInputV2
6266
6281
  });
6267
- var DTODocumentationPageMoveActionInputV2 = z221.object({
6268
- type: z221.literal("DocumentationPageMove"),
6282
+ var DTODocumentationPageMoveActionInputV2 = z222.object({
6283
+ type: z222.literal("DocumentationPageMove"),
6269
6284
  input: DTOMoveDocumentationPageInputV2
6270
6285
  });
6271
- var DTODocumentationPageDuplicateActionInputV2 = z221.object({
6272
- type: z221.literal("DocumentationPageDuplicate"),
6286
+ var DTODocumentationPageDuplicateActionInputV2 = z222.object({
6287
+ type: z222.literal("DocumentationPageDuplicate"),
6273
6288
  input: DTODuplicateDocumentationPageInputV2
6274
6289
  });
6275
- var DTODocumentationPageDeleteActionInputV2 = z221.object({
6276
- type: z221.literal("DocumentationPageDelete"),
6290
+ var DTODocumentationPageDeleteActionInputV2 = z222.object({
6291
+ type: z222.literal("DocumentationPageDelete"),
6277
6292
  input: DTODeleteDocumentationPageInputV2
6278
6293
  });
6279
- var DTODocumentationPageRestoreActionInput = z221.object({
6280
- type: z221.literal("DocumentationPageRestore"),
6294
+ var DTODocumentationPageRestoreActionInput = z222.object({
6295
+ type: z222.literal("DocumentationPageRestore"),
6281
6296
  input: DTORestoreDocumentationPageInput
6282
6297
  });
6283
- var DTODocumentationGroupRestoreActionInput = z221.object({
6284
- type: z221.literal("DocumentationGroupRestore"),
6298
+ var DTODocumentationGroupRestoreActionInput = z222.object({
6299
+ type: z222.literal("DocumentationGroupRestore"),
6285
6300
  input: DTORestoreDocumentationGroupInput
6286
6301
  });
6287
- var DTODocumentationPageApprovalStateChangeActionInput = z221.object({
6288
- type: z221.literal("DocumentationPageApprovalStateChange"),
6302
+ var DTODocumentationPageApprovalStateChangeActionInput = z222.object({
6303
+ type: z222.literal("DocumentationPageApprovalStateChange"),
6289
6304
  input: DTODocumentationPageApprovalStateChangeInput
6290
6305
  });
6291
6306
 
6292
6307
  // src/api/dto/elements/documentation/page-content.ts
6293
- import { z as z222 } from "zod";
6308
+ import { z as z223 } from "zod";
6294
6309
  var DTODocumentationPageContent = DocumentationPageContent;
6295
- var DTODocumentationPageContentGetResponse = z222.object({
6310
+ var DTODocumentationPageContentGetResponse = z223.object({
6296
6311
  pageContent: DTODocumentationPageContent
6297
6312
  });
6298
6313
 
6299
6314
  // src/api/dto/elements/documentation/page-v1.ts
6300
- import { z as z223 } from "zod";
6315
+ import { z as z224 } from "zod";
6301
6316
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6302
6317
  data: true,
6303
6318
  meta: true,
@@ -6305,32 +6320,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6305
6320
  sortOrder: true
6306
6321
  }).extend({
6307
6322
  configuration: DTODocumentationItemConfigurationV1,
6308
- blocks: z223.array(PageBlockV1),
6309
- title: z223.string(),
6310
- path: z223.string()
6323
+ blocks: z224.array(PageBlockV1),
6324
+ title: z224.string(),
6325
+ path: z224.string()
6311
6326
  });
6312
6327
 
6313
6328
  // src/api/dto/elements/figma-nodes/figma-node.ts
6314
- import { z as z224 } from "zod";
6329
+ import { z as z225 } from "zod";
6315
6330
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6316
- var DTOFigmaNodeOrigin = z224.object({
6317
- sourceId: z224.string(),
6318
- fileId: z224.string().optional(),
6319
- parentName: z224.string().optional()
6331
+ var DTOFigmaNodeOrigin = z225.object({
6332
+ sourceId: z225.string(),
6333
+ fileId: z225.string().optional(),
6334
+ parentName: z225.string().optional()
6320
6335
  });
6321
- var DTOFigmaNodeData = z224.object({
6336
+ var DTOFigmaNodeData = z225.object({
6322
6337
  // Id of the node in the Figma file
6323
- figmaNodeId: z224.string(),
6338
+ figmaNodeId: z225.string(),
6324
6339
  // Validity
6325
- isValid: z224.boolean(),
6340
+ isValid: z225.boolean(),
6326
6341
  // Asset data
6327
- assetId: z224.string(),
6328
- assetUrl: z224.string(),
6342
+ assetId: z225.string(),
6343
+ assetUrl: z225.string(),
6329
6344
  assetFormat: DTOFigmaNodeRenderFormat,
6330
6345
  // Asset metadata
6331
- assetScale: z224.number(),
6332
- assetWidth: z224.number().optional(),
6333
- assetHeight: z224.number().optional()
6346
+ assetScale: z225.number(),
6347
+ assetWidth: z225.number().optional(),
6348
+ assetHeight: z225.number().optional()
6334
6349
  });
6335
6350
  var DTOFigmaNode = FigmaNodeReference.omit({
6336
6351
  data: true,
@@ -6339,15 +6354,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6339
6354
  data: DTOFigmaNodeData,
6340
6355
  origin: DTOFigmaNodeOrigin
6341
6356
  });
6342
- var DTOFigmaNodeRenderInput = z224.object({
6357
+ var DTOFigmaNodeRenderInput = z225.object({
6343
6358
  /**
6344
6359
  * Id of a design system's data source representing a linked Figma file
6345
6360
  */
6346
- sourceId: z224.string(),
6361
+ sourceId: z225.string(),
6347
6362
  /**
6348
6363
  * Id of a node within the Figma file
6349
6364
  */
6350
- figmaFileNodeId: z224.string(),
6365
+ figmaFileNodeId: z225.string(),
6351
6366
  /**
6352
6367
  * Format in which the node must be rendered, png by default.
6353
6368
  */
@@ -6355,97 +6370,97 @@ var DTOFigmaNodeRenderInput = z224.object({
6355
6370
  });
6356
6371
 
6357
6372
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6358
- import { z as z225 } from "zod";
6359
- var DTOFigmaNodeRenderActionOutput = z225.object({
6360
- type: z225.literal("FigmaNodeRender"),
6361
- figmaNodes: z225.array(DTOFigmaNode)
6373
+ import { z as z226 } from "zod";
6374
+ var DTOFigmaNodeRenderActionOutput = z226.object({
6375
+ type: z226.literal("FigmaNodeRender"),
6376
+ figmaNodes: z226.array(DTOFigmaNode)
6362
6377
  });
6363
- var DTOFigmaNodeRenderActionInput = z225.object({
6364
- type: z225.literal("FigmaNodeRender"),
6378
+ var DTOFigmaNodeRenderActionInput = z226.object({
6379
+ type: z226.literal("FigmaNodeRender"),
6365
6380
  input: DTOFigmaNodeRenderInput.array()
6366
6381
  });
6367
6382
 
6368
6383
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6369
- import { z as z227 } from "zod";
6384
+ import { z as z228 } from "zod";
6370
6385
 
6371
6386
  // src/api/dto/elements/properties/property-definitions.ts
6372
- import { z as z226 } from "zod";
6387
+ import { z as z227 } from "zod";
6373
6388
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6374
- var DTOElementPropertyDefinition = z226.object({
6375
- id: z226.string(),
6376
- designSystemVersionId: z226.string(),
6389
+ var DTOElementPropertyDefinition = z227.object({
6390
+ id: z227.string(),
6391
+ designSystemVersionId: z227.string(),
6377
6392
  meta: ObjectMeta,
6378
- persistentId: z226.string(),
6393
+ persistentId: z227.string(),
6379
6394
  type: ElementPropertyTypeSchema,
6380
6395
  targetElementType: ElementPropertyTargetType,
6381
- codeName: z226.string().regex(CODE_NAME_REGEX2),
6382
- options: z226.array(ElementPropertyDefinitionOption).optional(),
6396
+ codeName: z227.string().regex(CODE_NAME_REGEX2),
6397
+ options: z227.array(ElementPropertyDefinitionOption).optional(),
6383
6398
  linkElementType: ElementPropertyLinkType.optional()
6384
6399
  });
6385
- var DTOElementPropertyDefinitionsGetResponse = z226.object({
6386
- definitions: z226.array(DTOElementPropertyDefinition)
6400
+ var DTOElementPropertyDefinitionsGetResponse = z227.object({
6401
+ definitions: z227.array(DTOElementPropertyDefinition)
6387
6402
  });
6388
6403
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6389
6404
  id: true,
6390
6405
  designSystemVersionId: true
6391
6406
  });
6392
- var DTOUpdateElementPropertyDefinitionInputV2 = z226.object({
6393
- id: z226.string(),
6394
- name: z226.string().optional(),
6395
- description: z226.string().optional(),
6396
- codeName: z226.string().regex(CODE_NAME_REGEX2).optional(),
6397
- options: z226.array(ElementPropertyDefinitionOption).optional()
6407
+ var DTOUpdateElementPropertyDefinitionInputV2 = z227.object({
6408
+ id: z227.string(),
6409
+ name: z227.string().optional(),
6410
+ description: z227.string().optional(),
6411
+ codeName: z227.string().regex(CODE_NAME_REGEX2).optional(),
6412
+ options: z227.array(ElementPropertyDefinitionOption).optional()
6398
6413
  });
6399
- var DTODeleteElementPropertyDefinitionInputV2 = z226.object({
6400
- id: z226.string()
6414
+ var DTODeleteElementPropertyDefinitionInputV2 = z227.object({
6415
+ id: z227.string()
6401
6416
  });
6402
6417
 
6403
6418
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6404
- var SuccessPayload3 = z227.object({
6405
- success: z227.literal(true)
6419
+ var SuccessPayload3 = z228.object({
6420
+ success: z228.literal(true)
6406
6421
  });
6407
- var DTOPropertyDefinitionCreateActionOutputV2 = z227.object({
6408
- type: z227.literal("PropertyDefinitionCreate"),
6422
+ var DTOPropertyDefinitionCreateActionOutputV2 = z228.object({
6423
+ type: z228.literal("PropertyDefinitionCreate"),
6409
6424
  definition: DTOElementPropertyDefinition
6410
6425
  });
6411
- var DTOPropertyDefinitionUpdateActionOutputV2 = z227.object({
6412
- type: z227.literal("PropertyDefinitionUpdate"),
6426
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z228.object({
6427
+ type: z228.literal("PropertyDefinitionUpdate"),
6413
6428
  definition: DTOElementPropertyDefinition
6414
6429
  });
6415
- var DTOPropertyDefinitionDeleteActionOutputV2 = z227.object({
6416
- type: z227.literal("PropertyDefinitionDelete"),
6430
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z228.object({
6431
+ type: z228.literal("PropertyDefinitionDelete"),
6417
6432
  output: SuccessPayload3
6418
6433
  });
6419
- var DTOPropertyDefinitionCreateActionInputV2 = z227.object({
6420
- type: z227.literal("PropertyDefinitionCreate"),
6434
+ var DTOPropertyDefinitionCreateActionInputV2 = z228.object({
6435
+ type: z228.literal("PropertyDefinitionCreate"),
6421
6436
  input: DTOCreateElementPropertyDefinitionInputV2
6422
6437
  });
6423
- var DTOPropertyDefinitionUpdateActionInputV2 = z227.object({
6424
- type: z227.literal("PropertyDefinitionUpdate"),
6438
+ var DTOPropertyDefinitionUpdateActionInputV2 = z228.object({
6439
+ type: z228.literal("PropertyDefinitionUpdate"),
6425
6440
  input: DTOUpdateElementPropertyDefinitionInputV2
6426
6441
  });
6427
- var DTOPropertyDefinitionDeleteActionInputV2 = z227.object({
6428
- type: z227.literal("PropertyDefinitionDelete"),
6442
+ var DTOPropertyDefinitionDeleteActionInputV2 = z228.object({
6443
+ type: z228.literal("PropertyDefinitionDelete"),
6429
6444
  input: DTODeleteElementPropertyDefinitionInputV2
6430
6445
  });
6431
6446
 
6432
6447
  // src/api/dto/elements/properties/property-values.ts
6433
- import { z as z228 } from "zod";
6434
- var DTOElementPropertyValue = z228.object({
6435
- id: z228.string(),
6436
- designSystemVersionId: z228.string(),
6437
- definitionId: z228.string(),
6438
- targetElementId: z228.string(),
6439
- value: z228.union([z228.string(), z228.number(), z228.boolean()]).optional(),
6440
- valuePreview: z228.string().optional()
6448
+ import { z as z229 } from "zod";
6449
+ var DTOElementPropertyValue = z229.object({
6450
+ id: z229.string(),
6451
+ designSystemVersionId: z229.string(),
6452
+ definitionId: z229.string(),
6453
+ targetElementId: z229.string(),
6454
+ value: z229.union([z229.string(), z229.number(), z229.boolean()]).optional(),
6455
+ valuePreview: z229.string().optional()
6441
6456
  });
6442
- var DTOElementPropertyValuesGetResponse = z228.object({
6443
- values: z228.array(DTOElementPropertyValue)
6457
+ var DTOElementPropertyValuesGetResponse = z229.object({
6458
+ values: z229.array(DTOElementPropertyValue)
6444
6459
  });
6445
6460
 
6446
6461
  // src/api/dto/elements/elements-action-v2.ts
6447
- import { z as z229 } from "zod";
6448
- var DTOElementActionOutput = z229.discriminatedUnion("type", [
6462
+ import { z as z230 } from "zod";
6463
+ var DTOElementActionOutput = z230.discriminatedUnion("type", [
6449
6464
  // Documentation pages
6450
6465
  DTODocumentationPageCreateActionOutputV2,
6451
6466
  DTODocumentationPageUpdateActionOutputV2,
@@ -6472,7 +6487,7 @@ var DTOElementActionOutput = z229.discriminatedUnion("type", [
6472
6487
  // Approvals
6473
6488
  DTODocumentationPageApprovalStateChangeActionOutput
6474
6489
  ]);
6475
- var DTOElementActionInput = z229.discriminatedUnion("type", [
6490
+ var DTOElementActionInput = z230.discriminatedUnion("type", [
6476
6491
  // Documentation pages
6477
6492
  DTODocumentationPageCreateActionInputV2,
6478
6493
  DTODocumentationPageUpdateActionInputV2,
@@ -6501,60 +6516,60 @@ var DTOElementActionInput = z229.discriminatedUnion("type", [
6501
6516
  ]);
6502
6517
 
6503
6518
  // src/api/dto/elements/get-elements-v2.ts
6504
- import { z as z230 } from "zod";
6505
- var DTOElementsGetTypeFilter = z230.enum(["FigmaNode"]);
6506
- var DTOElementsGetQuerySchema = z230.object({
6507
- types: z230.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6519
+ import { z as z231 } from "zod";
6520
+ var DTOElementsGetTypeFilter = z231.enum(["FigmaNode"]);
6521
+ var DTOElementsGetQuerySchema = z231.object({
6522
+ types: z231.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6508
6523
  });
6509
- var DTOElementsGetOutput = z230.object({
6510
- figmaNodes: z230.array(DTOFigmaNode).optional()
6524
+ var DTOElementsGetOutput = z231.object({
6525
+ figmaNodes: z231.array(DTOFigmaNode).optional()
6511
6526
  });
6512
6527
 
6513
6528
  // src/api/dto/figma-components/assets/download.ts
6514
- import { z as z231 } from "zod";
6515
- var DTOAssetRenderConfiguration = z231.object({
6516
- prefix: z231.string().optional(),
6517
- suffix: z231.string().optional(),
6518
- scale: z231.enum(["x1", "x2", "x3", "x4"]),
6519
- format: z231.enum(["png", "pdf", "svg"])
6520
- });
6521
- var DTORenderedAssetFile = z231.object({
6522
- assetId: z231.string(),
6523
- fileName: z231.string(),
6524
- sourceUrl: z231.string(),
6529
+ import { z as z232 } from "zod";
6530
+ var DTOAssetRenderConfiguration = z232.object({
6531
+ prefix: z232.string().optional(),
6532
+ suffix: z232.string().optional(),
6533
+ scale: z232.enum(["x1", "x2", "x3", "x4"]),
6534
+ format: z232.enum(["png", "pdf", "svg"])
6535
+ });
6536
+ var DTORenderedAssetFile = z232.object({
6537
+ assetId: z232.string(),
6538
+ fileName: z232.string(),
6539
+ sourceUrl: z232.string(),
6525
6540
  settings: DTOAssetRenderConfiguration,
6526
- originalName: z231.string()
6541
+ originalName: z232.string()
6527
6542
  });
6528
- var DTODownloadAssetsRequest = z231.object({
6529
- persistentIds: z231.array(z231.string().uuid()).optional(),
6543
+ var DTODownloadAssetsRequest = z232.object({
6544
+ persistentIds: z232.array(z232.string().uuid()).optional(),
6530
6545
  settings: DTOAssetRenderConfiguration.array()
6531
6546
  });
6532
- var DTODownloadAssetsResponse = z231.object({
6547
+ var DTODownloadAssetsResponse = z232.object({
6533
6548
  items: DTORenderedAssetFile.array()
6534
6549
  });
6535
6550
 
6536
6551
  // src/api/dto/liveblocks/auth-response.ts
6537
- import { z as z232 } from "zod";
6538
- var DTOLiveblocksAuthResponse = z232.object({
6539
- token: z232.string()
6552
+ import { z as z233 } from "zod";
6553
+ var DTOLiveblocksAuthResponse = z233.object({
6554
+ token: z233.string()
6540
6555
  });
6541
6556
 
6542
6557
  // src/api/dto/users/authenticated-user.ts
6543
- import { z as z234 } from "zod";
6558
+ import { z as z235 } from "zod";
6544
6559
 
6545
6560
  // src/api/dto/users/user.ts
6546
- import { z as z233 } from "zod";
6547
- var DTOUserProfile = z233.object({
6548
- name: z233.string(),
6549
- nickname: z233.string().optional(),
6550
- avatar: z233.string().optional()
6551
- });
6552
- var DTOUser = z233.object({
6553
- id: z233.string(),
6554
- email: z233.string(),
6561
+ import { z as z234 } from "zod";
6562
+ var DTOUserProfile = z234.object({
6563
+ name: z234.string(),
6564
+ nickname: z234.string().optional(),
6565
+ avatar: z234.string().optional()
6566
+ });
6567
+ var DTOUser = z234.object({
6568
+ id: z234.string(),
6569
+ email: z234.string(),
6555
6570
  profile: DTOUserProfile
6556
6571
  });
6557
- var DTOUserGetResponse = z233.object({
6572
+ var DTOUserGetResponse = z234.object({
6558
6573
  user: DTOUser
6559
6574
  });
6560
6575
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -6563,39 +6578,39 @@ var DTOUserProfileUpdate = UserProfileUpdate;
6563
6578
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6564
6579
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6565
6580
  var DTOUserSource = UserSource;
6566
- var DTOUserOnboarding = z234.object({
6567
- companyName: z234.string().optional(),
6568
- numberOfPeopleInOrg: z234.string().optional(),
6569
- numberOfPeopleInDesignTeam: z234.string().optional(),
6581
+ var DTOUserOnboarding = z235.object({
6582
+ companyName: z235.string().optional(),
6583
+ numberOfPeopleInOrg: z235.string().optional(),
6584
+ numberOfPeopleInDesignTeam: z235.string().optional(),
6570
6585
  department: DTOUserOnboardingDepartment.optional(),
6571
- jobTitle: z234.string().optional(),
6572
- phase: z234.string().optional(),
6586
+ jobTitle: z235.string().optional(),
6587
+ phase: z235.string().optional(),
6573
6588
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6574
- designSystemName: z234.string().optional(),
6575
- defaultDestination: z234.string().optional(),
6576
- isPageDraftOnboardingFinished: z234.boolean().optional()
6589
+ designSystemName: z235.string().optional(),
6590
+ defaultDestination: z235.string().optional(),
6591
+ isPageDraftOnboardingFinished: z235.boolean().optional()
6577
6592
  });
6578
6593
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6579
6594
  onboarding: DTOUserOnboarding.optional()
6580
6595
  });
6581
6596
  var DTOAuthenticatedUser = DTOUser.extend({
6582
6597
  profile: DTOAuthenticatedUserProfile,
6583
- createdAt: z234.coerce.date(),
6584
- loggedOutAt: z234.coerce.date().optional(),
6598
+ createdAt: z235.coerce.date(),
6599
+ loggedOutAt: z235.coerce.date().optional(),
6585
6600
  source: DTOUserSource.optional()
6586
6601
  });
6587
- var DTOAuthenticatedUserResponse = z234.object({
6602
+ var DTOAuthenticatedUserResponse = z235.object({
6588
6603
  user: DTOAuthenticatedUser
6589
6604
  });
6590
6605
 
6591
6606
  // src/api/dto/users/update.ts
6592
- import { z as z235 } from "zod";
6593
- var DTOUserProfileUpdateResponse = z235.object({
6607
+ import { z as z236 } from "zod";
6608
+ var DTOUserProfileUpdateResponse = z236.object({
6594
6609
  user: User
6595
6610
  });
6596
6611
 
6597
6612
  // src/api/endpoints/design-system/versions/brands.ts
6598
- import { z as z236 } from "zod";
6613
+ import { z as z237 } from "zod";
6599
6614
  var BrandsEndpoint = class {
6600
6615
  constructor(requestExecutor) {
6601
6616
  this.requestExecutor = requestExecutor;
@@ -6603,16 +6618,16 @@ var BrandsEndpoint = class {
6603
6618
  get(designSystemId, versionId, brandId) {
6604
6619
  return this.requestExecutor.json(
6605
6620
  `/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
6606
- z236.any()
6621
+ z237.any()
6607
6622
  );
6608
6623
  }
6609
6624
  list(designSystemId, versionId) {
6610
- return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z236.any());
6625
+ return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z237.any());
6611
6626
  }
6612
6627
  };
6613
6628
 
6614
6629
  // src/api/endpoints/design-system/versions/overrides.ts
6615
- import { z as z237 } from "zod";
6630
+ import { z as z238 } from "zod";
6616
6631
  var OverridesEndpoint = class {
6617
6632
  constructor(requestExecutor) {
6618
6633
  this.requestExecutor = requestExecutor;
@@ -6620,7 +6635,7 @@ var OverridesEndpoint = class {
6620
6635
  create(dsId, versionId, themeId, body) {
6621
6636
  return this.requestExecutor.json(
6622
6637
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
6623
- z237.any(),
6638
+ z238.any(),
6624
6639
  {
6625
6640
  method: "POST",
6626
6641
  body
@@ -6629,8 +6644,20 @@ var OverridesEndpoint = class {
6629
6644
  }
6630
6645
  };
6631
6646
 
6647
+ // src/api/endpoints/design-system/versions/stats.ts
6648
+ var VersionStatsEndpoint = class {
6649
+ constructor(requestExecutor) {
6650
+ this.requestExecutor = requestExecutor;
6651
+ }
6652
+ get(dsId, vId, query = {}) {
6653
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/stats`, DTODesignSystemVersionStats, {
6654
+ query: new URLSearchParams(query)
6655
+ });
6656
+ }
6657
+ };
6658
+
6632
6659
  // src/api/endpoints/design-system/versions/themes.ts
6633
- import { z as z238 } from "zod";
6660
+ import { z as z239 } from "zod";
6634
6661
  var ThemesEndpoint = class {
6635
6662
  constructor(requestExecutor) {
6636
6663
  this.requestExecutor = requestExecutor;
@@ -6638,26 +6665,26 @@ var ThemesEndpoint = class {
6638
6665
  this.overrides = new OverridesEndpoint(requestExecutor);
6639
6666
  }
6640
6667
  create(dsId, versionId, body) {
6641
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z238.any(), {
6668
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z239.any(), {
6642
6669
  method: "POST",
6643
6670
  body
6644
6671
  });
6645
6672
  }
6646
6673
  delete(dsId, versionId, themeId) {
6647
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z238.any(), {
6674
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z239.any(), {
6648
6675
  method: "DELETE"
6649
6676
  });
6650
6677
  }
6651
6678
  };
6652
6679
 
6653
6680
  // src/api/endpoints/design-system/versions/tokens.ts
6654
- import { z as z239 } from "zod";
6681
+ import { z as z240 } from "zod";
6655
6682
  var TokensEndpoint = class {
6656
6683
  constructor(requestExecutor) {
6657
6684
  this.requestExecutor = requestExecutor;
6658
6685
  }
6659
6686
  create(dsId, versionId, body) {
6660
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z239.any(), {
6687
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z240.any(), {
6661
6688
  method: "POST",
6662
6689
  body
6663
6690
  });
@@ -6689,9 +6716,11 @@ var DesignSystemVersionsEndpoint = class {
6689
6716
  __publicField(this, "themes");
6690
6717
  __publicField(this, "brands");
6691
6718
  __publicField(this, "tokens");
6719
+ __publicField(this, "stats");
6692
6720
  this.themes = new ThemesEndpoint(requestExecutor);
6693
6721
  this.brands = new BrandsEndpoint(requestExecutor);
6694
6722
  this.tokens = new TokensEndpoint(requestExecutor);
6723
+ this.stats = new VersionStatsEndpoint(requestExecutor);
6695
6724
  }
6696
6725
  list(dsId) {
6697
6726
  return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
@@ -6699,7 +6728,7 @@ var DesignSystemVersionsEndpoint = class {
6699
6728
  };
6700
6729
 
6701
6730
  // src/api/endpoints/design-system/design-systems.ts
6702
- import { z as z240 } from "zod";
6731
+ import { z as z241 } from "zod";
6703
6732
  var DesignSystemsEndpoint = class {
6704
6733
  constructor(requestExecutor) {
6705
6734
  this.requestExecutor = requestExecutor;
@@ -6715,10 +6744,10 @@ var DesignSystemsEndpoint = class {
6715
6744
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6716
6745
  }
6717
6746
  get(dsId) {
6718
- return this.requestExecutor.json(`/design-systems/${dsId}`, z240.any());
6747
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any());
6719
6748
  }
6720
6749
  delete(dsId) {
6721
- return this.requestExecutor.json(`/design-systems/${dsId}`, z240.any(), { method: "DELETE" });
6750
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any(), { method: "DELETE" });
6722
6751
  }
6723
6752
  update(dsId, body) {
6724
6753
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6752,7 +6781,7 @@ var WorkspaceInvitationsEndpoint = class {
6752
6781
  };
6753
6782
 
6754
6783
  // src/api/endpoints/workspaces/workspace-members.ts
6755
- import { z as z241 } from "zod";
6784
+ import { z as z242 } from "zod";
6756
6785
  var WorkspaceMembersEndpoint = class {
6757
6786
  constructor(requestExecutor) {
6758
6787
  this.requestExecutor = requestExecutor;
@@ -6769,7 +6798,7 @@ var WorkspaceMembersEndpoint = class {
6769
6798
  });
6770
6799
  }
6771
6800
  invite(workspaceId, body) {
6772
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z241.any(), { method: "POST", body });
6801
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z242.any(), { method: "POST", body });
6773
6802
  }
6774
6803
  delete(workspaceId, userId) {
6775
6804
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6779,7 +6808,7 @@ var WorkspaceMembersEndpoint = class {
6779
6808
  };
6780
6809
 
6781
6810
  // src/api/endpoints/workspaces/workspaces.ts
6782
- import { z as z242 } from "zod";
6811
+ import { z as z243 } from "zod";
6783
6812
  var WorkspacesEndpoint = class {
6784
6813
  constructor(requestExecutor) {
6785
6814
  this.requestExecutor = requestExecutor;
@@ -6799,10 +6828,10 @@ var WorkspacesEndpoint = class {
6799
6828
  });
6800
6829
  }
6801
6830
  delete(workspaceId) {
6802
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z242.any(), { method: "DELETE" });
6831
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z243.any(), { method: "DELETE" });
6803
6832
  }
6804
6833
  subscription(workspaceId) {
6805
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z242.any(), { method: "GET" });
6834
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z243.any(), { method: "GET" });
6806
6835
  }
6807
6836
  };
6808
6837
 
@@ -6896,9 +6925,9 @@ ${bodyText}`,
6896
6925
 
6897
6926
  // src/api/transport/request-executor.ts
6898
6927
  import fetch from "node-fetch";
6899
- import { z as z243 } from "zod";
6900
- var ResponseWrapper = z243.object({
6901
- result: z243.record(z243.any())
6928
+ import { z as z244 } from "zod";
6929
+ var ResponseWrapper = z244.object({
6930
+ result: z244.record(z244.any())
6902
6931
  });
6903
6932
  var RequestExecutor = class {
6904
6933
  constructor(testServerConfig) {
@@ -6917,7 +6946,7 @@ var RequestExecutor = class {
6917
6946
  let body;
6918
6947
  if (requestInit.body && typeof requestInit.body === "object")
6919
6948
  body = JSON.stringify(requestInit.body);
6920
- const response = await fetch(this.fullUrl(path), {
6949
+ const response = await fetch(this.fullUrl(path, requestInit.query), {
6921
6950
  ...requestInit,
6922
6951
  headers: {
6923
6952
  ...requestInit.headers,
@@ -6940,8 +6969,12 @@ var RequestExecutor = class {
6940
6969
  }
6941
6970
  return responseParseResult.data;
6942
6971
  }
6943
- fullUrl(path) {
6944
- return `https://${this.testServerConfig.host}/api/v2${path}`;
6972
+ fullUrl(path, query) {
6973
+ let url = `https://${this.testServerConfig.host}/api/v2${path}`;
6974
+ const queryString = query?.toString();
6975
+ if (queryString)
6976
+ url += `?${queryString}`;
6977
+ return url;
6945
6978
  }
6946
6979
  };
6947
6980
 
@@ -7020,7 +7053,7 @@ function generateHash(input, debug = false) {
7020
7053
  }
7021
7054
 
7022
7055
  // src/yjs/design-system-content/documentation-hierarchy.ts
7023
- import { z as z244 } from "zod";
7056
+ import { z as z245 } from "zod";
7024
7057
 
7025
7058
  // src/yjs/version-room/base.ts
7026
7059
  var VersionRoomBaseYDoc = class {
@@ -7550,24 +7583,24 @@ var FrontendVersionRoomYDoc = class {
7550
7583
  };
7551
7584
 
7552
7585
  // src/yjs/design-system-content/documentation-hierarchy.ts
7553
- var DocumentationHierarchySettings = z244.object({
7554
- routingVersion: z244.string(),
7555
- isDraftFeatureAdopted: z244.boolean(),
7556
- isApprovalFeatureEnabled: z244.boolean(),
7557
- approvalRequiredForPublishing: z244.boolean()
7586
+ var DocumentationHierarchySettings = z245.object({
7587
+ routingVersion: z245.string(),
7588
+ isDraftFeatureAdopted: z245.boolean(),
7589
+ isApprovalFeatureEnabled: z245.boolean(),
7590
+ approvalRequiredForPublishing: z245.boolean()
7558
7591
  });
7559
7592
  function yjsToDocumentationHierarchy(doc) {
7560
7593
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7561
7594
  }
7562
7595
 
7563
7596
  // src/yjs/design-system-content/item-configuration.ts
7564
- import { z as z245 } from "zod";
7565
- var DTODocumentationPageRoomHeaderData = z245.object({
7566
- title: z245.string(),
7597
+ import { z as z246 } from "zod";
7598
+ var DTODocumentationPageRoomHeaderData = z246.object({
7599
+ title: z246.string(),
7567
7600
  configuration: DTODocumentationItemConfigurationV2
7568
7601
  });
7569
- var DTODocumentationPageRoomHeaderDataUpdate = z245.object({
7570
- title: z245.string().optional(),
7602
+ var DTODocumentationPageRoomHeaderDataUpdate = z246.object({
7603
+ title: z246.string().optional(),
7571
7604
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7572
7605
  });
7573
7606
  function itemConfigurationToYjs(yDoc, item) {
@@ -7618,7 +7651,7 @@ function yjsToItemConfiguration(yDoc) {
7618
7651
  header: rawHeader
7619
7652
  };
7620
7653
  return {
7621
- title: z245.string().parse(title),
7654
+ title: z246.string().parse(title),
7622
7655
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7623
7656
  };
7624
7657
  }
@@ -7628,9 +7661,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7628
7661
  var PageSectionEditorModel = PageSectionEditorModelV2;
7629
7662
 
7630
7663
  // src/yjs/docs-editor/model/page.ts
7631
- import { z as z246 } from "zod";
7632
- var DocumentationPageEditorModel = z246.object({
7633
- blocks: z246.array(DocumentationPageContentItem)
7664
+ import { z as z247 } from "zod";
7665
+ var DocumentationPageEditorModel = z247.object({
7666
+ blocks: z247.array(DocumentationPageContentItem)
7634
7667
  });
7635
7668
 
7636
7669
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11150,7 +11183,7 @@ var blocks = [
11150
11183
 
11151
11184
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11152
11185
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11153
- import { z as z247 } from "zod";
11186
+ import { z as z248 } from "zod";
11154
11187
  function yDocToPage(yDoc, definitions) {
11155
11188
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11156
11189
  }
@@ -11230,7 +11263,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11230
11263
  return null;
11231
11264
  return {
11232
11265
  id,
11233
- title: getProsemirrorAttribute(prosemirrorNode, "title", z247.string()) ?? "",
11266
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z248.string()) ?? "",
11234
11267
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11235
11268
  };
11236
11269
  }
@@ -11265,7 +11298,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11265
11298
  });
11266
11299
  }
11267
11300
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11268
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z247.string());
11301
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z248.string());
11269
11302
  if (!definitionId) {
11270
11303
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11271
11304
  return [];
@@ -11307,7 +11340,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11307
11340
  if (!id)
11308
11341
  return null;
11309
11342
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11310
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z247.string().optional()));
11343
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z248.string().optional()));
11311
11344
  return {
11312
11345
  id,
11313
11346
  type: "Block",
@@ -11435,10 +11468,10 @@ function parseRichTextAttribute(mark) {
11435
11468
  return null;
11436
11469
  }
11437
11470
  function parseProsemirrorLink(mark) {
11438
- const href = getProsemirrorAttribute(mark, "href", z247.string().optional());
11471
+ const href = getProsemirrorAttribute(mark, "href", z248.string().optional());
11439
11472
  if (!href)
11440
11473
  return null;
11441
- const target = getProsemirrorAttribute(mark, "target", z247.string().optional());
11474
+ const target = getProsemirrorAttribute(mark, "target", z248.string().optional());
11442
11475
  const openInNewTab = target === "_blank";
11443
11476
  if (href.startsWith("@")) {
11444
11477
  return {
@@ -11457,10 +11490,10 @@ function parseProsemirrorLink(mark) {
11457
11490
  }
11458
11491
  }
11459
11492
  function parseProsemirrorCommentHighlight(mark) {
11460
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z247.string().optional());
11493
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z248.string().optional());
11461
11494
  if (!highlightId)
11462
11495
  return null;
11463
- const isResolved = getProsemirrorAttribute(mark, "resolved", z247.boolean().optional()) ?? false;
11496
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z248.boolean().optional()) ?? false;
11464
11497
  return {
11465
11498
  type: "Comment",
11466
11499
  commentHighlightId: highlightId,
@@ -11472,7 +11505,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11472
11505
  if (!id)
11473
11506
  return null;
11474
11507
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11475
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z247.boolean().optional()) !== false;
11508
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z248.boolean().optional()) !== false;
11476
11509
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11477
11510
  if (!tableChild) {
11478
11511
  return emptyTable(id, variantId, 0);
@@ -11519,9 +11552,9 @@ function parseAsTableCell(prosemirrorNode) {
11519
11552
  const id = getProsemirrorBlockId(prosemirrorNode);
11520
11553
  if (!id)
11521
11554
  return null;
11522
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z247.string().optional());
11555
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z248.string().optional());
11523
11556
  let columnWidth;
11524
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z247.array(z247.number()).nullish());
11557
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z248.array(z248.number()).nullish());
11525
11558
  if (columnWidthArray) {
11526
11559
  columnWidth = roundDimension(columnWidthArray[0]);
11527
11560
  }
@@ -11559,7 +11592,7 @@ function parseAsTableNode(prosemirrorNode) {
11559
11592
  value: parseRichText(prosemirrorNode.content ?? [])
11560
11593
  };
11561
11594
  case "image":
11562
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z247.string());
11595
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
11563
11596
  if (!items)
11564
11597
  return null;
11565
11598
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11679,7 +11712,7 @@ function definitionExpectsPlaceholderItem(definition) {
11679
11712
  );
11680
11713
  }
11681
11714
  function parseBlockItems(prosemirrorNode, definition) {
11682
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z247.string());
11715
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
11683
11716
  if (!itemsString)
11684
11717
  return null;
11685
11718
  const itemsJson = JSON.parse(itemsString);
@@ -11691,18 +11724,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11691
11724
  }
11692
11725
  function parseAppearance(prosemirrorNode) {
11693
11726
  let appearance = {};
11694
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z247.string().optional());
11727
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z248.string().optional());
11695
11728
  if (rawAppearanceString) {
11696
11729
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11697
11730
  if (parsedAppearance.success) {
11698
11731
  appearance = parsedAppearance.data;
11699
11732
  }
11700
11733
  }
11701
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z247.number().optional());
11734
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z248.number().optional());
11702
11735
  if (columns) {
11703
11736
  appearance.numberOfColumns = columns;
11704
11737
  }
11705
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z247.string().optional());
11738
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z248.string().optional());
11706
11739
  if (backgroundColor) {
11707
11740
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11708
11741
  if (parsedColor.success) {
@@ -11797,13 +11830,13 @@ function valueSchemaForPropertyType(type) {
11797
11830
  }
11798
11831
  }
11799
11832
  function getProsemirrorBlockId(prosemirrorNode) {
11800
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z247.string());
11833
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z248.string());
11801
11834
  if (!id)
11802
11835
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11803
11836
  return id;
11804
11837
  }
11805
11838
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11806
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z247.string()));
11839
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z248.string()));
11807
11840
  }
11808
11841
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11809
11842
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11910,6 +11943,8 @@ export {
11910
11943
  DTODesignSystemVersionGetResponse,
11911
11944
  DTODesignSystemVersionJobStatusResponse,
11912
11945
  DTODesignSystemVersionJobsResponse,
11946
+ DTODesignSystemVersionStats,
11947
+ DTODesignSystemVersionStatsQuery,
11913
11948
  DTODesignSystemVersionsListResponse,
11914
11949
  DTODesignSystemsListResponse,
11915
11950
  DTODiffCountBase,
@@ -12111,6 +12146,7 @@ export {
12111
12146
  UsersEndpoint,
12112
12147
  VersionRoomBaseYDoc,
12113
12148
  VersionSQSPayload,
12149
+ VersionStatsEndpoint,
12114
12150
  WorkspaceConfigurationPayload,
12115
12151
  WorkspaceInvitationsEndpoint,
12116
12152
  WorkspaceMembersEndpoint,