Files
daniel156161 e21760949a fix(n8n): require explicit API URL
- Remove the default Docker service URL from credentials.

- Move vault, verbose, and timeout into additional fields.

- Keep optional command settings hidden until explicitly added.

- Bump the n8n community node package to 0.1.1.
2026-06-24 10:27:13 +02:00

41 lines
972 B
TypeScript

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: '',
placeholder: 'http://localhost:8080',
description: 'Base URL of the Obsidian API 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=<value> before every command unless the node overrides it.',
},
];
}