mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Merge branch 'main' into FEATURE/elasticsearch-vectorstore
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class AWSApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
optional: boolean
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'AWS security credentials'
|
||||
this.name = 'awsApi'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'Your <a target="_blank" href="https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html">AWS security credentials</a>. When unspecified, credentials will be sourced from the runtime environment according to the default AWS SDK behavior.'
|
||||
this.optional = true
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'AWS Access Key',
|
||||
name: 'awsKey',
|
||||
type: 'string',
|
||||
placeholder: '<AWS_ACCESS_KEY_ID>',
|
||||
description: 'The access key for your AWS account.',
|
||||
optional: true
|
||||
},
|
||||
{
|
||||
label: 'AWS Secret Access Key',
|
||||
name: 'awsSecret',
|
||||
type: 'password',
|
||||
placeholder: '<AWS_SECRET_ACCESS_KEY>',
|
||||
description: 'The secret key for your AWS account.',
|
||||
optional: true
|
||||
},
|
||||
{
|
||||
label: 'AWS Session Key',
|
||||
name: 'awsSession',
|
||||
type: 'password',
|
||||
placeholder: '<AWS_SESSION_TOKEN>',
|
||||
description: 'The session key for your AWS account. This is only needed when you are using temporary credentials.',
|
||||
optional: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: AWSApi }
|
||||
@@ -0,0 +1,36 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class MomentoCacheApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Momento Cache API'
|
||||
this.name = 'momentoCacheApi'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'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'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Cache',
|
||||
name: 'momentoCache',
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
label: 'API Key',
|
||||
name: 'momentoApiKey',
|
||||
type: 'password'
|
||||
},
|
||||
{
|
||||
label: 'Endpoint',
|
||||
name: 'momentoEndpoint',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: MomentoCacheApi }
|
||||
@@ -0,0 +1,43 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class RedisCacheApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Redis Cache API'
|
||||
this.name = 'redisCacheApi'
|
||||
this.version = 1.0
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Redis Host',
|
||||
name: 'redisCacheHost',
|
||||
type: 'string',
|
||||
default: '127.0.0.1'
|
||||
},
|
||||
{
|
||||
label: 'Port',
|
||||
name: 'redisCachePort',
|
||||
type: 'number',
|
||||
default: '6789'
|
||||
},
|
||||
{
|
||||
label: 'User',
|
||||
name: 'redisCacheUser',
|
||||
type: 'string',
|
||||
placeholder: '<REDIS_USERNAME>'
|
||||
},
|
||||
{
|
||||
label: 'Password',
|
||||
name: 'redisCachePwd',
|
||||
type: 'password',
|
||||
placeholder: '<REDIS_PASSWORD>'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: RedisCacheApi }
|
||||
@@ -0,0 +1,28 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class UpstashRedisApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Upstash Redis API'
|
||||
this.name = 'upstashRedisApi'
|
||||
this.version = 1.0
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Upstash Redis REST URL',
|
||||
name: 'upstashConnectionUrl',
|
||||
type: 'string'
|
||||
},
|
||||
{
|
||||
label: 'Token',
|
||||
name: 'upstashConnectionToken',
|
||||
type: 'password'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: UpstashRedisApi }
|
||||
@@ -0,0 +1,26 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class UpstashRedisMemoryApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Upstash Redis Memory API'
|
||||
this.name = 'upstashRedisMemoryApi'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'Refer to <a target="_blank" href="https://upstash.com/docs/redis/overall/getstarted">official guide</a> on how to create redis instance and get redis REST Token'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Upstash Redis REST Token',
|
||||
name: 'upstashRestToken',
|
||||
type: 'password'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: UpstashRedisMemoryApi }
|
||||
Reference in New Issue
Block a user