@supernova-studio/client 1.41.2 → 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.d.mts +1889 -69
- package/dist/index.d.ts +1889 -69
- package/dist/index.js +33 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 =
|
|
9141
|
-
|
|
9142
|
-
|
|
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")
|
|
@@ -9640,8 +9655,8 @@ var DTOThreadReaction = z317.object({
|
|
|
9640
9655
|
createdAt: z317.string()
|
|
9641
9656
|
});
|
|
9642
9657
|
var DTOThreadMessageAttachments = z317.object({
|
|
9643
|
-
iterationId: Id.optional()
|
|
9644
|
-
|
|
9658
|
+
iterationId: Id.optional(),
|
|
9659
|
+
files: DTOFileReference.array().optional()
|
|
9645
9660
|
});
|
|
9646
9661
|
var DTOThreadMessage = z317.object({
|
|
9647
9662
|
id: Id,
|
|
@@ -9683,13 +9698,18 @@ var DTOThreadAgentResponseTracker = z317.object({
|
|
|
9683
9698
|
id: Id,
|
|
9684
9699
|
currentBody: z317.string().default("")
|
|
9685
9700
|
});
|
|
9701
|
+
var DTOThreadMessageAttachmentsCreateInput = z317.object({
|
|
9702
|
+
iterationId: Id.optional(),
|
|
9703
|
+
fileIds: z317.string().array().optional()
|
|
9704
|
+
});
|
|
9686
9705
|
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
9687
9706
|
id: true,
|
|
9688
9707
|
body: true,
|
|
9689
9708
|
isPrompt: true,
|
|
9690
9709
|
startsNewThread: true,
|
|
9691
|
-
parentMessageId: true
|
|
9692
|
-
|
|
9710
|
+
parentMessageId: true
|
|
9711
|
+
}).extend({
|
|
9712
|
+
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
9693
9713
|
});
|
|
9694
9714
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9695
9715
|
messageId: Id
|
|
@@ -19149,6 +19169,9 @@ export {
|
|
|
19149
19169
|
DTOFileListResponse,
|
|
19150
19170
|
DTOFileReference,
|
|
19151
19171
|
DTOFileResponseItem,
|
|
19172
|
+
DTOFileSource,
|
|
19173
|
+
DTOFileSourceFigma,
|
|
19174
|
+
DTOFileSourceUpload,
|
|
19152
19175
|
DTOFileUploadBulkResponse,
|
|
19153
19176
|
DTOFileUploadFinalizePayload,
|
|
19154
19177
|
DTOFileUploadFinalizeResponse,
|
|
@@ -19391,6 +19414,7 @@ export {
|
|
|
19391
19414
|
DTOThreadMessage,
|
|
19392
19415
|
DTOThreadMessageAgentSender,
|
|
19393
19416
|
DTOThreadMessageAttachments,
|
|
19417
|
+
DTOThreadMessageAttachmentsCreateInput,
|
|
19394
19418
|
DTOThreadMessageCreateInput,
|
|
19395
19419
|
DTOThreadMessageFinalizeInput,
|
|
19396
19420
|
DTOThreadMessageListResponse,
|