@supernova-studio/client 0.55.33 → 0.55.35

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
@@ -5059,7 +5059,7 @@ var DTOPagination = z175.object({
5059
5059
  });
5060
5060
 
5061
5061
  // src/api/dto/bff/app-bootstrap-data.ts
5062
- import { z as z203 } from "zod";
5062
+ import { z as z205 } from "zod";
5063
5063
 
5064
5064
  // src/api/dto/design-systems/brand.ts
5065
5065
  import { z as z176 } from "zod";
@@ -5089,7 +5089,7 @@ var DTODataSourceFigmaCloud = z177.object({
5089
5089
  autoImportMode: DataSourceAutoImportMode,
5090
5090
  fileThumbnailUrl: z177.string().optional(),
5091
5091
  lastImportResult: SourceImportSummary.nullish(),
5092
- lastImportedAt: z177.date().nullish(),
5092
+ lastImportedAt: z177.coerce.date().nullish(),
5093
5093
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5094
5094
  lastUpdatesCheckedAt: z177.date().nullish(),
5095
5095
  ownerId: z177.string(),
@@ -5104,10 +5104,7 @@ var DTODataSourceFigma = z177.object({
5104
5104
  scope: DataSourceFigmaScope,
5105
5105
  brandId: z177.string(),
5106
5106
  themeId: z177.string().nullish(),
5107
- cloud: DTODataSourceFigmaCloud.nullish(),
5108
- tokenStudio: z177.literal(null),
5109
- upload: z177.literal(null),
5110
- figmaVariablesPlugin: z177.literal(null)
5107
+ cloud: DTODataSourceFigmaCloud.nullish()
5111
5108
  });
5112
5109
  var DTODataSourceTokenStudio = z177.object({
5113
5110
  id: z177.string(),
@@ -5115,7 +5112,6 @@ var DTODataSourceTokenStudio = z177.object({
5115
5112
  fileName: z177.string(),
5116
5113
  brandId: z177.string(),
5117
5114
  themeId: z177.string().nullish(),
5118
- cloud: z177.literal(null),
5119
5115
  tokenStudio: z177.object({
5120
5116
  settings: z177.object({
5121
5117
  dryRun: z177.boolean(),
@@ -5123,7 +5119,7 @@ var DTODataSourceTokenStudio = z177.object({
5123
5119
  preciseCopy: z177.boolean()
5124
5120
  }),
5125
5121
  connectionName: z177.string(),
5126
- lastImportedAt: z177.date(),
5122
+ lastImportedAt: z177.coerce.date(),
5127
5123
  lastImportedResults: z177.array(
5128
5124
  z177.object({
5129
5125
  mapping: z177.object({
@@ -5137,28 +5133,25 @@ var DTODataSourceTokenStudio = z177.object({
5137
5133
  tokensUpdated: z177.number()
5138
5134
  })
5139
5135
  )
5140
- }),
5141
- upload: z177.literal(null),
5142
- figmaVariablesPlugin: z177.literal(null)
5136
+ })
5143
5137
  });
5144
5138
  var DTODataSourceFigmaVariablesPlugin = z177.object({
5145
5139
  id: z177.string(),
5146
5140
  type: z177.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5147
5141
  fileName: z177.string(),
5148
5142
  brandId: z177.string(),
5149
- themeId: z177.literal(null),
5150
- cloud: z177.literal(null),
5151
- tokenStudio: z177.literal(null),
5152
5143
  upload: z177.object({
5153
5144
  remoteId: z177.string(),
5154
5145
  remoteSourceType: DataSourceUploadRemoteSource,
5155
- lastImportedAt: z177.date().optional(),
5156
- lastImportMetadata: DataSourceUploadImportMetadata.optional()
5146
+ lastImportedAt: z177.coerce.date().optional(),
5147
+ lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5148
+ isTokenTypeSplitEnabled: z177.boolean()
5157
5149
  }),
5158
5150
  figmaVariablesPlugin: z177.object({
5159
5151
  fileId: z177.string(),
5160
- lastImportedAt: z177.date().optional(),
5161
- lastImportMetadata: DataSourceUploadImportMetadata.optional()
5152
+ lastImportedAt: z177.coerce.date().optional(),
5153
+ lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5154
+ isTokenTypeSplitEnabled: z177.boolean()
5162
5155
  })
5163
5156
  });
5164
5157
  var DTODataSource = z177.discriminatedUnion("type", [
@@ -5276,46 +5269,158 @@ import { z as z182 } from "zod";
5276
5269
  var DTOExporterProperty = z182.any({});
5277
5270
  var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
5278
5271
 
5279
- // src/api/dto/design-systems/stats.ts
5272
+ // src/api/dto/design-systems/figma-variables.ts
5280
5273
  import { z as z183 } from "zod";
5281
- var DTODesignSystemVersionStats = z183.object({
5282
- tokens: z183.number(),
5283
- designSystemComponents: z183.number(),
5284
- assets: z183.number(),
5285
- documentationPages: z183.number()
5274
+ var DimensionsVariableScopeSchema = z183.enum([
5275
+ "CORNER_RADIUS",
5276
+ "WIDTH_HEIGHT",
5277
+ "GAP",
5278
+ "STROKE_FLOAT",
5279
+ "EFFECT_FLOAT",
5280
+ "OPACITY",
5281
+ "FONT_SIZE",
5282
+ "LINE_HEIGHT",
5283
+ "LETTER_SPACING",
5284
+ "PARAGRAPH_SPACING",
5285
+ "PARAGRAPH_INDENT"
5286
+ ]);
5287
+ var StringVariableScopeSchema = z183.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE", "FONT_WEIGHT"]);
5288
+ var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5289
+ var StringVariableScopeType = StringVariableScopeSchema.enum;
5290
+ var VariableScope = z183.string();
5291
+ var ReferencedVariableOrigin = z183.object({
5292
+ name: z183.string(),
5293
+ remote: z183.boolean()
5294
+ });
5295
+ var RGB = z183.object({
5296
+ r: z183.number(),
5297
+ g: z183.number(),
5298
+ b: z183.number()
5299
+ });
5300
+ var RGBA = RGB.extend({
5301
+ a: z183.number()
5302
+ });
5303
+ var VariableAlias = z183.object({
5304
+ type: z183.literal("VARIABLE_ALIAS"),
5305
+ id: z183.string(),
5306
+ resolvedValue: z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).optional(),
5307
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z183.null())
5308
+ });
5309
+ var VariableValue = z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).or(VariableAlias);
5310
+ var ResolvedVariableType = z183.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5311
+ var Variable = z183.object({
5312
+ id: z183.string(),
5313
+ name: z183.string(),
5314
+ key: z183.string(),
5315
+ variableCollectionId: z183.string(),
5316
+ resolvedType: ResolvedVariableType,
5317
+ valuesByMode: z183.record(VariableValue),
5318
+ remote: z183.boolean(),
5319
+ description: z183.string(),
5320
+ hiddenFromPublishing: z183.boolean(),
5321
+ scopes: z183.array(VariableScope),
5322
+ codeSyntax: z183.record(z183.any()).optional()
5323
+ });
5324
+ var VariableMode = z183.object({
5325
+ modeId: z183.string(),
5326
+ name: z183.string()
5327
+ });
5328
+ var Collection = z183.object({
5329
+ id: z183.string(),
5330
+ name: z183.string(),
5331
+ modes: z183.array(VariableMode),
5332
+ defaultModeId: z183.string(),
5333
+ remote: z183.boolean(),
5334
+ hiddenFromPublishing: z183.boolean()
5335
+ });
5336
+ var VariablesMapping = z183.object({
5337
+ variableCollections: z183.array(z183.string()).min(1),
5338
+ variableMode: z183.string().min(1),
5339
+ supernovaBrand: z183.string().min(1),
5340
+ supernovaTheme: z183.string().min(1).optional().or(z183.null())
5341
+ });
5342
+ var FormattedCollections = z183.object({
5343
+ variables: z183.record(z183.string(), Variable),
5344
+ variableCollections: z183.record(z183.string(), Collection),
5345
+ mappings: z183.array(VariablesMapping).optional(),
5346
+ variablesOrder: z183.string().array().optional()
5347
+ });
5348
+
5349
+ // src/api/dto/design-systems/import-job.ts
5350
+ import { z as z184 } from "zod";
5351
+ var DTOImportJob = z184.object({
5352
+ id: z184.string(),
5353
+ designSystemId: z184.string(),
5354
+ designSystemVersionId: z184.string(),
5355
+ operation: z184.literal("Import"),
5356
+ createdAt: z184.coerce.date(),
5357
+ stateChangedAt: z184.coerce.date(),
5358
+ state: ImportJobState,
5359
+ sourceIds: z184.string().array()
5360
+ });
5361
+ var DTOImportJobResponse = z184.object({
5362
+ job: DTOImportJob
5363
+ });
5364
+ var DTOBffFigmaImportRequestBody = z184.object({
5365
+ type: z184.literal(DataSourceRemoteType.Enum.Figma),
5366
+ brandPersistentId: z184.string().optional(),
5367
+ fileId: z184.string(),
5368
+ scope: DataSourceFigmaScope,
5369
+ autoImportMode: DataSourceAutoImportMode
5370
+ });
5371
+ var DTOBffUploadImportRequestBody = z184.object({
5372
+ type: z184.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5373
+ brandPersistentId: z184.string().optional(),
5374
+ sourceName: z184.string().optional(),
5375
+ remoteId: z184.string(),
5376
+ isTokenTypeSplitEnabled: z184.boolean().optional(),
5377
+ payload: z184.any()
5378
+ });
5379
+ var DTOBffImportRequestBody = z184.discriminatedUnion("type", [
5380
+ DTOBffFigmaImportRequestBody,
5381
+ DTOBffUploadImportRequestBody
5382
+ ]);
5383
+
5384
+ // src/api/dto/design-systems/stats.ts
5385
+ import { z as z185 } from "zod";
5386
+ var DTODesignSystemVersionStats = z185.object({
5387
+ tokens: z185.number(),
5388
+ designSystemComponents: z185.number(),
5389
+ assets: z185.number(),
5390
+ documentationPages: z185.number()
5286
5391
  });
5287
- var DTODesignSystemVersionStatsQuery = z183.object({
5288
- brandId: z183.string().optional()
5392
+ var DTODesignSystemVersionStatsQuery = z185.object({
5393
+ brandId: z185.string().optional()
5289
5394
  });
5290
5395
 
5291
5396
  // src/api/dto/design-systems/version.ts
5292
- import { z as z195 } from "zod";
5397
+ import { z as z197 } from "zod";
5293
5398
 
5294
5399
  // src/api/payloads/design-systems/brand.ts
5295
- import { z as z184 } from "zod";
5296
- var DTOCreateBrandInput = z184.object({
5297
- persistentId: z184.string().uuid(),
5298
- meta: z184.object({
5299
- name: z184.string(),
5300
- description: z184.string()
5400
+ import { z as z186 } from "zod";
5401
+ var DTOCreateBrandInput = z186.object({
5402
+ persistentId: z186.string().uuid(),
5403
+ meta: z186.object({
5404
+ name: z186.string(),
5405
+ description: z186.string()
5301
5406
  })
5302
5407
  });
5303
5408
 
5304
5409
  // src/api/payloads/design-systems/theme.ts
5305
- import { z as z185 } from "zod";
5306
- var DTOCreateThemeInput = z185.object({
5410
+ import { z as z187 } from "zod";
5411
+ var DTOCreateThemeInput = z187.object({
5307
5412
  meta: ObjectMeta,
5308
- persistentId: z185.string(),
5309
- designSystemVersionId: z185.string(),
5310
- brandId: z185.string(),
5311
- codeName: z185.string(),
5312
- version: z185.string().optional(),
5313
- overrides: z185.array(z185.any())
5413
+ persistentId: z187.string(),
5414
+ designSystemVersionId: z187.string(),
5415
+ brandId: z187.string(),
5416
+ codeName: z187.string(),
5417
+ version: z187.string().optional(),
5418
+ overrides: z187.array(z187.any())
5314
5419
  // TODO Add actual overrides.
5315
5420
  });
5316
5421
 
5317
5422
  // src/api/payloads/design-systems/update-design-system.ts
5318
- import { z as z186 } from "zod";
5423
+ import { z as z188 } from "zod";
5319
5424
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5320
5425
  id: true,
5321
5426
  workspaceId: true,
@@ -5327,40 +5432,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5327
5432
  }).extend({
5328
5433
  meta: ObjectMeta.partial().optional()
5329
5434
  });
5330
- var DTODesignSystemUpdateAccessModeInput = z186.object({
5435
+ var DTODesignSystemUpdateAccessModeInput = z188.object({
5331
5436
  accessMode: DesignSystemAccessMode,
5332
- retain: z186.object({
5333
- userIds: z186.string().array(),
5334
- inviteIds: z186.string().array()
5437
+ retain: z188.object({
5438
+ userIds: z188.string().array(),
5439
+ inviteIds: z188.string().array()
5335
5440
  }).optional()
5336
5441
  });
5337
5442
 
5338
5443
  // src/api/payloads/design-systems/version.ts
5339
- import { z as z187 } from "zod";
5340
- var ObjectMeta2 = z187.object({
5341
- name: z187.string().max(150).optional(),
5342
- description: z187.string().max(2e3).optional()
5444
+ import { z as z189 } from "zod";
5445
+ var ObjectMeta2 = z189.object({
5446
+ name: z189.string().max(150).optional(),
5447
+ description: z189.string().max(2e3).optional()
5343
5448
  });
5344
5449
  function validateDesignSystemVersion(version) {
5345
5450
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5346
5451
  return urlCompliantRegex.test(version);
5347
5452
  }
5348
- var DTOCreateVersionInput = z187.object({
5453
+ var DTOCreateVersionInput = z189.object({
5349
5454
  meta: ObjectMeta2,
5350
- version: z187.string().refine(validateDesignSystemVersion, {
5455
+ version: z189.string().refine(validateDesignSystemVersion, {
5351
5456
  message: "Invalid semantic versioning format"
5352
5457
  }),
5353
- changeLog: z187.string().optional()
5458
+ changeLog: z189.string().optional()
5354
5459
  });
5355
- var DTOUpdateVersionInput = z187.object({
5460
+ var DTOUpdateVersionInput = z189.object({
5356
5461
  meta: ObjectMeta2,
5357
- version: z187.string(),
5462
+ version: z189.string(),
5358
5463
  // required for PUT, but not editable
5359
- changeLog: z187.string()
5464
+ changeLog: z189.string()
5360
5465
  });
5361
5466
 
5362
5467
  // src/api/payloads/documentation/block-definitions.ts
5363
- import { z as z188 } from "zod";
5468
+ import { z as z190 } from "zod";
5364
5469
 
5365
5470
  // src/api/dto/documentation/block-definition.ts
5366
5471
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5372,60 +5477,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5372
5477
  var DTOPageBlockDefinition = PageBlockDefinition;
5373
5478
 
5374
5479
  // src/api/payloads/documentation/block-definitions.ts
5375
- var DTOGetBlockDefinitionsOutput = z188.object({
5376
- definitions: z188.array(DTOPageBlockDefinition)
5480
+ var DTOGetBlockDefinitionsOutput = z190.object({
5481
+ definitions: z190.array(DTOPageBlockDefinition)
5377
5482
  });
5378
5483
 
5379
5484
  // src/api/payloads/documentation/design-data-doc-diff.ts
5380
- import { z as z189 } from "zod";
5381
- var DTODocumentationPublishTypeQueryParams = z189.object({
5382
- environment: z189.enum(["Live", "Preview"])
5485
+ import { z as z191 } from "zod";
5486
+ var DTODocumentationPublishTypeQueryParams = z191.object({
5487
+ environment: z191.enum(["Live", "Preview"])
5383
5488
  });
5384
5489
 
5385
5490
  // src/api/payloads/export/pipeline.ts
5386
- import { z as z190 } from "zod";
5387
- var DTOPipelineCreateBody = z190.object({
5388
- name: z190.string(),
5389
- exporterId: z190.string(),
5390
- designSystemId: z190.string(),
5391
- isEnabled: z190.boolean(),
5491
+ import { z as z192 } from "zod";
5492
+ var DTOPipelineCreateBody = z192.object({
5493
+ name: z192.string(),
5494
+ exporterId: z192.string(),
5495
+ designSystemId: z192.string(),
5496
+ isEnabled: z192.boolean(),
5392
5497
  eventType: PipelineEventType,
5393
- brandPersistentId: z190.string().optional(),
5394
- themePersistentId: z190.string().optional(),
5395
- themePersistentIds: z190.string().array().optional(),
5498
+ brandPersistentId: z192.string().optional(),
5499
+ themePersistentId: z192.string().optional(),
5500
+ themePersistentIds: z192.string().array().optional(),
5396
5501
  destination: PipelineDestinationType.optional(),
5397
5502
  gitQuery: GitObjectsQuery,
5398
- destinations: z190.object({
5503
+ destinations: z192.object({
5399
5504
  s3: ExporterDestinationS3.nullish(),
5400
5505
  azure: ExporterDestinationAzure.nullish(),
5401
5506
  bitbucket: ExporterDestinationBitbucket.nullish(),
5402
5507
  github: ExporterDestinationGithub.nullish(),
5403
5508
  gitlab: ExporterDestinationGitlab.nullish(),
5404
5509
  documentation: ExporterDestinationDocs.nullish(),
5405
- webhookUrl: z190.string().nullish()
5510
+ webhookUrl: z192.string().nullish()
5406
5511
  })
5407
5512
  });
5408
5513
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5409
- id: z190.string()
5514
+ id: z192.string()
5410
5515
  });
5411
- var DTOPipelineTriggerBody = z190.object({
5412
- designSystemVersionId: z190.string()
5516
+ var DTOPipelineTriggerBody = z192.object({
5517
+ designSystemVersionId: z192.string()
5413
5518
  });
5414
5519
 
5415
5520
  // src/api/payloads/liveblocks/auth.ts
5416
- import { z as z191 } from "zod";
5417
- var DTOLiveblocksAuthRequest = z191.object({
5418
- room: z191.string().optional()
5521
+ import { z as z193 } from "zod";
5522
+ var DTOLiveblocksAuthRequest = z193.object({
5523
+ room: z193.string().optional()
5419
5524
  });
5420
5525
 
5421
5526
  // src/api/payloads/users/notifications/notification-settings.ts
5422
- import { z as z192 } from "zod";
5423
- var DTOUpdateUserNotificationSettingsPayload = z192.object({
5527
+ import { z as z194 } from "zod";
5528
+ var DTOUpdateUserNotificationSettingsPayload = z194.object({
5424
5529
  notificationSettings: UserNotificationSettings
5425
5530
  });
5426
- var DTOUserNotificationSettingsResponse = z192.object({
5427
- userId: z192.string(),
5428
- workspaceId: z192.string(),
5531
+ var DTOUserNotificationSettingsResponse = z194.object({
5532
+ userId: z194.string(),
5533
+ workspaceId: z194.string(),
5429
5534
  notificationSettings: UserNotificationSettings
5430
5535
  });
5431
5536
 
@@ -5433,7 +5538,7 @@ var DTOUserNotificationSettingsResponse = z192.object({
5433
5538
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5434
5539
 
5435
5540
  // src/api/payloads/workspaces/workspace-configuration.ts
5436
- import { z as z193 } from "zod";
5541
+ import { z as z195 } from "zod";
5437
5542
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5438
5543
  function validateSsoPayload(ssoPayload) {
5439
5544
  const keys = [];
@@ -5456,21 +5561,21 @@ function validateSsoPayload(ssoPayload) {
5456
5561
  keys
5457
5562
  };
5458
5563
  }
5459
- var NpmRegistryInput = z193.object({
5460
- enabledScopes: z193.array(z193.string()),
5461
- customRegistryUrl: z193.string().optional(),
5462
- bypassProxy: z193.boolean().optional(),
5463
- npmProxyRegistryConfigId: z193.string().optional(),
5464
- npmProxyVersion: z193.number().optional(),
5465
- registryType: z193.string(),
5466
- authType: z193.string(),
5467
- authHeaderName: z193.string(),
5468
- authHeaderValue: z193.string(),
5469
- accessToken: z193.string(),
5470
- username: z193.string(),
5471
- password: z193.string()
5472
- });
5473
- var WorkspaceConfigurationPayload = z193.object({
5564
+ var NpmRegistryInput = z195.object({
5565
+ enabledScopes: z195.array(z195.string()),
5566
+ customRegistryUrl: z195.string().optional(),
5567
+ bypassProxy: z195.boolean().optional(),
5568
+ npmProxyRegistryConfigId: z195.string().optional(),
5569
+ npmProxyVersion: z195.number().optional(),
5570
+ registryType: z195.string(),
5571
+ authType: z195.string(),
5572
+ authHeaderName: z195.string(),
5573
+ authHeaderValue: z195.string(),
5574
+ accessToken: z195.string(),
5575
+ username: z195.string(),
5576
+ password: z195.string()
5577
+ });
5578
+ var WorkspaceConfigurationPayload = z195.object({
5474
5579
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5475
5580
  sso: SsoProvider.partial().optional(),
5476
5581
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5478,217 +5583,217 @@ var WorkspaceConfigurationPayload = z193.object({
5478
5583
  });
5479
5584
 
5480
5585
  // src/api/payloads/workspaces/workspace-integrations.ts
5481
- import { z as z194 } from "zod";
5482
- var DTOWorkspaceIntegrationOauthInput = z194.object({
5586
+ import { z as z196 } from "zod";
5587
+ var DTOWorkspaceIntegrationOauthInput = z196.object({
5483
5588
  type: IntegrationType
5484
5589
  });
5485
- var DTOWorkspaceIntegrationPATInput = z194.object({
5486
- userId: z194.string(),
5590
+ var DTOWorkspaceIntegrationPATInput = z196.object({
5591
+ userId: z196.string(),
5487
5592
  type: IntegrationType,
5488
5593
  token: IntegrationToken
5489
5594
  });
5490
- var DTOWorkspaceIntegrationGetGitObjectsInput = z194.object({
5491
- organization: z194.string().optional(),
5595
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z196.object({
5596
+ organization: z196.string().optional(),
5492
5597
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5493
- project: z194.string().optional(),
5598
+ project: z196.string().optional(),
5494
5599
  // Only for Bitbucket and Azure
5495
- repository: z194.string().optional(),
5600
+ repository: z196.string().optional(),
5496
5601
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5497
- branch: z194.string().optional(),
5602
+ branch: z196.string().optional(),
5498
5603
  // For all providers, useful for PR creations.
5499
- user: z194.string().optional()
5604
+ user: z196.string().optional()
5500
5605
  // Only for Gitlab User Repositories
5501
5606
  });
5502
5607
 
5503
5608
  // src/api/dto/design-systems/version.ts
5504
- var DTODesignSystemVersion = z195.object({
5505
- id: z195.string(),
5506
- createdAt: z195.coerce.date(),
5609
+ var DTODesignSystemVersion = z197.object({
5610
+ id: z197.string(),
5611
+ createdAt: z197.coerce.date(),
5507
5612
  meta: ObjectMeta,
5508
- version: z195.string(),
5509
- isReadonly: z195.boolean(),
5510
- changeLog: z195.string(),
5511
- designSystemId: z195.string()
5613
+ version: z197.string(),
5614
+ isReadonly: z197.boolean(),
5615
+ changeLog: z197.string(),
5616
+ designSystemId: z197.string()
5512
5617
  });
5513
- var DTODesignSystemVersionsListResponse = z195.object({
5514
- designSystemVersions: z195.array(DTODesignSystemVersion)
5618
+ var DTODesignSystemVersionsListResponse = z197.object({
5619
+ designSystemVersions: z197.array(DTODesignSystemVersion)
5515
5620
  });
5516
- var DTODesignSystemVersionGetResponse = z195.object({
5621
+ var DTODesignSystemVersionGetResponse = z197.object({
5517
5622
  designSystemVersion: DTODesignSystemVersion
5518
5623
  });
5519
- var DTODesignSystemVersionCreationResponse = z195.object({
5624
+ var DTODesignSystemVersionCreationResponse = z197.object({
5520
5625
  meta: ObjectMeta,
5521
- version: z195.string(),
5522
- changeLog: z195.string(),
5523
- isReadOnly: z195.boolean(),
5524
- designSystemId: z195.string(),
5525
- jobId: z195.string()
5526
- });
5527
- var VersionSQSPayload = z195.object({
5528
- jobId: z195.string(),
5529
- designSystemId: z195.string(),
5626
+ version: z197.string(),
5627
+ changeLog: z197.string(),
5628
+ isReadOnly: z197.boolean(),
5629
+ designSystemId: z197.string(),
5630
+ jobId: z197.string()
5631
+ });
5632
+ var VersionSQSPayload = z197.object({
5633
+ jobId: z197.string(),
5634
+ designSystemId: z197.string(),
5530
5635
  input: DTOCreateVersionInput
5531
5636
  });
5532
- var DTODesignSystemVersionJobsResponse = z195.object({
5533
- jobs: z195.array(VersionCreationJob)
5637
+ var DTODesignSystemVersionJobsResponse = z197.object({
5638
+ jobs: z197.array(VersionCreationJob)
5534
5639
  });
5535
- var DTODesignSystemVersionJobStatusResponse = z195.object({
5640
+ var DTODesignSystemVersionJobStatusResponse = z197.object({
5536
5641
  job: VersionCreationJob
5537
5642
  });
5538
5643
 
5539
5644
  // src/api/dto/design-systems/view.ts
5540
- import { z as z196 } from "zod";
5541
- var DTOElementViewColumnSharedAttributes = z196.object({
5542
- id: z196.string(),
5543
- persistentId: z196.string(),
5544
- width: z196.number()
5645
+ import { z as z198 } from "zod";
5646
+ var DTOElementViewColumnSharedAttributes = z198.object({
5647
+ id: z198.string(),
5648
+ persistentId: z198.string(),
5649
+ width: z198.number()
5545
5650
  });
5546
5651
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5547
- type: z196.literal("BaseProperty"),
5652
+ type: z198.literal("BaseProperty"),
5548
5653
  basePropertyType: ElementViewBaseColumnType
5549
5654
  });
5550
5655
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5551
- type: z196.literal("PropertyDefinition"),
5552
- propertyDefinitionId: z196.string()
5656
+ type: z198.literal("PropertyDefinition"),
5657
+ propertyDefinitionId: z198.string()
5553
5658
  });
5554
5659
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5555
- type: z196.literal("Theme"),
5556
- themeId: z196.string()
5660
+ type: z198.literal("Theme"),
5661
+ themeId: z198.string()
5557
5662
  });
5558
- var DTOElementViewColumn = z196.discriminatedUnion("type", [
5663
+ var DTOElementViewColumn = z198.discriminatedUnion("type", [
5559
5664
  DTOElementViewBasePropertyColumn,
5560
5665
  DTOElementViewPropertyDefinitionColumn,
5561
5666
  DTOElementViewThemeColumn
5562
5667
  ]);
5563
- var DTOElementView = z196.object({
5668
+ var DTOElementView = z198.object({
5564
5669
  meta: ObjectMeta,
5565
- persistentId: z196.string(),
5670
+ persistentId: z198.string(),
5566
5671
  targetElementType: ElementPropertyTargetType,
5567
- id: z196.string(),
5568
- isDefault: z196.boolean(),
5569
- columns: z196.array(DTOElementViewColumn)
5672
+ id: z198.string(),
5673
+ isDefault: z198.boolean(),
5674
+ columns: z198.array(DTOElementViewColumn)
5570
5675
  });
5571
- var DTOElementViewsListResponse = z196.object({
5572
- elementDataViews: z196.array(DTOElementView)
5676
+ var DTOElementViewsListResponse = z198.object({
5677
+ elementDataViews: z198.array(DTOElementView)
5573
5678
  });
5574
5679
 
5575
5680
  // src/api/dto/workspaces/git.ts
5576
- import { z as z197 } from "zod";
5577
- var DTOGitOrganization = z197.object({
5578
- id: z197.string(),
5579
- name: z197.string(),
5580
- url: z197.string(),
5581
- slug: z197.string()
5582
- });
5583
- var DTOGitProject = z197.object({
5584
- id: z197.string(),
5585
- name: z197.string(),
5586
- url: z197.string(),
5587
- slug: z197.string()
5588
- });
5589
- var DTOGitRepository = z197.object({
5590
- id: z197.string(),
5591
- name: z197.string(),
5592
- url: z197.string(),
5593
- slug: z197.string(),
5594
- defaultBranch: z197.string().optional()
5595
- });
5596
- var DTOGitBranch = z197.object({
5597
- name: z197.string(),
5598
- lastCommitId: z197.string()
5681
+ import { z as z199 } from "zod";
5682
+ var DTOGitOrganization = z199.object({
5683
+ id: z199.string(),
5684
+ name: z199.string(),
5685
+ url: z199.string(),
5686
+ slug: z199.string()
5687
+ });
5688
+ var DTOGitProject = z199.object({
5689
+ id: z199.string(),
5690
+ name: z199.string(),
5691
+ url: z199.string(),
5692
+ slug: z199.string()
5693
+ });
5694
+ var DTOGitRepository = z199.object({
5695
+ id: z199.string(),
5696
+ name: z199.string(),
5697
+ url: z199.string(),
5698
+ slug: z199.string(),
5699
+ defaultBranch: z199.string().optional()
5700
+ });
5701
+ var DTOGitBranch = z199.object({
5702
+ name: z199.string(),
5703
+ lastCommitId: z199.string()
5599
5704
  });
5600
5705
 
5601
5706
  // src/api/dto/workspaces/integrations.ts
5602
- import { z as z198 } from "zod";
5707
+ import { z as z200 } from "zod";
5603
5708
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5604
5709
  accessToken: true,
5605
5710
  refreshToken: true
5606
5711
  });
5607
- var DTOIntegration = z198.object({
5608
- id: z198.string(),
5609
- workspaceId: z198.string(),
5712
+ var DTOIntegration = z200.object({
5713
+ id: z200.string(),
5714
+ workspaceId: z200.string(),
5610
5715
  type: ExtendedIntegrationType,
5611
- createdAt: z198.coerce.date(),
5612
- integrationCredentials: z198.array(DTOIntegrationCredentials).optional(),
5613
- integrationDesignSystems: z198.array(IntegrationDesignSystem).optional()
5716
+ createdAt: z200.coerce.date(),
5717
+ integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
5718
+ integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
5614
5719
  });
5615
- var DTOIntegrationOAuthGetResponse = z198.object({
5616
- url: z198.string()
5720
+ var DTOIntegrationOAuthGetResponse = z200.object({
5721
+ url: z200.string()
5617
5722
  });
5618
- var DTOIntegrationPostResponse = z198.object({
5723
+ var DTOIntegrationPostResponse = z200.object({
5619
5724
  integration: DTOIntegration
5620
5725
  });
5621
- var DTOIntegrationsGetListResponse = z198.object({
5726
+ var DTOIntegrationsGetListResponse = z200.object({
5622
5727
  integrations: DTOIntegration.array()
5623
5728
  });
5624
5729
 
5625
5730
  // src/api/dto/workspaces/invitations.ts
5626
- import { z as z199 } from "zod";
5627
- var DTOWorkspaceInvitationInput = z199.object({
5628
- email: z199.string().email(),
5731
+ import { z as z201 } from "zod";
5732
+ var DTOWorkspaceInvitationInput = z201.object({
5733
+ email: z201.string().email(),
5629
5734
  role: WorkspaceRoleSchema
5630
5735
  });
5631
- var DTOWorkspaceInvitationsListInput = z199.object({
5736
+ var DTOWorkspaceInvitationsListInput = z201.object({
5632
5737
  invites: DTOWorkspaceInvitationInput.array().max(100),
5633
- designSystemId: z199.string().optional()
5738
+ designSystemId: z201.string().optional()
5634
5739
  });
5635
- var DTOWorkspaceInvitationsResponse = z199.object({
5740
+ var DTOWorkspaceInvitationsResponse = z201.object({
5636
5741
  invitations: WorkspaceInvitation.array()
5637
5742
  });
5638
- var DTOWorkspaceInviteUpdate = z199.object({
5743
+ var DTOWorkspaceInviteUpdate = z201.object({
5639
5744
  role: WorkspaceRoleSchema
5640
5745
  });
5641
- var DTOWorkspaceInvitationUpdateResponse = z199.object({
5746
+ var DTOWorkspaceInvitationUpdateResponse = z201.object({
5642
5747
  invitation: WorkspaceInvitation
5643
5748
  });
5644
5749
 
5645
5750
  // src/api/dto/workspaces/membership.ts
5646
- import { z as z202 } from "zod";
5751
+ import { z as z204 } from "zod";
5647
5752
 
5648
5753
  // src/api/dto/workspaces/workspace.ts
5649
- import { z as z201 } from "zod";
5754
+ import { z as z203 } from "zod";
5650
5755
 
5651
5756
  // src/api/dto/workspaces/npm-registry.ts
5652
- import { z as z200 } from "zod";
5757
+ import { z as z202 } from "zod";
5653
5758
  var DTONpmRegistryConfigConstants = {
5654
5759
  passwordPlaceholder: "redacted"
5655
5760
  };
5656
- var DTONpmRegistryConfig = z200.object({
5761
+ var DTONpmRegistryConfig = z202.object({
5657
5762
  // Registry basic configuration
5658
5763
  registryType: NpmRegistryType,
5659
- registryUrl: z200.string(),
5660
- customRegistryUrl: z200.string().optional(),
5764
+ registryUrl: z202.string(),
5765
+ customRegistryUrl: z202.string().optional(),
5661
5766
  // URL of Supernova NPM packages proxy
5662
- proxyUrl: z200.string(),
5767
+ proxyUrl: z202.string(),
5663
5768
  // Auth configuration
5664
5769
  authType: NpmRegistryAuthType,
5665
- accessToken: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5666
- username: z200.string().optional(),
5667
- password: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5770
+ accessToken: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5771
+ username: z202.string().optional(),
5772
+ password: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5668
5773
  // NPM package scopes for whih the proxy should be enabled
5669
- enabledScopes: z200.array(z200.string()),
5774
+ enabledScopes: z202.array(z202.string()),
5670
5775
  // True if client should bypass Supernova proxy and connect directly to the registry
5671
5776
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5672
- bypassProxy: z200.boolean()
5777
+ bypassProxy: z202.boolean()
5673
5778
  });
5674
5779
 
5675
5780
  // src/api/dto/workspaces/workspace.ts
5676
- var DTOWorkspace = z201.object({
5677
- id: z201.string(),
5781
+ var DTOWorkspace = z203.object({
5782
+ id: z203.string(),
5678
5783
  profile: WorkspaceProfile,
5679
5784
  subscription: Subscription,
5680
5785
  npmRegistry: DTONpmRegistryConfig.optional()
5681
5786
  });
5682
- var DTOWorkspaceCreateInput = z201.object({
5683
- name: z201.string()
5787
+ var DTOWorkspaceCreateInput = z203.object({
5788
+ name: z203.string()
5684
5789
  });
5685
- var DTOWorkspaceResponse = z201.object({
5790
+ var DTOWorkspaceResponse = z203.object({
5686
5791
  workspace: DTOWorkspace
5687
5792
  });
5688
5793
 
5689
5794
  // src/api/dto/workspaces/membership.ts
5690
- var DTOWorkspaceRole = z202.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5691
- var DTOUserWorkspaceMembership = z202.object({
5795
+ var DTOWorkspaceRole = z204.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5796
+ var DTOUserWorkspaceMembership = z204.object({
5692
5797
  // Workspace the user is a member of
5693
5798
  workspace: DTOWorkspace,
5694
5799
  // Assigned role the user has in the workspace
@@ -5698,26 +5803,26 @@ var DTOUserWorkspaceMembership = z202.object({
5698
5803
  // when a workspace's subscription is downgraded to free tier
5699
5804
  effectiveRole: DTOWorkspaceRole
5700
5805
  });
5701
- var DTOWorkspaceMember = z202.object({
5806
+ var DTOWorkspaceMember = z204.object({
5702
5807
  user: User,
5703
5808
  role: WorkspaceRoleSchema,
5704
5809
  effectiveRole: WorkspaceRoleSchema
5705
5810
  });
5706
- var DTOUserWorkspaceMembershipsResponse = z202.object({
5707
- membership: z202.array(DTOUserWorkspaceMembership)
5811
+ var DTOUserWorkspaceMembershipsResponse = z204.object({
5812
+ membership: z204.array(DTOUserWorkspaceMembership)
5708
5813
  });
5709
- var DTOWorkspaceMembersListResponse = z202.object({
5710
- members: z202.array(DTOWorkspaceMember)
5814
+ var DTOWorkspaceMembersListResponse = z204.object({
5815
+ members: z204.array(DTOWorkspaceMember)
5711
5816
  });
5712
5817
 
5713
5818
  // src/api/dto/bff/app-bootstrap-data.ts
5714
- var DTOAppBootstrapDataQuery = z203.object({
5715
- preferredWorkspaceId: z203.string().optional(),
5716
- preferredDesignSystemId: z203.string().optional(),
5717
- preferredVersionId: z203.string().optional(),
5718
- preferredBrandId: z203.string().optional()
5819
+ var DTOAppBootstrapDataQuery = z205.object({
5820
+ preferredWorkspaceId: z205.string().optional(),
5821
+ preferredDesignSystemId: z205.string().optional(),
5822
+ preferredVersionId: z205.string().optional(),
5823
+ preferredBrandId: z205.string().optional()
5719
5824
  });
5720
- var DTOAppBootstrapDataResponse = z203.object({
5825
+ var DTOAppBootstrapDataResponse = z205.object({
5721
5826
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5722
5827
  designSystem: DTODesignSystem.optional(),
5723
5828
  version: DTODesignSystemVersion.optional(),
@@ -5725,37 +5830,54 @@ var DTOAppBootstrapDataResponse = z203.object({
5725
5830
  });
5726
5831
 
5727
5832
  // src/api/dto/collections/collection.ts
5728
- import { z as z204 } from "zod";
5729
- var DTOTokenCollection = z204.object({
5730
- id: z204.string(),
5731
- persistentId: z204.string(),
5732
- designSystemVersionId: z204.string(),
5833
+ import { z as z206 } from "zod";
5834
+ var DTOTokenCollection = z206.object({
5835
+ id: z206.string(),
5836
+ persistentId: z206.string(),
5837
+ designSystemVersionId: z206.string(),
5733
5838
  meta: ObjectMeta,
5734
- createdAt: z204.coerce.date(),
5735
- updatedAt: z204.coerce.date(),
5736
- origin: z204.object({
5737
- id: z204.string(),
5738
- sourceId: z204.string()
5839
+ createdAt: z206.coerce.date(),
5840
+ updatedAt: z206.coerce.date(),
5841
+ origin: z206.object({
5842
+ id: z206.string(),
5843
+ sourceId: z206.string()
5739
5844
  })
5740
5845
  });
5741
- var DTOTokenCollectionsListReponse = z204.object({
5846
+ var DTOTokenCollectionsListReponse = z206.object({
5742
5847
  collections: DTOTokenCollection.array()
5743
5848
  });
5744
5849
 
5850
+ // src/api/dto/design-tokens/design-token.ts
5851
+ import { z as z207 } from "zod";
5852
+ var DTODesignToken = DesignTokenTypedData.and(
5853
+ z207.object({
5854
+ id: z207.string(),
5855
+ persistentId: z207.string(),
5856
+ designSystemVersionId: z207.string(),
5857
+ meta: ObjectMeta,
5858
+ origin: DesignTokenOrigin.optional(),
5859
+ brandId: z207.string(),
5860
+ updatedAt: z207.coerce.date()
5861
+ })
5862
+ );
5863
+ var DTODesignTokenListResponse = z207.object({
5864
+ tokens: DTODesignToken.array()
5865
+ });
5866
+
5745
5867
  // src/api/dto/documentation/anchor.ts
5746
- import { z as z205 } from "zod";
5868
+ import { z as z208 } from "zod";
5747
5869
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5748
- var DTOGetDocumentationPageAnchorsResponse = z205.object({
5749
- anchors: z205.array(DTODocumentationPageAnchor)
5870
+ var DTOGetDocumentationPageAnchorsResponse = z208.object({
5871
+ anchors: z208.array(DTODocumentationPageAnchor)
5750
5872
  });
5751
5873
 
5752
5874
  // src/api/dto/documentation/approvals.ts
5753
- import { z as z206 } from "zod";
5875
+ import { z as z209 } from "zod";
5754
5876
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5755
- var DTODocumentationGroupApprovalState = z206.object({
5756
- persistentId: z206.string(),
5757
- groupId: z206.string(),
5758
- designSystemVersionId: z206.string(),
5877
+ var DTODocumentationGroupApprovalState = z209.object({
5878
+ persistentId: z209.string(),
5879
+ groupId: z209.string(),
5880
+ designSystemVersionId: z209.string(),
5759
5881
  approvalState: DocumentationPageApprovalState
5760
5882
  });
5761
5883
 
@@ -5763,68 +5885,68 @@ var DTODocumentationGroupApprovalState = z206.object({
5763
5885
  var DTOPageBlockItemV2 = PageBlockItemV2;
5764
5886
 
5765
5887
  // src/api/dto/documentation/documentation-page-snapshot.ts
5766
- import { z as z211 } from "zod";
5888
+ import { z as z214 } from "zod";
5767
5889
 
5768
5890
  // src/api/dto/elements/documentation/page-v2.ts
5769
- import { z as z210 } from "zod";
5891
+ import { z as z213 } from "zod";
5770
5892
 
5771
5893
  // src/api/dto/elements/documentation/draft-state.ts
5772
- import { z as z208 } from "zod";
5894
+ import { z as z211 } from "zod";
5773
5895
 
5774
5896
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5775
- import { z as z207 } from "zod";
5897
+ import { z as z210 } from "zod";
5776
5898
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5777
- var DTODocumentationItemConfigurationV2 = z207.object({
5778
- showSidebar: z207.boolean(),
5779
- isPrivate: z207.boolean(),
5780
- isHidden: z207.boolean(),
5899
+ var DTODocumentationItemConfigurationV2 = z210.object({
5900
+ showSidebar: z210.boolean(),
5901
+ isPrivate: z210.boolean(),
5902
+ isHidden: z210.boolean(),
5781
5903
  header: DTODocumentationItemHeaderV2
5782
5904
  });
5783
5905
 
5784
5906
  // src/api/dto/elements/documentation/draft-state.ts
5785
- var DTODocumentationDraftChangeType = z208.enum(["Created", "Updated", "Deleted"]);
5786
- var DTODocumentationDraftStateCreated = z208.object({
5787
- changeType: z208.literal(DTODocumentationDraftChangeType.enum.Created)
5788
- });
5789
- var DTODocumentationDraftStateUpdated = z208.object({
5790
- changeType: z208.literal(DTODocumentationDraftChangeType.enum.Updated),
5791
- changes: z208.object({
5792
- previousTitle: z208.string().optional(),
5907
+ var DTODocumentationDraftChangeType = z211.enum(["Created", "Updated", "Deleted"]);
5908
+ var DTODocumentationDraftStateCreated = z211.object({
5909
+ changeType: z211.literal(DTODocumentationDraftChangeType.enum.Created)
5910
+ });
5911
+ var DTODocumentationDraftStateUpdated = z211.object({
5912
+ changeType: z211.literal(DTODocumentationDraftChangeType.enum.Updated),
5913
+ changes: z211.object({
5914
+ previousTitle: z211.string().optional(),
5793
5915
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5794
- previousContentHash: z208.string().optional()
5916
+ previousContentHash: z211.string().optional()
5795
5917
  })
5796
5918
  });
5797
- var DTODocumentationDraftStateDeleted = z208.object({
5798
- changeType: z208.literal(DTODocumentationDraftChangeType.enum.Deleted),
5799
- deletedAt: z208.coerce.date(),
5800
- deletedByUserId: z208.string()
5919
+ var DTODocumentationDraftStateDeleted = z211.object({
5920
+ changeType: z211.literal(DTODocumentationDraftChangeType.enum.Deleted),
5921
+ deletedAt: z211.coerce.date(),
5922
+ deletedByUserId: z211.string()
5801
5923
  });
5802
- var DTODocumentationDraftState = z208.discriminatedUnion("changeType", [
5924
+ var DTODocumentationDraftState = z211.discriminatedUnion("changeType", [
5803
5925
  DTODocumentationDraftStateCreated,
5804
5926
  DTODocumentationDraftStateUpdated,
5805
5927
  DTODocumentationDraftStateDeleted
5806
5928
  ]);
5807
5929
 
5808
5930
  // src/api/dto/elements/documentation/metadata.ts
5809
- import { z as z209 } from "zod";
5810
- var DTODocumentationPublishMetadata = z209.object({
5811
- lastPublishedByUserId: z209.string(),
5812
- lastPublishedAt: z209.coerce.date()
5931
+ import { z as z212 } from "zod";
5932
+ var DTODocumentationPublishMetadata = z212.object({
5933
+ lastPublishedByUserId: z212.string(),
5934
+ lastPublishedAt: z212.coerce.date()
5813
5935
  });
5814
5936
 
5815
5937
  // src/api/dto/elements/documentation/page-v2.ts
5816
- var DTODocumentationPageV2 = z210.object({
5817
- id: z210.string(),
5818
- persistentId: z210.string(),
5819
- designSystemVersionId: z210.string(),
5820
- title: z210.string(),
5938
+ var DTODocumentationPageV2 = z213.object({
5939
+ id: z213.string(),
5940
+ persistentId: z213.string(),
5941
+ designSystemVersionId: z213.string(),
5942
+ title: z213.string(),
5821
5943
  configuration: DTODocumentationItemConfigurationV2,
5822
- shortPersistentId: z210.string(),
5823
- slug: z210.string().optional(),
5824
- userSlug: z210.string().optional(),
5825
- createdAt: z210.coerce.date(),
5826
- updatedAt: z210.coerce.date(),
5827
- path: z210.string(),
5944
+ shortPersistentId: z213.string(),
5945
+ slug: z213.string().optional(),
5946
+ userSlug: z213.string().optional(),
5947
+ createdAt: z213.coerce.date(),
5948
+ updatedAt: z213.coerce.date(),
5949
+ path: z213.string(),
5828
5950
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5829
5951
  draftState: DTODocumentationDraftState.optional(),
5830
5952
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5832,197 +5954,197 @@ var DTODocumentationPageV2 = z210.object({
5832
5954
  /** Defines the approval state of the documentation page */
5833
5955
  approvalState: DTODocumentationPageApprovalState.optional(),
5834
5956
  // Backward compatibility
5835
- type: z210.literal("Page")
5957
+ type: z213.literal("Page")
5836
5958
  });
5837
- var DTOCreateDocumentationPageInputV2 = z210.object({
5959
+ var DTOCreateDocumentationPageInputV2 = z213.object({
5838
5960
  // Identifier
5839
- persistentId: z210.string(),
5961
+ persistentId: z213.string(),
5840
5962
  // Page properties
5841
- title: z210.string(),
5963
+ title: z213.string(),
5842
5964
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5843
5965
  // Page placement properties
5844
- parentPersistentId: z210.string(),
5845
- afterPersistentId: z210.string().nullish()
5966
+ parentPersistentId: z213.string(),
5967
+ afterPersistentId: z213.string().nullish()
5846
5968
  });
5847
- var DTOUpdateDocumentationPageInputV2 = z210.object({
5969
+ var DTOUpdateDocumentationPageInputV2 = z213.object({
5848
5970
  // Identifier of the group to update
5849
- id: z210.string(),
5971
+ id: z213.string(),
5850
5972
  // Page properties
5851
- title: z210.string().optional(),
5973
+ title: z213.string().optional(),
5852
5974
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5853
5975
  });
5854
- var DTOMoveDocumentationPageInputV2 = z210.object({
5976
+ var DTOMoveDocumentationPageInputV2 = z213.object({
5855
5977
  // Identifier of the group to update
5856
- id: z210.string(),
5978
+ id: z213.string(),
5857
5979
  // Page placement properties
5858
- parentPersistentId: z210.string(),
5859
- afterPersistentId: z210.string().nullish()
5980
+ parentPersistentId: z213.string(),
5981
+ afterPersistentId: z213.string().nullish()
5860
5982
  });
5861
- var DTODuplicateDocumentationPageInputV2 = z210.object({
5983
+ var DTODuplicateDocumentationPageInputV2 = z213.object({
5862
5984
  // Identifier of the page to duplicate from
5863
- id: z210.string(),
5985
+ id: z213.string(),
5864
5986
  // New page persistent id
5865
- persistentId: z210.string(),
5987
+ persistentId: z213.string(),
5866
5988
  // Page placement properties
5867
- parentPersistentId: z210.string(),
5868
- afterPersistentId: z210.string().nullish()
5989
+ parentPersistentId: z213.string(),
5990
+ afterPersistentId: z213.string().nullish()
5869
5991
  });
5870
- var DTODeleteDocumentationPageInputV2 = z210.object({
5992
+ var DTODeleteDocumentationPageInputV2 = z213.object({
5871
5993
  // Identifier
5872
- id: z210.string()
5994
+ id: z213.string()
5873
5995
  });
5874
- var DTORestoreDocumentationPageInput = z210.object({
5875
- persistentId: z210.string(),
5876
- snapshotId: z210.string().optional()
5996
+ var DTORestoreDocumentationPageInput = z213.object({
5997
+ persistentId: z213.string(),
5998
+ snapshotId: z213.string().optional()
5877
5999
  });
5878
- var DTORestoreDocumentationGroupInput = z210.object({
5879
- persistentId: z210.string(),
5880
- snapshotId: z210.string().optional()
6000
+ var DTORestoreDocumentationGroupInput = z213.object({
6001
+ persistentId: z213.string(),
6002
+ snapshotId: z213.string().optional()
5881
6003
  });
5882
- var DTODocumentationPageApprovalStateChangeInput = z210.object({
5883
- persistentId: z210.string(),
6004
+ var DTODocumentationPageApprovalStateChangeInput = z213.object({
6005
+ persistentId: z213.string(),
5884
6006
  approvalState: DocumentationPageApprovalState.optional()
5885
6007
  });
5886
6008
 
5887
6009
  // src/api/dto/documentation/documentation-page-snapshot.ts
5888
- var DTODocumentationPageSnapshot = z211.object({
5889
- id: z211.string(),
5890
- designSystemVersionId: z211.string(),
5891
- createdAt: z211.string(),
5892
- updatedAt: z211.string(),
6010
+ var DTODocumentationPageSnapshot = z214.object({
6011
+ id: z214.string(),
6012
+ designSystemVersionId: z214.string(),
6013
+ createdAt: z214.string(),
6014
+ updatedAt: z214.string(),
5893
6015
  documentationPage: DTODocumentationPageV2,
5894
- pageContentHash: z211.string(),
6016
+ pageContentHash: z214.string(),
5895
6017
  reason: DesignElementSnapshotReason
5896
6018
  });
5897
6019
 
5898
6020
  // src/api/dto/documentation/link-preview.ts
5899
- import { z as z212 } from "zod";
5900
- var DTODocumentationLinkPreviewResponse = z212.object({
6021
+ import { z as z215 } from "zod";
6022
+ var DTODocumentationLinkPreviewResponse = z215.object({
5901
6023
  linkPreview: DocumentationLinkPreview
5902
6024
  });
5903
- var DTODocumentationLinkPreviewRequest = z212.object({
5904
- url: z212.string().optional(),
5905
- documentationItemPersistentId: z212.string().optional()
6025
+ var DTODocumentationLinkPreviewRequest = z215.object({
6026
+ url: z215.string().optional(),
6027
+ documentationItemPersistentId: z215.string().optional()
5906
6028
  });
5907
6029
 
5908
6030
  // src/api/dto/documentation/publish.ts
5909
- import { z as z216 } from "zod";
6031
+ import { z as z219 } from "zod";
5910
6032
 
5911
6033
  // src/api/dto/export/exporter.ts
5912
- import { z as z213 } from "zod";
5913
- var DTOExporterType = z213.enum(["documentation", "code"]);
5914
- var DTOExporterSource = z213.enum(["git", "upload"]);
5915
- var DTOExporterMembershipRole = z213.enum(["Owner", "OwnerArchived", "User"]);
5916
- var DTOExporter = z213.object({
5917
- id: z213.string(),
5918
- name: z213.string(),
5919
- isPrivate: z213.boolean(),
6034
+ import { z as z216 } from "zod";
6035
+ var DTOExporterType = z216.enum(["documentation", "code"]);
6036
+ var DTOExporterSource = z216.enum(["git", "upload"]);
6037
+ var DTOExporterMembershipRole = z216.enum(["Owner", "OwnerArchived", "User"]);
6038
+ var DTOExporter = z216.object({
6039
+ id: z216.string(),
6040
+ name: z216.string(),
6041
+ isPrivate: z216.boolean(),
5920
6042
  exporterType: DTOExporterType,
5921
- isDefaultDocumentationExporter: z213.boolean(),
5922
- iconURL: z213.string().optional(),
6043
+ isDefaultDocumentationExporter: z216.boolean(),
6044
+ iconURL: z216.string().optional(),
5923
6045
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5924
6046
  customBlocks: PulsarCustomBlock.array(),
5925
- blockVariants: z213.record(z213.string(), PulsarContributionVariant.array()),
5926
- usesBrands: z213.boolean(),
5927
- usesThemes: z213.boolean(),
6047
+ blockVariants: z216.record(z216.string(), PulsarContributionVariant.array()),
6048
+ usesBrands: z216.boolean(),
6049
+ usesThemes: z216.boolean(),
5928
6050
  source: DTOExporterSource,
5929
- gitUrl: z213.string().optional(),
5930
- gitBranch: z213.string().optional(),
5931
- gitDirectory: z213.string().optional()
6051
+ gitUrl: z216.string().optional(),
6052
+ gitBranch: z216.string().optional(),
6053
+ gitDirectory: z216.string().optional()
5932
6054
  });
5933
- var DTOExporterMembership = z213.object({
5934
- workspaceId: z213.string(),
5935
- exporterId: z213.string(),
6055
+ var DTOExporterMembership = z216.object({
6056
+ workspaceId: z216.string(),
6057
+ exporterId: z216.string(),
5936
6058
  role: DTOExporterMembershipRole
5937
6059
  });
5938
- var DTOExporterCreateOutput = z213.object({
6060
+ var DTOExporterCreateOutput = z216.object({
5939
6061
  exporter: DTOExporter,
5940
6062
  membership: DTOExporterMembership
5941
6063
  });
5942
- var DTOExporterGitProviderEnum = z213.enum(["github", "gitlab", "bitbucket", "azure"]);
5943
- var DTOExporterCreateInput = z213.object({
5944
- url: z213.string(),
6064
+ var DTOExporterGitProviderEnum = z216.enum(["github", "gitlab", "bitbucket", "azure"]);
6065
+ var DTOExporterCreateInput = z216.object({
6066
+ url: z216.string(),
5945
6067
  provider: DTOExporterGitProviderEnum
5946
6068
  });
5947
- var DTOExporterUpdateInput = z213.object({
5948
- url: z213.string().optional()
6069
+ var DTOExporterUpdateInput = z216.object({
6070
+ url: z216.string().optional()
5949
6071
  });
5950
6072
 
5951
6073
  // src/api/dto/export/filter.ts
5952
6074
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5953
6075
 
5954
6076
  // src/api/dto/export/job.ts
5955
- import { z as z214 } from "zod";
5956
- var DTOExportJobCreatedBy = z214.object({
5957
- userId: z214.string(),
5958
- userName: z214.string()
6077
+ import { z as z217 } from "zod";
6078
+ var DTOExportJobCreatedBy = z217.object({
6079
+ userId: z217.string(),
6080
+ userName: z217.string()
5959
6081
  });
5960
- var DTOExportJobDesignSystemPreview = z214.object({
5961
- id: z214.string(),
6082
+ var DTOExportJobDesignSystemPreview = z217.object({
6083
+ id: z217.string(),
5962
6084
  meta: ObjectMeta
5963
6085
  });
5964
- var DTOExportJobDesignSystemVersionPreview = z214.object({
5965
- id: z214.string(),
6086
+ var DTOExportJobDesignSystemVersionPreview = z217.object({
6087
+ id: z217.string(),
5966
6088
  meta: ObjectMeta,
5967
- version: z214.string(),
5968
- isReadonly: z214.boolean()
6089
+ version: z217.string(),
6090
+ isReadonly: z217.boolean()
5969
6091
  });
5970
- var DTOExportJobDestinations = z214.object({
6092
+ var DTOExportJobDestinations = z217.object({
5971
6093
  s3: ExporterDestinationS3.optional(),
5972
6094
  azure: ExporterDestinationAzure.optional(),
5973
6095
  bitbucket: ExporterDestinationBitbucket.optional(),
5974
6096
  github: ExporterDestinationGithub.optional(),
5975
6097
  gitlab: ExporterDestinationGitlab.optional(),
5976
6098
  documentation: ExporterDestinationDocs.optional(),
5977
- webhookUrl: z214.string().optional()
6099
+ webhookUrl: z217.string().optional()
5978
6100
  });
5979
6101
  var DTOExportJobResult = ExportJobResult.omit({
5980
6102
  sndocs: true
5981
6103
  }).extend({
5982
6104
  documentation: ExportJobDocsDestinationResult.optional()
5983
6105
  });
5984
- var DTOExportJob = z214.object({
5985
- id: z214.string(),
5986
- createdAt: z214.coerce.date(),
5987
- finishedAt: z214.coerce.date().optional(),
5988
- index: z214.number().optional(),
6106
+ var DTOExportJob = z217.object({
6107
+ id: z217.string(),
6108
+ createdAt: z217.coerce.date(),
6109
+ finishedAt: z217.coerce.date().optional(),
6110
+ index: z217.number().optional(),
5989
6111
  status: ExportJobStatus,
5990
- estimatedExecutionTime: z214.number().optional(),
6112
+ estimatedExecutionTime: z217.number().optional(),
5991
6113
  createdBy: DTOExportJobCreatedBy.optional(),
5992
6114
  designSystem: DTOExportJobDesignSystemPreview,
5993
6115
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5994
6116
  destinations: DTOExportJobDestinations,
5995
- exporterId: z214.string(),
5996
- scheduleId: z214.string().optional(),
6117
+ exporterId: z217.string(),
6118
+ scheduleId: z217.string().optional(),
5997
6119
  result: DTOExportJobResult.optional(),
5998
- brandPersistentId: z214.string().optional(),
5999
- themePersistentId: z214.string().optional(),
6000
- themePersistentIds: z214.string().array().optional()
6120
+ brandPersistentId: z217.string().optional(),
6121
+ themePersistentId: z217.string().optional(),
6122
+ themePersistentIds: z217.string().array().optional()
6001
6123
  });
6002
- var DTOExportJobResponse = z214.object({
6124
+ var DTOExportJobResponse = z217.object({
6003
6125
  job: DTOExportJob
6004
6126
  });
6005
6127
 
6006
6128
  // src/api/dto/export/pipeline.ts
6007
- import { z as z215 } from "zod";
6008
- var DTOPipeline = z215.object({
6009
- id: z215.string(),
6010
- name: z215.string(),
6129
+ import { z as z218 } from "zod";
6130
+ var DTOPipeline = z218.object({
6131
+ id: z218.string(),
6132
+ name: z218.string(),
6011
6133
  eventType: PipelineEventType,
6012
- isEnabled: z215.boolean(),
6013
- workspaceId: z215.string(),
6014
- designSystemId: z215.string(),
6015
- exporterId: z215.string(),
6016
- brandPersistentId: z215.string().optional(),
6017
- themePersistentId: z215.string().optional(),
6018
- themePersistentIds: z215.string().array().optional(),
6134
+ isEnabled: z218.boolean(),
6135
+ workspaceId: z218.string(),
6136
+ designSystemId: z218.string(),
6137
+ exporterId: z218.string(),
6138
+ brandPersistentId: z218.string().optional(),
6139
+ themePersistentId: z218.string().optional(),
6140
+ themePersistentIds: z218.string().array().optional(),
6019
6141
  ...ExportDestinationsMap.shape,
6020
6142
  latestJobs: DTOExportJob.array()
6021
6143
  });
6022
6144
 
6023
6145
  // src/api/dto/documentation/publish.ts
6024
6146
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6025
- var DTOPublishDocumentationRequest = z216.object({
6147
+ var DTOPublishDocumentationRequest = z219.object({
6026
6148
  environment: PublishedDocEnvironment,
6027
6149
  /**
6028
6150
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6030,42 +6152,42 @@ var DTOPublishDocumentationRequest = z216.object({
6030
6152
  */
6031
6153
  changes: DTOPublishDocumentationChanges.optional()
6032
6154
  });
6033
- var DTOPublishDocumentationResponse = z216.object({
6155
+ var DTOPublishDocumentationResponse = z219.object({
6034
6156
  job: DTOExportJob
6035
6157
  });
6036
6158
 
6037
6159
  // src/api/dto/elements/components/figma-component.ts
6038
- import { z as z217 } from "zod";
6160
+ import { z as z220 } from "zod";
6039
6161
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6040
- var DTOFigmaComponentPropertyMap = z217.record(DTOFigmaComponentProperty);
6041
- var DTOFigmaComponent = z217.object({
6042
- id: z217.string(),
6043
- persistentId: z217.string(),
6044
- designSystemVersionId: z217.string(),
6045
- brandId: z217.string(),
6046
- thumbnailUrl: z217.string().optional(),
6047
- svgUrl: z217.string().optional(),
6048
- exportProperties: z217.object({
6049
- isAsset: z217.boolean()
6162
+ var DTOFigmaComponentPropertyMap = z220.record(DTOFigmaComponentProperty);
6163
+ var DTOFigmaComponent = z220.object({
6164
+ id: z220.string(),
6165
+ persistentId: z220.string(),
6166
+ designSystemVersionId: z220.string(),
6167
+ brandId: z220.string(),
6168
+ thumbnailUrl: z220.string().optional(),
6169
+ svgUrl: z220.string().optional(),
6170
+ exportProperties: z220.object({
6171
+ isAsset: z220.boolean()
6050
6172
  }),
6051
- createdAt: z217.coerce.date(),
6052
- updatedAt: z217.coerce.date(),
6173
+ createdAt: z220.coerce.date(),
6174
+ updatedAt: z220.coerce.date(),
6053
6175
  meta: ObjectMeta,
6054
6176
  originComponent: FigmaComponentOrigin.optional(),
6055
- parentComponentPersistentId: z217.string().optional(),
6056
- childrenPersistentIds: z217.string().array().optional(),
6177
+ parentComponentPersistentId: z220.string().optional(),
6178
+ childrenPersistentIds: z220.string().array().optional(),
6057
6179
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6058
- variantPropertyValues: z217.record(z217.string()).optional()
6180
+ variantPropertyValues: z220.record(z220.string()).optional()
6059
6181
  });
6060
- var DTOFigmaComponentListResponse = z217.object({
6182
+ var DTOFigmaComponentListResponse = z220.object({
6061
6183
  components: DTOFigmaComponent.array()
6062
6184
  });
6063
6185
 
6064
6186
  // src/api/dto/elements/documentation/group-action.ts
6065
- import { z as z219 } from "zod";
6187
+ import { z as z222 } from "zod";
6066
6188
 
6067
6189
  // src/api/dto/elements/documentation/group-v2.ts
6068
- import { z as z218 } from "zod";
6190
+ import { z as z221 } from "zod";
6069
6191
  var DTODocumentationGroupV2 = ElementGroup.omit({
6070
6192
  sortOrder: true,
6071
6193
  parentPersistentId: true,
@@ -6075,13 +6197,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6075
6197
  data: true,
6076
6198
  shortPersistentId: true
6077
6199
  }).extend({
6078
- title: z218.string(),
6079
- isRoot: z218.boolean(),
6080
- childrenIds: z218.array(z218.string()),
6200
+ title: z221.string(),
6201
+ isRoot: z221.boolean(),
6202
+ childrenIds: z221.array(z221.string()),
6081
6203
  groupBehavior: DocumentationGroupBehavior,
6082
- shortPersistentId: z218.string(),
6204
+ shortPersistentId: z221.string(),
6083
6205
  configuration: DTODocumentationItemConfigurationV2,
6084
- type: z218.literal("Group"),
6206
+ type: z221.literal("Group"),
6085
6207
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6086
6208
  draftState: DTODocumentationDraftState.optional(),
6087
6209
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6089,127 +6211,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6089
6211
  //** An approval state for frontend to utilize. */
6090
6212
  approvalState: DTODocumentationGroupApprovalState.optional()
6091
6213
  });
6092
- var DTOCreateDocumentationGroupInput = z218.object({
6214
+ var DTOCreateDocumentationGroupInput = z221.object({
6093
6215
  // Identifier
6094
- persistentId: z218.string(),
6216
+ persistentId: z221.string(),
6095
6217
  // Group properties
6096
- title: z218.string(),
6218
+ title: z221.string(),
6097
6219
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6098
6220
  // Group placement properties
6099
- afterPersistentId: z218.string().nullish(),
6100
- parentPersistentId: z218.string()
6221
+ afterPersistentId: z221.string().nullish(),
6222
+ parentPersistentId: z221.string()
6101
6223
  });
6102
- var DTOUpdateDocumentationGroupInput = z218.object({
6224
+ var DTOUpdateDocumentationGroupInput = z221.object({
6103
6225
  // Identifier of the group to update
6104
- id: z218.string(),
6226
+ id: z221.string(),
6105
6227
  // Group properties
6106
- title: z218.string().optional(),
6228
+ title: z221.string().optional(),
6107
6229
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6108
6230
  });
6109
- var DTOMoveDocumentationGroupInput = z218.object({
6231
+ var DTOMoveDocumentationGroupInput = z221.object({
6110
6232
  // Identifier of the group to update
6111
- id: z218.string(),
6233
+ id: z221.string(),
6112
6234
  // Group placement properties
6113
- parentPersistentId: z218.string(),
6114
- afterPersistentId: z218.string().nullish()
6235
+ parentPersistentId: z221.string(),
6236
+ afterPersistentId: z221.string().nullish()
6115
6237
  });
6116
- var DTODuplicateDocumentationGroupInput = z218.object({
6238
+ var DTODuplicateDocumentationGroupInput = z221.object({
6117
6239
  // Identifier of the group to duplicate from
6118
- id: z218.string(),
6240
+ id: z221.string(),
6119
6241
  // New group persistent id
6120
- persistentId: z218.string(),
6242
+ persistentId: z221.string(),
6121
6243
  // Group placement properties
6122
- afterPersistentId: z218.string().nullish(),
6123
- parentPersistentId: z218.string()
6244
+ afterPersistentId: z221.string().nullish(),
6245
+ parentPersistentId: z221.string()
6124
6246
  });
6125
- var DTOCreateDocumentationTabInput = z218.object({
6247
+ var DTOCreateDocumentationTabInput = z221.object({
6126
6248
  // New group persistent id
6127
- persistentId: z218.string(),
6249
+ persistentId: z221.string(),
6128
6250
  // If this is page, we will attempt to convert it to tab
6129
6251
  // If this is tab group, we will add a new tab to it
6130
- fromItemPersistentId: z218.string(),
6131
- tabName: z218.string()
6252
+ fromItemPersistentId: z221.string(),
6253
+ tabName: z221.string()
6132
6254
  });
6133
- var DTODeleteDocumentationTabGroupInput = z218.object({
6255
+ var DTODeleteDocumentationTabGroupInput = z221.object({
6134
6256
  // Deleted group id
6135
- id: z218.string()
6257
+ id: z221.string()
6136
6258
  });
6137
- var DTODeleteDocumentationGroupInput = z218.object({
6259
+ var DTODeleteDocumentationGroupInput = z221.object({
6138
6260
  // Identifier
6139
- id: z218.string(),
6261
+ id: z221.string(),
6140
6262
  // Deletion options
6141
- deleteSubtree: z218.boolean().default(false)
6263
+ deleteSubtree: z221.boolean().default(false)
6142
6264
  });
6143
6265
 
6144
6266
  // src/api/dto/elements/documentation/group-action.ts
6145
- var SuccessPayload = z219.object({
6146
- success: z219.literal(true)
6267
+ var SuccessPayload = z222.object({
6268
+ success: z222.literal(true)
6147
6269
  });
6148
- var DTODocumentationGroupCreateActionOutputV2 = z219.object({
6149
- type: z219.literal("DocumentationGroupCreate"),
6270
+ var DTODocumentationGroupCreateActionOutputV2 = z222.object({
6271
+ type: z222.literal("DocumentationGroupCreate"),
6150
6272
  output: SuccessPayload
6151
6273
  });
6152
- var DTODocumentationTabCreateActionOutputV2 = z219.object({
6153
- type: z219.literal("DocumentationTabCreate"),
6274
+ var DTODocumentationTabCreateActionOutputV2 = z222.object({
6275
+ type: z222.literal("DocumentationTabCreate"),
6154
6276
  output: SuccessPayload
6155
6277
  });
6156
- var DTODocumentationGroupUpdateActionOutputV2 = z219.object({
6157
- type: z219.literal("DocumentationGroupUpdate"),
6278
+ var DTODocumentationGroupUpdateActionOutputV2 = z222.object({
6279
+ type: z222.literal("DocumentationGroupUpdate"),
6158
6280
  output: SuccessPayload
6159
6281
  });
6160
- var DTODocumentationGroupMoveActionOutputV2 = z219.object({
6161
- type: z219.literal("DocumentationGroupMove"),
6282
+ var DTODocumentationGroupMoveActionOutputV2 = z222.object({
6283
+ type: z222.literal("DocumentationGroupMove"),
6162
6284
  output: SuccessPayload
6163
6285
  });
6164
- var DTODocumentationGroupDuplicateActionOutputV2 = z219.object({
6165
- type: z219.literal("DocumentationGroupDuplicate"),
6286
+ var DTODocumentationGroupDuplicateActionOutputV2 = z222.object({
6287
+ type: z222.literal("DocumentationGroupDuplicate"),
6166
6288
  output: SuccessPayload
6167
6289
  });
6168
- var DTODocumentationGroupDeleteActionOutputV2 = z219.object({
6169
- type: z219.literal("DocumentationGroupDelete"),
6290
+ var DTODocumentationGroupDeleteActionOutputV2 = z222.object({
6291
+ type: z222.literal("DocumentationGroupDelete"),
6170
6292
  output: SuccessPayload
6171
6293
  });
6172
- var DTODocumentationTabGroupDeleteActionOutputV2 = z219.object({
6173
- type: z219.literal("DocumentationTabGroupDelete"),
6294
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z222.object({
6295
+ type: z222.literal("DocumentationTabGroupDelete"),
6174
6296
  output: SuccessPayload
6175
6297
  });
6176
- var DTODocumentationGroupCreateActionInputV2 = z219.object({
6177
- type: z219.literal("DocumentationGroupCreate"),
6298
+ var DTODocumentationGroupCreateActionInputV2 = z222.object({
6299
+ type: z222.literal("DocumentationGroupCreate"),
6178
6300
  input: DTOCreateDocumentationGroupInput
6179
6301
  });
6180
- var DTODocumentationTabCreateActionInputV2 = z219.object({
6181
- type: z219.literal("DocumentationTabCreate"),
6302
+ var DTODocumentationTabCreateActionInputV2 = z222.object({
6303
+ type: z222.literal("DocumentationTabCreate"),
6182
6304
  input: DTOCreateDocumentationTabInput
6183
6305
  });
6184
- var DTODocumentationGroupUpdateActionInputV2 = z219.object({
6185
- type: z219.literal("DocumentationGroupUpdate"),
6306
+ var DTODocumentationGroupUpdateActionInputV2 = z222.object({
6307
+ type: z222.literal("DocumentationGroupUpdate"),
6186
6308
  input: DTOUpdateDocumentationGroupInput
6187
6309
  });
6188
- var DTODocumentationGroupMoveActionInputV2 = z219.object({
6189
- type: z219.literal("DocumentationGroupMove"),
6310
+ var DTODocumentationGroupMoveActionInputV2 = z222.object({
6311
+ type: z222.literal("DocumentationGroupMove"),
6190
6312
  input: DTOMoveDocumentationGroupInput
6191
6313
  });
6192
- var DTODocumentationGroupDuplicateActionInputV2 = z219.object({
6193
- type: z219.literal("DocumentationGroupDuplicate"),
6314
+ var DTODocumentationGroupDuplicateActionInputV2 = z222.object({
6315
+ type: z222.literal("DocumentationGroupDuplicate"),
6194
6316
  input: DTODuplicateDocumentationGroupInput
6195
6317
  });
6196
- var DTODocumentationGroupDeleteActionInputV2 = z219.object({
6197
- type: z219.literal("DocumentationGroupDelete"),
6318
+ var DTODocumentationGroupDeleteActionInputV2 = z222.object({
6319
+ type: z222.literal("DocumentationGroupDelete"),
6198
6320
  input: DTODeleteDocumentationGroupInput
6199
6321
  });
6200
- var DTODocumentationTabGroupDeleteActionInputV2 = z219.object({
6201
- type: z219.literal("DocumentationTabGroupDelete"),
6322
+ var DTODocumentationTabGroupDeleteActionInputV2 = z222.object({
6323
+ type: z222.literal("DocumentationTabGroupDelete"),
6202
6324
  input: DTODeleteDocumentationTabGroupInput
6203
6325
  });
6204
6326
 
6205
6327
  // src/api/dto/elements/documentation/group-v1.ts
6206
- import { z as z221 } from "zod";
6328
+ import { z as z224 } from "zod";
6207
6329
 
6208
6330
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6209
- import { z as z220 } from "zod";
6210
- var DocumentationColorV1 = z220.object({
6211
- aliasTo: z220.string().optional(),
6212
- value: z220.string().optional()
6331
+ import { z as z223 } from "zod";
6332
+ var DocumentationColorV1 = z223.object({
6333
+ aliasTo: z223.string().optional(),
6334
+ value: z223.string().optional()
6213
6335
  });
6214
6336
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6215
6337
  foregroundColor: true,
@@ -6218,10 +6340,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6218
6340
  foregroundColor: DocumentationColorV1.optional(),
6219
6341
  backgroundColor: DocumentationColorV1.optional()
6220
6342
  });
6221
- var DTODocumentationItemConfigurationV1 = z220.object({
6222
- showSidebar: z220.boolean(),
6223
- isPrivate: z220.boolean(),
6224
- isHidden: z220.boolean(),
6343
+ var DTODocumentationItemConfigurationV1 = z223.object({
6344
+ showSidebar: z223.boolean(),
6345
+ isPrivate: z223.boolean(),
6346
+ isHidden: z223.boolean(),
6225
6347
  header: DTODocumentationItemHeaderV1
6226
6348
  });
6227
6349
 
@@ -6235,27 +6357,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6235
6357
  data: true,
6236
6358
  shortPersistentId: true
6237
6359
  }).extend({
6238
- title: z221.string(),
6239
- isRoot: z221.boolean(),
6240
- childrenIds: z221.array(z221.string()),
6360
+ title: z224.string(),
6361
+ isRoot: z224.boolean(),
6362
+ childrenIds: z224.array(z224.string()),
6241
6363
  groupBehavior: DocumentationGroupBehavior,
6242
- shortPersistentId: z221.string(),
6243
- type: z221.literal("Group")
6364
+ shortPersistentId: z224.string(),
6365
+ type: z224.literal("Group")
6244
6366
  });
6245
6367
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6246
6368
  configuration: DTODocumentationItemConfigurationV1
6247
6369
  });
6248
6370
 
6249
6371
  // src/api/dto/elements/documentation/hierarchy.ts
6250
- import { z as z222 } from "zod";
6251
- var DTODocumentationHierarchyV2 = z222.object({
6252
- pages: z222.array(
6372
+ import { z as z225 } from "zod";
6373
+ var DTODocumentationHierarchyV2 = z225.object({
6374
+ pages: z225.array(
6253
6375
  DTODocumentationPageV2.extend({
6254
6376
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6255
6377
  draftState: DTODocumentationDraftState.optional()
6256
6378
  })
6257
6379
  ),
6258
- groups: z222.array(
6380
+ groups: z225.array(
6259
6381
  DTODocumentationGroupV2.extend({
6260
6382
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6261
6383
  draftState: DTODocumentationDraftState.optional()
@@ -6264,84 +6386,84 @@ var DTODocumentationHierarchyV2 = z222.object({
6264
6386
  });
6265
6387
 
6266
6388
  // src/api/dto/elements/documentation/page-actions-v2.ts
6267
- import { z as z223 } from "zod";
6268
- var SuccessPayload2 = z223.object({
6269
- success: z223.literal(true)
6389
+ import { z as z226 } from "zod";
6390
+ var SuccessPayload2 = z226.object({
6391
+ success: z226.literal(true)
6270
6392
  });
6271
- var DTODocumentationPageCreateActionOutputV2 = z223.object({
6272
- type: z223.literal("DocumentationPageCreate"),
6393
+ var DTODocumentationPageCreateActionOutputV2 = z226.object({
6394
+ type: z226.literal("DocumentationPageCreate"),
6273
6395
  output: SuccessPayload2
6274
6396
  });
6275
- var DTODocumentationPageUpdateActionOutputV2 = z223.object({
6276
- type: z223.literal("DocumentationPageUpdate"),
6397
+ var DTODocumentationPageUpdateActionOutputV2 = z226.object({
6398
+ type: z226.literal("DocumentationPageUpdate"),
6277
6399
  output: SuccessPayload2
6278
6400
  });
6279
- var DTODocumentationPageMoveActionOutputV2 = z223.object({
6280
- type: z223.literal("DocumentationPageMove"),
6401
+ var DTODocumentationPageMoveActionOutputV2 = z226.object({
6402
+ type: z226.literal("DocumentationPageMove"),
6281
6403
  output: SuccessPayload2
6282
6404
  });
6283
- var DTODocumentationPageDuplicateActionOutputV2 = z223.object({
6284
- type: z223.literal("DocumentationPageDuplicate"),
6405
+ var DTODocumentationPageDuplicateActionOutputV2 = z226.object({
6406
+ type: z226.literal("DocumentationPageDuplicate"),
6285
6407
  output: SuccessPayload2
6286
6408
  });
6287
- var DTODocumentationPageDeleteActionOutputV2 = z223.object({
6288
- type: z223.literal("DocumentationPageDelete"),
6409
+ var DTODocumentationPageDeleteActionOutputV2 = z226.object({
6410
+ type: z226.literal("DocumentationPageDelete"),
6289
6411
  output: SuccessPayload2
6290
6412
  });
6291
- var DTODocumentationPageRestoreActionOutput = z223.object({
6292
- type: z223.literal("DocumentationPageRestore"),
6413
+ var DTODocumentationPageRestoreActionOutput = z226.object({
6414
+ type: z226.literal("DocumentationPageRestore"),
6293
6415
  output: SuccessPayload2
6294
6416
  });
6295
- var DTODocumentationGroupRestoreActionOutput = z223.object({
6296
- type: z223.literal("DocumentationGroupRestore"),
6417
+ var DTODocumentationGroupRestoreActionOutput = z226.object({
6418
+ type: z226.literal("DocumentationGroupRestore"),
6297
6419
  output: SuccessPayload2
6298
6420
  });
6299
- var DTODocumentationPageApprovalStateChangeActionOutput = z223.object({
6300
- type: z223.literal("DocumentationPageApprovalStateChange"),
6421
+ var DTODocumentationPageApprovalStateChangeActionOutput = z226.object({
6422
+ type: z226.literal("DocumentationPageApprovalStateChange"),
6301
6423
  output: SuccessPayload2
6302
6424
  });
6303
- var DTODocumentationPageCreateActionInputV2 = z223.object({
6304
- type: z223.literal("DocumentationPageCreate"),
6425
+ var DTODocumentationPageCreateActionInputV2 = z226.object({
6426
+ type: z226.literal("DocumentationPageCreate"),
6305
6427
  input: DTOCreateDocumentationPageInputV2
6306
6428
  });
6307
- var DTODocumentationPageUpdateActionInputV2 = z223.object({
6308
- type: z223.literal("DocumentationPageUpdate"),
6429
+ var DTODocumentationPageUpdateActionInputV2 = z226.object({
6430
+ type: z226.literal("DocumentationPageUpdate"),
6309
6431
  input: DTOUpdateDocumentationPageInputV2
6310
6432
  });
6311
- var DTODocumentationPageMoveActionInputV2 = z223.object({
6312
- type: z223.literal("DocumentationPageMove"),
6433
+ var DTODocumentationPageMoveActionInputV2 = z226.object({
6434
+ type: z226.literal("DocumentationPageMove"),
6313
6435
  input: DTOMoveDocumentationPageInputV2
6314
6436
  });
6315
- var DTODocumentationPageDuplicateActionInputV2 = z223.object({
6316
- type: z223.literal("DocumentationPageDuplicate"),
6437
+ var DTODocumentationPageDuplicateActionInputV2 = z226.object({
6438
+ type: z226.literal("DocumentationPageDuplicate"),
6317
6439
  input: DTODuplicateDocumentationPageInputV2
6318
6440
  });
6319
- var DTODocumentationPageDeleteActionInputV2 = z223.object({
6320
- type: z223.literal("DocumentationPageDelete"),
6441
+ var DTODocumentationPageDeleteActionInputV2 = z226.object({
6442
+ type: z226.literal("DocumentationPageDelete"),
6321
6443
  input: DTODeleteDocumentationPageInputV2
6322
6444
  });
6323
- var DTODocumentationPageRestoreActionInput = z223.object({
6324
- type: z223.literal("DocumentationPageRestore"),
6445
+ var DTODocumentationPageRestoreActionInput = z226.object({
6446
+ type: z226.literal("DocumentationPageRestore"),
6325
6447
  input: DTORestoreDocumentationPageInput
6326
6448
  });
6327
- var DTODocumentationGroupRestoreActionInput = z223.object({
6328
- type: z223.literal("DocumentationGroupRestore"),
6449
+ var DTODocumentationGroupRestoreActionInput = z226.object({
6450
+ type: z226.literal("DocumentationGroupRestore"),
6329
6451
  input: DTORestoreDocumentationGroupInput
6330
6452
  });
6331
- var DTODocumentationPageApprovalStateChangeActionInput = z223.object({
6332
- type: z223.literal("DocumentationPageApprovalStateChange"),
6453
+ var DTODocumentationPageApprovalStateChangeActionInput = z226.object({
6454
+ type: z226.literal("DocumentationPageApprovalStateChange"),
6333
6455
  input: DTODocumentationPageApprovalStateChangeInput
6334
6456
  });
6335
6457
 
6336
6458
  // src/api/dto/elements/documentation/page-content.ts
6337
- import { z as z224 } from "zod";
6459
+ import { z as z227 } from "zod";
6338
6460
  var DTODocumentationPageContent = DocumentationPageContent;
6339
- var DTODocumentationPageContentGetResponse = z224.object({
6461
+ var DTODocumentationPageContentGetResponse = z227.object({
6340
6462
  pageContent: DTODocumentationPageContent
6341
6463
  });
6342
6464
 
6343
6465
  // src/api/dto/elements/documentation/page-v1.ts
6344
- import { z as z225 } from "zod";
6466
+ import { z as z228 } from "zod";
6345
6467
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6346
6468
  data: true,
6347
6469
  meta: true,
@@ -6349,32 +6471,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6349
6471
  sortOrder: true
6350
6472
  }).extend({
6351
6473
  configuration: DTODocumentationItemConfigurationV1,
6352
- blocks: z225.array(PageBlockV1),
6353
- title: z225.string(),
6354
- path: z225.string()
6474
+ blocks: z228.array(PageBlockV1),
6475
+ title: z228.string(),
6476
+ path: z228.string()
6355
6477
  });
6356
6478
 
6357
6479
  // src/api/dto/elements/figma-nodes/figma-node.ts
6358
- import { z as z226 } from "zod";
6480
+ import { z as z229 } from "zod";
6359
6481
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6360
- var DTOFigmaNodeOrigin = z226.object({
6361
- sourceId: z226.string(),
6362
- fileId: z226.string().optional(),
6363
- parentName: z226.string().optional()
6482
+ var DTOFigmaNodeOrigin = z229.object({
6483
+ sourceId: z229.string(),
6484
+ fileId: z229.string().optional(),
6485
+ parentName: z229.string().optional()
6364
6486
  });
6365
- var DTOFigmaNodeData = z226.object({
6487
+ var DTOFigmaNodeData = z229.object({
6366
6488
  // Id of the node in the Figma file
6367
- figmaNodeId: z226.string(),
6489
+ figmaNodeId: z229.string(),
6368
6490
  // Validity
6369
- isValid: z226.boolean(),
6491
+ isValid: z229.boolean(),
6370
6492
  // Asset data
6371
- assetId: z226.string(),
6372
- assetUrl: z226.string(),
6493
+ assetId: z229.string(),
6494
+ assetUrl: z229.string(),
6373
6495
  assetFormat: DTOFigmaNodeRenderFormat,
6374
6496
  // Asset metadata
6375
- assetScale: z226.number(),
6376
- assetWidth: z226.number().optional(),
6377
- assetHeight: z226.number().optional()
6497
+ assetScale: z229.number(),
6498
+ assetWidth: z229.number().optional(),
6499
+ assetHeight: z229.number().optional()
6378
6500
  });
6379
6501
  var DTOFigmaNode = FigmaNodeReference.omit({
6380
6502
  data: true,
@@ -6383,15 +6505,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6383
6505
  data: DTOFigmaNodeData,
6384
6506
  origin: DTOFigmaNodeOrigin
6385
6507
  });
6386
- var DTOFigmaNodeRenderInput = z226.object({
6508
+ var DTOFigmaNodeRenderInput = z229.object({
6387
6509
  /**
6388
6510
  * Id of a design system's data source representing a linked Figma file
6389
6511
  */
6390
- sourceId: z226.string(),
6512
+ sourceId: z229.string(),
6391
6513
  /**
6392
6514
  * Id of a node within the Figma file
6393
6515
  */
6394
- figmaFileNodeId: z226.string(),
6516
+ figmaFileNodeId: z229.string(),
6395
6517
  /**
6396
6518
  * Format in which the node must be rendered, png by default.
6397
6519
  */
@@ -6399,97 +6521,97 @@ var DTOFigmaNodeRenderInput = z226.object({
6399
6521
  });
6400
6522
 
6401
6523
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6402
- import { z as z227 } from "zod";
6403
- var DTOFigmaNodeRenderActionOutput = z227.object({
6404
- type: z227.literal("FigmaNodeRender"),
6405
- figmaNodes: z227.array(DTOFigmaNode)
6524
+ import { z as z230 } from "zod";
6525
+ var DTOFigmaNodeRenderActionOutput = z230.object({
6526
+ type: z230.literal("FigmaNodeRender"),
6527
+ figmaNodes: z230.array(DTOFigmaNode)
6406
6528
  });
6407
- var DTOFigmaNodeRenderActionInput = z227.object({
6408
- type: z227.literal("FigmaNodeRender"),
6529
+ var DTOFigmaNodeRenderActionInput = z230.object({
6530
+ type: z230.literal("FigmaNodeRender"),
6409
6531
  input: DTOFigmaNodeRenderInput.array()
6410
6532
  });
6411
6533
 
6412
6534
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6413
- import { z as z229 } from "zod";
6535
+ import { z as z232 } from "zod";
6414
6536
 
6415
6537
  // src/api/dto/elements/properties/property-definitions.ts
6416
- import { z as z228 } from "zod";
6538
+ import { z as z231 } from "zod";
6417
6539
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6418
- var DTOElementPropertyDefinition = z228.object({
6419
- id: z228.string(),
6420
- designSystemVersionId: z228.string(),
6540
+ var DTOElementPropertyDefinition = z231.object({
6541
+ id: z231.string(),
6542
+ designSystemVersionId: z231.string(),
6421
6543
  meta: ObjectMeta,
6422
- persistentId: z228.string(),
6544
+ persistentId: z231.string(),
6423
6545
  type: ElementPropertyTypeSchema,
6424
6546
  targetElementType: ElementPropertyTargetType,
6425
- codeName: z228.string().regex(CODE_NAME_REGEX2),
6426
- options: z228.array(ElementPropertyDefinitionOption).optional(),
6547
+ codeName: z231.string().regex(CODE_NAME_REGEX2),
6548
+ options: z231.array(ElementPropertyDefinitionOption).optional(),
6427
6549
  linkElementType: ElementPropertyLinkType.optional()
6428
6550
  });
6429
- var DTOElementPropertyDefinitionsGetResponse = z228.object({
6430
- definitions: z228.array(DTOElementPropertyDefinition)
6551
+ var DTOElementPropertyDefinitionsGetResponse = z231.object({
6552
+ definitions: z231.array(DTOElementPropertyDefinition)
6431
6553
  });
6432
6554
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6433
6555
  id: true,
6434
6556
  designSystemVersionId: true
6435
6557
  });
6436
- var DTOUpdateElementPropertyDefinitionInputV2 = z228.object({
6437
- id: z228.string(),
6438
- name: z228.string().optional(),
6439
- description: z228.string().optional(),
6440
- codeName: z228.string().regex(CODE_NAME_REGEX2).optional(),
6441
- options: z228.array(ElementPropertyDefinitionOption).optional()
6558
+ var DTOUpdateElementPropertyDefinitionInputV2 = z231.object({
6559
+ id: z231.string(),
6560
+ name: z231.string().optional(),
6561
+ description: z231.string().optional(),
6562
+ codeName: z231.string().regex(CODE_NAME_REGEX2).optional(),
6563
+ options: z231.array(ElementPropertyDefinitionOption).optional()
6442
6564
  });
6443
- var DTODeleteElementPropertyDefinitionInputV2 = z228.object({
6444
- id: z228.string()
6565
+ var DTODeleteElementPropertyDefinitionInputV2 = z231.object({
6566
+ id: z231.string()
6445
6567
  });
6446
6568
 
6447
6569
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6448
- var SuccessPayload3 = z229.object({
6449
- success: z229.literal(true)
6570
+ var SuccessPayload3 = z232.object({
6571
+ success: z232.literal(true)
6450
6572
  });
6451
- var DTOPropertyDefinitionCreateActionOutputV2 = z229.object({
6452
- type: z229.literal("PropertyDefinitionCreate"),
6573
+ var DTOPropertyDefinitionCreateActionOutputV2 = z232.object({
6574
+ type: z232.literal("PropertyDefinitionCreate"),
6453
6575
  definition: DTOElementPropertyDefinition
6454
6576
  });
6455
- var DTOPropertyDefinitionUpdateActionOutputV2 = z229.object({
6456
- type: z229.literal("PropertyDefinitionUpdate"),
6577
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z232.object({
6578
+ type: z232.literal("PropertyDefinitionUpdate"),
6457
6579
  definition: DTOElementPropertyDefinition
6458
6580
  });
6459
- var DTOPropertyDefinitionDeleteActionOutputV2 = z229.object({
6460
- type: z229.literal("PropertyDefinitionDelete"),
6581
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z232.object({
6582
+ type: z232.literal("PropertyDefinitionDelete"),
6461
6583
  output: SuccessPayload3
6462
6584
  });
6463
- var DTOPropertyDefinitionCreateActionInputV2 = z229.object({
6464
- type: z229.literal("PropertyDefinitionCreate"),
6585
+ var DTOPropertyDefinitionCreateActionInputV2 = z232.object({
6586
+ type: z232.literal("PropertyDefinitionCreate"),
6465
6587
  input: DTOCreateElementPropertyDefinitionInputV2
6466
6588
  });
6467
- var DTOPropertyDefinitionUpdateActionInputV2 = z229.object({
6468
- type: z229.literal("PropertyDefinitionUpdate"),
6589
+ var DTOPropertyDefinitionUpdateActionInputV2 = z232.object({
6590
+ type: z232.literal("PropertyDefinitionUpdate"),
6469
6591
  input: DTOUpdateElementPropertyDefinitionInputV2
6470
6592
  });
6471
- var DTOPropertyDefinitionDeleteActionInputV2 = z229.object({
6472
- type: z229.literal("PropertyDefinitionDelete"),
6593
+ var DTOPropertyDefinitionDeleteActionInputV2 = z232.object({
6594
+ type: z232.literal("PropertyDefinitionDelete"),
6473
6595
  input: DTODeleteElementPropertyDefinitionInputV2
6474
6596
  });
6475
6597
 
6476
6598
  // src/api/dto/elements/properties/property-values.ts
6477
- import { z as z230 } from "zod";
6478
- var DTOElementPropertyValue = z230.object({
6479
- id: z230.string(),
6480
- designSystemVersionId: z230.string(),
6481
- definitionId: z230.string(),
6482
- targetElementId: z230.string(),
6483
- value: z230.union([z230.string(), z230.number(), z230.boolean()]).optional(),
6484
- valuePreview: z230.string().optional()
6599
+ import { z as z233 } from "zod";
6600
+ var DTOElementPropertyValue = z233.object({
6601
+ id: z233.string(),
6602
+ designSystemVersionId: z233.string(),
6603
+ definitionId: z233.string(),
6604
+ targetElementId: z233.string(),
6605
+ value: z233.union([z233.string(), z233.number(), z233.boolean()]).optional(),
6606
+ valuePreview: z233.string().optional()
6485
6607
  });
6486
- var DTOElementPropertyValuesGetResponse = z230.object({
6487
- values: z230.array(DTOElementPropertyValue)
6608
+ var DTOElementPropertyValuesGetResponse = z233.object({
6609
+ values: z233.array(DTOElementPropertyValue)
6488
6610
  });
6489
6611
 
6490
6612
  // src/api/dto/elements/elements-action-v2.ts
6491
- import { z as z231 } from "zod";
6492
- var DTOElementActionOutput = z231.discriminatedUnion("type", [
6613
+ import { z as z234 } from "zod";
6614
+ var DTOElementActionOutput = z234.discriminatedUnion("type", [
6493
6615
  // Documentation pages
6494
6616
  DTODocumentationPageCreateActionOutputV2,
6495
6617
  DTODocumentationPageUpdateActionOutputV2,
@@ -6516,7 +6638,7 @@ var DTOElementActionOutput = z231.discriminatedUnion("type", [
6516
6638
  // Approvals
6517
6639
  DTODocumentationPageApprovalStateChangeActionOutput
6518
6640
  ]);
6519
- var DTOElementActionInput = z231.discriminatedUnion("type", [
6641
+ var DTOElementActionInput = z234.discriminatedUnion("type", [
6520
6642
  // Documentation pages
6521
6643
  DTODocumentationPageCreateActionInputV2,
6522
6644
  DTODocumentationPageUpdateActionInputV2,
@@ -6545,60 +6667,60 @@ var DTOElementActionInput = z231.discriminatedUnion("type", [
6545
6667
  ]);
6546
6668
 
6547
6669
  // src/api/dto/elements/get-elements-v2.ts
6548
- import { z as z232 } from "zod";
6549
- var DTOElementsGetTypeFilter = z232.enum(["FigmaNode"]);
6550
- var DTOElementsGetQuerySchema = z232.object({
6551
- types: z232.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6670
+ import { z as z235 } from "zod";
6671
+ var DTOElementsGetTypeFilter = z235.enum(["FigmaNode"]);
6672
+ var DTOElementsGetQuerySchema = z235.object({
6673
+ types: z235.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6552
6674
  });
6553
- var DTOElementsGetOutput = z232.object({
6554
- figmaNodes: z232.array(DTOFigmaNode).optional()
6675
+ var DTOElementsGetOutput = z235.object({
6676
+ figmaNodes: z235.array(DTOFigmaNode).optional()
6555
6677
  });
6556
6678
 
6557
6679
  // src/api/dto/figma-components/assets/download.ts
6558
- import { z as z233 } from "zod";
6559
- var DTOAssetRenderConfiguration = z233.object({
6560
- prefix: z233.string().optional(),
6561
- suffix: z233.string().optional(),
6562
- scale: z233.enum(["x1", "x2", "x3", "x4"]),
6563
- format: z233.enum(["png", "pdf", "svg"])
6564
- });
6565
- var DTORenderedAssetFile = z233.object({
6566
- assetId: z233.string(),
6567
- fileName: z233.string(),
6568
- sourceUrl: z233.string(),
6680
+ import { z as z236 } from "zod";
6681
+ var DTOAssetRenderConfiguration = z236.object({
6682
+ prefix: z236.string().optional(),
6683
+ suffix: z236.string().optional(),
6684
+ scale: z236.enum(["x1", "x2", "x3", "x4"]),
6685
+ format: z236.enum(["png", "pdf", "svg"])
6686
+ });
6687
+ var DTORenderedAssetFile = z236.object({
6688
+ assetId: z236.string(),
6689
+ fileName: z236.string(),
6690
+ sourceUrl: z236.string(),
6569
6691
  settings: DTOAssetRenderConfiguration,
6570
- originalName: z233.string()
6692
+ originalName: z236.string()
6571
6693
  });
6572
- var DTODownloadAssetsRequest = z233.object({
6573
- persistentIds: z233.array(z233.string().uuid()).optional(),
6694
+ var DTODownloadAssetsRequest = z236.object({
6695
+ persistentIds: z236.array(z236.string().uuid()).optional(),
6574
6696
  settings: DTOAssetRenderConfiguration.array()
6575
6697
  });
6576
- var DTODownloadAssetsResponse = z233.object({
6698
+ var DTODownloadAssetsResponse = z236.object({
6577
6699
  items: DTORenderedAssetFile.array()
6578
6700
  });
6579
6701
 
6580
6702
  // src/api/dto/liveblocks/auth-response.ts
6581
- import { z as z234 } from "zod";
6582
- var DTOLiveblocksAuthResponse = z234.object({
6583
- token: z234.string()
6703
+ import { z as z237 } from "zod";
6704
+ var DTOLiveblocksAuthResponse = z237.object({
6705
+ token: z237.string()
6584
6706
  });
6585
6707
 
6586
6708
  // src/api/dto/users/authenticated-user.ts
6587
- import { z as z236 } from "zod";
6709
+ import { z as z239 } from "zod";
6588
6710
 
6589
6711
  // src/api/dto/users/user.ts
6590
- import { z as z235 } from "zod";
6591
- var DTOUserProfile = z235.object({
6592
- name: z235.string(),
6593
- nickname: z235.string().optional(),
6594
- avatar: z235.string().optional()
6595
- });
6596
- var DTOUser = z235.object({
6597
- id: z235.string(),
6598
- email: z235.string(),
6712
+ import { z as z238 } from "zod";
6713
+ var DTOUserProfile = z238.object({
6714
+ name: z238.string(),
6715
+ nickname: z238.string().optional(),
6716
+ avatar: z238.string().optional()
6717
+ });
6718
+ var DTOUser = z238.object({
6719
+ id: z238.string(),
6720
+ email: z238.string(),
6599
6721
  profile: DTOUserProfile
6600
6722
  });
6601
- var DTOUserGetResponse = z235.object({
6723
+ var DTOUserGetResponse = z238.object({
6602
6724
  user: DTOUser
6603
6725
  });
6604
6726
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -6607,39 +6729,38 @@ var DTOUserProfileUpdate = UserProfileUpdate;
6607
6729
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6608
6730
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6609
6731
  var DTOUserSource = UserSource;
6610
- var DTOUserOnboarding = z236.object({
6611
- companyName: z236.string().optional(),
6612
- numberOfPeopleInOrg: z236.string().optional(),
6613
- numberOfPeopleInDesignTeam: z236.string().optional(),
6732
+ var DTOUserOnboarding = z239.object({
6733
+ companyName: z239.string().optional(),
6734
+ numberOfPeopleInOrg: z239.string().optional(),
6735
+ numberOfPeopleInDesignTeam: z239.string().optional(),
6614
6736
  department: DTOUserOnboardingDepartment.optional(),
6615
- jobTitle: z236.string().optional(),
6616
- phase: z236.string().optional(),
6737
+ jobTitle: z239.string().optional(),
6738
+ phase: z239.string().optional(),
6617
6739
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6618
- designSystemName: z236.string().optional(),
6619
- defaultDestination: z236.string().optional(),
6620
- isPageDraftOnboardingFinished: z236.boolean().optional()
6740
+ designSystemName: z239.string().optional(),
6741
+ defaultDestination: z239.string().optional(),
6742
+ isPageDraftOnboardingFinished: z239.boolean().optional()
6621
6743
  });
6622
6744
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6623
6745
  onboarding: DTOUserOnboarding.optional()
6624
6746
  });
6625
6747
  var DTOAuthenticatedUser = DTOUser.extend({
6626
6748
  profile: DTOAuthenticatedUserProfile,
6627
- createdAt: z236.coerce.date(),
6628
- loggedOutAt: z236.coerce.date().optional(),
6749
+ createdAt: z239.coerce.date(),
6750
+ loggedOutAt: z239.coerce.date().optional(),
6629
6751
  source: DTOUserSource.optional()
6630
6752
  });
6631
- var DTOAuthenticatedUserResponse = z236.object({
6753
+ var DTOAuthenticatedUserResponse = z239.object({
6632
6754
  user: DTOAuthenticatedUser
6633
6755
  });
6634
6756
 
6635
6757
  // src/api/dto/users/update.ts
6636
- import { z as z237 } from "zod";
6637
- var DTOUserProfileUpdateResponse = z237.object({
6758
+ import { z as z240 } from "zod";
6759
+ var DTOUserProfileUpdateResponse = z240.object({
6638
6760
  user: User
6639
6761
  });
6640
6762
 
6641
6763
  // src/api/endpoints/design-system/versions/brands.ts
6642
- import { z as z238 } from "zod";
6643
6764
  var BrandsEndpoint = class {
6644
6765
  constructor(requestExecutor) {
6645
6766
  this.requestExecutor = requestExecutor;
@@ -6647,28 +6768,26 @@ var BrandsEndpoint = class {
6647
6768
  get(designSystemId, versionId, brandId) {
6648
6769
  return this.requestExecutor.json(
6649
6770
  `/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
6650
- z238.any()
6771
+ DTOBrandGetResponse
6651
6772
  );
6652
6773
  }
6653
6774
  list(designSystemId, versionId) {
6654
- return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z238.any());
6775
+ return this.requestExecutor.json(
6776
+ `/design-systems/${designSystemId}/versions/${versionId}/brands`,
6777
+ DTOBrandsListResponse
6778
+ );
6655
6779
  }
6656
6780
  };
6657
6781
 
6658
- // src/api/endpoints/design-system/versions/overrides.ts
6659
- import { z as z239 } from "zod";
6660
- var OverridesEndpoint = class {
6782
+ // src/api/endpoints/design-system/versions/import-jobs.ts
6783
+ var ImportJobsEndpoint = class {
6661
6784
  constructor(requestExecutor) {
6662
6785
  this.requestExecutor = requestExecutor;
6663
6786
  }
6664
- create(dsId, versionId, themeId, body) {
6787
+ get(designSystemId, versionId, jobId) {
6665
6788
  return this.requestExecutor.json(
6666
- `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
6667
- z239.any(),
6668
- {
6669
- method: "POST",
6670
- body
6671
- }
6789
+ `/design-systems/${designSystemId}/versions/${versionId}/import-jobs/${jobId}`,
6790
+ DTOImportJobResponse
6672
6791
  );
6673
6792
  }
6674
6793
  };
@@ -6686,7 +6805,27 @@ var VersionStatsEndpoint = class {
6686
6805
  };
6687
6806
 
6688
6807
  // src/api/endpoints/design-system/versions/themes.ts
6689
- import { z as z240 } from "zod";
6808
+ import { z as z242 } from "zod";
6809
+
6810
+ // src/api/endpoints/design-system/versions/overrides.ts
6811
+ import { z as z241 } from "zod";
6812
+ var OverridesEndpoint = class {
6813
+ constructor(requestExecutor) {
6814
+ this.requestExecutor = requestExecutor;
6815
+ }
6816
+ create(dsId, versionId, themeId, body) {
6817
+ return this.requestExecutor.json(
6818
+ `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
6819
+ z241.any(),
6820
+ {
6821
+ method: "POST",
6822
+ body
6823
+ }
6824
+ );
6825
+ }
6826
+ };
6827
+
6828
+ // src/api/endpoints/design-system/versions/themes.ts
6690
6829
  var ThemesEndpoint = class {
6691
6830
  constructor(requestExecutor) {
6692
6831
  this.requestExecutor = requestExecutor;
@@ -6694,33 +6833,75 @@ var ThemesEndpoint = class {
6694
6833
  this.overrides = new OverridesEndpoint(requestExecutor);
6695
6834
  }
6696
6835
  create(dsId, versionId, body) {
6697
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z240.any(), {
6836
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z242.any(), {
6698
6837
  method: "POST",
6699
6838
  body
6700
6839
  });
6701
6840
  }
6702
6841
  delete(dsId, versionId, themeId) {
6703
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z240.any(), {
6842
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z242.any(), {
6704
6843
  method: "DELETE"
6705
6844
  });
6706
6845
  }
6707
6846
  };
6708
6847
 
6709
6848
  // src/api/endpoints/design-system/versions/tokens.ts
6710
- import { z as z241 } from "zod";
6849
+ import { z as z243 } from "zod";
6711
6850
  var TokensEndpoint = class {
6712
6851
  constructor(requestExecutor) {
6713
6852
  this.requestExecutor = requestExecutor;
6714
6853
  }
6715
6854
  create(dsId, versionId, body) {
6716
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z241.any(), {
6855
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z243.any(), {
6717
6856
  method: "POST",
6718
6857
  body
6719
6858
  });
6720
6859
  }
6860
+ list(dsId, versionId) {
6861
+ return this.requestExecutor.json(
6862
+ `/design-systems/${dsId}/versions/${versionId}/tokens`,
6863
+ DTODesignTokenListResponse
6864
+ );
6865
+ }
6721
6866
  };
6722
6867
 
6723
- // src/api/endpoints/design-system/design-system-members.ts
6868
+ // src/api/endpoints/design-system/versions.ts
6869
+ var DesignSystemVersionsEndpoint = class {
6870
+ constructor(requestExecutor) {
6871
+ this.requestExecutor = requestExecutor;
6872
+ __publicField(this, "themes");
6873
+ __publicField(this, "brands");
6874
+ __publicField(this, "importJobs");
6875
+ __publicField(this, "tokens");
6876
+ __publicField(this, "stats");
6877
+ this.themes = new ThemesEndpoint(requestExecutor);
6878
+ this.brands = new BrandsEndpoint(requestExecutor);
6879
+ this.importJobs = new ImportJobsEndpoint(requestExecutor);
6880
+ this.tokens = new TokensEndpoint(requestExecutor);
6881
+ this.stats = new VersionStatsEndpoint(requestExecutor);
6882
+ }
6883
+ list(dsId) {
6884
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
6885
+ }
6886
+ };
6887
+
6888
+ // src/api/endpoints/design-system/bff.ts
6889
+ var DesignSystemBffEndpoint = class {
6890
+ constructor(requestExecutor) {
6891
+ this.requestExecutor = requestExecutor;
6892
+ }
6893
+ import(dsId, payload) {
6894
+ return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
6895
+ method: "POST",
6896
+ body: payload
6897
+ });
6898
+ }
6899
+ };
6900
+
6901
+ // src/api/endpoints/design-system/design-systems.ts
6902
+ import { z as z244 } from "zod";
6903
+
6904
+ // src/api/endpoints/design-system/members.ts
6724
6905
  var DesignSystemMembersEndpoint = class {
6725
6906
  constructor(requestExecutor) {
6726
6907
  this.requestExecutor = requestExecutor;
@@ -6738,33 +6919,28 @@ var DesignSystemMembersEndpoint = class {
6738
6919
  }
6739
6920
  };
6740
6921
 
6741
- // src/api/endpoints/design-system/design-system-versions.ts
6742
- var DesignSystemVersionsEndpoint = class {
6922
+ // src/api/endpoints/design-system/sources.ts
6923
+ var DesignSystemSourcesEndpoint = class {
6743
6924
  constructor(requestExecutor) {
6744
6925
  this.requestExecutor = requestExecutor;
6745
- __publicField(this, "themes");
6746
- __publicField(this, "brands");
6747
- __publicField(this, "tokens");
6748
- __publicField(this, "stats");
6749
- this.themes = new ThemesEndpoint(requestExecutor);
6750
- this.brands = new BrandsEndpoint(requestExecutor);
6751
- this.tokens = new TokensEndpoint(requestExecutor);
6752
- this.stats = new VersionStatsEndpoint(requestExecutor);
6753
6926
  }
6754
6927
  list(dsId) {
6755
- return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
6928
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
6756
6929
  }
6757
6930
  };
6758
6931
 
6759
6932
  // src/api/endpoints/design-system/design-systems.ts
6760
- import { z as z242 } from "zod";
6761
6933
  var DesignSystemsEndpoint = class {
6762
6934
  constructor(requestExecutor) {
6763
6935
  this.requestExecutor = requestExecutor;
6764
6936
  __publicField(this, "members");
6765
6937
  __publicField(this, "versions");
6938
+ __publicField(this, "bff");
6939
+ __publicField(this, "sources");
6766
6940
  this.members = new DesignSystemMembersEndpoint(requestExecutor);
6767
6941
  this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
6942
+ this.bff = new DesignSystemBffEndpoint(requestExecutor);
6943
+ this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
6768
6944
  }
6769
6945
  create(body) {
6770
6946
  return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
@@ -6773,10 +6949,10 @@ var DesignSystemsEndpoint = class {
6773
6949
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6774
6950
  }
6775
6951
  get(dsId) {
6776
- return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any());
6952
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any());
6777
6953
  }
6778
6954
  delete(dsId) {
6779
- return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any(), { method: "DELETE" });
6955
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any(), { method: "DELETE" });
6780
6956
  }
6781
6957
  update(dsId, body) {
6782
6958
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6820,7 +6996,7 @@ var WorkspaceInvitationsEndpoint = class {
6820
6996
  };
6821
6997
 
6822
6998
  // src/api/endpoints/workspaces/workspace-members.ts
6823
- import { z as z243 } from "zod";
6999
+ import { z as z245 } from "zod";
6824
7000
  var WorkspaceMembersEndpoint = class {
6825
7001
  constructor(requestExecutor) {
6826
7002
  this.requestExecutor = requestExecutor;
@@ -6837,7 +7013,7 @@ var WorkspaceMembersEndpoint = class {
6837
7013
  });
6838
7014
  }
6839
7015
  invite(workspaceId, body) {
6840
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z243.any(), { method: "POST", body });
7016
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z245.any(), { method: "POST", body });
6841
7017
  }
6842
7018
  delete(workspaceId, userId) {
6843
7019
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6847,7 +7023,7 @@ var WorkspaceMembersEndpoint = class {
6847
7023
  };
6848
7024
 
6849
7025
  // src/api/endpoints/workspaces/workspaces.ts
6850
- import { z as z244 } from "zod";
7026
+ import { z as z246 } from "zod";
6851
7027
  var WorkspacesEndpoint = class {
6852
7028
  constructor(requestExecutor) {
6853
7029
  this.requestExecutor = requestExecutor;
@@ -6870,10 +7046,10 @@ var WorkspacesEndpoint = class {
6870
7046
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
6871
7047
  }
6872
7048
  delete(workspaceId) {
6873
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z244.any(), { method: "DELETE" });
7049
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z246.any(), { method: "DELETE" });
6874
7050
  }
6875
7051
  subscription(workspaceId) {
6876
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z244.any(), { method: "GET" });
7052
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z246.any(), { method: "GET" });
6877
7053
  }
6878
7054
  };
6879
7055
 
@@ -6967,9 +7143,9 @@ ${bodyText}`,
6967
7143
 
6968
7144
  // src/api/transport/request-executor.ts
6969
7145
  import fetch from "node-fetch";
6970
- import { z as z245 } from "zod";
6971
- var ResponseWrapper = z245.object({
6972
- result: z245.record(z245.any())
7146
+ import { z as z247 } from "zod";
7147
+ var ResponseWrapper = z247.object({
7148
+ result: z247.record(z247.any())
6973
7149
  });
6974
7150
  var RequestExecutor = class {
6975
7151
  constructor(testServerConfig) {
@@ -7095,7 +7271,7 @@ function generateHash(input, debug = false) {
7095
7271
  }
7096
7272
 
7097
7273
  // src/yjs/design-system-content/documentation-hierarchy.ts
7098
- import { z as z246 } from "zod";
7274
+ import { z as z248 } from "zod";
7099
7275
 
7100
7276
  // src/yjs/version-room/base.ts
7101
7277
  var VersionRoomBaseYDoc = class {
@@ -7625,24 +7801,24 @@ var FrontendVersionRoomYDoc = class {
7625
7801
  };
7626
7802
 
7627
7803
  // src/yjs/design-system-content/documentation-hierarchy.ts
7628
- var DocumentationHierarchySettings = z246.object({
7629
- routingVersion: z246.string(),
7630
- isDraftFeatureAdopted: z246.boolean(),
7631
- isApprovalFeatureEnabled: z246.boolean(),
7632
- approvalRequiredForPublishing: z246.boolean()
7804
+ var DocumentationHierarchySettings = z248.object({
7805
+ routingVersion: z248.string(),
7806
+ isDraftFeatureAdopted: z248.boolean(),
7807
+ isApprovalFeatureEnabled: z248.boolean(),
7808
+ approvalRequiredForPublishing: z248.boolean()
7633
7809
  });
7634
7810
  function yjsToDocumentationHierarchy(doc) {
7635
7811
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7636
7812
  }
7637
7813
 
7638
7814
  // src/yjs/design-system-content/item-configuration.ts
7639
- import { z as z247 } from "zod";
7640
- var DTODocumentationPageRoomHeaderData = z247.object({
7641
- title: z247.string(),
7815
+ import { z as z249 } from "zod";
7816
+ var DTODocumentationPageRoomHeaderData = z249.object({
7817
+ title: z249.string(),
7642
7818
  configuration: DTODocumentationItemConfigurationV2
7643
7819
  });
7644
- var DTODocumentationPageRoomHeaderDataUpdate = z247.object({
7645
- title: z247.string().optional(),
7820
+ var DTODocumentationPageRoomHeaderDataUpdate = z249.object({
7821
+ title: z249.string().optional(),
7646
7822
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7647
7823
  });
7648
7824
  function itemConfigurationToYjs(yDoc, item) {
@@ -7693,7 +7869,7 @@ function yjsToItemConfiguration(yDoc) {
7693
7869
  header: rawHeader
7694
7870
  };
7695
7871
  return {
7696
- title: z247.string().parse(title),
7872
+ title: z249.string().parse(title),
7697
7873
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7698
7874
  };
7699
7875
  }
@@ -7703,9 +7879,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7703
7879
  var PageSectionEditorModel = PageSectionEditorModelV2;
7704
7880
 
7705
7881
  // src/yjs/docs-editor/model/page.ts
7706
- import { z as z248 } from "zod";
7707
- var DocumentationPageEditorModel = z248.object({
7708
- blocks: z248.array(DocumentationPageContentItem)
7882
+ import { z as z250 } from "zod";
7883
+ var DocumentationPageEditorModel = z250.object({
7884
+ blocks: z250.array(DocumentationPageContentItem)
7709
7885
  });
7710
7886
 
7711
7887
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11225,7 +11401,7 @@ var blocks = [
11225
11401
 
11226
11402
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11227
11403
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11228
- import { z as z249 } from "zod";
11404
+ import { z as z251 } from "zod";
11229
11405
  function yDocToPage(yDoc, definitions) {
11230
11406
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11231
11407
  }
@@ -11305,7 +11481,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11305
11481
  return null;
11306
11482
  return {
11307
11483
  id,
11308
- title: getProsemirrorAttribute(prosemirrorNode, "title", z249.string()) ?? "",
11484
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z251.string()) ?? "",
11309
11485
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11310
11486
  };
11311
11487
  }
@@ -11340,7 +11516,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11340
11516
  });
11341
11517
  }
11342
11518
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11343
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z249.string());
11519
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z251.string());
11344
11520
  if (!definitionId) {
11345
11521
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11346
11522
  return [];
@@ -11382,7 +11558,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11382
11558
  if (!id)
11383
11559
  return null;
11384
11560
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11385
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z249.string().optional()));
11561
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z251.string().optional()));
11386
11562
  return {
11387
11563
  id,
11388
11564
  type: "Block",
@@ -11510,10 +11686,10 @@ function parseRichTextAttribute(mark) {
11510
11686
  return null;
11511
11687
  }
11512
11688
  function parseProsemirrorLink(mark) {
11513
- const href = getProsemirrorAttribute(mark, "href", z249.string().optional());
11689
+ const href = getProsemirrorAttribute(mark, "href", z251.string().optional());
11514
11690
  if (!href)
11515
11691
  return null;
11516
- const target = getProsemirrorAttribute(mark, "target", z249.string().optional());
11692
+ const target = getProsemirrorAttribute(mark, "target", z251.string().optional());
11517
11693
  const openInNewTab = target === "_blank";
11518
11694
  if (href.startsWith("@")) {
11519
11695
  return {
@@ -11532,10 +11708,10 @@ function parseProsemirrorLink(mark) {
11532
11708
  }
11533
11709
  }
11534
11710
  function parseProsemirrorCommentHighlight(mark) {
11535
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z249.string().optional());
11711
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z251.string().optional());
11536
11712
  if (!highlightId)
11537
11713
  return null;
11538
- const isResolved = getProsemirrorAttribute(mark, "resolved", z249.boolean().optional()) ?? false;
11714
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z251.boolean().optional()) ?? false;
11539
11715
  return {
11540
11716
  type: "Comment",
11541
11717
  commentHighlightId: highlightId,
@@ -11547,7 +11723,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11547
11723
  if (!id)
11548
11724
  return null;
11549
11725
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11550
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z249.boolean().optional()) !== false;
11726
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z251.boolean().optional()) !== false;
11551
11727
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11552
11728
  if (!tableChild) {
11553
11729
  return emptyTable(id, variantId, 0);
@@ -11594,9 +11770,9 @@ function parseAsTableCell(prosemirrorNode) {
11594
11770
  const id = getProsemirrorBlockId(prosemirrorNode);
11595
11771
  if (!id)
11596
11772
  return null;
11597
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z249.string().optional());
11773
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z251.string().optional());
11598
11774
  let columnWidth;
11599
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z249.array(z249.number()).nullish());
11775
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z251.array(z251.number()).nullish());
11600
11776
  if (columnWidthArray) {
11601
11777
  columnWidth = roundDimension(columnWidthArray[0]);
11602
11778
  }
@@ -11634,7 +11810,7 @@ function parseAsTableNode(prosemirrorNode) {
11634
11810
  value: parseRichText(prosemirrorNode.content ?? [])
11635
11811
  };
11636
11812
  case "image":
11637
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
11813
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
11638
11814
  if (!items)
11639
11815
  return null;
11640
11816
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11754,7 +11930,7 @@ function definitionExpectsPlaceholderItem(definition) {
11754
11930
  );
11755
11931
  }
11756
11932
  function parseBlockItems(prosemirrorNode, definition) {
11757
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
11933
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
11758
11934
  if (!itemsString)
11759
11935
  return null;
11760
11936
  const itemsJson = JSON.parse(itemsString);
@@ -11766,18 +11942,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11766
11942
  }
11767
11943
  function parseAppearance(prosemirrorNode) {
11768
11944
  let appearance = {};
11769
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z249.string().optional());
11945
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z251.string().optional());
11770
11946
  if (rawAppearanceString) {
11771
11947
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11772
11948
  if (parsedAppearance.success) {
11773
11949
  appearance = parsedAppearance.data;
11774
11950
  }
11775
11951
  }
11776
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z249.number().optional());
11952
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z251.number().optional());
11777
11953
  if (columns) {
11778
11954
  appearance.numberOfColumns = columns;
11779
11955
  }
11780
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z249.string().optional());
11956
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z251.string().optional());
11781
11957
  if (backgroundColor) {
11782
11958
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11783
11959
  if (parsedColor.success) {
@@ -11872,13 +12048,13 @@ function valueSchemaForPropertyType(type) {
11872
12048
  }
11873
12049
  }
11874
12050
  function getProsemirrorBlockId(prosemirrorNode) {
11875
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z249.string());
12051
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z251.string());
11876
12052
  if (!id)
11877
12053
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11878
12054
  return id;
11879
12055
  }
11880
12056
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11881
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z249.string()));
12057
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z251.string()));
11882
12058
  }
11883
12059
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11884
12060
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11939,13 +12115,16 @@ export {
11939
12115
  BackendVersionRoomYDoc,
11940
12116
  BlockDefinitionUtils,
11941
12117
  BlockParsingUtils,
11942
- BrandsEndpoint,
12118
+ Collection,
11943
12119
  DTOAppBootstrapDataQuery,
11944
12120
  DTOAppBootstrapDataResponse,
11945
12121
  DTOAssetRenderConfiguration,
11946
12122
  DTOAuthenticatedUser,
11947
12123
  DTOAuthenticatedUserProfile,
11948
12124
  DTOAuthenticatedUserResponse,
12125
+ DTOBffFigmaImportRequestBody,
12126
+ DTOBffImportRequestBody,
12127
+ DTOBffUploadImportRequestBody,
11949
12128
  DTOBrand,
11950
12129
  DTOBrandCreateResponse,
11951
12130
  DTOBrandGetResponse,
@@ -11989,6 +12168,8 @@ export {
11989
12168
  DTODesignSystemVersionStatsQuery,
11990
12169
  DTODesignSystemVersionsListResponse,
11991
12170
  DTODesignSystemsListResponse,
12171
+ DTODesignToken,
12172
+ DTODesignTokenListResponse,
11992
12173
  DTODiffCountBase,
11993
12174
  DTODocumentationDraftChangeType,
11994
12175
  DTODocumentationDraftState,
@@ -12100,6 +12281,8 @@ export {
12100
12281
  DTOGitOrganization,
12101
12282
  DTOGitProject,
12102
12283
  DTOGitRepository,
12284
+ DTOImportJob,
12285
+ DTOImportJobResponse,
12103
12286
  DTOIntegration,
12104
12287
  DTOIntegrationCredentials,
12105
12288
  DTOIntegrationOAuthGetResponse,
@@ -12170,29 +12353,37 @@ export {
12170
12353
  DTOWorkspaceMembersListResponse,
12171
12354
  DTOWorkspaceResponse,
12172
12355
  DTOWorkspaceRole,
12356
+ DesignSystemBffEndpoint,
12173
12357
  DesignSystemMembersEndpoint,
12174
12358
  DesignSystemVersionsEndpoint,
12175
12359
  DesignSystemsEndpoint,
12360
+ DimensionsVariableScopeType,
12176
12361
  DocumentationHierarchySettings,
12177
12362
  DocumentationPageEditorModel,
12178
12363
  DocumentationPageV1DTO,
12364
+ FormattedCollections,
12179
12365
  FrontendVersionRoomYDoc,
12180
12366
  ListTreeBuilder,
12181
12367
  NpmRegistryInput,
12182
12368
  ObjectMeta2 as ObjectMeta,
12183
- OverridesEndpoint,
12184
12369
  PageBlockEditorModel,
12185
12370
  PageSectionEditorModel,
12371
+ RGB,
12372
+ RGBA,
12186
12373
  RequestExecutor,
12187
12374
  RequestExecutorError,
12375
+ ResolvedVariableType,
12376
+ StringVariableScopeType,
12188
12377
  SupernovaApiClient,
12189
- ThemesEndpoint,
12190
12378
  TokenCollectionsEndpoint,
12191
- TokensEndpoint,
12192
12379
  UsersEndpoint,
12380
+ Variable,
12381
+ VariableAlias,
12382
+ VariableMode,
12383
+ VariableValue,
12384
+ VariablesMapping,
12193
12385
  VersionRoomBaseYDoc,
12194
12386
  VersionSQSPayload,
12195
- VersionStatsEndpoint,
12196
12387
  WorkspaceConfigurationPayload,
12197
12388
  WorkspaceInvitationsEndpoint,
12198
12389
  WorkspaceMembersEndpoint,