Flowise
36 строк · 1.0 Кб
1import { INodeParams, INodeCredential } from '../src/Interface'
2
3class MomentoCacheApi implements INodeCredential {
4label: string
5name: string
6version: number
7description: string
8inputs: INodeParams[]
9
10constructor() {
11this.label = 'Momento Cache API'
12this.name = 'momentoCacheApi'
13this.version = 1.0
14this.description =
15'Refer to <a target="_blank" href="https://docs.momentohq.com/cache/develop/authentication/api-keys">official guide</a> on how to get API key on Momento'
16this.inputs = [
17{
18label: 'Cache',
19name: 'momentoCache',
20type: 'string'
21},
22{
23label: 'API Key',
24name: 'momentoApiKey',
25type: 'password'
26},
27{
28label: 'Endpoint',
29name: 'momentoEndpoint',
30type: 'string'
31}
32]
33}
34}
35
36module.exports = { credClass: MomentoCacheApi }
37