import { ExtendedIntegrationPluginId, Plugin } from '../../types/index.js'; import { DOCS_BASE_URL } from './constants.js'; import { getNativeOpenApiPlugin } from './shared/index.js'; export const GoogleDrivePlugin: Plugin = getNativeOpenApiPlugin({ name: 'Google Drive', id: ExtendedIntegrationPluginId.GOOGLE_DRIVE, docsURL: `${DOCS_BASE_URL}/google-drive`, authMethods: { oauth2BringYourOwn: { authorizationUrl: 'https://accounts.google.com/o/oauth2/v2/auth', tokenUrl: 'https://oauth2.googleapis.com/token', revokeTokenUrl: 'https://oauth2.googleapis.com/revoke', iconUrl: 'https://integrations.superblocks.com/img/drive.png', authorizationExtraParams: { responseType: 'code' } } }, serverURL: 'https://www.googleapis.com/drive/v3' });