feat: support firecrawl frontend code (#5226)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user