n8n-nodes-base
Version:
Base nodes of n8n
59 lines • 1.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwistOAuth2Api = void 0;
const scopes = [
'attachments:write',
'channels:remove',
'comments:remove',
'messages:remove',
'threads:remove',
'workspaces:read',
];
class TwistOAuth2Api {
name = 'twistOAuth2Api';
extends = ['oAuth2Api'];
displayName = 'Twist OAuth2 API';
documentationUrl = 'twist';
properties = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://twist.com/oauth/authorize',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://twist.com/oauth/access_token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: scopes.join(','),
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'body',
},
];
}
exports.TwistOAuth2Api = TwistOAuth2Api;
//# sourceMappingURL=TwistOAuth2Api.credentials.js.map