@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,60 @@
1
+ /** double 类型数组包装消息。 */
2
+ export interface DoubleValues {
3
+ /** 值列表。 */
4
+ value: number[];
5
+ }
6
+ /** float 类型数组包装消息。 */
7
+ export interface FloatValues {
8
+ /** 值列表。 */
9
+ value: number[];
10
+ }
11
+ /** int64 类型数组包装消息。 */
12
+ export interface Int64Values {
13
+ /** 值列表。 */
14
+ value: number[];
15
+ }
16
+ /** uint64 类型数组包装消息。 */
17
+ export interface UInt64Values {
18
+ /** 值列表。 */
19
+ value: number[];
20
+ }
21
+ /** int32 类型数组包装消息。 */
22
+ export interface Int32Values {
23
+ /** 值列表。 */
24
+ value: number[];
25
+ }
26
+ /** uint32 类型数组包装消息。 */
27
+ export interface UInt32Values {
28
+ /** 值列表。 */
29
+ value: number[];
30
+ }
31
+ /** bool 类型数组包装消息。 */
32
+ export interface BoolValues {
33
+ /** 值列表。 */
34
+ value: boolean[];
35
+ }
36
+ /** string 类型数组包装消息。 */
37
+ export interface StringValues {
38
+ /** 值列表。 */
39
+ value: string[];
40
+ }
41
+ /** bytes 类型数组包装消息。 */
42
+ export interface BytesValues {
43
+ /** 值列表。 */
44
+ value: Uint8Array[];
45
+ }
46
+ /** 密码密文。 */
47
+ export interface PasswordCrypto {
48
+ /** 临时密钥ID */
49
+ key_id: string;
50
+ /** 随机值 */
51
+ nonce: string;
52
+ /** 加密算法 */
53
+ algorithm: string;
54
+ /** 加密后的对称密钥 */
55
+ encrypted_key: string;
56
+ /** 初始化向量 */
57
+ iv: string;
58
+ /** 密码加密数据 */
59
+ ciphertext: string;
60
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A generic empty message that you can re-use to avoid defining duplicated
3
+ * empty messages in your APIs. A typical example is to use it as the request
4
+ * or the response type of an API method. For instance:
5
+ *
6
+ * service Foo {
7
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
8
+ * }
9
+ */
10
+ export interface Empty {
11
+ }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * A Timestamp represents a point in time independent of any time zone or local
3
+ * calendar, encoded as a count of seconds and fractions of seconds at
4
+ * nanosecond resolution. The count is relative to an epoch at UTC midnight on
5
+ * January 1, 1970, in the proleptic Gregorian calendar which extends the
6
+ * Gregorian calendar backwards to year one.
7
+ *
8
+ * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
9
+ * second table is needed for interpretation, using a [24-hour linear
10
+ * smear](https://developers.google.com/time/smear).
11
+ *
12
+ * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
13
+ * restricting to that range, we ensure that we can convert to and from [RFC
14
+ * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
15
+ *
16
+ * # Examples
17
+ *
18
+ * Example 1: Compute Timestamp from POSIX `time()`.
19
+ *
20
+ * Timestamp timestamp;
21
+ * timestamp.set_seconds(time(NULL));
22
+ * timestamp.set_nanos(0);
23
+ *
24
+ * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
25
+ *
26
+ * struct timeval tv;
27
+ * gettimeofday(&tv, NULL);
28
+ *
29
+ * Timestamp timestamp;
30
+ * timestamp.set_seconds(tv.tv_sec);
31
+ * timestamp.set_nanos(tv.tv_usec * 1000);
32
+ *
33
+ * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
34
+ *
35
+ * FILETIME ft;
36
+ * GetSystemTimeAsFileTime(&ft);
37
+ * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
38
+ *
39
+ * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
40
+ * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
41
+ * Timestamp timestamp;
42
+ * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
43
+ * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
44
+ *
45
+ * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
46
+ *
47
+ * long millis = System.currentTimeMillis();
48
+ *
49
+ * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
50
+ * .setNanos((int) ((millis % 1000) * 1000000)).build();
51
+ *
52
+ * Example 5: Compute Timestamp from Java `Instant.now()`.
53
+ *
54
+ * Instant now = Instant.now();
55
+ *
56
+ * Timestamp timestamp =
57
+ * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
58
+ * .setNanos(now.getNano()).build();
59
+ *
60
+ * Example 6: Compute Timestamp from current time in Python.
61
+ *
62
+ * timestamp = Timestamp()
63
+ * timestamp.GetCurrentTime()
64
+ *
65
+ * # JSON Mapping
66
+ *
67
+ * In JSON format, the Timestamp type is encoded as a string in the
68
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
69
+ * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
70
+ * where {year} is always expressed using four digits while {month}, {day},
71
+ * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
72
+ * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
73
+ * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
74
+ * is required. A proto3 JSON serializer should always use UTC (as indicated by
75
+ * "Z") when printing the Timestamp type and a proto3 JSON parser should be
76
+ * able to accept both UTC and other timezones (as indicated by an offset).
77
+ *
78
+ * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
79
+ * 01:30 UTC on January 15, 2017.
80
+ *
81
+ * In JavaScript, one can convert a Date object to this format using the
82
+ * standard
83
+ * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
84
+ * method. In Python, a standard `datetime.datetime` object can be converted
85
+ * to this format using
86
+ * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
87
+ * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
88
+ * the Joda Time's [`ISODateTimeFormat.dateTime()`](
89
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
90
+ * ) to obtain a formatter capable of generating timestamps in this format.
91
+ */
92
+ export interface Timestamp {
93
+ /**
94
+ * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
95
+ * be between -315576000000 and 315576000000 inclusive (which corresponds to
96
+ * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
97
+ */
98
+ seconds: number;
99
+ /**
100
+ * Non-negative fractions of a second at nanosecond resolution. This field is
101
+ * the nanosecond portion of the duration, not an alternative to seconds.
102
+ * Negative second values with fractions must still have non-negative nanos
103
+ * values that count forward in time. Must be between 0 and 999,999,999
104
+ * inclusive.
105
+ */
106
+ nanos: number;
107
+ }
@@ -0,0 +1,156 @@
1
+ import type { PasswordCrypto, StringValues } from "../../../common/v1/types";
2
+ import type { Empty } from "../../../google/protobuf/empty";
3
+ import type { BaseMenuType } from "../../common/v1/enum";
4
+ /** 登录用户菜单树查询参数 */
5
+ export interface TreeUserMenuRequest {
6
+ }
7
+ /** Route树响应 */
8
+ export interface TreeRouteResponse {
9
+ /** 路由列表 */
10
+ routes: RouteItem[];
11
+ }
12
+ /** 登录用户按钮列表查询参数 */
13
+ export interface ListUserButtonRequest {
14
+ }
15
+ /** 获取登录用户信息请求参数 */
16
+ export interface GetUserInfoRequest {
17
+ }
18
+ /** 用户信息表单 */
19
+ export interface UserInfoForm {
20
+ /** 用户账号 */
21
+ user_name: string;
22
+ /** 用户昵称 */
23
+ nick_name: string;
24
+ /** 手机号 */
25
+ phone: string;
26
+ /** 头像 */
27
+ avatar: string;
28
+ /** 角色编号 */
29
+ role_code: string;
30
+ /** 角色名称 */
31
+ role_name: string;
32
+ /** 部门名称 */
33
+ dept_name: string;
34
+ /** 租户编码 */
35
+ tenant_code: string;
36
+ /** 租户名称 */
37
+ tenant_name: string;
38
+ }
39
+ /** 获取个人中心用户信息请求参数 */
40
+ export interface GetUserProfileRequest {
41
+ }
42
+ /** 用户资料表单 */
43
+ export interface UserProfileForm {
44
+ /** 用户名 */
45
+ user_name: string;
46
+ /** 昵称 */
47
+ nick_name: string;
48
+ /** 头像URL */
49
+ avatar: string;
50
+ /** 性别 */
51
+ gender: number;
52
+ /** 手机号 */
53
+ phone: string;
54
+ /** 角色名 */
55
+ role_name: string;
56
+ /** 部门名 */
57
+ dept_name: string;
58
+ /** 创建时间 */
59
+ created_at: string;
60
+ }
61
+ /** 更新个人中心密码请求参数 */
62
+ export interface UpdateUserPasswordRequest {
63
+ /** 个人中心密码 */
64
+ user_password: UserPasswordForm | undefined;
65
+ }
66
+ /** 更新个人中心手机号请求参数 */
67
+ export interface UpdateUserPhoneRequest {
68
+ /** 个人中心手机号 */
69
+ user_phone: UserPhoneForm | undefined;
70
+ }
71
+ /** 更新个人中心用户信息请求参数 */
72
+ export interface UpdateUserProfileRequest {
73
+ /** 个人中心用户信息 */
74
+ user_profile: UserProfileForm | undefined;
75
+ }
76
+ /** 发送手机号验证码请求参数 */
77
+ export interface SendPhoneCodeRequest {
78
+ /** 手机号 */
79
+ phone: string;
80
+ }
81
+ /** Route项 */
82
+ export interface RouteItem {
83
+ /** 路由路径 */
84
+ path?: string | undefined;
85
+ /** 重定向地址 */
86
+ redirect?: string | undefined;
87
+ /** 路由命名,然后我们可以使用 name 而不是 path 来传递 to 属性给 <router-link>。 */
88
+ name?: string | undefined;
89
+ /** 指向的组件 */
90
+ component?: string | undefined;
91
+ /** 路由元信息 */
92
+ meta?: RouteMeta | undefined;
93
+ /** 菜单类型 */
94
+ type: BaseMenuType;
95
+ /** 子节点树 */
96
+ children: RouteItem[];
97
+ }
98
+ /** Route元信息 */
99
+ export interface RouteMeta {
100
+ /** 菜单标题 */
101
+ title?: string | undefined;
102
+ /** 菜单图标 */
103
+ icon?: string | undefined;
104
+ /** 【目录】只有一个子路由是否始终显示 */
105
+ always_show?: boolean | undefined;
106
+ /** 是否隐藏(true-是 false-否) */
107
+ hidden?: boolean | undefined;
108
+ /** 【菜单】是否开启页面缓存 */
109
+ keep_alive?: boolean | undefined;
110
+ /** 【菜单】是否全屏(示例:数据大屏页面) */
111
+ full?: boolean | undefined;
112
+ /** 【菜单】是否固定在标签页中(首页通常是固定项) */
113
+ affix?: boolean | undefined;
114
+ /** 参数 */
115
+ params: RouteParams[];
116
+ }
117
+ /** Route参数 */
118
+ export interface RouteParams {
119
+ /** key */
120
+ key?: string | undefined;
121
+ /** value */
122
+ value?: string | undefined;
123
+ }
124
+ /** 用户密码表单 */
125
+ export interface UserPasswordForm {
126
+ /** 原密码 */
127
+ old_pwd: PasswordCrypto | undefined;
128
+ /** 新密码 */
129
+ new_pwd: PasswordCrypto | undefined;
130
+ }
131
+ /** 用户手机号表单 */
132
+ export interface UserPhoneForm {
133
+ /** 手机号 */
134
+ phone: string;
135
+ /** 验证码 */
136
+ code: string;
137
+ }
138
+ /** Admin用户登录认证服务 */
139
+ export interface AuthService {
140
+ /** 查询已经登录的用户菜单树 */
141
+ TreeUserMenu(request: TreeUserMenuRequest): Promise<TreeRouteResponse>;
142
+ /** 查询已经登录的用户按钮列表 */
143
+ ListUserButton(request: ListUserButtonRequest): Promise<StringValues>;
144
+ /** 获取已经登录的用户的数据 */
145
+ GetUserInfo(request: GetUserInfoRequest): Promise<UserInfoForm>;
146
+ /** 获取个人中心用户信息 */
147
+ GetUserProfile(request: GetUserProfileRequest): Promise<UserProfileForm>;
148
+ /** 修改个人中心密码 */
149
+ UpdateUserPassword(request: UpdateUserPasswordRequest): Promise<Empty>;
150
+ /** 修改个人中心手机号 */
151
+ UpdateUserPhone(request: UpdateUserPhoneRequest): Promise<Empty>;
152
+ /** 修改个人中心用户信息 */
153
+ UpdateUserProfile(request: UpdateUserProfileRequest): Promise<Empty>;
154
+ /** 发送手机号验证码 */
155
+ SendPhoneCode(request: SendPhoneCodeRequest): Promise<Empty>;
156
+ }
@@ -0,0 +1,193 @@
1
+ import type { Status } from "../../../common/v1/enum";
2
+ import type { Empty } from "../../../google/protobuf/empty";
3
+ /** API选项查询条件 */
4
+ export interface OptionBaseApiRequest {
5
+ }
6
+ /** API选项响应 */
7
+ export interface OptionBaseApiResponse {
8
+ /** API列表 */
9
+ base_apis: BaseApi[];
10
+ }
11
+ /** API分页查询条件 */
12
+ export interface PageBaseApiRequest {
13
+ /** 工具名 */
14
+ tool_name?: string | undefined;
15
+ /** Agent/MCP工具提示词搜索关键字 */
16
+ tool_prompt?: string | undefined;
17
+ /** 服务名 */
18
+ service_name?: string | undefined;
19
+ /** 服务描述 */
20
+ service_desc?: string | undefined;
21
+ /** 描述 */
22
+ desc?: string | undefined;
23
+ /** 操作方法 */
24
+ operation?: string | undefined;
25
+ /** 请求方式 */
26
+ method?: string | undefined;
27
+ /** 请求地址 */
28
+ path?: string | undefined;
29
+ /** MCP工具状态:枚举【Status】 */
30
+ mcp_status?: Status | undefined;
31
+ /** Agent工具状态:枚举【Status】 */
32
+ agent_status?: Status | undefined;
33
+ /** OpenAPI文档key */
34
+ openapi_service_code?: string | undefined;
35
+ /** 页码 */
36
+ page_num: number;
37
+ /** 每页数量 */
38
+ page_size: number;
39
+ }
40
+ /** API分页查询响应 */
41
+ export interface PageBaseApiResponse {
42
+ /** API列表 */
43
+ base_apis: BaseApi[];
44
+ /** 总数 */
45
+ total: number;
46
+ }
47
+ /** API详情查询条件 */
48
+ export interface GetBaseApiRequest {
49
+ /** API ID */
50
+ id: number;
51
+ }
52
+ /** API */
53
+ export interface BaseApi {
54
+ /** API ID */
55
+ id: number;
56
+ /** 工具名 */
57
+ tool_name: string;
58
+ /** Agent/MCP工具提示词 */
59
+ tool_prompts: string[];
60
+ /** 服务名 */
61
+ service_name: string;
62
+ /** 服务描述 */
63
+ service_desc: string;
64
+ /** 描述 */
65
+ desc: string;
66
+ /** 操作方法 */
67
+ operation: string;
68
+ /** 请求方法 */
69
+ method: string;
70
+ /** 请求地址 */
71
+ path: string;
72
+ /** MCP工具状态:枚举【Status】 */
73
+ mcp_status: Status;
74
+ /** Agent工具状态:枚举【Status】 */
75
+ agent_status: Status;
76
+ /** OpenAPI文档key */
77
+ openapi_service_code: string;
78
+ /** OpenAPI文档名称 */
79
+ openapi_service_name: string;
80
+ }
81
+ /** API文档查询条件 */
82
+ export interface GetBaseApiDocRequest {
83
+ /** API ID */
84
+ id: number;
85
+ }
86
+ /** API文档 */
87
+ export interface BaseApiDoc {
88
+ /** API ID */
89
+ id: number;
90
+ /** 摘要 */
91
+ summary: string;
92
+ /** 描述 */
93
+ description: string;
94
+ /** 请求参数 */
95
+ parameters: BaseApiDocSchema[];
96
+ /** 请求体 */
97
+ request_body: BaseApiDocSchema | undefined;
98
+ /** 返回值 */
99
+ responses: BaseApiDocResponse[];
100
+ }
101
+ /** API更新条件 */
102
+ export interface UpdateBaseApiRequest {
103
+ /** API ID */
104
+ id: number;
105
+ /** Agent/MCP工具提示词 */
106
+ tool_prompts: string[];
107
+ /** MCP工具状态:枚举【Status】 */
108
+ mcp_status: Status;
109
+ /** Agent工具状态:枚举【Status】 */
110
+ agent_status: Status;
111
+ }
112
+ /** API Agent工具状态设置条件 */
113
+ export interface SetBaseApiAgentStatusRequest {
114
+ /** API ID */
115
+ id: number;
116
+ /** Agent工具状态:枚举【Status】 */
117
+ agent_status: Status;
118
+ }
119
+ /** API MCP工具状态设置条件 */
120
+ export interface SetBaseApiMcpStatusRequest {
121
+ /** API ID */
122
+ id: number;
123
+ /** MCP工具状态:枚举【Status】 */
124
+ mcp_status: Status;
125
+ }
126
+ /** API文档Schema */
127
+ export interface BaseApiDocSchema {
128
+ /** 字段名 */
129
+ name: string;
130
+ /** 字段路径 */
131
+ path: string;
132
+ /** 参数位置 */
133
+ in: string;
134
+ /** 字段类型 */
135
+ type: string;
136
+ /** 字段格式 */
137
+ format: string;
138
+ /** 是否必填 */
139
+ required: boolean;
140
+ /** 字段描述 */
141
+ description: string;
142
+ /** 引用类型 */
143
+ ref: string;
144
+ /** 枚举值 */
145
+ enum: string[];
146
+ /** 子字段 */
147
+ children: BaseApiDocSchema[];
148
+ }
149
+ /** API文档响应 */
150
+ export interface BaseApiDocResponse {
151
+ /** 状态码 */
152
+ status: string;
153
+ /** 响应描述 */
154
+ description: string;
155
+ /** 响应体 */
156
+ body: BaseApiDocSchema | undefined;
157
+ }
158
+ /** OpenAPI业务服务选项查询条件 */
159
+ export interface OptionOpenApiServiceRequest {
160
+ /** OpenAPI文档key */
161
+ service_code?: string | undefined;
162
+ }
163
+ /** OpenAPI业务服务选项响应 */
164
+ export interface OptionOpenApiServiceResponse {
165
+ /** OpenAPI文档选项列表 */
166
+ list: OpenApiServiceOption[];
167
+ }
168
+ /** OpenAPI业务服务选项 */
169
+ export interface OpenApiServiceOption {
170
+ /** OpenAPI文档key */
171
+ key: string;
172
+ /** OpenAPI文档名称 */
173
+ name: string;
174
+ }
175
+ /** AdminAPI服务 */
176
+ export interface BaseApiService {
177
+ /** 查询菜单分配API选项列表 */
178
+ OptionBaseApi(request: OptionBaseApiRequest): Promise<OptionBaseApiResponse>;
179
+ /** 分页查询API列表 */
180
+ PageBaseApi(request: PageBaseApiRequest): Promise<PageBaseApiResponse>;
181
+ /** 查询API详情 */
182
+ GetBaseApi(request: GetBaseApiRequest): Promise<BaseApi>;
183
+ /** 查询API文档 */
184
+ GetBaseApiDoc(request: GetBaseApiDocRequest): Promise<BaseApiDoc>;
185
+ /** 更新API配置 */
186
+ UpdateBaseApi(request: UpdateBaseApiRequest): Promise<Empty>;
187
+ /** 设置API Agent工具状态 */
188
+ SetBaseApiAgentStatus(request: SetBaseApiAgentStatusRequest): Promise<Empty>;
189
+ /** 设置API MCP工具状态 */
190
+ SetBaseApiMcpStatus(request: SetBaseApiMcpStatusRequest): Promise<Empty>;
191
+ /** 查询OpenAPI业务服务选项列表 */
192
+ OptionOpenApiService(request: OptionOpenApiServiceRequest): Promise<OptionOpenApiServiceResponse>;
193
+ }
@@ -0,0 +1,82 @@
1
+ import type { TreeOptionResponse } from "../../../common/v1/common";
2
+ import type { Empty } from "../../../google/protobuf/empty";
3
+ /** 行政区域树形选择查询条件 */
4
+ export interface OptionBaseAreaRequest {
5
+ /** 父节点ID */
6
+ parent_id?: number | undefined;
7
+ /** 是否懒加载 */
8
+ lazy?: boolean | undefined;
9
+ }
10
+ /** 行政区域树形列表查询条件 */
11
+ export interface TreeBaseAreaRequest {
12
+ /** 区域名称 */
13
+ name?: string | undefined;
14
+ /** 父级区域ID */
15
+ parent_id?: number | undefined;
16
+ /** 是否懒加载 */
17
+ lazy?: boolean | undefined;
18
+ }
19
+ /** 行政区域树形列表响应 */
20
+ export interface TreeBaseAreaResponse {
21
+ /** 行政区域树形列表 */
22
+ base_areas: BaseArea[];
23
+ }
24
+ /** 行政区域 */
25
+ export interface BaseArea {
26
+ /** 区域ID */
27
+ id: number;
28
+ /** 父级区域 */
29
+ parent_id: number;
30
+ /** 区域名称 */
31
+ name: string;
32
+ /** 是否存在子节点 */
33
+ has_children: boolean;
34
+ /** 子区域 */
35
+ children: BaseArea[];
36
+ }
37
+ /** 行政区域详情查询条件 */
38
+ export interface GetBaseAreaRequest {
39
+ /** 行政区域ID */
40
+ id: number;
41
+ }
42
+ /** 行政区域表单 */
43
+ export interface BaseAreaForm {
44
+ /** 区域ID */
45
+ id: number;
46
+ /** 父级区域 */
47
+ parent_id: number;
48
+ /** 区域名称 */
49
+ name: string;
50
+ }
51
+ /** 行政区域创建条件 */
52
+ export interface CreateBaseAreaRequest {
53
+ /** 行政区域表单 */
54
+ base_area: BaseAreaForm | undefined;
55
+ }
56
+ /** 行政区域更新条件 */
57
+ export interface UpdateBaseAreaRequest {
58
+ /** 行政区域ID */
59
+ id: number;
60
+ /** 行政区域表单 */
61
+ base_area: BaseAreaForm | undefined;
62
+ }
63
+ /** 行政区域删除条件 */
64
+ export interface DeleteBaseAreaRequest {
65
+ /** 行政区域ID列表,多个用逗号分隔 */
66
+ ids: string;
67
+ }
68
+ /** Admin行政区域服务 */
69
+ export interface BaseAreaService {
70
+ /** 查询行政区域树形选择 */
71
+ OptionBaseArea(request: OptionBaseAreaRequest): Promise<TreeOptionResponse>;
72
+ /** 查询行政区域树形列表 */
73
+ TreeBaseArea(request: TreeBaseAreaRequest): Promise<TreeBaseAreaResponse>;
74
+ /** 查询行政区域详情 */
75
+ GetBaseArea(request: GetBaseAreaRequest): Promise<BaseAreaForm>;
76
+ /** 创建行政区域 */
77
+ CreateBaseArea(request: CreateBaseAreaRequest): Promise<Empty>;
78
+ /** 更新行政区域 */
79
+ UpdateBaseArea(request: UpdateBaseAreaRequest): Promise<Empty>;
80
+ /** 删除行政区域 */
81
+ DeleteBaseArea(request: DeleteBaseAreaRequest): Promise<Empty>;
82
+ }