@supernova-studio/client 1.87.1 → 1.87.3

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