UNPKG

n8n-nodes-coze

Version:

n8n node for Coze(扣子), supporting AI chat, workflow automation, file processing, and text-to-speech.

54 lines 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CozeTokenApi = void 0; class CozeTokenApi { constructor() { this.name = 'cozeTokenApi'; this.displayName = 'Coze Token API'; this.documentationUrl = 'https://www.coze.cn/open/docs/developer_guides/service_token'; this.properties = [ { displayName: '站点', name: 'baseUrl', type: 'options', options: [ { name: '大陆站(Coze.cn)', value: 'https://api.coze.cn', }, { name: '国际站(Coze.com)', value: 'https://api.coze.com', }, ], default: 'https://api.coze.cn', description: '站点分国内站和国际站,请确认您要使用的站点', required: true, }, { displayName: 'Access Token', name: 'accessToken', type: 'string', typeOptions: { password: true }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.accessToken}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.baseUrl}}', url: '/v1/workspaces', method: 'GET', }, }; } } exports.CozeTokenApi = CozeTokenApi; //# sourceMappingURL=CozeTokenApi.credentials.js.map