mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 00:18:19 +01:00
fix(packages/client): 🐛 Remove nonexistent options from client's media API
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 0s
Build Docker Images / lint (push) Failing after 6s
Build Docker Images / check (push) Failing after 6s
Build Docker Images / tests (push) Failing after 6s
Build Docker Images / detect-circular (push) Failing after 7s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s
Test Publish / build (client) (push) Failing after 0s
Test Publish / build (sdk) (push) Failing after 0s
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 0s
Build Docker Images / lint (push) Failing after 6s
Build Docker Images / check (push) Failing after 6s
Build Docker Images / tests (push) Failing after 6s
Build Docker Images / detect-circular (push) Failing after 7s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s
Test Publish / build (client) (push) Failing after 0s
Test Publish / build (sdk) (push) Failing after 0s
This commit is contained in:
parent
0d53436f7e
commit
c93071666a
|
|
@ -3213,19 +3213,17 @@ export class Client extends BaseClient {
|
|||
* PUT /api/v1/media/:id
|
||||
*
|
||||
* @param id Target media ID.
|
||||
* @param options.file The file to be attached, using multipart form data.
|
||||
* @param options.thumbnail The media's thumbnail.
|
||||
* @param options.description A plain-text description of the media.
|
||||
* @param options.focus Two floating points (x,y), comma-delimited, ranging from -1.0 to 1.0.
|
||||
* @param options.is_sensitive Whether the media is sensitive.
|
||||
* @return Attachment
|
||||
*/
|
||||
public updateMedia(
|
||||
id: string,
|
||||
options?: Partial<{
|
||||
description: string;
|
||||
file: File;
|
||||
thumbnail: File;
|
||||
focus: string;
|
||||
is_sensitive: boolean;
|
||||
}>,
|
||||
extra?: RequestInit,
|
||||
): Promise<Output<z.infer<typeof Attachment>>> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue