@supernova-studio/client 1.43.1 → 1.43.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
@@ -9623,8 +9623,8 @@ var DTODeleteForgeIterationMessageResponse = z314.object({
9623
9623
  ok: z314.literal(true)
9624
9624
  });
9625
9625
 
9626
- // src/api/dto/forge/project.ts
9627
- import { z as z321 } from "zod";
9626
+ // src/api/dto/forge/project-action.ts
9627
+ import z319 from "zod";
9628
9628
 
9629
9629
  // src/api/dto/forge/project-artifact.ts
9630
9630
  import { z as z317 } from "zod";
@@ -9839,19 +9839,128 @@ var DTOForgeProjectArtifactsListResponse = z317.object({
9839
9839
  artifacts: z317.array(DTOForgeProjectArtifact)
9840
9840
  });
9841
9841
 
9842
+ // src/api/dto/forge/project-feature.ts
9843
+ import z318 from "zod";
9844
+ var DTOForgeProjectFeature = ProjectFeature;
9845
+ var DTOForgeProjectFeatureListResponse = z318.object({
9846
+ features: DTOForgeProjectFeature.array()
9847
+ });
9848
+ var DTOForgeProjectFeatureGetResponse = z318.object({
9849
+ feature: DTOForgeProjectFeature
9850
+ });
9851
+ var DTOForgeProjectFeatureCreateInput = z318.object({
9852
+ id: Id,
9853
+ name: z318.string().optional(),
9854
+ description: z318.string(),
9855
+ sectionId: Id.optional(),
9856
+ afterFeatureId: Id.nullable().optional(),
9857
+ initialMessage: DTOThreadMessageCreateInput
9858
+ });
9859
+ var DTOForgeProjectFeatureUpdateInput = z318.object({
9860
+ id: Id,
9861
+ name: z318.string().optional(),
9862
+ description: z318.string().optional(),
9863
+ isArchived: z318.boolean().optional(),
9864
+ status: ProjectFeatureStatus.optional()
9865
+ });
9866
+ var DTOForgeProjectFeatureDeleteInput = z318.object({
9867
+ id: Id
9868
+ });
9869
+ var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9870
+
9871
+ // src/api/dto/forge/project-action.ts
9872
+ var DTOForgeProjectActionFeatureCreate = z319.object({
9873
+ type: z319.literal("FeatureCreate"),
9874
+ input: DTOForgeProjectFeatureCreateInput
9875
+ });
9876
+ var DTOForgeProjectActionFeatureUpdate = z319.object({
9877
+ type: z319.literal("FeatureUpdate"),
9878
+ input: DTOForgeProjectFeatureUpdateInput
9879
+ });
9880
+ var DTOForgeProjectActionFeatureMove = z319.object({
9881
+ type: z319.literal("FeatureMove"),
9882
+ input: DTOForgeProjectFeatureMoveInput
9883
+ });
9884
+ var DTOForgeProjectActionFeatureDelete = z319.object({
9885
+ type: z319.literal("FeatureDelete"),
9886
+ input: DTOForgeProjectFeatureDeleteInput
9887
+ });
9888
+ var DTOForgeProjectActionArtifactCreate = z319.object({
9889
+ type: z319.literal("ArtifactCreate"),
9890
+ input: DTOForgeProjectArtifactCreateInput
9891
+ });
9892
+ var DTOForgeProjectActionArtifactUpdate = z319.object({
9893
+ type: z319.literal("ArtifactUpdate"),
9894
+ input: DTOForgeProjectArtifactUpdateInput
9895
+ });
9896
+ var DTOForgeProjectActionArtifactDelete = z319.object({
9897
+ type: z319.literal("ArtifactDelete"),
9898
+ input: DTOForgeProjectArtifactDeleteInput
9899
+ });
9900
+ var DTOForgeProjectActionArtifactMove = z319.object({
9901
+ type: z319.literal("ArtifactMove"),
9902
+ input: DTOForgeProjectArtifactMoveInput
9903
+ });
9904
+ var DTOForgeProjectActionSectionCreate = z319.object({
9905
+ type: z319.literal("SectionCreate"),
9906
+ input: DTOForgeSectionCreateInput
9907
+ });
9908
+ var DTOForgeProjectActionSectionUpdate = z319.object({
9909
+ type: z319.literal("SectionUpdate"),
9910
+ input: DTOForgeSectionUpdateInput
9911
+ });
9912
+ var DTOForgeProjectActionSectionDelete = z319.object({
9913
+ type: z319.literal("SectionDelete"),
9914
+ input: DTOForgeSectionDeleteInput
9915
+ });
9916
+ var DTOForgeProjectActionSectionMove = z319.object({
9917
+ type: z319.literal("SectionMove"),
9918
+ input: DTOForgeSectionMoveInput
9919
+ });
9920
+ var DTOForgeProjectAction = z319.discriminatedUnion("type", [
9921
+ //features
9922
+ DTOForgeProjectActionFeatureCreate,
9923
+ DTOForgeProjectActionFeatureUpdate,
9924
+ DTOForgeProjectActionFeatureDelete,
9925
+ DTOForgeProjectActionFeatureMove,
9926
+ //artifacts
9927
+ DTOForgeProjectActionArtifactCreate,
9928
+ DTOForgeProjectActionArtifactUpdate,
9929
+ DTOForgeProjectActionArtifactDelete,
9930
+ DTOForgeProjectActionArtifactMove,
9931
+ //section
9932
+ DTOForgeProjectActionSectionCreate,
9933
+ DTOForgeProjectActionSectionUpdate,
9934
+ DTOForgeProjectActionSectionDelete,
9935
+ DTOForgeProjectActionSectionMove
9936
+ ]).and(
9937
+ z319.object({
9938
+ tId: z319.string().optional()
9939
+ })
9940
+ );
9941
+
9942
+ // src/api/dto/forge/project-artifact-room.ts
9943
+ import { z as z320 } from "zod";
9944
+ var DTOForgeProjectArtifactRoom = z320.object({
9945
+ id: z320.string()
9946
+ });
9947
+ var DTOForgeProjectArtifactRoomResponse = z320.object({
9948
+ room: DTOForgeProjectArtifactRoom
9949
+ });
9950
+
9842
9951
  // src/api/dto/forge/project-context-v2.ts
