diff --git a/web/i18n/en-US/dataset-pipeline.ts b/web/i18n/en-US/dataset-pipeline.ts
index 96761955ba..31af466e41 100644
--- a/web/i18n/en-US/dataset-pipeline.ts
+++ b/web/i18n/en-US/dataset-pipeline.ts
@@ -114,6 +114,9 @@ const translation = {
documentSettings: {
title: 'Document Settings',
},
+ onlineDocument: {
+ pageSelectorTitle: '{{name}} pages',
+ },
onlineDrive: {
notConnected: '{{name}} is not connected',
notConnectedTip: 'To sync with {{name}}, connection to {{name}} must be established first.',
@@ -127,6 +130,9 @@ const translation = {
emptySearchResult: 'No items were found',
resetKeywords: 'Reset keywords',
},
+ credentialSelector: {
+ name: '{{credentialName}}\'s {{pluginName}}',
+ },
conversion: {
title: 'Convert to Knowledge Pipeline',
descriptionChunk1: 'You can now convert your existing knowledge base to use the Knowledge Pipeline for document processing',
diff --git a/web/i18n/zh-Hans/dataset-pipeline.ts b/web/i18n/zh-Hans/dataset-pipeline.ts
index dc8b11a840..edb70c0dbd 100644
--- a/web/i18n/zh-Hans/dataset-pipeline.ts
+++ b/web/i18n/zh-Hans/dataset-pipeline.ts
@@ -114,6 +114,9 @@ const translation = {
documentSettings: {
title: '文档设置',
},
+ onlineDocument: {
+ pageSelectorTitle: '{{name}} 页面',
+ },
onlineDrive: {
notConnected: '{{name}} 未绑定',
notConnectedTip: '同步 {{name}} 内容前, 须先绑定 {{name}}。',
@@ -127,6 +130,9 @@ const translation = {
emptySearchResult: '未找到任何项目',
resetKeywords: '重置关键词',
},
+ credentialSelector: {
+ name: '{{credentialName}} 的 {{pluginName}}',
+ },
conversion: {
title: '转换为知识库 pipeline',
descriptionChunk1: '您现在可以将现有知识库转换为使用知识库 pipeline 来处理文档',
diff --git a/web/types/pipeline.tsx b/web/types/pipeline.tsx
index a4321c6707..768664d053 100644
--- a/web/types/pipeline.tsx
+++ b/web/types/pipeline.tsx
@@ -1,3 +1,5 @@
+import type { CredentialTypeEnum } from '@/app/components/plugins/plugin-auth'
+
export type DataSourceNodeProcessingResponse = {
event: 'datasource_processing'
total: number
@@ -31,3 +33,12 @@ export type DataSourceNodeErrorResponse = {
event: 'datasource_error'
error: string
}
+
+export type DataSourceCredential = {
+ avatar_url?: string
+ credential: Record
+ id: string
+ is_default: boolean
+ name: string
+ type: CredentialTypeEnum
+}