n8n/packages/nodes-base/credentials/GoogleChatOAuth2Api.credentials.ts
Michael Kret e146ad021a
feat(Google Chat Node): Updates (#12827)
Co-authored-by: Dana <152518854+dana-gill@users.noreply.github.com>
2025-01-28 13:26:34 +02:00

27 lines
599 B
TypeScript

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/chat.spaces',
'https://www.googleapis.com/auth/chat.messages',
'https://www.googleapis.com/auth/chat.memberships',
];
export class GoogleChatOAuth2Api implements ICredentialType {
name = 'googleChatOAuth2Api';
extends = ['googleOAuth2Api'];
displayName = 'Chat OAuth2 API';
documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: scopes.join(' '),
},
];
}