9843
- import { z as z318 } from "zod";
9844
- var DTOForgeComponentSetTypeV2 = z318.enum(["Shadcn"]);
9845
- var DTOForgeComponentSet = z318.object({
9952
+ import { z as z321 } from "zod";
9953
+ var DTOForgeComponentSetTypeV2 = z321.enum(["Shadcn"]);
9954
+ var DTOForgeComponentSet = z321.object({
9846
9955
  type: DTOForgeComponentSetTypeV2
9847
9956
  });
9848
- var DTOForgeIconSetTypeV2 = z318.enum(["Phosphor", "Lucide", "Tabler"]);
9849
- var DTOForgeThemePreset = z318.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9850
- var DTOForgeIconSet = z318.object({
9957
+ var DTOForgeIconSetTypeV2 = z321.enum(["Phosphor", "Lucide", "Tabler"]);
9958
+ var DTOForgeThemePreset = z321.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
9959
+ var DTOForgeIconSet = z321.object({
9851
9960
  type: DTOForgeIconSetTypeV2,
9852
- variant: z318.string().optional()
9961
+ variant: z321.string().optional()
9853
9962
  });
9854
- var DTOForgeProjectTheme = z318.object({
9963
+ var DTOForgeProjectTheme = z321.object({
9855
9964
  // Colors
9856
9965
  background: ColorTokenData,
9857
9966
  foreground: ColorTokenData,
@@ -9936,21 +10045,21 @@ var DTOForgeProjectTheme = z318.object({
9936
10045
  shadowXl: ShadowTokenData,
9937
10046
  shadow2xl: ShadowTokenData
9938
10047
  });
9939
- var DTOForgeProjectContextV2 = z318.object({
9940
- id: z318.string(),
9941
- name: z318.string(),
9942
- workspaceId: z318.string(),
9943
- designSystemId: z318.string().optional(),
9944
- description: z318.string().optional(),
9945
- productContext: z318.string().optional(),
9946
- additionalContext: z318.string().optional(),
9947
- isArchived: z318.boolean(),
10048
+ var DTOForgeProjectContextV2 = z321.object({
10049
+ id: z321.string(),
10050
+ name: z321.string(),
10051
+ workspaceId: z321.string(),
10052
+ designSystemId: z321.string().optional(),
10053
+ description: z321.string().optional(),
10054
+ productContext: z321.string().optional(),
10055
+ additionalContext: z321.string().optional(),
10056
+ isArchived: z321.boolean(),
9948
10057
  themePreset: DTOForgeThemePreset.optional(),
9949
10058
  componentSet: DTOForgeComponentSet,
9950
10059
  iconSet: DTOForgeIconSet,
9951
10060
  theme: DTOForgeProjectTheme,
9952
- createdAt: z318.coerce.date(),
9953
- updatedAt: z318.coerce.date()
10061
+ createdAt: z321.coerce.date(),
10062
+ updatedAt: z321.coerce.date()
9954
10063
  });
9955
10064
  var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9956
10065
  id: true,
@@ -9959,244 +10068,38 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
9959
10068
  isArchived: true
9960
10069
  });
9961
10070
  var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true, workspaceId: true }).partial();
9962
- var DTOForgeProjectContextResponseV2 = z318.object({ context: DTOForgeProjectContextV2 });
9963
- var DTOForgeProjectContextListQueryV2 = z318.object({ workspaceId: z318.string() });
9964
- var DTOForgeProjectContextListResponseV2 = z318.object({ contexts: z318.array(DTOForgeProjectContextV2) });
9965
-
9966
- // src/api/dto/forge/project-feature.ts
9967
- import z319 from "zod";
9968
- var DTOForgeProjectFeature = ProjectFeature;
9969
- var DTOForgeProjectFeatureListResponse = z319.object({
9970
- features: DTOForgeProjectFeature.array()
9971
- });
9972
- var DTOForgeProjectFeatureGetResponse = z319.object({
9973
- feature: DTOForgeProjectFeature
9974
- });
9975
- var DTOForgeProjectFeatureCreateInput = z319.object({
9976
- id: Id,
9977
- name: z319.string().optional(),
9978
- description: z319.string(),
9979
- sectionId: Id.optional(),
9980
- afterFeatureId: Id.nullable().optional(),
9981
- initialMessage: DTOThreadMessageCreateInput
9982
- });
9983
- var DTOForgeProjectFeatureUpdateInput = z319.object({
9984
- id: Id,
9985
- name: z319.string().optional(),
9986
- description: z319.string().optional(),
9987
- isArchived: z319.boolean().optional(),
9988
- status: ProjectFeatureStatus.optional()
9989
- });
9990
- var DTOForgeProjectFeatureDeleteInput = z319.object({
9991
- id: Id
9992
- });
9993
- var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
9994
-
9995
- // src/api/dto/forge/project-invitation.ts
9996
- import { z as z320 } from "zod";
9997
- var DTOForgeProjectInvitation = ForgeProjectInvitation;
9998
- var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
9999
- email: true,
10000
- role: true
10001
- }).extend({
10002
- workspaceRole: WorkspaceRoleSchema
10003
- });
10004
- var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
10005
- workspaceRole: true
10006
- });
10007
- var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
10008
- email: true
10009
- });
10010
- var DTOForgeProjectInvitationsListResponse = z320.object({
10011
- invitations: z320.array(DTOForgeProjectInvitation)
10012
- });
10013
- var DTOForgeProjectInvitationGetResponse = z320.object({
10014
- invitation: DTOForgeProjectInvitation
10015
- });
10016
- var DTOForgeProjectInvitationCreateResponse = z320.object({
10017
- invitation: DTOForgeProjectInvitation
10018
- });
10019
- var DTOForgeProjectInvitationUpdateResponse = z320.object({
10020
- invitation: DTOForgeProjectInvitation.nullable()
10021
- });
10022
- var DTOForgeProjectInvitationRemoveResponse = z320.object({
10023
- ok: z320.literal(true)
10024
- });
10025
-
10026
- // src/api/dto/forge/project.ts
10027
- var DTOForgeProjectRole = z321.enum(["Viewer", "Builder", "Admin"]);
10028
- var DTOForgeProjectAccessMode = z321.enum(["InviteOnly", "Open", "Unlisted"]);
10029
- var DTOForgeProjectDefaultRole = DTOForgeProjectRole.exclude(["Admin"]);
10030
- var DTOForgeProject = z321.object({
10031
- id: z321.string(),
10032
- workspaceId: z321.string(),
10033
- projectContextId: z321.string(),
10034
- name: z321.string(),
10035
- description: z321.string().optional(),
10036
- instruction: z321.string().nullable(),
10037
- tags: z321.array(z321.string()).default([]),
10038
- accessMode: DTOForgeProjectAccessMode,
10039
- defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
10040
- isArchived: z321.boolean().optional(),
10041
- emoji: z321.string().optional(),
10042
- createdAt: z321.coerce.date(),
10043
- createdByUserId: z321.string().optional(),
10044
- updatedAt: z321.coerce.date(),
10045
- /** @deprecated use `projectContextId` */
10046
- fpContextId: z321.string(),
10047
- /** @deprecated use `name` and `description` properties on project */
10048
- meta: z321.object({
10049
- name: z321.string(),
10050
- description: z321.string().optional()
10051
- }),
10052
- /** @deprecated prefer fetching from project contexts endpoint separately */
10053
- context: DTOForgeProjectContextV2,
10054
- numberOfFeatures: z321.number().int().nonnegative()
10055
- });
10056
- var DTOForgeProjectCreate = DTOForgeProject.pick({
10057
- name: true,
10058
- description: true,
10059
- instruction: true,
10060
- tags: true,
10061
- accessMode: true,
10062
- defaultRole: true,
10063
- emoji: true
10064
- }).extend({
10065
- /** @deprecated use `name` and `description` properties on project */
10066
- meta: DTOForgeProject.shape.meta.optional(),
10067
- /** @deprecated use `projectContextId` */
10068
- fpContextId: z321.string().optional(),
10069
- projectContextId: z321.string().optional(),
10070
- membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
10071
- initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
10072
- initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
10073
- });
10074
- var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10075
- id: z321.string(),
10076
- isArchived: z321.boolean().optional()
10077
- });
10078
- var DTOForgeProjectListResponse = z321.object({
10079
- projects: z321.array(
10080
- DTOForgeProject.extend({
10081
- effectiveRole: DTOForgeProjectRole
10082
- })
10083
- )
10084
- });
10085
- var DTOForgeProjectResponse = z321.object({
10086
- project: DTOForgeProject.extend({
10087
- effectiveRole: DTOForgeProjectRole
10088
- })
10089
- });
10090
-
10091
- // src/api/dto/forge/project-action.ts
10092
- import z322 from "zod";
10093
- var DTOForgeProjectActionFeatureCreate = z322.object({
10094
- type: z322.literal("FeatureCreate"),
10095
- input: DTOForgeProjectFeatureCreateInput
10096
- });
10097
- var DTOForgeProjectActionFeatureUpdate = z322.object({
10098
- type: z322.literal("FeatureUpdate"),
10099
- input: DTOForgeProjectFeatureUpdateInput
10100
- });
10101
- var DTOForgeProjectActionFeatureMove = z322.object({
10102
- type: z322.literal("FeatureMove"),
10103
- input: DTOForgeProjectFeatureMoveInput
10104
- });
10105
- var DTOForgeProjectActionFeatureDelete = z322.object({
10106
- type: z322.literal("FeatureDelete"),
10107
- input: DTOForgeProjectFeatureDeleteInput
10108
- });
10109
- var DTOForgeProjectActionArtifactCreate = z322.object({
10110
- type: z322.literal("ArtifactCreate"),
10111
- input: DTOForgeProjectArtifactCreateInput
10112
- });
10113
- var DTOForgeProjectActionArtifactUpdate = z322.object({
10114
- type: z322.literal("ArtifactUpdate"),
10115
- input: DTOForgeProjectArtifactUpdateInput
10116
- });
10117
- var DTOForgeProjectActionArtifactDelete = z322.object({
10118
- type: z322.literal("ArtifactDelete"),
10119
- input: DTOForgeProjectArtifactDeleteInput
10120
- });
10121
- var DTOForgeProjectActionArtifactMove = z322.object({
10122
- type: z322.literal("ArtifactMove"),
10123
- input: DTOForgeProjectArtifactMoveInput
10124
- });
10125
- var DTOForgeProjectActionSectionCreate = z322.object({
10126
- type: z322.literal("SectionCreate"),
10127
- input: DTOForgeSectionCreateInput
10128
- });
10129
- var DTOForgeProjectActionSectionUpdate = z322.object({
10130
- type: z322.literal("SectionUpdate"),
10131
- input: DTOForgeSectionUpdateInput
10132
- });
10133
- var DTOForgeProjectActionSectionDelete = z322.object({
10134
- type: z322.literal("SectionDelete"),
10135
- input: DTOForgeSectionDeleteInput
10136
- });
10137
- var DTOForgeProjectActionSectionMove = z322.object({
10138
- type: z322.literal("SectionMove"),
10139
- input: DTOForgeSectionMoveInput
10140
- });
10141
- var DTOForgeProjectAction = z322.discriminatedUnion("type", [
10142
- //features
10143
- DTOForgeProjectActionFeatureCreate,
10144
- DTOForgeProjectActionFeatureUpdate,
10145
- DTOForgeProjectActionFeatureDelete,
10146
- DTOForgeProjectActionFeatureMove,
10147
- //artifacts
10148
- DTOForgeProjectActionArtifactCreate,
10149
- DTOForgeProjectActionArtifactUpdate,
10150
- DTOForgeProjectActionArtifactDelete,
10151
- DTOForgeProjectActionArtifactMove,
10152
- //section
10153
- DTOForgeProjectActionSectionCreate,
10154
- DTOForgeProjectActionSectionUpdate,
10155
- DTOForgeProjectActionSectionDelete,
10156
- DTOForgeProjectActionSectionMove
10157
- ]).and(
10158
- z322.object({
10159
- tId: z322.string().optional()
10160
- })
10161
- );
10162
-
10163
- // src/api/dto/forge/project-artifact-room.ts
10164
- import { z as z323 } from "zod";
10165
- var DTOForgeProjectArtifactRoom = z323.object({
10166
- id: z323.string()
10167
- });
10168
- var DTOForgeProjectArtifactRoomResponse = z323.object({
10169
- room: DTOForgeProjectArtifactRoom
10170
- });
10071
+ var DTOForgeProjectContextResponseV2 = z321.object({ context: DTOForgeProjectContextV2 });
10072
+ var DTOForgeProjectContextListQueryV2 = z321.object({ workspaceId: z321.string() });
10073
+ var DTOForgeProjectContextListResponseV2 = z321.object({ contexts: z321.array(DTOForgeProjectContextV2) });
10171
10074
 
