@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.
Files changed (208) hide show
  1. package/README.md +137 -0
  2. package/dist/package/declarations/index.d.ts +1 -0
  3. package/dist/package/declarations/src/ai.d.ts +10 -0
  4. package/dist/package/declarations/src/api/base/ai_message.d.ts +27 -0
  5. package/dist/package/declarations/src/api/base/ai_session.d.ts +17 -0
  6. package/dist/package/declarations/src/api/base/ai_tool.d.ts +7 -0
  7. package/dist/package/declarations/src/api/base/oauth.d.ts +13 -0
  8. package/dist/package/declarations/src/api/base/sse.d.ts +31 -0
  9. package/dist/package/declarations/src/api/system/auth.d.ts +17 -0
  10. package/dist/package/declarations/src/api/system/base_api.d.ts +22 -0
  11. package/dist/package/declarations/src/api/system/base_area.d.ts +19 -0
  12. package/dist/package/declarations/src/api/system/base_config.d.ts +20 -0
  13. package/dist/package/declarations/src/api/system/base_dept.d.ts +21 -0
  14. package/dist/package/declarations/src/api/system/base_dict.d.ts +32 -0
  15. package/dist/package/declarations/src/api/system/base_job.d.ts +28 -0
  16. package/dist/package/declarations/src/api/system/base_log.d.ts +9 -0
  17. package/dist/package/declarations/src/api/system/base_menu.d.ts +21 -0
  18. package/dist/package/declarations/src/api/system/base_migration.d.ts +10 -0
  19. package/dist/package/declarations/src/api/system/base_post.d.ts +21 -0
  20. package/dist/package/declarations/src/api/system/base_role.d.ts +23 -0
  21. package/dist/package/declarations/src/api/system/base_tenant.d.ts +21 -0
  22. package/dist/package/declarations/src/api/system/base_user.d.ts +23 -0
  23. package/dist/package/declarations/src/api/system/code_gen.d.ts +14 -0
  24. package/dist/package/declarations/src/api/system/code_gen_column.d.ts +12 -0
  25. package/dist/package/declarations/src/api/system/code_gen_proto.d.ts +10 -0
  26. package/dist/package/declarations/src/api/system/code_gen_sse.d.ts +8 -0
  27. package/dist/package/declarations/src/api/system/code_gen_table.d.ts +18 -0
  28. package/dist/package/declarations/src/api/system/project_document.d.ts +9 -0
  29. package/dist/package/declarations/src/components/Ai.vue.d.ts +3 -0
  30. package/dist/package/declarations/src/index.d.ts +3 -0
  31. package/dist/package/declarations/src/module.d.ts +2 -0
  32. package/dist/package/declarations/src/rpc/base/v1/ai_message.d.ts +82 -0
  33. package/dist/package/declarations/src/rpc/base/v1/ai_session.d.ts +176 -0
  34. package/dist/package/declarations/src/rpc/base/v1/ai_tool.d.ts +59 -0
  35. package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +167 -0
  36. package/dist/package/declarations/src/rpc/base/v1/sse.d.ts +13 -0
  37. package/dist/package/declarations/src/rpc/common/v1/common.d.ts +57 -0
  38. package/dist/package/declarations/src/rpc/common/v1/enum.d.ts +58 -0
  39. package/dist/package/declarations/src/rpc/common/v1/types.d.ts +60 -0
  40. package/dist/package/declarations/src/rpc/google/protobuf/empty.d.ts +11 -0
  41. package/dist/package/declarations/src/rpc/google/protobuf/timestamp.d.ts +107 -0
  42. package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +156 -0
  43. package/dist/package/declarations/src/rpc/system/admin/v1/base_api.d.ts +193 -0
  44. package/dist/package/declarations/src/rpc/system/admin/v1/base_area.d.ts +82 -0
  45. package/dist/package/declarations/src/rpc/system/admin/v1/base_config.d.ts +112 -0
  46. package/dist/package/declarations/src/rpc/system/admin/v1/base_dept.d.ts +112 -0
  47. package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +215 -0
  48. package/dist/package/declarations/src/rpc/system/admin/v1/base_job.d.ts +177 -0
  49. package/dist/package/declarations/src/rpc/system/admin/v1/base_log.d.ts +87 -0
  50. package/dist/package/declarations/src/rpc/system/admin/v1/base_menu.d.ts +151 -0
  51. package/dist/package/declarations/src/rpc/system/admin/v1/base_migration.d.ts +64 -0
  52. package/dist/package/declarations/src/rpc/system/admin/v1/base_post.d.ts +112 -0
  53. package/dist/package/declarations/src/rpc/system/admin/v1/base_role.d.ts +128 -0
  54. package/dist/package/declarations/src/rpc/system/admin/v1/base_tenant.d.ts +112 -0
  55. package/dist/package/declarations/src/rpc/system/admin/v1/base_user.d.ts +161 -0
  56. package/dist/package/declarations/src/rpc/system/admin/v1/code_gen.d.ts +155 -0
  57. package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_column.d.ts +143 -0
  58. package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_proto.d.ts +86 -0
  59. package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_table.d.ts +149 -0
  60. package/dist/package/declarations/src/rpc/system/admin/v1/project_document.d.ts +64 -0
  61. package/dist/package/declarations/src/rpc/system/common/v1/enum.d.ts +67 -0
  62. package/dist/package/declarations/src/views/ai/chat/attachment.d.ts +14 -0
  63. package/dist/package/declarations/src/views/ai/chat/components/AiMarkdown.vue.d.ts +13 -0
  64. package/dist/package/declarations/src/views/ai/chat/components/ChatPanel.vue.d.ts +45 -0
  65. package/dist/package/declarations/src/views/ai/chat/components/SessionPanel.vue.d.ts +34 -0
  66. package/dist/package/declarations/src/views/ai/chat/components/XSender.vue.d.ts +12 -0
  67. package/dist/package/declarations/src/views/ai/chat/index.vue.d.ts +4 -0
  68. package/dist/package/declarations/src/views/ai/chat/message.d.ts +59 -0
  69. package/dist/package/declarations/src/views/ai/chat/stream.d.ts +10 -0
  70. package/dist/package/declarations/src/views/ai/chat/types.d.ts +115 -0
  71. package/dist/package/declarations/src/views/base/api/index.vue.d.ts +3 -0
  72. package/dist/package/declarations/src/views/base/area/index.vue.d.ts +3 -0
  73. package/dist/package/declarations/src/views/base/config/index.vue.d.ts +3 -0
  74. package/dist/package/declarations/src/views/base/dept/index.vue.d.ts +3 -0
  75. package/dist/package/declarations/src/views/base/dict/index.vue.d.ts +3 -0
  76. package/dist/package/declarations/src/views/base/dict/item.vue.d.ts +3 -0
  77. package/dist/package/declarations/src/views/base/job/index.vue.d.ts +3 -0
  78. package/dist/package/declarations/src/views/base/job/log.vue.d.ts +3 -0
  79. package/dist/package/declarations/src/views/base/log/index.vue.d.ts +3 -0
  80. package/dist/package/declarations/src/views/base/menu/index.vue.d.ts +3 -0
  81. package/dist/package/declarations/src/views/base/migration/index.vue.d.ts +4 -0
  82. package/dist/package/declarations/src/views/base/post/index.vue.d.ts +3 -0
  83. package/dist/package/declarations/src/views/base/role/index.vue.d.ts +3 -0
  84. package/dist/package/declarations/src/views/base/tenant/index.vue.d.ts +3 -0
  85. package/dist/package/declarations/src/views/base/user/components/dept-tree.vue.d.ts +19 -0
  86. package/dist/package/declarations/src/views/base/user/index.vue.d.ts +3 -0
  87. package/dist/package/declarations/src/views/profile/components/base.vue.d.ts +13 -0
  88. package/dist/package/declarations/src/views/profile/components/password.vue.d.ts +3 -0
  89. package/dist/package/declarations/src/views/profile/components/security.vue.d.ts +15 -0
  90. package/dist/package/declarations/src/views/profile/index.vue.d.ts +3 -0
  91. package/dist/package/declarations/src/views/tool/api-doc/index.vue.d.ts +4 -0
  92. package/dist/package/declarations/src/views/tool/code-gen/code-preview/index.vue.d.ts +3 -0
  93. package/dist/package/declarations/src/views/tool/code-gen/columns/index.vue.d.ts +3 -0
  94. package/dist/package/declarations/src/views/tool/code-gen/columns/option-copy.d.ts +25 -0
  95. package/dist/package/declarations/src/views/tool/code-gen/components/CodeGenProgressDialog.vue.d.ts +16 -0
  96. package/dist/package/declarations/src/views/tool/code-gen/components/CodePreviewPane.vue.d.ts +9 -0
  97. package/dist/package/declarations/src/views/tool/code-gen/config.d.ts +32 -0
  98. package/dist/package/declarations/src/views/tool/code-gen/preview/capabilities.d.ts +20 -0
  99. package/dist/package/declarations/src/views/tool/code-gen/preview/data.d.ts +42 -0
  100. package/dist/package/declarations/src/views/tool/code-gen/preview/index.vue.d.ts +3 -0
  101. package/dist/package/declarations/src/views/tool/code-gen/proto/index.vue.d.ts +3 -0
  102. package/dist/package/declarations/src/views/tool/code-gen/table/index.vue.d.ts +3 -0
  103. package/dist/package/declarations/src/views/tool/project-doc/index.vue.d.ts +4 -0
  104. package/dist/package/src/ai.ts +16 -0
  105. package/dist/package/src/api/base/ai_message.ts +139 -0
  106. package/dist/package/src/api/base/ai_session.ts +77 -0
  107. package/dist/package/src/api/base/ai_tool.ts +22 -0
  108. package/dist/package/src/api/base/oauth.ts +47 -0
  109. package/dist/package/src/api/base/sse.ts +192 -0
  110. package/dist/package/src/api/system/auth.ts +65 -0
  111. package/dist/package/src/api/system/base_api.ts +95 -0
  112. package/dist/package/src/api/system/base_area.ts +73 -0
  113. package/dist/package/src/api/system/base_config.ts +82 -0
  114. package/dist/package/src/api/system/base_dept.ts +83 -0
  115. package/dist/package/src/api/system/base_dict.ts +144 -0
  116. package/dist/package/src/api/system/base_job.ts +125 -0
  117. package/dist/package/src/api/system/base_log.ts +32 -0
  118. package/dist/package/src/api/system/base_menu.ts +83 -0
  119. package/dist/package/src/api/system/base_migration.ts +35 -0
  120. package/dist/package/src/api/system/base_post.ts +83 -0
  121. package/dist/package/src/api/system/base_role.ts +93 -0
  122. package/dist/package/src/api/system/base_tenant.ts +83 -0
  123. package/dist/package/src/api/system/base_user.ts +93 -0
  124. package/dist/package/src/api/system/code_gen.ts +56 -0
  125. package/dist/package/src/api/system/code_gen_column.ts +43 -0
  126. package/dist/package/src/api/system/code_gen_proto.ts +32 -0
  127. package/dist/package/src/api/system/code_gen_sse.ts +33 -0
  128. package/dist/package/src/api/system/code_gen_table.ts +74 -0
  129. package/dist/package/src/api/system/project_document.ts +33 -0
  130. package/dist/package/src/components/Ai.vue +57 -0
  131. package/dist/package/src/index.ts +3 -0
  132. package/dist/package/src/module.ts +17 -0
  133. package/dist/package/src/rpc/base/v1/ai_message.ts +98 -0
  134. package/dist/package/src/rpc/base/v1/ai_session.ts +214 -0
  135. package/dist/package/src/rpc/base/v1/ai_tool.ts +74 -0
  136. package/dist/package/src/rpc/base/v1/oauth.ts +199 -0
  137. package/dist/package/src/rpc/base/v1/sse.ts +22 -0
  138. package/dist/package/src/rpc/common/v1/common.ts +71 -0
  139. package/dist/package/src/rpc/common/v1/enum.ts +71 -0
  140. package/dist/package/src/rpc/common/v1/types.ts +77 -0
  141. package/dist/package/src/rpc/google/protobuf/empty.ts +19 -0
  142. package/dist/package/src/rpc/google/protobuf/timestamp.ts +115 -0
  143. package/dist/package/src/rpc/system/admin/v1/auth.ts +208 -0
  144. package/dist/package/src/rpc/system/admin/v1/base_api.ts +241 -0
  145. package/dist/package/src/rpc/system/admin/v1/base_area.ts +105 -0
  146. package/dist/package/src/rpc/system/admin/v1/base_config.ts +140 -0
  147. package/dist/package/src/rpc/system/admin/v1/base_dept.ts +140 -0
  148. package/dist/package/src/rpc/system/admin/v1/base_dict.ts +249 -0
  149. package/dist/package/src/rpc/system/admin/v1/base_job.ts +206 -0
  150. package/dist/package/src/rpc/system/admin/v1/base_log.ts +101 -0
  151. package/dist/package/src/rpc/system/admin/v1/base_menu.ts +195 -0
  152. package/dist/package/src/rpc/system/admin/v1/base_migration.ts +81 -0
  153. package/dist/package/src/rpc/system/admin/v1/base_post.ts +134 -0
  154. package/dist/package/src/rpc/system/admin/v1/base_role.ts +151 -0
  155. package/dist/package/src/rpc/system/admin/v1/base_tenant.ts +134 -0
  156. package/dist/package/src/rpc/system/admin/v1/base_user.ts +190 -0
  157. package/dist/package/src/rpc/system/admin/v1/code_gen.ts +176 -0
  158. package/dist/package/src/rpc/system/admin/v1/code_gen_column.ts +170 -0
  159. package/dist/package/src/rpc/system/admin/v1/code_gen_proto.ts +104 -0
  160. package/dist/package/src/rpc/system/admin/v1/code_gen_table.ts +179 -0
  161. package/dist/package/src/rpc/system/admin/v1/project_document.ts +79 -0
  162. package/dist/package/src/rpc/system/common/v1/enum.ts +80 -0
  163. package/dist/package/src/typings/swagger-ui-dist.d.ts +28 -0
  164. package/dist/package/src/typings/x-markdown-vue.d.ts +1 -0
  165. package/dist/package/src/views/ai/chat/attachment.ts +65 -0
  166. package/dist/package/src/views/ai/chat/components/AiMarkdown.vue +162 -0
  167. package/dist/package/src/views/ai/chat/components/ChatPanel.vue +1861 -0
  168. package/dist/package/src/views/ai/chat/components/SessionPanel.vue +316 -0
  169. package/dist/package/src/views/ai/chat/components/XSender.vue +554 -0
  170. package/dist/package/src/views/ai/chat/index.vue +848 -0
  171. package/dist/package/src/views/ai/chat/message.ts +416 -0
  172. package/dist/package/src/views/ai/chat/stream.ts +115 -0
  173. package/dist/package/src/views/ai/chat/types.ts +126 -0
  174. package/dist/package/src/views/base/api/index.vue +455 -0
  175. package/dist/package/src/views/base/area/index.vue +269 -0
  176. package/dist/package/src/views/base/config/index.vue +530 -0
  177. package/dist/package/src/views/base/dept/index.vue +461 -0
  178. package/dist/package/src/views/base/dict/index.vue +304 -0
  179. package/dist/package/src/views/base/dict/item.vue +373 -0
  180. package/dist/package/src/views/base/job/index.vue +535 -0
  181. package/dist/package/src/views/base/job/log.vue +202 -0
  182. package/dist/package/src/views/base/log/index.vue +317 -0
  183. package/dist/package/src/views/base/menu/index.vue +944 -0
  184. package/dist/package/src/views/base/migration/index.vue +791 -0
  185. package/dist/package/src/views/base/post/index.vue +324 -0
  186. package/dist/package/src/views/base/role/index.vue +684 -0
  187. package/dist/package/src/views/base/tenant/index.vue +328 -0
  188. package/dist/package/src/views/base/user/components/dept-tree.vue +75 -0
  189. package/dist/package/src/views/base/user/index.vue +783 -0
  190. package/dist/package/src/views/profile/components/base.vue +320 -0
  191. package/dist/package/src/views/profile/components/password.vue +269 -0
  192. package/dist/package/src/views/profile/components/security.vue +443 -0
  193. package/dist/package/src/views/profile/index.vue +199 -0
  194. package/dist/package/src/views/tool/api-doc/index.vue +275 -0
  195. package/dist/package/src/views/tool/code-gen/code-preview/index.vue +233 -0
  196. package/dist/package/src/views/tool/code-gen/columns/index.vue +1456 -0
  197. package/dist/package/src/views/tool/code-gen/columns/option-copy.ts +125 -0
  198. package/dist/package/src/views/tool/code-gen/components/CodeGenProgressDialog.vue +328 -0
  199. package/dist/package/src/views/tool/code-gen/components/CodePreviewPane.vue +42 -0
  200. package/dist/package/src/views/tool/code-gen/config.ts +175 -0
  201. package/dist/package/src/views/tool/code-gen/preview/capabilities.ts +34 -0
  202. package/dist/package/src/views/tool/code-gen/preview/data.ts +331 -0
  203. package/dist/package/src/views/tool/code-gen/preview/index.vue +831 -0
  204. package/dist/package/src/views/tool/code-gen/proto/index.vue +703 -0
  205. package/dist/package/src/views/tool/code-gen/table/index.vue +864 -0
  206. package/dist/package/src/views/tool/project-doc/index.vue +561 -0
  207. package/package.json +60 -0
  208. package/tsconfig.json +13 -0
