@n8n/n8n-nodes-langchain
Version:

36 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BraveSearchApi = void 0;
class BraveSearchApi {
constructor() {
this.name = 'braveSearchApi';
this.displayName = 'Brave Search';
this.documentationUrl = 'bravesearch';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
required: true,
default: '',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'X-Subscription-Token': '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: 'https://api.search.brave.com',
url: '/res/v1/web/search?q=test&count=1',
},
};
}
}
exports.BraveSearchApi = BraveSearchApi;
//# sourceMappingURL=BraveSearchApi.credentials.js.map