// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type TenantInfoResponse = {
  created_at?: number | null
  custom_config?: {
    [key: string]: unknown
  } | null
  id: string
  in_trial?: boolean | null
  name?: string | null
  next_credit_reset_date?: number | null
  plan?: string | null
  role?: string | null
  status?: string | null
  trial_credits?: number | null
  trial_credits_used?: number | null
  trial_end_reason?: string | null
}

export type AccountWithRoleList = {
  accounts: Array<AccountWithRole>
}

export type ParserPostDefault = {
  model_settings: Array<Inner>
}

export type EndpointCreatePayload = {
  name: string
  plugin_unique_identifier: string
  settings: {
    [key: string]: unknown
  }
}

export type EndpointCreateResponse = {
  success: boolean
}

export type EndpointIdPayload = {
  endpoint_id: string
}

export type EndpointDeleteResponse = {
  success: boolean
}

export type EndpointDisableResponse = {
  success: boolean
}

export type EndpointEnableResponse = {
  success: boolean
}

export type EndpointListResponse = {
  endpoints: Array<{
    [key: string]: unknown
  }>
}

export type PluginEndpointListResponse = {
  endpoints: Array<{
    [key: string]: unknown
  }>
}

export type LegacyEndpointUpdatePayload = {
  endpoint_id: string
  name: string
  settings: {
    [key: string]: unknown
  }
}

export type EndpointUpdateResponse = {
  success: boolean
}

export type EndpointUpdatePayload = {
  name: string
  settings: {
    [key: string]: unknown
  }
}

export type MemberInvitePayload = {
  emails?: Array<string>
  language?: string | null
  role: TenantAccountRole
}

export type OwnerTransferCheckPayload = {
  code: string
  token: string
}

export type OwnerTransferEmailPayload = {
  language?: string | null
}

export type OwnerTransferPayload = {
  token: string
}

export type MemberRoleUpdatePayload = {
  role: string
}

export type ParserCredentialDelete = {
  credential_id: string
}

export type ParserCredentialCreate = {
  credentials: {
    [key: string]: unknown
  }
  name?: string | null
}

export type ParserCredentialUpdate = {
  credential_id: string
  credentials: {
    [key: string]: unknown
  }
  name?: string | null
}

export type ParserCredentialSwitch = {
  credential_id: string
}

export type ParserCredentialValidate = {
  credentials: {
    [key: string]: unknown
  }
}

export type ParserDeleteModels = {
  model: string
  model_type: ModelType
}

export type ParserPostModels = {
  config_from?: string | null
  credential_id?: string | null
  load_balancing?: LoadBalancingPayload
  model: string
  model_type: ModelType
}

export type ParserDeleteCredential = {
  credential_id: string
  model: string
  model_type: ModelType
}

export type ParserCreateCredential = {
  credentials: {
    [key: string]: unknown
  }
  model: string
  model_type: ModelType
  name?: string | null
}

export type ParserUpdateCredential = {
  credential_id: string
  credentials: {
    [key: string]: unknown
  }
  model: string
  model_type: ModelType
  name?: string | null
}

export type ParserSwitch = {
  credential_id: string
  model: string
  model_type: ModelType
}

export type ParserValidate = {
  credentials: {
    [key: string]: unknown
  }
  model: string
  model_type: ModelType
}

export type LoadBalancingCredentialPayload = {
  credentials: {
    [key: string]: unknown
  }
  model: string
  model_type: ModelType
}

export type ParserPreferredProviderType = {
  preferred_provider_type: 'system' | 'custom'
}

export type ParserGithubInstall = {
  package: string
  plugin_unique_identifier: string
  repo: string
  version: string
}

export type ParserPluginIdentifiers = {
  plugin_unique_identifiers: Array<string>
}

export type ParserLatest = {
  plugin_ids: Array<string>
}

export type ParserDynamicOptionsWithCredentials = {
  action: string
  credential_id: string
  credentials: {
    [key: string]: unknown
  }
  parameter: string
  plugin_id: string
  provider: string
}

export type ParserPermissionChange = {
  debug_permission: DebugPermission
  install_permission: InstallPermission
}

export type ParserExcludePlugin = {
  plugin_id: string
}

export type ParserPreferencesChange = {
  auto_upgrade: PluginAutoUpgradeSettingsPayload
  permission: PluginPermissionSettingsPayload
}

export type ParserUninstall = {
  plugin_installation_id: string
}

export type ParserGithubUpgrade = {
  new_plugin_unique_identifier: string
  original_plugin_unique_identifier: string
  package: string
  repo: string
  version: string
}

export type ParserMarketplaceUpgrade = {
  new_plugin_unique_identifier: string
  original_plugin_unique_identifier: string
}

export type ParserGithubUpload = {
  package: string
  repo: string
  version: string
}

export type ApiToolProviderAddPayload = {
  credentials: {
    [key: string]: unknown
  }
  custom_disclaimer?: string
  icon: {
    [key: string]: unknown
  }
  labels?: Array<string> | null
  privacy_policy?: string | null
  provider: string
  schema: string
  schema_type: ApiProviderSchemaType
}

export type ApiToolProviderDeletePayload = {
  provider: string
}

export type ApiToolSchemaPayload = {
  schema: string
}

export type ApiToolTestPayload = {
  credentials: {
    [key: string]: unknown
  }
  parameters: {
    [key: string]: unknown
  }
  provider_name?: string | null
  schema: string
  schema_type: ApiProviderSchemaType
  tool_name: string
}

export type ApiToolProviderUpdatePayload = {
  credentials: {
    [key: string]: unknown
  }
  custom_disclaimer?: string
  icon: {
    [key: string]: unknown
  }
  labels?: Array<string> | null
  original_provider: string
  privacy_policy?: string | null
  provider: string
  schema: string
  schema_type: ApiProviderSchemaType
}

export type BuiltinToolAddPayload = {
  credentials: {
    [key: string]: unknown
  }
  name?: string | null
  type: CredentialType
}

export type BuiltinProviderDefaultCredentialPayload = {
  id: string
}

export type BuiltinToolCredentialDeletePayload = {
  credential_id: string
}

export type ToolOAuthCustomClientPayload = {
  client_params?: {
    [key: string]: unknown
  } | null
  enable_oauth_custom_client?: boolean | null
}

export type BuiltinToolUpdatePayload = {
  credential_id: string
  credentials?: {
    [key: string]: unknown
  } | null
  name?: string | null
}

export type McpProviderDeletePayload = {
  provider_id: string
}

export type McpProviderCreatePayload = {
  authentication?: {
    [key: string]: unknown
  } | null
  configuration?: {
    [key: string]: unknown
  } | null
  headers?: {
    [key: string]: unknown
  } | null
  icon: string
  icon_background?: string
  icon_type: string
  name: string
  server_identifier: string
  server_url: string
}

export type McpProviderUpdatePayload = {
  authentication?: {
    [key: string]: unknown
  } | null
  configuration?: {
    [key: string]: unknown
  } | null
  headers?: {
    [key: string]: unknown
  } | null
  icon: string
  icon_background?: string
  icon_type: string
  name: string
  provider_id: string
  server_identifier: string
  server_url: string
}

export type McpAuthPayload = {
  authorization_code?: string | null
  provider_id: string
}

export type WorkflowToolCreatePayload = {
  description: string
  icon: {
    [key: string]: unknown
  }
  label: string
  labels?: Array<string> | null
  name: string
  parameters?: Array<WorkflowToolParameterConfiguration>
  privacy_policy?: string | null
  workflow_app_id: string
}

export type WorkflowToolDeletePayload = {
  workflow_tool_id: string
}

export type WorkflowToolUpdatePayload = {
  description: string
  icon: {
    [key: string]: unknown
  }
  label: string
  labels?: Array<string> | null
  name: string
  parameters?: Array<WorkflowToolParameterConfiguration>
  privacy_policy?: string | null
  workflow_tool_id: string
}

