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

export type BackupChunkUploadRequest = {
    upload_id: string;
    chunk_index: number;
    chunk: (Blob | File);
};

export type BackupExportRequest = {
    include?: Array<(string)>;
    exclude?: Array<(string)>;
};

export type BackupImportRequest = {
    confirmed?: boolean;
};

export type BackupRenameRequest = {
    new_name: string;
};

export type BackupUploadInitRequest = {
    filename: string;
    total_size: number;
};

export type BackupUploadRequest = {
    file: (Blob | File);
};

export type BackupUploadSessionRequest = {
    upload_id: string;
};

export type BatchSessionProviderRequest = UmoListRequest & {
    provider_id: string;
    provider_type: 'chat_completion' | 'speech_to_text' | 'text_to_speech';
};

export type provider_type = 'chat_completion' | 'speech_to_text' | 'text_to_speech';

export type BatchSessionServiceRequest = UmoListRequest & {
    session_enabled?: boolean;
    llm_enabled?: boolean;
    tts_enabled?: boolean;
};

export type BotConfigRequest = {
    id?: string;
    name?: string;
    /**
     * Platform adapter type, such as aiocqhttp, telegram, lark.
     */
    type: string;
    enabled?: boolean;
    config: DynamicConfig;
};

export type BotRegistrationRequest = {
    action: 'start' | 'poll';
    platform_config?: DynamicConfig;
    registration_code?: string;
    device_code?: string;
    qrcode?: string;
    [key: string]: unknown | string | DynamicConfig;
};

export type action = 'start' | 'poll';

export type ChatMessagePatchRequest = {
    content: {
        [key: string]: unknown;
    };
};

export type ChatMessageRegenerateRequest = {
    selected_provider?: string;
    selected_model?: string;
    enable_streaming?: boolean;
};

export type ChatProjectRequest = {
    title?: string;
    emoji?: string;
    description?: string;
};

export type ChatRequest = {
    username?: string;
    session_id?: string;
    /**
     * Deprecated alias for session_id.
     */
    conversation_id?: string;
    message: (string | Array<MessagePart>);
    config_id?: string;
    config_name?: string;
    selected_provider?: string;
    selected_model?: string;
    enable_streaming?: boolean;
    /**
     * Internal WebUI flag for edit/regenerate flows.
     */
    _skip_user_history?: boolean;
    /**
     * Internal WebUI checkpoint override.
     */
    _llm_checkpoint_id?: string;
    /**
     * Internal WebUI platform history override.
     */
    _platform_history_id?: string;
    /**
     * Internal WebUI side-thread context.
     */
    _thread_selected_text?: string;
};

export type ChatSessionBatchDeleteRequest = {
    session_ids: Array<(string)>;
};

export type ChatSessionPatchRequest = {
    display_name?: string;
};

export type ChatThreadCreateRequest = {
    session_id: string;
    parent_message_id: (string | number);
    selected_text: string;
};

export type ChatThreadMessageRequest = {
    message: (string | Array<MessagePart>);
    selected_provider?: string;
    selected_model?: string;
    enable_streaming?: boolean;
};

export type CommandPatchRequest = {
    enabled?: boolean;
    alias?: string;
    aliases?: Array<(string)>;
    permission_group?: string;
};

export type ConfigRoutesReplaceRequest = {
    routing: {
        [key: string]: (string);
    };
};

export type ConfigRouteUpsertRequest = {
    /**
     * Use "default" to remove a custom route and fall back.
     */
    config_id: string;
};

export type ConversationBatchDeleteRequest = {
    conversations: Array<ConversationRef>;
};

export type ConversationExportRequest = {
    conversations?: Array<ConversationRef>;
    conversation_ids?: Array<(string)>;
    format?: 'json' | 'markdown';
};

export type format = 'json' | 'markdown';

export type ConversationMessagesReplaceRequest = {
    user_id?: string;
    messages?: Array<{
        [key: string]: unknown;
    }>;
    history?: Array<{
        [key: string]: unknown;
    }>;
};

export type ConversationPatchRequest = {
    title?: string;
    persona_id?: string;
};

export type ConversationRef = {
    user_id: string;
    cid: string;
};

export type CreateApiKeyRequest = {
    name: string;
    scopes?: Array<('bot' | 'provider' | 'persona' | 'im' | 'config' | 'chat' | 'file' | 'plugin' | 'mcp' | 'skill')>;
    expires_at?: string;
    expires_in_days?: number;
};

export type CreateConfigProfileRequest = {
    name?: string;
    config?: DynamicConfig;
};

export type CronJobPatchRequest = CronJobRequest;

export type CronJobRequest = {
    name?: string;
    cron_expression?: string;
    timezone?: string;
    session?: string;
    note?: string;
    description?: string;
    persona_id?: string;
    provider_id?: string;
    enabled?: boolean;
    run_once?: boolean;
    run_at?: string;
    payload?: {
        [key: string]: unknown;
    };
    [key: string]: unknown | string | boolean;
};

export type DynamicConfig = {
    [key: string]: unknown;
};

export type EnabledPatch = {
    enabled: boolean;
};

export type ErrorEnvelope = {
    status: "error";
    message: string;
    data?: unknown;
};

export type FileUploadRequest = {
    file: (Blob | File);
};

export type GhproxyTestRequest = {
    proxy_url: string;
};

export type ImMessageRequest = {
    umo: string;
    message: (string | Array<MessagePart>);
};

export type JsonSchema = {
    [key: string]: unknown;
};

export type KnowledgeBaseRequest = {
    name: string;
    description?: string;
    embedding_provider_id?: string;
    rerank_provider_id?: string;
    chunking?: DynamicConfig;
    metadata?: DynamicConfig;
};

export type KnowledgeDocumentImportRequest = {
    paths: Array<(string)>;
    parser?: string;
};

export type KnowledgeDocumentUploadRequest = {
    file: (Blob | File);
    parser?: string;
};

export type KnowledgeDocumentUrlImportRequest = {
    url: string;
    parser?: string;
};

export type KnowledgeRetrieveRequest = {
    query: string;
    top_k?: number;
    score_threshold?: number;
};

export type LoginRequest = {
    username: string;
    password: string;
    /**
     * TOTP code or recovery code when two-factor authentication is required.
     */
    code?: string;
    trust_device_flag?: boolean;
};

export type McpServerConfig = {
    name: string;
    enabled?: boolean;
    transport?: 'stdio' | 'sse' | 'streamable_http';
    command?: string;
    args?: Array<(string)>;
    url?: string;
    headers?: {
        [key: string]: (string);
    };
    timeout?: number;
    [key: string]: unknown | string | boolean | number;
};

export type transport = 'stdio' | 'sse' | 'streamable_http';

export type MessagePart = {
    type: 'text' | 'plain' | 'image' | 'file' | 'audio' | 'record' | 'video' | 'reply';
    text?: string;
    attachment_id?: string;
    url?: string;
    filename?: string;
    mime_type?: string;
    [key: string]: unknown | string;
};

export type type = 'text' | 'plain' | 'image' | 'file' | 'audio' | 'record' | 'video' | 'reply';

export type ModelScopeSyncRequest = {
    access_token?: string;
};

export type NameRequest = {
    name: string;
};

export type NeoCandidateActionRequest = {
    candidate_id: string;
    [key: string]: unknown | string;
};

export type NeoReleaseActionRequest = {
    release_id: string;
    [key: string]: unknown | string;
};

export type ParameterAttachmentId = string;

export type ParameterAttachmentIdQuery = string;

export type ParameterBotId = string;

export type ParameterChunkId = string;

/**
 * URL-encoded command handler full name.
 */
export type ParameterCommandId = string;

export type ParameterConfigId = string;

export type ParameterConversationId = string;

export type ParameterDocumentId = string;

export type ParameterFilename = string;

/**
 * URL-encoded relative file path.
 */
export type ParameterFilePath = string;

export type ParameterFolderId = string;

export type ParameterGroupId = string;

export type ParameterKbId = string;

export type ParameterKeyId = string;

export type ParameterName = string;

export type ParameterPage = number;

export type ParameterPageSize = number;

export type ParameterPersonaId = string;

export type ParameterPluginId = string;

export type ParameterProviderId = string;

export type ParameterServerName = string;

export type ParameterSessionId = string;

export type ParameterSkillName = string;

export type ParameterSourceId = string;

export type ParameterTaskId = string;

export type ParameterToolId = string;

/**
 * URL-encoded unified message origin.
 */
export type ParameterUmo = string;

export type ParameterWebhookUuid = string;

export type PersonaFolderRequest = {
    name?: string;
    parent_id?: string;
    description?: string;
    [key: string]: unknown | string;
};

export type PersonaMoveRequest = {
    persona_id: string;
    folder_id?: string;
    [key: string]: unknown | string;
};

export type PersonaRequest = {
    persona_id: string;
    system_prompt: string;
    begin_dialogs?: Array<(string)>;
    folder_id?: string;
    tools?: Array<(string)>;
    skills?: Array<(string)>;
    custom_error_message?: string;
    [key: string]: unknown | string;
};

export type PipInstallRequest = {
    package: string;
    mirror?: string;
};

export type PluginBatchUpdateRequest = {
    /**
     * When set, update this single plugin instead of a batch.
     */
    plugin_id?: string;
    plugin_ids?: Array<(string)>;
    reinstall?: boolean;
    update_all?: boolean;
    [key: string]: unknown | string | boolean;
};

