@supernova-studio/client 0.58.1 → 0.58.2

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
@@ -5133,49 +5133,56 @@ var DTOColorTokenInlineData = z177.object({
5133
5133
  value: z177.string().regex(/^#[a-f0-9]{6,8}$/)
5134
5134
  });
5135
5135
 
5136
- // src/api/dto/aux/pagination.ts
5136
+ // src/api/dto/aux/meta.ts
5137
5137
  import { z as z178 } from "zod";
5138
- var DTOPagination = z178.object({
5139
- limit: z178.string().optional(),
5140
- offset: z178.string().optional()
5138
+ var DTOObjectMeta = z178.object({
5139
+ name: z178.string().max(512),
5140
+ description: z178.string().max(2048).optional()
5141
+ });
5142
+
5143
+ // src/api/dto/aux/pagination.ts
5144
+ import { z as z179 } from "zod";
5145
+ var DTOPagination = z179.object({
5146
+ limit: z179.string().optional(),
5147
+ offset: z179.string().optional()
5141
5148
  });
5142
5149
 
5143
5150
  // src/api/dto/bff/app-bootstrap-data.ts
5144
- import { z as z211 } from "zod";
5151
+ import { z as z212 } from "zod";
5145
5152
 
5146
5153
  // src/api/dto/design-systems/brand.ts
5147
- import { z as z179 } from "zod";
5148
- var DTOBrand = z179.object({
5149
- id: z179.string(),
5150
- designSystemVersionId: z179.string(),
5151
- persistentId: z179.string(),
5154
+ import { z as z180 } from "zod";
5155
+ var DTOBrand = z180.object({
5156
+ id: z180.string(),
5157
+ designSystemVersionId: z180.string(),
5158
+ persistentId: z180.string(),
5152
5159
  meta: ObjectMeta
5153
5160
  });
5154
- var DTOBrandGetResponse = z179.object({ brand: DTOBrand });
5155
- var DTOBrandCreateResponse = z179.object({
5161
+ var DTOBrandGetResponse = z180.object({ brand: DTOBrand });
5162
+ var DTOBrandCreateResponse = z180.object({
5156
5163
  brand: DTOBrand
5157
5164
  });
5158
- var DTOBrandsListResponse = z179.object({ brands: z179.array(DTOBrand) });
5165
+ var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
5159
5166
 
5160
5167
  // src/api/dto/design-systems/contact.ts
5161
- import { z as z183 } from "zod";
5168
+ import { z as z184 } from "zod";
5162
5169
 
5163
5170
  // src/api/dto/users/authenticated-user.ts
5164
- import { z as z181 } from "zod";
5171
+ import { z as z182 } from "zod";
5165
5172
 
5166
5173
  // src/api/dto/users/user.ts
5167
- import { z as z180 } from "zod";
5168
- var DTOUserProfile = z180.object({
5169
- name: z180.string(),
5170
- nickname: z180.string().optional(),
5171
- avatar: z180.string().optional()
5172
- });
5173
- var DTOUser = z180.object({
5174
- id: z180.string(),
5175
- email: z180.string(),
5174
+ import { z as z181 } from "zod";
5175
+ var DTOUserProfile = z181.object({
5176
+ name: z181.string(),
5177
+ nickname: z181.string().optional(),
5178
+ avatar: z181.string().optional()
5179
+ });
5180
+ var DTOUser = z181.object({
5181
+ id: z181.string(),
5182
+ email: z181.string(),
5176
5183
  profile: DTOUserProfile
5177
5184
  });
5178
- var DTOUserGetResponse = z180.object({
5185
+ var DTOUserGetResponse = z181.object({
5179
5186
  user: DTOUser
5180
5187
  });
5181
5188
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5184,146 +5191,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
5184
5191
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5185
5192
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5186
5193
  var DTOUserSource = UserSource;
5187
- var DTOUserOnboarding = z181.object({
5188
- companyName: z181.string().optional(),
5189
- numberOfPeopleInOrg: z181.string().optional(),
5190
- numberOfPeopleInDesignTeam: z181.string().optional(),
5194
+ var DTOUserOnboarding = z182.object({
5195
+ companyName: z182.string().optional(),
5196
+ numberOfPeopleInOrg: z182.string().optional(),
5197
+ numberOfPeopleInDesignTeam: z182.string().optional(),
5191
5198
  department: DTOUserOnboardingDepartment.optional(),
5192
- jobTitle: z181.string().optional(),
5193
- phase: z181.string().optional(),
5199
+ jobTitle: z182.string().optional(),
5200
+ phase: z182.string().optional(),
5194
5201
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5195
- designSystemName: z181.string().optional(),
5196
- defaultDestination: z181.string().optional(),
5197
- isPageDraftOnboardingFinished: z181.boolean().optional()
5202
+ designSystemName: z182.string().optional(),
5203
+ defaultDestination: z182.string().optional(),
5204
+ isPageDraftOnboardingFinished: z182.boolean().optional()
5198
5205
  });
5199
5206
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5200
5207
  onboarding: DTOUserOnboarding.optional()
5201
5208
  });
5202
5209
  var DTOAuthenticatedUser = DTOUser.extend({
5203
5210
  profile: DTOAuthenticatedUserProfile,
5204
- createdAt: z181.coerce.date(),
5205
- loggedOutAt: z181.coerce.date().optional(),
5211
+ createdAt: z182.coerce.date(),
5212
+ loggedOutAt: z182.coerce.date().optional(),
5206
5213
  source: DTOUserSource.optional()
5207
5214
  });
5208
- var DTOAuthenticatedUserResponse = z181.object({
5215
+ var DTOAuthenticatedUserResponse = z182.object({
5209
5216
  user: DTOAuthenticatedUser
5210
5217
  });
5211
5218
 
5212
5219
  // src/api/dto/users/update.ts
5213
- import { z as z182 } from "zod";
5214
- var DTOUserProfileUpdateResponse = z182.object({
5220
+ import { z as z183 } from "zod";
5221
+ var DTOUserProfileUpdateResponse = z183.object({
5215
5222
  user: User
5216
5223
  });
5217
5224
 
5218
5225
  // src/api/dto/design-systems/contact.ts
5219
- var DTODesignSystemContactsResponse = z183.object({
5220
- contacts: z183.object({
5221
- workspace: z183.array(DTOUser),
5222
- designSystem: z183.array(DTOUser)
5226
+ var DTODesignSystemContactsResponse = z184.object({
5227
+ contacts: z184.object({
5228
+ workspace: z184.array(DTOUser),
5229
+ designSystem: z184.array(DTOUser)
5223
5230
  })
5224
5231
  });
5225
5232
 
5226
5233
  // src/api/dto/design-systems/data-source.ts
5227
- import { z as z184 } from "zod";
5228
- var DTODataSourceFigmaFileVersion = z184.object({
5229
- id: z184.string(),
5230
- created_at: z184.coerce.date(),
5231
- label: z184.string(),
5232
- description: z184.string()
5233
- });
5234
- var DTODataSourceFigmaCloud = z184.object({
5235
- fileId: z184.string(),
5234
+ import { z as z185 } from "zod";
5235
+ var DTODataSourceFigmaFileVersion = z185.object({
5236
+ id: z185.string(),
5237
+ created_at: z185.coerce.date(),
5238
+ label: z185.string(),
5239
+ description: z185.string()
5240
+ });
5241
+ var DTODataSourceFigmaCloud = z185.object({
5242
+ fileId: z185.string(),
5236
5243
  state: DataSourceFigmaState,
5237
5244
  autoImportMode: DataSourceAutoImportMode,
5238
- fileThumbnailUrl: z184.string().optional(),
5245
+ fileThumbnailUrl: z185.string().optional(),
5239
5246
  lastImportResult: SourceImportSummary.nullish(),
5240
- lastImportedAt: z184.coerce.date().nullish(),
5247
+ lastImportedAt: z185.coerce.date().nullish(),
5241
5248
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5242
- lastUpdatesCheckedAt: z184.date().nullish(),
5243
- ownerId: z184.string(),
5244
- ownerUserName: z184.string().optional(),
5245
- preferredCredentialId: z184.string().optional(),
5249
+ lastUpdatesCheckedAt: z185.date().nullish(),
5250
+ ownerId: z185.string(),
5251
+ ownerUserName: z185.string().optional(),
5252
+ preferredCredentialId: z185.string().optional(),
5246
5253
  stats: DataSourceStats
5247
5254
  });
5248
- var DTODataSourceFigma = z184.object({
5249
- id: z184.string(),
5250
- type: z184.literal(DataSourceRemoteType.Enum.Figma),
5251
- fileName: z184.string(),
5255
+ var DTODataSourceFigma = z185.object({
5256
+ id: z185.string(),
5257
+ type: z185.literal(DataSourceRemoteType.Enum.Figma),
5258
+ fileName: z185.string(),
5252
5259
  scope: DataSourceFigmaScope,
5253
- brandId: z184.string(),
5254
- themeId: z184.string().nullish(),
5260
+ brandId: z185.string(),
5261
+ themeId: z185.string().nullish(),
5255
5262
  cloud: DTODataSourceFigmaCloud.nullish()
5256
5263
  });
5257
- var DTODataSourceTokenStudio = z184.object({
5258
- id: z184.string(),
5259
- type: z184.literal(DataSourceRemoteType.Enum.TokenStudio),
5260
- fileName: z184.string(),
5261
- brandId: z184.string(),
5262
- themeId: z184.string().nullish(),
5263
- tokenStudio: z184.object({
5264
- settings: z184.object({
5265
- dryRun: z184.boolean(),
5266
- verbose: z184.boolean(),
5267
- preciseCopy: z184.boolean()
5264
+ var DTODataSourceTokenStudio = z185.object({
5265
+ id: z185.string(),
5266
+ type: z185.literal(DataSourceRemoteType.Enum.TokenStudio),
5267
+ fileName: z185.string(),
5268
+ brandId: z185.string(),
5269
+ themeId: z185.string().nullish(),
5270
+ tokenStudio: z185.object({
5271
+ settings: z185.object({
5272
+ dryRun: z185.boolean(),
5273
+ verbose: z185.boolean(),
5274
+ preciseCopy: z185.boolean()
5268
5275
  }),
5269
- connectionName: z184.string(),
5270
- lastImportedAt: z184.coerce.date(),
5271
- lastImportedResults: z184.array(
5272
- z184.object({
5273
- mapping: z184.object({
5274
- tokenSets: z184.array(z184.string()),
5275
- supernovaBrand: z184.string(),
5276
- supernovaTheme: z184.string().optional()
5276
+ connectionName: z185.string(),
5277
+ lastImportedAt: z185.coerce.date(),
5278
+ lastImportedResults: z185.array(
5279
+ z185.object({
5280
+ mapping: z185.object({
5281
+ tokenSets: z185.array(z185.string()),
5282
+ supernovaBrand: z185.string(),
5283
+ supernovaTheme: z185.string().optional()
5277
5284
  }),
5278
- isFailed: z184.boolean(),
5279
- tokensCreated: z184.number(),
5280
- tokensDeleted: z184.number(),
5281
- tokensUpdated: z184.number()
5285
+ isFailed: z185.boolean(),
5286
+ tokensCreated: z185.number(),
5287
+ tokensDeleted: z185.number(),
5288
+ tokensUpdated: z185.number()
5282
5289
  })
5283
5290
  )
5284
5291
  })
5285
5292
  });
5286
- var DTODataSourceFigmaVariablesPlugin = z184.object({
5287
- id: z184.string(),
5288
- type: z184.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5289
- fileName: z184.string(),
5290
- brandId: z184.string(),
5291
- upload: z184.object({
5292
- remoteId: z184.string(),
5293
+ var DTODataSourceFigmaVariablesPlugin = z185.object({
5294
+ id: z185.string(),
5295
+ type: z185.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5296
+ fileName: z185.string(),
5297
+ brandId: z185.string(),
5298
+ upload: z185.object({
5299
+ remoteId: z185.string(),
5293
5300
  remoteSourceType: DataSourceUploadRemoteSource,
5294
- lastImportedAt: z184.coerce.date().optional(),
5301
+ lastImportedAt: z185.coerce.date().optional(),
5295
5302
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5296
- isTokenTypeSplitEnabled: z184.boolean()
5303
+ isTokenTypeSplitEnabled: z185.boolean()
5297
5304
  }),
5298
- figmaVariablesPlugin: z184.object({
5299
- fileId: z184.string(),
5300
- lastImportedAt: z184.coerce.date().optional(),
5305
+ figmaVariablesPlugin: z185.object({
5306
+ fileId: z185.string(),
5307
+ lastImportedAt: z185.coerce.date().optional(),
5301
5308
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5302
- isTokenTypeSplitEnabled: z184.boolean(),
5303
- isCollectionsMigrationCompleted: z184.boolean().default(false)
5309
+ isTokenTypeSplitEnabled: z185.boolean(),
5310
+ isCollectionsMigrationCompleted: z185.boolean().default(false)
5304
5311
  })
5305
5312
  });
5306
- var DTODataSource = z184.discriminatedUnion("type", [
5313
+ var DTODataSource = z185.discriminatedUnion("type", [
5307
5314
  DTODataSourceFigma,
5308
5315
  DTODataSourceFigmaVariablesPlugin,
5309
5316
  DTODataSourceTokenStudio
5310
5317
  ]);
5311
- var DTODataSourcesListResponse = z184.object({
5312
- sources: z184.array(DTODataSource)
5318
+ var DTODataSourcesListResponse = z185.object({
5319
+ sources: z185.array(DTODataSource)
5313
5320
  });
5314
- var DTODataSourceCreationResponse = z184.object({
5321
+ var DTODataSourceCreationResponse = z185.object({
5315
5322
  source: DTODataSource
5316
5323
  });
5317
5324
 
5318
5325
  // src/api/dto/design-systems/design-system.ts
5319
- import { z as z187 } from "zod";
5326
+ import { z as z188 } from "zod";
5320
5327
 
5321
5328
  // src/api/dto/design-systems/members.ts
5322
- import { z as z186 } from "zod";
5329
+ import { z as z187 } from "zod";
5323
5330
 
5324
5331
  // src/api/dto/design-systems/role.ts
5325
- import { z as z185 } from "zod";
5326
- var DTODesignSystemRole = z185.enum([
5332
+ import { z as z186 } from "zod";
5333
+ var DTODesignSystemRole = z186.enum([
5327
5334
  WorkspaceRole.Admin,
5328
5335
  WorkspaceRole.Contributor,
5329
5336
  WorkspaceRole.Creator,
@@ -5331,29 +5338,29 @@ var DTODesignSystemRole = z185.enum([
5331
5338
  ]);
5332
5339
 
5333
5340
  // src/api/dto/design-systems/members.ts
5334
- var DTODesignSystemMember = z186.object({
5335
- userId: z186.string(),
5341
+ var DTODesignSystemMember = z187.object({
5342
+ userId: z187.string(),
5336
5343
  /**
5337
5344
  * Role that the member has in the design system,
5338
5345
  * undefined if set to inherit from workspace
5339
5346
  */
5340
5347
  designSystemRole: DTODesignSystemRole.optional()
5341
5348
  });
5342
- var DTODesignSystemInvitation = z186.object({
5343
- id: z186.string(),
5344
- workspaceInvitationId: z186.string(),
5349
+ var DTODesignSystemInvitation = z187.object({
5350
+ id: z187.string(),
5351
+ workspaceInvitationId: z187.string(),
5345
5352
  /**
5346
5353
  * Role that the invitation has in the design system,
5347
5354
  * undefined if set to inherit from workspace
5348
5355
  */
5349
5356
  designSystemRole: DTODesignSystemRole.optional()
5350
5357
  });
5351
- var DTODesignSystemMemberListResponse = z186.object({
5358
+ var DTODesignSystemMemberListResponse = z187.object({
5352
5359
  members: DTODesignSystemMember.array(),
5353
5360
  invitations: DTODesignSystemInvitation.array()
5354
5361
  });
5355
- var DTODesignSystemMembersUpdateResponse = z186.object({
5356
- ok: z186.literal(true)
5362
+ var DTODesignSystemMembersUpdateResponse = z187.object({
5363
+ ok: z187.literal(true)
5357
5364
  });
5358
5365
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5359
5366
 
@@ -5364,14 +5371,14 @@ var DTODesignSystem = DesignSystem.omit({
5364
5371
  docExporterId: true
5365
5372
  }).extend({
5366
5373
  meta: ObjectMeta,
5367
- docExporterId: z187.string(),
5368
- sources: z187.array(z187.any()),
5369
- isPublic: z187.literal(true),
5374
+ docExporterId: z188.string(),
5375
+ sources: z188.array(z188.any()),
5376
+ isPublic: z188.literal(true),
5370
5377
  /**
5371
5378
  * Whether or not user who is requesting the design system
5372
5379
  * has access to the design system's contents.
5373
5380
  */
5374
- isAvailableToUser: z187.boolean(),
5381
+ isAvailableToUser: z188.boolean(),
5375
5382
  /**
5376
5383
  * @deprecated
5377
5384
  */
@@ -5382,17 +5389,17 @@ var DTODesignSystem = DesignSystem.omit({
5382
5389
  */
5383
5390
  effectiveRole: DTODesignSystemRole.optional()
5384
5391
  });
5385
- var DTODesignSystemResponse = z187.object({
5392
+ var DTODesignSystemResponse = z188.object({
5386
5393
  designSystem: DTODesignSystem
5387
5394
  });
5388
- var DTODesignSystemsListResponse = z187.object({
5395
+ var DTODesignSystemsListResponse = z188.object({
5389
5396
  designSystems: DTODesignSystem.array()
5390
5397
  });
5391
- var DTODesignSystemCreateInput = z187.object({
5392
- workspaceId: z187.string(),
5398
+ var DTODesignSystemCreateInput = z188.object({
5399
+ workspaceId: z188.string(),
5393
5400
  meta: ObjectMeta.optional(),
5394
- name: z187.string().min(2).max(64).optional(),
5395
- description: z187.string().max(1024).optional(),
5401
+ name: z188.string().min(2).max(64).optional(),
5402
+ description: z188.string().max(1024).optional(),
5396
5403
  accessMode: DesignSystemAccessMode.optional(),
5397
5404
  invites: DTODesignSystemMembersUpdatePayload.pick({
5398
5405
  usersToInvite: true,
@@ -5402,25 +5409,25 @@ var DTODesignSystemCreateInput = z187.object({
5402
5409
  });
5403
5410
 
5404
5411
  // src/api/dto/design-systems/elements-diff.ts
5405
- import { z as z188 } from "zod";
5406
- var DTODiffCountBase = z188.object({
5407
- created: z188.number(),
5408
- updated: z188.number(),
5409
- deleted: z188.number()
5412
+ import { z as z189 } from "zod";
5413
+ var DTODiffCountBase = z189.object({
5414
+ created: z189.number(),
5415
+ updated: z189.number(),
5416
+ deleted: z189.number()
5410
5417
  });
5411
- var DTODesignElementsDataDiffResponse = z188.object({
5418
+ var DTODesignElementsDataDiffResponse = z189.object({
5412
5419
  tokens: DTODiffCountBase,
5413
5420
  assets: DTODiffCountBase
5414
5421
  });
5415
5422
 
5416
5423
  // src/api/dto/design-systems/exporter-property.ts
5417
- import { z as z189 } from "zod";
5418
- var DTOExporterProperty = z189.any({});
5419
- var DTOExporterPropertyListResponse = z189.object({ items: z189.array(DTOExporterProperty) });
5424
+ import { z as z190 } from "zod";
5425
+ var DTOExporterProperty = z190.any({});
5426
+ var DTOExporterPropertyListResponse = z190.object({ items: z190.array(DTOExporterProperty) });
5420
5427
 
5421
5428
  // src/api/dto/design-systems/figma-variables.ts
5422
- import { z as z190 } from "zod";
5423
- var DimensionsVariableScopeSchema = z190.enum([
5429
+ import { z as z191 } from "zod";
5430
+ var DimensionsVariableScopeSchema = z191.enum([
5424
5431
  "CORNER_RADIUS",
5425
5432
  "WIDTH_HEIGHT",
5426
5433
  "GAP",
@@ -5434,130 +5441,130 @@ var DimensionsVariableScopeSchema = z190.enum([
5434
5441
  "PARAGRAPH_INDENT",
5435
5442
  "FONT_WEIGHT"
5436
5443
  ]);
5437
- var StringVariableScopeSchema = z190.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5444
+ var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5438
5445
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5439
5446
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5440
- var VariableScope = z190.string();
5441
- var ReferencedVariableOrigin = z190.object({
5442
- name: z190.string(),
5443
- remote: z190.boolean()
5447
+ var VariableScope = z191.string();
5448
+ var ReferencedVariableOrigin = z191.object({
5449
+ name: z191.string(),
5450
+ remote: z191.boolean()
5444
5451
  });
5445
- var RGB = z190.object({
5446
- r: z190.number(),
5447
- g: z190.number(),
5448
- b: z190.number()
5452
+ var RGB = z191.object({
5453
+ r: z191.number(),
5454
+ g: z191.number(),
5455
+ b: z191.number()
5449
5456
  });
5450
5457
  var RGBA = RGB.extend({
5451
- a: z190.number()
5452
- });
5453
- var VariableAlias = z190.object({
5454
- type: z190.literal("VARIABLE_ALIAS"),
5455
- id: z190.string(),
5456
- resolvedValue: z190.boolean().or(z190.number()).or(z190.string()).or(RGBA).or(RGB).optional(),
5457
- referenceOrigin: ReferencedVariableOrigin.optional().or(z190.null())
5458
- });
5459
- var VariableValue = z190.boolean().or(z190.number()).or(z190.string()).or(RGBA).or(RGB).or(VariableAlias);
5460
- var ResolvedVariableType = z190.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5461
- var Variable = z190.object({
5462
- id: z190.string(),
5463
- name: z190.string(),
5464
- key: z190.string(),
5465
- variableCollectionId: z190.string(),
5458
+ a: z191.number()
5459
+ });
5460
+ var VariableAlias = z191.object({
5461
+ type: z191.literal("VARIABLE_ALIAS"),
5462
+ id: z191.string(),
5463
+ resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
5464
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
5465
+ });
5466
+ var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
5467
+ var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5468
+ var Variable = z191.object({
5469
+ id: z191.string(),
5470
+ name: z191.string(),
5471
+ key: z191.string(),
5472
+ variableCollectionId: z191.string(),
5466
5473
  resolvedType: ResolvedVariableType,
5467
- valuesByMode: z190.record(VariableValue),
5468
- remote: z190.boolean(),
5469
- description: z190.string(),
5470
- hiddenFromPublishing: z190.boolean(),
5471
- scopes: z190.array(VariableScope),
5472
- codeSyntax: z190.record(z190.any()).optional()
5473
- });
5474
- var VariableMode = z190.object({
5475
- modeId: z190.string(),
5476
- name: z190.string()
5477
- });
5478
- var Collection2 = z190.object({
5479
- id: z190.string(),
5480
- name: z190.string(),
5481
- modes: z190.array(VariableMode),
5482
- defaultModeId: z190.string(),
5483
- remote: z190.boolean(),
5484
- hiddenFromPublishing: z190.boolean()
5485
- });
5486
- var VariablesMapping = z190.object({
5487
- variableCollections: z190.array(z190.string()).min(1),
5488
- variableMode: z190.string().min(1),
5489
- supernovaBrand: z190.string().min(1),
5490
- supernovaTheme: z190.string().min(1).optional().or(z190.null())
5491
- });
5492
- var FormattedCollections = z190.object({
5493
- variables: z190.record(z190.string(), Variable),
5494
- variableCollections: z190.record(z190.string(), Collection2),
5495
- mappings: z190.array(VariablesMapping).optional(),
5496
- variablesOrder: z190.string().array().optional()
5474
+ valuesByMode: z191.record(VariableValue),
5475
+ remote: z191.boolean(),
5476
+ description: z191.string(),
5477
+ hiddenFromPublishing: z191.boolean(),
5478
+ scopes: z191.array(VariableScope),
5479
+ codeSyntax: z191.record(z191.any()).optional()
5480
+ });
5481
+ var VariableMode = z191.object({
5482
+ modeId: z191.string(),
5483
+ name: z191.string()
5484
+ });
5485
+ var Collection2 = z191.object({
5486
+ id: z191.string(),
5487
+ name: z191.string(),
5488
+ modes: z191.array(VariableMode),
5489
+ defaultModeId: z191.string(),
5490
+ remote: z191.boolean(),
5491
+ hiddenFromPublishing: z191.boolean()
5492
+ });
5493
+ var VariablesMapping = z191.object({
5494
+ variableCollections: z191.array(z191.string()).min(1),
5495
+ variableMode: z191.string().min(1),
5496
+ supernovaBrand: z191.string().min(1),
5497
+ supernovaTheme: z191.string().min(1).optional().or(z191.null())
5498
+ });
5499
+ var FormattedCollections = z191.object({
5500
+ variables: z191.record(z191.string(), Variable),
5501
+ variableCollections: z191.record(z191.string(), Collection2),
5502
+ mappings: z191.array(VariablesMapping).optional(),
5503
+ variablesOrder: z191.string().array().optional()
5497
5504
  });
5498
5505
 
5499
5506
  // src/api/dto/design-systems/import-job.ts
5500
- import { z as z191 } from "zod";
5501
- var DTOImportJob = z191.object({
5502
- id: z191.string(),
5503
- designSystemId: z191.string(),
5504
- designSystemVersionId: z191.string(),
5505
- operation: z191.literal("Import"),
5506
- createdAt: z191.coerce.date(),
5507
- stateChangedAt: z191.coerce.date(),
5507
+ import { z as z192 } from "zod";
5508
+ var DTOImportJob = z192.object({
5509
+ id: z192.string(),
5510
+ designSystemId: z192.string(),
5511
+ designSystemVersionId: z192.string(),
5512
+ operation: z192.literal("Import"),
5513
+ createdAt: z192.coerce.date(),
5514
+ stateChangedAt: z192.coerce.date(),
5508
5515
  state: ImportJobState,
5509
- sourceIds: z191.string().array()
5516
+ sourceIds: z192.string().array()
5510
5517
  });
5511
- var DTOImportJobResponse = z191.object({
5518
+ var DTOImportJobResponse = z192.object({
5512
5519
  job: DTOImportJob
5513
5520
  });
5514
- var DTOBffFigmaImportRequestBody = z191.object({
5515
- type: z191.literal(DataSourceRemoteType.Enum.Figma),
5516
- brandPersistentId: z191.string().optional(),
5517
- fileId: z191.string(),
5521
+ var DTOBffFigmaImportRequestBody = z192.object({
5522
+ type: z192.literal(DataSourceRemoteType.Enum.Figma),
5523
+ brandPersistentId: z192.string().optional(),
5524
+ fileId: z192.string(),
5518
5525
  scope: DataSourceFigmaScope,
5519
5526
  autoImportMode: DataSourceAutoImportMode
5520
5527
  });
5521
- var DTOBffUploadImportRequestBody = z191.object({
5522
- type: z191.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5523
- brandPersistentId: z191.string().optional(),
5524
- sourceName: z191.string().optional(),
5525
- remoteId: z191.string(),
5526
- isTokenTypeSplitEnabled: z191.boolean().optional(),
5527
- payload: z191.any()
5528
+ var DTOBffUploadImportRequestBody = z192.object({
5529
+ type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5530
+ brandPersistentId: z192.string().optional(),
5531
+ sourceName: z192.string().optional(),
5532
+ remoteId: z192.string(),
5533
+ isTokenTypeSplitEnabled: z192.boolean().optional(),
5534
+ payload: z192.any()
5528
5535
  });
5529
- var DTOBffImportRequestBody = z191.discriminatedUnion("type", [
5536
+ var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
5530
5537
  DTOBffFigmaImportRequestBody,
5531
5538
  DTOBffUploadImportRequestBody
5532
5539
  ]);
5533
5540
 
5534
5541
  // src/api/dto/design-systems/stats.ts
5535
- import { z as z192 } from "zod";
5536
- var DTODesignSystemVersionStats = z192.object({
5537
- tokens: z192.number(),
5538
- designSystemComponents: z192.number(),
5539
- assets: z192.number(),
5540
- documentationPages: z192.number()
5542
+ import { z as z193 } from "zod";
5543
+ var DTODesignSystemVersionStats = z193.object({
5544
+ tokens: z193.number(),
5545
+ designSystemComponents: z193.number(),
5546
+ assets: z193.number(),
5547
+ documentationPages: z193.number()
5541
5548
  });
5542
- var DTODesignSystemVersionStatsQuery = z192.object({
5543
- brandId: z192.string().optional()
5549
+ var DTODesignSystemVersionStatsQuery = z193.object({
5550
+ brandId: z193.string().optional()
5544
5551
  });
5545
5552
 
5546
5553
  // src/api/dto/design-systems/version.ts
5547
- import { z as z203 } from "zod";
5554
+ import { z as z204 } from "zod";
5548
5555
 
5549
5556
  // src/api/payloads/design-systems/brand.ts
5550
- import { z as z193 } from "zod";
5551
- var DTOCreateBrandInput = z193.object({
5552
- persistentId: z193.string().uuid(),
5553
- meta: z193.object({
5554
- name: z193.string(),
5555
- description: z193.string()
5557
+ import { z as z194 } from "zod";
5558
+ var DTOCreateBrandInput = z194.object({
5559
+ persistentId: z194.string().uuid(),
5560
+ meta: z194.object({
5561
+ name: z194.string(),
5562
+ description: z194.string()
5556
5563
  })
5557
5564
  });
5558
5565
 
5559
5566
  // src/api/payloads/design-systems/update-design-system.ts
5560
- import { z as z194 } from "zod";
5567
+ import { z as z195 } from "zod";
5561
5568
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5562
5569
  id: true,
5563
5570
  workspaceId: true,
@@ -5569,40 +5576,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5569
5576
  }).extend({
5570
5577
  meta: ObjectMeta.partial().optional()
5571
5578
  });
5572
- var DTODesignSystemUpdateAccessModeInput = z194.object({
5579
+ var DTODesignSystemUpdateAccessModeInput = z195.object({
5573
5580
  accessMode: DesignSystemAccessMode,
5574
- retain: z194.object({
5575
- userIds: z194.string().array(),
5576
- inviteIds: z194.string().array()
5581
+ retain: z195.object({
5582
+ userIds: z195.string().array(),
5583
+ inviteIds: z195.string().array()
5577
5584
  }).optional()
5578
5585
  });
5579
5586
 
5580
5587
  // src/api/payloads/design-systems/version.ts
5581
- import { z as z195 } from "zod";
5582
- var ObjectMeta2 = z195.object({
5583
- name: z195.string().max(150).optional(),
5584
- description: z195.string().max(2e3).optional()
5588
+ import { z as z196 } from "zod";
5589
+ var ObjectMeta2 = z196.object({
5590
+ name: z196.string().max(150).optional(),
5591
+ description: z196.string().max(2e3).optional()
5585
5592
  });
5586
5593
  function validateDesignSystemVersion(version) {
5587
5594
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5588
5595
  return urlCompliantRegex.test(version);
5589
5596
  }
5590
- var DTOCreateVersionInput = z195.object({
5597
+ var DTOCreateVersionInput = z196.object({
5591
5598
  meta: ObjectMeta2,
5592
- version: z195.string().refine(validateDesignSystemVersion, {
5599
+ version: z196.string().refine(validateDesignSystemVersion, {
5593
5600
  message: "Invalid semantic versioning format"
5594
5601
  }),
5595
- changeLog: z195.string().optional()
5602
+ changeLog: z196.string().optional()
5596
5603
  });
5597
- var DTOUpdateVersionInput = z195.object({
5604
+ var DTOUpdateVersionInput = z196.object({
5598
5605
  meta: ObjectMeta2,
5599
- version: z195.string(),
5606
+ version: z196.string(),
5600
5607
  // required for PUT, but not editable
5601
- changeLog: z195.string()
5608
+ changeLog: z196.string()
5602
5609
  });
5603
5610
 
5604
5611
  // src/api/payloads/documentation/block-definitions.ts
5605
- import { z as z196 } from "zod";
5612
+ import { z as z197 } from "zod";
5606
5613
 
5607
5614
  // src/api/dto/documentation/block-definition.ts
5608
5615
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5614,60 +5621,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5614
5621
  var DTOPageBlockDefinition = PageBlockDefinition;
5615
5622
 
5616
5623
  // src/api/payloads/documentation/block-definitions.ts
5617
- var DTOGetBlockDefinitionsOutput = z196.object({
5618
- definitions: z196.array(DTOPageBlockDefinition)
5624
+ var DTOGetBlockDefinitionsOutput = z197.object({
5625
+ definitions: z197.array(DTOPageBlockDefinition)
5619
5626
  });
5620
5627
 
5621
5628
  // src/api/payloads/documentation/design-data-doc-diff.ts
5622
- import { z as z197 } from "zod";
5623
- var DTODocumentationPublishTypeQueryParams = z197.object({
5624
- environment: z197.enum(["Live", "Preview"])
5629
+ import { z as z198 } from "zod";
5630
+ var DTODocumentationPublishTypeQueryParams = z198.object({
5631
+ environment: z198.enum(["Live", "Preview"])
5625
5632
  });
5626
5633
 
5627
5634
  // src/api/payloads/export/pipeline.ts
5628
- import { z as z198 } from "zod";
5629
- var DTOPipelineCreateBody = z198.object({
5630
- name: z198.string(),
5631
- exporterId: z198.string(),
5632
- designSystemId: z198.string(),
5633
- isEnabled: z198.boolean(),
5635
+ import { z as z199 } from "zod";
5636
+ var DTOPipelineCreateBody = z199.object({
5637
+ name: z199.string(),
5638
+ exporterId: z199.string(),
5639
+ designSystemId: z199.string(),
5640
+ isEnabled: z199.boolean(),
5634
5641
  eventType: PipelineEventType,
5635
- brandPersistentId: z198.string().optional(),
5636
- themePersistentId: z198.string().optional(),
5637
- themePersistentIds: z198.string().array().optional(),
5642
+ brandPersistentId: z199.string().optional(),
5643
+ themePersistentId: z199.string().optional(),
5644
+ themePersistentIds: z199.string().array().optional(),
5638
5645
  destination: PipelineDestinationType.optional(),
5639
5646
  gitQuery: GitObjectsQuery,
5640
- destinations: z198.object({
5647
+ destinations: z199.object({
5641
5648
  s3: ExporterDestinationS3.nullish(),
5642
5649
  azure: ExporterDestinationAzure.nullish(),
5643
5650
  bitbucket: ExporterDestinationBitbucket.nullish(),
5644
5651
  github: ExporterDestinationGithub.nullish(),
5645
5652
  gitlab: ExporterDestinationGitlab.nullish(),
5646
5653
  documentation: ExporterDestinationDocs.nullish(),
5647
- webhookUrl: z198.string().nullish()
5654
+ webhookUrl: z199.string().nullish()
5648
5655
  })
5649
5656
  });
5650
5657
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5651
- id: z198.string()
5658
+ id: z199.string()
5652
5659
  });
5653
- var DTOPipelineTriggerBody = z198.object({
5654
- designSystemVersionId: z198.string()
5660
+ var DTOPipelineTriggerBody = z199.object({
5661
+ designSystemVersionId: z199.string()
5655
5662
  });
5656
5663
 
5657
5664
  // src/api/payloads/liveblocks/auth.ts
5658
- import { z as z199 } from "zod";
5659
- var DTOLiveblocksAuthRequest = z199.object({
5660
- room: z199.string().optional()
5665
+ import { z as z200 } from "zod";
5666
+ var DTOLiveblocksAuthRequest = z200.object({
5667
+ room: z200.string().optional()
5661
5668
  });
5662
5669
 
5663
5670
  // src/api/payloads/users/notifications/notification-settings.ts
5664
- import { z as z200 } from "zod";
5665
- var DTOUpdateUserNotificationSettingsPayload = z200.object({
5671
+ import { z as z201 } from "zod";
5672
+ var DTOUpdateUserNotificationSettingsPayload = z201.object({
5666
5673
  notificationSettings: UserNotificationSettings
5667
5674
  });
5668
- var DTOUserNotificationSettingsResponse = z200.object({
5669
- userId: z200.string(),
5670
- workspaceId: z200.string(),
5675
+ var DTOUserNotificationSettingsResponse = z201.object({
5676
+ userId: z201.string(),
5677
+ workspaceId: z201.string(),
5671
5678
  notificationSettings: UserNotificationSettings
5672
5679
  });
5673
5680
 
@@ -5675,7 +5682,7 @@ var DTOUserNotificationSettingsResponse = z200.object({
5675
5682
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5676
5683
 
5677
5684
  // src/api/payloads/workspaces/workspace-configuration.ts
5678
- import { z as z201 } from "zod";
5685
+ import { z as z202 } from "zod";
5679
5686
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5680
5687
  function validateSsoPayload(ssoPayload) {
5681
5688
  const keys = [];
@@ -5698,21 +5705,21 @@ function validateSsoPayload(ssoPayload) {
5698
5705
  keys
5699
5706
  };
5700
5707
  }
5701
- var NpmRegistryInput = z201.object({
5702
- enabledScopes: z201.array(z201.string()),
5703
- customRegistryUrl: z201.string().optional(),
5704
- bypassProxy: z201.boolean().optional(),
5705
- npmProxyRegistryConfigId: z201.string().optional(),
5706
- npmProxyVersion: z201.number().optional(),
5707
- registryType: z201.string(),
5708
- authType: z201.string(),
5709
- authHeaderName: z201.string(),
5710
- authHeaderValue: z201.string(),
5711
- accessToken: z201.string(),
5712
- username: z201.string(),
5713
- password: z201.string()
5714
- });
5715
- var WorkspaceConfigurationPayload = z201.object({
5708
+ var NpmRegistryInput = z202.object({
5709
+ enabledScopes: z202.array(z202.string()),
5710
+ customRegistryUrl: z202.string().optional(),
5711
+ bypassProxy: z202.boolean().optional(),
5712
+ npmProxyRegistryConfigId: z202.string().optional(),
5713
+ npmProxyVersion: z202.number().optional(),
5714
+ registryType: z202.string(),
5715
+ authType: z202.string(),
5716
+ authHeaderName: z202.string(),
5717
+ authHeaderValue: z202.string(),
5718
+ accessToken: z202.string(),
5719
+ username: z202.string(),
5720
+ password: z202.string()
5721
+ });
5722
+ var WorkspaceConfigurationPayload = z202.object({
5716
5723
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5717
5724
  sso: SsoProvider.partial().optional(),
5718
5725
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5720,218 +5727,218 @@ var WorkspaceConfigurationPayload = z201.object({
5720
5727
  });
5721
5728
 
5722
5729
  // src/api/payloads/workspaces/workspace-integrations.ts
5723
- import { z as z202 } from "zod";
5724
- var DTOWorkspaceIntegrationOauthInput = z202.object({
5730
+ import { z as z203 } from "zod";
5731
+ var DTOWorkspaceIntegrationOauthInput = z203.object({
5725
5732
  type: IntegrationType
5726
5733
  });
5727
- var DTOWorkspaceIntegrationPATInput = z202.object({
5728
- userId: z202.string(),
5734
+ var DTOWorkspaceIntegrationPATInput = z203.object({
5735
+ userId: z203.string(),
5729
5736
  type: IntegrationType,
5730
5737
  token: IntegrationToken
5731
5738
  });
5732
- var DTOWorkspaceIntegrationGetGitObjectsInput = z202.object({
5733
- organization: z202.string().optional(),
5739
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z203.object({
5740
+ organization: z203.string().optional(),
5734
5741
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5735
- project: z202.string().optional(),
5742
+ project: z203.string().optional(),
5736
5743
  // Only for Bitbucket and Azure
5737
- repository: z202.string().optional(),
5744
+ repository: z203.string().optional(),
5738
5745
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5739
- branch: z202.string().optional(),
5746
+ branch: z203.string().optional(),
5740
5747
  // For all providers, useful for PR creations.
5741
- user: z202.string().optional()
5748
+ user: z203.string().optional()
5742
5749
  // Only for Gitlab User Repositories
5743
5750
  });
5744
5751
 
5745
5752
  // src/api/dto/design-systems/version.ts
5746
- var DTODesignSystemVersion = z203.object({
5747
- id: z203.string(),
5748
- createdAt: z203.coerce.date(),
5753
+ var DTODesignSystemVersion = z204.object({
5754
+ id: z204.string(),
5755
+ createdAt: z204.coerce.date(),
5749
5756
  meta: ObjectMeta,
5750
- version: z203.string(),
5751
- isReadonly: z203.boolean(),
5752
- changeLog: z203.string(),
5753
- designSystemId: z203.string()
5757
+ version: z204.string(),
5758
+ isReadonly: z204.boolean(),
5759
+ changeLog: z204.string(),
5760
+ designSystemId: z204.string()
5754
5761
  });
5755
- var DTODesignSystemVersionsListResponse = z203.object({
5756
- designSystemVersions: z203.array(DTODesignSystemVersion)
5762
+ var DTODesignSystemVersionsListResponse = z204.object({
5763
+ designSystemVersions: z204.array(DTODesignSystemVersion)
5757
5764
  });
5758
- var DTODesignSystemVersionGetResponse = z203.object({
5765
+ var DTODesignSystemVersionGetResponse = z204.object({
5759
5766
  designSystemVersion: DTODesignSystemVersion
5760
5767
  });
5761
- var DTODesignSystemVersionCreationResponse = z203.object({
5768
+ var DTODesignSystemVersionCreationResponse = z204.object({
5762
5769
  meta: ObjectMeta,
5763
- version: z203.string(),
5764
- changeLog: z203.string(),
5765
- isReadOnly: z203.boolean(),
5766
- designSystemId: z203.string(),
5767
- jobId: z203.string()
5768
- });
5769
- var VersionSQSPayload = z203.object({
5770
- jobId: z203.string(),
5771
- designSystemId: z203.string(),
5770
+ version: z204.string(),
5771
+ changeLog: z204.string(),
5772
+ isReadOnly: z204.boolean(),
5773
+ designSystemId: z204.string(),
5774
+ jobId: z204.string()
5775
+ });
5776
+ var VersionSQSPayload = z204.object({
5777
+ jobId: z204.string(),
5778
+ designSystemId: z204.string(),
5772
5779
  input: DTOCreateVersionInput
5773
5780
  });
5774
- var DTODesignSystemVersionJobsResponse = z203.object({
5775
- jobs: z203.array(VersionCreationJob)
5781
+ var DTODesignSystemVersionJobsResponse = z204.object({
5782
+ jobs: z204.array(VersionCreationJob)
5776
5783
  });
5777
- var DTODesignSystemVersionJobStatusResponse = z203.object({
5784
+ var DTODesignSystemVersionJobStatusResponse = z204.object({
5778
5785
  job: VersionCreationJob
5779
5786
  });
5780
5787
 
5781
5788
  // src/api/dto/design-systems/view.ts
5782
- import { z as z204 } from "zod";
5783
- var DTOElementViewColumnSharedAttributes = z204.object({
5784
- id: z204.string(),
5785
- persistentId: z204.string(),
5786
- width: z204.number()
5789
+ import { z as z205 } from "zod";
5790
+ var DTOElementViewColumnSharedAttributes = z205.object({
5791
+ id: z205.string(),
5792
+ persistentId: z205.string(),
5793
+ width: z205.number()
5787
5794
  });
5788
5795
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5789
- type: z204.literal("BaseProperty"),
5796
+ type: z205.literal("BaseProperty"),
5790
5797
  basePropertyType: ElementViewBaseColumnType
5791
5798
  });
5792
5799
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5793
- type: z204.literal("PropertyDefinition"),
5794
- propertyDefinitionId: z204.string()
5800
+ type: z205.literal("PropertyDefinition"),
5801
+ propertyDefinitionId: z205.string()
5795
5802
  });
5796
5803
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5797
- type: z204.literal("Theme"),
5798
- themeId: z204.string()
5804
+ type: z205.literal("Theme"),
5805
+ themeId: z205.string()
5799
5806
  });
5800
- var DTOElementViewColumn = z204.discriminatedUnion("type", [
5807
+ var DTOElementViewColumn = z205.discriminatedUnion("type", [
5801
5808
  DTOElementViewBasePropertyColumn,
5802
5809
  DTOElementViewPropertyDefinitionColumn,
5803
5810
  DTOElementViewThemeColumn
5804
5811
  ]);
5805
- var DTOElementView = z204.object({
5812
+ var DTOElementView = z205.object({
5806
5813
  meta: ObjectMeta,
5807
- persistentId: z204.string(),
5814
+ persistentId: z205.string(),
5808
5815
  targetElementType: ElementPropertyTargetType,
5809
- id: z204.string(),
5810
- isDefault: z204.boolean(),
5811
- columns: z204.array(DTOElementViewColumn)
5816
+ id: z205.string(),
5817
+ isDefault: z205.boolean(),
5818
+ columns: z205.array(DTOElementViewColumn)
5812
5819
  });
5813
- var DTOElementViewsListResponse = z204.object({
5814
- elementDataViews: z204.array(DTOElementView)
5820
+ var DTOElementViewsListResponse = z205.object({
5821
+ elementDataViews: z205.array(DTOElementView)
5815
5822
  });
5816
5823
 
5817
5824
  // src/api/dto/workspaces/git.ts
5818
- import { z as z205 } from "zod";
5819
- var DTOGitOrganization = z205.object({
5820
- id: z205.string(),
5821
- name: z205.string(),
5822
- url: z205.string(),
5823
- slug: z205.string()
5825
+ import { z as z206 } from "zod";
5826
+ var DTOGitOrganization = z206.object({
5827
+ id: z206.string(),
5828
+ name: z206.string(),
5829
+ url: z206.string(),
5830
+ slug: z206.string()
5824
5831
  });
5825
- var DTOGitProject = z205.object({
5826
- id: z205.string(),
5827
- name: z205.string(),
5828
- url: z205.string(),
5829
- slug: z205.string()
5832
+ var DTOGitProject = z206.object({
5833
+ id: z206.string(),
5834
+ name: z206.string(),
5835
+ url: z206.string(),
5836
+ slug: z206.string()
5830
5837
  });
5831
- var DTOGitRepository = z205.object({
5832
- id: z205.string(),
5833
- name: z205.string(),
5834
- url: z205.string(),
5835
- slug: z205.string(),
5836
- defaultBranch: z205.string().optional()
5838
+ var DTOGitRepository = z206.object({
5839
+ id: z206.string(),
5840
+ name: z206.string(),
5841
+ url: z206.string(),
5842
+ slug: z206.string(),
5843
+ defaultBranch: z206.string().optional()
5837
5844
  });
5838
- var DTOGitBranch = z205.object({
5839
- name: z205.string(),
5840
- lastCommitId: z205.string()
5845
+ var DTOGitBranch = z206.object({
5846
+ name: z206.string(),
5847
+ lastCommitId: z206.string()
5841
5848
  });
5842
5849
 
5843
5850
  // src/api/dto/workspaces/integrations.ts
5844
- import { z as z206 } from "zod";
5851
+ import { z as z207 } from "zod";
5845
5852
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5846
5853
  accessToken: true,
5847
5854
  refreshToken: true
5848
5855
  });
5849
- var DTOIntegration = z206.object({
5850
- id: z206.string(),
5851
- workspaceId: z206.string(),
5856
+ var DTOIntegration = z207.object({
5857
+ id: z207.string(),
5858
+ workspaceId: z207.string(),
5852
5859
  type: ExtendedIntegrationType,
5853
- createdAt: z206.coerce.date(),
5854
- integrationCredentials: z206.array(DTOIntegrationCredentials).optional(),
5855
- integrationDesignSystems: z206.array(IntegrationDesignSystem).optional()
5860
+ createdAt: z207.coerce.date(),
5861
+ integrationCredentials: z207.array(DTOIntegrationCredentials).optional(),
5862
+ integrationDesignSystems: z207.array(IntegrationDesignSystem).optional()
5856
5863
  });
5857
- var DTOIntegrationOAuthGetResponse = z206.object({
5858
- url: z206.string()
5864
+ var DTOIntegrationOAuthGetResponse = z207.object({
5865
+ url: z207.string()
5859
5866
  });
5860
- var DTOIntegrationPostResponse = z206.object({
5867
+ var DTOIntegrationPostResponse = z207.object({
5861
5868
  integration: DTOIntegration
5862
5869
  });
5863
- var DTOIntegrationsGetListResponse = z206.object({
5870
+ var DTOIntegrationsGetListResponse = z207.object({
5864
5871
  integrations: DTOIntegration.array()
5865
5872
  });
5866
5873
 
5867
5874
  // src/api/dto/workspaces/invitations.ts
5868
- import { z as z207 } from "zod";
5869
- var DTOWorkspaceInvitationInput = z207.object({
5870
- email: z207.string().email(),
5875
+ import { z as z208 } from "zod";
5876
+ var DTOWorkspaceInvitationInput = z208.object({
5877
+ email: z208.string().email(),
5871
5878
  role: WorkspaceRoleSchema
5872
5879
  });
5873
- var DTOWorkspaceInvitationsListInput = z207.object({
5880
+ var DTOWorkspaceInvitationsListInput = z208.object({
5874
5881
  invites: DTOWorkspaceInvitationInput.array().max(100),
5875
- designSystemId: z207.string().optional()
5882
+ designSystemId: z208.string().optional()
5876
5883
  });
5877
- var DTOWorkspaceInvitationsResponse = z207.object({
5884
+ var DTOWorkspaceInvitationsResponse = z208.object({
5878
5885
  invitations: WorkspaceInvitation.array()
5879
5886
  });
5880
- var DTOWorkspaceInviteUpdate = z207.object({
5887
+ var DTOWorkspaceInviteUpdate = z208.object({
5881
5888
  role: WorkspaceRoleSchema
5882
5889
  });
5883
- var DTOWorkspaceInvitationUpdateResponse = z207.object({
5890
+ var DTOWorkspaceInvitationUpdateResponse = z208.object({
5884
5891
  invitation: WorkspaceInvitation
5885
5892
  });
5886
5893
 
5887
5894
  // src/api/dto/workspaces/membership.ts
5888
- import { z as z210 } from "zod";
5895
+ import { z as z211 } from "zod";
5889
5896
 
5890
5897
  // src/api/dto/workspaces/workspace.ts
5891
- import { z as z209 } from "zod";
5898
+ import { z as z210 } from "zod";
5892
5899
 
5893
5900
  // src/api/dto/workspaces/npm-registry.ts
5894
- import { z as z208 } from "zod";
5901
+ import { z as z209 } from "zod";
5895
5902
  var DTONpmRegistryConfigConstants = {
5896
5903
  passwordPlaceholder: "redacted"
5897
5904
  };
5898
- var DTONpmRegistryConfig = z208.object({
5905
+ var DTONpmRegistryConfig = z209.object({
5899
5906
  // Registry basic configuration
5900
5907
  registryType: NpmRegistryType,
5901
- registryUrl: z208.string(),
5902
- customRegistryUrl: z208.string().optional(),
5908
+ registryUrl: z209.string(),
5909
+ customRegistryUrl: z209.string().optional(),
5903
5910
  // URL of Supernova NPM packages proxy
5904
- proxyUrl: z208.string(),
5911
+ proxyUrl: z209.string(),
5905
5912
  // Auth configuration
5906
5913
  authType: NpmRegistryAuthType,
5907
- accessToken: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5908
- username: z208.string().optional(),
5909
- password: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5914
+ accessToken: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5915
+ username: z209.string().optional(),
5916
+ password: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5910
5917
  // NPM package scopes for whih the proxy should be enabled
5911
- enabledScopes: z208.array(z208.string()),
5918
+ enabledScopes: z209.array(z209.string()),
5912
5919
  // True if client should bypass Supernova proxy and connect directly to the registry
5913
5920
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5914
- bypassProxy: z208.boolean()
5921
+ bypassProxy: z209.boolean()
5915
5922
  });
5916
5923
 
5917
5924
  // src/api/dto/workspaces/workspace.ts
5918
5925
  var DTOWorkspaceProfile = WorkspaceProfile;
5919
- var DTOWorkspace = z209.object({
5920
- id: z209.string(),
5926
+ var DTOWorkspace = z210.object({
5927
+ id: z210.string(),
5921
5928
  profile: DTOWorkspaceProfile,
5922
5929
  subscription: Subscription,
5923
5930
  npmRegistry: DTONpmRegistryConfig.optional()
5924
5931
  });
5925
- var DTOWorkspaceCreateInput = z209.object({
5926
- name: z209.string()
5932
+ var DTOWorkspaceCreateInput = z210.object({
5933
+ name: z210.string()
5927
5934
  });
5928
- var DTOWorkspaceResponse = z209.object({
5935
+ var DTOWorkspaceResponse = z210.object({
5929
5936
  workspace: DTOWorkspace
5930
5937
  });
5931
5938
 
5932
5939
  // src/api/dto/workspaces/membership.ts
5933
- var DTOWorkspaceRole = z210.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5934
- var DTOUserWorkspaceMembership = z210.object({
5940
+ var DTOWorkspaceRole = z211.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5941
+ var DTOUserWorkspaceMembership = z211.object({
5935
5942
  // Workspace the user is a member of
5936
5943
  workspace: DTOWorkspace,
5937
5944
  // Assigned role the user has in the workspace
@@ -5941,26 +5948,26 @@ var DTOUserWorkspaceMembership = z210.object({
5941
5948
  // when a workspace's subscription is downgraded to free tier
5942
5949
  effectiveRole: DTOWorkspaceRole
5943
5950
  });
5944
- var DTOWorkspaceMember = z210.object({
5951
+ var DTOWorkspaceMember = z211.object({
5945
5952
  user: User,
5946
5953
  role: WorkspaceRoleSchema,
5947
5954
  effectiveRole: WorkspaceRoleSchema
5948
5955
  });
5949
- var DTOUserWorkspaceMembershipsResponse = z210.object({
5950
- membership: z210.array(DTOUserWorkspaceMembership)
5956
+ var DTOUserWorkspaceMembershipsResponse = z211.object({
5957
+ membership: z211.array(DTOUserWorkspaceMembership)
5951
5958
  });
5952
- var DTOWorkspaceMembersListResponse = z210.object({
5953
- members: z210.array(DTOWorkspaceMember)
5959
+ var DTOWorkspaceMembersListResponse = z211.object({
5960
+ members: z211.array(DTOWorkspaceMember)
5954
5961
  });
5955
5962
 
5956
5963
  // src/api/dto/bff/app-bootstrap-data.ts
5957
- var DTOAppBootstrapDataQuery = z211.object({
5958
- preferredWorkspaceId: z211.string().optional(),
5959
- preferredDesignSystemId: z211.string().optional(),
5960
- preferredVersionId: z211.string().optional(),
5961
- preferredBrandId: z211.string().optional()
5964
+ var DTOAppBootstrapDataQuery = z212.object({
5965
+ preferredWorkspaceId: z212.string().optional(),
5966
+ preferredDesignSystemId: z212.string().optional(),
5967
+ preferredVersionId: z212.string().optional(),
5968
+ preferredBrandId: z212.string().optional()
5962
5969
  });
5963
- var DTOAppBootstrapDataResponse = z211.object({
5970
+ var DTOAppBootstrapDataResponse = z212.object({
5964
5971
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5965
5972
  designSystem: DTODesignSystem.optional(),
5966
5973
  version: DTODesignSystemVersion.optional(),
@@ -5968,88 +5975,88 @@ var DTOAppBootstrapDataResponse = z211.object({
5968
5975
  });
5969
5976
 
5970
5977
  // src/api/dto/collections/token-collection.ts
5971
- import { z as z212 } from "zod";
5972
- var DTOTokenCollection = z212.object({
5973
- id: z212.string(),
5974
- persistentId: z212.string(),
5975
- designSystemVersionId: z212.string(),
5978
+ import { z as z213 } from "zod";
5979
+ var DTOTokenCollection = z213.object({
5980
+ id: z213.string(),
5981
+ persistentId: z213.string(),
5982
+ designSystemVersionId: z213.string(),
5976
5983
  meta: ObjectMeta,
5977
5984
  backgroundColor: ColorTokenInlineData.optional(),
5978
- elementPropertyOptionId: z212.string(),
5979
- createdAt: z212.coerce.date(),
5980
- updatedAt: z212.coerce.date(),
5985
+ elementPropertyOptionId: z213.string(),
5986
+ createdAt: z213.coerce.date(),
5987
+ updatedAt: z213.coerce.date(),
5981
5988
  origin: CollectionOrigin.optional()
5982
5989
  });
5983
- var DTOTokenCollectionsListReponse = z212.object({
5990
+ var DTOTokenCollectionsListReponse = z213.object({
5984
5991
  collections: DTOTokenCollection.array()
5985
5992
  });
5986
5993
 
5987
5994
  // src/api/dto/design-tokens/design-token.ts
5988
- import { z as z213 } from "zod";
5995
+ import { z as z214 } from "zod";
5989
5996
  var DTODesignToken = DesignTokenTypedData.and(
5990
- z213.object({
5991
- id: z213.string(),
5992
- persistentId: z213.string(),
5993
- designSystemVersionId: z213.string(),
5997
+ z214.object({
5998
+ id: z214.string(),
5999
+ persistentId: z214.string(),
6000
+ designSystemVersionId: z214.string(),
5994
6001
  meta: ObjectMeta,
5995
6002
  originStyle: DesignTokenOrigin.optional(),
5996
- brandId: z213.string(),
5997
- collectionId: z213.string().optional(),
5998
- updatedAt: z213.coerce.date()
6003
+ brandId: z214.string(),
6004
+ collectionId: z214.string().optional(),
6005
+ updatedAt: z214.coerce.date()
5999
6006
  })
6000
6007
  );
6001
- var DTODesignTokenListResponse = z213.object({
6008
+ var DTODesignTokenListResponse = z214.object({
6002
6009
  tokens: DTODesignToken.array()
6003
6010
  });
6004
- var DTODesignTokenResponse = z213.object({
6011
+ var DTODesignTokenResponse = z214.object({
6005
6012
  token: DTODesignToken
6006
6013
  });
6007
- var DTODesignTokenGroup = z213.object({
6008
- id: z213.string(),
6014
+ var DTODesignTokenGroup = z214.object({
6015
+ id: z214.string(),
6009
6016
  tokenType: DesignTokenType,
6010
- persistentId: z213.string(),
6011
- isRoot: z213.boolean(),
6012
- brandId: z213.string(),
6017
+ persistentId: z214.string(),
6018
+ isRoot: z214.boolean(),
6019
+ brandId: z214.string(),
6013
6020
  meta: ObjectMeta,
6014
- childrenIds: z213.string().array()
6021
+ childrenIds: z214.string().array()
6015
6022
  });
6016
- var DTODesignTokenGroupListResponse = z213.object({
6023
+ var DTODesignTokenGroupListResponse = z214.object({
6017
6024
  groups: DTODesignTokenGroup.array()
6018
6025
  });
6019
- var DTODesignTokenGroupResponse = z213.object({
6026
+ var DTODesignTokenGroupResponse = z214.object({
6020
6027
  group: DTODesignTokenGroup
6021
6028
  });
6022
6029
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6023
- z213.object({
6024
- persistentId: z213.string(),
6030
+ z214.object({
6031
+ persistentId: z214.string(),
6025
6032
  meta: ObjectMeta,
6026
- brandId: z213.string(),
6027
- groupPersistentId: z213.string().optional()
6033
+ brandId: z214.string(),
6034
+ groupPersistentId: z214.string().optional()
6028
6035
  })
6029
6036
  );
6030
- var DTODesignTokenGroupCreatePayload = z213.object({
6031
- persistentId: z213.string(),
6037
+ var DTODesignTokenGroupCreatePayload = z214.object({
6038
+ persistentId: z214.string(),
6032
6039
  meta: ObjectMeta,
6033
- brandId: z213.string(),
6034
- parentId: z213.string().optional(),
6040
+ brandId: z214.string(),
6041
+ parentId: z214.string().optional(),
6035
6042
  tokenType: DesignTokenType,
6036
- childrenIds: z213.string().array()
6043
+ childrenIds: z214.string().array()
6037
6044
  });
6038
6045
 
6039
6046
  // src/api/dto/documentation/anchor.ts
6040
- import { z as z214 } from "zod";
6047
+ import { z as z215 } from "zod";
6041
6048
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6042
- var DTOGetDocumentationPageAnchorsResponse = z214.object({
6043
- anchors: z214.array(DTODocumentationPageAnchor)
6049
+ var DTOGetDocumentationPageAnchorsResponse = z215.object({
6050
+ anchors: z215.array(DTODocumentationPageAnchor)
6044
6051
  });
6045
6052
 
6046
6053
  // src/api/dto/documentation/approvals.ts
6047
- import { z as z215 } from "zod";
6054
+ import { z as z216 } from "zod";
6048
6055
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
6049
- var DTODocumentationGroupApprovalState = z215.object({
6050
- persistentId: z215.string(),
6051
- groupId: z215.string(),
6052
- designSystemVersionId: z215.string(),
6056
+ var DTODocumentationGroupApprovalState = z216.object({
6057
+ persistentId: z216.string(),
6058
+ groupId: z216.string(),
6059
+ designSystemVersionId: z216.string(),
6053
6060
  approvalState: DocumentationPageApprovalState
6054
6061
  });
6055
6062
 
@@ -6057,68 +6064,68 @@ var DTODocumentationGroupApprovalState = z215.object({
6057
6064
  var DTOPageBlockItemV2 = PageBlockItemV2;
6058
6065
 
6059
6066
  // src/api/dto/documentation/documentation-page-snapshot.ts
6060
- import { z as z220 } from "zod";
6067
+ import { z as z221 } from "zod";
6061
6068
 
6062
6069
  // src/api/dto/elements/documentation/page-v2.ts
6063
- import { z as z219 } from "zod";
6070
+ import { z as z220 } from "zod";
6064
6071
 
6065
6072
  // src/api/dto/elements/documentation/draft-state.ts
6066
- import { z as z217 } from "zod";
6073
+ import { z as z218 } from "zod";
6067
6074
 
6068
6075
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6069
- import { z as z216 } from "zod";
6076
+ import { z as z217 } from "zod";
6070
6077
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6071
- var DTODocumentationItemConfigurationV2 = z216.object({
6072
- showSidebar: z216.boolean(),
6073
- isPrivate: z216.boolean(),
6074
- isHidden: z216.boolean(),
6078
+ var DTODocumentationItemConfigurationV2 = z217.object({
6079
+ showSidebar: z217.boolean(),
6080
+ isPrivate: z217.boolean(),
6081
+ isHidden: z217.boolean(),
6075
6082
  header: DTODocumentationItemHeaderV2
6076
6083
  });
6077
6084
 
6078
6085
  // src/api/dto/elements/documentation/draft-state.ts
6079
- var DTODocumentationDraftChangeType = z217.enum(["Created", "Updated", "Deleted"]);
6080
- var DTODocumentationDraftStateCreated = z217.object({
6081
- changeType: z217.literal(DTODocumentationDraftChangeType.enum.Created)
6082
- });
6083
- var DTODocumentationDraftStateUpdated = z217.object({
6084
- changeType: z217.literal(DTODocumentationDraftChangeType.enum.Updated),
6085
- changes: z217.object({
6086
- previousTitle: z217.string().optional(),
6086
+ var DTODocumentationDraftChangeType = z218.enum(["Created", "Updated", "Deleted"]);
6087
+ var DTODocumentationDraftStateCreated = z218.object({
6088
+ changeType: z218.literal(DTODocumentationDraftChangeType.enum.Created)
6089
+ });
6090
+ var DTODocumentationDraftStateUpdated = z218.object({
6091
+ changeType: z218.literal(DTODocumentationDraftChangeType.enum.Updated),
6092
+ changes: z218.object({
6093
+ previousTitle: z218.string().optional(),
6087
6094
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6088
- previousContentHash: z217.string().optional()
6095
+ previousContentHash: z218.string().optional()
6089
6096
  })
6090
6097
  });
6091
- var DTODocumentationDraftStateDeleted = z217.object({
6092
- changeType: z217.literal(DTODocumentationDraftChangeType.enum.Deleted),
6093
- deletedAt: z217.coerce.date(),
6094
- deletedByUserId: z217.string()
6098
+ var DTODocumentationDraftStateDeleted = z218.object({
6099
+ changeType: z218.literal(DTODocumentationDraftChangeType.enum.Deleted),
6100
+ deletedAt: z218.coerce.date(),
6101
+ deletedByUserId: z218.string()
6095
6102
  });
6096
- var DTODocumentationDraftState = z217.discriminatedUnion("changeType", [
6103
+ var DTODocumentationDraftState = z218.discriminatedUnion("changeType", [
6097
6104
  DTODocumentationDraftStateCreated,
6098
6105
  DTODocumentationDraftStateUpdated,
6099
6106
  DTODocumentationDraftStateDeleted
6100
6107
  ]);
6101
6108
 
6102
6109
  // src/api/dto/elements/documentation/metadata.ts
6103
- import { z as z218 } from "zod";
6104
- var DTODocumentationPublishMetadata = z218.object({
6105
- lastPublishedByUserId: z218.string(),
6106
- lastPublishedAt: z218.coerce.date()
6110
+ import { z as z219 } from "zod";
6111
+ var DTODocumentationPublishMetadata = z219.object({
6112
+ lastPublishedByUserId: z219.string(),
6113
+ lastPublishedAt: z219.coerce.date()
6107
6114
  });
6108
6115
 
6109
6116
  // src/api/dto/elements/documentation/page-v2.ts
6110
- var DTODocumentationPageV2 = z219.object({
6111
- id: z219.string(),
6112
- persistentId: z219.string(),
6113
- designSystemVersionId: z219.string(),
6114
- title: z219.string(),
6117
+ var DTODocumentationPageV2 = z220.object({
6118
+ id: z220.string(),
6119
+ persistentId: z220.string(),
6120
+ designSystemVersionId: z220.string(),
6121
+ title: z220.string(),
6115
6122
  configuration: DTODocumentationItemConfigurationV2,
6116
- shortPersistentId: z219.string(),
6117
- slug: z219.string().optional(),
6118
- userSlug: z219.string().optional(),
6119
- createdAt: z219.coerce.date(),
6120
- updatedAt: z219.coerce.date(),
6121
- path: z219.string(),
6123
+ shortPersistentId: z220.string(),
6124
+ slug: z220.string().optional(),
6125
+ userSlug: z220.string().optional(),
6126
+ createdAt: z220.coerce.date(),
6127
+ updatedAt: z220.coerce.date(),
6128
+ path: z220.string(),
6122
6129
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6123
6130
  draftState: DTODocumentationDraftState.optional(),
6124
6131
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6126,215 +6133,215 @@ var DTODocumentationPageV2 = z219.object({
6126
6133
  /** Defines the approval state of the documentation page */
6127
6134
  approvalState: DTODocumentationPageApprovalState.optional(),
6128
6135
  // Backward compatibility
6129
- type: z219.literal("Page")
6136
+ type: z220.literal("Page")
6130
6137
  });
6131
- var DTOCreateDocumentationPageInputV2 = z219.object({
6138
+ var DTOCreateDocumentationPageInputV2 = z220.object({
6132
6139
  // Identifier
6133
- persistentId: z219.string(),
6140
+ persistentId: z220.string(),
6134
6141
  // Page properties
6135
- title: z219.string(),
6142
+ title: z220.string(),
6136
6143
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6137
6144
  // Page placement properties
6138
- parentPersistentId: z219.string(),
6139
- afterPersistentId: z219.string().nullish()
6145
+ parentPersistentId: z220.string(),
6146
+ afterPersistentId: z220.string().nullish()
6140
6147
  });
6141
- var DTOUpdateDocumentationPageInputV2 = z219.object({
6148
+ var DTOUpdateDocumentationPageInputV2 = z220.object({
6142
6149
  // Identifier of the group to update
6143
- id: z219.string(),
6150
+ id: z220.string(),
6144
6151
  // Page properties
6145
- title: z219.string().optional(),
6152
+ title: z220.string().optional(),
6146
6153
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6147
6154
  });
6148
- var DTOMoveDocumentationPageInputV2 = z219.object({
6155
+ var DTOMoveDocumentationPageInputV2 = z220.object({
6149
6156
  // Identifier of the group to update
6150
- id: z219.string(),
6157
+ id: z220.string(),
6151
6158
  // Page placement properties
6152
- parentPersistentId: z219.string(),
6153
- afterPersistentId: z219.string().nullish()
6159
+ parentPersistentId: z220.string(),
6160
+ afterPersistentId: z220.string().nullish()
6154
6161
  });
6155
- var DTODuplicateDocumentationPageInputV2 = z219.object({
6162
+ var DTODuplicateDocumentationPageInputV2 = z220.object({
6156
6163
  // Identifier of the page to duplicate from
6157
- id: z219.string(),
6164
+ id: z220.string(),
6158
6165
  // New page persistent id
6159
- persistentId: z219.string(),
6166
+ persistentId: z220.string(),
6160
6167
  // Page placement properties
6161
- parentPersistentId: z219.string(),
6162
- afterPersistentId: z219.string().nullish()
6168
+ parentPersistentId: z220.string(),
6169
+ afterPersistentId: z220.string().nullish()
6163
6170
  });
6164
- var DTODeleteDocumentationPageInputV2 = z219.object({
6171
+ var DTODeleteDocumentationPageInputV2 = z220.object({
6165
6172
  // Identifier
6166
- id: z219.string()
6173
+ id: z220.string()
6167
6174
  });
6168
- var DTORestoreDocumentationPageInput = z219.object({
6169
- persistentId: z219.string(),
6170
- snapshotId: z219.string().optional()
6175
+ var DTORestoreDocumentationPageInput = z220.object({
6176
+ persistentId: z220.string(),
6177
+ snapshotId: z220.string().optional()
6171
6178
  });
6172
- var DTORestoreDocumentationGroupInput = z219.object({
6173
- persistentId: z219.string(),
6174
- snapshotId: z219.string().optional()
6179
+ var DTORestoreDocumentationGroupInput = z220.object({
6180
+ persistentId: z220.string(),
6181
+ snapshotId: z220.string().optional()
6175
6182
  });
6176
- var DTODocumentationPageApprovalStateChangeInput = z219.object({
6177
- persistentId: z219.string(),
6183
+ var DTODocumentationPageApprovalStateChangeInput = z220.object({
6184
+ persistentId: z220.string(),
6178
6185
  approvalState: DocumentationPageApprovalState.optional()
6179
6186
  });
6180
6187
 
6181
6188
  // src/api/dto/documentation/documentation-page-snapshot.ts
6182
- var DTODocumentationPageSnapshot = z220.object({
6183
- id: z220.string(),
6184
- designSystemVersionId: z220.string(),
6185
- createdAt: z220.string(),
6186
- updatedAt: z220.string(),
6189
+ var DTODocumentationPageSnapshot = z221.object({
6190
+ id: z221.string(),
6191
+ designSystemVersionId: z221.string(),
6192
+ createdAt: z221.string(),
6193
+ updatedAt: z221.string(),
6187
6194
  documentationPage: DTODocumentationPageV2,
6188
- pageContentHash: z220.string(),
6195
+ pageContentHash: z221.string(),
6189
6196
  reason: DesignElementSnapshotReason
6190
6197
  });
6191
6198
 
6192
6199
  // src/api/dto/documentation/link-preview.ts
6193
- import { z as z221 } from "zod";
6194
- var DTODocumentationLinkPreviewResponse = z221.object({
6200
+ import { z as z222 } from "zod";
6201
+ var DTODocumentationLinkPreviewResponse = z222.object({
6195
6202
  linkPreview: DocumentationLinkPreview
6196
6203
  });
6197
- var DTODocumentationLinkPreviewRequest = z221.object({
6198
- url: z221.string().optional(),
6199
- documentationItemPersistentId: z221.string().optional()
6204
+ var DTODocumentationLinkPreviewRequest = z222.object({
6205
+ url: z222.string().optional(),
6206
+ documentationItemPersistentId: z222.string().optional()
6200
6207
  });
6201
6208
 
6202
6209
  // src/api/dto/documentation/publish.ts
6203
- import { z as z225 } from "zod";
6210
+ import { z as z226 } from "zod";
6204
6211
 
6205
6212
  // src/api/dto/export/exporter.ts
6206
- import { z as z222 } from "zod";
6207
- var DTOExporterType = z222.enum(["documentation", "code"]);
6208
- var DTOExporterSource = z222.enum(["git", "upload"]);
6209
- var DTOExporterMembershipRole = z222.enum(["Owner", "OwnerArchived", "User"]);
6210
- var DTOExporterListQuery = z222.object({
6211
- limit: z222.coerce.number().optional()
6212
- });
6213
- var DTOExporter = z222.object({
6214
- id: z222.string(),
6215
- name: z222.string(),
6216
- isPrivate: z222.boolean(),
6213
+ import { z as z223 } from "zod";
6214
+ var DTOExporterType = z223.enum(["documentation", "code"]);
6215
+ var DTOExporterSource = z223.enum(["git", "upload"]);
6216
+ var DTOExporterMembershipRole = z223.enum(["Owner", "OwnerArchived", "User"]);
6217
+ var DTOExporterListQuery = z223.object({
6218
+ limit: z223.coerce.number().optional()
6219
+ });
6220
+ var DTOExporter = z223.object({
6221
+ id: z223.string(),
6222
+ name: z223.string(),
6223
+ isPrivate: z223.boolean(),
6217
6224
  exporterType: DTOExporterType,
6218
- isDefaultDocumentationExporter: z222.boolean(),
6219
- iconURL: z222.string().optional(),
6225
+ isDefaultDocumentationExporter: z223.boolean(),
6226
+ iconURL: z223.string().optional(),
6220
6227
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6221
6228
  customBlocks: PulsarCustomBlock.array(),
6222
- blockVariants: z222.record(z222.string(), PulsarContributionVariant.array()),
6223
- usesBrands: z222.boolean(),
6224
- usesThemes: z222.boolean(),
6229
+ blockVariants: z223.record(z223.string(), PulsarContributionVariant.array()),
6230
+ usesBrands: z223.boolean(),
6231
+ usesThemes: z223.boolean(),
6225
6232
  source: DTOExporterSource,
6226
- gitUrl: nullishToOptional(z222.string()),
6227
- gitBranch: nullishToOptional(z222.string()),
6228
- gitDirectory: nullishToOptional(z222.string())
6233
+ gitUrl: nullishToOptional(z223.string()),
6234
+ gitBranch: nullishToOptional(z223.string()),
6235
+ gitDirectory: nullishToOptional(z223.string())
6229
6236
  });
6230
- var DTOExporterMembership = z222.object({
6231
- workspaceId: z222.string(),
6232
- exporterId: z222.string(),
6237
+ var DTOExporterMembership = z223.object({
6238
+ workspaceId: z223.string(),
6239
+ exporterId: z223.string(),
6233
6240
  role: DTOExporterMembershipRole
6234
6241
  });
6235
- var DTOExporterCreateOutput = z222.object({
6242
+ var DTOExporterCreateOutput = z223.object({
6236
6243
  exporter: DTOExporter,
6237
6244
  membership: DTOExporterMembership
6238
6245
  });
6239
- var DTOExporterListResponse = z222.object({
6246
+ var DTOExporterListResponse = z223.object({
6240
6247
  exporters: DTOExporter.array(),
6241
6248
  membership: DTOExporterMembership.array()
6242
6249
  });
6243
- var DTOExporterGitProviderEnum = z222.enum(["github", "gitlab", "bitbucket", "azure"]);
6244
- var DTOExporterCreateInput = z222.object({
6245
- url: z222.string(),
6250
+ var DTOExporterGitProviderEnum = z223.enum(["github", "gitlab", "bitbucket", "azure"]);
6251
+ var DTOExporterCreateInput = z223.object({
6252
+ url: z223.string(),
6246
6253
  provider: DTOExporterGitProviderEnum
6247
6254
  });
6248
- var DTOExporterUpdateInput = z222.object({
6249
- url: z222.string().optional()
6255
+ var DTOExporterUpdateInput = z223.object({
6256
+ url: z223.string().optional()
6250
6257
  });
6251
6258
 
6252
6259
  // src/api/dto/export/filter.ts
6253
6260
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6254
6261
 
6255
6262
  // src/api/dto/export/job.ts
6256
- import { z as z223 } from "zod";
6257
- var DTOExportJobCreatedBy = z223.object({
6258
- userId: z223.string(),
6259
- userName: z223.string()
6263
+ import { z as z224 } from "zod";
6264
+ var DTOExportJobCreatedBy = z224.object({
6265
+ userId: z224.string(),
6266
+ userName: z224.string()
6260
6267
  });
6261
- var DTOExportJobDesignSystemPreview = z223.object({
6262
- id: z223.string(),
6268
+ var DTOExportJobDesignSystemPreview = z224.object({
6269
+ id: z224.string(),
6263
6270
  meta: ObjectMeta
6264
6271
  });
6265
- var DTOExportJobDesignSystemVersionPreview = z223.object({
6266
- id: z223.string(),
6272
+ var DTOExportJobDesignSystemVersionPreview = z224.object({
6273
+ id: z224.string(),
6267
6274
  meta: ObjectMeta,
6268
- version: z223.string(),
6269
- isReadonly: z223.boolean()
6275
+ version: z224.string(),
6276
+ isReadonly: z224.boolean()
6270
6277
  });
6271
- var DTOExportJobDestinations = z223.object({
6278
+ var DTOExportJobDestinations = z224.object({
6272
6279
  s3: ExporterDestinationS3.optional(),
6273
6280
  azure: ExporterDestinationAzure.optional(),
6274
6281
  bitbucket: ExporterDestinationBitbucket.optional(),
6275
6282
  github: ExporterDestinationGithub.optional(),
6276
6283
  gitlab: ExporterDestinationGitlab.optional(),
6277
6284
  documentation: ExporterDestinationDocs.optional(),
6278
- webhookUrl: z223.string().optional()
6285
+ webhookUrl: z224.string().optional()
6279
6286
  });
6280
6287
  var DTOExportJobResult = ExportJobResult.omit({
6281
6288
  sndocs: true
6282
6289
  }).extend({
6283
6290
  documentation: ExportJobDocsDestinationResult.optional()
6284
6291
  });
6285
- var DTOExportJob = z223.object({
6286
- id: z223.string(),
6287
- createdAt: z223.coerce.date(),
6288
- finishedAt: z223.coerce.date().optional(),
6289
- index: z223.number().optional(),
6292
+ var DTOExportJob = z224.object({
6293
+ id: z224.string(),
6294
+ createdAt: z224.coerce.date(),
6295
+ finishedAt: z224.coerce.date().optional(),
6296
+ index: z224.number().optional(),
6290
6297
  status: ExportJobStatus,
6291
- estimatedExecutionTime: z223.number().optional(),
6298
+ estimatedExecutionTime: z224.number().optional(),
6292
6299
  createdBy: DTOExportJobCreatedBy.optional(),
6293
6300
  designSystem: DTOExportJobDesignSystemPreview,
6294
6301
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6295
6302
  destinations: DTOExportJobDestinations,
6296
- exporterId: z223.string(),
6297
- scheduleId: z223.string().optional(),
6303
+ exporterId: z224.string(),
6304
+ scheduleId: z224.string().optional(),
6298
6305
  result: DTOExportJobResult.optional(),
6299
- brandPersistentId: z223.string().optional(),
6300
- themePersistentId: z223.string().optional(),
6301
- themePersistentIds: z223.string().array().optional()
6306
+ brandPersistentId: z224.string().optional(),
6307
+ themePersistentId: z224.string().optional(),
6308
+ themePersistentIds: z224.string().array().optional()
6302
6309
  });
6303
- var DTOExportJobResponse = z223.object({
6310
+ var DTOExportJobResponse = z224.object({
6304
6311
  job: DTOExportJob
6305
6312
  });
6306
6313
 
6307
6314
  // src/api/dto/export/pipeline.ts
6308
- import { z as z224 } from "zod";
6309
- var DTOPipelineListQuery = z224.object({
6310
- designSystemId: z224.string().optional(),
6311
- exporterId: z224.string().optional(),
6312
- latestJobsLimit: z224.coerce.number().optional()
6313
- });
6314
- var DTOPipeline = z224.object({
6315
- id: z224.string(),
6316
- name: z224.string(),
6315
+ import { z as z225 } from "zod";
6316
+ var DTOPipelineListQuery = z225.object({
6317
+ designSystemId: z225.string().optional(),
6318
+ exporterId: z225.string().optional(),
6319
+ latestJobsLimit: z225.coerce.number().optional()
6320
+ });
6321
+ var DTOPipeline = z225.object({
6322
+ id: z225.string(),
6323
+ name: z225.string(),
6317
6324
  eventType: PipelineEventType,
6318
- isEnabled: z224.boolean(),
6319
- workspaceId: z224.string(),
6320
- designSystemId: z224.string(),
6321
- exporterId: z224.string(),
6322
- brandPersistentId: z224.string().optional(),
6323
- themePersistentId: z224.string().optional(),
6324
- themePersistentIds: z224.string().array().optional(),
6325
+ isEnabled: z225.boolean(),
6326
+ workspaceId: z225.string(),
6327
+ designSystemId: z225.string(),
6328
+ exporterId: z225.string(),
6329
+ brandPersistentId: z225.string().optional(),
6330
+ themePersistentId: z225.string().optional(),
6331
+ themePersistentIds: z225.string().array().optional(),
6325
6332
  ...ExportDestinationsMap.shape,
6326
6333
  latestJobs: DTOExportJob.array()
6327
6334
  });
6328
- var DTOPipelineListResponse = z224.object({
6335
+ var DTOPipelineListResponse = z225.object({
6329
6336
  pipelines: DTOPipeline.array()
6330
6337
  });
6331
- var DTOPipelineResponse = z224.object({
6338
+ var DTOPipelineResponse = z225.object({
6332
6339
  pipeline: DTOPipeline
6333
6340
  });
6334
6341
 
6335
6342
  // src/api/dto/documentation/publish.ts
6336
6343
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6337
- var DTOPublishDocumentationRequest = z225.object({
6344
+ var DTOPublishDocumentationRequest = z226.object({
6338
6345
  environment: PublishedDocEnvironment,
6339
6346
  /**
6340
6347
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6342,42 +6349,42 @@ var DTOPublishDocumentationRequest = z225.object({
6342
6349
  */
6343
6350
  changes: DTOPublishDocumentationChanges.optional()
6344
6351
  });
6345
- var DTOPublishDocumentationResponse = z225.object({
6352
+ var DTOPublishDocumentationResponse = z226.object({
6346
6353
  job: DTOExportJob
6347
6354
  });
6348
6355
 
6349
6356
  // src/api/dto/elements/components/figma-component.ts
6350
- import { z as z226 } from "zod";
6357
+ import { z as z227 } from "zod";
6351
6358
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6352
- var DTOFigmaComponentPropertyMap = z226.record(DTOFigmaComponentProperty);
6353
- var DTOFigmaComponent = z226.object({
6354
- id: z226.string(),
6355
- persistentId: z226.string(),
6356
- designSystemVersionId: z226.string(),
6357
- brandId: z226.string(),
6358
- thumbnailUrl: z226.string().optional(),
6359
- svgUrl: z226.string().optional(),
6360
- exportProperties: z226.object({
6361
- isAsset: z226.boolean()
6359
+ var DTOFigmaComponentPropertyMap = z227.record(DTOFigmaComponentProperty);
6360
+ var DTOFigmaComponent = z227.object({
6361
+ id: z227.string(),
6362
+ persistentId: z227.string(),
6363
+ designSystemVersionId: z227.string(),
6364
+ brandId: z227.string(),
6365
+ thumbnailUrl: z227.string().optional(),
6366
+ svgUrl: z227.string().optional(),
6367
+ exportProperties: z227.object({
6368
+ isAsset: z227.boolean()
6362
6369
  }),
6363
- createdAt: z226.coerce.date(),
6364
- updatedAt: z226.coerce.date(),
6370
+ createdAt: z227.coerce.date(),
6371
+ updatedAt: z227.coerce.date(),
6365
6372
  meta: ObjectMeta,
6366
6373
  originComponent: FigmaComponentOrigin.optional(),
6367
- parentComponentPersistentId: z226.string().optional(),
6368
- childrenPersistentIds: z226.string().array().optional(),
6374
+ parentComponentPersistentId: z227.string().optional(),
6375
+ childrenPersistentIds: z227.string().array().optional(),
6369
6376
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6370
- variantPropertyValues: z226.record(z226.string()).optional()
6377
+ variantPropertyValues: z227.record(z227.string()).optional()
6371
6378
  });
6372
- var DTOFigmaComponentListResponse = z226.object({
6379
+ var DTOFigmaComponentListResponse = z227.object({
6373
6380
  components: DTOFigmaComponent.array()
6374
6381
  });
6375
6382
 
6376
6383
  // src/api/dto/elements/documentation/group-action.ts
6377
- import { z as z228 } from "zod";
6384
+ import { z as z229 } from "zod";
6378
6385
 
6379
6386
  // src/api/dto/elements/documentation/group-v2.ts
6380
- import { z as z227 } from "zod";
6387
+ import { z as z228 } from "zod";
6381
6388
  var DTODocumentationGroupV2 = ElementGroup.omit({
6382
6389
  sortOrder: true,
6383
6390
  parentPersistentId: true,
@@ -6387,13 +6394,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6387
6394
  data: true,
6388
6395
  shortPersistentId: true
6389
6396
  }).extend({
6390
- title: z227.string(),
6391
- isRoot: z227.boolean(),
6392
- childrenIds: z227.array(z227.string()),
6397
+ title: z228.string(),
6398
+ isRoot: z228.boolean(),
6399
+ childrenIds: z228.array(z228.string()),
6393
6400
  groupBehavior: DocumentationGroupBehavior,
6394
- shortPersistentId: z227.string(),
6401
+ shortPersistentId: z228.string(),
6395
6402
  configuration: DTODocumentationItemConfigurationV2,
6396
- type: z227.literal("Group"),
6403
+ type: z228.literal("Group"),
6397
6404
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6398
6405
  draftState: DTODocumentationDraftState.optional(),
6399
6406
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6401,127 +6408,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6401
6408
  //** An approval state for frontend to utilize. */
6402
6409
  approvalState: DTODocumentationGroupApprovalState.optional()
6403
6410
  });
6404
- var DTOCreateDocumentationGroupInput = z227.object({
6411
+ var DTOCreateDocumentationGroupInput = z228.object({
6405
6412
  // Identifier
6406
- persistentId: z227.string(),
6413
+ persistentId: z228.string(),
6407
6414
  // Group properties
6408
- title: z227.string(),
6415
+ title: z228.string(),
6409
6416
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6410
6417
  // Group placement properties
6411
- afterPersistentId: z227.string().nullish(),
6412
- parentPersistentId: z227.string()
6418
+ afterPersistentId: z228.string().nullish(),
6419
+ parentPersistentId: z228.string()
6413
6420
  });
6414
- var DTOUpdateDocumentationGroupInput = z227.object({
6421
+ var DTOUpdateDocumentationGroupInput = z228.object({
6415
6422
  // Identifier of the group to update
6416
- id: z227.string(),
6423
+ id: z228.string(),
6417
6424
  // Group properties
6418
- title: z227.string().optional(),
6425
+ title: z228.string().optional(),
6419
6426
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6420
6427
  });
6421
- var DTOMoveDocumentationGroupInput = z227.object({
6428
+ var DTOMoveDocumentationGroupInput = z228.object({
6422
6429
  // Identifier of the group to update
6423
- id: z227.string(),
6430
+ id: z228.string(),
6424
6431
  // Group placement properties
6425
- parentPersistentId: z227.string(),
6426
- afterPersistentId: z227.string().nullish()
6432
+ parentPersistentId: z228.string(),
6433
+ afterPersistentId: z228.string().nullish()
6427
6434
  });
6428
- var DTODuplicateDocumentationGroupInput = z227.object({
6435
+ var DTODuplicateDocumentationGroupInput = z228.object({
6429
6436
  // Identifier of the group to duplicate from
6430
- id: z227.string(),
6437
+ id: z228.string(),
6431
6438
  // New group persistent id
6432
- persistentId: z227.string(),
6439
+ persistentId: z228.string(),
6433
6440
  // Group placement properties
6434
- afterPersistentId: z227.string().nullish(),
6435
- parentPersistentId: z227.string()
6441
+ afterPersistentId: z228.string().nullish(),
6442
+ parentPersistentId: z228.string()
6436
6443
  });
6437
- var DTOCreateDocumentationTabInput = z227.object({
6444
+ var DTOCreateDocumentationTabInput = z228.object({
6438
6445
  // New group persistent id
6439
- persistentId: z227.string(),
6446
+ persistentId: z228.string(),
6440
6447
  // If this is page, we will attempt to convert it to tab
6441
6448
  // If this is tab group, we will add a new tab to it
6442
- fromItemPersistentId: z227.string(),
6443
- tabName: z227.string()
6449
+ fromItemPersistentId: z228.string(),
6450
+ tabName: z228.string()
6444
6451
  });
6445
- var DTODeleteDocumentationTabGroupInput = z227.object({
6452
+ var DTODeleteDocumentationTabGroupInput = z228.object({
6446
6453
  // Deleted group id
6447
- id: z227.string()
6454
+ id: z228.string()
6448
6455
  });
6449
- var DTODeleteDocumentationGroupInput = z227.object({
6456
+ var DTODeleteDocumentationGroupInput = z228.object({
6450
6457
  // Identifier
6451
- id: z227.string(),
6458
+ id: z228.string(),
6452
6459
  // Deletion options
6453
- deleteSubtree: z227.boolean().default(false)
6460
+ deleteSubtree: z228.boolean().default(false)
6454
6461
  });
6455
6462
 
6456
6463
  // src/api/dto/elements/documentation/group-action.ts
6457
- var SuccessPayload = z228.object({
6458
- success: z228.literal(true)
6464
+ var SuccessPayload = z229.object({
6465
+ success: z229.literal(true)
6459
6466
  });
6460
- var DTODocumentationGroupCreateActionOutputV2 = z228.object({
6461
- type: z228.literal("DocumentationGroupCreate"),
6467
+ var DTODocumentationGroupCreateActionOutputV2 = z229.object({
6468
+ type: z229.literal("DocumentationGroupCreate"),
6462
6469
  output: SuccessPayload
6463
6470
  });
6464
- var DTODocumentationTabCreateActionOutputV2 = z228.object({
6465
- type: z228.literal("DocumentationTabCreate"),
6471
+ var DTODocumentationTabCreateActionOutputV2 = z229.object({
6472
+ type: z229.literal("DocumentationTabCreate"),
6466
6473
  output: SuccessPayload
6467
6474
  });
6468
- var DTODocumentationGroupUpdateActionOutputV2 = z228.object({
6469
- type: z228.literal("DocumentationGroupUpdate"),
6475
+ var DTODocumentationGroupUpdateActionOutputV2 = z229.object({
6476
+ type: z229.literal("DocumentationGroupUpdate"),
6470
6477
  output: SuccessPayload
6471
6478
  });
6472
- var DTODocumentationGroupMoveActionOutputV2 = z228.object({
6473
- type: z228.literal("DocumentationGroupMove"),
6479
+ var DTODocumentationGroupMoveActionOutputV2 = z229.object({
6480
+ type: z229.literal("DocumentationGroupMove"),
6474
6481
  output: SuccessPayload
6475
6482
  });
6476
- var DTODocumentationGroupDuplicateActionOutputV2 = z228.object({
6477
- type: z228.literal("DocumentationGroupDuplicate"),
6483
+ var DTODocumentationGroupDuplicateActionOutputV2 = z229.object({
6484
+ type: z229.literal("DocumentationGroupDuplicate"),
6478
6485
  output: SuccessPayload
6479
6486
  });
6480
- var DTODocumentationGroupDeleteActionOutputV2 = z228.object({
6481
- type: z228.literal("DocumentationGroupDelete"),
6487
+ var DTODocumentationGroupDeleteActionOutputV2 = z229.object({
6488
+ type: z229.literal("DocumentationGroupDelete"),
6482
6489
  output: SuccessPayload
6483
6490
  });
6484
- var DTODocumentationTabGroupDeleteActionOutputV2 = z228.object({
6485
- type: z228.literal("DocumentationTabGroupDelete"),
6491
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z229.object({
6492
+ type: z229.literal("DocumentationTabGroupDelete"),
6486
6493
  output: SuccessPayload
6487
6494
  });
6488
- var DTODocumentationGroupCreateActionInputV2 = z228.object({
6489
- type: z228.literal("DocumentationGroupCreate"),
6495
+ var DTODocumentationGroupCreateActionInputV2 = z229.object({
6496
+ type: z229.literal("DocumentationGroupCreate"),
6490
6497
  input: DTOCreateDocumentationGroupInput
6491
6498
  });
6492
- var DTODocumentationTabCreateActionInputV2 = z228.object({
6493
- type: z228.literal("DocumentationTabCreate"),
6499
+ var DTODocumentationTabCreateActionInputV2 = z229.object({
6500
+ type: z229.literal("DocumentationTabCreate"),
6494
6501
  input: DTOCreateDocumentationTabInput
6495
6502
  });
6496
- var DTODocumentationGroupUpdateActionInputV2 = z228.object({
6497
- type: z228.literal("DocumentationGroupUpdate"),
6503
+ var DTODocumentationGroupUpdateActionInputV2 = z229.object({
6504
+ type: z229.literal("DocumentationGroupUpdate"),
6498
6505
  input: DTOUpdateDocumentationGroupInput
6499
6506
  });
6500
- var DTODocumentationGroupMoveActionInputV2 = z228.object({
6501
- type: z228.literal("DocumentationGroupMove"),
6507
+ var DTODocumentationGroupMoveActionInputV2 = z229.object({
6508
+ type: z229.literal("DocumentationGroupMove"),
6502
6509
  input: DTOMoveDocumentationGroupInput
6503
6510
  });
6504
- var DTODocumentationGroupDuplicateActionInputV2 = z228.object({
6505
- type: z228.literal("DocumentationGroupDuplicate"),
6511
+ var DTODocumentationGroupDuplicateActionInputV2 = z229.object({
6512
+ type: z229.literal("DocumentationGroupDuplicate"),
6506
6513
  input: DTODuplicateDocumentationGroupInput
6507
6514
  });
6508
- var DTODocumentationGroupDeleteActionInputV2 = z228.object({
6509
- type: z228.literal("DocumentationGroupDelete"),
6515
+ var DTODocumentationGroupDeleteActionInputV2 = z229.object({
6516
+ type: z229.literal("DocumentationGroupDelete"),
6510
6517
  input: DTODeleteDocumentationGroupInput
6511
6518
  });
6512
- var DTODocumentationTabGroupDeleteActionInputV2 = z228.object({
6513
- type: z228.literal("DocumentationTabGroupDelete"),
6519
+ var DTODocumentationTabGroupDeleteActionInputV2 = z229.object({
6520
+ type: z229.literal("DocumentationTabGroupDelete"),
6514
6521
  input: DTODeleteDocumentationTabGroupInput
6515
6522
  });
6516
6523
 
6517
6524
  // src/api/dto/elements/documentation/group-v1.ts
6518
- import { z as z230 } from "zod";
6525
+ import { z as z231 } from "zod";
6519
6526
 
6520
6527
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6521
- import { z as z229 } from "zod";
6522
- var DocumentationColorV1 = z229.object({
6523
- aliasTo: z229.string().optional(),
6524
- value: z229.string().optional()
6528
+ import { z as z230 } from "zod";
6529
+ var DocumentationColorV1 = z230.object({
6530
+ aliasTo: z230.string().optional(),
6531
+ value: z230.string().optional()
6525
6532
  });
6526
6533
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6527
6534
  foregroundColor: true,
@@ -6530,10 +6537,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6530
6537
  foregroundColor: DocumentationColorV1.optional(),
6531
6538
  backgroundColor: DocumentationColorV1.optional()
6532
6539
  });
6533
- var DTODocumentationItemConfigurationV1 = z229.object({
6534
- showSidebar: z229.boolean(),
6535
- isPrivate: z229.boolean(),
6536
- isHidden: z229.boolean(),
6540
+ var DTODocumentationItemConfigurationV1 = z230.object({
6541
+ showSidebar: z230.boolean(),
6542
+ isPrivate: z230.boolean(),
6543
+ isHidden: z230.boolean(),
6537
6544
  header: DTODocumentationItemHeaderV1
6538
6545
  });
6539
6546
 
@@ -6547,27 +6554,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6547
6554
  data: true,
6548
6555
  shortPersistentId: true
6549
6556
  }).extend({
6550
- title: z230.string(),
6551
- isRoot: z230.boolean(),
6552
- childrenIds: z230.array(z230.string()),
6557
+ title: z231.string(),
6558
+ isRoot: z231.boolean(),
6559
+ childrenIds: z231.array(z231.string()),
6553
6560
  groupBehavior: DocumentationGroupBehavior,
6554
- shortPersistentId: z230.string(),
6555
- type: z230.literal("Group")
6561
+ shortPersistentId: z231.string(),
6562
+ type: z231.literal("Group")
6556
6563
  });
6557
6564
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6558
6565
  configuration: DTODocumentationItemConfigurationV1
6559
6566
  });
6560
6567
 
6561
6568
  // src/api/dto/elements/documentation/hierarchy.ts
6562
- import { z as z231 } from "zod";
6563
- var DTODocumentationHierarchyV2 = z231.object({
6564
- pages: z231.array(
6569
+ import { z as z232 } from "zod";
6570
+ var DTODocumentationHierarchyV2 = z232.object({
6571
+ pages: z232.array(
6565
6572
  DTODocumentationPageV2.extend({
6566
6573
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6567
6574
  draftState: DTODocumentationDraftState.optional()
6568
6575
  })
6569
6576
  ),
6570
- groups: z231.array(
6577
+ groups: z232.array(
6571
6578
  DTODocumentationGroupV2.extend({
6572
6579
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6573
6580
  draftState: DTODocumentationDraftState.optional()
@@ -6576,84 +6583,84 @@ var DTODocumentationHierarchyV2 = z231.object({
6576
6583
  });
6577
6584
 
6578
6585
  // src/api/dto/elements/documentation/page-actions-v2.ts
6579
- import { z as z232 } from "zod";
6580
- var SuccessPayload2 = z232.object({
6581
- success: z232.literal(true)
6586
+ import { z as z233 } from "zod";
6587
+ var SuccessPayload2 = z233.object({
6588
+ success: z233.literal(true)
6582
6589
  });
6583
- var DTODocumentationPageCreateActionOutputV2 = z232.object({
6584
- type: z232.literal("DocumentationPageCreate"),
6590
+ var DTODocumentationPageCreateActionOutputV2 = z233.object({
6591
+ type: z233.literal("DocumentationPageCreate"),
6585
6592
  output: SuccessPayload2
6586
6593
  });
6587
- var DTODocumentationPageUpdateActionOutputV2 = z232.object({
6588
- type: z232.literal("DocumentationPageUpdate"),
6594
+ var DTODocumentationPageUpdateActionOutputV2 = z233.object({
6595
+ type: z233.literal("DocumentationPageUpdate"),
6589
6596
  output: SuccessPayload2
6590
6597
  });
6591
- var DTODocumentationPageMoveActionOutputV2 = z232.object({
6592
- type: z232.literal("DocumentationPageMove"),
6598
+ var DTODocumentationPageMoveActionOutputV2 = z233.object({
6599
+ type: z233.literal("DocumentationPageMove"),
6593
6600
  output: SuccessPayload2
6594
6601
  });
6595
- var DTODocumentationPageDuplicateActionOutputV2 = z232.object({
6596
- type: z232.literal("DocumentationPageDuplicate"),
6602
+ var DTODocumentationPageDuplicateActionOutputV2 = z233.object({
6603
+ type: z233.literal("DocumentationPageDuplicate"),
6597
6604
  output: SuccessPayload2
6598
6605
  });
6599
- var DTODocumentationPageDeleteActionOutputV2 = z232.object({
6600
- type: z232.literal("DocumentationPageDelete"),
6606
+ var DTODocumentationPageDeleteActionOutputV2 = z233.object({
6607
+ type: z233.literal("DocumentationPageDelete"),
6601
6608
  output: SuccessPayload2
6602
6609
  });
6603
- var DTODocumentationPageRestoreActionOutput = z232.object({
6604
- type: z232.literal("DocumentationPageRestore"),
6610
+ var DTODocumentationPageRestoreActionOutput = z233.object({
6611
+ type: z233.literal("DocumentationPageRestore"),
6605
6612
  output: SuccessPayload2
6606
6613
  });
6607
- var DTODocumentationGroupRestoreActionOutput = z232.object({
6608
- type: z232.literal("DocumentationGroupRestore"),
6614
+ var DTODocumentationGroupRestoreActionOutput = z233.object({
6615
+ type: z233.literal("DocumentationGroupRestore"),
6609
6616
  output: SuccessPayload2
6610
6617
  });
6611
- var DTODocumentationPageApprovalStateChangeActionOutput = z232.object({
6612
- type: z232.literal("DocumentationPageApprovalStateChange"),
6618
+ var DTODocumentationPageApprovalStateChangeActionOutput = z233.object({
6619
+ type: z233.literal("DocumentationPageApprovalStateChange"),
6613
6620
  output: SuccessPayload2
6614
6621
  });
6615
- var DTODocumentationPageCreateActionInputV2 = z232.object({
6616
- type: z232.literal("DocumentationPageCreate"),
6622
+ var DTODocumentationPageCreateActionInputV2 = z233.object({
6623
+ type: z233.literal("DocumentationPageCreate"),
6617
6624
  input: DTOCreateDocumentationPageInputV2
6618
6625
  });
6619
- var DTODocumentationPageUpdateActionInputV2 = z232.object({
6620
- type: z232.literal("DocumentationPageUpdate"),
6626
+ var DTODocumentationPageUpdateActionInputV2 = z233.object({
6627
+ type: z233.literal("DocumentationPageUpdate"),
6621
6628
  input: DTOUpdateDocumentationPageInputV2
6622
6629
  });
6623
- var DTODocumentationPageMoveActionInputV2 = z232.object({
6624
- type: z232.literal("DocumentationPageMove"),
6630
+ var DTODocumentationPageMoveActionInputV2 = z233.object({
6631
+ type: z233.literal("DocumentationPageMove"),
6625
6632
  input: DTOMoveDocumentationPageInputV2
6626
6633
  });
6627
- var DTODocumentationPageDuplicateActionInputV2 = z232.object({
6628
- type: z232.literal("DocumentationPageDuplicate"),
6634
+ var DTODocumentationPageDuplicateActionInputV2 = z233.object({
6635
+ type: z233.literal("DocumentationPageDuplicate"),
6629
6636
  input: DTODuplicateDocumentationPageInputV2
6630
6637
  });
6631
- var DTODocumentationPageDeleteActionInputV2 = z232.object({
6632
- type: z232.literal("DocumentationPageDelete"),
6638
+ var DTODocumentationPageDeleteActionInputV2 = z233.object({
6639
+ type: z233.literal("DocumentationPageDelete"),
6633
6640
  input: DTODeleteDocumentationPageInputV2
6634
6641
  });
6635
- var DTODocumentationPageRestoreActionInput = z232.object({
6636
- type: z232.literal("DocumentationPageRestore"),
6642
+ var DTODocumentationPageRestoreActionInput = z233.object({
6643
+ type: z233.literal("DocumentationPageRestore"),
6637
6644
  input: DTORestoreDocumentationPageInput
6638
6645
  });
6639
- var DTODocumentationGroupRestoreActionInput = z232.object({
6640
- type: z232.literal("DocumentationGroupRestore"),
6646
+ var DTODocumentationGroupRestoreActionInput = z233.object({
6647
+ type: z233.literal("DocumentationGroupRestore"),
6641
6648
  input: DTORestoreDocumentationGroupInput
6642
6649
  });
6643
- var DTODocumentationPageApprovalStateChangeActionInput = z232.object({
6644
- type: z232.literal("DocumentationPageApprovalStateChange"),
6650
+ var DTODocumentationPageApprovalStateChangeActionInput = z233.object({
6651
+ type: z233.literal("DocumentationPageApprovalStateChange"),
6645
6652
  input: DTODocumentationPageApprovalStateChangeInput
6646
6653
  });
6647
6654
 
6648
6655
  // src/api/dto/elements/documentation/page-content.ts
6649
- import { z as z233 } from "zod";
6656
+ import { z as z234 } from "zod";
6650
6657
  var DTODocumentationPageContent = DocumentationPageContent;
6651
- var DTODocumentationPageContentGetResponse = z233.object({
6658
+ var DTODocumentationPageContentGetResponse = z234.object({
6652
6659
  pageContent: DTODocumentationPageContent
6653
6660
  });
6654
6661
 
6655
6662
  // src/api/dto/elements/documentation/page-v1.ts
6656
- import { z as z234 } from "zod";
6663
+ import { z as z235 } from "zod";
6657
6664
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6658
6665
  data: true,
6659
6666
  meta: true,
@@ -6661,32 +6668,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6661
6668
  sortOrder: true
6662
6669
  }).extend({
6663
6670
  configuration: DTODocumentationItemConfigurationV1,
6664
- blocks: z234.array(PageBlockV1),
6665
- title: z234.string(),
6666
- path: z234.string()
6671
+ blocks: z235.array(PageBlockV1),
6672
+ title: z235.string(),
6673
+ path: z235.string()
6667
6674
  });
6668
6675
 
6669
6676
  // src/api/dto/elements/figma-nodes/figma-node.ts
6670
- import { z as z235 } from "zod";
6677
+ import { z as z236 } from "zod";
6671
6678
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6672
- var DTOFigmaNodeOrigin = z235.object({
6673
- sourceId: z235.string(),
6674
- fileId: z235.string().optional(),
6675
- parentName: z235.string().optional()
6679
+ var DTOFigmaNodeOrigin = z236.object({
6680
+ sourceId: z236.string(),
6681
+ fileId: z236.string().optional(),
6682
+ parentName: z236.string().optional()
6676
6683
  });
6677
- var DTOFigmaNodeData = z235.object({
6684
+ var DTOFigmaNodeData = z236.object({
6678
6685
  // Id of the node in the Figma file
6679
- figmaNodeId: z235.string(),
6686
+ figmaNodeId: z236.string(),
6680
6687
  // Validity
6681
- isValid: z235.boolean(),
6688
+ isValid: z236.boolean(),
6682
6689
  // Asset data
6683
- assetId: z235.string(),
6684
- assetUrl: z235.string(),
6690
+ assetId: z236.string(),
6691
+ assetUrl: z236.string(),
6685
6692
  assetFormat: DTOFigmaNodeRenderFormat,
6686
6693
  // Asset metadata
6687
- assetScale: z235.number(),
6688
- assetWidth: z235.number().optional(),
6689
- assetHeight: z235.number().optional()
6694
+ assetScale: z236.number(),
6695
+ assetWidth: z236.number().optional(),
6696
+ assetHeight: z236.number().optional()
6690
6697
  });
6691
6698
  var DTOFigmaNode = FigmaNodeReference.omit({
6692
6699
  data: true,
@@ -6695,15 +6702,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6695
6702
  data: DTOFigmaNodeData,
6696
6703
  origin: DTOFigmaNodeOrigin
6697
6704
  });
6698
- var DTOFigmaNodeRenderInput = z235.object({
6705
+ var DTOFigmaNodeRenderInput = z236.object({
6699
6706
  /**
6700
6707
  * Id of a design system's data source representing a linked Figma file
6701
6708
  */
6702
- sourceId: z235.string(),
6709
+ sourceId: z236.string(),
6703
6710
  /**
6704
6711
  * Id of a node within the Figma file
6705
6712
  */
6706
- figmaFileNodeId: z235.string(),
6713
+ figmaFileNodeId: z236.string(),
6707
6714
  /**
6708
6715
  * Format in which the node must be rendered, png by default.
6709
6716
  */
@@ -6711,27 +6718,18 @@ var DTOFigmaNodeRenderInput = z235.object({
6711
6718
  });
6712
6719
 
6713
6720
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6714
- import { z as z236 } from "zod";
6715
- var DTOFigmaNodeRenderActionOutput = z236.object({
6716
- type: z236.literal("FigmaNodeRender"),
6717
- figmaNodes: z236.array(DTOFigmaNode)
6721
+ import { z as z237 } from "zod";
6722
+ var DTOFigmaNodeRenderActionOutput = z237.object({
6723
+ type: z237.literal("FigmaNodeRender"),
6724
+ figmaNodes: z237.array(DTOFigmaNode)
6718
6725
  });
6719
- var DTOFigmaNodeRenderActionInput = z236.object({
6720
- type: z236.literal("FigmaNodeRender"),
6726
+ var DTOFigmaNodeRenderActionInput = z237.object({
6727
+ type: z237.literal("FigmaNodeRender"),
6721
6728
  input: DTOFigmaNodeRenderInput.array()
6722
6729
  });
6723
6730
 
6724
6731
  // src/api/dto/elements/properties/property-definitions.ts
6725
6732
  import { z as z238 } from "zod";
6726
-
6727
- // src/api/dto/aux/meta.ts
6728
- import { z as z237 } from "zod";
6729
- var DTOObjectMeta = z237.object({
6730
- name: z237.string().max(512),
6731
- description: z237.string().max(2048).optional()
6732
- });
6733
-
6734
- // src/api/dto/elements/properties/property-definitions.ts
6735
6733
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6736
6734
  var DTOElementPropertyDefinitionOption = z238.object({
6737
6735
  id: z238.string(),
@@ -7211,6 +7209,18 @@ var DesignSystemVersionsEndpoint = class {
7211
7209
  list(dsId) {
7212
7210
  return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
7213
7211
  }
7212
+ commit(dsId, body) {
7213
+ return this.requestExecutor.json(`/design-systems/${dsId}/head/commit`, DTODesignSystemVersionCreationResponse, {
7214
+ method: "POST",
7215
+ body
7216
+ });
7217
+ }
7218
+ job(dsId, jobId) {
7219
+ return this.requestExecutor.json(
7220
+ `/design-systems/${dsId}/versions/jobs/${jobId}`,
7221
+ DTODesignSystemVersionJobStatusResponse
7222
+ );
7223
+ }
7214
7224
  };
7215
7225
 
7216
7226
  // src/api/endpoints/design-system/bff.ts
@@ -12648,6 +12658,7 @@ export {
12648
12658
  DTOMoveDocumentationPageInputV2,
12649
12659
  DTONpmRegistryConfig,
12650
12660
  DTONpmRegistryConfigConstants,
12661
+ DTOObjectMeta,
12651
12662
  DTOPageBlockColorV2,
12652
12663
  DTOPageBlockDefinition,
12653
12664
  DTOPageBlockDefinitionBehavior,