@supernova-studio/client 1.87.2 → 1.87.4

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
@@ -4164,131 +4164,131 @@ var PageBlockDefinition = z112.object({
4164
4164
  appearance: PageBlockDefinitionAppearance.optional()
4165
4165
  });
4166
4166
 
4167
- // ../model/src/dsm/documentation/group.ts
4167
+ // ../model/src/dsm/documentation/configuration.ts
4168
4168
  import { z as z113 } from "zod";
4169
- var DocumentationPageGroup = z113.object({
4170
- type: z113.literal("ElementGroup"),
4171
- childType: z113.literal("DocumentationPage"),
4172
- id: z113.string(),
4173
- persistentId: z113.string(),
4174
- shortPersistentId: z113.string(),
4169
+ var DocumentationConfiguration = z113.object({
4170
+ // Basic
4175
4171
  designSystemVersionId: z113.string(),
4176
- parentPersistentId: z113.string().nullish(),
4177
- sortOrder: z113.number(),
4178
- title: z113.string(),
4179
- slug: z113.string(),
4180
- userSlug: z113.string().nullish(),
4181
4172
  createdAt: z113.coerce.date(),
4182
- updatedAt: z113.coerce.date()
4173
+ updatedAt: z113.coerce.date(),
4174
+ // Configuration
4175
+ isTabbedLayoutEnabled: z113.boolean(),
4176
+ storybookEmbedErrorMessage: z113.string().optional(),
4177
+ renderCodePackageJson: z113.string().optional(),
4178
+ selectedBrandPersistentId: z113.string().optional(),
4179
+ serveDefaultVersionOnly: z113.boolean(),
4180
+ isPublic: z113.boolean()
4183
4181
  });
4184
4182
 
4185
- // ../model/src/dsm/documentation/link-preview.ts
4183
+ // ../model/src/dsm/documentation/group.ts
4186
4184
  import { z as z114 } from "zod";
4187
- var DocumentationLinkPreview = z114.object({
4188
- title: z114.string().optional(),
4189
- description: z114.string().optional(),
4190
- thumbnail: PageBlockImageReference.optional()
4185
+ var DocumentationPageGroup = z114.object({
4186
+ type: z114.literal("ElementGroup"),
4187
+ childType: z114.literal("DocumentationPage"),
4188
+ id: z114.string(),
4189
+ persistentId: z114.string(),
4190
+ shortPersistentId: z114.string(),
4191
+ designSystemVersionId: z114.string(),
4192
+ parentPersistentId: z114.string().nullish(),
4193
+ sortOrder: z114.number(),
4194
+ title: z114.string(),
4195
+ slug: z114.string(),
4196
+ userSlug: z114.string().nullish(),
4197
+ createdAt: z114.coerce.date(),
4198
+ updatedAt: z114.coerce.date()
4191
4199
  });
4192
4200
 
4193
- // ../model/src/dsm/documentation/page-anchor.ts
4201
+ // ../model/src/dsm/documentation/link-preview.ts
4194
4202
  import { z as z115 } from "zod";
4195
- var DocumentationPageAnchor = z115.object({
4196
- blockId: z115.string(),
4197
- level: z115.number(),
4198
- text: z115.string()
4203
+ var DocumentationLinkPreview = z115.object({
4204
+ title: z115.string().optional(),
4205
+ description: z115.string().optional(),
4206
+ thumbnail: PageBlockImageReference.optional()
4199
4207
  });
4200
4208
 
4201
- // ../model/src/dsm/documentation/page-content-backup.ts
4209
+ // ../model/src/dsm/documentation/page-anchor.ts
4202
4210
  import { z as z116 } from "zod";
4203
- var DocumentationPageContentBackup = z116.object({
4204
- id: z116.string(),
4205
- designSystemVersionId: z116.string(),
4206
- createdAt: z116.coerce.date(),
4207
- updatedAt: z116.coerce.date(),
4208
- documentationPageId: z116.string(),
4209
- documentationPageName: z116.string(),
4210
- storagePath: z116.string()
4211
+ var DocumentationPageAnchor = z116.object({
4212
+ blockId: z116.string(),
4213
+ level: z116.number(),
4214
+ text: z116.string()
4211
4215
  });
4212
4216
 
4213
- // ../model/src/dsm/documentation/page-content.ts
4217
+ // ../model/src/dsm/documentation/page-content-backup.ts
4214
4218
  import { z as z117 } from "zod";
4215
- var DocumentationPageContentItem = z117.discriminatedUnion("type", [
4216
- PageBlockEditorModelV2,
4217
- PageSectionEditorModelV2
4218
- ]);
4219
- var DocumentationPageContentData = z117.object({
4220
- items: z117.array(DocumentationPageContentItem)
4221
- });
4222
- var DocumentationPageContent = z117.object({
4219
+ var DocumentationPageContentBackup = z117.object({
4223
4220
  id: z117.string(),
4224
4221
  designSystemVersionId: z117.string(),
4225
4222
  createdAt: z117.coerce.date(),
4226
4223
  updatedAt: z117.coerce.date(),
4227
4224
  documentationPageId: z117.string(),
4228
- data: DocumentationPageContentData
4225
+ documentationPageName: z117.string(),
4226
+ storagePath: z117.string()
4229
4227
  });
4230
4228
 
4231
- // ../model/src/dsm/documentation/page-dependencies.ts
4229
+ // ../model/src/dsm/documentation/page-content.ts
4232
4230
  import { z as z118 } from "zod";
4233
- var DocumentationPageDependencies = z118.object({
4231
+ var DocumentationPageContentItem = z118.discriminatedUnion("type", [
4232
+ PageBlockEditorModelV2,
4233
+ PageSectionEditorModelV2
4234
+ ]);
4235
+ var DocumentationPageContentData = z118.object({
4236
+ items: z118.array(DocumentationPageContentItem)
4237
+ });
4238
+ var DocumentationPageContent = z118.object({
4234
4239
  id: z118.string(),
4235
4240
  designSystemVersionId: z118.string(),
4236
4241
  createdAt: z118.coerce.date(),
4237
4242
  updatedAt: z118.coerce.date(),
4238
4243
  documentationPageId: z118.string(),
4239
- tokenPersistentIds: z118.set(z118.string()),
4240
- figmaComponentPersistentIds: z118.set(z118.string()),
4241
- componentPersistentIds: z118.set(z118.string()),
4242
- figmaNodePersistentIds: z118.set(z118.string()),
4243
- groupPersistentIds: z118.set(z118.string()),
4244
- propertyPersistentIds: z118.set(z118.string()),
4245
- themePersistentIds: z118.set(z118.string()),
4246
- documentationPagePersistentIds: z118.set(z118.string()),
4247
- storybookEntriesStoryIds: z118.array(z118.string())
4244
+ data: DocumentationPageContentData
4248
4245
  });
4249
4246
 
4250
- // ../model/src/dsm/documentation/page.ts
4247
+ // ../model/src/dsm/documentation/page-dependencies.ts
4251
4248
  import { z as z119 } from "zod";
4252
- var DocumentationPage = z119.object({
4253
- type: z119.literal("DocumentationPage"),
4249
+ var DocumentationPageDependencies = z119.object({
4254
4250
  id: z119.string(),
4255
- persistentId: z119.string(),
4256
- shortPersistentId: z119.string(),
4257
4251
  designSystemVersionId: z119.string(),
4258
- parentPersistentId: z119.string().nullish(),
4259
- sortOrder: z119.number(),
4260
- title: z119.string(),
4261
- slug: z119.string(),
4262
- userSlug: z119.string().nullish(),
4263
4252
  createdAt: z119.coerce.date(),
4264
- updatedAt: z119.coerce.date()
4253
+ updatedAt: z119.coerce.date(),
4254
+ documentationPageId: z119.string(),
4255
+ tokenPersistentIds: z119.set(z119.string()),
4256
+ figmaComponentPersistentIds: z119.set(z119.string()),
4257
+ componentPersistentIds: z119.set(z119.string()),
4258
+ figmaNodePersistentIds: z119.set(z119.string()),
4259
+ groupPersistentIds: z119.set(z119.string()),
4260
+ propertyPersistentIds: z119.set(z119.string()),
4261
+ themePersistentIds: z119.set(z119.string()),
4262
+ documentationPagePersistentIds: z119.set(z119.string()),
4263
+ storybookEntriesStoryIds: z119.array(z119.string())
4265
4264
  });
4266
4265
 
4267
- // ../model/src/dsm/documentation/redirects.ts
4266
+ // ../model/src/dsm/documentation/page.ts
4268
4267
  import { z as z120 } from "zod";
4269
- var PageRedirect = z120.object({
4268
+ var DocumentationPage = z120.object({
4269
+ type: z120.literal("DocumentationPage"),
4270
4270
  id: z120.string(),
4271
- pagePersistentId: z120.string(),
4272
- path: z120.string(),
4271
+ persistentId: z120.string(),
4272
+ shortPersistentId: z120.string(),
4273
+ designSystemVersionId: z120.string(),
4274
+ parentPersistentId: z120.string().nullish(),
4275
+ sortOrder: z120.number(),
4276
+ title: z120.string(),
4277
+ slug: z120.string(),
4278
+ userSlug: z120.string().nullish(),
4273
4279
  createdAt: z120.coerce.date(),
4274
- updatedAt: z120.coerce.date(),
4275
- designSystemId: z120.string()
4280
+ updatedAt: z120.coerce.date()
4276
4281
  });
4277
4282
 
4278
- // ../model/src/dsm/documentation/settings.ts
4283
+ // ../model/src/dsm/documentation/redirects.ts
4279
4284
  import { z as z121 } from "zod";
4280
- var DocumentationSettings = z121.object({
4281
- // Basic
4282
- designSystemVersionId: z121.string(),
4285
+ var PageRedirect = z121.object({
4286
+ id: z121.string(),
4287
+ pagePersistentId: z121.string(),
4288
+ path: z121.string(),
4283
4289
  createdAt: z121.coerce.date(),
4284
4290
  updatedAt: z121.coerce.date(),
4285
- // Configuration
4286
- isTabbedLayoutEnabled: z121.boolean(),
4287
- storybookEmbedErrorMessage: z121.string().optional(),
4288
- renderCodePackageJson: z121.string().optional(),
4289
- selectedBrandPersistentId: z121.string().optional(),
4290
- serveDefaultVersionOnly: z121.boolean(),
4291
- isPublic: z121.boolean()
4291
+ designSystemId: z121.string()
4292
4292
  });
4293
4293
 
4294
4294
  // ../model/src/dsm/documentation/thread.ts
@@ -4580,6 +4580,7 @@ var FigmaExporterDesignNodeTypeSchema = z125.union([
4580
4580
  z125.literal("FRAME"),
4581
4581
  z125.literal("TEXT"),
4582
4582
  z125.literal("SVG"),
4583
+ z125.literal("IMAGE"),
4583
4584
  z125.literal("COMPONENT_INSTANCE")
4584
4585
  ]);
4585
4586
  var baseDesignNodeObjectSchema = z125.object({
@@ -4602,6 +4603,10 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4602
4603
  type: z125.literal("SVG"),
4603
4604
  svgString: z125.string()
4604
4605
  });
4606
+ var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4607
+ type: z125.literal("IMAGE"),
4608
+ src: z125.string()
4609
+ });
4605
4610
  var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4606
4611
  type: z125.literal("COMPONENT_INSTANCE"),
4607
4612
  componentSetName: z125.string(),
@@ -4621,6 +4626,7 @@ var svgNodeSchema = z125.lazy(
4621
4626
  children: FigmaExporterAnyDesignNodeSchema.array()
4622
4627
  })
4623
4628
  );
4629
+ var imageNodeSchema = imageNodeObjectSchema;
4624
4630
  var componentInstanceNodeSchema = z125.lazy(
4625
4631
  () => componentInstanceObjectSchema.extend({
4626
4632
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4630,6 +4636,7 @@ var FigmaExporterAnyDesignNodeSchema = z125.union([
4630
4636
  frameNodeSchema,
4631
4637
  textNodeSchema,
4632
4638
  svgNodeSchema,
4639
+ imageNodeSchema,
4633
4640
  componentInstanceNodeSchema
4634
4641
  ]);
4635
4642
 
@@ -6994,6 +7001,17 @@ function _documentationPageToDTOV2(page, pagePathMap, pageLiveblocksRoomIdMap) {
6994
7001
  };
6995
7002
  }
6996
7003
 
7004
+ // src/api/conversion/documentation/documentation-settings-to-dto.ts
7005
+ function documentationConfigurationToDto(configuration) {
7006
+ return {
7007
+ isPublic: configuration.isPublic,
7008
+ renderCodePackageJson: configuration.renderCodePackageJson,
7009
+ selectedBrandId: configuration.selectedBrandPersistentId,
7010
+ storybookEmbedErrorMessage: configuration.storybookEmbedErrorMessage,
7011
+ tabbed: configuration.isTabbedLayoutEnabled
7012
+ };
7013
+ }
7014
+
6997
7015
  // src/api/conversion/export/pipeline.ts
6998
7016
  function pipelineToDto(pipeline) {
6999
7017
  return {
@@ -9382,11 +9400,28 @@ var DTOFigmaComponentListResponse = z293.object({
9382
9400
  components: DTOFigmaComponent.array()
9383
9401
  });
9384
9402
 
9403
+ // src/api/dto/elements/documentation/configuration.ts
9404
+ import { z as z294 } from "zod";
9405
+ var DTODocumentationConfiguration = z294.object({
9406
+ tabbed: z294.boolean(),
9407
+ isPublic: z294.boolean(),
9408
+ selectedBrandId: z294.string().nullish(),
9409
+ storybookEmbedErrorMessage: z294.string().nullish(),
9410
+ renderCodePackageJson: z294.string().nullish()
9411
+ });
9412
+ var DTODocumentationConfigurationResponse = z294.object({
9413
+ documentation: z294.object({
9414
+ designSystemId: z294.string(),
9415
+ designSystemVersionId: z294.string(),
9416
+ settings: DTODocumentationConfiguration
9417
+ })
9418
+ });
9419
+
9385
9420
  // src/api/dto/elements/documentation/group-action.ts
9386
- import { z as z295 } from "zod";
9421
+ import { z as z296 } from "zod";
9387
9422
 
9388
9423
  // src/api/dto/elements/documentation/group-v2.ts
9389
- import { z as z294 } from "zod";
9424
+ import { z as z295 } from "zod";
9390
9425
  var DTODocumentationGroupV2 = ElementGroup.omit({
9391
9426
  sortOrder: true,
9392
9427
  parentPersistentId: true,
@@ -9396,13 +9431,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
9396
9431
  data: true,
9397
9432
  shortPersistentId: true
9398
9433
  }).extend({
9399
- title: z294.string(),
9400
- isRoot: z294.boolean(),
9401
- childrenIds: z294.array(z294.string()),
9434
+ title: z295.string(),
9435
+ isRoot: z295.boolean(),
9436
+ childrenIds: z295.array(z295.string()),
9402
9437
  groupBehavior: DocumentationGroupBehavior,
9403
- shortPersistentId: z294.string(),
9438
+ shortPersistentId: z295.string(),
9404
9439
  configuration: DTODocumentationItemConfigurationV2,
9405
- type: z294.literal("Group"),
9440
+ type: z295.literal("Group"),
9406
9441
  /** Defined when a group has changed since last publish and can be included into a partial publish */
9407
9442
  draftState: DTODocumentationDraftState.optional(),
9408
9443
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -9410,127 +9445,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
9410
9445
  //** An approval state for frontend to utilize. */
9411
9446
  approvalState: DTODocumentationGroupApprovalState.optional()
9412
9447
  });
9413
- var DTOCreateDocumentationGroupInput = z294.object({
9448
+ var DTOCreateDocumentationGroupInput = z295.object({
9414
9449
  // Identifier
9415
- persistentId: z294.string(),
9450
+ persistentId: z295.string(),
9416
9451
  // Group properties
9417
- title: z294.string(),
9452
+ title: z295.string(),
9418
9453
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
9419
9454
  // Group placement properties
9420
- afterPersistentId: z294.string().nullish(),
9421
- parentPersistentId: z294.string()
9455
+ afterPersistentId: z295.string().nullish(),
9456
+ parentPersistentId: z295.string()
9422
9457
  });
9423
- var DTOUpdateDocumentationGroupInput = z294.object({
9458
+ var DTOUpdateDocumentationGroupInput = z295.object({
9424
9459
  // Identifier of the group to update
9425
- id: z294.string(),
9460
+ id: z295.string(),
9426
9461
  // Group properties
9427
- title: z294.string().optional(),
9462
+ title: z295.string().optional(),
9428
9463
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
9429
9464
  });
9430
- var DTOMoveDocumentationGroupInput = z294.object({
9465
+ var DTOMoveDocumentationGroupInput = z295.object({
9431
9466
  // Identifier of the group to update
9432
- id: z294.string(),
9467
+ id: z295.string(),
9433
9468
  // Group placement properties
9434
- parentPersistentId: z294.string(),
9435
- afterPersistentId: z294.string().nullish()
9469
+ parentPersistentId: z295.string(),
9470
+ afterPersistentId: z295.string().nullish()
9436
9471
  });
9437
- var DTODuplicateDocumentationGroupInput = z294.object({
9472
+ var DTODuplicateDocumentationGroupInput = z295.object({
9438
9473
  // Identifier of the group to duplicate from
9439
- id: z294.string(),
9474
+ id: z295.string(),
9440
9475
  // New group persistent id
9441
- persistentId: z294.string(),
9476
+ persistentId: z295.string(),
9442
9477
  // Group placement properties
9443
- afterPersistentId: z294.string().nullish(),
9444
- parentPersistentId: z294.string()
9478
+ afterPersistentId: z295.string().nullish(),
9479
+ parentPersistentId: z295.string()
9445
9480
  });
9446
- var DTOCreateDocumentationTabInput = z294.object({
9481
+ var DTOCreateDocumentationTabInput = z295.object({
9447
9482
  // New group persistent id
9448
- persistentId: z294.string(),
9483
+ persistentId: z295.string(),
9449
9484
  // If this is page, we will attempt to convert it to tab
9450
9485
  // If this is tab group, we will add a new tab to it
9451
- fromItemPersistentId: z294.string(),
9452
- tabName: z294.string()
9486
+ fromItemPersistentId: z295.string(),
9487
+ tabName: z295.string()
9453
9488
  });
9454
- var DTODeleteDocumentationTabGroupInput = z294.object({
9489
+ var DTODeleteDocumentationTabGroupInput = z295.object({
9455
9490
  // Deleted group id
9456
- id: z294.string()
9491
+ id: z295.string()
9457
9492
  });
9458
- var DTODeleteDocumentationGroupInput = z294.object({
9493
+ var DTODeleteDocumentationGroupInput = z295.object({
9459
9494
  // Identifier
9460
- id: z294.string(),
9495
+ id: z295.string(),
9461
9496
  // Deletion options
9462
- deleteSubtree: z294.boolean().default(false)
9497
+ deleteSubtree: z295.boolean().default(false)
9463
9498
  });
9464
9499
 
9465
9500
  // src/api/dto/elements/documentation/group-action.ts
9466
- var SuccessPayload = z295.object({
9467
- success: z295.literal(true)
9501
+ var SuccessPayload = z296.object({
9502
+ success: z296.literal(true)
9468
9503
  });
9469
- var DTODocumentationGroupCreateActionOutputV2 = z295.object({
9470
- type: z295.literal("DocumentationGroupCreate"),
9504
+ var DTODocumentationGroupCreateActionOutputV2 = z296.object({
9505
+ type: z296.literal("DocumentationGroupCreate"),
9471
9506
  output: SuccessPayload
9472
9507
  });
9473
- var DTODocumentationTabCreateActionOutputV2 = z295.object({
9474
- type: z295.literal("DocumentationTabCreate"),
9508
+ var DTODocumentationTabCreateActionOutputV2 = z296.object({
9509
+ type: z296.literal("DocumentationTabCreate"),
9475
9510
  output: SuccessPayload
9476
9511
  });
9477
- var DTODocumentationGroupUpdateActionOutputV2 = z295.object({
9478
- type: z295.literal("DocumentationGroupUpdate"),
9512
+ var DTODocumentationGroupUpdateActionOutputV2 = z296.object({
9513
+ type: z296.literal("DocumentationGroupUpdate"),
9479
9514
  output: SuccessPayload
9480
9515
  });
9481
- var DTODocumentationGroupMoveActionOutputV2 = z295.object({
9482
- type: z295.literal("DocumentationGroupMove"),
9516
+ var DTODocumentationGroupMoveActionOutputV2 = z296.object({
9517
+ type: z296.literal("DocumentationGroupMove"),
9483
9518
  output: SuccessPayload
9484
9519
  });
9485
- var DTODocumentationGroupDuplicateActionOutputV2 = z295.object({
9486
- type: z295.literal("DocumentationGroupDuplicate"),
9520
+ var DTODocumentationGroupDuplicateActionOutputV2 = z296.object({
9521
+ type: z296.literal("DocumentationGroupDuplicate"),
9487
9522
  output: SuccessPayload
9488
9523
  });
9489
- var DTODocumentationGroupDeleteActionOutputV2 = z295.object({
9490
- type: z295.literal("DocumentationGroupDelete"),
9524
+ var DTODocumentationGroupDeleteActionOutputV2 = z296.object({
9525
+ type: z296.literal("DocumentationGroupDelete"),
9491
9526
  output: SuccessPayload
9492
9527
  });
9493
- var DTODocumentationTabGroupDeleteActionOutputV2 = z295.object({
9494
- type: z295.literal("DocumentationTabGroupDelete"),
9528
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z296.object({
9529
+ type: z296.literal("DocumentationTabGroupDelete"),
9495
9530
  output: SuccessPayload
9496
9531
  });
9497
- var DTODocumentationGroupCreateActionInputV2 = z295.object({
9498
- type: z295.literal("DocumentationGroupCreate"),
9532
+ var DTODocumentationGroupCreateActionInputV2 = z296.object({
9533
+ type: z296.literal("DocumentationGroupCreate"),
9499
9534
  input: DTOCreateDocumentationGroupInput
9500
9535
  });
9501
- var DTODocumentationTabCreateActionInputV2 = z295.object({
9502
- type: z295.literal("DocumentationTabCreate"),
9536
+ var DTODocumentationTabCreateActionInputV2 = z296.object({
9537
+ type: z296.literal("DocumentationTabCreate"),
9503
9538
  input: DTOCreateDocumentationTabInput
9504
9539
  });
9505
- var DTODocumentationGroupUpdateActionInputV2 = z295.object({
9506
- type: z295.literal("DocumentationGroupUpdate"),
9540
+ var DTODocumentationGroupUpdateActionInputV2 = z296.object({
9541
+ type: z296.literal("DocumentationGroupUpdate"),
9507
9542
  input: DTOUpdateDocumentationGroupInput
9508
9543
  });
9509
- var DTODocumentationGroupMoveActionInputV2 = z295.object({
9510
- type: z295.literal("DocumentationGroupMove"),
9544
+ var DTODocumentationGroupMoveActionInputV2 = z296.object({
9545
+ type: z296.literal("DocumentationGroupMove"),
9511
9546
  input: DTOMoveDocumentationGroupInput
9512
9547
  });
9513
- var DTODocumentationGroupDuplicateActionInputV2 = z295.object({
9514
- type: z295.literal("DocumentationGroupDuplicate"),
9548
+ var DTODocumentationGroupDuplicateActionInputV2 = z296.object({
9549
+ type: z296.literal("DocumentationGroupDuplicate"),
9515
9550
  input: DTODuplicateDocumentationGroupInput
9516
9551
  });
9517
- var DTODocumentationGroupDeleteActionInputV2 = z295.object({
9518
- type: z295.literal("DocumentationGroupDelete"),
9552
+ var DTODocumentationGroupDeleteActionInputV2 = z296.object({
9553
+ type: z296.literal("DocumentationGroupDelete"),
9519
9554
  input: DTODeleteDocumentationGroupInput
9520
9555
  });
9521
- var DTODocumentationTabGroupDeleteActionInputV2 = z295.object({
9522
- type: z295.literal("DocumentationTabGroupDelete"),
9556
+ var DTODocumentationTabGroupDeleteActionInputV2 = z296.object({
9557
+ type: z296.literal("DocumentationTabGroupDelete"),
9523
9558
  input: DTODeleteDocumentationTabGroupInput
9524
9559
  });
9525
9560
 
9526
9561
  // src/api/dto/elements/documentation/group-v1.ts
9527
- import { z as z297 } from "zod";
9562
+ import { z as z298 } from "zod";
9528
9563
 
9529
9564
  // src/api/dto/elements/documentation/item-configuration-v1.ts
9530
- import { z as z296 } from "zod";
9531
- var DocumentationColorV1 = z296.object({
9532
- aliasTo: z296.string().optional(),
9533
- value: z296.string().optional()
9565
+ import { z as z297 } from "zod";
9566
+ var DocumentationColorV1 = z297.object({
9567
+ aliasTo: z297.string().optional(),
9568
+ value: z297.string().optional()
9534
9569
  });
9535
9570
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
9536
9571
  foregroundColor: true,
@@ -9539,10 +9574,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
9539
9574
  foregroundColor: DocumentationColorV1.optional(),
9540
9575
  backgroundColor: DocumentationColorV1.optional()
9541
9576
  });
9542
- var DTODocumentationItemConfigurationV1 = z296.object({
9543
- showSidebar: z296.boolean(),
9544
- isPrivate: z296.boolean(),
9545
- isHidden: z296.boolean(),
9577
+ var DTODocumentationItemConfigurationV1 = z297.object({
9578
+ showSidebar: z297.boolean(),
9579
+ isPrivate: z297.boolean(),
9580
+ isHidden: z297.boolean(),
9546
9581
  header: DTODocumentationItemHeaderV1
9547
9582
  });
9548
9583
 
@@ -9556,145 +9591,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
9556
9591
  data: true,
9557
9592
  shortPersistentId: true
9558
9593
  }).extend({
9559
- title: z297.string(),
9560
- isRoot: z297.boolean(),
9561
- childrenIds: z297.array(z297.string()),
9594
+ title: z298.string(),
9595
+ isRoot: z298.boolean(),
9596
+ childrenIds: z298.array(z298.string()),
9562
9597
  groupBehavior: DocumentationGroupBehavior,
9563
- shortPersistentId: z297.string(),
9564
- type: z297.literal("Group")
9598
+ shortPersistentId: z298.string(),
9599
+ type: z298.literal("Group")
9565
9600
  });
9566
9601
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
9567
9602
  configuration: DTODocumentationItemConfigurationV1
9568
9603
  });
9569
9604
 
9570
9605
  // src/api/dto/elements/documentation/hierarchy.ts
9571
- import { z as z298 } from "zod";
9572
- var DTODocumentationHierarchyV2 = z298.object({
9573
- pages: z298.array(
9606
+ import { z as z299 } from "zod";
9607
+ var DTODocumentationHierarchyV2 = z299.object({
9608
+ pages: z299.array(
9574
9609
  DTODocumentationPageV2.extend({
9575
9610
  /** Defined when a page has changed since last publish and can be included into a partial publish */
9576
9611
  draftState: DTODocumentationDraftState.optional()
9577
9612
  })
9578
9613
  ),
9579
- groups: z298.array(
9614
+ groups: z299.array(
9580
9615
  DTODocumentationGroupV2.extend({
9581
9616
  /** Defined when a page has changed since last publish and can be included into a partial publish */
9582
9617
  draftState: DTODocumentationDraftState.optional()
9583
9618
  })
9584
9619
  ),
9585
9620
  /** True if the documentation was already published, false otherwise. */
9586
- hasPublishedDocumentationContent: z298.boolean()
9621
+ hasPublishedDocumentationContent: z299.boolean()
9587
9622
  });
9588
9623
 
9589
9624
  // src/api/dto/elements/documentation/page-actions-v2.ts
9590
- import { z as z299 } from "zod";
9591
- var SuccessPayload2 = z299.object({
9592
- success: z299.literal(true)
9625
+ import { z as z300 } from "zod";
9626
+ var SuccessPayload2 = z300.object({
9627
+ success: z300.literal(true)
9593
9628
  });
9594
- var DTODocumentationPageCreateActionOutputV2 = z299.object({
9595
- type: z299.literal("DocumentationPageCreate"),
9629
+ var DTODocumentationPageCreateActionOutputV2 = z300.object({
9630
+ type: z300.literal("DocumentationPageCreate"),
9596
9631
  output: SuccessPayload2
9597
9632
  });
9598
- var DTODocumentationPageUpdateActionOutputV2 = z299.object({
9599
- type: z299.literal("DocumentationPageUpdate"),
9633
+ var DTODocumentationPageUpdateActionOutputV2 = z300.object({
9634
+ type: z300.literal("DocumentationPageUpdate"),
9600
9635
  output: SuccessPayload2
9601
9636
  });
9602
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z299.object({
9603
- type: z299.literal("DocumentationPageUpdateDocument"),
9637
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z300.object({
9638
+ type: z300.literal("DocumentationPageUpdateDocument"),
9604
9639
  output: SuccessPayload2
9605
9640
  });
9606
- var DTODocumentationPageMoveActionOutputV2 = z299.object({
9607
- type: z299.literal("DocumentationPageMove"),
9641
+ var DTODocumentationPageMoveActionOutputV2 = z300.object({
9642
+ type: z300.literal("DocumentationPageMove"),
9608
9643
  output: SuccessPayload2
9609
9644
  });
9610
- var DTODocumentationPageDuplicateActionOutputV2 = z299.object({
9611
- type: z299.literal("DocumentationPageDuplicate"),
9645
+ var DTODocumentationPageDuplicateActionOutputV2 = z300.object({
9646
+ type: z300.literal("DocumentationPageDuplicate"),
9612
9647
  output: SuccessPayload2
9613
9648
  });
9614
- var DTODocumentationPageDeleteActionOutputV2 = z299.object({
9615
- type: z299.literal("DocumentationPageDelete"),
9649
+ var DTODocumentationPageDeleteActionOutputV2 = z300.object({
9650
+ type: z300.literal("DocumentationPageDelete"),
9616
9651
  output: SuccessPayload2
9617
9652
  });
9618
- var DTODocumentationPageRestoreActionOutput = z299.object({
9619
- type: z299.literal("DocumentationPageRestore"),
9653
+ var DTODocumentationPageRestoreActionOutput = z300.object({
9654
+ type: z300.literal("DocumentationPageRestore"),
9620
9655
  output: SuccessPayload2
9621
9656
  });
9622
- var DTODocumentationGroupRestoreActionOutput = z299.object({
9623
- type: z299.literal("DocumentationGroupRestore"),
9657
+ var DTODocumentationGroupRestoreActionOutput = z300.object({
9658
+ type: z300.literal("DocumentationGroupRestore"),
9624
9659
  output: SuccessPayload2
9625
9660
  });
9626
- var DTODocumentationPageApprovalStateChangeActionOutput = z299.object({
9627
- type: z299.literal("DocumentationPageApprovalStateChange"),
9661
+ var DTODocumentationPageApprovalStateChangeActionOutput = z300.object({
9662
+ type: z300.literal("DocumentationPageApprovalStateChange"),
9628
9663
  output: SuccessPayload2
9629
9664
  });
9630
- var DTODocumentationPageCreateActionInputV2 = z299.object({
9631
- type: z299.literal("DocumentationPageCreate"),
9665
+ var DTODocumentationPageCreateActionInputV2 = z300.object({
9666
+ type: z300.literal("DocumentationPageCreate"),
9632
9667
  input: DTOCreateDocumentationPageInputV2
9633
9668
  });
9634
- var DTODocumentationPageUpdateActionInputV2 = z299.object({
9635
- type: z299.literal("DocumentationPageUpdate"),
9669
+ var DTODocumentationPageUpdateActionInputV2 = z300.object({
9670
+ type: z300.literal("DocumentationPageUpdate"),
9636
9671
  input: DTOUpdateDocumentationPageInputV2
9637
9672
  });
9638
- var DTODocumentationPageUpdateDocumentActionInputV2 = z299.object({
9639
- type: z299.literal("DocumentationPageUpdateDocument"),
9673
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z300.object({
9674
+ type: z300.literal("DocumentationPageUpdateDocument"),
9640
9675
  input: DTOUpdateDocumentationPageDocumentInputV2
9641
9676
  });
9642
- var DTODocumentationPageMoveActionInputV2 = z299.object({
9643
- type: z299.literal("DocumentationPageMove"),
9677
+ var DTODocumentationPageMoveActionInputV2 = z300.object({
9678
+ type: z300.literal("DocumentationPageMove"),
9644
9679
  input: DTOMoveDocumentationPageInputV2
9645
9680
  });
9646
- var DTODocumentationPageDuplicateActionInputV2 = z299.object({
9647
- type: z299.literal("DocumentationPageDuplicate"),
9681
+ var DTODocumentationPageDuplicateActionInputV2 = z300.object({
9682
+ type: z300.literal("DocumentationPageDuplicate"),
9648
9683
  input: DTODuplicateDocumentationPageInputV2
9649
9684
  });
9650
- var DTODocumentationPageDeleteActionInputV2 = z299.object({
9651
- type: z299.literal("DocumentationPageDelete"),
9685
+ var DTODocumentationPageDeleteActionInputV2 = z300.object({
9686
+ type: z300.literal("DocumentationPageDelete"),
9652
9687
  input: DTODeleteDocumentationPageInputV2
9653
9688
  });
9654
- var DTODocumentationPageRestoreActionInput = z299.object({
9655
- type: z299.literal("DocumentationPageRestore"),
9689
+ var DTODocumentationPageRestoreActionInput = z300.object({
9690
+ type: z300.literal("DocumentationPageRestore"),
9656
9691
  input: DTORestoreDocumentationPageInput
9657
9692
  });
9658
- var DTODocumentationGroupRestoreActionInput = z299.object({
9659
- type: z299.literal("DocumentationGroupRestore"),
9693
+ var DTODocumentationGroupRestoreActionInput = z300.object({
9694
+ type: z300.literal("DocumentationGroupRestore"),
9660
9695
  input: DTORestoreDocumentationGroupInput
9661
9696
  });
9662
- var DTODocumentationPageApprovalStateChangeActionInput = z299.object({
9663
- type: z299.literal("DocumentationPageApprovalStateChange"),
9697
+ var DTODocumentationPageApprovalStateChangeActionInput = z300.object({
9698
+ type: z300.literal("DocumentationPageApprovalStateChange"),
9664
9699
  input: DTODocumentationPageApprovalStateChangeInput
9665
9700
  });
9666
9701
 
9667
9702
  // src/api/dto/elements/documentation/page-content.ts
9668
- import { z as z300 } from "zod";
9703
+ import { z as z301 } from "zod";
9669
9704
  var DTODocumentationPageContent = DocumentationPageContent;
9670
- var DTODocumentationPageContentGetResponse = z300.object({
9705
+ var DTODocumentationPageContentGetResponse = z301.object({
9671
9706
  pageContent: DTODocumentationPageContent
9672
9707
  });
9673
9708
 
9674
9709
  // src/api/dto/elements/documentation/page-dependencies.ts
9675
- import { z as z301 } from "zod";
9676
- var DTODocumentationPageDependencies = z301.object({
9677
- id: z301.string(),
9678
- designSystemVersionId: z301.string(),
9679
- createdAt: z301.coerce.date(),
9680
- updatedAt: z301.coerce.date(),
9681
- documentationPageId: z301.string(),
9682
- tokenPersistentIds: z301.array(z301.string()),
9683
- figmaComponentPersistentIds: z301.array(z301.string()),
9684
- componentPersistentIds: z301.array(z301.string()),
9685
- figmaNodePersistentIds: z301.array(z301.string()),
9686
- groupPersistentIds: z301.array(z301.string()),
9687
- propertyPersistentIds: z301.array(z301.string()),
9688
- themePersistentIds: z301.array(z301.string()),
9689
- documentationPagePersistentIds: z301.array(z301.string()),
9690
- storybookEntriesStoryIds: z301.array(z301.string())
9691
- });
9692
- var DTODocumentationPageDependenciesGetResponse = z301.object({
9693
- dependencies: z301.array(DTODocumentationPageDependencies)
9710
+ import { z as z302 } from "zod";
9711
+ var DTODocumentationPageDependencies = z302.object({
9712
+ id: z302.string(),
9713
+ designSystemVersionId: z302.string(),
9714
+ createdAt: z302.coerce.date(),
9715
+ updatedAt: z302.coerce.date(),
9716
+ documentationPageId: z302.string(),
9717
+ tokenPersistentIds: z302.array(z302.string()),
9718
+ figmaComponentPersistentIds: z302.array(z302.string()),
9719
+ componentPersistentIds: z302.array(z302.string()),
9720
+ figmaNodePersistentIds: z302.array(z302.string()),
9721
+ groupPersistentIds: z302.array(z302.string()),
9722
+ propertyPersistentIds: z302.array(z302.string()),
9723
+ themePersistentIds: z302.array(z302.string()),
9724
+ documentationPagePersistentIds: z302.array(z302.string()),
9725
+ storybookEntriesStoryIds: z302.array(z302.string())
9726
+ });
9727
+ var DTODocumentationPageDependenciesGetResponse = z302.object({
9728
+ dependencies: z302.array(DTODocumentationPageDependencies)
9694
9729
  });
9695
9730
 
9696
9731
  // src/api/dto/elements/documentation/page-v1.ts
9697
- import { z as z302 } from "zod";
9732
+ import { z as z303 } from "zod";
9698
9733
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
9699
9734
  data: true,
9700
9735
  meta: true,
@@ -9702,81 +9737,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
9702
9737
  sortOrder: true
9703
9738
  }).extend({
9704
9739
  configuration: DTODocumentationItemConfigurationV1,
9705
- blocks: z302.array(PageBlockV1),
9706
- title: z302.string(),
9707
- path: z302.string()
9740
+ blocks: z303.array(PageBlockV1),
9741
+ title: z303.string(),
9742
+ path: z303.string()
9708
9743
  });
9709
9744
 
9710
9745
  // src/api/dto/elements/documentation/settings.ts
9711
- import { z as z303 } from "zod";
9712
- var DTODocumentationSettings = z303.object({
9713
- isDraftFeatureAdopted: z303.boolean(),
9714
- isApprovalsFeatureEnabled: z303.boolean(),
9715
- isApprovalRequiredForPublishing: z303.boolean()
9746
+ import { z as z304 } from "zod";
9747
+ var DTODocumentationSettings = z304.object({
9748
+ isDraftFeatureAdopted: z304.boolean(),
9749
+ isApprovalsFeatureEnabled: z304.boolean(),
9750
+ isApprovalRequiredForPublishing: z304.boolean()
9716
9751
  });
9717
9752
 
9718
9753
  // src/api/dto/elements/documentation/structure.ts
9719
- import { z as z304 } from "zod";
9720
- var DTODocumentationStructureItemType = z304.enum(["Group", "Page"]);
9721
- var DTODocumentationStructureItemBase = z304.object({
9754
+ import { z as z305 } from "zod";
9755
+ var DTODocumentationStructureItemType = z305.enum(["Group", "Page"]);
9756
+ var DTODocumentationStructureItemBase = z305.object({
9722
9757
  type: DTODocumentationStructureItemType,
9723
- id: z304.string(),
9724
- designSystemVersionId: z304.string(),
9725
- shortPersistentId: z304.string(),
9726
- persistentId: z304.string(),
9727
- title: z304.string(),
9728
- createdAt: z304.coerce.date(),
9729
- updatedAt: z304.coerce.date()
9758
+ id: z305.string(),
9759
+ designSystemVersionId: z305.string(),
9760
+ shortPersistentId: z305.string(),
9761
+ persistentId: z305.string(),
9762
+ title: z305.string(),
9763
+ createdAt: z305.coerce.date(),
9764
+ updatedAt: z305.coerce.date()
9730
9765
  });
9731
9766
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
9732
- type: z304.literal(DTODocumentationStructureItemType.enum.Group),
9733
- groupBehavior: z304.string(),
9734
- childrenIds: z304.string().array(),
9735
- isRoot: z304.boolean()
9767
+ type: z305.literal(DTODocumentationStructureItemType.enum.Group),
9768
+ groupBehavior: z305.string(),
9769
+ childrenIds: z305.string().array(),
9770
+ isRoot: z305.boolean()
9736
9771
  });
9737
9772
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
9738
- type: z304.literal(DTODocumentationStructureItemType.enum.Page),
9739
- path: z304.string()
9773
+ type: z305.literal(DTODocumentationStructureItemType.enum.Page),
9774
+ path: z305.string()
9740
9775
  });
9741
- var DTODocumentationStructureItem = z304.discriminatedUnion("type", [
9776
+ var DTODocumentationStructureItem = z305.discriminatedUnion("type", [
9742
9777
  DTODocumentationStructureGroupItem,
9743
9778
  DTODocumentationStructurePageItem
9744
9779
  ]);
9745
- var DTODocumentationStructure = z304.object({
9746
- items: z304.array(DTODocumentationStructureItem)
9780
+ var DTODocumentationStructure = z305.object({
9781
+ items: z305.array(DTODocumentationStructureItem)
9747
9782
  });
9748
9783
 
9749
9784
  // src/api/dto/elements/figma-nodes/figma-node-structure.ts
9750
- import { z as z305 } from "zod";
9751
- var DTOFigmaNodeStructure = z305.object({
9752
- id: z305.string(),
9753
- sourceId: z305.string(),
9785
+ import { z as z306 } from "zod";
9786
+ var DTOFigmaNodeStructure = z306.object({
9787
+ id: z306.string(),
9788
+ sourceId: z306.string(),
9754
9789
  importState: FigmaNodeStructureStateV2,
9755
- createdAt: z305.coerce.date(),
9756
- updatedAt: z305.coerce.date()
9790
+ createdAt: z306.coerce.date(),
9791
+ updatedAt: z306.coerce.date()
9757
9792
  });
9758
9793
  var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
9759
9794
  rootNode: FigmaFileStructureNode
9760
9795
  });
9761
- var DTOFigmaNodeStructureListResponse = z305.object({
9796
+ var DTOFigmaNodeStructureListResponse = z306.object({
9762
9797
  structures: DTOFigmaNodeStructure.array()
9763
9798
  });
9764
- var DTOFigmaNodeStructureDetailResponse = z305.object({
9799
+ var DTOFigmaNodeStructureDetailResponse = z306.object({
9765
9800
  structure: DTOFigmaNodeStructureDetail
9766
9801
  });
9767
9802
 
9768
9803
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
9769
- import { z as z307 } from "zod";
9804
+ import { z as z308 } from "zod";
9770
9805
 
9771
9806
  // src/api/dto/elements/figma-nodes/figma-node.ts
9772
- import { z as z306 } from "zod";
9807
+ import { z as z307 } from "zod";
9773
9808
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
9774
- var DTOFigmaNodeOrigin = z306.object({
9775
- sourceId: z306.string(),
9776
- fileId: z306.string().optional(),
9777
- parentName: z306.string().optional()
9809
+ var DTOFigmaNodeOrigin = z307.object({
9810
+ sourceId: z307.string(),
9811
+ fileId: z307.string().optional(),
9812
+ parentName: z307.string().optional()
9778
9813
  });
9779
- var DTOFigmaNodeRenderInputBase = z306.object({
9814
+ var DTOFigmaNodeRenderInputBase = z307.object({
9780
9815
  /**
9781
9816
  * Format in which the node must be rendered, png by default.
9782
9817
  */
@@ -9784,57 +9819,57 @@ var DTOFigmaNodeRenderInputBase = z306.object({
9784
9819
  /**
9785
9820
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
9786
9821
  */
9787
- scale: z306.number().optional()
9822
+ scale: z307.number().optional()
9788
9823
  });
9789
9824
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
9790
- inputType: z306.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
9825
+ inputType: z307.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
9791
9826
  /**
9792
9827
  * Id of a design system's data source representing a linked Figma file
9793
9828
  */
9794
- sourceId: z306.string(),
9829
+ sourceId: z307.string(),
9795
9830
  /**
9796
9831
  * Id of a node within the Figma file
9797
9832
  */
9798
- figmaFileNodeId: z306.string()
9833
+ figmaFileNodeId: z307.string()
9799
9834
  });
9800
9835
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
9801
- inputType: z306.literal("URL"),
9836
+ inputType: z307.literal("URL"),
9802
9837
  /**
9803
9838
  * Id of a design system's data source representing a linked Figma file
9804
9839
  */
9805
- figmaNodeUrl: z306.string(),
9840
+ figmaNodeUrl: z307.string(),
9806
9841
  /**
9807
9842
  * Brand persistent id to use in case a source has to be created for this render
9808
9843
  */
9809
- brandPersistentId: z306.string()
9844
+ brandPersistentId: z307.string()
9810
9845
  });
9811
- var DTOFigmaNodeRerenderInput = z306.object({
9812
- inputType: z306.literal("Rerender"),
9846
+ var DTOFigmaNodeRerenderInput = z307.object({
9847
+ inputType: z307.literal("Rerender"),
9813
9848
  /**
9814
9849
  * Persistent ID of an existing Figma node
9815
9850
  */
9816
- figmaNodePersistentId: z306.string()
9851
+ figmaNodePersistentId: z307.string()
9817
9852
  });
9818
- var DTOFigmaNodeRenderInput = z306.discriminatedUnion("inputType", [
9853
+ var DTOFigmaNodeRenderInput = z307.discriminatedUnion("inputType", [
9819
9854
  DTOFigmaNodeRenderIdInput,
9820
9855
  DTOFigmaNodeRenderUrlInput,
9821
9856
  DTOFigmaNodeRerenderInput
9822
9857
  ]);
9823
9858
 
9824
9859
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
9825
- var DTOFigmaNodeData = z307.object({
9860
+ var DTOFigmaNodeData = z308.object({
9826
9861
  // Id of the node in the Figma file
9827
- figmaNodeId: z307.string(),
9862
+ figmaNodeId: z308.string(),
9828
9863
  // Validity
9829
- isValid: z307.boolean(),
9864
+ isValid: z308.boolean(),
9830
9865
  // Asset data
9831
- assetId: z307.string(),
9832
- assetUrl: z307.string(),
9866
+ assetId: z308.string(),
9867
+ assetUrl: z308.string(),
9833
9868
  assetFormat: DTOFigmaNodeRenderFormat,
9834
9869
  // Asset metadata
9835
- assetScale: z307.number(),
9836
- assetWidth: z307.number().optional(),
9837
- assetHeight: z307.number().optional()
9870
+ assetScale: z308.number(),
9871
+ assetWidth: z308.number().optional(),
9872
+ assetHeight: z308.number().optional()
9838
9873
  });
9839
9874
  var DTOFigmaNode = FigmaNodeReference.omit({
9840
9875
  data: true,
@@ -9845,15 +9880,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
9845
9880
  });
9846
9881
 
9847
9882
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
9848
- import { z as z308 } from "zod";
9849
- var DTOFigmaNodeDataV2 = z308.object({
9850
- sceneNodeId: z308.string(),
9883
+ import { z as z309 } from "zod";
9884
+ var DTOFigmaNodeDataV2 = z309.object({
9885
+ sceneNodeId: z309.string(),
9851
9886
  format: FigmaNodeRenderFormat,
9852
- scale: z308.number().optional(),
9887
+ scale: z309.number().optional(),
9853
9888
  renderState: FigmaNodeRenderState,
9854
9889
  renderedImage: FigmaNodeRenderedImage.optional(),
9855
9890
  renderError: FigmaNodeRenderError.optional(),
9856
- hasSource: z308.boolean()
9891
+ hasSource: z309.boolean()
9857
9892
  });
9858
9893
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
9859
9894
  data: true,
@@ -9864,113 +9899,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
9864
9899
  });
9865
9900
 
9866
9901
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
9867
- import { z as z309 } from "zod";
9868
- var DTOFigmaNodeRenderActionOutput = z309.object({
9869
- type: z309.literal("FigmaNodeRender"),
9870
- figmaNodes: z309.array(DTOFigmaNode)
9902
+ import { z as z310 } from "zod";
9903
+ var DTOFigmaNodeRenderActionOutput = z310.object({
9904
+ type: z310.literal("FigmaNodeRender"),
9905
+ figmaNodes: z310.array(DTOFigmaNode)
9871
9906
  });
9872
- var DTOFigmaNodeRenderAsyncActionOutput = z309.object({
9873
- type: z309.literal("FigmaNodeRenderAsync"),
9874
- figmaNodes: z309.array(DTOFigmaNodeV2)
9907
+ var DTOFigmaNodeRenderAsyncActionOutput = z310.object({
9908
+ type: z310.literal("FigmaNodeRenderAsync"),
9909
+ figmaNodes: z310.array(DTOFigmaNodeV2)
9875
9910
  });
9876
- var DTOFigmaNodeRenderActionInput = z309.object({
9877
- type: z309.literal("FigmaNodeRender"),
9911
+ var DTOFigmaNodeRenderActionInput = z310.object({
9912
+ type: z310.literal("FigmaNodeRender"),
9878
9913
  input: DTOFigmaNodeRenderIdInput.array()
9879
9914
  });
9880
- var DTOFigmaNodeRenderAsyncActionInput = z309.object({
9881
- type: z309.literal("FigmaNodeRenderAsync"),
9915
+ var DTOFigmaNodeRenderAsyncActionInput = z310.object({
9916
+ type: z310.literal("FigmaNodeRenderAsync"),
9882
9917
  nodes: DTOFigmaNodeRenderInput.array()
9883
9918
  });
9884
9919
 
9885
9920
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
9886
- import { z as z310 } from "zod";
9887
- var DTOFrameNodeStructure = z310.object({
9888
- id: z310.string(),
9889
- persistentId: z310.string(),
9890
- designSystemVersionId: z310.string(),
9921
+ import { z as z311 } from "zod";
9922
+ var DTOFrameNodeStructure = z311.object({
9923
+ id: z311.string(),
9924
+ persistentId: z311.string(),
9925
+ designSystemVersionId: z311.string(),
9891
9926
  origin: FigmaFileStructureOrigin,
9892
9927
  assetsInFile: FigmaFileStructureStatistics
9893
9928
  });
9894
- var DTOFrameNodeStructureListResponse = z310.object({
9929
+ var DTOFrameNodeStructureListResponse = z311.object({
9895
9930
  structures: DTOFrameNodeStructure.array()
9896
9931
  });
9897
9932
 
9898
9933
  // src/api/dto/elements/properties/property-definitions.ts
9899
- import { z as z311 } from "zod";
9934
+ import { z as z312 } from "zod";
9900
9935
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
9901
- var DTOElementPropertyDefinitionOption = z311.object({
9902
- id: z311.string(),
9903
- name: z311.string(),
9936
+ var DTOElementPropertyDefinitionOption = z312.object({
9937
+ id: z312.string(),
9938
+ name: z312.string(),
9904
9939
  backgroundColor: DTOColorTokenInlineData.optional()
9905
9940
  });
9906
- var DTOElementPropertyDefinition = z311.object({
9907
- id: z311.string(),
9908
- designSystemVersionId: z311.string(),
9941
+ var DTOElementPropertyDefinition = z312.object({
9942
+ id: z312.string(),
9943
+ designSystemVersionId: z312.string(),
9909
9944
  meta: DTOObjectMeta,
9910
- persistentId: z311.string(),
9945
+ persistentId: z312.string(),
9911
9946
  type: ElementPropertyTypeSchema,
9912
9947
  targetElementType: ElementPropertyTargetType,
9913
- codeName: z311.string().regex(CODE_NAME_REGEX2),
9914
- options: nullishToOptional(z311.array(DTOElementPropertyDefinitionOption)),
9948
+ codeName: z312.string().regex(CODE_NAME_REGEX2),
9949
+ options: nullishToOptional(z312.array(DTOElementPropertyDefinitionOption)),
9915
9950
  linkElementType: nullishToOptional(ElementPropertyLinkType),
9916
- isImmutable: z311.boolean(),
9951
+ isImmutable: z312.boolean(),
9917
9952
  immutablePropertyType: ElementPropertyImmutableType.optional()
9918
9953
  });
9919
- var DTOElementPropertyDefinitionListResponse = z311.object({
9920
- definitions: z311.array(DTOElementPropertyDefinition)
9954
+ var DTOElementPropertyDefinitionListResponse = z312.object({
9955
+ definitions: z312.array(DTOElementPropertyDefinition)
9921
9956
  });
9922
- var DTOElementPropertyDefinitionResponse = z311.object({
9957
+ var DTOElementPropertyDefinitionResponse = z312.object({
9923
9958
  definition: DTOElementPropertyDefinition
9924
9959
  });
9925
- var DTOElementPropertyDefinitionCreatePayload = z311.object({
9960
+ var DTOElementPropertyDefinitionCreatePayload = z312.object({
9926
9961
  meta: DTOObjectMeta,
9927
- persistentId: z311.string(),
9962
+ persistentId: z312.string(),
9928
9963
  type: ElementPropertyTypeSchema,
9929
9964
  targetElementType: ElementPropertyTargetType,
9930
- codeName: z311.string().regex(CODE_NAME_REGEX2),
9931
- options: nullishToOptional(z311.array(DTOElementPropertyDefinitionOption)),
9965
+ codeName: z312.string().regex(CODE_NAME_REGEX2),
9966
+ options: nullishToOptional(z312.array(DTOElementPropertyDefinitionOption)),
9932
9967
  linkElementType: nullishToOptional(ElementPropertyLinkType),
9933
- columnWidth: z311.number().max(1024).optional()
9968
+ columnWidth: z312.number().max(1024).optional()
9934
9969
  });
9935
- var DTOElementPropertyDefinitionUpdatePayload = z311.object({
9970
+ var DTOElementPropertyDefinitionUpdatePayload = z312.object({
9936
9971
  meta: DTOObjectMeta.optional(),
9937
- codeName: z311.string().regex(CODE_NAME_REGEX2).optional(),
9938
- options: z311.array(DTOElementPropertyDefinitionOption).optional()
9972
+ codeName: z312.string().regex(CODE_NAME_REGEX2).optional(),
9973
+ options: z312.array(DTOElementPropertyDefinitionOption).optional()
9939
9974
  });
9940
9975
 
9941
9976
  // src/api/dto/elements/properties/property-values.ts
9942
- import { z as z312 } from "zod";
9943
- var DTOElementPropertyValue = z312.object({
9944
- id: z312.string(),
9945
- designSystemVersionId: z312.string(),
9946
- definitionId: z312.string(),
9947
- targetElementId: z312.string(),
9948
- value: z312.union([z312.string(), z312.number(), z312.boolean()]).optional(),
9949
- valuePreview: z312.string().optional()
9950
- });
9951
- var DTOElementPropertyValueListResponse = z312.object({
9952
- values: z312.array(DTOElementPropertyValue)
9953
- });
9954
- var DTOElementPropertyValueResponse = z312.object({
9977
+ import { z as z313 } from "zod";
9978
+ var DTOElementPropertyValue = z313.object({
9979
+ id: z313.string(),
9980
+ designSystemVersionId: z313.string(),
9981
+ definitionId: z313.string(),
9982
+ targetElementId: z313.string(),
9983
+ value: z313.union([z313.string(), z313.number(), z313.boolean()]).optional(),
9984
+ valuePreview: z313.string().optional()
9985
+ });
9986
+ var DTOElementPropertyValueListResponse = z313.object({
9987
+ values: z313.array(DTOElementPropertyValue)
9988
+ });
9989
+ var DTOElementPropertyValueResponse = z313.object({
9955
9990
  value: DTOElementPropertyValue
9956
9991
  });
9957
- var DTOElementPropertyValuesEditActionOutput = z312.object({
9958
- type: z312.literal("ElementPropertyValuesEdit"),
9959
- output: z312.object({ success: z312.literal(true) })
9992
+ var DTOElementPropertyValuesEditActionOutput = z313.object({
9993
+ type: z313.literal("ElementPropertyValuesEdit"),
9994
+ output: z313.object({ success: z313.literal(true) })
9960
9995
  });
9961
- var DTOElementPropertyValueUpsertPaylod = z312.object({
9962
- definitionId: z312.string(),
9963
- targetElementId: z312.string(),
9964
- value: z312.string().or(z312.number()).or(z312.boolean()).nullable()
9996
+ var DTOElementPropertyValueUpsertPaylod = z313.object({
9997
+ definitionId: z313.string(),
9998
+ targetElementId: z313.string(),
9999
+ value: z313.string().or(z313.number()).or(z313.boolean()).nullable()
9965
10000
  });
9966
- var DTOElementPropertyValuesEditActionInput = z312.object({
9967
- type: z312.literal("ElementPropertyValuesEdit"),
10001
+ var DTOElementPropertyValuesEditActionInput = z313.object({
10002
+ type: z313.literal("ElementPropertyValuesEdit"),
9968
10003
  values: DTOElementPropertyValueUpsertPaylod.array()
9969
10004
  });
9970
10005
 
9971
10006
  // src/api/dto/elements/elements-action-v2.ts
9972
- import { z as z313 } from "zod";
9973
- var DTOElementActionOutput = z313.discriminatedUnion("type", [
10007
+ import { z as z314 } from "zod";
10008
+ var DTOElementActionOutput = z314.discriminatedUnion("type", [
9974
10009
  // Documentation pages
9975
10010
  DTODocumentationPageCreateActionOutputV2,
9976
10011
  DTODocumentationPageUpdateActionOutputV2,
@@ -9997,7 +10032,7 @@ var DTOElementActionOutput = z313.discriminatedUnion("type", [
9997
10032
  // Element properties
9998
10033
  DTOElementPropertyValuesEditActionOutput
9999
10034
  ]);
10000
- var DTOElementActionInput = z313.discriminatedUnion("type", [
10035
+ var DTOElementActionInput = z314.discriminatedUnion("type", [
10001
10036
  // Documentation pages
10002
10037
  DTODocumentationPageCreateActionInputV2,
10003
10038
  DTODocumentationPageUpdateActionInputV2,
@@ -10024,52 +10059,52 @@ var DTOElementActionInput = z313.discriminatedUnion("type", [
10024
10059
  // Element properties
10025
10060
  DTOElementPropertyValuesEditActionInput
10026
10061
  ]).and(
10027
- z313.object({
10028
- tId: z313.string().optional()
10062
+ z314.object({
10063
+ tId: z314.string().optional()
10029
10064
  })
10030
10065
  );
10031
10066
 
10032
10067
  // src/api/dto/elements/get-elements-v2.ts
10033
- import { z as z314 } from "zod";
10034
- var DTOElementsGetTypeFilter = z314.enum(["FigmaNode"]);
10035
- var DTOElementsGetQuerySchema = z314.object({
10036
- types: z314.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
10037
- responseVersion: z314.coerce.number().default(1)
10068
+ import { z as z315 } from "zod";
10069
+ var DTOElementsGetTypeFilter = z315.enum(["FigmaNode"]);
10070
+ var DTOElementsGetQuerySchema = z315.object({
10071
+ types: z315.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
10072
+ responseVersion: z315.coerce.number().default(1)
10038
10073
  });
10039
- var DTOElementsGetOutput = z314.object({
10040
- figmaNodes: z314.array(DTOFigmaNode).optional()
10074
+ var DTOElementsGetOutput = z315.object({
10075
+ figmaNodes: z315.array(DTOFigmaNode).optional()
10041
10076
  });
10042
- var DTOElementsGetOutputV2 = z314.object({
10043
- figmaNodes: z314.array(DTOFigmaNodeV2).optional()
10077
+ var DTOElementsGetOutputV2 = z315.object({
10078
+ figmaNodes: z315.array(DTOFigmaNodeV2).optional()
10044
10079
  });
10045
10080
 
10046
10081
  // src/api/dto/events/forge-project.ts
10047
- import z341 from "zod";
10082
+ import z342 from "zod";
10048
10083
 
10049
10084
  // src/api/dto/forge/agent.ts
10050
- import { z as z315 } from "zod";
10085
+ import { z as z316 } from "zod";
10051
10086
  var DTOForgeAgent = ForgeAgent;
10052
10087
  var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
10053
10088
  var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
10054
- var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z315.string() });
10055
- var DTOCreateForgeAgentResponse = z315.object({
10089
+ var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z316.string() });
10090
+ var DTOCreateForgeAgentResponse = z316.object({
10056
10091
  agent: DTOForgeAgent
10057
10092
  });
10058
- var DTOUGetForgeAgentResponse = z315.object({
10093
+ var DTOUGetForgeAgentResponse = z316.object({
10059
10094
  agent: DTOForgeAgent.nullable()
10060
10095
  });
10061
- var DTOUpdateForgeAgentResponse = z315.object({
10096
+ var DTOUpdateForgeAgentResponse = z316.object({
10062
10097
  agent: DTOForgeAgent.nullable()
10063
10098
  });
10064
- var DTOForgeAgentsListResponse = z315.object({
10065
- agents: z315.array(DTOForgeAgent)
10099
+ var DTOForgeAgentsListResponse = z316.object({
10100
+ agents: z316.array(DTOForgeAgent)
10066
10101
  });
10067
- var DTODeleteForgeAgentResponse = z315.object({
10068
- ok: z315.literal(true)
10102
+ var DTODeleteForgeAgentResponse = z316.object({
10103
+ ok: z316.literal(true)
10069
10104
  });
10070
10105
 
10071
10106
  // src/api/dto/forge/artifact.ts
10072
- import { z as z316 } from "zod";
10107
+ import { z as z317 } from "zod";
10073
10108
  var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
10074
10109
  id: true,
10075
10110
  createdAt: true,
@@ -10090,117 +10125,117 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
10090
10125
  createdAt: true,
10091
10126
  projectIterationId: true
10092
10127
  });
10093
- var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z316.string() });
10094
- var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z316.string() });
10095
- var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z316.string() });
10096
- var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z316.string() });
10128
+ var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z317.string() });
10129
+ var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z317.string() });
10130
+ var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z317.string() });
10131
+ var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z317.string() });
10097
10132
  var DTOForgeArtifact = ForgeArtifact;
10098
10133
  var DTOForgeBuildArtifact = ForgeBuildArtifact;
10099
10134
  var DTOForgeFileArtifact = ForgeFileArtifact;
10100
10135
  var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
10101
10136
  var DTOForgeSpecArtifact = ForgeSpecArtifact;
10102
- var DTOCreateForgeArtifact = z316.union([
10137
+ var DTOCreateForgeArtifact = z317.union([
10103
10138
  DTOCreateForgeBuildArtifact,
10104
10139
  DTOCreateForgeFileArtifact,
10105
10140
  DTOCreateForgeFigmaArtifact,
10106
10141
  DTOCreateForgeSpecArtifact
10107
10142
  ]);
10108
- var DTOUpdateForgeArtifact = z316.union([
10143
+ var DTOUpdateForgeArtifact = z317.union([
10109
10144
  DTOUpdateForgeFileArtifact,
10110
10145
  DTOUpdateForgeBuildArtifact,
10111
10146
  DTOUpdateForgeSpecArtifact,
10112
10147
  DTOUpdateForgeFigmaArtifact
10113
10148
  ]);
10114
- var DTOCreateForgeArtifactResponse = z316.object({
10149
+ var DTOCreateForgeArtifactResponse = z317.object({
10115
10150
  artifact: DTOForgeArtifact
10116
10151
  });
10117
- var DTOUpdateForgeArtifactResponse = z316.object({
10152
+ var DTOUpdateForgeArtifactResponse = z317.object({
10118
10153
  artifact: DTOForgeArtifact.nullable()
10119
10154
  });
10120
- var DTODeleteForgeArtifactResponse = z316.object({
10121
- ok: z316.literal(true)
10155
+ var DTODeleteForgeArtifactResponse = z317.object({
10156
+ ok: z317.literal(true)
10122
10157
  });
10123
- var DTOForgeArtifactsListResponse = z316.object({
10124
- artifacts: z316.array(DTOForgeArtifact)
10158
+ var DTOForgeArtifactsListResponse = z317.object({
10159
+ artifacts: z317.array(DTOForgeArtifact)
10125
10160
  });
10126
- var DTOForgeArtifactGetResponse = z316.object({
10161
+ var DTOForgeArtifactGetResponse = z317.object({
10127
10162
  artifact: DTOForgeArtifact.nullable()
10128
10163
  });
10129
10164
 
10130
10165
  // src/api/dto/forge/feature-messages.ts
10131
- import z318 from "zod";
10166
+ import z319 from "zod";
10132
10167
 
10133
10168
  // src/api/dto/files/files.ts
10134
- import z317 from "zod";
10169
+ import z318 from "zod";
10135
10170
  var DTOFileFigmaRenderMode = FileFigmaRenderMode;
10136
10171
  var DTOFileSourceUpload = FileSourceUpload;
10137
10172
  var DTOFileSourceFigma = FileSourceFigma;
10138
10173
  var DTOFileSource = FileSource;
10139
10174
  var DTOFile = File;
10140
10175
  var DTOFileReference = FileReference;
10141
- var DTOFileUploadOwnerUser = z317.object({
10142
- ownerType: z317.literal("User")
10176
+ var DTOFileUploadOwnerUser = z318.object({
10177
+ ownerType: z318.literal("User")
10143
10178
  });
10144
- var DTOFileUploadOwnerWorkspace = z317.object({
10145
- ownerType: z317.literal("Workspace"),
10146
- workspaceId: z317.string()
10179
+ var DTOFileUploadOwnerWorkspace = z318.object({
10180
+ ownerType: z318.literal("Workspace"),
10181
+ workspaceId: z318.string()
10147
10182
  });
10148
- var DTOFileUploadOwner = z317.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
10149
- var DTOFileUploadInput = z317.object({
10150
- size: z317.number(),
10151
- name: z317.string(),
10152
- checksum: z317.string()
10183
+ var DTOFileUploadOwner = z318.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
10184
+ var DTOFileUploadInput = z318.object({
10185
+ size: z318.number(),
10186
+ name: z318.string(),
10187
+ checksum: z318.string()
10153
10188
  });
10154
- var DTOFileUploadBulkPayload = z317.object({
10189
+ var DTOFileUploadBulkPayload = z318.object({
10155
10190
  files: DTOFileUploadInput.array()
10156
10191
  }).and(DTOFileUploadOwner);
10157
- var DTOFileFinalizeBulkPayload = z317.object({
10158
- fileIds: z317.string().array()
10192
+ var DTOFileFinalizeBulkPayload = z318.object({
10193
+ fileIds: z318.string().array()
10159
10194
  }).and(DTOFileUploadOwner);
10160
- var DTOFileListResponse = z317.object({
10195
+ var DTOFileListResponse = z318.object({
10161
10196
  files: DTOFile.array()
10162
10197
  });
10163
- var DTOFileUploadBulkResponse = z317.object({
10164
- files: z317.array(DTOFile),
10165
- uploadUrls: z317.array(
10166
- z317.object({
10167
- fileId: z317.string(),
10168
- uploadUrl: z317.string()
10198
+ var DTOFileUploadBulkResponse = z318.object({
10199
+ files: z318.array(DTOFile),
10200
+ uploadUrls: z318.array(
10201
+ z318.object({
10202
+ fileId: z318.string(),
10203
+ uploadUrl: z318.string()
10169
10204
  })
10170
10205
  )
10171
10206
  });
10172
- var DTOFileFinalizeBulkResponse = z317.object({
10173
- files: z317.array(DTOFile)
10207
+ var DTOFileFinalizeBulkResponse = z318.object({
10208
+ files: z318.array(DTOFile)
10174
10209
  });
10175
10210
 
10176
10211
  // src/api/dto/forge/feature-messages.ts
10177
- var DTOFeatureMessageUserSender = z318.object({
10178
- type: z318.literal("User"),
10179
- userId: z318.string()
10212
+ var DTOFeatureMessageUserSender = z319.object({
10213
+ type: z319.literal("User"),
10214
+ userId: z319.string()
10180
10215
  });
10181
- var DTOFeatureMessageAgentSender = z318.object({
10182
- type: z318.literal("Agent")
10216
+ var DTOFeatureMessageAgentSender = z319.object({
10217
+ type: z319.literal("Agent")
10183
10218
  });
10184
- var DTOFeatureMessageSystemSender = z318.object({
10185
- type: z318.literal("System"),
10186
- onBehalfOfUserId: z318.string()
10219
+ var DTOFeatureMessageSystemSender = z319.object({
10220
+ type: z319.literal("System"),
10221
+ onBehalfOfUserId: z319.string()
10187
10222
  });
10188
- var DTOFeatureMessageSender = z318.discriminatedUnion("type", [
10223
+ var DTOFeatureMessageSender = z319.discriminatedUnion("type", [
10189
10224
  DTOFeatureMessageUserSender,
10190
10225
  DTOFeatureMessageAgentSender,
10191
10226
  DTOFeatureMessageSystemSender
10192
10227
  ]);
10193
- var DTOFeatureMessageReaction = z318.object({
10228
+ var DTOFeatureMessageReaction = z319.object({
10194
10229
  messageId: Id,
10195
- userId: z318.string(),
10196
- emoji: z318.string(),
10197
- createdAt: z318.string()
10230
+ userId: z319.string(),
10231
+ emoji: z319.string(),
10232
+ createdAt: z319.string()
10198
10233
  });
10199
- var DTOFeatureMessageAttachments = z318.object({
10234
+ var DTOFeatureMessageAttachments = z319.object({
10200
10235
  iterationId: Id.optional()
10201
10236
  // TODO Artem: files, etc
10202
10237
  });
10203
- var DTOFeatureMessage = z318.object({
10238
+ var DTOFeatureMessage = z319.object({
10204
10239
  id: Id,
10205
10240
  /**
10206
10241
  * Describes where the message came from
@@ -10209,16 +10244,16 @@ var DTOFeatureMessage = z318.object({
10209
10244
  /**
10210
10245
  * Content of the message
10211
10246
  */
10212
- body: z318.string(),
10247
+ body: z319.string(),
10213
10248
  /**
10214
10249
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
10215
10250
  * AI agent to generate a response and perform an action within the feature
10216
10251
  */
10217
- isPrompt: z318.boolean().optional(),
10252
+ isPrompt: z319.boolean().optional(),
10218
10253
  /**
10219
10254
  * Indicates if the sender requested agent to reply in a thread
10220
10255
  */
10221
- startsNewThread: z318.boolean().optional(),
10256
+ startsNewThread: z319.boolean().optional(),
10222
10257
  /**
10223
10258
  * If defined, this message is considered to be a reply in a thread under parent message id
10224
10259
  */
@@ -10232,23 +10267,23 @@ var DTOFeatureMessage = z318.object({
10232
10267
  * If defined, this message is considered to be a reply to different message
10233
10268
  */
10234
10269
  replyToMessageId: Id.optional(),
10235
- createdAt: z318.string(),
10236
- updatedAt: z318.string().optional()
10270
+ createdAt: z319.string(),
10271
+ updatedAt: z319.string().optional()
10237
10272
  });
10238
- var DTOFeatureAgentResponseTracker = z318.object({
10273
+ var DTOFeatureAgentResponseTracker = z319.object({
10239
10274
  id: Id,
10240
- currentBody: z318.string().default("")
10275
+ currentBody: z319.string().default("")
10241
10276
  });
10242
- var DTOFeatureArtifact = z318.object({
10277
+ var DTOFeatureArtifact = z319.object({
10243
10278
  id: Id,
10244
10279
  /**
10245
10280
  * Key of the artifact, can include path like `src/components/button.tsx`
10246
10281
  */
10247
- key: z318.string(),
10282
+ key: z319.string(),
10248
10283
  /**
10249
10284
  * Id of the project file that holds content of this artifact
10250
10285
  */
10251
- fileId: z318.string().optional(),
10286
+ fileId: z319.string().optional(),
10252
10287
  /**
10253
10288
  * Id of the Iteration that this artifact belongs to
10254
10289
  */
@@ -10256,44 +10291,44 @@ var DTOFeatureArtifact = z318.object({
10256
10291
  /**
10257
10292
  * URL of the feature artifact's contents
10258
10293
  */
10259
- url: z318.string(),
10294
+ url: z319.string(),
10260
10295
  /**
10261
10296
  * Relative file path of the artifact (without domain/base URL)
10262
10297
  */
10263
- filePath: z318.string().optional(),
10264
- createdAt: z318.string(),
10265
- updatedAt: z318.string()
10266
- });
10267
- var DTOFeatureIterationArtifactsDiff = z318.object({
10268
- created: z318.array(DTOFeatureArtifact.shape.key).optional().default([]),
10269
- updated: z318.array(DTOFeatureArtifact.shape.key).optional().default([]),
10270
- deleted: z318.array(DTOFeatureArtifact.shape.key).optional().default([])
10271
- });
10272
- var DTOFeatureIterationState = z318.enum(["InProgress", "Success", "Error", "Timeout"]);
10273
- var DTOFeatureIterationErrorType = z318.enum(["PackageInstall", "Build", "Compile", "Unknown", "Runtime"]);
10274
- var DTOFeatureIterationError = z318.object({
10275
- description: z318.string(),
10298
+ filePath: z319.string().optional(),
10299
+ createdAt: z319.string(),
10300
+ updatedAt: z319.string()
10301
+ });
10302
+ var DTOFeatureIterationArtifactsDiff = z319.object({
10303
+ created: z319.array(DTOFeatureArtifact.shape.key).optional().default([]),
10304
+ updated: z319.array(DTOFeatureArtifact.shape.key).optional().default([]),
10305
+ deleted: z319.array(DTOFeatureArtifact.shape.key).optional().default([])
10306
+ });
10307
+ var DTOFeatureIterationState = z319.enum(["InProgress", "Success", "Error", "Timeout"]);
10308
+ var DTOFeatureIterationErrorType = z319.enum(["PackageInstall", "Build", "Compile", "Unknown", "Runtime"]);
10309
+ var DTOFeatureIterationError = z319.object({
10310
+ description: z319.string(),
10276
10311
  type: DTOFeatureIterationErrorType
10277
10312
  });
10278
- var DTOFeatureIteration = z318.object({
10313
+ var DTOFeatureIteration = z319.object({
10279
10314
  id: Id,
10280
10315
  /**
10281
10316
  * Name of the iteration
10282
10317
  */
10283
- name: z318.string(),
10318
+ name: z319.string(),
10284
10319
  /**
10285
10320
  * ID of the iteration that this iteration is based on
10286
10321
  */
10287
- baseIterationId: z318.string().optional(),
10322
+ baseIterationId: z319.string().optional(),
10288
10323
  /**
10289
10324
  * Message ID that triggered creation of the iteration
10290
10325
  */
10291
- startedFromMessageId: z318.string(),
10326
+ startedFromMessageId: z319.string(),
10292
10327
  /**
10293
10328
  * Indicates whether the iteration is currently being generated by an agent
10294
10329
  * @deprecated use `state`
10295
10330
  */
10296
- isInProgress: z318.boolean().optional(),
10331
+ isInProgress: z319.boolean().optional(),
10297
10332
  /**
10298
10333
  * Indicates current processing (creation) state of this iteration.
10299
10334
  * This property is optional only for backward compatibility with data stored in Liveblocks rooms.
@@ -10311,7 +10346,7 @@ var DTOFeatureIteration = z318.object({
10311
10346
  *
10312
10347
  * @deprecated use `error.description` instead
10313
10348
  */
10314
- errorDescription: z318.string().nullish(),
10349
+ errorDescription: z319.string().nullish(),
10315
10350
  /**
10316
10351
  * Description of a sandbox error if there were any (such as during `npm i` or `npm run build`).
10317
10352
  * To be used for "fix with AI"
@@ -10320,26 +10355,26 @@ var DTOFeatureIteration = z318.object({
10320
10355
  /**
10321
10356
  * The cost in credits to generate this iteration
10322
10357
  */
10323
- creditsCost: z318.number().optional(),
10358
+ creditsCost: z319.number().optional(),
10324
10359
  /**
10325
10360
  * URL of a static preview of the feature
10326
10361
  */
10327
- staticPreviewUrl: z318.string().optional(),
10362
+ staticPreviewUrl: z319.string().optional(),
10328
10363
  /**
10329
10364
  * Indicates whether the iteration is bookmarked by user
10330
10365
  */
10331
- isBookmarked: z318.boolean().optional(),
10366
+ isBookmarked: z319.boolean().optional(),
10332
10367
  /**
10333
10368
  * @deprecated use thumbnail.fileUrl
10334
10369
  * URL of a static thumbnail of the feature iteration
10335
10370
  */
10336
- thumbnailUrl: z318.string().optional(),
10371
+ thumbnailUrl: z319.string().optional(),
10337
10372
  thumbnail: DTOFileReference.optional(),
10338
- createdAt: z318.string(),
10339
- updatedAt: z318.string().optional(),
10373
+ createdAt: z319.string(),
10374
+ updatedAt: z319.string().optional(),
10340
10375
  artifactsDiff: DTOFeatureIterationArtifactsDiff.optional().nullable()
10341
10376
  });
10342
- var DTOFeatureIterationTag = z318.object({
10377
+ var DTOFeatureIterationTag = z319.object({
10343
10378
  id: Id,
10344
10379
  featureId: Id,
10345
10380
  /**
@@ -10352,38 +10387,38 @@ var DTOFeatureIterationTag = z318.object({
10352
10387
  */
10353
10388
  iterationId: Id
10354
10389
  });
10355
- var DTOSandboxError = z318.object({
10390
+ var DTOSandboxError = z319.object({
10356
10391
  /** At what stage the error has occured */
10357
- stage: z318.enum(["PackageInstall", "HealthCheck", "Build", "Unknown"]),
10392
+ stage: z319.enum(["PackageInstall", "HealthCheck", "Build", "Unknown"]),
10358
10393
  /** We will use this in "fix with AI" */
10359
- errorDescription: z318.string()
10394
+ errorDescription: z319.string()
10360
10395
  });
10361
- var DTOFeatureSandbox = z318.object({
10362
- id: z318.string(),
10363
- url: z318.string(),
10396
+ var DTOFeatureSandbox = z319.object({
10397
+ id: z319.string(),
10398
+ url: z319.string(),
10364
10399
  parentMessageId: Id.optional(),
10365
10400
  currentIterationId: Id,
10366
10401
  featureId: Id,
10367
- expiresAt: z318.string().optional(),
10402
+ expiresAt: z319.string().optional(),
10368
10403
  error: DTOSandboxError.optional()
10369
10404
  });
10370
10405
  var DTOCreateFeatureSandbox = DTOFeatureSandbox;
10371
10406
  var DTOUpdateFeatureSandbox = DTOCreateFeatureSandbox.partial().extend({
10372
- id: z318.string(),
10407
+ id: z319.string(),
10373
10408
  parentMessageId: Id.nullish(),
10374
- expiresAt: z318.string().nullish(),
10409
+ expiresAt: z319.string().nullish(),
10375
10410
  error: DTOSandboxError.nullish()
10376
10411
  });
10377
- var DTOFeatureSandboxListResponse = z318.object({
10412
+ var DTOFeatureSandboxListResponse = z319.object({
10378
10413
  sandboxes: DTOFeatureSandbox.array()
10379
10414
  });
10380
- var DTOProvisionFeatureSandboxInput = z318.object({
10381
- parentMessageId: z318.string().optional()
10415
+ var DTOProvisionFeatureSandboxInput = z319.object({
10416
+ parentMessageId: z319.string().optional()
10382
10417
  });
10383
- var DTOProvisionFeatureSandboxResponse = z318.object({
10384
- ok: z318.boolean()
10418
+ var DTOProvisionFeatureSandboxResponse = z319.object({
10419
+ ok: z319.boolean()
10385
10420
  });
10386
- var DTOKeepAliveFeatureSandboxResponse = z318.object({
10421
+ var DTOKeepAliveFeatureSandboxResponse = z319.object({
10387
10422
  sandbox: DTOFeatureSandbox
10388
10423
  });
10389
10424
  var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
@@ -10395,34 +10430,34 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
10395
10430
  attachments: true
10396
10431
  });
10397
10432
  var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
10398
- var DTOFeatureMessageReactionCreateInput = z318.object({
10433
+ var DTOFeatureMessageReactionCreateInput = z319.object({
10399
10434
  messageId: Id,
10400
- emoji: z318.string()
10435
+ emoji: z319.string()
10401
10436
  });
10402
- var DTOFeatureMessageReactionDeleteInput = z318.object({
10437
+ var DTOFeatureMessageReactionDeleteInput = z319.object({
10403
10438
  messageId: Id,
10404
- emoji: z318.string()
10439
+ emoji: z319.string()
10405
10440
  });
10406
- var DTOFeatureArtifactCreateInput = z318.object({
10441
+ var DTOFeatureArtifactCreateInput = z319.object({
10407
10442
  id: Id,
10408
- key: z318.string(),
10409
- fileId: z318.string(),
10443
+ key: z319.string(),
10444
+ fileId: z319.string(),
10410
10445
  iterationId: Id.optional()
10411
10446
  });
10412
- var DTOFeatureArtifactDeleteInput = z318.object({
10447
+ var DTOFeatureArtifactDeleteInput = z319.object({
10413
10448
  id: Id
10414
10449
  });
10415
10450
  var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
10416
10451
  id: true,
10417
10452
  startedFromMessageId: true
10418
10453
  });
10419
- var DTOFeatureIterationPromoteInput = z318.object({
10454
+ var DTOFeatureIterationPromoteInput = z319.object({
10420
10455
  id: Id
10421
10456
  });
10422
- var DTOFeatureArtifactGetByIdParam = z318.object({
10457
+ var DTOFeatureArtifactGetByIdParam = z319.object({
10423
10458
  id: Id
10424
10459
  });
10425
- var DTOFeatureIterationSetLatestInput = z318.object({
10460
+ var DTOFeatureIterationSetLatestInput = z319.object({
10426
10461
  id: Id,
10427
10462
  /**
10428
10463
  * Optional message ID to determine the context for setting this iteration as latest.
@@ -10432,153 +10467,153 @@ var DTOFeatureIterationSetLatestInput = z318.object({
10432
10467
  */
10433
10468
  contextMessageId: Id.nullish()
10434
10469
  });
10435
- var DTOFeatureIterationUpdateInput = z318.object({
10470
+ var DTOFeatureIterationUpdateInput = z319.object({
10436
10471
  id: Id,
10437
- isBookmarked: z318.boolean().optional()
10472
+ isBookmarked: z319.boolean().optional()
10438
10473
  });
10439
- var DTOFeatureIterationTagCreateInput = z318.object({
10474
+ var DTOFeatureIterationTagCreateInput = z319.object({
10440
10475
  featureId: Id,
10441
10476
  iterationId: Id,
10442
10477
  messageId: Id.optional()
10443
10478
  });
10444
- var DTOFeatureIterationArtifactDiff = z318.object({
10479
+ var DTOFeatureIterationArtifactDiff = z319.object({
10445
10480
  /**
10446
10481
  * Map of artifact key -> new key that describes artifacts that will be moved in this iteration
10447
10482
  */
10448
- move: z318.record(
10449
- z318.object({
10450
- newKey: z318.string()
10483
+ move: z319.record(
10484
+ z319.object({
10485
+ newKey: z319.string()
10451
10486
  })
10452
10487
  ),
10453
10488
  /**
10454
10489
  * Map of artifact key -> new key that describes artifacts that will be copied in this iteration
10455
10490
  */
10456
- copy: z318.record(
10457
- z318.object({
10458
- newKey: z318.string()
10491
+ copy: z319.record(
10492
+ z319.object({
10493
+ newKey: z319.string()
10459
10494
  })
10460
10495
  ).optional(),
10461
10496
  /**
10462
10497
  * Map of artifact key -> artifact content that describes artifacts that will be
10463
10498
  * create or updated in this iteration
10464
10499
  */
10465
- upsert: z318.record(
10466
- z318.object({
10467
- artifactContent: z318.string()
10500
+ upsert: z319.record(
10501
+ z319.object({
10502
+ artifactContent: z319.string()
10468
10503
  })
10469
10504
  ),
10470
10505
  /**
10471
10506
  * List artifact keys to remove from this iteration
10472
10507
  */
10473
- remove: z318.array(z318.string())
10508
+ remove: z319.array(z319.string())
10474
10509
  });
10475
- var DTOFeatureIterationUpdateArtifactsInput = z318.object({
10510
+ var DTOFeatureIterationUpdateArtifactsInput = z319.object({
10476
10511
  id: Id,
10477
- name: z318.string().optional(),
10512
+ name: z319.string().optional(),
10478
10513
  artifactDiff: DTOFeatureIterationArtifactDiff
10479
10514
  });
10480
- var DTOFeatureIterationValidateInput = z318.object({
10515
+ var DTOFeatureIterationValidateInput = z319.object({
10481
10516
  id: Id,
10482
10517
  messageId: Id
10483
10518
  });
10484
- var DTOFeatureIterationUpdateArtifactsByMessageInput = z318.object({
10519
+ var DTOFeatureIterationUpdateArtifactsByMessageInput = z319.object({
10485
10520
  messageId: Id,
10486
- name: z318.string().optional(),
10521
+ name: z319.string().optional(),
10487
10522
  artifactDiff: DTOFeatureIterationArtifactDiff
10488
10523
  });
10489
- var DTOFeatureAgentWorkFinalizeInput = z318.object({
10524
+ var DTOFeatureAgentWorkFinalizeInput = z319.object({
10490
10525
  messageId: Id
10491
10526
  });
10492
- var DTOFeatureUpdateThemeInput = z318.object({
10493
- parentMessageId: z318.string().optional(),
10494
- themeCss: z318.string()
10527
+ var DTOFeatureUpdateThemeInput = z319.object({
10528
+ parentMessageId: z319.string().optional(),
10529
+ themeCss: z319.string()
10495
10530
  });
10496
- var DTOFeatureMessageResponse = z318.object({
10531
+ var DTOFeatureMessageResponse = z319.object({
10497
10532
  message: DTOFeatureMessage
10498
10533
  });
10499
- var DTOFeatureMessageReactionResponse = z318.object({
10534
+ var DTOFeatureMessageReactionResponse = z319.object({
10500
10535
  reaction: DTOFeatureMessageReaction
10501
10536
  });
10502
- var DTOFeatureMessageListResponse = z318.object({
10537
+ var DTOFeatureMessageListResponse = z319.object({
10503
10538
  messages: DTOFeatureMessage.array(),
10504
10539
  reactions: DTOFeatureMessageReaction.array(),
10505
- lastSeenMessageId: z318.string().optional()
10540
+ lastSeenMessageId: z319.string().optional()
10506
10541
  });
10507
- var DTOFeatureArtifactResponse = z318.object({
10542
+ var DTOFeatureArtifactResponse = z319.object({
10508
10543
  artifact: DTOFeatureArtifact
10509
10544
  });
10510
- var DTOFeatureArtifactListResponse = z318.object({
10545
+ var DTOFeatureArtifactListResponse = z319.object({
10511
10546
  artifacts: DTOFeatureArtifact.array()
10512
10547
  });
10513
- var DTOFeatureArtifactWithContentResponse = z318.object({
10548
+ var DTOFeatureArtifactWithContentResponse = z319.object({
10514
10549
  artifact: DTOFeatureArtifact,
10515
- content: z318.string()
10550
+ content: z319.string()
10516
10551
  });
10517
- var DTOFeatureIterationResponse = z318.object({
10552
+ var DTOFeatureIterationResponse = z319.object({
10518
10553
  iteration: DTOFeatureIteration
10519
10554
  });
10520
- var DTOFeatureIterationListResponse = z318.object({
10555
+ var DTOFeatureIterationListResponse = z319.object({
10521
10556
  iterations: DTOFeatureIteration.array()
10522
10557
  });
10523
- var DTOFeatureIterationValidateResponse = z318.discriminatedUnion("success", [
10524
- z318.object({ success: z318.literal(true) }),
10525
- z318.object({ success: z318.literal(false), error: DTOFeatureIterationError })
10558
+ var DTOFeatureIterationValidateResponse = z319.discriminatedUnion("success", [
10559
+ z319.object({ success: z319.literal(true) }),
10560
+ z319.object({ success: z319.literal(false), error: DTOFeatureIterationError })
10526
10561
  ]);
10527
- var DTOFeatureIterationTagResponse = z318.object({
10562
+ var DTOFeatureIterationTagResponse = z319.object({
10528
10563
  tag: DTOFeatureIterationTag
10529
10564
  });
10530
- var DTOFeatureIterationTagListResponse = z318.object({
10565
+ var DTOFeatureIterationTagListResponse = z319.object({
10531
10566
  tags: DTOFeatureIterationTag.array()
10532
10567
  });
10533
- var DTOFeatureEventMessagesSent = z318.object({
10534
- type: z318.literal("MessagesSent"),
10568
+ var DTOFeatureEventMessagesSent = z319.object({
10569
+ type: z319.literal("MessagesSent"),
10535
10570
  data: DTOFeatureMessage.array()
10536
10571
  });
10537
- var DTOFeatureEventReactionsSent = z318.object({
10538
- type: z318.literal("ReactionsSent"),
10572
+ var DTOFeatureEventReactionsSent = z319.object({
10573
+ type: z319.literal("ReactionsSent"),
10539
10574
  data: DTOFeatureMessageReaction.array()
10540
10575
  });
10541
- var DTOFeatureEventReactionsDeleted = z318.object({
10542
- type: z318.literal("ReactionsDeleted"),
10576
+ var DTOFeatureEventReactionsDeleted = z319.object({
10577
+ type: z319.literal("ReactionsDeleted"),
10543
10578
  data: DTOFeatureMessageReaction
10544
10579
  });
10545
- var DTOFeatureEvent = z318.discriminatedUnion("type", [
10580
+ var DTOFeatureEvent = z319.discriminatedUnion("type", [
10546
10581
  DTOFeatureEventMessagesSent,
10547
10582
  DTOFeatureEventReactionsSent,
10548
10583
  DTOFeatureEventReactionsDeleted
10549
10584
  ]);
10550
10585
 
10551
10586
  // src/api/dto/forge/feature-room.ts
10552
- import { z as z319 } from "zod";
10553
- var DTOForgeFeatureRoom = z319.object({
10554
- id: z319.string()
10587
+ import { z as z320 } from "zod";
10588
+ var DTOForgeFeatureRoom = z320.object({
10589
+ id: z320.string()
10555
10590
  });
10556
- var DTOForgeFeatureRoomResponse = z319.object({
10591
+ var DTOForgeFeatureRoomResponse = z320.object({
10557
10592
  room: DTOForgeFeatureRoom
10558
10593
  });
10559
10594
 
10560
10595
  // src/api/dto/forge/figma-node.ts
10561
- import z320 from "zod";
10562
- var DTOForgeFigmaNodeState = z320.enum(["Optimizing", "Success", "Failed"]);
10563
- var DTOForgeFigmaNodeOrigin = z320.object({
10596
+ import z321 from "zod";
10597
+ var DTOForgeFigmaNodeState = z321.enum(["Optimizing", "Success", "Failed"]);
10598
+ var DTOForgeFigmaNodeOrigin = z321.object({
10564
10599
  /**
10565
10600
  * Figma file ID that was passed into the create request as a part of the Figma node URL
10566
10601
  */
10567
- fileId: z320.string(),
10568
- fileName: z320.string(),
10602
+ fileId: z321.string(),
10603
+ fileName: z321.string(),
10569
10604
  /**
10570
10605
  * Timestamp of the last edit to the file, can be used for reusing nodes
10571
10606
  * if the file has not changed since
10572
10607
  */
10573
- fileLastEditedAt: z320.string(),
10608
+ fileLastEditedAt: z321.string(),
10574
10609
  /**
10575
10610
  * Figma node ID that was passed into the create request as a part of the Figma node URL
10576
10611
  */
10577
- nodeId: z320.string(),
10578
- nodeName: z320.string()
10612
+ nodeId: z321.string(),
10613
+ nodeName: z321.string()
10579
10614
  });
10580
- var DTOForgeFigmaNode = z320.object({
10581
- id: z320.string().uuid(),
10615
+ var DTOForgeFigmaNode = z321.object({
10616
+ id: z321.string().uuid(),
10582
10617
  state: DTOForgeFigmaNodeState,
10583
10618
  /**
10584
10619
  * Describes where the frame is coming from
@@ -10602,31 +10637,31 @@ var DTOForgeFigmaNode = z320.object({
10602
10637
  */
10603
10638
  code: DTOFileReference.optional()
10604
10639
  });
10605
- var DTOForgeFigmaNodeCreateRequest = z320.object({
10640
+ var DTOForgeFigmaNodeCreateRequest = z321.object({
10606
10641
  /**
10607
10642
  * Workspace ID that will own the node. Figma API keys will be used from this workspace.
10608
10643
  */
10609
- workspaceId: z320.string(),
10644
+ workspaceId: z321.string(),
10610
10645
  /**
10611
10646
  * URL that points to a Figma file and a node within the file.
10612
10647
  * Example: https://www.figma.com/design/If4RI8SKtO2azWx8ytfp03/Child-File?node-id=0-1
10613
10648
  *
10614
10649
  * Note that the file must contain `node-id` query param, otherwise the request will be rejected
10615
10650
  */
10616
- figmaNodeUrl: z320.string().url()
10651
+ figmaNodeUrl: z321.string().url()
10617
10652
  });
10618
- var DTOForgeFigmaNodeResponse = z320.object({
10653
+ var DTOForgeFigmaNodeResponse = z321.object({
10619
10654
  figmaNode: DTOForgeFigmaNode
10620
10655
  });
10621
- var DTOForgeFigmaNodeValidateResponse = z320.object({
10622
- isValid: z320.boolean()
10656
+ var DTOForgeFigmaNodeValidateResponse = z321.object({
10657
+ isValid: z321.boolean()
10623
10658
  });
10624
10659
 
10625
10660
  // src/api/dto/forge/iteration-message-old.ts
10626
- import { z as z322 } from "zod";
10661
+ import { z as z323 } from "zod";
10627
10662
 
10628
10663
  // src/api/dto/forge/participant.ts
10629
- import { z as z321 } from "zod";
10664
+ import { z as z322 } from "zod";
10630
10665
  var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
10631
10666
  agent: DTOForgeAgent.optional(),
10632
10667
  user: DTOUser.optional()
@@ -10636,20 +10671,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
10636
10671
  agent: true,
10637
10672
  user: true
10638
10673
  });
10639
- var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z321.string() });
10640
- var DTOCreateForgeParticipantResponse = z321.object({
10674
+ var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z322.string() });
10675
+ var DTOCreateForgeParticipantResponse = z322.object({
10641
10676
  participant: DTOForgeParticipant
10642
10677
  });
10643
- var DTOUpdateForgeParticipantResponse = z321.object({
10678
+ var DTOUpdateForgeParticipantResponse = z322.object({
10644
10679
  participant: DTOForgeParticipant.nullable()
10645
10680
  });
10646
- var DTODeleteForgeParticipantResponse = z321.object({
10647
- ok: z321.literal(true)
10681
+ var DTODeleteForgeParticipantResponse = z322.object({
10682
+ ok: z322.literal(true)
10648
10683
  });
10649
- var DTOForgeParticipantsListResponse = z321.object({
10650
- participants: z321.array(DTOForgeParticipant)
10684
+ var DTOForgeParticipantsListResponse = z322.object({
10685
+ participants: z322.array(DTOForgeParticipant)
10651
10686
  });
10652
- var DTOForgeParticipantGetResponse = z321.object({
10687
+ var DTOForgeParticipantGetResponse = z322.object({
10653
10688
  participant: DTOForgeParticipant.nullable()
10654
10689
  });
10655
10690
 
@@ -10661,121 +10696,121 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
10661
10696
  projectIterationId: true,
10662
10697
  participant: true
10663
10698
  });
10664
- var DTOGetForgeIterationMessageResponse = z322.object({
10699
+ var DTOGetForgeIterationMessageResponse = z323.object({
10665
10700
  message: DTOForgeIterationMessage.nullable()
10666
10701
  });
10667
- var DTOForgeIterationMessagesListResponse = z322.object({
10668
- messages: z322.array(DTOForgeIterationMessage)
10702
+ var DTOForgeIterationMessagesListResponse = z323.object({
10703
+ messages: z323.array(DTOForgeIterationMessage)
10669
10704
  });
10670
- var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z322.string() });
10671
- var DTOCreateForgeIterationMessageResponse = z322.object({
10705
+ var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z323.string() });
10706
+ var DTOCreateForgeIterationMessageResponse = z323.object({
10672
10707
  message: DTOForgeIterationMessage
10673
10708
  });
10674
- var DTOUpdateForgeIterationMessageResponse = z322.object({
10709
+ var DTOUpdateForgeIterationMessageResponse = z323.object({
10675
10710
  message: DTOForgeIterationMessage.nullable()
10676
10711
  });
10677
- var DTODeleteForgeIterationMessageResponse = z322.object({
10678
- ok: z322.literal(true)
10712
+ var DTODeleteForgeIterationMessageResponse = z323.object({
10713
+ ok: z323.literal(true)
10679
10714
  });
10680
10715
 
10681
10716
  // src/api/dto/forge/memory.ts
10682
- import z323 from "zod";
10683
- var DTOForgeMemoryEntry = z323.object({
10684
- id: z323.string().uuid(),
10685
- projectId: z323.string(),
10686
- text: z323.string(),
10687
- category: z323.string(),
10688
- createdAt: z323.string(),
10689
- updatedAt: z323.string(),
10690
- metadata: z323.record(z323.string()).optional()
10691
- });
10692
- var DTOForgeMemoryCreateInput = z323.object({
10693
- projectId: z323.string(),
10694
- text: z323.string(),
10695
- category: z323.string(),
10696
- metadata: z323.record(z323.string()).optional()
10697
- });
10698
- var DTOForgeMemoryUpdateInput = z323.object({
10699
- id: z323.string().uuid(),
10700
- text: z323.string().optional(),
10701
- category: z323.string(),
10702
- metadata: z323.record(z323.string()).nullish()
10703
- });
10704
- var DTOForgeMemoryDeleteInput = z323.object({
10705
- id: z323.string().uuid()
10706
- });
10707
- var DTOForgeMemoryEntryListResponse = z323.object({
10717
+ import z324 from "zod";
10718
+ var DTOForgeMemoryEntry = z324.object({
10719
+ id: z324.string().uuid(),
10720
+ projectId: z324.string(),
10721
+ text: z324.string(),
10722
+ category: z324.string(),
10723
+ createdAt: z324.string(),
10724
+ updatedAt: z324.string(),
10725
+ metadata: z324.record(z324.string()).optional()
10726
+ });
10727
+ var DTOForgeMemoryCreateInput = z324.object({
10728
+ projectId: z324.string(),
10729
+ text: z324.string(),
10730
+ category: z324.string(),
10731
+ metadata: z324.record(z324.string()).optional()
10732
+ });
10733
+ var DTOForgeMemoryUpdateInput = z324.object({
10734
+ id: z324.string().uuid(),
10735
+ text: z324.string().optional(),
10736
+ category: z324.string(),
10737
+ metadata: z324.record(z324.string()).nullish()
10738
+ });
10739
+ var DTOForgeMemoryDeleteInput = z324.object({
10740
+ id: z324.string().uuid()
10741
+ });
10742
+ var DTOForgeMemoryEntryListResponse = z324.object({
10708
10743
  memoryEntries: DTOForgeMemoryEntry.array()
10709
10744
  });
10710
- var DTOForgeMemoryEntryResponse = z323.object({
10745
+ var DTOForgeMemoryEntryResponse = z324.object({
10711
10746
  memoryEntry: DTOForgeMemoryEntry
10712
10747
  });
10713
- var DTOForgeMemoryEntryListQuery = z323.object({
10714
- projectId: z323.string()
10748
+ var DTOForgeMemoryEntryListQuery = z324.object({
10749
+ projectId: z324.string()
10715
10750
  });
10716
10751
 
10717
10752
  // src/api/dto/forge/project-action.ts
10718
- import z328 from "zod";
10753
+ import z329 from "zod";
10719
10754
 
10720
10755
  // src/api/dto/forge/project-artifact.ts
10721
- import { z as z326 } from "zod";
10756
+ import { z as z327 } from "zod";
10722
10757
 
10723
10758
  // src/api/dto/threads/threads.ts
10724
- import z324 from "zod";
10725
- var DTOThreadSubjectType = z324.enum(["ForgeDocument", "ForgeFeature"]);
10726
- var DTOThreadAgentType = z324.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10727
- var DTOThreadPromptState = z324.enum(["Success", "Timeout", "Error"]);
10728
- var DTOThread = z324.object({
10729
- id: z324.string(),
10730
- liveblocksRoomId: z324.string(),
10759
+ import z325 from "zod";
10760
+ var DTOThreadSubjectType = z325.enum(["ForgeDocument", "ForgeFeature"]);
10761
+ var DTOThreadAgentType = z325.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10762
+ var DTOThreadPromptState = z325.enum(["Success", "Timeout", "Error"]);
10763
+ var DTOThread = z325.object({
10764
+ id: z325.string(),
10765
+ liveblocksRoomId: z325.string(),
10731
10766
  defaultAgentType: DTOThreadAgentType,
10732
- subjectId: z324.string(),
10767
+ subjectId: z325.string(),
10733
10768
  subjectType: DTOThreadSubjectType,
10734
- createdAt: z324.string(),
10735
- updatedAt: z324.string()
10769
+ createdAt: z325.string(),
10770
+ updatedAt: z325.string()
10736
10771
  });
10737
- var DTOThreadMessageUserSender = z324.object({
10738
- type: z324.literal("User"),
10739
- userId: z324.string()
10772
+ var DTOThreadMessageUserSender = z325.object({
10773
+ type: z325.literal("User"),
10774
+ userId: z325.string()
10740
10775
  });
10741
- var DTOThreadMessageAgentSender = z324.object({
10742
- type: z324.literal("Agent"),
10776
+ var DTOThreadMessageAgentSender = z325.object({
10777
+ type: z325.literal("Agent"),
10743
10778
  agentType: DTOThreadAgentType
10744
10779
  });
10745
- var DTOThreadMessageSystemSender = z324.object({
10746
- type: z324.literal("System"),
10747
- onBehalfOfUserId: z324.string()
10780
+ var DTOThreadMessageSystemSender = z325.object({
10781
+ type: z325.literal("System"),
10782
+ onBehalfOfUserId: z325.string()
10748
10783
  });
10749
- var DTOThreadMessageSender = z324.discriminatedUnion("type", [
10784
+ var DTOThreadMessageSender = z325.discriminatedUnion("type", [
10750
10785
  DTOThreadMessageUserSender,
10751
10786
  DTOThreadMessageAgentSender,
10752
10787
  DTOThreadMessageSystemSender
10753
10788
  ]);
10754
- var DTOThreadReaction = z324.object({
10789
+ var DTOThreadReaction = z325.object({
10755
10790
  messageId: Id,
10756
- userId: z324.string(),
10757
- emoji: z324.string(),
10758
- createdAt: z324.string()
10791
+ userId: z325.string(),
10792
+ emoji: z325.string(),
10793
+ createdAt: z325.string()
10759
10794
  });
10760
- var DTOThreadMessageAttachments = z324.object({
10795
+ var DTOThreadMessageAttachments = z325.object({
10761
10796
  iterationId: Id.optional(),
10762
10797
  files: DTOFileReference.array().optional(),
10763
- templateId: z324.string().optional(),
10798
+ templateId: z325.string().optional(),
10764
10799
  figmaNodes: DTOForgeFigmaNode.array().optional()
10765
10800
  });
10766
- var DTOThreadMessageAnnotation = z324.object({
10767
- prompt: z324.string(),
10768
- elements: z324.array(
10769
- z324.object({
10770
- xpath: z324.string(),
10771
- line: z324.string()
10801
+ var DTOThreadMessageAnnotation = z325.object({
10802
+ prompt: z325.string(),
10803
+ elements: z325.array(
10804
+ z325.object({
10805
+ xpath: z325.string(),
10806
+ line: z325.string()
10772
10807
  })
10773
10808
  )
10774
10809
  });
10775
- var DTOThreadMessageAnnotations = z324.array(DTOThreadMessageAnnotation);
10776
- var DTOThreadMessage = z324.object({
10810
+ var DTOThreadMessageAnnotations = z325.array(DTOThreadMessageAnnotation);
10811
+ var DTOThreadMessage = z325.object({
10777
10812
  id: Id,
10778
- threadId: z324.string(),
10813
+ threadId: z325.string(),
10779
10814
  /**
10780
10815
  * Describes where the message came from
10781
10816
  */
@@ -10783,20 +10818,20 @@ var DTOThreadMessage = z324.object({
10783
10818
  /**
10784
10819
  * Content of the message
10785
10820
  */
10786
- body: z324.string(),
10821
+ body: z325.string(),
10787
10822
  /**
10788
10823
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
10789
10824
  * AI agent to generate a response and perform an action within the feature
10790
10825
  */
10791
- isPrompt: z324.boolean().optional(),
10826
+ isPrompt: z325.boolean().optional(),
10792
10827
  /**
10793
10828
  * Indicates if the message is an attempt to retry agent message. Only available for agent messages.
10794
10829
  */
10795
- isRetry: z324.boolean().optional(),
10830
+ isRetry: z325.boolean().optional(),
10796
10831
  /**
10797
10832
  * Indicates if the sender requested agent to reply in a thread
10798
10833
  */
10799
- startsNewThread: z324.boolean().optional(),
10834
+ startsNewThread: z325.boolean().optional(),
10800
10835
  /**
10801
10836
  * If defined, this message is considered to be a reply in a thread under parent message id
10802
10837
  */
@@ -10811,19 +10846,19 @@ var DTOThreadMessage = z324.object({
10811
10846
  * If defined, this message is considered to be a reply to different message
10812
10847
  */
10813
10848
  replyToMessageId: Id.optional(),
10814
- promptMetadata: z324.record(z324.string(), z324.any()).optional(),
10815
- createdAt: z324.string(),
10816
- updatedAt: z324.string().optional()
10849
+ promptMetadata: z325.record(z325.string(), z325.any()).optional(),
10850
+ createdAt: z325.string(),
10851
+ updatedAt: z325.string().optional()
10817
10852
  });
10818
- var DTOThreadAgentResponseTracker = z324.object({
10853
+ var DTOThreadAgentResponseTracker = z325.object({
10819
10854
  id: Id,
10820
- currentBody: z324.string().default("")
10855
+ currentBody: z325.string().default("")
10821
10856
  });
10822
- var DTOThreadMessageAttachmentsCreateInput = z324.object({
10857
+ var DTOThreadMessageAttachmentsCreateInput = z325.object({
10823
10858
  iterationId: Id.optional(),
10824
- fileIds: z324.string().array().optional(),
10825
- figmaNodeIds: z324.string().array().optional(),
10826
- templateId: z324.string().optional()
10859
+ fileIds: z325.string().array().optional(),
10860
+ figmaNodeIds: z325.string().array().optional(),
10861
+ templateId: z325.string().optional()
10827
10862
  });
10828
10863
  var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10829
10864
  id: true,
@@ -10836,67 +10871,67 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10836
10871
  }).extend({
10837
10872
  attachments: DTOThreadMessageAttachmentsCreateInput.optional()
10838
10873
  });
10839
- var DTOThreadMessageFinalizeInput = z324.object({
10874
+ var DTOThreadMessageFinalizeInput = z325.object({
10840
10875
  messageId: Id,
10841
- agentMessageBody: z324.string().optional(),
10876
+ agentMessageBody: z325.string().optional(),
10842
10877
  promptState: DTOThreadPromptState.optional(),
10843
10878
  creditsSpend: DTOBillingCreditsSpendInput.optional()
10844
10879
  });
10845
- var DTOThreadMessageRetryInput = z324.object({
10880
+ var DTOThreadMessageRetryInput = z325.object({
10846
10881
  agentMessageId: Id,
10847
- runtimeError: z324.string().optional(),
10882
+ runtimeError: z325.string().optional(),
10848
10883
  /**
10849
10884
  * When `true`, the retry message will be sent to a thread started by the user's message
10850
10885
  * Useful when user retries a message created in the main thread, but expects the retry to be sent as a thread reply
10851
10886
  */
10852
- shouldReplyInThread: z324.boolean().optional(),
10887
+ shouldReplyInThread: z325.boolean().optional(),
10853
10888
  message: DTOThreadMessage.pick({ id: true, body: true }).optional()
10854
10889
  });
10855
10890
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10856
10891
  id: true
10857
10892
  }).merge(
10858
- z324.object({
10893
+ z325.object({
10859
10894
  body: DTOThreadMessage.shape.body,
10860
10895
  attachments: DTOThreadMessage.shape.attachments,
10861
10896
  agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
10862
10897
  }).partial()
10863
10898
  );
10864
- var DTOThreadReactionCreateInput = z324.object({
10899
+ var DTOThreadReactionCreateInput = z325.object({
10865
10900
  messageId: Id,
10866
- emoji: z324.string()
10901
+ emoji: z325.string()
10867
10902
  });
10868
- var DTOThreadReactionDeleteInput = z324.object({
10903
+ var DTOThreadReactionDeleteInput = z325.object({
10869
10904
  messageId: Id,
10870
- emoji: z324.string()
10905
+ emoji: z325.string()
10871
10906
  });
10872
- var DTOThreadMessageResponse = z324.object({
10907
+ var DTOThreadMessageResponse = z325.object({
10873
10908
  message: DTOThreadMessage
10874
10909
  });
10875
- var DTOThreadReactionResponse = z324.object({
10910
+ var DTOThreadReactionResponse = z325.object({
10876
10911
  reaction: DTOThreadReaction
10877
10912
  });
10878
- var DTOThreadMessageListResponse = z324.object({
10913
+ var DTOThreadMessageListResponse = z325.object({
10879
10914
  messages: DTOThreadMessage.array(),
10880
10915
  reactions: DTOThreadReaction.array(),
10881
- lastSeenMessageId: z324.string().optional()
10916
+ lastSeenMessageId: z325.string().optional()
10882
10917
  });
10883
- var DTOThreadEventMessagesSent = z324.object({
10884
- type: z324.literal("MessagesSent"),
10918
+ var DTOThreadEventMessagesSent = z325.object({
10919
+ type: z325.literal("MessagesSent"),
10885
10920
  data: DTOThreadMessage.array()
10886
10921
  });
10887
- var DTOThreadEventMessagesUpdated = z324.object({
10888
- type: z324.literal("MessagesUpdated"),
10922
+ var DTOThreadEventMessagesUpdated = z325.object({
10923
+ type: z325.literal("MessagesUpdated"),
10889
10924
  data: DTOThreadMessage.array()
10890
10925
  });
10891
- var DTOThreadEventReactionsSent = z324.object({
10892
- type: z324.literal("ReactionsSent"),
10926
+ var DTOThreadEventReactionsSent = z325.object({
10927
+ type: z325.literal("ReactionsSent"),
10893
10928
  data: DTOThreadReaction.array()
10894
10929
  });
10895
- var DTOThreadEventReactionsDeleted = z324.object({
10896
- type: z324.literal("ReactionsDeleted"),
10930
+ var DTOThreadEventReactionsDeleted = z325.object({
10931
+ type: z325.literal("ReactionsDeleted"),
10897
10932
  data: DTOThreadReaction.array()
10898
10933
  });
10899
- var DTOThreadEvent = z324.discriminatedUnion("type", [
10934
+ var DTOThreadEvent = z325.discriminatedUnion("type", [
10900
10935
  DTOThreadEventMessagesSent,
10901
10936
  DTOThreadEventMessagesUpdated,
10902
10937
  DTOThreadEventReactionsSent,
@@ -10904,8 +10939,8 @@ var DTOThreadEvent = z324.discriminatedUnion("type", [
10904
10939
  ]);
10905
10940
 
10906
10941
  // src/api/dto/forge/project-section.ts
10907
- import z325 from "zod";
10908
- var AfterSectionId = z325.string().uuid().nullish().optional();
10942
+ import z326 from "zod";
10943
+ var AfterSectionId = z326.string().uuid().nullish().optional();
10909
10944
  var DTOForgeSection = ForgeSection;
10910
10945
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
10911
10946
  id: true,
@@ -10916,12 +10951,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
10916
10951
  });
10917
10952
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
10918
10953
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
10919
- deleteChildren: z325.boolean().default(false)
10954
+ deleteChildren: z326.boolean().default(false)
10920
10955
  });
10921
10956
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
10922
10957
  afterSectionId: AfterSectionId
10923
10958
  });
10924
- var DTOForgeSectionItemMoveInput = z325.object({
10959
+ var DTOForgeSectionItemMoveInput = z326.object({
10925
10960
  id: Id,
10926
10961
  sectionId: Id.nullish().optional(),
10927
10962
  // undefined=stay, null=no section, string=move to section
@@ -10931,160 +10966,160 @@ var DTOForgeSectionItemMoveInput = z325.object({
10931
10966
 
10932
10967
  // src/api/dto/forge/project-artifact.ts
10933
10968
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
10934
- var DTOForgeProjectArtifactUpdateInput = z326.object({
10935
- id: z326.string(),
10936
- title: z326.string().optional(),
10937
- isArchived: z326.boolean().optional()
10938
- });
10939
- var DTOForgeProjectArtifactCreateInput = z326.object({
10940
- id: z326.string(),
10941
- title: z326.string(),
10942
- sectionId: z326.string().optional(),
10943
- afterArtifactId: z326.string().optional().nullable(),
10969
+ var DTOForgeProjectArtifactUpdateInput = z327.object({
10970
+ id: z327.string(),
10971
+ title: z327.string().optional(),
10972
+ isArchived: z327.boolean().optional()
10973
+ });
10974
+ var DTOForgeProjectArtifactCreateInput = z327.object({
10975
+ id: z327.string(),
10976
+ title: z327.string(),
10977
+ sectionId: z327.string().optional(),
10978
+ afterArtifactId: z327.string().optional().nullable(),
10944
10979
  initialMessage: DTOThreadMessageCreateInput.optional()
10945
10980
  });
10946
- var DTOForgeProjectArtifactDeleteInput = z326.object({
10981
+ var DTOForgeProjectArtifactDeleteInput = z327.object({
10947
10982
  id: Id
10948
10983
  });
10949
10984
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
10950
- var DTOForgeDocumentGetByIdParam = z326.object({
10985
+ var DTOForgeDocumentGetByIdParam = z327.object({
10951
10986
  id: Id
10952
10987
  });
10953
- var DTOForgeProjectArtifactGetResponse = z326.object({
10988
+ var DTOForgeProjectArtifactGetResponse = z327.object({
10954
10989
  artifact: DTOForgeProjectArtifact
10955
10990
  });
10956
- var DTOForgeDocumentGetResponse = z326.object({
10991
+ var DTOForgeDocumentGetResponse = z327.object({
10957
10992
  document: DTOForgeProjectArtifact
10958
10993
  });
10959
- var DTOForgeProjectArtifactCreateResponse = z326.object({
10994
+ var DTOForgeProjectArtifactCreateResponse = z327.object({
10960
10995
  artifact: DTOForgeProjectArtifact
10961
10996
  });
10962
- var DTOForgeProjectArtifactUpdateResponse = z326.object({
10997
+ var DTOForgeProjectArtifactUpdateResponse = z327.object({
10963
10998
  artifact: DTOForgeProjectArtifact
10964
10999
  });
10965
- var DTOForgeProjectArtifactDeleteResponse = z326.object({
10966
- ok: z326.literal(true)
11000
+ var DTOForgeProjectArtifactDeleteResponse = z327.object({
11001
+ ok: z327.literal(true)
10967
11002
  });
10968
- var DTOForgeProjectArtifactMoveResponse = z326.object({
11003
+ var DTOForgeProjectArtifactMoveResponse = z327.object({
10969
11004
  artifact: DTOForgeProjectArtifact
10970
11005
  });
10971
- var DTOForgeProjectArtifactsListResponse = z326.object({
10972
- artifacts: z326.array(DTOForgeProjectArtifact)
11006
+ var DTOForgeProjectArtifactsListResponse = z327.object({
11007
+ artifacts: z327.array(DTOForgeProjectArtifact)
10973
11008
  });
10974
- var DTOForgeProjectArtifactContentResponse = z326.object({
10975
- artifactId: z326.string(),
11009
+ var DTOForgeProjectArtifactContentResponse = z327.object({
11010
+ artifactId: z327.string(),
10976
11011
  content: ForgeProjectArtifactContentData
10977
11012
  });
10978
11013
 
10979
11014
  // src/api/dto/forge/project-feature.ts
10980
- import z327 from "zod";
11015
+ import z328 from "zod";
10981
11016
  var DTOFeaturePublishedStateUpdateInput = FeaturePublishedState.pick({
10982
11017
  iterationId: true,
10983
11018
  hideSupernovaUI: true,
10984
11019
  visibility: true
10985
11020
  });
10986
11021
  var DTOForgeProjectFeature = ProjectFeature;
10987
- var DTOForgeProjectPublishedFeature = z327.object({
10988
- featureName: z327.string(),
10989
- iterationName: z327.string(),
10990
- hideSupernovaUI: z327.boolean(),
10991
- thumbnailUrl: z327.string().optional(),
10992
- staticPreviewUrl: z327.string().optional(),
11022
+ var DTOForgeProjectPublishedFeature = z328.object({
11023
+ featureName: z328.string(),
11024
+ iterationName: z328.string(),
11025
+ hideSupernovaUI: z328.boolean(),
11026
+ thumbnailUrl: z328.string().optional(),
11027
+ staticPreviewUrl: z328.string().optional(),
10993
11028
  // These are only included when authenticated user has access to the project (for both public & private published features)
10994
- projectId: z327.string().optional(),
10995
- projectName: z327.string().optional(),
10996
- workspaceId: z327.string().optional()
11029
+ projectId: z328.string().optional(),
11030
+ projectName: z328.string().optional(),
11031
+ workspaceId: z328.string().optional()
10997
11032
  });
10998
- var DTOForgeProjectPublishedFeatureGetResponse = z327.object({
11033
+ var DTOForgeProjectPublishedFeatureGetResponse = z328.object({
10999
11034
  publishedFeature: DTOForgeProjectPublishedFeature
11000
11035
  });
11001
- var DTOForgeProjectFeatureListResponse = z327.object({
11036
+ var DTOForgeProjectFeatureListResponse = z328.object({
11002
11037
  features: DTOForgeProjectFeature.array()
11003
11038
  });
11004
- var DTOForgeProjectFeatureGetResponse = z327.object({
11039
+ var DTOForgeProjectFeatureGetResponse = z328.object({
11005
11040
  feature: DTOForgeProjectFeature
11006
11041
  });
11007
- var DTOForgeProjectFeatureCreateInput = z327.object({
11042
+ var DTOForgeProjectFeatureCreateInput = z328.object({
11008
11043
  id: Id,
11009
- name: z327.string().optional(),
11010
- description: z327.string(),
11044
+ name: z328.string().optional(),
11045
+ description: z328.string(),
11011
11046
  sectionId: Id.optional(),
11012
11047
  afterFeatureId: Id.nullable().optional(),
11013
11048
  initialMessage: DTOThreadMessageCreateInput
11014
11049
  });
11015
- var DTOForgeProjectFeatureUpdateInput = z327.object({
11050
+ var DTOForgeProjectFeatureUpdateInput = z328.object({
11016
11051
  id: Id,
11017
- name: z327.string().optional(),
11018
- description: z327.string().optional(),
11019
- isArchived: z327.boolean().optional(),
11052
+ name: z328.string().optional(),
11053
+ description: z328.string().optional(),
11054
+ isArchived: z328.boolean().optional(),
11020
11055
  status: ProjectFeatureStatus.optional(),
11021
11056
  /**
11022
11057
  * Sending null will result in feature unpublish
11023
11058
  */
11024
11059
  publishedState: DTOFeaturePublishedStateUpdateInput.nullish()
11025
11060
  });
11026
- var DTOForgeProjectFeatureDeleteInput = z327.object({
11061
+ var DTOForgeProjectFeatureDeleteInput = z328.object({
11027
11062
  id: Id
11028
11063
  });
11029
- var DTOForgeProjectFeatureGetByIdParam = z327.object({
11064
+ var DTOForgeProjectFeatureGetByIdParam = z328.object({
11030
11065
  id: Id
11031
11066
  });
11032
- var DTOFeatureArtifactListQuery = z327.object({
11033
- messageId: z327.string().optional(),
11034
- iterationId: z327.string().optional()
11067
+ var DTOFeatureArtifactListQuery = z328.object({
11068
+ messageId: z328.string().optional(),
11069
+ iterationId: z328.string().optional()
11035
11070
  });
11036
11071
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
11037
11072
 
11038
11073
  // src/api/dto/forge/project-action.ts
11039
- var DTOForgeProjectActionFeatureCreate = z328.object({
11040
- type: z328.literal("FeatureCreate"),
11074
+ var DTOForgeProjectActionFeatureCreate = z329.object({
11075
+ type: z329.literal("FeatureCreate"),
11041
11076
  input: DTOForgeProjectFeatureCreateInput
11042
11077
  });
11043
- var DTOForgeProjectActionFeatureUpdate = z328.object({
11044
- type: z328.literal("FeatureUpdate"),
11078
+ var DTOForgeProjectActionFeatureUpdate = z329.object({
11079
+ type: z329.literal("FeatureUpdate"),
11045
11080
  input: DTOForgeProjectFeatureUpdateInput
11046
11081
  });
11047
- var DTOForgeProjectActionFeatureMove = z328.object({
11048
- type: z328.literal("FeatureMove"),
11082
+ var DTOForgeProjectActionFeatureMove = z329.object({
11083
+ type: z329.literal("FeatureMove"),
11049
11084
  input: DTOForgeProjectFeatureMoveInput
11050
11085
  });
11051
- var DTOForgeProjectActionFeatureDelete = z328.object({
11052
- type: z328.literal("FeatureDelete"),
11086
+ var DTOForgeProjectActionFeatureDelete = z329.object({
11087
+ type: z329.literal("FeatureDelete"),
11053
11088
  input: DTOForgeProjectFeatureDeleteInput
11054
11089
  });
11055
- var DTOForgeProjectActionArtifactCreate = z328.object({
11056
- type: z328.literal("ArtifactCreate"),
11090
+ var DTOForgeProjectActionArtifactCreate = z329.object({
11091
+ type: z329.literal("ArtifactCreate"),
11057
11092
  input: DTOForgeProjectArtifactCreateInput
11058
11093
  });
11059
- var DTOForgeProjectActionArtifactUpdate = z328.object({
11060
- type: z328.literal("ArtifactUpdate"),
11094
+ var DTOForgeProjectActionArtifactUpdate = z329.object({
11095
+ type: z329.literal("ArtifactUpdate"),
11061
11096
  input: DTOForgeProjectArtifactUpdateInput
11062
11097
  });
11063
- var DTOForgeProjectActionArtifactDelete = z328.object({
11064
- type: z328.literal("ArtifactDelete"),
11098
+ var DTOForgeProjectActionArtifactDelete = z329.object({
11099
+ type: z329.literal("ArtifactDelete"),
11065
11100
  input: DTOForgeProjectArtifactDeleteInput
11066
11101
  });
11067
- var DTOForgeProjectActionArtifactMove = z328.object({
11068
- type: z328.literal("ArtifactMove"),
11102
+ var DTOForgeProjectActionArtifactMove = z329.object({
11103
+ type: z329.literal("ArtifactMove"),
11069
11104
  input: DTOForgeProjectArtifactMoveInput
11070
11105
  });
11071
- var DTOForgeProjectActionSectionCreate = z328.object({
11072
- type: z328.literal("SectionCreate"),
11106
+ var DTOForgeProjectActionSectionCreate = z329.object({
11107
+ type: z329.literal("SectionCreate"),
11073
11108
  input: DTOForgeSectionCreateInput
11074
11109
  });
11075
- var DTOForgeProjectActionSectionUpdate = z328.object({
11076
- type: z328.literal("SectionUpdate"),
11110
+ var DTOForgeProjectActionSectionUpdate = z329.object({
11111
+ type: z329.literal("SectionUpdate"),
11077
11112
  input: DTOForgeSectionUpdateInput
11078
11113
  });
11079
- var DTOForgeProjectActionSectionDelete = z328.object({
11080
- type: z328.literal("SectionDelete"),
11114
+ var DTOForgeProjectActionSectionDelete = z329.object({
11115
+ type: z329.literal("SectionDelete"),
11081
11116
  input: DTOForgeSectionDeleteInput
11082
11117
  });
11083
- var DTOForgeProjectActionSectionMove = z328.object({
11084
- type: z328.literal("SectionMove"),
11118
+ var DTOForgeProjectActionSectionMove = z329.object({
11119
+ type: z329.literal("SectionMove"),
11085
11120
  input: DTOForgeSectionMoveInput
11086
11121
  });
11087
- var DTOForgeProjectAction = z328.discriminatedUnion("type", [
11122
+ var DTOForgeProjectAction = z329.discriminatedUnion("type", [
11088
11123
  //features
11089
11124
  DTOForgeProjectActionFeatureCreate,
11090
11125
  DTOForgeProjectActionFeatureUpdate,
@@ -11101,41 +11136,41 @@ var DTOForgeProjectAction = z328.discriminatedUnion("type", [
11101
11136
  DTOForgeProjectActionSectionDelete,
11102
11137
  DTOForgeProjectActionSectionMove
11103
11138
  ]).and(
11104
- z328.object({
11105
- tId: z328.string().optional()
11139
+ z329.object({
11140
+ tId: z329.string().optional()
11106
11141
  })
11107
11142
  );
11108
11143
 
11109
11144
  // src/api/dto/forge/project-artifact-room.ts
11110
- import { z as z329 } from "zod";
11111
- var DTOForgeProjectArtifactRoom = z329.object({
11112
- id: z329.string()
11145
+ import { z as z330 } from "zod";
11146
+ var DTOForgeProjectArtifactRoom = z330.object({
11147
+ id: z330.string()
11113
11148
  });
11114
- var DTOForgeProjectArtifactRoomResponse = z329.object({
11149
+ var DTOForgeProjectArtifactRoomResponse = z330.object({
11115
11150
  room: DTOForgeProjectArtifactRoom
11116
11151
  });
11117
11152
 
11118
11153
  // src/api/dto/forge/project-context-override.ts
11119
- import z331 from "zod";
11154
+ import z332 from "zod";
11120
11155
 
11121
11156
  // src/api/dto/forge/project-context-v2.ts
11122
- import { z as z330 } from "zod";
11123
- var DTOForgeComponentSetTypeV2 = z330.enum(["Shadcn"]);
11124
- var DTOForgeComponentSet = z330.object({
11157
+ import { z as z331 } from "zod";
11158
+ var DTOForgeComponentSetTypeV2 = z331.enum(["Shadcn"]);
11159
+ var DTOForgeComponentSet = z331.object({
11125
11160
  type: DTOForgeComponentSetTypeV2
11126
11161
  });
11127
- var DTOForgeIconSetTypeV2 = z330.enum(["Phosphor", "Lucide", "Tabler"]);
11128
- var DTOForgeThemeKnownPreset = z330.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
11129
- var DTOForgeIconSet = z330.object({
11162
+ var DTOForgeIconSetTypeV2 = z331.enum(["Phosphor", "Lucide", "Tabler"]);
11163
+ var DTOForgeThemeKnownPreset = z331.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
11164
+ var DTOForgeIconSet = z331.object({
11130
11165
  type: DTOForgeIconSetTypeV2,
11131
- variant: z330.string().optional()
11166
+ variant: z331.string().optional()
11132
11167
  });
11133
- var DTOForgeTokenThemeSet = z330.object({
11134
- id: z330.string(),
11135
- name: z330.string(),
11136
- tokenThemeIds: z330.array(z330.string())
11168
+ var DTOForgeTokenThemeSet = z331.object({
11169
+ id: z331.string(),
11170
+ name: z331.string(),
11171
+ tokenThemeIds: z331.array(z331.string())
11137
11172
  });
11138
- var DTOForgeProjectTheme = z330.object({
11173
+ var DTOForgeProjectTheme = z331.object({
11139
11174
  // Colors
11140
11175
  background: ColorTokenData,
11141
11176
  foreground: ColorTokenData,
@@ -11220,28 +11255,28 @@ var DTOForgeProjectTheme = z330.object({
11220
11255
  shadowXl: ShadowTokenData,
11221
11256
  shadow2xl: ShadowTokenData
11222
11257
  });
11223
- var DTOForgeProjectContextV2 = z330.object({
11224
- id: z330.string(),
11225
- name: z330.string(),
11226
- workspaceId: z330.string(),
11227
- designSystemId: z330.string().optional(),
11228
- brandId: z330.string().optional(),
11229
- defaultTokenThemeSetId: z330.string().optional(),
11230
- description: z330.string().optional(),
11231
- productContext: z330.string().optional(),
11232
- additionalContext: z330.string().optional(),
11233
- isArchived: z330.boolean(),
11234
- themePreset: z330.string().optional(),
11235
- tokenThemeSets: z330.array(DTOForgeTokenThemeSet).optional(),
11258
+ var DTOForgeProjectContextV2 = z331.object({
11259
+ id: z331.string(),
11260
+ name: z331.string(),
11261
+ workspaceId: z331.string(),
11262
+ designSystemId: z331.string().optional(),
11263
+ brandId: z331.string().optional(),
11264
+ defaultTokenThemeSetId: z331.string().optional(),
11265
+ description: z331.string().optional(),
11266
+ productContext: z331.string().optional(),
11267
+ additionalContext: z331.string().optional(),
11268
+ isArchived: z331.boolean(),
11269
+ themePreset: z331.string().optional(),
11270
+ tokenThemeSets: z331.array(DTOForgeTokenThemeSet).optional(),
11236
11271
  componentSet: DTOForgeComponentSet,
11237
11272
  iconSet: DTOForgeIconSet,
11238
11273
  theme: DTOForgeProjectTheme,
11239
- createdAt: z330.coerce.date(),
11240
- updatedAt: z330.coerce.date(),
11274
+ createdAt: z331.coerce.date(),
11275
+ updatedAt: z331.coerce.date(),
11241
11276
  thumbnail: DTOFileReference.optional(),
11242
- sandboxTemplate: z330.object({
11243
- id: z330.string(),
11244
- version: z330.string()
11277
+ sandboxTemplate: z331.object({
11278
+ id: z331.string(),
11279
+ version: z331.string()
11245
11280
  }).optional()
11246
11281
  });
11247
11282
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
@@ -11251,7 +11286,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
11251
11286
  isArchived: true,
11252
11287
  thumbnail: true
11253
11288
  }).extend({
11254
- thumbnailFileId: z330.string().optional()
11289
+ thumbnailFileId: z331.string().optional()
11255
11290
  });
11256
11291
  var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
11257
11292
  id: true,
@@ -11260,60 +11295,60 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
11260
11295
  updatedAt: true,
11261
11296
  thumbnail: true
11262
11297
  }).partial().extend({
11263
- thumbnailFileId: z330.string().nullish()
11298
+ thumbnailFileId: z331.string().nullish()
11264
11299
  });
11265
- var DTOForgeProjectContextResponseV2 = z330.object({ context: DTOForgeProjectContextV2 });
11266
- var DTOForgeProjectContextListQueryV2 = z330.object({
11267
- workspaceId: z330.string(),
11300
+ var DTOForgeProjectContextResponseV2 = z331.object({ context: DTOForgeProjectContextV2 });
11301
+ var DTOForgeProjectContextListQueryV2 = z331.object({
11302
+ workspaceId: z331.string(),
11268
11303
  isArchived: zodQueryBoolean()
11269
11304
  });
11270
- var DTOForgeProjectContextListResponseV2 = z330.object({ contexts: z330.array(DTOForgeProjectContextV2) });
11305
+ var DTOForgeProjectContextListResponseV2 = z331.object({ contexts: z331.array(DTOForgeProjectContextV2) });
11271
11306
 
11272
11307
  // src/api/dto/forge/project-context-override.ts
11273
- var DTOProjectContextOverride = z331.object({
11274
- projectId: z331.string(),
11308
+ var DTOProjectContextOverride = z332.object({
11309
+ projectId: z332.string(),
11275
11310
  theme: DTOForgeProjectTheme.partial(),
11276
- themePreset: z331.string().optional()
11311
+ themePreset: z332.string().optional()
11277
11312
  });
11278
- var DTOProjectContextOverrideInput = z331.object({
11279
- updateSharedContext: z331.boolean().optional(),
11313
+ var DTOProjectContextOverrideInput = z332.object({
11314
+ updateSharedContext: z332.boolean().optional(),
11280
11315
  theme: DTOForgeProjectTheme.partial(),
11281
- themePreset: z331.string().optional()
11316
+ themePreset: z332.string().optional()
11282
11317
  });
11283
- var DTOProjectContextOverrideResponse = z331.object({
11318
+ var DTOProjectContextOverrideResponse = z332.object({
11284
11319
  override: DTOProjectContextOverride,
11285
11320
  originalContext: DTOForgeProjectContextV2,
11286
11321
  resolvedContext: DTOForgeProjectContextV2
11287
11322
  });
11288
11323
 
11289
11324
  // src/api/dto/forge/project-context.ts
11290
- import { z as z332 } from "zod";
11291
- var DTOForgeProjectContext = z332.object({
11292
- definition: z332.string(),
11293
- dependencies: z332.array(
11294
- z332.object({
11295
- packageName: z332.string(),
11296
- type: z332.literal("npm"),
11297
- version: z332.string().default("latest")
11325
+ import { z as z333 } from "zod";
11326
+ var DTOForgeProjectContext = z333.object({
11327
+ definition: z333.string(),
11328
+ dependencies: z333.array(
11329
+ z333.object({
11330
+ packageName: z333.string(),
11331
+ type: z333.literal("npm"),
11332
+ version: z333.string().default("latest")
11298
11333
  })
11299
11334
  ),
11300
- designSystemId: z332.string(),
11301
- id: z332.string(),
11302
- meta: z332.object({
11303
- name: z332.string(),
11304
- description: z332.string().optional()
11335
+ designSystemId: z333.string(),
11336
+ id: z333.string(),
11337
+ meta: z333.object({
11338
+ name: z333.string(),
11339
+ description: z333.string().optional()
11305
11340
  }),
11306
- name: z332.string(),
11341
+ name: z333.string(),
11307
11342
  npmProxySettings: DTONpmRegistryConfig.optional(),
11308
- platform: z332.enum(["React", "Vue", "Angular"]),
11309
- styling: z332.enum(["CSS", "Tailwind"]),
11310
- tailwindConfig: z332.object({
11311
- content: z332.string(),
11312
- version: z332.string()
11343
+ platform: z333.enum(["React", "Vue", "Angular"]),
11344
+ styling: z333.enum(["CSS", "Tailwind"]),
11345
+ tailwindConfig: z333.object({
11346
+ content: z333.string(),
11347
+ version: z333.string()
11313
11348
  }).optional(),
11314
- createdAt: z332.coerce.date(),
11315
- updatedAt: z332.coerce.date(),
11316
- workspaceId: z332.string()
11349
+ createdAt: z333.coerce.date(),
11350
+ updatedAt: z333.coerce.date(),
11351
+ workspaceId: z333.string()
11317
11352
  });
11318
11353
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
11319
11354
  definition: true,
@@ -11325,13 +11360,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
11325
11360
  tailwindConfig: true,
11326
11361
  styling: true
11327
11362
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
11328
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z332.string() });
11329
- var DTOForgeProjectContextGetResponse = z332.object({ context: DTOForgeProjectContext });
11330
- var DTOForgeProjectContextListResponse = z332.object({ contexts: z332.array(DTOForgeProjectContext) });
11331
- var DTOForgeProjectContextCreateResponse = z332.object({ context: DTOForgeProjectContext });
11332
- var DTOForgeProjectContextUpdateResponse = z332.object({ context: DTOForgeProjectContext });
11333
- var DTOForgeProjectContextRemoveResponse = z332.object({
11334
- ok: z332.literal(true)
11363
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z333.string() });
11364
+ var DTOForgeProjectContextGetResponse = z333.object({ context: DTOForgeProjectContext });
11365
+ var DTOForgeProjectContextListResponse = z333.object({ contexts: z333.array(DTOForgeProjectContext) });
11366
+ var DTOForgeProjectContextCreateResponse = z333.object({ context: DTOForgeProjectContext });
11367
+ var DTOForgeProjectContextUpdateResponse = z333.object({ context: DTOForgeProjectContext });
11368
+ var DTOForgeProjectContextRemoveResponse = z333.object({
11369
+ ok: z333.literal(true)
11335
11370
  });
11336
11371
 
11337
11372
  // src/api/dto/forge/project-figma-node.ts
@@ -11339,42 +11374,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
11339
11374
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
11340
11375
 
11341
11376
  // src/api/dto/forge/project-file.ts
11342
- import { z as z333 } from "zod";
11343
- var DTOForgeProjectFile = z333.object({
11344
- id: z333.string(),
11345
- name: z333.string(),
11346
- checksum: z333.string(),
11347
- pendingUpload: z333.boolean().optional(),
11348
- url: z333.string(),
11349
- size: z333.number()
11350
- });
11351
- var DTOForgeProjectFileListResponse = z333.object({
11352
- files: z333.array(DTOForgeProjectFile)
11353
- });
11354
- var DTOForgeProjectFileUploadPayloadItem = z333.object({
11355
- size: z333.number(),
11356
- name: z333.string(),
11357
- checksum: z333.string()
11358
- });
11359
- var DTOForgeProjectFileUploadPayload = z333.object({
11360
- files: z333.array(DTOForgeProjectFileUploadPayloadItem)
11361
- });
11362
- var DTOForgeProjectFileUploadResponse = z333.object({
11363
- files: z333.array(DTOForgeProjectFile),
11364
- uploadUrls: z333.array(
11365
- z333.object({
11366
- fileId: z333.string(),
11367
- uploadUrl: z333.string()
11377
+ import { z as z334 } from "zod";
11378
+ var DTOForgeProjectFile = z334.object({
11379
+ id: z334.string(),
11380
+ name: z334.string(),
11381
+ checksum: z334.string(),
11382
+ pendingUpload: z334.boolean().optional(),
11383
+ url: z334.string(),
11384
+ size: z334.number()
11385
+ });
11386
+ var DTOForgeProjectFileListResponse = z334.object({
11387
+ files: z334.array(DTOForgeProjectFile)
11388
+ });
11389
+ var DTOForgeProjectFileUploadPayloadItem = z334.object({
11390
+ size: z334.number(),
11391
+ name: z334.string(),
11392
+ checksum: z334.string()
11393
+ });
11394
+ var DTOForgeProjectFileUploadPayload = z334.object({
11395
+ files: z334.array(DTOForgeProjectFileUploadPayloadItem)
11396
+ });
11397
+ var DTOForgeProjectFileUploadResponse = z334.object({
11398
+ files: z334.array(DTOForgeProjectFile),
11399
+ uploadUrls: z334.array(
11400
+ z334.object({
11401
+ fileId: z334.string(),
11402
+ uploadUrl: z334.string()
11368
11403
  })
11369
11404
  )
11370
11405
  });
11371
- var DTOForgeProjectFileUploadFinalizePayload = z333.object({
11372
- fileIds: z333.array(z333.string())
11406
+ var DTOForgeProjectFileUploadFinalizePayload = z334.object({
11407
+ fileIds: z334.array(z334.string())
11373
11408
  });
11374
- var DTOForgeProjectFileUploadFinalizeResponse = z333.object({ ok: z333.literal(true) });
11409
+ var DTOForgeProjectFileUploadFinalizeResponse = z334.object({ ok: z334.literal(true) });
11375
11410
 
11376
11411
  // src/api/dto/forge/project-invitation.ts
11377
- import { z as z334 } from "zod";
11412
+ import { z as z335 } from "zod";
11378
11413
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
11379
11414
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
11380
11415
  email: true,
@@ -11384,24 +11419,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
11384
11419
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
11385
11420
  email: true
11386
11421
  });
11387
- var DTOForgeProjectInvitationsListResponse = z334.object({
11388
- invitations: z334.array(DTOForgeProjectInvitation)
11422
+ var DTOForgeProjectInvitationsListResponse = z335.object({
11423
+ invitations: z335.array(DTOForgeProjectInvitation)
11389
11424
  });
11390
- var DTOForgeProjectInvitationGetResponse = z334.object({
11425
+ var DTOForgeProjectInvitationGetResponse = z335.object({
11391
11426
  invitation: DTOForgeProjectInvitation
11392
11427
  });
11393
- var DTOForgeProjectInvitationCreateResponse = z334.object({
11428
+ var DTOForgeProjectInvitationCreateResponse = z335.object({
11394
11429
  invitation: DTOForgeProjectInvitation
11395
11430
  });
11396
- var DTOForgeProjectInvitationUpdateResponse = z334.object({
11431
+ var DTOForgeProjectInvitationUpdateResponse = z335.object({
11397
11432
  invitation: DTOForgeProjectInvitation.nullable()
11398
11433
  });
11399
- var DTOForgeProjectInvitationRemoveResponse = z334.object({
11400
- ok: z334.literal(true)
11434
+ var DTOForgeProjectInvitationRemoveResponse = z335.object({
11435
+ ok: z335.literal(true)
11401
11436
  });
11402
11437
 
11403
11438
  // src/api/dto/forge/project-iteration-old.ts
11404
- import { z as z335 } from "zod";
11439
+ import { z as z336 } from "zod";
11405
11440
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
11406
11441
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
11407
11442
  artifacts: true,
@@ -11412,7 +11447,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
11412
11447
  messages: DTOForgeIterationMessage.array(),
11413
11448
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
11414
11449
  });
11415
- var DTOGetForgeProjectIterationResponse = z335.object({
11450
+ var DTOGetForgeProjectIterationResponse = z336.object({
11416
11451
  iteration: DTOForgeProjectIteration.nullable()
11417
11452
  });
11418
11453
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -11422,20 +11457,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
11422
11457
  mergeMeta: true,
11423
11458
  createdAt: true
11424
11459
  });
11425
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z335.string() });
11426
- var DTOCreateForgeProjectIterationResponse = z335.object({
11460
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z336.string() });
11461
+ var DTOCreateForgeProjectIterationResponse = z336.object({
11427
11462
  iteration: DTOForgeProjectIteration
11428
11463
  });
11429
- var DTOUpdateForgeProjectIterationResponse = z335.object({
11464
+ var DTOUpdateForgeProjectIterationResponse = z336.object({
11430
11465
  iteration: DTOForgeProjectIteration.nullable()
11431
11466
  });
11432
- var DTODeleteForgeProjectIterationResponse = z335.object({
11433
- ok: z335.literal(true)
11467
+ var DTODeleteForgeProjectIterationResponse = z336.object({
11468
+ ok: z336.literal(true)
11434
11469
  });
11435
- var DTOForgeProjectIterationListResponse = z335.object({ iterations: z335.array(DTOForgeProjectIteration) });
11470
+ var DTOForgeProjectIterationListResponse = z336.object({ iterations: z336.array(DTOForgeProjectIteration) });
11436
11471
 
11437
11472
  // src/api/dto/forge/project-member.ts
11438
- import { z as z336 } from "zod";
11473
+ import { z as z337 } from "zod";
11439
11474
 
11440
11475
  // src/utils/figma.ts
11441
11476
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
@@ -11618,7 +11653,7 @@ var DTOForgeProjectMemberRole = ForgeProjectRole;
11618
11653
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
11619
11654
  user: DTOUser,
11620
11655
  effectiveRole: DTOForgeProjectMemberRole,
11621
- isDeactivated: z336.boolean()
11656
+ isDeactivated: z337.boolean()
11622
11657
  });
11623
11658
  var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
11624
11659
  userId: true,
@@ -11628,93 +11663,93 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
11628
11663
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
11629
11664
  userId: true
11630
11665
  });
11631
- var DTOForgeProjectMemberListQuery = z336.object({
11666
+ var DTOForgeProjectMemberListQuery = z337.object({
11632
11667
  includeImplicitMembers: zodQueryBoolean().optional()
11633
11668
  });
11634
- var DTOForgeProjectMembersListResponse = z336.object({
11635
- members: z336.array(DTOForgeProjectMember),
11636
- invitations: z336.array(DTOForgeProjectInvitation)
11669
+ var DTOForgeProjectMembersListResponse = z337.object({
11670
+ members: z337.array(DTOForgeProjectMember),
11671
+ invitations: z337.array(DTOForgeProjectInvitation)
11637
11672
  });
11638
- var DTOForgeProjectMemberGetResponse = z336.object({
11673
+ var DTOForgeProjectMemberGetResponse = z337.object({
11639
11674
  member: DTOForgeProjectMember
11640
11675
  });
11641
- var DTOForgeProjectMemberCreateResponse = z336.object({
11676
+ var DTOForgeProjectMemberCreateResponse = z337.object({
11642
11677
  member: DTOForgeProjectMember
11643
11678
  });
11644
- var DTOForgeProjectMemberUpdateResponse = z336.object({
11679
+ var DTOForgeProjectMemberUpdateResponse = z337.object({
11645
11680
  member: DTOForgeProjectMember.nullable()
11646
11681
  });
11647
- var DTOForgeProjectMemberRemoveResponse = z336.object({
11648
- ok: z336.literal(true)
11682
+ var DTOForgeProjectMemberRemoveResponse = z337.object({
11683
+ ok: z337.literal(true)
11649
11684
  });
11650
- var DTOAddMembersToForgeProject = z336.object({
11685
+ var DTOAddMembersToForgeProject = z337.object({
11651
11686
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1),
11652
- featureId: z336.string().optional()
11687
+ featureId: z337.string().optional()
11653
11688
  });
11654
11689
 
11655
11690
  // src/api/dto/forge/project-room.ts
11656
- import { z as z337 } from "zod";
11657
- var DTOForgeProjectRoom = z337.object({
11658
- id: z337.string()
11691
+ import { z as z338 } from "zod";
11692
+ var DTOForgeProjectRoom = z338.object({
11693
+ id: z338.string()
11659
11694
  });
11660
- var DTOForgeProjectRoomResponse = z337.object({
11695
+ var DTOForgeProjectRoomResponse = z338.object({
11661
11696
  room: DTOForgeProjectRoom
11662
11697
  });
11663
11698
 
11664
11699
  // src/api/dto/forge/project.ts
11665
- import { z as z338 } from "zod";
11700
+ import { z as z339 } from "zod";
11666
11701
  var DTOForgeProjectRole = ForgeProjectRole;
11667
11702
  var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
11668
11703
  var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
11669
- var DTOForgeProjectDocumentPreview = z338.object({
11670
- id: z338.string(),
11671
- title: z338.string(),
11704
+ var DTOForgeProjectDocumentPreview = z339.object({
11705
+ id: z339.string(),
11706
+ title: z339.string(),
11672
11707
  thumbnail: DTOFileReference.optional(),
11673
- createdAt: z338.string(),
11674
- updatedAt: z338.string()
11708
+ createdAt: z339.string(),
11709
+ updatedAt: z339.string()
11675
11710
  });
11676
- var DTOForgeProjectFeaturePreview = z338.object({
11677
- id: z338.string(),
11678
- name: z338.string(),
11711
+ var DTOForgeProjectFeaturePreview = z339.object({
11712
+ id: z339.string(),
11713
+ name: z339.string(),
11679
11714
  thumbnail: DTOFileReference.optional(),
11680
- isPublished: z338.boolean().optional(),
11681
- isArchived: z338.boolean().optional(),
11682
- createdAt: z338.string(),
11683
- updatedAt: z338.string()
11684
- });
11685
- var DTOForgeProject = z338.object({
11686
- id: z338.string(),
11687
- workspaceId: z338.string(),
11688
- projectContextId: z338.string(),
11689
- name: z338.string(),
11690
- description: z338.string().optional(),
11691
- instruction: z338.string().nullable(),
11692
- tags: z338.array(z338.string()).default([]),
11715
+ isPublished: z339.boolean().optional(),
11716
+ isArchived: z339.boolean().optional(),
11717
+ createdAt: z339.string(),
11718
+ updatedAt: z339.string()
11719
+ });
11720
+ var DTOForgeProject = z339.object({
11721
+ id: z339.string(),
11722
+ workspaceId: z339.string(),
11723
+ projectContextId: z339.string(),
11724
+ name: z339.string(),
11725
+ description: z339.string().optional(),
11726
+ instruction: z339.string().nullable(),
11727
+ tags: z339.array(z339.string()).default([]),
11693
11728
  accessMode: DTOForgeProjectAccessMode,
11694
11729
  defaultRole: DTOForgeProjectDefaultRole,
11695
- isArchived: z338.boolean(),
11696
- emoji: z338.string().optional(),
11697
- tokenThemeSetId: z338.string().optional(),
11698
- createdAt: z338.coerce.date(),
11699
- createdByUserId: z338.string().optional(),
11700
- lastUserActivityAt: z338.coerce.date().optional(),
11701
- updatedAt: z338.coerce.date(),
11730
+ isArchived: z339.boolean(),
11731
+ emoji: z339.string().optional(),
11732
+ tokenThemeSetId: z339.string().optional(),
11733
+ createdAt: z339.coerce.date(),
11734
+ createdByUserId: z339.string().optional(),
11735
+ lastUserActivityAt: z339.coerce.date().optional(),
11736
+ updatedAt: z339.coerce.date(),
11702
11737
  documents: DTOForgeProjectDocumentPreview.array(),
11703
11738
  features: DTOForgeProjectFeaturePreview.array(),
11704
11739
  /** @deprecated use `projectContextId` */
11705
- fpContextId: z338.string(),
11740
+ fpContextId: z339.string(),
11706
11741
  /** @deprecated use `name` and `description` properties on project */
11707
- meta: z338.object({
11708
- name: z338.string(),
11709
- description: z338.string().optional()
11742
+ meta: z339.object({
11743
+ name: z339.string(),
11744
+ description: z339.string().optional()
11710
11745
  }),
11711
11746
  /** @deprecated use features.length */
11712
- numberOfFeatures: z338.number().int().nonnegative(),
11747
+ numberOfFeatures: z339.number().int().nonnegative(),
11713
11748
  /** @deprecated use documents.length */
11714
- numberOfDocuments: z338.number().int().nonnegative().optional(),
11749
+ numberOfDocuments: z339.number().int().nonnegative().optional(),
11715
11750
  /** @deprecated prefer fetching from project contexts endpoint separately */
11716
11751
  context: DTOForgeProjectContextV2.optional(),
11717
- liveblocksRoomId: z338.string().optional()
11752
+ liveblocksRoomId: z339.string().optional()
11718
11753
  });
11719
11754
  var DTOForgeProjectCreate = DTOForgeProject.pick({
11720
11755
  name: true,
@@ -11727,8 +11762,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
11727
11762
  /** @deprecated use `name` and `description` properties on project */
11728
11763
  meta: DTOForgeProject.shape.meta.optional(),
11729
11764
  /** @deprecated use `projectContextId` */
11730
- fpContextId: z338.string().optional(),
11731
- projectContextId: z338.string().optional(),
11765
+ fpContextId: z339.string().optional(),
11766
+ projectContextId: z339.string().optional(),
11732
11767
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
11733
11768
  initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
11734
11769
  initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
@@ -11736,136 +11771,136 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
11736
11771
  defaultRole: DTOForgeProjectDefaultRole.optional()
11737
11772
  });
11738
11773
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
11739
- id: z338.string(),
11740
- isArchived: z338.boolean().optional()
11774
+ id: z339.string(),
11775
+ isArchived: z339.boolean().optional()
11741
11776
  });
11742
- var DTOForgeProjectListResponse = z338.object({
11743
- projects: z338.array(
11777
+ var DTOForgeProjectListResponse = z339.object({
11778
+ projects: z339.array(
11744
11779
  DTOForgeProject.extend({
11745
11780
  effectiveRole: DTOForgeProjectRole
11746
11781
  })
11747
11782
  )
11748
11783
  });
11749
- var DTOForgeProjectResponse = z338.object({
11784
+ var DTOForgeProjectResponse = z339.object({
11750
11785
  project: DTOForgeProject.extend({
11751
11786
  effectiveRole: DTOForgeProjectRole
11752
11787
  })
11753
11788
  });
11754
11789
 
11755
11790
  // src/api/dto/forge/relation.ts
11756
- import z339 from "zod";
11791
+ import z340 from "zod";
11757
11792
  var DTOForgeRelationType = ForgeRelationType;
11758
11793
  var DTOForgeRelation = ForgeRelation;
11759
11794
  var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
11760
- var DTOForgeRelationDelete = z339.object({
11761
- sourceItemId: z339.string().uuid(),
11762
- targetItemId: z339.string().uuid()
11795
+ var DTOForgeRelationDelete = z340.object({
11796
+ sourceItemId: z340.string().uuid(),
11797
+ targetItemId: z340.string().uuid()
11763
11798
  });
11764
- var DTOForgeRelationListInput = z339.object({
11765
- projectId: z339.string()
11799
+ var DTOForgeRelationListInput = z340.object({
11800
+ projectId: z340.string()
11766
11801
  });
11767
- var DTOForgeRelationListResponse = z339.object({
11768
- relations: z339.array(DTOForgeRelation)
11802
+ var DTOForgeRelationListResponse = z340.object({
11803
+ relations: z340.array(DTOForgeRelation)
11769
11804
  });
11770
- var DTOForgeEntity = z339.object({
11771
- id: z339.string().uuid(),
11805
+ var DTOForgeEntity = z340.object({
11806
+ id: z340.string().uuid(),
11772
11807
  type: DTOForgeRelationType
11773
11808
  });
11774
11809
 
11775
11810
  // src/api/dto/forge/threads.ts
11776
- import { z as z340 } from "zod";
11811
+ import { z as z341 } from "zod";
11777
11812
  var DTOForgeChatMessage = ForgeChatMessage;
11778
11813
  var DTOForgeChatThread = ForgeChatThread;
11779
11814
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
11780
11815
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
11781
- var DTOForgeChatThreadCreateInput = z340.object({
11782
- title: z340.string().optional()
11816
+ var DTOForgeChatThreadCreateInput = z341.object({
11817
+ title: z341.string().optional()
11783
11818
  });
11784
- var DTOForgeChatThreadCreateResponse = z340.object({
11819
+ var DTOForgeChatThreadCreateResponse = z341.object({
11785
11820
  thread: DTOForgeChatThread
11786
11821
  });
11787
- var DTOForgeChatThreadUpdateInput = z340.object({
11788
- title: z340.string()
11822
+ var DTOForgeChatThreadUpdateInput = z341.object({
11823
+ title: z341.string()
11789
11824
  });
11790
- var DTOForgeChatThreadUpdateResponse = z340.object({
11825
+ var DTOForgeChatThreadUpdateResponse = z341.object({
11791
11826
  thread: DTOForgeChatThread
11792
11827
  });
11793
- var DTOForgeChatThreadDeleteResponse = z340.object({
11794
- success: z340.boolean()
11828
+ var DTOForgeChatThreadDeleteResponse = z341.object({
11829
+ success: z341.boolean()
11795
11830
  });
11796
- var DTOForgeChatThreadListQuery = z340.object({
11797
- limit: z340.number().optional(),
11798
- offset: z340.number().optional()
11831
+ var DTOForgeChatThreadListQuery = z341.object({
11832
+ limit: z341.number().optional(),
11833
+ offset: z341.number().optional()
11799
11834
  });
11800
- var DTOForgeChatThreadListResponse = z340.object({
11801
- threads: z340.array(DTOForgeChatThread),
11802
- pagination: z340.object({
11803
- offset: z340.number(),
11804
- limit: z340.number(),
11805
- total: z340.number()
11835
+ var DTOForgeChatThreadListResponse = z341.object({
11836
+ threads: z341.array(DTOForgeChatThread),
11837
+ pagination: z341.object({
11838
+ offset: z341.number(),
11839
+ limit: z341.number(),
11840
+ total: z341.number()
11806
11841
  })
11807
11842
  });
11808
- var DTOForgeChatMessageCreateInput = z340.object({
11809
- payload: z340.string(),
11843
+ var DTOForgeChatMessageCreateInput = z341.object({
11844
+ payload: z341.string(),
11810
11845
  sender: DTOForgeChatMessageSender.optional()
11811
11846
  });
11812
- var DTOForgeChatMessageCreateResponse = z340.object({
11847
+ var DTOForgeChatMessageCreateResponse = z341.object({
11813
11848
  message: DTOForgeChatMessage
11814
11849
  });
11815
- var DTOForgeChatMessageListQuery = z340.object({
11816
- limit: z340.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
11817
- offset: z340.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
11850
+ var DTOForgeChatMessageListQuery = z341.object({
11851
+ limit: z341.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
11852
+ offset: z341.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
11818
11853
  });
11819
- var DTOForgeChatMessageListResponse = z340.object({
11820
- messages: z340.array(DTOForgeChatMessage),
11821
- totalCount: z340.number(),
11822
- hasMore: z340.boolean()
11854
+ var DTOForgeChatMessageListResponse = z341.object({
11855
+ messages: z341.array(DTOForgeChatMessage),
11856
+ totalCount: z341.number(),
11857
+ hasMore: z341.boolean()
11823
11858
  });
11824
- var DTOForgeChatExportResponse = z340.object({
11825
- csvDownloadUrl: z340.string().nullable()
11859
+ var DTOForgeChatExportResponse = z341.object({
11860
+ csvDownloadUrl: z341.string().nullable()
11826
11861
  });
11827
- var DTOForgeChatMessageScoreInput = z340.object({
11828
- messageId: z340.string(),
11829
- name: z340.string(),
11830
- value: z340.number(),
11831
- categoryName: z340.string().optional(),
11832
- reason: z340.string().optional()
11862
+ var DTOForgeChatMessageScoreInput = z341.object({
11863
+ messageId: z341.string(),
11864
+ name: z341.string(),
11865
+ value: z341.number(),
11866
+ categoryName: z341.string().optional(),
11867
+ reason: z341.string().optional()
11833
11868
  });
11834
- var DTOForgeChatMessageTagInput = z340.object({
11835
- messageId: z340.string(),
11836
- tags: z340.array(z340.string())
11869
+ var DTOForgeChatMessageTagInput = z341.object({
11870
+ messageId: z341.string(),
11871
+ tags: z341.array(z341.string())
11837
11872
  });
11838
- var DTOForgeChatMessageScoreRequest = z340.object({
11873
+ var DTOForgeChatMessageScoreRequest = z341.object({
11839
11874
  scores: DTOForgeChatMessageScoreInput.array(),
11840
11875
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
11841
11876
  });
11842
11877
 
11843
11878
  // src/api/dto/events/forge-project.ts
11844
- var DTOForgeProjectMembersCreated = z341.object({
11845
- type: z341.literal("ProjectMembersCreated"),
11846
- data: z341.array(DTOForgeProjectMember)
11879
+ var DTOForgeProjectMembersCreated = z342.object({
11880
+ type: z342.literal("ProjectMembersCreated"),
11881
+ data: z342.array(DTOForgeProjectMember)
11847
11882
  });
11848
- var DTOForgeProjectMemberUpdated = z341.object({
11849
- type: z341.literal("ProjectMemberUpdated"),
11883
+ var DTOForgeProjectMemberUpdated = z342.object({
11884
+ type: z342.literal("ProjectMemberUpdated"),
11850
11885
  data: DTOForgeProjectMember
11851
11886
  });
11852
- var DTOForgeProjectMemberDeleted = z341.object({
11853
- type: z341.literal("ProjectMemberDeleted"),
11887
+ var DTOForgeProjectMemberDeleted = z342.object({
11888
+ type: z342.literal("ProjectMemberDeleted"),
11854
11889
  data: DTOForgeProjectMember.pick({ userId: true })
11855
11890
  });
11856
- var DTOForgeProjectIterationTagSet = z341.object({
11857
- type: z341.literal("ProjectIterationTagSet"),
11891
+ var DTOForgeProjectIterationTagSet = z342.object({
11892
+ type: z342.literal("ProjectIterationTagSet"),
11858
11893
  data: DTOFeatureIterationTag
11859
11894
  });
11860
- var DTOForgeProjectFeatureSandboxUpdated = z341.object({
11861
- type: z341.literal("ProjectFeatureSandboxUpdated"),
11895
+ var DTOForgeProjectFeatureSandboxUpdated = z342.object({
11896
+ type: z342.literal("ProjectFeatureSandboxUpdated"),
11862
11897
  data: DTOFeatureSandbox
11863
11898
  });
11864
- var DTOForgeProjectIterationUpdated = z341.object({
11865
- type: z341.literal("ProjectIterationUpdated"),
11899
+ var DTOForgeProjectIterationUpdated = z342.object({
11900
+ type: z342.literal("ProjectIterationUpdated"),
11866
11901
  data: DTOFeatureIteration.extend({ featureId: Id })
11867
11902
  });
11868
- var DTOForgeProjectRoomEvent = z341.discriminatedUnion("type", [
11903
+ var DTOForgeProjectRoomEvent = z342.discriminatedUnion("type", [
11869
11904
  DTOForgeProjectMembersCreated,
11870
11905
  DTOForgeProjectMemberUpdated,
11871
11906
  DTOForgeProjectMemberDeleted,
@@ -11875,50 +11910,50 @@ var DTOForgeProjectRoomEvent = z341.discriminatedUnion("type", [
11875
11910
  ]);
11876
11911
 
11877
11912
  // src/api/dto/events/workspace.ts
11878
- import z342 from "zod";
11879
- var DTOForgeProjectCreated = z342.object({
11880
- type: z342.literal("ProjectCreated"),
11881
- data: z342.object({ id: z342.string() })
11913
+ import z343 from "zod";
11914
+ var DTOForgeProjectCreated = z343.object({
11915
+ type: z343.literal("ProjectCreated"),
11916
+ data: z343.object({ id: z343.string() })
11882
11917
  });
11883
- var DTOForgeProjectUpdated = z342.object({
11884
- type: z342.literal("ProjectUpdated"),
11885
- data: z342.object({ id: z342.string() })
11918
+ var DTOForgeProjectUpdated = z343.object({
11919
+ type: z343.literal("ProjectUpdated"),
11920
+ data: z343.object({ id: z343.string() })
11886
11921
  });
11887
- var DTOForgeProjectContextCreated = z342.object({
11888
- type: z342.literal("ProjectContextCreated"),
11922
+ var DTOForgeProjectContextCreated = z343.object({
11923
+ type: z343.literal("ProjectContextCreated"),
11889
11924
  data: DTOForgeProjectContextV2
11890
11925
  });
11891
- var DTOForgeProjectContextUpdated = z342.object({
11892
- type: z342.literal("ProjectContextUpdated"),
11926
+ var DTOForgeProjectContextUpdated = z343.object({
11927
+ type: z343.literal("ProjectContextUpdated"),
11893
11928
  data: DTOForgeProjectContextV2
11894
11929
  });
11895
- var DTOForgeProjectContextDeleted = z342.object({
11896
- type: z342.literal("ProjectContextDeleted"),
11930
+ var DTOForgeProjectContextDeleted = z343.object({
11931
+ type: z343.literal("ProjectContextDeleted"),
11897
11932
  data: DTOForgeProjectContextV2.pick({ id: true })
11898
11933
  });
11899
- var DTOSandboxTemplateVersionCreated = z342.object({
11900
- type: z342.literal("SandboxTemplateVersionCreated"),
11901
- data: z342.object({
11902
- templateId: z342.string(),
11903
- version: z342.string(),
11904
- designSystemId: z342.string()
11934
+ var DTOSandboxTemplateVersionCreated = z343.object({
11935
+ type: z343.literal("SandboxTemplateVersionCreated"),
11936
+ data: z343.object({
11937
+ templateId: z343.string(),
11938
+ version: z343.string(),
11939
+ designSystemId: z343.string()
11905
11940
  })
11906
11941
  });
11907
- var DTOSandboxTemplateBuildCreated = z342.object({
11908
- type: z342.literal("SandboxTemplateBuildCreated"),
11909
- data: z342.object({
11910
- buildId: z342.string(),
11911
- templateId: z342.string().optional()
11942
+ var DTOSandboxTemplateBuildCreated = z343.object({
11943
+ type: z343.literal("SandboxTemplateBuildCreated"),
11944
+ data: z343.object({
11945
+ buildId: z343.string(),
11946
+ templateId: z343.string().optional()
11912
11947
  })
11913
11948
  });
11914
- var DTOSandboxTemplateBuildFinished = z342.object({
11915
- type: z342.literal("SandboxTemplateBuildFinished"),
11916
- data: z342.object({
11917
- buildId: z342.string(),
11918
- templateId: z342.string().optional()
11949
+ var DTOSandboxTemplateBuildFinished = z343.object({
11950
+ type: z343.literal("SandboxTemplateBuildFinished"),
11951
+ data: z343.object({
11952
+ buildId: z343.string(),
11953
+ templateId: z343.string().optional()
11919
11954
  })
11920
11955
  });
11921
- var DTOWorkspaceRoomEvent = z342.discriminatedUnion("type", [
11956
+ var DTOWorkspaceRoomEvent = z343.discriminatedUnion("type", [
11922
11957
  DTOForgeProjectUpdated,
11923
11958
  DTOForgeProjectCreated,
11924
11959
  DTOForgeProjectContextCreated,
@@ -11930,315 +11965,315 @@ var DTOWorkspaceRoomEvent = z342.discriminatedUnion("type", [
11930
11965
  ]);
11931
11966
 
11932
11967
  // src/api/dto/figma-components/assets/download.ts
11933
- import { z as z343 } from "zod";
11934
- var DTOAssetRenderConfiguration = z343.object({
11935
- prefix: z343.string().optional(),
11936
- suffix: z343.string().optional(),
11937
- scale: z343.enum(["x1", "x2", "x3", "x4"]),
11938
- format: z343.enum(["png", "pdf", "svg"])
11939
- });
11940
- var DTORenderedAssetFile = z343.object({
11941
- assetId: z343.string(),
11942
- fileName: z343.string(),
11943
- sourceUrl: z343.string(),
11968
+ import { z as z344 } from "zod";
11969
+ var DTOAssetRenderConfiguration = z344.object({
11970
+ prefix: z344.string().optional(),
11971
+ suffix: z344.string().optional(),
11972
+ scale: z344.enum(["x1", "x2", "x3", "x4"]),
11973
+ format: z344.enum(["png", "pdf", "svg"])
11974
+ });
11975
+ var DTORenderedAssetFile = z344.object({
11976
+ assetId: z344.string(),
11977
+ fileName: z344.string(),
11978
+ sourceUrl: z344.string(),
11944
11979
  settings: DTOAssetRenderConfiguration,
11945
- originalName: z343.string()
11980
+ originalName: z344.string()
11946
11981
  });
11947
- var DTODownloadAssetsRequest = z343.object({
11948
- persistentIds: z343.array(z343.string().uuid()).optional(),
11982
+ var DTODownloadAssetsRequest = z344.object({
11983
+ persistentIds: z344.array(z344.string().uuid()).optional(),
11949
11984
  settings: DTOAssetRenderConfiguration.array()
11950
11985
  });
11951
- var DTODownloadAssetsResponse = z343.object({
11986
+ var DTODownloadAssetsResponse = z344.object({
11952
11987
  items: DTORenderedAssetFile.array()
11953
11988
  });
11954
11989
 
11955
11990
  // src/api/dto/figma-exporter/figma-node.ts
11956
- import { z as z344 } from "zod";
11957
- var DTOFigmaExportNodeFormat = z344.enum(["HTML", "JSON"]);
11958
- var DTOFigmaExportNodeConfiguration = z344.object({
11991
+ import { z as z345 } from "zod";
11992
+ var DTOFigmaExportNodeFormat = z345.enum(["HTML", "JSON"]);
11993
+ var DTOFigmaExportNodeConfiguration = z345.object({
11959
11994
  format: DTOFigmaExportNodeFormat,
11960
- minifyOutput: z344.boolean().optional(),
11961
- customFontUrls: z344.string().array().optional()
11995
+ minifyOutput: z345.boolean().optional(),
11996
+ customFontUrls: z345.string().array().optional()
11962
11997
  });
11963
- var DTOFigmaExportNodePayload = z344.object({
11964
- designSystemId: z344.string(),
11965
- figmaUrl: z344.string(),
11998
+ var DTOFigmaExportNodePayload = z345.object({
11999
+ designSystemId: z345.string(),
12000
+ figmaUrl: z345.string(),
11966
12001
  configuration: DTOFigmaExportNodeConfiguration
11967
12002
  });
11968
- var DTOFigmaExportNodeResponse = z344.object({
12003
+ var DTOFigmaExportNodeResponse = z345.object({
11969
12004
  file: DTOFile,
11970
12005
  // TODO (jovanblazek): Remove sceneNodes from response when done with development
11971
- scene: z344.any().optional()
12006
+ scene: z345.any().optional()
11972
12007
  });
11973
12008
 
11974
12009
  // src/api/dto/liveblocks/auth-response.ts
11975
- import { z as z345 } from "zod";
11976
- var DTOLiveblocksAuthResponse = z345.object({
11977
- token: z345.string()
12010
+ import { z as z346 } from "zod";
12011
+ var DTOLiveblocksAuthResponse = z346.object({
12012
+ token: z346.string()
11978
12013
  });
11979
12014
 
11980
12015
  // src/api/dto/mcp/stream.ts
11981
- import z346 from "zod";
11982
- var DTOMCPStream = z346.object({
11983
- id: z346.string().uuid(),
11984
- projectFeatureId: z346.string().uuid().optional(),
11985
- projectDocumentId: z346.string().uuid().optional()
12016
+ import z347 from "zod";
12017
+ var DTOMCPStream = z347.object({
12018
+ id: z347.string().uuid(),
12019
+ projectFeatureId: z347.string().uuid().optional(),
12020
+ projectDocumentId: z347.string().uuid().optional()
11986
12021
  });
11987
12022
  var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
11988
- var DTOMCPStreamResponse = z346.object({
12023
+ var DTOMCPStreamResponse = z347.object({
11989
12024
  stream: DTOMCPStream
11990
12025
  });
11991
12026
 
11992
12027
  // src/api/dto/notifications/notifications.ts
11993
- import { z as z347 } from "zod";
11994
- var DTONotificationChatMentionPayload = z347.object({
11995
- messageAuthorId: z347.string(),
11996
- messageText: z347.string(),
11997
- messageId: z347.string(),
11998
- parentMessageId: z347.string().optional(),
11999
- workspaceId: z347.string(),
12000
- projectId: z347.string(),
12001
- subjectType: z347.string(),
12002
- threadSubjectId: z347.string(),
12003
- subjectName: z347.string()
12004
- });
12005
- var DTONotificationProjectInvitationPayload = z347.object({
12006
- workspaceId: z347.string(),
12007
- projectId: z347.string(),
12008
- projectTitle: z347.string(),
12009
- invitedByUserId: z347.string(),
12010
- invitationRole: z347.string(),
12011
- featureId: z347.string().optional()
12012
- });
12013
- var DTONotificationProjectDocumentCommentPayload = z347.object({
12014
- documentId: z347.string(),
12015
- entityTitle: z347.string(),
12016
- projectId: z347.string(),
12017
- workspaceId: z347.string(),
12018
- threadId: z347.string(),
12019
- commentId: z347.string(),
12020
- commentCreatedAt: z347.string(),
12021
- commentAuthorId: z347.string(),
12022
- commentBody: z347.string()
12023
- });
12024
- var DTONotificationBase = z347.object({
12025
- userId: z347.string(),
12026
- subjectId: z347.string(),
12027
- roomId: z347.string().optional(),
12028
- workspaceId: z347.string()
12029
- });
12030
- var DTONotificationCreateInput = z347.discriminatedUnion("type", [
12031
- z347.object({
12032
- type: z347.literal(DTONotificationType.enum.ChatMention),
12028
+ import { z as z348 } from "zod";
12029
+ var DTONotificationChatMentionPayload = z348.object({
12030
+ messageAuthorId: z348.string(),
12031
+ messageText: z348.string(),
12032
+ messageId: z348.string(),
12033
+ parentMessageId: z348.string().optional(),
12034
+ workspaceId: z348.string(),
12035
+ projectId: z348.string(),
12036
+ subjectType: z348.string(),
12037
+ threadSubjectId: z348.string(),
12038
+ subjectName: z348.string()
12039
+ });
12040
+ var DTONotificationProjectInvitationPayload = z348.object({
12041
+ workspaceId: z348.string(),
12042
+ projectId: z348.string(),
12043
+ projectTitle: z348.string(),
12044
+ invitedByUserId: z348.string(),
12045
+ invitationRole: z348.string(),
12046
+ featureId: z348.string().optional()
12047
+ });
12048
+ var DTONotificationProjectDocumentCommentPayload = z348.object({
12049
+ documentId: z348.string(),
12050
+ entityTitle: z348.string(),
12051
+ projectId: z348.string(),
12052
+ workspaceId: z348.string(),
12053
+ threadId: z348.string(),
12054
+ commentId: z348.string(),
12055
+ commentCreatedAt: z348.string(),
12056
+ commentAuthorId: z348.string(),
12057
+ commentBody: z348.string()
12058
+ });
12059
+ var DTONotificationBase = z348.object({
12060
+ userId: z348.string(),
12061
+ subjectId: z348.string(),
12062
+ roomId: z348.string().optional(),
12063
+ workspaceId: z348.string()
12064
+ });
12065
+ var DTONotificationCreateInput = z348.discriminatedUnion("type", [
12066
+ z348.object({
12067
+ type: z348.literal(DTONotificationType.enum.ChatMention),
12033
12068
  activityData: DTONotificationChatMentionPayload
12034
12069
  }),
12035
- z347.object({
12036
- type: z347.literal(DTONotificationType.enum.ProjectInvitation),
12070
+ z348.object({
12071
+ type: z348.literal(DTONotificationType.enum.ProjectInvitation),
12037
12072
  activityData: DTONotificationProjectInvitationPayload
12038
12073
  }),
12039
- z347.object({
12040
- type: z347.literal(DTONotificationType.enum.ProjectDocumentComment),
12074
+ z348.object({
12075
+ type: z348.literal(DTONotificationType.enum.ProjectDocumentComment),
12041
12076
  activityData: DTONotificationProjectDocumentCommentPayload
12042
12077
  })
12043
12078
  ]).and(DTONotificationBase);
12044
12079
 
12045
12080
  // src/api/dto/portal/portal-settings.ts
12046
- import { z as z348 } from "zod";
12081
+ import { z as z349 } from "zod";
12047
12082
  var DTOPortalSettingsTheme = PortalSettingsTheme;
12048
12083
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
12049
12084
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
12050
12085
  var DTOPortalSettingsSidebar = PortalSettingsSidebar;
12051
- var DTOPortalSettings = z348.object({
12052
- id: z348.string(),
12053
- workspaceId: z348.string(),
12054
- enabledDesignSystemIds: z348.array(z348.string()),
12055
- enabledBrandPersistentIds: z348.array(z348.string()),
12086
+ var DTOPortalSettings = z349.object({
12087
+ id: z349.string(),
12088
+ workspaceId: z349.string(),
12089
+ enabledDesignSystemIds: z349.array(z349.string()),
12090
+ enabledBrandPersistentIds: z349.array(z349.string()),
12056
12091
  theme: DTOPortalSettingsTheme.nullish(),
12057
12092
  sidebar: DTOPortalSettingsSidebar.nullish(),
12058
- createdAt: z348.coerce.date(),
12059
- updatedAt: z348.coerce.date()
12093
+ createdAt: z349.coerce.date(),
12094
+ updatedAt: z349.coerce.date()
12060
12095
  });
12061
- var DTOPortalSettingsGetResponse = z348.object({
12096
+ var DTOPortalSettingsGetResponse = z349.object({
12062
12097
  portalSettings: DTOPortalSettings
12063
12098
  });
12064
- var DTOPortalSettingsUpdatePayload = z348.object({
12065
- enabledDesignSystemIds: z348.array(z348.string()).optional(),
12066
- enabledBrandPersistentIds: z348.array(z348.string()).optional(),
12099
+ var DTOPortalSettingsUpdatePayload = z349.object({
12100
+ enabledDesignSystemIds: z349.array(z349.string()).optional(),
12101
+ enabledBrandPersistentIds: z349.array(z349.string()).optional(),
12067
12102
  theme: DTOPortalSettingsTheme.nullish(),
12068
12103
  sidebar: DTOPortalSettingsSidebar.nullish()
12069
12104
  });
12070
12105
 
12071
12106
  // src/api/dto/sandboxes/template.ts
12072
- import z349 from "zod";
12073
- var DTOSandboxTemplatePreset = z349.object({
12074
- id: z349.string(),
12075
- name: z349.string(),
12076
- description: z349.string(),
12077
- thumbnailUrl: z349.string().optional(),
12078
- files: z349.string().array()
12079
- });
12080
- var DTOSandboxTemplateVersion = z349.object({
12081
- name: z349.string(),
12082
- createdAt: z349.string(),
12083
- createdByUserId: z349.string(),
12084
- e2bTemplateId: z349.string(),
12107
+ import z350 from "zod";
12108
+ var DTOSandboxTemplatePreset = z350.object({
12109
+ id: z350.string(),
12110
+ name: z350.string(),
12111
+ description: z350.string(),
12112
+ thumbnailUrl: z350.string().optional(),
12113
+ files: z350.string().array()
12114
+ });
12115
+ var DTOSandboxTemplateVersion = z350.object({
12116
+ name: z350.string(),
12117
+ createdAt: z350.string(),
12118
+ createdByUserId: z350.string(),
12119
+ e2bTemplateId: z350.string(),
12085
12120
  templates: DTOSandboxTemplatePreset.array().optional(),
12086
- hasDesignModePlugin: z349.boolean().optional()
12121
+ hasDesignModePlugin: z350.boolean().optional()
12087
12122
  });
12088
- var DTOSandboxTemplate = z349.object({
12089
- id: z349.string(),
12090
- name: z349.string(),
12091
- workspaceId: z349.string(),
12092
- designSystemId: z349.string(),
12093
- createdAt: z349.string(),
12123
+ var DTOSandboxTemplate = z350.object({
12124
+ id: z350.string(),
12125
+ name: z350.string(),
12126
+ workspaceId: z350.string(),
12127
+ designSystemId: z350.string(),
12128
+ createdAt: z350.string(),
12094
12129
  versions: DTOSandboxTemplateVersion.array()
12095
12130
  });
12096
- var DTOSandboxTemplateBuild = z349.object({
12097
- id: z349.string(),
12098
- workspaceId: z349.string(),
12099
- designSystemId: z349.string(),
12100
- name: z349.string(),
12101
- version: z349.string(),
12102
- createdAt: z349.string(),
12103
- finishedAt: z349.string().optional(),
12104
- createdByUserId: z349.string(),
12105
- dockerImagePath: z349.string(),
12106
- error: z349.string().optional(),
12107
- state: z349.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
12108
- });
12109
- var DTOSandboxTemplateFile = z349.object({
12110
- key: z349.string(),
12111
- fileId: z349.string(),
12112
- filePath: z349.string(),
12113
- url: z349.string()
12114
- });
12115
- var DTOSandboxTemplateVersionDetail = z349.object({
12131
+ var DTOSandboxTemplateBuild = z350.object({
12132
+ id: z350.string(),
12133
+ workspaceId: z350.string(),
12134
+ designSystemId: z350.string(),
12135
+ name: z350.string(),
12136
+ version: z350.string(),
12137
+ createdAt: z350.string(),
12138
+ finishedAt: z350.string().optional(),
12139
+ createdByUserId: z350.string(),
12140
+ dockerImagePath: z350.string(),
12141
+ error: z350.string().optional(),
12142
+ state: z350.enum(["PendingUpload", "Building", "Success", "Failure", "Timeout"])
12143
+ });
12144
+ var DTOSandboxTemplateFile = z350.object({
12145
+ key: z350.string(),
12146
+ fileId: z350.string(),
12147
+ filePath: z350.string(),
12148
+ url: z350.string()
12149
+ });
12150
+ var DTOSandboxTemplateVersionDetail = z350.object({
12116
12151
  version: DTOSandboxTemplateVersion,
12117
12152
  files: DTOSandboxTemplateFile.array()
12118
12153
  });
12119
- var DTOSandboxTemplateQuery = z349.object({
12120
- workspaceId: z349.string(),
12121
- designSystemId: z349.string().optional()
12154
+ var DTOSandboxTemplateQuery = z350.object({
12155
+ workspaceId: z350.string(),
12156
+ designSystemId: z350.string().optional()
12122
12157
  });
12123
- var DTOSandboxTemplateListResponse = z349.object({
12158
+ var DTOSandboxTemplateListResponse = z350.object({
12124
12159
  templates: DTOSandboxTemplate.array()
12125
12160
  });
12126
- var DTOSandboxTemplateResponse = z349.object({
12161
+ var DTOSandboxTemplateResponse = z350.object({
12127
12162
  template: DTOSandboxTemplate
12128
12163
  });
12129
- var DTOSandboxTemplateBuildResponse = z349.object({
12164
+ var DTOSandboxTemplateBuildResponse = z350.object({
12130
12165
  build: DTOSandboxTemplateBuild
12131
12166
  });
12132
- var DTOSandboxTemplateBuildCreateInput = z349.object({
12133
- workspaceId: z349.string(),
12134
- designSystemId: z349.string(),
12135
- name: z349.string(),
12136
- version: z349.string(),
12137
- isExistingVersionUpdateAllowed: z349.boolean(),
12138
- hasDesignModePlugin: z349.boolean().optional(),
12139
- templates: z349.object({
12140
- id: z349.string(),
12141
- name: z349.string(),
12142
- description: z349.string(),
12143
- thumbnailUrl: z349.string().optional(),
12144
- files: z349.string().array()
12167
+ var DTOSandboxTemplateBuildCreateInput = z350.object({
12168
+ workspaceId: z350.string(),
12169
+ designSystemId: z350.string(),
12170
+ name: z350.string(),
12171
+ version: z350.string(),
12172
+ isExistingVersionUpdateAllowed: z350.boolean(),
12173
+ hasDesignModePlugin: z350.boolean().optional(),
12174
+ templates: z350.object({
12175
+ id: z350.string(),
12176
+ name: z350.string(),
12177
+ description: z350.string(),
12178
+ thumbnailUrl: z350.string().optional(),
12179
+ files: z350.string().array()
12145
12180
  }).array().optional()
12146
12181
  });
12147
- var DTOSandboxTemplateBuildCreateResponse = z349.object({
12182
+ var DTOSandboxTemplateBuildCreateResponse = z350.object({
12148
12183
  /** @deprecated use domain + build.dockerImagePath */
12149
- dockerUrl: z349.string().optional(),
12150
- dockerRegistryDomain: z349.string(),
12184
+ dockerUrl: z350.string().optional(),
12185
+ dockerRegistryDomain: z350.string(),
12151
12186
  /** @deprecated use docker-login endpoint */
12152
- dockerAccessToken: z349.string().optional(),
12187
+ dockerAccessToken: z350.string().optional(),
12153
12188
  build: DTOSandboxTemplateBuild
12154
12189
  });
12155
- var DTOSandboxTemplateBuildFinalizeResponse = z349.object({
12156
- ok: z349.boolean()
12190
+ var DTOSandboxTemplateBuildFinalizeResponse = z350.object({
12191
+ ok: z350.boolean()
12157
12192
  });
12158
12193
 
12159
12194
  // src/api/dto/storybook-sites/storybook-sites.ts
12160
- import { z as z350 } from "zod";
12161
- var DTOStorybookUploadStatus = z350.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
12162
- var DTOStorybookSiteVersion = z350.object({
12163
- id: z350.string(),
12164
- isPublic: z350.boolean(),
12165
- createdAt: z350.string(),
12195
+ import { z as z351 } from "zod";
12196
+ var DTOStorybookUploadStatus = z351.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
12197
+ var DTOStorybookSiteVersion = z351.object({
12198
+ id: z351.string(),
12199
+ isPublic: z351.boolean(),
12200
+ createdAt: z351.string(),
12166
12201
  uploadStatus: DTOStorybookUploadStatus
12167
12202
  });
12168
- var DTOStorybookSite = z350.object({
12169
- id: z350.string(),
12170
- designSystemId: z350.string(),
12171
- name: z350.string(),
12172
- indexPageUrl: z350.string(),
12173
- createdAt: z350.string(),
12203
+ var DTOStorybookSite = z351.object({
12204
+ id: z351.string(),
12205
+ designSystemId: z351.string(),
12206
+ name: z351.string(),
12207
+ indexPageUrl: z351.string(),
12208
+ createdAt: z351.string(),
12174
12209
  currentVersion: DTOStorybookSiteVersion
12175
12210
  });
12176
- var DTOStorybookSiteListQuery = z350.object({
12177
- designSystemId: z350.string()
12211
+ var DTOStorybookSiteListQuery = z351.object({
12212
+ designSystemId: z351.string()
12178
12213
  });
12179
- var DTOStorybookSiteListResponse = z350.object({
12214
+ var DTOStorybookSiteListResponse = z351.object({
12180
12215
  sites: DTOStorybookSite.array()
12181
12216
  });
12182
- var DTOStorybookSiteUploadPayload = z350.object({
12183
- designSystemId: z350.string(),
12184
- isPublic: z350.boolean(),
12185
- name: z350.string()
12217
+ var DTOStorybookSiteUploadPayload = z351.object({
12218
+ designSystemId: z351.string(),
12219
+ isPublic: z351.boolean(),
12220
+ name: z351.string()
12186
12221
  });
12187
- var DTOStorybookSiteUploadResponse = z350.object({
12222
+ var DTOStorybookSiteUploadResponse = z351.object({
12188
12223
  storybookSiteVersion: DTOStorybookSiteVersion,
12189
- uploadUrl: z350.string()
12224
+ uploadUrl: z351.string()
12190
12225
  });
12191
- var DTOStorybookSiteVersionResponse = z350.object({
12226
+ var DTOStorybookSiteVersionResponse = z351.object({
12192
12227
  storybookSiteVersion: DTOStorybookSiteVersion
12193
12228
  });
12194
12229
 
12195
12230
  // src/api/dto/themes/override.ts
12196
- import { z as z351 } from "zod";
12231
+ import { z as z352 } from "zod";
12197
12232
  var DTOThemeOverride = DesignTokenTypedData.and(
12198
- z351.object({
12199
- tokenPersistentId: z351.string(),
12233
+ z352.object({
12234
+ tokenPersistentId: z352.string(),
12200
12235
  origin: ThemeOverrideOrigin.optional()
12201
12236
  })
12202
12237
  );
12203
12238
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
12204
- z351.object({
12205
- tokenPersistentId: z351.string()
12239
+ z352.object({
12240
+ tokenPersistentId: z352.string()
12206
12241
  })
12207
12242
  );
12208
12243
 
12209
12244
  // src/api/dto/themes/theme.ts
12210
- import { z as z352 } from "zod";
12211
- var DTOThemesListQuery = z352.object({
12212
- brandId: z352.string().optional()
12213
- });
12214
- var DTOTheme = z352.object({
12215
- id: z352.string(),
12216
- persistentId: z352.string(),
12217
- designSystemVersionId: z352.string(),
12218
- brandId: z352.string(),
12245
+ import { z as z353 } from "zod";
12246
+ var DTOThemesListQuery = z353.object({
12247
+ brandId: z353.string().optional()
12248
+ });
12249
+ var DTOTheme = z353.object({
12250
+ id: z353.string(),
12251
+ persistentId: z353.string(),
12252
+ designSystemVersionId: z353.string(),
12253
+ brandId: z353.string(),
12219
12254
  meta: ObjectMeta,
12220
- codeName: z352.string(),
12221
- parentPersistentId: z352.string().optional(),
12222
- collectionPersistentIds: z352.string().array(),
12255
+ codeName: z353.string(),
12256
+ parentPersistentId: z353.string().optional(),
12257
+ collectionPersistentIds: z353.string().array(),
12223
12258
  overrides: DTOThemeOverride.array()
12224
12259
  });
12225
- var DTOThemeResponse = z352.object({
12260
+ var DTOThemeResponse = z353.object({
12226
12261
  theme: DTOTheme
12227
12262
  });
12228
- var DTOThemeListResponse = z352.object({
12263
+ var DTOThemeListResponse = z353.object({
12229
12264
  themes: DTOTheme.array()
12230
12265
  });
12231
- var DTOThemeCreatePayload = z352.object({
12266
+ var DTOThemeCreatePayload = z353.object({
12232
12267
  meta: ObjectMeta,
12233
- persistentId: z352.string(),
12234
- brandId: z352.string(),
12235
- codeName: z352.string(),
12268
+ persistentId: z353.string(),
12269
+ brandId: z353.string(),
12270
+ codeName: z353.string(),
12236
12271
  overrides: DTOThemeOverride.array()
12237
12272
  });
12238
12273
 
12239
12274
  // src/api/dto/trail-events/trail-events.ts
12240
- import { z as z353 } from "zod";
12241
- var DTOTrailEventType = z353.enum([
12275
+ import { z as z354 } from "zod";
12276
+ var DTOTrailEventType = z354.enum([
12242
12277
  "IterationCreated",
12243
12278
  "IterationBookmarked",
12244
12279
  "FeatureCreated",
@@ -12256,124 +12291,124 @@ var DTOTrailEventType = z353.enum([
12256
12291
  "FeaturePublished",
12257
12292
  "FeatureUnpublished"
12258
12293
  ]);
12259
- var DTOTrailEventBase = z353.object({
12260
- id: z353.string(),
12261
- projectId: z353.string(),
12262
- userId: z353.string(),
12263
- createdAt: z353.coerce.date(),
12264
- updatedAt: z353.coerce.date()
12265
- });
12266
- var DTOTrailEventIterationCreatedPayload = z353.object({
12267
- iterationName: z353.string(),
12268
- iterationId: z353.string().uuid(),
12269
- featureId: z353.string().uuid()
12270
- });
12271
- var DTOTrailEventIterationBookmarkedPayload = z353.object({
12272
- iterationId: z353.string().uuid(),
12273
- featureId: z353.string().uuid(),
12274
- iterationName: z353.string()
12275
- });
12276
- var DTOTrailEventIterationPromotedPayload = z353.object({
12277
- iterationId: z353.string().uuid(),
12278
- featureId: z353.string().uuid(),
12279
- iterationName: z353.string()
12280
- });
12281
- var DTOTrailEventFeatureCreatedPayload = z353.object({
12282
- featureId: z353.string().uuid(),
12283
- name: z353.string(),
12284
- description: z353.string().optional()
12285
- });
12286
- var DTOTrailEventFeatureDeletedPayload = z353.object({
12287
- featureId: z353.string().uuid(),
12288
- name: z353.string()
12289
- });
12290
- var DTOTrailEventFeatureArchivedPayload = z353.object({
12291
- featureId: z353.string().uuid(),
12292
- name: z353.string()
12293
- });
12294
- var DTOTrailEventDocumentCreatedPayload = z353.object({
12295
- documentId: z353.string().uuid(),
12296
- title: z353.string(),
12297
- sectionId: z353.string().uuid().optional()
12298
- });
12299
- var DTOTrailEventDocumentDeletedPayload = z353.object({
12300
- documentId: z353.string().uuid(),
12301
- title: z353.string()
12302
- });
12303
- var DTOTrailEventDocumentUpdatedPayload = z353.object({
12304
- documentId: z353.string().uuid(),
12305
- title: z353.string(),
12306
- sectionId: z353.string().uuid().optional()
12307
- });
12308
- var DTOTrailEventDocumentCommentSentPayload = z353.object({
12309
- documentId: z353.string().uuid(),
12310
- title: z353.string(),
12311
- sectionId: z353.string().uuid().optional()
12312
- });
12313
- var DTOTrailEventProjectCreatedPayload = z353.object({
12314
- name: z353.string(),
12315
- description: z353.string().optional()
12316
- });
12317
- var DTOTrailEventFeaturePublishedPayload = z353.object({
12318
- featureId: z353.string().uuid(),
12319
- featureName: z353.string(),
12320
- iterationId: z353.string().uuid().nullish(),
12321
- iterationName: z353.string().nullish()
12322
- });
12323
- var DTOTrailEventFeatureUnpublishedPayload = z353.object({
12324
- featureId: z353.string().uuid(),
12325
- featureName: z353.string(),
12326
- iterationId: z353.string().uuid().nullish(),
12327
- iterationName: z353.string().nullish()
12328
- });
12329
- var DTOTrailEventProjectArchivedPayload = z353.object({
12330
- name: z353.string()
12331
- });
12332
- var DTOTrailEventProjectContextCreatedPayload = z353.object({
12333
- contextId: z353.number(),
12334
- name: z353.string(),
12335
- description: z353.string().optional()
12336
- });
12337
- var DTOTrailEventProjectContextArchivedPayload = z353.object({
12338
- contextId: z353.number()
12339
- });
12340
- var DTOTrailEventPayload = z353.discriminatedUnion("type", [
12341
- z353.object({ type: z353.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
12342
- z353.object({ type: z353.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
12343
- z353.object({ type: z353.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
12344
- z353.object({ type: z353.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
12345
- z353.object({ type: z353.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
12346
- z353.object({ type: z353.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
12347
- z353.object({ type: z353.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
12348
- z353.object({ type: z353.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12349
- z353.object({ type: z353.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
12350
- z353.object({ type: z353.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
12351
- z353.object({ type: z353.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
12352
- z353.object({ type: z353.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
12353
- z353.object({ type: z353.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
12354
- z353.object({ type: z353.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
12355
- z353.object({ type: z353.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
12356
- z353.object({ type: z353.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
12294
+ var DTOTrailEventBase = z354.object({
12295
+ id: z354.string(),
12296
+ projectId: z354.string(),
12297
+ userId: z354.string(),
12298
+ createdAt: z354.coerce.date(),
12299
+ updatedAt: z354.coerce.date()
12300
+ });
12301
+ var DTOTrailEventIterationCreatedPayload = z354.object({
12302
+ iterationName: z354.string(),
12303
+ iterationId: z354.string().uuid(),
12304
+ featureId: z354.string().uuid()
12305
+ });
12306
+ var DTOTrailEventIterationBookmarkedPayload = z354.object({
12307
+ iterationId: z354.string().uuid(),
12308
+ featureId: z354.string().uuid(),
12309
+ iterationName: z354.string()
12310
+ });
12311
+ var DTOTrailEventIterationPromotedPayload = z354.object({
12312
+ iterationId: z354.string().uuid(),
12313
+ featureId: z354.string().uuid(),
12314
+ iterationName: z354.string()
12315
+ });
12316
+ var DTOTrailEventFeatureCreatedPayload = z354.object({
12317
+ featureId: z354.string().uuid(),
12318
+ name: z354.string(),
12319
+ description: z354.string().optional()
12320
+ });
12321
+ var DTOTrailEventFeatureDeletedPayload = z354.object({
12322
+ featureId: z354.string().uuid(),
12323
+ name: z354.string()
12324
+ });
12325
+ var DTOTrailEventFeatureArchivedPayload = z354.object({
12326
+ featureId: z354.string().uuid(),
12327
+ name: z354.string()
12328
+ });
12329
+ var DTOTrailEventDocumentCreatedPayload = z354.object({
12330
+ documentId: z354.string().uuid(),
12331
+ title: z354.string(),
12332
+ sectionId: z354.string().uuid().optional()
12333
+ });
12334
+ var DTOTrailEventDocumentDeletedPayload = z354.object({
12335
+ documentId: z354.string().uuid(),
12336
+ title: z354.string()
12337
+ });
12338
+ var DTOTrailEventDocumentUpdatedPayload = z354.object({
12339
+ documentId: z354.string().uuid(),
12340
+ title: z354.string(),
12341
+ sectionId: z354.string().uuid().optional()
12342
+ });
12343
+ var DTOTrailEventDocumentCommentSentPayload = z354.object({
12344
+ documentId: z354.string().uuid(),
12345
+ title: z354.string(),
12346
+ sectionId: z354.string().uuid().optional()
12347
+ });
12348
+ var DTOTrailEventProjectCreatedPayload = z354.object({
12349
+ name: z354.string(),
12350
+ description: z354.string().optional()
12351
+ });
12352
+ var DTOTrailEventFeaturePublishedPayload = z354.object({
12353
+ featureId: z354.string().uuid(),
12354
+ featureName: z354.string(),
12355
+ iterationId: z354.string().uuid().nullish(),
12356
+ iterationName: z354.string().nullish()
12357
+ });
12358
+ var DTOTrailEventFeatureUnpublishedPayload = z354.object({
12359
+ featureId: z354.string().uuid(),
12360
+ featureName: z354.string(),
12361
+ iterationId: z354.string().uuid().nullish(),
12362
+ iterationName: z354.string().nullish()
12363
+ });
12364
+ var DTOTrailEventProjectArchivedPayload = z354.object({
12365
+ name: z354.string()
12366
+ });
12367
+ var DTOTrailEventProjectContextCreatedPayload = z354.object({
12368
+ contextId: z354.number(),
12369
+ name: z354.string(),
12370
+ description: z354.string().optional()
12371
+ });
12372
+ var DTOTrailEventProjectContextArchivedPayload = z354.object({
12373
+ contextId: z354.number()
12374
+ });
12375
+ var DTOTrailEventPayload = z354.discriminatedUnion("type", [
12376
+ z354.object({ type: z354.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
12377
+ z354.object({ type: z354.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
12378
+ z354.object({ type: z354.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
12379
+ z354.object({ type: z354.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
12380
+ z354.object({ type: z354.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
12381
+ z354.object({ type: z354.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
12382
+ z354.object({ type: z354.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
12383
+ z354.object({ type: z354.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12384
+ z354.object({ type: z354.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
12385
+ z354.object({ type: z354.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
12386
+ z354.object({ type: z354.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
12387
+ z354.object({ type: z354.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
12388
+ z354.object({ type: z354.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
12389
+ z354.object({ type: z354.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload }),
12390
+ z354.object({ type: z354.literal("FeaturePublished"), payload: DTOTrailEventFeaturePublishedPayload }),
12391
+ z354.object({ type: z354.literal("FeatureUnpublished"), payload: DTOTrailEventFeatureUnpublishedPayload })
12357
12392
  ]);
12358
12393
  var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
12359
12394
  var DTOTrailEventWithDetails = DTOTrailEvent.and(
12360
- z353.object({
12361
- projectName: z353.string().optional(),
12362
- userName: z353.string().optional()
12395
+ z354.object({
12396
+ projectName: z354.string().optional(),
12397
+ userName: z354.string().optional()
12363
12398
  })
12364
12399
  );
12365
- var DTOTrailEventListInput = z353.object({
12366
- projectId: z353.string()
12400
+ var DTOTrailEventListInput = z354.object({
12401
+ projectId: z354.string()
12367
12402
  });
12368
- var DTOTrailEventListResponse = z353.object({
12369
- events: z353.array(DTOTrailEventWithDetails)
12403
+ var DTOTrailEventListResponse = z354.object({
12404
+ events: z354.array(DTOTrailEventWithDetails)
12370
12405
  });
12371
12406
  var DTOTrailEventCreate = DTOTrailEventPayload.and(
12372
12407
  DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
12373
12408
  );
12374
- var DTOTrailEventClientCreate = z353.discriminatedUnion("type", [
12375
- z353.object({ type: z353.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12376
- z353.object({ type: z353.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
12409
+ var DTOTrailEventClientCreate = z354.discriminatedUnion("type", [
12410
+ z354.object({ type: z354.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
12411
+ z354.object({ type: z354.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
12377
12412
  ]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
12378
12413
 
12379
12414
  // src/api/endpoints/codegen/exporters.ts
@@ -12418,13 +12453,13 @@ var ExportersEndpoint = class {
12418
12453
  };
12419
12454
 
12420
12455
  // src/api/endpoints/codegen/jobs.ts
12421
- import { z as z354 } from "zod";
12456
+ import { z as z355 } from "zod";
12422
12457
  var ExporterJobsEndpoint = class {
12423
12458
  constructor(requestExecutor) {
12424
12459
  this.requestExecutor = requestExecutor;
12425
12460
  }
12426
12461
  list(workspaceId) {
12427
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z354.any());
12462
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z355.any());
12428
12463
  }
12429
12464
  get(workspaceId, jobId) {
12430
12465
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -12482,7 +12517,7 @@ var CodegenEndpoint = class {
12482
12517
  };
12483
12518
 
12484
12519
  // src/api/endpoints/design-system/versions/brands.ts
12485
- import { z as z355 } from "zod";
12520
+ import { z as z356 } from "zod";
12486
12521
  var BrandsEndpoint = class {
12487
12522
  constructor(requestExecutor) {
12488
12523
  this.requestExecutor = requestExecutor;
@@ -12516,7 +12551,7 @@ var BrandsEndpoint = class {
12516
12551
  });
12517
12552
  }
12518
12553
  delete(dsId, vId, brandId) {
12519
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z355.any(), {
12554
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z356.any(), {
12520
12555
  method: "DELETE"
12521
12556
  });
12522
12557
  }
@@ -12570,6 +12605,12 @@ var DocumentationEndpoint = class {
12570
12605
  constructor(requestExecutor) {
12571
12606
  this.requestExecutor = requestExecutor;
12572
12607
  }
12608
+ async getConfiguration(designSystemId, versionId) {
12609
+ return await this.requestExecutor.json(
12610
+ `/design-systems/${designSystemId}/versions/${versionId}/documentation`,
12611
+ DTODocumentationConfigurationResponse
12612
+ );
12613
+ }
12573
12614
  async getStructure(designSystemId, versionId) {
12574
12615
  return await this.requestExecutor.json(
12575
12616
  `/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
@@ -12792,7 +12833,7 @@ var ImportJobsEndpoint = class {
12792
12833
  };
12793
12834
 
12794
12835
  // src/api/endpoints/design-system/versions/overrides.ts
12795
- import { z as z356 } from "zod";
12836
+ import { z as z357 } from "zod";
12796
12837
  var OverridesEndpoint = class {
12797
12838
  constructor(requestExecutor) {
12798
12839
  this.requestExecutor = requestExecutor;
@@ -12800,7 +12841,7 @@ var OverridesEndpoint = class {
12800
12841
  create(dsId, versionId, themeId, body) {
12801
12842
  return this.requestExecutor.json(
12802
12843
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
12803
- z356.any(),
12844
+ z357.any(),
12804
12845
  {
12805
12846
  method: "POST",
12806
12847
  body
@@ -12810,7 +12851,7 @@ var OverridesEndpoint = class {
12810
12851
  };
12811
12852
 
12812
12853
  // src/api/endpoints/design-system/versions/property-definitions.ts
12813
- import { z as z357 } from "zod";
12854
+ import { z as z358 } from "zod";
12814
12855
  var ElementPropertyDefinitionsEndpoint = class {
12815
12856
  constructor(requestExecutor) {
12816
12857
  this.requestExecutor = requestExecutor;
@@ -12838,7 +12879,7 @@ var ElementPropertyDefinitionsEndpoint = class {
12838
12879
  delete(designSystemId, versionId, defId) {
12839
12880
  return this.requestExecutor.json(
12840
12881
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
12841
- z357.any(),
12882
+ z358.any(),
12842
12883
  { method: "DELETE" }
12843
12884
  );
12844
12885
  }
@@ -12877,7 +12918,7 @@ var VersionStatsEndpoint = class {
12877
12918
  };
12878
12919
 
12879
12920
  // src/api/endpoints/design-system/versions/themes.ts
12880
- import { z as z358 } from "zod";
12921
+ import { z as z359 } from "zod";
12881
12922
  var ThemesEndpoint = class {
12882
12923
  constructor(requestExecutor) {
12883
12924
  this.requestExecutor = requestExecutor;
@@ -12900,7 +12941,7 @@ var ThemesEndpoint = class {
12900
12941
  });
12901
12942
  }
12902
12943
  delete(dsId, versionId, themeId) {
12903
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z358.any(), {
12944
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z359.any(), {
12904
12945
  method: "DELETE"
12905
12946
  });
12906
12947
  }
@@ -13107,7 +13148,7 @@ var DesignSystemContactsEndpoint = class {
13107
13148
  };
13108
13149
 
13109
13150
  // src/api/endpoints/design-system/design-systems.ts
13110
- import { z as z361 } from "zod";
13151
+ import { z as z362 } from "zod";
13111
13152
 
13112
13153
  // src/api/endpoints/design-system/figma-node-structures.ts
13113
13154
  var FigmaNodeStructuresEndpoint = class {
@@ -13184,7 +13225,7 @@ var DesignSystemPageRedirectsEndpoint = class {
13184
13225
  };
13185
13226
 
13186
13227
  // src/api/endpoints/design-system/sources.ts
13187
- import { z as z359 } from "zod";
13228
+ import { z as z360 } from "zod";
13188
13229
  var DesignSystemSourcesEndpoint = class {
13189
13230
  constructor(requestExecutor) {
13190
13231
  this.requestExecutor = requestExecutor;
@@ -13202,7 +13243,7 @@ var DesignSystemSourcesEndpoint = class {
13202
13243
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
13203
13244
  }
13204
13245
  delete(dsId, sourceId) {
13205
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z359.any(), { method: "DELETE" });
13246
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z360.any(), { method: "DELETE" });
13206
13247
  }
13207
13248
  updateFigmaSource(dsId, sourceId, payload) {
13208
13249
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -13245,7 +13286,7 @@ var DesignSystemSourcesEndpoint = class {
13245
13286
  };
13246
13287
 
13247
13288
  // src/api/endpoints/design-system/storybook.ts
13248
- import { z as z360 } from "zod";
13289
+ import { z as z361 } from "zod";
13249
13290
  var StorybookEntriesEndpoint = class {
13250
13291
  constructor(requestExecutor) {
13251
13292
  this.requestExecutor = requestExecutor;
@@ -13263,7 +13304,7 @@ var StorybookEntriesEndpoint = class {
13263
13304
  );
13264
13305
  }
13265
13306
  delete(dsId, entryId) {
13266
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z360.any(), {
13307
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z361.any(), {
13267
13308
  method: "DELETE"
13268
13309
  });
13269
13310
  }
@@ -13307,7 +13348,7 @@ var DesignSystemsEndpoint = class {
13307
13348
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
13308
13349
  }
13309
13350
  delete(dsId) {
13310
- return this.requestExecutor.json(`/design-systems/${dsId}`, z361.any(), { method: "DELETE" });
13351
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z362.any(), { method: "DELETE" });
13311
13352
  }
13312
13353
  update(dsId, body) {
13313
13354
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -13781,7 +13822,7 @@ var ForgeProjectMembersEndpoint = class {
13781
13822
  };
13782
13823
 
13783
13824
  // src/api/endpoints/forge/projects.ts
13784
- import z362 from "zod";
13825
+ import z363 from "zod";
13785
13826
  var ForgeProjectsEndpoint = class {
13786
13827
  constructor(requestExecutor) {
13787
13828
  this.requestExecutor = requestExecutor;
@@ -13818,7 +13859,7 @@ var ForgeProjectsEndpoint = class {
13818
13859
  );
13819
13860
  }
13820
13861
  action(workspaceId, projectId, body) {
13821
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z362.any(), {
13862
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z363.any(), {
13822
13863
  body,
13823
13864
  method: "POST"
13824
13865
  });
@@ -13990,7 +14031,7 @@ var WorkspaceBillingEndpoint = class {
13990
14031
  };
13991
14032
 
13992
14033
  // src/api/endpoints/workspaces/chat-threads.ts
13993
- import { z as z363 } from "zod";
14034
+ import { z as z364 } from "zod";
13994
14035
  var WorkspaceChatThreadsEndpoint = class {
13995
14036
  constructor(requestExecutor) {
13996
14037
  this.requestExecutor = requestExecutor;
@@ -14022,7 +14063,7 @@ var WorkspaceChatThreadsEndpoint = class {
14022
14063
  );
14023
14064
  }
14024
14065
  delete(workspaceId, threadId) {
14025
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z363.any(), {
14066
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z364.any(), {
14026
14067
  method: "DELETE"
14027
14068
  });
14028
14069
  }
@@ -14054,7 +14095,7 @@ var ChatThreadMessagesEndpoint = class {
14054
14095
  );
14055
14096
  }
14056
14097
  score(workspaceId, threadId, body) {
14057
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z363.any(), {
14098
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z364.any(), {
14058
14099
  method: "POST",
14059
14100
  body
14060
14101
  });
@@ -14062,7 +14103,7 @@ var ChatThreadMessagesEndpoint = class {
14062
14103
  };
14063
14104
 
14064
14105
  // src/api/endpoints/workspaces/integrations.ts
14065
- import { z as z364 } from "zod";
14106
+ import { z as z365 } from "zod";
14066
14107
  var WorkspaceIntegrationsEndpoint = class {
14067
14108
  constructor(requestExecutor) {
14068
14109
  this.requestExecutor = requestExecutor;
@@ -14071,7 +14112,7 @@ var WorkspaceIntegrationsEndpoint = class {
14071
14112
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
14072
14113
  }
14073
14114
  delete(wsId, iId) {
14074
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z364.unknown(), { method: "DELETE" });
14115
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z365.unknown(), { method: "DELETE" });
14075
14116
  }
14076
14117
  };
14077
14118
 
@@ -14103,7 +14144,7 @@ var WorkspaceInvitationsEndpoint = class {
14103
14144
  };
14104
14145
 
14105
14146
  // src/api/endpoints/workspaces/members.ts
14106
- import { z as z365 } from "zod";
14147
+ import { z as z366 } from "zod";
14107
14148
  var WorkspaceMembersEndpoint = class {
14108
14149
  constructor(requestExecutor) {
14109
14150
  this.requestExecutor = requestExecutor;
@@ -14120,7 +14161,7 @@ var WorkspaceMembersEndpoint = class {
14120
14161
  });
14121
14162
  }
14122
14163
  invite(workspaceId, body) {
14123
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z365.any(), { method: "POST", body });
14164
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z366.any(), { method: "POST", body });
14124
14165
  }
14125
14166
  delete(workspaceId, userId) {
14126
14167
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -14149,7 +14190,7 @@ var WorkspaceNpmRegistryEndpoint = class {
14149
14190
  };
14150
14191
 
14151
14192
  // src/api/endpoints/workspaces/subscription.ts
14152
- import { z as z366 } from "zod";
14193
+ import { z as z367 } from "zod";
14153
14194
  var WorkspaceSubscriptionEndpoint = class {
14154
14195
  constructor(requestExecutor) {
14155
14196
  this.requestExecutor = requestExecutor;
@@ -14160,7 +14201,7 @@ var WorkspaceSubscriptionEndpoint = class {
14160
14201
  });
14161
14202
  }
14162
14203
  update(workspaceId, body) {
14163
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z366.any(), {
14204
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z367.any(), {
14164
14205
  method: "PUT",
14165
14206
  body
14166
14207
  });
@@ -14178,7 +14219,7 @@ var WorkspaceSubscriptionEndpoint = class {
14178
14219
  };
14179
14220
 
14180
14221
  // src/api/endpoints/workspaces/workspaces.ts
14181
- import { z as z367 } from "zod";
14222
+ import { z as z368 } from "zod";
14182
14223
  var WorkspacesEndpoint = class {
14183
14224
  constructor(requestExecutor) {
14184
14225
  this.requestExecutor = requestExecutor;
@@ -14214,7 +14255,7 @@ var WorkspacesEndpoint = class {
14214
14255
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
14215
14256
  }
14216
14257
  delete(workspaceId) {
14217
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z367.any(), { method: "DELETE" });
14258
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z368.any(), { method: "DELETE" });
14218
14259
  }
14219
14260
  getPortalSettings(workspaceId) {
14220
14261
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -14289,7 +14330,7 @@ var LiveblocksEndpoint = class {
14289
14330
  };
14290
14331
 
14291
14332
  // src/api/endpoints/storybook-sites.ts
14292
- import z368 from "zod";
14333
+ import z369 from "zod";
14293
14334
  var StorybookSitesEndpoint = class {
14294
14335
  constructor(requestExecutor) {
14295
14336
  this.requestExecutor = requestExecutor;
@@ -14300,7 +14341,7 @@ var StorybookSitesEndpoint = class {
14300
14341
  });
14301
14342
  }
14302
14343
  deleteSite(siteId) {
14303
- return this.requestExecutor.json(`/storybook/sites/${siteId}`, z368.unknown(), {
14344
+ return this.requestExecutor.json(`/storybook/sites/${siteId}`, z369.unknown(), {
14304
14345
  method: "DELETE"
14305
14346
  });
14306
14347
  }
@@ -14418,9 +14459,9 @@ ${bodyText}`,
14418
14459
 
14419
14460
  // src/api/transport/request-executor.ts
14420
14461
  import fetch from "node-fetch";
14421
- import { z as z369 } from "zod";
14422
- var ResponseWrapper = z369.object({
14423
- result: z369.record(z369.any())
14462
+ import { z as z370 } from "zod";
14463
+ var ResponseWrapper = z370.object({
14464
+ result: z370.record(z370.any())
14424
14465
  });
14425
14466
  var RequestExecutor = class {
14426
14467
  constructor(testServerConfig) {
@@ -14514,25 +14555,25 @@ var SupernovaApiClient = class {
14514
14555
  };
14515
14556
 
14516
14557
  // src/events/design-system.ts
14517
- import { z as z370 } from "zod";
14518
- var DTOEventFigmaNodesRendered = z370.object({
14519
- type: z370.literal("DesignSystem.FigmaNodesRendered"),
14520
- designSystemId: z370.string(),
14521
- versionId: z370.string(),
14522
- figmaNodePersistentIds: z370.string().array()
14523
- });
14524
- var DTOEventDataSourcesImported = z370.object({
14525
- type: z370.literal("DesignSystem.ImportJobFinished"),
14526
- designSystemId: z370.string(),
14527
- versionId: z370.string(),
14528
- importJobId: z370.string(),
14558
+ import { z as z371 } from "zod";
14559
+ var DTOEventFigmaNodesRendered = z371.object({
14560
+ type: z371.literal("DesignSystem.FigmaNodesRendered"),
14561
+ designSystemId: z371.string(),
14562
+ versionId: z371.string(),
14563
+ figmaNodePersistentIds: z371.string().array()
14564
+ });
14565
+ var DTOEventDataSourcesImported = z371.object({
14566
+ type: z371.literal("DesignSystem.ImportJobFinished"),
14567
+ designSystemId: z371.string(),
14568
+ versionId: z371.string(),
14569
+ importJobId: z371.string(),
14529
14570
  dataSourceType: DataSourceRemoteType,
14530
- dataSourceIds: z370.string().array()
14571
+ dataSourceIds: z371.string().array()
14531
14572
  });
14532
14573
 
14533
14574
  // src/events/event.ts
14534
- import { z as z371 } from "zod";
14535
- var DTOEvent = z371.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
14575
+ import { z as z372 } from "zod";
14576
+ var DTOEvent = z372.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
14536
14577
 
14537
14578
  // src/sync/docs-local-action-executor.ts
14538
14579
  function applyActionsLocally(input) {
@@ -14828,7 +14869,7 @@ var LocalDocsElementActionExecutor = class {
14828
14869
  import PQueue from "p-queue";
14829
14870
 
14830
14871
  // src/yjs/design-system-content/documentation-hierarchy.ts
14831
- import { z as z372 } from "zod";
14872
+ import { z as z373 } from "zod";
14832
14873
 
14833
14874
  // src/yjs/utils/key-value-storage.ts
14834
14875
  import { YKeyValue } from "y-utility/y-keyvalue";
@@ -15445,24 +15486,24 @@ var FrontendVersionRoomYDoc = class {
15445
15486
  };
15446
15487
 
15447
15488
  // src/yjs/design-system-content/documentation-hierarchy.ts
15448
- var DocumentationHierarchySettings = z372.object({
15449
- routingVersion: z372.string(),
15450
- isDraftFeatureAdopted: z372.boolean(),
15451
- isApprovalFeatureEnabled: z372.boolean(),
15452
- approvalRequiredForPublishing: z372.boolean()
15489
+ var DocumentationHierarchySettings = z373.object({
15490
+ routingVersion: z373.string(),
15491
+ isDraftFeatureAdopted: z373.boolean(),
15492
+ isApprovalFeatureEnabled: z373.boolean(),
15493
+ approvalRequiredForPublishing: z373.boolean()
15453
15494
  });
15454
15495
  function yjsToDocumentationHierarchy(doc) {
15455
15496
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
15456
15497
  }
15457
15498
 
15458
15499
  // src/yjs/design-system-content/item-configuration.ts
15459
- import { z as z373 } from "zod";
15460
- var DTODocumentationPageRoomHeaderData = z373.object({
15461
- title: z373.string(),
15500
+ import { z as z374 } from "zod";
15501
+ var DTODocumentationPageRoomHeaderData = z374.object({
15502
+ title: z374.string(),
15462
15503
  configuration: DTODocumentationItemConfigurationV2
15463
15504
  });
15464
- var DTODocumentationPageRoomHeaderDataUpdate = z373.object({
15465
- title: z373.string().optional(),
15505
+ var DTODocumentationPageRoomHeaderDataUpdate = z374.object({
15506
+ title: z374.string().optional(),
15466
15507
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
15467
15508
  });
15468
15509
  function itemConfigurationToYjs(yDoc, item) {
@@ -15497,9 +15538,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
15497
15538
  var PageSectionEditorModel = PageSectionEditorModelV2;
15498
15539
 
15499
15540
  // src/yjs/docs-editor/model/page.ts
15500
- import { z as z374 } from "zod";
15501
- var DocumentationPageEditorModel = z374.object({
15502
- blocks: z374.array(DocumentationPageContentItem)
15541
+ import { z as z375 } from "zod";
15542
+ var DocumentationPageEditorModel = z375.object({
15543
+ blocks: z375.array(DocumentationPageContentItem)
15503
15544
  });
15504
15545
 
15505
15546
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -19176,7 +19217,7 @@ var blocks = [
19176
19217
 
19177
19218
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
19178
19219
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
19179
- import { z as z375 } from "zod";
19220
+ import { z as z376 } from "zod";
19180
19221
  function yDocToPage(yDoc, definitions) {
19181
19222
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
19182
19223
  }
@@ -19252,7 +19293,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
19252
19293
  if (!id) return null;
19253
19294
  return {
19254
19295
  id,
19255
- title: getProsemirrorAttribute(prosemirrorNode, "title", z375.string()) ?? "",
19296
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z376.string()) ?? "",
19256
19297
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
19257
19298
  };
19258
19299
  }
@@ -19286,7 +19327,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
19286
19327
  });
19287
19328
  }
19288
19329
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
19289
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z375.string());
19330
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z376.string());
19290
19331
  if (!definitionId) {
19291
19332
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
19292
19333
  return [];
@@ -19327,7 +19368,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
19327
19368
  const id = getProsemirrorBlockId(prosemirrorNode);
19328
19369
  if (!id) return null;
19329
19370
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
19330
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z375.string().optional()));
19371
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z376.string().optional()));
19331
19372
  return {
19332
19373
  id,
19333
19374
  type: "Block",
@@ -19450,9 +19491,9 @@ function parseRichTextAttribute(mark) {
19450
19491
  return null;
19451
19492
  }
19452
19493
  function parseProsemirrorLink(mark) {
19453
- const href = getProsemirrorAttribute(mark, "href", z375.string().optional());
19494
+ const href = getProsemirrorAttribute(mark, "href", z376.string().optional());
19454
19495
  if (!href) return null;
19455
- const target = getProsemirrorAttribute(mark, "target", z375.string().optional());
19496
+ const target = getProsemirrorAttribute(mark, "target", z376.string().optional());
19456
19497
  const openInNewTab = target === "_blank";
19457
19498
  if (href.startsWith("@")) {
19458
19499
  return {
@@ -19471,9 +19512,9 @@ function parseProsemirrorLink(mark) {
19471
19512
  }
19472
19513
  }
19473
19514
  function parseProsemirrorCommentHighlight(mark) {
19474
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z375.string().optional());
19515
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z376.string().optional());
19475
19516
  if (!highlightId) return null;
19476
- const isResolved = getProsemirrorAttribute(mark, "resolved", z375.boolean().optional()) ?? false;
19517
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z376.boolean().optional()) ?? false;
19477
19518
  return {
19478
19519
  type: "Comment",
19479
19520
  commentHighlightId: highlightId,
@@ -19484,7 +19525,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
19484
19525
  const id = getProsemirrorBlockId(prosemirrorNode);
19485
19526
  if (!id) return null;
19486
19527
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
19487
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z375.boolean().optional()) !== false;
19528
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z376.boolean().optional()) !== false;
19488
19529
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
19489
19530
  if (!tableChild) {
19490
19531
  return emptyTable(id, variantId, 0);
@@ -19530,9 +19571,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
19530
19571
  function parseAsTableCell(prosemirrorNode) {
19531
19572
  const id = getProsemirrorBlockId(prosemirrorNode);
19532
19573
  if (!id) return null;
19533
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z375.string().optional());
19574
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z376.string().optional());
19534
19575
  let columnWidth;
19535
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z375.array(z375.number()).nullish());
19576
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z376.array(z376.number()).nullish());
19536
19577
  if (columnWidthArray) {
19537
19578
  columnWidth = roundDimension(columnWidthArray[0]);
19538
19579
  }
@@ -19568,7 +19609,7 @@ function parseAsTableNode(prosemirrorNode) {
19568
19609
  value: parseRichText(prosemirrorNode.content ?? [])
19569
19610
  };
19570
19611
  case "image":
19571
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z375.string());
19612
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z376.string());
19572
19613
  if (!items) return null;
19573
19614
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
19574
19615
  if (!parsedItems.success) return null;
@@ -19682,7 +19723,7 @@ function definitionExpectsPlaceholderItem(definition) {
19682
19723
  );
19683
19724
  }
19684
19725
  function parseBlockItems(prosemirrorNode, definition) {
19685
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z375.string());
19726
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z376.string());
19686
19727
  if (!itemsString) return null;
19687
19728
  const itemsJson = JSON.parse(itemsString);
19688
19729
  if (!Array.isArray(itemsJson)) {
@@ -19693,18 +19734,18 @@ function parseBlockItems(prosemirrorNode, definition) {
19693
19734
  }
19694
19735
  function parseAppearance(prosemirrorNode) {
19695
19736
  let appearance = {};
19696
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z375.string().optional());
19737
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z376.string().optional());
19697
19738
  if (rawAppearanceString) {
19698
19739
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
19699
19740
  if (parsedAppearance.success) {
19700
19741
  appearance = parsedAppearance.data;
19701
19742
  }
19702
19743
  }
19703
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z375.number().optional());
19744
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z376.number().optional());
19704
19745
  if (columns) {
19705
19746
  appearance.numberOfColumns = columns;
19706
19747
  }
19707
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z375.string().optional());
19748
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z376.string().optional());
19708
19749
  if (backgroundColor) {
19709
19750
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
19710
19751
  if (parsedColor.success) {
@@ -19805,12 +19846,12 @@ function valueSchemaForPropertyType(type) {
19805
19846
  }
19806
19847
  }
19807
19848
  function getProsemirrorBlockId(prosemirrorNode) {
19808
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z375.string());
19849
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z376.string());
19809
19850
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
19810
19851
  return id;
19811
19852
  }
19812
19853
  function getProsemirrorBlockVariantId(prosemirrorNode) {
19813
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z375.string()));
19854
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z376.string()));
19814
19855
  }
19815
19856
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
19816
19857
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -21061,6 +21102,8 @@ export {
21061
21102
  DTODocumentationAnalyticsRequest,
21062
21103
  DTODocumentationAnalyticsTimeFrame,
21063
21104
  DTODocumentationAnalyticsTimeFrameComparison,
21105
+ DTODocumentationConfiguration,
21106
+ DTODocumentationConfigurationResponse,
21064
21107
  DTODocumentationDraftChangeType,
21065
21108
  DTODocumentationDraftState,
21066
21109
  DTODocumentationDraftStateCreated,
@@ -21840,6 +21883,7 @@ export {
21840
21883
  documentationAnalyticsToHeatMapDto,
21841
21884
  documentationAnalyticsToPageComparisonDto,
21842
21885
  documentationAnalyticsToPageDto,
21886
+ documentationConfigurationToDto,
21843
21887
  documentationItemConfigurationToDTOV1,
21844
21888
  documentationItemConfigurationToDTOV2,
21845
21889
  documentationPageToDTOV2,