export type PluginConfigFileDeleteRequest = {
    path: string;
};

export type PluginGithubInstallRequest = {
    /**
     * GitHub URL or owner/repository slug.
     */
    repository: string;
    ref?: string;
    /**
     * Optional downloadable ZIP URL to use instead of GitHub archive resolution.
     */
    download_url?: string;
    proxy?: string;
    ignore_version_check?: boolean;
};

export type PluginSourceRequest = {
    id?: string;
    name?: string;
    url: string;
};

export type PluginUpdateRequest = {
    reinstall?: boolean;
};

export type PluginUploadInstallRequest = {
    file: (Blob | File);
};

export type PluginUrlInstallRequest = {
    url: string;
    /**
     * Optional downloadable ZIP URL when url is the plugin source page or repository.
     */
    download_url?: string;
    proxy?: string;
    ignore_version_check?: boolean;
};

export type PluginVersionSupportRequest = {
    astrbot_version?: string;
};

export type ProviderCapability = 'chat' | 'agent' | 'stt' | 'tts' | 'embedding' | 'rerank';

export type ProviderConfigRequest = {
    id?: string;
    provider_source_id?: string;
    capability?: ProviderCapability;
    enabled?: boolean;
    config: DynamicConfig;
};

export type ProviderSourceConfigRequest = {
    id?: string;
    config: DynamicConfig;
};

export type RenameRequest = {
    name: string;
};

export type ReorderRequest = {
    items: Array<{
        id: string;
        type: 'persona' | 'folder';
        sort_order: number;
    }>;
};

export type SessionGroupRequest = {
    name?: string;
    umos?: Array<(string)>;
    add_umos?: Array<(string)>;
    remove_umos?: Array<(string)>;
};

export type SessionRuleRequest = {
    umo: string;
    rule_key: string;
    rule_value?: DynamicConfig;
    [key: string]: unknown | string | DynamicConfig;
};

export type SetupAuthRequest = {
    username: string;
    password: string;
    confirm_password: string;
};

export type SkillPatchRequest = {
    enabled?: boolean;
    display_name?: string;
    description?: string;
};

export type SkillUploadRequest = {
    file: (Blob | File);
    overwrite?: boolean;
};

export type SuccessEnvelope = {
    status: "ok";
    message?: string;
    data: unknown;
};

export type T2iTemplateContentRequest = {
    content: string;
    [key: string]: unknown | string;
};

export type T2iTemplateRequest = {
    name: string;
    content: string;
    [key: string]: unknown | string;
};

export type ToolPermissionPatch = {
    permission: 'admin' | 'member';
};

export type permission = 'admin' | 'member';

export type TotpSetupRequest = {
    code?: string;
    secret?: string;
};

export type TraceSettingsRequest = {
    enabled?: boolean;
    level?: string;
    [key: string]: unknown | boolean | string;
};

export type UmoListRequest = {
    umo?: string;
    umos?: Array<(string)>;
    scope?: 'all' | 'group' | 'private' | 'custom_group';
    group_id?: string;
    rule_key?: string;
};

export type scope = 'all' | 'group' | 'private' | 'custom_group';

export type UpdateAccountRequest = {
    password: string;
    new_password?: string;
    confirm_password?: string;
    new_username?: string;
};

export type UpdateRequest = {
    version?: string;
    proxy?: string;
    reboot?: boolean;
    progress_id?: string;
};

export type LoginData = {
    body: LoginRequest;
};

export type LoginResponse = (SuccessEnvelope);

export type LoginError = (ErrorEnvelope);

export type LogoutResponse = (SuccessEnvelope);

export type LogoutError = unknown;

export type GetAuthSetupStatusResponse = (SuccessEnvelope);

export type GetAuthSetupStatusError = unknown;

export type SetupAuthData = {
    body: SetupAuthRequest;
};

export type SetupAuthResponse = (SuccessEnvelope);

export type SetupAuthError = unknown;

export type SetupTotpData = {
    body?: TotpSetupRequest;
};

export type SetupTotpResponse = (SuccessEnvelope);

export type SetupTotpError = unknown;

export type RecoverTotpResponse = (SuccessEnvelope);

export type RecoverTotpError = unknown;

export type UpdateAuthAccountData = {
    body: UpdateAccountRequest;
};

export type UpdateAuthAccountResponse = (SuccessEnvelope);

export type UpdateAuthAccountError = unknown;

export type ListApiKeysResponse = (SuccessEnvelope);

export type ListApiKeysError = unknown;

export type CreateApiKeyData = {
    body: CreateApiKeyRequest;
};

export type CreateApiKeyResponse = (SuccessEnvelope);

export type CreateApiKeyError = unknown;

export type RevokeApiKeyData = {
    path: {
        key_id: string;
    };
};

export type RevokeApiKeyResponse = (SuccessEnvelope);

export type RevokeApiKeyError = unknown;

export type DeleteApiKeyData = {
    path: {
        key_id: string;
    };
};

export type DeleteApiKeyResponse = (SuccessEnvelope);

export type DeleteApiKeyError = unknown;

export type GetSystemConfigSchemaResponse = (SuccessEnvelope);

export type GetSystemConfigSchemaError = unknown;

export type GetSystemConfigResponse = (SuccessEnvelope);

export type GetSystemConfigError = unknown;

export type UpdateSystemConfigData = {
    body: DynamicConfig;
};

export type UpdateSystemConfigResponse = (SuccessEnvelope);

export type UpdateSystemConfigError = unknown;

export type GetSystemConfigRuntimeResponse = (SuccessEnvelope);

export type GetSystemConfigRuntimeError = unknown;

export type GetConfigProfileSchemaResponse = (SuccessEnvelope);

export type GetConfigProfileSchemaError = unknown;

export type ListConfigProfilesResponse = (SuccessEnvelope);

export type ListConfigProfilesError = unknown;

export type CreateConfigProfileData = {
    body: CreateConfigProfileRequest;
};

export type CreateConfigProfileResponse = (SuccessEnvelope);

export type CreateConfigProfileError = unknown;

export type GetConfigProfileData = {
    path: {
        config_id: string;
    };
};

export type GetConfigProfileResponse = (SuccessEnvelope);

export type GetConfigProfileError = unknown;

export type UpdateConfigProfileContentData = {
    body: DynamicConfig;
    path: {
        config_id: string;
    };
};

export type UpdateConfigProfileContentResponse = (SuccessEnvelope);

export type UpdateConfigProfileContentError = unknown;

export type RenameConfigProfileData = {
    body: RenameRequest;
    path: {
        config_id: string;
    };
};

export type RenameConfigProfileResponse = (SuccessEnvelope);

export type RenameConfigProfileError = unknown;

export type DeleteConfigProfileData = {
    path: {
        config_id: string;
    };
};

export type DeleteConfigProfileResponse = (SuccessEnvelope);

export type DeleteConfigProfileError = unknown;

export type ListConfigRoutesResponse = (SuccessEnvelope);

export type ListConfigRoutesError = unknown;

export type ReplaceConfigRoutesData = {
    body: ConfigRoutesReplaceRequest;
};

export type ReplaceConfigRoutesResponse = (SuccessEnvelope);

export type ReplaceConfigRoutesError = unknown;

export type UpsertConfigRouteData = {
    body: ConfigRouteUpsertRequest;
    path: {
        /**
         * URL-encoded unified message origin.
         */
        umo: string;
    };
};

export type UpsertConfigRouteResponse = (SuccessEnvelope);

export type UpsertConfigRouteError = unknown;

export type DeleteConfigRouteData = {
    path: {
        /**
         * URL-encoded unified message origin.
         */
        umo: string;
    };
};

export type DeleteConfigRouteResponse = (SuccessEnvelope);

export type DeleteConfigRouteError = unknown;

export type ListBotTypesResponse = (SuccessEnvelope);

export type ListBotTypesError = unknown;

export type RegisterBotTypeData = {
    body: BotRegistrationRequest;
    path: {
        bot_type: string;
    };
};

export type RegisterBotTypeResponse = (SuccessEnvelope);

export type RegisterBotTypeError = unknown;

export type ListBotsData = {
    query?: {
        enabled?: boolean;
        type?: string;
    };
};

export type ListBotsResponse = (SuccessEnvelope);

export type ListBotsError = unknown;

export type CreateBotData = {
    body: BotConfigRequest;
};

export type CreateBotResponse = (SuccessEnvelope);

export type CreateBotError = unknown;

export type ListBotStatsResponse = (SuccessEnvelope);

export type ListBotStatsError = unknown;

export type GetBotByIdData = {
    query: {
        bot_id: string;
    };
};

export type GetBotByIdResponse = (SuccessEnvelope);

export type GetBotByIdError = unknown;

export type UpdateBotByIdData = {
    body: {
        bot_id: string;
        config: DynamicConfig;
    };
};

export type UpdateBotByIdResponse = (SuccessEnvelope);

export type UpdateBotByIdError = unknown;

export type DeleteBotByIdData = {
    query: {
        bot_id: string;
    };
};

export type DeleteBotByIdResponse = (SuccessEnvelope);

export type DeleteBotByIdError = unknown;

