@supernova-studio/client 1.41.3 → 1.41.4

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")
@@ -19154,6 +19169,9 @@ export {
19154
19169
  DTOFileListResponse,
19155
19170
  DTOFileReference,
19156
19171
  DTOFileResponseItem,
19172
+ DTOFileSource,
19173
+ DTOFileSourceFigma,
19174
+ DTOFileSourceUpload,
19157
19175
  DTOFileUploadBulkResponse,
19158
19176
  DTOFileUploadFinalizePayload,
19159
19177
  DTOFileUploadFinalizeResponse,