@supernova-studio/client 1.41.1 → 1.41.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
@@ -9598,14 +9598,161 @@ var DTODeleteForgeIterationMessageResponse = z316.object({
9598
9598
  });
9599
9599
 
9600
9600
  // src/api/dto/forge/project-action.ts
9601
- import z320 from "zod";
9601
+ import z321 from "zod";
9602
9602
 
9603
9603
  // src/api/dto/forge/project-artifact.ts
9604
- import { z as z318 } from "zod";
9604
+ import { z as z319 } from "zod";
9605
9605
 
9606
- // src/api/dto/forge/project-section.ts
9606
+ // src/api/dto/threads/threads.ts
9607
9607
  import z317 from "zod";
9608
- var AfterSectionId = z317.string().uuid().nullish().optional();
9608
+ var DTOThreadSubjectType = z317.enum(["ForgeDocument", "ForgeFeature"]);
9609
+ var DTOThreadAgentType = z317.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
9610
+ var DTOThread = z317.object({
9611
+ id: z317.string(),
9612
+ liveblocksRoomId: z317.string(),
9613
+ defaultAgentType: DTOThreadAgentType,
9614
+ subjectId: z317.string(),
9615
+ subjectType: DTOThreadSubjectType,
9616
+ createdAt: z317.string(),
9617
+ updatedAt: z317.string()
9618
+ });
9619
+ var DTOThreadMessageUserSender = z317.object({
9620
+ type: z317.literal("User"),
9621
+ userId: z317.string()
9622
+ });
9623
+ var DTOThreadMessageAgentSender = z317.object({
9624
+ type: z317.literal("Agent"),
9625
+ agentType: DTOThreadAgentType
9626
+ });
9627
+ var DTOThreadMessageSystemSender = z317.object({
9628
+ type: z317.literal("System"),
9629
+ onBehalfOfUserId: z317.string()
9630
+ });
9631
+ var DTOThreadMessageSender = z317.discriminatedUnion("type", [
9632
+ DTOThreadMessageUserSender,
9633
+ DTOThreadMessageAgentSender,
9634
+ DTOThreadMessageSystemSender
9635
+ ]);
9636
+ var DTOThreadReaction = z317.object({
9637
+ messageId: Id,
9638
+ userId: z317.string(),
9639
+ emoji: z317.string(),
9640
+ createdAt: z317.string()
9641
+ });
9642
+ var DTOThreadMessageAttachments = z317.object({
9643
+ iterationId: Id.optional(),
9644
+ files: DTOFileReference.array().optional()
9645
+ });
9646
+ var DTOThreadMessage = z317.object({
9647
+ id: Id,
9648
+ threadId: z317.string(),
9649
+ /**
9650
+ * Describes where the message came from
9651
+ */
9652
+ sender: DTOThreadMessageSender,
9653
+ /**
9654
+ * Content of the message
9655
+ */
9656
+ body: z317.string(),
9657
+ /**
9658
+ * Indicates if the message was sent in the agentic mode, if so this message will cause an
9659
+ * AI agent to generate a response and perform an action within the feature
9660
+ */
9661
+ isPrompt: z317.boolean().optional(),
9662
+ /**
9663
+ * Indicates if the sender requested agent to reply in a thread
9664
+ */
9665
+ startsNewThread: z317.boolean().optional(),
9666
+ /**
9667
+ * If defined, this message is considered to be a reply in a thread under parent message id
9668
+ */
9669
+ parentMessageId: Id.optional(),
9670
+ /**
9671
+ * Link agent response object describing current state of
9672
+ */
9673
+ agentResponseTrackerId: Id.optional().nullable(),
9674
+ attachments: DTOThreadMessageAttachments.optional(),
9675
+ /**
9676
+ * If defined, this message is considered to be a reply to different message
9677
+ */
9678
+ replyToMessageId: Id.optional(),
9679
+ createdAt: z317.string(),
9680
+ updatedAt: z317.string().optional()
9681
+ });
9682
+ var DTOThreadAgentResponseTracker = z317.object({
9683
+ id: Id,
9684
+ currentBody: z317.string().default("")
9685
+ });
9686
+ var DTOThreadMessageAttachmentsCreateInput = z317.object({
9687
+ iterationId: Id.optional(),
9688
+ fileIds: z317.string().array().optional()
9689
+ });
9690
+ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9691
+ id: true,
9692
+ body: true,
9693
+ isPrompt: true,
9694
+ startsNewThread: true,
9695
+ parentMessageId: true
9696
+ }).extend({
9697
+ attachments: DTOThreadMessageAttachmentsCreateInput.optional()
9698
+ });
9699
+ var DTOThreadMessageFinalizeInput = z317.object({
9700
+ messageId: Id
9701
+ });
9702
+ var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
9703
+ id: true
9704
+ }).merge(
9705
+ z317.object({
9706
+ body: DTOThreadMessage.shape.body,
9707
+ attachments: DTOThreadMessage.shape.attachments,
9708
+ agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
9709
+ }).partial()
9710
+ );
9711
+ var DTOThreadReactionCreateInput = z317.object({
9712
+ messageId: Id,
9713
+ emoji: z317.string()
9714
+ });
9715
+ var DTOThreadReactionDeleteInput = z317.object({
9716
+ messageId: Id,
9717
+ emoji: z317.string()
9718
+ });
9719
+ var DTOThreadMessageResponse = z317.object({
9720
+ message: DTOThreadMessage
9721
+ });
9722
+ var DTOThreadReactionResponse = z317.object({
9723
+ reaction: DTOThreadReaction
9724
+ });
9725
+ var DTOThreadMessageListResponse = z317.object({
9726
+ messages: DTOThreadMessage.array(),
9727
+ reactions: DTOThreadReaction.array(),
9728
+ lastSeenMessageId: z317.string().optional()
9729
+ });
9730
+ var DTOThreadEventMessagesSent = z317.object({
9731
+ type: z317.literal("MessagesSent"),
9732
+ data: DTOThreadMessage.array()
9733
+ });
9734
+ var DTOThreadEventMessagesUpdated = z317.object({
9735
+ type: z317.literal("MessagesUpdated"),
9736
+ data: DTOThreadMessage.array()
9737
+ });
9738
+ var DTOThreadEventReactionsSent = z317.object({
9739
+ type: z317.literal("ReactionsSent"),
9740
+ data: DTOThreadReaction.array()
9741
+ });
9742
+ var DTOThreadEventReactionsDeleted = z317.object({
9743
+ type: z317.literal("ReactionsDeleted"),
9744
+ data: DTOThreadReaction.array()
9745
+ });
9746
+ var DTOThreadEvent = z317.discriminatedUnion("type", [
9747
+ DTOThreadEventMessagesSent,
9748
+ DTOThreadEventMessagesUpdated,
9749
+ DTOThreadEventReactionsSent,
9750
+ DTOThreadEventReactionsDeleted
9751
+ ]);
9752
+
9753
+ // src/api/dto/forge/project-section.ts
9754
+ import z318 from "zod";
9755
+ var AfterSectionId = z318.string().uuid().nullish().optional();
9609
9756
  var DTOForgeSection = ForgeSection;