export type SetBotEnabledByIdData = {
    body: {
        bot_id: string;
        enabled: boolean;
    };
};

export type SetBotEnabledByIdResponse = (SuccessEnvelope);

export type SetBotEnabledByIdError = unknown;

export type TestBotByIdData = {
    body: {
        bot_id: string;
    };
};

export type TestBotByIdResponse = (SuccessEnvelope);

export type TestBotByIdError = unknown;

export type GetBotData = {
    path: {
        bot_id: string;
    };
};

export type GetBotResponse = (SuccessEnvelope);

export type GetBotError = unknown;

export type UpdateBotData = {
    body: BotConfigRequest;
    path: {
        bot_id: string;
    };
};

export type UpdateBotResponse = (SuccessEnvelope);

export type UpdateBotError = unknown;

export type DeleteBotData = {
    path: {
        bot_id: string;
    };
};

export type DeleteBotResponse = (SuccessEnvelope);

export type DeleteBotError = unknown;

export type SetBotEnabledData = {
    body: EnabledPatch;
    path: {
        bot_id: string;
    };
};

export type SetBotEnabledResponse = (SuccessEnvelope);

export type SetBotEnabledError = unknown;

export type TestBotData = {
    path: {
        bot_id: string;
    };
};

export type TestBotResponse = (SuccessEnvelope);

export type TestBotError = unknown;

export type GetProviderSchemaResponse = (SuccessEnvelope);

export type GetProviderSchemaError = unknown;

export type ListProviderSourcesResponse = (SuccessEnvelope);

export type ListProviderSourcesError = unknown;

export type CreateProviderSourceData = {
    body: ProviderSourceConfigRequest;
};

export type CreateProviderSourceResponse = (SuccessEnvelope);

export type CreateProviderSourceError = unknown;

export type GetProviderSourceByIdData = {
    query: {
        source_id: string;
    };
};

export type GetProviderSourceByIdResponse = (SuccessEnvelope);

export type GetProviderSourceByIdError = unknown;

export type UpsertProviderSourceByIdData = {
    body: {
        source_id: string;
        config: DynamicConfig;
    };
};

export type UpsertProviderSourceByIdResponse = (SuccessEnvelope);

export type UpsertProviderSourceByIdError = unknown;

export type DeleteProviderSourceByIdData = {
    query: {
        source_id: string;
    };
};

export type DeleteProviderSourceByIdResponse = (SuccessEnvelope);

export type DeleteProviderSourceByIdError = unknown;

export type ListProviderSourceModelsByIdData = {
    query: {
        capability?: ProviderCapability;
        source_id: string;
    };
};

export type ListProviderSourceModelsByIdResponse = (SuccessEnvelope);

export type ListProviderSourceModelsByIdError = unknown;

export type ListProvidersBySourceIdData = {
    query: {
        capability?: ProviderCapability;
        source_id: string;
    };
};

export type ListProvidersBySourceIdResponse = (SuccessEnvelope);

export type ListProvidersBySourceIdError = unknown;

export type CreateProviderInSourceByIdData = {
    body: {
        source_id: string;
        config: DynamicConfig;
    };
};

export type CreateProviderInSourceByIdResponse = (SuccessEnvelope);

export type CreateProviderInSourceByIdError = unknown;

export type GetProviderSourceData = {
    path: {
        source_id: string;
    };
};

export type GetProviderSourceResponse = (SuccessEnvelope);

export type GetProviderSourceError = unknown;

export type UpsertProviderSourceData = {
    body: ProviderSourceConfigRequest;
    path: {
        source_id: string;
    };
};

export type UpsertProviderSourceResponse = (SuccessEnvelope);

export type UpsertProviderSourceError = unknown;

export type DeleteProviderSourceData = {
    path: {
        source_id: string;
    };
};

export type DeleteProviderSourceResponse = (SuccessEnvelope);

export type DeleteProviderSourceError = unknown;

export type ListProviderSourceModelsData = {
    path: {
        source_id: string;
    };
    query?: {
        capability?: ProviderCapability;
    };
};

export type ListProviderSourceModelsResponse = (SuccessEnvelope);

export type ListProviderSourceModelsError = unknown;

export type ListProvidersBySourceData = {
    path: {
        source_id: string;
    };
    query?: {
        capability?: ProviderCapability;
    };
};

export type ListProvidersBySourceResponse = (SuccessEnvelope);

export type ListProvidersBySourceError = unknown;

export type CreateProviderInSourceData = {
    body: ProviderConfigRequest;
    path: {
        source_id: string;
    };
};

export type CreateProviderInSourceResponse = (SuccessEnvelope);

export type CreateProviderInSourceError = unknown;

export type ListProvidersData = {
    query?: {
        capability?: ProviderCapability;
        enabled?: boolean;
        source_id?: string;
    };
};

export type ListProvidersResponse = (SuccessEnvelope);

export type ListProvidersError = unknown;

export type CreateProviderData = {
    body: ProviderConfigRequest;
};

export type CreateProviderResponse = (SuccessEnvelope);

export type CreateProviderError = unknown;

export type GetProviderByIdData = {
    query: {
        merged?: boolean;
        provider_id: string;
    };
};

export type GetProviderByIdResponse = (SuccessEnvelope);

export type GetProviderByIdError = unknown;

export type UpdateProviderByIdData = {
    body: {
        provider_id: string;
        config: DynamicConfig;
    };
};

export type UpdateProviderByIdResponse = (SuccessEnvelope);

export type UpdateProviderByIdError = unknown;

export type DeleteProviderByIdData = {
    query: {
        provider_id: string;
    };
};

export type DeleteProviderByIdResponse = (SuccessEnvelope);

export type DeleteProviderByIdError = unknown;

export type SetProviderEnabledByIdData = {
    body: {
        provider_id: string;
        enabled: boolean;
    };
};

export type SetProviderEnabledByIdResponse = (SuccessEnvelope);

export type SetProviderEnabledByIdError = unknown;

export type TestProviderByIdData = {
    body: {
        provider_id: string;
    };
};

export type TestProviderByIdResponse = (SuccessEnvelope);

export type TestProviderByIdError = unknown;

export type GetProviderEmbeddingDimensionByIdData = {
    body: {
        provider_id: string;
        provider_config?: DynamicConfig;
    };
};

export type GetProviderEmbeddingDimensionByIdResponse = (SuccessEnvelope);

export type GetProviderEmbeddingDimensionByIdError = unknown;

export type GetProviderData = {
    path: {
        provider_id: string;
    };
    query?: {
        merged?: boolean;
    };
};

export type GetProviderResponse = (SuccessEnvelope);

export type GetProviderError = unknown;

export type UpdateProviderData = {
    body: ProviderConfigRequest;
    path: {
        provider_id: string;
    };
};

export type UpdateProviderResponse = (SuccessEnvelope);

export type UpdateProviderError = unknown;

export type DeleteProviderData = {
    body?: DynamicConfig;
    path: {
        provider_id: string;
    };
};

export type DeleteProviderResponse = (SuccessEnvelope);

export type DeleteProviderError = unknown;

export type SetProviderEnabledData = {
    body: EnabledPatch;
    path: {
        provider_id: string;
    };
};

export type SetProviderEnabledResponse = (SuccessEnvelope);

export type SetProviderEnabledError = unknown;

export type TestProviderData = {
    path: {
        provider_id: string;
    };
};

export type TestProviderResponse = (SuccessEnvelope);

export type TestProviderError = unknown;

export type GetProviderEmbeddingDimensionData = {
    body?: DynamicConfig;
    path: {
        provider_id: string;
    };
};

export type GetProviderEmbeddingDimensionResponse = (SuccessEnvelope);

export type GetProviderEmbeddingDimensionError = unknown;

export type SendChatMessageData = {
    body: ChatRequest;
};

export type SendChatMessageResponse = (SuccessEnvelope);

export type SendChatMessageError = unknown;

export type OpenChatWebSocketData = {
    query?: {
        api_key?: string;
        key?: string;
    };
};

export type OpenLiveChatWebSocketData = {
    query: {
        token: string;
    };
};

export type OpenUnifiedChatWebSocketData = {
    query: {
        token: string;
    };
};

export type ListChatSessionsData = {
    query?: {
        page?: number;
        page_size?: number;
        username?: string;
    };
};

export type ListChatSessionsResponse = (SuccessEnvelope);

export type ListChatSessionsError = unknown;

export type CreateChatSessionData = {
    query?: {
        platform_id?: string;
    };
};

export type CreateChatSessionResponse = (SuccessEnvelope);

export type CreateChatSessionError = unknown;

export type BatchDeleteChatSessionsData = {
    body: ChatSessionBatchDeleteRequest;
};

export type BatchDeleteChatSessionsResponse = (SuccessEnvelope);

export type BatchDeleteChatSessionsError = unknown;

export type GetChatSessionData = {
    path: {
        session_id: string;
    };
};

export type GetChatSessionResponse = (SuccessEnvelope);

export type GetChatSessionError = unknown;

export type UpdateChatSessionData = {
    body: ChatSessionPatchRequest;
    path: {
        session_id: string;
    };
};

export type UpdateChatSessionResponse = (SuccessEnvelope);

export type UpdateChatSessionError = unknown;

export type DeleteChatSessionData = {
    path: {
        session_id: string;
    };
};

