@supernova-studio/client 0.58.0 → 0.58.1

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
@@ -5127,49 +5127,55 @@ function integrationCredentialToDto(credential) {
5127
5127
  };
5128
5128
  }
5129
5129
 
5130
- // src/api/dto/aux/pagination.ts
5130
+ // src/api/dto/aux/color.ts
5131
5131
  import { z as z177 } from "zod";
5132
- var DTOPagination = z177.object({
5133
- limit: z177.string().optional(),
5134
- offset: z177.string().optional()
5132
+ var DTOColorTokenInlineData = z177.object({
5133
+ value: z177.string().regex(/^#[a-f0-9]{6,8}$/)
5134
+ });
5135
+
5136
+ // src/api/dto/aux/pagination.ts
5137
+ import { z as z178 } from "zod";
5138
+ var DTOPagination = z178.object({
5139
+ limit: z178.string().optional(),
5140
+ offset: z178.string().optional()
5135
5141
  });
5136
5142
 
5137
5143
  // src/api/dto/bff/app-bootstrap-data.ts
5138
- import { z as z210 } from "zod";
5144
+ import { z as z211 } from "zod";
5139
5145
 
5140
5146
  // src/api/dto/design-systems/brand.ts
5141
- import { z as z178 } from "zod";
5142
- var DTOBrand = z178.object({
5143
- id: z178.string(),
5144
- designSystemVersionId: z178.string(),
5145
- persistentId: z178.string(),
5147
+ import { z as z179 } from "zod";
5148
+ var DTOBrand = z179.object({
5149
+ id: z179.string(),
5150
+ designSystemVersionId: z179.string(),
5151
+ persistentId: z179.string(),
5146
5152
  meta: ObjectMeta
5147
5153
  });
5148
- var DTOBrandGetResponse = z178.object({ brand: DTOBrand });
5149
- var DTOBrandCreateResponse = z178.object({
5154
+ var DTOBrandGetResponse = z179.object({ brand: DTOBrand });
5155
+ var DTOBrandCreateResponse = z179.object({
5150
5156
  brand: DTOBrand
5151
5157
  });
5152
- var DTOBrandsListResponse = z178.object({ brands: z178.array(DTOBrand) });
5158
+ var DTOBrandsListResponse = z179.object({ brands: z179.array(DTOBrand) });
5153
5159
 
5154
5160
  // src/api/dto/design-systems/contact.ts
5155
- import { z as z182 } from "zod";
5161
+ import { z as z183 } from "zod";
5156
5162
 
5157
5163
  // src/api/dto/users/authenticated-user.ts
5158
- import { z as z180 } from "zod";
5164
+ import { z as z181 } from "zod";
5159
5165
 
5160
5166
  // src/api/dto/users/user.ts
5161
- import { z as z179 } from "zod";
5162
- var DTOUserProfile = z179.object({
5163
- name: z179.string(),
5164
- nickname: z179.string().optional(),
5165
- avatar: z179.string().optional()
5166
- });
5167
- var DTOUser = z179.object({
5168
- id: z179.string(),
5169
- email: z179.string(),
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(),
5170
5176
  profile: DTOUserProfile
5171
5177
  });
5172
- var DTOUserGetResponse = z179.object({
5178
+ var DTOUserGetResponse = z180.object({
5173
5179
  user: DTOUser
5174
5180
  });
5175
5181
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5178,146 +5184,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
5178
5184
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5179
5185
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5180
5186
  var DTOUserSource = UserSource;
5181
- var DTOUserOnboarding = z180.object({
5182
- companyName: z180.string().optional(),
5183
- numberOfPeopleInOrg: z180.string().optional(),
5184
- numberOfPeopleInDesignTeam: z180.string().optional(),
5187
+ var DTOUserOnboarding = z181.object({
5188
+ companyName: z181.string().optional(),
5189
+ numberOfPeopleInOrg: z181.string().optional(),
5190
+ numberOfPeopleInDesignTeam: z181.string().optional(),
5185
5191
  department: DTOUserOnboardingDepartment.optional(),
5186
- jobTitle: z180.string().optional(),
5187
- phase: z180.string().optional(),
5192
+ jobTitle: z181.string().optional(),
5193
+ phase: z181.string().optional(),
5188
5194
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5189
- designSystemName: z180.string().optional(),
5190
- defaultDestination: z180.string().optional(),
5191
- isPageDraftOnboardingFinished: z180.boolean().optional()
5195
+ designSystemName: z181.string().optional(),
5196
+ defaultDestination: z181.string().optional(),
5197
+ isPageDraftOnboardingFinished: z181.boolean().optional()
5192
5198
  });
5193
5199
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5194
5200
  onboarding: DTOUserOnboarding.optional()
5195
5201
  });
5196
5202
  var DTOAuthenticatedUser = DTOUser.extend({
5197
5203
  profile: DTOAuthenticatedUserProfile,
5198
- createdAt: z180.coerce.date(),
5199
- loggedOutAt: z180.coerce.date().optional(),
5204
+ createdAt: z181.coerce.date(),
5205
+ loggedOutAt: z181.coerce.date().optional(),
5200
5206
  source: DTOUserSource.optional()
5201
5207
  });
5202
- var DTOAuthenticatedUserResponse = z180.object({
5208
+ var DTOAuthenticatedUserResponse = z181.object({
5203
5209
  user: DTOAuthenticatedUser
5204
5210
  });
5205
5211
 
5206
5212
  // src/api/dto/users/update.ts
5207
- import { z as z181 } from "zod";
5208
- var DTOUserProfileUpdateResponse = z181.object({
5213
+ import { z as z182 } from "zod";
5214
+ var DTOUserProfileUpdateResponse = z182.object({
5209
5215
  user: User
5210
5216
  });
5211
5217
 
5212
5218
  // src/api/dto/design-systems/contact.ts
5213
- var DTODesignSystemContactsResponse = z182.object({
5214
- contacts: z182.object({
5215
- workspace: z182.array(DTOUser),
5216
- designSystem: z182.array(DTOUser)
5219
+ var DTODesignSystemContactsResponse = z183.object({
5220
+ contacts: z183.object({
5221
+ workspace: z183.array(DTOUser),
5222
+ designSystem: z183.array(DTOUser)
5217
5223
  })
5218
5224
  });
5219
5225
 
5220
5226
  // src/api/dto/design-systems/data-source.ts
5221
- import { z as z183 } from "zod";
5222
- var DTODataSourceFigmaFileVersion = z183.object({
5223
- id: z183.string(),
5224
- created_at: z183.coerce.date(),
5225
- label: z183.string(),
5226
- description: z183.string()
5227
- });
5228
- var DTODataSourceFigmaCloud = z183.object({
5229
- fileId: z183.string(),
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(),
5230
5236
  state: DataSourceFigmaState,
5231
5237
  autoImportMode: DataSourceAutoImportMode,
5232
- fileThumbnailUrl: z183.string().optional(),
5238
+ fileThumbnailUrl: z184.string().optional(),
5233
5239
  lastImportResult: SourceImportSummary.nullish(),
5234
- lastImportedAt: z183.coerce.date().nullish(),
5240
+ lastImportedAt: z184.coerce.date().nullish(),
5235
5241
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5236
- lastUpdatesCheckedAt: z183.date().nullish(),
5237
- ownerId: z183.string(),
5238
- ownerUserName: z183.string().optional(),
5239
- preferredCredentialId: z183.string().optional(),
5242
+ lastUpdatesCheckedAt: z184.date().nullish(),
5243
+ ownerId: z184.string(),
5244
+ ownerUserName: z184.string().optional(),
5245
+ preferredCredentialId: z184.string().optional(),
5240
5246
  stats: DataSourceStats
5241
5247
  });
5242
- var DTODataSourceFigma = z183.object({
5243
- id: z183.string(),
5244
- type: z183.literal(DataSourceRemoteType.Enum.Figma),
5245
- fileName: z183.string(),
5248
+ var DTODataSourceFigma = z184.object({
5249
+ id: z184.string(),
5250
+ type: z184.literal(DataSourceRemoteType.Enum.Figma),
5251
+ fileName: z184.string(),
5246
5252
  scope: DataSourceFigmaScope,
5247
- brandId: z183.string(),
5248
- themeId: z183.string().nullish(),
5253
+ brandId: z184.string(),
5254
+ themeId: z184.string().nullish(),
5249
5255
  cloud: DTODataSourceFigmaCloud.nullish()
5250
5256
  });
5251
- var DTODataSourceTokenStudio = z183.object({
5252
- id: z183.string(),
5253
- type: z183.literal(DataSourceRemoteType.Enum.TokenStudio),
5254
- fileName: z183.string(),
5255
- brandId: z183.string(),
5256
- themeId: z183.string().nullish(),
5257
- tokenStudio: z183.object({
5258
- settings: z183.object({
5259
- dryRun: z183.boolean(),
5260
- verbose: z183.boolean(),
5261
- preciseCopy: z183.boolean()
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()
5262
5268
  }),
5263
- connectionName: z183.string(),
5264
- lastImportedAt: z183.coerce.date(),
5265
- lastImportedResults: z183.array(
5266
- z183.object({
5267
- mapping: z183.object({
5268
- tokenSets: z183.array(z183.string()),
5269
- supernovaBrand: z183.string(),
5270
- supernovaTheme: z183.string().optional()
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()
5271
5277
  }),
5272
- isFailed: z183.boolean(),
5273
- tokensCreated: z183.number(),
5274
- tokensDeleted: z183.number(),
5275
- tokensUpdated: z183.number()
5278
+ isFailed: z184.boolean(),
5279
+ tokensCreated: z184.number(),
5280
+ tokensDeleted: z184.number(),
5281
+ tokensUpdated: z184.number()
5276
5282
  })
5277
5283
  )
5278
5284
  })
5279
5285
  });
5280
- var DTODataSourceFigmaVariablesPlugin = z183.object({
5281
- id: z183.string(),
5282
- type: z183.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5283
- fileName: z183.string(),
5284
- brandId: z183.string(),
5285
- upload: z183.object({
5286
- remoteId: z183.string(),
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(),
5287
5293
  remoteSourceType: DataSourceUploadRemoteSource,
5288
- lastImportedAt: z183.coerce.date().optional(),
5294
+ lastImportedAt: z184.coerce.date().optional(),
5289
5295
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5290
- isTokenTypeSplitEnabled: z183.boolean()
5296
+ isTokenTypeSplitEnabled: z184.boolean()
5291
5297
  }),
5292
- figmaVariablesPlugin: z183.object({
5293
- fileId: z183.string(),
5294
- lastImportedAt: z183.coerce.date().optional(),
5298
+ figmaVariablesPlugin: z184.object({
5299
+ fileId: z184.string(),
5300
+ lastImportedAt: z184.coerce.date().optional(),
5295
5301
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5296
- isTokenTypeSplitEnabled: z183.boolean(),
5297
- isCollectionsMigrationCompleted: z183.boolean().default(false)
5302
+ isTokenTypeSplitEnabled: z184.boolean(),
5303
+ isCollectionsMigrationCompleted: z184.boolean().default(false)
5298
5304
  })
5299
5305
  });
5300
- var DTODataSource = z183.discriminatedUnion("type", [
5306
+ var DTODataSource = z184.discriminatedUnion("type", [
5301
5307
  DTODataSourceFigma,
5302
5308
  DTODataSourceFigmaVariablesPlugin,
5303
5309
  DTODataSourceTokenStudio
5304
5310
  ]);
5305
- var DTODataSourcesListResponse = z183.object({
5306
- sources: z183.array(DTODataSource)
5311
+ var DTODataSourcesListResponse = z184.object({
5312
+ sources: z184.array(DTODataSource)
5307
5313
  });
5308
- var DTODataSourceCreationResponse = z183.object({
5314
+ var DTODataSourceCreationResponse = z184.object({
5309
5315
  source: DTODataSource
5310
5316
  });
5311
5317
 
5312
5318
  // src/api/dto/design-systems/design-system.ts
5313
- import { z as z186 } from "zod";
5319
+ import { z as z187 } from "zod";
5314
5320
 
5315
5321
  // src/api/dto/design-systems/members.ts
5316
- import { z as z185 } from "zod";
5322
+ import { z as z186 } from "zod";
5317
5323
 
5318
5324
  // src/api/dto/design-systems/role.ts
5319
- import { z as z184 } from "zod";
5320
- var DTODesignSystemRole = z184.enum([
5325
+ import { z as z185 } from "zod";
5326
+ var DTODesignSystemRole = z185.enum([
5321
5327
  WorkspaceRole.Admin,
5322
5328
  WorkspaceRole.Contributor,
5323
5329
  WorkspaceRole.Creator,
@@ -5325,29 +5331,29 @@ var DTODesignSystemRole = z184.enum([
5325
5331
  ]);
5326
5332
 
5327
5333
  // src/api/dto/design-systems/members.ts
5328
- var DTODesignSystemMember = z185.object({
5329
- userId: z185.string(),
5334
+ var DTODesignSystemMember = z186.object({
5335
+ userId: z186.string(),
5330
5336
  /**
5331
5337
  * Role that the member has in the design system,
5332
5338
  * undefined if set to inherit from workspace
5333
5339
  */
5334
5340
  designSystemRole: DTODesignSystemRole.optional()
5335
5341
  });
5336
- var DTODesignSystemInvitation = z185.object({
5337
- id: z185.string(),
5338
- workspaceInvitationId: z185.string(),
5342
+ var DTODesignSystemInvitation = z186.object({
5343
+ id: z186.string(),
5344
+ workspaceInvitationId: z186.string(),
5339
5345
  /**
5340
5346
  * Role that the invitation has in the design system,
5341
5347
  * undefined if set to inherit from workspace
5342
5348
  */
5343
5349
  designSystemRole: DTODesignSystemRole.optional()
5344
5350
  });
5345
- var DTODesignSystemMemberListResponse = z185.object({
5351
+ var DTODesignSystemMemberListResponse = z186.object({
5346
5352
  members: DTODesignSystemMember.array(),
5347
5353
  invitations: DTODesignSystemInvitation.array()
5348
5354
  });
5349
- var DTODesignSystemMembersUpdateResponse = z185.object({
5350
- ok: z185.literal(true)
5355
+ var DTODesignSystemMembersUpdateResponse = z186.object({
5356
+ ok: z186.literal(true)
5351
5357
  });
5352
5358
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5353
5359
 
@@ -5358,14 +5364,14 @@ var DTODesignSystem = DesignSystem.omit({
5358
5364
  docExporterId: true
5359
5365
  }).extend({
5360
5366
  meta: ObjectMeta,
5361
- docExporterId: z186.string(),
5362
- sources: z186.array(z186.any()),
5363
- isPublic: z186.literal(true),
5367
+ docExporterId: z187.string(),
5368
+ sources: z187.array(z187.any()),
5369
+ isPublic: z187.literal(true),
5364
5370
  /**
5365
5371
  * Whether or not user who is requesting the design system
5366
5372
  * has access to the design system's contents.
5367
5373
  */
5368
- isAvailableToUser: z186.boolean(),
5374
+ isAvailableToUser: z187.boolean(),
5369
5375
  /**
5370
5376
  * @deprecated
5371
5377
  */
@@ -5376,17 +5382,17 @@ var DTODesignSystem = DesignSystem.omit({
5376
5382
  */
5377
5383
  effectiveRole: DTODesignSystemRole.optional()
5378
5384
  });
5379
- var DTODesignSystemResponse = z186.object({
5385
+ var DTODesignSystemResponse = z187.object({
5380
5386
  designSystem: DTODesignSystem
5381
5387
  });
5382
- var DTODesignSystemsListResponse = z186.object({
5388
+ var DTODesignSystemsListResponse = z187.object({
5383
5389
  designSystems: DTODesignSystem.array()
5384
5390
  });
5385
- var DTODesignSystemCreateInput = z186.object({
5386
- workspaceId: z186.string(),
5391
+ var DTODesignSystemCreateInput = z187.object({
5392
+ workspaceId: z187.string(),
5387
5393
  meta: ObjectMeta.optional(),
5388
- name: z186.string().min(2).max(64).optional(),
5389
- description: z186.string().max(1024).optional(),
5394
+ name: z187.string().min(2).max(64).optional(),
5395
+ description: z187.string().max(1024).optional(),
5390
5396
  accessMode: DesignSystemAccessMode.optional(),
5391
5397
  invites: DTODesignSystemMembersUpdatePayload.pick({
5392
5398
  usersToInvite: true,
@@ -5396,25 +5402,25 @@ var DTODesignSystemCreateInput = z186.object({
5396
5402
  });
5397
5403
 
5398
5404
  // src/api/dto/design-systems/elements-diff.ts
5399
- import { z as z187 } from "zod";
5400
- var DTODiffCountBase = z187.object({
5401
- created: z187.number(),
5402
- updated: z187.number(),
5403
- deleted: z187.number()
5405
+ import { z as z188 } from "zod";
5406
+ var DTODiffCountBase = z188.object({
5407
+ created: z188.number(),
5408
+ updated: z188.number(),
5409
+ deleted: z188.number()
5404
5410
  });
5405
- var DTODesignElementsDataDiffResponse = z187.object({
5411
+ var DTODesignElementsDataDiffResponse = z188.object({
5406
5412
  tokens: DTODiffCountBase,
5407
5413
  assets: DTODiffCountBase
5408
5414
  });
5409
5415
 
5410
5416
  // src/api/dto/design-systems/exporter-property.ts
5411
- import { z as z188 } from "zod";
5412
- var DTOExporterProperty = z188.any({});
5413
- var DTOExporterPropertyListResponse = z188.object({ items: z188.array(DTOExporterProperty) });
5417
+ import { z as z189 } from "zod";
5418
+ var DTOExporterProperty = z189.any({});
5419
+ var DTOExporterPropertyListResponse = z189.object({ items: z189.array(DTOExporterProperty) });
5414
5420
 
5415
5421
  // src/api/dto/design-systems/figma-variables.ts
5416
- import { z as z189 } from "zod";
5417
- var DimensionsVariableScopeSchema = z189.enum([
5422
+ import { z as z190 } from "zod";
5423
+ var DimensionsVariableScopeSchema = z190.enum([
5418
5424
  "CORNER_RADIUS",
5419
5425
  "WIDTH_HEIGHT",
5420
5426
  "GAP",
@@ -5428,130 +5434,130 @@ var DimensionsVariableScopeSchema = z189.enum([
5428
5434
  "PARAGRAPH_INDENT",
5429
5435
  "FONT_WEIGHT"
5430
5436
  ]);
5431
- var StringVariableScopeSchema = z189.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5437
+ var StringVariableScopeSchema = z190.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5432
5438
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5433
5439
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5434
- var VariableScope = z189.string();
5435
- var ReferencedVariableOrigin = z189.object({
5436
- name: z189.string(),
5437
- remote: z189.boolean()
5440
+ var VariableScope = z190.string();
5441
+ var ReferencedVariableOrigin = z190.object({
5442
+ name: z190.string(),
5443
+ remote: z190.boolean()
5438
5444
  });
5439
- var RGB = z189.object({
5440
- r: z189.number(),
5441
- g: z189.number(),
5442
- b: z189.number()
5445
+ var RGB = z190.object({
5446
+ r: z190.number(),
5447
+ g: z190.number(),
5448
+ b: z190.number()
5443
5449
  });
5444
5450
  var RGBA = RGB.extend({
5445
- a: z189.number()
5446
- });
5447
- var VariableAlias = z189.object({
5448
- type: z189.literal("VARIABLE_ALIAS"),
5449
- id: z189.string(),
5450
- resolvedValue: z189.boolean().or(z189.number()).or(z189.string()).or(RGBA).or(RGB).optional(),
5451
- referenceOrigin: ReferencedVariableOrigin.optional().or(z189.null())
5452
- });
5453
- var VariableValue = z189.boolean().or(z189.number()).or(z189.string()).or(RGBA).or(RGB).or(VariableAlias);
5454
- var ResolvedVariableType = z189.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5455
- var Variable = z189.object({
5456
- id: z189.string(),
5457
- name: z189.string(),
5458
- key: z189.string(),
5459
- variableCollectionId: z189.string(),
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(),
5460
5466
  resolvedType: ResolvedVariableType,
5461
- valuesByMode: z189.record(VariableValue),
5462
- remote: z189.boolean(),
5463
- description: z189.string(),
5464
- hiddenFromPublishing: z189.boolean(),
5465
- scopes: z189.array(VariableScope),
5466
- codeSyntax: z189.record(z189.any()).optional()
5467
- });
5468
- var VariableMode = z189.object({
5469
- modeId: z189.string(),
5470
- name: z189.string()
5471
- });
5472
- var Collection2 = z189.object({
5473
- id: z189.string(),
5474
- name: z189.string(),
5475
- modes: z189.array(VariableMode),
5476
- defaultModeId: z189.string(),
5477
- remote: z189.boolean(),
5478
- hiddenFromPublishing: z189.boolean()
5479
- });
5480
- var VariablesMapping = z189.object({
5481
- variableCollections: z189.array(z189.string()).min(1),
5482
- variableMode: z189.string().min(1),
5483
- supernovaBrand: z189.string().min(1),
5484
- supernovaTheme: z189.string().min(1).optional().or(z189.null())
5485
- });
5486
- var FormattedCollections = z189.object({
5487
- variables: z189.record(z189.string(), Variable),
5488
- variableCollections: z189.record(z189.string(), Collection2),
5489
- mappings: z189.array(VariablesMapping).optional(),
5490
- variablesOrder: z189.string().array().optional()
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()
5491
5497
  });
5492
5498
 
5493
5499
  // src/api/dto/design-systems/import-job.ts
5494
- import { z as z190 } from "zod";
5495
- var DTOImportJob = z190.object({
5496
- id: z190.string(),
5497
- designSystemId: z190.string(),
5498
- designSystemVersionId: z190.string(),
5499
- operation: z190.literal("Import"),
5500
- createdAt: z190.coerce.date(),
5501
- stateChangedAt: z190.coerce.date(),
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(),
5502
5508
  state: ImportJobState,
5503
- sourceIds: z190.string().array()
5509
+ sourceIds: z191.string().array()
5504
5510
  });
5505
- var DTOImportJobResponse = z190.object({
5511
+ var DTOImportJobResponse = z191.object({
5506
5512
  job: DTOImportJob
5507
5513
  });
5508
- var DTOBffFigmaImportRequestBody = z190.object({
5509
- type: z190.literal(DataSourceRemoteType.Enum.Figma),
5510
- brandPersistentId: z190.string().optional(),
5511
- fileId: z190.string(),
5514
+ var DTOBffFigmaImportRequestBody = z191.object({
5515
+ type: z191.literal(DataSourceRemoteType.Enum.Figma),
5516
+ brandPersistentId: z191.string().optional(),
5517
+ fileId: z191.string(),
5512
5518
  scope: DataSourceFigmaScope,
5513
5519
  autoImportMode: DataSourceAutoImportMode
5514
5520
  });
5515
- var DTOBffUploadImportRequestBody = z190.object({
5516
- type: z190.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5517
- brandPersistentId: z190.string().optional(),
5518
- sourceName: z190.string().optional(),
5519
- remoteId: z190.string(),
5520
- isTokenTypeSplitEnabled: z190.boolean().optional(),
5521
- payload: z190.any()
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()
5522
5528
  });
5523
- var DTOBffImportRequestBody = z190.discriminatedUnion("type", [
5529
+ var DTOBffImportRequestBody = z191.discriminatedUnion("type", [
5524
5530
  DTOBffFigmaImportRequestBody,
5525
5531
  DTOBffUploadImportRequestBody
5526
5532
  ]);
5527
5533
 
5528
5534
  // src/api/dto/design-systems/stats.ts
5529
- import { z as z191 } from "zod";
5530
- var DTODesignSystemVersionStats = z191.object({
5531
- tokens: z191.number(),
5532
- designSystemComponents: z191.number(),
5533
- assets: z191.number(),
5534
- documentationPages: z191.number()
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()
5535
5541
  });
5536
- var DTODesignSystemVersionStatsQuery = z191.object({
5537
- brandId: z191.string().optional()
5542
+ var DTODesignSystemVersionStatsQuery = z192.object({
5543
+ brandId: z192.string().optional()
5538
5544
  });
5539
5545
 
5540
5546
  // src/api/dto/design-systems/version.ts
5541
- import { z as z202 } from "zod";
5547
+ import { z as z203 } from "zod";
5542
5548
 
5543
5549
  // src/api/payloads/design-systems/brand.ts
5544
- import { z as z192 } from "zod";
5545
- var DTOCreateBrandInput = z192.object({
5546
- persistentId: z192.string().uuid(),
5547
- meta: z192.object({
5548
- name: z192.string(),
5549
- description: z192.string()
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()
5550
5556
  })
5551
5557
  });
5552
5558
 
5553
5559
  // src/api/payloads/design-systems/update-design-system.ts
5554
- import { z as z193 } from "zod";
5560
+ import { z as z194 } from "zod";
5555
5561
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5556
5562
  id: true,
5557
5563
  workspaceId: true,
@@ -5563,40 +5569,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5563
5569
  }).extend({
5564
5570
  meta: ObjectMeta.partial().optional()
5565
5571
  });
5566
- var DTODesignSystemUpdateAccessModeInput = z193.object({
5572
+ var DTODesignSystemUpdateAccessModeInput = z194.object({
5567
5573
  accessMode: DesignSystemAccessMode,
5568
- retain: z193.object({
5569
- userIds: z193.string().array(),
5570
- inviteIds: z193.string().array()
5574
+ retain: z194.object({
5575
+ userIds: z194.string().array(),
5576
+ inviteIds: z194.string().array()
5571
5577
  }).optional()
5572
5578
  });
5573
5579
 
5574
5580
  // src/api/payloads/design-systems/version.ts
5575
- import { z as z194 } from "zod";
5576
- var ObjectMeta2 = z194.object({
5577
- name: z194.string().max(150).optional(),
5578
- description: z194.string().max(2e3).optional()
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()
5579
5585
  });
5580
5586
  function validateDesignSystemVersion(version) {
5581
5587
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5582
5588
  return urlCompliantRegex.test(version);
5583
5589
  }
5584
- var DTOCreateVersionInput = z194.object({
5590
+ var DTOCreateVersionInput = z195.object({
5585
5591
  meta: ObjectMeta2,
5586
- version: z194.string().refine(validateDesignSystemVersion, {
5592
+ version: z195.string().refine(validateDesignSystemVersion, {
5587
5593
  message: "Invalid semantic versioning format"
5588
5594
  }),
5589
- changeLog: z194.string().optional()
5595
+ changeLog: z195.string().optional()
5590
5596
  });
5591
- var DTOUpdateVersionInput = z194.object({
5597
+ var DTOUpdateVersionInput = z195.object({
5592
5598
  meta: ObjectMeta2,
5593
- version: z194.string(),
5599
+ version: z195.string(),
5594
5600
  // required for PUT, but not editable
5595
- changeLog: z194.string()
5601
+ changeLog: z195.string()
5596
5602
  });
5597
5603
 
5598
5604
  // src/api/payloads/documentation/block-definitions.ts
5599
- import { z as z195 } from "zod";
5605
+ import { z as z196 } from "zod";
5600
5606
 
5601
5607
  // src/api/dto/documentation/block-definition.ts
5602
5608
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5608,60 +5614,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5608
5614
  var DTOPageBlockDefinition = PageBlockDefinition;
5609
5615
 
5610
5616
  // src/api/payloads/documentation/block-definitions.ts
5611
- var DTOGetBlockDefinitionsOutput = z195.object({
5612
- definitions: z195.array(DTOPageBlockDefinition)
5617
+ var DTOGetBlockDefinitionsOutput = z196.object({
5618
+ definitions: z196.array(DTOPageBlockDefinition)
5613
5619
  });
5614
5620
 
5615
5621
  // src/api/payloads/documentation/design-data-doc-diff.ts
5616
- import { z as z196 } from "zod";
5617
- var DTODocumentationPublishTypeQueryParams = z196.object({
5618
- environment: z196.enum(["Live", "Preview"])
5622
+ import { z as z197 } from "zod";
5623
+ var DTODocumentationPublishTypeQueryParams = z197.object({
5624
+ environment: z197.enum(["Live", "Preview"])
5619
5625
  });
5620
5626
 
5621
5627
  // src/api/payloads/export/pipeline.ts
5622
- import { z as z197 } from "zod";
5623
- var DTOPipelineCreateBody = z197.object({
5624
- name: z197.string(),
5625
- exporterId: z197.string(),
5626
- designSystemId: z197.string(),
5627
- isEnabled: z197.boolean(),
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(),
5628
5634
  eventType: PipelineEventType,
5629
- brandPersistentId: z197.string().optional(),
5630
- themePersistentId: z197.string().optional(),
5631
- themePersistentIds: z197.string().array().optional(),
5635
+ brandPersistentId: z198.string().optional(),
5636
+ themePersistentId: z198.string().optional(),
5637
+ themePersistentIds: z198.string().array().optional(),
5632
5638
  destination: PipelineDestinationType.optional(),
5633
5639
  gitQuery: GitObjectsQuery,
5634
- destinations: z197.object({
5640
+ destinations: z198.object({
5635
5641
  s3: ExporterDestinationS3.nullish(),
5636
5642
  azure: ExporterDestinationAzure.nullish(),
5637
5643
  bitbucket: ExporterDestinationBitbucket.nullish(),
5638
5644
  github: ExporterDestinationGithub.nullish(),
5639
5645
  gitlab: ExporterDestinationGitlab.nullish(),
5640
5646
  documentation: ExporterDestinationDocs.nullish(),
5641
- webhookUrl: z197.string().nullish()
5647
+ webhookUrl: z198.string().nullish()
5642
5648
  })
5643
5649
  });
5644
5650
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5645
- id: z197.string()
5651
+ id: z198.string()
5646
5652
  });
5647
- var DTOPipelineTriggerBody = z197.object({
5648
- designSystemVersionId: z197.string()
5653
+ var DTOPipelineTriggerBody = z198.object({
5654
+ designSystemVersionId: z198.string()
5649
5655
  });
5650
5656
 
5651
5657
  // src/api/payloads/liveblocks/auth.ts
5652
- import { z as z198 } from "zod";
5653
- var DTOLiveblocksAuthRequest = z198.object({
5654
- room: z198.string().optional()
5658
+ import { z as z199 } from "zod";
5659
+ var DTOLiveblocksAuthRequest = z199.object({
5660
+ room: z199.string().optional()
5655
5661
  });
5656
5662
 
5657
5663
  // src/api/payloads/users/notifications/notification-settings.ts
5658
- import { z as z199 } from "zod";
5659
- var DTOUpdateUserNotificationSettingsPayload = z199.object({
5664
+ import { z as z200 } from "zod";
5665
+ var DTOUpdateUserNotificationSettingsPayload = z200.object({
5660
5666
  notificationSettings: UserNotificationSettings
5661
5667
  });
5662
- var DTOUserNotificationSettingsResponse = z199.object({
5663
- userId: z199.string(),
5664
- workspaceId: z199.string(),
5668
+ var DTOUserNotificationSettingsResponse = z200.object({
5669
+ userId: z200.string(),
5670
+ workspaceId: z200.string(),
5665
5671
  notificationSettings: UserNotificationSettings
5666
5672
  });
5667
5673
 
@@ -5669,7 +5675,7 @@ var DTOUserNotificationSettingsResponse = z199.object({
5669
5675
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5670
5676
 
5671
5677
  // src/api/payloads/workspaces/workspace-configuration.ts
5672
- import { z as z200 } from "zod";
5678
+ import { z as z201 } from "zod";
5673
5679
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5674
5680
  function validateSsoPayload(ssoPayload) {
5675
5681
  const keys = [];
@@ -5692,21 +5698,21 @@ function validateSsoPayload(ssoPayload) {
5692
5698
  keys
5693
5699
  };
5694
5700
  }
5695
- var NpmRegistryInput = z200.object({
5696
- enabledScopes: z200.array(z200.string()),
5697
- customRegistryUrl: z200.string().optional(),
5698
- bypassProxy: z200.boolean().optional(),
5699
- npmProxyRegistryConfigId: z200.string().optional(),
5700
- npmProxyVersion: z200.number().optional(),
5701
- registryType: z200.string(),
5702
- authType: z200.string(),
5703
- authHeaderName: z200.string(),
5704
- authHeaderValue: z200.string(),
5705
- accessToken: z200.string(),
5706
- username: z200.string(),
5707
- password: z200.string()
5708
- });
5709
- var WorkspaceConfigurationPayload = z200.object({
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({
5710
5716
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5711
5717
  sso: SsoProvider.partial().optional(),
5712
5718
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5714,218 +5720,218 @@ var WorkspaceConfigurationPayload = z200.object({
5714
5720
  });
5715
5721
 
5716
5722
  // src/api/payloads/workspaces/workspace-integrations.ts
5717
- import { z as z201 } from "zod";
5718
- var DTOWorkspaceIntegrationOauthInput = z201.object({
5723
+ import { z as z202 } from "zod";
5724
+ var DTOWorkspaceIntegrationOauthInput = z202.object({
5719
5725
  type: IntegrationType
5720
5726
  });
5721
- var DTOWorkspaceIntegrationPATInput = z201.object({
5722
- userId: z201.string(),
5727
+ var DTOWorkspaceIntegrationPATInput = z202.object({
5728
+ userId: z202.string(),
5723
5729
  type: IntegrationType,
5724
5730
  token: IntegrationToken
5725
5731
  });
5726
- var DTOWorkspaceIntegrationGetGitObjectsInput = z201.object({
5727
- organization: z201.string().optional(),
5732
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z202.object({
5733
+ organization: z202.string().optional(),
5728
5734
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5729
- project: z201.string().optional(),
5735
+ project: z202.string().optional(),
5730
5736
  // Only for Bitbucket and Azure
5731
- repository: z201.string().optional(),
5737
+ repository: z202.string().optional(),
5732
5738
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5733
- branch: z201.string().optional(),
5739
+ branch: z202.string().optional(),
5734
5740
  // For all providers, useful for PR creations.
5735
- user: z201.string().optional()
5741
+ user: z202.string().optional()
5736
5742
  // Only for Gitlab User Repositories
5737
5743
  });
5738
5744
 
5739
5745
  // src/api/dto/design-systems/version.ts
5740
- var DTODesignSystemVersion = z202.object({
5741
- id: z202.string(),
5742
- createdAt: z202.coerce.date(),
5746
+ var DTODesignSystemVersion = z203.object({
5747
+ id: z203.string(),
5748
+ createdAt: z203.coerce.date(),
5743
5749
  meta: ObjectMeta,
5744
- version: z202.string(),
5745
- isReadonly: z202.boolean(),
5746
- changeLog: z202.string(),
5747
- designSystemId: z202.string()
5750
+ version: z203.string(),
5751
+ isReadonly: z203.boolean(),
5752
+ changeLog: z203.string(),
5753
+ designSystemId: z203.string()
5748
5754
  });
5749
- var DTODesignSystemVersionsListResponse = z202.object({
5750
- designSystemVersions: z202.array(DTODesignSystemVersion)
5755
+ var DTODesignSystemVersionsListResponse = z203.object({
5756
+ designSystemVersions: z203.array(DTODesignSystemVersion)
5751
5757
  });
5752
- var DTODesignSystemVersionGetResponse = z202.object({
5758
+ var DTODesignSystemVersionGetResponse = z203.object({
5753
5759
  designSystemVersion: DTODesignSystemVersion
5754
5760
  });
5755
- var DTODesignSystemVersionCreationResponse = z202.object({
5761
+ var DTODesignSystemVersionCreationResponse = z203.object({
5756
5762
  meta: ObjectMeta,
5757
- version: z202.string(),
5758
- changeLog: z202.string(),
5759
- isReadOnly: z202.boolean(),
5760
- designSystemId: z202.string(),
5761
- jobId: z202.string()
5762
- });
5763
- var VersionSQSPayload = z202.object({
5764
- jobId: z202.string(),
5765
- designSystemId: z202.string(),
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(),
5766
5772
  input: DTOCreateVersionInput
5767
5773
  });
5768
- var DTODesignSystemVersionJobsResponse = z202.object({
5769
- jobs: z202.array(VersionCreationJob)
5774
+ var DTODesignSystemVersionJobsResponse = z203.object({
5775
+ jobs: z203.array(VersionCreationJob)
5770
5776
  });
5771
- var DTODesignSystemVersionJobStatusResponse = z202.object({
5777
+ var DTODesignSystemVersionJobStatusResponse = z203.object({
5772
5778
  job: VersionCreationJob
5773
5779
  });
5774
5780
 
5775
5781
  // src/api/dto/design-systems/view.ts
5776
- import { z as z203 } from "zod";
5777
- var DTOElementViewColumnSharedAttributes = z203.object({
5778
- id: z203.string(),
5779
- persistentId: z203.string(),
5780
- width: z203.number()
5782
+ import { z as z204 } from "zod";
5783
+ var DTOElementViewColumnSharedAttributes = z204.object({
5784
+ id: z204.string(),
5785
+ persistentId: z204.string(),
5786
+ width: z204.number()
5781
5787
  });
5782
5788
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5783
- type: z203.literal("BaseProperty"),
5789
+ type: z204.literal("BaseProperty"),
5784
5790
  basePropertyType: ElementViewBaseColumnType
5785
5791
  });
5786
5792
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5787
- type: z203.literal("PropertyDefinition"),
5788
- propertyDefinitionId: z203.string()
5793
+ type: z204.literal("PropertyDefinition"),
5794
+ propertyDefinitionId: z204.string()
5789
5795
  });
5790
5796
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5791
- type: z203.literal("Theme"),
5792
- themeId: z203.string()
5797
+ type: z204.literal("Theme"),
5798
+ themeId: z204.string()
5793
5799
  });
5794
- var DTOElementViewColumn = z203.discriminatedUnion("type", [
5800
+ var DTOElementViewColumn = z204.discriminatedUnion("type", [
5795
5801
  DTOElementViewBasePropertyColumn,
5796
5802
  DTOElementViewPropertyDefinitionColumn,
5797
5803
  DTOElementViewThemeColumn
5798
5804
  ]);
5799
- var DTOElementView = z203.object({
5805
+ var DTOElementView = z204.object({
5800
5806
  meta: ObjectMeta,
5801
- persistentId: z203.string(),
5807
+ persistentId: z204.string(),
5802
5808
  targetElementType: ElementPropertyTargetType,
5803
- id: z203.string(),
5804
- isDefault: z203.boolean(),
5805
- columns: z203.array(DTOElementViewColumn)
5809
+ id: z204.string(),
5810
+ isDefault: z204.boolean(),
5811
+ columns: z204.array(DTOElementViewColumn)
5806
5812
  });
5807
- var DTOElementViewsListResponse = z203.object({
5808
- elementDataViews: z203.array(DTOElementView)
5813
+ var DTOElementViewsListResponse = z204.object({
5814
+ elementDataViews: z204.array(DTOElementView)
5809
5815
  });
5810
5816
 
5811
5817
  // src/api/dto/workspaces/git.ts
5812
- import { z as z204 } from "zod";
5813
- var DTOGitOrganization = z204.object({
5814
- id: z204.string(),
5815
- name: z204.string(),
5816
- url: z204.string(),
5817
- slug: z204.string()
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()
5818
5824
  });
5819
- var DTOGitProject = z204.object({
5820
- id: z204.string(),
5821
- name: z204.string(),
5822
- url: z204.string(),
5823
- slug: z204.string()
5825
+ var DTOGitProject = z205.object({
5826
+ id: z205.string(),
5827
+ name: z205.string(),
5828
+ url: z205.string(),
5829
+ slug: z205.string()
5824
5830
  });
5825
- var DTOGitRepository = z204.object({
5826
- id: z204.string(),
5827
- name: z204.string(),
5828
- url: z204.string(),
5829
- slug: z204.string(),
5830
- defaultBranch: z204.string().optional()
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()
5831
5837
  });
5832
- var DTOGitBranch = z204.object({
5833
- name: z204.string(),
5834
- lastCommitId: z204.string()
5838
+ var DTOGitBranch = z205.object({
5839
+ name: z205.string(),
5840
+ lastCommitId: z205.string()
5835
5841
  });
5836
5842
 
5837
5843
  // src/api/dto/workspaces/integrations.ts
5838
- import { z as z205 } from "zod";
5844
+ import { z as z206 } from "zod";
5839
5845
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5840
5846
  accessToken: true,
5841
5847
  refreshToken: true
5842
5848
  });
5843
- var DTOIntegration = z205.object({
5844
- id: z205.string(),
5845
- workspaceId: z205.string(),
5849
+ var DTOIntegration = z206.object({
5850
+ id: z206.string(),
5851
+ workspaceId: z206.string(),
5846
5852
  type: ExtendedIntegrationType,
5847
- createdAt: z205.coerce.date(),
5848
- integrationCredentials: z205.array(DTOIntegrationCredentials).optional(),
5849
- integrationDesignSystems: z205.array(IntegrationDesignSystem).optional()
5853
+ createdAt: z206.coerce.date(),
5854
+ integrationCredentials: z206.array(DTOIntegrationCredentials).optional(),
5855
+ integrationDesignSystems: z206.array(IntegrationDesignSystem).optional()
5850
5856
  });
5851
- var DTOIntegrationOAuthGetResponse = z205.object({
5852
- url: z205.string()
5857
+ var DTOIntegrationOAuthGetResponse = z206.object({
5858
+ url: z206.string()
5853
5859
  });
5854
- var DTOIntegrationPostResponse = z205.object({
5860
+ var DTOIntegrationPostResponse = z206.object({
5855
5861
  integration: DTOIntegration
5856
5862
  });
5857
- var DTOIntegrationsGetListResponse = z205.object({
5863
+ var DTOIntegrationsGetListResponse = z206.object({
5858
5864
  integrations: DTOIntegration.array()
5859
5865
  });
5860
5866
 
5861
5867
  // src/api/dto/workspaces/invitations.ts
5862
- import { z as z206 } from "zod";
5863
- var DTOWorkspaceInvitationInput = z206.object({
5864
- email: z206.string().email(),
5868
+ import { z as z207 } from "zod";
5869
+ var DTOWorkspaceInvitationInput = z207.object({
5870
+ email: z207.string().email(),
5865
5871
  role: WorkspaceRoleSchema
5866
5872
  });
5867
- var DTOWorkspaceInvitationsListInput = z206.object({
5873
+ var DTOWorkspaceInvitationsListInput = z207.object({
5868
5874
  invites: DTOWorkspaceInvitationInput.array().max(100),
5869
- designSystemId: z206.string().optional()
5875
+ designSystemId: z207.string().optional()
5870
5876
  });
5871
- var DTOWorkspaceInvitationsResponse = z206.object({
5877
+ var DTOWorkspaceInvitationsResponse = z207.object({
5872
5878
  invitations: WorkspaceInvitation.array()
5873
5879
  });
5874
- var DTOWorkspaceInviteUpdate = z206.object({
5880
+ var DTOWorkspaceInviteUpdate = z207.object({
5875
5881
  role: WorkspaceRoleSchema
5876
5882
  });
5877
- var DTOWorkspaceInvitationUpdateResponse = z206.object({
5883
+ var DTOWorkspaceInvitationUpdateResponse = z207.object({
5878
5884
  invitation: WorkspaceInvitation
5879
5885
  });
5880
5886
 
5881
5887
  // src/api/dto/workspaces/membership.ts
5882
- import { z as z209 } from "zod";
5888
+ import { z as z210 } from "zod";
5883
5889
 
5884
5890
  // src/api/dto/workspaces/workspace.ts
5885
- import { z as z208 } from "zod";
5891
+ import { z as z209 } from "zod";
5886
5892
 
5887
5893
  // src/api/dto/workspaces/npm-registry.ts
5888
- import { z as z207 } from "zod";
5894
+ import { z as z208 } from "zod";
5889
5895
  var DTONpmRegistryConfigConstants = {
5890
5896
  passwordPlaceholder: "redacted"
5891
5897
  };
5892
- var DTONpmRegistryConfig = z207.object({
5898
+ var DTONpmRegistryConfig = z208.object({
5893
5899
  // Registry basic configuration
5894
5900
  registryType: NpmRegistryType,
5895
- registryUrl: z207.string(),
5896
- customRegistryUrl: z207.string().optional(),
5901
+ registryUrl: z208.string(),
5902
+ customRegistryUrl: z208.string().optional(),
5897
5903
  // URL of Supernova NPM packages proxy
5898
- proxyUrl: z207.string(),
5904
+ proxyUrl: z208.string(),
5899
5905
  // Auth configuration
5900
5906
  authType: NpmRegistryAuthType,
5901
- accessToken: z207.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5902
- username: z207.string().optional(),
5903
- password: z207.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5907
+ accessToken: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5908
+ username: z208.string().optional(),
5909
+ password: z208.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5904
5910
  // NPM package scopes for whih the proxy should be enabled
5905
- enabledScopes: z207.array(z207.string()),
5911
+ enabledScopes: z208.array(z208.string()),
5906
5912
  // True if client should bypass Supernova proxy and connect directly to the registry
5907
5913
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5908
- bypassProxy: z207.boolean()
5914
+ bypassProxy: z208.boolean()
5909
5915
  });
5910
5916
 
5911
5917
  // src/api/dto/workspaces/workspace.ts
5912
5918
  var DTOWorkspaceProfile = WorkspaceProfile;
5913
- var DTOWorkspace = z208.object({
5914
- id: z208.string(),
5919
+ var DTOWorkspace = z209.object({
5920
+ id: z209.string(),
5915
5921
  profile: DTOWorkspaceProfile,
5916
5922
  subscription: Subscription,
5917
5923
  npmRegistry: DTONpmRegistryConfig.optional()
5918
5924
  });
5919
- var DTOWorkspaceCreateInput = z208.object({
5920
- name: z208.string()
5925
+ var DTOWorkspaceCreateInput = z209.object({
5926
+ name: z209.string()
5921
5927
  });
5922
- var DTOWorkspaceResponse = z208.object({
5928
+ var DTOWorkspaceResponse = z209.object({
5923
5929
  workspace: DTOWorkspace
5924
5930
  });
5925
5931
 
5926
5932
  // src/api/dto/workspaces/membership.ts
5927
- var DTOWorkspaceRole = z209.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5928
- var DTOUserWorkspaceMembership = z209.object({
5933
+ var DTOWorkspaceRole = z210.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5934
+ var DTOUserWorkspaceMembership = z210.object({
5929
5935
  // Workspace the user is a member of
5930
5936
  workspace: DTOWorkspace,
5931
5937
  // Assigned role the user has in the workspace
@@ -5935,26 +5941,26 @@ var DTOUserWorkspaceMembership = z209.object({
5935
5941
  // when a workspace's subscription is downgraded to free tier
5936
5942
  effectiveRole: DTOWorkspaceRole
5937
5943
  });
5938
- var DTOWorkspaceMember = z209.object({
5944
+ var DTOWorkspaceMember = z210.object({
5939
5945
  user: User,
5940
5946
  role: WorkspaceRoleSchema,
5941
5947
  effectiveRole: WorkspaceRoleSchema
5942
5948
  });
5943
- var DTOUserWorkspaceMembershipsResponse = z209.object({
5944
- membership: z209.array(DTOUserWorkspaceMembership)
5949
+ var DTOUserWorkspaceMembershipsResponse = z210.object({
5950
+ membership: z210.array(DTOUserWorkspaceMembership)
5945
5951
  });
5946
- var DTOWorkspaceMembersListResponse = z209.object({
5947
- members: z209.array(DTOWorkspaceMember)
5952
+ var DTOWorkspaceMembersListResponse = z210.object({
5953
+ members: z210.array(DTOWorkspaceMember)
5948
5954
  });
5949
5955
 
5950
5956
  // src/api/dto/bff/app-bootstrap-data.ts
5951
- var DTOAppBootstrapDataQuery = z210.object({
5952
- preferredWorkspaceId: z210.string().optional(),
5953
- preferredDesignSystemId: z210.string().optional(),
5954
- preferredVersionId: z210.string().optional(),
5955
- preferredBrandId: z210.string().optional()
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()
5956
5962
  });
5957
- var DTOAppBootstrapDataResponse = z210.object({
5963
+ var DTOAppBootstrapDataResponse = z211.object({
5958
5964
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5959
5965
  designSystem: DTODesignSystem.optional(),
5960
5966
  version: DTODesignSystemVersion.optional(),
@@ -5962,88 +5968,88 @@ var DTOAppBootstrapDataResponse = z210.object({
5962
5968
  });
5963
5969
 
5964
5970
  // src/api/dto/collections/token-collection.ts
5965
- import { z as z211 } from "zod";
5966
- var DTOTokenCollection = z211.object({
5967
- id: z211.string(),
5968
- persistentId: z211.string(),
5969
- designSystemVersionId: z211.string(),
5971
+ import { z as z212 } from "zod";
5972
+ var DTOTokenCollection = z212.object({
5973
+ id: z212.string(),
5974
+ persistentId: z212.string(),
5975
+ designSystemVersionId: z212.string(),
5970
5976
  meta: ObjectMeta,
5971
5977
  backgroundColor: ColorTokenInlineData.optional(),
5972
- elementPropertyOptionId: z211.string(),
5973
- createdAt: z211.coerce.date(),
5974
- updatedAt: z211.coerce.date(),
5978
+ elementPropertyOptionId: z212.string(),
5979
+ createdAt: z212.coerce.date(),
5980
+ updatedAt: z212.coerce.date(),
5975
5981
  origin: CollectionOrigin.optional()
5976
5982
  });
5977
- var DTOTokenCollectionsListReponse = z211.object({
5983
+ var DTOTokenCollectionsListReponse = z212.object({
5978
5984
  collections: DTOTokenCollection.array()
5979
5985
  });
5980
5986
 
5981
5987
  // src/api/dto/design-tokens/design-token.ts
5982
- import { z as z212 } from "zod";
5988
+ import { z as z213 } from "zod";
5983
5989
  var DTODesignToken = DesignTokenTypedData.and(
5984
- z212.object({
5985
- id: z212.string(),
5986
- persistentId: z212.string(),
5987
- designSystemVersionId: z212.string(),
5990
+ z213.object({
5991
+ id: z213.string(),
5992
+ persistentId: z213.string(),
5993
+ designSystemVersionId: z213.string(),
5988
5994
  meta: ObjectMeta,
5989
5995
  originStyle: DesignTokenOrigin.optional(),
5990
- brandId: z212.string(),
5991
- collectionId: z212.string().optional(),
5992
- updatedAt: z212.coerce.date()
5996
+ brandId: z213.string(),
5997
+ collectionId: z213.string().optional(),
5998
+ updatedAt: z213.coerce.date()
5993
5999
  })
5994
6000
  );
5995
- var DTODesignTokenListResponse = z212.object({
6001
+ var DTODesignTokenListResponse = z213.object({
5996
6002
  tokens: DTODesignToken.array()
5997
6003
  });
5998
- var DTODesignTokenResponse = z212.object({
6004
+ var DTODesignTokenResponse = z213.object({
5999
6005
  token: DTODesignToken
6000
6006
  });
6001
- var DTODesignTokenGroup = z212.object({
6002
- id: z212.string(),
6007
+ var DTODesignTokenGroup = z213.object({
6008
+ id: z213.string(),
6003
6009
  tokenType: DesignTokenType,
6004
- persistentId: z212.string(),
6005
- isRoot: z212.boolean(),
6006
- brandId: z212.string(),
6010
+ persistentId: z213.string(),
6011
+ isRoot: z213.boolean(),
6012
+ brandId: z213.string(),
6007
6013
  meta: ObjectMeta,
6008
- childrenIds: z212.string().array()
6014
+ childrenIds: z213.string().array()
6009
6015
  });
6010
- var DTODesignTokenGroupListResponse = z212.object({
6016
+ var DTODesignTokenGroupListResponse = z213.object({
6011
6017
  groups: DTODesignTokenGroup.array()
6012
6018
  });
6013
- var DTODesignTokenGroupResponse = z212.object({
6019
+ var DTODesignTokenGroupResponse = z213.object({
6014
6020
  group: DTODesignTokenGroup
6015
6021
  });
6016
6022
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6017
- z212.object({
6018
- persistentId: z212.string(),
6023
+ z213.object({
6024
+ persistentId: z213.string(),
6019
6025
  meta: ObjectMeta,
6020
- brandId: z212.string(),
6021
- groupPersistentId: z212.string().optional()
6026
+ brandId: z213.string(),
6027
+ groupPersistentId: z213.string().optional()
6022
6028
  })
6023
6029
  );
6024
- var DTODesignTokenGroupCreatePayload = z212.object({
6025
- persistentId: z212.string(),
6030
+ var DTODesignTokenGroupCreatePayload = z213.object({
6031
+ persistentId: z213.string(),
6026
6032
  meta: ObjectMeta,
6027
- brandId: z212.string(),
6028
- parentId: z212.string().optional(),
6033
+ brandId: z213.string(),
6034
+ parentId: z213.string().optional(),
6029
6035
  tokenType: DesignTokenType,
6030
- childrenIds: z212.string().array()
6036
+ childrenIds: z213.string().array()
6031
6037
  });
6032
6038
 
6033
6039
  // src/api/dto/documentation/anchor.ts
6034
- import { z as z213 } from "zod";
6040
+ import { z as z214 } from "zod";
6035
6041
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6036
- var DTOGetDocumentationPageAnchorsResponse = z213.object({
6037
- anchors: z213.array(DTODocumentationPageAnchor)
6042
+ var DTOGetDocumentationPageAnchorsResponse = z214.object({
6043
+ anchors: z214.array(DTODocumentationPageAnchor)
6038
6044
  });
6039
6045
 
6040
6046
  // src/api/dto/documentation/approvals.ts
6041
- import { z as z214 } from "zod";
6047
+ import { z as z215 } from "zod";
6042
6048
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
6043
- var DTODocumentationGroupApprovalState = z214.object({
6044
- persistentId: z214.string(),
6045
- groupId: z214.string(),
6046
- designSystemVersionId: z214.string(),
6049
+ var DTODocumentationGroupApprovalState = z215.object({
6050
+ persistentId: z215.string(),
6051
+ groupId: z215.string(),
6052
+ designSystemVersionId: z215.string(),
6047
6053
  approvalState: DocumentationPageApprovalState
6048
6054
  });
6049
6055
 
@@ -6051,68 +6057,68 @@ var DTODocumentationGroupApprovalState = z214.object({
6051
6057
  var DTOPageBlockItemV2 = PageBlockItemV2;
6052
6058
 
6053
6059
  // src/api/dto/documentation/documentation-page-snapshot.ts
6054
- import { z as z219 } from "zod";
6060
+ import { z as z220 } from "zod";
6055
6061
 
6056
6062
  // src/api/dto/elements/documentation/page-v2.ts
6057
- import { z as z218 } from "zod";
6063
+ import { z as z219 } from "zod";
6058
6064
 
6059
6065
  // src/api/dto/elements/documentation/draft-state.ts
6060
- import { z as z216 } from "zod";
6066
+ import { z as z217 } from "zod";
6061
6067
 
6062
6068
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6063
- import { z as z215 } from "zod";
6069
+ import { z as z216 } from "zod";
6064
6070
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6065
- var DTODocumentationItemConfigurationV2 = z215.object({
6066
- showSidebar: z215.boolean(),
6067
- isPrivate: z215.boolean(),
6068
- isHidden: z215.boolean(),
6071
+ var DTODocumentationItemConfigurationV2 = z216.object({
6072
+ showSidebar: z216.boolean(),
6073
+ isPrivate: z216.boolean(),
6074
+ isHidden: z216.boolean(),
6069
6075
  header: DTODocumentationItemHeaderV2
6070
6076
  });
6071
6077
 
6072
6078
  // src/api/dto/elements/documentation/draft-state.ts
6073
- var DTODocumentationDraftChangeType = z216.enum(["Created", "Updated", "Deleted"]);
6074
- var DTODocumentationDraftStateCreated = z216.object({
6075
- changeType: z216.literal(DTODocumentationDraftChangeType.enum.Created)
6076
- });
6077
- var DTODocumentationDraftStateUpdated = z216.object({
6078
- changeType: z216.literal(DTODocumentationDraftChangeType.enum.Updated),
6079
- changes: z216.object({
6080
- previousTitle: z216.string().optional(),
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(),
6081
6087
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6082
- previousContentHash: z216.string().optional()
6088
+ previousContentHash: z217.string().optional()
6083
6089
  })
6084
6090
  });
6085
- var DTODocumentationDraftStateDeleted = z216.object({
6086
- changeType: z216.literal(DTODocumentationDraftChangeType.enum.Deleted),
6087
- deletedAt: z216.coerce.date(),
6088
- deletedByUserId: z216.string()
6091
+ var DTODocumentationDraftStateDeleted = z217.object({
6092
+ changeType: z217.literal(DTODocumentationDraftChangeType.enum.Deleted),
6093
+ deletedAt: z217.coerce.date(),
6094
+ deletedByUserId: z217.string()
6089
6095
  });
6090
- var DTODocumentationDraftState = z216.discriminatedUnion("changeType", [
6096
+ var DTODocumentationDraftState = z217.discriminatedUnion("changeType", [
6091
6097
  DTODocumentationDraftStateCreated,
6092
6098
  DTODocumentationDraftStateUpdated,
6093
6099
  DTODocumentationDraftStateDeleted
6094
6100
  ]);
6095
6101
 
6096
6102
  // src/api/dto/elements/documentation/metadata.ts
6097
- import { z as z217 } from "zod";
6098
- var DTODocumentationPublishMetadata = z217.object({
6099
- lastPublishedByUserId: z217.string(),
6100
- lastPublishedAt: z217.coerce.date()
6103
+ import { z as z218 } from "zod";
6104
+ var DTODocumentationPublishMetadata = z218.object({
6105
+ lastPublishedByUserId: z218.string(),
6106
+ lastPublishedAt: z218.coerce.date()
6101
6107
  });
6102
6108
 
6103
6109
  // src/api/dto/elements/documentation/page-v2.ts
6104
- var DTODocumentationPageV2 = z218.object({
6105
- id: z218.string(),
6106
- persistentId: z218.string(),
6107
- designSystemVersionId: z218.string(),
6108
- title: z218.string(),
6110
+ var DTODocumentationPageV2 = z219.object({
6111
+ id: z219.string(),
6112
+ persistentId: z219.string(),
6113
+ designSystemVersionId: z219.string(),
6114
+ title: z219.string(),
6109
6115
  configuration: DTODocumentationItemConfigurationV2,
6110
- shortPersistentId: z218.string(),
6111
- slug: z218.string().optional(),
6112
- userSlug: z218.string().optional(),
6113
- createdAt: z218.coerce.date(),
6114
- updatedAt: z218.coerce.date(),
6115
- path: z218.string(),
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(),
6116
6122
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6117
6123
  draftState: DTODocumentationDraftState.optional(),
6118
6124
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6120,215 +6126,215 @@ var DTODocumentationPageV2 = z218.object({
6120
6126
  /** Defines the approval state of the documentation page */
6121
6127
  approvalState: DTODocumentationPageApprovalState.optional(),
6122
6128
  // Backward compatibility
6123
- type: z218.literal("Page")
6129
+ type: z219.literal("Page")
6124
6130
  });
6125
- var DTOCreateDocumentationPageInputV2 = z218.object({
6131
+ var DTOCreateDocumentationPageInputV2 = z219.object({
6126
6132
  // Identifier
6127
- persistentId: z218.string(),
6133
+ persistentId: z219.string(),
6128
6134
  // Page properties
6129
- title: z218.string(),
6135
+ title: z219.string(),
6130
6136
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6131
6137
  // Page placement properties
6132
- parentPersistentId: z218.string(),
6133
- afterPersistentId: z218.string().nullish()
6138
+ parentPersistentId: z219.string(),
6139
+ afterPersistentId: z219.string().nullish()
6134
6140
  });
6135
- var DTOUpdateDocumentationPageInputV2 = z218.object({
6141
+ var DTOUpdateDocumentationPageInputV2 = z219.object({
6136
6142
  // Identifier of the group to update
6137
- id: z218.string(),
6143
+ id: z219.string(),
6138
6144
  // Page properties
6139
- title: z218.string().optional(),
6145
+ title: z219.string().optional(),
6140
6146
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6141
6147
  });
6142
- var DTOMoveDocumentationPageInputV2 = z218.object({
6148
+ var DTOMoveDocumentationPageInputV2 = z219.object({
6143
6149
  // Identifier of the group to update
6144
- id: z218.string(),
6150
+ id: z219.string(),
6145
6151
  // Page placement properties
6146
- parentPersistentId: z218.string(),
6147
- afterPersistentId: z218.string().nullish()
6152
+ parentPersistentId: z219.string(),
6153
+ afterPersistentId: z219.string().nullish()
6148
6154
  });
6149
- var DTODuplicateDocumentationPageInputV2 = z218.object({
6155
+ var DTODuplicateDocumentationPageInputV2 = z219.object({
6150
6156
  // Identifier of the page to duplicate from
6151
- id: z218.string(),
6157
+ id: z219.string(),
6152
6158
  // New page persistent id
6153
- persistentId: z218.string(),
6159
+ persistentId: z219.string(),
6154
6160
  // Page placement properties
6155
- parentPersistentId: z218.string(),
6156
- afterPersistentId: z218.string().nullish()
6161
+ parentPersistentId: z219.string(),
6162
+ afterPersistentId: z219.string().nullish()
6157
6163
  });
6158
- var DTODeleteDocumentationPageInputV2 = z218.object({
6164
+ var DTODeleteDocumentationPageInputV2 = z219.object({
6159
6165
  // Identifier
6160
- id: z218.string()
6166
+ id: z219.string()
6161
6167
  });
6162
- var DTORestoreDocumentationPageInput = z218.object({
6163
- persistentId: z218.string(),
6164
- snapshotId: z218.string().optional()
6168
+ var DTORestoreDocumentationPageInput = z219.object({
6169
+ persistentId: z219.string(),
6170
+ snapshotId: z219.string().optional()
6165
6171
  });
6166
- var DTORestoreDocumentationGroupInput = z218.object({
6167
- persistentId: z218.string(),
6168
- snapshotId: z218.string().optional()
6172
+ var DTORestoreDocumentationGroupInput = z219.object({
6173
+ persistentId: z219.string(),
6174
+ snapshotId: z219.string().optional()
6169
6175
  });
6170
- var DTODocumentationPageApprovalStateChangeInput = z218.object({
6171
- persistentId: z218.string(),
6176
+ var DTODocumentationPageApprovalStateChangeInput = z219.object({
6177
+ persistentId: z219.string(),
6172
6178
  approvalState: DocumentationPageApprovalState.optional()
6173
6179
  });
6174
6180
 
6175
6181
  // src/api/dto/documentation/documentation-page-snapshot.ts
6176
- var DTODocumentationPageSnapshot = z219.object({
6177
- id: z219.string(),
6178
- designSystemVersionId: z219.string(),
6179
- createdAt: z219.string(),
6180
- updatedAt: z219.string(),
6182
+ var DTODocumentationPageSnapshot = z220.object({
6183
+ id: z220.string(),
6184
+ designSystemVersionId: z220.string(),
6185
+ createdAt: z220.string(),
6186
+ updatedAt: z220.string(),
6181
6187
  documentationPage: DTODocumentationPageV2,
6182
- pageContentHash: z219.string(),
6188
+ pageContentHash: z220.string(),
6183
6189
  reason: DesignElementSnapshotReason
6184
6190
  });
6185
6191
 
6186
6192
  // src/api/dto/documentation/link-preview.ts
6187
- import { z as z220 } from "zod";
6188
- var DTODocumentationLinkPreviewResponse = z220.object({
6193
+ import { z as z221 } from "zod";
6194
+ var DTODocumentationLinkPreviewResponse = z221.object({
6189
6195
  linkPreview: DocumentationLinkPreview
6190
6196
  });
6191
- var DTODocumentationLinkPreviewRequest = z220.object({
6192
- url: z220.string().optional(),
6193
- documentationItemPersistentId: z220.string().optional()
6197
+ var DTODocumentationLinkPreviewRequest = z221.object({
6198
+ url: z221.string().optional(),
6199
+ documentationItemPersistentId: z221.string().optional()
6194
6200
  });
6195
6201
 
6196
6202
  // src/api/dto/documentation/publish.ts
6197
- import { z as z224 } from "zod";
6203
+ import { z as z225 } from "zod";
6198
6204
 
6199
6205
  // src/api/dto/export/exporter.ts
6200
- import { z as z221 } from "zod";
6201
- var DTOExporterType = z221.enum(["documentation", "code"]);
6202
- var DTOExporterSource = z221.enum(["git", "upload"]);
6203
- var DTOExporterMembershipRole = z221.enum(["Owner", "OwnerArchived", "User"]);
6204
- var DTOExporterListQuery = z221.object({
6205
- limit: z221.coerce.number().optional()
6206
- });
6207
- var DTOExporter = z221.object({
6208
- id: z221.string(),
6209
- name: z221.string(),
6210
- isPrivate: z221.boolean(),
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(),
6211
6217
  exporterType: DTOExporterType,
6212
- isDefaultDocumentationExporter: z221.boolean(),
6213
- iconURL: z221.string().optional(),
6218
+ isDefaultDocumentationExporter: z222.boolean(),
6219
+ iconURL: z222.string().optional(),
6214
6220
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6215
6221
  customBlocks: PulsarCustomBlock.array(),
6216
- blockVariants: z221.record(z221.string(), PulsarContributionVariant.array()),
6217
- usesBrands: z221.boolean(),
6218
- usesThemes: z221.boolean(),
6222
+ blockVariants: z222.record(z222.string(), PulsarContributionVariant.array()),
6223
+ usesBrands: z222.boolean(),
6224
+ usesThemes: z222.boolean(),
6219
6225
  source: DTOExporterSource,
6220
- gitUrl: nullishToOptional(z221.string()),
6221
- gitBranch: nullishToOptional(z221.string()),
6222
- gitDirectory: nullishToOptional(z221.string())
6226
+ gitUrl: nullishToOptional(z222.string()),
6227
+ gitBranch: nullishToOptional(z222.string()),
6228
+ gitDirectory: nullishToOptional(z222.string())
6223
6229
  });
6224
- var DTOExporterMembership = z221.object({
6225
- workspaceId: z221.string(),
6226
- exporterId: z221.string(),
6230
+ var DTOExporterMembership = z222.object({
6231
+ workspaceId: z222.string(),
6232
+ exporterId: z222.string(),
6227
6233
  role: DTOExporterMembershipRole
6228
6234
  });
6229
- var DTOExporterCreateOutput = z221.object({
6235
+ var DTOExporterCreateOutput = z222.object({
6230
6236
  exporter: DTOExporter,
6231
6237
  membership: DTOExporterMembership
6232
6238
  });
6233
- var DTOExporterListResponse = z221.object({
6239
+ var DTOExporterListResponse = z222.object({
6234
6240
  exporters: DTOExporter.array(),
6235
6241
  membership: DTOExporterMembership.array()
6236
6242
  });
6237
- var DTOExporterGitProviderEnum = z221.enum(["github", "gitlab", "bitbucket", "azure"]);
6238
- var DTOExporterCreateInput = z221.object({
6239
- url: z221.string(),
6243
+ var DTOExporterGitProviderEnum = z222.enum(["github", "gitlab", "bitbucket", "azure"]);
6244
+ var DTOExporterCreateInput = z222.object({
6245
+ url: z222.string(),
6240
6246
  provider: DTOExporterGitProviderEnum
6241
6247
  });
6242
- var DTOExporterUpdateInput = z221.object({
6243
- url: z221.string().optional()
6248
+ var DTOExporterUpdateInput = z222.object({
6249
+ url: z222.string().optional()
6244
6250
  });
6245
6251
 
6246
6252
  // src/api/dto/export/filter.ts
6247
6253
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6248
6254
 
6249
6255
  // src/api/dto/export/job.ts
6250
- import { z as z222 } from "zod";
6251
- var DTOExportJobCreatedBy = z222.object({
6252
- userId: z222.string(),
6253
- userName: z222.string()
6256
+ import { z as z223 } from "zod";
6257
+ var DTOExportJobCreatedBy = z223.object({
6258
+ userId: z223.string(),
6259
+ userName: z223.string()
6254
6260
  });
6255
- var DTOExportJobDesignSystemPreview = z222.object({
6256
- id: z222.string(),
6261
+ var DTOExportJobDesignSystemPreview = z223.object({
6262
+ id: z223.string(),
6257
6263
  meta: ObjectMeta
6258
6264
  });
6259
- var DTOExportJobDesignSystemVersionPreview = z222.object({
6260
- id: z222.string(),
6265
+ var DTOExportJobDesignSystemVersionPreview = z223.object({
6266
+ id: z223.string(),
6261
6267
  meta: ObjectMeta,
6262
- version: z222.string(),
6263
- isReadonly: z222.boolean()
6268
+ version: z223.string(),
6269
+ isReadonly: z223.boolean()
6264
6270
  });
6265
- var DTOExportJobDestinations = z222.object({
6271
+ var DTOExportJobDestinations = z223.object({
6266
6272
  s3: ExporterDestinationS3.optional(),
6267
6273
  azure: ExporterDestinationAzure.optional(),
6268
6274
  bitbucket: ExporterDestinationBitbucket.optional(),
6269
6275
  github: ExporterDestinationGithub.optional(),
6270
6276
  gitlab: ExporterDestinationGitlab.optional(),
6271
6277
  documentation: ExporterDestinationDocs.optional(),
6272
- webhookUrl: z222.string().optional()
6278
+ webhookUrl: z223.string().optional()
6273
6279
  });
6274
6280
  var DTOExportJobResult = ExportJobResult.omit({
6275
6281
  sndocs: true
6276
6282
  }).extend({
6277
6283
  documentation: ExportJobDocsDestinationResult.optional()
6278
6284
  });
6279
- var DTOExportJob = z222.object({
6280
- id: z222.string(),
6281
- createdAt: z222.coerce.date(),
6282
- finishedAt: z222.coerce.date().optional(),
6283
- index: z222.number().optional(),
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(),
6284
6290
  status: ExportJobStatus,
6285
- estimatedExecutionTime: z222.number().optional(),
6291
+ estimatedExecutionTime: z223.number().optional(),
6286
6292
  createdBy: DTOExportJobCreatedBy.optional(),
6287
6293
  designSystem: DTOExportJobDesignSystemPreview,
6288
6294
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6289
6295
  destinations: DTOExportJobDestinations,
6290
- exporterId: z222.string(),
6291
- scheduleId: z222.string().optional(),
6296
+ exporterId: z223.string(),
6297
+ scheduleId: z223.string().optional(),
6292
6298
  result: DTOExportJobResult.optional(),
6293
- brandPersistentId: z222.string().optional(),
6294
- themePersistentId: z222.string().optional(),
6295
- themePersistentIds: z222.string().array().optional()
6299
+ brandPersistentId: z223.string().optional(),
6300
+ themePersistentId: z223.string().optional(),
6301
+ themePersistentIds: z223.string().array().optional()
6296
6302
  });
6297
- var DTOExportJobResponse = z222.object({
6303
+ var DTOExportJobResponse = z223.object({
6298
6304
  job: DTOExportJob
6299
6305
  });
6300
6306
 
6301
6307
  // src/api/dto/export/pipeline.ts
6302
- import { z as z223 } from "zod";
6303
- var DTOPipelineListQuery = z223.object({
6304
- designSystemId: z223.string().optional(),
6305
- exporterId: z223.string().optional(),
6306
- latestJobsLimit: z223.coerce.number().optional()
6307
- });
6308
- var DTOPipeline = z223.object({
6309
- id: z223.string(),
6310
- name: z223.string(),
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(),
6311
6317
  eventType: PipelineEventType,
6312
- isEnabled: z223.boolean(),
6313
- workspaceId: z223.string(),
6314
- designSystemId: z223.string(),
6315
- exporterId: z223.string(),
6316
- brandPersistentId: z223.string().optional(),
6317
- themePersistentId: z223.string().optional(),
6318
- themePersistentIds: z223.string().array().optional(),
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(),
6319
6325
  ...ExportDestinationsMap.shape,
6320
6326
  latestJobs: DTOExportJob.array()
6321
6327
  });
6322
- var DTOPipelineListResponse = z223.object({
6328
+ var DTOPipelineListResponse = z224.object({
6323
6329
  pipelines: DTOPipeline.array()
6324
6330
  });
6325
- var DTOPipelineResponse = z223.object({
6331
+ var DTOPipelineResponse = z224.object({
6326
6332
  pipeline: DTOPipeline
6327
6333
  });
6328
6334
 
6329
6335
  // src/api/dto/documentation/publish.ts
6330
6336
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6331
- var DTOPublishDocumentationRequest = z224.object({
6337
+ var DTOPublishDocumentationRequest = z225.object({
6332
6338
  environment: PublishedDocEnvironment,
6333
6339
  /**
6334
6340
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6336,42 +6342,42 @@ var DTOPublishDocumentationRequest = z224.object({
6336
6342
  */
6337
6343
  changes: DTOPublishDocumentationChanges.optional()
6338
6344
  });
6339
- var DTOPublishDocumentationResponse = z224.object({
6345
+ var DTOPublishDocumentationResponse = z225.object({
6340
6346
  job: DTOExportJob
6341
6347
  });
6342
6348
 
6343
6349
  // src/api/dto/elements/components/figma-component.ts
6344
- import { z as z225 } from "zod";
6350
+ import { z as z226 } from "zod";
6345
6351
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6346
- var DTOFigmaComponentPropertyMap = z225.record(DTOFigmaComponentProperty);
6347
- var DTOFigmaComponent = z225.object({
6348
- id: z225.string(),
6349
- persistentId: z225.string(),
6350
- designSystemVersionId: z225.string(),
6351
- brandId: z225.string(),
6352
- thumbnailUrl: z225.string().optional(),
6353
- svgUrl: z225.string().optional(),
6354
- exportProperties: z225.object({
6355
- isAsset: z225.boolean()
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()
6356
6362
  }),
6357
- createdAt: z225.coerce.date(),
6358
- updatedAt: z225.coerce.date(),
6363
+ createdAt: z226.coerce.date(),
6364
+ updatedAt: z226.coerce.date(),
6359
6365
  meta: ObjectMeta,
6360
6366
  originComponent: FigmaComponentOrigin.optional(),
6361
- parentComponentPersistentId: z225.string().optional(),
6362
- childrenPersistentIds: z225.string().array().optional(),
6367
+ parentComponentPersistentId: z226.string().optional(),
6368
+ childrenPersistentIds: z226.string().array().optional(),
6363
6369
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6364
- variantPropertyValues: z225.record(z225.string()).optional()
6370
+ variantPropertyValues: z226.record(z226.string()).optional()
6365
6371
  });
6366
- var DTOFigmaComponentListResponse = z225.object({
6372
+ var DTOFigmaComponentListResponse = z226.object({
6367
6373
  components: DTOFigmaComponent.array()
6368
6374
  });
6369
6375
 
6370
6376
  // src/api/dto/elements/documentation/group-action.ts
6371
- import { z as z227 } from "zod";
6377
+ import { z as z228 } from "zod";
6372
6378
 
6373
6379
  // src/api/dto/elements/documentation/group-v2.ts
6374
- import { z as z226 } from "zod";
6380
+ import { z as z227 } from "zod";
6375
6381
  var DTODocumentationGroupV2 = ElementGroup.omit({
6376
6382
  sortOrder: true,
6377
6383
  parentPersistentId: true,
@@ -6381,13 +6387,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6381
6387
  data: true,
6382
6388
  shortPersistentId: true
6383
6389
  }).extend({
6384
- title: z226.string(),
6385
- isRoot: z226.boolean(),
6386
- childrenIds: z226.array(z226.string()),
6390
+ title: z227.string(),
6391
+ isRoot: z227.boolean(),
6392
+ childrenIds: z227.array(z227.string()),
6387
6393
  groupBehavior: DocumentationGroupBehavior,
6388
- shortPersistentId: z226.string(),
6394
+ shortPersistentId: z227.string(),
6389
6395
  configuration: DTODocumentationItemConfigurationV2,
6390
- type: z226.literal("Group"),
6396
+ type: z227.literal("Group"),
6391
6397
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6392
6398
  draftState: DTODocumentationDraftState.optional(),
6393
6399
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6395,127 +6401,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6395
6401
  //** An approval state for frontend to utilize. */
6396
6402
  approvalState: DTODocumentationGroupApprovalState.optional()
6397
6403
  });
6398
- var DTOCreateDocumentationGroupInput = z226.object({
6404
+ var DTOCreateDocumentationGroupInput = z227.object({
6399
6405
  // Identifier
6400
- persistentId: z226.string(),
6406
+ persistentId: z227.string(),
6401
6407
  // Group properties
6402
- title: z226.string(),
6408
+ title: z227.string(),
6403
6409
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6404
6410
  // Group placement properties
6405
- afterPersistentId: z226.string().nullish(),
6406
- parentPersistentId: z226.string()
6411
+ afterPersistentId: z227.string().nullish(),
6412
+ parentPersistentId: z227.string()
6407
6413
  });
6408
- var DTOUpdateDocumentationGroupInput = z226.object({
6414
+ var DTOUpdateDocumentationGroupInput = z227.object({
6409
6415
  // Identifier of the group to update
6410
- id: z226.string(),
6416
+ id: z227.string(),
6411
6417
  // Group properties
6412
- title: z226.string().optional(),
6418
+ title: z227.string().optional(),
6413
6419
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6414
6420
  });
6415
- var DTOMoveDocumentationGroupInput = z226.object({
6421
+ var DTOMoveDocumentationGroupInput = z227.object({
6416
6422
  // Identifier of the group to update
6417
- id: z226.string(),
6423
+ id: z227.string(),
6418
6424
  // Group placement properties
6419
- parentPersistentId: z226.string(),
6420
- afterPersistentId: z226.string().nullish()
6425
+ parentPersistentId: z227.string(),
6426
+ afterPersistentId: z227.string().nullish()
6421
6427
  });
6422
- var DTODuplicateDocumentationGroupInput = z226.object({
6428
+ var DTODuplicateDocumentationGroupInput = z227.object({
6423
6429
  // Identifier of the group to duplicate from
6424
- id: z226.string(),
6430
+ id: z227.string(),
6425
6431
  // New group persistent id
6426
- persistentId: z226.string(),
6432
+ persistentId: z227.string(),
6427
6433
  // Group placement properties
6428
- afterPersistentId: z226.string().nullish(),
6429
- parentPersistentId: z226.string()
6434
+ afterPersistentId: z227.string().nullish(),
6435
+ parentPersistentId: z227.string()
6430
6436
  });
6431
- var DTOCreateDocumentationTabInput = z226.object({
6437
+ var DTOCreateDocumentationTabInput = z227.object({
6432
6438
  // New group persistent id
6433
- persistentId: z226.string(),
6439
+ persistentId: z227.string(),
6434
6440
  // If this is page, we will attempt to convert it to tab
6435
6441
  // If this is tab group, we will add a new tab to it
6436
- fromItemPersistentId: z226.string(),
6437
- tabName: z226.string()
6442
+ fromItemPersistentId: z227.string(),
6443
+ tabName: z227.string()
6438
6444
  });
6439
- var DTODeleteDocumentationTabGroupInput = z226.object({
6445
+ var DTODeleteDocumentationTabGroupInput = z227.object({
6440
6446
  // Deleted group id
6441
- id: z226.string()
6447
+ id: z227.string()
6442
6448
  });
6443
- var DTODeleteDocumentationGroupInput = z226.object({
6449
+ var DTODeleteDocumentationGroupInput = z227.object({
6444
6450
  // Identifier
6445
- id: z226.string(),
6451
+ id: z227.string(),
6446
6452
  // Deletion options
6447
- deleteSubtree: z226.boolean().default(false)
6453
+ deleteSubtree: z227.boolean().default(false)
6448
6454
  });
6449
6455
 
6450
6456
  // src/api/dto/elements/documentation/group-action.ts
6451
- var SuccessPayload = z227.object({
6452
- success: z227.literal(true)
6457
+ var SuccessPayload = z228.object({
6458
+ success: z228.literal(true)
6453
6459
  });
6454
- var DTODocumentationGroupCreateActionOutputV2 = z227.object({
6455
- type: z227.literal("DocumentationGroupCreate"),
6460
+ var DTODocumentationGroupCreateActionOutputV2 = z228.object({
6461
+ type: z228.literal("DocumentationGroupCreate"),
6456
6462
  output: SuccessPayload
6457
6463
  });
6458
- var DTODocumentationTabCreateActionOutputV2 = z227.object({
6459
- type: z227.literal("DocumentationTabCreate"),
6464
+ var DTODocumentationTabCreateActionOutputV2 = z228.object({
6465
+ type: z228.literal("DocumentationTabCreate"),
6460
6466
  output: SuccessPayload
6461
6467
  });
6462
- var DTODocumentationGroupUpdateActionOutputV2 = z227.object({
6463
- type: z227.literal("DocumentationGroupUpdate"),
6468
+ var DTODocumentationGroupUpdateActionOutputV2 = z228.object({
6469
+ type: z228.literal("DocumentationGroupUpdate"),
6464
6470
  output: SuccessPayload
6465
6471
  });
6466
- var DTODocumentationGroupMoveActionOutputV2 = z227.object({
6467
- type: z227.literal("DocumentationGroupMove"),
6472
+ var DTODocumentationGroupMoveActionOutputV2 = z228.object({
6473
+ type: z228.literal("DocumentationGroupMove"),
6468
6474
  output: SuccessPayload
6469
6475
  });
6470
- var DTODocumentationGroupDuplicateActionOutputV2 = z227.object({
6471
- type: z227.literal("DocumentationGroupDuplicate"),
6476
+ var DTODocumentationGroupDuplicateActionOutputV2 = z228.object({
6477
+ type: z228.literal("DocumentationGroupDuplicate"),
6472
6478
  output: SuccessPayload
6473
6479
  });
6474
- var DTODocumentationGroupDeleteActionOutputV2 = z227.object({
6475
- type: z227.literal("DocumentationGroupDelete"),
6480
+ var DTODocumentationGroupDeleteActionOutputV2 = z228.object({
6481
+ type: z228.literal("DocumentationGroupDelete"),
6476
6482
  output: SuccessPayload
6477
6483
  });
6478
- var DTODocumentationTabGroupDeleteActionOutputV2 = z227.object({
6479
- type: z227.literal("DocumentationTabGroupDelete"),
6484
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z228.object({
6485
+ type: z228.literal("DocumentationTabGroupDelete"),
6480
6486
  output: SuccessPayload
6481
6487
  });
6482
- var DTODocumentationGroupCreateActionInputV2 = z227.object({
6483
- type: z227.literal("DocumentationGroupCreate"),
6488
+ var DTODocumentationGroupCreateActionInputV2 = z228.object({
6489
+ type: z228.literal("DocumentationGroupCreate"),
6484
6490
  input: DTOCreateDocumentationGroupInput
6485
6491
  });
6486
- var DTODocumentationTabCreateActionInputV2 = z227.object({
6487
- type: z227.literal("DocumentationTabCreate"),
6492
+ var DTODocumentationTabCreateActionInputV2 = z228.object({
6493
+ type: z228.literal("DocumentationTabCreate"),
6488
6494
  input: DTOCreateDocumentationTabInput
6489
6495
  });
6490
- var DTODocumentationGroupUpdateActionInputV2 = z227.object({
6491
- type: z227.literal("DocumentationGroupUpdate"),
6496
+ var DTODocumentationGroupUpdateActionInputV2 = z228.object({
6497
+ type: z228.literal("DocumentationGroupUpdate"),
6492
6498
  input: DTOUpdateDocumentationGroupInput
6493
6499
  });
6494
- var DTODocumentationGroupMoveActionInputV2 = z227.object({
6495
- type: z227.literal("DocumentationGroupMove"),
6500
+ var DTODocumentationGroupMoveActionInputV2 = z228.object({
6501
+ type: z228.literal("DocumentationGroupMove"),
6496
6502
  input: DTOMoveDocumentationGroupInput
6497
6503
  });
6498
- var DTODocumentationGroupDuplicateActionInputV2 = z227.object({
6499
- type: z227.literal("DocumentationGroupDuplicate"),
6504
+ var DTODocumentationGroupDuplicateActionInputV2 = z228.object({
6505
+ type: z228.literal("DocumentationGroupDuplicate"),
6500
6506
  input: DTODuplicateDocumentationGroupInput
6501
6507
  });
6502
- var DTODocumentationGroupDeleteActionInputV2 = z227.object({
6503
- type: z227.literal("DocumentationGroupDelete"),
6508
+ var DTODocumentationGroupDeleteActionInputV2 = z228.object({
6509
+ type: z228.literal("DocumentationGroupDelete"),
6504
6510
  input: DTODeleteDocumentationGroupInput
6505
6511
  });
6506
- var DTODocumentationTabGroupDeleteActionInputV2 = z227.object({
6507
- type: z227.literal("DocumentationTabGroupDelete"),
6512
+ var DTODocumentationTabGroupDeleteActionInputV2 = z228.object({
6513
+ type: z228.literal("DocumentationTabGroupDelete"),
6508
6514
  input: DTODeleteDocumentationTabGroupInput
6509
6515
  });
6510
6516
 
6511
6517
  // src/api/dto/elements/documentation/group-v1.ts
6512
- import { z as z229 } from "zod";
6518
+ import { z as z230 } from "zod";
6513
6519
 
6514
6520
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6515
- import { z as z228 } from "zod";
6516
- var DocumentationColorV1 = z228.object({
6517
- aliasTo: z228.string().optional(),
6518
- value: z228.string().optional()
6521
+ import { z as z229 } from "zod";
6522
+ var DocumentationColorV1 = z229.object({
6523
+ aliasTo: z229.string().optional(),
6524
+ value: z229.string().optional()
6519
6525
  });
6520
6526
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6521
6527
  foregroundColor: true,
@@ -6524,10 +6530,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6524
6530
  foregroundColor: DocumentationColorV1.optional(),
6525
6531
  backgroundColor: DocumentationColorV1.optional()
6526
6532
  });
6527
- var DTODocumentationItemConfigurationV1 = z228.object({
6528
- showSidebar: z228.boolean(),
6529
- isPrivate: z228.boolean(),
6530
- isHidden: z228.boolean(),
6533
+ var DTODocumentationItemConfigurationV1 = z229.object({
6534
+ showSidebar: z229.boolean(),
6535
+ isPrivate: z229.boolean(),
6536
+ isHidden: z229.boolean(),
6531
6537
  header: DTODocumentationItemHeaderV1
6532
6538
  });
6533
6539
 
@@ -6541,27 +6547,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6541
6547
  data: true,
6542
6548
  shortPersistentId: true
6543
6549
  }).extend({
6544
- title: z229.string(),
6545
- isRoot: z229.boolean(),
6546
- childrenIds: z229.array(z229.string()),
6550
+ title: z230.string(),
6551
+ isRoot: z230.boolean(),
6552
+ childrenIds: z230.array(z230.string()),
6547
6553
  groupBehavior: DocumentationGroupBehavior,
6548
- shortPersistentId: z229.string(),
6549
- type: z229.literal("Group")
6554
+ shortPersistentId: z230.string(),
6555
+ type: z230.literal("Group")
6550
6556
  });
6551
6557
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6552
6558
  configuration: DTODocumentationItemConfigurationV1
6553
6559
  });
6554
6560
 
6555
6561
  // src/api/dto/elements/documentation/hierarchy.ts
6556
- import { z as z230 } from "zod";
6557
- var DTODocumentationHierarchyV2 = z230.object({
6558
- pages: z230.array(
6562
+ import { z as z231 } from "zod";
6563
+ var DTODocumentationHierarchyV2 = z231.object({
6564
+ pages: z231.array(
6559
6565
  DTODocumentationPageV2.extend({
6560
6566
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6561
6567
  draftState: DTODocumentationDraftState.optional()
6562
6568
  })
6563
6569
  ),
6564
- groups: z230.array(
6570
+ groups: z231.array(
6565
6571
  DTODocumentationGroupV2.extend({
6566
6572
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6567
6573
  draftState: DTODocumentationDraftState.optional()
@@ -6570,84 +6576,84 @@ var DTODocumentationHierarchyV2 = z230.object({
6570
6576
  });
6571
6577
 
6572
6578
  // src/api/dto/elements/documentation/page-actions-v2.ts
6573
- import { z as z231 } from "zod";
6574
- var SuccessPayload2 = z231.object({
6575
- success: z231.literal(true)
6579
+ import { z as z232 } from "zod";
6580
+ var SuccessPayload2 = z232.object({
6581
+ success: z232.literal(true)
6576
6582
  });
6577
- var DTODocumentationPageCreateActionOutputV2 = z231.object({
6578
- type: z231.literal("DocumentationPageCreate"),
6583
+ var DTODocumentationPageCreateActionOutputV2 = z232.object({
6584
+ type: z232.literal("DocumentationPageCreate"),
6579
6585
  output: SuccessPayload2
6580
6586
  });
6581
- var DTODocumentationPageUpdateActionOutputV2 = z231.object({
6582
- type: z231.literal("DocumentationPageUpdate"),
6587
+ var DTODocumentationPageUpdateActionOutputV2 = z232.object({
6588
+ type: z232.literal("DocumentationPageUpdate"),
6583
6589
  output: SuccessPayload2
6584
6590
  });
6585
- var DTODocumentationPageMoveActionOutputV2 = z231.object({
6586
- type: z231.literal("DocumentationPageMove"),
6591
+ var DTODocumentationPageMoveActionOutputV2 = z232.object({
6592
+ type: z232.literal("DocumentationPageMove"),
6587
6593
  output: SuccessPayload2
6588
6594
  });
6589
- var DTODocumentationPageDuplicateActionOutputV2 = z231.object({
6590
- type: z231.literal("DocumentationPageDuplicate"),
6595
+ var DTODocumentationPageDuplicateActionOutputV2 = z232.object({
6596
+ type: z232.literal("DocumentationPageDuplicate"),
6591
6597
  output: SuccessPayload2
6592
6598
  });
6593
- var DTODocumentationPageDeleteActionOutputV2 = z231.object({
6594
- type: z231.literal("DocumentationPageDelete"),
6599
+ var DTODocumentationPageDeleteActionOutputV2 = z232.object({
6600
+ type: z232.literal("DocumentationPageDelete"),
6595
6601
  output: SuccessPayload2
6596
6602
  });
6597
- var DTODocumentationPageRestoreActionOutput = z231.object({
6598
- type: z231.literal("DocumentationPageRestore"),
6603
+ var DTODocumentationPageRestoreActionOutput = z232.object({
6604
+ type: z232.literal("DocumentationPageRestore"),
6599
6605
  output: SuccessPayload2
6600
6606
  });
6601
- var DTODocumentationGroupRestoreActionOutput = z231.object({
6602
- type: z231.literal("DocumentationGroupRestore"),
6607
+ var DTODocumentationGroupRestoreActionOutput = z232.object({
6608
+ type: z232.literal("DocumentationGroupRestore"),
6603
6609
  output: SuccessPayload2
6604
6610
  });
6605
- var DTODocumentationPageApprovalStateChangeActionOutput = z231.object({
6606
- type: z231.literal("DocumentationPageApprovalStateChange"),
6611
+ var DTODocumentationPageApprovalStateChangeActionOutput = z232.object({
6612
+ type: z232.literal("DocumentationPageApprovalStateChange"),
6607
6613
  output: SuccessPayload2
6608
6614
  });
6609
- var DTODocumentationPageCreateActionInputV2 = z231.object({
6610
- type: z231.literal("DocumentationPageCreate"),
6615
+ var DTODocumentationPageCreateActionInputV2 = z232.object({
6616
+ type: z232.literal("DocumentationPageCreate"),
6611
6617
  input: DTOCreateDocumentationPageInputV2
6612
6618
  });
6613
- var DTODocumentationPageUpdateActionInputV2 = z231.object({
6614
- type: z231.literal("DocumentationPageUpdate"),
6619
+ var DTODocumentationPageUpdateActionInputV2 = z232.object({
6620
+ type: z232.literal("DocumentationPageUpdate"),
6615
6621
  input: DTOUpdateDocumentationPageInputV2
6616
6622
  });
6617
- var DTODocumentationPageMoveActionInputV2 = z231.object({
6618
- type: z231.literal("DocumentationPageMove"),
6623
+ var DTODocumentationPageMoveActionInputV2 = z232.object({
6624
+ type: z232.literal("DocumentationPageMove"),
6619
6625
  input: DTOMoveDocumentationPageInputV2
6620
6626
  });
6621
- var DTODocumentationPageDuplicateActionInputV2 = z231.object({
6622
- type: z231.literal("DocumentationPageDuplicate"),
6627
+ var DTODocumentationPageDuplicateActionInputV2 = z232.object({
6628
+ type: z232.literal("DocumentationPageDuplicate"),
6623
6629
  input: DTODuplicateDocumentationPageInputV2
6624
6630
  });
6625
- var DTODocumentationPageDeleteActionInputV2 = z231.object({
6626
- type: z231.literal("DocumentationPageDelete"),
6631
+ var DTODocumentationPageDeleteActionInputV2 = z232.object({
6632
+ type: z232.literal("DocumentationPageDelete"),
6627
6633
  input: DTODeleteDocumentationPageInputV2
6628
6634
  });
6629
- var DTODocumentationPageRestoreActionInput = z231.object({
6630
- type: z231.literal("DocumentationPageRestore"),
6635
+ var DTODocumentationPageRestoreActionInput = z232.object({
6636
+ type: z232.literal("DocumentationPageRestore"),
6631
6637
  input: DTORestoreDocumentationPageInput
6632
6638
  });
6633
- var DTODocumentationGroupRestoreActionInput = z231.object({
6634
- type: z231.literal("DocumentationGroupRestore"),
6639
+ var DTODocumentationGroupRestoreActionInput = z232.object({
6640
+ type: z232.literal("DocumentationGroupRestore"),
6635
6641
  input: DTORestoreDocumentationGroupInput
6636
6642
  });
6637
- var DTODocumentationPageApprovalStateChangeActionInput = z231.object({
6638
- type: z231.literal("DocumentationPageApprovalStateChange"),
6643
+ var DTODocumentationPageApprovalStateChangeActionInput = z232.object({
6644
+ type: z232.literal("DocumentationPageApprovalStateChange"),
6639
6645
  input: DTODocumentationPageApprovalStateChangeInput
6640
6646
  });
6641
6647
 
6642
6648
  // src/api/dto/elements/documentation/page-content.ts
6643
- import { z as z232 } from "zod";
6649
+ import { z as z233 } from "zod";
6644
6650
  var DTODocumentationPageContent = DocumentationPageContent;
6645
- var DTODocumentationPageContentGetResponse = z232.object({
6651
+ var DTODocumentationPageContentGetResponse = z233.object({
6646
6652
  pageContent: DTODocumentationPageContent
6647
6653
  });
6648
6654
 
6649
6655
  // src/api/dto/elements/documentation/page-v1.ts
6650
- import { z as z233 } from "zod";
6656
+ import { z as z234 } from "zod";
6651
6657
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6652
6658
  data: true,
6653
6659
  meta: true,
@@ -6655,32 +6661,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6655
6661
  sortOrder: true
6656
6662
  }).extend({
6657
6663
  configuration: DTODocumentationItemConfigurationV1,
6658
- blocks: z233.array(PageBlockV1),
6659
- title: z233.string(),
6660
- path: z233.string()
6664
+ blocks: z234.array(PageBlockV1),
6665
+ title: z234.string(),
6666
+ path: z234.string()
6661
6667
  });
6662
6668
 
6663
6669
  // src/api/dto/elements/figma-nodes/figma-node.ts
6664
- import { z as z234 } from "zod";
6670
+ import { z as z235 } from "zod";
6665
6671
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6666
- var DTOFigmaNodeOrigin = z234.object({
6667
- sourceId: z234.string(),
6668
- fileId: z234.string().optional(),
6669
- parentName: z234.string().optional()
6672
+ var DTOFigmaNodeOrigin = z235.object({
6673
+ sourceId: z235.string(),
6674
+ fileId: z235.string().optional(),
6675
+ parentName: z235.string().optional()
6670
6676
  });
6671
- var DTOFigmaNodeData = z234.object({
6677
+ var DTOFigmaNodeData = z235.object({
6672
6678
  // Id of the node in the Figma file
6673
- figmaNodeId: z234.string(),
6679
+ figmaNodeId: z235.string(),
6674
6680
  // Validity
6675
- isValid: z234.boolean(),
6681
+ isValid: z235.boolean(),
6676
6682
  // Asset data
6677
- assetId: z234.string(),
6678
- assetUrl: z234.string(),
6683
+ assetId: z235.string(),
6684
+ assetUrl: z235.string(),
6679
6685
  assetFormat: DTOFigmaNodeRenderFormat,
6680
6686
  // Asset metadata
6681
- assetScale: z234.number(),
6682
- assetWidth: z234.number().optional(),
6683
- assetHeight: z234.number().optional()
6687
+ assetScale: z235.number(),
6688
+ assetWidth: z235.number().optional(),
6689
+ assetHeight: z235.number().optional()
6684
6690
  });
6685
6691
  var DTOFigmaNode = FigmaNodeReference.omit({
6686
6692
  data: true,
@@ -6689,15 +6695,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6689
6695
  data: DTOFigmaNodeData,
6690
6696
  origin: DTOFigmaNodeOrigin
6691
6697
  });
6692
- var DTOFigmaNodeRenderInput = z234.object({
6698
+ var DTOFigmaNodeRenderInput = z235.object({
6693
6699
  /**
6694
6700
  * Id of a design system's data source representing a linked Figma file
6695
6701
  */
6696
- sourceId: z234.string(),
6702
+ sourceId: z235.string(),
6697
6703
  /**
6698
6704
  * Id of a node within the Figma file
6699
6705
  */
6700
- figmaFileNodeId: z234.string(),
6706
+ figmaFileNodeId: z235.string(),
6701
6707
  /**
6702
6708
  * Format in which the node must be rendered, png by default.
6703
6709
  */
@@ -6705,108 +6711,91 @@ var DTOFigmaNodeRenderInput = z234.object({
6705
6711
  });
6706
6712
 
6707
6713
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6708
- import { z as z235 } from "zod";
6709
- var DTOFigmaNodeRenderActionOutput = z235.object({
6710
- type: z235.literal("FigmaNodeRender"),
6711
- figmaNodes: z235.array(DTOFigmaNode)
6714
+ import { z as z236 } from "zod";
6715
+ var DTOFigmaNodeRenderActionOutput = z236.object({
6716
+ type: z236.literal("FigmaNodeRender"),
6717
+ figmaNodes: z236.array(DTOFigmaNode)
6712
6718
  });
6713
- var DTOFigmaNodeRenderActionInput = z235.object({
6714
- type: z235.literal("FigmaNodeRender"),
6719
+ var DTOFigmaNodeRenderActionInput = z236.object({
6720
+ type: z236.literal("FigmaNodeRender"),
6715
6721
  input: DTOFigmaNodeRenderInput.array()
6716
6722
  });
6717
6723
 
6718
- // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6724
+ // src/api/dto/elements/properties/property-definitions.ts
6725
+ import { z as z238 } from "zod";
6726
+
6727
+ // src/api/dto/aux/meta.ts
6719
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
+ });
6720
6733
 
6721
6734
  // src/api/dto/elements/properties/property-definitions.ts
6722
- import { z as z236 } from "zod";
6723
6735
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6724
- var DTOElementPropertyDefinition = z236.object({
6725
- id: z236.string(),
6726
- designSystemVersionId: z236.string(),
6727
- meta: ObjectMeta,
6728
- persistentId: z236.string(),
6736
+ var DTOElementPropertyDefinitionOption = z238.object({
6737
+ id: z238.string(),
6738
+ name: z238.string(),
6739
+ backgroundColor: DTOColorTokenInlineData.optional()
6740
+ });
6741
+ var DTOElementPropertyDefinition = z238.object({
6742
+ id: z238.string(),
6743
+ designSystemVersionId: z238.string(),
6744
+ meta: DTOObjectMeta,
6745
+ persistentId: z238.string(),
6729
6746
  type: ElementPropertyTypeSchema,
6730
6747
  targetElementType: ElementPropertyTargetType,
6731
- codeName: z236.string().regex(CODE_NAME_REGEX2),
6732
- options: nullishToOptional(z236.array(ElementPropertyDefinitionOption)),
6748
+ codeName: z238.string().regex(CODE_NAME_REGEX2),
6749
+ options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
6733
6750
  linkElementType: nullishToOptional(ElementPropertyLinkType)
6734
6751
  });
6735
- var DTOElementPropertyDefinitionListResponse = z236.object({
6736
- definitions: z236.array(DTOElementPropertyDefinition)
6737
- });
6738
- var DTOElementPropertyDefinitionResponse = z236.object({
6739
- definition: DTOElementPropertyDefinition
6740
- });
6741
- var DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinition.omit({
6742
- id: true,
6743
- designSystemVersionId: true
6744
- });
6745
- var DTOElementPropertyDefinitionUpdatePayload = z236.object({
6746
- id: z236.string(),
6747
- name: z236.string().optional(),
6748
- description: z236.string().optional(),
6749
- codeName: z236.string().regex(CODE_NAME_REGEX2).optional(),
6750
- options: z236.array(ElementPropertyDefinitionOption).optional()
6752
+ var DTOElementPropertyDefinitionListResponse = z238.object({
6753
+ definitions: z238.array(DTOElementPropertyDefinition)
6751
6754
  });
6752
- var DTOElementPropertyDefinitionDeletePayload = z236.object({
6753
- id: z236.string()
6754
- });
6755
-
6756
- // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6757
- var SuccessPayload3 = z237.object({
6758
- success: z237.literal(true)
6759
- });
6760
- var DTOPropertyDefinitionCreateActionOutputV2 = z237.object({
6761
- type: z237.literal("PropertyDefinitionCreate"),
6762
- definition: DTOElementPropertyDefinition
6763
- });
6764
- var DTOPropertyDefinitionUpdateActionOutputV2 = z237.object({
6765
- type: z237.literal("PropertyDefinitionUpdate"),
6755
+ var DTOElementPropertyDefinitionResponse = z238.object({
6766
6756
  definition: DTOElementPropertyDefinition
6767
6757
  });
6768
- var DTOPropertyDefinitionDeleteActionOutputV2 = z237.object({
6769
- type: z237.literal("PropertyDefinitionDelete"),
6770
- output: SuccessPayload3
6771
- });
6772
- var DTOPropertyDefinitionCreateActionInputV2 = z237.object({
6773
- type: z237.literal("PropertyDefinitionCreate"),
6774
- input: DTOElementPropertyDefinitionCreatePayload
6775
- });
6776
- var DTOPropertyDefinitionUpdateActionInputV2 = z237.object({
6777
- type: z237.literal("PropertyDefinitionUpdate"),
6778
- input: DTOElementPropertyDefinitionUpdatePayload
6758
+ var DTOElementPropertyDefinitionCreatePayload = z238.object({
6759
+ meta: DTOObjectMeta,
6760
+ persistentId: z238.string(),
6761
+ type: ElementPropertyTypeSchema,
6762
+ targetElementType: ElementPropertyTargetType,
6763
+ codeName: z238.string().regex(CODE_NAME_REGEX2),
6764
+ options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
6765
+ linkElementType: nullishToOptional(ElementPropertyLinkType),
6766
+ columnWidth: z238.number().max(1024).optional()
6779
6767
  });
6780
- var DTOPropertyDefinitionDeleteActionInputV2 = z237.object({
6781
- type: z237.literal("PropertyDefinitionDelete"),
6782
- input: DTOElementPropertyDefinitionDeletePayload
6768
+ var DTOElementPropertyDefinitionUpdatePayload = z238.object({
6769
+ meta: DTOObjectMeta.optional(),
6770
+ codeName: z238.string().regex(CODE_NAME_REGEX2).optional(),
6771
+ options: z238.array(DTOElementPropertyDefinitionOption).optional()
6783
6772
  });
6784
6773
 
6785
6774
  // src/api/dto/elements/properties/property-values.ts
6786
- import { z as z238 } from "zod";
6787
- var DTOElementPropertyValue = z238.object({
6788
- id: z238.string(),
6789
- designSystemVersionId: z238.string(),
6790
- definitionId: z238.string(),
6791
- targetElementId: z238.string(),
6792
- value: z238.union([z238.string(), z238.number(), z238.boolean()]).optional(),
6793
- valuePreview: z238.string().optional()
6794
- });
6795
- var DTOElementPropertyValueListResponse = z238.object({
6796
- values: z238.array(DTOElementPropertyValue)
6797
- });
6798
- var DTOElementPropertyValueResponse = z238.object({
6775
+ import { z as z239 } from "zod";
6776
+ var DTOElementPropertyValue = z239.object({
6777
+ id: z239.string(),
6778
+ designSystemVersionId: z239.string(),
6779
+ definitionId: z239.string(),
6780
+ targetElementId: z239.string(),
6781
+ value: z239.union([z239.string(), z239.number(), z239.boolean()]).optional(),
6782
+ valuePreview: z239.string().optional()
6783
+ });
6784
+ var DTOElementPropertyValueListResponse = z239.object({
6785
+ values: z239.array(DTOElementPropertyValue)
6786
+ });
6787
+ var DTOElementPropertyValueResponse = z239.object({
6799
6788
  value: DTOElementPropertyValue
6800
6789
  });
6801
- var DTOElementPropertyValueUpsertPaylod = z238.object({
6802
- definitionId: z238.string(),
6803
- targetElementId: z238.string(),
6804
- value: z238.string().or(z238.number()).or(z238.boolean())
6790
+ var DTOElementPropertyValueUpsertPaylod = z239.object({
6791
+ definitionId: z239.string(),
6792
+ targetElementId: z239.string(),
6793
+ value: z239.string().or(z239.number()).or(z239.boolean())
6805
6794
  });
6806
6795
 
6807
6796
  // src/api/dto/elements/elements-action-v2.ts
6808
- import { z as z239 } from "zod";
6809
- var DTOElementActionOutput = z239.discriminatedUnion("type", [
6797
+ import { z as z240 } from "zod";
6798
+ var DTOElementActionOutput = z240.discriminatedUnion("type", [
6810
6799
  // Documentation pages
6811
6800
  DTODocumentationPageCreateActionOutputV2,
6812
6801
  DTODocumentationPageUpdateActionOutputV2,
@@ -6823,17 +6812,13 @@ var DTOElementActionOutput = z239.discriminatedUnion("type", [
6823
6812
  DTODocumentationTabGroupDeleteActionOutputV2,
6824
6813
  // Figma frames
6825
6814
  DTOFigmaNodeRenderActionOutput,
6826
- // Properties Definitions
6827
- DTOPropertyDefinitionCreateActionOutputV2,
6828
- DTOPropertyDefinitionUpdateActionOutputV2,
6829
- DTOPropertyDefinitionDeleteActionOutputV2,
6830
6815
  // Restore
6831
6816
  DTODocumentationPageRestoreActionOutput,
6832
6817
  DTODocumentationGroupRestoreActionOutput,
6833
6818
  // Approvals
6834
6819
  DTODocumentationPageApprovalStateChangeActionOutput
6835
6820
  ]);
6836
- var DTOElementActionInput = z239.discriminatedUnion("type", [
6821
+ var DTOElementActionInput = z240.discriminatedUnion("type", [
6837
6822
  // Documentation pages
6838
6823
  DTODocumentationPageCreateActionInputV2,
6839
6824
  DTODocumentationPageUpdateActionInputV2,
@@ -6850,10 +6835,6 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
6850
6835
  DTODocumentationTabGroupDeleteActionInputV2,
6851
6836
  // Figma frames
6852
6837
  DTOFigmaNodeRenderActionInput,
6853
- // Properties Definitions
6854
- DTOPropertyDefinitionCreateActionInputV2,
6855
- DTOPropertyDefinitionUpdateActionInputV2,
6856
- DTOPropertyDefinitionDeleteActionInputV2,
6857
6838
  // Restore
6858
6839
  DTODocumentationPageRestoreActionInput,
6859
6840
  DTODocumentationGroupRestoreActionInput,
@@ -6862,80 +6843,80 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
6862
6843
  ]);
6863
6844
 
6864
6845
  // src/api/dto/elements/get-elements-v2.ts
6865
- import { z as z240 } from "zod";
6866
- var DTOElementsGetTypeFilter = z240.enum(["FigmaNode"]);
6867
- var DTOElementsGetQuerySchema = z240.object({
6868
- types: z240.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6846
+ import { z as z241 } from "zod";
6847
+ var DTOElementsGetTypeFilter = z241.enum(["FigmaNode"]);
6848
+ var DTOElementsGetQuerySchema = z241.object({
6849
+ types: z241.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6869
6850
  });
6870
- var DTOElementsGetOutput = z240.object({
6871
- figmaNodes: z240.array(DTOFigmaNode).optional()
6851
+ var DTOElementsGetOutput = z241.object({
6852
+ figmaNodes: z241.array(DTOFigmaNode).optional()
6872
6853
  });
6873
6854
 
6874
6855
  // src/api/dto/figma-components/assets/download.ts
6875
- import { z as z241 } from "zod";
6876
- var DTOAssetRenderConfiguration = z241.object({
6877
- prefix: z241.string().optional(),
6878
- suffix: z241.string().optional(),
6879
- scale: z241.enum(["x1", "x2", "x3", "x4"]),
6880
- format: z241.enum(["png", "pdf", "svg"])
6881
- });
6882
- var DTORenderedAssetFile = z241.object({
6883
- assetId: z241.string(),
6884
- fileName: z241.string(),
6885
- sourceUrl: z241.string(),
6856
+ import { z as z242 } from "zod";
6857
+ var DTOAssetRenderConfiguration = z242.object({
6858
+ prefix: z242.string().optional(),
6859
+ suffix: z242.string().optional(),
6860
+ scale: z242.enum(["x1", "x2", "x3", "x4"]),
6861
+ format: z242.enum(["png", "pdf", "svg"])
6862
+ });
6863
+ var DTORenderedAssetFile = z242.object({
6864
+ assetId: z242.string(),
6865
+ fileName: z242.string(),
6866
+ sourceUrl: z242.string(),
6886
6867
  settings: DTOAssetRenderConfiguration,
6887
- originalName: z241.string()
6868
+ originalName: z242.string()
6888
6869
  });
6889
- var DTODownloadAssetsRequest = z241.object({
6890
- persistentIds: z241.array(z241.string().uuid()).optional(),
6870
+ var DTODownloadAssetsRequest = z242.object({
6871
+ persistentIds: z242.array(z242.string().uuid()).optional(),
6891
6872
  settings: DTOAssetRenderConfiguration.array()
6892
6873
  });
6893
- var DTODownloadAssetsResponse = z241.object({
6874
+ var DTODownloadAssetsResponse = z242.object({
6894
6875
  items: DTORenderedAssetFile.array()
6895
6876
  });
6896
6877
 
6897
6878
  // src/api/dto/liveblocks/auth-response.ts
6898
- import { z as z242 } from "zod";
6899
- var DTOLiveblocksAuthResponse = z242.object({
6900
- token: z242.string()
6879
+ import { z as z243 } from "zod";
6880
+ var DTOLiveblocksAuthResponse = z243.object({
6881
+ token: z243.string()
6901
6882
  });
6902
6883
 
6903
6884
  // src/api/dto/themes/override.ts
6904
- import { z as z243 } from "zod";
6885
+ import { z as z244 } from "zod";
6905
6886
  var DTOThemeOverride = DesignTokenTypedData.and(
6906
- z243.object({
6907
- tokenPersistentId: z243.string(),
6887
+ z244.object({
6888
+ tokenPersistentId: z244.string(),
6908
6889
  origin: ThemeOverrideOrigin.optional()
6909
6890
  })
6910
6891
  );
6911
6892
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
6912
- z243.object({
6913
- tokenPersistentId: z243.string()
6893
+ z244.object({
6894
+ tokenPersistentId: z244.string()
6914
6895
  })
6915
6896
  );
6916
6897
 
6917
6898
  // src/api/dto/themes/theme.ts
6918
- import { z as z244 } from "zod";
6919
- var DTOTheme = z244.object({
6920
- id: z244.string(),
6921
- persistentId: z244.string(),
6922
- designSystemVersionId: z244.string(),
6923
- brandId: z244.string(),
6899
+ import { z as z245 } from "zod";
6900
+ var DTOTheme = z245.object({
6901
+ id: z245.string(),
6902
+ persistentId: z245.string(),
6903
+ designSystemVersionId: z245.string(),
6904
+ brandId: z245.string(),
6924
6905
  meta: ObjectMeta,
6925
- codeName: z244.string(),
6906
+ codeName: z245.string(),
6926
6907
  overrides: DTOThemeOverride.array()
6927
6908
  });
6928
- var DTOThemeResponse = z244.object({
6909
+ var DTOThemeResponse = z245.object({
6929
6910
  theme: DTOTheme
6930
6911
  });
6931
- var DTOThemeListResponse = z244.object({
6912
+ var DTOThemeListResponse = z245.object({
6932
6913
  themes: DTOTheme.array()
6933
6914
  });
6934
- var DTOThemeCreatePayload = z244.object({
6915
+ var DTOThemeCreatePayload = z245.object({
6935
6916
  meta: ObjectMeta,
6936
- persistentId: z244.string(),
6937
- brandId: z244.string(),
6938
- codeName: z244.string(),
6917
+ persistentId: z245.string(),
6918
+ brandId: z245.string(),
6919
+ codeName: z245.string(),
6939
6920
  overrides: DTOThemeOverride.array()
6940
6921
  });
6941
6922
 
@@ -7029,7 +7010,7 @@ var ImportJobsEndpoint = class {
7029
7010
  };
7030
7011
 
7031
7012
  // src/api/endpoints/design-system/versions/overrides.ts
7032
- import { z as z245 } from "zod";
7013
+ import { z as z246 } from "zod";
7033
7014
  var OverridesEndpoint = class {
7034
7015
  constructor(requestExecutor) {
7035
7016
  this.requestExecutor = requestExecutor;
@@ -7037,7 +7018,7 @@ var OverridesEndpoint = class {
7037
7018
  create(dsId, versionId, themeId, body) {
7038
7019
  return this.requestExecutor.json(
7039
7020
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
7040
- z245.any(),
7021
+ z246.any(),
7041
7022
  {
7042
7023
  method: "POST",
7043
7024
  body
@@ -7047,6 +7028,7 @@ var OverridesEndpoint = class {
7047
7028
  };
7048
7029
 
7049
7030
  // src/api/endpoints/design-system/versions/property-definitions.ts
7031
+ import { z as z247 } from "zod";
7050
7032
  var ElementPropertyDefinitionsEndpoint = class {
7051
7033
  constructor(requestExecutor) {
7052
7034
  this.requestExecutor = requestExecutor;
@@ -7064,6 +7046,20 @@ var ElementPropertyDefinitionsEndpoint = class {
7064
7046
  { method: "POST", body }
7065
7047
  );
7066
7048
  }
7049
+ update(designSystemId, versionId, defId, body) {
7050
+ return this.requestExecutor.json(
7051
+ `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7052
+ DTOElementPropertyDefinitionResponse,
7053
+ { method: "PUT", body }
7054
+ );
7055
+ }
7056
+ delete(designSystemId, versionId, defId) {
7057
+ return this.requestExecutor.json(
7058
+ `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7059
+ z247.any(),
7060
+ { method: "DELETE" }
7061
+ );
7062
+ }
7067
7063
  };
7068
7064
 
7069
7065
  // src/api/endpoints/design-system/versions/property-values.ts
@@ -7099,7 +7095,7 @@ var VersionStatsEndpoint = class {
7099
7095
  };
7100
7096
 
7101
7097
  // src/api/endpoints/design-system/versions/themes.ts
7102
- import { z as z246 } from "zod";
7098
+ import { z as z248 } from "zod";
7103
7099
  var ThemesEndpoint = class {
7104
7100
  constructor(requestExecutor) {
7105
7101
  this.requestExecutor = requestExecutor;
@@ -7122,7 +7118,7 @@ var ThemesEndpoint = class {
7122
7118
  });
7123
7119
  }
7124
7120
  delete(dsId, versionId, themeId) {
7125
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z246.any(), {
7121
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z248.any(), {
7126
7122
  method: "DELETE"
7127
7123
  });
7128
7124
  }
@@ -7243,7 +7239,7 @@ var DesignSystemContactsEndpoint = class {
7243
7239
  };
7244
7240
 
7245
7241
  // src/api/endpoints/design-system/design-systems.ts
7246
- import { z as z248 } from "zod";
7242
+ import { z as z250 } from "zod";
7247
7243
 
7248
7244
  // src/api/endpoints/design-system/members.ts
7249
7245
  var DesignSystemMembersEndpoint = class {
@@ -7264,7 +7260,7 @@ var DesignSystemMembersEndpoint = class {
7264
7260
  };
7265
7261
 
7266
7262
  // src/api/endpoints/design-system/sources.ts
7267
- import { z as z247 } from "zod";
7263
+ import { z as z249 } from "zod";
7268
7264
  var DesignSystemSourcesEndpoint = class {
7269
7265
  constructor(requestExecutor) {
7270
7266
  this.requestExecutor = requestExecutor;
@@ -7273,7 +7269,7 @@ var DesignSystemSourcesEndpoint = class {
7273
7269
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
7274
7270
  }
7275
7271
  delete(dsId, sourceId) {
7276
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z247.any(), { method: "DELETE" });
7272
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z249.any(), { method: "DELETE" });
7277
7273
  }
7278
7274
  };
7279
7275
 
@@ -7302,7 +7298,7 @@ var DesignSystemsEndpoint = class {
7302
7298
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
7303
7299
  }
7304
7300
  delete(dsId) {
7305
- return this.requestExecutor.json(`/design-systems/${dsId}`, z248.any(), { method: "DELETE" });
7301
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z250.any(), { method: "DELETE" });
7306
7302
  }
7307
7303
  update(dsId, body) {
7308
7304
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -7346,7 +7342,7 @@ var WorkspaceInvitationsEndpoint = class {
7346
7342
  };
7347
7343
 
7348
7344
  // src/api/endpoints/workspaces/workspace-members.ts
7349
- import { z as z249 } from "zod";
7345
+ import { z as z251 } from "zod";
7350
7346
  var WorkspaceMembersEndpoint = class {
7351
7347
  constructor(requestExecutor) {
7352
7348
  this.requestExecutor = requestExecutor;
@@ -7363,7 +7359,7 @@ var WorkspaceMembersEndpoint = class {
7363
7359
  });
7364
7360
  }
7365
7361
  invite(workspaceId, body) {
7366
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z249.any(), { method: "POST", body });
7362
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z251.any(), { method: "POST", body });
7367
7363
  }
7368
7364
  delete(workspaceId, userId) {
7369
7365
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -7373,7 +7369,7 @@ var WorkspaceMembersEndpoint = class {
7373
7369
  };
7374
7370
 
7375
7371
  // src/api/endpoints/workspaces/workspaces.ts
7376
- import { z as z250 } from "zod";
7372
+ import { z as z252 } from "zod";
7377
7373
  var WorkspacesEndpoint = class {
7378
7374
  constructor(requestExecutor) {
7379
7375
  this.requestExecutor = requestExecutor;
@@ -7396,10 +7392,10 @@ var WorkspacesEndpoint = class {
7396
7392
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
7397
7393
  }
7398
7394
  delete(workspaceId) {
7399
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z250.any(), { method: "DELETE" });
7395
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z252.any(), { method: "DELETE" });
7400
7396
  }
7401
7397
  subscription(workspaceId) {
7402
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z250.any(), { method: "GET" });
7398
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z252.any(), { method: "GET" });
7403
7399
  }
7404
7400
  };
7405
7401
 
@@ -7480,9 +7476,9 @@ ${bodyText}`,
7480
7476
 
7481
7477
  // src/api/transport/request-executor.ts
7482
7478
  import fetch from "node-fetch";
7483
- import { z as z251 } from "zod";
7484
- var ResponseWrapper = z251.object({
7485
- result: z251.record(z251.any())
7479
+ import { z as z253 } from "zod";
7480
+ var ResponseWrapper = z253.object({
7481
+ result: z253.record(z253.any())
7486
7482
  });
7487
7483
  var RequestExecutor = class {
7488
7484
  constructor(testServerConfig) {
@@ -7514,8 +7510,11 @@ var RequestExecutor = class {
7514
7510
  const bodyString = await response.text();
7515
7511
  throw RequestExecutorError.serverError(endpoint, response.status, bodyString);
7516
7512
  }
7517
- const wrapperParseResult = ResponseWrapper.safeParse(await response.json());
7513
+ const json = await response.json();
7514
+ const wrapperParseResult = ResponseWrapper.safeParse(json);
7518
7515
  if (!wrapperParseResult.success) {
7516
+ console.error(`Response was:`);
7517
+ console.error(json);
7519
7518
  throw RequestExecutorError.responseParsingError(endpoint, wrapperParseResult.error);
7520
7519
  }
7521
7520
  const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
@@ -7610,7 +7609,7 @@ function generateHash(input, debug = false) {
7610
7609
  }
7611
7610
 
7612
7611
  // src/yjs/design-system-content/documentation-hierarchy.ts
7613
- import { z as z252 } from "zod";
7612
+ import { z as z254 } from "zod";
7614
7613
 
7615
7614
  // src/yjs/version-room/base.ts
7616
7615
  var VersionRoomBaseYDoc = class {
@@ -8140,24 +8139,24 @@ var FrontendVersionRoomYDoc = class {
8140
8139
  };
8141
8140
 
8142
8141
  // src/yjs/design-system-content/documentation-hierarchy.ts
8143
- var DocumentationHierarchySettings = z252.object({
8144
- routingVersion: z252.string(),
8145
- isDraftFeatureAdopted: z252.boolean(),
8146
- isApprovalFeatureEnabled: z252.boolean(),
8147
- approvalRequiredForPublishing: z252.boolean()
8142
+ var DocumentationHierarchySettings = z254.object({
8143
+ routingVersion: z254.string(),
8144
+ isDraftFeatureAdopted: z254.boolean(),
8145
+ isApprovalFeatureEnabled: z254.boolean(),
8146
+ approvalRequiredForPublishing: z254.boolean()
8148
8147
  });
8149
8148
  function yjsToDocumentationHierarchy(doc) {
8150
8149
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
8151
8150
  }
8152
8151
 
8153
8152
  // src/yjs/design-system-content/item-configuration.ts
8154
- import { z as z253 } from "zod";
8155
- var DTODocumentationPageRoomHeaderData = z253.object({
8156
- title: z253.string(),
8153
+ import { z as z255 } from "zod";
8154
+ var DTODocumentationPageRoomHeaderData = z255.object({
8155
+ title: z255.string(),
8157
8156
  configuration: DTODocumentationItemConfigurationV2
8158
8157
  });
8159
- var DTODocumentationPageRoomHeaderDataUpdate = z253.object({
8160
- title: z253.string().optional(),
8158
+ var DTODocumentationPageRoomHeaderDataUpdate = z255.object({
8159
+ title: z255.string().optional(),
8161
8160
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
8162
8161
  });
8163
8162
  function itemConfigurationToYjs(yDoc, item) {
@@ -8208,7 +8207,7 @@ function yjsToItemConfiguration(yDoc) {
8208
8207
  header: rawHeader
8209
8208
  };
8210
8209
  return {
8211
- title: z253.string().parse(title),
8210
+ title: z255.string().parse(title),
8212
8211
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
8213
8212
  };
8214
8213
  }
@@ -8218,9 +8217,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
8218
8217
  var PageSectionEditorModel = PageSectionEditorModelV2;
8219
8218
 
8220
8219
  // src/yjs/docs-editor/model/page.ts
8221
- import { z as z254 } from "zod";
8222
- var DocumentationPageEditorModel = z254.object({
8223
- blocks: z254.array(DocumentationPageContentItem)
8220
+ import { z as z256 } from "zod";
8221
+ var DocumentationPageEditorModel = z256.object({
8222
+ blocks: z256.array(DocumentationPageContentItem)
8224
8223
  });
8225
8224
 
8226
8225
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11741,7 +11740,7 @@ var blocks = [
11741
11740
 
11742
11741
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11743
11742
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11744
- import { z as z255 } from "zod";
11743
+ import { z as z257 } from "zod";
11745
11744
  function yDocToPage(yDoc, definitions) {
11746
11745
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11747
11746
  }
@@ -11821,7 +11820,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11821
11820
  return null;
11822
11821
  return {
11823
11822
  id,
11824
- title: getProsemirrorAttribute(prosemirrorNode, "title", z255.string()) ?? "",
11823
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z257.string()) ?? "",
11825
11824
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11826
11825
  };
11827
11826
  }
@@ -11856,7 +11855,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11856
11855
  });
11857
11856
  }
11858
11857
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11859
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z255.string());
11858
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z257.string());
11860
11859
  if (!definitionId) {
11861
11860
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11862
11861
  return [];
@@ -11898,7 +11897,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11898
11897
  if (!id)
11899
11898
  return null;
11900
11899
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11901
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z255.string().optional()));
11900
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z257.string().optional()));
11902
11901
  return {
11903
11902
  id,
11904
11903
  type: "Block",
@@ -12026,10 +12025,10 @@ function parseRichTextAttribute(mark) {
12026
12025
  return null;
12027
12026
  }
12028
12027
  function parseProsemirrorLink(mark) {
12029
- const href = getProsemirrorAttribute(mark, "href", z255.string().optional());
12028
+ const href = getProsemirrorAttribute(mark, "href", z257.string().optional());
12030
12029
  if (!href)
12031
12030
  return null;
12032
- const target = getProsemirrorAttribute(mark, "target", z255.string().optional());
12031
+ const target = getProsemirrorAttribute(mark, "target", z257.string().optional());
12033
12032
  const openInNewTab = target === "_blank";
12034
12033
  if (href.startsWith("@")) {
12035
12034
  return {
@@ -12048,10 +12047,10 @@ function parseProsemirrorLink(mark) {
12048
12047
  }
12049
12048
  }
12050
12049
  function parseProsemirrorCommentHighlight(mark) {
12051
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z255.string().optional());
12050
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z257.string().optional());
12052
12051
  if (!highlightId)
12053
12052
  return null;
12054
- const isResolved = getProsemirrorAttribute(mark, "resolved", z255.boolean().optional()) ?? false;
12053
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z257.boolean().optional()) ?? false;
12055
12054
  return {
12056
12055
  type: "Comment",
12057
12056
  commentHighlightId: highlightId,
@@ -12063,7 +12062,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
12063
12062
  if (!id)
12064
12063
  return null;
12065
12064
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12066
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z255.boolean().optional()) !== false;
12065
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z257.boolean().optional()) !== false;
12067
12066
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
12068
12067
  if (!tableChild) {
12069
12068
  return emptyTable(id, variantId, 0);
@@ -12110,9 +12109,9 @@ function parseAsTableCell(prosemirrorNode) {
12110
12109
  const id = getProsemirrorBlockId(prosemirrorNode);
12111
12110
  if (!id)
12112
12111
  return null;
12113
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z255.string().optional());
12112
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z257.string().optional());
12114
12113
  let columnWidth;
12115
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z255.array(z255.number()).nullish());
12114
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z257.array(z257.number()).nullish());
12116
12115
  if (columnWidthArray) {
12117
12116
  columnWidth = roundDimension(columnWidthArray[0]);
12118
12117
  }
@@ -12150,7 +12149,7 @@ function parseAsTableNode(prosemirrorNode) {
12150
12149
  value: parseRichText(prosemirrorNode.content ?? [])
12151
12150
  };
12152
12151
  case "image":
12153
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z255.string());
12152
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
12154
12153
  if (!items)
12155
12154
  return null;
12156
12155
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -12270,7 +12269,7 @@ function definitionExpectsPlaceholderItem(definition) {
12270
12269
  );
12271
12270
  }
12272
12271
  function parseBlockItems(prosemirrorNode, definition) {
12273
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z255.string());
12272
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
12274
12273
  if (!itemsString)
12275
12274
  return null;
12276
12275
  const itemsJson = JSON.parse(itemsString);
@@ -12282,18 +12281,18 @@ function parseBlockItems(prosemirrorNode, definition) {
12282
12281
  }
12283
12282
  function parseAppearance(prosemirrorNode) {
12284
12283
  let appearance = {};
12285
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z255.string().optional());
12284
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z257.string().optional());
12286
12285
  if (rawAppearanceString) {
12287
12286
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
12288
12287
  if (parsedAppearance.success) {
12289
12288
  appearance = parsedAppearance.data;
12290
12289
  }
12291
12290
  }
12292
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z255.number().optional());
12291
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z257.number().optional());
12293
12292
  if (columns) {
12294
12293
  appearance.numberOfColumns = columns;
12295
12294
  }
12296
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z255.string().optional());
12295
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z257.string().optional());
12297
12296
  if (backgroundColor) {
12298
12297
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
12299
12298
  if (parsedColor.success) {
@@ -12388,13 +12387,13 @@ function valueSchemaForPropertyType(type) {
12388
12387
  }
12389
12388
  }
12390
12389
  function getProsemirrorBlockId(prosemirrorNode) {
12391
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z255.string());
12390
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z257.string());
12392
12391
  if (!id)
12393
12392
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
12394
12393
  return id;
12395
12394
  }
12396
12395
  function getProsemirrorBlockVariantId(prosemirrorNode) {
12397
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z255.string()));
12396
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z257.string()));
12398
12397
  }
12399
12398
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
12400
12399
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -12471,6 +12470,7 @@ export {
12471
12470
  DTOBrandCreateResponse,
12472
12471
  DTOBrandGetResponse,
12473
12472
  DTOBrandsListResponse,
12473
+ DTOColorTokenInlineData,
12474
12474
  DTOCreateBrandInput,
12475
12475
  DTOCreateDocumentationGroupInput,
12476
12476
  DTOCreateDocumentationPageInputV2,
@@ -12581,8 +12581,8 @@ export {
12581
12581
  DTOElementActionOutput,
12582
12582
  DTOElementPropertyDefinition,
12583
12583
  DTOElementPropertyDefinitionCreatePayload,
12584
- DTOElementPropertyDefinitionDeletePayload,
12585
12584
  DTOElementPropertyDefinitionListResponse,
12585
+ DTOElementPropertyDefinitionOption,
12586
12586
  DTOElementPropertyDefinitionResponse,
12587
12587
  DTOElementPropertyDefinitionUpdatePayload,
12588
12588
  DTOElementPropertyValue,
@@ -12664,12 +12664,6 @@ export {
12664
12664
  DTOPipelineResponse,
12665
12665
  DTOPipelineTriggerBody,
12666
12666
  DTOPipelineUpdateBody,
12667
- DTOPropertyDefinitionCreateActionInputV2,
12668
- DTOPropertyDefinitionCreateActionOutputV2,
12669
- DTOPropertyDefinitionDeleteActionInputV2,
12670
- DTOPropertyDefinitionDeleteActionOutputV2,
12671
- DTOPropertyDefinitionUpdateActionInputV2,
12672
- DTOPropertyDefinitionUpdateActionOutputV2,
12673
12667
  DTOPublishDocumentationChanges,
12674
12668
  DTOPublishDocumentationRequest,
12675
12669
  DTOPublishDocumentationResponse,