@liujitcn/kratos-admin-system 0.0.62 → 0.0.65
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 +16 -1
- package/dist/package/declarations/src/api/base/v1/ai_provider.d.ts +7 -0
- package/dist/package/declarations/src/api/system/admin/v1/ai_provider.d.ts +20 -0
- package/dist/package/declarations/src/api/system/admin/v1/base_api_rate_limit_policy.d.ts +19 -0
- package/dist/package/declarations/src/api/system/admin/v1/base_message_provider.d.ts +21 -0
- package/dist/package/declarations/src/api/system/admin/v1/base_message_template.d.ts +16 -0
- package/dist/package/declarations/src/api/system/admin/v1/base_oauth_provider.d.ts +18 -0
- package/dist/package/declarations/src/api/system/admin/v1/base_rate_limit_rule.d.ts +21 -0
- package/dist/package/declarations/src/components/api/ApiTransfer.vue.d.ts +35 -0
- package/dist/package/declarations/src/components/api/apiTransfer.d.ts +13 -0
- package/dist/package/declarations/src/components/i18n/DynamicI18nCell.vue.d.ts +2 -2
- package/dist/package/declarations/src/components/i18n/dynamicI18n.d.ts +3 -4
- package/dist/package/declarations/src/locales/generated.d.ts +968 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_message.d.ts +4 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_provider.d.ts +29 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +20 -0
- package/dist/package/declarations/src/rpc/google/protobuf/struct.d.ts +81 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/ai_provider.d.ts +133 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_api_rate_limit_policy.d.ts +137 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n.d.ts +4 -23
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message.d.ts +4 -4
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message_category.d.ts +19 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message_provider.d.ts +126 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message_template.d.ts +99 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_oauth_provider.d.ts +133 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_rate_limit_rule.d.ts +144 -0
- package/dist/package/declarations/src/utils/persisted-message.d.ts +4 -0
- package/dist/package/declarations/src/utils/rateLimit.d.ts +24 -0
- package/dist/package/declarations/src/views/ai/chat/components/ChatPanel.vue.d.ts +11 -2
- package/dist/package/declarations/src/views/ai/chat/components/XSender.vue.d.ts +9 -0
- package/dist/package/declarations/src/views/ai/chat/modelDisplay.d.ts +5 -0
- package/dist/package/declarations/src/views/ai/chat/modelSelection.d.ts +9 -0
- package/dist/package/declarations/src/views/base/ai-provider/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/api-rate-limit-policy/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/message-provider/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/message-template/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/oauth-provider/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/base/rate-limit-rule/index.vue.d.ts +3 -0
- package/dist/package/src/api/base/v1/ai_provider.ts +22 -0
- package/dist/package/src/api/system/admin/v1/ai_provider.ts +57 -0
- package/dist/package/src/api/system/admin/v1/base_api_rate_limit_policy.ts +51 -0
- package/dist/package/src/api/system/admin/v1/base_message_provider.ts +57 -0
- package/dist/package/src/api/system/admin/v1/base_message_template.ts +44 -0
- package/dist/package/src/api/system/admin/v1/base_oauth_provider.ts +50 -0
- package/dist/package/src/api/system/admin/v1/base_rate_limit_rule.ts +58 -0
- package/dist/package/src/components/ai/Ai.vue +1 -1
- package/dist/package/src/components/api/ApiTransfer.vue +117 -0
- package/dist/package/src/components/api/apiTransfer.ts +27 -0
- package/dist/package/src/components/i18n/DynamicI18nCell.vue +8 -8
- package/dist/package/src/components/i18n/DynamicI18nEditor.vue +6 -3
- package/dist/package/src/components/i18n/dynamicI18n.ts +4 -5
- package/dist/package/src/components/tenant-project/TenantProjectManager.vue +2 -1
- package/dist/package/src/locales/en-US.json +246 -4
- package/dist/package/src/locales/ja-JP.json +246 -4
- package/dist/package/src/locales/zh-CN.json +246 -4
- package/dist/package/src/locales/zh-TW.json +246 -4
- package/dist/package/src/rpc/base/v1/ai_message.ts +7 -1
- package/dist/package/src/rpc/base/v1/ai_provider.ts +41 -0
- package/dist/package/src/rpc/base/v1/oauth.ts +16 -0
- package/dist/package/src/rpc/google/protobuf/struct.ts +80 -0
- package/dist/package/src/rpc/system/admin/v1/ai_provider.ts +155 -0
- package/dist/package/src/rpc/system/admin/v1/base_api_rate_limit_policy.ts +160 -0
- package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +4 -24
- package/dist/package/src/rpc/system/admin/v1/base_message.ts +4 -4
- package/dist/package/src/rpc/system/admin/v1/base_message_category.ts +20 -0
- package/dist/package/src/rpc/system/admin/v1/base_message_provider.ts +150 -0
- package/dist/package/src/rpc/system/admin/v1/base_message_template.ts +117 -0
- package/dist/package/src/rpc/system/admin/v1/base_oauth_provider.ts +156 -0
- package/dist/package/src/rpc/system/admin/v1/base_rate_limit_rule.ts +167 -0
- package/dist/package/src/utils/persisted-message.ts +21 -0
- package/dist/package/src/utils/rateLimit.ts +140 -0
- package/dist/package/src/views/ai/chat/components/ChatPanel.vue +40 -5
- package/dist/package/src/views/ai/chat/components/XSender.vue +309 -3
- package/dist/package/src/views/ai/chat/index.vue +48 -1
- package/dist/package/src/views/ai/chat/modelDisplay.ts +67 -0
- package/dist/package/src/views/ai/chat/modelSelection.ts +31 -0
- package/dist/package/src/views/base/ai-provider/index.vue +613 -0
- package/dist/package/src/views/base/api-rate-limit-policy/index.vue +429 -0
- package/dist/package/src/views/base/backup-management/archive-record/index.vue +2 -0
- package/dist/package/src/views/base/backup-management/archive-restore/index.vue +2 -1
- package/dist/package/src/views/base/backup-management/backup-record/index.vue +2 -0
- package/dist/package/src/views/base/backup-management/backup-restore/index.vue +2 -1
- package/dist/package/src/views/base/config/index.vue +12 -13
- package/dist/package/src/views/base/dict/index.vue +2 -3
- package/dist/package/src/views/base/dict/item.vue +2 -3
- package/dist/package/src/views/base/job/index.vue +2 -3
- package/dist/package/src/views/base/job/log.vue +3 -2
- package/dist/package/src/views/base/menu/index.vue +27 -83
- package/dist/package/src/views/base/message/index.vue +9 -3
- package/dist/package/src/views/base/message-category/index.vue +34 -3
- package/dist/package/src/views/base/message-provider/index.vue +168 -0
- package/dist/package/src/views/base/message-template/index.vue +105 -0
- package/dist/package/src/views/base/migration/index.vue +1 -1
- package/dist/package/src/views/base/oauth-client/index.vue +6 -6
- package/dist/package/src/views/base/oauth-provider/index.vue +274 -0
- package/dist/package/src/views/base/rate-limit-rule/index.vue +327 -0
- package/dist/package/src/views/base/redact-output-policy/index.vue +1 -1
- package/dist/package/src/views/base/redact-rule/index.vue +12 -2
- package/dist/package/src/views/base/redact-storage-policy/index.vue +4 -0
- package/dist/package/src/views/base/tenant/index.vue +3 -3
- package/package.json +2 -2
|
@@ -46,7 +46,13 @@ export interface SendAiMessageRequest {
|
|
|
46
46
|
/** 附件列表 */
|
|
47
47
|
attachments: AiAttachment[];
|
|
48
48
|
/** 助手动作 */
|
|
49
|
-
action:
|
|
49
|
+
action:
|
|
50
|
+
| AiAction
|
|
51
|
+
| undefined;
|
|
52
|
+
/** 所选供应商ID;留空时使用首个可用模型 */
|
|
53
|
+
provider_id: number;
|
|
54
|
+
/** 所选模型名称 */
|
|
55
|
+
model_name: string;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
/** AI 助手失败消息重试请求 */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/ai_provider.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** AI Provider模型选项查询请求。 */
|
|
10
|
+
export interface ListAiProviderModelOptionsRequest {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** AI Provider模型选项查询响应。 */
|
|
14
|
+
export interface ListAiProviderModelOptionsResponse {
|
|
15
|
+
/** Provider及其模型列表 */
|
|
16
|
+
providers: AiProviderModelOption[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** 已启用的AI Provider及其模型选项。 */
|
|
20
|
+
export interface AiProviderModelOption {
|
|
21
|
+
/** Provider ID */
|
|
22
|
+
provider_id: number;
|
|
23
|
+
/** Provider名称 */
|
|
24
|
+
name: string;
|
|
25
|
+
/** 模型选项列表 */
|
|
26
|
+
models: AiProviderModel[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** AI Provider下的单个模型选项。 */
|
|
30
|
+
export interface AiProviderModel {
|
|
31
|
+
/** 模型名称 */
|
|
32
|
+
model_name: string;
|
|
33
|
+
/** 展示名称 */
|
|
34
|
+
display_name: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** AI Provider 可选模型查询服务。 */
|
|
38
|
+
export interface AiModelService {
|
|
39
|
+
/** 查询已启用的AI Provider及其可用模型。 */
|
|
40
|
+
ListAiProviderModelOptions(request: ListAiProviderModelOptionsRequest): Promise<ListAiProviderModelOptionsResponse>;
|
|
41
|
+
}
|
|
@@ -191,14 +191,30 @@ export interface UnbindOauthAccountRequest {
|
|
|
191
191
|
export interface OauthProvider {
|
|
192
192
|
/** 登录方式标识 */
|
|
193
193
|
provider: string;
|
|
194
|
+
/** 登录方式名称 */
|
|
195
|
+
name: string;
|
|
196
|
+
/** 登录方式提示语 */
|
|
197
|
+
description: string;
|
|
198
|
+
/** 图标键或图片地址 */
|
|
199
|
+
icon: string;
|
|
200
|
+
/** Provider个性化配置JSON对象 */
|
|
201
|
+
config: { [key: string]: any } | undefined;
|
|
194
202
|
}
|
|
195
203
|
|
|
196
204
|
/** 个人中心三方账号绑定信息 */
|
|
197
205
|
export interface OauthBinding {
|
|
198
206
|
/** 登录方式标识 */
|
|
199
207
|
provider: string;
|
|
208
|
+
/** 登录方式名称 */
|
|
209
|
+
name: string;
|
|
210
|
+
/** 登录方式提示语 */
|
|
211
|
+
description: string;
|
|
200
212
|
/** 是否已绑定 */
|
|
201
213
|
bound: boolean;
|
|
214
|
+
/** 图标键或图片地址 */
|
|
215
|
+
icon: string;
|
|
216
|
+
/** Provider个性化配置JSON对象 */
|
|
217
|
+
config: { [key: string]: any } | undefined;
|
|
202
218
|
}
|
|
203
219
|
|
|
204
220
|
/** Base三方登录公共服务 */
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: google/protobuf/struct.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
11
|
+
* `Value` type union.
|
|
12
|
+
*
|
|
13
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
14
|
+
*/
|
|
15
|
+
export enum NullValue {
|
|
16
|
+
/** NULL_VALUE - Null value. */
|
|
17
|
+
NULL_VALUE = 0,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
22
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
23
|
+
* might be supported by a native representation. For example, in
|
|
24
|
+
* scripting languages like JS a struct is represented as an
|
|
25
|
+
* object. The details of that representation are described together
|
|
26
|
+
* with the proto support for the language.
|
|
27
|
+
*
|
|
28
|
+
* The JSON representation for `Struct` is JSON object.
|
|
29
|
+
*/
|
|
30
|
+
export interface Struct {
|
|
31
|
+
/** Unordered map of dynamically typed values. */
|
|
32
|
+
fields: Map<string, any | undefined>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Struct_FieldsEntry {
|
|
36
|
+
key: string;
|
|
37
|
+
value: any | undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* `Value` represents a dynamically typed value which can be either
|
|
42
|
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
43
|
+
* list of values. A producer of value is expected to set one of these
|
|
44
|
+
* variants. Absence of any variant indicates an error.
|
|
45
|
+
*
|
|
46
|
+
* The JSON representation for `Value` is JSON value.
|
|
47
|
+
*/
|
|
48
|
+
export interface Value {
|
|
49
|
+
/** The kind of value. */
|
|
50
|
+
kind:
|
|
51
|
+
| //
|
|
52
|
+
/** Represents a null value. */
|
|
53
|
+
{ $case: "null_value"; null_value: NullValue }
|
|
54
|
+
| //
|
|
55
|
+
/** Represents a double value. */
|
|
56
|
+
{ $case: "number_value"; number_value: number }
|
|
57
|
+
| //
|
|
58
|
+
/** Represents a string value. */
|
|
59
|
+
{ $case: "string_value"; string_value: string }
|
|
60
|
+
| //
|
|
61
|
+
/** Represents a boolean value. */
|
|
62
|
+
{ $case: "bool_value"; bool_value: boolean }
|
|
63
|
+
| //
|
|
64
|
+
/** Represents a structured value. */
|
|
65
|
+
{ $case: "struct_value"; struct_value: { [key: string]: any } | undefined }
|
|
66
|
+
| //
|
|
67
|
+
/** Represents a repeated `Value`. */
|
|
68
|
+
{ $case: "list_value"; list_value: Array<any> | undefined }
|
|
69
|
+
| undefined;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
74
|
+
*
|
|
75
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
76
|
+
*/
|
|
77
|
+
export interface ListValue {
|
|
78
|
+
/** Repeated field of dynamically typed values. */
|
|
79
|
+
values: any[];
|
|
80
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: system/admin/v1/ai_provider.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { Status } from "../../../common/v1/enum";
|
|
9
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
10
|
+
|
|
11
|
+
/** AI供应商分页查询条件。 */
|
|
12
|
+
export interface PageAiProviderRequest {
|
|
13
|
+
/** 供应商名称 */
|
|
14
|
+
name: string;
|
|
15
|
+
/** 状态:枚举【Status】 */
|
|
16
|
+
status?:
|
|
17
|
+
| Status
|
|
18
|
+
| undefined;
|
|
19
|
+
/** 当前页码 */
|
|
20
|
+
page_num: number;
|
|
21
|
+
/** 每页行数 */
|
|
22
|
+
page_size: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** AI供应商分页响应。 */
|
|
26
|
+
export interface PageAiProviderResponse {
|
|
27
|
+
/** 供应商列表 */
|
|
28
|
+
providers: AiProvider[];
|
|
29
|
+
/** 总数 */
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** 查询AI供应商请求。 */
|
|
34
|
+
export interface GetAiProviderRequest {
|
|
35
|
+
/** 供应商ID */
|
|
36
|
+
id: number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** AI供应商维护表单。 */
|
|
40
|
+
export interface AiProviderForm {
|
|
41
|
+
/** 供应商ID */
|
|
42
|
+
id: number;
|
|
43
|
+
/** 供应商名称 */
|
|
44
|
+
name: string;
|
|
45
|
+
/** 模型API基础地址 */
|
|
46
|
+
base_url: string;
|
|
47
|
+
/** 模型API密钥;更新时留空表示保留现有密钥 */
|
|
48
|
+
api_key: string;
|
|
49
|
+
/** 是否已保存模型密钥 */
|
|
50
|
+
api_key_configured: boolean;
|
|
51
|
+
/** 多模型JSON数组 */
|
|
52
|
+
models_json: string;
|
|
53
|
+
/** 排序值 */
|
|
54
|
+
sort: number;
|
|
55
|
+
/** Provider稳定标识 */
|
|
56
|
+
provider: string;
|
|
57
|
+
/** Provider个性化配置JSON对象 */
|
|
58
|
+
config:
|
|
59
|
+
| { [key: string]: any }
|
|
60
|
+
| undefined;
|
|
61
|
+
/** 状态 */
|
|
62
|
+
status: Status;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** 创建AI供应商请求。 */
|
|
66
|
+
export interface CreateAiProviderRequest {
|
|
67
|
+
/** AI供应商表单 */
|
|
68
|
+
ai_provider: AiProviderForm | undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** 更新AI供应商请求。 */
|
|
72
|
+
export interface UpdateAiProviderRequest {
|
|
73
|
+
/** AI供应商表单 */
|
|
74
|
+
ai_provider: AiProviderForm | undefined;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** 测试AI供应商全部模型请求。 */
|
|
78
|
+
export interface TestAiProviderModelsRequest {
|
|
79
|
+
/** 待测试的AI供应商草稿 */
|
|
80
|
+
ai_provider: AiProviderForm | undefined;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** 单个AI模型连通性测试结果。 */
|
|
84
|
+
export interface AiProviderModelTestResult {
|
|
85
|
+
/** 模型名称 */
|
|
86
|
+
model_name: string;
|
|
87
|
+
/** 测试是否成功 */
|
|
88
|
+
success: boolean;
|
|
89
|
+
/** 测试耗时毫秒 */
|
|
90
|
+
duration_ms: number;
|
|
91
|
+
/** 失败原因;成功时为空 */
|
|
92
|
+
message: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** 测试AI供应商全部模型响应。 */
|
|
96
|
+
export interface TestAiProviderModelsResponse {
|
|
97
|
+
/** 模型测试结果 */
|
|
98
|
+
results: AiProviderModelTestResult[];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** 删除AI供应商请求。 */
|
|
102
|
+
export interface DeleteAiProviderRequest {
|
|
103
|
+
/** 供应商ID */
|
|
104
|
+
id: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** 设置AI供应商状态请求。 */
|
|
108
|
+
export interface SetAiProviderStatusRequest {
|
|
109
|
+
/** 供应商ID */
|
|
110
|
+
id: number;
|
|
111
|
+
/** 状态 */
|
|
112
|
+
status: Status;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** AI供应商分页记录。 */
|
|
116
|
+
export interface AiProvider {
|
|
117
|
+
/** 供应商ID */
|
|
118
|
+
id: number;
|
|
119
|
+
/** 供应商名称 */
|
|
120
|
+
name: string;
|
|
121
|
+
/** 模型API基础地址 */
|
|
122
|
+
base_url: string;
|
|
123
|
+
/** 是否已保存模型密钥 */
|
|
124
|
+
api_key_configured: boolean;
|
|
125
|
+
/** 模型名称列表 */
|
|
126
|
+
model_names: string[];
|
|
127
|
+
/** 排序值 */
|
|
128
|
+
sort: number;
|
|
129
|
+
/** Provider稳定标识 */
|
|
130
|
+
provider: string;
|
|
131
|
+
/** 状态 */
|
|
132
|
+
status: Status;
|
|
133
|
+
/** 创建时间 */
|
|
134
|
+
created_at: string;
|
|
135
|
+
/** 更新时间 */
|
|
136
|
+
updated_at: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** AI供应商管理服务。 */
|
|
140
|
+
export interface AiProviderService {
|
|
141
|
+
/** 分页查询AI供应商。 */
|
|
142
|
+
PageAiProvider(request: PageAiProviderRequest): Promise<PageAiProviderResponse>;
|
|
143
|
+
/** 查询AI供应商表单。 */
|
|
144
|
+
GetAiProvider(request: GetAiProviderRequest): Promise<AiProviderForm>;
|
|
145
|
+
/** 创建AI供应商。 */
|
|
146
|
+
CreateAiProvider(request: CreateAiProviderRequest): Promise<Empty>;
|
|
147
|
+
/** 更新AI供应商。 */
|
|
148
|
+
UpdateAiProvider(request: UpdateAiProviderRequest): Promise<Empty>;
|
|
149
|
+
/** 测试AI供应商表单中的全部模型。 */
|
|
150
|
+
TestAiProviderModels(request: TestAiProviderModelsRequest): Promise<TestAiProviderModelsResponse>;
|
|
151
|
+
/** 删除AI供应商。 */
|
|
152
|
+
DeleteAiProvider(request: DeleteAiProviderRequest): Promise<Empty>;
|
|
153
|
+
/** 设置AI供应商状态。 */
|
|
154
|
+
SetAiProviderStatus(request: SetAiProviderStatusRequest): Promise<Empty>;
|
|
155
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: system/admin/v1/base_api_rate_limit_policy.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { Status } from "../../../common/v1/enum";
|
|
9
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
10
|
+
import type { BaseRateLimitAlgorithm } from "./base_rate_limit_rule";
|
|
11
|
+
|
|
12
|
+
/** 接口限流维度。 */
|
|
13
|
+
export enum BaseApiRateLimitDimension {
|
|
14
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_UNSPECIFIED - 未指定维度。 */
|
|
15
|
+
BASE_API_RATE_LIMIT_DIMENSION_UNSPECIFIED = 0,
|
|
16
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_GLOBAL - 全接口共享限额。 */
|
|
17
|
+
BASE_API_RATE_LIMIT_DIMENSION_GLOBAL = 1,
|
|
18
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_IP - 按来源IP分别限额。 */
|
|
19
|
+
BASE_API_RATE_LIMIT_DIMENSION_IP = 2,
|
|
20
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_TENANT - 按租户分别限额。 */
|
|
21
|
+
BASE_API_RATE_LIMIT_DIMENSION_TENANT = 3,
|
|
22
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_USER - 按用户分别限额。 */
|
|
23
|
+
BASE_API_RATE_LIMIT_DIMENSION_USER = 4,
|
|
24
|
+
/** BASE_API_RATE_LIMIT_DIMENSION_OAUTH_CLIENT - 按OAuth客户端分别限额。 */
|
|
25
|
+
BASE_API_RATE_LIMIT_DIMENSION_OAUTH_CLIENT = 5,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 接口限流策略分页查询条件。 */
|
|
29
|
+
export interface PageBaseApiRateLimitPolicyRequest {
|
|
30
|
+
/** 接口操作 */
|
|
31
|
+
operation: string;
|
|
32
|
+
/** 限流维度 */
|
|
33
|
+
dimension?:
|
|
34
|
+
| BaseApiRateLimitDimension
|
|
35
|
+
| undefined;
|
|
36
|
+
/** 状态 */
|
|
37
|
+
status?:
|
|
38
|
+
| Status
|
|
39
|
+
| undefined;
|
|
40
|
+
/** 当前页码 */
|
|
41
|
+
page_num: number;
|
|
42
|
+
/** 每页数量 */
|
|
43
|
+
page_size: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** 接口限流策略分页响应。 */
|
|
47
|
+
export interface PageBaseApiRateLimitPolicyResponse {
|
|
48
|
+
/** 接口限流策略列表 */
|
|
49
|
+
base_api_rate_limit_policies: BaseApiRateLimitPolicy[];
|
|
50
|
+
/** 总数 */
|
|
51
|
+
total: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** 接口限流策略详情查询条件。 */
|
|
55
|
+
export interface GetBaseApiRateLimitPolicyRequest {
|
|
56
|
+
/** 策略ID */
|
|
57
|
+
id: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** 接口限流策略表单。 */
|
|
61
|
+
export interface BaseApiRateLimitPolicyForm {
|
|
62
|
+
/** 策略ID */
|
|
63
|
+
id: number;
|
|
64
|
+
/** 限流维度 */
|
|
65
|
+
dimension: BaseApiRateLimitDimension;
|
|
66
|
+
/** 限流规则ID */
|
|
67
|
+
rule_id: number;
|
|
68
|
+
/** 策略规则参数JSON */
|
|
69
|
+
rule_params: string;
|
|
70
|
+
/** 接口操作列表 */
|
|
71
|
+
operations: string[];
|
|
72
|
+
/** 状态 */
|
|
73
|
+
status: Status;
|
|
74
|
+
/** 备注 */
|
|
75
|
+
remark: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** 创建接口限流策略请求参数。 */
|
|
79
|
+
export interface CreateBaseApiRateLimitPolicyRequest {
|
|
80
|
+
/** 接口限流策略表单 */
|
|
81
|
+
base_api_rate_limit_policy: BaseApiRateLimitPolicyForm | undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** 更新接口限流策略请求参数。 */
|
|
85
|
+
export interface UpdateBaseApiRateLimitPolicyRequest {
|
|
86
|
+
/** 接口限流策略表单 */
|
|
87
|
+
base_api_rate_limit_policy: BaseApiRateLimitPolicyForm | undefined;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** 删除接口限流策略请求参数。 */
|
|
91
|
+
export interface DeleteBaseApiRateLimitPolicyRequest {
|
|
92
|
+
/** 策略ID列表 */
|
|
93
|
+
id: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** 设置接口限流策略状态请求参数。 */
|
|
97
|
+
export interface SetBaseApiRateLimitPolicyStatusRequest {
|
|
98
|
+
/** 策略ID */
|
|
99
|
+
id: number;
|
|
100
|
+
/** 状态 */
|
|
101
|
+
status: Status;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** 接口限流策略详情。 */
|
|
105
|
+
export interface BaseApiRateLimitPolicy {
|
|
106
|
+
/** 策略ID */
|
|
107
|
+
id: number;
|
|
108
|
+
/** 限流接口列表 */
|
|
109
|
+
apis: BaseApiRateLimitPolicyAPI[];
|
|
110
|
+
/** 限流维度 */
|
|
111
|
+
dimension: BaseApiRateLimitDimension;
|
|
112
|
+
/** 限流规则ID */
|
|
113
|
+
rule_id: number;
|
|
114
|
+
/** 限流规则编码 */
|
|
115
|
+
rule_code: string;
|
|
116
|
+
/** 限流规则名称 */
|
|
117
|
+
rule_name: string;
|
|
118
|
+
/** 策略规则参数JSON */
|
|
119
|
+
rule_params: string;
|
|
120
|
+
/** 限流算法 */
|
|
121
|
+
rule_type: BaseRateLimitAlgorithm;
|
|
122
|
+
/** 状态 */
|
|
123
|
+
status: Status;
|
|
124
|
+
/** 备注 */
|
|
125
|
+
remark: string;
|
|
126
|
+
/** 创建时间 */
|
|
127
|
+
created_at: string;
|
|
128
|
+
/** 更新时间 */
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** 接口限流策略关联的接口摘要。 */
|
|
133
|
+
export interface BaseApiRateLimitPolicyAPI {
|
|
134
|
+
/** 接口操作 */
|
|
135
|
+
operation: string;
|
|
136
|
+
/** 服务名称 */
|
|
137
|
+
service_name: string;
|
|
138
|
+
/** 服务描述 */
|
|
139
|
+
service_desc: string;
|
|
140
|
+
/** 请求方法 */
|
|
141
|
+
method: string;
|
|
142
|
+
/** 请求地址 */
|
|
143
|
+
path: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Admin接口限流策略服务。 */
|
|
147
|
+
export interface BaseApiRateLimitPolicyService {
|
|
148
|
+
/** 查询接口限流策略分页列表。 */
|
|
149
|
+
PageBaseApiRateLimitPolicy(request: PageBaseApiRateLimitPolicyRequest): Promise<PageBaseApiRateLimitPolicyResponse>;
|
|
150
|
+
/** 查询接口限流策略详情。 */
|
|
151
|
+
GetBaseApiRateLimitPolicy(request: GetBaseApiRateLimitPolicyRequest): Promise<BaseApiRateLimitPolicyForm>;
|
|
152
|
+
/** 创建接口限流策略。 */
|
|
153
|
+
CreateBaseApiRateLimitPolicy(request: CreateBaseApiRateLimitPolicyRequest): Promise<Empty>;
|
|
154
|
+
/** 更新接口限流策略。 */
|
|
155
|
+
UpdateBaseApiRateLimitPolicy(request: UpdateBaseApiRateLimitPolicyRequest): Promise<Empty>;
|
|
156
|
+
/** 删除接口限流策略。 */
|
|
157
|
+
DeleteBaseApiRateLimitPolicy(request: DeleteBaseApiRateLimitPolicyRequest): Promise<Empty>;
|
|
158
|
+
/** 设置接口限流策略状态。 */
|
|
159
|
+
SetBaseApiRateLimitPolicyStatus(request: SetBaseApiRateLimitPolicyStatusRequest): Promise<Empty>;
|
|
160
|
+
}
|
|
@@ -7,26 +7,6 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
9
9
|
|
|
10
|
-
/** 统一翻译表目标类型,和 base_i18n.target_type 的值一一对应。 */
|
|
11
|
-
export enum I18nTargetType {
|
|
12
|
-
/** I18N_TARGET_TYPE_UNSPECIFIED - 未指定统一翻译表目标类型。 */
|
|
13
|
-
I18N_TARGET_TYPE_UNSPECIFIED = 0,
|
|
14
|
-
/** I18N_TARGET_TYPE_BASE_CONFIG_VALUE - 系统配置值。 */
|
|
15
|
-
I18N_TARGET_TYPE_BASE_CONFIG_VALUE = 1,
|
|
16
|
-
/** I18N_TARGET_TYPE_BASE_CONFIG_NAME - 系统配置名称。 */
|
|
17
|
-
I18N_TARGET_TYPE_BASE_CONFIG_NAME = 2,
|
|
18
|
-
/** I18N_TARGET_TYPE_BASE_DICT_NAME - 字典名称。 */
|
|
19
|
-
I18N_TARGET_TYPE_BASE_DICT_NAME = 3,
|
|
20
|
-
/** I18N_TARGET_TYPE_BASE_DICT_ITEM_LABEL - 字典项标签。 */
|
|
21
|
-
I18N_TARGET_TYPE_BASE_DICT_ITEM_LABEL = 4,
|
|
22
|
-
/** I18N_TARGET_TYPE_BASE_MENU_META_TITLE - 菜单标题。 */
|
|
23
|
-
I18N_TARGET_TYPE_BASE_MENU_META_TITLE = 5,
|
|
24
|
-
/** I18N_TARGET_TYPE_BASE_JOB_NAME - 定时任务名称。 */
|
|
25
|
-
I18N_TARGET_TYPE_BASE_JOB_NAME = 6,
|
|
26
|
-
/** I18N_TARGET_TYPE_BASE_MIGRATION_DESCRIPTION - 数据库迁移说明。 */
|
|
27
|
-
I18N_TARGET_TYPE_BASE_MIGRATION_DESCRIPTION = 7,
|
|
28
|
-
}
|
|
29
|
-
|
|
30
10
|
/** 翻译单个文本请求。 */
|
|
31
11
|
export interface DraftBaseI18nRequest {
|
|
32
12
|
/** 待翻译文本 */
|
|
@@ -53,8 +33,8 @@ export interface DraftBaseI18nItem {
|
|
|
53
33
|
export interface UpdateBaseI18nRequest {
|
|
54
34
|
/** 翻译记录ID,大于零时优先按ID更新;ID不存在时根据目标信息更新或新增 */
|
|
55
35
|
id: number;
|
|
56
|
-
/**
|
|
57
|
-
|
|
36
|
+
/** 翻译目标键,格式为表名.字段名 */
|
|
37
|
+
target_key: string;
|
|
58
38
|
/** 目标资源ID,ID为零时用于查询或新增 */
|
|
59
39
|
target_id: number;
|
|
60
40
|
/** 目标语言区域,ID为零时用于查询或新增 */
|
|
@@ -67,8 +47,8 @@ export interface UpdateBaseI18nRequest {
|
|
|
67
47
|
export interface BaseI18n {
|
|
68
48
|
/** 翻译记录ID */
|
|
69
49
|
id: number;
|
|
70
|
-
/**
|
|
71
|
-
|
|
50
|
+
/** 翻译目标键,格式为表名.字段名 */
|
|
51
|
+
target_key: string;
|
|
72
52
|
/** 目标资源ID */
|
|
73
53
|
target_id: number;
|
|
74
54
|
/** 语言区域 */
|
|
@@ -161,11 +161,11 @@ export interface BaseMessage {
|
|
|
161
161
|
status: MessageStatus;
|
|
162
162
|
/** 发送者名称 */
|
|
163
163
|
sender_name: string;
|
|
164
|
-
/**
|
|
164
|
+
/** 投递目标数 */
|
|
165
165
|
recipient_total: number;
|
|
166
|
-
/**
|
|
166
|
+
/** 成功投递数 */
|
|
167
167
|
delivered_total: number;
|
|
168
|
-
/**
|
|
168
|
+
/** 失败投递数 */
|
|
169
169
|
failed_total: number;
|
|
170
170
|
/** 计划发布时间 */
|
|
171
171
|
scheduled_at: string;
|
|
@@ -193,7 +193,7 @@ export interface BaseMessageDispatch {
|
|
|
193
193
|
status: MessageDispatchStatus;
|
|
194
194
|
/** 匹配人数 */
|
|
195
195
|
matched_total: number;
|
|
196
|
-
/**
|
|
196
|
+
/** 新增投递记录数 */
|
|
197
197
|
inserted_total: number;
|
|
198
198
|
/** 尝试次数 */
|
|
199
199
|
attempt_count: number;
|
|
@@ -10,8 +10,20 @@ import type { SelectOptionResponse } from "../../../common/v1/common";
|
|
|
10
10
|
import type { Status } from "../../../common/v1/enum";
|
|
11
11
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
12
12
|
|
|
13
|
+
/** 消息分类站内信启用状态。 */
|
|
14
|
+
export enum BaseMessageCategoryInboxEnabled {
|
|
15
|
+
/** BASE_MESSAGE_CATEGORY_INBOX_ENABLED_UNSPECIFIED - 未指定站内信状态。 */
|
|
16
|
+
BASE_MESSAGE_CATEGORY_INBOX_ENABLED_UNSPECIFIED = 0,
|
|
17
|
+
/** BASE_MESSAGE_CATEGORY_INBOX_ENABLED_ENABLE - 启用站内信。 */
|
|
18
|
+
BASE_MESSAGE_CATEGORY_INBOX_ENABLED_ENABLE = 1,
|
|
19
|
+
/** BASE_MESSAGE_CATEGORY_INBOX_ENABLED_DISABLE - 禁用站内信。 */
|
|
20
|
+
BASE_MESSAGE_CATEGORY_INBOX_ENABLED_DISABLE = 2,
|
|
21
|
+
}
|
|
22
|
+
|
|
13
23
|
/** 消息分类选项查询条件。 */
|
|
14
24
|
export interface OptionBaseMessageCategoryRequest {
|
|
25
|
+
/** 按站内信启用状态筛选 */
|
|
26
|
+
inbox_enabled?: BaseMessageCategoryInboxEnabled | undefined;
|
|
15
27
|
}
|
|
16
28
|
|
|
17
29
|
/** 消息分类分页查询条件。 */
|
|
@@ -98,6 +110,10 @@ export interface BaseMessageCategoryForm {
|
|
|
98
110
|
allow_delete: boolean;
|
|
99
111
|
/** 状态 */
|
|
100
112
|
status: Status;
|
|
113
|
+
/** 消息 Provider ID JSON数组 */
|
|
114
|
+
provider_id: number[];
|
|
115
|
+
/** 是否启用站内信 */
|
|
116
|
+
inbox_enabled: BaseMessageCategoryInboxEnabled;
|
|
101
117
|
}
|
|
102
118
|
|
|
103
119
|
/** 消息分类。 */
|
|
@@ -124,6 +140,10 @@ export interface BaseMessageCategory {
|
|
|
124
140
|
allow_delete: boolean;
|
|
125
141
|
/** 状态 */
|
|
126
142
|
status: Status;
|
|
143
|
+
/** 消息 Provider ID JSON数组 */
|
|
144
|
+
provider_id: number[];
|
|
145
|
+
/** 是否启用站内信 */
|
|
146
|
+
inbox_enabled: BaseMessageCategoryInboxEnabled;
|
|
127
147
|
/** 创建时间 */
|
|
128
148
|
created_at: string;
|
|
129
149
|
/** 更新时间 */
|