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