export type DeleteChatSessionResponse = (SuccessEnvelope);

export type DeleteChatSessionError = unknown;

export type StopChatSessionData = {
    path: {
        session_id: string;
    };
};

export type StopChatSessionResponse = (SuccessEnvelope);

export type StopChatSessionError = unknown;

export type UpdateChatMessageData = {
    body: ChatMessagePatchRequest;
    path: {
        message_id: string;
        session_id: string;
    };
};

export type UpdateChatMessageResponse = (SuccessEnvelope);

export type UpdateChatMessageError = unknown;

export type RegenerateChatMessageData = {
    body?: ChatMessageRegenerateRequest;
    path: {
        message_id: string;
        session_id: string;
    };
};

export type RegenerateChatMessageResponse = (unknown);

export type RegenerateChatMessageError = unknown;

export type ListChatConfigsResponse = (SuccessEnvelope);

export type ListChatConfigsError = unknown;

export type CreateChatThreadData = {
    body: ChatThreadCreateRequest;
};

export type CreateChatThreadResponse = (SuccessEnvelope);

export type CreateChatThreadError = unknown;

export type GetChatThreadData = {
    path: {
        thread_id: string;
    };
};

export type GetChatThreadResponse = (SuccessEnvelope);

export type GetChatThreadError = unknown;

export type DeleteChatThreadData = {
    path: {
        thread_id: string;
    };
};

export type DeleteChatThreadResponse = (SuccessEnvelope);

export type DeleteChatThreadError = unknown;

export type SendChatThreadMessageData = {
    body: ChatThreadMessageRequest;
    path: {
        thread_id: string;
    };
};

export type SendChatThreadMessageResponse = (unknown);

export type SendChatThreadMessageError = unknown;

export type ListChatProjectsResponse = (SuccessEnvelope);

export type ListChatProjectsError = unknown;

export type CreateChatProjectData = {
    body: ChatProjectRequest;
};

export type CreateChatProjectResponse = (SuccessEnvelope);

export type CreateChatProjectError = unknown;

export type GetChatProjectData = {
    path: {
        project_id: string;
    };
};

export type GetChatProjectResponse = (SuccessEnvelope);

export type GetChatProjectError = unknown;

export type UpdateChatProjectData = {
    body: ChatProjectRequest;
    path: {
        project_id: string;
    };
};

export type UpdateChatProjectResponse = (SuccessEnvelope);

export type UpdateChatProjectError = unknown;

export type DeleteChatProjectData = {
    path: {
        project_id: string;
    };
};

export type DeleteChatProjectResponse = (SuccessEnvelope);

export type DeleteChatProjectError = unknown;

export type ListChatProjectSessionsData = {
    path: {
        project_id: string;
    };
};

export type ListChatProjectSessionsResponse = (SuccessEnvelope);

export type ListChatProjectSessionsError = unknown;

export type AddChatProjectSessionData = {
    path: {
        project_id: string;
        session_id: string;
    };
};

export type AddChatProjectSessionResponse = (SuccessEnvelope);

export type AddChatProjectSessionError = unknown;

export type RemoveChatProjectSessionData = {
    path: {
        session_id: string;
    };
};

export type RemoveChatProjectSessionResponse = (SuccessEnvelope);

export type RemoveChatProjectSessionError = unknown;

export type SendImMessageData = {
    body: ImMessageRequest;
};

export type SendImMessageResponse = (SuccessEnvelope);

export type SendImMessageError = unknown;

export type ListImBotsResponse = (SuccessEnvelope);

export type ListImBotsError = unknown;

export type UploadFileData = {
    body: FileUploadRequest;
};

export type UploadFileResponse = (SuccessEnvelope);

export type UploadFileError = unknown;

export type UploadOpenApiFileData = {
    body: FileUploadRequest;
};

export type UploadOpenApiFileResponse = (SuccessEnvelope);

export type UploadOpenApiFileError = unknown;

export type DownloadOpenApiFileData = {
    query: {
        attachment_id: string;
    };
};

export type DownloadOpenApiFileResponse = ((Blob | File));

export type DownloadOpenApiFileError = unknown;

export type GetFileByNameData = {
    query: {
        filename: string;
    };
};

export type GetFileByNameResponse = ((Blob | File));

export type GetFileByNameError = unknown;

export type GetTokenFileData = {
    path: {
        file_token: string;
    };
};

export type GetTokenFileResponse = ((Blob | File));

export type GetTokenFileError = unknown;

export type GetAttachmentData = {
    path: {
        attachment_id: string;
    };
};

export type GetAttachmentResponse = (SuccessEnvelope);

export type GetAttachmentError = unknown;

export type DeleteAttachmentData = {
    path: {
        attachment_id: string;
    };
};

export type DeleteAttachmentResponse = (SuccessEnvelope);

export type DeleteAttachmentError = unknown;

export type DownloadAttachmentData = {
    path: {
        attachment_id: string;
    };
};

export type DownloadAttachmentResponse = ((Blob | File));

export type DownloadAttachmentError = unknown;

export type ListPluginsData = {
    query?: {
        enabled?: boolean;
        include_reserved?: boolean;
    };
};

export type ListPluginsResponse = (SuccessEnvelope);

export type ListPluginsError = unknown;

export type GetPluginByIdData = {
    query: {
        plugin_id: string;
    };
};

export type GetPluginByIdResponse = (SuccessEnvelope);

export type GetPluginByIdError = unknown;

export type UninstallPluginByIdData = {
    body?: {
        delete_config?: boolean;
        delete_data?: boolean;
        [key: string]: unknown | boolean;
    };
    query: {
        plugin_id: string;
    };
};

export type UninstallPluginByIdResponse = (SuccessEnvelope);

export type UninstallPluginByIdError = unknown;

export type GetPluginConfigByIdData = {
    query: {
        plugin_id: string;
    };
};

export type GetPluginConfigByIdResponse = (SuccessEnvelope);

export type GetPluginConfigByIdError = unknown;

export type UpdatePluginConfigByIdData = {
    body: {
        plugin_id: string;
        config: DynamicConfig;
    };
};

export type UpdatePluginConfigByIdResponse = (SuccessEnvelope);

export type UpdatePluginConfigByIdError = unknown;

export type GetPluginConfigSchemaByIdData = {
    query: {
        plugin_id: string;
    };
};

export type GetPluginConfigSchemaByIdResponse = (SuccessEnvelope);

export type GetPluginConfigSchemaByIdError = unknown;

export type ListPluginConfigFilesByIdData = {
    query: {
        config_key: string;
        plugin_id: string;
    };
};

export type ListPluginConfigFilesByIdResponse = (SuccessEnvelope);

export type ListPluginConfigFilesByIdError = unknown;

export type UploadPluginConfigFilesByIdData = {
    body: {
        [key: string]: unknown;
    };
    query: {
        config_key: string;
        plugin_id: string;
    };
};

export type UploadPluginConfigFilesByIdResponse = (SuccessEnvelope);

export type UploadPluginConfigFilesByIdError = unknown;

export type DeletePluginConfigFileByIdData = {
    body: PluginConfigFileDeleteRequest;
    query: {
        plugin_id: string;
    };
};

export type DeletePluginConfigFileByIdResponse = (SuccessEnvelope);

export type DeletePluginConfigFileByIdError = unknown;

export type GetPluginReadmeByIdData = {
    query: {
        plugin_id: string;
    };
};

export type GetPluginReadmeByIdResponse = (string);

export type GetPluginReadmeByIdError = unknown;

export type GetPluginChangelogByIdData = {
    query: {
        plugin_id: string;
    };
};

export type GetPluginChangelogByIdResponse = (string);

export type GetPluginChangelogByIdError = unknown;

export type ReloadPluginByIdData = {
    body: {
        plugin_id: string;
    };
};

export type ReloadPluginByIdResponse = (SuccessEnvelope);

export type ReloadPluginByIdError = unknown;

export type SetPluginEnabledByIdData = {
    body: {
        plugin_id: string;
        enabled: boolean;
    };
};

export type SetPluginEnabledByIdResponse = (SuccessEnvelope);

export type SetPluginEnabledByIdError = unknown;

export type ListPluginPagesByIdData = {
    query: {
        plugin_id: string;
    };
};

export type ListPluginPagesByIdResponse = (SuccessEnvelope);

export type ListPluginPagesByIdError = unknown;

export type GetPluginPageByIdData = {
    query: {
        page_name: string;
        plugin_id: string;
    };
};

export type GetPluginPageByIdResponse = (string);

export type GetPluginPageByIdError = unknown;

export type GetPluginPageAssetByIdData = {
    query: {
        asset_path: string;
        page_name: string;
        plugin_id: string;
    };
};

export type GetPluginPageAssetByIdResponse = (unknown);

export type GetPluginPageAssetByIdError = unknown;

export type GetPluginData = {
    body?: {
        delete_config?: boolean;
        delete_data?: boolean;
        [key: string]: unknown | boolean;
    };
    path: {
        plugin_id: string;
    };
};

export type GetPluginResponse = (SuccessEnvelope);

export type GetPluginError = unknown;

export type UninstallPluginData = {
    body?: {
        delete_config?: boolean;
        delete_data?: boolean;
        [key: string]: unknown | boolean;
    };
    path: {
        plugin_id: string;
    };
};

export type UninstallPluginResponse = (SuccessEnvelope);