@@ -0,0 +1,64 @@
1
+ /** 项目文档树查询条件 */
2
+ export interface TreeProjectDocumentRequest {
3
+ }
4
+ /** 项目文档树响应 */
5
+ export interface TreeProjectDocumentResponse {
6
+ /** 项目文档树 */
7
+ projects: ProjectDocumentProject[];
8
+ }
9
+ /** 项目文档详情查询条件 */
10
+ export interface GetProjectDocumentRequest {
11
+ /** 项目文档ID */
12
+ id: string;
13
+ }
14
+ /** 项目文档目录项 */
15
+ export interface ProjectDocumentListItem {
16
+ /** 项目文档ID */
17
+ id: string;
18
+ /** 项目内相对路径 */
19
+ path: string;
20
+ /** Markdown文件更新时间,RFC3339格式 */
21
+ updated_at: string;
22
+ }
23
+ /** 项目文档树 */
24
+ export interface ProjectDocumentProject {
25
+ /** 与OpenAPI文档一致的项目标识 */
26
+ key: string;
27
+ /** 与OpenAPI文档一致的项目名称 */
28
+ name: string;
29
+ /** 项目根目录下的文档 */
30
+ documents: ProjectDocumentListItem[];
31
+ /** 项目根目录下的子目录 */
32
+ directories: ProjectDocumentDirectory[];
33
+ }
34
+ /** 项目文档目录节点 */
35
+ export interface ProjectDocumentDirectory {
36
+ /** 目录名称 */
37
+ name: string;
38
+ /** 项目内相对目录路径 */
39
+ path: string;
40
+ /** 当前目录下的文档 */
41
+ documents: ProjectDocumentListItem[];
42
+ /** 当前目录下的子目录 */
43
+ directories: ProjectDocumentDirectory[];
44
+ }
45
+ /** 项目文档 */
46
+ export interface ProjectDocument {
47
+ /** 项目文档ID */
48
+ id: string;
49
+ /** 与OpenAPI文档一致的项目标识 */
50
+ project_key: string;
51
+ /** 与OpenAPI文档一致的项目名称 */
52
+ project_name: string;
53
+ /** 项目内相对路径 */
54
+ path: string;
55
+ /** Markdown文档内容 */
56
+ content: string;
57
+ }
58
+ /** 项目文档服务 */
59
+ export interface ProjectDocumentService {
60
+ /** 查询项目文档树 */
61
+ TreeProjectDocument(request: TreeProjectDocumentRequest): Promise<TreeProjectDocumentResponse>;
62
+ /** 查询项目文档详情 */
63
+ GetProjectDocument(request: GetProjectDocumentRequest): Promise<ProjectDocument>;
64
+ }
@@ -0,0 +1,67 @@
1
+ /** 系统配置类型 */
2
+ export declare enum BaseConfigType {
3
+ UNKNOWN_BCT = 0,
4
+ /** TEXT - 文本 */
5
+ TEXT = 1,
6
+ /** IMAGE - 图片 */
7
+ IMAGE = 2,
8
+ /** RICH_TEXT - 富文本 */
9
+ RICH_TEXT = 3,
10
+ /** DICT - 字典 */
11
+ DICT = 4,
12
+ /** BOOLEAN - 布尔 */
13
+ BOOLEAN = 5
14
+ }
15
+ /** 定时任务日志状态 */
16
+ export declare enum BaseJobLogStatus {
17
+ UNKNOWN_BJLS = 0,
18
+ /** SUCCESS - 成功 */
19
+ SUCCESS = 1,
20
+ /** FAIL - 失败 */
21
+ FAIL = 2
22
+ }
23
+ /** 菜单类型 */
24
+ export declare enum BaseMenuType {
25
+ UNKNOWN_MT = 0,
26
+ /** FOLDER - 目录 */
27
+ FOLDER = 1,
28
+ /** MENU - 菜单 */
29
+ MENU = 2,
30
+ /** BUTTON - 按钮 */
31
+ BUTTON = 3,
32
+ /** EXT_LINK - 外部链接 */
33
+ EXT_LINK = 4
34
+ }
35
+ /** 角色数据范围 */
36
+ export declare enum BaseRoleDataScope {
37
+ UNKNOWN_RDS = 0,
38
+ /** ALL - 全部数据 */
39
+ ALL = 1,
40
+ /** DEPT_AND_CHILDREN - 部门及子部门数据 */
41
+ DEPT_AND_CHILDREN = 2,
42
+ /** SELF_DEPT - 本部门数据 */
43
+ SELF_DEPT = 3,
44
+ /** SELF_USER - 本人数据 */
45
+ SELF_USER = 4
46
+ }
47
+ /** 用户性别 */
48
+ export declare enum BaseUserGender {
49
+ UNKNOWN_BUG = 0,
50
+ /** SECRET - 保密 */
51
+ SECRET = 1,
52
+ /** BOY - 男 */
53
+ BOY = 2,
54
+ /** GIRL - 禁用 */
55
+ GIRL = 3
56
+ }
57
+ /** 代码生成表状态 */
58
+ export declare enum CodeGenTableStatus {
59
+ /** UNKNOWN_CGTS - 未指定 */
60
+ UNKNOWN_CGTS = 0,
61
+ /** DRAFT_CGTS - 草稿 */
62
+ DRAFT_CGTS = 1,
63
+ /** GENERATED_CGTS - 已生成 */
64
+ GENERATED_CGTS = 2,
65
+ /** DISABLED_CGTS - 停用 */
66
+ DISABLED_CGTS = 3
67
+ }
@@ -0,0 +1,14 @@
1
+ import type { AiAttachment } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_session";
2
+ import type { FilesCardProps, FilesType } from "vue-element-plus-x/types/FilesCard";
3
+ /** AI 助手附件图片判断所需的最小字段。 */
4
+ export type AIAttachmentPreviewMeta = Pick<AiAttachment, "name" | "mime_type">;
5
+ /** AI 助手附件卡片生成选项,用于复用 FilesCard 内置预览、删除和状态能力。 */
6
+ export type AIAttachmentFileCardOptions = Partial<Pick<FilesCardProps, "imgFile" | "imgVariant" | "maxWidth" | "percent" | "showDelIcon" | "status">>;
7
+ /** 补齐 AI 助手附件地址,用于图片预览和浏览器新窗口打开。 */
8
+ export declare function resolveAIAttachmentUrl(url?: string): string;
9
+ /** 根据文件后缀推断附件卡片类型,优先复用组件自带图标表现。 */
10
+ export declare function resolveAIAttachmentFileType(fileName?: string): FilesType;
11
+ /** 判断附件是否为图片,优先相信 MIME 类型,缺失时回退到后缀。 */
12
+ export declare function isAIImageAttachment(attachment: AIAttachmentPreviewMeta): boolean;
13
+ /** 将后端附件转换成 Element Plus X FilesCard 数据,避免页面重复手写附件预览逻辑。 */
14
+ export declare function buildAIAttachmentFileCard(attachment: AiAttachment, options?: AIAttachmentFileCardOptions): FilesCardProps;
@@ -0,0 +1,13 @@
1
+ import "x-markdown-vue/style";
2
+ /** AI 回复 Markdown 渲染组件入参。 */
3
+ type AiMarkdownProps = {
4
+ /** 需要渲染的 Markdown 正文。 */
5
+ content: string;
6
+ /** 是否处于流式输出中,开启后按词显示动画。 */
7
+ streaming?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<AiMarkdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AiMarkdownProps> & Readonly<{}>, {
10
+ streaming: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import { type AiSession } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_session";
2
+ import type { AiShortcut } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_tool";
3
+ import type { ChatMessageAction, ChatMessageEditPayload, ChatMessageItem, SubmitPayload } from "../types";
4
+ type __VLS_Props = {
5
+ /** 当前活动会话,用于输入框按会话重建。 */
6
+ activeSession?: AiSession;
7
+ /** 当前会话消息列表。 */
8
+ messages: ChatMessageItem[];
9
+ /** 消息发送加载状态。 */
10
+ sending: boolean;
11
+ /** 空态快捷入口加载状态。 */
12
+ loadingShortcuts?: boolean;
13
+ /** 当前终端可用快捷入口。 */
14
+ shortcuts?: AiShortcut[];
15
+ };
16
+ declare var __VLS_102: {
17
+ message: ChatMessageItem;
18
+ activeFlowMessageId: string;
19
+ };
20
+ type __VLS_Slots = {} & {
21
+ 'flow-blocks'?: (props: typeof __VLS_102) => any;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ submit: (payload: SubmitPayload) => any;
25
+ messageAction: (payload: {
26
+ action: ChatMessageAction;
27
+ item: ChatMessageItem;
28
+ }) => any;
29
+ messageEdit: (payload: ChatMessageEditPayload) => any;
30
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
31
+ onSubmit?: ((payload: SubmitPayload) => any) | undefined;
32
+ onMessageAction?: ((payload: {
33
+ action: ChatMessageAction;
34
+ item: ChatMessageItem;
35
+ }) => any) | undefined;
36
+ onMessageEdit?: ((payload: ChatMessageEditPayload) => any) | undefined;
37
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,34 @@
1
+ import type { AiSession } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_session";
2
+ /** 会话列表支持的菜单操作。 */
3
+ type SessionAction = "rename" | "delete";
4
+ type __VLS_Props = {
5
+ /** 当前活动会话编号。 */
6
+ active: string;
7
+ /** 会话搜索关键词。 */
8
+ keyword: string;
9
+ /** 过滤后的会话列表。 */
10
+ sessions: AiSession[];
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ action: (payload: {
14
+ action: SessionAction;
15
+ item: AiSession;
16
+ }) => any;
17
+ change: (item: AiSession) => any;
18
+ "update:active": (value: string) => any;
19
+ "update:keyword": (value: string) => any;
20
+ create: () => any;
21
+ toggleCollapse: () => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onAction?: ((payload: {
24
+ action: SessionAction;
25
+ item: AiSession;
26
+ }) => any) | undefined;
27
+ onChange?: ((item: AiSession) => any) | undefined;
28
+ "onUpdate:active"?: ((value: string) => any) | undefined;
29
+ "onUpdate:keyword"?: ((value: string) => any) | undefined;
30
+ onCreate?: (() => any) | undefined;
31
+ onToggleCollapse?: (() => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { SubmitPayload } from "../types";
2
+ type __VLS_Props = {
3
+ /** 消息发送加载状态。 */
4
+ sending: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ submit: (payload: SubmitPayload) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onSubmit?: ((payload: SubmitPayload) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import "vue-element-plus-x/styles/index.css";
2
+ 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>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { type AiAttachment, type AiMessage, type AiSession } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_session";
2
+ import type { AiAction } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_message";
3
+ import type { AiStreamPayload, AIFlowBlock, ChatMessageItem, ReplySourceTag } from "./types";
4
+ /** 生成流式消息分组键,确保同一轮回复只更新当前占位气泡。 */
5
+ export declare function buildStreamMessageKey(sessionID: string, messageID: string): string;
6
+ /** 生成待绑定真实消息编号前的本地流式分组键。 */
7
+ export declare function buildPendingStreamMessageKey(sessionID: string): string;
8
+ /** 解析 protobuf 时间戳为毫秒。 */
9
+ export declare function resolveTimestamp(timestamp?: {
10
+ seconds?: number;
11
+ nanos?: number;
12
+ }): number;
13
+ /** 归一化会话对象,避免空值影响渲染。 */
14
+ export declare function normalizeSession(session?: Partial<AiSession> | null): AiSession;
15
+ /** 将会话列表收敛成可安全渲染的数组。 */
16
+ export declare function normalizeSessionList(list?: AiSession[] | null): AiSession[];
17
+ /** 生成回复来源标签。 */
18
+ export declare function resolveReplySourceTag(item: Pick<ChatMessageItem, "role" | "fallback" | "reply_source" | "model">): ReplySourceTag | undefined;
19
+ /** 解析结构化 Flow 卡片,非法 JSON 直接降级为空数组。 */
20
+ export declare function parseFlowBlocks(raw?: string): AIFlowBlock[];
21
+ /** 根据消息状态禁用过期结构化动作,减少用户误点旧步骤。 */
22
+ export declare function markFlowBlocksDisabled(blocks: AIFlowBlock[], messageID: string): AIFlowBlock[];
23
+ /** 判断结构化动作是否来自指定助手消息。 */
24
+ export declare function isFlowActionFromMessage(action: Partial<AiAction> | undefined, messageID: string): boolean;
25
+ /** 将后端一轮消息映射为单个聊天气泡结构。 */
26
+ export declare function mapMessageItem(message: AiMessage, role: "user" | "ai"): ChatMessageItem;
27
+ /** 收敛消息数组,并把每轮消息拆成用户气泡和助手气泡。 */
28
+ export declare function normalizeMessageList(list?: AiMessage[] | null): ChatMessageItem[];
29
+ /** 创建本地用户回显消息。 */
30
+ export declare function createLocalUserMessage(payload: {
31
+ text: string;
32
+ attachments: AiAttachment[];
33
+ }): ChatMessageItem;
34
+ /** 创建助手思考中的占位消息。 */
35
+ export declare function createThinkingMessage(options?: {
36
+ sessionID?: string;
37
+ messageID?: string;
38
+ }): ChatMessageItem;
39
+ /** 确保当前轮次存在流式占位消息。 */
40
+ export declare function ensureStreamingMessage(current: ChatMessageItem[], payload: AiStreamPayload): ChatMessageItem[];
41
+ /** 将已有助手消息清空并标记为重新生成中,保留消息 ID 与原位置。 */
42
+ export declare function markAIMessageRegenerating(current: ChatMessageItem[], sessionID: string, messageID: string): ChatMessageItem[];
43
+ /** 将消息按创建时间排序。 */
44
+ export declare function sortMessages(list: ChatMessageItem[]): ChatMessageItem[];
45
+ /** 去掉当前轮次的本地占位消息,并拼入服务端返回。 */
46
+ export declare function replacePendingMessages(current: ChatMessageItem[], nextMessages: ChatMessageItem[], payload?: AiStreamPayload): ChatMessageItem[];
47
+ /** 标记思考中消息失败,可按当前轮次限定失败范围。 */
48
+ export declare function markThinkingMessageFailed(current: ChatMessageItem[], options?: {
49
+ sessionID?: string;
50
+ messageID?: string;
51
+ }): ChatMessageItem[];
52
+ /** 判断流式增量是否包含可追加内容。 */
53
+ export declare function hasStreamingDelta(payload: Pick<AiStreamPayload, "delta">): boolean;
54
+ /** 将流式文本增量追加到本地占位消息。 */
55
+ export declare function appendStreamingDelta(current: ChatMessageItem[], payload: AiStreamPayload): ChatMessageItem[];
56
+ /** 根据流式异常事件更新本地占位消息。 */
57
+ export declare function markStreamingError(current: ChatMessageItem[], payload: AiStreamPayload): ChatMessageItem[];
58
+ /** 标记正在朗读的消息,保证全局只有一个气泡处于朗读态。 */
59
+ export declare function markSpeakingMessage(current: ChatMessageItem[], messageID?: string): ChatMessageItem[];
@@ -0,0 +1,10 @@
1
+ import type { AiStreamEvent } from "./types";
2
+ /** 读取到的原始 SSE 字段结构。 */
3
+ type SseOutput = Partial<Record<"data" | "event" | "id" | "retry", unknown>>;
4
+ /** AI 助手事件流消费回调。 */
5
+ type AiStreamEventHandler = (event: AiStreamEvent) => void;
6
+ /** 将原始 SSE 项收敛为业务事件,避免页面直接处理字符串 JSON。 */
7
+ export declare function normalizeAiStreamItem(item?: SseOutput): AiStreamEvent | null;
8
+ /** 读取并解析 AI 助手 direct stream,支持同一页面同时消费多条会话流。 */
9
+ export declare function readAiEventStream(readableStream: ReadableStream<Uint8Array>, handler: AiStreamEventHandler, signal?: AbortSignal): Promise<void>;
10
+ export {};
@@ -0,0 +1,115 @@
1
+ import type { AiAction } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_message";
2
+ import type { AiAttachment, AiMessage, AiSession } from "@liujitcn/kratos-admin-system/rpc/base/v1/ai_session";
3
+ /** 会话菜单动作类型。 */
4
+ export type SessionAction = "rename" | "delete";
5
+ /** 聊天消息操作类型。 */
6
+ export type ChatMessageAction = "retry" | "copy" | "delete" | "branch" | "speak" | "edit";
7
+ /** 聊天消息文本编辑提交内容。 */
8
+ export type ChatMessageEditPayload = {
9
+ /** 被编辑的用户消息。 */
10
+ item: ChatMessageItem;
11
+ /** 更新后的纯文本内容。 */
12
+ content: string;
13
+ };
14
+ /** 聊天输入提交内容。 */
15
+ export type SubmitPayload = {
16
+ /** 用户输入文本。 */
17
+ text: string;
18
+ /** 已上传附件列表。 */
19
+ attachments: AiAttachment[];
20
+ /** 点击结构化卡片或快捷入口时携带的流程动作。 */
21
+ action?: AiAction;
22
+ };
23
+ /** AI 助手结构化流程卡片。 */
24
+ export type AIFlowBlock = {
25
+ /** 卡片类型,由后端 Flow 输出。 */
26
+ type: string;
27
+ /** 卡片标题。 */
28
+ title?: string;
29
+ /** 卡片说明。 */
30
+ desc?: string;
31
+ /** 单一可执行动作。 */
32
+ action?: AiAction;
33
+ /** 多个可执行动作。 */
34
+ actions?: AiAction[];
35
+ /** 前端是否禁用当前块内动作。 */
36
+ disabled?: boolean;
37
+ /** 兼容后端按不同业务卡片返回的扩展字段。 */
38
+ [key: string]: any;
39
+ };
40
+ /** 消息进度状态,用于控制气泡加载、失败和常规展示。 */
41
+ export type MessageProgressState = "idle" | "streaming" | "failed";
42
+ /** 回复来源标签配置。 */
43
+ export type ReplySourceTag = {
44
+ /** 标签文本。 */
45
+ text: string;
46
+ /** 标签视觉语义。 */
47
+ tone: "primary" | "success" | "warning" | "info";
48
+ };
49
+ /** 聊天气泡展示项,在后端消息基础上补充 UI 状态。 */
50
+ export type ChatMessageItem = AiMessage & {
51
+ /** 当前气泡角色,由一轮消息拆分得到。 */
52
+ role: "user" | "ai";
53
+ /** 当前气泡正文。 */
54
+ content: string;
55
+ /** 当前气泡内容类型。 */
56
+ kind: string;
57
+ /** 回复来源。 */
58
+ reply_source?: string;
59
+ /** 回复模型。 */
60
+ model?: string;
61
+ /** 是否降级回复。 */
62
+ fallback?: boolean;
63
+ /** 降级原因。 */
64
+ fallback_reason?: string;
65
+ /** 固定流程标识。 */
66
+ flow?: string;
67
+ /** 固定流程步骤。 */
68
+ step?: string;
69
+ /** 原始结构化卡片 JSON。 */
70
+ blocksJson?: string;
71
+ /** 已解析的结构化卡片。 */
72
+ blocks?: AIFlowBlock[];
73
+ /** BubbleList 稳定渲染键。 */
74
+ key: string;
75
+ /** 气泡左右位置。 */
76
+ placement: "start" | "end";
77
+ /** 气泡视觉样式。 */
78
+ variant?: "filled" | "borderless" | "outlined" | "shadow";
79
+ /** 气泡形状。 */
80
+ shape?: "round" | "corner";
81
+ /** 气泡最大宽度。 */
82
+ maxWidth?: string;
83
+ /** 本地消息进度状态。 */
84
+ progressState?: MessageProgressState;
85
+ /** 是否为前端临时消息,收到服务端最终消息后会被替换。 */
86
+ localOnly?: boolean;
87
+ /** 回复来源标签。 */
88
+ replySourceTag?: ReplySourceTag;
89
+ /** 本地流式消息键,按会话和单轮消息拆分。 */
90
+ streamKey?: string;
91
+ /** 是否正在朗读当前消息。 */
92
+ speaking?: boolean;
93
+ };
94
+ /** AI 助手 direct stream SSE 事件名称。 */
95
+ export type AiStreamEventName = "delta" | "finish" | "error";
96
+ /** AI 助手 direct stream 事件负载。 */
97
+ export type AiStreamPayload = {
98
+ /** 会话 ID。 */
99
+ session_id: string;
100
+ /** 后端单轮消息 ID,用于关联当前轮次。 */
101
+ message_id: string;
102
+ /** 本次新增文本分片。 */
103
+ delta?: string;
104
+ /** 流式完成后的最终消息列表。 */
105
+ messages?: AiMessage[];
106
+ /** 流式完成后的最新会话。 */
107
+ session?: AiSession;
108
+ };
109
+ /** AI 助手 direct stream 标准化事件。 */
110
+ export type AiStreamEvent = {
111
+ /** SSE 事件名称。 */
112
+ event: AiStreamEventName;
113
+ /** 已解析的 JSON 负载。 */
114
+ payload: AiStreamPayload;
115
+ };
@@ -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,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,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,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,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,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,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,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,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,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,4 @@
1
+ import "x-markdown-vue/style";
2
+ 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>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -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,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,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,19 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ modelValue: {
3
+ type: NumberConstructor[];
4
+ default: undefined;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ nodeClick: (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
9
+ modelValue: {
10
+ type: NumberConstructor[];
11
+ default: undefined;
12
+ };
13
+ }>> & Readonly<{
14
+ onNodeClick?: ((...args: any[]) => any) | undefined;
15
+ }>, {
16
+ modelValue: number;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -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,13 @@
1
+ import type { UserProfileForm } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/auth";
2
+ /** 个人中心基础资料组件属性。 */
3
+ interface ProfileBaseProps {
4
+ /** 当前用户资料。 */
5
+ profile: UserProfileForm;
6
+ }
7
+ declare const __VLS_export: import("vue").DefineComponent<ProfileBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ refreshed: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<ProfileBaseProps> & Readonly<{
10
+ onRefreshed?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -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,15 @@
1
+ import type { UserProfileForm } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/auth";
2
+ /** 安全中心组件属性。 */
3
+ interface ProfileSecurityProps {
4
+ /** 当前用户资料。 */
5
+ profile: UserProfileForm;
6
+ }
7
+ declare const __VLS_export: import("vue").DefineComponent<ProfileSecurityProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ refreshed: () => any;
9
+ switchTab: (tab: "password" | "account" | "security") => any;
10
+ }, string, import("vue").PublicProps, Readonly<ProfileSecurityProps> & Readonly<{
11
+ onRefreshed?: (() => any) | undefined;
12
+ onSwitchTab?: ((tab: "password" | "account" | "security") => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -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,4 @@
1
+ import "swagger-ui-dist/swagger-ui.css";
2
+ 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>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -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,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;