Add credentials file

This commit is contained in:
Seif
2023-07-29 12:35:31 -07:00
parent 62a13630b9
commit 1832eecde2
3 changed files with 68 additions and 42 deletions
@@ -0,0 +1,34 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class VectaraAPI implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Vectara API'
this.name = 'vectaraApi'
this.version = 1.0
this.inputs = [
{
label: 'Vectara Customer ID',
name: 'customerID',
type: 'string'
},
{
label: 'Vectara Corpus ID',
name: 'corpusID',
type: 'string'
},
{
label: 'Vectara API Key',
name: 'apiKey',
type: 'password'
}
]
}
}
module.exports = { credClass: VectaraAPI }