export type UninstallPluginError = unknown;

export type GetPluginConfigData = {
    path: {
        plugin_id: string;
    };
};

export type GetPluginConfigResponse = (SuccessEnvelope);

export type GetPluginConfigError = unknown;

export type UpdatePluginConfigData = {
    body: DynamicConfig;
    path: {
        plugin_id: string;
    };
};

export type UpdatePluginConfigResponse = (SuccessEnvelope);

export type UpdatePluginConfigError = unknown;

export type GetPluginConfigSchemaData = {
    path: {
        plugin_id: string;
    };
};

export type GetPluginConfigSchemaResponse = (SuccessEnvelope);

export type GetPluginConfigSchemaError = unknown;

export type ListPluginConfigFilesData = {
    path: {
        /**
         * URL-encoded configuration key path.
         */
        config_key: string;
        plugin_id: string;
    };
};

export type ListPluginConfigFilesResponse = (SuccessEnvelope);

export type ListPluginConfigFilesError = unknown;

export type UploadPluginConfigFilesData = {
    body: {
        [key: string]: unknown;
    };
    path: {
        /**
         * URL-encoded configuration key path.
         */
        config_key: string;
        plugin_id: string;
    };
};

export type UploadPluginConfigFilesResponse = (SuccessEnvelope);

export type UploadPluginConfigFilesError = unknown;

export type DeletePluginConfigFileData = {
    body: PluginConfigFileDeleteRequest;
    path: {
        plugin_id: string;
    };
};

export type DeletePluginConfigFileResponse = (SuccessEnvelope);

export type DeletePluginConfigFileError = unknown;

export type GetPluginReadmeData = {
    path: {
        plugin_id: string;
    };
};

export type GetPluginReadmeResponse = (string);

export type GetPluginReadmeError = unknown;

export type GetPluginChangelogData = {
    path: {
        plugin_id: string;
    };
};

export type GetPluginChangelogResponse = (string);

export type GetPluginChangelogError = unknown;

export type ReloadPluginData = {
    path: {
        plugin_id: string;
    };
};

export type ReloadPluginResponse = (SuccessEnvelope);

export type ReloadPluginError = unknown;

export type SetPluginEnabledData = {
    body: EnabledPatch;
    path: {
        plugin_id: string;
    };
};

export type SetPluginEnabledResponse = (SuccessEnvelope);

export type SetPluginEnabledError = unknown;

export type UpdatePluginData = {
    body?: PluginUpdateRequest;
    path: {
        plugin_id: string;
    };
};

export type UpdatePluginResponse = (SuccessEnvelope);

export type UpdatePluginError = unknown;

export type UpdatePluginsData = {
    body: PluginBatchUpdateRequest;
};

export type UpdatePluginsResponse = (SuccessEnvelope);

export type UpdatePluginsError = unknown;

export type CheckPluginVersionSupportData = {
    body: PluginVersionSupportRequest;
};

export type CheckPluginVersionSupportResponse = (SuccessEnvelope);

export type CheckPluginVersionSupportError = unknown;

export type ListFailedPluginsResponse = (SuccessEnvelope);

export type ListFailedPluginsError = unknown;

export type UninstallFailedPluginData = {
    body?: {
        delete_config?: boolean;
        delete_data?: boolean;
        [key: string]: unknown | boolean;
    };
    path: {
        plugin_id: string;
    };
};

export type UninstallFailedPluginResponse = (SuccessEnvelope);

export type UninstallFailedPluginError = unknown;

export type ReloadFailedPluginData = {
    path: {
        plugin_id: string;
    };
};

export type ReloadFailedPluginResponse = (SuccessEnvelope);

export type ReloadFailedPluginError = unknown;

export type InstallPluginFromGithubData = {
    body: PluginGithubInstallRequest;
};

export type InstallPluginFromGithubResponse = (SuccessEnvelope);

export type InstallPluginFromGithubError = unknown;

export type InstallPluginFromUrlData = {
    body: PluginUrlInstallRequest;
};

export type InstallPluginFromUrlResponse = (SuccessEnvelope);

export type InstallPluginFromUrlError = unknown;

export type InstallPluginFromUploadData = {
    body: PluginUploadInstallRequest;
};

export type InstallPluginFromUploadResponse = (SuccessEnvelope);

export type InstallPluginFromUploadError = unknown;

export type ListPluginMarketData = {
    query?: {
        category?: string;
        custom_registry?: string;
        force_refresh?: boolean;
        keyword?: string;
        page?: number;
        page_size?: number;
        sort?: 'recommended' | 'downloads' | 'updated' | 'name';
    };
};

export type ListPluginMarketResponse = (SuccessEnvelope);

export type ListPluginMarketError = unknown;

export type ListPluginMarketCategoriesResponse = (SuccessEnvelope);

export type ListPluginMarketCategoriesError = unknown;

export type ListPluginSourcesResponse = (SuccessEnvelope);

export type ListPluginSourcesError = unknown;

export type CreatePluginSourceData = {
    body: PluginSourceRequest;
};

export type CreatePluginSourceResponse = (SuccessEnvelope);

export type CreatePluginSourceError = unknown;

export type ReplacePluginSourcesData = {
    body: {
        sources: Array<PluginSourceRequest>;
    };
};

export type ReplacePluginSourcesResponse = (SuccessEnvelope);

export type ReplacePluginSourcesError = unknown;

export type DeletePluginSourceData = {
    path: {
        source_id: string;
    };
};

export type DeletePluginSourceResponse = (SuccessEnvelope);

export type DeletePluginSourceError = unknown;

export type DeletePluginSourceByIdData = {
    query: {
        source_id: string;
    };
};

export type DeletePluginSourceByIdResponse = (SuccessEnvelope);

export type DeletePluginSourceByIdError = unknown;

export type ListPluginPagesData = {
    path: {
        plugin_id: string;
    };
};

export type ListPluginPagesResponse = (SuccessEnvelope);

export type ListPluginPagesError = unknown;

export type GetPluginPageData = {
    path: {
        page_name: string;
        plugin_id: string;
    };
};

export type GetPluginPageResponse = (string);

export type GetPluginPageError = unknown;

export type GetPluginPageAssetData = {
    path: {
        /**
         * URL-encoded relative asset path.
         */
        asset_path: string;
        page_name: string;
        plugin_id: string;
    };
};

export type GetPluginPageAssetResponse = (unknown);

export type GetPluginPageAssetError = unknown;

export type GetPluginPageBridgeSdkResponse = (string);

export type GetPluginPageBridgeSdkError = unknown;

export type GetPluginExtensionRouteData = {
    path: {
        /**
         * Plugin extension path after /api/plug/. It may contain slash-separated segments.
         */
        plugin_path: string;
    };
};

export type GetPluginExtensionRouteResponse = (SuccessEnvelope);

export type GetPluginExtensionRouteError = unknown;

export type PostPluginExtensionRouteData = {
    body?: DynamicConfig;
    path: {
        /**
         * Plugin extension path after /api/plug/. It may contain slash-separated segments.
         */
        plugin_path: string;
    };
};

export type PostPluginExtensionRouteResponse = (SuccessEnvelope);

export type PostPluginExtensionRouteError = unknown;

export type PutPluginExtensionRouteData = {
    body?: DynamicConfig;
    path: {
        plugin_path: string;
    };
};

export type PutPluginExtensionRouteResponse = (SuccessEnvelope);

export type PutPluginExtensionRouteError = unknown;

export type PatchPluginExtensionRouteData = {
    body?: DynamicConfig;
    path: {
        plugin_path: string;
    };
};

export type PatchPluginExtensionRouteResponse = (SuccessEnvelope);

export type PatchPluginExtensionRouteError = unknown;

export type DeletePluginExtensionRouteData = {
    path: {
        plugin_path: string;
    };
};

export type DeletePluginExtensionRouteResponse = (SuccessEnvelope);

export type DeletePluginExtensionRouteError = unknown;

export type ListCommandsData = {
    query?: {
        config_id?: string;
    };
};

export type ListCommandsResponse = (SuccessEnvelope);

export type ListCommandsError = unknown;

export type UpdateCommandData = {
    body: CommandPatchRequest;
    path: {
        /**
         * URL-encoded command handler full name.
         */
        command_id: string;
    };
};

export type UpdateCommandResponse = (SuccessEnvelope);

export type UpdateCommandError = unknown;

export type ListCommandConflictsResponse = (SuccessEnvelope);

export type ListCommandConflictsError = unknown;

export type ListToolsData = {
    query?: {
        enabled?: boolean;
        origin?: 'builtin' | 'plugin' | 'mcp';
    };
};

export type ListToolsResponse = (SuccessEnvelope);

export type ListToolsError = unknown;

export type SetToolEnabledData = {
    body: EnabledPatch;
    path: {
        tool_id: string;
    };
};

export type SetToolEnabledResponse = (SuccessEnvelope);

export type SetToolEnabledError = unknown;

export type SetToolPermissionData = {
    body: ToolPermissionPatch;
    path: {
        tool_id: string;
    };
};

export type SetToolPermissionResponse = (SuccessEnvelope);

export type SetToolPermissionError = unknown;

export type ListMcpServersResponse = (SuccessEnvelope);

export type ListMcpServersError = unknown;

export type CreateMcpServerData = {
    body: McpServerConfig;
};