export type TriggerOAuthClientPayload = {
  client_params?: {
    [key: string]: unknown
  } | null
  enabled?: boolean | null
}

export type TriggerSubscriptionBuilderUpdatePayload = {
  credentials?: {
    [key: string]: unknown
  } | null
  name?: string | null
  parameters?: {
    [key: string]: unknown
  } | null
  properties?: {
    [key: string]: unknown
  } | null
}

export type TriggerSubscriptionBuilderCreatePayload = {
  credential_type?: string
}

export type TriggerSubscriptionBuilderVerifyPayload = {
  credentials: {
    [key: string]: unknown
  }
}

export type WorkspaceCustomConfigPayload = {
  remove_webapp_brand?: boolean | null
  replace_webapp_logo?: string | null
}

export type WorkspaceInfoPayload = {
  name: string
}

export type SwitchWorkspacePayload = {
  tenant_id: string
}

export type AccountWithRole = {
  avatar?: string | null
  created_at?: number | null
  email: string
  id: string
  last_active_at?: number | null
  last_login_at?: number | null
  name: string
  role: string
  status: string
}

export type Inner = {
  model?: string | null
  model_type: ModelType
  provider?: string | null
}

export type TenantAccountRole = 'owner' | 'admin' | 'editor' | 'normal' | 'dataset_operator'

export type ModelType = 'llm' | 'text-embedding' | 'rerank' | 'speech2text' | 'moderation' | 'tts'

export type LoadBalancingPayload = {
  configs?: Array<{
    [key: string]: unknown
  }> | null
  enabled?: boolean | null
}

export type DebugPermission = 'everyone' | 'admins' | 'noone'

export type InstallPermission = 'everyone' | 'admins' | 'noone'

export type PluginAutoUpgradeSettingsPayload = {
  exclude_plugins?: Array<string>
  include_plugins?: Array<string>
  strategy_setting?: StrategySetting
  upgrade_mode?: UpgradeMode
  upgrade_time_of_day?: number
}

export type PluginPermissionSettingsPayload = {
  debug_permission?: DebugPermission
  install_permission?: InstallPermission
}

export type ApiProviderSchemaType = 'openapi' | 'swagger' | 'openai_plugin' | 'openai_actions'

export type CredentialType = 'api-key' | 'oauth2' | 'unauthorized'

export type WorkflowToolParameterConfiguration = {
  description: string
  form: ToolParameterForm
  name: string
}

export type StrategySetting = 'disabled' | 'fix_only' | 'latest'

export type UpgradeMode = 'all' | 'partial' | 'exclude'

export type ToolParameterForm = 'schema' | 'form' | 'llm'

export type GetWorkspacesData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces'
}

export type GetWorkspacesResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesResponse = GetWorkspacesResponses[keyof GetWorkspacesResponses]

export type PostWorkspacesCurrentData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current'
}

export type PostWorkspacesCurrentResponses = {
  200: TenantInfoResponse
}

export type PostWorkspacesCurrentResponse
  = PostWorkspacesCurrentResponses[keyof PostWorkspacesCurrentResponses]

export type GetWorkspacesCurrentAgentProviderByProviderNameData = {
  body?: never
  path: {
    provider_name: string
  }
  query?: never
  url: '/workspaces/current/agent-provider/{provider_name}'
}

export type GetWorkspacesCurrentAgentProviderByProviderNameResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentAgentProviderByProviderNameResponse
  = GetWorkspacesCurrentAgentProviderByProviderNameResponses[keyof GetWorkspacesCurrentAgentProviderByProviderNameResponses]

export type GetWorkspacesCurrentAgentProvidersData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/agent-providers'
}

export type GetWorkspacesCurrentAgentProvidersResponses = {
  200: Array<{
    [key: string]: unknown
  }>
}

export type GetWorkspacesCurrentAgentProvidersResponse
  = GetWorkspacesCurrentAgentProvidersResponses[keyof GetWorkspacesCurrentAgentProvidersResponses]

export type GetWorkspacesCurrentDatasetOperatorsData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/dataset-operators'
}

export type GetWorkspacesCurrentDatasetOperatorsResponses = {
  200: AccountWithRoleList
}

export type GetWorkspacesCurrentDatasetOperatorsResponse
  = GetWorkspacesCurrentDatasetOperatorsResponses[keyof GetWorkspacesCurrentDatasetOperatorsResponses]

export type GetWorkspacesCurrentDefaultModelData = {
  body?: never
  path?: never
  query: {
    model_type: string
  }
  url: '/workspaces/current/default-model'
}

export type GetWorkspacesCurrentDefaultModelResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentDefaultModelResponse
  = GetWorkspacesCurrentDefaultModelResponses[keyof GetWorkspacesCurrentDefaultModelResponses]

export type PostWorkspacesCurrentDefaultModelData = {
  body: ParserPostDefault
  path?: never
  query?: never
  url: '/workspaces/current/default-model'
}

export type PostWorkspacesCurrentDefaultModelResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentDefaultModelResponse
  = PostWorkspacesCurrentDefaultModelResponses[keyof PostWorkspacesCurrentDefaultModelResponses]

export type PostWorkspacesCurrentEndpointsData = {
  body: EndpointCreatePayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints'
}

export type PostWorkspacesCurrentEndpointsErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsError
  = PostWorkspacesCurrentEndpointsErrors[keyof PostWorkspacesCurrentEndpointsErrors]

export type PostWorkspacesCurrentEndpointsResponses = {
  200: EndpointCreateResponse
}

export type PostWorkspacesCurrentEndpointsResponse
  = PostWorkspacesCurrentEndpointsResponses[keyof PostWorkspacesCurrentEndpointsResponses]

export type PostWorkspacesCurrentEndpointsCreateData = {
  body: EndpointCreatePayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints/create'
}

export type PostWorkspacesCurrentEndpointsCreateErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsCreateError
  = PostWorkspacesCurrentEndpointsCreateErrors[keyof PostWorkspacesCurrentEndpointsCreateErrors]

export type PostWorkspacesCurrentEndpointsCreateResponses = {
  200: EndpointCreateResponse
}

export type PostWorkspacesCurrentEndpointsCreateResponse
  = PostWorkspacesCurrentEndpointsCreateResponses[keyof PostWorkspacesCurrentEndpointsCreateResponses]

export type PostWorkspacesCurrentEndpointsDeleteData = {
  body: EndpointIdPayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints/delete'
}

export type PostWorkspacesCurrentEndpointsDeleteErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsDeleteError
  = PostWorkspacesCurrentEndpointsDeleteErrors[keyof PostWorkspacesCurrentEndpointsDeleteErrors]

export type PostWorkspacesCurrentEndpointsDeleteResponses = {
  200: EndpointDeleteResponse
}

export type PostWorkspacesCurrentEndpointsDeleteResponse
  = PostWorkspacesCurrentEndpointsDeleteResponses[keyof PostWorkspacesCurrentEndpointsDeleteResponses]

export type PostWorkspacesCurrentEndpointsDisableData = {
  body: EndpointIdPayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints/disable'
}

export type PostWorkspacesCurrentEndpointsDisableErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsDisableError
  = PostWorkspacesCurrentEndpointsDisableErrors[keyof PostWorkspacesCurrentEndpointsDisableErrors]

export type PostWorkspacesCurrentEndpointsDisableResponses = {
  200: EndpointDisableResponse
}

export type PostWorkspacesCurrentEndpointsDisableResponse
  = PostWorkspacesCurrentEndpointsDisableResponses[keyof PostWorkspacesCurrentEndpointsDisableResponses]

export type PostWorkspacesCurrentEndpointsEnableData = {
  body: EndpointIdPayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints/enable'
}

export type PostWorkspacesCurrentEndpointsEnableErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsEnableError
  = PostWorkspacesCurrentEndpointsEnableErrors[keyof PostWorkspacesCurrentEndpointsEnableErrors]

export type PostWorkspacesCurrentEndpointsEnableResponses = {
  200: EndpointEnableResponse
}

