@liujitcn/kratos-admin-system 0.0.37 → 0.0.39
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/dist/package/declarations/src/api/system/admin/v1/base_login_log.d.ts +3 -1
- package/dist/package/declarations/src/api/system/admin/v1/base_session.d.ts +7 -1
- package/dist/package/declarations/src/locales/generated.d.ts +100 -0
- package/dist/package/declarations/src/rpc/base/v1/login.d.ts +2 -0
- package/dist/package/declarations/src/rpc/base/v1/notification.d.ts +1 -1
- package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +4 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth_client.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_api_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_data_access_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_login_log.d.ts +10 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_login_policy.d.ts +8 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message_category.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_migration.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_operation_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_permission_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_policy_evaluation_log.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_redact_output_policy.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_redact_storage_policy.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_session.d.ts +41 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_archive.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_archive_record.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_archive_restore.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_backup.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_backup_record.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_backup_restore.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_source.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/cache.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/oauth_client.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/ops_monitoring.d.ts +1 -1
- package/dist/package/declarations/src/views/base/online-session/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/profile/components/login-log.vue.d.ts +3 -0
- package/dist/package/src/api/base/v1/sse.ts +11 -2
- package/dist/package/src/api/system/admin/v1/base_login_log.ts +10 -0
- package/dist/package/src/api/system/admin/v1/base_session.ts +32 -1
- package/dist/package/src/locales/en-US.json +33 -20
- package/dist/package/src/locales/ja-JP.json +35 -22
- package/dist/package/src/locales/zh-CN.json +34 -21
- package/dist/package/src/locales/zh-TW.json +33 -20
- package/dist/package/src/module.ts +1 -0
- package/dist/package/src/rpc/base/v1/ai_message.ts +1 -1
- package/dist/package/src/rpc/base/v1/ai_session.ts +1 -1
- package/dist/package/src/rpc/base/v1/ai_tool.ts +1 -1
- package/dist/package/src/rpc/base/v1/config.ts +1 -1
- package/dist/package/src/rpc/base/v1/login.ts +3 -1
- package/dist/package/src/rpc/base/v1/notification.ts +2 -2
- package/dist/package/src/rpc/base/v1/oauth.ts +5 -1
- package/dist/package/src/rpc/base/v1/oauth_client.ts +2 -2
- package/dist/package/src/rpc/base/v1/sse.ts +1 -1
- package/dist/package/src/rpc/common/v1/analytics.ts +1 -1
- package/dist/package/src/rpc/common/v1/common.ts +1 -1
- package/dist/package/src/rpc/common/v1/enum.ts +1 -1
- package/dist/package/src/rpc/common/v1/types.ts +1 -1
- package/dist/package/src/rpc/google/protobuf/empty.ts +1 -1
- package/dist/package/src/rpc/google/protobuf/timestamp.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/auth.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_api.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_api_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_area.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_config.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_dashboard.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_data_access_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_dept.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_dict_item.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_file.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_job.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_job_log.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_language.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_login_log.ts +12 -2
- package/dist/package/src/rpc/system/admin/v1/base_login_policy.ts +11 -1
- package/dist/package/src/rpc/system/admin/v1/base_menu.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_message.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_message_category.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_migration.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_operation_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_permission_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_policy_evaluation_log.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_post.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_redact_common.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_redact_output_policy.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_redact_rule.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_redact_storage_policy.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_role.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_session.ts +47 -1
- package/dist/package/src/rpc/system/admin/v1/base_table_archive.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_archive_record.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_archive_restore.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_backup.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_backup_record.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_backup_restore.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_table_source.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/base_tenant.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_third_account.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_user.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/cache.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/code_gen.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/code_gen_column.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/code_gen_proto.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/code_gen_table.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/common.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/oauth_client.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/ops_monitoring.ts +2 -2
- package/dist/package/src/rpc/system/admin/v1/runtime_log.ts +1 -1
- package/dist/package/src/rpc/system/common/v1/common.ts +1 -1
- package/dist/package/src/rpc/system/config/v1/system_config.ts +1 -1
- package/dist/package/src/views/base/login-policy/index.vue +28 -0
- package/dist/package/src/views/base/online-session/index.vue +116 -0
- package/dist/package/src/views/base/user/index.vue +20 -8
- package/dist/package/src/views/profile/components/login-log.vue +123 -0
- package/dist/package/src/views/profile/components/session.vue +46 -61
- package/dist/package/src/views/profile/index.vue +13 -9
- package/dist/package/src/views/tool/code-gen/code-preview/index.vue +5 -15
- package/dist/package/src/views/tool/code-gen/table/index.vue +50 -24
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { BaseLoginLog, BaseLoginLogService, GetBaseLoginLogRequest, PageBaseLoginLogRequest, PageBaseLoginLogResponse } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_login_log";
|
|
1
|
+
import type { BaseLoginLog, BaseLoginLogService, GetBaseLoginLogRequest, PageBaseLoginLogRequest, PageCurrentUserLoginLogRequest, PageBaseLoginLogResponse } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_login_log";
|
|
2
2
|
/** Admin 登录日志服务。 */
|
|
3
3
|
export declare class BaseLoginLogServiceImpl implements BaseLoginLogService {
|
|
4
|
+
/** 查询当前用户本人的登录记录。 */
|
|
5
|
+
PageCurrentUserLoginLog(request: PageCurrentUserLoginLogRequest): Promise<PageBaseLoginLogResponse>;
|
|
4
6
|
/** 查询登录日志分页列表。 */
|
|
5
7
|
PageBaseLoginLog(request: PageBaseLoginLogRequest): Promise<PageBaseLoginLogResponse>;
|
|
6
8
|
/** 查询登录日志详情。 */
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import type { BaseSession, GetCurrentBaseSessionRequest, RevokeAllBaseSessionsRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_session";
|
|
1
|
+
import type { BaseSession, ListCurrentBaseSessionsRequest, ListCurrentBaseSessionsResponse, GetCurrentBaseSessionRequest, PageOnlineBaseSessionsRequest, PageOnlineBaseSessionsResponse, RevokeAllBaseSessionsRequest, RevokeBaseSessionRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_session";
|
|
2
2
|
import type { Empty } from "@liujitcn/kratos-admin-system/rpc/google/protobuf/empty";
|
|
3
3
|
/** BaseSessionService Admin会话管理服务。 */
|
|
4
4
|
export declare class BaseSessionServiceImpl {
|
|
5
|
+
/** 查询当前用户全部有效会话。 */
|
|
6
|
+
ListCurrentBaseSessions(request: ListCurrentBaseSessionsRequest): Promise<ListCurrentBaseSessionsResponse>;
|
|
5
7
|
/** 查询当前用户会话。 */
|
|
6
8
|
GetCurrentBaseSession(request: GetCurrentBaseSessionRequest): Promise<BaseSession>;
|
|
7
9
|
/** 撤销当前用户全部会话。 */
|
|
8
10
|
RevokeAllBaseSessions(request: RevokeAllBaseSessionsRequest): Promise<Empty>;
|
|
11
|
+
/** 分页查询当前在线用户会话。 */
|
|
12
|
+
PageOnlineBaseSessions(request: PageOnlineBaseSessionsRequest): Promise<PageOnlineBaseSessionsResponse>;
|
|
13
|
+
/** 下线指定用户会话。 */
|
|
14
|
+
RevokeBaseSession(request: RevokeBaseSessionRequest): Promise<Empty>;
|
|
9
15
|
}
|
|
10
16
|
/** defBaseSessionService Admin会话管理服务实例。 */
|
|
11
17
|
export declare const defBaseSessionService: BaseSessionServiceImpl;
|
|
@@ -1336,6 +1336,8 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1336
1336
|
"system.base.login_policy.field.password_history_count": string;
|
|
1337
1337
|
"system.base.login_policy.field.password_min_complexity_classes": string;
|
|
1338
1338
|
"system.base.login_policy.field.password_max_age_days": string;
|
|
1339
|
+
"system.base.login_policy.field.mfa_remember_days": string;
|
|
1340
|
+
"system.base.login_policy.validation.mfa_remember_days": string;
|
|
1339
1341
|
"system.base.login_policy.field.initial_password": string;
|
|
1340
1342
|
"system.base.login_policy.scope.global": string;
|
|
1341
1343
|
"system.base.login_policy.restriction.blacklist": string;
|
|
@@ -1498,6 +1500,29 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1498
1500
|
"system.base.redact_output_policy.validation.response_field": string;
|
|
1499
1501
|
"system.base.redact_output_policy.validation.mode": string;
|
|
1500
1502
|
"system.base.redact_output_policy.validation.rule": string;
|
|
1503
|
+
"system.base.login_policy.field.allow_concurrent_login": string;
|
|
1504
|
+
"system.base.online_session.action.revoke": string;
|
|
1505
|
+
"system.base.online_session.confirm.revoke": string;
|
|
1506
|
+
"system.base.online_session.field.client_ip": string;
|
|
1507
|
+
"system.base.online_session.field.device": string;
|
|
1508
|
+
"system.base.online_session.field.issued_at": string;
|
|
1509
|
+
"system.base.online_session.field.tenant_code": string;
|
|
1510
|
+
"system.base.online_session.field.user_agent": string;
|
|
1511
|
+
"system.base.online_session.field.user_name": string;
|
|
1512
|
+
"system.base.online_session.message.revoked": string;
|
|
1513
|
+
"system.profile.login_log.action.refresh": string;
|
|
1514
|
+
"system.profile.login_log.description": string;
|
|
1515
|
+
"system.profile.login_log.field.client_ip": string;
|
|
1516
|
+
"system.profile.login_log.field.device_id": string;
|
|
1517
|
+
"system.profile.login_log.field.login_type": string;
|
|
1518
|
+
"system.profile.login_log.field.occurred_at": string;
|
|
1519
|
+
"system.profile.login_log.field.reason": string;
|
|
1520
|
+
"system.profile.login_log.field.result": string;
|
|
1521
|
+
"system.profile.login_log.nav_description": string;
|
|
1522
|
+
"system.profile.login_log.title": string;
|
|
1523
|
+
"system.profile.session.field.current": string;
|
|
1524
|
+
"system.profile.session.status.current": string;
|
|
1525
|
+
"system.profile.session.status.other": string;
|
|
1501
1526
|
};
|
|
1502
1527
|
readonly 'en-US': {
|
|
1503
1528
|
"system.ai.request_failed_with_status": string;
|
|
@@ -2836,6 +2861,8 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2836
2861
|
"system.base.login_policy.field.password_history_count": string;
|
|
2837
2862
|
"system.base.login_policy.field.password_min_complexity_classes": string;
|
|
2838
2863
|
"system.base.login_policy.field.password_max_age_days": string;
|
|
2864
|
+
"system.base.login_policy.field.mfa_remember_days": string;
|
|
2865
|
+
"system.base.login_policy.validation.mfa_remember_days": string;
|
|
2839
2866
|
"system.base.login_policy.field.initial_password": string;
|
|
2840
2867
|
"system.base.login_policy.scope.global": string;
|
|
2841
2868
|
"system.base.login_policy.restriction.blacklist": string;
|
|
@@ -2998,6 +3025,29 @@ export declare const LOCALE_MESSAGES: {
|
|
|
2998
3025
|
"system.base.redact_output_policy.validation.response_field": string;
|
|
2999
3026
|
"system.base.redact_output_policy.validation.mode": string;
|
|
3000
3027
|
"system.base.redact_output_policy.validation.rule": string;
|
|
3028
|
+
"system.base.login_policy.field.allow_concurrent_login": string;
|
|
3029
|
+
"system.base.online_session.action.revoke": string;
|
|
3030
|
+
"system.base.online_session.confirm.revoke": string;
|
|
3031
|
+
"system.base.online_session.field.client_ip": string;
|
|
3032
|
+
"system.base.online_session.field.device": string;
|
|
3033
|
+
"system.base.online_session.field.issued_at": string;
|
|
3034
|
+
"system.base.online_session.field.tenant_code": string;
|
|
3035
|
+
"system.base.online_session.field.user_agent": string;
|
|
3036
|
+
"system.base.online_session.field.user_name": string;
|
|
3037
|
+
"system.base.online_session.message.revoked": string;
|
|
3038
|
+
"system.profile.login_log.action.refresh": string;
|
|
3039
|
+
"system.profile.login_log.description": string;
|
|
3040
|
+
"system.profile.login_log.field.client_ip": string;
|
|
3041
|
+
"system.profile.login_log.field.device_id": string;
|
|
3042
|
+
"system.profile.login_log.field.login_type": string;
|
|
3043
|
+
"system.profile.login_log.field.occurred_at": string;
|
|
3044
|
+
"system.profile.login_log.field.reason": string;
|
|
3045
|
+
"system.profile.login_log.field.result": string;
|
|
3046
|
+
"system.profile.login_log.nav_description": string;
|
|
3047
|
+
"system.profile.login_log.title": string;
|
|
3048
|
+
"system.profile.session.field.current": string;
|
|
3049
|
+
"system.profile.session.status.current": string;
|
|
3050
|
+
"system.profile.session.status.other": string;
|
|
3001
3051
|
};
|
|
3002
3052
|
readonly 'ja-JP': {
|
|
3003
3053
|
"system.ai.request_failed_with_status": string;
|
|
@@ -4336,6 +4386,8 @@ export declare const LOCALE_MESSAGES: {
|
|
|
4336
4386
|
"system.base.login_policy.field.password_history_count": string;
|
|
4337
4387
|
"system.base.login_policy.field.password_min_complexity_classes": string;
|
|
4338
4388
|
"system.base.login_policy.field.password_max_age_days": string;
|
|
4389
|
+
"system.base.login_policy.field.mfa_remember_days": string;
|
|
4390
|
+
"system.base.login_policy.validation.mfa_remember_days": string;
|
|
4339
4391
|
"system.base.login_policy.field.initial_password": string;
|
|
4340
4392
|
"system.base.login_policy.scope.global": string;
|
|
4341
4393
|
"system.base.login_policy.restriction.blacklist": string;
|
|
@@ -4498,6 +4550,29 @@ export declare const LOCALE_MESSAGES: {
|
|
|
4498
4550
|
"system.base.redact_output_policy.validation.response_field": string;
|
|
4499
4551
|
"system.base.redact_output_policy.validation.mode": string;
|
|
4500
4552
|
"system.base.redact_output_policy.validation.rule": string;
|
|
4553
|
+
"system.base.login_policy.field.allow_concurrent_login": string;
|
|
4554
|
+
"system.base.online_session.action.revoke": string;
|
|
4555
|
+
"system.base.online_session.confirm.revoke": string;
|
|
4556
|
+
"system.base.online_session.field.client_ip": string;
|
|
4557
|
+
"system.base.online_session.field.device": string;
|
|
4558
|
+
"system.base.online_session.field.issued_at": string;
|
|
4559
|
+
"system.base.online_session.field.tenant_code": string;
|
|
4560
|
+
"system.base.online_session.field.user_agent": string;
|
|
4561
|
+
"system.base.online_session.field.user_name": string;
|
|
4562
|
+
"system.base.online_session.message.revoked": string;
|
|
4563
|
+
"system.profile.login_log.action.refresh": string;
|
|
4564
|
+
"system.profile.login_log.description": string;
|
|
4565
|
+
"system.profile.login_log.field.client_ip": string;
|
|
4566
|
+
"system.profile.login_log.field.device_id": string;
|
|
4567
|
+
"system.profile.login_log.field.login_type": string;
|
|
4568
|
+
"system.profile.login_log.field.occurred_at": string;
|
|
4569
|
+
"system.profile.login_log.field.reason": string;
|
|
4570
|
+
"system.profile.login_log.field.result": string;
|
|
4571
|
+
"system.profile.login_log.nav_description": string;
|
|
4572
|
+
"system.profile.login_log.title": string;
|
|
4573
|
+
"system.profile.session.field.current": string;
|
|
4574
|
+
"system.profile.session.status.current": string;
|
|
4575
|
+
"system.profile.session.status.other": string;
|
|
4501
4576
|
};
|
|
4502
4577
|
readonly 'zh-TW': {
|
|
4503
4578
|
"system.ai.request_failed_with_status": string;
|
|
@@ -5836,6 +5911,8 @@ export declare const LOCALE_MESSAGES: {
|
|
|
5836
5911
|
"system.base.login_policy.field.password_history_count": string;
|
|
5837
5912
|
"system.base.login_policy.field.password_min_complexity_classes": string;
|
|
5838
5913
|
"system.base.login_policy.field.password_max_age_days": string;
|
|
5914
|
+
"system.base.login_policy.field.mfa_remember_days": string;
|
|
5915
|
+
"system.base.login_policy.validation.mfa_remember_days": string;
|
|
5839
5916
|
"system.base.login_policy.field.initial_password": string;
|
|
5840
5917
|
"system.base.login_policy.scope.global": string;
|
|
5841
5918
|
"system.base.login_policy.restriction.blacklist": string;
|
|
@@ -5998,6 +6075,29 @@ export declare const LOCALE_MESSAGES: {
|
|
|
5998
6075
|
"system.base.redact_output_policy.validation.response_field": string;
|
|
5999
6076
|
"system.base.redact_output_policy.validation.mode": string;
|
|
6000
6077
|
"system.base.redact_output_policy.validation.rule": string;
|
|
6078
|
+
"system.base.login_policy.field.allow_concurrent_login": string;
|
|
6079
|
+
"system.base.online_session.action.revoke": string;
|
|
6080
|
+
"system.base.online_session.confirm.revoke": string;
|
|
6081
|
+
"system.base.online_session.field.client_ip": string;
|
|
6082
|
+
"system.base.online_session.field.device": string;
|
|
6083
|
+
"system.base.online_session.field.issued_at": string;
|
|
6084
|
+
"system.base.online_session.field.tenant_code": string;
|
|
6085
|
+
"system.base.online_session.field.user_agent": string;
|
|
6086
|
+
"system.base.online_session.field.user_name": string;
|
|
6087
|
+
"system.base.online_session.message.revoked": string;
|
|
6088
|
+
"system.profile.login_log.action.refresh": string;
|
|
6089
|
+
"system.profile.login_log.description": string;
|
|
6090
|
+
"system.profile.login_log.field.client_ip": string;
|
|
6091
|
+
"system.profile.login_log.field.device_id": string;
|
|
6092
|
+
"system.profile.login_log.field.login_type": string;
|
|
6093
|
+
"system.profile.login_log.field.occurred_at": string;
|
|
6094
|
+
"system.profile.login_log.field.reason": string;
|
|
6095
|
+
"system.profile.login_log.field.result": string;
|
|
6096
|
+
"system.profile.login_log.nav_description": string;
|
|
6097
|
+
"system.profile.login_log.title": string;
|
|
6098
|
+
"system.profile.session.field.current": string;
|
|
6099
|
+
"system.profile.session.status.current": string;
|
|
6100
|
+
"system.profile.session.status.other": string;
|
|
6001
6101
|
};
|
|
6002
6102
|
};
|
|
6003
6103
|
export type GeneratedLocale = keyof typeof LOCALE_MESSAGES;
|
|
@@ -281,7 +281,7 @@ export interface Notification {
|
|
|
281
281
|
/** 是否允许删除 */
|
|
282
282
|
allow_delete: boolean;
|
|
283
283
|
}
|
|
284
|
-
/**
|
|
284
|
+
/** Base站内信通知服务,提供当前用户的收件箱能力。 */
|
|
285
285
|
export interface NotificationService {
|
|
286
286
|
/** 分页查询当前用户收件箱。 */
|
|
287
287
|
PageNotification(request: PageNotificationRequest): Promise<PageNotificationResponse>;
|
|
@@ -89,6 +89,8 @@ export interface CreateOauthSessionResponse {
|
|
|
89
89
|
mfa_method: string;
|
|
90
90
|
/** WebAuthn认证选项JSON */
|
|
91
91
|
mfa_webauthn_options_json: string;
|
|
92
|
+
/** 当前登录策略允许的MFA设备免验证天数 */
|
|
93
|
+
mfa_remember_days: number;
|
|
92
94
|
}
|
|
93
95
|
/** 三方登录回调请求 */
|
|
94
96
|
export interface HandleOauthCallbackRequest {
|
|
@@ -133,6 +135,8 @@ export interface ExchangeOauthTicketResponse {
|
|
|
133
135
|
mfa_method: string;
|
|
134
136
|
/** WebAuthn认证选项JSON */
|
|
135
137
|
mfa_webauthn_options_json: string;
|
|
138
|
+
/** 当前登录策略允许的MFA设备免验证天数 */
|
|
139
|
+
mfa_remember_days: number;
|
|
136
140
|
}
|
|
137
141
|
/** 个人中心三方账号绑定回调请求 */
|
|
138
142
|
export interface HandleOauthBindingCallbackRequest {
|
|
@@ -16,7 +16,7 @@ export interface IssueOauthClientTokenResponse {
|
|
|
16
16
|
/** 令牌有效时间,单位为秒 */
|
|
17
17
|
expires_in: number;
|
|
18
18
|
}
|
|
19
|
-
/** 开放授权客户端令牌服务。 */
|
|
19
|
+
/** Base开放授权客户端令牌服务。 */
|
|
20
20
|
export interface OauthClientService {
|
|
21
21
|
/** 使用客户端凭据换取访问令牌。 */
|
|
22
22
|
IssueOauthClientToken(request: IssueOauthClientTokenRequest): Promise<IssueOauthClientTokenResponse>;
|
|
@@ -75,7 +75,7 @@ export interface BaseApiLog {
|
|
|
75
75
|
/** 日志落库时间 */
|
|
76
76
|
created_at: string;
|
|
77
77
|
}
|
|
78
|
-
/** API
|
|
78
|
+
/** Admin API访问日志服务。 */
|
|
79
79
|
export interface BaseApiLogService {
|
|
80
80
|
/** 分页查询 API 访问日志。 */
|
|
81
81
|
PageBaseApiLog(request: PageBaseApiLogRequest): Promise<PageBaseApiLogResponse>;
|
|
@@ -103,7 +103,7 @@ export interface BaseDataAccessLog {
|
|
|
103
103
|
/** 日志落库时间 */
|
|
104
104
|
created_at: string;
|
|
105
105
|
}
|
|
106
|
-
/** 数据访问日志服务。 */
|
|
106
|
+
/** Admin数据访问日志服务。 */
|
|
107
107
|
export interface BaseDataAccessLogService {
|
|
108
108
|
/** 分页查询数据访问日志。 */
|
|
109
109
|
PageBaseDataAccessLog(request: PageBaseDataAccessLogRequest): Promise<PageBaseDataAccessLogResponse>;
|
|
@@ -70,7 +70,7 @@ export interface CodeGenLocaleConfig {
|
|
|
70
70
|
/** 左树描述 */
|
|
71
71
|
left_tree_comment: string;
|
|
72
72
|
}
|
|
73
|
-
/** 国际化翻译信息服务。 */
|
|
73
|
+
/** Admin国际化翻译信息服务。 */
|
|
74
74
|
export interface BaseI18nService {
|
|
75
75
|
/** 翻译单个文本。 */
|
|
76
76
|
DraftBaseI18n(request: DraftBaseI18nRequest): Promise<DraftBaseI18nResponse>;
|
|
@@ -70,7 +70,7 @@ export interface BaseLogTraceItem {
|
|
|
70
70
|
/** 日志落库时间 */
|
|
71
71
|
created_at: string;
|
|
72
72
|
}
|
|
73
|
-
/** 公共日志聚合查询服务。 */
|
|
73
|
+
/** Admin公共日志聚合查询服务。 */
|
|
74
74
|
export interface BaseLogService {
|
|
75
75
|
/** 查询同一请求或链路关联的六类审计记录。 */
|
|
76
76
|
GetBaseLogTrace(request: GetBaseLogTraceRequest): Promise<GetBaseLogTraceResponse>;
|
|
@@ -17,6 +17,13 @@ export declare enum BaseLoginLogType {
|
|
|
17
17
|
/** BASE_LOGIN_LOG_TYPE_LOGOUT - 退出登录。 */
|
|
18
18
|
BASE_LOGIN_LOG_TYPE_LOGOUT = 5
|
|
19
19
|
}
|
|
20
|
+
/** 本人登录记录分页条件,用户和租户由服务端认证身份确定。 */
|
|
21
|
+
export interface PageCurrentUserLoginLogRequest {
|
|
22
|
+
/** 当前页码 */
|
|
23
|
+
page_num: number;
|
|
24
|
+
/** 每页行数 */
|
|
25
|
+
page_size: number;
|
|
26
|
+
}
|
|
20
27
|
/** 登录日志分页查询条件。 */
|
|
21
28
|
export interface PageBaseLoginLogRequest {
|
|
22
29
|
/** 租户ID */
|
|
@@ -83,8 +90,10 @@ export interface BaseLoginLog {
|
|
|
83
90
|
/** 日志落库时间 */
|
|
84
91
|
created_at: string;
|
|
85
92
|
}
|
|
86
|
-
/** 登录日志服务。 */
|
|
93
|
+
/** Admin登录日志服务。 */
|
|
87
94
|
export interface BaseLoginLogService {
|
|
95
|
+
/** 分页查询当前登录用户本人的登录记录。 */
|
|
96
|
+
PageCurrentUserLoginLog(request: PageCurrentUserLoginLogRequest): Promise<PageBaseLoginLogResponse>;
|
|
88
97
|
/** 分页查询登录日志。 */
|
|
89
98
|
PageBaseLoginLog(request: PageBaseLoginLogRequest): Promise<PageBaseLoginLogResponse>;
|
|
90
99
|
/** 查询登录日志详情。 */
|
|
@@ -95,10 +95,14 @@ export interface BaseLoginPolicyForm {
|
|
|
95
95
|
max_failed_attempts: number;
|
|
96
96
|
/** 锁定时长(分钟) */
|
|
97
97
|
lock_duration_minutes: number;
|
|
98
|
+
/** 是否允许同一账号同时登录 */
|
|
99
|
+
allow_concurrent_login: boolean;
|
|
98
100
|
/** 状态 */
|
|
99
101
|
status: Status;
|
|
100
102
|
/** 密码有效期(天) */
|
|
101
103
|
password_max_age_days?: number | undefined;
|
|
104
|
+
/** MFA设备免验证天数,0表示每次登录都验证 */
|
|
105
|
+
mfa_remember_days?: number | undefined;
|
|
102
106
|
/** 限制规则列表 */
|
|
103
107
|
rules: BaseLoginPolicyRule[];
|
|
104
108
|
/** 密码最小长度 */
|
|
@@ -128,6 +132,8 @@ export interface BaseLoginPolicy {
|
|
|
128
132
|
max_failed_attempts: number;
|
|
129
133
|
/** 锁定时长(分钟) */
|
|
130
134
|
lock_duration_minutes: number;
|
|
135
|
+
/** 是否允许同一账号同时登录 */
|
|
136
|
+
allow_concurrent_login: boolean;
|
|
131
137
|
/** 状态 */
|
|
132
138
|
status: Status;
|
|
133
139
|
/** 创建时间 */
|
|
@@ -136,6 +142,8 @@ export interface BaseLoginPolicy {
|
|
|
136
142
|
updated_at: string;
|
|
137
143
|
/** 密码有效期(天) */
|
|
138
144
|
password_max_age_days: number;
|
|
145
|
+
/** MFA设备免验证天数,0表示每次登录都验证 */
|
|
146
|
+
mfa_remember_days: number;
|
|
139
147
|
/** 限制规则列表 */
|
|
140
148
|
rules: BaseLoginPolicyRule[];
|
|
141
149
|
/** 密码最小长度 */
|
|
@@ -170,7 +170,7 @@ export interface BaseMessageDetail {
|
|
|
170
170
|
/** 投递任务 */
|
|
171
171
|
dispatches: BaseMessageDispatch[];
|
|
172
172
|
}
|
|
173
|
-
/**
|
|
173
|
+
/** Admin站内信管理服务。 */
|
|
174
174
|
export interface BaseMessageService {
|
|
175
175
|
/** 分页查询消息。 */
|
|
176
176
|
PageBaseMessage(request: PageBaseMessageRequest): Promise<PageBaseMessageResponse>;
|
|
@@ -106,7 +106,7 @@ export interface BaseMessageCategory {
|
|
|
106
106
|
/** 更新时间 */
|
|
107
107
|
updated_at: string;
|
|
108
108
|
}
|
|
109
|
-
/**
|
|
109
|
+
/** Admin消息分类管理服务。 */
|
|
110
110
|
export interface BaseMessageCategoryService {
|
|
111
111
|
/** 查询消息分类选项。 */
|
|
112
112
|
OptionBaseMessageCategory(request: OptionBaseMessageCategoryRequest): Promise<SelectOptionResponse>;
|
|
@@ -55,7 +55,7 @@ export interface BaseMigration {
|
|
|
55
55
|
/** 创建时间 */
|
|
56
56
|
created_at: string;
|
|
57
57
|
}
|
|
58
|
-
/**
|
|
58
|
+
/** Admin数据库迁移服务。 */
|
|
59
59
|
export interface BaseMigrationService {
|
|
60
60
|
/** 分页查询数据库升级历史 */
|
|
61
61
|
PageBaseMigration(request: PageBaseMigrationRequest): Promise<PageBaseMigrationResponse>;
|
|
@@ -97,7 +97,7 @@ export interface BaseOperationLog {
|
|
|
97
97
|
/** 日志落库时间 */
|
|
98
98
|
created_at: string;
|
|
99
99
|
}
|
|
100
|
-
/** 业务操作日志服务。 */
|
|
100
|
+
/** Admin业务操作日志服务。 */
|
|
101
101
|
export interface BaseOperationLogService {
|
|
102
102
|
/** 分页查询业务操作日志。 */
|
|
103
103
|
PageBaseOperationLog(request: PageBaseOperationLogRequest): Promise<PageBaseOperationLogResponse>;
|
|
@@ -109,7 +109,7 @@ export interface BasePermissionLog {
|
|
|
109
109
|
/** 日志落库时间 */
|
|
110
110
|
created_at: string;
|
|
111
111
|
}
|
|
112
|
-
/** 权限日志服务。 */
|
|
112
|
+
/** Admin权限日志服务。 */
|
|
113
113
|
export interface BasePermissionLogService {
|
|
114
114
|
/** 分页查询权限日志。 */
|
|
115
115
|
PageBasePermissionLog(request: PageBasePermissionLogRequest): Promise<PageBasePermissionLogResponse>;
|
|
@@ -110,7 +110,7 @@ export interface BasePolicyEvaluationLog {
|
|
|
110
110
|
/** 日志落库时间 */
|
|
111
111
|
created_at: string;
|
|
112
112
|
}
|
|
113
|
-
/** 策略评估日志服务。 */
|
|
113
|
+
/** Admin策略评估日志服务。 */
|
|
114
114
|
export interface BasePolicyEvaluationLogService {
|
|
115
115
|
/** 分页查询策略评估日志。 */
|
|
116
116
|
PageBasePolicyEvaluationLog(request: PageBasePolicyEvaluationLogRequest): Promise<PageBasePolicyEvaluationLogResponse>;
|
|
@@ -118,7 +118,7 @@ export interface BaseRedactOutputPolicy {
|
|
|
118
118
|
/** 更新时间 */
|
|
119
119
|
updated_at: string;
|
|
120
120
|
}
|
|
121
|
-
/**
|
|
121
|
+
/** Admin出库脱敏策略服务。 */
|
|
122
122
|
export interface BaseRedactOutputPolicyService {
|
|
123
123
|
/** 查询出库脱敏策略分页列表。 */
|
|
124
124
|
PageBaseRedactOutputPolicy(request: PageBaseRedactOutputPolicyRequest): Promise<PageBaseRedactOutputPolicyResponse>;
|
|
@@ -97,7 +97,7 @@ export interface BaseRedactStoragePolicy {
|
|
|
97
97
|
/** 更新时间 */
|
|
98
98
|
updated_at: string;
|
|
99
99
|
}
|
|
100
|
-
/**
|
|
100
|
+
/** Admin入库脱敏策略服务。 */
|
|
101
101
|
export interface BaseRedactStoragePolicyService {
|
|
102
102
|
/** 查询入库脱敏策略分页列表。 */
|
|
103
103
|
PageBaseRedactStoragePolicy(request: PageBaseRedactStoragePolicyRequest): Promise<PageBaseRedactStoragePolicyResponse>;
|
|
@@ -1,12 +1,45 @@
|
|
|
1
1
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
|
+
/** 查询本人全部会话请求。 */
|
|
3
|
+
export interface ListCurrentBaseSessionsRequest {
|
|
4
|
+
}
|
|
5
|
+
/** 本人有效会话列表。 */
|
|
6
|
+
export interface ListCurrentBaseSessionsResponse {
|
|
7
|
+
/** 本人有效会话列表 */
|
|
8
|
+
sessions: BaseSession[];
|
|
9
|
+
}
|
|
2
10
|
/** 查询当前会话请求参数。 */
|
|
3
11
|
export interface GetCurrentBaseSessionRequest {
|
|
4
12
|
}
|
|
5
13
|
/** 撤销全部会话请求参数。 */
|
|
6
14
|
export interface RevokeAllBaseSessionsRequest {
|
|
7
15
|
}
|
|
16
|
+
/** 在线会话分页查询请求。 */
|
|
17
|
+
export interface PageOnlineBaseSessionsRequest {
|
|
18
|
+
/** 关键字 */
|
|
19
|
+
keyword: string;
|
|
20
|
+
/** 租户编码 */
|
|
21
|
+
tenant_code: string;
|
|
22
|
+
/** 当前页码 */
|
|
23
|
+
page_num: number;
|
|
24
|
+
/** 每页行数 */
|
|
25
|
+
page_size: number;
|
|
26
|
+
}
|
|
27
|
+
/** 在线会话分页响应。 */
|
|
28
|
+
export interface PageOnlineBaseSessionsResponse {
|
|
29
|
+
/** 在线会话列表 */
|
|
30
|
+
sessions: BaseSession[];
|
|
31
|
+
/** 总数 */
|
|
32
|
+
total: number;
|
|
33
|
+
}
|
|
34
|
+
/** 下线指定会话请求。 */
|
|
35
|
+
export interface RevokeBaseSessionRequest {
|
|
36
|
+
/** 会话ID */
|
|
37
|
+
session_id: string;
|
|
38
|
+
}
|
|
8
39
|
/** 当前会话信息。 */
|
|
9
40
|
export interface BaseSession {
|
|
41
|
+
/** 会话ID */
|
|
42
|
+
session_id: string;
|
|
10
43
|
/** 用户ID */
|
|
11
44
|
user_id: number;
|
|
12
45
|
/** 用户账号 */
|
|
@@ -23,11 +56,19 @@ export interface BaseSession {
|
|
|
23
56
|
issued_at: string;
|
|
24
57
|
/** 令牌有效期(秒) */
|
|
25
58
|
expires_in: number;
|
|
59
|
+
/** 是否为当前请求会话 */
|
|
60
|
+
current: boolean;
|
|
26
61
|
}
|
|
27
62
|
/** Admin会话管理服务。 */
|
|
28
63
|
export interface BaseSessionService {
|
|
64
|
+
/** 查询当前用户全部有效会话。 */
|
|
65
|
+
ListCurrentBaseSessions(request: ListCurrentBaseSessionsRequest): Promise<ListCurrentBaseSessionsResponse>;
|
|
29
66
|
/** 查询当前用户会话。 */
|
|
30
67
|
GetCurrentBaseSession(request: GetCurrentBaseSessionRequest): Promise<BaseSession>;
|
|
31
68
|
/** 撤销当前用户全部会话。 */
|
|
32
69
|
RevokeAllBaseSessions(request: RevokeAllBaseSessionsRequest): Promise<Empty>;
|
|
70
|
+
/** 分页查询当前在线用户会话。 */
|
|
71
|
+
PageOnlineBaseSessions(request: PageOnlineBaseSessionsRequest): Promise<PageOnlineBaseSessionsResponse>;
|
|
72
|
+
/** 下线指定用户会话。 */
|
|
73
|
+
RevokeBaseSession(request: RevokeBaseSessionRequest): Promise<Empty>;
|
|
33
74
|
}
|
|
@@ -73,7 +73,7 @@ export interface SetBaseTableArchiveStatusRequest {
|
|
|
73
73
|
id: number;
|
|
74
74
|
status: number;
|
|
75
75
|
}
|
|
76
|
-
/**
|
|
76
|
+
/** Admin数据库表归档配置服务。 */
|
|
77
77
|
export interface BaseTableArchiveService {
|
|
78
78
|
/** 查询表归档配置分页列表。 */
|
|
79
79
|
PageBaseTableArchive(request: PageBaseTableArchiveRequest): Promise<PageBaseTableArchiveResponse>;
|
|
@@ -73,7 +73,7 @@ export interface PageBaseTableArchiveRecordResponse {
|
|
|
73
73
|
export interface GetBaseTableArchiveRecordRequest {
|
|
74
74
|
id: number;
|
|
75
75
|
}
|
|
76
|
-
/**
|
|
76
|
+
/** Admin表归档执行记录服务。 */
|
|
77
77
|
export interface BaseTableArchiveRecordService {
|
|
78
78
|
/** 查询表归档记录分页列表。 */
|
|
79
79
|
PageBaseTableArchiveRecord(request: PageBaseTableArchiveRecordRequest): Promise<PageBaseTableArchiveRecordResponse>;
|
|
@@ -65,7 +65,7 @@ export interface GetBaseTableArchiveRestoreRequest {
|
|
|
65
65
|
export interface ExecuteBaseTableArchiveRestoreRequest {
|
|
66
66
|
base_table_archive_restore: BaseTableArchiveRestore | undefined;
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
68
|
+
/** Admin归档数据恢复服务。 */
|
|
69
69
|
export interface BaseTableArchiveRestoreService {
|
|
70
70
|
/** 查询归档恢复记录分页列表。 */
|
|
71
71
|
PageBaseTableArchiveRestore(request: PageBaseTableArchiveRestoreRequest): Promise<PageBaseTableArchiveRestoreResponse>;
|
|
@@ -57,7 +57,7 @@ export interface SetBaseTableBackupStatusRequest {
|
|
|
57
57
|
id: number;
|
|
58
58
|
status: number;
|
|
59
59
|
}
|
|
60
|
-
/**
|
|
60
|
+
/** Admin数据库备份配置服务。 */
|
|
61
61
|
export interface BaseTableBackupService {
|
|
62
62
|
/** 查询数据库备份配置分页列表。 */
|
|
63
63
|
PageBaseTableBackup(request: PageBaseTableBackupRequest): Promise<PageBaseTableBackupResponse>;
|
|
@@ -60,7 +60,7 @@ export interface PageBaseTableBackupRecordResponse {
|
|
|
60
60
|
export interface GetBaseTableBackupRecordRequest {
|
|
61
61
|
id: number;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
63
|
+
/** Admin数据库备份执行记录服务。 */
|
|
64
64
|
export interface BaseTableBackupRecordService {
|
|
65
65
|
/** 查询数据库备份记录分页列表。 */
|
|
66
66
|
PageBaseTableBackupRecord(request: PageBaseTableBackupRecordRequest): Promise<PageBaseTableBackupRecordResponse>;
|
|
@@ -65,7 +65,7 @@ export interface GetBaseTableBackupRestoreRequest {
|
|
|
65
65
|
export interface ExecuteBaseTableBackupRestoreRequest {
|
|
66
66
|
base_table_backup_restore: BaseTableBackupRestore | undefined;
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
68
|
+
/** Admin数据库备份恢复服务。 */
|
|
69
69
|
export interface BaseTableBackupRestoreService {
|
|
70
70
|
/** 查询备份恢复记录分页列表。 */
|
|
71
71
|
PageBaseTableBackupRestore(request: PageBaseTableBackupRestoreRequest): Promise<PageBaseTableBackupRestoreResponse>;
|
|
@@ -7,7 +7,7 @@ export interface OptionBaseTableRequest {
|
|
|
7
7
|
/** 数据源名称 */
|
|
8
8
|
source_name: string;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
10
|
+
/** Admin数据源元数据服务,提供数据备份、数据归档和代码生成共用的数据源信息。 */
|
|
11
11
|
export interface BaseTableSourceService {
|
|
12
12
|
/** 查询已初始化的数据源名称。 */
|
|
13
13
|
OptionBaseTableSource(request: OptionBaseTableSourceRequest): Promise<StringValues>;
|
|
@@ -122,7 +122,7 @@ export interface OauthClientCredentials {
|
|
|
122
122
|
/** 协议加密密钥 */
|
|
123
123
|
crypto_key: string;
|
|
124
124
|
}
|
|
125
|
-
/** 开放授权客户端管理服务。 */
|
|
125
|
+
/** Admin开放授权客户端管理服务。 */
|
|
126
126
|
export interface OauthClientService {
|
|
127
127
|
/** 查询可授权的开发接口选项。 */
|
|
128
128
|
OptionOauthClientApi(request: OptionOauthClientApiRequest): Promise<OptionOauthClientApiResponse>;
|
|
@@ -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;
|