mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-15 00:53:02 -06:00
31 lines
750 B
TypeScript
31 lines
750 B
TypeScript
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class WyomingApi implements ICredentialType {
|
|
name = 'wyomingApi';
|
|
|
|
displayName = 'Wyoming API';
|
|
|
|
documentationUrl = 'https://github.com/rhasspy/wyoming';
|
|
|
|
icon = { light: 'file:wyoming.svg', dark: 'file:wyoming.svg' } as const;
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Host',
|
|
name: 'host',
|
|
type: 'string',
|
|
default: 'localhost',
|
|
placeholder: 'e.g., localhost or 192.168.1.100',
|
|
description: 'Wyoming server hostname or IP address',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Port',
|
|
name: 'port',
|
|
type: 'number',
|
|
default: 10300,
|
|
description: 'Wyoming server port (default: 10300 for Whisper)',
|
|
required: true,
|
|
},
|
|
];
|
|
}
|