export type PostWorkspacesCurrentEndpointsEnableResponse
  = PostWorkspacesCurrentEndpointsEnableResponses[keyof PostWorkspacesCurrentEndpointsEnableResponses]

export type GetWorkspacesCurrentEndpointsListData = {
  body?: never
  path?: never
  query: {
    page: number
    page_size: number
  }
  url: '/workspaces/current/endpoints/list'
}

export type GetWorkspacesCurrentEndpointsListResponses = {
  200: EndpointListResponse
}

export type GetWorkspacesCurrentEndpointsListResponse
  = GetWorkspacesCurrentEndpointsListResponses[keyof GetWorkspacesCurrentEndpointsListResponses]

export type GetWorkspacesCurrentEndpointsListPluginData = {
  body?: never
  path?: never
  query: {
    page: number
    page_size: number
    plugin_id: string
  }
  url: '/workspaces/current/endpoints/list/plugin'
}

export type GetWorkspacesCurrentEndpointsListPluginResponses = {
  200: PluginEndpointListResponse
}

export type GetWorkspacesCurrentEndpointsListPluginResponse
  = GetWorkspacesCurrentEndpointsListPluginResponses[keyof GetWorkspacesCurrentEndpointsListPluginResponses]

export type PostWorkspacesCurrentEndpointsUpdateData = {
  body: LegacyEndpointUpdatePayload
  path?: never
  query?: never
  url: '/workspaces/current/endpoints/update'
}

export type PostWorkspacesCurrentEndpointsUpdateErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentEndpointsUpdateError
  = PostWorkspacesCurrentEndpointsUpdateErrors[keyof PostWorkspacesCurrentEndpointsUpdateErrors]

export type PostWorkspacesCurrentEndpointsUpdateResponses = {
  200: EndpointUpdateResponse
}

export type PostWorkspacesCurrentEndpointsUpdateResponse
  = PostWorkspacesCurrentEndpointsUpdateResponses[keyof PostWorkspacesCurrentEndpointsUpdateResponses]

export type DeleteWorkspacesCurrentEndpointsByIdData = {
  body?: never
  path: {
    id: string
  }
  query?: never
  url: '/workspaces/current/endpoints/{id}'
}

export type DeleteWorkspacesCurrentEndpointsByIdErrors = {
  403: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentEndpointsByIdError
  = DeleteWorkspacesCurrentEndpointsByIdErrors[keyof DeleteWorkspacesCurrentEndpointsByIdErrors]

export type DeleteWorkspacesCurrentEndpointsByIdResponses = {
  200: EndpointDeleteResponse
}

export type DeleteWorkspacesCurrentEndpointsByIdResponse
  = DeleteWorkspacesCurrentEndpointsByIdResponses[keyof DeleteWorkspacesCurrentEndpointsByIdResponses]

export type PatchWorkspacesCurrentEndpointsByIdData = {
  body: EndpointUpdatePayload
  path: {
    id: string
  }
  query?: never
  url: '/workspaces/current/endpoints/{id}'
}

export type PatchWorkspacesCurrentEndpointsByIdErrors = {
  403: {
    [key: string]: unknown
  }
}

export type PatchWorkspacesCurrentEndpointsByIdError
  = PatchWorkspacesCurrentEndpointsByIdErrors[keyof PatchWorkspacesCurrentEndpointsByIdErrors]

export type PatchWorkspacesCurrentEndpointsByIdResponses = {
  200: EndpointUpdateResponse
}

export type PatchWorkspacesCurrentEndpointsByIdResponse
  = PatchWorkspacesCurrentEndpointsByIdResponses[keyof PatchWorkspacesCurrentEndpointsByIdResponses]

export type GetWorkspacesCurrentMembersData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/members'
}

export type GetWorkspacesCurrentMembersResponses = {
  200: AccountWithRoleList
}

export type GetWorkspacesCurrentMembersResponse
  = GetWorkspacesCurrentMembersResponses[keyof GetWorkspacesCurrentMembersResponses]

export type PostWorkspacesCurrentMembersInviteEmailData = {
  body: MemberInvitePayload
  path?: never
  query?: never
  url: '/workspaces/current/members/invite-email'
}

export type PostWorkspacesCurrentMembersInviteEmailResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentMembersInviteEmailResponse
  = PostWorkspacesCurrentMembersInviteEmailResponses[keyof PostWorkspacesCurrentMembersInviteEmailResponses]

export type PostWorkspacesCurrentMembersOwnerTransferCheckData = {
  body: OwnerTransferCheckPayload
  path?: never
  query?: never
  url: '/workspaces/current/members/owner-transfer-check'
}

export type PostWorkspacesCurrentMembersOwnerTransferCheckResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentMembersOwnerTransferCheckResponse
  = PostWorkspacesCurrentMembersOwnerTransferCheckResponses[keyof PostWorkspacesCurrentMembersOwnerTransferCheckResponses]

export type PostWorkspacesCurrentMembersSendOwnerTransferConfirmEmailData = {
  body: OwnerTransferEmailPayload
  path?: never
  query?: never
  url: '/workspaces/current/members/send-owner-transfer-confirm-email'
}

export type PostWorkspacesCurrentMembersSendOwnerTransferConfirmEmailResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentMembersSendOwnerTransferConfirmEmailResponse
  = PostWorkspacesCurrentMembersSendOwnerTransferConfirmEmailResponses[keyof PostWorkspacesCurrentMembersSendOwnerTransferConfirmEmailResponses]

export type DeleteWorkspacesCurrentMembersByMemberIdData = {
  body?: never
  path: {
    member_id: string
  }
  query?: never
  url: '/workspaces/current/members/{member_id}'
}

export type DeleteWorkspacesCurrentMembersByMemberIdResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentMembersByMemberIdResponse
  = DeleteWorkspacesCurrentMembersByMemberIdResponses[keyof DeleteWorkspacesCurrentMembersByMemberIdResponses]

export type PostWorkspacesCurrentMembersByMemberIdOwnerTransferData = {
  body: OwnerTransferPayload
  path: {
    member_id: string
  }
  query?: never
  url: '/workspaces/current/members/{member_id}/owner-transfer'
}

export type PostWorkspacesCurrentMembersByMemberIdOwnerTransferResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentMembersByMemberIdOwnerTransferResponse
  = PostWorkspacesCurrentMembersByMemberIdOwnerTransferResponses[keyof PostWorkspacesCurrentMembersByMemberIdOwnerTransferResponses]

export type PutWorkspacesCurrentMembersByMemberIdUpdateRoleData = {
  body: MemberRoleUpdatePayload
  path: {
    member_id: string
  }
  query?: never
  url: '/workspaces/current/members/{member_id}/update-role'
}

export type PutWorkspacesCurrentMembersByMemberIdUpdateRoleResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PutWorkspacesCurrentMembersByMemberIdUpdateRoleResponse
  = PutWorkspacesCurrentMembersByMemberIdUpdateRoleResponses[keyof PutWorkspacesCurrentMembersByMemberIdUpdateRoleResponses]

export type GetWorkspacesCurrentModelProvidersData = {
  body?: never
  path?: never
  query?: {
    model_type?: string | null
  }
  url: '/workspaces/current/model-providers'
}

export type GetWorkspacesCurrentModelProvidersResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersResponse
  = GetWorkspacesCurrentModelProvidersResponses[keyof GetWorkspacesCurrentModelProvidersResponses]

export type GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/checkout-url'
}

export type GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlResponse
  = GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlResponses[keyof GetWorkspacesCurrentModelProvidersByProviderCheckoutUrlResponses]

export type DeleteWorkspacesCurrentModelProvidersByProviderCredentialsData = {
  body: ParserCredentialDelete
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/credentials'
}

export type DeleteWorkspacesCurrentModelProvidersByProviderCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentModelProvidersByProviderCredentialsResponse
  = DeleteWorkspacesCurrentModelProvidersByProviderCredentialsResponses[keyof DeleteWorkspacesCurrentModelProvidersByProviderCredentialsResponses]

