mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-06 17:36:50 +08:00
feat: permission and security fixes (#5266)
This commit is contained in:
@@ -175,34 +175,26 @@ export type DataSourceNotion = {
|
||||
export enum DataSourceCategory {
|
||||
website = 'website',
|
||||
}
|
||||
export enum WebsiteProvider {
|
||||
export enum DataSourceProvider {
|
||||
fireCrawl = 'firecrawl',
|
||||
}
|
||||
|
||||
export type WebsiteCredentials = {
|
||||
auth_type: 'bearer'
|
||||
config: {
|
||||
base_url: string
|
||||
api_key: string
|
||||
}
|
||||
}
|
||||
|
||||
export type FirecrawlConfig = {
|
||||
api_key: string
|
||||
base_url: string
|
||||
}
|
||||
|
||||
export type DataSourceWebsiteItem = {
|
||||
export type DataSourceItem = {
|
||||
id: string
|
||||
category: DataSourceCategory.website
|
||||
provider: WebsiteProvider
|
||||
credentials: WebsiteCredentials
|
||||
category: DataSourceCategory
|
||||
provider: DataSourceProvider
|
||||
disabled: boolean
|
||||
created_at: number
|
||||
updated_at: number
|
||||
}
|
||||
export type DataSourceWebsite = {
|
||||
settings: DataSourceWebsiteItem[]
|
||||
|
||||
export type DataSources = {
|
||||
sources: DataSourceItem[]
|
||||
}
|
||||
|
||||
export type GithubRepo = {
|
||||
|
||||
Reference in New Issue
Block a user