9610
9757
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9611
9758
  id: true,
@@ -9616,12 +9763,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
9616
9763
  });
9617
9764
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
9618
9765
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
9619
- deleteChildren: z317.boolean().default(false)
9766
+ deleteChildren: z318.boolean().default(false)
9620
9767
  });
9621
9768
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
9622
9769
  afterSectionId: AfterSectionId
9623
9770
  });
9624
- var DTOForgeSectionItemMoveInput = z317.object({
9771
+ var DTOForgeSectionItemMoveInput = z318.object({
9625
9772
  id: Id,
9626
9773
  sectionId: Id.nullish().optional(),
9627
9774
  // undefined=stay, null=no section, string=move to section
@@ -9631,118 +9778,119 @@ var DTOForgeSectionItemMoveInput = z317.object({
9631
9778
 
9632
9779
  // src/api/dto/forge/project-artifact.ts
9633
9780
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
9634
- var DTOForgeProjectArtifactUpdateInput = z318.object({
9635
- id: z318.string(),
9636
- title: z318.string().optional()
9637
- });
9638
- var DTOForgeProjectArtifactCreateInput = z318.object({
9639
- id: z318.string(),
9640
- title: z318.string(),
9641
- sectionId: z318.string().optional(),
9642
- afterArtifactId: z318.string().optional().nullable()
9643
- });
9644
- var DTOForgeProjectArtifactDeleteInput = z318.object({
9781
+ var DTOForgeProjectArtifactUpdateInput = z319.object({
9782
+ id: z319.string(),
9783
+ title: z319.string().optional()
9784
+ });
9785
+ var DTOForgeProjectArtifactCreateInput = z319.object({
9786
+ id: z319.string(),
9787
+ title: z319.string(),
9788
+ sectionId: z319.string().optional(),
9789
+ afterArtifactId: z319.string().optional().nullable(),
9790
+ initialMessage: DTOThreadMessageCreateInput.optional()
9791
+ });
9792
+ var DTOForgeProjectArtifactDeleteInput = z319.object({
9645
9793
  id: Id
9646
9794
  });
9647
9795
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
9648
- var DTOForgeProjectArtifactGetResponse = z318.object({
9796
+ var DTOForgeProjectArtifactGetResponse = z319.object({
9649
9797
  artifact: DTOForgeProjectArtifact
9650
9798
  });
9651
- var DTOForgeProjectArtifactCreateResponse = z318.object({
9799
+ var DTOForgeProjectArtifactCreateResponse = z319.object({
9652
9800
  artifact: DTOForgeProjectArtifact
9653
9801
  });
9654
- var DTOForgeProjectArtifactUpdateResponse = z318.object({
9802
+ var DTOForgeProjectArtifactUpdateResponse = z319.object({
9655
9803
  artifact: DTOForgeProjectArtifact
9656
9804
  });
9657
- var DTOForgeProjectArtifactDeleteResponse = z318.object({
9658
- ok: z318.literal(true)
9805
+ var DTOForgeProjectArtifactDeleteResponse = z319.object({
9806
+ ok: z319.literal(true)
9659
9807
  });
9660
- var DTOForgeProjectArtifactMoveResponse = z318.object({
9808
+ var DTOForgeProjectArtifactMoveResponse = z319.object({
9661
9809
  artifact: DTOForgeProjectArtifact
9662
9810
  });
9663
- var DTOForgeProjectArtifactsListResponse = z318.object({
9664
- artifacts: z318.array(DTOForgeProjectArtifact)
9811
+ var DTOForgeProjectArtifactsListResponse = z319.object({
9812
+ artifacts: z319.array(DTOForgeProjectArtifact)
9665
9813
  });
9666
9814
 
9667
9815
  // src/api/dto/forge/project-feature.ts
9668
- import z319 from "zod";
9816
+ import z320 from "zod";
9669
9817
  var DTOForgeProjectFeature = ProjectFeature;
9670
- var DTOForgeProjectFeatureListResponse = z319.object({
9818
+ var DTOForgeProjectFeatureListResponse = z320.object({
9671
9819
  features: DTOForgeProjectFeature.array()
9672
9820
  });
9673
- var DTOForgeProjectFeatureGetResponse = z319.object({
9821
+ var DTOForgeProjectFeatureGetResponse = z320.object({
9674
9822
  feature: DTOForgeProjectFeature
9675
9823
  });
9676
- var DTOForgeProjectFeatureCreateInput = z319.object({
9824
+ var DTOForgeProjectFeatureCreateInput = z320.object({
9677
9825
  id: Id,
9678
- name: z319.string().optional(),
9679
- description: z319.string(),
9826
+ name: z320.string().optional(),
9827
+ description: z320.string(),
9680
9828
  sectionId: Id.optional(),
9681
9829
  afterFeatureId: Id.nullable().optional(),
9682
9830
  initialMessage: DTOFeatureMessageCreateInput
9683
9831
  });
9684
- var DTOForgeProjectFeatureUpdateInput = z319.object({
9832
+ var DTOForgeProjectFeatureUpdateInput = z320.object({
9685
9833
  id: Id,
9686
- name: z319.string().optional(),
9687
- description: z319.string().optional(),
9688
- isArchived: z319.boolean().optional(),
9834
+ name: z320.string().optional(),
9835
+ description: z320.string().optional(),
9836
+ isArchived: z320.boolean().optional(),
9689
9837
  status: ProjectFeatureStatus.optional()
9690
9838
  });
9691
- var DTOForgeProjectFeatureDeleteInput = z319.object({
9839
+ var DTOForgeProjectFeatureDeleteInput = z320.object({
9692
9840
  id: Id
9693
9841
  });
9694
9842
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9695
9843
 
9696
9844
  // src/api/dto/forge/project-action.ts
9697
- var DTOForgeProjectActionFeatureCreate = z320.object({
9698
- type: z320.literal("FeatureCreate"),
9845
+ var DTOForgeProjectActionFeatureCreate = z321.object({
9846
+ type: z321.literal("FeatureCreate"),
9699
9847
  input: DTOForgeProjectFeatureCreateInput
9700
9848
  });
9701
- var DTOForgeProjectActionFeatureUpdate = z320.object({
9702
- type: z320.literal("FeatureUpdate"),
9849
+ var DTOForgeProjectActionFeatureUpdate = z321.object({
9850
+ type: z321.literal("FeatureUpdate"),
9703
9851
  input: DTOForgeProjectFeatureUpdateInput
9704
9852
  });
9705
- var DTOForgeProjectActionFeatureMove = z320.object({
9706
- type: z320.literal("FeatureMove"),
9853
+ var DTOForgeProjectActionFeatureMove = z321.object({
9854
+ type: z321.literal("FeatureMove"),
9707
9855
  input: DTOForgeProjectFeatureMoveInput
9708
9856
  });
9709
- var DTOForgeProjectActionFeatureDelete = z320.object({
9710
- type: z320.literal("FeatureDelete"),
9857
+ var DTOForgeProjectActionFeatureDelete = z321.object({
9858
+ type: z321.literal("FeatureDelete"),
9711
9859
  input: DTOForgeProjectFeatureDeleteInput
9712
9860
  });
9713
- var DTOForgeProjectActionArtifactCreate = z320.object({
9714
- type: z320.literal("ArtifactCreate"),
9861
+ var DTOForgeProjectActionArtifactCreate = z321.object({
9862
+ type: z321.literal("ArtifactCreate"),
9715
9863
  input: DTOForgeProjectArtifactCreateInput
9716
9864
  });
9717
- var DTOForgeProjectActionArtifactUpdate = z320.object({
9718
- type: z320.literal("ArtifactUpdate"),
9865
+ var DTOForgeProjectActionArtifactUpdate = z321.object({
9866
+ type: z321.literal("ArtifactUpdate"),
9719
9867
  input: DTOForgeProjectArtifactUpdateInput
9720
9868
  });
9721
- var DTOForgeProjectActionArtifactDelete = z320.object({
9722
- type: z320.literal("ArtifactDelete"),
9869
+ var DTOForgeProjectActionArtifactDelete = z321.object({
9870
+ type: z321.literal("ArtifactDelete"),
9723
9871
  input: DTOForgeProjectArtifactDeleteInput
9724
9872
  });
9725
- var DTOForgeProjectActionArtifactMove = z320.object({
9726
- type: z320.literal("ArtifactMove"),
9873
+ var DTOForgeProjectActionArtifactMove = z321.object({
9874
+ type: z321.literal("ArtifactMove"),
9727
9875
  input: DTOForgeProjectArtifactMoveInput
9728
9876
  });
9729
- var DTOForgeProjectActionSectionCreate = z320.object({
9730
- type: z320.literal("SectionCreate"),
9877
+ var DTOForgeProjectActionSectionCreate = z321.object({
9878
+ type: z321.literal("SectionCreate"),
9731
9879
  input: DTOForgeSectionCreateInput
9732
9880
  });
9733
- var DTOForgeProjectActionSectionUpdate = z320.object({
9734
- type: z320.literal("SectionUpdate"),
9881
+ var DTOForgeProjectActionSectionUpdate = z321.object({
9882
+ type: z321.literal("SectionUpdate"),
9735
9883
  input: DTOForgeSectionUpdateInput
9736
9884
  });
9737
- var DTOForgeProjectActionSectionDelete = z320.object({
9738
- type: z320.literal("SectionDelete"),
9885
+ var DTOForgeProjectActionSectionDelete = z321.object({
9886
+ type: z321.literal("SectionDelete"),
9739
9887
  input: DTOForgeSectionDeleteInput
9740
9888
  });
9741
- var DTOForgeProjectActionSectionMove = z320.object({
9742
- type: z320.literal("SectionMove"),
9889
+ var DTOForgeProjectActionSectionMove = z321.object({
9890
+ type: z321.literal("SectionMove"),
9743
9891
  input: DTOForgeSectionMoveInput
9744
9892
  });
9745
- var DTOForgeProjectAction = z320.discriminatedUnion("type", [
9893
+ var DTOForgeProjectAction = z321.discriminatedUnion("type", [
9746
9894
  //features
9747
9895
  DTOForgeProjectActionFeatureCreate,
9748
9896
  DTOForgeProjectActionFeatureUpdate,
@@ -9759,33 +9907,33 @@ var DTOForgeProjectAction = z320.discriminatedUnion("type", [
9759
9907
  DTOForgeProjectActionSectionDelete,
9760
9908
  DTOForgeProjectActionSectionMove
9761
9909
  ]).and(
9762
- z320.object({
9763
- tId: z320.string().optional()
9910
+ z321.object({
9911
+ tId: z321.string().optional()
9764
9912
  })
9765
9913
  );
9766
9914
 
9767
9915
  // src/api/dto/forge/project-artifact-room.ts
9768
- import { z as z321 } from "zod";
9769
- var DTOForgeProjectArtifactRoom = z321.object({
9770
- id: z321.string()
9916
+ import { z as z322 } from "zod";
9917
+ var DTOForgeProjectArtifactRoom = z322.object({
9918
+ id: z322.string()
9771
9919
  });
9772
- var DTOForgeProjectArtifactRoomResponse = z321.object({
9920
+ var DTOForgeProjectArtifactRoomResponse = z322.object({
9773
9921
  room: DTOForgeProjectArtifactRoom
9774
9922
  });
9775
9923
 
9776
9924
  // src/api/dto/forge/project-context-v2.ts
9777
- import { z as z322 } from "zod";
9778
- var DTOForgeComponentSetTypeV2 = z322.enum(["Shadcn"]);
9779
- var DTOForgeComponentSet = z322.object({
9925
+ import { z as z323 } from "zod";
9926
+ var DTOForgeComponentSetTypeV2 = z323.enum(["Shadcn"]);
9927
+ var DTOForgeComponentSet = z323.object({
9780
9928
  type: DTOForgeComponentSetTypeV2
9781
9929
  });
9782
- var DTOForgeIconSetTypeV2 = z322.enum(["Phosphor", "Lucide", "Tabler"]);
9783
- var DTOForgeThemePreset = z322.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9784
- var DTOForgeIconSet = z322.object({
9930
+ var DTOForgeIconSetTypeV2 = z323.enum(["Phosphor", "Lucide", "Tabler"]);
9931
+ var DTOForgeThemePreset = z323.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9932
+ var DTOForgeIconSet = z323.object({
9785
9933
  type: DTOForgeIconSetTypeV2,
9786
- variant: z322.string().optional()
9934
+ variant: z323.string().optional()
9787
9935
  });
9788
- var DTOForgeProjectTheme = z322.object({
9936
+ var DTOForgeProjectTheme = z323.object({
9789
9937
  // Colors
9790
9938
  background: ColorTokenData,
9791
9939
  foreground: ColorTokenData,
@@ -9870,21 +10018,21 @@ var DTOForgeProjectTheme = z322.object({
9870
10018
  shadowXl: ShadowTokenData,
9871
10019
  shadow2xl: ShadowTokenData
9872
10020
  });
9873
- var DTOForgeProjectContextV2 = z322.object({
9874
- id: z322.string(),
9875
- name: z322.string(),
9876
- workspaceId: z322.string(),
9877
- designSystemId: z322.string().optional(),
9878
- description: z322.string().optional(),
9879
- productContext: z322.string().optional(),
9880
- additionalContext: z322.string().optional(),
9881
- isArchived: z322.boolean(),
10021
+ var DTOForgeProjectContextV2 = z323.object({
10022
+ id: z323.string(),
10023
+ name: z323.string(),
10024
+ workspaceId: z323.string(),
10025
+ designSystemId: z323.string().optional(),
10026
+ description: z323.string().optional(),
10027
+ productContext: z323.string().optional(),
10028
+ additionalContext: z323.string().optional(),
10029
+ isArchived: z323.boolean(),
9882
10030
  themePreset: DTOForgeThemePreset.optional(),
9883
10031
  componentSet: DTOForgeComponentSet,
9884
10032
  iconSet: DTOForgeIconSet,
9885
10033
  theme: DTOForgeProjectTheme,
9886
- createdAt: z322.coerce.date(),
9887
- updatedAt: z322.coerce.date()
10034
+ createdAt: z323.coerce.date(),
10035
+ updatedAt: z323.coerce.date()
9888
10036
  });
9889
10037
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9890
10038
  id: true,
@@ -9893,38 +10041,38 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9893
10041
  isArchived: true
9894
10042
  });
9895
10043
  var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true, workspaceId: true }).partial();
9896
- var DTOForgeProjectContextResponseV2 = z322.object({ context: DTOForgeProjectContextV2 });
9897
- var DTOForgeProjectContextListQueryV2 = z322.object({ workspaceId: z322.string() });
9898
- var DTOForgeProjectContextListResponseV2 = z322.object({ contexts: z322.array(DTOForgeProjectContextV2) });
10044
+ var DTOForgeProjectContextResponseV2 = z323.object({ context: DTOForgeProjectContextV2 });
10045
+ var DTOForgeProjectContextListQueryV2 = z323.object({ workspaceId: z323.string() });
10046
+ var DTOForgeProjectContextListResponseV2 = z323.object({ contexts: z323.array(DTOForgeProjectContextV2) });
9899
10047
 
9900
10048
  // src/api/dto/forge/project-context.ts
9901
- import { z as z323 } from "zod";
9902
- var DTOForgeProjectContext = z323.object({
9903
- definition: z323.string(),
9904
- dependencies: z323.array(
9905
- z323.object({
9906
- packageName: z323.string(),
9907
- type: z323.literal("npm"),
9908
- version: z323.string().default("latest")
10049
+ import { z as z324 } from "zod";
10050
+ var DTOForgeProjectContext = z324.object({
10051
+ definition: z324.string(),
10052
+ dependencies: z324.array(
10053
+ z324.object({
10054
+ packageName: z324.string(),
10055
+ type: z324.literal("npm"),
10056
+ version: z324.string().default("latest")
9909
10057
  })
9910
10058
  ),
9911
- designSystemId: z323.string(),
9912
- id: z323.string(),
9913
- meta: z323.object({
9914
- name: z323.string(),
9915
- description: z323.string().optional()
10059
+ designSystemId: z324.string(),
10060
+ id: z324.string(),
10061
+ meta: z324.object({
10062
+ name: z324.string(),
10063
+ description: z324.string().optional()
9916
10064
  }),
9917
- name: z323.string(),
10065
+ name: z324.string(),
9918
10066
  npmProxySettings: DTONpmRegistryConfig.optional(),
9919
- platform: z323.enum(["React", "Vue", "Angular"]),
9920
- styling: z323.enum(["CSS", "Tailwind"]),
9921
- tailwindConfig: z323.object({
9922
- content: z323.string(),
9923
- version: z323.string()
10067
+ platform: z324.enum(["React", "Vue", "Angular"]),
10068
+ styling: z324.enum(["CSS", "Tailwind"]),
10069
+ tailwindConfig: z324.object({
10070
+ content: z324.string(),
10071
+ version: z324.string()
9924
10072
  }).optional(),
9925
- createdAt: z323.coerce.date(),
9926
- updatedAt: z323.coerce.date(),
9927
- workspaceId: z323.string()
10073
+ createdAt: z324.coerce.date(),
10074
+ updatedAt: z324.coerce.date(),
10075
+ workspaceId: z324.string()
9928
10076
  });
9929
10077
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9930
10078
  definition: true,
@@ -9936,13 +10084,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
9936
10084
  tailwindConfig: true,
9937
10085
  styling: true
9938
10086
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
9939
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z323.string() });
9940
- var DTOForgeProjectContextGetResponse = z323.object({ context: DTOForgeProjectContext });
9941
- var DTOForgeProjectContextListResponse = z323.object({ contexts: z323.array(DTOForgeProjectContext) });
9942
- var DTOForgeProjectContextCreateResponse = z323.object({ context: DTOForgeProjectContext });
9943
- var DTOForgeProjectContextUpdateResponse = z323.object({ context: DTOForgeProjectContext });
9944
- var DTOForgeProjectContextRemoveResponse = z323.object({
9945
- ok: z323.literal(true)
10087
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z324.string() });
10088
+ var DTOForgeProjectContextGetResponse = z324.object({ context: DTOForgeProjectContext });
10089
+ var DTOForgeProjectContextListResponse = z324.object({ contexts: z324.array(DTOForgeProjectContext) });
10090
+ var DTOForgeProjectContextCreateResponse = z324.object({ context: DTOForgeProjectContext });
10091
+ var DTOForgeProjectContextUpdateResponse = z324.object({ context: DTOForgeProjectContext });
10092
+ var DTOForgeProjectContextRemoveResponse = z324.object({
10093
+ ok: z324.literal(true)
9946
10094
  });
9947
10095
 
9948
10096
  // src/api/dto/forge/project-figma-node.ts
@@ -9950,42 +10098,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
9950
10098
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
9951
10099
 
9952
10100
  // src/api/dto/forge/project-file.ts
9953
- import { z as z324 } from "zod";
9954
- var DTOForgeProjectFile = z324.object({
9955
- id: z324.string(),
9956
- name: z324.string(),
9957
- checksum: z324.string(),
9958
- pendingUpload: z324.boolean().optional(),
9959
- url: z324.string(),
9960
- size: z324.number()
9961
- });
9962
- var DTOForgeProjectFileListResponse = z324.object({
9963
- files: z324.array(DTOForgeProjectFile)
9964
- });
9965
- var DTOForgeProjectFileUploadPayloadItem = z324.object({
9966
- size: z324.number(),
9967
- name: z324.string(),
9968
- checksum: z324.string()
9969
- });
9970
- var DTOForgeProjectFileUploadPayload = z324.object({
9971
- files: z324.array(DTOForgeProjectFileUploadPayloadItem)
9972
- });
9973
- var DTOForgeProjectFileUploadResponse = z324.object({
9974
- files: z324.array(DTOForgeProjectFile),
9975
- uploadUrls: z324.array(
9976
- z324.object({
9977
- fileId: z324.string(),
9978
- uploadUrl: z324.string()
10101
+ import { z as z325 } from "zod";
10102
+ var DTOForgeProjectFile = z325.object({
10103
+ id: z325.string(),
10104
+ name: z325.string(),
10105
+ checksum: z325.string(),
10106
+ pendingUpload: z325.boolean().optional(),
10107
+ url: z325.string(),
10108
+ size: z325.number()
10109
+ });
10110
+ var DTOForgeProjectFileListResponse = z325.object({
10111
+ files: z325.array(DTOForgeProjectFile)
10112
+ });
10113
+ var DTOForgeProjectFileUploadPayloadItem = z325.object({
10114
+ size: z325.number(),
10115
+ name: z325.string(),
10116
+ checksum: z325.string()
10117
+ });
10118
+ var DTOForgeProjectFileUploadPayload = z325.object({
10119
+ files: z325.array(DTOForgeProjectFileUploadPayloadItem)
10120
+ });
10121
+ var DTOForgeProjectFileUploadResponse = z325.object({
10122
+ files: z325.array(DTOForgeProjectFile),
10123
+ uploadUrls: z325.array(
10124
+ z325.object({
10125
+ fileId: z325.string(),
10126
+ uploadUrl: z325.string()
9979
10127
  })
9980
10128
  )
9981
10129
  });
9982
- var DTOForgeProjectFileUploadFinalizePayload = z324.object({
9983
- fileIds: z324.array(z324.string())
10130
+ var DTOForgeProjectFileUploadFinalizePayload = z325.object({
10131
+ fileIds: z325.array(z325.string())
9984
10132
  });
9985
- var DTOForgeProjectFileUploadFinalizeResponse = z324.object({ ok: z324.literal(true) });
10133
+ var DTOForgeProjectFileUploadFinalizeResponse = z325.object({ ok: z325.literal(true) });
9986
10134
 
9987
10135
  // src/api/dto/forge/project-invitation.ts
9988
- import { z as z325 } from "zod";
10136
+ import { z as z326 } from "zod";
9989
10137
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
9990
10138
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9991
10139
  email: true,
@@ -9999,24 +10147,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
9999
10147
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
10000
10148
  email: true
10001
10149
  });
10002
- var DTOForgeProjectInvitationsListResponse = z325.object({
10003
- invitations: z325.array(DTOForgeProjectInvitation)
10150
+ var DTOForgeProjectInvitationsListResponse = z326.object({
10151
+ invitations: z326.array(DTOForgeProjectInvitation)
10004
10152
  });
10005
- var DTOForgeProjectInvitationGetResponse = z325.object({
10153
+ var DTOForgeProjectInvitationGetResponse = z326.object({
10006
10154
  invitation: DTOForgeProjectInvitation
10007
10155
  });
10008
- var DTOForgeProjectInvitationCreateResponse = z325.object({
10156
+ var DTOForgeProjectInvitationCreateResponse = z326.object({
10009
10157
  invitation: DTOForgeProjectInvitation
10010
10158
  });
10011
- var DTOForgeProjectInvitationUpdateResponse = z325.object({
10159
+ var DTOForgeProjectInvitationUpdateResponse = z326.object({
10012
10160
  invitation: DTOForgeProjectInvitation.nullable()
10013
10161
  });
10014
- var DTOForgeProjectInvitationRemoveResponse = z325.object({
10015
- ok: z325.literal(true)
10162
+ var DTOForgeProjectInvitationRemoveResponse = z326.object({
10163
+ ok: z326.literal(true)
10016
10164
  });
10017
10165
 
10018
10166
  // src/api/dto/forge/project-iteration-old.ts
10019
- import { z as z326 } from "zod";
10167
+ import { z as z327 } from "zod";
10020
10168
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
10021
10169
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10022
10170
  artifacts: true,
@@ -10027,7 +10175,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10027
10175
  messages: DTOForgeIterationMessage.array(),
10028
10176
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
10029
10177
  });
10030
- var DTOGetForgeProjectIterationResponse = z326.object({
10178
+ var DTOGetForgeProjectIterationResponse = z327.object({
10031
10179
  iteration: DTOForgeProjectIteration.nullable()
10032
10180
  });
10033
10181
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -10037,20 +10185,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
10037
10185
  mergeMeta: true,
10038
10186
  createdAt: true
10039
10187
  });
10040
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z326.string() });
10041
- var DTOCreateForgeProjectIterationResponse = z326.object({
10188
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z327.string() });
10189
+ var DTOCreateForgeProjectIterationResponse = z327.object({
10042
10190
  iteration: DTOForgeProjectIteration
10043
10191
  });
10044
- var DTOUpdateForgeProjectIterationResponse = z326.object({
10192
+ var DTOUpdateForgeProjectIterationResponse = z327.object({
10045
10193
  iteration: DTOForgeProjectIteration.nullable()
10046
10194
  });
10047
- var DTODeleteForgeProjectIterationResponse = z326.object({
10048
- ok: z326.literal(true)
10195
+ var DTODeleteForgeProjectIterationResponse = z327.object({
10196
+ ok: z327.literal(true)
10049
10197
  });
10050
- var DTOForgeProjectIterationListResponse = z326.object({ iterations: z326.array(DTOForgeProjectIteration) });
10198
+ var DTOForgeProjectIterationListResponse = z327.object({ iterations: z327.array(DTOForgeProjectIteration) });
10051
10199
 
10052
10200
  // src/api/dto/forge/project-member.ts
10053
- import { z as z327 } from "zod";
10201
+ import { z as z328 } from "zod";
10054
10202
  var DTOForgeProjectMemberRole = ForgeProjectRole;
10055
10203
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
10056
10204
  user: DTOUser,
@@ -10064,37 +10212,37 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
10064
10212
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
10065
10213
  userId: true
10066
10214
  });
10067
- var DTOForgeProjectMembersListResponse = z327.object({
10068
- members: z327.array(DTOForgeProjectMember),
10069
- invitations: z327.array(DTOForgeProjectInvitation)
10215
+ var DTOForgeProjectMembersListResponse = z328.object({
10216
+ members: z328.array(DTOForgeProjectMember),
10217
+ invitations: z328.array(DTOForgeProjectInvitation)
10070
10218
  });
10071
- var DTOForgeProjectMemberGetResponse = z327.object({
10219
+ var DTOForgeProjectMemberGetResponse = z328.object({
10072
10220
  member: DTOForgeProjectMember
10073
10221
  });
10074
- var DTOForgeProjectMemberCreateResponse = z327.object({
10222
+ var DTOForgeProjectMemberCreateResponse = z328.object({
10075
10223
  member: DTOForgeProjectMember
10076
10224
  });
10077
- var DTOForgeProjectMemberUpdateResponse = z327.object({
10225
+ var DTOForgeProjectMemberUpdateResponse = z328.object({
10078
10226
  member: DTOForgeProjectMember.nullable()
10079
10227
  });
10080
- var DTOForgeProjectMemberRemoveResponse = z327.object({
10081
- ok: z327.literal(true)
10228
+ var DTOForgeProjectMemberRemoveResponse = z328.object({
10229
+ ok: z328.literal(true)
10082
10230
  });
10083
- var DTOAddMembersToForgeProject = z327.object({
10231
+ var DTOAddMembersToForgeProject = z328.object({
10084
10232
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
10085
10233
  });
10086
10234
 
10087
10235
  // src/api/dto/forge/project-room.ts
10088
- import { z as z328 } from "zod";
10089
- var DTOForgeProjectRoom = z328.object({
10090
- id: z328.string()
10236
+ import { z as z329 } from "zod";
10237
+ var DTOForgeProjectRoom = z329.object({
10238
+ id: z329.string()
10091
10239
  });
10092
- var DTOForgeProjectRoomResponse = z328.object({
10240
+ var DTOForgeProjectRoomResponse = z329.object({
10093
10241
  room: DTOForgeProjectRoom
10094
10242
  });
10095
10243
 
10096
10244
  // src/api/dto/forge/project.ts
10097
- import { z as z329 } from "zod";
10245
+ import { z as z330 } from "zod";
10098
10246
  var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
10099
10247
  context: DTOForgeProjectContextV2
10100
10248
  });
@@ -10110,300 +10258,158 @@ var DTOForgeProjectCreate = ForgeProject.pick({
10110
10258
  emoji: true
10111
10259
  }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
10112
10260
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10113
- id: z329.string()
10261
+ id: z330.string()
10114
10262
  });
10115
- var DTOForgeProjectGetResponse = z329.object({ project: DTOForgeProject.nullable() });
10116
- var DTOForgeProjectListResponse = z329.object({ projects: z329.array(DTOForgeProject) });
10117
- var DTOForgeProjectCreateResponse = z329.object({
10263
+ var DTOForgeProjectGetResponse = z330.object({ project: DTOForgeProject.nullable() });
10264
+ var DTOForgeProjectListResponse = z330.object({ projects: z330.array(DTOForgeProject) });
10265
+ var DTOForgeProjectCreateResponse = z330.object({
10118
10266
  project: DTOForgeProject
10119
10267
  });
10120
- var DTOForgeProjectUpdateResponse = z329.object({
10268
+ var DTOForgeProjectUpdateResponse = z330.object({
10121
10269
  project: DTOForgeProject
10122
10270
  });
10123
- var DTOForgeProjectRemoveResponse = z329.object({ ok: z329.literal(true) });
10271
+ var DTOForgeProjectRemoveResponse = z330.object({ ok: z330.literal(true) });
10124
10272
 
10125
10273
  // src/api/dto/forge/threads.ts
10126
- import { z as z330 } from "zod";
10274
+ import { z as z331 } from "zod";
10127
10275
  var DTOForgeChatMessage = ForgeChatMessage;
10128
10276
  var DTOForgeChatThread = ForgeChatThread;
10129
10277
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
10130
10278
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
10131
- var DTOForgeChatThreadCreateInput = z330.object({
10132
- title: z330.string().optional()
10279
+ var DTOForgeChatThreadCreateInput = z331.object({
10280
+ title: z331.string().optional()
10133
10281
  });
10134
- var DTOForgeChatThreadCreateResponse = z330.object({
10282
+ var DTOForgeChatThreadCreateResponse = z331.object({
10135
10283
  thread: DTOForgeChatThread
10136
10284
  });
10137
- var DTOForgeChatThreadUpdateInput = z330.object({
10138
- title: z330.string()
10285
+ var DTOForgeChatThreadUpdateInput = z331.object({
10286
+ title: z331.string()
10139
10287
  });
10140
- var DTOForgeChatThreadUpdateResponse = z330.object({
10288
+ var DTOForgeChatThreadUpdateResponse = z331.object({
10141
10289
  thread: DTOForgeChatThread
10142
10290
  });
10143
- var DTOForgeChatThreadDeleteResponse = z330.object({
10144
- success: z330.boolean()
10291
+ var DTOForgeChatThreadDeleteResponse = z331.object({
10292
+ success: z331.boolean()
10145
10293
  });
10146
- var DTOForgeChatThreadListQuery = z330.object({
10147
- limit: z330.number().optional(),
10148
- offset: z330.number().optional()
10294
+ var DTOForgeChatThreadListQuery = z331.object({
10295
+ limit: z331.number().optional(),
10296
+ offset: z331.number().optional()
10149
10297
  });
10150
- var DTOForgeChatThreadListResponse = z330.object({
10151
- threads: z330.array(DTOForgeChatThread),
10152
- pagination: z330.object({
10153
- offset: z330.number(),
10154
- limit: z330.number(),
10155
- total: z330.number()
10298
+ var DTOForgeChatThreadListResponse = z331.object({
10299
+ threads: z331.array(DTOForgeChatThread),
10300
+ pagination: z331.object({
10301
+ offset: z331.number(),
10302
+ limit: z331.number(),
10303
+ total: z331.number()
10156
10304
  })
10157
10305
  });
10158
- var DTOForgeChatMessageCreateInput = z330.object({
10159
- payload: z330.string(),
10306
+ var DTOForgeChatMessageCreateInput = z331.object({
10307
+ payload: z331.string(),
10160
10308
  sender: DTOForgeChatMessageSender.optional(),
10161
- opikTraceId: z330.string().optional()
10309
+ opikTraceId: z331.string().optional()
10162
10310
  });
10163
- var DTOForgeChatMessageCreateResponse = z330.object({
10311
+ var DTOForgeChatMessageCreateResponse = z331.object({
10164
10312
  message: DTOForgeChatMessage
10165
10313
  });
10166
- var DTOForgeChatMessageListQuery = z330.object({
10167
- limit: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10168
- offset: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10314
+ var DTOForgeChatMessageListQuery = z331.object({
10315
+ limit: z331.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10316
+ offset: z331.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10169
10317
  });
10170
- var DTOForgeChatMessageListResponse = z330.object({
10171
- messages: z330.array(DTOForgeChatMessage),
10172
- totalCount: z330.number(),
10173
- hasMore: z330.boolean()
10318
+ var DTOForgeChatMessageListResponse = z331.object({
10319
+ messages: z331.array(DTOForgeChatMessage),
10320
+ totalCount: z331.number(),
10321
+ hasMore: z331.boolean()
10174
10322
  });
10175
- var DTOForgeChatExportResponse = z330.object({
10176
- csvDownloadUrl: z330.string().nullable()
10323
+ var DTOForgeChatExportResponse = z331.object({
10324
+ csvDownloadUrl: z331.string().nullable()
10177
10325
  });
10178
- var DTOForgeChatMessageScoreInput = z330.object({
10179
- messageId: z330.string(),
10180
- name: z330.string(),
10181
- value: z330.number(),
10182
- categoryName: z330.string().optional(),
10183
- reason: z330.string().optional()
10326
+ var DTOForgeChatMessageScoreInput = z331.object({
10327
+ messageId: z331.string(),
10328
+ name: z331.string(),
10329
+ value: z331.number(),
10330
+ categoryName: z331.string().optional(),
10331
+ reason: z331.string().optional()
10184
10332
  });
10185
- var DTOForgeChatMessageTagInput = z330.object({
10186
- messageId: z330.string(),
10187
- tags: z330.array(z330.string())
10333
+ var DTOForgeChatMessageTagInput = z331.object({
10334
+ messageId: z331.string(),
10335
+ tags: z331.array(z331.string())
10188
10336
  });
10189
- var DTOForgeChatMessageScoreRequest = z330.object({
10337
+ var DTOForgeChatMessageScoreRequest = z331.object({
10190
10338
  scores: DTOForgeChatMessageScoreInput.array(),
10191
10339
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
10192
10340
  });
10193
10341
 
10194
10342
  // src/api/dto/liveblocks/auth-response.ts
10195
- import { z as z331 } from "zod";
10196
- var DTOLiveblocksAuthResponse = z331.object({
10197
- token: z331.string()
10343
+ import { z as z332 } from "zod";
10344
+ var DTOLiveblocksAuthResponse = z332.object({
10345
+ token: z332.string()
10198
10346
  });
10199
10347
 
10200
10348
  // src/api/dto/portal/portal-settings.ts
10201
- import { z as z332 } from "zod";
10349
+ import { z as z333 } from "zod";
10202
10350
  var DTOPortalSettingsTheme = PortalSettingsTheme;
10203
10351
  var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
10204
10352
  var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
10205
10353
  var DTOPortalSettingsSidebar = PortalSettingsSidebar;
10206
- var DTOPortalSettings = z332.object({
10207
- id: z332.string(),
10208
- workspaceId: z332.string(),
10209
- enabledDesignSystemIds: z332.array(z332.string()),
10210
- enabledBrandPersistentIds: z332.array(z332.string()),
10354
+ var DTOPortalSettings = z333.object({
10355
+ id: z333.string(),
10356
+ workspaceId: z333.string(),
10357
+ enabledDesignSystemIds: z333.array(z333.string()),
10358
+ enabledBrandPersistentIds: z333.array(z333.string()),
10211
10359
  theme: DTOPortalSettingsTheme.nullish(),
10212
10360
  sidebar: DTOPortalSettingsSidebar.nullish(),
10213
- createdAt: z332.coerce.date(),
10214
- updatedAt: z332.coerce.date()
10361
+ createdAt: z333.coerce.date(),
10362
+ updatedAt: z333.coerce.date()
10215
10363
  });
10216
- var DTOPortalSettingsGetResponse = z332.object({
10364
+ var DTOPortalSettingsGetResponse = z333.object({
10217
10365
  portalSettings: DTOPortalSettings
10218
10366
  });
10219
- var DTOPortalSettingsUpdatePayload = z332.object({
10220
- enabledDesignSystemIds: z332.array(z332.string()).optional(),
10221
- enabledBrandPersistentIds: z332.array(z332.string()).optional(),
10367
+ var DTOPortalSettingsUpdatePayload = z333.object({
10368
+ enabledDesignSystemIds: z333.array(z333.string()).optional(),
10369
+ enabledBrandPersistentIds: z333.array(z333.string()).optional(),
10222
10370
  theme: DTOPortalSettingsTheme.nullish(),
10223
10371
  sidebar: DTOPortalSettingsSidebar.nullish()
10224
10372
  });
10225
10373
 
10226
10374
  // src/api/dto/themes/override.ts
10227
- import { z as z333 } from "zod";
10375
+ import { z as z334 } from "zod";
10228
10376
  var DTOThemeOverride = DesignTokenTypedData.and(
10229
- z333.object({
10230
- tokenPersistentId: z333.string(),
10377
+ z334.object({
10378
+ tokenPersistentId: z334.string(),
10231
10379
  origin: ThemeOverrideOrigin.optional()
10232
10380
  })
10233
10381
  );
10234
10382
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
10235
- z333.object({
10236
- tokenPersistentId: z333.string()
10383
+ z334.object({
10384
+ tokenPersistentId: z334.string()
10237
10385
  })
10238
10386
  );
10239
10387
 
10240
10388
  // src/api/dto/themes/theme.ts
10241
- import { z as z334 } from "zod";
10242
- var DTOTheme = z334.object({
10243
- id: z334.string(),
10244
- persistentId: z334.string(),
10245
- designSystemVersionId: z334.string(),
10246
- brandId: z334.string(),
10389
+ import { z as z335 } from "zod";
10390
+ var DTOTheme = z335.object({
10391
+ id: z335.string(),
10392
+ persistentId: z335.string(),
10393
+ designSystemVersionId: z335.string(),
10394
+ brandId: z335.string(),
10247
10395
  meta: ObjectMeta,
10248
- codeName: z334.string(),
10396
+ codeName: z335.string(),
10249
10397
  overrides: DTOThemeOverride.array()
10250
10398
  });
10251
- var DTOThemeResponse = z334.object({
10399
+ var DTOThemeResponse = z335.object({
10252
10400
  theme: DTOTheme
10253
10401
  });
10254
- var DTOThemeListResponse = z334.object({
10402
+ var DTOThemeListResponse = z335.object({
10255
10403
  themes: DTOTheme.array()
10256
10404
  });
10257
- var DTOThemeCreatePayload = z334.object({
10405
+ var DTOThemeCreatePayload = z335.object({
10258
10406
  meta: ObjectMeta,
10259
- persistentId: z334.string(),
10260
- brandId: z334.string(),
10261
- codeName: z334.string(),
10407
+ persistentId: z335.string(),
10408
+ brandId: z335.string(),
10409
+ codeName: z335.string(),
10262
10410
  overrides: DTOThemeOverride.array()
10263
10411
  });
10264
10412
 
10265
- // src/api/dto/threads/threads.ts
10266
- import z335 from "zod";
10267
- var DTOThreadSubjectType = z335.enum(["ForgeDocument", "ForgeFeature"]);
10268
- var DTOThreadAgentType = z335.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
10269
- var DTOThread = z335.object({
10270
- id: z335.string(),
10271
- liveblocksRoomId: z335.string(),
10272
- defaultAgentType: DTOThreadAgentType,
10273
- subjectId: z335.string(),
10274
- subjectType: DTOThreadSubjectType,
10275
- createdAt: z335.string(),
10276
- updatedAt: z335.string()
10277
- });
10278
- var DTOThreadMessageUserSender = z335.object({
10279
- type: z335.literal("User"),
10280
- userId: z335.string()
10281
- });
10282
- var DTOThreadMessageAgentSender = z335.object({
10283
- type: z335.literal("Agent"),
10284
- agentType: DTOThreadAgentType
10285
- });
10286
- var DTOThreadMessageSystemSender = z335.object({
10287
- type: z335.literal("System"),
10288
- onBehalfOfUserId: z335.string()
10289
- });
10290
- var DTOThreadMessageSender = z335.discriminatedUnion("type", [
10291
- DTOThreadMessageUserSender,
10292
- DTOThreadMessageAgentSender,
10293
- DTOThreadMessageSystemSender
10294
- ]);
10295
- var DTOThreadReaction = z335.object({
10296
- messageId: Id,
10297
- userId: z335.string(),
10298
- emoji: z335.string(),
10299
- createdAt: z335.string()
10300
- });
10301
- var DTOThreadMessageAttachments = z335.object({
10302
- iterationId: Id.optional()
10303
- // TODO Artem: files, etc
10304
- });
10305
- var DTOThreadMessage = z335.object({
10306
- id: Id,
10307
- threadId: z335.string(),
10308
- /**
10309
- * Describes where the message came from
10310
- */
10311
- sender: DTOThreadMessageSender,
10312
- /**
10313
- * Content of the message
10314
- */
10315
- body: z335.string(),
10316
- /**
10317
- * Indicates if the message was sent in the agentic mode, if so this message will cause an
10318
- * AI agent to generate a response and perform an action within the feature
10319
- */
10320
- isPrompt: z335.boolean().optional(),
10321
- /**
10322
- * Indicates if the sender requested agent to reply in a thread
10323
- */
10324
- startsNewThread: z335.boolean().optional(),
10325
- /**
10326
- * If defined, this message is considered to be a reply in a thread under parent message id
10327
- */
10328
- parentMessageId: Id.optional(),
10329
- /**
10330
- * Link agent response object describing current state of
10331
- */
10332
- agentResponseTrackerId: Id.optional().nullable(),
10333
- attachments: DTOThreadMessageAttachments.optional(),
10334
- /**
10335
- * If defined, this message is considered to be a reply to different message
10336
- */
10337
- replyToMessageId: Id.optional(),
10338
- createdAt: z335.string(),
10339
- updatedAt: z335.string().optional()
10340
- });
10341
- var DTOThreadAgentResponseTracker = z335.object({
10342
- id: Id,
10343
- currentBody: z335.string().default("")
10344
- });
10345
- var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10346
- id: true,
10347
- body: true,
10348
- isPrompt: true,
10349
- startsNewThread: true,
10350
- parentMessageId: true,
10351
- attachments: true
10352
- });
10353
- var DTOThreadMessageFinalizeInput = z335.object({
10354
- messageId: Id
10355
- });
10356
- var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10357
- id: true
10358
- }).merge(
10359
- z335.object({
10360
- body: DTOThreadMessage.shape.body,
10361
- attachments: DTOThreadMessage.shape.attachments,
10362
- agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
10363
- }).partial()
10364
- );
10365
- var DTOThreadReactionCreateInput = z335.object({
10366
- messageId: Id,
10367
- emoji: z335.string()
10368
- });
10369
- var DTOThreadReactionDeleteInput = z335.object({
10370
- messageId: Id,
10371
- emoji: z335.string()
10372
- });
10373
- var DTOThreadMessageResponse = z335.object({
10374
- message: DTOThreadMessage
10375
- });
10376
- var DTOThreadReactionResponse = z335.object({
10377
- reaction: DTOThreadReaction
10378
- });
10379
- var DTOThreadMessageListResponse = z335.object({
10380
- messages: DTOThreadMessage.array(),
10381
- reactions: DTOThreadReaction.array(),
10382
- lastSeenMessageId: z335.string().optional()
10383
- });
10384
- var DTOThreadEventMessagesSent = z335.object({
10385
- type: z335.literal("MessagesSent"),
10386
- data: DTOThreadMessage.array()
10387
- });
10388
- var DTOThreadEventMessagesUpdated = z335.object({
10389
- type: z335.literal("MessagesUpdated"),
10390
- data: DTOThreadMessage.array()
10391
- });
10392
- var DTOThreadEventReactionsSent = z335.object({
10393
- type: z335.literal("ReactionsSent"),
10394
- data: DTOThreadReaction.array()
10395
- });
10396
- var DTOThreadEventReactionsDeleted = z335.object({
10397
- type: z335.literal("ReactionsDeleted"),
10398
- data: DTOThreadReaction.array()
10399
- });
10400
- var DTOThreadEvent = z335.discriminatedUnion("type", [
10401
- DTOThreadEventMessagesSent,
10402
- DTOThreadEventMessagesUpdated,
10403
- DTOThreadEventReactionsSent,
10404
- DTOThreadEventReactionsDeleted
10405
- ]);
10406
-
10407
10413
  // src/utils/figma.ts
10408
10414
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
10409
10415
  var nodeIdRegex = /^\d+-\d+$/;
@@ -19390,6 +19396,7 @@ export {
19390
19396
  DTOThreadMessage,
19391
19397
  DTOThreadMessageAgentSender,
19392
19398
  DTOThreadMessageAttachments,
19399
+ DTOThreadMessageAttachmentsCreateInput,
19393
19400
  DTOThreadMessageCreateInput,
19394
19401
  DTOThreadMessageFinalizeInput,
19395
19402
  DTOThreadMessageListResponse,