feat: support firecrawl frontend code (#5226)

This commit is contained in:
Joel
2024-06-14 22:02:41 +08:00
committed by GitHub
parent 8d1386df0f
commit 28554350de
51 changed files with 1979 additions and 145 deletions

View File

@@ -172,6 +172,39 @@ export type DataSourceNotion = {
source_info: DataSourceNotionWorkspace
}
export enum DataSourceCategory {
website = 'website',
}
export enum WebsiteProvider {
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 = {
id: string
category: DataSourceCategory.website
provider: WebsiteProvider
credentials: WebsiteCredentials
disabled: boolean
created_at: number
updated_at: number
}
export type DataSourceWebsite = {
settings: DataSourceWebsiteItem[]
}
export type GithubRepo = {
stargazers_count: number
}