export type GetWorkspacesCurrentModelProvidersByProviderCredentialsData = {
  body?: never
  path: {
    provider: string
  }
  query?: {
    credential_id?: string | null
  }
  url: '/workspaces/current/model-providers/{provider}/credentials'
}

export type GetWorkspacesCurrentModelProvidersByProviderCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersByProviderCredentialsResponse
  = GetWorkspacesCurrentModelProvidersByProviderCredentialsResponses[keyof GetWorkspacesCurrentModelProvidersByProviderCredentialsResponses]

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsData = {
  body: ParserCredentialCreate
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/credentials'
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsResponse
  = PostWorkspacesCurrentModelProvidersByProviderCredentialsResponses[keyof PostWorkspacesCurrentModelProvidersByProviderCredentialsResponses]

export type PutWorkspacesCurrentModelProvidersByProviderCredentialsData = {
  body: ParserCredentialUpdate
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/credentials'
}

export type PutWorkspacesCurrentModelProvidersByProviderCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PutWorkspacesCurrentModelProvidersByProviderCredentialsResponse
  = PutWorkspacesCurrentModelProvidersByProviderCredentialsResponses[keyof PutWorkspacesCurrentModelProvidersByProviderCredentialsResponses]

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsSwitchData = {
  body: ParserCredentialSwitch
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/credentials/switch'
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsSwitchResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsSwitchResponse
  = PostWorkspacesCurrentModelProvidersByProviderCredentialsSwitchResponses[keyof PostWorkspacesCurrentModelProvidersByProviderCredentialsSwitchResponses]

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsValidateData = {
  body: ParserCredentialValidate
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/credentials/validate'
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsValidateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderCredentialsValidateResponse
  = PostWorkspacesCurrentModelProvidersByProviderCredentialsValidateResponses[keyof PostWorkspacesCurrentModelProvidersByProviderCredentialsValidateResponses]

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsData = {
  body: ParserDeleteModels
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models'
}

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsResponse
  = DeleteWorkspacesCurrentModelProvidersByProviderModelsResponses[keyof DeleteWorkspacesCurrentModelProvidersByProviderModelsResponses]

export type GetWorkspacesCurrentModelProvidersByProviderModelsData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models'
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsResponse
  = GetWorkspacesCurrentModelProvidersByProviderModelsResponses[keyof GetWorkspacesCurrentModelProvidersByProviderModelsResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsData = {
  body: ParserPostModels
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models'
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsResponses]

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsCredentialsData = {
  body: ParserDeleteCredential
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/credentials'
}

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponse
  = DeleteWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses[keyof DeleteWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses]

export type GetWorkspacesCurrentModelProvidersByProviderModelsCredentialsData = {
  body?: never
  path: {
    provider: string
  }
  query: {
    config_from?: string | null
    credential_id?: string | null
    model: string
    model_type: string
  }
  url: '/workspaces/current/model-providers/{provider}/models/credentials'
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponse
  = GetWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses[keyof GetWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsData = {
  body: ParserCreateCredential
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/credentials'
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses]

export type PutWorkspacesCurrentModelProvidersByProviderModelsCredentialsData = {
  body: ParserUpdateCredential
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/credentials'
}

export type PutWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PutWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponse
  = PutWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses[keyof PutWorkspacesCurrentModelProvidersByProviderModelsCredentialsResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsSwitchData = {
  body: ParserSwitch
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/credentials/switch'
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsSwitchResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsSwitchResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsSwitchResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsSwitchResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsValidateData = {
  body: ParserValidate
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/credentials/validate'
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsValidateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsValidateResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsValidateResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsCredentialsValidateResponses]

export type PatchWorkspacesCurrentModelProvidersByProviderModelsDisableData = {
  body: ParserDeleteModels
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/disable'
}

export type PatchWorkspacesCurrentModelProvidersByProviderModelsDisableResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PatchWorkspacesCurrentModelProvidersByProviderModelsDisableResponse
  = PatchWorkspacesCurrentModelProvidersByProviderModelsDisableResponses[keyof PatchWorkspacesCurrentModelProvidersByProviderModelsDisableResponses]

export type PatchWorkspacesCurrentModelProvidersByProviderModelsEnableData = {
  body: ParserDeleteModels
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/models/enable'
}

export type PatchWorkspacesCurrentModelProvidersByProviderModelsEnableResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PatchWorkspacesCurrentModelProvidersByProviderModelsEnableResponse
  = PatchWorkspacesCurrentModelProvidersByProviderModelsEnableResponses[keyof PatchWorkspacesCurrentModelProvidersByProviderModelsEnableResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsCredentialsValidateData
  = {
    body: LoadBalancingCredentialPayload
    path: {
      provider: string
    }
    query?: never
    url: '/workspaces/current/model-providers/{provider}/models/load-balancing-configs/credentials-validate'
  }

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsCredentialsValidateResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsCredentialsValidateResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsCredentialsValidateResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsCredentialsValidateResponses]

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidateData
  = {
    body: LoadBalancingCredentialPayload
    path: {
      provider: string
      config_id: string
    }
    query?: never
    url: '/workspaces/current/model-providers/{provider}/models/load-balancing-configs/{config_id}/credentials-validate'
  }

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidateResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidateResponse
  = PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidateResponses[keyof PostWorkspacesCurrentModelProvidersByProviderModelsLoadBalancingConfigsByConfigIdCredentialsValidateResponses]

export type GetWorkspacesCurrentModelProvidersByProviderModelsParameterRulesData = {
  body?: never
  path: {
    provider: string
  }
  query: {
    model: string
  }
  url: '/workspaces/current/model-providers/{provider}/models/parameter-rules'
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsParameterRulesResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelProvidersByProviderModelsParameterRulesResponse
  = GetWorkspacesCurrentModelProvidersByProviderModelsParameterRulesResponses[keyof GetWorkspacesCurrentModelProvidersByProviderModelsParameterRulesResponses]

export type PostWorkspacesCurrentModelProvidersByProviderPreferredProviderTypeData = {
  body: ParserPreferredProviderType
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/model-providers/{provider}/preferred-provider-type'
}

export type PostWorkspacesCurrentModelProvidersByProviderPreferredProviderTypeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentModelProvidersByProviderPreferredProviderTypeResponse
  = PostWorkspacesCurrentModelProvidersByProviderPreferredProviderTypeResponses[keyof PostWorkspacesCurrentModelProvidersByProviderPreferredProviderTypeResponses]

export type GetWorkspacesCurrentModelsModelTypesByModelTypeData = {
  body?: never
  path: {
    model_type: string
  }
  query?: never
  url: '/workspaces/current/models/model-types/{model_type}'
}

export type GetWorkspacesCurrentModelsModelTypesByModelTypeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentModelsModelTypesByModelTypeResponse
  = GetWorkspacesCurrentModelsModelTypesByModelTypeResponses[keyof GetWorkspacesCurrentModelsModelTypesByModelTypeResponses]

export type GetWorkspacesCurrentPermissionData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/permission'
}

export type GetWorkspacesCurrentPermissionResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPermissionResponse
  = GetWorkspacesCurrentPermissionResponses[keyof GetWorkspacesCurrentPermissionResponses]

export type GetWorkspacesCurrentPluginAssetData = {
  body?: never
  path?: never
  query: {
    file_name: string
    plugin_unique_identifier: string
  }
  url: '/workspaces/current/plugin/asset'
}

export type GetWorkspacesCurrentPluginAssetResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginAssetResponse
  = GetWorkspacesCurrentPluginAssetResponses[keyof GetWorkspacesCurrentPluginAssetResponses]

export type GetWorkspacesCurrentPluginDebuggingKeyData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/debugging-key'
}

export type GetWorkspacesCurrentPluginDebuggingKeyResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginDebuggingKeyResponse
  = GetWorkspacesCurrentPluginDebuggingKeyResponses[keyof GetWorkspacesCurrentPluginDebuggingKeyResponses]

export type GetWorkspacesCurrentPluginFetchManifestData = {
  body?: never
  path?: never
  query: {
    plugin_unique_identifier: string
  }
  url: '/workspaces/current/plugin/fetch-manifest'
}

export type GetWorkspacesCurrentPluginFetchManifestResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginFetchManifestResponse
  = GetWorkspacesCurrentPluginFetchManifestResponses[keyof GetWorkspacesCurrentPluginFetchManifestResponses]

export type GetWorkspacesCurrentPluginIconData = {
  body?: never
  path?: never
  query: {
    filename: string
    tenant_id: string
  }
  url: '/workspaces/current/plugin/icon'
}

export type GetWorkspacesCurrentPluginIconResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginIconResponse
  = GetWorkspacesCurrentPluginIconResponses[keyof GetWorkspacesCurrentPluginIconResponses]

export type PostWorkspacesCurrentPluginInstallGithubData = {
  body: ParserGithubInstall
  path?: never
  query?: never
  url: '/workspaces/current/plugin/install/github'
}

export type PostWorkspacesCurrentPluginInstallGithubResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginInstallGithubResponse
  = PostWorkspacesCurrentPluginInstallGithubResponses[keyof PostWorkspacesCurrentPluginInstallGithubResponses]

export type PostWorkspacesCurrentPluginInstallMarketplaceData = {
  body: ParserPluginIdentifiers
  path?: never
  query?: never
  url: '/workspaces/current/plugin/install/marketplace'
}

export type PostWorkspacesCurrentPluginInstallMarketplaceResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginInstallMarketplaceResponse
  = PostWorkspacesCurrentPluginInstallMarketplaceResponses[keyof PostWorkspacesCurrentPluginInstallMarketplaceResponses]

export type PostWorkspacesCurrentPluginInstallPkgData = {
  body: ParserPluginIdentifiers
  path?: never
  query?: never
  url: '/workspaces/current/plugin/install/pkg'
}

export type PostWorkspacesCurrentPluginInstallPkgResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginInstallPkgResponse
  = PostWorkspacesCurrentPluginInstallPkgResponses[keyof PostWorkspacesCurrentPluginInstallPkgResponses]

export type GetWorkspacesCurrentPluginListData = {
  body?: never
  path?: never
  query?: {
    page?: number
    page_size?: number
  }
  url: '/workspaces/current/plugin/list'
}

export type GetWorkspacesCurrentPluginListResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginListResponse
  = GetWorkspacesCurrentPluginListResponses[keyof GetWorkspacesCurrentPluginListResponses]

export type PostWorkspacesCurrentPluginListInstallationsIdsData = {
  body: ParserLatest
  path?: never
  query?: never
  url: '/workspaces/current/plugin/list/installations/ids'
}

export type PostWorkspacesCurrentPluginListInstallationsIdsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginListInstallationsIdsResponse
  = PostWorkspacesCurrentPluginListInstallationsIdsResponses[keyof PostWorkspacesCurrentPluginListInstallationsIdsResponses]

export type PostWorkspacesCurrentPluginListLatestVersionsData = {
  body: ParserLatest
  path?: never
  query?: never
  url: '/workspaces/current/plugin/list/latest-versions'
}

export type PostWorkspacesCurrentPluginListLatestVersionsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginListLatestVersionsResponse
  = PostWorkspacesCurrentPluginListLatestVersionsResponses[keyof PostWorkspacesCurrentPluginListLatestVersionsResponses]

export type GetWorkspacesCurrentPluginMarketplacePkgData = {
  body?: never
  path?: never
  query: {
    plugin_unique_identifier: string
  }
  url: '/workspaces/current/plugin/marketplace/pkg'
}

export type GetWorkspacesCurrentPluginMarketplacePkgResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginMarketplacePkgResponse
  = GetWorkspacesCurrentPluginMarketplacePkgResponses[keyof GetWorkspacesCurrentPluginMarketplacePkgResponses]

export type GetWorkspacesCurrentPluginParametersDynamicOptionsData = {
  body?: never
  path?: never
  query: {
    action: string
    credential_id?: string | null
    parameter: string
    plugin_id: string
    provider: string
    provider_type: 'tool' | 'trigger'
  }
  url: '/workspaces/current/plugin/parameters/dynamic-options'
}

export type GetWorkspacesCurrentPluginParametersDynamicOptionsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginParametersDynamicOptionsResponse
  = GetWorkspacesCurrentPluginParametersDynamicOptionsResponses[keyof GetWorkspacesCurrentPluginParametersDynamicOptionsResponses]

export type PostWorkspacesCurrentPluginParametersDynamicOptionsWithCredentialsData = {
  body: ParserDynamicOptionsWithCredentials
  path?: never
  query?: never
  url: '/workspaces/current/plugin/parameters/dynamic-options-with-credentials'
}

export type PostWorkspacesCurrentPluginParametersDynamicOptionsWithCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginParametersDynamicOptionsWithCredentialsResponse
  = PostWorkspacesCurrentPluginParametersDynamicOptionsWithCredentialsResponses[keyof PostWorkspacesCurrentPluginParametersDynamicOptionsWithCredentialsResponses]

export type PostWorkspacesCurrentPluginPermissionChangeData = {
  body: ParserPermissionChange
  path?: never
  query?: never
  url: '/workspaces/current/plugin/permission/change'
}

export type PostWorkspacesCurrentPluginPermissionChangeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginPermissionChangeResponse
  = PostWorkspacesCurrentPluginPermissionChangeResponses[keyof PostWorkspacesCurrentPluginPermissionChangeResponses]

export type GetWorkspacesCurrentPluginPermissionFetchData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/permission/fetch'
}

export type GetWorkspacesCurrentPluginPermissionFetchResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginPermissionFetchResponse
  = GetWorkspacesCurrentPluginPermissionFetchResponses[keyof GetWorkspacesCurrentPluginPermissionFetchResponses]

export type PostWorkspacesCurrentPluginPreferencesAutoupgradeExcludeData = {
  body: ParserExcludePlugin
  path?: never
  query?: never
  url: '/workspaces/current/plugin/preferences/autoupgrade/exclude'
}

export type PostWorkspacesCurrentPluginPreferencesAutoupgradeExcludeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginPreferencesAutoupgradeExcludeResponse
  = PostWorkspacesCurrentPluginPreferencesAutoupgradeExcludeResponses[keyof PostWorkspacesCurrentPluginPreferencesAutoupgradeExcludeResponses]

export type PostWorkspacesCurrentPluginPreferencesChangeData = {
  body: ParserPreferencesChange
  path?: never
  query?: never
  url: '/workspaces/current/plugin/preferences/change'
}

export type PostWorkspacesCurrentPluginPreferencesChangeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginPreferencesChangeResponse
  = PostWorkspacesCurrentPluginPreferencesChangeResponses[keyof PostWorkspacesCurrentPluginPreferencesChangeResponses]

export type GetWorkspacesCurrentPluginPreferencesFetchData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/preferences/fetch'
}

export type GetWorkspacesCurrentPluginPreferencesFetchResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginPreferencesFetchResponse
  = GetWorkspacesCurrentPluginPreferencesFetchResponses[keyof GetWorkspacesCurrentPluginPreferencesFetchResponses]

export type GetWorkspacesCurrentPluginReadmeData = {
  body?: never
  path?: never
  query: {
    language?: string
    plugin_unique_identifier: string
  }
  url: '/workspaces/current/plugin/readme'
}

export type GetWorkspacesCurrentPluginReadmeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginReadmeResponse
  = GetWorkspacesCurrentPluginReadmeResponses[keyof GetWorkspacesCurrentPluginReadmeResponses]

export type GetWorkspacesCurrentPluginTasksData = {
  body?: never
  path?: never
  query?: {
    page?: number
    page_size?: number
  }
  url: '/workspaces/current/plugin/tasks'
}

export type GetWorkspacesCurrentPluginTasksResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginTasksResponse
  = GetWorkspacesCurrentPluginTasksResponses[keyof GetWorkspacesCurrentPluginTasksResponses]

export type PostWorkspacesCurrentPluginTasksDeleteAllData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/tasks/delete_all'
}

export type PostWorkspacesCurrentPluginTasksDeleteAllResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginTasksDeleteAllResponse
  = PostWorkspacesCurrentPluginTasksDeleteAllResponses[keyof PostWorkspacesCurrentPluginTasksDeleteAllResponses]

export type GetWorkspacesCurrentPluginTasksByTaskIdData = {
  body?: never
  path: {
    task_id: string
  }
  query?: never
  url: '/workspaces/current/plugin/tasks/{task_id}'
}

export type GetWorkspacesCurrentPluginTasksByTaskIdResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentPluginTasksByTaskIdResponse
  = GetWorkspacesCurrentPluginTasksByTaskIdResponses[keyof GetWorkspacesCurrentPluginTasksByTaskIdResponses]

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteData = {
  body?: never
  path: {
    task_id: string
  }
  query?: never
  url: '/workspaces/current/plugin/tasks/{task_id}/delete'
}

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteResponse
  = PostWorkspacesCurrentPluginTasksByTaskIdDeleteResponses[keyof PostWorkspacesCurrentPluginTasksByTaskIdDeleteResponses]

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierData = {
  body?: never
  path: {
    task_id: string
    identifier: string
  }
  query?: never
  url: '/workspaces/current/plugin/tasks/{task_id}/delete/{identifier}'
}

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierResponse
  = PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierResponses[keyof PostWorkspacesCurrentPluginTasksByTaskIdDeleteByIdentifierResponses]

export type PostWorkspacesCurrentPluginUninstallData = {
  body: ParserUninstall
  path?: never
  query?: never
  url: '/workspaces/current/plugin/uninstall'
}

export type PostWorkspacesCurrentPluginUninstallResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUninstallResponse
  = PostWorkspacesCurrentPluginUninstallResponses[keyof PostWorkspacesCurrentPluginUninstallResponses]

export type PostWorkspacesCurrentPluginUpgradeGithubData = {
  body: ParserGithubUpgrade
  path?: never
  query?: never
  url: '/workspaces/current/plugin/upgrade/github'
}

export type PostWorkspacesCurrentPluginUpgradeGithubResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUpgradeGithubResponse
  = PostWorkspacesCurrentPluginUpgradeGithubResponses[keyof PostWorkspacesCurrentPluginUpgradeGithubResponses]

export type PostWorkspacesCurrentPluginUpgradeMarketplaceData = {
  body: ParserMarketplaceUpgrade
  path?: never
  query?: never
  url: '/workspaces/current/plugin/upgrade/marketplace'
}

export type PostWorkspacesCurrentPluginUpgradeMarketplaceResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUpgradeMarketplaceResponse
  = PostWorkspacesCurrentPluginUpgradeMarketplaceResponses[keyof PostWorkspacesCurrentPluginUpgradeMarketplaceResponses]

export type PostWorkspacesCurrentPluginUploadBundleData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/upload/bundle'
}

export type PostWorkspacesCurrentPluginUploadBundleResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUploadBundleResponse
  = PostWorkspacesCurrentPluginUploadBundleResponses[keyof PostWorkspacesCurrentPluginUploadBundleResponses]

export type PostWorkspacesCurrentPluginUploadGithubData = {
  body: ParserGithubUpload
  path?: never
  query?: never
  url: '/workspaces/current/plugin/upload/github'
}

export type PostWorkspacesCurrentPluginUploadGithubResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUploadGithubResponse
  = PostWorkspacesCurrentPluginUploadGithubResponses[keyof PostWorkspacesCurrentPluginUploadGithubResponses]

export type PostWorkspacesCurrentPluginUploadPkgData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/plugin/upload/pkg'
}

export type PostWorkspacesCurrentPluginUploadPkgResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentPluginUploadPkgResponse
  = PostWorkspacesCurrentPluginUploadPkgResponses[keyof PostWorkspacesCurrentPluginUploadPkgResponses]

export type GetWorkspacesCurrentToolLabelsData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-labels'
}

export type GetWorkspacesCurrentToolLabelsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolLabelsResponse
  = GetWorkspacesCurrentToolLabelsResponses[keyof GetWorkspacesCurrentToolLabelsResponses]

export type PostWorkspacesCurrentToolProviderApiAddData = {
  body: ApiToolProviderAddPayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/add'
}

export type PostWorkspacesCurrentToolProviderApiAddResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderApiAddResponse
  = PostWorkspacesCurrentToolProviderApiAddResponses[keyof PostWorkspacesCurrentToolProviderApiAddResponses]

export type PostWorkspacesCurrentToolProviderApiDeleteData = {
  body: ApiToolProviderDeletePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/delete'
}

export type PostWorkspacesCurrentToolProviderApiDeleteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderApiDeleteResponse
  = PostWorkspacesCurrentToolProviderApiDeleteResponses[keyof PostWorkspacesCurrentToolProviderApiDeleteResponses]

export type GetWorkspacesCurrentToolProviderApiGetData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/get'
}

