@wiro-ai/n8n-nodes-wiroai
Version:
n8n community node for Wiro AI — 290+ AI models: video, image, audio, LLM, 3D, and more.
72 lines • 2.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WiroApi = void 0;
class WiroApi {
constructor() {
this.name = 'wiroApi';
this.displayName = 'Wiro API';
this.documentationUrl = 'https://wiro.ai/docs';
this.properties = [
{
displayName: 'Authentication Method',
name: 'authMethod',
type: 'options',
default: 'signatureBased',
options: [
{
name: 'Signature-Based (Recommended)',
value: 'signatureBased',
},
{
name: 'API Key Only (Simple)',
value: 'apiKeyOnly',
},
],
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'API Secret',
name: 'apiSecret',
type: 'string',
typeOptions: {
password: true,
},
default: '',
displayOptions: {
show: {
authMethod: ['signatureBased'],
},
},
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'x-api-key': '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
method: 'POST',
baseURL: 'https://api.wiro.ai',
url: '/v1/Task/Detail',
body: { tasktoken: 'test' },
headers: {
'Content-Type': 'application/json',
},
},
};
}
}
exports.WiroApi = WiroApi;
//# sourceMappingURL=WiroApi.credentials.js.map