@uppy/companion
Version:
OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:
25 lines (24 loc) • 671 B
TypeScript
export function streamGoogleFile({ token, id: idIn }: {
token: any;
id: any;
}): Promise<{
stream: import("got").Request;
size: any;
}>;
/**
* Adapter for API https://developers.google.com/drive/api/v3/
*/
export class Drive extends Provider {
list(options: any): Promise<any>;
download({ id, providerUserSession: { accessToken: token } }: {
id: any;
providerUserSession: {
accessToken: any;
};
}): Promise<any>;
logout: typeof logout;
refreshToken: typeof refreshToken;
}
import Provider from '../../Provider.js';
import { logout } from '../index.js';
import { refreshToken } from '../index.js';