@supernova-studio/client 1.38.1 → 1.39.0

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
@@ -5196,7 +5196,8 @@ var ForgeProjectArtifact = z176.object({
5196
5196
  createdAt: z176.coerce.date(),
5197
5197
  updatedAt: z176.coerce.date(),
5198
5198
  createdByUserId: z176.string(),
5199
- sectionId: Id.optional()
5199
+ sectionId: Id.optional(),
5200
+ threadId: z176.string().optional()
5200
5201
  });
5201
5202
  var ForgeProjectContextDependency = z177.object({
5202
5203
  packageName: z177.string(),
@@ -5237,7 +5238,8 @@ var ProjectFeature = z178.object({
5237
5238
  updatedAt: z178.coerce.date().optional(),
5238
5239
  numberOfIterations: z178.number().min(0).default(0),
5239
5240
  numberOfBookmarkedIterations: z178.number().min(0).default(0),
5240
- lastReplyTimestamp: z178.coerce.date().optional()
5241
+ lastReplyTimestamp: z178.coerce.date().optional(),
5242
+ threadId: z178.string().optional()
5241
5243
  });
5242
5244
  var ForgeProjectFigmaNode = z179.object({
5243
5245
  id: z179.string().uuid(),
@@ -9477,77 +9479,15 @@ var DTODeleteForgeIterationMessageResponse = z314.object({
9477
9479
  ok: z314.literal(true)
9478
9480
  });
9479
9481
 
9480
- // src/api/dto/forge/project.ts
9481
- import { z as z316 } from "zod";
9482
-
9483
- // src/api/dto/forge/project-invitation.ts
9484
- import { z as z315 } from "zod";
9485
- var DTOForgeProjectInvitation = ForgeProjectInvitation;
9486
- var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9487
- email: true,
9488
- role: true
9489
- }).extend({
9490
- workspaceRole: WorkspaceRoleSchema
9491
- });
9492
- var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9493
- workspaceRole: true
9494
- });
9495
- var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9496
- email: true
9497
- });
9498
- var DTOForgeProjectInvitationsListResponse = z315.object({
9499
- invitations: z315.array(DTOForgeProjectInvitation)
9500
- });
9501
- var DTOForgeProjectInvitationGetResponse = z315.object({
9502
- invitation: DTOForgeProjectInvitation
9503
- });
9504
- var DTOForgeProjectInvitationCreateResponse = z315.object({
9505
- invitation: DTOForgeProjectInvitation
9506
- });
9507
- var DTOForgeProjectInvitationUpdateResponse = z315.object({
9508
- invitation: DTOForgeProjectInvitation.nullable()
9509
- });
9510
- var DTOForgeProjectInvitationRemoveResponse = z315.object({
9511
- ok: z315.literal(true)
9512
- });
9513
-
9514
- // src/api/dto/forge/project.ts
9515
- var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
9516
- context: ForgeProjectContext
9517
- });
9518
- var DTOForgeProjectCreate = ForgeProject.pick({
9519
- instruction: true,
9520
- name: true,
9521
- meta: true,
9522
- tags: true,
9523
- accessMode: true,
9524
- defaultRole: true,
9525
- fpContextId: true,
9526
- isArchived: true,
9527
- emoji: true
9528
- }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
9529
- var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
9530
- id: z316.string()
9531
- });
9532
- var DTOForgeProjectGetResponse = z316.object({ project: DTOForgeProject.nullable() });
9533
- var DTOForgeProjectListResponse = z316.object({ projects: z316.array(DTOForgeProject) });
9534
- var DTOForgeProjectCreateResponse = z316.object({
9535
- project: DTOForgeProject
9536
- });
9537
- var DTOForgeProjectUpdateResponse = z316.object({
9538
- project: DTOForgeProject
9539
- });
9540
- var DTOForgeProjectRemoveResponse = z316.object({ ok: z316.literal(true) });
9541
-
9542
9482
  // src/api/dto/forge/project-action.ts
9543
- import z320 from "zod";
9483
+ import z318 from "zod";
9544
9484
 
9545
9485
  // src/api/dto/forge/project-artifact.ts
9546
- import { z as z318 } from "zod";
9486
+ import { z as z316 } from "zod";
9547
9487
 
9548
9488
  // src/api/dto/forge/project-section.ts
9549
- import z317 from "zod";
9550
- var AfterSectionId = z317.string().uuid().nullish().optional();
9489
+ import z315 from "zod";
9490
+ var AfterSectionId = z315.string().uuid().nullish().optional();
9551
9491
  var DTOForgeSection = ForgeSection;
9552
9492
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9553
9493
  id: true,
@@ -9558,12 +9498,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9558
9498
  });
9559
9499
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
9560
9500
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
9561
- deleteChildren: z317.boolean().default(false)
9501
+ deleteChildren: z315.boolean().default(false)
9562
9502
  });
9563
9503
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
9564
9504
  afterSectionId: AfterSectionId
9565
9505
  });
