@supernova-studio/client 0.58.4 → 0.58.6

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