@liujitcn/kratos-admin-system 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -0
- package/dist/package/declarations/index.d.ts +1 -0
- package/dist/package/declarations/src/ai.d.ts +10 -0
- package/dist/package/declarations/src/api/base/ai_message.d.ts +27 -0
- package/dist/package/declarations/src/api/base/ai_session.d.ts +17 -0
- package/dist/package/declarations/src/api/base/ai_tool.d.ts +7 -0
- package/dist/package/declarations/src/api/base/oauth.d.ts +13 -0
- package/dist/package/declarations/src/api/base/sse.d.ts +31 -0
- package/dist/package/declarations/src/api/system/auth.d.ts +17 -0
- package/dist/package/declarations/src/api/system/base_api.d.ts +22 -0
- package/dist/package/declarations/src/api/system/base_area.d.ts +19 -0
- package/dist/package/declarations/src/api/system/base_config.d.ts +20 -0
- package/dist/package/declarations/src/api/system/base_dept.d.ts +21 -0
- package/dist/package/declarations/src/api/system/base_dict.d.ts +32 -0
- package/dist/package/declarations/src/api/system/base_job.d.ts +28 -0
- package/dist/package/declarations/src/api/system/base_log.d.ts +9 -0
- package/dist/package/declarations/src/api/system/base_menu.d.ts +21 -0
- package/dist/package/declarations/src/api/system/base_migration.d.ts +10 -0
- package/dist/package/declarations/src/api/system/base_post.d.ts +21 -0
- package/dist/package/declarations/src/api/system/base_role.d.ts +23 -0
- package/dist/package/declarations/src/api/system/base_tenant.d.ts +21 -0
- package/dist/package/declarations/src/api/system/base_user.d.ts +23 -0
- package/dist/package/declarations/src/api/system/code_gen.d.ts +14 -0
- package/dist/package/declarations/src/api/system/code_gen_column.d.ts +12 -0
- package/dist/package/declarations/src/api/system/code_gen_proto.d.ts +10 -0
- package/dist/package/declarations/src/api/system/code_gen_sse.d.ts +8 -0
- package/dist/package/declarations/src/api/system/code_gen_table.d.ts +18 -0
- package/dist/package/declarations/src/api/system/project_document.d.ts +9 -0
- package/dist/package/declarations/src/components/Ai.vue.d.ts +3 -0
- package/dist/package/declarations/src/index.d.ts +3 -0
- package/dist/package/declarations/src/module.d.ts +2 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_message.d.ts +82 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_session.d.ts +176 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_tool.d.ts +59 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +167 -0
- package/dist/package/declarations/src/rpc/base/v1/sse.d.ts +13 -0
- package/dist/package/declarations/src/rpc/common/v1/common.d.ts +57 -0
- package/dist/package/declarations/src/rpc/common/v1/enum.d.ts +58 -0
- package/dist/package/declarations/src/rpc/common/v1/types.d.ts +60 -0
- package/dist/package/declarations/src/rpc/google/protobuf/empty.d.ts +11 -0
- package/dist/package/declarations/src/rpc/google/protobuf/timestamp.d.ts +107 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +156 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_api.d.ts +193 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_area.d.ts +82 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_config.d.ts +112 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dept.d.ts +112 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +215 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_job.d.ts +177 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_log.d.ts +87 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_menu.d.ts +151 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_migration.d.ts +64 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_post.d.ts +112 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_role.d.ts +128 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_tenant.d.ts +112 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_user.d.ts +161 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen.d.ts +155 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_column.d.ts +143 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_proto.d.ts +86 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_table.d.ts +149 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/project_document.d.ts +64 -0
- package/dist/package/declarations/src/rpc/system/common/v1/enum.d.ts +67 -0
- package/dist/package/declarations/src/views/ai/chat/attachment.d.ts +14 -0
- package/dist/package/declarations/src/views/ai/chat/components/AiMarkdown.vue.d.ts +13 -0
- package/dist/package/declarations/src/views/ai/chat/components/ChatPanel.vue.d.ts +45 -0
- package/dist/package/declarations/src/views/ai/chat/components/SessionPanel.vue.d.ts +34 -0
- package/dist/package/declarations/src/views/ai/chat/components/XSender.vue.d.ts +12 -0
- package/dist/package/declarations/src/views/ai/chat/index.vue.d.ts +4 -0
- package/dist/package/declarations/src/views/ai/chat/message.d.ts +59 -0
- package/dist/package/declarations/src/views/ai/chat/stream.d.ts +10 -0
- package/dist/package/declarations/src/views/ai/chat/types.d.ts +115 -0
- package/dist/package/declarations/src/views/base/api/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/area/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/config/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/dept/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/dict/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/dict/item.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/job/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/job/log.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/log/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/menu/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/migration/index.vue.d.ts +4 -0
- package/dist/package/declarations/src/views/base/post/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/role/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/tenant/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/user/components/dept-tree.vue.d.ts +19 -0
- package/dist/package/declarations/src/views/base/user/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/profile/components/base.vue.d.ts +13 -0
- package/dist/package/declarations/src/views/profile/components/password.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/profile/components/security.vue.d.ts +15 -0
- package/dist/package/declarations/src/views/profile/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/api-doc/index.vue.d.ts +4 -0
- package/dist/package/declarations/src/views/tool/code-gen/code-preview/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/code-gen/columns/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/code-gen/columns/option-copy.d.ts +25 -0
- package/dist/package/declarations/src/views/tool/code-gen/components/CodeGenProgressDialog.vue.d.ts +16 -0
- package/dist/package/declarations/src/views/tool/code-gen/components/CodePreviewPane.vue.d.ts +9 -0
- package/dist/package/declarations/src/views/tool/code-gen/config.d.ts +32 -0
- package/dist/package/declarations/src/views/tool/code-gen/preview/capabilities.d.ts +20 -0
- package/dist/package/declarations/src/views/tool/code-gen/preview/data.d.ts +42 -0
- package/dist/package/declarations/src/views/tool/code-gen/preview/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/code-gen/proto/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/code-gen/table/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/project-doc/index.vue.d.ts +4 -0
- package/dist/package/src/ai.ts +16 -0
- package/dist/package/src/api/base/ai_message.ts +139 -0
- package/dist/package/src/api/base/ai_session.ts +77 -0
- package/dist/package/src/api/base/ai_tool.ts +22 -0
- package/dist/package/src/api/base/oauth.ts +47 -0
- package/dist/package/src/api/base/sse.ts +192 -0
- package/dist/package/src/api/system/auth.ts +65 -0
- package/dist/package/src/api/system/base_api.ts +95 -0
- package/dist/package/src/api/system/base_area.ts +73 -0
- package/dist/package/src/api/system/base_config.ts +82 -0
- package/dist/package/src/api/system/base_dept.ts +83 -0
- package/dist/package/src/api/system/base_dict.ts +144 -0
- package/dist/package/src/api/system/base_job.ts +125 -0
- package/dist/package/src/api/system/base_log.ts +32 -0
- package/dist/package/src/api/system/base_menu.ts +83 -0
- package/dist/package/src/api/system/base_migration.ts +35 -0
- package/dist/package/src/api/system/base_post.ts +83 -0
- package/dist/package/src/api/system/base_role.ts +93 -0
- package/dist/package/src/api/system/base_tenant.ts +83 -0
- package/dist/package/src/api/system/base_user.ts +93 -0
- package/dist/package/src/api/system/code_gen.ts +56 -0
- package/dist/package/src/api/system/code_gen_column.ts +43 -0
- package/dist/package/src/api/system/code_gen_proto.ts +32 -0
- package/dist/package/src/api/system/code_gen_sse.ts +33 -0
- package/dist/package/src/api/system/code_gen_table.ts +74 -0
- package/dist/package/src/api/system/project_document.ts +33 -0
- package/dist/package/src/components/Ai.vue +57 -0
- package/dist/package/src/index.ts +3 -0
- package/dist/package/src/module.ts +17 -0
- package/dist/package/src/rpc/base/v1/ai_message.ts +98 -0
- package/dist/package/src/rpc/base/v1/ai_session.ts +214 -0
- package/dist/package/src/rpc/base/v1/ai_tool.ts +74 -0
- package/dist/package/src/rpc/base/v1/oauth.ts +199 -0
- package/dist/package/src/rpc/base/v1/sse.ts +22 -0
- package/dist/package/src/rpc/common/v1/common.ts +71 -0
- package/dist/package/src/rpc/common/v1/enum.ts +71 -0
- package/dist/package/src/rpc/common/v1/types.ts +77 -0
- package/dist/package/src/rpc/google/protobuf/empty.ts +19 -0
- package/dist/package/src/rpc/google/protobuf/timestamp.ts +115 -0
- package/dist/package/src/rpc/system/admin/v1/auth.ts +208 -0
- package/dist/package/src/rpc/system/admin/v1/base_api.ts +241 -0
- package/dist/package/src/rpc/system/admin/v1/base_area.ts +105 -0
- package/dist/package/src/rpc/system/admin/v1/base_config.ts +140 -0
- package/dist/package/src/rpc/system/admin/v1/base_dept.ts +140 -0
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +249 -0
- package/dist/package/src/rpc/system/admin/v1/base_job.ts +206 -0
- package/dist/package/src/rpc/system/admin/v1/base_log.ts +101 -0
- package/dist/package/src/rpc/system/admin/v1/base_menu.ts +195 -0
- package/dist/package/src/rpc/system/admin/v1/base_migration.ts +81 -0
- package/dist/package/src/rpc/system/admin/v1/base_post.ts +134 -0
- package/dist/package/src/rpc/system/admin/v1/base_role.ts +151 -0
- package/dist/package/src/rpc/system/admin/v1/base_tenant.ts +134 -0
- package/dist/package/src/rpc/system/admin/v1/base_user.ts +190 -0
- package/dist/package/src/rpc/system/admin/v1/code_gen.ts +176 -0
- package/dist/package/src/rpc/system/admin/v1/code_gen_column.ts +170 -0
- package/dist/package/src/rpc/system/admin/v1/code_gen_proto.ts +104 -0
- package/dist/package/src/rpc/system/admin/v1/code_gen_table.ts +179 -0
- package/dist/package/src/rpc/system/admin/v1/project_document.ts +79 -0
- package/dist/package/src/rpc/system/common/v1/enum.ts +80 -0
- package/dist/package/src/typings/swagger-ui-dist.d.ts +28 -0
- package/dist/package/src/typings/x-markdown-vue.d.ts +1 -0
- package/dist/package/src/views/ai/chat/attachment.ts +65 -0
- package/dist/package/src/views/ai/chat/components/AiMarkdown.vue +162 -0
- package/dist/package/src/views/ai/chat/components/ChatPanel.vue +1861 -0
- package/dist/package/src/views/ai/chat/components/SessionPanel.vue +316 -0
- package/dist/package/src/views/ai/chat/components/XSender.vue +554 -0
- package/dist/package/src/views/ai/chat/index.vue +848 -0
- package/dist/package/src/views/ai/chat/message.ts +416 -0
- package/dist/package/src/views/ai/chat/stream.ts +115 -0
- package/dist/package/src/views/ai/chat/types.ts +126 -0
- package/dist/package/src/views/base/api/index.vue +455 -0
- package/dist/package/src/views/base/area/index.vue +269 -0
- package/dist/package/src/views/base/config/index.vue +530 -0
- package/dist/package/src/views/base/dept/index.vue +461 -0
- package/dist/package/src/views/base/dict/index.vue +304 -0
- package/dist/package/src/views/base/dict/item.vue +373 -0
- package/dist/package/src/views/base/job/index.vue +535 -0
- package/dist/package/src/views/base/job/log.vue +202 -0
- package/dist/package/src/views/base/log/index.vue +317 -0
- package/dist/package/src/views/base/menu/index.vue +944 -0
- package/dist/package/src/views/base/migration/index.vue +791 -0
- package/dist/package/src/views/base/post/index.vue +324 -0
- package/dist/package/src/views/base/role/index.vue +684 -0
- package/dist/package/src/views/base/tenant/index.vue +328 -0
- package/dist/package/src/views/base/user/components/dept-tree.vue +75 -0
- package/dist/package/src/views/base/user/index.vue +783 -0
- package/dist/package/src/views/profile/components/base.vue +320 -0
- package/dist/package/src/views/profile/components/password.vue +269 -0
- package/dist/package/src/views/profile/components/security.vue +443 -0
- package/dist/package/src/views/profile/index.vue +199 -0
- package/dist/package/src/views/tool/api-doc/index.vue +275 -0
- package/dist/package/src/views/tool/code-gen/code-preview/index.vue +233 -0
- package/dist/package/src/views/tool/code-gen/columns/index.vue +1456 -0
- package/dist/package/src/views/tool/code-gen/columns/option-copy.ts +125 -0
- package/dist/package/src/views/tool/code-gen/components/CodeGenProgressDialog.vue +328 -0
- package/dist/package/src/views/tool/code-gen/components/CodePreviewPane.vue +42 -0
- package/dist/package/src/views/tool/code-gen/config.ts +175 -0
- package/dist/package/src/views/tool/code-gen/preview/capabilities.ts +34 -0
- package/dist/package/src/views/tool/code-gen/preview/data.ts +331 -0
- package/dist/package/src/views/tool/code-gen/preview/index.vue +831 -0
- package/dist/package/src/views/tool/code-gen/proto/index.vue +703 -0
- package/dist/package/src/views/tool/code-gen/table/index.vue +864 -0
- package/dist/package/src/views/tool/project-doc/index.vue +561 -0
- package/package.json +60 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CodeGenTableForm, type CodeGenTableService, type CreateCodeGenTableRequest, type DeleteCodeGenTableRequest, type GetCodeGenTableRequest, type ListCodeGenDatabaseTableRequest, type ListCodeGenDatabaseTableResponse, type PageCodeGenTableRequest, type PageCodeGenTableResponse, type UpdateCodeGenTableRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/code_gen_table";
|
|
2
|
+
import type { Empty } from "@liujitcn/kratos-admin-system/rpc/google/protobuf/empty";
|
|
3
|
+
/** Admin代码生成表配置服务。 */
|
|
4
|
+
export declare class CodeGenTableServiceImpl implements CodeGenTableService {
|
|
5
|
+
/** 查询数据库表列表。 */
|
|
6
|
+
ListCodeGenDatabaseTable(request: ListCodeGenDatabaseTableRequest): Promise<ListCodeGenDatabaseTableResponse>;
|
|
7
|
+
/** 查询代码生成表配置分页列表。 */
|
|
8
|
+
PageCodeGenTable(request: PageCodeGenTableRequest): Promise<PageCodeGenTableResponse>;
|
|
9
|
+
/** 查询代码生成表配置。 */
|
|
10
|
+
GetCodeGenTable(request: GetCodeGenTableRequest): Promise<CodeGenTableForm>;
|
|
11
|
+
/** 创建代码生成表配置。 */
|
|
12
|
+
CreateCodeGenTable(request: CreateCodeGenTableRequest): Promise<Empty>;
|
|
13
|
+
/** 更新代码生成表配置。 */
|
|
14
|
+
UpdateCodeGenTable(request: UpdateCodeGenTableRequest): Promise<Empty>;
|
|
15
|
+
/** 删除代码生成表配置。 */
|
|
16
|
+
DeleteCodeGenTable(request: DeleteCodeGenTableRequest): Promise<Empty>;
|
|
17
|
+
}
|
|
18
|
+
export declare const defCodeGenTableService: CodeGenTableServiceImpl;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GetProjectDocumentRequest, ProjectDocument, ProjectDocumentService, TreeProjectDocumentRequest, TreeProjectDocumentResponse } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/project_document";
|
|
2
|
+
/** Admin项目文档服务。 */
|
|
3
|
+
export declare class ProjectDocumentServiceImpl implements ProjectDocumentService {
|
|
4
|
+
/** 查询项目文档树。 */
|
|
5
|
+
TreeProjectDocument(request: TreeProjectDocumentRequest): Promise<TreeProjectDocumentResponse>;
|
|
6
|
+
/** 查询项目文档详情。 */
|
|
7
|
+
GetProjectDocument(request: GetProjectDocumentRequest): Promise<ProjectDocument>;
|
|
8
|
+
}
|
|
9
|
+
export declare const defProjectDocumentService: ProjectDocumentServiceImpl;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { AiAttachment, AiMessage, AiSession } from "./ai_session";
|
|
2
|
+
/** AI 助手消息更新请求 */
|
|
3
|
+
export interface UpdateAiMessageRequest {
|
|
4
|
+
/** 会话ID */
|
|
5
|
+
session_id: string;
|
|
6
|
+
/** 消息ID */
|
|
7
|
+
message_id: string;
|
|
8
|
+
/** 更新后的消息内容 */
|
|
9
|
+
content: string;
|
|
10
|
+
}
|
|
11
|
+
/** AI 助手消息发送响应 */
|
|
12
|
+
export interface SendAiMessageResponse {
|
|
13
|
+
/** 新增消息列表 */
|
|
14
|
+
messages: AiMessage[];
|
|
15
|
+
/** 最新会话信息 */
|
|
16
|
+
session: AiSession | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** AI 助手消息删除请求 */
|
|
19
|
+
export interface DeleteAiMessageRequest {
|
|
20
|
+
/** 会话ID */
|
|
21
|
+
session_id: string;
|
|
22
|
+
/** 消息ID */
|
|
23
|
+
message_id: string;
|
|
24
|
+
}
|
|
25
|
+
/** AI 助手消息删除响应 */
|
|
26
|
+
export interface DeleteAiMessageResponse {
|
|
27
|
+
}
|
|
28
|
+
/** AI 助手消息发送请求 */
|
|
29
|
+
export interface SendAiMessageRequest {
|
|
30
|
+
/** 会话ID */
|
|
31
|
+
session_id: string;
|
|
32
|
+
/** 消息内容 */
|
|
33
|
+
content: string;
|
|
34
|
+
/** 附件列表 */
|
|
35
|
+
attachments: AiAttachment[];
|
|
36
|
+
/** 助手动作 */
|
|
37
|
+
action: AiAction | undefined;
|
|
38
|
+
}
|
|
39
|
+
/** AI 助手失败消息重试请求 */
|
|
40
|
+
export interface RetryAiUserMessageRequest {
|
|
41
|
+
/** 会话ID */
|
|
42
|
+
session_id: string;
|
|
43
|
+
/** 失败消息ID */
|
|
44
|
+
message_id: string;
|
|
45
|
+
}
|
|
46
|
+
/** AI 助手输出重新生成请求 */
|
|
47
|
+
export interface RegenerateAiMessageRequest {
|
|
48
|
+
/** 会话ID */
|
|
49
|
+
session_id: string;
|
|
50
|
+
/** 消息ID */
|
|
51
|
+
message_id: string;
|
|
52
|
+
}
|
|
53
|
+
/** AI 助手动作 */
|
|
54
|
+
export interface AiAction {
|
|
55
|
+
/** 流程标识 */
|
|
56
|
+
flow: string;
|
|
57
|
+
/** 流程步骤 */
|
|
58
|
+
step: string;
|
|
59
|
+
/** 动作类型 */
|
|
60
|
+
type: string;
|
|
61
|
+
/** 动作负载JSON */
|
|
62
|
+
payload_json: string;
|
|
63
|
+
/** 动作来源消息ID */
|
|
64
|
+
source_message_id: string;
|
|
65
|
+
/** 动作唯一ID */
|
|
66
|
+
action_id: string;
|
|
67
|
+
/** 流程状态版本 */
|
|
68
|
+
flow_version: number;
|
|
69
|
+
}
|
|
70
|
+
/** Base AI 助手消息服务 */
|
|
71
|
+
export interface AiMessageService {
|
|
72
|
+
/** 更新 AI 助手消息并重新生成输出 */
|
|
73
|
+
UpdateAiMessage(request: UpdateAiMessageRequest): Promise<SendAiMessageResponse>;
|
|
74
|
+
/** 删除 AI 助手消息 */
|
|
75
|
+
DeleteAiMessage(request: DeleteAiMessageRequest): Promise<DeleteAiMessageResponse>;
|
|
76
|
+
/** 发送 AI 助手消息 */
|
|
77
|
+
SendAiMessage(request: SendAiMessageRequest): Promise<SendAiMessageResponse>;
|
|
78
|
+
/** 重试失败的 AI 助手消息 */
|
|
79
|
+
RetryAiUserMessage(request: RetryAiUserMessageRequest): Promise<SendAiMessageResponse>;
|
|
80
|
+
/** 重新生成 AI 助手输出 */
|
|
81
|
+
RegenerateAiMessage(request: RegenerateAiMessageRequest): Promise<SendAiMessageResponse>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type { AiMessageStatus, Terminal } from "../../common/v1/enum";
|
|
2
|
+
import type { Timestamp } from "../../google/protobuf/timestamp";
|
|
3
|
+
import type { AiToolCall } from "./ai_tool";
|
|
4
|
+
/** AI 助手消息列表查询条件 */
|
|
5
|
+
export interface ListAiMessageRequest {
|
|
6
|
+
/** 会话ID */
|
|
7
|
+
session_id: string;
|
|
8
|
+
}
|
|
9
|
+
/** AI 助手消息列表响应 */
|
|
10
|
+
export interface ListAiMessageResponse {
|
|
11
|
+
/** 消息列表 */
|
|
12
|
+
messages: AiMessage[];
|
|
13
|
+
}
|
|
14
|
+
/** AI 助手会话列表查询条件 */
|
|
15
|
+
export interface ListAiSessionRequest {
|
|
16
|
+
/** 终端类型:枚举【Terminal】 */
|
|
17
|
+
terminal: Terminal;
|
|
18
|
+
}
|
|
19
|
+
/** AI 助手会话列表响应 */
|
|
20
|
+
export interface ListAiSessionResponse {
|
|
21
|
+
/** 会话列表 */
|
|
22
|
+
sessions: AiSession[];
|
|
23
|
+
}
|
|
24
|
+
/** AI 助手会话创建请求 */
|
|
25
|
+
export interface CreateAiSessionRequest {
|
|
26
|
+
/** 会话标题 */
|
|
27
|
+
title: string;
|
|
28
|
+
/** 终端类型:枚举【Terminal】 */
|
|
29
|
+
terminal: Terminal;
|
|
30
|
+
}
|
|
31
|
+
/** AI 助手会话创建响应 */
|
|
32
|
+
export interface CreateAiSessionResponse {
|
|
33
|
+
/** 会话信息 */
|
|
34
|
+
session: AiSession | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** AI 助手分支会话创建请求 */
|
|
37
|
+
export interface CreateAiSessionBranchRequest {
|
|
38
|
+
/** 来源会话ID */
|
|
39
|
+
source_session_id: string;
|
|
40
|
+
/** 分支锚点消息ID */
|
|
41
|
+
anchor_message_id: string;
|
|
42
|
+
/** 分支会话标题 */
|
|
43
|
+
title: string;
|
|
44
|
+
/** 终端类型:枚举【Terminal】 */
|
|
45
|
+
terminal: Terminal;
|
|
46
|
+
}
|
|
47
|
+
/** AI 助手分支会话创建响应 */
|
|
48
|
+
export interface CreateAiSessionBranchResponse {
|
|
49
|
+
/** 新会话信息 */
|
|
50
|
+
session: AiSession | undefined;
|
|
51
|
+
/** 新会话消息列表 */
|
|
52
|
+
messages: AiMessage[];
|
|
53
|
+
}
|
|
54
|
+
/** AI 助手会话更新请求 */
|
|
55
|
+
export interface UpdateAiSessionRequest {
|
|
56
|
+
/** 会话ID */
|
|
57
|
+
id: string;
|
|
58
|
+
/** 会话标题 */
|
|
59
|
+
title: string;
|
|
60
|
+
}
|
|
61
|
+
/** AI 助手会话更新响应 */
|
|
62
|
+
export interface UpdateAiSessionResponse {
|
|
63
|
+
/** 会话信息 */
|
|
64
|
+
session: AiSession | undefined;
|
|
65
|
+
}
|
|
66
|
+
/** AI 助手会话删除请求 */
|
|
67
|
+
export interface DeleteAiSessionRequest {
|
|
68
|
+
/** 会话ID */
|
|
69
|
+
id: string;
|
|
70
|
+
}
|
|
71
|
+
/** AI 助手会话删除响应 */
|
|
72
|
+
export interface DeleteAiSessionResponse {
|
|
73
|
+
}
|
|
74
|
+
/** AI 助手会话 */
|
|
75
|
+
export interface AiSession {
|
|
76
|
+
/** 会话ID */
|
|
77
|
+
id: string;
|
|
78
|
+
/** 会话标题 */
|
|
79
|
+
title: string;
|
|
80
|
+
/** 会话摘要 */
|
|
81
|
+
summary: string;
|
|
82
|
+
/** 更新时间 */
|
|
83
|
+
updated_at: Timestamp | undefined;
|
|
84
|
+
/** 终端类型:枚举【Terminal】 */
|
|
85
|
+
terminal: Terminal;
|
|
86
|
+
}
|
|
87
|
+
/** AI 助手消息 */
|
|
88
|
+
export interface AiMessage {
|
|
89
|
+
/** 消息ID */
|
|
90
|
+
id: string;
|
|
91
|
+
/** 输入内容 */
|
|
92
|
+
input_content: AiInputContent | undefined;
|
|
93
|
+
/** 输出内容 */
|
|
94
|
+
output_content: AiOutputContent | undefined;
|
|
95
|
+
/** 附件列表 */
|
|
96
|
+
attachments: AiAttachment[];
|
|
97
|
+
/** 创建时间 */
|
|
98
|
+
created_at: Timestamp | undefined;
|
|
99
|
+
/** 消息生成状态:枚举【AiMessageStatus】 */
|
|
100
|
+
status: AiMessageStatus;
|
|
101
|
+
/** Token 统计 */
|
|
102
|
+
token: AiToken | undefined;
|
|
103
|
+
/** 本次消息使用的工具调用记录 */
|
|
104
|
+
tools: AiToolCall[];
|
|
105
|
+
/** 首 Token 耗时毫秒 */
|
|
106
|
+
first_token_ms: number;
|
|
107
|
+
/** 总耗时毫秒 */
|
|
108
|
+
duration_ms: number;
|
|
109
|
+
}
|
|
110
|
+
/** AI 助手输入内容 */
|
|
111
|
+
export interface AiInputContent {
|
|
112
|
+
/** 内容类型 */
|
|
113
|
+
kind: string;
|
|
114
|
+
/** 内容正文 */
|
|
115
|
+
content: string;
|
|
116
|
+
}
|
|
117
|
+
/** AI 助手输出内容 */
|
|
118
|
+
export interface AiOutputContent {
|
|
119
|
+
/** 内容类型 */
|
|
120
|
+
kind: string;
|
|
121
|
+
/** 内容正文 */
|
|
122
|
+
content: string;
|
|
123
|
+
/** 回复来源:llm/fallback */
|
|
124
|
+
reply_source: string;
|
|
125
|
+
/** 回复使用的模型名称 */
|
|
126
|
+
model: string;
|
|
127
|
+
/** 是否为降级回复 */
|
|
128
|
+
fallback: boolean;
|
|
129
|
+
/** 降级原因 */
|
|
130
|
+
fallback_reason: string;
|
|
131
|
+
/** 流程标识 */
|
|
132
|
+
flow: string;
|
|
133
|
+
/** 流程步骤 */
|
|
134
|
+
step: string;
|
|
135
|
+
/** 移动端结构化内容JSON */
|
|
136
|
+
blocks_json: string;
|
|
137
|
+
}
|
|
138
|
+
/** AI 助手 Token 统计 */
|
|
139
|
+
export interface AiToken {
|
|
140
|
+
/** 输入 Token 数 */
|
|
141
|
+
input: number;
|
|
142
|
+
/** 输出 Token 数 */
|
|
143
|
+
output: number;
|
|
144
|
+
/** 缓存 Token 数 */
|
|
145
|
+
cache: number;
|
|
146
|
+
/** 总 Token 数 */
|
|
147
|
+
total: number;
|
|
148
|
+
}
|
|
149
|
+
/** AI 助手附件 */
|
|
150
|
+
export interface AiAttachment {
|
|
151
|
+
/** 附件ID */
|
|
152
|
+
id: string;
|
|
153
|
+
/** 附件名称 */
|
|
154
|
+
name: string;
|
|
155
|
+
/** 附件大小 */
|
|
156
|
+
size: number;
|
|
157
|
+
/** 附件地址 */
|
|
158
|
+
url: string;
|
|
159
|
+
/** 附件 MIME 类型 */
|
|
160
|
+
mime_type: string;
|
|
161
|
+
}
|
|
162
|
+
/** Base AI 助手会话服务 */
|
|
163
|
+
export interface AiSessionService {
|
|
164
|
+
/** 查询 AI 助手消息列表 */
|
|
165
|
+
ListAiMessage(request: ListAiMessageRequest): Promise<ListAiMessageResponse>;
|
|
166
|
+
/** 查询 AI 助手会话列表 */
|
|
167
|
+
ListAiSession(request: ListAiSessionRequest): Promise<ListAiSessionResponse>;
|
|
168
|
+
/** 创建 AI 助手会话 */
|
|
169
|
+
CreateAiSession(request: CreateAiSessionRequest): Promise<CreateAiSessionResponse>;
|
|
170
|
+
/** 从指定消息创建 AI 助手分支会话 */
|
|
171
|
+
CreateAiSessionBranch(request: CreateAiSessionBranchRequest): Promise<CreateAiSessionBranchResponse>;
|
|
172
|
+
/** 更新 AI 助手会话 */
|
|
173
|
+
UpdateAiSession(request: UpdateAiSessionRequest): Promise<UpdateAiSessionResponse>;
|
|
174
|
+
/** 删除 AI 助手会话 */
|
|
175
|
+
DeleteAiSession(request: DeleteAiSessionRequest): Promise<DeleteAiSessionResponse>;
|
|
176
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Terminal } from "../../common/v1/enum";
|
|
2
|
+
/** AI 助手快捷入口列表查询条件 */
|
|
3
|
+
export interface ListAiShortcutRequest {
|
|
4
|
+
/** 终端类型:枚举【Terminal】 */
|
|
5
|
+
terminal: Terminal;
|
|
6
|
+
}
|
|
7
|
+
/** AI 助手快捷入口列表响应 */
|
|
8
|
+
export interface ListAiShortcutResponse {
|
|
9
|
+
/** 快捷入口列表 */
|
|
10
|
+
shortcuts: AiShortcut[];
|
|
11
|
+
}
|
|
12
|
+
/** AI 助手快捷入口 */
|
|
13
|
+
export interface AiShortcut {
|
|
14
|
+
/** 快捷入口标识 */
|
|
15
|
+
key: string;
|
|
16
|
+
/** 展示标题 */
|
|
17
|
+
title: string;
|
|
18
|
+
/** 发送给助手的提示词 */
|
|
19
|
+
prompt: string;
|
|
20
|
+
/** 快捷入口动作 */
|
|
21
|
+
action: AiShortcutAction | undefined;
|
|
22
|
+
/** 依赖工具列表 */
|
|
23
|
+
required_tools: string[];
|
|
24
|
+
/** 排序值 */
|
|
25
|
+
sort: number;
|
|
26
|
+
/** 分组名称 */
|
|
27
|
+
group: string;
|
|
28
|
+
}
|
|
29
|
+
/** AI 助手快捷入口动作 */
|
|
30
|
+
export interface AiShortcutAction {
|
|
31
|
+
/** 流程标识 */
|
|
32
|
+
flow: string;
|
|
33
|
+
/** 流程步骤 */
|
|
34
|
+
step: string;
|
|
35
|
+
/** 动作类型 */
|
|
36
|
+
type: string;
|
|
37
|
+
/** 动作负载JSON */
|
|
38
|
+
payload_json: string;
|
|
39
|
+
}
|
|
40
|
+
/** AI 助手工具调用记录 */
|
|
41
|
+
export interface AiToolCall {
|
|
42
|
+
/** 工具类型:function/server */
|
|
43
|
+
type: string;
|
|
44
|
+
/** 工具名称 */
|
|
45
|
+
name: string;
|
|
46
|
+
/** 工具展示名称 */
|
|
47
|
+
title: string;
|
|
48
|
+
/** 工具调用状态 */
|
|
49
|
+
status: string;
|
|
50
|
+
/** 工具原始入参JSON */
|
|
51
|
+
input: string;
|
|
52
|
+
/** 工具原始出参JSON */
|
|
53
|
+
output: string;
|
|
54
|
+
}
|
|
55
|
+
/** Base AI 助手工具服务 */
|
|
56
|
+
export interface AiToolService {
|
|
57
|
+
/** 查询 AI 助手快捷入口列表 */
|
|
58
|
+
ListAiShortcut(request: ListAiShortcutRequest): Promise<ListAiShortcutResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { PasswordCrypto } from "../../common/v1/types";
|
|
2
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
3
|
+
/** 个人中心三方账号绑定列表查询条件 */
|
|
4
|
+
export interface ListOauthBindingRequest {
|
|
5
|
+
}
|
|
6
|
+
/** 个人中心三方账号绑定列表响应 */
|
|
7
|
+
export interface ListOauthBindingResponse {
|
|
8
|
+
/** 三方账号绑定列表 */
|
|
9
|
+
bindings: OauthBinding[];
|
|
10
|
+
}
|
|
11
|
+
/** 三方登录方式查询条件 */
|
|
12
|
+
export interface ListOauthProviderRequest {
|
|
13
|
+
}
|
|
14
|
+
/** 三方登录方式查询结果 */
|
|
15
|
+
export interface ListOauthProviderResponse {
|
|
16
|
+
/** 三方登录方式列表 */
|
|
17
|
+
providers: OauthProvider[];
|
|
18
|
+
}
|
|
19
|
+
/** 三方登录授权地址创建条件 */
|
|
20
|
+
export interface CreateOauthAuthorizationRequest {
|
|
21
|
+
/** 登录方式标识 */
|
|
22
|
+
provider: string;
|
|
23
|
+
/** 三方登录完成后的前端接收地址 */
|
|
24
|
+
redirect_url: string;
|
|
25
|
+
}
|
|
26
|
+
/** 三方登录授权地址创建结果 */
|
|
27
|
+
export interface CreateOauthAuthorizationResponse {
|
|
28
|
+
/** 三方授权地址 */
|
|
29
|
+
authorization_url: string;
|
|
30
|
+
}
|
|
31
|
+
/** 个人中心三方账号绑定授权地址创建条件 */
|
|
32
|
+
export interface CreateOauthBindingAuthorizationRequest {
|
|
33
|
+
/** 登录方式标识 */
|
|
34
|
+
provider: string;
|
|
35
|
+
/** 绑定完成后回跳地址 */
|
|
36
|
+
redirect_url: string;
|
|
37
|
+
}
|
|
38
|
+
/** 个人中心三方账号绑定授权地址创建响应 */
|
|
39
|
+
export interface CreateOauthBindingAuthorizationResponse {
|
|
40
|
+
/** 三方授权地址 */
|
|
41
|
+
authorization_url: string;
|
|
42
|
+
}
|
|
43
|
+
/** 三方登录会话创建请求 */
|
|
44
|
+
export interface CreateOauthSessionRequest {
|
|
45
|
+
/** 登录方式标识 */
|
|
46
|
+
provider: string;
|
|
47
|
+
/** 三方授权码 */
|
|
48
|
+
code: string;
|
|
49
|
+
}
|
|
50
|
+
/** 绑定已有账号的三方登录会话创建条件 */
|
|
51
|
+
export interface BindOauthSessionRequest {
|
|
52
|
+
/** 登录方式标识 */
|
|
53
|
+
provider: string;
|
|
54
|
+
/** 三方授权码 */
|
|
55
|
+
code: string;
|
|
56
|
+
/** 租户编码 */
|
|
57
|
+
tenant_code: string;
|
|
58
|
+
/** 用户名 */
|
|
59
|
+
user_name: string;
|
|
60
|
+
/** 用户密码 */
|
|
61
|
+
password: PasswordCrypto | undefined;
|
|
62
|
+
/** 验证码 */
|
|
63
|
+
captcha_code: string;
|
|
64
|
+
/** 验证码Id */
|
|
65
|
+
captcha_id: string;
|
|
66
|
+
}
|
|
67
|
+
/** 三方登录会话创建响应 */
|
|
68
|
+
export interface CreateOauthSessionResponse {
|
|
69
|
+
/** 访问令牌,必选项。 */
|
|
70
|
+
access_token: string;
|
|
71
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
72
|
+
refresh_token: string;
|
|
73
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
74
|
+
token_type: string;
|
|
75
|
+
/** 令牌有效时间,单位为秒。 */
|
|
76
|
+
expires_in: number;
|
|
77
|
+
/** 是否需要绑定已有账号。 */
|
|
78
|
+
binding_required: boolean;
|
|
79
|
+
}
|
|
80
|
+
/** 三方登录回调请求 */
|
|
81
|
+
export interface HandleOauthCallbackRequest {
|
|
82
|
+
/** 登录方式标识 */
|
|
83
|
+
provider: string;
|
|
84
|
+
/** 三方授权码 */
|
|
85
|
+
code: string;
|
|
86
|
+
/** 授权状态码 */
|
|
87
|
+
state: string;
|
|
88
|
+
/** 三方错误码 */
|
|
89
|
+
error: string;
|
|
90
|
+
/** 三方错误描述 */
|
|
91
|
+
error_description: string;
|
|
92
|
+
}
|
|
93
|
+
/** 三方登录回调结果 */
|
|
94
|
+
export interface HandleOauthCallbackResponse {
|
|
95
|
+
}
|
|
96
|
+
/** 三方登录票据兑换请求 */
|
|
97
|
+
export interface ExchangeOauthTicketRequest {
|
|
98
|
+
/** 三方登录票据 */
|
|
99
|
+
ticket: string;
|
|
100
|
+
}
|
|
101
|
+
/** 三方登录票据兑换结果 */
|
|
102
|
+
export interface ExchangeOauthTicketResponse {
|
|
103
|
+
/** 访问令牌,必选项。 */
|
|
104
|
+
access_token: string;
|
|
105
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
106
|
+
refresh_token: string;
|
|
107
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
108
|
+
token_type: string;
|
|
109
|
+
/** 令牌有效时间,单位为秒。 */
|
|
110
|
+
expires_in: number;
|
|
111
|
+
}
|
|
112
|
+
/** 个人中心三方账号绑定回调请求 */
|
|
113
|
+
export interface HandleOauthBindingCallbackRequest {
|
|
114
|
+
/** 登录方式标识 */
|
|
115
|
+
provider: string;
|
|
116
|
+
/** 三方授权码 */
|
|
117
|
+
code: string;
|
|
118
|
+
/** 授权状态码 */
|
|
119
|
+
state: string;
|
|
120
|
+
/** 三方错误码 */
|
|
121
|
+
error: string;
|
|
122
|
+
/** 三方错误描述 */
|
|
123
|
+
error_description: string;
|
|
124
|
+
}
|
|
125
|
+
/** 个人中心三方账号绑定回调响应 */
|
|
126
|
+
export interface HandleOauthBindingCallbackResponse {
|
|
127
|
+
}
|
|
128
|
+
/** 个人中心三方账号解绑条件 */
|
|
129
|
+
export interface UnbindOauthAccountRequest {
|
|
130
|
+
/** 登录方式标识 */
|
|
131
|
+
provider: string;
|
|
132
|
+
}
|
|
133
|
+
/** 三方登录方式信息 */
|
|
134
|
+
export interface OauthProvider {
|
|
135
|
+
/** 登录方式标识 */
|
|
136
|
+
provider: string;
|
|
137
|
+
}
|
|
138
|
+
/** 个人中心三方账号绑定信息 */
|
|
139
|
+
export interface OauthBinding {
|
|
140
|
+
/** 登录方式标识 */
|
|
141
|
+
provider: string;
|
|
142
|
+
/** 是否已绑定 */
|
|
143
|
+
bound: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** Base三方登录公共服务 */
|
|
146
|
+
export interface OauthService {
|
|
147
|
+
/** 查询个人中心三方账号绑定列表 */
|
|
148
|
+
ListOauthBinding(request: ListOauthBindingRequest): Promise<ListOauthBindingResponse>;
|
|
149
|
+
/** 查询三方登录方式 */
|
|
150
|
+
ListOauthProvider(request: ListOauthProviderRequest): Promise<ListOauthProviderResponse>;
|
|
151
|
+
/** 创建三方登录授权地址 */
|
|
152
|
+
CreateOauthAuthorization(request: CreateOauthAuthorizationRequest): Promise<CreateOauthAuthorizationResponse>;
|
|
153
|
+
/** 创建个人中心三方账号绑定授权地址 */
|
|
154
|
+
CreateOauthBindingAuthorization(request: CreateOauthBindingAuthorizationRequest): Promise<CreateOauthBindingAuthorizationResponse>;
|
|
155
|
+
/** 创建三方登录会话 */
|
|
156
|
+
CreateOauthSession(request: CreateOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
157
|
+
/** 绑定已有账号并创建三方登录会话 */
|
|
158
|
+
BindOauthSession(request: BindOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
159
|
+
/** 处理三方登录回调 */
|
|
160
|
+
HandleOauthCallback(request: HandleOauthCallbackRequest): Promise<HandleOauthCallbackResponse>;
|
|
161
|
+
/** 兑换三方登录票据 */
|
|
162
|
+
ExchangeOauthTicket(request: ExchangeOauthTicketRequest): Promise<ExchangeOauthTicketResponse>;
|
|
163
|
+
/** 处理个人中心三方账号绑定回调 */
|
|
164
|
+
HandleOauthBindingCallback(request: HandleOauthBindingCallbackRequest): Promise<HandleOauthBindingCallbackResponse>;
|
|
165
|
+
/** 解绑个人中心三方账号 */
|
|
166
|
+
UnbindOauthAccount(request: UnbindOauthAccountRequest): Promise<Empty>;
|
|
167
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
2
|
+
/** SSE订阅请求参数 */
|
|
3
|
+
export interface SubscribeSseRequest {
|
|
4
|
+
/** SSE流标识 */
|
|
5
|
+
stream: string;
|
|
6
|
+
/** SSE通道ID */
|
|
7
|
+
channel_id?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Base SSE服务 */
|
|
10
|
+
export interface SseService {
|
|
11
|
+
/** 订阅SSE事件流 */
|
|
12
|
+
SubscribeSse(request: SubscribeSseRequest): Promise<Empty>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** 状态设置请求参数 */
|
|
2
|
+
export interface SetStatusRequest {
|
|
3
|
+
/** 主键id */
|
|
4
|
+
id: number;
|
|
5
|
+
/** 状态 */
|
|
6
|
+
status: number;
|
|
7
|
+
}
|
|
8
|
+
/** 树形选项响应 */
|
|
9
|
+
export interface TreeOptionResponse {
|
|
10
|
+
/** 选项列表 */
|
|
11
|
+
list: TreeOptionResponse_Option[];
|
|
12
|
+
}
|
|
13
|
+
/** 树形选项 */
|
|
14
|
+
export interface TreeOptionResponse_Option {
|
|
15
|
+
/** 选项名 */
|
|
16
|
+
label: string;
|
|
17
|
+
/** 选项值 */
|
|
18
|
+
value: number;
|
|
19
|
+
/** 是否禁用 */
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
/** 是否存在子节点 */
|
|
22
|
+
has_children: boolean;
|
|
23
|
+
/** 子节点树 */
|
|
24
|
+
children: TreeOptionResponse_Option[];
|
|
25
|
+
}
|
|
26
|
+
/** 下拉选项响应 */
|
|
27
|
+
export interface SelectOptionResponse {
|
|
28
|
+
/** 选项列表 */
|
|
29
|
+
list: SelectOptionResponse_Option[];
|
|
30
|
+
}
|
|
31
|
+
/** 下拉选项 */
|
|
32
|
+
export interface SelectOptionResponse_Option {
|
|
33
|
+
/** 选项名 */
|
|
34
|
+
label: string;
|
|
35
|
+
/** 选项值 */
|
|
36
|
+
value: number;
|
|
37
|
+
/** 是否禁用 */
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** 应用树形选项响应 */
|
|
41
|
+
export interface AppTreeOptionResponse {
|
|
42
|
+
/** 选项列表 */
|
|
43
|
+
list: AppTreeOptionResponse_Option[];
|
|
44
|
+
}
|
|
45
|
+
/** 应用树形选项 */
|
|
46
|
+
export interface AppTreeOptionResponse_Option {
|
|
47
|
+
/** 值。必填 */
|
|
48
|
+
value: string;
|
|
49
|
+
/** 显示文字。必填 */
|
|
50
|
+
text: string;
|
|
51
|
+
/** 是否默认选中。默认值false */
|
|
52
|
+
selected: boolean;
|
|
53
|
+
/** 是否禁用。默认值false */
|
|
54
|
+
disable: boolean;
|
|
55
|
+
/** 子节点树 */
|
|
56
|
+
children: AppTreeOptionResponse_Option[];
|
|
57
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** 状态 */
|
|
2
|
+
export declare enum Status {
|
|
3
|
+
UNKNOWN = 0,
|
|
4
|
+
/** ENABLE - 启用 */
|
|
5
|
+
ENABLE = 1,
|
|
6
|
+
/** DISABLE - 禁用 */
|
|
7
|
+
DISABLE = 2
|
|
8
|
+
}
|
|
9
|
+
/** 系统配置位置 */
|
|
10
|
+
export declare enum BaseConfigSite {
|
|
11
|
+
UNKNOWN_BCS = 0,
|
|
12
|
+
/** SYSTEM - 系统内使用 */
|
|
13
|
+
SYSTEM = 1,
|
|
14
|
+
/** ADMIN - 管理端 */
|
|
15
|
+
ADMIN = 2,
|
|
16
|
+
/** APP - 移动端 */
|
|
17
|
+
APP = 3
|
|
18
|
+
}
|
|
19
|
+
/** 密码加密场景枚举 */
|
|
20
|
+
export declare enum PasswordCryptoScene {
|
|
21
|
+
/** UNKNOWN_PCS - 未指定密码加密场景 */
|
|
22
|
+
UNKNOWN_PCS = 0,
|
|
23
|
+
/** LOGIN - 登录密码加密场景 */
|
|
24
|
+
LOGIN = 1,
|
|
25
|
+
/** CREATE_BASE_USER - 新增后台用户密码加密场景 */
|
|
26
|
+
CREATE_BASE_USER = 2,
|
|
27
|
+
/** RESET_BASE_USER_PASSWORD - 重置后台用户密码加密场景 */
|
|
28
|
+
RESET_BASE_USER_PASSWORD = 3,
|
|
29
|
+
/** UPDATE_USER_PASSWORD - 个人修改密码加密场景 */
|
|
30
|
+
UPDATE_USER_PASSWORD = 4
|
|
31
|
+
}
|
|
32
|
+
/** AI 助手消息状态 */
|
|
33
|
+
export declare enum AiMessageStatus {
|
|
34
|
+
/** UNKNOWN_AAMS - 未知AI助手消息状态 */
|
|
35
|
+
UNKNOWN_AAMS = 0,
|
|
36
|
+
/** GENERATING_AAMS - 生成中 */
|
|
37
|
+
GENERATING_AAMS = 1,
|
|
38
|
+
/** SUCCESS_AAMS - 成功 */
|
|
39
|
+
SUCCESS_AAMS = 2,
|
|
40
|
+
/** FAILED_AAMS - 失败 */
|
|
41
|
+
FAILED_AAMS = 3
|
|
42
|
+
}
|
|
43
|
+
/** 支付通知资源类型 */
|
|
44
|
+
export declare enum ResourceType {
|
|
45
|
+
/** TRANSACTION - 支付 */
|
|
46
|
+
TRANSACTION = 0,
|
|
47
|
+
/** REFUND - 退款 */
|
|
48
|
+
REFUND = 1
|
|
49
|
+
}
|
|
50
|
+
/** 终端类型 */
|
|
51
|
+
export declare enum Terminal {
|
|
52
|
+
/** TERMINAL_UNSPECIFIED - 未知终端 */
|
|
53
|
+
TERMINAL_UNSPECIFIED = 0,
|
|
54
|
+
/** TERMINAL_APP - 移动端 */
|
|
55
|
+
TERMINAL_APP = 1,
|
|
56
|
+
/** TERMINAL_ADMIN - 管理端 */
|
|
57
|
+
TERMINAL_ADMIN = 2
|
|
58
|
+
}
|