mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-25 23:18:51 -07:00
[api] add img delete and modify
This commit is contained in:
+13
-1
@@ -1658,9 +1658,21 @@ export const UploadImageResponse = z.object({
|
||||
ImageName: z.string().describe('The bucket key; the img worker serves the object by it'),
|
||||
})
|
||||
|
||||
/** `DELETE /api/images/v1/deletesaved` JSON body. */
|
||||
/** `POST /api/images/v1/deletesaved` JSON body. */
|
||||
export const DeleteImageRequest = z.object({ ImageName: z.string() })
|
||||
|
||||
/** `POST /api/images/v2/modifyaccessibility` JSON body. */
|
||||
export const ModifyImageAccessibilityRequest = z.object({
|
||||
ImageName: z.string(),
|
||||
Accessibility: z.int().describe('0 private, 1 public'),
|
||||
})
|
||||
|
||||
/** `POST /api/images/v1/modifydescription` JSON body. */
|
||||
export const ModifyImageDescriptionRequest = z.object({
|
||||
ImageName: z.string(),
|
||||
Description: z.string().nullable().describe('The new caption; null or empty clears it'),
|
||||
})
|
||||
|
||||
/**
|
||||
* `POST /api/images/v5/cheered/bulk` form body — the saved-image ids to report cheer state
|
||||
* for, as a REPEATED `id` field (`id=651&id=570&…`), one value per id. The client sends a
|
||||
|
||||
Reference in New Issue
Block a user