import type { ICredentialType, INodeProperties, } from 'n8n-workflow'; export class ObsidianApi implements ICredentialType { name = 'obsidianApi'; displayName = 'Obsidian API'; documentationUrl = 'https://git.yiprawr.dev/Docker/obsidian-api'; properties: INodeProperties[] = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'http://obsidian-api:8080', placeholder: 'http://obsidian-api:8080', description: 'Base URL of the Obsidian API Docker service', required: true, }, { displayName: 'API Token', name: 'apiToken', type: 'string', typeOptions: { password: true, }, default: '', description: 'Bearer JWT created with scripts/create_jwt.py', required: true, }, { displayName: 'Default Vault', name: 'defaultVault', type: 'string', default: '', placeholder: 'work', description: 'Optional default vault name/path. Sent as vault= before every command unless the node overrides it.', }, ]; }