Flowise/packages/components/credentials/UnstructuredApi.credential.ts

27 lines
747 B
TypeScript

import { INodeParams, INodeCredential } from '../src/Interface'
class UnstructuredApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Unstructured API'
this.name = 'unstructuredApi'
this.version = 1.0
this.description =
'Refer to <a target="_blank" href="https://unstructured.io/#get-api-key">official guide</a> on how to get api key on Unstructured'
this.inputs = [
{
label: 'API Key',
name: 'unstructuredAPIKey',
type: 'password'
}
]
}
}
module.exports = { credClass: UnstructuredApi }