*Add files api

This commit is contained in:
Derrick Hammer 2022-09-09 03:41:27 -04:00
parent 17fa55f156
commit 789542e2a6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 15 additions and 0 deletions

View File

@ -47,6 +47,21 @@ export interface PluginAPI {
set: (newRouter: express.Router) => void; set: (newRouter: express.Router) => void;
reset: () => void; reset: () => void;
}; };
files: {
createIndependentFileSmall(
seed: Uint8Array,
userInode: string,
fileData: Uint8Array
): Promise<[IndependentFileSmall, Err]>;
openIndependentFileSmall(
seed: Uint8Array,
userInode: string
): Promise<[IndependentFileSmall, Err]>;
overwriteIndependentFileSmall(
file: IndependentFileSmall,
newData: Uint8Array
): Promise<Err>;
};
logger: Logger; logger: Logger;
} }