10172
10075
  // src/api/dto/forge/project-context.ts
10173
- import { z as z324 } from "zod";
10174
- var DTOForgeProjectContext = z324.object({
10175
- definition: z324.string(),
10176
- dependencies: z324.array(
10177
- z324.object({
10178
- packageName: z324.string(),
10179
- type: z324.literal("npm"),
10180
- version: z324.string().default("latest")
10076
+ import { z as z322 } from "zod";
10077
+ var DTOForgeProjectContext = z322.object({
10078
+ definition: z322.string(),
10079
+ dependencies: z322.array(
10080
+ z322.object({
10081
+ packageName: z322.string(),
10082
+ type: z322.literal("npm"),
10083
+ version: z322.string().default("latest")
10181
10084
  })
10182
10085
  ),
10183
- designSystemId: z324.string(),
10184
- id: z324.string(),
10185
- meta: z324.object({
10186
- name: z324.string(),
10187
- description: z324.string().optional()
10086
+ designSystemId: z322.string(),
10087
+ id: z322.string(),
10088
+ meta: z322.object({
10089
+ name: z322.string(),
10090
+ description: z322.string().optional()
10188
10091
  }),
10189
- name: z324.string(),
10092
+ name: z322.string(),
10190
10093
  npmProxySettings: DTONpmRegistryConfig.optional(),
10191
- platform: z324.enum(["React", "Vue", "Angular"]),
10192
- styling: z324.enum(["CSS", "Tailwind"]),
10193
- tailwindConfig: z324.object({
10194
- content: z324.string(),
10195
- version: z324.string()
10094
+ platform: z322.enum(["React", "Vue", "Angular"]),
10095
+ styling: z322.enum(["CSS", "Tailwind"]),
10096
+ tailwindConfig: z322.object({
10097
+ content: z322.string(),
10098
+ version: z322.string()
10196
10099
  }).optional(),
10197
- createdAt: z324.coerce.date(),
10198
- updatedAt: z324.coerce.date(),
10199
- workspaceId: z324.string()
10100
+ createdAt: z322.coerce.date(),
10101
+ updatedAt: z322.coerce.date(),
10102
+ workspaceId: z322.string()
10200
10103
  });
10201
10104
  var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
10202
10105
  definition: true,
@@ -10208,13 +10111,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
10208
10111
  tailwindConfig: true,
10209
10112
  styling: true
10210
10113
  }).extend({ npmProxySettings: DTONpmRegistryConfig });
10211
- var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z324.string() });
10212
- var DTOForgeProjectContextGetResponse = z324.object({ context: DTOForgeProjectContext });
10213
- var DTOForgeProjectContextListResponse = z324.object({ contexts: z324.array(DTOForgeProjectContext) });
10214
- var DTOForgeProjectContextCreateResponse = z324.object({ context: DTOForgeProjectContext });
10215
- var DTOForgeProjectContextUpdateResponse = z324.object({ context: DTOForgeProjectContext });
10216
- var DTOForgeProjectContextRemoveResponse = z324.object({
10217
- ok: z324.literal(true)
10114
+ var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z322.string() });
10115
+ var DTOForgeProjectContextGetResponse = z322.object({ context: DTOForgeProjectContext });
10116
+ var DTOForgeProjectContextListResponse = z322.object({ contexts: z322.array(DTOForgeProjectContext) });
10117
+ var DTOForgeProjectContextCreateResponse = z322.object({ context: DTOForgeProjectContext });
10118
+ var DTOForgeProjectContextUpdateResponse = z322.object({ context: DTOForgeProjectContext });
10119
+ var DTOForgeProjectContextRemoveResponse = z322.object({
10120
+ ok: z322.literal(true)
10218
10121
  });
10219
10122
 
10220
10123
  // src/api/dto/forge/project-figma-node.ts
@@ -10222,42 +10125,73 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
10222
10125
  var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
10223
10126
 
10224
10127
  // src/api/dto/forge/project-file.ts
10225
- import { z as z325 } from "zod";
10226
- var DTOForgeProjectFile = z325.object({
10227
- id: z325.string(),
10228
- name: z325.string(),
10229
- checksum: z325.string(),
10230
- pendingUpload: z325.boolean().optional(),
10231
- url: z325.string(),
10232
- size: z325.number()
10233
- });
10234
- var DTOForgeProjectFileListResponse = z325.object({
10235
- files: z325.array(DTOForgeProjectFile)
10236
- });
10237
- var DTOForgeProjectFileUploadPayloadItem = z325.object({
10238
- size: z325.number(),
10239
- name: z325.string(),
10240
- checksum: z325.string()
10241
- });
10242
- var DTOForgeProjectFileUploadPayload = z325.object({
10243
- files: z325.array(DTOForgeProjectFileUploadPayloadItem)
10244
- });
10245
- var DTOForgeProjectFileUploadResponse = z325.object({
10246
- files: z325.array(DTOForgeProjectFile),
10247
- uploadUrls: z325.array(
10248
- z325.object({
10249
- fileId: z325.string(),
10250
- uploadUrl: z325.string()
10128
+ import { z as z323 } from "zod";
10129
+ var DTOForgeProjectFile = z323.object({
10130
+ id: z323.string(),
10131
+ name: z323.string(),
10132
+ checksum: z323.string(),
10133
+ pendingUpload: z323.boolean().optional(),
10134
+ url: z323.string(),
10135
+ size: z323.number()
10136
+ });
10137
+ var DTOForgeProjectFileListResponse = z323.object({
10138
+ files: z323.array(DTOForgeProjectFile)
10139
+ });
10140
+ var DTOForgeProjectFileUploadPayloadItem = z323.object({
10141
+ size: z323.number(),
10142
+ name: z323.string(),
10143
+ checksum: z323.string()
10144
+ });
10145
+ var DTOForgeProjectFileUploadPayload = z323.object({
10146
+ files: z323.array(DTOForgeProjectFileUploadPayloadItem)
10147
+ });
10148
+ var DTOForgeProjectFileUploadResponse = z323.object({
10149
+ files: z323.array(DTOForgeProjectFile),
10150
+ uploadUrls: z323.array(
10151
+ z323.object({
10152
+ fileId: z323.string(),
10153
+ uploadUrl: z323.string()
10251
10154
  })
10252
10155
  )
10253
10156
  });
10254
- var DTOForgeProjectFileUploadFinalizePayload = z325.object({
10255
- fileIds: z325.array(z325.string())
10157
+ var DTOForgeProjectFileUploadFinalizePayload = z323.object({
10158
+ fileIds: z323.array(z323.string())
10159
+ });
10160
+ var DTOForgeProjectFileUploadFinalizeResponse = z323.object({ ok: z323.literal(true) });
10161
+
10162
+ // src/api/dto/forge/project-invitation.ts
10163
+ import { z as z324 } from "zod";
10164
+ var DTOForgeProjectInvitation = ForgeProjectInvitation;
10165
+ var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
10166
+ email: true,
10167
+ role: true
10168
+ }).extend({
10169
+ workspaceRole: WorkspaceRoleSchema
10170
+ });
10171
+ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
10172
+ workspaceRole: true
10173
+ });
10174
+ var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
10175
+ email: true
10176
+ });
10177
+ var DTOForgeProjectInvitationsListResponse = z324.object({
10178
+ invitations: z324.array(DTOForgeProjectInvitation)
10179
+ });
10180
+ var DTOForgeProjectInvitationGetResponse = z324.object({
10181
+ invitation: DTOForgeProjectInvitation
10182
+ });
10183
+ var DTOForgeProjectInvitationCreateResponse = z324.object({
10184
+ invitation: DTOForgeProjectInvitation
10185
+ });
10186
+ var DTOForgeProjectInvitationUpdateResponse = z324.object({
10187
+ invitation: DTOForgeProjectInvitation.nullable()
10188
+ });
10189
+ var DTOForgeProjectInvitationRemoveResponse = z324.object({
10190
+ ok: z324.literal(true)
10256
10191
  });
10257
- var DTOForgeProjectFileUploadFinalizeResponse = z325.object({ ok: z325.literal(true) });
10258
10192
 
10259
10193
  // src/api/dto/forge/project-iteration-old.ts
10260
- import { z as z326 } from "zod";
10194
+ import { z as z325 } from "zod";
10261
10195
  var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
10262
10196
  var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10263
10197
  artifacts: true,
@@ -10268,7 +10202,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
10268
10202
  messages: DTOForgeIterationMessage.array(),
10269
10203
  mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
10270
10204
  });
10271
- var DTOGetForgeProjectIterationResponse = z326.object({
10205
+ var DTOGetForgeProjectIterationResponse = z325.object({
10272
10206
  iteration: DTOForgeProjectIteration.nullable()
10273
10207
  });
10274
10208
  var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
@@ -10278,20 +10212,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
10278
10212
  mergeMeta: true,
10279
10213
  createdAt: true
10280
10214
  });
10281
- var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z326.string() });
10282
- var DTOCreateForgeProjectIterationResponse = z326.object({
10215
+ var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z325.string() });
10216
+ var DTOCreateForgeProjectIterationResponse = z325.object({
10283
10217
  iteration: DTOForgeProjectIteration
10284
10218
  });
10285
- var DTOUpdateForgeProjectIterationResponse = z326.object({
10219
+ var DTOUpdateForgeProjectIterationResponse = z325.object({
10286
10220
  iteration: DTOForgeProjectIteration.nullable()
10287
10221
  });
10288
- var DTODeleteForgeProjectIterationResponse = z326.object({
10289
- ok: z326.literal(true)
10222
+ var DTODeleteForgeProjectIterationResponse = z325.object({
10223
+ ok: z325.literal(true)
10290
10224
  });
10291
- var DTOForgeProjectIterationListResponse = z326.object({ iterations: z326.array(DTOForgeProjectIteration) });
10225
+ var DTOForgeProjectIterationListResponse = z325.object({ iterations: z325.array(DTOForgeProjectIteration) });
10292
10226
 
10293
10227
  // src/api/dto/forge/project-member.ts
10294
- import { z as z327 } from "zod";
10228
+ import { z as z326 } from "zod";
10295
10229
  var DTOForgeProjectMemberRole = ForgeProjectRole;
10296
10230
  var DTOForgeProjectMember = ForgeProjectMembership.extend({
10297
10231
  user: DTOUser,
@@ -10305,35 +10239,101 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
10305
10239
  var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
10306
10240
  userId: true
10307
10241
  });
10308
- var DTOForgeProjectMembersListResponse = z327.object({
10309
- members: z327.array(DTOForgeProjectMember),
10310
- invitations: z327.array(DTOForgeProjectInvitation)
10242
+ var DTOForgeProjectMembersListResponse = z326.object({
10243
+ members: z326.array(DTOForgeProjectMember),
10244
+ invitations: z326.array(DTOForgeProjectInvitation)
10311
10245
  });
10312
- var DTOForgeProjectMemberGetResponse = z327.object({
10246
+ var DTOForgeProjectMemberGetResponse = z326.object({
10313
10247
  member: DTOForgeProjectMember
10314
10248
  });
10315
- var DTOForgeProjectMemberCreateResponse = z327.object({
10249
+ var DTOForgeProjectMemberCreateResponse = z326.object({
10316
10250
  member: DTOForgeProjectMember
10317
10251
  });
10318
- var DTOForgeProjectMemberUpdateResponse = z327.object({
10252
+ var DTOForgeProjectMemberUpdateResponse = z326.object({
10319
10253
  member: DTOForgeProjectMember.nullable()
10320
10254
  });
10321
- var DTOForgeProjectMemberRemoveResponse = z327.object({
10322
- ok: z327.literal(true)
10255
+ var DTOForgeProjectMemberRemoveResponse = z326.object({
10256
+ ok: z326.literal(true)
10323
10257
  });
10324
- var DTOAddMembersToForgeProject = z327.object({
10258
+ var DTOAddMembersToForgeProject = z326.object({
10325
10259
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
10326
10260
  });
10327
10261
 
10328
10262
  // src/api/dto/forge/project-room.ts
10329
- import { z as z328 } from "zod";
10330
- var DTOForgeProjectRoom = z328.object({
10331
- id: z328.string()
10263
+ import { z as z327 } from "zod";
10264
+ var DTOForgeProjectRoom = z327.object({
10265
+ id: z327.string()
10332
10266
  });
10333
- var DTOForgeProjectRoomResponse = z328.object({
10267
+ var DTOForgeProjectRoomResponse = z327.object({
10334
10268
  room: DTOForgeProjectRoom
10335
10269
  });
10336
10270
 
10271
+ // src/api/dto/forge/project.ts
10272
+ import { z as z328 } from "zod";
10273
+ var DTOForgeProjectRole = z328.enum(["Viewer", "Builder", "Admin"]);
10274
+ var DTOForgeProjectAccessMode = z328.enum(["InviteOnly", "Open", "Unlisted"]);
10275
+ var DTOForgeProjectDefaultRole = DTOForgeProjectRole.exclude(["Admin"]);
10276
+ var DTOForgeProject = z328.object({
10277
+ id: z328.string(),
10278
+ workspaceId: z328.string(),
10279
+ projectContextId: z328.string(),
10280
+ name: z328.string(),
10281
+ description: z328.string().optional(),
10282
+ instruction: z328.string().nullable(),
10283
+ tags: z328.array(z328.string()).default([]),
10284
+ accessMode: DTOForgeProjectAccessMode,
10285
+ defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
10286
+ isArchived: z328.boolean().optional(),
10287
+ emoji: z328.string().optional(),
10288
+ createdAt: z328.coerce.date(),
10289
+ createdByUserId: z328.string().optional(),
10290
+ updatedAt: z328.coerce.date(),
10291
+ /** @deprecated use `projectContextId` */
10292
+ fpContextId: z328.string(),
10293
+ /** @deprecated use `name` and `description` properties on project */
10294
+ meta: z328.object({
10295
+ name: z328.string(),
10296
+ description: z328.string().optional()
10297
+ }),
10298
+ /** @deprecated prefer fetching from project contexts endpoint separately */
10299
+ context: DTOForgeProjectContextV2,
10300
+ numberOfFeatures: z328.number().int().nonnegative()
10301
+ });
10302
+ var DTOForgeProjectCreate = DTOForgeProject.pick({
10303
+ name: true,
10304
+ description: true,
10305
+ instruction: true,
10306
+ tags: true,
10307
+ accessMode: true,
10308
+ defaultRole: true,
10309
+ emoji: true
10310
+ }).extend({
10311
+ /** @deprecated use `name` and `description` properties on project */
10312
+ meta: DTOForgeProject.shape.meta.optional(),
10313
+ /** @deprecated use `projectContextId` */
10314
+ fpContextId: z328.string().optional(),
10315
+ projectContextId: z328.string().optional(),
10316
+ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
10317
+ initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
10318
+ initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
10319
+ });
10320
+ var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10321
+ id: z328.string(),
10322
+ isArchived: z328.boolean().optional()
10323
+ });
10324
+ var DTOForgeProjectListResponse = z328.object({
10325
+ projects: z328.array(
10326
+ DTOForgeProject.extend({
10327
+ effectiveRole: DTOForgeProjectRole
10328
+ })
10329
+ )
10330
+ });
10331
+ var DTOForgeProjectResponse = z328.object({
10332
+ project: DTOForgeProject.extend({
10333
+ effectiveRole: DTOForgeProjectRole
10334
+ })
10335
+ });
10336
+
10337
10337
  // src/api/dto/forge/relation.ts
10338
10338
  import z329 from "zod";
10339
10339
  var DTOForgeRelation = z329.object({
@@ -10570,11 +10570,17 @@ var DTOTrailEventPayload = z335.discriminatedUnion("type", [
10570
10570
  z335.object({ type: z335.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload })
10571
10571
  ]);
10572
10572
  var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
10573
+ var DTOTrailEventWithDetails = DTOTrailEvent.and(
10574
+ z335.object({
10575
+ projectName: z335.string().optional(),
10576
+ userName: z335.string().optional()
10577
+ })
10578
+ );
10573
10579
  var DTOTrailEventListInput = z335.object({
10574
10580
  projectId: z335.string()
10575
10581
  });
10576
10582
  var DTOTrailEventListResponse = z335.object({
10577
- events: z335.array(DTOTrailEvent)
10583
+ events: z335.array(DTOTrailEventWithDetails)
10578
10584
  });
10579
10585
  var DTOTrailEventCreate = DTOTrailEventPayload.and(
10580
10586
  DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
@@ -19640,6 +19646,7 @@ export {
19640
19646
  DTOTrailEventListInput,
19641
19647
  DTOTrailEventListResponse,
19642
19648
  DTOTrailEventType,
19649
+ DTOTrailEventWithDetails,
19643
19650
  DTOTransferOwnershipPayload,
19644
19651
  DTOUGetForgeAgentResponse,
19645
19652
  DTOUpdateDocumentationGroupInput,