-
-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from FlowiseAI/feature/Credential
Feature/Credential
- Loading branch information
Showing
224 changed files
with
11,522 additions
and
6,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
PORT=3000 | ||
OVERRIDE_DATABASE=true | ||
DATABASE_TYPE=sqlite | ||
PASSPHRASE=MYPASSPHRASE # Passphrase used to create encryption key | ||
DATABASE_PATH=/root/.flowise | ||
# When database is not sqlite | ||
APIKEY_PATH=/root/.flowise | ||
SECRETKEY_PATH=/root/.flowise | ||
LOG_PATH=/root/.flowise/logs | ||
|
||
# DATABASE_TYPE=postgres | ||
# DATABASE_PORT="" | ||
# DATABASE_HOST="" | ||
# DATABASE_NAME="flowise" | ||
# DATABASE_USER="" | ||
# DATABASE_PASSWORD="" | ||
# OVERRIDE_DATABASE=true | ||
|
||
APIKEY_PATH=/root/.flowise | ||
LOG_PATH=/root/.flowise/logs | ||
# FLOWISE_USERNAME=user | ||
# FLOWISE_PASSWORD=1234 | ||
# DEBUG=true | ||
# LOG_LEVEL=debug (error | warn | info | verbose | debug) | ||
# EXECUTION_MODE=child or main | ||
# EXECUTION_MODE=main (child | main) | ||
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs | ||
# TOOL_FUNCTION_EXTERNAL_DEP=moment,lodash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class AirtableApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Airtable API' | ||
this.name = 'airtableApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens">official guide</a> on how to get accessToken on Airtable' | ||
this.inputs = [ | ||
{ | ||
label: 'Access Token', | ||
name: 'accessToken', | ||
type: 'password', | ||
placeholder: '<AIRTABLE_ACCESS_TOKEN>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: AirtableApi } |
23 changes: 23 additions & 0 deletions
23
packages/components/credentials/AnthropicApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class AnthropicApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Anthropic API' | ||
this.name = 'anthropicApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'Anthropic Api Key', | ||
name: 'anthropicApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: AnthropicApi } |
47 changes: 47 additions & 0 deletions
47
packages/components/credentials/AzureOpenAIApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class AzureOpenAIApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Azure OpenAI API' | ||
this.name = 'azureOpenAIApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://azure.microsoft.com/en-us/products/cognitive-services/openai-service">official guide</a> of how to use Azure OpenAI service' | ||
this.inputs = [ | ||
{ | ||
label: 'Azure OpenAI Api Key', | ||
name: 'azureOpenAIApiKey', | ||
type: 'password', | ||
description: `Refer to <a target="_blank" href="https://learn.microsoft.com/en-us/azure/cognitive-services/openai/quickstart?tabs=command-line&pivots=rest-api#set-up">official guide</a> on how to create API key on Azure OpenAI` | ||
}, | ||
{ | ||
label: 'Azure OpenAI Api Instance Name', | ||
name: 'azureOpenAIApiInstanceName', | ||
type: 'string', | ||
placeholder: 'YOUR-INSTANCE-NAME' | ||
}, | ||
{ | ||
label: 'Azure OpenAI Api Deployment Name', | ||
name: 'azureOpenAIApiDeploymentName', | ||
type: 'string', | ||
placeholder: 'YOUR-DEPLOYMENT-NAME' | ||
}, | ||
{ | ||
label: 'Azure OpenAI Api Version', | ||
name: 'azureOpenAIApiVersion', | ||
type: 'string', | ||
placeholder: '2023-06-01-preview', | ||
description: | ||
'Description of Supported API Versions. Please refer <a target="_blank" href="https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#chat-completions">examples</a>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: AzureOpenAIApi } |
24 changes: 24 additions & 0 deletions
24
packages/components/credentials/BraveSearchApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class BraveSearchApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Brave Search API' | ||
this.name = 'braveSearchApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'BraveSearch Api Key', | ||
name: 'braveApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: BraveSearchApi } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class CohereApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Cohere API' | ||
this.name = 'cohereApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'Cohere Api Key', | ||
name: 'cohereApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: CohereApi } |
33 changes: 33 additions & 0 deletions
33
packages/components/credentials/ConfluenceApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class ConfluenceApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Confluence API' | ||
this.name = 'confluenceApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://support.atlassian.com/confluence-cloud/docs/manage-oauth-access-tokens/">official guide</a> on how to get accessToken on Confluence' | ||
this.inputs = [ | ||
{ | ||
label: 'Access Token', | ||
name: 'accessToken', | ||
type: 'password', | ||
placeholder: '<CONFLUENCE_ACCESS_TOKEN>' | ||
}, | ||
{ | ||
label: 'Username', | ||
name: 'username', | ||
type: 'string', | ||
placeholder: '<CONFLUENCE_USERNAME>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: ConfluenceApi } |
29 changes: 29 additions & 0 deletions
29
packages/components/credentials/DynamodbMemoryApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class DynamodbMemoryApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'DynamodbMemory API' | ||
this.name = 'dynamodbMemoryApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'Access Key', | ||
name: 'accessKey', | ||
type: 'password' | ||
}, | ||
{ | ||
label: 'Secret Access Key', | ||
name: 'secretAccessKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: DynamodbMemoryApi } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class FigmaApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Figma API' | ||
this.name = 'figmaApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://www.figma.com/developers/api#access-tokens">official guide</a> on how to get accessToken on Figma' | ||
this.inputs = [ | ||
{ | ||
label: 'Access Token', | ||
name: 'accessToken', | ||
type: 'password', | ||
placeholder: '<FIGMA_ACCESS_TOKEN>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: FigmaApi } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class GithubApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Github API' | ||
this.name = 'githubApi' | ||
this.version = 1.0 | ||
this.description = | ||
'Refer to <a target="_blank" href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens">official guide</a> on how to get accessToken on Github' | ||
this.inputs = [ | ||
{ | ||
label: 'Access Token', | ||
name: 'accessToken', | ||
type: 'password', | ||
placeholder: '<GITHUB_ACCESS_TOKEN>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: GithubApi } |
Oops, something went wrong.