9566
- var DTOForgeSectionItemMoveInput = z317.object({
9506
+ var DTOForgeSectionItemMoveInput = z315.object({
9567
9507
  id: Id,
9568
9508
  sectionId: Id.nullish().optional(),
9569
9509
  // undefined=stay, null=no section, string=move to section
@@ -9573,118 +9513,118 @@ var DTOForgeSectionItemMoveInput = z317.object({
9573
9513
 
9574
9514
  // src/api/dto/forge/project-artifact.ts
9575
9515
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
9576
- var DTOForgeProjectArtifactUpdateInput = z318.object({
9577
- id: z318.string(),
9578
- title: z318.string().optional()
9516
+ var DTOForgeProjectArtifactUpdateInput = z316.object({
9517
+ id: z316.string(),
9518
+ title: z316.string().optional()
9579
9519
  });
9580
- var DTOForgeProjectArtifactCreateInput = z318.object({
9581
- id: z318.string(),
9582
- title: z318.string(),
9583
- sectionId: z318.string().optional(),
9584
- afterArtifactId: z318.string().optional().nullable()
9520
+ var DTOForgeProjectArtifactCreateInput = z316.object({
9521
+ id: z316.string(),
9522
+ title: z316.string(),
9523
+ sectionId: z316.string().optional(),
9524
+ afterArtifactId: z316.string().optional().nullable()
9585
9525
  });
9586
- var DTOForgeProjectArtifactDeleteInput = z318.object({
9526
+ var DTOForgeProjectArtifactDeleteInput = z316.object({
9587
9527
  id: Id
9588
9528
  });
9589
9529
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
9590
- var DTOForgeProjectArtifactGetResponse = z318.object({
9530
+ var DTOForgeProjectArtifactGetResponse = z316.object({
9591
9531
  artifact: DTOForgeProjectArtifact
9592
9532
  });
9593
- var DTOForgeProjectArtifactCreateResponse = z318.object({
9533
+ var DTOForgeProjectArtifactCreateResponse = z316.object({
9594
9534
  artifact: DTOForgeProjectArtifact
9595
9535
  });
9596
- var DTOForgeProjectArtifactUpdateResponse = z318.object({
9536
+ var DTOForgeProjectArtifactUpdateResponse = z316.object({
9597
9537
  artifact: DTOForgeProjectArtifact
9598
9538
  });
9599
- var DTOForgeProjectArtifactDeleteResponse = z318.object({
9600
- ok: z318.literal(true)
9539
+ var DTOForgeProjectArtifactDeleteResponse = z316.object({
9540
+ ok: z316.literal(true)
9601
9541
  });
9602
- var DTOForgeProjectArtifactMoveResponse = z318.object({
9542
+ var DTOForgeProjectArtifactMoveResponse = z316.object({
9603
9543
  artifact: DTOForgeProjectArtifact
9604
9544
  });
9605
- var DTOForgeProjectArtifactsListResponse = z318.object({
9606
- artifacts: z318.array(DTOForgeProjectArtifact)
9545
+ var DTOForgeProjectArtifactsListResponse = z316.object({
9546
+ artifacts: z316.array(DTOForgeProjectArtifact)
9607
9547
  });
9608
9548
 
9609
9549
  // src/api/dto/forge/project-feature.ts
9610
- import z319 from "zod";
9550
+ import z317 from "zod";
9611
9551
  var DTOForgeProjectFeature = ProjectFeature;
9612
- var DTOForgeProjectFeatureListResponse = z319.object({
9552
+ var DTOForgeProjectFeatureListResponse = z317.object({
9613
9553
  features: DTOForgeProjectFeature.array()
9614
9554
  });
9615
- var DTOForgeProjectFeatureGetResponse = z319.object({
9555
+ var DTOForgeProjectFeatureGetResponse = z317.object({
9616
9556
  feature: DTOForgeProjectFeature
9617
9557
  });
9618
- var DTOForgeProjectFeatureCreateInput = z319.object({
9558
+ var DTOForgeProjectFeatureCreateInput = z317.object({
9619
9559
  id: Id,
9620
- name: z319.string(),
9621
- description: z319.string(),
9560
+ name: z317.string(),
9561
+ description: z317.string(),
9622
9562
  sectionId: Id.optional(),
9623
9563
  afterFeatureId: Id.nullable().optional(),
9624
9564
  initialMessage: DTOFeatureMessageCreateInput
9625
9565
  });
9626
- var DTOForgeProjectFeatureUpdateInput = z319.object({
9566
+ var DTOForgeProjectFeatureUpdateInput = z317.object({
9627
9567
  id: Id,
9628
- name: z319.string().optional(),
9629
- description: z319.string().optional(),
9630
- isArchived: z319.boolean().optional(),
9568
+ name: z317.string().optional(),
9569
+ description: z317.string().optional(),
9570
+ isArchived: z317.boolean().optional(),
9631
9571
  status: ProjectFeatureStatus.optional()
9632
9572
  });
9633
- var DTOForgeProjectFeatureDeleteInput = z319.object({
9573
+ var DTOForgeProjectFeatureDeleteInput = z317.object({
9634
9574
  id: Id
9635
9575
  });
9636
9576
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9637
9577
 
9638
9578
  // src/api/dto/forge/project-action.ts
9639
- var DTOForgeProjectActionFeatureCreate = z320.object({
9640
- type: z320.literal("FeatureCreate"),
9579
+ var DTOForgeProjectActionFeatureCreate = z318.object({
9580
+ type: z318.literal("FeatureCreate"),
9641
9581
  input: DTOForgeProjectFeatureCreateInput
9642
9582
  });
9643
- var DTOForgeProjectActionFeatureUpdate = z320.object({
9644
- type: z320.literal("FeatureUpdate"),
9583
+ var DTOForgeProjectActionFeatureUpdate = z318.object({
9584
+ type: z318.literal("FeatureUpdate"),
9645
9585
  input: DTOForgeProjectFeatureUpdateInput
9646
9586
  });
9647
- var DTOForgeProjectActionFeatureMove = z320.object({
9648
- type: z320.literal("FeatureMove"),
9587
+ var DTOForgeProjectActionFeatureMove = z318.object({
9588
+ type: z318.literal("FeatureMove"),
9649
9589
  input: DTOForgeProjectFeatureMoveInput
9650
9590
  });
9651
- var DTOForgeProjectActionFeatureDelete = z320.object({
9652
- type: z320.literal("FeatureDelete"),
9591
+ var DTOForgeProjectActionFeatureDelete = z318.object({
9592
+ type: z318.literal("FeatureDelete"),
9653
9593
  input: DTOForgeProjectFeatureDeleteInput
9654
9594
  });
9655
- var DTOForgeProjectActionArtifactCreate = z320.object({
9656
- type: z320.literal("ArtifactCreate"),
9595
+ var DTOForgeProjectActionArtifactCreate = z318.object({
9596
+ type: z318.literal("ArtifactCreate"),
9657
9597
  input: DTOForgeProjectArtifactCreateInput
9658
9598
  });
9659
- var DTOForgeProjectActionArtifactUpdate = z320.object({
9660
- type: z320.literal("ArtifactUpdate"),
9599
+ var DTOForgeProjectActionArtifactUpdate = z318.object({
9600
+ type: z318.literal("ArtifactUpdate"),
9661
9601
  input: DTOForgeProjectArtifactUpdateInput
9662
9602
  });
9663
- var DTOForgeProjectActionArtifactDelete = z320.object({
9664
- type: z320.literal("ArtifactDelete"),
9603
+ var DTOForgeProjectActionArtifactDelete = z318.object({
9604
+ type: z318.literal("ArtifactDelete"),
9665
9605
  input: DTOForgeProjectArtifactDeleteInput
9666
9606
  });
9667
- var DTOForgeProjectActionArtifactMove = z320.object({
9668
- type: z320.literal("ArtifactMove"),
9607
+ var DTOForgeProjectActionArtifactMove = z318.object({
9608
+ type: z318.literal("ArtifactMove"),
9669
9609
  input: DTOForgeProjectArtifactMoveInput
9670
9610
  });
9671
- var DTOForgeProjectActionSectionCreate = z320.object({
9672
- type: z320.literal("SectionCreate"),
9611
+ var DTOForgeProjectActionSectionCreate = z318.object({
9612
+ type: z318.literal("SectionCreate"),
9673
9613
  input: DTOForgeSectionCreateInput
9674
9614
  });
9675
- var DTOForgeProjectActionSectionUpdate = z320.object({
9676
- type: z320.literal("SectionUpdate"),
9615
+ var DTOForgeProjectActionSectionUpdate = z318.object({
9616
+ type: z318.literal("SectionUpdate"),
9677
9617
  input: DTOForgeSectionUpdateInput
9678
9618
  });
9679
- var DTOForgeProjectActionSectionDelete = z320.object({
9680
- type: z320.literal("SectionDelete"),
9619
+ var DTOForgeProjectActionSectionDelete = z318.object({
9620
+ type: z318.literal("SectionDelete"),
9681
9621
  input: DTOForgeSectionDeleteInput
9682
9622
  });
9683
- var DTOForgeProjectActionSectionMove = z320.object({
9684
- type: z320.literal("SectionMove"),
9623
+ var DTOForgeProjectActionSectionMove = z318.object({
9624
+ type: z318.literal("SectionMove"),
9685
9625
  input: DTOForgeSectionMoveInput
9686
9626
  });
9687
- var DTOForgeProjectAction = z320.discriminatedUnion("type", [
9627
+ var DTOForgeProjectAction = z318.discriminatedUnion("type", [
9688
9628
  //features
9689
9629
  DTOForgeProjectActionFeatureCreate,
9690
9630
  DTOForgeProjectActionFeatureUpdate,
@@ -9701,22 +9641,47 @@ var DTOForgeProjectAction = z320.discriminatedUnion("type", [
9701
9641
  DTOForgeProjectActionSectionDelete,
9702
9642
  DTOForgeProjectActionSectionMove
9703
9643
  ]).and(
9704
- z320.object({
9705
- tId: z320.string().optional()
9644
+ z318.object({
9645
+ tId: z318.string().optional()
9706
9646
  })
9707
9647
  );
9708
9648
 
9709
9649
  // src/api/dto/forge/project-artifact-room.ts
9710
- import { z as z321 } from "zod";
9711
- var DTOForgeProjectArtifactRoom = z321.object({
9712
- id: z321.string()
9650
+ import { z as z319 } from "zod";
9651
+ var DTOForgeProjectArtifactRoom = z319.object({
9652
+ id: z319.string()
9713
9653
  });
9714
- var DTOForgeProjectArtifactRoomResponse = z321.object({
9654
+ var DTOForgeProjectArtifactRoomResponse = z319.object({
9715
9655
  room: DTOForgeProjectArtifactRoom
9716
9656
  });
9717
9657
 
9658
+ // src/api/dto/forge/project-context-v2.ts
9659
+ import { z as z320 } from "zod";
9660
+ var DTOForgeComponentSetType = z320.enum(["Shadcn"]);
9661
+ var DTOForgeComponentSet = z320.object({
9662
+ type: DTOForgeComponentSetType
9663
+ });
9664
+ var DTOForgeIconSetType = z320.enum(["Phosphor", "Lucide", "Tabler"]);
9665
+ var DTOForgeIconSet = z320.object({
9666
+ type: DTOForgeIconSetType
9667
+ // ... additional icon set props
9668
+ });
9669
+ var DTOForgeProjectContextV2 = z320.object({
9670
+ name: z320.string(),
9671
+ description: z320.string(),
9672
+ productContext: z320.string(),
9673
+ componentSet: DTOForgeComponentSet,
9674
+ iconSet: DTOForgeIconSet,
9675
+ additionalContext: z320.string()
9676
+ });
9677
+ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2;
9678
+ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.partial();
9679
+ var DTOForgeProjectContextResponseV2 = z320.object({ context: DTOForgeProjectContextV2 });
9680
+ var DTOForgeProjectContextListQueryV2 = z320.object({ workspaceId: z320.string() });
9681
+ var DTOForgeProjectContextListResponseV2 = z320.object({ contexts: z320.array(DTOForgeProjectContextV2) });
9682
+
9718
9683
  // src/api/dto/forge/project-context.ts
9719
- import { z as z322 } from "zod";
9684
+ import { z as z321 } from "zod";
9720
9685
  var DTOForgeProjectContext = ForgeProjectContext;
9721
9686
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9722
9687
  definition: true,
@@ -9728,81 +9693,87 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9728
9693
  tailwindConfig: true,
9729
9694
  styling: true
9730
9695
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
9731
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z322.string() });
9732
- var DTOForgeProjectContextGetResponse = z322.object({ context: DTOForgeProjectContext });
9733
- var DTOForgeProjectContextListResponse = z322.object({ contexts: z322.array(DTOForgeProjectContext) });
9734
- var DTOForgeProjectContextCreateResponse = z322.object({ context: DTOForgeProjectContext });
9735
- var DTOForgeProjectContextUpdateResponse = z322.object({ context: DTOForgeProjectContext });
9736
- var DTOForgeProjectContextRemoveResponse = z322.object({
9737
- ok: z322.literal(true)
9696
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z321.string() });
9697
+ var DTOForgeProjectContextGetResponse = z321.object({ context: DTOForgeProjectContext });
9698
+ var DTOForgeProjectContextListResponse = z321.object({ contexts: z321.array(DTOForgeProjectContext) });
9699
+ var DTOForgeProjectContextCreateResponse = z321.object({ context: DTOForgeProjectContext });
9700
+ var DTOForgeProjectContextUpdateResponse = z321.object({ context: DTOForgeProjectContext });
9701
+ var DTOForgeProjectContextRemoveResponse = z321.object({
9702
+ ok: z321.literal(true)
9738
9703
  });
9739
9704
 
9740
- // src/api/dto/forge/project-context-v2.ts
9741
- import { z as z323 } from "zod";
9742
- var DTOForgeComponentSetType = z323.enum(["Shadcn"]);
9743
- var DTOForgeComponentSet = z323.object({
9744
- type: DTOForgeComponentSetType
9745
- });
9746
- var DTOForgeIconSetType = z323.enum(["Phosphor", "Lucide", "Tabler"]);
9747
- var DTOForgeIconSet = z323.object({
9748
- type: DTOForgeIconSetType
9749
- // ... additional icon set props
9750
- });
9751
- var DTOForgeProjectContextV2 = z323.object({
9752
- name: z323.string(),
9753
- description: z323.string(),
9754
- productContext: z323.string(),
9755
- componentSet: DTOForgeComponentSet,
9756
- iconSet: DTOForgeIconSet,
9757
- additionalContext: z323.string()
9758
- });
9759
- var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2;
9760
- var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.partial();
9761
- var DTOForgeProjectContextResponseV2 = z323.object({ context: DTOForgeProjectContextV2 });
9762
- var DTOForgeProjectContextListQueryV2 = z323.object({ workspaceId: z323.string() });
9763
- var DTOForgeProjectContextListResponseV2 = z323.object({ contexts: z323.array(DTOForgeProjectContextV2) });
9764
-
9765
9705
  // src/api/dto/forge/project-figma-node.ts
9766
9706
  var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
9767
9707
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
9768
9708
 
9769
9709
  // src/api/dto/forge/project-file.ts
9770
- import { z as z324 } from "zod";
9771
- var DTOForgeProjectFile = z324.object({
9772
- id: z324.string(),
9773
- name: z324.string(),
9774
- checksum: z324.string(),
9775
- pendingUpload: z324.boolean().optional(),
9776
- url: z324.string(),
9777
- size: z324.number()
9778
- });
9779
- var DTOForgeProjectFileListResponse = z324.object({
9780
- files: z324.array(DTOForgeProjectFile)
9781
- });
9782
- var DTOForgeProjectFileUploadPayloadItem = z324.object({
9783
- size: z324.number(),
9784
- name: z324.string(),
9785
- checksum: z324.string()
9786
- });
9787
- var DTOForgeProjectFileUploadPayload = z324.object({
9788
- files: z324.array(DTOForgeProjectFileUploadPayloadItem)
9789
- });
9790
- var DTOForgeProjectFileUploadResponse = z324.object({
9791
- files: z324.array(DTOForgeProjectFile),
9792
- uploadUrls: z324.array(
9793
- z324.object({
9794
- fileId: z324.string(),
9795
- uploadUrl: z324.string()
9710
+ import { z as z322 } from "zod";
9711
+ var DTOForgeProjectFile = z322.object({
9712
+ id: z322.string(),
9713
+ name: z322.string(),
9714
+ checksum: z322.string(),
9715
+ pendingUpload: z322.boolean().optional(),
9716
+ url: z322.string(),
9717
+ size: z322.number()
9718
+ });
9719
+ var DTOForgeProjectFileListResponse = z322.object({
9720
+ files: z322.array(DTOForgeProjectFile)
9721
+ });
9722
+ var DTOForgeProjectFileUploadPayloadItem = z322.object({
9723
+ size: z322.number(),
9724
+ name: z322.string(),
9725
+ checksum: z322.string()
9726
+ });
9727
+ var DTOForgeProjectFileUploadPayload = z322.object({
9728
+ files: z322.array(DTOForgeProjectFileUploadPayloadItem)
9729
+ });
9730
+ var DTOForgeProjectFileUploadResponse = z322.object({
9731
+ files: z322.array(DTOForgeProjectFile),
9732
+ uploadUrls: z322.array(
9733
+ z322.object({
9734
+ fileId: z322.string(),
9735
+ uploadUrl: z322.string()
9796
9736
  })
9797
9737
  )
9798
9738
  });
9799
- var DTOForgeProjectFileUploadFinalizePayload = z324.object({
9800
- fileIds: z324.array(z324.string())
9739
+ var DTOForgeProjectFileUploadFinalizePayload = z322.object({
9740
+ fileIds: z322.array(z322.string())
9741
+ });
9742
+ var DTOForgeProjectFileUploadFinalizeResponse = z322.object({ ok: z322.literal(true) });
9743
+
9744
+ // src/api/dto/forge/project-invitation.ts
9745
+ import { z as z323 } from "zod";
9746
+ var DTOForgeProjectInvitation = ForgeProjectInvitation;
9747
+ var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9748
+ email: true,
9749
+ role: true
9750
+ }).extend({
9751
+ workspaceRole: WorkspaceRoleSchema
9752
+ });
9753
+ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9754
+ workspaceRole: true
9755
+ });
9756
+ var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
9757
+ email: true
9758
+ });
9759
+ var DTOForgeProjectInvitationsListResponse = z323.object({
9760
+ invitations: z323.array(DTOForgeProjectInvitation)
9761
+ });
9762
+ var DTOForgeProjectInvitationGetResponse = z323.object({
9763
+ invitation: DTOForgeProjectInvitation
9764
+ });
9765
+ var DTOForgeProjectInvitationCreateResponse = z323.object({
9766
+ invitation: DTOForgeProjectInvitation
9767
+ });
9768
+ var DTOForgeProjectInvitationUpdateResponse = z323.object({
9769
+ invitation: DTOForgeProjectInvitation.nullable()
9770
+ });
9771
+ var DTOForgeProjectInvitationRemoveResponse = z323.object({
9772
+ ok: z323.literal(true)
9801
9773
  });
9802
- var DTOForgeProjectFileUploadFinalizeResponse = z324.object({ ok: z324.literal(true) });
9803
9774
 
9804
9775
  // src/api/dto/forge/project-iteration-old.ts
9805
- import { z as z325 } from "zod";
9776
+ import { z as z324 } from "zod";
9806
9777
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
9807
9778
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9808
9779
  artifacts: true,
@@ -9813,7 +9784,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
9813
9784
  messages: DTOForgeIterationMessage.array(),
9814
9785
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
9815
9786
  });
9816
- var DTOGetForgeProjectIterationResponse = z325.object({
9787
+ var DTOGetForgeProjectIterationResponse = z324.object({
9817
9788
  iteration: DTOForgeProjectIteration.nullable()
9818
9789
  });
9819
9790
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -9823,20 +9794,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
9823
9794
  mergeMeta: true,
9824
9795
  createdAt: true
9825
9796
  });
9826
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z325.string() });
9827
- var DTOCreateForgeProjectIterationResponse = z325.object({
9797
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z324.string() });
9798
+ var DTOCreateForgeProjectIterationResponse = z324.object({
9828
9799
  iteration: DTOForgeProjectIteration
9829
9800
  });
9830
- var DTOUpdateForgeProjectIterationResponse = z325.object({
9801
+ var DTOUpdateForgeProjectIterationResponse = z324.object({
9831
9802
  iteration: DTOForgeProjectIteration.nullable()
9832
9803
  });
9833
- var DTODeleteForgeProjectIterationResponse = z325.object({
9834
- ok: z325.literal(true)
9804
+ var DTODeleteForgeProjectIterationResponse = z324.object({
9805
+ ok: z324.literal(true)
9835
9806
  });
9836
- var DTOForgeProjectIterationListResponse = z325.object({ iterations: z325.array(DTOForgeProjectIteration) });
9807
+ var DTOForgeProjectIterationListResponse = z324.object({ iterations: z324.array(DTOForgeProjectIteration) });
9837
9808
 
9838
9809
  // src/api/dto/forge/project-member.ts
9839
- import { z as z326 } from "zod";
9810
+ import { z as z325 } from "zod";
9840
9811
  var DTOForgeProjectMemberRole = ForgeProjectRole;
9841
9812
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
9842
9813
  user: DTOUser,
@@ -9850,34 +9821,63 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
9850
9821
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
9851
9822
  userId: true
9852
9823
  });
9853
- var DTOForgeProjectMembersListResponse = z326.object({
9854
- members: z326.array(DTOForgeProjectMember),
9855
- invitations: z326.array(DTOForgeProjectInvitation)
9824
+ var DTOForgeProjectMembersListResponse = z325.object({
9825
+ members: z325.array(DTOForgeProjectMember),
9826
+ invitations: z325.array(DTOForgeProjectInvitation)
9856
9827
  });
9857
- var DTOForgeProjectMemberGetResponse = z326.object({
9828
+ var DTOForgeProjectMemberGetResponse = z325.object({
9858
9829
  member: DTOForgeProjectMember
9859
9830
  });
9860
- var DTOForgeProjectMemberCreateResponse = z326.object({
9831
+ var DTOForgeProjectMemberCreateResponse = z325.object({
9861
9832
  member: DTOForgeProjectMember
9862
9833
  });
9863
- var DTOForgeProjectMemberUpdateResponse = z326.object({
9834
+ var DTOForgeProjectMemberUpdateResponse = z325.object({
9864
9835
  member: DTOForgeProjectMember.nullable()
9865
9836
  });
9866
- var DTOForgeProjectMemberRemoveResponse = z326.object({
9867
- ok: z326.literal(true)
9837
+ var DTOForgeProjectMemberRemoveResponse = z325.object({
9838
+ ok: z325.literal(true)
9868
9839
  });
9869
- var DTOAddMembersToForgeProject = z326.object({
9840
+ var DTOAddMembersToForgeProject = z325.object({
9870
9841
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
9871
9842
  });
9872
9843
 
9873
9844
  // src/api/dto/forge/project-room.ts
9845
+ import { z as z326 } from "zod";
9846
+ var DTOForgeProjectRoom = z326.object({
9847
+ id: z326.string()
9848
+ });
9849
+ var DTOForgeProjectRoomResponse = z326.object({
9850
+ room: DTOForgeProjectRoom
9851
+ });
9852
+
9853
+ // src/api/dto/forge/project.ts
9874
9854
  import { z as z327 } from "zod";
9875
- var DTOForgeProjectRoom = z327.object({
9855
+ var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
9856
+ context: ForgeProjectContext
9857
+ });
9858
+ var DTOForgeProjectCreate = ForgeProject.pick({
9859
+ instruction: true,
9860
+ name: true,
9861
+ meta: true,
9862
+ tags: true,
9863
+ accessMode: true,
9864
+ defaultRole: true,
9865
+ fpContextId: true,
9866
+ isArchived: true,
9867
+ emoji: true
9868
+ }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
9869
+ var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
9876
9870
  id: z327.string()
9877
9871
  });
9878
- var DTOForgeProjectRoomResponse = z327.object({
9879
- room: DTOForgeProjectRoom
9872
+ var DTOForgeProjectGetResponse = z327.object({ project: DTOForgeProject.nullable() });
9873
+ var DTOForgeProjectListResponse = z327.object({ projects: z327.array(DTOForgeProject) });
9874
+ var DTOForgeProjectCreateResponse = z327.object({
9875
+ project: DTOForgeProject
9880
9876
  });
9877
+ var DTOForgeProjectUpdateResponse = z327.object({
9878
+ project: DTOForgeProject
9879
+ });
9880
+ var DTOForgeProjectRemoveResponse = z327.object({ ok: z327.literal(true) });
9881
9881
 
9882
9882
  // src/api/dto/forge/threads.ts
9883
9883
  import { z as z328 } from "zod";
@@ -10020,6 +10020,145 @@ var DTOThemeCreatePayload = z332.object({
10020
10020
  overrides: DTOThemeOverride.array()
10021
10021
  });
10022
10022
 
10023
+ // src/api/dto/threads/threads.ts
10024
+ import z333 from "zod";
10025
+ var DTOThreadSubjectType = z333.enum(["ForgeDocument", "ForgeFeature"]);
10026
+ var DTOThreadAgentType = z333.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10027
+ var DTOThread = z333.object({
10028
+ id: z333.string(),
10029
+ liveblocksRoomId: z333.string(),
10030
+ defaultAgentType: DTOThreadAgentType,
10031
+ subjectId: z333.string(),
10032
+ subjectType: DTOThreadSubjectType,
10033
+ createdAt: z333.string(),
10034
+ updatedAt: z333.string()
10035
+ });
10036
+ var DTOThreadMessageUserSender = z333.object({
10037
+ type: z333.literal("User"),
10038
+ userId: z333.string()
10039
+ });
10040
+ var DTOThreadMessageAgentSender = z333.object({
10041
+ type: z333.literal("Agent"),
10042
+ agentType: DTOThreadAgentType
10043
+ });
10044
+ var DTOThreadMessageSystemSender = z333.object({
10045
+ type: z333.literal("System"),
10046
+ onBehalfOfUserId: z333.string()
10047
+ });
10048
+ var DTOThreadMessageSender = z333.discriminatedUnion("type", [
10049
+ DTOThreadMessageUserSender,
10050
+ DTOThreadMessageAgentSender,
10051
+ DTOThreadMessageSystemSender
10052
+ ]);
10053
+ var DTOThreadReaction = z333.object({
10054
+ messageId: Id,
10055
+ userId: z333.string(),
10056
+ emoji: z333.string(),
10057
+ createdAt: z333.string()
10058
+ });
10059
+ var DTOThreadMessageAttachments = z333.object({
10060
+ iterationId: Id.optional()
10061
+ // TODO Artem: files, etc
10062
+ });
10063
+ var DTOThreadMessage = z333.object({
10064
+ id: Id,
10065
+ threadId: z333.string(),
10066
+ /**
10067
+ * Describes where the message came from
10068
+ */
10069
+ sender: DTOThreadMessageSender,
10070
+ /**
10071
+ * Content of the message
10072
+ */
10073
+ body: z333.string(),
10074
+ /**
10075
+ * Indicates if the message was sent in the agentic mode, if so this message will cause an
10076
+ * AI agent to generate a response and perform an action within the feature
10077
+ */
10078
+ isPrompt: z333.boolean().optional(),
10079
+ /**
10080
+ * Indicates if the sender requested agent to reply in a thread
10081
+ */
10082
+ startsNewThread: z333.boolean().optional(),
10083
+ /**
10084
+ * If defined, this message is considered to be a reply in a thread under parent message id
10085
+ */
10086
+ parentMessageId: Id.optional(),
10087
+ /**
10088
+ * Link agent response object describing current state of
10089
+ */
10090
+ agentResponseTrackerId: Id.optional().nullable(),
10091
+ attachments: DTOThreadMessageAttachments.optional(),
10092
+ /**
10093
+ * If defined, this message is considered to be a reply to different message
10094
+ */
10095
+ replyToMessageId: Id.optional(),
10096
+ createdAt: z333.string(),
10097
+ updatedAt: z333.string().optional()
10098
+ });
10099
+ var DTOThreadAgentResponseTracker = z333.object({
10100
+ id: Id,
10101
+ currentBody: z333.string().default("")
10102
+ });
10103
+ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10104
+ id: true,
10105
+ body: true,
10106
+ isPrompt: true,
10107
+ startsNewThread: true,
10108
+ parentMessageId: true,
10109
+ attachments: true
10110
+ });
10111
+ var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10112
+ id: true
10113
+ }).merge(
10114
+ z333.object({
10115
+ body: DTOThreadMessage.shape.body,
10116
+ attachments: DTOThreadMessage.shape.attachments,
10117
+ agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
10118
+ }).partial()
10119
+ );
10120
+ var DTOThreadReactionCreateInput = z333.object({
10121
+ messageId: Id,
10122
+ emoji: z333.string()
10123
+ });
10124
+ var DTOThreadReactionDeleteInput = z333.object({
10125
+ messageId: Id,
10126
+ emoji: z333.string()
10127
+ });
10128
+ var DTOThreadMessageResponse = z333.object({
10129
+ message: DTOThreadMessage
10130
+ });
10131
+ var DTOThreadReactionResponse = z333.object({
10132
+ reaction: DTOThreadReaction
10133
+ });
10134
+ var DTOThreadMessageListResponse = z333.object({
10135
+ messages: DTOThreadMessage.array(),
10136
+ reactions: DTOThreadReaction.array(),
10137
+ lastSeenMessageId: z333.string().optional()
10138
+ });
10139
+ var DTOThreadEventMessagesSent = z333.object({
10140
+ type: z333.literal("MessagesSent"),
10141
+ data: DTOThreadMessage.array()
10142
+ });
10143
+ var DTOThreadEventMessagesUpdated = z333.object({
10144
+ type: z333.literal("MessagesUpdated"),
10145
+ data: DTOThreadMessage.array()
10146
+ });
10147
+ var DTOThreadEventReactionsSent = z333.object({
10148
+ type: z333.literal("ReactionsSent"),
10149
+ data: DTOThreadReaction.array()
10150
+ });
10151
+ var DTOThreadEventReactionsDeleted = z333.object({
10152
+ type: z333.literal("ReactionsDeleted"),
10153
+ data: DTOThreadReaction.array()
10154
+ });
10155
+ var DTOThreadEvent = z333.discriminatedUnion("type", [
10156
+ DTOThreadEventMessagesSent,
10157
+ DTOThreadEventMessagesUpdated,
10158
+ DTOThreadEventReactionsSent,
10159
+ DTOThreadEventReactionsDeleted
10160
+ ]);
10161
+
10023
10162
  // src/utils/figma.ts
10024
10163
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
10025
10164
  var nodeIdRegex = /^\d+-\d+$/;
@@ -10252,13 +10391,13 @@ var ExportersEndpoint = class {
10252
10391
  };
10253
10392
 
10254
10393
  // src/api/endpoints/codegen/jobs.ts
10255
- import { z as z333 } from "zod";
10394
+ import { z as z334 } from "zod";
10256
10395
  var ExporterJobsEndpoint = class {
10257
10396
  constructor(requestExecutor) {
10258
10397
  this.requestExecutor = requestExecutor;
10259
10398
  }
10260
10399
  list(workspaceId) {
10261
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z333.any());
10400
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z334.any());
10262
10401
  }
10263
10402
  get(workspaceId, jobId) {
10264
10403
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -10316,7 +10455,7 @@ var CodegenEndpoint = class {
10316
10455
  };
10317
10456
 
10318
10457
  // src/api/endpoints/design-system/versions/brands.ts
10319
- import { z as z334 } from "zod";
10458
+ import { z as z335 } from "zod";
10320
10459
  var BrandsEndpoint = class {
10321
10460
  constructor(requestExecutor) {
10322
10461
  this.requestExecutor = requestExecutor;
@@ -10350,7 +10489,7 @@ var BrandsEndpoint = class {
10350
10489
  });
10351
10490
  }
10352
10491
  delete(dsId, vId, brandId) {
10353
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z334.any(), {
10492
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z335.any(), {
10354
10493
  method: "DELETE"
10355
10494
  });
10356
10495
  }
@@ -10626,7 +10765,7 @@ var ImportJobsEndpoint = class {
10626
10765
  };
10627
10766
 
10628
10767
  // src/api/endpoints/design-system/versions/overrides.ts
10629
- import { z as z335 } from "zod";
10768
+ import { z as z336 } from "zod";
10630
10769
  var OverridesEndpoint = class {
10631
10770
  constructor(requestExecutor) {
10632
10771
  this.requestExecutor = requestExecutor;
@@ -10634,7 +10773,7 @@ var OverridesEndpoint = class {
10634
10773
  create(dsId, versionId, themeId, body) {
10635
10774
  return this.requestExecutor.json(
10636
10775
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
10637
- z335.any(),
10776
+ z336.any(),
10638
10777
  {
10639
10778
  method: "POST",
10640
10779
  body
@@ -10644,7 +10783,7 @@ var OverridesEndpoint = class {
10644
10783
  };
10645
10784
 
10646
10785
  // src/api/endpoints/design-system/versions/property-definitions.ts
10647
- import { z as z336 } from "zod";
10786
+ import { z as z337 } from "zod";
10648
10787
  var ElementPropertyDefinitionsEndpoint = class {
10649
10788
  constructor(requestExecutor) {
10650
10789
  this.requestExecutor = requestExecutor;
@@ -10672,7 +10811,7 @@ var ElementPropertyDefinitionsEndpoint = class {
10672
10811
  delete(designSystemId, versionId, defId) {
10673
10812
  return this.requestExecutor.json(
10674
10813
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
10675
- z336.any(),
10814
+ z337.any(),
10676
10815
  { method: "DELETE" }
10677
10816
  );
10678
10817
  }
@@ -10711,7 +10850,7 @@ var VersionStatsEndpoint = class {
10711
10850
  };
10712
10851
 
10713
10852
  // src/api/endpoints/design-system/versions/themes.ts
10714
- import { z as z337 } from "zod";
10853
+ import { z as z338 } from "zod";
10715
10854
  var ThemesEndpoint = class {
10716
10855
  constructor(requestExecutor) {
10717
10856
  this.requestExecutor = requestExecutor;
@@ -10734,7 +10873,7 @@ var ThemesEndpoint = class {
10734
10873
  });
10735
10874
  }
10736
10875
  delete(dsId, versionId, themeId) {
10737
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z337.any(), {
10876
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z338.any(), {
10738
10877
  method: "DELETE"
10739
10878
  });
10740
10879
  }
@@ -10907,7 +11046,7 @@ var DesignSystemContactsEndpoint = class {
10907
11046
  };
10908
11047
 
10909
11048
  // src/api/endpoints/design-system/design-systems.ts
10910
- import { z as z341 } from "zod";
11049
+ import { z as z342 } from "zod";
10911
11050
 
10912
11051
  // src/api/endpoints/design-system/figma-node-structures.ts
10913
11052
  var FigmaNodeStructuresEndpoint = class {
@@ -10984,7 +11123,7 @@ var DesignSystemPageRedirectsEndpoint = class {
10984
11123
  };
10985
11124
 
10986
11125
  // src/api/endpoints/design-system/sources.ts
10987
- import { z as z338 } from "zod";
11126
+ import { z as z339 } from "zod";
10988
11127
  var DesignSystemSourcesEndpoint = class {
10989
11128
  constructor(requestExecutor) {
10990
11129
  this.requestExecutor = requestExecutor;
@@ -11002,7 +11141,7 @@ var DesignSystemSourcesEndpoint = class {
11002
11141
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
11003
11142
  }
11004
11143
  delete(dsId, sourceId) {
11005
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z338.any(), { method: "DELETE" });
11144
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z339.any(), { method: "DELETE" });
11006
11145
  }
11007
11146
  updateFigmaSource(dsId, sourceId, payload) {
11008
11147
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -11045,7 +11184,7 @@ var DesignSystemSourcesEndpoint = class {
11045
11184
  };
11046
11185
 
11047
11186
  // src/api/endpoints/design-system/storybook.ts
11048
- import { z as z339 } from "zod";
11187
+ import { z as z340 } from "zod";
11049
11188
  var StorybookEntriesEndpoint = class {
11050
11189
  constructor(requestExecutor) {
11051
11190
  this.requestExecutor = requestExecutor;
@@ -11063,14 +11202,14 @@ var StorybookEntriesEndpoint = class {
11063
11202
  );
11064
11203
  }
11065
11204
  delete(dsId, entryId) {
11066
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z339.any(), {
11205
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z340.any(), {
11067
11206
  method: "DELETE"
11068
11207
  });
11069
11208
  }
11070
11209
  };
11071
11210
 
11072
11211
  // src/api/endpoints/design-system/storybook-hosting.ts
11073
- import { z as z340 } from "zod";
11212
+ import { z as z341 } from "zod";
11074
11213
  var StorybookHostingEndpoint = class {
11075
11214
  constructor(requestExecutor) {
11076
11215
  this.requestExecutor = requestExecutor;
@@ -11084,7 +11223,7 @@ var StorybookHostingEndpoint = class {
11084
11223
  delete(dsId, storybookUploadId) {
11085
11224
  return this.requestExecutor.json(
11086
11225
  `/design-systems/${dsId}/storybook/${storybookUploadId}`,
11087
- z340.object({ ok: z340.boolean() }),
11226
+ z341.object({ ok: z341.boolean() }),
11088
11227
  {
11089
11228
  method: "DELETE"
11090
11229
  }
@@ -11142,7 +11281,7 @@ var DesignSystemsEndpoint = class {
11142
11281
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
11143
11282
  }
11144
11283
  delete(dsId) {
11145
- return this.requestExecutor.json(`/design-systems/${dsId}`, z341.any(), { method: "DELETE" });
11284
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z342.any(), { method: "DELETE" });
11146
11285
  }
11147
11286
  update(dsId, body) {
11148
11287
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -11265,7 +11404,7 @@ var ForgeFeatureArtifactsEndpoint = class {
11265
11404
  };
11266
11405
 
11267
11406
  // src/api/endpoints/forge/feature-iterations.ts
11268
- import z342 from "zod";
11407
+ import z343 from "zod";
11269
11408
  var ForgeFeatureIterationsEndpoint = class {
11270
11409
  constructor(requestExecutor) {
11271
11410
  this.requestExecutor = requestExecutor;
@@ -11282,7 +11421,7 @@ var ForgeFeatureIterationsEndpoint = class {
11282
11421
  updateArtifacts(workspaceId, projectId, featureId, body) {
11283
11422
  return this.requestExecutor.json(
11284
11423
  `/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
11285
- z342.any(),
11424
+ z343.any(),
11286
11425
  {
11287
11426
  body,
11288
11427
  method: "POST"
@@ -11517,7 +11656,7 @@ var ForgeProjectMembersEndpoint = class {
11517
11656
  };
11518
11657
 
11519
11658
  // src/api/endpoints/forge/projects.ts
11520
- import z343 from "zod";
11659
+ import z344 from "zod";
11521
11660
  var ForgeProjectsEndpoint = class {
11522
11661
  constructor(requestExecutor) {
11523
11662
  this.requestExecutor = requestExecutor;
@@ -11562,7 +11701,7 @@ var ForgeProjectsEndpoint = class {
11562
11701
  );
11563
11702
  }
11564
11703
  action(workspaceId, projectId, body) {
11565
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z343.any(), {
11704
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z344.any(), {
11566
11705
  body,
11567
11706
  method: "POST"
11568
11707
  });
@@ -11645,7 +11784,7 @@ var ForgeProjectIterationsEndpoint = class {
11645
11784
  };
11646
11785
 
11647
11786
  // src/api/endpoints/workspaces/chat-threads.ts
11648
- import { z as z344 } from "zod";
11787
+ import { z as z345 } from "zod";
11649
11788
  var WorkspaceChatThreadsEndpoint = class {
11650
11789
  constructor(requestExecutor) {
11651
11790
  this.requestExecutor = requestExecutor;
@@ -11677,7 +11816,7 @@ var WorkspaceChatThreadsEndpoint = class {
11677
11816
  );
11678
11817
  }
11679
11818
  delete(workspaceId, threadId) {
11680
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z344.any(), {
11819
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z345.any(), {
11681
11820
  method: "DELETE"
11682
11821
  });
11683
11822
  }
@@ -11709,7 +11848,7 @@ var ChatThreadMessagesEndpoint = class {
11709
11848
  );
11710
11849
  }
11711
11850
  score(workspaceId, threadId, body) {
11712
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z344.any(), {
11851
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z345.any(), {
11713
11852
  method: "POST",
11714
11853
  body
11715
11854
  });
@@ -11717,7 +11856,7 @@ var ChatThreadMessagesEndpoint = class {
11717
11856
  };
11718
11857
 
11719
11858
  // src/api/endpoints/workspaces/integrations.ts
11720
- import { z as z345 } from "zod";
11859
+ import { z as z346 } from "zod";
11721
11860
  var WorkspaceIntegrationsEndpoint = class {
11722
11861
  constructor(requestExecutor) {
11723
11862
  this.requestExecutor = requestExecutor;
@@ -11726,7 +11865,7 @@ var WorkspaceIntegrationsEndpoint = class {
11726
11865
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
11727
11866
  }
11728
11867
  delete(wsId, iId) {
11729
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z345.unknown(), { method: "DELETE" });
11868
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z346.unknown(), { method: "DELETE" });
11730
11869
  }
11731
11870
  };
11732
11871
 
@@ -11758,7 +11897,7 @@ var WorkspaceInvitationsEndpoint = class {
11758
11897
  };
11759
11898
 
11760
11899
  // src/api/endpoints/workspaces/members.ts
11761
- import { z as z346 } from "zod";
11900
+ import { z as z347 } from "zod";
11762
11901
  var WorkspaceMembersEndpoint = class {
11763
11902
  constructor(requestExecutor) {
11764
11903
  this.requestExecutor = requestExecutor;
@@ -11775,7 +11914,7 @@ var WorkspaceMembersEndpoint = class {
11775
11914
  });
11776
11915
  }
11777
11916
  invite(workspaceId, body) {
11778
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z346.any(), { method: "POST", body });
11917
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z347.any(), { method: "POST", body });
11779
11918
  }
11780
11919
  delete(workspaceId, userId) {
11781
11920
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -11804,7 +11943,7 @@ var WorkspaceNpmRegistryEndpoint = class {
11804
11943
  };
11805
11944
 
11806
11945
  // src/api/endpoints/workspaces/workspaces.ts
11807
- import { z as z347 } from "zod";
11946
+ import { z as z348 } from "zod";
11808
11947
  var WorkspacesEndpoint = class {
11809
11948
  constructor(requestExecutor) {
11810
11949
  this.requestExecutor = requestExecutor;
@@ -11836,10 +11975,10 @@ var WorkspacesEndpoint = class {
11836
11975
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
11837
11976
  }
11838
11977
  delete(workspaceId) {
11839
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z347.any(), { method: "DELETE" });
11978
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z348.any(), { method: "DELETE" });
11840
11979
  }
11841
11980
  subscription(workspaceId) {
11842
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z347.any(), { method: "GET" });
11981
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z348.any(), { method: "GET" });
11843
11982
  }
11844
11983
  getPortalSettings(workspaceId) {
11845
11984
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -11950,9 +12089,9 @@ ${bodyText}`,
11950
12089
 
11951
12090
  // src/api/transport/request-executor.ts
11952
12091
  import fetch from "node-fetch";
11953
- import { z as z348 } from "zod";
11954
- var ResponseWrapper = z348.object({
11955
- result: z348.record(z348.any())
12092
+ import { z as z349 } from "zod";
12093
+ var ResponseWrapper = z349.object({
12094
+ result: z349.record(z349.any())
11956
12095
  });
11957
12096
  var RequestExecutor = class {
11958
12097
  constructor(testServerConfig) {
@@ -12029,25 +12168,25 @@ var SupernovaApiClient = class {
12029
12168
  };
12030
12169
 
12031
12170
  // src/events/design-system.ts
12032
- import { z as z349 } from "zod";
12033
- var DTOEventFigmaNodesRendered = z349.object({
12034
- type: z349.literal("DesignSystem.FigmaNodesRendered"),
12035
- designSystemId: z349.string(),
12036
- versionId: z349.string(),
12037
- figmaNodePersistentIds: z349.string().array()
12038
- });
12039
- var DTOEventDataSourcesImported = z349.object({
12040
- type: z349.literal("DesignSystem.ImportJobFinished"),
12041
- designSystemId: z349.string(),
12042
- versionId: z349.string(),
12043
- importJobId: z349.string(),
12171
+ import { z as z350 } from "zod";
12172
+ var DTOEventFigmaNodesRendered = z350.object({
12173
+ type: z350.literal("DesignSystem.FigmaNodesRendered"),
12174
+ designSystemId: z350.string(),
12175
+ versionId: z350.string(),
12176
+ figmaNodePersistentIds: z350.string().array()
12177
+ });
12178
+ var DTOEventDataSourcesImported = z350.object({
12179
+ type: z350.literal("DesignSystem.ImportJobFinished"),
12180
+ designSystemId: z350.string(),
12181
+ versionId: z350.string(),
12182
+ importJobId: z350.string(),
12044
12183
  dataSourceType: DataSourceRemoteType,
12045
- dataSourceIds: z349.string().array()
12184
+ dataSourceIds: z350.string().array()
12046
12185
  });
12047
12186
 
12048
12187
  // src/events/event.ts
12049
- import { z as z350 } from "zod";
12050
- var DTOEvent = z350.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12188
+ import { z as z351 } from "zod";
12189
+ var DTOEvent = z351.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12051
12190
 
12052
12191
  // src/sync/docs-local-action-executor.ts
12053
12192
  function applyActionsLocally(input) {
@@ -12343,7 +12482,7 @@ var LocalDocsElementActionExecutor = class {
12343
12482
  import PQueue from "p-queue";
12344
12483
 
12345
12484
  // src/yjs/design-system-content/documentation-hierarchy.ts
12346
- import { z as z351 } from "zod";
12485
+ import { z as z352 } from "zod";
12347
12486
 
12348
12487
  // src/yjs/version-room/base.ts
12349
12488
  var VersionRoomBaseYDoc = class {
@@ -12893,24 +13032,24 @@ var FrontendVersionRoomYDoc = class {
12893
13032
  };
12894
13033
 
12895
13034
  // src/yjs/design-system-content/documentation-hierarchy.ts
12896
- var DocumentationHierarchySettings = z351.object({
12897
- routingVersion: z351.string(),
12898
- isDraftFeatureAdopted: z351.boolean(),
12899
- isApprovalFeatureEnabled: z351.boolean(),
12900
- approvalRequiredForPublishing: z351.boolean()
13035
+ var DocumentationHierarchySettings = z352.object({
13036
+ routingVersion: z352.string(),
13037
+ isDraftFeatureAdopted: z352.boolean(),
13038
+ isApprovalFeatureEnabled: z352.boolean(),
13039
+ approvalRequiredForPublishing: z352.boolean()
12901
13040
  });
12902
13041
  function yjsToDocumentationHierarchy(doc) {
12903
13042
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
12904
13043
  }
12905
13044
 
12906
13045
  // src/yjs/design-system-content/item-configuration.ts
12907
- import { z as z352 } from "zod";
12908
- var DTODocumentationPageRoomHeaderData = z352.object({
12909
- title: z352.string(),
13046
+ import { z as z353 } from "zod";
13047
+ var DTODocumentationPageRoomHeaderData = z353.object({
13048
+ title: z353.string(),
12910
13049
  configuration: DTODocumentationItemConfigurationV2
12911
13050
  });
12912
- var DTODocumentationPageRoomHeaderDataUpdate = z352.object({
12913
- title: z352.string().optional(),
13051
+ var DTODocumentationPageRoomHeaderDataUpdate = z353.object({
13052
+ title: z353.string().optional(),
12914
13053
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
12915
13054
  });
12916
13055
  function itemConfigurationToYjs(yDoc, item) {
@@ -12945,9 +13084,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
12945
13084
  var PageSectionEditorModel = PageSectionEditorModelV2;
12946
13085
 
12947
13086
  // src/yjs/docs-editor/model/page.ts
12948
- import { z as z353 } from "zod";
12949
- var DocumentationPageEditorModel = z353.object({
12950
- blocks: z353.array(DocumentationPageContentItem)
13087
+ import { z as z354 } from "zod";
13088
+ var DocumentationPageEditorModel = z354.object({
13089
+ blocks: z354.array(DocumentationPageContentItem)
12951
13090
  });
12952
13091
 
12953
13092
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -16624,7 +16763,7 @@ var blocks = [
16624
16763
 
16625
16764
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
16626
16765
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
16627
- import { z as z354 } from "zod";
16766
+ import { z as z355 } from "zod";
16628
16767
  function yDocToPage(yDoc, definitions) {
16629
16768
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
16630
16769
  }
@@ -16700,7 +16839,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
16700
16839
  if (!id) return null;
16701
16840
  return {
16702
16841
  id,
16703
- title: getProsemirrorAttribute(prosemirrorNode, "title", z354.string()) ?? "",
16842
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z355.string()) ?? "",
16704
16843
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
16705
16844
  };
16706
16845
  }
@@ -16734,7 +16873,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
16734
16873
  });
16735
16874
  }
16736
16875
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
16737
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z354.string());
16876
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z355.string());
16738
16877
  if (!definitionId) {
16739
16878
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
16740
16879
  return [];
@@ -16775,7 +16914,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
16775
16914
  const id = getProsemirrorBlockId(prosemirrorNode);
16776
16915
  if (!id) return null;
16777
16916
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
16778
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z354.string().optional()));
16917
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z355.string().optional()));
16779
16918
  return {
16780
16919
  id,
16781
16920
  type: "Block",
@@ -16898,9 +17037,9 @@ function parseRichTextAttribute(mark) {
16898
17037
  return null;
16899
17038
  }
16900
17039
  function parseProsemirrorLink(mark) {
16901
- const href = getProsemirrorAttribute(mark, "href", z354.string().optional());
17040
+ const href = getProsemirrorAttribute(mark, "href", z355.string().optional());
16902
17041
  if (!href) return null;
16903
- const target = getProsemirrorAttribute(mark, "target", z354.string().optional());
17042
+ const target = getProsemirrorAttribute(mark, "target", z355.string().optional());
16904
17043
  const openInNewTab = target === "_blank";
16905
17044
  if (href.startsWith("@")) {
16906
17045
  return {
@@ -16919,9 +17058,9 @@ function parseProsemirrorLink(mark) {
16919
17058
  }
16920
17059
  }
16921
17060
  function parseProsemirrorCommentHighlight(mark) {
16922
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z354.string().optional());
17061
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z355.string().optional());
16923
17062
  if (!highlightId) return null;
16924
- const isResolved = getProsemirrorAttribute(mark, "resolved", z354.boolean().optional()) ?? false;
17063
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z355.boolean().optional()) ?? false;
16925
17064
  return {
16926
17065
  type: "Comment",
16927
17066
  commentHighlightId: highlightId,
@@ -16932,7 +17071,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
16932
17071
  const id = getProsemirrorBlockId(prosemirrorNode);
16933
17072
  if (!id) return null;
16934
17073
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
16935
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z354.boolean().optional()) !== false;
17074
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z355.boolean().optional()) !== false;
16936
17075
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
16937
17076
  if (!tableChild) {
16938
17077
  return emptyTable(id, variantId, 0);
@@ -16978,9 +17117,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
16978
17117
  function parseAsTableCell(prosemirrorNode) {
16979
17118
  const id = getProsemirrorBlockId(prosemirrorNode);
16980
17119
  if (!id) return null;
16981
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z354.string().optional());
17120
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z355.string().optional());
16982
17121
  let columnWidth;
16983
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z354.array(z354.number()).nullish());
17122
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z355.array(z355.number()).nullish());
16984
17123
  if (columnWidthArray) {
16985
17124
  columnWidth = roundDimension(columnWidthArray[0]);
16986
17125
  }
@@ -17016,7 +17155,7 @@ function parseAsTableNode(prosemirrorNode) {
17016
17155
  value: parseRichText(prosemirrorNode.content ?? [])
17017
17156
  };
17018
17157
  case "image":
17019
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
17158
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z355.string());
17020
17159
  if (!items) return null;
17021
17160
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
17022
17161
  if (!parsedItems.success) return null;
@@ -17130,7 +17269,7 @@ function definitionExpectsPlaceholderItem(definition) {
17130
17269
  );
17131
17270
  }
17132
17271
  function parseBlockItems(prosemirrorNode, definition) {
17133
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
17272
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z355.string());
17134
17273
  if (!itemsString) return null;
17135
17274
  const itemsJson = JSON.parse(itemsString);
17136
17275
  if (!Array.isArray(itemsJson)) {
@@ -17141,18 +17280,18 @@ function parseBlockItems(prosemirrorNode, definition) {
17141
17280
  }
17142
17281
  function parseAppearance(prosemirrorNode) {
17143
17282
  let appearance = {};
17144
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z354.string().optional());
17283
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z355.string().optional());
17145
17284
  if (rawAppearanceString) {
17146
17285
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
17147
17286
  if (parsedAppearance.success) {
17148
17287
  appearance = parsedAppearance.data;
17149
17288
  }
17150
17289
  }
17151
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z354.number().optional());
17290
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z355.number().optional());
17152
17291
  if (columns) {
17153
17292
  appearance.numberOfColumns = columns;
17154
17293
  }
17155
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z354.string().optional());
17294
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z355.string().optional());
17156
17295
  if (backgroundColor) {
17157
17296
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
17158
17297
  if (parsedColor.success) {
@@ -17253,12 +17392,12 @@ function valueSchemaForPropertyType(type) {
17253
17392
  }
17254
17393
  }
17255
17394
  function getProsemirrorBlockId(prosemirrorNode) {
17256
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z354.string());
17395
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z355.string());
17257
17396
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
17258
17397
  return id;
17259
17398
  }
17260
17399
  function getProsemirrorBlockVariantId(prosemirrorNode) {
17261
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z354.string()));
17400
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z355.string()));
17262
17401
  }
17263
17402
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
17264
17403
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -18875,6 +19014,29 @@ export {
18875
19014
  DTOThemeOverride,
18876
19015
  DTOThemeOverrideCreatePayload,
18877
19016
  DTOThemeResponse,
19017
+ DTOThread,
19018
+ DTOThreadAgentResponseTracker,
19019
+ DTOThreadAgentType,
19020
+ DTOThreadEvent,
19021
+ DTOThreadEventMessagesSent,
19022
+ DTOThreadEventMessagesUpdated,
19023
+ DTOThreadEventReactionsDeleted,
19024
+ DTOThreadEventReactionsSent,
19025
+ DTOThreadMessage,
19026
+ DTOThreadMessageAgentSender,
19027
+ DTOThreadMessageAttachments,
19028
+ DTOThreadMessageCreateInput,
19029
+ DTOThreadMessageListResponse,
19030
+ DTOThreadMessageResponse,
19031
+ DTOThreadMessageSender,
19032
+ DTOThreadMessageSystemSender,
19033
+ DTOThreadMessageUpdateInput,
19034
+ DTOThreadMessageUserSender,
19035
+ DTOThreadReaction,
19036
+ DTOThreadReactionCreateInput,
19037
+ DTOThreadReactionDeleteInput,
19038
+ DTOThreadReactionResponse,
19039
+ DTOThreadSubjectType,
18878
19040
  DTOTokenCollection,
18879
19041
  DTOTokenCollectionsListReponse,
18880
19042
  DTOTransferOwnershipPayload,