@liujitcn/kratos-admin-system 0.0.62 → 0.0.64

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 (97) hide show
  1. package/README.md +16 -1
  2. package/dist/package/declarations/src/api/base/v1/ai_provider.d.ts +7 -0
  3. package/dist/package/declarations/src/api/system/admin/v1/ai_provider.d.ts +18 -0
  4. package/dist/package/declarations/src/api/system/admin/v1/base_api_rate_limit_policy.d.ts +19 -0
  5. package/dist/package/declarations/src/api/system/admin/v1/base_message_provider.d.ts +21 -0
  6. package/dist/package/declarations/src/api/system/admin/v1/base_message_template.d.ts +16 -0
  7. package/dist/package/declarations/src/api/system/admin/v1/base_oauth_provider.d.ts +18 -0
  8. package/dist/package/declarations/src/api/system/admin/v1/base_rate_limit_rule.d.ts +21 -0
  9. package/dist/package/declarations/src/components/api/ApiTransfer.vue.d.ts +35 -0
  10. package/dist/package/declarations/src/components/api/apiTransfer.d.ts +13 -0
  11. package/dist/package/declarations/src/components/i18n/DynamicI18nCell.vue.d.ts +2 -2
  12. package/dist/package/declarations/src/components/i18n/dynamicI18n.d.ts +3 -4
  13. package/dist/package/declarations/src/locales/generated.d.ts +900 -0
  14. package/dist/package/declarations/src/rpc/base/v1/ai_message.d.ts +4 -0
  15. package/dist/package/declarations/src/rpc/base/v1/ai_provider.d.ts +22 -0
  16. package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +20 -0
  17. package/dist/package/declarations/src/rpc/google/protobuf/struct.d.ts +81 -0
  18. package/dist/package/declarations/src/rpc/system/admin/v1/ai_provider.d.ts +110 -0
  19. package/dist/package/declarations/src/rpc/system/admin/v1/base_api_rate_limit_policy.d.ts +137 -0
  20. package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n.d.ts +4 -23
  21. package/dist/package/declarations/src/rpc/system/admin/v1/base_message.d.ts +4 -4
  22. package/dist/package/declarations/src/rpc/system/admin/v1/base_message_category.d.ts +19 -0
  23. package/dist/package/declarations/src/rpc/system/admin/v1/base_message_provider.d.ts +126 -0
  24. package/dist/package/declarations/src/rpc/system/admin/v1/base_message_template.d.ts +99 -0
  25. package/dist/package/declarations/src/rpc/system/admin/v1/base_oauth_provider.d.ts +133 -0
  26. package/dist/package/declarations/src/rpc/system/admin/v1/base_rate_limit_rule.d.ts +144 -0
  27. package/dist/package/declarations/src/utils/persisted-message.d.ts +4 -0
  28. package/dist/package/declarations/src/utils/rateLimit.d.ts +24 -0
  29. package/dist/package/declarations/src/views/ai/chat/components/ChatPanel.vue.d.ts +11 -2
  30. package/dist/package/declarations/src/views/ai/chat/components/XSender.vue.d.ts +9 -0
  31. package/dist/package/declarations/src/views/base/ai-provider/index.vue.d.ts +3 -0
  32. package/dist/package/declarations/src/views/base/api-rate-limit-policy/index.vue.d.ts +3 -0
  33. package/dist/package/declarations/src/views/base/message-provider/index.vue.d.ts +3 -0
  34. package/dist/package/declarations/src/views/base/message-template/index.vue.d.ts +3 -0
  35. package/dist/package/declarations/src/views/base/oauth-provider/index.vue.d.ts +3 -0
  36. package/dist/package/declarations/src/views/base/rate-limit-rule/index.vue.d.ts +3 -0
  37. package/dist/package/src/api/base/v1/ai_provider.ts +22 -0
  38. package/dist/package/src/api/system/admin/v1/ai_provider.ts +50 -0
  39. package/dist/package/src/api/system/admin/v1/base_api_rate_limit_policy.ts +51 -0
  40. package/dist/package/src/api/system/admin/v1/base_message_provider.ts +57 -0
  41. package/dist/package/src/api/system/admin/v1/base_message_template.ts +44 -0
  42. package/dist/package/src/api/system/admin/v1/base_oauth_provider.ts +50 -0
  43. package/dist/package/src/api/system/admin/v1/base_rate_limit_rule.ts +58 -0
  44. package/dist/package/src/components/ai/Ai.vue +1 -1
  45. package/dist/package/src/components/api/ApiTransfer.vue +117 -0
  46. package/dist/package/src/components/api/apiTransfer.ts +27 -0
  47. package/dist/package/src/components/i18n/DynamicI18nCell.vue +8 -8
  48. package/dist/package/src/components/i18n/DynamicI18nEditor.vue +6 -3
  49. package/dist/package/src/components/i18n/dynamicI18n.ts +4 -5
  50. package/dist/package/src/components/tenant-project/TenantProjectManager.vue +2 -1
  51. package/dist/package/src/locales/en-US.json +229 -4
  52. package/dist/package/src/locales/ja-JP.json +229 -4
  53. package/dist/package/src/locales/zh-CN.json +229 -4
  54. package/dist/package/src/locales/zh-TW.json +229 -4
  55. package/dist/package/src/rpc/base/v1/ai_message.ts +7 -1
  56. package/dist/package/src/rpc/base/v1/ai_provider.ts +33 -0
  57. package/dist/package/src/rpc/base/v1/oauth.ts +16 -0
  58. package/dist/package/src/rpc/google/protobuf/struct.ts +80 -0
  59. package/dist/package/src/rpc/system/admin/v1/ai_provider.ts +129 -0
  60. package/dist/package/src/rpc/system/admin/v1/base_api_rate_limit_policy.ts +160 -0
  61. package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +4 -24
  62. package/dist/package/src/rpc/system/admin/v1/base_message.ts +4 -4
  63. package/dist/package/src/rpc/system/admin/v1/base_message_category.ts +20 -0
  64. package/dist/package/src/rpc/system/admin/v1/base_message_provider.ts +150 -0
  65. package/dist/package/src/rpc/system/admin/v1/base_message_template.ts +117 -0
  66. package/dist/package/src/rpc/system/admin/v1/base_oauth_provider.ts +156 -0
  67. package/dist/package/src/rpc/system/admin/v1/base_rate_limit_rule.ts +167 -0
  68. package/dist/package/src/utils/persisted-message.ts +21 -0
  69. package/dist/package/src/utils/rateLimit.ts +140 -0
  70. package/dist/package/src/views/ai/chat/components/ChatPanel.vue +36 -4
  71. package/dist/package/src/views/ai/chat/components/XSender.vue +112 -1
  72. package/dist/package/src/views/ai/chat/index.vue +30 -1
  73. package/dist/package/src/views/base/ai-provider/index.vue +512 -0
  74. package/dist/package/src/views/base/api-rate-limit-policy/index.vue +428 -0
  75. package/dist/package/src/views/base/backup-management/archive-record/index.vue +2 -0
  76. package/dist/package/src/views/base/backup-management/archive-restore/index.vue +2 -1
  77. package/dist/package/src/views/base/backup-management/backup-record/index.vue +2 -0
  78. package/dist/package/src/views/base/backup-management/backup-restore/index.vue +2 -1
  79. package/dist/package/src/views/base/config/index.vue +12 -13
  80. package/dist/package/src/views/base/dict/index.vue +2 -3
  81. package/dist/package/src/views/base/dict/item.vue +2 -3
  82. package/dist/package/src/views/base/job/index.vue +2 -3
  83. package/dist/package/src/views/base/job/log.vue +3 -2
  84. package/dist/package/src/views/base/menu/index.vue +27 -83
  85. package/dist/package/src/views/base/message/index.vue +9 -3
  86. package/dist/package/src/views/base/message-category/index.vue +34 -3
  87. package/dist/package/src/views/base/message-provider/index.vue +164 -0
  88. package/dist/package/src/views/base/message-template/index.vue +105 -0
  89. package/dist/package/src/views/base/migration/index.vue +1 -1
  90. package/dist/package/src/views/base/oauth-client/index.vue +6 -6
  91. package/dist/package/src/views/base/oauth-provider/index.vue +274 -0
  92. package/dist/package/src/views/base/rate-limit-rule/index.vue +322 -0
  93. package/dist/package/src/views/base/redact-output-policy/index.vue +1 -1
  94. package/dist/package/src/views/base/redact-rule/index.vue +12 -2
  95. package/dist/package/src/views/base/redact-storage-policy/index.vue +4 -0
  96. package/dist/package/src/views/base/tenant/index.vue +3 -3
  97. package/package.json +2 -2