export type CreateMcpServerResponse = (SuccessEnvelope);

export type CreateMcpServerError = unknown;

export type UpdateMcpServerByNameData = {
    body: {
        server_name: string;
        config?: DynamicConfig;
        enabled?: boolean;
        [key: string]: unknown | string | DynamicConfig | boolean;
    };
};

export type UpdateMcpServerByNameResponse = (SuccessEnvelope);

export type UpdateMcpServerByNameError = unknown;

export type DeleteMcpServerByNameData = {
    query: {
        server_name: string;
    };
};

export type DeleteMcpServerByNameResponse = (SuccessEnvelope);

export type DeleteMcpServerByNameError = unknown;

export type SetMcpServerEnabledByNameData = {
    body: {
        server_name: string;
        enabled: boolean;
    };
};

export type SetMcpServerEnabledByNameResponse = (SuccessEnvelope);

export type SetMcpServerEnabledByNameError = unknown;

export type TestMcpServerByNameData = {
    body: {
        server_name: string;
        mcp_server_config?: DynamicConfig;
        config?: DynamicConfig;
        [key: string]: unknown | string | DynamicConfig;
    };
};

export type TestMcpServerByNameResponse = (SuccessEnvelope);

export type TestMcpServerByNameError = unknown;

export type UpdateMcpServerData = {
    body: McpServerConfig;
    path: {
        server_name: string;
    };
};

export type UpdateMcpServerResponse = (SuccessEnvelope);

export type UpdateMcpServerError = unknown;

export type DeleteMcpServerData = {
    path: {
        server_name: string;
    };
};

export type DeleteMcpServerResponse = (SuccessEnvelope);

export type DeleteMcpServerError = unknown;

export type SetMcpServerEnabledData = {
    body: EnabledPatch;
    path: {
        server_name: string;
    };
};

export type SetMcpServerEnabledResponse = (SuccessEnvelope);

export type SetMcpServerEnabledError = unknown;

export type TestMcpServerData = {
    body?: {
        mcp_server_config?: {
            [key: string]: unknown;
        };
        [key: string]: unknown;
    };
    path: {
        server_name: string;
    };
};

export type TestMcpServerResponse = (SuccessEnvelope);

export type TestMcpServerError = unknown;

export type SyncModelScopeMcpServersData = {
    body?: ModelScopeSyncRequest;
};

export type SyncModelScopeMcpServersResponse = (SuccessEnvelope);

export type SyncModelScopeMcpServersError = unknown;

export type ListSkillsData = {
    query?: {
        enabled?: boolean;
        source?: string;
    };
};

export type ListSkillsResponse = (SuccessEnvelope);

export type ListSkillsError = unknown;

export type UploadSkillData = {
    body: SkillUploadRequest;
};

export type UploadSkillResponse = (SuccessEnvelope);

export type UploadSkillError = unknown;

export type UploadSkillsBatchData = {
    body: {
        files: Array<((Blob | File))>;
    };
};

export type UploadSkillsBatchResponse = (SuccessEnvelope);

export type UploadSkillsBatchError = unknown;

export type UpdateSkillByNameData = {
    body: {
        skill_name: string;
        enabled?: boolean;
        active?: boolean;
        [key: string]: unknown | string | boolean;
    };
};

export type UpdateSkillByNameResponse = (SuccessEnvelope);

export type UpdateSkillByNameError = unknown;

export type DeleteSkillByNameData = {
    query: {
        skill_name: string;
    };
};

export type DeleteSkillByNameResponse = (SuccessEnvelope);

export type DeleteSkillByNameError = unknown;

export type DownloadSkillByNameData = {
    query: {
        skill_name: string;
    };
};

export type DownloadSkillByNameResponse = ((Blob | File));

export type DownloadSkillByNameError = unknown;

export type ListSkillFilesByNameData = {
    query: {
        path?: string;
        skill_name: string;
    };
};

export type ListSkillFilesByNameResponse = (SuccessEnvelope);

export type ListSkillFilesByNameError = unknown;

export type GetSkillFileByNameData = {
    query: {
        path: string;
        skill_name: string;
    };
};

export type GetSkillFileByNameResponse = (string);

export type GetSkillFileByNameError = unknown;

export type UpdateSkillFileByNameData = {
    body: {
        skill_name: string;
        path: string;
        content: string;
    };
};

export type UpdateSkillFileByNameResponse = (SuccessEnvelope);

export type UpdateSkillFileByNameError = unknown;

export type UpdateSkillData = {
    body: SkillPatchRequest;
    path: {
        skill_name: string;
    };
};

export type UpdateSkillResponse = (SuccessEnvelope);

export type UpdateSkillError = unknown;

export type DeleteSkillData = {
    path: {
        skill_name: string;
    };
};

export type DeleteSkillResponse = (SuccessEnvelope);

export type DeleteSkillError = unknown;

export type DownloadSkillData = {
    path: {
        skill_name: string;
    };
};

export type DownloadSkillResponse = ((Blob | File));

export type DownloadSkillError = unknown;

export type ListSkillFilesData = {
    path: {
        skill_name: string;
    };
    query?: {
        path?: string;
    };
};

export type ListSkillFilesResponse = (SuccessEnvelope);

export type ListSkillFilesError = unknown;

export type GetSkillFileData = {
    path: {
        /**
         * URL-encoded relative file path.
         */
        file_path: string;
        skill_name: string;
    };
};

export type GetSkillFileResponse = (string);

export type GetSkillFileError = unknown;

export type UpdateSkillFileData = {
    body: string;
    path: {
        /**
         * URL-encoded relative file path.
         */
        file_path: string;
        skill_name: string;
    };
};

export type UpdateSkillFileResponse = (SuccessEnvelope);

export type UpdateSkillFileError = unknown;

export type ListNeoSkillCandidatesData = {
    query?: {
        skill_key?: string;
        status?: string;
    };
};

export type ListNeoSkillCandidatesResponse = (SuccessEnvelope);

export type ListNeoSkillCandidatesError = unknown;

export type ListNeoSkillReleasesData = {
    query?: {
        skill_key?: string;
        stage?: string;
    };
};

export type ListNeoSkillReleasesResponse = (SuccessEnvelope);

export type ListNeoSkillReleasesError = unknown;

export type GetNeoSkillPayloadData = {
    query: {
        payload_ref: string;
    };
};

export type GetNeoSkillPayloadResponse = (SuccessEnvelope);

export type GetNeoSkillPayloadError = unknown;

export type EvaluateNeoSkillCandidateData = {
    body: NeoCandidateActionRequest;
};

export type EvaluateNeoSkillCandidateResponse = (SuccessEnvelope);

export type EvaluateNeoSkillCandidateError = unknown;

export type PromoteNeoSkillCandidateData = {
    body: NeoCandidateActionRequest;
};

export type PromoteNeoSkillCandidateResponse = (SuccessEnvelope);

export type PromoteNeoSkillCandidateError = unknown;

export type RollbackNeoSkillReleaseData = {
    body: NeoReleaseActionRequest;
};

export type RollbackNeoSkillReleaseResponse = (SuccessEnvelope);

export type RollbackNeoSkillReleaseError = unknown;

export type SyncNeoSkillReleaseData = {
    body: NeoReleaseActionRequest;
};

export type SyncNeoSkillReleaseResponse = (SuccessEnvelope);

export type SyncNeoSkillReleaseError = unknown;

export type DeleteNeoSkillCandidateData = {
    body: NeoCandidateActionRequest;
};

export type DeleteNeoSkillCandidateResponse = (SuccessEnvelope);

export type DeleteNeoSkillCandidateError = unknown;

export type DeleteNeoSkillReleaseData = {
    body: NeoReleaseActionRequest;
};

export type DeleteNeoSkillReleaseResponse = (SuccessEnvelope);

export type DeleteNeoSkillReleaseError = unknown;

export type ListKnowledgeBasesData = {
    query?: {
        page?: number;
        page_size?: number;
        refresh_stats?: boolean;
    };
};

export type ListKnowledgeBasesResponse = (SuccessEnvelope);

export type ListKnowledgeBasesError = unknown;

export type CreateKnowledgeBaseData = {
    body: KnowledgeBaseRequest;
};

export type CreateKnowledgeBaseResponse = (SuccessEnvelope);

export type CreateKnowledgeBaseError = unknown;

export type GetKnowledgeBaseData = {
    path: {
        kb_id: string;
    };
};

export type GetKnowledgeBaseResponse = (SuccessEnvelope);

export type GetKnowledgeBaseError = unknown;

export type UpdateKnowledgeBaseData = {
    body: KnowledgeBaseRequest;
    path: {
        kb_id: string;
    };
};

export type UpdateKnowledgeBaseResponse = (SuccessEnvelope);

export type UpdateKnowledgeBaseError = unknown;

export type DeleteKnowledgeBaseData = {
    path: {
        kb_id: string;
    };
};

export type DeleteKnowledgeBaseResponse = (SuccessEnvelope);

export type DeleteKnowledgeBaseError = unknown;

export type GetKnowledgeBaseStatsData = {
    path: {
        kb_id: string;
    };
};

export type GetKnowledgeBaseStatsResponse = (SuccessEnvelope);

export type GetKnowledgeBaseStatsError = unknown;

