您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pipeline.tsx 852B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import type { CredentialTypeEnum } from '@/app/components/plugins/plugin-auth'
  2. export type DataSourceNodeProcessingResponse = {
  3. event: 'datasource_processing'
  4. total: number
  5. completed: number
  6. }
  7. export type DataSourceNodeError = {
  8. event: 'datasource_error'
  9. message: string
  10. code?: string
  11. }
  12. export type OnlineDriveFile = {
  13. key: string
  14. size: number
  15. }
  16. export type OnlineDriveData = {
  17. bucket: string
  18. files: OnlineDriveFile[]
  19. is_truncated: boolean
  20. }
  21. export type DataSourceNodeCompletedResponse = {
  22. event: 'datasource_completed'
  23. data: any
  24. time_consuming: number
  25. }
  26. export type DataSourceNodeErrorResponse = {
  27. event: 'datasource_error'
  28. error: string
  29. }
  30. export type DataSourceCredential = {
  31. avatar_url?: string
  32. credential: Record<string, any>
  33. id: string
  34. is_default: boolean
  35. name: string
  36. type: CredentialTypeEnum
  37. }