import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class JellyfinApi implements ICredentialType { name = 'jellyfinApi'; displayName = 'Jellyfin API'; documentationUrl = 'https://api.jellyfin.org/'; properties: INodeProperties[] = [ { displayName: 'Server URL', name: 'url', type: 'string', default: 'http://localhost:8096', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, ]; authenticate = { type: 'generic', properties: { headers: { 'Authorization': '={{"MediaBrowser Token=" + $credentials.apiKey}}' } }, }; }