@supernova-studio/client 1.41.3 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -9128,6 +9128,15 @@ var DTOFigmaNodeResponse = z309.object({
9128
9128
 
9129
9129
  // src/api/dto/files/files.ts
9130
9130
  import z310 from "zod";
9131
+ var DTOFileSourceUpload = z310.object({
9132
+ type: z310.literal("UserUpload"),
9133
+ userId: z310.string()
9134
+ });
9135
+ var DTOFileSourceFigma = z310.object({
9136
+ type: z310.literal("Figma"),
9137
+ renderMode: z310.enum(["Image", "HTML"])
9138
+ });
9139
+ var DTOFileSource = z310.discriminatedUnion("type", [DTOFileSourceUpload, DTOFileSourceFigma]);
9131
9140
  var DTOFile = z310.object({
9132
9141
  id: z310.string(),
9133
9142
  name: z310.string(),
@@ -9135,11 +9144,17 @@ var DTOFile = z310.object({
9135
9144
  pendingUpload: z310.boolean().optional(),
9136
9145
  storagePath: z310.string(),
9137
9146
  url: z310.string(),
9138
- size: z310.number()
9147
+ size: z310.number(),
9148
+ /**
9149
+ * Object describing where did the file come from. Undefined source indicates a file produced by the
9150
+ * system (e.g. thumbnails, etc)
9151
+ */
9152
+ source: DTOFileSource.optional()
9139
9153
  });
9140
- var DTOFileReference = z310.object({
9141
- fileId: z310.string(),
9142
- fileUrl: z310.string()
9154
+ var DTOFileReference = DTOFile.pick({
9155
+ id: true,
9156
+ url: true,
9157
+ source: true
9143
9158
  });
9144
9159
  var DTOFileUploadTargetUser = z310.object({
9145
9160
  uploadTo: z310.literal("User")
@@ -10256,7 +10271,11 @@ var DTOForgeProjectCreate = ForgeProject.pick({
10256
10271
  fpContextId: true,
10257
10272
  isArchived: true,
10258
10273
  emoji: true
10259
- }).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
10274
+ }).extend({
10275
+ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
10276
+ initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
10277
+ initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
10278
+ });
10260
10279
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10261
10280
  id: z330.string()
10262
10281
  });
@@ -19154,6 +19173,9 @@ export {
19154
19173
  DTOFileListResponse,
19155
19174
  DTOFileReference,
19156
19175
  DTOFileResponseItem,
19176
+ DTOFileSource,
19177
+ DTOFileSourceFigma,
19178
+ DTOFileSourceUpload,
19157
19179
  DTOFileUploadBulkResponse,
19158
19180
  DTOFileUploadFinalizePayload,
19159
19181
  DTOFileUploadFinalizeResponse,