export type ListKnowledgeDocumentsData = {
    path: {
        kb_id: string;
    };
    query?: {
        page?: number;
        page_size?: number;
    };
};

export type ListKnowledgeDocumentsResponse = (SuccessEnvelope);

export type ListKnowledgeDocumentsError = unknown;

export type UploadKnowledgeDocumentData = {
    body: KnowledgeDocumentUploadRequest;
    path: {
        kb_id: string;
    };
};

export type UploadKnowledgeDocumentResponse = (SuccessEnvelope);

export type UploadKnowledgeDocumentError = unknown;

export type ImportKnowledgeDocumentsData = {
    body: KnowledgeDocumentImportRequest;
    path: {
        kb_id: string;
    };
};

export type ImportKnowledgeDocumentsResponse = (SuccessEnvelope);

export type ImportKnowledgeDocumentsError = unknown;

export type ImportKnowledgeDocumentFromUrlData = {
    body: KnowledgeDocumentUrlImportRequest;
    path: {
        kb_id: string;
    };
};

export type ImportKnowledgeDocumentFromUrlResponse = (SuccessEnvelope);

export type ImportKnowledgeDocumentFromUrlError = unknown;

export type GetKnowledgeDocumentData = {
    path: {
        document_id: string;
        kb_id: string;
    };
};

export type GetKnowledgeDocumentResponse = (SuccessEnvelope);

export type GetKnowledgeDocumentError = unknown;

export type DeleteKnowledgeDocumentData = {
    path: {
        document_id: string;
        kb_id: string;
    };
};

export type DeleteKnowledgeDocumentResponse = (SuccessEnvelope);

export type DeleteKnowledgeDocumentError = unknown;

export type ListKnowledgeChunksData = {
    path: {
        kb_id: string;
    };
    query?: {
        document_id?: string;
        page?: number;
        page_size?: number;
    };
};

export type ListKnowledgeChunksResponse = (SuccessEnvelope);

export type ListKnowledgeChunksError = unknown;

export type DeleteKnowledgeChunkData = {
    path: {
        chunk_id: string;
        kb_id: string;
    };
    query: {
        document_id: string;
    };
};

export type DeleteKnowledgeChunkResponse = (SuccessEnvelope);

export type DeleteKnowledgeChunkError = unknown;

export type RetrieveKnowledgeBaseData = {
    body: KnowledgeRetrieveRequest;
    path: {
        kb_id: string;
    };
};

export type RetrieveKnowledgeBaseResponse = (SuccessEnvelope);

export type RetrieveKnowledgeBaseError = unknown;

export type GetKnowledgeTaskData = {
    path: {
        task_id: string;
    };
};

export type GetKnowledgeTaskResponse = (SuccessEnvelope);

export type GetKnowledgeTaskError = unknown;

export type GetPersonaTreeResponse = (SuccessEnvelope);

export type GetPersonaTreeError = unknown;

export type ListPersonasData = {
    query?: {
        folder_id?: string;
    };
};

export type ListPersonasResponse = (SuccessEnvelope);

export type ListPersonasError = unknown;

export type CreatePersonaData = {
    body: PersonaRequest;
};

export type CreatePersonaResponse = (SuccessEnvelope);

export type CreatePersonaError = unknown;

export type GetPersonaByIdData = {
    query: {
        persona_id: string;
    };
};

export type GetPersonaByIdResponse = (SuccessEnvelope);

export type GetPersonaByIdError = unknown;

export type UpdatePersonaByIdData = {
    body: {
        persona_id: string;
        [key: string]: unknown | string;
    };
};

export type UpdatePersonaByIdResponse = (SuccessEnvelope);

export type UpdatePersonaByIdError = unknown;

export type DeletePersonaByIdData = {
    query: {
        persona_id: string;
    };
};

export type DeletePersonaByIdResponse = (SuccessEnvelope);

export type DeletePersonaByIdError = unknown;

export type GetPersonaData = {
    path: {
        persona_id: string;
    };
};

export type GetPersonaResponse = (SuccessEnvelope);

export type GetPersonaError = unknown;

export type UpdatePersonaData = {
    body: PersonaRequest;
    path: {
        persona_id: string;
    };
};

export type UpdatePersonaResponse = (SuccessEnvelope);

export type UpdatePersonaError = unknown;

export type DeletePersonaData = {
    path: {
        persona_id: string;
    };
};

export type DeletePersonaResponse = (SuccessEnvelope);

export type DeletePersonaError = unknown;

export type ListPersonaFoldersData = {
    query?: {
        parent_id?: string;
    };
};

export type ListPersonaFoldersResponse = (SuccessEnvelope);

export type ListPersonaFoldersError = unknown;

export type CreatePersonaFolderData = {
    body: PersonaFolderRequest;
};

export type CreatePersonaFolderResponse = (SuccessEnvelope);

export type CreatePersonaFolderError = unknown;

export type UpdatePersonaFolderData = {
    body: PersonaFolderRequest;
    path: {
        folder_id: string;
    };
};

export type UpdatePersonaFolderResponse = (SuccessEnvelope);

export type UpdatePersonaFolderError = unknown;

export type DeletePersonaFolderData = {
    path: {
        folder_id: string;
    };
};

export type DeletePersonaFolderResponse = (SuccessEnvelope);

export type DeletePersonaFolderError = unknown;

export type MovePersonaItemData = {
    body: PersonaMoveRequest;
};

export type MovePersonaItemResponse = (SuccessEnvelope);

export type MovePersonaItemError = unknown;

export type ReorderPersonaItemsData = {
    body: ReorderRequest;
};

export type ReorderPersonaItemsResponse = (SuccessEnvelope);

export type ReorderPersonaItemsError = unknown;

export type ListSessionsData = {
    query?: {
        message_type?: 'all' | 'group' | 'private';
        page?: number;
        page_size?: number;
        platform?: string;
        search?: string;
    };
};

export type ListSessionsResponse = (SuccessEnvelope);

export type ListSessionsError = unknown;

export type ListActiveUmosResponse = (SuccessEnvelope);

export type ListActiveUmosError = unknown;

export type ListSessionRulesData = {
    query?: {
        page?: number;
        page_size?: number;
        search?: string;
    };
};

export type ListSessionRulesResponse = (SuccessEnvelope);

export type ListSessionRulesError = unknown;

export type UpsertSessionRuleData = {
    body: SessionRuleRequest;
};

export type UpsertSessionRuleResponse = (SuccessEnvelope);

export type UpsertSessionRuleError = unknown;

export type DeleteSessionRulesData = {
    body: UmoListRequest;
};

export type DeleteSessionRulesResponse = (SuccessEnvelope);

export type DeleteSessionRulesError = unknown;

export type BatchUpdateSessionProviderData = {
    body: BatchSessionProviderRequest;
};

export type BatchUpdateSessionProviderResponse = (SuccessEnvelope);

export type BatchUpdateSessionProviderError = unknown;

export type BatchUpdateSessionServiceData = {
    body: BatchSessionServiceRequest;
};

export type BatchUpdateSessionServiceResponse = (SuccessEnvelope);

export type BatchUpdateSessionServiceError = unknown;

export type ListSessionGroupsResponse = (SuccessEnvelope);

export type ListSessionGroupsError = unknown;

export type CreateSessionGroupData = {
    body: SessionGroupRequest;
};

export type CreateSessionGroupResponse = (SuccessEnvelope);

export type CreateSessionGroupError = unknown;

export type UpdateSessionGroupData = {
    body: SessionGroupRequest;
    path: {
        group_id: string;
    };
};

export type UpdateSessionGroupResponse = (SuccessEnvelope);

export type UpdateSessionGroupError = unknown;

export type DeleteSessionGroupData = {
    path: {
        group_id: string;
    };
};

export type DeleteSessionGroupResponse = (SuccessEnvelope);

export type DeleteSessionGroupError = unknown;

export type ListConversationsData = {
    query?: {
        /**
         * Comma-separated user IDs to exclude.
         */
        exclude_ids?: string;
        /**
         * Comma-separated platforms to exclude.
         */
        exclude_platforms?: string;
        /**
         * Comma-separated message types.
         */
        message_types?: string;
        page?: number;
        page_size?: number;
        platform_id?: string;
        /**
         * Comma-separated platform IDs.
         */
        platforms?: string;
        search?: string;
        user_id?: string;
    };
};

export type ListConversationsResponse = (SuccessEnvelope);

export type ListConversationsError = unknown;

export type BatchDeleteConversationsData = {
    body: ConversationBatchDeleteRequest;
};

export type BatchDeleteConversationsResponse = (SuccessEnvelope);

export type BatchDeleteConversationsError = unknown;

export type GetConversationData = {
    path: {
        conversation_id: string;
    };
    query: {
        user_id: string;
    };
};

export type GetConversationResponse = (SuccessEnvelope);

export type GetConversationError = unknown;

export type UpdateConversationData = {
    body: ConversationPatchRequest;
    path: {
        conversation_id: string;
    };
    query: {
        user_id: string;
    };
};

export type UpdateConversationResponse = (SuccessEnvelope);

export type UpdateConversationError = unknown;

export type DeleteConversationData = {
    path: {
        conversation_id: string;
    };
    query: {
        user_id: string;
    };
};

export type DeleteConversationResponse = (SuccessEnvelope);

export type DeleteConversationError = unknown;

