mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
Replace manual fetch calls in use-sandbox-provider.ts with typed ORPC contracts and client. Adds type definitions to types/sandbox-provider.ts and registers contracts in the console router for consistent API handling.
17 lines
323 B
TypeScript
17 lines
323 B
TypeScript
export type ConfigSchema = {
|
|
name: string
|
|
type: string
|
|
}
|
|
|
|
export type SandboxProvider = {
|
|
provider_type: string
|
|
label: string
|
|
description: string
|
|
icon: string
|
|
is_system_configured: boolean
|
|
is_tenant_configured: boolean
|
|
is_active: boolean
|
|
config: Record<string, string>
|
|
config_schema: ConfigSchema[]
|
|
}
|