Files
dify/web/models/app.ts
T
+101 0a20210a59 feat: Add W&B Weave Tracing Integration (#14262)
Signed-off-by: Yuichiro Utsumi <[email protected]>
Signed-off-by: -LAN- <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: kenwoodjw <[email protected]>
Signed-off-by: ChengZi <[email protected]>
Signed-off-by: cl <[email protected]>
Co-authored-by: Yu Chun Chang <[email protected]>
Co-authored-by: Kyle Chang <[email protected]>
Co-authored-by: Lick-liu <[email protected]>
Co-authored-by: crazywoola <[email protected]>
Co-authored-by: Yuichiro Utsumi <[email protected]>
Co-authored-by: NFish <[email protected]>
Co-authored-by: Yeuoly <[email protected]>
Co-authored-by: Wu Tianwei <[email protected]>
Co-authored-by: DDDDD12138 <[email protected]>
Co-authored-by: Jyong <[email protected]>
Co-authored-by: -LAN- <[email protected]>
Co-authored-by: Novice <[email protected]>
Co-authored-by: yihong <[email protected]>
Co-authored-by: Kalo Chin <[email protected]>
Co-authored-by: zxhlyh <[email protected]>
Co-authored-by: jiangbo721 <[email protected]>
Co-authored-by: 刘江波 <[email protected]>
Co-authored-by: Lam <[email protected]>
Co-authored-by: crazywoola <[email protected]>
Co-authored-by: Mars <[email protected]>
Co-authored-by: mars <[email protected]>
Co-authored-by: Joe <[email protected]>
Co-authored-by: Rafael Carvalho <[email protected]>
Co-authored-by: Joel <[email protected]>
Co-authored-by: 非法操作 <[email protected]>
Co-authored-by: kenwoodjw <[email protected]>
Co-authored-by: codingjaguar <[email protected]>
Co-authored-by: ChengZi <[email protected]>
Co-authored-by: Fei He <[email protected]>
Co-authored-by: Arcaner <[email protected]>
Co-authored-by: Xiyuan Chen <[email protected]>
Co-authored-by: KVOJJJin <[email protected]>
Co-authored-by: XiaoBa <[email protected]>
Co-authored-by: Xiaoba Yu <[email protected]>
Co-authored-by: zhangyuhang <[email protected]>
Co-authored-by: yuhang2.zhang <[email protected]>
Co-authored-by: 诗浓 <[email protected]>
Co-authored-by: RookieAgent <[email protected]>
Co-authored-by: sho-takano-dev <[email protected]>
Co-authored-by: 過世秋風 <[email protected]>
Co-authored-by: Yi Feng <[email protected]>
Co-authored-by: QuantumGhost <[email protected]>
Co-authored-by: Yongtao Huang <[email protected]>
Co-authored-by: ShadowJobs <[email protected]>
Co-authored-by: LinYing <[email protected]>
Co-authored-by: Benjamin <[email protected]>
Co-authored-by: LiuBodong <[email protected]>
Co-authored-by: huangzhuo1949 <[email protected]>
Co-authored-by: huangzhuo <[email protected]>
Co-authored-by: csurong <[email protected]>
Co-authored-by: 傻笑zz <[email protected]>
Co-authored-by: L8ng <[email protected]>
Co-authored-by: Bowen Liang <[email protected]>
Co-authored-by: Novice Lee <[email protected]>
Co-authored-by: GuanMu <[email protected]>
Co-authored-by: LittleFish-15 <[email protected]>
Co-authored-by: 诗浓 <[email protected]>
Co-authored-by: luckylhb90 <[email protected]>
Co-authored-by: hobo.l <[email protected]>
Co-authored-by: Gen Sato <[email protected]>
Co-authored-by: twwu <[email protected]>
Co-authored-by: StoneFancyX <[email protected]>
Co-authored-by: StoneFancyX <[email protected]>
Co-authored-by: Naoki KOBAYASHI <[email protected]>
Co-authored-by: kurokobo <[email protected]>
Co-authored-by: cyflhn <[email protected]>
Co-authored-by: Yingchun Lai <[email protected]>
Co-authored-by: jimmyfen <[email protected]>
Co-authored-by: Xuetao Song <[email protected]>
Co-authored-by: Panpan <[email protected]>
Co-authored-by: wyy-holding <[email protected]>
Co-authored-by: リイノ Lin <[email protected]>
Co-authored-by: Ning <[email protected]>
Co-authored-by: Linh Nguyen <[email protected]>
Co-authored-by: Junjie.M <[email protected]>
Co-authored-by: Ron <[email protected]>
Co-authored-by: Novice <[email protected]>
Co-authored-by: NanoNova <[email protected]>
Co-authored-by: JaydenZhou <[email protected]>
Co-authored-by: dotdotdot <[email protected]>
Co-authored-by: Good Wood <[email protected]>
Co-authored-by: Ryosei Karaki <[email protected]>
Co-authored-by: chenhuan0728 <[email protected]>
Co-authored-by: chenhuan <huan.chen0728@foxmail>
Co-authored-by: lenbo <[email protected]>
Co-authored-by: Jiang <[email protected]>
Co-authored-by: jiangzhijie <[email protected]>
Co-authored-by: Yongtao Huang <[email protected]>
Co-authored-by: zhangkun-21 <[email protected]>
Co-authored-by: hsiong <[email protected]>
Co-authored-by: 李远军 <[email protected]>
Co-authored-by: yourchanges <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: liuzhenghua <[email protected]>
Co-authored-by: taokuizu <[email protected]>
Co-authored-by: Hanqing Zhao <[email protected]>
Co-authored-by: JimintheBox <[email protected]>
Co-authored-by: wlleiiwang <[email protected]>
Co-authored-by: wlleiiwang <[email protected]>
Co-authored-by: Alex <[email protected]>
Co-authored-by: yuanlong <[email protected]>
Co-authored-by: wanttobeamaster <[email protected]>
Co-authored-by: xiaozhiqing.xzq <[email protected]>
Co-authored-by: Chenhe Gu <[email protected]>
Co-authored-by: tyounami <[email protected]>
Co-authored-by: bo.zhao <[email protected]>
Co-authored-by: ClSlaid <[email protected]>
Co-authored-by: adru <[email protected]>
Co-authored-by: horochx <[email protected]>
2025-04-26 04:28:30 -07:00

116 lines
2.6 KiB
TypeScript

import type { LangFuseConfig, LangSmithConfig, OpikConfig, TracingProvider, WeaveConfig } from '@/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type'
import type { App, AppSSO, AppTemplate, SiteConfig } from '@/types/app'
import type { Dependency } from '@/app/components/plugins/types'
export enum DSLImportMode {
YAML_CONTENT = 'yaml-content',
YAML_URL = 'yaml-url',
}
export enum DSLImportStatus {
COMPLETED = 'completed',
COMPLETED_WITH_WARNINGS = 'completed-with-warnings',
PENDING = 'pending',
FAILED = 'failed',
}
export type AppListResponse = {
data: App[]
has_more: boolean
limit: number
page: number
total: number
}
export type AppDetailResponse = App
export type DSLImportResponse = {
id: string
status: DSLImportStatus
app_mode: AppMode
app_id?: string
current_dsl_version?: string
imported_dsl_version?: string
error: string
leaked_dependencies: Dependency[]
}
export type AppSSOResponse = { enabled: AppSSO['enable_sso'] }
export type AppTemplatesResponse = {
data: AppTemplate[]
}
export type CreateAppResponse = App
export type UpdateAppSiteCodeResponse = { app_id: string } & SiteConfig
export type AppDailyMessagesResponse = {
data: Array<{ date: string; message_count: number }>
}
export type AppDailyConversationsResponse = {
data: Array<{ date: string; conversation_count: number }>
}
export type WorkflowDailyConversationsResponse = {
data: Array<{ date: string; runs: number }>
}
export type AppStatisticsResponse = {
data: Array<{ date: string }>
}
export type AppDailyEndUsersResponse = {
data: Array<{ date: string; terminal_count: number }>
}
export type AppTokenCostsResponse = {
data: Array<{ date: string; token_count: number; total_price: number; currency: number }>
}
export type UpdateAppModelConfigResponse = { result: string }
export type ApiKeyItemResponse = {
id: string
token: string
last_used_at: string
created_at: string
}
export type ApiKeysListResponse = {
data: ApiKeyItemResponse[]
}
export type CreateApiKeyResponse = {
id: string
token: string
created_at: string
}
export type ValidateOpenAIKeyResponse = {
result: string
error?: string
}
export type UpdateOpenAIKeyResponse = ValidateOpenAIKeyResponse
export type GenerationIntroductionResponse = {
introduction: string
}
export type AppVoicesListResponse = [{
name: string
value: string
}]
export type TracingStatus = {
enabled: boolean
tracing_provider: TracingProvider | null
}
export type TracingConfig = {
tracing_provider: TracingProvider
tracing_config: LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig
}