Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
66 lines
1.2 KiB
TypeScript
66 lines
1.2 KiB
TypeScript
import type { IDisplayOptions, INodeCredentialDescription, INodeProperties } from 'n8n-workflow';
|
|
|
|
export const transportSelect = ({
|
|
defaultOption,
|
|
displayOptions,
|
|
}: {
|
|
defaultOption: 'sse' | 'httpStreamable';
|
|
displayOptions?: IDisplayOptions;
|
|
}): INodeProperties => ({
|
|
displayName: 'Server Transport',
|
|
name: 'serverTransport',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'HTTP Streamable',
|
|
value: 'httpStreamable',
|
|
},
|
|
{
|
|
name: 'Server Sent Events (Deprecated)',
|
|
value: 'sse',
|
|
},
|
|
],
|
|
default: defaultOption,
|
|
description: 'The transport used by your endpoint',
|
|
displayOptions,
|
|
});
|
|
|
|
export const credentials: INodeCredentialDescription[] = [
|
|
{
|
|
name: 'httpBearerAuth',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
authentication: ['bearerAuth'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: 'httpHeaderAuth',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
authentication: ['headerAuth'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: 'mcpOAuth2Api',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
authentication: ['mcpOAuth2Api'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: 'httpMultipleHeadersAuth',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
authentication: ['multipleHeadersAuth'],
|
|
},
|
|
},
|
|
},
|
|
];
|