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