@supernova-studio/client 0.58.5 → 0.58.7

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
@@ -1481,6 +1481,7 @@ var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
1481
1481
  var ElementPropertyTypeSchema = z35.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
1482
1482
  var ElementPropertyTargetType = z35.enum(["Token", "Component", "DocumentationPage"]);
1483
1483
  var ElementPropertyLinkType = z35.enum(["FigmaComponent", "DocumentationPage"]);
1484
+ var ElementPropertyImmutableType = z35.enum(["Collection"]);
1484
1485
  var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
1485
1486
  var ColorTokenInlineData = z35.object({
1486
1487
  value: z35.string()
@@ -2819,7 +2820,8 @@ var DesignTokenOriginPart = z85.object({
2819
2820
  referenceOriginRemote: z85.boolean().optional(),
2820
2821
  referencePersistentId: z85.string().optional(),
2821
2822
  referenceResolutionFailed: z85.boolean().optional(),
2822
- key: z85.string().optional()
2823
+ key: z85.string().optional(),
2824
+ sortOrder: z85.number().optional()
2823
2825
  });
2824
2826
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
2825
2827
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -5150,7 +5152,7 @@ var DTOPagination = z179.object({
5150
5152
  });
5151
5153
 
5152
5154
  // src/api/dto/bff/app-bootstrap-data.ts
5153
- import { z as z212 } from "zod";
5155
+ import { z as z213 } from "zod";
5154
5156
 
5155
5157
  // src/api/dto/design-systems/brand.ts
5156
5158
  import { z as z180 } from "zod";
@@ -5166,25 +5168,34 @@ var DTOBrandCreateResponse = z180.object({
5166
5168
  });
5167
5169
  var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
5168
5170
 
5171
+ // src/api/dto/design-systems/component.ts
5172
+ import { z as z181 } from "zod";
5173
+ var DTODesignSystemComponentCreateInput = z181.object({
5174
+ brandId: z181.string(),
5175
+ // Persistent ID,
5176
+ persistentId: z181.string(),
5177
+ meta: ObjectMeta
5178
+ });
5179
+
5169
5180
  // src/api/dto/design-systems/contact.ts
5170
- import { z as z184 } from "zod";
5181
+ import { z as z185 } from "zod";
5171
5182
 
5172
5183
  // src/api/dto/users/authenticated-user.ts
5173
- import { z as z182 } from "zod";
5184
+ import { z as z183 } from "zod";
5174
5185
 
5175
5186
  // src/api/dto/users/user.ts
5176
- import { z as z181 } from "zod";
5177
- var DTOUserProfile = z181.object({
5178
- name: z181.string(),
5179
- nickname: z181.string().optional(),
5180
- avatar: z181.string().optional()
5181
- });
5182
- var DTOUser = z181.object({
5183
- id: z181.string(),
5184
- email: z181.string(),
5187
+ import { z as z182 } from "zod";
5188
+ var DTOUserProfile = z182.object({
5189
+ name: z182.string(),
5190
+ nickname: z182.string().optional(),
5191
+ avatar: z182.string().optional()
5192
+ });
5193
+ var DTOUser = z182.object({
5194
+ id: z182.string(),
5195
+ email: z182.string(),
5185
5196
  profile: DTOUserProfile
5186
5197
  });
5187
- var DTOUserGetResponse = z181.object({
5198
+ var DTOUserGetResponse = z182.object({
5188
5199
  user: DTOUser
5189
5200
  });
5190
5201
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5193,146 +5204,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
5193
5204
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5194
5205
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5195
5206
  var DTOUserSource = UserSource;
5196
- var DTOUserOnboarding = z182.object({
5197
- companyName: z182.string().optional(),
5198
- numberOfPeopleInOrg: z182.string().optional(),
5199
- numberOfPeopleInDesignTeam: z182.string().optional(),
5207
+ var DTOUserOnboarding = z183.object({
5208
+ companyName: z183.string().optional(),
5209
+ numberOfPeopleInOrg: z183.string().optional(),
5210
+ numberOfPeopleInDesignTeam: z183.string().optional(),
5200
5211
  department: DTOUserOnboardingDepartment.optional(),
5201
- jobTitle: z182.string().optional(),
5202
- phase: z182.string().optional(),
5212
+ jobTitle: z183.string().optional(),
5213
+ phase: z183.string().optional(),
5203
5214
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5204
- designSystemName: z182.string().optional(),
5205
- defaultDestination: z182.string().optional(),
5206
- isPageDraftOnboardingFinished: z182.boolean().optional()
5215
+ designSystemName: z183.string().optional(),
5216
+ defaultDestination: z183.string().optional(),
5217
+ isPageDraftOnboardingFinished: z183.boolean().optional()
5207
5218
  });
5208
5219
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5209
5220
  onboarding: DTOUserOnboarding.optional()
5210
5221
  });
5211
5222
  var DTOAuthenticatedUser = DTOUser.extend({
5212
5223
  profile: DTOAuthenticatedUserProfile,
5213
- createdAt: z182.coerce.date(),
5214
- loggedOutAt: z182.coerce.date().optional(),
5224
+ createdAt: z183.coerce.date(),
5225
+ loggedOutAt: z183.coerce.date().optional(),
5215
5226
  source: DTOUserSource.optional()
5216
5227
  });
5217
- var DTOAuthenticatedUserResponse = z182.object({
5228
+ var DTOAuthenticatedUserResponse = z183.object({
5218
5229
  user: DTOAuthenticatedUser
5219
5230
  });
5220
5231
 
5221
5232
  // src/api/dto/users/update.ts
5222
- import { z as z183 } from "zod";
5223
- var DTOUserProfileUpdateResponse = z183.object({
5233
+ import { z as z184 } from "zod";
5234
+ var DTOUserProfileUpdateResponse = z184.object({
5224
5235
  user: User
5225
5236
  });
5226
5237
 
5227
5238
  // src/api/dto/design-systems/contact.ts
5228
- var DTODesignSystemContactsResponse = z184.object({
5229
- contacts: z184.object({
5230
- workspace: z184.array(DTOUser),
5231
- designSystem: z184.array(DTOUser)
5239
+ var DTODesignSystemContactsResponse = z185.object({
5240
+ contacts: z185.object({
5241
+ workspace: z185.array(DTOUser),
5242
+ designSystem: z185.array(DTOUser)
5232
5243
  })
5233
5244
  });
5234
5245
 
5235
5246
  // src/api/dto/design-systems/data-source.ts
5236
- import { z as z185 } from "zod";
5237
- var DTODataSourceFigmaFileVersion = z185.object({
5238
- id: z185.string(),
5239
- created_at: z185.coerce.date(),
5240
- label: z185.string(),
5241
- description: z185.string()
5242
- });
5243
- var DTODataSourceFigmaCloud = z185.object({
5244
- fileId: z185.string(),
5247
+ import { z as z186 } from "zod";
5248
+ var DTODataSourceFigmaFileVersion = z186.object({
5249
+ id: z186.string(),
5250
+ created_at: z186.coerce.date(),
5251
+ label: z186.string(),
5252
+ description: z186.string()
5253
+ });
5254
+ var DTODataSourceFigmaCloud = z186.object({
5255
+ fileId: z186.string(),
5245
5256
  state: DataSourceFigmaState,
5246
5257
  autoImportMode: DataSourceAutoImportMode,
5247
- fileThumbnailUrl: z185.string().optional(),
5258
+ fileThumbnailUrl: z186.string().optional(),
5248
5259
  lastImportResult: SourceImportSummary.nullish(),
5249
- lastImportedAt: z185.coerce.date().nullish(),
5260
+ lastImportedAt: z186.coerce.date().nullish(),
5250
5261
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5251
- lastUpdatesCheckedAt: z185.date().nullish(),
5252
- ownerId: z185.string(),
5253
- ownerUserName: z185.string().optional(),
5254
- preferredCredentialId: z185.string().optional(),
5262
+ lastUpdatesCheckedAt: z186.date().nullish(),
5263
+ ownerId: z186.string(),
5264
+ ownerUserName: z186.string().optional(),
5265
+ preferredCredentialId: z186.string().optional(),
5255
5266
  stats: DataSourceStats
5256
5267
  });
5257
- var DTODataSourceFigma = z185.object({
5258
- id: z185.string(),
5259
- type: z185.literal(DataSourceRemoteType.Enum.Figma),
5260
- fileName: z185.string(),
5268
+ var DTODataSourceFigma = z186.object({
5269
+ id: z186.string(),
5270
+ type: z186.literal(DataSourceRemoteType.Enum.Figma),
5271
+ fileName: z186.string(),
5261
5272
  scope: DataSourceFigmaScope,
5262
- brandId: z185.string(),
5263
- themeId: z185.string().nullish(),
5273
+ brandId: z186.string(),
5274
+ themeId: z186.string().nullish(),
5264
5275
  cloud: DTODataSourceFigmaCloud.nullish()
5265
5276
  });
5266
- var DTODataSourceTokenStudio = z185.object({
5267
- id: z185.string(),
5268
- type: z185.literal(DataSourceRemoteType.Enum.TokenStudio),
5269
- fileName: z185.string(),
5270
- brandId: z185.string(),
5271
- themeId: z185.string().nullish(),
5272
- tokenStudio: z185.object({
5273
- settings: z185.object({
5274
- dryRun: z185.boolean(),
5275
- verbose: z185.boolean(),
5276
- preciseCopy: z185.boolean()
5277
+ var DTODataSourceTokenStudio = z186.object({
5278
+ id: z186.string(),
5279
+ type: z186.literal(DataSourceRemoteType.Enum.TokenStudio),
5280
+ fileName: z186.string(),
5281
+ brandId: z186.string(),
5282
+ themeId: z186.string().nullish(),
5283
+ tokenStudio: z186.object({
5284
+ settings: z186.object({
5285
+ dryRun: z186.boolean(),
5286
+ verbose: z186.boolean(),
5287
+ preciseCopy: z186.boolean()
5277
5288
  }),
5278
- connectionName: z185.string(),
5279
- lastImportedAt: z185.coerce.date(),
5280
- lastImportedResults: z185.array(
5281
- z185.object({
5282
- mapping: z185.object({
5283
- tokenSets: z185.array(z185.string()),
5284
- supernovaBrand: z185.string(),
5285
- supernovaTheme: z185.string().optional()
5289
+ connectionName: z186.string(),
5290
+ lastImportedAt: z186.coerce.date(),
5291
+ lastImportedResults: z186.array(
5292
+ z186.object({
5293
+ mapping: z186.object({
5294
+ tokenSets: z186.array(z186.string()),
5295
+ supernovaBrand: z186.string(),
5296
+ supernovaTheme: z186.string().optional()
5286
5297
  }),
5287
- isFailed: z185.boolean(),
5288
- tokensCreated: z185.number(),
5289
- tokensDeleted: z185.number(),
5290
- tokensUpdated: z185.number()
5298
+ isFailed: z186.boolean(),
5299
+ tokensCreated: z186.number(),
5300
+ tokensDeleted: z186.number(),
5301
+ tokensUpdated: z186.number()
5291
5302
  })
5292
5303
  )
5293
5304
  })
5294
5305
  });
5295
- var DTODataSourceFigmaVariablesPlugin = z185.object({
5296
- id: z185.string(),
5297
- type: z185.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5298
- fileName: z185.string(),
5299
- brandId: z185.string(),
5300
- upload: z185.object({
5301
- remoteId: z185.string(),
5306
+ var DTODataSourceFigmaVariablesPlugin = z186.object({
5307
+ id: z186.string(),
5308
+ type: z186.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5309
+ fileName: z186.string(),
5310
+ brandId: z186.string(),
5311
+ upload: z186.object({
5312
+ remoteId: z186.string(),
5302
5313
  remoteSourceType: DataSourceUploadRemoteSource,
5303
- lastImportedAt: z185.coerce.date().optional(),
5314
+ lastImportedAt: z186.coerce.date().optional(),
5304
5315
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5305
- isTokenTypeSplitEnabled: z185.boolean()
5316
+ isTokenTypeSplitEnabled: z186.boolean()
5306
5317
  }),
5307
- figmaVariablesPlugin: z185.object({
5308
- fileId: z185.string(),
5309
- lastImportedAt: z185.coerce.date().optional(),
5318
+ figmaVariablesPlugin: z186.object({
5319
+ fileId: z186.string(),
5320
+ lastImportedAt: z186.coerce.date().optional(),
5310
5321
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5311
- isTokenTypeSplitEnabled: z185.boolean(),
5312
- isCollectionsMigrationCompleted: z185.boolean().default(false)
5322
+ isTokenTypeSplitEnabled: z186.boolean(),
5323
+ isCollectionsMigrationCompleted: z186.boolean().default(false)
5313
5324
  })
5314
5325
  });
5315
- var DTODataSource = z185.discriminatedUnion("type", [
5326
+ var DTODataSource = z186.discriminatedUnion("type", [
5316
5327
  DTODataSourceFigma,
5317
5328
  DTODataSourceFigmaVariablesPlugin,
5318
5329
  DTODataSourceTokenStudio
5319
5330
  ]);
5320
- var DTODataSourcesListResponse = z185.object({
5321
- sources: z185.array(DTODataSource)
5331
+ var DTODataSourcesListResponse = z186.object({
5332
+ sources: z186.array(DTODataSource)
5322
5333
  });
5323
- var DTODataSourceCreationResponse = z185.object({
5334
+ var DTODataSourceCreationResponse = z186.object({
5324
5335
  source: DTODataSource
5325
5336
  });
5326
5337
 
5327
5338
  // src/api/dto/design-systems/design-system.ts
5328
- import { z as z188 } from "zod";
5339
+ import { z as z189 } from "zod";
5329
5340
 
5330
5341
  // src/api/dto/design-systems/members.ts
5331
- import { z as z187 } from "zod";
5342
+ import { z as z188 } from "zod";
5332
5343
 
5333
5344
  // src/api/dto/design-systems/role.ts
5334
- import { z as z186 } from "zod";
5335
- var DTODesignSystemRole = z186.enum([
5345
+ import { z as z187 } from "zod";
5346
+ var DTODesignSystemRole = z187.enum([
5336
5347
  WorkspaceRole.Admin,
5337
5348
  WorkspaceRole.Contributor,
5338
5349
  WorkspaceRole.Creator,
@@ -5340,29 +5351,29 @@ var DTODesignSystemRole = z186.enum([
5340
5351
  ]);
5341
5352
 
5342
5353
  // src/api/dto/design-systems/members.ts
5343
- var DTODesignSystemMember = z187.object({
5344
- userId: z187.string(),
5354
+ var DTODesignSystemMember = z188.object({
5355
+ userId: z188.string(),
5345
5356
  /**
5346
5357
  * Role that the member has in the design system,
5347
5358
  * undefined if set to inherit from workspace
5348
5359
  */
5349
5360
  designSystemRole: DTODesignSystemRole.optional()
5350
5361
  });
5351
- var DTODesignSystemInvitation = z187.object({
5352
- id: z187.string(),
5353
- workspaceInvitationId: z187.string(),
5362
+ var DTODesignSystemInvitation = z188.object({
5363
+ id: z188.string(),
5364
+ workspaceInvitationId: z188.string(),
5354
5365
  /**
5355
5366
  * Role that the invitation has in the design system,
5356
5367
  * undefined if set to inherit from workspace
5357
5368
  */
5358
5369
  designSystemRole: DTODesignSystemRole.optional()
5359
5370
  });
5360
- var DTODesignSystemMemberListResponse = z187.object({
5371
+ var DTODesignSystemMemberListResponse = z188.object({
5361
5372
  members: DTODesignSystemMember.array(),
5362
5373
  invitations: DTODesignSystemInvitation.array()
5363
5374
  });
5364
- var DTODesignSystemMembersUpdateResponse = z187.object({
5365
- ok: z187.literal(true)
5375
+ var DTODesignSystemMembersUpdateResponse = z188.object({
5376
+ ok: z188.literal(true)
5366
5377
  });
5367
5378
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5368
5379
 
@@ -5373,14 +5384,14 @@ var DTODesignSystem = DesignSystem.omit({
5373
5384
  docExporterId: true
5374
5385
  }).extend({
5375
5386
  meta: ObjectMeta,
5376
- docExporterId: z188.string(),
5377
- sources: z188.array(z188.any()),
5378
- isPublic: z188.literal(true),
5387
+ docExporterId: z189.string(),
5388
+ sources: z189.array(z189.any()),
5389
+ isPublic: z189.literal(true),
5379
5390
  /**
5380
5391
  * Whether or not user who is requesting the design system
5381
5392
  * has access to the design system's contents.
5382
5393
  */
5383
- isAvailableToUser: z188.boolean(),
5394
+ isAvailableToUser: z189.boolean(),
5384
5395
  /**
5385
5396
  * @deprecated
5386
5397
  */
@@ -5391,17 +5402,17 @@ var DTODesignSystem = DesignSystem.omit({
5391
5402
  */
5392
5403
  effectiveRole: DTODesignSystemRole.optional()
5393
5404
  });
5394
- var DTODesignSystemResponse = z188.object({
5405
+ var DTODesignSystemResponse = z189.object({
5395
5406
  designSystem: DTODesignSystem
5396
5407
  });
5397
- var DTODesignSystemsListResponse = z188.object({
5408
+ var DTODesignSystemsListResponse = z189.object({
5398
5409
  designSystems: DTODesignSystem.array()
5399
5410
  });
5400
- var DTODesignSystemCreateInput = z188.object({
5401
- workspaceId: z188.string(),
5411
+ var DTODesignSystemCreateInput = z189.object({
5412
+ workspaceId: z189.string(),
5402
5413
  meta: ObjectMeta.optional(),
5403
- name: z188.string().min(2).max(64).optional(),
5404
- description: z188.string().max(1024).optional(),
5414
+ name: z189.string().min(2).max(64).optional(),
5415
+ description: z189.string().max(1024).optional(),
5405
5416
  accessMode: DesignSystemAccessMode.optional(),
5406
5417
  invites: DTODesignSystemMembersUpdatePayload.pick({
5407
5418
  usersToInvite: true,
@@ -5411,25 +5422,25 @@ var DTODesignSystemCreateInput = z188.object({
5411
5422
  });
5412
5423
 
5413
5424
  // src/api/dto/design-systems/elements-diff.ts
5414
- import { z as z189 } from "zod";
5415
- var DTODiffCountBase = z189.object({
5416
- created: z189.number(),
5417
- updated: z189.number(),
5418
- deleted: z189.number()
5425
+ import { z as z190 } from "zod";
5426
+ var DTODiffCountBase = z190.object({
5427
+ created: z190.number(),
5428
+ updated: z190.number(),
5429
+ deleted: z190.number()
5419
5430
  });
5420
- var DTODesignElementsDataDiffResponse = z189.object({
5431
+ var DTODesignElementsDataDiffResponse = z190.object({
5421
5432
  tokens: DTODiffCountBase,
5422
5433
  assets: DTODiffCountBase
5423
5434
  });
5424
5435
 
5425
5436
  // src/api/dto/design-systems/exporter-property.ts
5426
- import { z as z190 } from "zod";
5427
- var DTOExporterProperty = z190.any({});
5428
- var DTOExporterPropertyListResponse = z190.object({ items: z190.array(DTOExporterProperty) });
5437
+ import { z as z191 } from "zod";
5438
+ var DTOExporterProperty = z191.any({});
5439
+ var DTOExporterPropertyListResponse = z191.object({ items: z191.array(DTOExporterProperty) });
5429
5440
 
5430
5441
  // src/api/dto/design-systems/figma-variables.ts
5431
- import { z as z191 } from "zod";
5432
- var DimensionsVariableScopeSchema = z191.enum([
5442
+ import { z as z192 } from "zod";
5443
+ var DimensionsVariableScopeSchema = z192.enum([
5433
5444
  "CORNER_RADIUS",
5434
5445
  "WIDTH_HEIGHT",
5435
5446
  "GAP",
@@ -5443,130 +5454,130 @@ var DimensionsVariableScopeSchema = z191.enum([
5443
5454
  "PARAGRAPH_INDENT",
5444
5455
  "FONT_WEIGHT"
5445
5456
  ]);
5446
- var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5457
+ var StringVariableScopeSchema = z192.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5447
5458
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5448
5459
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5449
- var VariableScope = z191.string();
5450
- var ReferencedVariableOrigin = z191.object({
5451
- name: z191.string(),
5452
- remote: z191.boolean()
5460
+ var VariableScope = z192.string();
5461
+ var ReferencedVariableOrigin = z192.object({
5462
+ name: z192.string(),
5463
+ remote: z192.boolean()
5453
5464
  });
5454
- var RGB = z191.object({
5455
- r: z191.number(),
5456
- g: z191.number(),
5457
- b: z191.number()
5465
+ var RGB = z192.object({
5466
+ r: z192.number(),
5467
+ g: z192.number(),
5468
+ b: z192.number()
5458
5469
  });
5459
5470
  var RGBA = RGB.extend({
5460
- a: z191.number()
5461
- });
5462
- var VariableAlias = z191.object({
5463
- type: z191.literal("VARIABLE_ALIAS"),
5464
- id: z191.string(),
5465
- resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
5466
- referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
5467
- });
5468
- var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
5469
- var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5470
- var Variable = z191.object({
5471
- id: z191.string(),
5472
- name: z191.string(),
5473
- key: z191.string(),
5474
- variableCollectionId: z191.string(),
5471
+ a: z192.number()
5472
+ });
5473
+ var VariableAlias = z192.object({
5474
+ type: z192.literal("VARIABLE_ALIAS"),
5475
+ id: z192.string(),
5476
+ resolvedValue: z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).optional(),
5477
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z192.null())
5478
+ });
5479
+ var VariableValue = z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).or(VariableAlias);
5480
+ var ResolvedVariableType = z192.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5481
+ var Variable = z192.object({
5482
+ id: z192.string(),
5483
+ name: z192.string(),
5484
+ key: z192.string(),
5485
+ variableCollectionId: z192.string(),
5475
5486
  resolvedType: ResolvedVariableType,
5476
- valuesByMode: z191.record(VariableValue),
5477
- remote: z191.boolean(),
5478
- description: z191.string(),
5479
- hiddenFromPublishing: z191.boolean(),
5480
- scopes: z191.array(VariableScope),
5481
- codeSyntax: z191.record(z191.any()).optional()
5482
- });
5483
- var VariableMode = z191.object({
5484
- modeId: z191.string(),
5485
- name: z191.string()
5486
- });
5487
- var Collection2 = z191.object({
5488
- id: z191.string(),
5489
- name: z191.string(),
5490
- modes: z191.array(VariableMode),
5491
- defaultModeId: z191.string(),
5492
- remote: z191.boolean(),
5493
- hiddenFromPublishing: z191.boolean()
5494
- });
5495
- var VariablesMapping = z191.object({
5496
- variableCollections: z191.array(z191.string()).min(1),
5497
- variableMode: z191.string().min(1),
5498
- supernovaBrand: z191.string().min(1),
5499
- supernovaTheme: z191.string().min(1).optional().or(z191.null())
5500
- });
5501
- var FormattedCollections = z191.object({
5502
- variables: z191.record(z191.string(), Variable),
5503
- variableCollections: z191.record(z191.string(), Collection2),
5504
- mappings: z191.array(VariablesMapping).optional(),
5505
- variablesOrder: z191.string().array().optional()
5487
+ valuesByMode: z192.record(VariableValue),
5488
+ remote: z192.boolean(),
5489
+ description: z192.string(),
5490
+ hiddenFromPublishing: z192.boolean(),
5491
+ scopes: z192.array(VariableScope),
5492
+ codeSyntax: z192.record(z192.any()).optional()
5493
+ });
5494
+ var VariableMode = z192.object({
5495
+ modeId: z192.string(),
5496
+ name: z192.string()
5497
+ });
5498
+ var Collection2 = z192.object({
5499
+ id: z192.string(),
5500
+ name: z192.string(),
5501
+ modes: z192.array(VariableMode),
5502
+ defaultModeId: z192.string(),
5503
+ remote: z192.boolean(),
5504
+ hiddenFromPublishing: z192.boolean()
5505
+ });
5506
+ var VariablesMapping = z192.object({
5507
+ variableCollections: z192.array(z192.string()).min(1),
5508
+ variableMode: z192.string().min(1),
5509
+ supernovaBrand: z192.string().min(1),
5510
+ supernovaTheme: z192.string().min(1).optional().or(z192.null())
5511
+ });
5512
+ var FormattedCollections = z192.object({
5513
+ variables: z192.record(z192.string(), Variable),
5514
+ variableCollections: z192.record(z192.string(), Collection2),
5515
+ mappings: z192.array(VariablesMapping).optional(),
5516
+ variablesOrder: z192.string().array().optional()
5506
5517
  });
5507
5518
 
5508
5519
  // src/api/dto/design-systems/import-job.ts
5509
- import { z as z192 } from "zod";
5510
- var DTOImportJob = z192.object({
5511
- id: z192.string(),
5512
- designSystemId: z192.string(),
5513
- designSystemVersionId: z192.string(),
5514
- operation: z192.literal("Import"),
5515
- createdAt: z192.coerce.date(),
5516
- stateChangedAt: z192.coerce.date(),
5520
+ import { z as z193 } from "zod";
5521
+ var DTOImportJob = z193.object({
5522
+ id: z193.string(),
5523
+ designSystemId: z193.string(),
5524
+ designSystemVersionId: z193.string(),
5525
+ operation: z193.literal("Import"),
5526
+ createdAt: z193.coerce.date(),
5527
+ stateChangedAt: z193.coerce.date(),
5517
5528
  state: ImportJobState,
5518
- sourceIds: z192.string().array()
5529
+ sourceIds: z193.string().array()
5519
5530
  });
5520
- var DTOImportJobResponse = z192.object({
5531
+ var DTOImportJobResponse = z193.object({
5521
5532
  job: DTOImportJob
5522
5533
  });
5523
- var DTOBffFigmaImportRequestBody = z192.object({
5524
- type: z192.literal(DataSourceRemoteType.Enum.Figma),
5525
- brandPersistentId: z192.string().optional(),
5526
- fileId: z192.string(),
5534
+ var DTOBffFigmaImportRequestBody = z193.object({
5535
+ type: z193.literal(DataSourceRemoteType.Enum.Figma),
5536
+ brandPersistentId: z193.string().optional(),
5537
+ fileId: z193.string(),
5527
5538
  scope: DataSourceFigmaScope,
5528
5539
  autoImportMode: DataSourceAutoImportMode
5529
5540
  });
5530
- var DTOBffUploadImportRequestBody = z192.object({
5531
- type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5532
- brandPersistentId: z192.string().optional(),
5533
- sourceName: z192.string().optional(),
5534
- remoteId: z192.string(),
5535
- isTokenTypeSplitEnabled: z192.boolean().optional(),
5536
- payload: z192.any()
5541
+ var DTOBffUploadImportRequestBody = z193.object({
5542
+ type: z193.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5543
+ brandPersistentId: z193.string().optional(),
5544
+ sourceName: z193.string().optional(),
5545
+ remoteId: z193.string(),
5546
+ isTokenTypeSplitEnabled: z193.boolean().optional(),
5547
+ payload: z193.any()
5537
5548
  });
5538
- var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
5549
+ var DTOBffImportRequestBody = z193.discriminatedUnion("type", [
5539
5550
  DTOBffFigmaImportRequestBody,
5540
5551
  DTOBffUploadImportRequestBody
5541
5552
  ]);
5542
5553
 
5543
5554
  // src/api/dto/design-systems/stats.ts
5544
- import { z as z193 } from "zod";
5545
- var DTODesignSystemVersionStats = z193.object({
5546
- tokens: z193.number(),
5547
- designSystemComponents: z193.number(),
5548
- assets: z193.number(),
5549
- documentationPages: z193.number()
5555
+ import { z as z194 } from "zod";
5556
+ var DTODesignSystemVersionStats = z194.object({
5557
+ tokens: z194.number(),
5558
+ designSystemComponents: z194.number(),
5559
+ assets: z194.number(),
5560
+ documentationPages: z194.number()
5550
5561
  });
5551
- var DTODesignSystemVersionStatsQuery = z193.object({
5552
- brandId: z193.string().optional()
5562
+ var DTODesignSystemVersionStatsQuery = z194.object({
5563
+ brandId: z194.string().optional()
5553
5564
  });
5554
5565
 
5555
5566
  // src/api/dto/design-systems/version.ts
5556
- import { z as z204 } from "zod";
5567
+ import { z as z205 } from "zod";
5557
5568
 
5558
5569
  // src/api/payloads/design-systems/brand.ts
5559
- import { z as z194 } from "zod";
5560
- var DTOCreateBrandInput = z194.object({
5561
- persistentId: z194.string().uuid(),
5562
- meta: z194.object({
5563
- name: z194.string(),
5564
- description: z194.string()
5570
+ import { z as z195 } from "zod";
5571
+ var DTOCreateBrandInput = z195.object({
5572
+ persistentId: z195.string().uuid(),
5573
+ meta: z195.object({
5574
+ name: z195.string(),
5575
+ description: z195.string()
5565
5576
  })
5566
5577
  });
5567
5578
 
5568
5579
  // src/api/payloads/design-systems/update-design-system.ts
5569
- import { z as z195 } from "zod";
5580
+ import { z as z196 } from "zod";
5570
5581
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5571
5582
  id: true,
5572
5583
  workspaceId: true,
@@ -5578,40 +5589,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5578
5589
  }).extend({
5579
5590
  meta: ObjectMeta.partial().optional()
5580
5591
  });
5581
- var DTODesignSystemUpdateAccessModeInput = z195.object({
5592
+ var DTODesignSystemUpdateAccessModeInput = z196.object({
5582
5593
  accessMode: DesignSystemAccessMode,
5583
- retain: z195.object({
5584
- userIds: z195.string().array(),
5585
- inviteIds: z195.string().array()
5594
+ retain: z196.object({
5595
+ userIds: z196.string().array(),
5596
+ inviteIds: z196.string().array()
5586
5597
  }).optional()
5587
5598
  });
5588
5599
 
5589
5600
  // src/api/payloads/design-systems/version.ts
5590
- import { z as z196 } from "zod";
5591
- var ObjectMeta2 = z196.object({
5592
- name: z196.string().max(150).optional(),
5593
- description: z196.string().max(2e3).optional()
5601
+ import { z as z197 } from "zod";
5602
+ var ObjectMeta2 = z197.object({
5603
+ name: z197.string().max(150).optional(),
5604
+ description: z197.string().max(2e3).optional()
5594
5605
  });
5595
5606
  function validateDesignSystemVersion(version) {
5596
5607
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5597
5608
  return urlCompliantRegex.test(version);
5598
5609
  }
5599
- var DTOCreateVersionInput = z196.object({
5610
+ var DTOCreateVersionInput = z197.object({
5600
5611
  meta: ObjectMeta2,
5601
- version: z196.string().refine(validateDesignSystemVersion, {
5612
+ version: z197.string().refine(validateDesignSystemVersion, {
5602
5613
  message: "Invalid semantic versioning format"
5603
5614
  }),
5604
- changeLog: z196.string().optional()
5615
+ changeLog: z197.string().optional()
5605
5616
  });
5606
- var DTOUpdateVersionInput = z196.object({
5617
+ var DTOUpdateVersionInput = z197.object({
5607
5618
  meta: ObjectMeta2,
5608
- version: z196.string(),
5619
+ version: z197.string(),
5609
5620
  // required for PUT, but not editable
5610
- changeLog: z196.string()
5621
+ changeLog: z197.string()
5611
5622
  });
5612
5623
 
5613
5624
  // src/api/payloads/documentation/block-definitions.ts
5614
- import { z as z197 } from "zod";
5625
+ import { z as z198 } from "zod";
5615
5626
 
5616
5627
  // src/api/dto/documentation/block-definition.ts
5617
5628
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5623,60 +5634,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5623
5634
  var DTOPageBlockDefinition = PageBlockDefinition;
5624
5635
 
5625
5636
  // src/api/payloads/documentation/block-definitions.ts
5626
- var DTOGetBlockDefinitionsOutput = z197.object({
5627
- definitions: z197.array(DTOPageBlockDefinition)
5637
+ var DTOGetBlockDefinitionsOutput = z198.object({
5638
+ definitions: z198.array(DTOPageBlockDefinition)
5628
5639
  });
5629
5640
 
5630
5641
  // src/api/payloads/documentation/design-data-doc-diff.ts
5631
- import { z as z198 } from "zod";
5632
- var DTODocumentationPublishTypeQueryParams = z198.object({
5633
- environment: z198.enum(["Live", "Preview"])
5642
+ import { z as z199 } from "zod";
5643
+ var DTODocumentationPublishTypeQueryParams = z199.object({
5644
+ environment: z199.enum(["Live", "Preview"])
5634
5645
  });
5635
5646
 
5636
5647
  // src/api/payloads/export/pipeline.ts
5637
- import { z as z199 } from "zod";
5638
- var DTOPipelineCreateBody = z199.object({
5639
- name: z199.string(),
5640
- exporterId: z199.string(),
5641
- designSystemId: z199.string(),
5642
- isEnabled: z199.boolean(),
5648
+ import { z as z200 } from "zod";
5649
+ var DTOPipelineCreateBody = z200.object({
5650
+ name: z200.string(),
5651
+ exporterId: z200.string(),
5652
+ designSystemId: z200.string(),
5653
+ isEnabled: z200.boolean(),
5643
5654
  eventType: PipelineEventType,
5644
- brandPersistentId: z199.string().optional(),
5645
- themePersistentId: z199.string().optional(),
5646
- themePersistentIds: z199.string().array().optional(),
5655
+ brandPersistentId: z200.string().optional(),
5656
+ themePersistentId: z200.string().optional(),
5657
+ themePersistentIds: z200.string().array().optional(),
5647
5658
  destination: PipelineDestinationType.optional(),
5648
5659
  gitQuery: GitObjectsQuery,
5649
- destinations: z199.object({
5660
+ destinations: z200.object({
5650
5661
  s3: ExporterDestinationS3.nullish(),
5651
5662
  azure: ExporterDestinationAzure.nullish(),
5652
5663
  bitbucket: ExporterDestinationBitbucket.nullish(),
5653
5664
  github: ExporterDestinationGithub.nullish(),
5654
5665
  gitlab: ExporterDestinationGitlab.nullish(),
5655
5666
  documentation: ExporterDestinationDocs.nullish(),
5656
- webhookUrl: z199.string().nullish()
5667
+ webhookUrl: z200.string().nullish()
5657
5668
  })
5658
5669
  });
5659
5670
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5660
- id: z199.string()
5671
+ id: z200.string()
5661
5672
  });
5662
- var DTOPipelineTriggerBody = z199.object({
5663
- designSystemVersionId: z199.string()
5673
+ var DTOPipelineTriggerBody = z200.object({
5674
+ designSystemVersionId: z200.string()
5664
5675
  });
5665
5676
 
5666
5677
  // src/api/payloads/liveblocks/auth.ts
5667
- import { z as z200 } from "zod";
5668
- var DTOLiveblocksAuthRequest = z200.object({
5669
- room: z200.string().optional()
5678
+ import { z as z201 } from "zod";
5679
+ var DTOLiveblocksAuthRequest = z201.object({
5680
+ room: z201.string().optional()
5670
5681
  });
5671
5682
 
5672
5683
  // src/api/payloads/users/notifications/notification-settings.ts
5673
- import { z as z201 } from "zod";
5674
- var DTOUpdateUserNotificationSettingsPayload = z201.object({
5684
+ import { z as z202 } from "zod";
5685
+ var DTOUpdateUserNotificationSettingsPayload = z202.object({
5675
5686
  notificationSettings: UserNotificationSettings
5676
5687
  });
5677
- var DTOUserNotificationSettingsResponse = z201.object({
5678
- userId: z201.string(),
5679
- workspaceId: z201.string(),
5688
+ var DTOUserNotificationSettingsResponse = z202.object({
5689
+ userId: z202.string(),
5690
+ workspaceId: z202.string(),
5680
5691
  notificationSettings: UserNotificationSettings
5681
5692
  });
5682
5693
 
@@ -5684,7 +5695,7 @@ var DTOUserNotificationSettingsResponse = z201.object({
5684
5695
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5685
5696
 
5686
5697
  // src/api/payloads/workspaces/workspace-configuration.ts
5687
- import { z as z202 } from "zod";
5698
+ import { z as z203 } from "zod";
5688
5699
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5689
5700
  function validateSsoPayload(ssoPayload) {
5690
5701
  const keys = [];
@@ -5707,21 +5718,21 @@ function validateSsoPayload(ssoPayload) {
5707
5718
  keys
5708
5719
  };
5709
5720
  }
5710
- var NpmRegistryInput = z202.object({
5711
- enabledScopes: z202.array(z202.string()),
5712
- customRegistryUrl: z202.string().optional(),
5713
- bypassProxy: z202.boolean().optional(),
5714
- npmProxyRegistryConfigId: z202.string().optional(),
5715
- npmProxyVersion: z202.number().optional(),
5716
- registryType: z202.string(),
5717
- authType: z202.string(),
5718
- authHeaderName: z202.string(),
5719
- authHeaderValue: z202.string(),
5720
- accessToken: z202.string(),
5721
- username: z202.string(),
5722
- password: z202.string()
5723
- });
5724
- var WorkspaceConfigurationPayload = z202.object({
5721
+ var NpmRegistryInput = z203.object({
5722
+ enabledScopes: z203.array(z203.string()),
5723
+ customRegistryUrl: z203.string().optional(),
5724
+ bypassProxy: z203.boolean().optional(),
5725
+ npmProxyRegistryConfigId: z203.string().optional(),
5726
+ npmProxyVersion: z203.number().optional(),
5727
+ registryType: z203.string(),
5728
+ authType: z203.string(),
5729
+ authHeaderName: z203.string(),
5730
+ authHeaderValue: z203.string(),
5731
+ accessToken: z203.string(),
5732
+ username: z203.string(),
5733
+ password: z203.string()
5734
+ });
5735
+ var WorkspaceConfigurationPayload = z203.object({
5725
5736
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5726
5737
  sso: SsoProvider.partial().optional(),
5727
5738
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5729,218 +5740,218 @@ var WorkspaceConfigurationPayload = z202.object({
5729
5740
  });
5730
5741
 
5731
5742
  // src/api/payloads/workspaces/workspace-integrations.ts
5732
- import { z as z203 } from "zod";
5733
- var DTOWorkspaceIntegrationOauthInput = z203.object({
5743
+ import { z as z204 } from "zod";
5744
+ var DTOWorkspaceIntegrationOauthInput = z204.object({
5734
5745
  type: IntegrationType
5735
5746
  });
5736
- var DTOWorkspaceIntegrationPATInput = z203.object({
5737
- userId: z203.string(),
5747
+ var DTOWorkspaceIntegrationPATInput = z204.object({
5748
+ userId: z204.string(),
5738
5749
  type: IntegrationType,
5739
5750
  token: IntegrationToken
5740
5751
  });
5741
- var DTOWorkspaceIntegrationGetGitObjectsInput = z203.object({
5742
- organization: z203.string().optional(),
5752
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z204.object({
5753
+ organization: z204.string().optional(),
5743
5754
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5744
- project: z203.string().optional(),
5755
+ project: z204.string().optional(),
5745
5756
  // Only for Bitbucket and Azure
5746
- repository: z203.string().optional(),
5757
+ repository: z204.string().optional(),
5747
5758
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5748
- branch: z203.string().optional(),
5759
+ branch: z204.string().optional(),
5749
5760
  // For all providers, useful for PR creations.
5750
- user: z203.string().optional()
5761
+ user: z204.string().optional()
5751
5762
  // Only for Gitlab User Repositories
5752
5763
  });
5753
5764
 
5754
5765
  // src/api/dto/design-systems/version.ts
5755
- var DTODesignSystemVersion = z204.object({
5756
- id: z204.string(),
5757
- createdAt: z204.coerce.date(),
5766
+ var DTODesignSystemVersion = z205.object({
5767
+ id: z205.string(),
5768
+ createdAt: z205.coerce.date(),
5758
5769
  meta: ObjectMeta,
5759
- version: z204.string(),
5760
- isReadonly: z204.boolean(),
5761
- changeLog: z204.string(),
5762
- designSystemId: z204.string()
5770
+ version: z205.string(),
5771
+ isReadonly: z205.boolean(),
5772
+ changeLog: z205.string(),
5773
+ designSystemId: z205.string()
5763
5774
  });
5764
- var DTODesignSystemVersionsListResponse = z204.object({
5765
- designSystemVersions: z204.array(DTODesignSystemVersion)
5775
+ var DTODesignSystemVersionsListResponse = z205.object({
5776
+ designSystemVersions: z205.array(DTODesignSystemVersion)
5766
5777
  });
5767
- var DTODesignSystemVersionGetResponse = z204.object({
5778
+ var DTODesignSystemVersionGetResponse = z205.object({
5768
5779
  designSystemVersion: DTODesignSystemVersion
5769
5780
  });
5770
- var DTODesignSystemVersionCreationResponse = z204.object({
5781
+ var DTODesignSystemVersionCreationResponse = z205.object({
5771
5782
  meta: ObjectMeta,
5772
- version: z204.string(),
5773
- changeLog: z204.string(),
5774
- isReadOnly: z204.boolean(),
5775
- designSystemId: z204.string(),
5776
- jobId: z204.string()
5777
- });
5778
- var VersionSQSPayload = z204.object({
5779
- jobId: z204.string(),
5780
- designSystemId: z204.string(),
5783
+ version: z205.string(),
5784
+ changeLog: z205.string(),
5785
+ isReadOnly: z205.boolean(),
5786
+ designSystemId: z205.string(),
5787
+ jobId: z205.string()
5788
+ });
5789
+ var VersionSQSPayload = z205.object({
5790
+ jobId: z205.string(),
5791
+ designSystemId: z205.string(),
5781
5792
  input: DTOCreateVersionInput
5782
5793
  });
5783
- var DTODesignSystemVersionJobsResponse = z204.object({
5784
- jobs: z204.array(VersionCreationJob)
5794
+ var DTODesignSystemVersionJobsResponse = z205.object({
5795
+ jobs: z205.array(VersionCreationJob)
5785
5796
  });
5786
- var DTODesignSystemVersionJobStatusResponse = z204.object({
5797
+ var DTODesignSystemVersionJobStatusResponse = z205.object({
5787
5798
  job: VersionCreationJob
5788
5799
  });
5789
5800
 
5790
5801
  // src/api/dto/design-systems/view.ts
5791
- import { z as z205 } from "zod";
5792
- var DTOElementViewColumnSharedAttributes = z205.object({
5793
- id: z205.string(),
5794
- persistentId: z205.string(),
5795
- width: z205.number()
5802
+ import { z as z206 } from "zod";
5803
+ var DTOElementViewColumnSharedAttributes = z206.object({
5804
+ id: z206.string(),
5805
+ persistentId: z206.string(),
5806
+ width: z206.number()
5796
5807
  });
5797
5808
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5798
- type: z205.literal("BaseProperty"),
5809
+ type: z206.literal("BaseProperty"),
5799
5810
  basePropertyType: ElementViewBaseColumnType
5800
5811
  });
5801
5812
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5802
- type: z205.literal("PropertyDefinition"),
5803
- propertyDefinitionId: z205.string()
5813
+ type: z206.literal("PropertyDefinition"),
5814
+ propertyDefinitionId: z206.string()
5804
5815
  });
5805
5816
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5806
- type: z205.literal("Theme"),
5807
- themeId: z205.string()
5817
+ type: z206.literal("Theme"),
5818
+ themeId: z206.string()
5808
5819
  });
5809
- var DTOElementViewColumn = z205.discriminatedUnion("type", [
5820
+ var DTOElementViewColumn = z206.discriminatedUnion("type", [
5810
5821
  DTOElementViewBasePropertyColumn,
5811
5822
  DTOElementViewPropertyDefinitionColumn,
5812
5823
  DTOElementViewThemeColumn
5813
5824
  ]);
5814
- var DTOElementView = z205.object({
5825
+ var DTOElementView = z206.object({
5815
5826
  meta: ObjectMeta,
5816
- persistentId: z205.string(),
5827
+ persistentId: z206.string(),
5817
5828
  targetElementType: ElementPropertyTargetType,
5818
- id: z205.string(),
5819
- isDefault: z205.boolean(),
5820
- columns: z205.array(DTOElementViewColumn)
5829
+ id: z206.string(),
5830
+ isDefault: z206.boolean(),
5831
+ columns: z206.array(DTOElementViewColumn)
5821
5832
  });
5822
- var DTOElementViewsListResponse = z205.object({
5823
- elementDataViews: z205.array(DTOElementView)
5833
+ var DTOElementViewsListResponse = z206.object({
5834
+ elementDataViews: z206.array(DTOElementView)
5824
5835
  });
5825
5836
 
5826
5837
  // src/api/dto/workspaces/git.ts
5827
- import { z as z206 } from "zod";
5828
- var DTOGitOrganization = z206.object({
5829
- id: z206.string(),
5830
- name: z206.string(),
5831
- url: z206.string(),
5832
- slug: z206.string()
5838
+ import { z as z207 } from "zod";
5839
+ var DTOGitOrganization = z207.object({
5840
+ id: z207.string(),
5841
+ name: z207.string(),
5842
+ url: z207.string(),
5843
+ slug: z207.string()
5833
5844
  });
5834
- var DTOGitProject = z206.object({
5835
- id: z206.string(),
5836
- name: z206.string(),
5837
- url: z206.string(),
5838
- slug: z206.string()
5845
+ var DTOGitProject = z207.object({
5846
+ id: z207.string(),
5847
+ name: z207.string(),
5848
+ url: z207.string(),
5849
+ slug: z207.string()
5839
5850
  });
5840
- var DTOGitRepository = z206.object({
5841
- id: z206.string(),
5842
- name: z206.string(),
5843
- url: z206.string(),
5844
- slug: z206.string(),
5845
- defaultBranch: z206.string().optional()
5851
+ var DTOGitRepository = z207.object({
5852
+ id: z207.string(),
5853
+ name: z207.string(),
5854
+ url: z207.string(),
5855
+ slug: z207.string(),
5856
+ defaultBranch: z207.string().optional()
5846
5857
  });
5847
- var DTOGitBranch = z206.object({
5848
- name: z206.string(),
5849
- lastCommitId: z206.string()
5858
+ var DTOGitBranch = z207.object({
5859
+ name: z207.string(),
5860
+ lastCommitId: z207.string()
5850
5861
  });
5851
5862
 
5852
5863
  // src/api/dto/workspaces/integrations.ts
5853
- import { z as z207 } from "zod";
5864
+ import { z as z208 } from "zod";
5854
5865
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5855
5866
  accessToken: true,
5856
5867
  refreshToken: true
5857
5868
  });
5858
- var DTOIntegration = z207.object({
5859
- id: z207.string(),
5860
- workspaceId: z207.string(),
5869
+ var DTOIntegration = z208.object({
5870
+ id: z208.string(),
5871
+ workspaceId: z208.string(),
5861
5872
  type: ExtendedIntegrationType,
5862
- createdAt: z207.coerce.date(),
5863
- integrationCredentials: z207.array(DTOIntegrationCredentials).optional(),
5864
- integrationDesignSystems: z207.array(IntegrationDesignSystem).optional()
5873
+ createdAt: z208.coerce.date(),
5874
+ integrationCredentials: z208.array(DTOIntegrationCredentials).optional(),
5875
+ integrationDesignSystems: z208.array(IntegrationDesignSystem).optional()
5865
5876
  });
5866
- var DTOIntegrationOAuthGetResponse = z207.object({
5867
- url: z207.string()
5877
+ var DTOIntegrationOAuthGetResponse = z208.object({
5878
+ url: z208.string()
5868
5879
  });
5869
- var DTOIntegrationPostResponse = z207.object({
5880
+ var DTOIntegrationPostResponse = z208.object({
5870
5881
  integration: DTOIntegration
5871
5882
  });
5872
- var DTOIntegrationsGetListResponse = z207.object({
5883
+ var DTOIntegrationsGetListResponse = z208.object({
5873
5884
  integrations: DTOIntegration.array()
5874
5885
  });
5875
5886
 
5876
5887
  // src/api/dto/workspaces/invitations.ts
5877
- import { z as z208 } from "zod";
5878
- var DTOWorkspaceInvitationInput = z208.object({
5879
- email: z208.string().email(),
5888
+ import { z as z209 } from "zod";
5889
+ var DTOWorkspaceInvitationInput = z209.object({
5890
+ email: z209.string().email(),
5880
5891
  role: WorkspaceRoleSchema
5881
5892
  });
5882
- var DTOWorkspaceInvitationsListInput = z208.object({
5893
+ var DTOWorkspaceInvitationsListInput = z209.object({
5883
5894
  invites: DTOWorkspaceInvitationInput.array().max(100),
5884
- designSystemId: z208.string().optional()
5895
+ designSystemId: z209.string().optional()
5885
5896
  });
5886
- var DTOWorkspaceInvitationsResponse = z208.object({
5897
+ var DTOWorkspaceInvitationsResponse = z209.object({
5887
5898
  invitations: WorkspaceInvitation.array()
5888
5899
  });
5889
- var DTOWorkspaceInviteUpdate = z208.object({
5900
+ var DTOWorkspaceInviteUpdate = z209.object({
5890
5901
  role: WorkspaceRoleSchema
5891
5902
  });
5892
- var DTOWorkspaceInvitationUpdateResponse = z208.object({
5903
+ var DTOWorkspaceInvitationUpdateResponse = z209.object({
5893
5904
  invitation: WorkspaceInvitation
5894
5905
  });
5895
5906
 
5896
5907
  // src/api/dto/workspaces/membership.ts
5897
- import { z as z211 } from "zod";
5908
+ import { z as z212 } from "zod";
5898
5909
 
5899
5910
  // src/api/dto/workspaces/workspace.ts
5900
- import { z as z210 } from "zod";
5911
+ import { z as z211 } from "zod";
5901
5912
 
5902
5913
  // src/api/dto/workspaces/npm-registry.ts
5903
- import { z as z209 } from "zod";
5914
+ import { z as z210 } from "zod";
5904
5915
  var DTONpmRegistryConfigConstants = {
5905
5916
  passwordPlaceholder: "redacted"
5906
5917
  };
5907
- var DTONpmRegistryConfig = z209.object({
5918
+ var DTONpmRegistryConfig = z210.object({
5908
5919
  // Registry basic configuration
5909
5920
  registryType: NpmRegistryType,
5910
- registryUrl: z209.string(),
5911
- customRegistryUrl: z209.string().optional(),
5921
+ registryUrl: z210.string(),
5922
+ customRegistryUrl: z210.string().optional(),
5912
5923
  // URL of Supernova NPM packages proxy
5913
- proxyUrl: z209.string(),
5924
+ proxyUrl: z210.string(),
5914
5925
  // Auth configuration
5915
5926
  authType: NpmRegistryAuthType,
5916
- accessToken: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5917
- username: z209.string().optional(),
5918
- password: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5927
+ accessToken: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5928
+ username: z210.string().optional(),
5929
+ password: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5919
5930
  // NPM package scopes for whih the proxy should be enabled
5920
- enabledScopes: z209.array(z209.string()),
5931
+ enabledScopes: z210.array(z210.string()),
5921
5932
  // True if client should bypass Supernova proxy and connect directly to the registry
5922
5933
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5923
- bypassProxy: z209.boolean()
5934
+ bypassProxy: z210.boolean()
5924
5935
  });
5925
5936
 
5926
5937
  // src/api/dto/workspaces/workspace.ts
5927
5938
  var DTOWorkspaceProfile = WorkspaceProfile;
5928
- var DTOWorkspace = z210.object({
5929
- id: z210.string(),
5939
+ var DTOWorkspace = z211.object({
5940
+ id: z211.string(),
5930
5941
  profile: DTOWorkspaceProfile,
5931
5942
  subscription: Subscription,
5932
5943
  npmRegistry: DTONpmRegistryConfig.optional()
5933
5944
  });
5934
- var DTOWorkspaceCreateInput = z210.object({
5935
- name: z210.string()
5945
+ var DTOWorkspaceCreateInput = z211.object({
5946
+ name: z211.string()
5936
5947
  });
5937
- var DTOWorkspaceResponse = z210.object({
5948
+ var DTOWorkspaceResponse = z211.object({
5938
5949
  workspace: DTOWorkspace
5939
5950
  });
5940
5951
 
5941
5952
  // src/api/dto/workspaces/membership.ts
5942
- var DTOWorkspaceRole = z211.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5943
- var DTOUserWorkspaceMembership = z211.object({
5953
+ var DTOWorkspaceRole = z212.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5954
+ var DTOUserWorkspaceMembership = z212.object({
5944
5955
  // Workspace the user is a member of
5945
5956
  workspace: DTOWorkspace,
5946
5957
  // Assigned role the user has in the workspace
@@ -5950,26 +5961,26 @@ var DTOUserWorkspaceMembership = z211.object({
5950
5961
  // when a workspace's subscription is downgraded to free tier
5951
5962
  effectiveRole: DTOWorkspaceRole
5952
5963
  });
5953
- var DTOWorkspaceMember = z211.object({
5964
+ var DTOWorkspaceMember = z212.object({
5954
5965
  user: User,
5955
5966
  role: WorkspaceRoleSchema,
5956
5967
  effectiveRole: WorkspaceRoleSchema
5957
5968
  });
5958
- var DTOUserWorkspaceMembershipsResponse = z211.object({
5959
- membership: z211.array(DTOUserWorkspaceMembership)
5969
+ var DTOUserWorkspaceMembershipsResponse = z212.object({
5970
+ membership: z212.array(DTOUserWorkspaceMembership)
5960
5971
  });
5961
- var DTOWorkspaceMembersListResponse = z211.object({
5962
- members: z211.array(DTOWorkspaceMember)
5972
+ var DTOWorkspaceMembersListResponse = z212.object({
5973
+ members: z212.array(DTOWorkspaceMember)
5963
5974
  });
5964
5975
 
5965
5976
  // src/api/dto/bff/app-bootstrap-data.ts
5966
- var DTOAppBootstrapDataQuery = z212.object({
5967
- preferredWorkspaceId: z212.string().optional(),
5968
- preferredDesignSystemId: z212.string().optional(),
5969
- preferredVersionId: z212.string().optional(),
5970
- preferredBrandId: z212.string().optional()
5977
+ var DTOAppBootstrapDataQuery = z213.object({
5978
+ preferredWorkspaceId: z213.string().optional(),
5979
+ preferredDesignSystemId: z213.string().optional(),
5980
+ preferredVersionId: z213.string().optional(),
5981
+ preferredBrandId: z213.string().optional()
5971
5982
  });
5972
- var DTOAppBootstrapDataResponse = z212.object({
5983
+ var DTOAppBootstrapDataResponse = z213.object({
5973
5984
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5974
5985
  designSystem: DTODesignSystem.optional(),
5975
5986
  version: DTODesignSystemVersion.optional(),
@@ -5977,88 +5988,88 @@ var DTOAppBootstrapDataResponse = z212.object({
5977
5988
  });
5978
5989
 
5979
5990
  // src/api/dto/collections/token-collection.ts
5980
- import { z as z213 } from "zod";
5981
- var DTOTokenCollection = z213.object({
5982
- id: z213.string(),
5983
- persistentId: z213.string(),
5984
- designSystemVersionId: z213.string(),
5991
+ import { z as z214 } from "zod";
5992
+ var DTOTokenCollection = z214.object({
5993
+ id: z214.string(),
5994
+ persistentId: z214.string(),
5995
+ designSystemVersionId: z214.string(),
5985
5996
  meta: ObjectMeta,
5986
5997
  backgroundColor: ColorTokenInlineData.optional(),
5987
- elementPropertyOptionId: z213.string(),
5988
- createdAt: z213.coerce.date(),
5989
- updatedAt: z213.coerce.date(),
5998
+ elementPropertyOptionId: z214.string(),
5999
+ createdAt: z214.coerce.date(),
6000
+ updatedAt: z214.coerce.date(),
5990
6001
  origin: CollectionOrigin.optional()
5991
6002
  });
5992
- var DTOTokenCollectionsListReponse = z213.object({
6003
+ var DTOTokenCollectionsListReponse = z214.object({
5993
6004
  collections: DTOTokenCollection.array()
5994
6005
  });
5995
6006
 
5996
6007
  // src/api/dto/design-tokens/design-token.ts
5997
- import { z as z214 } from "zod";
6008
+ import { z as z215 } from "zod";
5998
6009
  var DTODesignToken = DesignTokenTypedData.and(
5999
- z214.object({
6000
- id: z214.string(),
6001
- persistentId: z214.string(),
6002
- designSystemVersionId: z214.string(),
6010
+ z215.object({
6011
+ id: z215.string(),
6012
+ persistentId: z215.string(),
6013
+ designSystemVersionId: z215.string(),
6003
6014
  meta: ObjectMeta,
6004
6015
  originStyle: DesignTokenOrigin.optional(),
6005
- brandId: z214.string(),
6006
- collectionId: z214.string().optional(),
6007
- updatedAt: z214.coerce.date()
6016
+ brandId: z215.string(),
6017
+ collectionId: z215.string().optional(),
6018
+ updatedAt: z215.coerce.date()
6008
6019
  })
6009
6020
  );
6010
- var DTODesignTokenListResponse = z214.object({
6021
+ var DTODesignTokenListResponse = z215.object({
6011
6022
  tokens: DTODesignToken.array()
6012
6023
  });
6013
- var DTODesignTokenResponse = z214.object({
6024
+ var DTODesignTokenResponse = z215.object({
6014
6025
  token: DTODesignToken
6015
6026
  });
6016
- var DTODesignTokenGroup = z214.object({
6017
- id: z214.string(),
6027
+ var DTODesignTokenGroup = z215.object({
6028
+ id: z215.string(),
6018
6029
  tokenType: DesignTokenType,
6019
- persistentId: z214.string(),
6020
- isRoot: z214.boolean(),
6021
- brandId: z214.string(),
6030
+ persistentId: z215.string(),
6031
+ isRoot: z215.boolean(),
6032
+ brandId: z215.string(),
6022
6033
  meta: ObjectMeta,
6023
- childrenIds: z214.string().array()
6034
+ childrenIds: z215.string().array()
6024
6035
  });
6025
- var DTODesignTokenGroupListResponse = z214.object({
6036
+ var DTODesignTokenGroupListResponse = z215.object({
6026
6037
  groups: DTODesignTokenGroup.array()
6027
6038
  });
6028
- var DTODesignTokenGroupResponse = z214.object({
6039
+ var DTODesignTokenGroupResponse = z215.object({
6029
6040
  group: DTODesignTokenGroup
6030
6041
  });
6031
6042
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6032
- z214.object({
6033
- persistentId: z214.string(),
6043
+ z215.object({
6044
+ persistentId: z215.string(),
6034
6045
  meta: ObjectMeta,
6035
- brandId: z214.string(),
6036
- groupPersistentId: z214.string().optional()
6046
+ brandId: z215.string(),
6047
+ groupPersistentId: z215.string().optional()
6037
6048
  })
6038
6049
  );
6039
- var DTODesignTokenGroupCreatePayload = z214.object({
6040
- persistentId: z214.string(),
6050
+ var DTODesignTokenGroupCreatePayload = z215.object({
6051
+ persistentId: z215.string(),
6041
6052
  meta: ObjectMeta,
6042
- brandId: z214.string(),
6043
- parentId: z214.string().optional(),
6053
+ brandId: z215.string(),
6054
+ parentId: z215.string().optional(),
6044
6055
  tokenType: DesignTokenType,
6045
- childrenIds: z214.string().array()
6056
+ childrenIds: z215.string().array()
6046
6057
  });
6047
6058
 
6048
6059
  // src/api/dto/documentation/anchor.ts
6049
- import { z as z215 } from "zod";
6060
+ import { z as z216 } from "zod";
6050
6061
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6051
- var DTOGetDocumentationPageAnchorsResponse = z215.object({
6052
- anchors: z215.array(DTODocumentationPageAnchor)
6062
+ var DTOGetDocumentationPageAnchorsResponse = z216.object({
6063
+ anchors: z216.array(DTODocumentationPageAnchor)
6053
6064
  });
6054
6065
 
6055
6066
  // src/api/dto/documentation/approvals.ts
6056
- import { z as z216 } from "zod";
6067
+ import { z as z217 } from "zod";
6057
6068
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
6058
- var DTODocumentationGroupApprovalState = z216.object({
6059
- persistentId: z216.string(),
6060
- groupId: z216.string(),
6061
- designSystemVersionId: z216.string(),
6069
+ var DTODocumentationGroupApprovalState = z217.object({
6070
+ persistentId: z217.string(),
6071
+ groupId: z217.string(),
6072
+ designSystemVersionId: z217.string(),
6062
6073
  approvalState: DocumentationPageApprovalState
6063
6074
  });
6064
6075
 
@@ -6066,68 +6077,68 @@ var DTODocumentationGroupApprovalState = z216.object({
6066
6077
  var DTOPageBlockItemV2 = PageBlockItemV2;
6067
6078
 
6068
6079
  // src/api/dto/documentation/documentation-page-snapshot.ts
6069
- import { z as z221 } from "zod";
6080
+ import { z as z222 } from "zod";
6070
6081
 
6071
6082
  // src/api/dto/elements/documentation/page-v2.ts
6072
- import { z as z220 } from "zod";
6083
+ import { z as z221 } from "zod";
6073
6084
 
6074
6085
  // src/api/dto/elements/documentation/draft-state.ts
6075
- import { z as z218 } from "zod";
6086
+ import { z as z219 } from "zod";
6076
6087
 
6077
6088
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6078
- import { z as z217 } from "zod";
6089
+ import { z as z218 } from "zod";
6079
6090
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6080
- var DTODocumentationItemConfigurationV2 = z217.object({
6081
- showSidebar: z217.boolean(),
6082
- isPrivate: z217.boolean(),
6083
- isHidden: z217.boolean(),
6091
+ var DTODocumentationItemConfigurationV2 = z218.object({
6092
+ showSidebar: z218.boolean(),
6093
+ isPrivate: z218.boolean(),
6094
+ isHidden: z218.boolean(),
6084
6095
  header: DTODocumentationItemHeaderV2
6085
6096
  });
6086
6097
 
6087
6098
  // src/api/dto/elements/documentation/draft-state.ts
6088
- var DTODocumentationDraftChangeType = z218.enum(["Created", "Updated", "Deleted"]);
6089
- var DTODocumentationDraftStateCreated = z218.object({
6090
- changeType: z218.literal(DTODocumentationDraftChangeType.enum.Created)
6091
- });
6092
- var DTODocumentationDraftStateUpdated = z218.object({
6093
- changeType: z218.literal(DTODocumentationDraftChangeType.enum.Updated),
6094
- changes: z218.object({
6095
- previousTitle: z218.string().optional(),
6099
+ var DTODocumentationDraftChangeType = z219.enum(["Created", "Updated", "Deleted"]);
6100
+ var DTODocumentationDraftStateCreated = z219.object({
6101
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Created)
6102
+ });
6103
+ var DTODocumentationDraftStateUpdated = z219.object({
6104
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Updated),
6105
+ changes: z219.object({
6106
+ previousTitle: z219.string().optional(),
6096
6107
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6097
- previousContentHash: z218.string().optional()
6108
+ previousContentHash: z219.string().optional()
6098
6109
  })
6099
6110
  });
6100
- var DTODocumentationDraftStateDeleted = z218.object({
6101
- changeType: z218.literal(DTODocumentationDraftChangeType.enum.Deleted),
6102
- deletedAt: z218.coerce.date(),
6103
- deletedByUserId: z218.string()
6111
+ var DTODocumentationDraftStateDeleted = z219.object({
6112
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Deleted),
6113
+ deletedAt: z219.coerce.date(),
6114
+ deletedByUserId: z219.string()
6104
6115
  });
6105
- var DTODocumentationDraftState = z218.discriminatedUnion("changeType", [
6116
+ var DTODocumentationDraftState = z219.discriminatedUnion("changeType", [
6106
6117
  DTODocumentationDraftStateCreated,
6107
6118
  DTODocumentationDraftStateUpdated,
6108
6119
  DTODocumentationDraftStateDeleted
6109
6120
  ]);
6110
6121
 
6111
6122
  // src/api/dto/elements/documentation/metadata.ts
6112
- import { z as z219 } from "zod";
6113
- var DTODocumentationPublishMetadata = z219.object({
6114
- lastPublishedByUserId: z219.string(),
6115
- lastPublishedAt: z219.coerce.date()
6123
+ import { z as z220 } from "zod";
6124
+ var DTODocumentationPublishMetadata = z220.object({
6125
+ lastPublishedByUserId: z220.string(),
6126
+ lastPublishedAt: z220.coerce.date()
6116
6127
  });
6117
6128
 
6118
6129
  // src/api/dto/elements/documentation/page-v2.ts
6119
- var DTODocumentationPageV2 = z220.object({
6120
- id: z220.string(),
6121
- persistentId: z220.string(),
6122
- designSystemVersionId: z220.string(),
6123
- title: z220.string(),
6130
+ var DTODocumentationPageV2 = z221.object({
6131
+ id: z221.string(),
6132
+ persistentId: z221.string(),
6133
+ designSystemVersionId: z221.string(),
6134
+ title: z221.string(),
6124
6135
  configuration: DTODocumentationItemConfigurationV2,
6125
- shortPersistentId: z220.string(),
6126
- slug: z220.string().optional(),
6127
- userSlug: z220.string().optional(),
6128
- createdAt: z220.coerce.date(),
6129
- updatedAt: z220.coerce.date(),
6130
- path: z220.string(),
6136
+ shortPersistentId: z221.string(),
6137
+ slug: z221.string().optional(),
6138
+ userSlug: z221.string().optional(),
6139
+ createdAt: z221.coerce.date(),
6140
+ updatedAt: z221.coerce.date(),
6141
+ path: z221.string(),
6131
6142
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6132
6143
  draftState: DTODocumentationDraftState.optional(),
6133
6144
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6135,215 +6146,215 @@ var DTODocumentationPageV2 = z220.object({
6135
6146
  /** Defines the approval state of the documentation page */
6136
6147
  approvalState: DTODocumentationPageApprovalState.optional(),
6137
6148
  // Backward compatibility
6138
- type: z220.literal("Page")
6149
+ type: z221.literal("Page")
6139
6150
  });
6140
- var DTOCreateDocumentationPageInputV2 = z220.object({
6151
+ var DTOCreateDocumentationPageInputV2 = z221.object({
6141
6152
  // Identifier
6142
- persistentId: z220.string(),
6153
+ persistentId: z221.string(),
6143
6154
  // Page properties
6144
- title: z220.string(),
6155
+ title: z221.string(),
6145
6156
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6146
6157
  // Page placement properties
6147
- parentPersistentId: z220.string(),
6148
- afterPersistentId: z220.string().nullish()
6158
+ parentPersistentId: z221.string(),
6159
+ afterPersistentId: z221.string().nullish()
6149
6160
  });
6150
- var DTOUpdateDocumentationPageInputV2 = z220.object({
6161
+ var DTOUpdateDocumentationPageInputV2 = z221.object({
6151
6162
  // Identifier of the group to update
6152
- id: z220.string(),
6163
+ id: z221.string(),
6153
6164
  // Page properties
6154
- title: z220.string().optional(),
6165
+ title: z221.string().optional(),
6155
6166
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6156
6167
  });
6157
- var DTOMoveDocumentationPageInputV2 = z220.object({
6168
+ var DTOMoveDocumentationPageInputV2 = z221.object({
6158
6169
  // Identifier of the group to update
6159
- id: z220.string(),
6170
+ id: z221.string(),
6160
6171
  // Page placement properties
6161
- parentPersistentId: z220.string(),
6162
- afterPersistentId: z220.string().nullish()
6172
+ parentPersistentId: z221.string(),
6173
+ afterPersistentId: z221.string().nullish()
6163
6174
  });
6164
- var DTODuplicateDocumentationPageInputV2 = z220.object({
6175
+ var DTODuplicateDocumentationPageInputV2 = z221.object({
6165
6176
  // Identifier of the page to duplicate from
6166
- id: z220.string(),
6177
+ id: z221.string(),
6167
6178
  // New page persistent id
6168
- persistentId: z220.string(),
6179
+ persistentId: z221.string(),
6169
6180
  // Page placement properties
6170
- parentPersistentId: z220.string(),
6171
- afterPersistentId: z220.string().nullish()
6181
+ parentPersistentId: z221.string(),
6182
+ afterPersistentId: z221.string().nullish()
6172
6183
  });
6173
- var DTODeleteDocumentationPageInputV2 = z220.object({
6184
+ var DTODeleteDocumentationPageInputV2 = z221.object({
6174
6185
  // Identifier
6175
- id: z220.string()
6186
+ id: z221.string()
6176
6187
  });
6177
- var DTORestoreDocumentationPageInput = z220.object({
6178
- persistentId: z220.string(),
6179
- snapshotId: z220.string().optional()
6188
+ var DTORestoreDocumentationPageInput = z221.object({
6189
+ persistentId: z221.string(),
6190
+ snapshotId: z221.string().optional()
6180
6191
  });
6181
- var DTORestoreDocumentationGroupInput = z220.object({
6182
- persistentId: z220.string(),
6183
- snapshotId: z220.string().optional()
6192
+ var DTORestoreDocumentationGroupInput = z221.object({
6193
+ persistentId: z221.string(),
6194
+ snapshotId: z221.string().optional()
6184
6195
  });
6185
- var DTODocumentationPageApprovalStateChangeInput = z220.object({
6186
- persistentId: z220.string(),
6196
+ var DTODocumentationPageApprovalStateChangeInput = z221.object({
6197
+ persistentId: z221.string(),
6187
6198
  approvalState: DocumentationPageApprovalState.optional()
6188
6199
  });
6189
6200
 
6190
6201
  // src/api/dto/documentation/documentation-page-snapshot.ts
6191
- var DTODocumentationPageSnapshot = z221.object({
6192
- id: z221.string(),
6193
- designSystemVersionId: z221.string(),
6194
- createdAt: z221.string(),
6195
- updatedAt: z221.string(),
6202
+ var DTODocumentationPageSnapshot = z222.object({
6203
+ id: z222.string(),
6204
+ designSystemVersionId: z222.string(),
6205
+ createdAt: z222.string(),
6206
+ updatedAt: z222.string(),
6196
6207
  documentationPage: DTODocumentationPageV2,
6197
- pageContentHash: z221.string(),
6208
+ pageContentHash: z222.string(),
6198
6209
  reason: DesignElementSnapshotReason
6199
6210
  });
6200
6211
 
6201
6212
  // src/api/dto/documentation/link-preview.ts
6202
- import { z as z222 } from "zod";
6203
- var DTODocumentationLinkPreviewResponse = z222.object({
6213
+ import { z as z223 } from "zod";
6214
+ var DTODocumentationLinkPreviewResponse = z223.object({
6204
6215
  linkPreview: DocumentationLinkPreview
6205
6216
  });
6206
- var DTODocumentationLinkPreviewRequest = z222.object({
6207
- url: z222.string().optional(),
6208
- documentationItemPersistentId: z222.string().optional()
6217
+ var DTODocumentationLinkPreviewRequest = z223.object({
6218
+ url: z223.string().optional(),
6219
+ documentationItemPersistentId: z223.string().optional()
6209
6220
  });
6210
6221
 
6211
6222
  // src/api/dto/documentation/publish.ts
6212
- import { z as z226 } from "zod";
6223
+ import { z as z227 } from "zod";
6213
6224
 
6214
6225
  // src/api/dto/export/exporter.ts
6215
- import { z as z223 } from "zod";
6216
- var DTOExporterType = z223.enum(["documentation", "code"]);
6217
- var DTOExporterSource = z223.enum(["git", "upload"]);
6218
- var DTOExporterMembershipRole = z223.enum(["Owner", "OwnerArchived", "User"]);
6219
- var DTOExporterListQuery = z223.object({
6220
- limit: z223.coerce.number().optional()
6221
- });
6222
- var DTOExporter = z223.object({
6223
- id: z223.string(),
6224
- name: z223.string(),
6225
- isPrivate: z223.boolean(),
6226
+ import { z as z224 } from "zod";
6227
+ var DTOExporterType = z224.enum(["documentation", "code"]);
6228
+ var DTOExporterSource = z224.enum(["git", "upload"]);
6229
+ var DTOExporterMembershipRole = z224.enum(["Owner", "OwnerArchived", "User"]);
6230
+ var DTOExporterListQuery = z224.object({
6231
+ limit: z224.coerce.number().optional()
6232
+ });
6233
+ var DTOExporter = z224.object({
6234
+ id: z224.string(),
6235
+ name: z224.string(),
6236
+ isPrivate: z224.boolean(),
6226
6237
  exporterType: DTOExporterType,
6227
- isDefaultDocumentationExporter: z223.boolean(),
6228
- iconURL: z223.string().optional(),
6238
+ isDefaultDocumentationExporter: z224.boolean(),
6239
+ iconURL: z224.string().optional(),
6229
6240
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6230
6241
  customBlocks: PulsarCustomBlock.array(),
6231
- blockVariants: z223.record(z223.string(), PulsarContributionVariant.array()),
6232
- usesBrands: z223.boolean(),
6233
- usesThemes: z223.boolean(),
6242
+ blockVariants: z224.record(z224.string(), PulsarContributionVariant.array()),
6243
+ usesBrands: z224.boolean(),
6244
+ usesThemes: z224.boolean(),
6234
6245
  source: DTOExporterSource,
6235
- gitUrl: nullishToOptional(z223.string()),
6236
- gitBranch: nullishToOptional(z223.string()),
6237
- gitDirectory: nullishToOptional(z223.string())
6246
+ gitUrl: nullishToOptional(z224.string()),
6247
+ gitBranch: nullishToOptional(z224.string()),
6248
+ gitDirectory: nullishToOptional(z224.string())
6238
6249
  });
6239
- var DTOExporterMembership = z223.object({
6240
- workspaceId: z223.string(),
6241
- exporterId: z223.string(),
6250
+ var DTOExporterMembership = z224.object({
6251
+ workspaceId: z224.string(),
6252
+ exporterId: z224.string(),
6242
6253
  role: DTOExporterMembershipRole
6243
6254
  });
6244
- var DTOExporterCreateOutput = z223.object({
6255
+ var DTOExporterCreateOutput = z224.object({
6245
6256
  exporter: DTOExporter,
6246
6257
  membership: DTOExporterMembership
6247
6258
  });
6248
- var DTOExporterListResponse = z223.object({
6259
+ var DTOExporterListResponse = z224.object({
6249
6260
  exporters: DTOExporter.array(),
6250
6261
  membership: DTOExporterMembership.array()
6251
6262
  });
6252
- var DTOExporterGitProviderEnum = z223.enum(["github", "gitlab", "bitbucket", "azure"]);
6253
- var DTOExporterCreateInput = z223.object({
6254
- url: z223.string(),
6263
+ var DTOExporterGitProviderEnum = z224.enum(["github", "gitlab", "bitbucket", "azure"]);
6264
+ var DTOExporterCreateInput = z224.object({
6265
+ url: z224.string(),
6255
6266
  provider: DTOExporterGitProviderEnum
6256
6267
  });
6257
- var DTOExporterUpdateInput = z223.object({
6258
- url: z223.string().optional()
6268
+ var DTOExporterUpdateInput = z224.object({
6269
+ url: z224.string().optional()
6259
6270
  });
6260
6271
 
6261
6272
  // src/api/dto/export/filter.ts
6262
6273
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6263
6274
 
6264
6275
  // src/api/dto/export/job.ts
6265
- import { z as z224 } from "zod";
6266
- var DTOExportJobCreatedBy = z224.object({
6267
- userId: z224.string(),
6268
- userName: z224.string()
6276
+ import { z as z225 } from "zod";
6277
+ var DTOExportJobCreatedBy = z225.object({
6278
+ userId: z225.string(),
6279
+ userName: z225.string()
6269
6280
  });
6270
- var DTOExportJobDesignSystemPreview = z224.object({
6271
- id: z224.string(),
6281
+ var DTOExportJobDesignSystemPreview = z225.object({
6282
+ id: z225.string(),
6272
6283
  meta: ObjectMeta
6273
6284
  });
6274
- var DTOExportJobDesignSystemVersionPreview = z224.object({
6275
- id: z224.string(),
6285
+ var DTOExportJobDesignSystemVersionPreview = z225.object({
6286
+ id: z225.string(),
6276
6287
  meta: ObjectMeta,
6277
- version: z224.string(),
6278
- isReadonly: z224.boolean()
6288
+ version: z225.string(),
6289
+ isReadonly: z225.boolean()
6279
6290
  });
6280
- var DTOExportJobDestinations = z224.object({
6291
+ var DTOExportJobDestinations = z225.object({
6281
6292
  s3: ExporterDestinationS3.optional(),
6282
6293
  azure: ExporterDestinationAzure.optional(),
6283
6294
  bitbucket: ExporterDestinationBitbucket.optional(),
6284
6295
  github: ExporterDestinationGithub.optional(),
6285
6296
  gitlab: ExporterDestinationGitlab.optional(),
6286
6297
  documentation: ExporterDestinationDocs.optional(),
6287
- webhookUrl: z224.string().optional()
6298
+ webhookUrl: z225.string().optional()
6288
6299
  });
6289
6300
  var DTOExportJobResult = ExportJobResult.omit({
6290
6301
  sndocs: true
6291
6302
  }).extend({
6292
6303
  documentation: ExportJobDocsDestinationResult.optional()
6293
6304
  });
6294
- var DTOExportJob = z224.object({
6295
- id: z224.string(),
6296
- createdAt: z224.coerce.date(),
6297
- finishedAt: z224.coerce.date().optional(),
6298
- index: z224.number().optional(),
6305
+ var DTOExportJob = z225.object({
6306
+ id: z225.string(),
6307
+ createdAt: z225.coerce.date(),
6308
+ finishedAt: z225.coerce.date().optional(),
6309
+ index: z225.number().optional(),
6299
6310
  status: ExportJobStatus,
6300
- estimatedExecutionTime: z224.number().optional(),
6311
+ estimatedExecutionTime: z225.number().optional(),
6301
6312
  createdBy: DTOExportJobCreatedBy.optional(),
6302
6313
  designSystem: DTOExportJobDesignSystemPreview,
6303
6314
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6304
6315
  destinations: DTOExportJobDestinations,
6305
- exporterId: z224.string(),
6306
- scheduleId: z224.string().optional(),
6316
+ exporterId: z225.string(),
6317
+ scheduleId: z225.string().optional(),
6307
6318
  result: DTOExportJobResult.optional(),
6308
- brandPersistentId: z224.string().optional(),
6309
- themePersistentId: z224.string().optional(),
6310
- themePersistentIds: z224.string().array().optional()
6319
+ brandPersistentId: z225.string().optional(),
6320
+ themePersistentId: z225.string().optional(),
6321
+ themePersistentIds: z225.string().array().optional()
6311
6322
  });
6312
- var DTOExportJobResponse = z224.object({
6323
+ var DTOExportJobResponse = z225.object({
6313
6324
  job: DTOExportJob
6314
6325
  });
6315
6326
 
6316
6327
  // src/api/dto/export/pipeline.ts
6317
- import { z as z225 } from "zod";
6318
- var DTOPipelineListQuery = z225.object({
6319
- designSystemId: z225.string().optional(),
6320
- exporterId: z225.string().optional(),
6321
- latestJobsLimit: z225.coerce.number().optional()
6322
- });
6323
- var DTOPipeline = z225.object({
6324
- id: z225.string(),
6325
- name: z225.string(),
6328
+ import { z as z226 } from "zod";
6329
+ var DTOPipelineListQuery = z226.object({
6330
+ designSystemId: z226.string().optional(),
6331
+ exporterId: z226.string().optional(),
6332
+ latestJobsLimit: z226.coerce.number().optional()
6333
+ });
6334
+ var DTOPipeline = z226.object({
6335
+ id: z226.string(),
6336
+ name: z226.string(),
6326
6337
  eventType: PipelineEventType,
6327
- isEnabled: z225.boolean(),
6328
- workspaceId: z225.string(),
6329
- designSystemId: z225.string(),
6330
- exporterId: z225.string(),
6331
- brandPersistentId: z225.string().optional(),
6332
- themePersistentId: z225.string().optional(),
6333
- themePersistentIds: z225.string().array().optional(),
6338
+ isEnabled: z226.boolean(),
6339
+ workspaceId: z226.string(),
6340
+ designSystemId: z226.string(),
6341
+ exporterId: z226.string(),
6342
+ brandPersistentId: z226.string().optional(),
6343
+ themePersistentId: z226.string().optional(),
6344
+ themePersistentIds: z226.string().array().optional(),
6334
6345
  ...ExportDestinationsMap.shape,
6335
6346
  latestJobs: DTOExportJob.array()
6336
6347
  });
6337
- var DTOPipelineListResponse = z225.object({
6348
+ var DTOPipelineListResponse = z226.object({
6338
6349
  pipelines: DTOPipeline.array()
6339
6350
  });
6340
- var DTOPipelineResponse = z225.object({
6351
+ var DTOPipelineResponse = z226.object({
6341
6352
  pipeline: DTOPipeline
6342
6353
  });
6343
6354
 
6344
6355
  // src/api/dto/documentation/publish.ts
6345
6356
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6346
- var DTOPublishDocumentationRequest = z226.object({
6357
+ var DTOPublishDocumentationRequest = z227.object({
6347
6358
  environment: PublishedDocEnvironment,
6348
6359
  /**
6349
6360
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6351,42 +6362,42 @@ var DTOPublishDocumentationRequest = z226.object({
6351
6362
  */
6352
6363
  changes: DTOPublishDocumentationChanges.optional()
6353
6364
  });
6354
- var DTOPublishDocumentationResponse = z226.object({
6365
+ var DTOPublishDocumentationResponse = z227.object({
6355
6366
  job: DTOExportJob
6356
6367
  });
6357
6368
 
6358
6369
  // src/api/dto/elements/components/figma-component.ts
6359
- import { z as z227 } from "zod";
6370
+ import { z as z228 } from "zod";
6360
6371
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6361
- var DTOFigmaComponentPropertyMap = z227.record(DTOFigmaComponentProperty);
6362
- var DTOFigmaComponent = z227.object({
6363
- id: z227.string(),
6364
- persistentId: z227.string(),
6365
- designSystemVersionId: z227.string(),
6366
- brandId: z227.string(),
6367
- thumbnailUrl: z227.string().optional(),
6368
- svgUrl: z227.string().optional(),
6369
- exportProperties: z227.object({
6370
- isAsset: z227.boolean()
6372
+ var DTOFigmaComponentPropertyMap = z228.record(DTOFigmaComponentProperty);
6373
+ var DTOFigmaComponent = z228.object({
6374
+ id: z228.string(),
6375
+ persistentId: z228.string(),
6376
+ designSystemVersionId: z228.string(),
6377
+ brandId: z228.string(),
6378
+ thumbnailUrl: z228.string().optional(),
6379
+ svgUrl: z228.string().optional(),
6380
+ exportProperties: z228.object({
6381
+ isAsset: z228.boolean()
6371
6382
  }),
6372
- createdAt: z227.coerce.date(),
6373
- updatedAt: z227.coerce.date(),
6383
+ createdAt: z228.coerce.date(),
6384
+ updatedAt: z228.coerce.date(),
6374
6385
  meta: ObjectMeta,
6375
6386
  originComponent: FigmaComponentOrigin.optional(),
6376
- parentComponentPersistentId: z227.string().optional(),
6377
- childrenPersistentIds: z227.string().array().optional(),
6387
+ parentComponentPersistentId: z228.string().optional(),
6388
+ childrenPersistentIds: z228.string().array().optional(),
6378
6389
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6379
- variantPropertyValues: z227.record(z227.string()).optional()
6390
+ variantPropertyValues: z228.record(z228.string()).optional()
6380
6391
  });
6381
- var DTOFigmaComponentListResponse = z227.object({
6392
+ var DTOFigmaComponentListResponse = z228.object({
6382
6393
  components: DTOFigmaComponent.array()
6383
6394
  });
6384
6395
 
6385
6396
  // src/api/dto/elements/documentation/group-action.ts
6386
- import { z as z229 } from "zod";
6397
+ import { z as z230 } from "zod";
6387
6398
 
6388
6399
  // src/api/dto/elements/documentation/group-v2.ts
6389
- import { z as z228 } from "zod";
6400
+ import { z as z229 } from "zod";
6390
6401
  var DTODocumentationGroupV2 = ElementGroup.omit({
6391
6402
  sortOrder: true,
6392
6403
  parentPersistentId: true,
@@ -6396,13 +6407,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6396
6407
  data: true,
6397
6408
  shortPersistentId: true
6398
6409
  }).extend({
6399
- title: z228.string(),
6400
- isRoot: z228.boolean(),
6401
- childrenIds: z228.array(z228.string()),
6410
+ title: z229.string(),
6411
+ isRoot: z229.boolean(),
6412
+ childrenIds: z229.array(z229.string()),
6402
6413
  groupBehavior: DocumentationGroupBehavior,
6403
- shortPersistentId: z228.string(),
6414
+ shortPersistentId: z229.string(),
6404
6415
  configuration: DTODocumentationItemConfigurationV2,
6405
- type: z228.literal("Group"),
6416
+ type: z229.literal("Group"),
6406
6417
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6407
6418
  draftState: DTODocumentationDraftState.optional(),
6408
6419
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6410,127 +6421,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6410
6421
  //** An approval state for frontend to utilize. */
6411
6422
  approvalState: DTODocumentationGroupApprovalState.optional()
6412
6423
  });
6413
- var DTOCreateDocumentationGroupInput = z228.object({
6424
+ var DTOCreateDocumentationGroupInput = z229.object({
6414
6425
  // Identifier
6415
- persistentId: z228.string(),
6426
+ persistentId: z229.string(),
6416
6427
  // Group properties
6417
- title: z228.string(),
6428
+ title: z229.string(),
6418
6429
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6419
6430
  // Group placement properties
6420
- afterPersistentId: z228.string().nullish(),
6421
- parentPersistentId: z228.string()
6431
+ afterPersistentId: z229.string().nullish(),
6432
+ parentPersistentId: z229.string()
6422
6433
  });
6423
- var DTOUpdateDocumentationGroupInput = z228.object({
6434
+ var DTOUpdateDocumentationGroupInput = z229.object({
6424
6435
  // Identifier of the group to update
6425
- id: z228.string(),
6436
+ id: z229.string(),
6426
6437
  // Group properties
6427
- title: z228.string().optional(),
6438
+ title: z229.string().optional(),
6428
6439
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6429
6440
  });
6430
- var DTOMoveDocumentationGroupInput = z228.object({
6441
+ var DTOMoveDocumentationGroupInput = z229.object({
6431
6442
  // Identifier of the group to update
6432
- id: z228.string(),
6443
+ id: z229.string(),
6433
6444
  // Group placement properties
6434
- parentPersistentId: z228.string(),
6435
- afterPersistentId: z228.string().nullish()
6445
+ parentPersistentId: z229.string(),
6446
+ afterPersistentId: z229.string().nullish()
6436
6447
  });
6437
- var DTODuplicateDocumentationGroupInput = z228.object({
6448
+ var DTODuplicateDocumentationGroupInput = z229.object({
6438
6449
  // Identifier of the group to duplicate from
6439
- id: z228.string(),
6450
+ id: z229.string(),
6440
6451
  // New group persistent id
6441
- persistentId: z228.string(),
6452
+ persistentId: z229.string(),
6442
6453
  // Group placement properties
6443
- afterPersistentId: z228.string().nullish(),
6444
- parentPersistentId: z228.string()
6454
+ afterPersistentId: z229.string().nullish(),
6455
+ parentPersistentId: z229.string()
6445
6456
  });
6446
- var DTOCreateDocumentationTabInput = z228.object({
6457
+ var DTOCreateDocumentationTabInput = z229.object({
6447
6458
  // New group persistent id
6448
- persistentId: z228.string(),
6459
+ persistentId: z229.string(),
6449
6460
  // If this is page, we will attempt to convert it to tab
6450
6461
  // If this is tab group, we will add a new tab to it
6451
- fromItemPersistentId: z228.string(),
6452
- tabName: z228.string()
6462
+ fromItemPersistentId: z229.string(),
6463
+ tabName: z229.string()
6453
6464
  });
6454
- var DTODeleteDocumentationTabGroupInput = z228.object({
6465
+ var DTODeleteDocumentationTabGroupInput = z229.object({
6455
6466
  // Deleted group id
6456
- id: z228.string()
6467
+ id: z229.string()
6457
6468
  });
6458
- var DTODeleteDocumentationGroupInput = z228.object({
6469
+ var DTODeleteDocumentationGroupInput = z229.object({
6459
6470
  // Identifier
6460
- id: z228.string(),
6471
+ id: z229.string(),
6461
6472
  // Deletion options
6462
- deleteSubtree: z228.boolean().default(false)
6473
+ deleteSubtree: z229.boolean().default(false)
6463
6474
  });
6464
6475
 
6465
6476
  // src/api/dto/elements/documentation/group-action.ts
6466
- var SuccessPayload = z229.object({
6467
- success: z229.literal(true)
6477
+ var SuccessPayload = z230.object({
6478
+ success: z230.literal(true)
6468
6479
  });
6469
- var DTODocumentationGroupCreateActionOutputV2 = z229.object({
6470
- type: z229.literal("DocumentationGroupCreate"),
6480
+ var DTODocumentationGroupCreateActionOutputV2 = z230.object({
6481
+ type: z230.literal("DocumentationGroupCreate"),
6471
6482
  output: SuccessPayload
6472
6483
  });
6473
- var DTODocumentationTabCreateActionOutputV2 = z229.object({
6474
- type: z229.literal("DocumentationTabCreate"),
6484
+ var DTODocumentationTabCreateActionOutputV2 = z230.object({
6485
+ type: z230.literal("DocumentationTabCreate"),
6475
6486
  output: SuccessPayload
6476
6487
  });
6477
- var DTODocumentationGroupUpdateActionOutputV2 = z229.object({
6478
- type: z229.literal("DocumentationGroupUpdate"),
6488
+ var DTODocumentationGroupUpdateActionOutputV2 = z230.object({
6489
+ type: z230.literal("DocumentationGroupUpdate"),
6479
6490
  output: SuccessPayload
6480
6491
  });
6481
- var DTODocumentationGroupMoveActionOutputV2 = z229.object({
6482
- type: z229.literal("DocumentationGroupMove"),
6492
+ var DTODocumentationGroupMoveActionOutputV2 = z230.object({
6493
+ type: z230.literal("DocumentationGroupMove"),
6483
6494
  output: SuccessPayload
6484
6495
  });
6485
- var DTODocumentationGroupDuplicateActionOutputV2 = z229.object({
6486
- type: z229.literal("DocumentationGroupDuplicate"),
6496
+ var DTODocumentationGroupDuplicateActionOutputV2 = z230.object({
6497
+ type: z230.literal("DocumentationGroupDuplicate"),
6487
6498
  output: SuccessPayload
6488
6499
  });
6489
- var DTODocumentationGroupDeleteActionOutputV2 = z229.object({
6490
- type: z229.literal("DocumentationGroupDelete"),
6500
+ var DTODocumentationGroupDeleteActionOutputV2 = z230.object({
6501
+ type: z230.literal("DocumentationGroupDelete"),
6491
6502
  output: SuccessPayload
6492
6503
  });
6493
- var DTODocumentationTabGroupDeleteActionOutputV2 = z229.object({
6494
- type: z229.literal("DocumentationTabGroupDelete"),
6504
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z230.object({
6505
+ type: z230.literal("DocumentationTabGroupDelete"),
6495
6506
  output: SuccessPayload
6496
6507
  });
6497
- var DTODocumentationGroupCreateActionInputV2 = z229.object({
6498
- type: z229.literal("DocumentationGroupCreate"),
6508
+ var DTODocumentationGroupCreateActionInputV2 = z230.object({
6509
+ type: z230.literal("DocumentationGroupCreate"),
6499
6510
  input: DTOCreateDocumentationGroupInput
6500
6511
  });
6501
- var DTODocumentationTabCreateActionInputV2 = z229.object({
6502
- type: z229.literal("DocumentationTabCreate"),
6512
+ var DTODocumentationTabCreateActionInputV2 = z230.object({
6513
+ type: z230.literal("DocumentationTabCreate"),
6503
6514
  input: DTOCreateDocumentationTabInput
6504
6515
  });
6505
- var DTODocumentationGroupUpdateActionInputV2 = z229.object({
6506
- type: z229.literal("DocumentationGroupUpdate"),
6516
+ var DTODocumentationGroupUpdateActionInputV2 = z230.object({
6517
+ type: z230.literal("DocumentationGroupUpdate"),
6507
6518
  input: DTOUpdateDocumentationGroupInput
6508
6519
  });
6509
- var DTODocumentationGroupMoveActionInputV2 = z229.object({
6510
- type: z229.literal("DocumentationGroupMove"),
6520
+ var DTODocumentationGroupMoveActionInputV2 = z230.object({
6521
+ type: z230.literal("DocumentationGroupMove"),
6511
6522
  input: DTOMoveDocumentationGroupInput
6512
6523
  });
6513
- var DTODocumentationGroupDuplicateActionInputV2 = z229.object({
6514
- type: z229.literal("DocumentationGroupDuplicate"),
6524
+ var DTODocumentationGroupDuplicateActionInputV2 = z230.object({
6525
+ type: z230.literal("DocumentationGroupDuplicate"),
6515
6526
  input: DTODuplicateDocumentationGroupInput
6516
6527
  });
6517
- var DTODocumentationGroupDeleteActionInputV2 = z229.object({
6518
- type: z229.literal("DocumentationGroupDelete"),
6528
+ var DTODocumentationGroupDeleteActionInputV2 = z230.object({
6529
+ type: z230.literal("DocumentationGroupDelete"),
6519
6530
  input: DTODeleteDocumentationGroupInput
6520
6531
  });
6521
- var DTODocumentationTabGroupDeleteActionInputV2 = z229.object({
6522
- type: z229.literal("DocumentationTabGroupDelete"),
6532
+ var DTODocumentationTabGroupDeleteActionInputV2 = z230.object({
6533
+ type: z230.literal("DocumentationTabGroupDelete"),
6523
6534
  input: DTODeleteDocumentationTabGroupInput
6524
6535
  });
6525
6536
 
6526
6537
  // src/api/dto/elements/documentation/group-v1.ts
6527
- import { z as z231 } from "zod";
6538
+ import { z as z232 } from "zod";
6528
6539
 
6529
6540
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6530
- import { z as z230 } from "zod";
6531
- var DocumentationColorV1 = z230.object({
6532
- aliasTo: z230.string().optional(),
6533
- value: z230.string().optional()
6541
+ import { z as z231 } from "zod";
6542
+ var DocumentationColorV1 = z231.object({
6543
+ aliasTo: z231.string().optional(),
6544
+ value: z231.string().optional()
6534
6545
  });
6535
6546
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6536
6547
  foregroundColor: true,
@@ -6539,10 +6550,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6539
6550
  foregroundColor: DocumentationColorV1.optional(),
6540
6551
  backgroundColor: DocumentationColorV1.optional()
6541
6552
  });
6542
- var DTODocumentationItemConfigurationV1 = z230.object({
6543
- showSidebar: z230.boolean(),
6544
- isPrivate: z230.boolean(),
6545
- isHidden: z230.boolean(),
6553
+ var DTODocumentationItemConfigurationV1 = z231.object({
6554
+ showSidebar: z231.boolean(),
6555
+ isPrivate: z231.boolean(),
6556
+ isHidden: z231.boolean(),
6546
6557
  header: DTODocumentationItemHeaderV1
6547
6558
  });
6548
6559
 
@@ -6556,27 +6567,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6556
6567
  data: true,
6557
6568
  shortPersistentId: true
6558
6569
  }).extend({
6559
- title: z231.string(),
6560
- isRoot: z231.boolean(),
6561
- childrenIds: z231.array(z231.string()),
6570
+ title: z232.string(),
6571
+ isRoot: z232.boolean(),
6572
+ childrenIds: z232.array(z232.string()),
6562
6573
  groupBehavior: DocumentationGroupBehavior,
6563
- shortPersistentId: z231.string(),
6564
- type: z231.literal("Group")
6574
+ shortPersistentId: z232.string(),
6575
+ type: z232.literal("Group")
6565
6576
  });
6566
6577
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6567
6578
  configuration: DTODocumentationItemConfigurationV1
6568
6579
  });
6569
6580
 
6570
6581
  // src/api/dto/elements/documentation/hierarchy.ts
6571
- import { z as z232 } from "zod";
6572
- var DTODocumentationHierarchyV2 = z232.object({
6573
- pages: z232.array(
6582
+ import { z as z233 } from "zod";
6583
+ var DTODocumentationHierarchyV2 = z233.object({
6584
+ pages: z233.array(
6574
6585
  DTODocumentationPageV2.extend({
6575
6586
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6576
6587
  draftState: DTODocumentationDraftState.optional()
6577
6588
  })
6578
6589
  ),
6579
- groups: z232.array(
6590
+ groups: z233.array(
6580
6591
  DTODocumentationGroupV2.extend({
6581
6592
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6582
6593
  draftState: DTODocumentationDraftState.optional()
@@ -6585,84 +6596,84 @@ var DTODocumentationHierarchyV2 = z232.object({
6585
6596
  });
6586
6597
 
6587
6598
  // src/api/dto/elements/documentation/page-actions-v2.ts
6588
- import { z as z233 } from "zod";
6589
- var SuccessPayload2 = z233.object({
6590
- success: z233.literal(true)
6599
+ import { z as z234 } from "zod";
6600
+ var SuccessPayload2 = z234.object({
6601
+ success: z234.literal(true)
6591
6602
  });
6592
- var DTODocumentationPageCreateActionOutputV2 = z233.object({
6593
- type: z233.literal("DocumentationPageCreate"),
6603
+ var DTODocumentationPageCreateActionOutputV2 = z234.object({
6604
+ type: z234.literal("DocumentationPageCreate"),
6594
6605
  output: SuccessPayload2
6595
6606
  });
6596
- var DTODocumentationPageUpdateActionOutputV2 = z233.object({
6597
- type: z233.literal("DocumentationPageUpdate"),
6607
+ var DTODocumentationPageUpdateActionOutputV2 = z234.object({
6608
+ type: z234.literal("DocumentationPageUpdate"),
6598
6609
  output: SuccessPayload2
6599
6610
  });
6600
- var DTODocumentationPageMoveActionOutputV2 = z233.object({
6601
- type: z233.literal("DocumentationPageMove"),
6611
+ var DTODocumentationPageMoveActionOutputV2 = z234.object({
6612
+ type: z234.literal("DocumentationPageMove"),
6602
6613
  output: SuccessPayload2
6603
6614
  });
6604
- var DTODocumentationPageDuplicateActionOutputV2 = z233.object({
6605
- type: z233.literal("DocumentationPageDuplicate"),
6615
+ var DTODocumentationPageDuplicateActionOutputV2 = z234.object({
6616
+ type: z234.literal("DocumentationPageDuplicate"),
6606
6617
  output: SuccessPayload2
6607
6618
  });
6608
- var DTODocumentationPageDeleteActionOutputV2 = z233.object({
6609
- type: z233.literal("DocumentationPageDelete"),
6619
+ var DTODocumentationPageDeleteActionOutputV2 = z234.object({
6620
+ type: z234.literal("DocumentationPageDelete"),
6610
6621
  output: SuccessPayload2
6611
6622
  });
6612
- var DTODocumentationPageRestoreActionOutput = z233.object({
6613
- type: z233.literal("DocumentationPageRestore"),
6623
+ var DTODocumentationPageRestoreActionOutput = z234.object({
6624
+ type: z234.literal("DocumentationPageRestore"),
6614
6625
  output: SuccessPayload2
6615
6626
  });
6616
- var DTODocumentationGroupRestoreActionOutput = z233.object({
6617
- type: z233.literal("DocumentationGroupRestore"),
6627
+ var DTODocumentationGroupRestoreActionOutput = z234.object({
6628
+ type: z234.literal("DocumentationGroupRestore"),
6618
6629
  output: SuccessPayload2
6619
6630
  });
6620
- var DTODocumentationPageApprovalStateChangeActionOutput = z233.object({
6621
- type: z233.literal("DocumentationPageApprovalStateChange"),
6631
+ var DTODocumentationPageApprovalStateChangeActionOutput = z234.object({
6632
+ type: z234.literal("DocumentationPageApprovalStateChange"),
6622
6633
  output: SuccessPayload2
6623
6634
  });
6624
- var DTODocumentationPageCreateActionInputV2 = z233.object({
6625
- type: z233.literal("DocumentationPageCreate"),
6635
+ var DTODocumentationPageCreateActionInputV2 = z234.object({
6636
+ type: z234.literal("DocumentationPageCreate"),
6626
6637
  input: DTOCreateDocumentationPageInputV2
6627
6638
  });
6628
- var DTODocumentationPageUpdateActionInputV2 = z233.object({
6629
- type: z233.literal("DocumentationPageUpdate"),
6639
+ var DTODocumentationPageUpdateActionInputV2 = z234.object({
6640
+ type: z234.literal("DocumentationPageUpdate"),
6630
6641
  input: DTOUpdateDocumentationPageInputV2
6631
6642
  });
6632
- var DTODocumentationPageMoveActionInputV2 = z233.object({
6633
- type: z233.literal("DocumentationPageMove"),
6643
+ var DTODocumentationPageMoveActionInputV2 = z234.object({
6644
+ type: z234.literal("DocumentationPageMove"),
6634
6645
  input: DTOMoveDocumentationPageInputV2
6635
6646
  });
6636
- var DTODocumentationPageDuplicateActionInputV2 = z233.object({
6637
- type: z233.literal("DocumentationPageDuplicate"),
6647
+ var DTODocumentationPageDuplicateActionInputV2 = z234.object({
6648
+ type: z234.literal("DocumentationPageDuplicate"),
6638
6649
  input: DTODuplicateDocumentationPageInputV2
6639
6650
  });
6640
- var DTODocumentationPageDeleteActionInputV2 = z233.object({
6641
- type: z233.literal("DocumentationPageDelete"),
6651
+ var DTODocumentationPageDeleteActionInputV2 = z234.object({
6652
+ type: z234.literal("DocumentationPageDelete"),
6642
6653
  input: DTODeleteDocumentationPageInputV2
6643
6654
  });
6644
- var DTODocumentationPageRestoreActionInput = z233.object({
6645
- type: z233.literal("DocumentationPageRestore"),
6655
+ var DTODocumentationPageRestoreActionInput = z234.object({
6656
+ type: z234.literal("DocumentationPageRestore"),
6646
6657
  input: DTORestoreDocumentationPageInput
6647
6658
  });
6648
- var DTODocumentationGroupRestoreActionInput = z233.object({
6649
- type: z233.literal("DocumentationGroupRestore"),
6659
+ var DTODocumentationGroupRestoreActionInput = z234.object({
6660
+ type: z234.literal("DocumentationGroupRestore"),
6650
6661
  input: DTORestoreDocumentationGroupInput
6651
6662
  });
6652
- var DTODocumentationPageApprovalStateChangeActionInput = z233.object({
6653
- type: z233.literal("DocumentationPageApprovalStateChange"),
6663
+ var DTODocumentationPageApprovalStateChangeActionInput = z234.object({
6664
+ type: z234.literal("DocumentationPageApprovalStateChange"),
6654
6665
  input: DTODocumentationPageApprovalStateChangeInput
6655
6666
  });
6656
6667
 
6657
6668
  // src/api/dto/elements/documentation/page-content.ts
6658
- import { z as z234 } from "zod";
6669
+ import { z as z235 } from "zod";
6659
6670
  var DTODocumentationPageContent = DocumentationPageContent;
6660
- var DTODocumentationPageContentGetResponse = z234.object({
6671
+ var DTODocumentationPageContentGetResponse = z235.object({
6661
6672
  pageContent: DTODocumentationPageContent
6662
6673
  });
6663
6674
 
6664
6675
  // src/api/dto/elements/documentation/page-v1.ts
6665
- import { z as z235 } from "zod";
6676
+ import { z as z236 } from "zod";
6666
6677
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6667
6678
  data: true,
6668
6679
  meta: true,
@@ -6670,32 +6681,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6670
6681
  sortOrder: true
6671
6682
  }).extend({
6672
6683
  configuration: DTODocumentationItemConfigurationV1,
6673
- blocks: z235.array(PageBlockV1),
6674
- title: z235.string(),
6675
- path: z235.string()
6684
+ blocks: z236.array(PageBlockV1),
6685
+ title: z236.string(),
6686
+ path: z236.string()
6687
+ });
6688
+
6689
+ // src/api/dto/elements/documentation/structure.ts
6690
+ import { z as z237 } from "zod";
6691
+ var DTODocumentationStructureItemType = z237.enum(["Group", "Page"]);
6692
+ var DTODocumentationStructureItemBase = z237.object({
6693
+ type: DTODocumentationStructureItemType,
6694
+ id: z237.string(),
6695
+ designSystemVersionId: z237.string(),
6696
+ shortPersistentId: z237.string(),
6697
+ persistentId: z237.string(),
6698
+ title: z237.string(),
6699
+ createdAt: z237.coerce.date(),
6700
+ updatedAt: z237.coerce.date()
6701
+ });
6702
+ var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
6703
+ type: z237.literal(DTODocumentationStructureItemType.enum.Group),
6704
+ groupBehavior: z237.string(),
6705
+ childrenIds: z237.string().array(),
6706
+ isRoot: z237.boolean()
6707
+ });
6708
+ var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
6709
+ type: z237.literal(DTODocumentationStructureItemType.enum.Page),
6710
+ path: z237.string()
6711
+ });
6712
+ var DTODocumentationStructureItem = z237.discriminatedUnion("type", [
6713
+ DTODocumentationStructureGroupItem,
6714
+ DTODocumentationStructurePageItem
6715
+ ]);
6716
+ var DTODocumentationStructure = z237.object({
6717
+ items: z237.array(DTODocumentationStructureItem)
6676
6718
  });
6677
6719
 
6678
6720
  // src/api/dto/elements/figma-nodes/figma-node.ts
6679
- import { z as z236 } from "zod";
6721
+ import { z as z238 } from "zod";
6680
6722
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6681
- var DTOFigmaNodeOrigin = z236.object({
6682
- sourceId: z236.string(),
6683
- fileId: z236.string().optional(),
6684
- parentName: z236.string().optional()
6723
+ var DTOFigmaNodeOrigin = z238.object({
6724
+ sourceId: z238.string(),
6725
+ fileId: z238.string().optional(),
6726
+ parentName: z238.string().optional()
6685
6727
  });
6686
- var DTOFigmaNodeData = z236.object({
6728
+ var DTOFigmaNodeData = z238.object({
6687
6729
  // Id of the node in the Figma file
6688
- figmaNodeId: z236.string(),
6730
+ figmaNodeId: z238.string(),
6689
6731
  // Validity
6690
- isValid: z236.boolean(),
6732
+ isValid: z238.boolean(),
6691
6733
  // Asset data
6692
- assetId: z236.string(),
6693
- assetUrl: z236.string(),
6734
+ assetId: z238.string(),
6735
+ assetUrl: z238.string(),
6694
6736
  assetFormat: DTOFigmaNodeRenderFormat,
6695
6737
  // Asset metadata
6696
- assetScale: z236.number(),
6697
- assetWidth: z236.number().optional(),
6698
- assetHeight: z236.number().optional()
6738
+ assetScale: z238.number(),
6739
+ assetWidth: z238.number().optional(),
6740
+ assetHeight: z238.number().optional()
6699
6741
  });
6700
6742
  var DTOFigmaNode = FigmaNodeReference.omit({
6701
6743
  data: true,
@@ -6704,15 +6746,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6704
6746
  data: DTOFigmaNodeData,
6705
6747
  origin: DTOFigmaNodeOrigin
6706
6748
  });
6707
- var DTOFigmaNodeRenderInput = z236.object({
6749
+ var DTOFigmaNodeRenderInput = z238.object({
6708
6750
  /**
6709
6751
  * Id of a design system's data source representing a linked Figma file
6710
6752
  */
6711
- sourceId: z236.string(),
6753
+ sourceId: z238.string(),
6712
6754
  /**
6713
6755
  * Id of a node within the Figma file
6714
6756
  */
6715
- figmaFileNodeId: z236.string(),
6757
+ figmaFileNodeId: z238.string(),
6716
6758
  /**
6717
6759
  * Format in which the node must be rendered, png by default.
6718
6760
  */
@@ -6720,82 +6762,84 @@ var DTOFigmaNodeRenderInput = z236.object({
6720
6762
  });
6721
6763
 
6722
6764
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6723
- import { z as z237 } from "zod";
6724
- var DTOFigmaNodeRenderActionOutput = z237.object({
6725
- type: z237.literal("FigmaNodeRender"),
6726
- figmaNodes: z237.array(DTOFigmaNode)
6765
+ import { z as z239 } from "zod";
6766
+ var DTOFigmaNodeRenderActionOutput = z239.object({
6767
+ type: z239.literal("FigmaNodeRender"),
6768
+ figmaNodes: z239.array(DTOFigmaNode)
6727
6769
  });
6728
- var DTOFigmaNodeRenderActionInput = z237.object({
6729
- type: z237.literal("FigmaNodeRender"),
6770
+ var DTOFigmaNodeRenderActionInput = z239.object({
6771
+ type: z239.literal("FigmaNodeRender"),
6730
6772
  input: DTOFigmaNodeRenderInput.array()
6731
6773
  });
6732
6774
 
6733
6775
  // src/api/dto/elements/properties/property-definitions.ts
6734
- import { z as z238 } from "zod";
6776
+ import { z as z240 } from "zod";
6735
6777
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6736
- var DTOElementPropertyDefinitionOption = z238.object({
6737
- id: z238.string(),
6738
- name: z238.string(),
6778
+ var DTOElementPropertyDefinitionOption = z240.object({
6779
+ id: z240.string(),
6780
+ name: z240.string(),
6739
6781
  backgroundColor: DTOColorTokenInlineData.optional()
6740
6782
  });
6741
- var DTOElementPropertyDefinition = z238.object({
6742
- id: z238.string(),
6743
- designSystemVersionId: z238.string(),
6783
+ var DTOElementPropertyDefinition = z240.object({
6784
+ id: z240.string(),
6785
+ designSystemVersionId: z240.string(),
6744
6786
  meta: DTOObjectMeta,
6745
- persistentId: z238.string(),
6787
+ persistentId: z240.string(),
6746
6788
  type: ElementPropertyTypeSchema,
6747
6789
  targetElementType: ElementPropertyTargetType,
6748
- codeName: z238.string().regex(CODE_NAME_REGEX2),
6749
- options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
6750
- linkElementType: nullishToOptional(ElementPropertyLinkType)
6790
+ codeName: z240.string().regex(CODE_NAME_REGEX2),
6791
+ options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
6792
+ linkElementType: nullishToOptional(ElementPropertyLinkType),
6793
+ isImmutable: z240.boolean(),
6794
+ immutablePropertyType: ElementPropertyImmutableType.optional()
6751
6795
  });
6752
- var DTOElementPropertyDefinitionListResponse = z238.object({
6753
- definitions: z238.array(DTOElementPropertyDefinition)
6796
+ var DTOElementPropertyDefinitionListResponse = z240.object({
6797
+ definitions: z240.array(DTOElementPropertyDefinition)
6754
6798
  });
6755
- var DTOElementPropertyDefinitionResponse = z238.object({
6799
+ var DTOElementPropertyDefinitionResponse = z240.object({
6756
6800
  definition: DTOElementPropertyDefinition
6757
6801
  });
6758
- var DTOElementPropertyDefinitionCreatePayload = z238.object({
6802
+ var DTOElementPropertyDefinitionCreatePayload = z240.object({
6759
6803
  meta: DTOObjectMeta,
6760
- persistentId: z238.string(),
6804
+ persistentId: z240.string(),
6761
6805
  type: ElementPropertyTypeSchema,
6762
6806
  targetElementType: ElementPropertyTargetType,
6763
- codeName: z238.string().regex(CODE_NAME_REGEX2),
6764
- options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
6807
+ codeName: z240.string().regex(CODE_NAME_REGEX2),
6808
+ options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
6765
6809
  linkElementType: nullishToOptional(ElementPropertyLinkType),
6766
- columnWidth: z238.number().max(1024).optional()
6810
+ columnWidth: z240.number().max(1024).optional()
6767
6811
  });
6768
- var DTOElementPropertyDefinitionUpdatePayload = z238.object({
6812
+ var DTOElementPropertyDefinitionUpdatePayload = z240.object({
6769
6813
  meta: DTOObjectMeta.optional(),
6770
- codeName: z238.string().regex(CODE_NAME_REGEX2).optional(),
6771
- options: z238.array(DTOElementPropertyDefinitionOption).optional()
6814
+ codeName: z240.string().regex(CODE_NAME_REGEX2).optional(),
6815
+ options: z240.array(DTOElementPropertyDefinitionOption).optional()
6772
6816
  });
6773
6817
 
6774
6818
  // src/api/dto/elements/properties/property-values.ts
6775
- import { z as z239 } from "zod";
6776
- var DTOElementPropertyValue = z239.object({
6777
- id: z239.string(),
6778
- designSystemVersionId: z239.string(),
6779
- definitionId: z239.string(),
6780
- targetElementId: z239.string(),
6781
- value: z239.union([z239.string(), z239.number(), z239.boolean()]).optional(),
6782
- valuePreview: z239.string().optional()
6783
- });
6784
- var DTOElementPropertyValueListResponse = z239.object({
6785
- values: z239.array(DTOElementPropertyValue)
6786
- });
6787
- var DTOElementPropertyValueResponse = z239.object({
6819
+ import { z as z241 } from "zod";
6820
+ var DTOElementPropertyValue = z241.object({
6821
+ id: z241.string(),
6822
+ designSystemVersionId: z241.string(),
6823
+ definitionId: z241.string(),
6824
+ targetElementId: z241.string(),
6825
+ value: z241.union([z241.string(), z241.number(), z241.boolean()]).optional(),
6826
+ valuePreview: z241.string().optional()
6827
+ });
6828
+ var DTOElementPropertyValueListResponse = z241.object({
6829
+ values: z241.array(DTOElementPropertyValue)
6830
+ });
6831
+ var DTOElementPropertyValueResponse = z241.object({
6788
6832
  value: DTOElementPropertyValue
6789
6833
  });
6790
- var DTOElementPropertyValueUpsertPaylod = z239.object({
6791
- definitionId: z239.string(),
6792
- targetElementId: z239.string(),
6793
- value: z239.string().or(z239.number()).or(z239.boolean())
6834
+ var DTOElementPropertyValueUpsertPaylod = z241.object({
6835
+ definitionId: z241.string(),
6836
+ targetElementId: z241.string(),
6837
+ value: z241.string().or(z241.number()).or(z241.boolean())
6794
6838
  });
6795
6839
 
6796
6840
  // src/api/dto/elements/elements-action-v2.ts
6797
- import { z as z240 } from "zod";
6798
- var DTOElementActionOutput = z240.discriminatedUnion("type", [
6841
+ import { z as z242 } from "zod";
6842
+ var DTOElementActionOutput = z242.discriminatedUnion("type", [
6799
6843
  // Documentation pages
6800
6844
  DTODocumentationPageCreateActionOutputV2,
6801
6845
  DTODocumentationPageUpdateActionOutputV2,
@@ -6818,7 +6862,7 @@ var DTOElementActionOutput = z240.discriminatedUnion("type", [
6818
6862
  // Approvals
6819
6863
  DTODocumentationPageApprovalStateChangeActionOutput
6820
6864
  ]);
6821
- var DTOElementActionInput = z240.discriminatedUnion("type", [
6865
+ var DTOElementActionInput = z242.discriminatedUnion("type", [
6822
6866
  // Documentation pages
6823
6867
  DTODocumentationPageCreateActionInputV2,
6824
6868
  DTODocumentationPageUpdateActionInputV2,
@@ -6843,80 +6887,80 @@ var DTOElementActionInput = z240.discriminatedUnion("type", [
6843
6887
  ]);
6844
6888
 
6845
6889
  // src/api/dto/elements/get-elements-v2.ts
6846
- import { z as z241 } from "zod";
6847
- var DTOElementsGetTypeFilter = z241.enum(["FigmaNode"]);
6848
- var DTOElementsGetQuerySchema = z241.object({
6849
- types: z241.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6890
+ import { z as z243 } from "zod";
6891
+ var DTOElementsGetTypeFilter = z243.enum(["FigmaNode"]);
6892
+ var DTOElementsGetQuerySchema = z243.object({
6893
+ types: z243.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6850
6894
  });
6851
- var DTOElementsGetOutput = z241.object({
6852
- figmaNodes: z241.array(DTOFigmaNode).optional()
6895
+ var DTOElementsGetOutput = z243.object({
6896
+ figmaNodes: z243.array(DTOFigmaNode).optional()
6853
6897
  });
6854
6898
 
6855
6899
  // src/api/dto/figma-components/assets/download.ts
6856
- import { z as z242 } from "zod";
6857
- var DTOAssetRenderConfiguration = z242.object({
6858
- prefix: z242.string().optional(),
6859
- suffix: z242.string().optional(),
6860
- scale: z242.enum(["x1", "x2", "x3", "x4"]),
6861
- format: z242.enum(["png", "pdf", "svg"])
6862
- });
6863
- var DTORenderedAssetFile = z242.object({
6864
- assetId: z242.string(),
6865
- fileName: z242.string(),
6866
- sourceUrl: z242.string(),
6900
+ import { z as z244 } from "zod";
6901
+ var DTOAssetRenderConfiguration = z244.object({
6902
+ prefix: z244.string().optional(),
6903
+ suffix: z244.string().optional(),
6904
+ scale: z244.enum(["x1", "x2", "x3", "x4"]),
6905
+ format: z244.enum(["png", "pdf", "svg"])
6906
+ });
6907
+ var DTORenderedAssetFile = z244.object({
6908
+ assetId: z244.string(),
6909
+ fileName: z244.string(),
6910
+ sourceUrl: z244.string(),
6867
6911
  settings: DTOAssetRenderConfiguration,
6868
- originalName: z242.string()
6912
+ originalName: z244.string()
6869
6913
  });
6870
- var DTODownloadAssetsRequest = z242.object({
6871
- persistentIds: z242.array(z242.string().uuid()).optional(),
6914
+ var DTODownloadAssetsRequest = z244.object({
6915
+ persistentIds: z244.array(z244.string().uuid()).optional(),
6872
6916
  settings: DTOAssetRenderConfiguration.array()
6873
6917
  });
6874
- var DTODownloadAssetsResponse = z242.object({
6918
+ var DTODownloadAssetsResponse = z244.object({
6875
6919
  items: DTORenderedAssetFile.array()
6876
6920
  });
6877
6921
 
6878
6922
  // src/api/dto/liveblocks/auth-response.ts
6879
- import { z as z243 } from "zod";
6880
- var DTOLiveblocksAuthResponse = z243.object({
6881
- token: z243.string()
6923
+ import { z as z245 } from "zod";
6924
+ var DTOLiveblocksAuthResponse = z245.object({
6925
+ token: z245.string()
6882
6926
  });
6883
6927
 
6884
6928
  // src/api/dto/themes/override.ts
6885
- import { z as z244 } from "zod";
6929
+ import { z as z246 } from "zod";
6886
6930
  var DTOThemeOverride = DesignTokenTypedData.and(
6887
- z244.object({
6888
- tokenPersistentId: z244.string(),
6931
+ z246.object({
6932
+ tokenPersistentId: z246.string(),
6889
6933
  origin: ThemeOverrideOrigin.optional()
6890
6934
  })
6891
6935
  );
6892
6936
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
6893
- z244.object({
6894
- tokenPersistentId: z244.string()
6937
+ z246.object({
6938
+ tokenPersistentId: z246.string()
6895
6939
  })
6896
6940
  );
6897
6941
 
6898
6942
  // src/api/dto/themes/theme.ts
6899
- import { z as z245 } from "zod";
6900
- var DTOTheme = z245.object({
6901
- id: z245.string(),
6902
- persistentId: z245.string(),
6903
- designSystemVersionId: z245.string(),
6904
- brandId: z245.string(),
6943
+ import { z as z247 } from "zod";
6944
+ var DTOTheme = z247.object({
6945
+ id: z247.string(),
6946
+ persistentId: z247.string(),
6947
+ designSystemVersionId: z247.string(),
6948
+ brandId: z247.string(),
6905
6949
  meta: ObjectMeta,
6906
- codeName: z245.string(),
6950
+ codeName: z247.string(),
6907
6951
  overrides: DTOThemeOverride.array()
6908
6952
  });
6909
- var DTOThemeResponse = z245.object({
6953
+ var DTOThemeResponse = z247.object({
6910
6954
  theme: DTOTheme
6911
6955
  });
6912
- var DTOThemeListResponse = z245.object({
6956
+ var DTOThemeListResponse = z247.object({
6913
6957
  themes: DTOTheme.array()
6914
6958
  });
6915
- var DTOThemeCreatePayload = z245.object({
6959
+ var DTOThemeCreatePayload = z247.object({
6916
6960
  meta: ObjectMeta,
6917
- persistentId: z245.string(),
6918
- brandId: z245.string(),
6919
- codeName: z245.string(),
6961
+ persistentId: z247.string(),
6962
+ brandId: z247.string(),
6963
+ codeName: z247.string(),
6920
6964
  overrides: DTOThemeOverride.array()
6921
6965
  });
6922
6966
 
@@ -7006,6 +7050,40 @@ var BrandsEndpoint = class {
7006
7050
  }
7007
7051
  };
7008
7052
 
7053
+ // src/api/endpoints/design-system/versions/components.ts
7054
+ import { z as z248 } from "zod";
7055
+ var DesignSystemComponentEndpoint = class {
7056
+ constructor(requestExecutor) {
7057
+ this.requestExecutor = requestExecutor;
7058
+ }
7059
+ async create(dsId, vId, body) {
7060
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z248.any(), {
7061
+ body,
7062
+ method: "POST"
7063
+ });
7064
+ }
7065
+ };
7066
+
7067
+ // src/api/endpoints/design-system/versions/elements-actions.ts
7068
+ var ElementsActionsEndpoint = class {
7069
+ constructor(requestExecutor) {
7070
+ this.requestExecutor = requestExecutor;
7071
+ }
7072
+ async createDocPage(dsId, vId, input) {
7073
+ return this.requestExecutor.json(
7074
+ `/design-systems/${dsId}/versions/${vId}/elements-action`,
7075
+ DTOElementActionOutput,
7076
+ {
7077
+ body: {
7078
+ type: "DocumentationPageCreate",
7079
+ input
7080
+ },
7081
+ method: "POST"
7082
+ }
7083
+ );
7084
+ }
7085
+ };
7086
+
7009
7087
  // src/api/endpoints/design-system/versions/import-jobs.ts
7010
7088
  var ImportJobsEndpoint = class {
7011
7089
  constructor(requestExecutor) {
@@ -7020,7 +7098,7 @@ var ImportJobsEndpoint = class {
7020
7098
  };
7021
7099
 
7022
7100
  // src/api/endpoints/design-system/versions/overrides.ts
7023
- import { z as z246 } from "zod";
7101
+ import { z as z249 } from "zod";
7024
7102
  var OverridesEndpoint = class {
7025
7103
  constructor(requestExecutor) {
7026
7104
  this.requestExecutor = requestExecutor;
@@ -7028,7 +7106,7 @@ var OverridesEndpoint = class {
7028
7106
  create(dsId, versionId, themeId, body) {
7029
7107
  return this.requestExecutor.json(
7030
7108
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
7031
- z246.any(),
7109
+ z249.any(),
7032
7110
  {
7033
7111
  method: "POST",
7034
7112
  body
@@ -7038,7 +7116,7 @@ var OverridesEndpoint = class {
7038
7116
  };
7039
7117
 
7040
7118
  // src/api/endpoints/design-system/versions/property-definitions.ts
7041
- import { z as z247 } from "zod";
7119
+ import { z as z250 } from "zod";
7042
7120
  var ElementPropertyDefinitionsEndpoint = class {
7043
7121
  constructor(requestExecutor) {
7044
7122
  this.requestExecutor = requestExecutor;
@@ -7066,7 +7144,7 @@ var ElementPropertyDefinitionsEndpoint = class {
7066
7144
  delete(designSystemId, versionId, defId) {
7067
7145
  return this.requestExecutor.json(
7068
7146
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7069
- z247.any(),
7147
+ z250.any(),
7070
7148
  { method: "DELETE" }
7071
7149
  );
7072
7150
  }
@@ -7105,7 +7183,7 @@ var VersionStatsEndpoint = class {
7105
7183
  };
7106
7184
 
7107
7185
  // src/api/endpoints/design-system/versions/themes.ts
7108
- import { z as z248 } from "zod";
7186
+ import { z as z251 } from "zod";
7109
7187
  var ThemesEndpoint = class {
7110
7188
  constructor(requestExecutor) {
7111
7189
  this.requestExecutor = requestExecutor;
@@ -7128,7 +7206,7 @@ var ThemesEndpoint = class {
7128
7206
  });
7129
7207
  }
7130
7208
  delete(dsId, versionId, themeId) {
7131
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z248.any(), {
7209
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z251.any(), {
7132
7210
  method: "DELETE"
7133
7211
  });
7134
7212
  }
@@ -7195,40 +7273,6 @@ var TokensEndpoint = class {
7195
7273
  }
7196
7274
  };
7197
7275
 
7198
- // src/api/endpoints/design-system/versions/components.ts
7199
- import { z as z249 } from "zod";
7200
- var DesignSystemComponentEndpoint = class {
7201
- constructor(requestExecutor) {
7202
- this.requestExecutor = requestExecutor;
7203
- }
7204
- async create(dsId, vId, body) {
7205
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
7206
- body,
7207
- method: "POST"
7208
- });
7209
- }
7210
- };
7211
-
7212
- // src/api/endpoints/design-system/versions/elements-actions.ts
7213
- var ElementsActionsEndpoint = class {
7214
- constructor(requestExecutor) {
7215
- this.requestExecutor = requestExecutor;
7216
- }
7217
- async createDocPage(dsId, vId, input) {
7218
- return this.requestExecutor.json(
7219
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7220
- DTOElementActionOutput,
7221
- {
7222
- body: {
7223
- type: "DocumentationPageCreate",
7224
- input
7225
- },
7226
- method: "POST"
7227
- }
7228
- );
7229
- }
7230
- };
7231
-
7232
7276
  // src/api/endpoints/design-system/versions/versions.ts
7233
7277
  var DesignSystemVersionsEndpoint = class {
7234
7278
  constructor(requestExecutor) {
@@ -7299,7 +7343,7 @@ var DesignSystemContactsEndpoint = class {
7299
7343
  };
7300
7344
 
7301
7345
  // src/api/endpoints/design-system/design-systems.ts
7302
- import { z as z251 } from "zod";
7346
+ import { z as z253 } from "zod";
7303
7347
 
7304
7348
  // src/api/endpoints/design-system/members.ts
7305
7349
  var DesignSystemMembersEndpoint = class {
@@ -7320,7 +7364,7 @@ var DesignSystemMembersEndpoint = class {
7320
7364
  };
7321
7365
 
7322
7366
  // src/api/endpoints/design-system/sources.ts
7323
- import { z as z250 } from "zod";
7367
+ import { z as z252 } from "zod";
7324
7368
  var DesignSystemSourcesEndpoint = class {
7325
7369
  constructor(requestExecutor) {
7326
7370
  this.requestExecutor = requestExecutor;
@@ -7329,7 +7373,7 @@ var DesignSystemSourcesEndpoint = class {
7329
7373
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
7330
7374
  }
7331
7375
  delete(dsId, sourceId) {
7332
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z250.any(), { method: "DELETE" });
7376
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z252.any(), { method: "DELETE" });
7333
7377
  }
7334
7378
  };
7335
7379
 
@@ -7358,7 +7402,7 @@ var DesignSystemsEndpoint = class {
7358
7402
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
7359
7403
  }
7360
7404
  delete(dsId) {
7361
- return this.requestExecutor.json(`/design-systems/${dsId}`, z251.any(), { method: "DELETE" });
7405
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z253.any(), { method: "DELETE" });
7362
7406
  }
7363
7407
  update(dsId, body) {
7364
7408
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -7402,7 +7446,7 @@ var WorkspaceInvitationsEndpoint = class {
7402
7446
  };
7403
7447
 
7404
7448
  // src/api/endpoints/workspaces/workspace-members.ts
7405
- import { z as z252 } from "zod";
7449
+ import { z as z254 } from "zod";
7406
7450
  var WorkspaceMembersEndpoint = class {
7407
7451
  constructor(requestExecutor) {
7408
7452
  this.requestExecutor = requestExecutor;
@@ -7419,7 +7463,7 @@ var WorkspaceMembersEndpoint = class {
7419
7463
  });
7420
7464
  }
7421
7465
  invite(workspaceId, body) {
7422
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z252.any(), { method: "POST", body });
7466
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z254.any(), { method: "POST", body });
7423
7467
  }
7424
7468
  delete(workspaceId, userId) {
7425
7469
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -7429,7 +7473,7 @@ var WorkspaceMembersEndpoint = class {
7429
7473
  };
7430
7474
 
7431
7475
  // src/api/endpoints/workspaces/workspaces.ts
7432
- import { z as z253 } from "zod";
7476
+ import { z as z255 } from "zod";
7433
7477
  var WorkspacesEndpoint = class {
7434
7478
  constructor(requestExecutor) {
7435
7479
  this.requestExecutor = requestExecutor;
@@ -7452,10 +7496,10 @@ var WorkspacesEndpoint = class {
7452
7496
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
7453
7497
  }
7454
7498
  delete(workspaceId) {
7455
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z253.any(), { method: "DELETE" });
7499
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z255.any(), { method: "DELETE" });
7456
7500
  }
7457
7501
  subscription(workspaceId) {
7458
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z253.any(), { method: "GET" });
7502
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z255.any(), { method: "GET" });
7459
7503
  }
7460
7504
  };
7461
7505
 
@@ -7536,9 +7580,9 @@ ${bodyText}`,
7536
7580
 
7537
7581
  // src/api/transport/request-executor.ts
7538
7582
  import fetch from "node-fetch";
7539
- import { z as z254 } from "zod";
7540
- var ResponseWrapper = z254.object({
7541
- result: z254.record(z254.any())
7583
+ import { z as z256 } from "zod";
7584
+ var ResponseWrapper = z256.object({
7585
+ result: z256.record(z256.any())
7542
7586
  });
7543
7587
  var RequestExecutor = class {
7544
7588
  constructor(testServerConfig) {
@@ -7669,7 +7713,7 @@ function generateHash(input, debug = false) {
7669
7713
  }
7670
7714
 
7671
7715
  // src/yjs/design-system-content/documentation-hierarchy.ts
7672
- import { z as z255 } from "zod";
7716
+ import { z as z257 } from "zod";
7673
7717
 
7674
7718
  // src/yjs/version-room/base.ts
7675
7719
  var VersionRoomBaseYDoc = class {
@@ -8199,24 +8243,24 @@ var FrontendVersionRoomYDoc = class {
8199
8243
  };
8200
8244
 
8201
8245
  // src/yjs/design-system-content/documentation-hierarchy.ts
8202
- var DocumentationHierarchySettings = z255.object({
8203
- routingVersion: z255.string(),
8204
- isDraftFeatureAdopted: z255.boolean(),
8205
- isApprovalFeatureEnabled: z255.boolean(),
8206
- approvalRequiredForPublishing: z255.boolean()
8246
+ var DocumentationHierarchySettings = z257.object({
8247
+ routingVersion: z257.string(),
8248
+ isDraftFeatureAdopted: z257.boolean(),
8249
+ isApprovalFeatureEnabled: z257.boolean(),
8250
+ approvalRequiredForPublishing: z257.boolean()
8207
8251
  });
8208
8252
  function yjsToDocumentationHierarchy(doc) {
8209
8253
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
8210
8254
  }
8211
8255
 
8212
8256
  // src/yjs/design-system-content/item-configuration.ts
8213
- import { z as z256 } from "zod";
8214
- var DTODocumentationPageRoomHeaderData = z256.object({
8215
- title: z256.string(),
8257
+ import { z as z258 } from "zod";
8258
+ var DTODocumentationPageRoomHeaderData = z258.object({
8259
+ title: z258.string(),
8216
8260
  configuration: DTODocumentationItemConfigurationV2
8217
8261
  });
8218
- var DTODocumentationPageRoomHeaderDataUpdate = z256.object({
8219
- title: z256.string().optional(),
8262
+ var DTODocumentationPageRoomHeaderDataUpdate = z258.object({
8263
+ title: z258.string().optional(),
8220
8264
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
8221
8265
  });
8222
8266
  function itemConfigurationToYjs(yDoc, item) {
@@ -8267,7 +8311,7 @@ function yjsToItemConfiguration(yDoc) {
8267
8311
  header: rawHeader
8268
8312
  };
8269
8313
  return {
8270
- title: z256.string().parse(title),
8314
+ title: z258.string().parse(title),
8271
8315
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
8272
8316
  };
8273
8317
  }
@@ -8277,9 +8321,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
8277
8321
  var PageSectionEditorModel = PageSectionEditorModelV2;
8278
8322
 
8279
8323
  // src/yjs/docs-editor/model/page.ts
8280
- import { z as z257 } from "zod";
8281
- var DocumentationPageEditorModel = z257.object({
8282
- blocks: z257.array(DocumentationPageContentItem)
8324
+ import { z as z259 } from "zod";
8325
+ var DocumentationPageEditorModel = z259.object({
8326
+ blocks: z259.array(DocumentationPageContentItem)
8283
8327
  });
8284
8328
 
8285
8329
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11800,7 +11844,7 @@ var blocks = [
11800
11844
 
11801
11845
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11802
11846
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11803
- import { z as z258 } from "zod";
11847
+ import { z as z260 } from "zod";
11804
11848
  function yDocToPage(yDoc, definitions) {
11805
11849
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11806
11850
  }
@@ -11880,7 +11924,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11880
11924
  return null;
11881
11925
  return {
11882
11926
  id,
11883
- title: getProsemirrorAttribute(prosemirrorNode, "title", z258.string()) ?? "",
11927
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z260.string()) ?? "",
11884
11928
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11885
11929
  };
11886
11930
  }
@@ -11915,7 +11959,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11915
11959
  });
11916
11960
  }
11917
11961
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11918
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z258.string());
11962
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z260.string());
11919
11963
  if (!definitionId) {
11920
11964
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11921
11965
  return [];
@@ -11957,7 +12001,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11957
12001
  if (!id)
11958
12002
  return null;
11959
12003
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11960
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z258.string().optional()));
12004
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z260.string().optional()));
11961
12005
  return {
11962
12006
  id,
11963
12007
  type: "Block",
@@ -12085,10 +12129,10 @@ function parseRichTextAttribute(mark) {
12085
12129
  return null;
12086
12130
  }
12087
12131
  function parseProsemirrorLink(mark) {
12088
- const href = getProsemirrorAttribute(mark, "href", z258.string().optional());
12132
+ const href = getProsemirrorAttribute(mark, "href", z260.string().optional());
12089
12133
  if (!href)
12090
12134
  return null;
12091
- const target = getProsemirrorAttribute(mark, "target", z258.string().optional());
12135
+ const target = getProsemirrorAttribute(mark, "target", z260.string().optional());
12092
12136
  const openInNewTab = target === "_blank";
12093
12137
  if (href.startsWith("@")) {
12094
12138
  return {
@@ -12107,10 +12151,10 @@ function parseProsemirrorLink(mark) {
12107
12151
  }
12108
12152
  }
12109
12153
  function parseProsemirrorCommentHighlight(mark) {
12110
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z258.string().optional());
12154
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z260.string().optional());
12111
12155
  if (!highlightId)
12112
12156
  return null;
12113
- const isResolved = getProsemirrorAttribute(mark, "resolved", z258.boolean().optional()) ?? false;
12157
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z260.boolean().optional()) ?? false;
12114
12158
  return {
12115
12159
  type: "Comment",
12116
12160
  commentHighlightId: highlightId,
@@ -12122,7 +12166,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
12122
12166
  if (!id)
12123
12167
  return null;
12124
12168
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12125
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z258.boolean().optional()) !== false;
12169
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z260.boolean().optional()) !== false;
12126
12170
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
12127
12171
  if (!tableChild) {
12128
12172
  return emptyTable(id, variantId, 0);
@@ -12169,9 +12213,9 @@ function parseAsTableCell(prosemirrorNode) {
12169
12213
  const id = getProsemirrorBlockId(prosemirrorNode);
12170
12214
  if (!id)
12171
12215
  return null;
12172
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z258.string().optional());
12216
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z260.string().optional());
12173
12217
  let columnWidth;
12174
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z258.array(z258.number()).nullish());
12218
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z260.array(z260.number()).nullish());
12175
12219
  if (columnWidthArray) {
12176
12220
  columnWidth = roundDimension(columnWidthArray[0]);
12177
12221
  }
@@ -12209,7 +12253,7 @@ function parseAsTableNode(prosemirrorNode) {
12209
12253
  value: parseRichText(prosemirrorNode.content ?? [])
12210
12254
  };
12211
12255
  case "image":
12212
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z258.string());
12256
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
12213
12257
  if (!items)
12214
12258
  return null;
12215
12259
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -12329,7 +12373,7 @@ function definitionExpectsPlaceholderItem(definition) {
12329
12373
  );
12330
12374
  }
12331
12375
  function parseBlockItems(prosemirrorNode, definition) {
12332
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z258.string());
12376
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
12333
12377
  if (!itemsString)
12334
12378
  return null;
12335
12379
  const itemsJson = JSON.parse(itemsString);
@@ -12341,18 +12385,18 @@ function parseBlockItems(prosemirrorNode, definition) {
12341
12385
  }
12342
12386
  function parseAppearance(prosemirrorNode) {
12343
12387
  let appearance = {};
12344
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z258.string().optional());
12388
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z260.string().optional());
12345
12389
  if (rawAppearanceString) {
12346
12390
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
12347
12391
  if (parsedAppearance.success) {
12348
12392
  appearance = parsedAppearance.data;
12349
12393
  }
12350
12394
  }
12351
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z258.number().optional());
12395
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z260.number().optional());
12352
12396
  if (columns) {
12353
12397
  appearance.numberOfColumns = columns;
12354
12398
  }
12355
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z258.string().optional());
12399
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z260.string().optional());
12356
12400
  if (backgroundColor) {
12357
12401
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
12358
12402
  if (parsedColor.success) {
@@ -12447,13 +12491,13 @@ function valueSchemaForPropertyType(type) {
12447
12491
  }
12448
12492
  }
12449
12493
  function getProsemirrorBlockId(prosemirrorNode) {
12450
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z258.string());
12494
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z260.string());
12451
12495
  if (!id)
12452
12496
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
12453
12497
  return id;
12454
12498
  }
12455
12499
  function getProsemirrorBlockVariantId(prosemirrorNode) {
12456
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z258.string()));
12500
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z260.string()));
12457
12501
  }
12458
12502
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
12459
12503
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -12548,6 +12592,7 @@ export {
12548
12592
  DTODeleteDocumentationTabGroupInput,
12549
12593
  DTODesignElementsDataDiffResponse,
12550
12594
  DTODesignSystem,
12595
+ DTODesignSystemComponentCreateInput,
12551
12596
  DTODesignSystemContactsResponse,
12552
12597
  DTODesignSystemCreateInput,
12553
12598
  DTODesignSystemInvitation,
@@ -12629,6 +12674,10 @@ export {
12629
12674
  DTODocumentationPageV2,
12630
12675
  DTODocumentationPublishMetadata,
12631
12676
  DTODocumentationPublishTypeQueryParams,
12677
+ DTODocumentationStructure,
12678
+ DTODocumentationStructureGroupItem,
12679
+ DTODocumentationStructureItem,
12680
+ DTODocumentationStructurePageItem,
12632
12681
  DTODocumentationTabCreateActionInputV2,
12633
12682
  DTODocumentationTabCreateActionOutputV2,
12634
12683
  DTODocumentationTabGroupDeleteActionInputV2,
@@ -12772,6 +12821,7 @@ export {
12772
12821
  DTOWorkspaceResponse,
12773
12822
  DTOWorkspaceRole,
12774
12823
  DesignSystemBffEndpoint,
12824
+ DesignSystemComponentEndpoint,
12775
12825
  DesignSystemContactsEndpoint,
12776
12826
  DesignSystemMembersEndpoint,
12777
12827
  DesignSystemSourcesEndpoint,
@@ -12783,6 +12833,7 @@ export {
12783
12833
  DocumentationPageV1DTO,
12784
12834
  ElementPropertyDefinitionsEndpoint,
12785
12835
  ElementPropertyValuesEndpoint,
12836
+ ElementsActionsEndpoint,
12786
12837
  ExportersEndpoint,
12787
12838
  FormattedCollections,
12788
12839
  FrontendVersionRoomYDoc,