We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1407c2f commit 3810094Copy full SHA for 3810094
.changeset/wise-panthers-raise.md
@@ -0,0 +1,5 @@
1
+---
2
+"@squarecloud/blob": minor
3
4
+
5
+`objects.put` now returns useful info about the uploaded object
src/validation/schemas/put.ts
@@ -36,6 +36,14 @@ export const putObjectPayloadSchema = putObjectSchema.transform(
36
);
37
38
export const putObjectResponseSchema = z.object({
39
+ /** The id of the uploaded file. */
40
+ id: z.string(),
41
+ /** The name of the uploaded file. */
42
+ name: z.string(),
43
+ /** The prefix of the uploaded file. */
44
+ prefix: z.string().optional(),
45
+ /** The size of the uploaded file. */
46
+ size: z.number(),
47
/** The URL of the uploaded file. (File distributed in Square Cloud CDN) */
48
url: z.string(),
49
});
0 commit comments