export type GetWorkspacesCurrentToolProviderApiGetResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderApiGetResponse
  = GetWorkspacesCurrentToolProviderApiGetResponses[keyof GetWorkspacesCurrentToolProviderApiGetResponses]

export type GetWorkspacesCurrentToolProviderApiRemoteData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/remote'
}

export type GetWorkspacesCurrentToolProviderApiRemoteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderApiRemoteResponse
  = GetWorkspacesCurrentToolProviderApiRemoteResponses[keyof GetWorkspacesCurrentToolProviderApiRemoteResponses]

export type PostWorkspacesCurrentToolProviderApiSchemaData = {
  body: ApiToolSchemaPayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/schema'
}

export type PostWorkspacesCurrentToolProviderApiSchemaResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderApiSchemaResponse
  = PostWorkspacesCurrentToolProviderApiSchemaResponses[keyof PostWorkspacesCurrentToolProviderApiSchemaResponses]

export type PostWorkspacesCurrentToolProviderApiTestPreData = {
  body: ApiToolTestPayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/test/pre'
}

export type PostWorkspacesCurrentToolProviderApiTestPreResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderApiTestPreResponse
  = PostWorkspacesCurrentToolProviderApiTestPreResponses[keyof PostWorkspacesCurrentToolProviderApiTestPreResponses]

