pl-fe: wip drive

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-11-24 03:12:35 +01:00
parent 8a35492a26
commit 995b848470
9 changed files with 524 additions and 17 deletions

View File

@ -5952,7 +5952,7 @@ class PlApiClient {
return v.parse(driveFileSchema, response.json);
},
createFile: async (file: File, folderId: string) => {
createFile: async (file: File, folderId?: string) => {
await this.#getIceshrimpAccessToken();
const response = await this.request('/api/iceshrimp/drive', {
@ -5968,7 +5968,7 @@ class PlApiClient {
await this.#getIceshrimpAccessToken();
const response = await this.request(`/api/iceshrimp/drive/${id}`, {
method: 'PUT',
method: 'PATCH',
body: params,
});
@ -5993,7 +5993,7 @@ class PlApiClient {
body: { folderId: targetFolderId },
});
return v.parse(driveFolderSchema, response.json);
return v.parse(driveFileSchema, response.json);
},
};