@memori.ai/memori-api-client
Version:
React library to integrate a Memori in your app or website
20 lines (19 loc) • 914 B
TypeScript
import { ResponseSpec, Asset } from '../types';
declare const _default: (apiUrl: string) => {
getUploadAssetURL: (authToken: string, memoriID?: string, memoryID?: string) => string;
uploadAsset: (fileName: string, fileUrl: string, authToken: string, memoriID?: string, memoryID?: string) => Promise<ResponseSpec & {
asset: Asset;
}>;
uploadAssetUnlogged: (fileName: string, fileUrl: string, memoriID: string, sessionID: string) => Promise<ResponseSpec & {
asset: Asset;
}>;
getAsset: (fileName: string, sessionID: string) => Promise<any>;
getAssetList: (authToken: string) => Promise<ResponseSpec & {
assets: Asset[];
}>;
updateAsset: (authToken: string, assetURL: string, asset: Asset) => Promise<ResponseSpec & {
asset: Asset;
}>;
deleteAsset: (authToken: string, assetURL: string) => Promise<ResponseSpec>;
};
export default _default;