diff --git a/packages/nodes-base/credentials/SysdigApi.credentials.ts b/packages/nodes-base/credentials/SysdigApi.credentials.ts new file mode 100644 index 0000000000..070251df10 --- /dev/null +++ b/packages/nodes-base/credentials/SysdigApi.credentials.ts @@ -0,0 +1,36 @@ +import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow'; + +export class SysdigApi implements ICredentialType { + name = 'sysdigApi'; + + displayName = 'Sysdig API'; + + documentationUrl = 'sysdig'; + + icon = { light: 'file:icons/Sysdig.Black.svg', dark: 'file:icons/Sysdig.White.svg' } as const; + + httpRequestNode = { + name: 'Sysdig', + docsUrl: 'https://docs.sysdig.com/en/docs/developer-tools/sysdig-api/', + apiBaseUrl: 'https://app.us1.sysdig.com', + }; + + properties: INodeProperties[] = [ + { + displayName: 'Access Token', + name: 'accessToken', + type: 'string', + typeOptions: { password: true }, + default: '', + }, + ]; + + authenticate: IAuthenticateGeneric = { + type: 'generic', + properties: { + headers: { + Authorization: '=Bearer {{$credentials.accessToken}}', + }, + }, + }; +} diff --git a/packages/nodes-base/credentials/icons/Sysdig.Black.svg b/packages/nodes-base/credentials/icons/Sysdig.Black.svg new file mode 100644 index 0000000000..4ddf73a371 --- /dev/null +++ b/packages/nodes-base/credentials/icons/Sysdig.Black.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/nodes-base/credentials/icons/Sysdig.White.svg b/packages/nodes-base/credentials/icons/Sysdig.White.svg new file mode 100644 index 0000000000..381e42673e --- /dev/null +++ b/packages/nodes-base/credentials/icons/Sysdig.White.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 9e55a22e8a..6d064943c6 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -331,6 +331,7 @@ "dist/credentials/SurveyMonkeyApi.credentials.js", "dist/credentials/SurveyMonkeyOAuth2Api.credentials.js", "dist/credentials/SyncroMspApi.credentials.js", + "dist/credentials/SysdigApi.credentials.js", "dist/credentials/TaigaApi.credentials.js", "dist/credentials/TapfiliateApi.credentials.js", "dist/credentials/TelegramApi.credentials.js",