export type ReplaceConversationMessagesData = {
    body: ConversationMessagesReplaceRequest;
    path: {
        conversation_id: string;
    };
    query: {
        user_id: string;
    };
};

export type ReplaceConversationMessagesResponse = (SuccessEnvelope);

export type ReplaceConversationMessagesError = unknown;

export type ExportConversationsData = {
    body: ConversationExportRequest;
};

export type ExportConversationsResponse = (unknown);

export type ExportConversationsError = unknown;

export type GetStatsData = {
    query?: {
        offset_sec?: number;
    };
};

export type GetStatsResponse = (SuccessEnvelope);

export type GetStatsError = unknown;

export type GetProviderTokenStatsData = {
    query?: {
        days?: number;
    };
};

export type GetProviderTokenStatsResponse = (SuccessEnvelope);

export type GetProviderTokenStatsError = unknown;

export type GetVersionResponse = (SuccessEnvelope);

export type GetVersionError = unknown;

export type GetFirstNoticeData = {
    query?: {
        locale?: string;
    };
};

export type GetFirstNoticeResponse = (SuccessEnvelope);

export type GetFirstNoticeError = unknown;

export type TestGhproxyConnectionData = {
    body: GhproxyTestRequest;
};

export type TestGhproxyConnectionResponse = (SuccessEnvelope);

export type TestGhproxyConnectionError = unknown;

export type ListChangelogVersionsResponse = (SuccessEnvelope);

export type ListChangelogVersionsError = unknown;

export type GetChangelogData = {
    path: {
        version: string;
    };
};

export type GetChangelogResponse = (SuccessEnvelope);

export type GetChangelogError = (ErrorEnvelope);

export type GetStartTimeResponse = (SuccessEnvelope);

export type GetStartTimeError = unknown;

export type GetStorageStatusResponse = (SuccessEnvelope);

export type GetStorageStatusError = unknown;

export type CleanupStorageData = {
    body?: DynamicConfig;
};

export type CleanupStorageResponse = (SuccessEnvelope);

export type CleanupStorageError = unknown;

export type RestartCoreResponse = (SuccessEnvelope);

export type RestartCoreError = unknown;

export type ListBackupsData = {
    query?: {
        page?: number;
        page_size?: number;
    };
};

export type ListBackupsResponse = (SuccessEnvelope);

export type ListBackupsError = unknown;

export type CreateBackupData = {
    body?: BackupExportRequest;
};

export type CreateBackupResponse = (SuccessEnvelope);

export type CreateBackupError = unknown;

export type UploadBackupData = {
    body: BackupUploadRequest;
};

export type UploadBackupResponse = (SuccessEnvelope);

export type UploadBackupError = unknown;

export type InitBackupUploadData = {
    body: BackupUploadInitRequest;
};

export type InitBackupUploadResponse = (SuccessEnvelope);

export type InitBackupUploadError = unknown;

export type UploadBackupChunkData = {
    body: BackupChunkUploadRequest;
};

export type UploadBackupChunkResponse = (SuccessEnvelope);

export type UploadBackupChunkError = unknown;

export type CompleteBackupUploadData = {
    body: BackupUploadSessionRequest;
};

export type CompleteBackupUploadResponse = (SuccessEnvelope);

export type CompleteBackupUploadError = unknown;

export type AbortBackupUploadData = {
    body: BackupUploadSessionRequest;
};

export type AbortBackupUploadResponse = (SuccessEnvelope);

export type AbortBackupUploadError = unknown;

export type GetBackupProgressData = {
    path: {
        task_id: string;
    };
};

export type GetBackupProgressResponse = (SuccessEnvelope);

export type GetBackupProgressError = unknown;

export type DownloadBackupData = {
    path: {
        filename: string;
    };
};

export type DownloadBackupResponse = (unknown);

export type DownloadBackupError = unknown;

export type RenameBackupData = {
    body: BackupRenameRequest;
    path: {
        filename: string;
    };
};

export type RenameBackupResponse = (SuccessEnvelope);

export type RenameBackupError = unknown;

export type DeleteBackupData = {
    path: {
        filename: string;
    };
};

export type DeleteBackupResponse = (SuccessEnvelope);

export type DeleteBackupError = unknown;

export type CheckBackupData = {
    path: {
        filename: string;
    };
};

export type CheckBackupResponse = (SuccessEnvelope);

export type CheckBackupError = unknown;

export type ImportBackupData = {
    body?: BackupImportRequest;
    path: {
        filename: string;
    };
};

export type ImportBackupResponse = (SuccessEnvelope);

export type ImportBackupError = unknown;

export type CheckUpdateResponse = (SuccessEnvelope);

export type CheckUpdateError = unknown;

export type ListReleasesData = {
    query?: {
        type?: 'core' | 'dashboard';
    };
};

export type ListReleasesResponse = (SuccessEnvelope);

export type ListReleasesError = unknown;

export type UpdateCoreData = {
    body?: UpdateRequest;
};

export type UpdateCoreResponse = (SuccessEnvelope);

export type UpdateCoreError = unknown;

export type UpdateDashboardData = {
    body?: UpdateRequest;
};

export type UpdateDashboardResponse = (SuccessEnvelope);

export type UpdateDashboardError = unknown;

export type GetUpdateProgressData = {
    path: {
        task_id: string;
    };
};

export type GetUpdateProgressResponse = (SuccessEnvelope);

export type GetUpdateProgressError = unknown;

export type InstallPipPackageData = {
    body: PipInstallRequest;
};

export type InstallPipPackageResponse = (SuccessEnvelope);

export type InstallPipPackageError = unknown;

export type ListCronJobsData = {
    query?: {
        type?: string;
    };
};

export type ListCronJobsResponse = (SuccessEnvelope);

export type ListCronJobsError = unknown;

export type CreateCronJobData = {
    body: CronJobRequest;
};

export type CreateCronJobResponse = (SuccessEnvelope);

export type CreateCronJobError = unknown;

export type UpdateCronJobData = {
    body: CronJobPatchRequest;
    path: {
        job_id: string;
    };
};

export type UpdateCronJobResponse = (SuccessEnvelope);

export type UpdateCronJobError = unknown;

export type DeleteCronJobData = {
    path: {
        job_id: string;
    };
};

export type DeleteCronJobResponse = (SuccessEnvelope);

export type DeleteCronJobError = unknown;

export type RunCronJobData = {
    path: {
        job_id: string;
    };
};

export type RunCronJobResponse = (SuccessEnvelope);

export type RunCronJobError = unknown;

export type StreamLiveLogsResponse = (string);

export type StreamLiveLogsError = unknown;

export type GetLogHistoryResponse = (string);

export type GetLogHistoryError = unknown;

export type GetTraceSettingsResponse = (SuccessEnvelope);

export type GetTraceSettingsError = unknown;

export type UpdateTraceSettingsData = {
    body: TraceSettingsRequest;
};

export type UpdateTraceSettingsResponse = (SuccessEnvelope);

export type UpdateTraceSettingsError = unknown;

export type ListT2iTemplatesResponse = (SuccessEnvelope);

export type ListT2iTemplatesError = unknown;

export type CreateT2iTemplateData = {
    body: T2iTemplateRequest;
};

export type CreateT2iTemplateResponse = (SuccessEnvelope);

export type CreateT2iTemplateError = unknown;

export type GetActiveT2iTemplateResponse = (SuccessEnvelope);

export type GetActiveT2iTemplateError = unknown;

export type SetActiveT2iTemplateData = {
    body: NameRequest;
};

export type SetActiveT2iTemplateResponse = (SuccessEnvelope);

export type SetActiveT2iTemplateError = unknown;

export type ResetDefaultT2iTemplateResponse = (SuccessEnvelope);

export type ResetDefaultT2iTemplateError = unknown;

export type GetT2iTemplateData = {
    path: {
        name: string;
    };
};

export type GetT2iTemplateResponse = (SuccessEnvelope);

export type GetT2iTemplateError = unknown;

export type UpdateT2iTemplateData = {
    body: T2iTemplateContentRequest;
    path: {
        name: string;
    };
};

export type UpdateT2iTemplateResponse = (SuccessEnvelope);

export type UpdateT2iTemplateError = unknown;

export type DeleteT2iTemplateData = {
    path: {
        name: string;
    };
};

export type DeleteT2iTemplateResponse = (SuccessEnvelope);

export type DeleteT2iTemplateError = unknown;

export type GetSubagentConfigResponse = (SuccessEnvelope);

export type GetSubagentConfigError = unknown;

export type UpdateSubagentConfigData = {
    body: DynamicConfig;
};

export type UpdateSubagentConfigResponse = (SuccessEnvelope);

export type UpdateSubagentConfigError = unknown;

export type ListSubagentAvailableToolsResponse = (SuccessEnvelope);

export type ListSubagentAvailableToolsError = unknown;

export type VerifyPlatformWebhookData = {
    path: {
        webhook_uuid: string;
    };
};

export type VerifyPlatformWebhookResponse = (unknown);

export type VerifyPlatformWebhookError = unknown;

export type ReceivePlatformWebhookData = {
    body?: DynamicConfig;
    path: {
        webhook_uuid: string;
    };
};

export type ReceivePlatformWebhookResponse = (unknown);

export type ReceivePlatformWebhookError = unknown;