@@ -0,0 +1,33 @@
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 AiProviderModelOption {
15
+ /** Provider ID */
16
+ provider_id: number;
17
+ /** Provider名称 */
18
+ name: string;
19
+ /** 模型名称列表 */
20
+ models: string[];
21
+ }
22
+
23
+ /** AI Provider模型选项查询响应。 */
24
+ export interface ListAiProviderModelOptionsResponse {
25
+ /** Provider及其模型列表 */
26
+ providers: AiProviderModelOption[];
27
+ }
28
+
29
+ /** AI Provider 可选模型查询服务。 */
30
+ export interface AiModelService {
31
+ /** 查询已启用的AI Provider及其可用模型。 */
32
+ ListAiProviderModelOptions(request: ListAiProviderModelOptionsRequest): Promise<ListAiProviderModelOptionsResponse>;
33
+ }
@@ -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,129 @@
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 DeleteAiProviderRequest {
79
+ /** 供应商ID */
80
+ id: number;
81
+ }
82
+
83
+ /** 设置AI供应商状态请求。 */
84
+ export interface SetAiProviderStatusRequest {
85
+ /** 供应商ID */
86
+ id: number;
87
+ /** 状态 */
88
+ status: Status;
89
+ }
90
+
91
+ /** AI供应商分页记录。 */
92
+ export interface AiProvider {
93
+ /** 供应商ID */
94
+ id: number;
95
+ /** 供应商名称 */
96
+ name: string;
97
+ /** 模型API基础地址 */
98
+ base_url: string;
99
+ /** 是否已保存模型密钥 */
100
+ api_key_configured: boolean;
101
+ /** 模型名称列表 */
102
+ model_names: string[];
103
+ /** 排序值 */
104
+ sort: number;
105
+ /** Provider稳定标识 */
106
+ provider: string;
107
+ /** 状态 */
108
+ status: Status;
109
+ /** 创建时间 */
110
+ created_at: string;
111
+ /** 更新时间 */
112
+ updated_at: string;
113
+ }
114
+
115
+ /** AI供应商管理服务。 */
116
+ export interface AiProviderService {
117
+ /** 分页查询AI供应商。 */
118
+ PageAiProvider(request: PageAiProviderRequest): Promise<PageAiProviderResponse>;
119
+ /** 查询AI供应商表单。 */
120
+ GetAiProvider(request: GetAiProviderRequest): Promise<AiProviderForm>;
121
+ /** 创建AI供应商。 */
122
+ CreateAiProvider(request: CreateAiProviderRequest): Promise<Empty>;
123
+ /** 更新AI供应商。 */
124
+ UpdateAiProvider(request: UpdateAiProviderRequest): Promise<Empty>;
125
+ /** 删除AI供应商。 */
126
+ DeleteAiProvider(request: DeleteAiProviderRequest): Promise<Empty>;
127
+ /** 设置AI供应商状态。 */
128
+ SetAiProviderStatus(request: SetAiProviderStatusRequest): Promise<Empty>;
129
+ }
@@ -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
- /** 翻译目标类型,ID为零时用于查询或新增 */
57
- target_type: I18nTargetType;
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
- target_type: I18nTargetType;
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
  /** 更新时间 */