export type GetWorkspacesCurrentToolProviderApiToolsData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/tools'
}

export type GetWorkspacesCurrentToolProviderApiToolsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderApiToolsResponse
  = GetWorkspacesCurrentToolProviderApiToolsResponses[keyof GetWorkspacesCurrentToolProviderApiToolsResponses]

export type PostWorkspacesCurrentToolProviderApiUpdateData = {
  body: ApiToolProviderUpdatePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/api/update'
}

export type PostWorkspacesCurrentToolProviderApiUpdateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderApiUpdateResponse
  = PostWorkspacesCurrentToolProviderApiUpdateResponses[keyof PostWorkspacesCurrentToolProviderApiUpdateResponses]

export type PostWorkspacesCurrentToolProviderBuiltinByProviderAddData = {
  body: BuiltinToolAddPayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/add'
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderAddResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderAddResponse
  = PostWorkspacesCurrentToolProviderBuiltinByProviderAddResponses[keyof PostWorkspacesCurrentToolProviderBuiltinByProviderAddResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/credential/info'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialInfoResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypeData
  = {
    body?: never
    path: {
      provider: string
      credential_type: string
    }
    query?: never
    url: '/workspaces/current/tool-provider/builtin/{provider}/credential/schema/{credential_type}'
  }

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypeResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypeResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypeResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialSchemaByCredentialTypeResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialsData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/credentials'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialsResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialsResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderCredentialsResponses]

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDefaultCredentialData = {
  body: BuiltinProviderDefaultCredentialPayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/default-credential'
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDefaultCredentialResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDefaultCredentialResponse
  = PostWorkspacesCurrentToolProviderBuiltinByProviderDefaultCredentialResponses[keyof PostWorkspacesCurrentToolProviderBuiltinByProviderDefaultCredentialResponses]

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDeleteData = {
  body: BuiltinToolCredentialDeletePayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/delete'
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDeleteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderDeleteResponse
  = PostWorkspacesCurrentToolProviderBuiltinByProviderDeleteResponses[keyof PostWorkspacesCurrentToolProviderBuiltinByProviderDeleteResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderIconData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/icon'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderIconResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderIconResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderIconResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderIconResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderInfoData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/info'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderInfoResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderInfoResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderInfoResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderInfoResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthClientSchemaData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/oauth/client-schema'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthClientSchemaResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthClientSchemaResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderOauthClientSchemaResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderOauthClientSchemaResponses]

export type DeleteWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/oauth/custom-client'
}

export type DeleteWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponse
  = DeleteWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses[keyof DeleteWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/oauth/custom-client'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses]

export type PostWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientData = {
  body: ToolOAuthCustomClientPayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/oauth/custom-client'
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponse
  = PostWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses[keyof PostWorkspacesCurrentToolProviderBuiltinByProviderOauthCustomClientResponses]

export type GetWorkspacesCurrentToolProviderBuiltinByProviderToolsData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/tools'
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderToolsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderBuiltinByProviderToolsResponse
  = GetWorkspacesCurrentToolProviderBuiltinByProviderToolsResponses[keyof GetWorkspacesCurrentToolProviderBuiltinByProviderToolsResponses]

export type PostWorkspacesCurrentToolProviderBuiltinByProviderUpdateData = {
  body: BuiltinToolUpdatePayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/builtin/{provider}/update'
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderUpdateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderBuiltinByProviderUpdateResponse
  = PostWorkspacesCurrentToolProviderBuiltinByProviderUpdateResponses[keyof PostWorkspacesCurrentToolProviderBuiltinByProviderUpdateResponses]

export type DeleteWorkspacesCurrentToolProviderMcpData = {
  body: McpProviderDeletePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/mcp'
}

export type DeleteWorkspacesCurrentToolProviderMcpResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentToolProviderMcpResponse
  = DeleteWorkspacesCurrentToolProviderMcpResponses[keyof DeleteWorkspacesCurrentToolProviderMcpResponses]

export type PostWorkspacesCurrentToolProviderMcpData = {
  body: McpProviderCreatePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/mcp'
}

export type PostWorkspacesCurrentToolProviderMcpResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderMcpResponse
  = PostWorkspacesCurrentToolProviderMcpResponses[keyof PostWorkspacesCurrentToolProviderMcpResponses]

export type PutWorkspacesCurrentToolProviderMcpData = {
  body: McpProviderUpdatePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/mcp'
}

export type PutWorkspacesCurrentToolProviderMcpResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PutWorkspacesCurrentToolProviderMcpResponse
  = PutWorkspacesCurrentToolProviderMcpResponses[keyof PutWorkspacesCurrentToolProviderMcpResponses]

export type PostWorkspacesCurrentToolProviderMcpAuthData = {
  body: McpAuthPayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/mcp/auth'
}

export type PostWorkspacesCurrentToolProviderMcpAuthResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderMcpAuthResponse
  = PostWorkspacesCurrentToolProviderMcpAuthResponses[keyof PostWorkspacesCurrentToolProviderMcpAuthResponses]

export type GetWorkspacesCurrentToolProviderMcpToolsByProviderIdData = {
  body?: never
  path: {
    provider_id: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/mcp/tools/{provider_id}'
}

export type GetWorkspacesCurrentToolProviderMcpToolsByProviderIdResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderMcpToolsByProviderIdResponse
  = GetWorkspacesCurrentToolProviderMcpToolsByProviderIdResponses[keyof GetWorkspacesCurrentToolProviderMcpToolsByProviderIdResponses]

export type GetWorkspacesCurrentToolProviderMcpUpdateByProviderIdData = {
  body?: never
  path: {
    provider_id: string
  }
  query?: never
  url: '/workspaces/current/tool-provider/mcp/update/{provider_id}'
}

export type GetWorkspacesCurrentToolProviderMcpUpdateByProviderIdResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderMcpUpdateByProviderIdResponse
  = GetWorkspacesCurrentToolProviderMcpUpdateByProviderIdResponses[keyof GetWorkspacesCurrentToolProviderMcpUpdateByProviderIdResponses]

export type PostWorkspacesCurrentToolProviderWorkflowCreateData = {
  body: WorkflowToolCreatePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/workflow/create'
}

export type PostWorkspacesCurrentToolProviderWorkflowCreateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderWorkflowCreateResponse
  = PostWorkspacesCurrentToolProviderWorkflowCreateResponses[keyof PostWorkspacesCurrentToolProviderWorkflowCreateResponses]

export type PostWorkspacesCurrentToolProviderWorkflowDeleteData = {
  body: WorkflowToolDeletePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/workflow/delete'
}

export type PostWorkspacesCurrentToolProviderWorkflowDeleteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderWorkflowDeleteResponse
  = PostWorkspacesCurrentToolProviderWorkflowDeleteResponses[keyof PostWorkspacesCurrentToolProviderWorkflowDeleteResponses]

export type GetWorkspacesCurrentToolProviderWorkflowGetData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/workflow/get'
}

export type GetWorkspacesCurrentToolProviderWorkflowGetResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderWorkflowGetResponse
  = GetWorkspacesCurrentToolProviderWorkflowGetResponses[keyof GetWorkspacesCurrentToolProviderWorkflowGetResponses]

export type GetWorkspacesCurrentToolProviderWorkflowToolsData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/workflow/tools'
}

export type GetWorkspacesCurrentToolProviderWorkflowToolsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProviderWorkflowToolsResponse
  = GetWorkspacesCurrentToolProviderWorkflowToolsResponses[keyof GetWorkspacesCurrentToolProviderWorkflowToolsResponses]

export type PostWorkspacesCurrentToolProviderWorkflowUpdateData = {
  body: WorkflowToolUpdatePayload
  path?: never
  query?: never
  url: '/workspaces/current/tool-provider/workflow/update'
}

export type PostWorkspacesCurrentToolProviderWorkflowUpdateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentToolProviderWorkflowUpdateResponse
  = PostWorkspacesCurrentToolProviderWorkflowUpdateResponses[keyof PostWorkspacesCurrentToolProviderWorkflowUpdateResponses]

export type GetWorkspacesCurrentToolProvidersData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tool-providers'
}

export type GetWorkspacesCurrentToolProvidersResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolProvidersResponse
  = GetWorkspacesCurrentToolProvidersResponses[keyof GetWorkspacesCurrentToolProvidersResponses]

export type GetWorkspacesCurrentToolsApiData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tools/api'
}

export type GetWorkspacesCurrentToolsApiResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolsApiResponse
  = GetWorkspacesCurrentToolsApiResponses[keyof GetWorkspacesCurrentToolsApiResponses]

export type GetWorkspacesCurrentToolsBuiltinData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tools/builtin'
}

export type GetWorkspacesCurrentToolsBuiltinResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolsBuiltinResponse
  = GetWorkspacesCurrentToolsBuiltinResponses[keyof GetWorkspacesCurrentToolsBuiltinResponses]

export type GetWorkspacesCurrentToolsMcpData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tools/mcp'
}

export type GetWorkspacesCurrentToolsMcpResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolsMcpResponse
  = GetWorkspacesCurrentToolsMcpResponses[keyof GetWorkspacesCurrentToolsMcpResponses]

export type GetWorkspacesCurrentToolsWorkflowData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/tools/workflow'
}

export type GetWorkspacesCurrentToolsWorkflowResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentToolsWorkflowResponse
  = GetWorkspacesCurrentToolsWorkflowResponses[keyof GetWorkspacesCurrentToolsWorkflowResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderIconData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/icon'
}

export type GetWorkspacesCurrentTriggerProviderByProviderIconResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggerProviderByProviderIconResponse
  = GetWorkspacesCurrentTriggerProviderByProviderIconResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderIconResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderInfoData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/info'
}

