mirror of
https://github.com/n8n-io/n8n.git
synced 2026-08-28 17:22:01 +08:00
feat(instance-ai): Add Brave Search and Daytona credential types (no-changelog) (#28420)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class BraveSearchApi implements ICredentialType {
|
||||
name = 'braveSearchApi';
|
||||
|
||||
displayName = 'Brave Search';
|
||||
|
||||
documentationUrl = 'bravesearch';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
'X-Subscription-Token': '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.search.brave.com',
|
||||
url: '/res/v1/web/search?q=test&count=1',
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class DaytonaApi implements ICredentialType {
|
||||
name = 'daytonaApi';
|
||||
|
||||
displayName = 'Daytona';
|
||||
|
||||
documentationUrl = 'daytona';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API URL',
|
||||
name: 'apiUrl',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -49,9 +49,11 @@
|
||||
"dist/credentials/AzureAiSearchApi.credentials.js",
|
||||
"dist/credentials/AzureOpenAiApi.credentials.js",
|
||||
"dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js",
|
||||
"dist/credentials/BraveSearchApi.credentials.js",
|
||||
"dist/credentials/ChromaSelfHostedApi.credentials.js",
|
||||
"dist/credentials/ChromaCloudApi.credentials.js",
|
||||
"dist/credentials/CohereApi.credentials.js",
|
||||
"dist/credentials/DaytonaApi.credentials.js",
|
||||
"dist/credentials/DeepSeekApi.credentials.js",
|
||||
"dist/credentials/GooglePalmApi.credentials.js",
|
||||
"dist/credentials/GroqApi.credentials.js",
|
||||
|
||||
Reference in New Issue
Block a user