mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Added missing resources
This commit is contained in:
committed by
Jan Oberhauser
parent
fe36c9c76a
commit
ba22ab02d8
@@ -4,6 +4,16 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
|
||||
//https://api.slack.com/authentication/oauth-v2
|
||||
const userScopes = [
|
||||
'chat:write',
|
||||
'conversations:history',
|
||||
'conversations:read',
|
||||
'files:read',
|
||||
'files:write',
|
||||
'stars:read',
|
||||
'stars:write',
|
||||
]
|
||||
|
||||
|
||||
export class SlackOAuth2Api implements ICredentialType {
|
||||
name = 'slackOAuth2Api';
|
||||
@@ -35,7 +45,7 @@ export class SlackOAuth2Api implements ICredentialType {
|
||||
displayName: 'Auth URI Query Parameters',
|
||||
name: 'authQueryParameters',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: 'user_scope=chat:write',
|
||||
default: `user_scope=${userScopes.join(' ')}`,
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
|
||||
Reference in New Issue
Block a user