mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
chore(api): upgrade graphon to 0.4.0 (#36124)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
This commit is contained in:
co-authored by
autofix-ci[bot]
QuantumGhost
parent
127fbf2c9a
commit
b96f372f45
@@ -201,7 +201,7 @@ export type LoadBalancingCredentialPayload = {
|
||||
}
|
||||
|
||||
export type ParserPreferredProviderType = {
|
||||
preferred_provider_type: 'system' | 'custom'
|
||||
preferred_provider_type: 'custom' | 'system'
|
||||
}
|
||||
|
||||
export type ParserGithubInstall = {
|
||||
@@ -487,9 +487,9 @@ export type Inner = {
|
||||
provider?: string | null
|
||||
}
|
||||
|
||||
export type TenantAccountRole = 'owner' | 'admin' | 'editor' | 'normal' | 'dataset_operator'
|
||||
export type TenantAccountRole = 'admin' | 'dataset_operator' | 'editor' | 'normal' | 'owner'
|
||||
|
||||
export type ModelType = 'llm' | 'text-embedding' | 'rerank' | 'speech2text' | 'moderation' | 'tts'
|
||||
export type ModelType = 'llm' | 'moderation' | 'rerank' | 'speech2text' | 'text-embedding' | 'tts'
|
||||
|
||||
export type LoadBalancingPayload = {
|
||||
configs?: Array<{
|
||||
@@ -498,9 +498,9 @@ export type LoadBalancingPayload = {
|
||||
enabled?: boolean | null
|
||||
}
|
||||
|
||||
export type DebugPermission = 'everyone' | 'admins' | 'noone'
|
||||
export type DebugPermission = 'admins' | 'everyone' | 'noone'
|
||||
|
||||
export type InstallPermission = 'everyone' | 'admins' | 'noone'
|
||||
export type InstallPermission = 'admins' | 'everyone' | 'noone'
|
||||
|
||||
export type PluginAutoUpgradeSettingsPayload = {
|
||||
exclude_plugins?: Array<string>
|
||||
@@ -515,7 +515,7 @@ export type PluginPermissionSettingsPayload = {
|
||||
install_permission?: InstallPermission
|
||||
}
|
||||
|
||||
export type ApiProviderSchemaType = 'openapi' | 'swagger' | 'openai_plugin' | 'openai_actions'
|
||||
export type ApiProviderSchemaType = 'openai_actions' | 'openai_plugin' | 'openapi' | 'swagger'
|
||||
|
||||
export type CredentialType = 'api-key' | 'oauth2' | 'unauthorized'
|
||||
|
||||
@@ -527,9 +527,9 @@ export type WorkflowToolParameterConfiguration = {
|
||||
|
||||
export type StrategySetting = 'disabled' | 'fix_only' | 'latest'
|
||||
|
||||
export type UpgradeMode = 'all' | 'partial' | 'exclude'
|
||||
export type UpgradeMode = 'all' | 'exclude' | 'partial'
|
||||
|
||||
export type ToolParameterForm = 'schema' | 'form' | 'llm'
|
||||
export type ToolParameterForm = 'form' | 'llm' | 'schema'
|
||||
|
||||
export type GetWorkspacesData = {
|
||||
body?: never
|
||||
@@ -1354,8 +1354,8 @@ export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConf
|
||||
= {
|
||||
body: LoadBalancingCredentialPayload
|
||||
path: {
|
||||
provider: string
|
||||
config_id: string
|
||||
provider: string
|
||||
}
|
||||
query?: never
|
||||
url: '/workspaces/current/model-providers/{provider}/models/load-balancing-configs/{config_id}/credentials-validate'
|
||||
@@ -1844,8 +1844,8 @@ export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteResponse
|
||||
export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierData = {
|
||||
body?: never
|
||||
path: {
|
||||
task_id: string
|
||||
identifier: string
|
||||
task_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/workspaces/current/plugin/tasks/{task_id}/delete/{identifier}'
|
||||
@@ -2140,8 +2140,8 @@ export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByC
|
||||
= {
|
||||
body?: never
|
||||
path: {
|
||||
provider: string
|
||||
credential_type: string
|
||||
provider: string
|
||||
}
|
||||
query?: never
|
||||
url: '/workspaces/current/tool-provider/builtin/{provider}/credential/schema/{credential_type}'
|
||||
@@ -3004,10 +3004,10 @@ export type PostWorkspacesSwitchResponse
|
||||
export type GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangData = {
|
||||
body?: never
|
||||
path: {
|
||||
tenant_id: string
|
||||
provider: string
|
||||
icon_type: string
|
||||
lang: string
|
||||
provider: string
|
||||
tenant_id: string
|
||||
}
|
||||
query?: never
|
||||
url: '/workspaces/{tenant_id}/model-providers/{provider}/{icon_type}/{lang}'
|
||||
|
||||
@@ -173,7 +173,7 @@ export const zParserCredentialValidate = z.object({
|
||||
* ParserPreferredProviderType
|
||||
*/
|
||||
export const zParserPreferredProviderType = z.object({
|
||||
preferred_provider_type: z.enum(['system', 'custom']),
|
||||
preferred_provider_type: z.enum(['custom', 'system']),
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -431,7 +431,7 @@ export const zAccountWithRoleList = z.object({
|
||||
/**
|
||||
* TenantAccountRole
|
||||
*/
|
||||
export const zTenantAccountRole = z.enum(['owner', 'admin', 'editor', 'normal', 'dataset_operator'])
|
||||
export const zTenantAccountRole = z.enum(['admin', 'dataset_operator', 'editor', 'normal', 'owner'])
|
||||
|
||||
/**
|
||||
* MemberInvitePayload
|
||||
@@ -449,10 +449,10 @@ export const zMemberInvitePayload = z.object({
|
||||
*/
|
||||
export const zModelType = z.enum([
|
||||
'llm',
|
||||
'text-embedding',
|
||||
'moderation',
|
||||
'rerank',
|
||||
'speech2text',
|
||||
'moderation',
|
||||
'text-embedding',
|
||||
'tts',
|
||||
])
|
||||
|
||||
@@ -559,12 +559,12 @@ export const zParserPostModels = z.object({
|
||||
/**
|
||||
* DebugPermission
|
||||
*/
|
||||
export const zDebugPermission = z.enum(['everyone', 'admins', 'noone'])
|
||||
export const zDebugPermission = z.enum(['admins', 'everyone', 'noone'])
|
||||
|
||||
/**
|
||||
* InstallPermission
|
||||
*/
|
||||
export const zInstallPermission = z.enum(['everyone', 'admins', 'noone'])
|
||||
export const zInstallPermission = z.enum(['admins', 'everyone', 'noone'])
|
||||
|
||||
/**
|
||||
* ParserPermissionChange
|
||||
@@ -588,10 +588,10 @@ export const zPluginPermissionSettingsPayload = z.object({
|
||||
* Enum class for api provider schema type.
|
||||
*/
|
||||
export const zApiProviderSchemaType = z.enum([
|
||||
'openai_actions',
|
||||
'openai_plugin',
|
||||
'openapi',
|
||||
'swagger',
|
||||
'openai_plugin',
|
||||
'openai_actions',
|
||||
])
|
||||
|
||||
/**
|
||||
@@ -657,7 +657,7 @@ export const zStrategySetting = z.enum(['disabled', 'fix_only', 'latest'])
|
||||
/**
|
||||
* UpgradeMode
|
||||
*/
|
||||
export const zUpgradeMode = z.enum(['all', 'partial', 'exclude'])
|
||||
export const zUpgradeMode = z.enum(['all', 'exclude', 'partial'])
|
||||
|
||||
/**
|
||||
* PluginAutoUpgradeSettingsPayload
|
||||
@@ -681,7 +681,7 @@ export const zParserPreferencesChange = z.object({
|
||||
/**
|
||||
* ToolParameterForm
|
||||
*/
|
||||
export const zToolParameterForm = z.enum(['schema', 'form', 'llm'])
|
||||
export const zToolParameterForm = z.enum(['form', 'llm', 'schema'])
|
||||
|
||||
/**
|
||||
* WorkflowToolParameterConfiguration
|
||||
@@ -1214,8 +1214,8 @@ export const zPostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingCo
|
||||
|
||||
export const zPostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidatePath
|
||||
= z.object({
|
||||
provider: z.string(),
|
||||
config_id: z.string(),
|
||||
provider: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -1484,8 +1484,8 @@ export const zPostWorkspacesCurrentPluginTasksByTaskIdDeleteResponse = z.record(
|
||||
)
|
||||
|
||||
export const zPostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierPath = z.object({
|
||||
task_id: z.string(),
|
||||
identifier: z.string(),
|
||||
task_id: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -1623,8 +1623,8 @@ export const zGetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoRes
|
||||
|
||||
export const zGetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypePath
|
||||
= z.object({
|
||||
provider: z.string(),
|
||||
credential_type: z.string(),
|
||||
provider: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -2135,10 +2135,10 @@ export const zPostWorkspacesSwitchBody = zSwitchWorkspacePayload
|
||||
export const zPostWorkspacesSwitchResponse = z.record(z.string(), z.unknown())
|
||||
|
||||
export const zGetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangPath = z.object({
|
||||
tenant_id: z.string(),
|
||||
provider: z.string(),
|
||||
icon_type: z.string(),
|
||||
lang: z.string(),
|
||||
provider: z.string(),
|
||||
tenant_id: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user