@supernova-studio/client 1.41.1 → 1.41.2

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