mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 10:22:04 +08:00
feat: reorganize settings system configuration (#8777)
* feat: reorganize settings system configuration * fix: float system config restart notice * fix: blur system config restart notice * fix: tint restart notice blur background * fix: allow totp setup without body * fix: filter public openapi docs * fix: handle settings autosave cleanup * chore: ui
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -320,13 +320,6 @@ export type MessagePart = {
|
||||
|
||||
export type type = 'text' | 'plain' | 'image' | 'file' | 'audio' | 'record' | 'video' | 'reply';
|
||||
|
||||
export type MigrationRequest = {
|
||||
platform_id_map?: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
export type ModelScopeSyncRequest = {
|
||||
access_token?: string;
|
||||
};
|
||||
@@ -3299,14 +3292,6 @@ export type InstallPipPackageResponse = (SuccessEnvelope);
|
||||
|
||||
export type InstallPipPackageError = unknown;
|
||||
|
||||
export type RunMigrationsData = {
|
||||
body?: MigrationRequest;
|
||||
};
|
||||
|
||||
export type RunMigrationsResponse = (SuccessEnvelope);
|
||||
|
||||
export type RunMigrationsError = unknown;
|
||||
|
||||
export type ListCronJobsData = {
|
||||
query?: {
|
||||
type?: string;
|
||||
|
||||
@@ -33,7 +33,6 @@ import {
|
||||
type LoginRequest,
|
||||
type ListConversationsData,
|
||||
type McpServerConfig,
|
||||
type MigrationRequest,
|
||||
type ModelScopeSyncRequest,
|
||||
type PipInstallRequest,
|
||||
type PluginVersionSupportRequest,
|
||||
@@ -95,7 +94,6 @@ export interface ProviderEmbeddingDimensionData {
|
||||
export interface VersionData {
|
||||
version?: string;
|
||||
dashboard_version?: string;
|
||||
need_migration?: boolean;
|
||||
change_pwd_hint?: boolean;
|
||||
md5_pwd_hint?: boolean;
|
||||
password_upgrade_required?: boolean;
|
||||
@@ -574,9 +572,6 @@ export const updatesApi = {
|
||||
openApiV1.installPipPackage({ body: payload }),
|
||||
);
|
||||
},
|
||||
runMigrations(payload?: MigrationRequest) {
|
||||
return typed<OpenConfig>(openApiV1.runMigrations({ body: payload }));
|
||||
},
|
||||
};
|
||||
|
||||
export const backupApi = {
|
||||
|
||||
Reference in New Issue
Block a user