@supernova-studio/client 1.48.8 → 1.48.10

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
@@ -163,9 +163,9 @@ import { z as z148 } from "zod";
163
163
  import { z as z150 } from "zod";
164
164
  import { z as z151 } from "zod";
165
165
  import { z as z152 } from "zod";
166
+ import { z as z154 } from "zod";
166
167
  import { z as z153 } from "zod";
167
168
  import { z as z155 } from "zod";
168
- import { z as z154 } from "zod";
169
169
  import { z as z156 } from "zod";
170
170
  import { z as z157 } from "zod";
171
171
  import { z as z160 } from "zod";
@@ -4751,38 +4751,38 @@ var ForgeProjectFile = z152.object({
4751
4751
  size: z152.number().int().positive().optional(),
4752
4752
  checksum: z152.string()
4753
4753
  });
4754
- var ForgeProjectAccessMode = z153.enum(["InviteOnly", "Open", "Unlisted"]);
4755
- var ForgeProjectRole = z154.enum(["Viewer", "Builder", "Admin"]);
4754
+ var ForgeProjectRole = z153.enum(["Viewer", "Builder", "Admin"]);
4756
4755
  var ForgeDefaultProjectRole = ForgeProjectRole.exclude(["Admin"]);
4757
- var ForgeProjectMembership = z154.object({
4758
- userId: z154.string(),
4759
- forgeProjectId: z154.string(),
4760
- workspaceMembershipId: z154.string(),
4756
+ var ForgeProjectMembership = z153.object({
4757
+ userId: z153.string(),
4758
+ forgeProjectId: z153.string(),
4759
+ workspaceMembershipId: z153.string(),
4761
4760
  workspaceRole: WorkspaceRoleSchema,
4762
4761
  role: ForgeProjectRole
4763
4762
  });
4764
- var ForgeProjectInvitation = z155.object({
4765
- email: z155.string().email(),
4766
- forgeProjectId: z155.string(),
4767
- workspaceInvitationId: z155.string(),
4763
+ var ForgeProjectInvitation = z154.object({
4764
+ email: z154.string().email(),
4765
+ forgeProjectId: z154.string(),
4766
+ workspaceInvitationId: z154.string(),
4768
4767
  role: ForgeProjectRole,
4768
+ createdAt: z154.coerce.date(),
4769
+ updatedAt: z154.coerce.date(),
4770
+ createdById: z154.string()
4771
+ });
4772
+ var ForgeProjectIterationMergeMeta = z155.object({ mergeByUserId: z155.string(), mergeAt: z155.date() });
4773
+ var ForgeProjectIteration = z155.object({
4774
+ branchId: z155.string().optional(),
4775
+ buildArtifactId: z155.string(),
4769
4776
  createdAt: z155.coerce.date(),
4770
- updatedAt: z155.coerce.date(),
4771
- createdById: z155.string()
4772
- });
4773
- var ForgeProjectIterationMergeMeta = z156.object({ mergeByUserId: z156.string(), mergeAt: z156.date() });
4774
- var ForgeProjectIteration = z156.object({
4775
- branchId: z156.string().optional(),
4776
- buildArtifactId: z156.string(),
4777
- createdAt: z156.coerce.date(),
4778
- forgeProjectId: z156.string(),
4779
- id: z156.string(),
4780
- locked: z156.boolean(),
4781
- messages: z156.array(ForgeIterationMessage),
4782
- artifacts: z156.array(ForgeArtifact),
4783
- previousIterationId: z156.string().optional(),
4777
+ forgeProjectId: z155.string(),
4778
+ id: z155.string(),
4779
+ locked: z155.boolean(),
4780
+ messages: z155.array(ForgeIterationMessage),
4781
+ artifacts: z155.array(ForgeArtifact),
4782
+ previousIterationId: z155.string().optional(),
4784
4783
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
4785
4784
  });
4785
+ var ForgeProjectAccessMode = z156.enum(["InviteOnly", "Open", "Unlisted"]);
4786
4786
  var ForgeRelationType = z157.enum(["Feature", "Document"]);
4787
4787
  var ForgeRelation = z157.object({
4788
4788
  id: z157.string(),
@@ -9842,56 +9842,92 @@ var DTODeleteForgeIterationMessageResponse = z318.object({
9842
9842
  ok: z318.literal(true)
9843
9843
  });
9844
9844
 
9845
+ // src/api/dto/forge/memory.ts
9846
+ import z319 from "zod";
9847
+ var DTOForgeMemoryEntry = z319.object({
9848
+ id: z319.string().uuid(),
9849
+ projectId: z319.string(),
9850
+ text: z319.string(),
9851
+ category: z319.string(),
9852
+ createdAt: z319.string(),
9853
+ updatedAt: z319.string(),
9854
+ metadata: z319.record(z319.string()).optional()
9855
+ });
9856
+ var DTOForgeMemoryCreateInput = z319.object({
9857
+ projectId: z319.string(),
9858
+ text: z319.string(),
9859
+ category: z319.string(),
9860
+ metadata: z319.record(z319.string()).optional()
9861
+ });
9862
+ var DTOForgeMemoryUpdateInput = z319.object({
9863
+ id: z319.string().uuid(),
9864
+ text: z319.string().optional(),
9865
+ category: z319.string(),
9866
+ metadata: z319.record(z319.string()).nullish()
9867
+ });
9868
+ var DTOForgeMemoryDeleteInput = z319.object({
9869
+ id: z319.string().uuid()
9870
+ });
9871
+ var DTOForgeMemoryEntryListResponse = z319.object({
9872
+ memoryEntries: DTOForgeMemoryEntry.array()
9873
+ });
9874
+ var DTOForgeMemoryEntryResponse = z319.object({
9875
+ memoryEntry: DTOForgeMemoryEntry
9876
+ });
9877
+ var DTOForgeMemoryEntryListQuery = z319.object({
9878
+ projectId: z319.string()
9879
+ });
9880
+
9845
9881
  // src/api/dto/forge/project-action.ts
9846
- import z323 from "zod";
9882
+ import z324 from "zod";
9847
9883
 
9848
9884
  // src/api/dto/forge/project-artifact.ts
9849
- import { z as z321 } from "zod";
9885
+ import { z as z322 } from "zod";
9850
9886
 
9851
9887
  // src/api/dto/threads/threads.ts
9852
- import z319 from "zod";
9853
- var DTOThreadSubjectType = z319.enum(["ForgeDocument", "ForgeFeature"]);
9854
- var DTOThreadAgentType = z319.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
9855
- var DTOThreadPromptState = z319.enum(["Success", "Timeout", "Error"]);
9856
- var DTOThread = z319.object({
9857
- id: z319.string(),
9858
- liveblocksRoomId: z319.string(),
9888
+ import z320 from "zod";
9889
+ var DTOThreadSubjectType = z320.enum(["ForgeDocument", "ForgeFeature"]);
9890
+ var DTOThreadAgentType = z320.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
9891
+ var DTOThreadPromptState = z320.enum(["Success", "Timeout", "Error"]);
9892
+ var DTOThread = z320.object({
9893
+ id: z320.string(),
9894
+ liveblocksRoomId: z320.string(),
9859
9895
  defaultAgentType: DTOThreadAgentType,
9860
- subjectId: z319.string(),
9896
+ subjectId: z320.string(),
9861
9897
  subjectType: DTOThreadSubjectType,
9862
- createdAt: z319.string(),
9863
- updatedAt: z319.string()
9898
+ createdAt: z320.string(),
9899
+ updatedAt: z320.string()
9864
9900
  });
9865
- var DTOThreadMessageUserSender = z319.object({
9866
- type: z319.literal("User"),
9867
- userId: z319.string()
9901
+ var DTOThreadMessageUserSender = z320.object({
9902
+ type: z320.literal("User"),
9903
+ userId: z320.string()
9868
9904
  });
9869
- var DTOThreadMessageAgentSender = z319.object({
9870
- type: z319.literal("Agent"),
9905
+ var DTOThreadMessageAgentSender = z320.object({
9906
+ type: z320.literal("Agent"),
9871
9907
  agentType: DTOThreadAgentType
9872
9908
  });
9873
- var DTOThreadMessageSystemSender = z319.object({
9874
- type: z319.literal("System"),
9875
- onBehalfOfUserId: z319.string()
9909
+ var DTOThreadMessageSystemSender = z320.object({
9910
+ type: z320.literal("System"),
9911
+ onBehalfOfUserId: z320.string()
9876
9912
  });
9877
- var DTOThreadMessageSender = z319.discriminatedUnion("type", [
9913
+ var DTOThreadMessageSender = z320.discriminatedUnion("type", [
9878
9914
  DTOThreadMessageUserSender,
9879
9915
  DTOThreadMessageAgentSender,
9880
9916
  DTOThreadMessageSystemSender
9881
9917
  ]);
9882
- var DTOThreadReaction = z319.object({
9918
+ var DTOThreadReaction = z320.object({
9883
9919
  messageId: Id,
9884
- userId: z319.string(),
9885
- emoji: z319.string(),
9886
- createdAt: z319.string()
9920
+ userId: z320.string(),
9921
+ emoji: z320.string(),
9922
+ createdAt: z320.string()
9887
9923
  });
9888
- var DTOThreadMessageAttachments = z319.object({
9924
+ var DTOThreadMessageAttachments = z320.object({
9889
9925
  iterationId: Id.optional(),
9890
9926
  files: DTOFileReference.array().optional()
9891
9927
  });
9892
- var DTOThreadMessage = z319.object({
9928
+ var DTOThreadMessage = z320.object({
9893
9929
  id: Id,
9894
- threadId: z319.string(),
9930
+ threadId: z320.string(),
9895
9931
  /**
9896
9932
  * Describes where the message came from
9897
9933
  */
@@ -9899,20 +9935,20 @@ var DTOThreadMessage = z319.object({
9899
9935
  /**
9900
9936
  * Content of the message
9901
9937
  */
9902
- body: z319.string(),
9938
+ body: z320.string(),
9903
9939
  /**
9904
9940
  * Indicates if the message was sent in the agentic mode, if so this message will cause an
9905
9941
  * AI agent to generate a response and perform an action within the feature
9906
9942
  */
9907
- isPrompt: z319.boolean().optional(),
9943
+ isPrompt: z320.boolean().optional(),
9908
9944
  /**
9909
9945
  * Indicates if the message is an attempt to retry agent message. Only available for agent messages.
9910
9946
  */
9911
- isRetry: z319.boolean().optional(),
9947
+ isRetry: z320.boolean().optional(),
9912
9948
  /**
9913
9949
  * Indicates if the sender requested agent to reply in a thread
9914
9950
  */
9915
- startsNewThread: z319.boolean().optional(),
9951
+ startsNewThread: z320.boolean().optional(),
9916
9952
  /**
9917
9953
  * If defined, this message is considered to be a reply in a thread under parent message id
9918
9954
  */
@@ -9926,17 +9962,17 @@ var DTOThreadMessage = z319.object({
9926
9962
  * If defined, this message is considered to be a reply to different message
9927
9963
  */
9928
9964
  replyToMessageId: Id.optional(),
9929
- promptMetadata: z319.record(z319.string(), z319.any()).optional(),
9930
- createdAt: z319.string(),
9931
- updatedAt: z319.string().optional()
9965
+ promptMetadata: z320.record(z320.string(), z320.any()).optional(),
9966
+ createdAt: z320.string(),
9967
+ updatedAt: z320.string().optional()
9932
9968
  });
9933
- var DTOThreadAgentResponseTracker = z319.object({
9969
+ var DTOThreadAgentResponseTracker = z320.object({
9934
9970
  id: Id,
9935
- currentBody: z319.string().default("")
9971
+ currentBody: z320.string().default("")
9936
9972
  });
9937
- var DTOThreadMessageAttachmentsCreateInput = z319.object({
9973
+ var DTOThreadMessageAttachmentsCreateInput = z320.object({
9938
9974
  iterationId: Id.optional(),
9939
- fileIds: z319.string().array().optional()
9975
+ fileIds: z320.string().array().optional()
9940
9976
  });
9941
9977
  var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9942
9978
  id: true,
@@ -9948,60 +9984,60 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9948
9984
  }).extend({
9949
9985
  attachments: DTOThreadMessageAttachmentsCreateInput.optional()
9950
9986
  });
9951
- var DTOThreadMessageFinalizeInput = z319.object({
9987
+ var DTOThreadMessageFinalizeInput = z320.object({
9952
9988
  messageId: Id,
9953
- agentMessageBody: z319.string().optional(),
9989
+ agentMessageBody: z320.string().optional(),
9954
9990
  promptState: DTOThreadPromptState.optional(),
9955
9991
  creditsSpend: DTOBillingCreditsSpendInput.optional()
9956
9992
  });
9957
- var DTOThreadMessageRetryInput = z319.object({
9993
+ var DTOThreadMessageRetryInput = z320.object({
9958
9994
  agentMessageId: Id
9959
9995
  });
9960
9996
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
9961
9997
  id: true
9962
9998
  }).merge(
9963
- z319.object({
9999
+ z320.object({
9964
10000
  body: DTOThreadMessage.shape.body,
9965
10001
  attachments: DTOThreadMessage.shape.attachments,
9966
10002
  agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
9967
10003
  }).partial()
9968
10004
  );
9969
- var DTOThreadReactionCreateInput = z319.object({
10005
+ var DTOThreadReactionCreateInput = z320.object({
9970
10006
  messageId: Id,
9971
- emoji: z319.string()
10007
+ emoji: z320.string()
9972
10008
  });
9973
- var DTOThreadReactionDeleteInput = z319.object({
10009
+ var DTOThreadReactionDeleteInput = z320.object({
9974
10010
  messageId: Id,
9975
- emoji: z319.string()
10011
+ emoji: z320.string()
9976
10012
  });
9977
- var DTOThreadMessageResponse = z319.object({
10013
+ var DTOThreadMessageResponse = z320.object({
9978
10014
  message: DTOThreadMessage
9979
10015
  });
9980
- var DTOThreadReactionResponse = z319.object({
10016
+ var DTOThreadReactionResponse = z320.object({
9981
10017
  reaction: DTOThreadReaction
9982
10018
  });
9983
- var DTOThreadMessageListResponse = z319.object({
10019
+ var DTOThreadMessageListResponse = z320.object({
9984
10020
  messages: DTOThreadMessage.array(),
9985
10021
  reactions: DTOThreadReaction.array(),
9986
- lastSeenMessageId: z319.string().optional()
10022
+ lastSeenMessageId: z320.string().optional()
9987
10023
  });
9988
- var DTOThreadEventMessagesSent = z319.object({
9989
- type: z319.literal("MessagesSent"),
10024
+ var DTOThreadEventMessagesSent = z320.object({
10025
+ type: z320.literal("MessagesSent"),
9990
10026
  data: DTOThreadMessage.array()
9991
10027
  });
9992
- var DTOThreadEventMessagesUpdated = z319.object({
9993
- type: z319.literal("MessagesUpdated"),
10028
+ var DTOThreadEventMessagesUpdated = z320.object({
10029
+ type: z320.literal("MessagesUpdated"),
9994
10030
  data: DTOThreadMessage.array()
9995
10031
  });
9996
- var DTOThreadEventReactionsSent = z319.object({
9997
- type: z319.literal("ReactionsSent"),
10032
+ var DTOThreadEventReactionsSent = z320.object({
10033
+ type: z320.literal("ReactionsSent"),
9998
10034
  data: DTOThreadReaction.array()
9999
10035
  });
10000
- var DTOThreadEventReactionsDeleted = z319.object({
10001
- type: z319.literal("ReactionsDeleted"),
10036
+ var DTOThreadEventReactionsDeleted = z320.object({
10037
+ type: z320.literal("ReactionsDeleted"),
10002
10038
  data: DTOThreadReaction.array()
10003
10039
  });
10004
- var DTOThreadEvent = z319.discriminatedUnion("type", [
10040
+ var DTOThreadEvent = z320.discriminatedUnion("type", [
10005
10041
  DTOThreadEventMessagesSent,
10006
10042
  DTOThreadEventMessagesUpdated,
10007
10043
  DTOThreadEventReactionsSent,
@@ -10009,8 +10045,8 @@ var DTOThreadEvent = z319.discriminatedUnion("type", [
10009
10045
  ]);
10010
10046
 
10011
10047
  // src/api/dto/forge/project-section.ts
10012
- import z320 from "zod";
10013
- var AfterSectionId = z320.string().uuid().nullish().optional();
10048
+ import z321 from "zod";
10049
+ var AfterSectionId = z321.string().uuid().nullish().optional();
10014
10050
  var DTOForgeSection = ForgeSection;
10015
10051
  var DTOForgeSectionCreateInput = DTOForgeSection.pick({
10016
10052
  id: true,
@@ -10021,12 +10057,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
10021
10057
  });
10022
10058
  var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
10023
10059
  var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
10024
- deleteChildren: z320.boolean().default(false)
10060
+ deleteChildren: z321.boolean().default(false)
10025
10061
  });
10026
10062
  var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
10027
10063
  afterSectionId: AfterSectionId
10028
10064
  });
10029
- var DTOForgeSectionItemMoveInput = z320.object({
10065
+ var DTOForgeSectionItemMoveInput = z321.object({
10030
10066
  id: Id,
10031
10067
  sectionId: Id.nullish().optional(),
10032
10068
  // undefined=stay, null=no section, string=move to section
@@ -10036,133 +10072,133 @@ var DTOForgeSectionItemMoveInput = z320.object({
10036
10072
 
10037
10073
  // src/api/dto/forge/project-artifact.ts
10038
10074
  var DTOForgeProjectArtifact = ForgeProjectArtifact;
10039
- var DTOForgeProjectArtifactUpdateInput = z321.object({
10040
- id: z321.string(),
10041
- title: z321.string().optional(),
10042
- isArchived: z321.boolean().optional()
10043
- });
10044
- var DTOForgeProjectArtifactCreateInput = z321.object({
10045
- id: z321.string(),
10046
- title: z321.string(),
10047
- sectionId: z321.string().optional(),
10048
- afterArtifactId: z321.string().optional().nullable(),
10075
+ var DTOForgeProjectArtifactUpdateInput = z322.object({
10076
+ id: z322.string(),
10077
+ title: z322.string().optional(),
10078
+ isArchived: z322.boolean().optional()
10079
+ });
10080
+ var DTOForgeProjectArtifactCreateInput = z322.object({
10081
+ id: z322.string(),
10082
+ title: z322.string(),
10083
+ sectionId: z322.string().optional(),
10084
+ afterArtifactId: z322.string().optional().nullable(),
10049
10085
  initialMessage: DTOThreadMessageCreateInput.optional()
10050
10086
  });
10051
- var DTOForgeProjectArtifactDeleteInput = z321.object({
10087
+ var DTOForgeProjectArtifactDeleteInput = z322.object({
10052
10088
  id: Id
10053
10089
  });
10054
10090
  var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
10055
- var DTOForgeDocumentGetByIdParam = z321.object({
10091
+ var DTOForgeDocumentGetByIdParam = z322.object({
10056
10092
  id: Id
10057
10093
  });
10058
- var DTOForgeProjectArtifactGetResponse = z321.object({
10094
+ var DTOForgeProjectArtifactGetResponse = z322.object({
10059
10095
  artifact: DTOForgeProjectArtifact
10060
10096
  });
10061
- var DTOForgeDocumentGetResponse = z321.object({
10097
+ var DTOForgeDocumentGetResponse = z322.object({
10062
10098
  document: DTOForgeProjectArtifact
10063
10099
  });
10064
- var DTOForgeProjectArtifactCreateResponse = z321.object({
10100
+ var DTOForgeProjectArtifactCreateResponse = z322.object({
10065
10101
  artifact: DTOForgeProjectArtifact
10066
10102
  });
10067
- var DTOForgeProjectArtifactUpdateResponse = z321.object({
10103
+ var DTOForgeProjectArtifactUpdateResponse = z322.object({
10068
10104
  artifact: DTOForgeProjectArtifact
10069
10105
  });
10070
- var DTOForgeProjectArtifactDeleteResponse = z321.object({
10071
- ok: z321.literal(true)
10106
+ var DTOForgeProjectArtifactDeleteResponse = z322.object({
10107
+ ok: z322.literal(true)
10072
10108
  });
10073
- var DTOForgeProjectArtifactMoveResponse = z321.object({
10109
+ var DTOForgeProjectArtifactMoveResponse = z322.object({
10074
10110
  artifact: DTOForgeProjectArtifact
10075
10111
  });
10076
- var DTOForgeProjectArtifactsListResponse = z321.object({
10077
- artifacts: z321.array(DTOForgeProjectArtifact)
10112
+ var DTOForgeProjectArtifactsListResponse = z322.object({
10113
+ artifacts: z322.array(DTOForgeProjectArtifact)
10078
10114
  });
10079
- var DTOForgeProjectArtifactContentResponse = z321.object({
10080
- artifactId: z321.string(),
10115
+ var DTOForgeProjectArtifactContentResponse = z322.object({
10116
+ artifactId: z322.string(),
10081
10117
  content: ForgeProjectArtifactContentData
10082
10118
  });
10083
10119
 
10084
10120
  // src/api/dto/forge/project-feature.ts
10085
- import z322 from "zod";
10121
+ import z323 from "zod";
10086
10122
  var DTOForgeProjectFeature = ProjectFeature;
10087
- var DTOForgeProjectFeatureListResponse = z322.object({
10123
+ var DTOForgeProjectFeatureListResponse = z323.object({
10088
10124
  features: DTOForgeProjectFeature.array()
10089
10125
  });
10090
- var DTOForgeProjectFeatureGetResponse = z322.object({
10126
+ var DTOForgeProjectFeatureGetResponse = z323.object({
10091
10127
  feature: DTOForgeProjectFeature
10092
10128
  });
10093
- var DTOForgeProjectFeatureCreateInput = z322.object({
10129
+ var DTOForgeProjectFeatureCreateInput = z323.object({
10094
10130
  id: Id,
10095
- name: z322.string().optional(),
10096
- description: z322.string(),
10131
+ name: z323.string().optional(),
10132
+ description: z323.string(),
10097
10133
  sectionId: Id.optional(),
10098
10134
  afterFeatureId: Id.nullable().optional(),
10099
10135
  initialMessage: DTOThreadMessageCreateInput
10100
10136
  });
10101
- var DTOForgeProjectFeatureUpdateInput = z322.object({
10137
+ var DTOForgeProjectFeatureUpdateInput = z323.object({
10102
10138
  id: Id,
10103
- name: z322.string().optional(),
10104
- description: z322.string().optional(),
10105
- isArchived: z322.boolean().optional(),
10139
+ name: z323.string().optional(),
10140
+ description: z323.string().optional(),
10141
+ isArchived: z323.boolean().optional(),
10106
10142
  status: ProjectFeatureStatus.optional()
10107
10143
  });
10108
- var DTOForgeProjectFeatureDeleteInput = z322.object({
10144
+ var DTOForgeProjectFeatureDeleteInput = z323.object({
10109
10145
  id: Id
10110
10146
  });
10111
- var DTOForgeProjectFeatureGetByIdParam = z322.object({
10147
+ var DTOForgeProjectFeatureGetByIdParam = z323.object({
10112
10148
  id: Id
10113
10149
  });
10114
10150
  var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
10115
10151
 
10116
10152
  // src/api/dto/forge/project-action.ts
10117
- var DTOForgeProjectActionFeatureCreate = z323.object({
10118
- type: z323.literal("FeatureCreate"),
10153
+ var DTOForgeProjectActionFeatureCreate = z324.object({
10154
+ type: z324.literal("FeatureCreate"),
10119
10155
  input: DTOForgeProjectFeatureCreateInput
10120
10156
  });
10121
- var DTOForgeProjectActionFeatureUpdate = z323.object({
10122
- type: z323.literal("FeatureUpdate"),
10157
+ var DTOForgeProjectActionFeatureUpdate = z324.object({
10158
+ type: z324.literal("FeatureUpdate"),
10123
10159
  input: DTOForgeProjectFeatureUpdateInput
10124
10160
  });
10125
- var DTOForgeProjectActionFeatureMove = z323.object({
10126
- type: z323.literal("FeatureMove"),
10161
+ var DTOForgeProjectActionFeatureMove = z324.object({
10162
+ type: z324.literal("FeatureMove"),
10127
10163
  input: DTOForgeProjectFeatureMoveInput
10128
10164
  });
10129
- var DTOForgeProjectActionFeatureDelete = z323.object({
10130
- type: z323.literal("FeatureDelete"),
10165
+ var DTOForgeProjectActionFeatureDelete = z324.object({
10166
+ type: z324.literal("FeatureDelete"),
10131
10167
  input: DTOForgeProjectFeatureDeleteInput
10132
10168
  });
10133
- var DTOForgeProjectActionArtifactCreate = z323.object({
10134
- type: z323.literal("ArtifactCreate"),
10169
+ var DTOForgeProjectActionArtifactCreate = z324.object({
10170
+ type: z324.literal("ArtifactCreate"),
10135
10171
  input: DTOForgeProjectArtifactCreateInput
10136
10172
  });
10137
- var DTOForgeProjectActionArtifactUpdate = z323.object({
10138
- type: z323.literal("ArtifactUpdate"),
10173
+ var DTOForgeProjectActionArtifactUpdate = z324.object({
10174
+ type: z324.literal("ArtifactUpdate"),
10139
10175
  input: DTOForgeProjectArtifactUpdateInput
10140
10176
  });
10141
- var DTOForgeProjectActionArtifactDelete = z323.object({
10142
- type: z323.literal("ArtifactDelete"),
10177
+ var DTOForgeProjectActionArtifactDelete = z324.object({
10178
+ type: z324.literal("ArtifactDelete"),
10143
10179
  input: DTOForgeProjectArtifactDeleteInput
10144
10180
  });
10145
- var DTOForgeProjectActionArtifactMove = z323.object({
10146
- type: z323.literal("ArtifactMove"),
10181
+ var DTOForgeProjectActionArtifactMove = z324.object({
10182
+ type: z324.literal("ArtifactMove"),
10147
10183
  input: DTOForgeProjectArtifactMoveInput
10148
10184
  });
10149
- var DTOForgeProjectActionSectionCreate = z323.object({
10150
- type: z323.literal("SectionCreate"),
10185
+ var DTOForgeProjectActionSectionCreate = z324.object({
10186
+ type: z324.literal("SectionCreate"),
10151
10187
  input: DTOForgeSectionCreateInput
10152
10188
  });
10153
- var DTOForgeProjectActionSectionUpdate = z323.object({
10154
- type: z323.literal("SectionUpdate"),
10189
+ var DTOForgeProjectActionSectionUpdate = z324.object({
10190
+ type: z324.literal("SectionUpdate"),
10155
10191
  input: DTOForgeSectionUpdateInput
10156
10192
  });
10157
- var DTOForgeProjectActionSectionDelete = z323.object({
10158
- type: z323.literal("SectionDelete"),
10193
+ var DTOForgeProjectActionSectionDelete = z324.object({
10194
+ type: z324.literal("SectionDelete"),
10159
10195
  input: DTOForgeSectionDeleteInput
10160
10196
  });
10161
- var DTOForgeProjectActionSectionMove = z323.object({
10162
- type: z323.literal("SectionMove"),
10197
+ var DTOForgeProjectActionSectionMove = z324.object({
10198
+ type: z324.literal("SectionMove"),
10163
10199
  input: DTOForgeSectionMoveInput
10164
10200
  });
10165
- var DTOForgeProjectAction = z323.discriminatedUnion("type", [
10201
+ var DTOForgeProjectAction = z324.discriminatedUnion("type", [
10166
10202
  //features
10167
10203
  DTOForgeProjectActionFeatureCreate,
10168
10204
  DTOForgeProjectActionFeatureUpdate,
@@ -10179,38 +10215,38 @@ var DTOForgeProjectAction = z323.discriminatedUnion("type", [
10179
10215
  DTOForgeProjectActionSectionDelete,
10180
10216
  DTOForgeProjectActionSectionMove
10181
10217
  ]).and(
10182
- z323.object({
10183
- tId: z323.string().optional()
10218
+ z324.object({
10219
+ tId: z324.string().optional()
10184
10220
  })
10185
10221
  );
10186
10222
 
10187
10223
  // src/api/dto/forge/project-artifact-room.ts
10188
- import { z as z324 } from "zod";
10189
- var DTOForgeProjectArtifactRoom = z324.object({
10190
- id: z324.string()
10224
+ import { z as z325 } from "zod";
10225
+ var DTOForgeProjectArtifactRoom = z325.object({
10226
+ id: z325.string()
10191
10227
  });
10192
- var DTOForgeProjectArtifactRoomResponse = z324.object({
10228
+ var DTOForgeProjectArtifactRoomResponse = z325.object({
10193
10229
  room: DTOForgeProjectArtifactRoom
10194
10230
  });
10195
10231
 
10196
10232
  // src/api/dto/forge/project-context-v2.ts
10197
- import { z as z325 } from "zod";
10198
- var DTOForgeComponentSetTypeV2 = z325.enum(["Shadcn"]);
10199
- var DTOForgeComponentSet = z325.object({
10233
+ import { z as z326 } from "zod";
10234
+ var DTOForgeComponentSetTypeV2 = z326.enum(["Shadcn"]);
10235
+ var DTOForgeComponentSet = z326.object({
10200
10236
  type: DTOForgeComponentSetTypeV2
10201
10237
  });
10202
- var DTOForgeIconSetTypeV2 = z325.enum(["Phosphor", "Lucide", "Tabler"]);
10203
- var DTOForgeThemeKnownPreset = z325.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
10204
- var DTOForgeIconSet = z325.object({
10238
+ var DTOForgeIconSetTypeV2 = z326.enum(["Phosphor", "Lucide", "Tabler"]);
10239
+ var DTOForgeThemeKnownPreset = z326.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
10240
+ var DTOForgeIconSet = z326.object({
10205
10241
  type: DTOForgeIconSetTypeV2,
10206
- variant: z325.string().optional()
10242
+ variant: z326.string().optional()
10207
10243
  });
10208
- var DTOForgeTokenThemeSet = z325.object({
10209
- id: z325.string(),
10210
- name: z325.string(),
10211
- tokenThemeIds: z325.array(z325.string())
10244
+ var DTOForgeTokenThemeSet = z326.object({
10245
+ id: z326.string(),
10246
+ name: z326.string(),
10247
+ tokenThemeIds: z326.array(z326.string())
10212
10248
  });
10213
- var DTOForgeProjectTheme = z325.object({
10249
+ var DTOForgeProjectTheme = z326.object({
10214
10250
  // Colors
10215
10251
  background: ColorTokenData,
10216
10252
  foreground: ColorTokenData,
@@ -10295,24 +10331,24 @@ var DTOForgeProjectTheme = z325.object({
10295
10331
  shadowXl: ShadowTokenData,
10296
10332
  shadow2xl: ShadowTokenData
10297
10333
  });
10298
- var DTOForgeProjectContextV2 = z325.object({
10299
- id: z325.string(),
10300
- name: z325.string(),
10301
- workspaceId: z325.string(),
10302
- designSystemId: z325.string().optional(),
10303
- brandId: z325.string().optional(),
10304
- defaultTokenThemeSetId: z325.string().optional(),
10305
- description: z325.string().optional(),
10306
- productContext: z325.string().optional(),
10307
- additionalContext: z325.string().optional(),
10308
- isArchived: z325.boolean(),
10309
- themePreset: z325.string().optional(),
10310
- tokenThemeSets: z325.array(DTOForgeTokenThemeSet).optional(),
10334
+ var DTOForgeProjectContextV2 = z326.object({
10335
+ id: z326.string(),
10336
+ name: z326.string(),
10337
+ workspaceId: z326.string(),
10338
+ designSystemId: z326.string().optional(),
10339
+ brandId: z326.string().optional(),
10340
+ defaultTokenThemeSetId: z326.string().optional(),
10341
+ description: z326.string().optional(),
10342
+ productContext: z326.string().optional(),
10343
+ additionalContext: z326.string().optional(),
10344
+ isArchived: z326.boolean(),
10345
+ themePreset: z326.string().optional(),
10346
+ tokenThemeSets: z326.array(DTOForgeTokenThemeSet).optional(),
10311
10347
  componentSet: DTOForgeComponentSet,
10312
10348
  iconSet: DTOForgeIconSet,
10313
10349
  theme: DTOForgeProjectTheme,
10314
- createdAt: z325.coerce.date(),
10315
- updatedAt: z325.coerce.date(),
10350
+ createdAt: z326.coerce.date(),
10351
+ updatedAt: z326.coerce.date(),
10316
10352
  thumbnail: DTOFileReference.optional()
10317
10353
  });
10318
10354
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
@@ -10322,7 +10358,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
10322
10358
  isArchived: true,
10323
10359
  thumbnail: true
10324
10360
  }).extend({
10325
- thumbnailFileId: z325.string().optional()
10361
+ thumbnailFileId: z326.string().optional()
10326
10362
  });
10327
10363
  var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
10328
10364
  id: true,
@@ -10331,43 +10367,43 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
10331
10367
  updatedAt: true,
10332
10368
  thumbnail: true
10333
10369
  }).partial().extend({
10334
- thumbnailFileId: z325.string().optional()
10370
+ thumbnailFileId: z326.string().optional()
10335
10371
  });
10336
- var DTOForgeProjectContextResponseV2 = z325.object({ context: DTOForgeProjectContextV2 });
10337
- var DTOForgeProjectContextListQueryV2 = z325.object({
10338
- workspaceId: z325.string(),
10372
+ var DTOForgeProjectContextResponseV2 = z326.object({ context: DTOForgeProjectContextV2 });
10373
+ var DTOForgeProjectContextListQueryV2 = z326.object({
10374
+ workspaceId: z326.string(),
10339
10375
  isArchived: zodQueryBoolean()
10340
10376
  });
10341
- var DTOForgeProjectContextListResponseV2 = z325.object({ contexts: z325.array(DTOForgeProjectContextV2) });
10377
+ var DTOForgeProjectContextListResponseV2 = z326.object({ contexts: z326.array(DTOForgeProjectContextV2) });
10342
10378
 
10343
10379
  // src/api/dto/forge/project-context.ts
10344
- import { z as z326 } from "zod";
10345
- var DTOForgeProjectContext = z326.object({
10346
- definition: z326.string(),
10347
- dependencies: z326.array(
10348
- z326.object({
10349
- packageName: z326.string(),
10350
- type: z326.literal("npm"),
10351
- version: z326.string().default("latest")
10380
+ import { z as z327 } from "zod";
10381
+ var DTOForgeProjectContext = z327.object({
10382
+ definition: z327.string(),
10383
+ dependencies: z327.array(
10384
+ z327.object({
10385
+ packageName: z327.string(),
10386
+ type: z327.literal("npm"),
10387
+ version: z327.string().default("latest")
10352
10388
  })
10353
10389
  ),
10354
- designSystemId: z326.string(),
10355
- id: z326.string(),
10356
- meta: z326.object({
10357
- name: z326.string(),
10358
- description: z326.string().optional()
10390
+ designSystemId: z327.string(),
10391
+ id: z327.string(),
10392
+ meta: z327.object({
10393
+ name: z327.string(),
10394
+ description: z327.string().optional()
10359
10395
  }),
10360
- name: z326.string(),
10396
+ name: z327.string(),
10361
10397
  npmProxySettings: DTONpmRegistryConfig.optional(),
10362
- platform: z326.enum(["React", "Vue", "Angular"]),
10363
- styling: z326.enum(["CSS", "Tailwind"]),
10364
- tailwindConfig: z326.object({
10365
- content: z326.string(),
10366
- version: z326.string()
10398
+ platform: z327.enum(["React", "Vue", "Angular"]),
10399
+ styling: z327.enum(["CSS", "Tailwind"]),
10400
+ tailwindConfig: z327.object({
10401
+ content: z327.string(),
10402
+ version: z327.string()
10367
10403
  }).optional(),
10368
- createdAt: z326.coerce.date(),
10369
- updatedAt: z326.coerce.date(),
10370
- workspaceId: z326.string()
10404
+ createdAt: z327.coerce.date(),
10405
+ updatedAt: z327.coerce.date(),
10406
+ workspaceId: z327.string()
10371
10407
  });
10372
10408
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
10373
10409
  definition: true,
@@ -10379,13 +10415,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
10379
10415
  tailwindConfig: true,
10380
10416
  styling: true
10381
10417
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
10382
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z326.string() });
10383
- var DTOForgeProjectContextGetResponse = z326.object({ context: DTOForgeProjectContext });
10384
- var DTOForgeProjectContextListResponse = z326.object({ contexts: z326.array(DTOForgeProjectContext) });
10385
- var DTOForgeProjectContextCreateResponse = z326.object({ context: DTOForgeProjectContext });
10386
- var DTOForgeProjectContextUpdateResponse = z326.object({ context: DTOForgeProjectContext });
10387
- var DTOForgeProjectContextRemoveResponse = z326.object({
10388
- ok: z326.literal(true)
10418
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z327.string() });
10419
+ var DTOForgeProjectContextGetResponse = z327.object({ context: DTOForgeProjectContext });
10420
+ var DTOForgeProjectContextListResponse = z327.object({ contexts: z327.array(DTOForgeProjectContext) });
10421
+ var DTOForgeProjectContextCreateResponse = z327.object({ context: DTOForgeProjectContext });
10422
+ var DTOForgeProjectContextUpdateResponse = z327.object({ context: DTOForgeProjectContext });
10423
+ var DTOForgeProjectContextRemoveResponse = z327.object({
10424
+ ok: z327.literal(true)
10389
10425
  });
10390
10426
 
10391
10427
  // src/api/dto/forge/project-figma-node.ts
@@ -10393,42 +10429,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
10393
10429
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
10394
10430
 
10395
10431
  // src/api/dto/forge/project-file.ts
10396
- import { z as z327 } from "zod";
10397
- var DTOForgeProjectFile = z327.object({
10398
- id: z327.string(),
10399
- name: z327.string(),
10400
- checksum: z327.string(),
10401
- pendingUpload: z327.boolean().optional(),
10402
- url: z327.string(),
10403
- size: z327.number()
10404
- });
10405
- var DTOForgeProjectFileListResponse = z327.object({
10406
- files: z327.array(DTOForgeProjectFile)
10407
- });
10408
- var DTOForgeProjectFileUploadPayloadItem = z327.object({
10409
- size: z327.number(),
10410
- name: z327.string(),
10411
- checksum: z327.string()
10412
- });
10413
- var DTOForgeProjectFileUploadPayload = z327.object({
10414
- files: z327.array(DTOForgeProjectFileUploadPayloadItem)
10415
- });
10416
- var DTOForgeProjectFileUploadResponse = z327.object({
10417
- files: z327.array(DTOForgeProjectFile),
10418
- uploadUrls: z327.array(
10419
- z327.object({
10420
- fileId: z327.string(),
10421
- uploadUrl: z327.string()
10432
+ import { z as z328 } from "zod";
10433
+ var DTOForgeProjectFile = z328.object({
10434
+ id: z328.string(),
10435
+ name: z328.string(),
10436
+ checksum: z328.string(),
10437
+ pendingUpload: z328.boolean().optional(),
10438
+ url: z328.string(),
10439
+ size: z328.number()
10440
+ });
10441
+ var DTOForgeProjectFileListResponse = z328.object({
10442
+ files: z328.array(DTOForgeProjectFile)
10443
+ });
10444
+ var DTOForgeProjectFileUploadPayloadItem = z328.object({
10445
+ size: z328.number(),
10446
+ name: z328.string(),
10447
+ checksum: z328.string()
10448
+ });
10449
+ var DTOForgeProjectFileUploadPayload = z328.object({
10450
+ files: z328.array(DTOForgeProjectFileUploadPayloadItem)
10451
+ });
10452
+ var DTOForgeProjectFileUploadResponse = z328.object({
10453
+ files: z328.array(DTOForgeProjectFile),
10454
+ uploadUrls: z328.array(
10455
+ z328.object({
10456
+ fileId: z328.string(),
10457
+ uploadUrl: z328.string()
10422
10458
  })
10423
10459
  )
10424
10460
  });
10425
- var DTOForgeProjectFileUploadFinalizePayload = z327.object({
10426
- fileIds: z327.array(z327.string())
10461
+ var DTOForgeProjectFileUploadFinalizePayload = z328.object({
10462
+ fileIds: z328.array(z328.string())
10427
10463
  });
10428
- var DTOForgeProjectFileUploadFinalizeResponse = z327.object({ ok: z327.literal(true) });
10464
+ var DTOForgeProjectFileUploadFinalizeResponse = z328.object({ ok: z328.literal(true) });
10429
10465
 
10430
10466
  // src/api/dto/forge/project-invitation.ts
10431
- import { z as z328 } from "zod";
10467
+ import { z as z329 } from "zod";
10432
10468
  var DTOForgeProjectInvitation = ForgeProjectInvitation;
10433
10469
  var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
10434
10470
  email: true,
@@ -10438,24 +10474,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
10438
10474
  var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
10439
10475
  email: true
10440
10476
  });
10441
- var DTOForgeProjectInvitationsListResponse = z328.object({
10442
- invitations: z328.array(DTOForgeProjectInvitation)
10477
+ var DTOForgeProjectInvitationsListResponse = z329.object({
10478
+ invitations: z329.array(DTOForgeProjectInvitation)
10443
10479
  });
10444
- var DTOForgeProjectInvitationGetResponse = z328.object({
10480
+ var DTOForgeProjectInvitationGetResponse = z329.object({
10445
10481
  invitation: DTOForgeProjectInvitation
10446
10482
  });
10447
- var DTOForgeProjectInvitationCreateResponse = z328.object({
10483
+ var DTOForgeProjectInvitationCreateResponse = z329.object({
10448
10484
  invitation: DTOForgeProjectInvitation
10449
10485
  });
10450
- var DTOForgeProjectInvitationUpdateResponse = z328.object({
10486
+ var DTOForgeProjectInvitationUpdateResponse = z329.object({
10451
10487
  invitation: DTOForgeProjectInvitation.nullable()
10452
10488
  });
10453
- var DTOForgeProjectInvitationRemoveResponse = z328.object({
10454
- ok: z328.literal(true)
10489
+ var DTOForgeProjectInvitationRemoveResponse = z329.object({
10490
+ ok: z329.literal(true)
10455
10491
  });
10456
10492
 
10457
10493
  // src/api/dto/forge/project-iteration-old.ts
10458
- import { z as z329 } from "zod";
10494
+ import { z as z330 } from "zod";
10459
10495
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
10460
10496
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10461
10497
  artifacts: true,
@@ -10466,7 +10502,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10466
10502
  messages: DTOForgeIterationMessage.array(),
10467
10503
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
10468
10504
  });
10469
- var DTOGetForgeProjectIterationResponse = z329.object({
10505
+ var DTOGetForgeProjectIterationResponse = z330.object({
10470
10506
  iteration: DTOForgeProjectIteration.nullable()
10471
10507
  });
10472
10508
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -10476,20 +10512,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
10476
10512
  mergeMeta: true,
10477
10513
  createdAt: true
10478
10514
  });
10479
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z329.string() });
10480
- var DTOCreateForgeProjectIterationResponse = z329.object({
10515
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z330.string() });
10516
+ var DTOCreateForgeProjectIterationResponse = z330.object({
10481
10517
  iteration: DTOForgeProjectIteration
10482
10518
  });
10483
- var DTOUpdateForgeProjectIterationResponse = z329.object({
10519
+ var DTOUpdateForgeProjectIterationResponse = z330.object({
10484
10520
  iteration: DTOForgeProjectIteration.nullable()
10485
10521
  });
10486
- var DTODeleteForgeProjectIterationResponse = z329.object({
10487
- ok: z329.literal(true)
10522
+ var DTODeleteForgeProjectIterationResponse = z330.object({
10523
+ ok: z330.literal(true)
10488
10524
  });
10489
- var DTOForgeProjectIterationListResponse = z329.object({ iterations: z329.array(DTOForgeProjectIteration) });
10525
+ var DTOForgeProjectIterationListResponse = z330.object({ iterations: z330.array(DTOForgeProjectIteration) });
10490
10526
 
10491
10527
  // src/api/dto/forge/project-member.ts
10492
- import { z as z330 } from "zod";
10528
+ import { z as z331 } from "zod";
10493
10529
  var DTOForgeProjectMemberRole = ForgeProjectRole;
10494
10530
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
10495
10531
  user: DTOUser,
@@ -10503,87 +10539,87 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
10503
10539
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
10504
10540
  userId: true
10505
10541
  });
10506
- var DTOForgeProjectMembersListResponse = z330.object({
10507
- members: z330.array(DTOForgeProjectMember),
10508
- invitations: z330.array(DTOForgeProjectInvitation)
10542
+ var DTOForgeProjectMembersListResponse = z331.object({
10543
+ members: z331.array(DTOForgeProjectMember),
10544
+ invitations: z331.array(DTOForgeProjectInvitation)
10509
10545
  });
10510
- var DTOForgeProjectMemberGetResponse = z330.object({
10546
+ var DTOForgeProjectMemberGetResponse = z331.object({
10511
10547
  member: DTOForgeProjectMember
10512
10548
  });
10513
- var DTOForgeProjectMemberCreateResponse = z330.object({
10549
+ var DTOForgeProjectMemberCreateResponse = z331.object({
10514
10550
  member: DTOForgeProjectMember
10515
10551
  });
10516
- var DTOForgeProjectMemberUpdateResponse = z330.object({
10552
+ var DTOForgeProjectMemberUpdateResponse = z331.object({
10517
10553
  member: DTOForgeProjectMember.nullable()
10518
10554
  });
10519
- var DTOForgeProjectMemberRemoveResponse = z330.object({
10520
- ok: z330.literal(true)
10555
+ var DTOForgeProjectMemberRemoveResponse = z331.object({
10556
+ ok: z331.literal(true)
10521
10557
  });
10522
- var DTOAddMembersToForgeProject = z330.object({
10558
+ var DTOAddMembersToForgeProject = z331.object({
10523
10559
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
10524
10560
  });
10525
10561
 
10526
10562
  // src/api/dto/forge/project-room.ts
10527
- import { z as z331 } from "zod";
10528
- var DTOForgeProjectRoom = z331.object({
10529
- id: z331.string()
10563
+ import { z as z332 } from "zod";
10564
+ var DTOForgeProjectRoom = z332.object({
10565
+ id: z332.string()
10530
10566
  });
10531
- var DTOForgeProjectRoomResponse = z331.object({
10567
+ var DTOForgeProjectRoomResponse = z332.object({
10532
10568
  room: DTOForgeProjectRoom
10533
10569
  });
10534
10570
 
10535
10571
  // src/api/dto/forge/project.ts
10536
- import { z as z332 } from "zod";
10572
+ import { z as z333 } from "zod";
10537
10573
  var DTOForgeProjectRole = ForgeProjectRole;
10538
10574
  var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
10539
10575
  var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
10540
- var DTOForgeProjectDocumentPreview = z332.object({
10541
- id: z332.string(),
10542
- title: z332.string(),
10576
+ var DTOForgeProjectDocumentPreview = z333.object({
10577
+ id: z333.string(),
10578
+ title: z333.string(),
10543
10579
  thumbnail: DTOFileReference.optional(),
10544
- createdAt: z332.string(),
10545
- updatedAt: z332.string()
10580
+ createdAt: z333.string(),
10581
+ updatedAt: z333.string()
10546
10582
  });
10547
- var DTOForgeProjectFeaturePreview = z332.object({
10548
- id: z332.string(),
10549
- name: z332.string(),
10583
+ var DTOForgeProjectFeaturePreview = z333.object({
10584
+ id: z333.string(),
10585
+ name: z333.string(),
10550
10586
  thumbnail: DTOFileReference.optional(),
10551
- createdAt: z332.string(),
10552
- updatedAt: z332.string()
10553
- });
10554
- var DTOForgeProject = z332.object({
10555
- id: z332.string(),
10556
- workspaceId: z332.string(),
10557
- projectContextId: z332.string(),
10558
- name: z332.string(),
10559
- description: z332.string().optional(),
10560
- instruction: z332.string().nullable(),
10561
- tags: z332.array(z332.string()).default([]),
10587
+ createdAt: z333.string(),
10588
+ updatedAt: z333.string()
10589
+ });
10590
+ var DTOForgeProject = z333.object({
10591
+ id: z333.string(),
10592
+ workspaceId: z333.string(),
10593
+ projectContextId: z333.string(),
10594
+ name: z333.string(),
10595
+ description: z333.string().optional(),
10596
+ instruction: z333.string().nullable(),
10597
+ tags: z333.array(z333.string()).default([]),
10562
10598
  accessMode: DTOForgeProjectAccessMode,
10563
10599
  defaultRole: DTOForgeProjectDefaultRole,
10564
- isArchived: z332.boolean(),
10565
- emoji: z332.string().optional(),
10566
- tokenThemeSetId: z332.string().optional(),
10567
- createdAt: z332.coerce.date(),
10568
- createdByUserId: z332.string().optional(),
10569
- lastUserActivityAt: z332.coerce.date().optional(),
10570
- updatedAt: z332.coerce.date(),
10600
+ isArchived: z333.boolean(),
10601
+ emoji: z333.string().optional(),
10602
+ tokenThemeSetId: z333.string().optional(),
10603
+ createdAt: z333.coerce.date(),
10604
+ createdByUserId: z333.string().optional(),
10605
+ lastUserActivityAt: z333.coerce.date().optional(),
10606
+ updatedAt: z333.coerce.date(),
10571
10607
  documents: DTOForgeProjectDocumentPreview.array(),
10572
10608
  features: DTOForgeProjectFeaturePreview.array(),
10573
10609
  /** @deprecated use `projectContextId` */
10574
- fpContextId: z332.string(),
10610
+ fpContextId: z333.string(),
10575
10611
  /** @deprecated use `name` and `description` properties on project */
10576
- meta: z332.object({
10577
- name: z332.string(),
10578
- description: z332.string().optional()
10612
+ meta: z333.object({
10613
+ name: z333.string(),
10614
+ description: z333.string().optional()
10579
10615
  }),
10580
10616
  /** @deprecated use features.length */
10581
- numberOfFeatures: z332.number().int().nonnegative(),
10617
+ numberOfFeatures: z333.number().int().nonnegative(),
10582
10618
  /** @deprecated use documents.length */
10583
- numberOfDocuments: z332.number().int().nonnegative().optional(),
10619
+ numberOfDocuments: z333.number().int().nonnegative().optional(),
10584
10620
  /** @deprecated prefer fetching from project contexts endpoint separately */
10585
10621
  context: DTOForgeProjectContextV2.optional(),
10586
- liveblocksRoomId: z332.string().optional()
10622
+ liveblocksRoomId: z333.string().optional()
10587
10623
  });
10588
10624
  var DTOForgeProjectCreate = DTOForgeProject.pick({
10589
10625
  name: true,
@@ -10596,8 +10632,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
10596
10632
  /** @deprecated use `name` and `description` properties on project */
10597
10633
  meta: DTOForgeProject.shape.meta.optional(),
10598
10634
  /** @deprecated use `projectContextId` */
10599
- fpContextId: z332.string().optional(),
10600
- projectContextId: z332.string().optional(),
10635
+ fpContextId: z333.string().optional(),
10636
+ projectContextId: z333.string().optional(),
10601
10637
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
10602
10638
  initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
10603
10639
  initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
@@ -10605,147 +10641,110 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
10605
10641
  defaultRole: DTOForgeProjectDefaultRole.optional()
10606
10642
  });
10607
10643
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10608
- id: z332.string(),
10609
- isArchived: z332.boolean().optional()
10644
+ id: z333.string(),
10645
+ isArchived: z333.boolean().optional()
10610
10646
  });
10611
- var DTOForgeProjectListResponse = z332.object({
10612
- projects: z332.array(
10647
+ var DTOForgeProjectListResponse = z333.object({
10648
+ projects: z333.array(
10613
10649
  DTOForgeProject.extend({
10614
10650
  effectiveRole: DTOForgeProjectRole
10615
10651
  })
10616
10652
  )
10617
10653
  });
10618
- var DTOForgeProjectResponse = z332.object({
10654
+ var DTOForgeProjectResponse = z333.object({
10619
10655
  project: DTOForgeProject.extend({
10620
10656
  effectiveRole: DTOForgeProjectRole
10621
10657
  })
10622
10658
  });
10623
10659
 
10624
10660
  // src/api/dto/forge/relation.ts
10625
- import z333 from "zod";
10661
+ import z334 from "zod";
10626
10662
  var DTOForgeRelationType = ForgeRelationType;
10627
10663
  var DTOForgeRelation = ForgeRelation;
10628
10664
  var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
10629
- var DTOForgeRelationDelete = z333.object({
10630
- sourceItemId: z333.string().uuid(),
10631
- targetItemId: z333.string().uuid()
10665
+ var DTOForgeRelationDelete = z334.object({
10666
+ sourceItemId: z334.string().uuid(),
10667
+ targetItemId: z334.string().uuid()
10632
10668
  });
10633
- var DTOForgeRelationListInput = z333.object({
10634
- projectId: z333.string()
10669
+ var DTOForgeRelationListInput = z334.object({
10670
+ projectId: z334.string()
10635
10671
  });
10636
- var DTOForgeRelationListResponse = z333.object({
10637
- relations: z333.array(DTOForgeRelation)
10672
+ var DTOForgeRelationListResponse = z334.object({
10673
+ relations: z334.array(DTOForgeRelation)
10638
10674
  });
10639
- var DTOForgeEntity = z333.object({
10640
- id: z333.string().uuid(),
10675
+ var DTOForgeEntity = z334.object({
10676
+ id: z334.string().uuid(),
10641
10677
  type: DTOForgeRelationType
10642
10678
  });
10643
10679
 
10644
10680
  // src/api/dto/forge/threads.ts
10645
- import { z as z334 } from "zod";
10681
+ import { z as z335 } from "zod";
10646
10682
  var DTOForgeChatMessage = ForgeChatMessage;
10647
10683
  var DTOForgeChatThread = ForgeChatThread;
10648
10684
  var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
10649
10685
  var DTOForgeChatMessageSender = ForgeChatMessageSender;
10650
- var DTOForgeChatThreadCreateInput = z334.object({
10651
- title: z334.string().optional()
10686
+ var DTOForgeChatThreadCreateInput = z335.object({
10687
+ title: z335.string().optional()
10652
10688
  });
10653
- var DTOForgeChatThreadCreateResponse = z334.object({
10689
+ var DTOForgeChatThreadCreateResponse = z335.object({
10654
10690
  thread: DTOForgeChatThread
10655
10691
  });
10656
- var DTOForgeChatThreadUpdateInput = z334.object({
10657
- title: z334.string()
10692
+ var DTOForgeChatThreadUpdateInput = z335.object({
10693
+ title: z335.string()
10658
10694
  });
10659
- var DTOForgeChatThreadUpdateResponse = z334.object({
10695
+ var DTOForgeChatThreadUpdateResponse = z335.object({
10660
10696
  thread: DTOForgeChatThread
10661
10697
  });
10662
- var DTOForgeChatThreadDeleteResponse = z334.object({
10663
- success: z334.boolean()
10698
+ var DTOForgeChatThreadDeleteResponse = z335.object({
10699
+ success: z335.boolean()
10664
10700
  });
10665
- var DTOForgeChatThreadListQuery = z334.object({
10666
- limit: z334.number().optional(),
10667
- offset: z334.number().optional()
10701
+ var DTOForgeChatThreadListQuery = z335.object({
10702
+ limit: z335.number().optional(),
10703
+ offset: z335.number().optional()
10668
10704
  });
10669
- var DTOForgeChatThreadListResponse = z334.object({
10670
- threads: z334.array(DTOForgeChatThread),
10671
- pagination: z334.object({
10672
- offset: z334.number(),
10673
- limit: z334.number(),
10674
- total: z334.number()
10705
+ var DTOForgeChatThreadListResponse = z335.object({
10706
+ threads: z335.array(DTOForgeChatThread),
10707
+ pagination: z335.object({
10708
+ offset: z335.number(),
10709
+ limit: z335.number(),
10710
+ total: z335.number()
10675
10711
  })
10676
10712
  });
10677
- var DTOForgeChatMessageCreateInput = z334.object({
10678
- payload: z334.string(),
10679
- sender: DTOForgeChatMessageSender.optional(),
10680
- opikTraceId: z334.string().optional()
10713
+ var DTOForgeChatMessageCreateInput = z335.object({
10714
+ payload: z335.string(),
10715
+ sender: DTOForgeChatMessageSender.optional()
10681
10716
  });
10682
- var DTOForgeChatMessageCreateResponse = z334.object({
10717
+ var DTOForgeChatMessageCreateResponse = z335.object({
10683
10718
  message: DTOForgeChatMessage
10684
10719
  });
10685
- var DTOForgeChatMessageListQuery = z334.object({
10686
- limit: z334.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10687
- offset: z334.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10720
+ var DTOForgeChatMessageListQuery = z335.object({
10721
+ limit: z335.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
10722
+ offset: z335.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
10688
10723
  });
10689
- var DTOForgeChatMessageListResponse = z334.object({
10690
- messages: z334.array(DTOForgeChatMessage),
10691
- totalCount: z334.number(),
10692
- hasMore: z334.boolean()
10724
+ var DTOForgeChatMessageListResponse = z335.object({
10725
+ messages: z335.array(DTOForgeChatMessage),
10726
+ totalCount: z335.number(),
10727
+ hasMore: z335.boolean()
10693
10728
  });
10694
- var DTOForgeChatExportResponse = z334.object({
10695
- csvDownloadUrl: z334.string().nullable()
10729
+ var DTOForgeChatExportResponse = z335.object({
10730
+ csvDownloadUrl: z335.string().nullable()
10696
10731
  });
10697
- var DTOForgeChatMessageScoreInput = z334.object({
10698
- messageId: z334.string(),
10699
- name: z334.string(),
10700
- value: z334.number(),
10701
- categoryName: z334.string().optional(),
10702
- reason: z334.string().optional()
10732
+ var DTOForgeChatMessageScoreInput = z335.object({
10733
+ messageId: z335.string(),
10734
+ name: z335.string(),
10735
+ value: z335.number(),
10736
+ categoryName: z335.string().optional(),
10737
+ reason: z335.string().optional()
10703
10738
  });
10704
- var DTOForgeChatMessageTagInput = z334.object({
10705
- messageId: z334.string(),
10706
- tags: z334.array(z334.string())
10739
+ var DTOForgeChatMessageTagInput = z335.object({
10740
+ messageId: z335.string(),
10741
+ tags: z335.array(z335.string())
10707
10742
  });
10708
- var DTOForgeChatMessageScoreRequest = z334.object({
10743
+ var DTOForgeChatMessageScoreRequest = z335.object({
10709
10744
  scores: DTOForgeChatMessageScoreInput.array(),
10710
10745
  tags: DTOForgeChatMessageTagInput.array().optional().default([])
10711
10746
  });
10712
10747
 
10713
- // src/api/dto/forge/memory.ts
10714
- import z335 from "zod";
10715
- var DTOForgeMemoryEntry = z335.object({
10716
- id: z335.string().uuid(),
10717
- projectId: z335.string(),
10718
- text: z335.string(),
10719
- category: z335.string(),
10720
- createdAt: z335.string(),
10721
- updatedAt: z335.string(),
10722
- metadata: z335.record(z335.string()).optional()
10723
- });
10724
- var DTOForgeMemoryCreateInput = z335.object({
10725
- projectId: z335.string(),
10726
- text: z335.string(),
10727
- category: z335.string(),
10728
- metadata: z335.record(z335.string()).optional()
10729
- });
10730
- var DTOForgeMemoryUpdateInput = z335.object({
10731
- id: z335.string().uuid(),
10732
- text: z335.string().optional(),
10733
- category: z335.string(),
10734
- metadata: z335.record(z335.string()).nullish()
10735
- });
10736
- var DTOForgeMemoryDeleteInput = z335.object({
10737
- id: z335.string().uuid()
10738
- });
10739
- var DTOForgeMemoryEntryListResponse = z335.object({
10740
- memoryEntries: DTOForgeMemoryEntry.array()
10741
- });
10742
- var DTOForgeMemoryEntryResponse = z335.object({
10743
- memoryEntry: DTOForgeMemoryEntry
10744
- });
10745
- var DTOForgeMemoryEntryListQuery = z335.object({
10746
- projectId: z335.string()
10747
- });
10748
-
10749
10748
  // src/api/dto/liveblocks/auth-response.ts
10750
10749
  import { z as z336 } from "zod";
10751
10750
  var DTOLiveblocksAuthResponse = z336.object({