export type GetWorkspacesCurrentTriggerProviderByProviderInfoResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggerProviderByProviderInfoResponse
  = GetWorkspacesCurrentTriggerProviderByProviderInfoResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderInfoResponses]

export type DeleteWorkspacesCurrentTriggerProviderByProviderOauthClientData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/oauth/client'
}

export type DeleteWorkspacesCurrentTriggerProviderByProviderOauthClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type DeleteWorkspacesCurrentTriggerProviderByProviderOauthClientResponse
  = DeleteWorkspacesCurrentTriggerProviderByProviderOauthClientResponses[keyof DeleteWorkspacesCurrentTriggerProviderByProviderOauthClientResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderOauthClientData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/oauth/client'
}

export type GetWorkspacesCurrentTriggerProviderByProviderOauthClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggerProviderByProviderOauthClientResponse
  = GetWorkspacesCurrentTriggerProviderByProviderOauthClientResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderOauthClientResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderOauthClientData = {
  body: TriggerOAuthClientPayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/oauth/client'
}

export type PostWorkspacesCurrentTriggerProviderByProviderOauthClientResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentTriggerProviderByProviderOauthClientResponse
  = PostWorkspacesCurrentTriggerProviderByProviderOauthClientResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderOauthClientResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBuildBySubscriptionBuilderIdData
  = {
    body: TriggerSubscriptionBuilderUpdatePayload
    path: {
      provider: string
      subscription_builder_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/build/{subscription_builder_id}'
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBuildBySubscriptionBuilderIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBuildBySubscriptionBuilderIdResponse
  = PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBuildBySubscriptionBuilderIdResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBuildBySubscriptionBuilderIdResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderCreateData = {
  body: TriggerSubscriptionBuilderCreatePayload
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/create'
}

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderCreateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderCreateResponse
  = PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderCreateResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderCreateResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderLogsBySubscriptionBuilderIdData
  = {
    body?: never
    path: {
      provider: string
      subscription_builder_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/logs/{subscription_builder_id}'
  }

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderLogsBySubscriptionBuilderIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderLogsBySubscriptionBuilderIdResponse
  = GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderLogsBySubscriptionBuilderIdResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderLogsBySubscriptionBuilderIdResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderUpdateBySubscriptionBuilderIdData
  = {
    body: TriggerSubscriptionBuilderUpdatePayload
    path: {
      provider: string
      subscription_builder_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/update/{subscription_builder_id}'
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderUpdateBySubscriptionBuilderIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderUpdateBySubscriptionBuilderIdResponse
  = PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderUpdateBySubscriptionBuilderIdResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderUpdateBySubscriptionBuilderIdResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderVerifyAndUpdateBySubscriptionBuilderIdData
  = {
    body: TriggerSubscriptionBuilderVerifyPayload
    path: {
      provider: string
      subscription_builder_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/verify-and-update/{subscription_builder_id}'
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderVerifyAndUpdateBySubscriptionBuilderIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderVerifyAndUpdateBySubscriptionBuilderIdResponse
  = PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderVerifyAndUpdateBySubscriptionBuilderIdResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderVerifyAndUpdateBySubscriptionBuilderIdResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBySubscriptionBuilderIdData
  = {
    body?: never
    path: {
      provider: string
      subscription_builder_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/builder/{subscription_builder_id}'
  }

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBySubscriptionBuilderIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBySubscriptionBuilderIdResponse
  = GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBySubscriptionBuilderIdResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsBuilderBySubscriptionBuilderIdResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsListData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/subscriptions/list'
}

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsListResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsListResponse
  = GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsListResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsListResponses]

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsOauthAuthorizeData = {
  body?: never
  path: {
    provider: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{provider}/subscriptions/oauth/authorize'
}

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsOauthAuthorizeResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsOauthAuthorizeResponse
  = GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsOauthAuthorizeResponses[keyof GetWorkspacesCurrentTriggerProviderByProviderSubscriptionsOauthAuthorizeResponses]

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsVerifyBySubscriptionIdData
  = {
    body: TriggerSubscriptionBuilderVerifyPayload
    path: {
      provider: string
      subscription_id: string
    }
    query?: never
    url: '/workspaces/current/trigger-provider/{provider}/subscriptions/verify/{subscription_id}'
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsVerifyBySubscriptionIdResponses
  = {
    200: {
      [key: string]: unknown
    }
  }

export type PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsVerifyBySubscriptionIdResponse
  = PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsVerifyBySubscriptionIdResponses[keyof PostWorkspacesCurrentTriggerProviderByProviderSubscriptionsVerifyBySubscriptionIdResponses]

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsDeleteData = {
  body?: never
  path: {
    subscription_id: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{subscription_id}/subscriptions/delete'
}

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsDeleteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsDeleteResponse
  = PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsDeleteResponses[keyof PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsDeleteResponses]

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsUpdateData = {
  body: TriggerSubscriptionBuilderUpdatePayload
  path: {
    subscription_id: string
  }
  query?: never
  url: '/workspaces/current/trigger-provider/{subscription_id}/subscriptions/update'
}

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsUpdateResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsUpdateResponse
  = PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsUpdateResponses[keyof PostWorkspacesCurrentTriggerProviderBySubscriptionIdSubscriptionsUpdateResponses]

export type GetWorkspacesCurrentTriggersData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/current/triggers'
}

export type GetWorkspacesCurrentTriggersResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesCurrentTriggersResponse
  = GetWorkspacesCurrentTriggersResponses[keyof GetWorkspacesCurrentTriggersResponses]

export type PostWorkspacesCustomConfigData = {
  body: WorkspaceCustomConfigPayload
  path?: never
  query?: never
  url: '/workspaces/custom-config'
}

export type PostWorkspacesCustomConfigResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCustomConfigResponse
  = PostWorkspacesCustomConfigResponses[keyof PostWorkspacesCustomConfigResponses]

export type PostWorkspacesCustomConfigWebappLogoUploadData = {
  body?: never
  path?: never
  query?: never
  url: '/workspaces/custom-config/webapp-logo/upload'
}

export type PostWorkspacesCustomConfigWebappLogoUploadResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesCustomConfigWebappLogoUploadResponse
  = PostWorkspacesCustomConfigWebappLogoUploadResponses[keyof PostWorkspacesCustomConfigWebappLogoUploadResponses]

export type PostWorkspacesInfoData = {
  body: WorkspaceInfoPayload
  path?: never
  query?: never
  url: '/workspaces/info'
}

export type PostWorkspacesInfoResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesInfoResponse
  = PostWorkspacesInfoResponses[keyof PostWorkspacesInfoResponses]

export type PostWorkspacesSwitchData = {
  body: SwitchWorkspacePayload
  path?: never
  query?: never
  url: '/workspaces/switch'
}

export type PostWorkspacesSwitchResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostWorkspacesSwitchResponse
  = PostWorkspacesSwitchResponses[keyof PostWorkspacesSwitchResponses]

export type GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangData = {
  body?: never
  path: {
    tenant_id: string
    provider: string
    icon_type: string
    lang: string
  }
  query?: never
  url: '/workspaces/{tenant_id}/model-providers/{provider}/{icon_type}/{lang}'
}

export type GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangResponse
  = GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangResponses[keyof GetWorkspacesByTenantIdModelProvidersByProviderByIconTypeByLangResponses]
