import type { IAuthenticateGeneric, Icon, ICredentialType, INodeProperties, } from 'n8n-workflow'; export class NdcFoundryBindingApi implements ICredentialType { name = 'ndcFoundryBindingApi'; displayName = 'NDC Foundry Binding API'; icon: Icon = { light: 'file:../icons/ndc.svg', dark: 'file:../icons/ndc.dark.svg', }; documentationUrl = ''; properties: INodeProperties[] = [ { displayName: 'Opaque Binding Capability', name: 'capability', type: 'string', typeOptions: { password: true }, default: '', required: true, }, ]; authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.capability}}', }, }, }; }