@hed-hog/core 0.0.328 → 0.0.330
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/ai/ai.service.d.ts +1 -1
- package/dist/auth/auth.controller.d.ts +23 -23
- package/dist/auth/auth.service.d.ts +41 -41
- package/dist/challenge/challenge.service.d.ts +14 -14
- package/dist/core/system.controller.d.ts +1 -1
- package/dist/core/system.service.d.ts +1 -1
- package/dist/core.module.d.ts.map +1 -1
- package/dist/core.module.js +9 -2
- package/dist/core.module.js.map +1 -1
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +84 -84
- package/dist/dashboard/dashboard/dashboard.service.d.ts +84 -84
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +29 -29
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +29 -29
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +42 -42
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +42 -42
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +11 -11
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +11 -11
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +6 -6
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +6 -6
- package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +33 -33
- package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +33 -33
- package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
- package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
- package/dist/file/file.controller.d.ts +10 -10
- package/dist/file/file.service.d.ts +22 -22
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/mail/mail.controller.d.ts +15 -15
- package/dist/mail/mail.service.d.ts +15 -15
- package/dist/mail-profile/mail-profile.controller.d.ts +9 -9
- package/dist/mail-profile/mail-profile.service.d.ts +9 -9
- package/dist/mail-sent/mail-sent.controller.d.ts +17 -17
- package/dist/mail-sent/mail-sent.service.d.ts +17 -17
- package/dist/mcp/decorators/mcp-tool.decorator.d.ts +4 -0
- package/dist/mcp/decorators/mcp-tool.decorator.d.ts.map +1 -0
- package/dist/mcp/decorators/mcp-tool.decorator.js +8 -0
- package/dist/mcp/decorators/mcp-tool.decorator.js.map +1 -0
- package/dist/mcp/guards/mcp-auth.guard.d.ts +9 -0
- package/dist/mcp/guards/mcp-auth.guard.d.ts.map +1 -0
- package/dist/mcp/guards/mcp-auth.guard.js +41 -0
- package/dist/mcp/guards/mcp-auth.guard.js.map +1 -0
- package/dist/mcp/guards/mcp-permission.guard.d.ts +8 -0
- package/dist/mcp/guards/mcp-permission.guard.d.ts.map +1 -0
- package/dist/mcp/guards/mcp-permission.guard.js +57 -0
- package/dist/mcp/guards/mcp-permission.guard.js.map +1 -0
- package/dist/mcp/interfaces/mcp-tool-definition.interface.d.ts +7 -0
- package/dist/mcp/interfaces/mcp-tool-definition.interface.d.ts.map +1 -0
- package/dist/mcp/interfaces/mcp-tool-definition.interface.js +3 -0
- package/dist/mcp/interfaces/mcp-tool-definition.interface.js.map +1 -0
- package/dist/mcp/mcp-audit.service.d.ts +17 -0
- package/dist/mcp/mcp-audit.service.d.ts.map +1 -0
- package/dist/mcp/mcp-audit.service.js +46 -0
- package/dist/mcp/mcp-audit.service.js.map +1 -0
- package/dist/mcp/mcp-registry.service.d.ts +21 -0
- package/dist/mcp/mcp-registry.service.d.ts.map +1 -0
- package/dist/mcp/mcp-registry.service.js +69 -0
- package/dist/mcp/mcp-registry.service.js.map +1 -0
- package/dist/mcp/mcp-server.service.d.ts +12 -0
- package/dist/mcp/mcp-server.service.d.ts.map +1 -0
- package/dist/mcp/mcp-server.service.js +94 -0
- package/dist/mcp/mcp-server.service.js.map +1 -0
- package/dist/mcp/mcp.controller.d.ts +8 -0
- package/dist/mcp/mcp.controller.d.ts.map +1 -0
- package/dist/mcp/mcp.controller.js +54 -0
- package/dist/mcp/mcp.controller.js.map +1 -0
- package/dist/mcp/mcp.module.d.ts +3 -0
- package/dist/mcp/mcp.module.d.ts.map +1 -0
- package/dist/mcp/mcp.module.js +49 -0
- package/dist/mcp/mcp.module.js.map +1 -0
- package/dist/mcp/tools/core-settings.mcp-tools.d.ts +12 -0
- package/dist/mcp/tools/core-settings.mcp-tools.d.ts.map +1 -0
- package/dist/mcp/tools/core-settings.mcp-tools.js +66 -0
- package/dist/mcp/tools/core-settings.mcp-tools.js.map +1 -0
- package/dist/mcp/tools/core-users.mcp-tools.d.ts +55 -0
- package/dist/mcp/tools/core-users.mcp-tools.d.ts.map +1 -0
- package/dist/mcp/tools/core-users.mcp-tools.js +295 -0
- package/dist/mcp/tools/core-users.mcp-tools.js.map +1 -0
- package/dist/mcp/types/mcp-context.type.d.ts +7 -0
- package/dist/mcp/types/mcp-context.type.d.ts.map +1 -0
- package/dist/mcp/types/mcp-context.type.js +3 -0
- package/dist/mcp/types/mcp-context.type.js.map +1 -0
- package/dist/mcp-chat/dto/create-conversation.dto.d.ts +4 -0
- package/dist/mcp-chat/dto/create-conversation.dto.d.ts.map +1 -0
- package/dist/mcp-chat/dto/create-conversation.dto.js +22 -0
- package/dist/mcp-chat/dto/create-conversation.dto.js.map +1 -0
- package/dist/mcp-chat/dto/send-message.dto.d.ts +4 -0
- package/dist/mcp-chat/dto/send-message.dto.d.ts.map +1 -0
- package/dist/mcp-chat/dto/send-message.dto.js +22 -0
- package/dist/mcp-chat/dto/send-message.dto.js.map +1 -0
- package/dist/mcp-chat/mcp-chat.controller.d.ts +55 -0
- package/dist/mcp-chat/mcp-chat.controller.d.ts.map +1 -0
- package/dist/mcp-chat/mcp-chat.controller.js +90 -0
- package/dist/mcp-chat/mcp-chat.controller.js.map +1 -0
- package/dist/mcp-chat/mcp-chat.module.d.ts +3 -0
- package/dist/mcp-chat/mcp-chat.module.d.ts.map +1 -0
- package/dist/mcp-chat/mcp-chat.module.js +30 -0
- package/dist/mcp-chat/mcp-chat.module.js.map +1 -0
- package/dist/mcp-chat/mcp-chat.service.d.ts +50 -0
- package/dist/mcp-chat/mcp-chat.service.d.ts.map +1 -0
- package/dist/mcp-chat/mcp-chat.service.js +290 -0
- package/dist/mcp-chat/mcp-chat.service.js.map +1 -0
- package/dist/menu/menu.controller.d.ts +8 -8
- package/dist/menu/menu.service.d.ts +8 -8
- package/dist/oauth/oauth.service.js +1 -1
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/pdf/components/index.d.ts +57 -0
- package/dist/pdf/components/index.d.ts.map +1 -0
- package/dist/pdf/components/index.js +258 -0
- package/dist/pdf/components/index.js.map +1 -0
- package/dist/pdf/dto/generate-pdf.dto.d.ts +5 -0
- package/dist/pdf/dto/generate-pdf.dto.d.ts.map +1 -0
- package/dist/pdf/dto/generate-pdf.dto.js +27 -0
- package/dist/pdf/dto/generate-pdf.dto.js.map +1 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.d.ts +10 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.d.ts.map +1 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.js +3 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.js.map +1 -0
- package/dist/pdf/pdf.controller.d.ts +16 -0
- package/dist/pdf/pdf.controller.d.ts.map +1 -0
- package/dist/pdf/pdf.controller.js +100 -0
- package/dist/pdf/pdf.controller.js.map +1 -0
- package/dist/pdf/pdf.module.d.ts +3 -0
- package/dist/pdf/pdf.module.d.ts.map +1 -0
- package/dist/pdf/pdf.module.js +29 -0
- package/dist/pdf/pdf.module.js.map +1 -0
- package/dist/pdf/pdf.service.d.ts +44 -0
- package/dist/pdf/pdf.service.d.ts.map +1 -0
- package/dist/pdf/pdf.service.js +185 -0
- package/dist/pdf/pdf.service.js.map +1 -0
- package/dist/pdf/templates/hcode-institutional.template.d.ts +36 -0
- package/dist/pdf/templates/hcode-institutional.template.d.ts.map +1 -0
- package/dist/pdf/templates/hcode-institutional.template.js +67 -0
- package/dist/pdf/templates/hcode-institutional.template.js.map +1 -0
- package/dist/pdf/themes/hcode.theme.d.ts +25 -0
- package/dist/pdf/themes/hcode.theme.d.ts.map +1 -0
- package/dist/pdf/themes/hcode.theme.js +504 -0
- package/dist/pdf/themes/hcode.theme.js.map +1 -0
- package/dist/profile/profile.controller.d.ts +16 -16
- package/dist/profile/profile.service.d.ts +16 -16
- package/dist/role/role.controller.d.ts +12 -12
- package/dist/role/role.service.d.ts +12 -12
- package/dist/route/dto/create.dto.d.ts +6 -2
- package/dist/route/dto/create.dto.d.ts.map +1 -1
- package/dist/route/dto/create.dto.js +19 -1
- package/dist/route/dto/create.dto.js.map +1 -1
- package/dist/route/dto/update.dto.d.ts +4 -0
- package/dist/route/dto/update.dto.d.ts.map +1 -1
- package/dist/route/dto/update.dto.js +19 -3
- package/dist/route/dto/update.dto.js.map +1 -1
- package/dist/route/route.service.d.ts +1 -1
- package/dist/route/route.service.d.ts.map +1 -1
- package/dist/route/route.service.js +18 -11
- package/dist/route/route.service.js.map +1 -1
- package/dist/screen/screen.controller.d.ts +3 -3
- package/dist/screen/screen.service.d.ts +3 -3
- package/dist/session/session.controller.d.ts +4 -4
- package/dist/session/session.service.d.ts +12 -12
- package/dist/setting/setting.controller.d.ts +13 -13
- package/dist/setting/setting.service.d.ts +13 -13
- package/dist/user/user.controller.d.ts +24 -24
- package/dist/user/user.service.d.ts +55 -55
- package/hedhog/data/menu.yaml +40 -26
- package/hedhog/data/route.yaml +583 -152
- package/hedhog/data/setting_group.yaml +60 -0
- package/hedhog/frontend/app/mcp_chat/page.tsx.ejs +574 -0
- package/hedhog/frontend/app/users/user-sheet.tsx.ejs +5 -9
- package/hedhog/frontend/messages/en.json +19 -0
- package/hedhog/frontend/messages/pt.json +19 -0
- package/hedhog/table/mcp_conversation.yaml +12 -0
- package/hedhog/table/mcp_conversation_message.yaml +23 -0
- package/hedhog/table/mcp_tool_call_log.yaml +22 -0
- package/hedhog/table/route.yaml +33 -22
- package/package.json +7 -6
- package/src/core.module.ts +18 -11
- package/src/index.ts +22 -12
- package/src/mcp/decorators/mcp-tool.decorator.ts +7 -0
- package/src/mcp/guards/mcp-auth.guard.ts +32 -0
- package/src/mcp/guards/mcp-permission.guard.ts +51 -0
- package/src/mcp/interfaces/mcp-tool-definition.interface.ts +6 -0
- package/src/mcp/mcp-audit.service.ts +36 -0
- package/src/mcp/mcp-registry.service.ts +69 -0
- package/src/mcp/mcp-server.service.ts +87 -0
- package/src/mcp/mcp.controller.ts +30 -0
- package/src/mcp/mcp.module.ts +36 -0
- package/src/mcp/tools/core-settings.mcp-tools.ts +53 -0
- package/src/mcp/tools/core-users.mcp-tools.ts +267 -0
- package/src/mcp/types/mcp-context.type.ts +6 -0
- package/src/mcp-chat/dto/create-conversation.dto.ts +7 -0
- package/src/mcp-chat/dto/send-message.dto.ts +7 -0
- package/src/mcp-chat/mcp-chat.controller.ts +60 -0
- package/src/mcp-chat/mcp-chat.module.ts +17 -0
- package/src/mcp-chat/mcp-chat.service.ts +332 -0
- package/src/oauth/oauth.service.ts +12 -12
- package/src/pdf/components/index.ts +316 -0
- package/src/pdf/dto/generate-pdf.dto.ts +11 -0
- package/src/pdf/interfaces/pdf-theme-config.interface.ts +10 -0
- package/src/pdf/pdf.controller.ts +86 -0
- package/src/pdf/pdf.module.ts +17 -0
- package/src/pdf/pdf.service.ts +229 -0
- package/src/pdf/templates/hcode-institutional.template.ts +122 -0
- package/src/pdf/themes/hcode.theme.ts +515 -0
- package/src/route/dto/create.dto.ts +32 -14
- package/src/route/dto/update.dto.ts +31 -16
- package/src/route/route.service.ts +23 -12
|
@@ -23,60 +23,60 @@ export declare class UserController {
|
|
|
23
23
|
get(userId: number, locale: string): Promise<{
|
|
24
24
|
user_identifier: {
|
|
25
25
|
value: string;
|
|
26
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
27
|
-
id: number;
|
|
28
26
|
created_at: Date;
|
|
27
|
+
id: number;
|
|
29
28
|
updated_at: Date;
|
|
30
29
|
user_id: number;
|
|
30
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
31
31
|
enabled: boolean;
|
|
32
32
|
verified_at: Date | null;
|
|
33
33
|
}[];
|
|
34
34
|
user_account: {
|
|
35
|
-
id: number;
|
|
36
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
37
35
|
created_at: Date;
|
|
36
|
+
id: number;
|
|
38
37
|
updated_at: Date;
|
|
39
|
-
email: string | null;
|
|
40
38
|
user_id: number;
|
|
39
|
+
email: string | null;
|
|
40
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
41
41
|
provider_user_id: string;
|
|
42
42
|
scopes: string | null;
|
|
43
43
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
44
44
|
token_expires_at: Date | null;
|
|
45
45
|
}[];
|
|
46
46
|
user_activity: {
|
|
47
|
-
id: number;
|
|
48
|
-
action: string;
|
|
49
47
|
created_at: Date;
|
|
48
|
+
id: number;
|
|
50
49
|
updated_at: Date;
|
|
51
50
|
user_id: number;
|
|
51
|
+
action: string;
|
|
52
52
|
}[];
|
|
53
53
|
user_credential: {
|
|
54
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
55
|
-
id: number;
|
|
56
|
-
hash: string;
|
|
57
54
|
created_at: Date;
|
|
55
|
+
id: number;
|
|
58
56
|
updated_at: Date;
|
|
59
57
|
user_id: number;
|
|
60
|
-
|
|
58
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
59
|
+
hash: string;
|
|
61
60
|
revoked_at: Date | null;
|
|
61
|
+
expires_at: Date | null;
|
|
62
62
|
requires_reset: boolean;
|
|
63
63
|
}[];
|
|
64
64
|
user_session: {
|
|
65
|
-
id: number;
|
|
66
|
-
hash: string;
|
|
67
65
|
created_at: Date;
|
|
66
|
+
id: number;
|
|
68
67
|
updated_at: Date;
|
|
68
|
+
user_id: number;
|
|
69
|
+
hash: string;
|
|
69
70
|
ip_address: string;
|
|
70
71
|
user_agent: string;
|
|
71
|
-
user_id: number;
|
|
72
|
-
expires_at: Date;
|
|
73
72
|
revoked_at: Date | null;
|
|
73
|
+
expires_at: Date;
|
|
74
74
|
}[];
|
|
75
75
|
} & {
|
|
76
|
-
name: string;
|
|
77
|
-
id: number;
|
|
78
76
|
created_at: Date;
|
|
77
|
+
id: number;
|
|
79
78
|
updated_at: Date;
|
|
79
|
+
name: string;
|
|
80
80
|
photo_id: number | null;
|
|
81
81
|
suspended_until: Date | null;
|
|
82
82
|
last_login_at: Date | null;
|
|
@@ -86,10 +86,10 @@ export declare class UserController {
|
|
|
86
86
|
openPublicAvatar(fileId: number, locale: string, res: any): Promise<void>;
|
|
87
87
|
create(data: CreateWithEmailAndPasswordDTO, locale: string): Promise<{
|
|
88
88
|
user: {
|
|
89
|
-
name: string;
|
|
90
|
-
id: number;
|
|
91
89
|
created_at: Date;
|
|
90
|
+
id: number;
|
|
92
91
|
updated_at: Date;
|
|
92
|
+
name: string;
|
|
93
93
|
photo_id: number | null;
|
|
94
94
|
suspended_until: Date | null;
|
|
95
95
|
last_login_at: Date | null;
|
|
@@ -101,10 +101,10 @@ export declare class UserController {
|
|
|
101
101
|
};
|
|
102
102
|
}>;
|
|
103
103
|
update(userId: number, data: UpdateDTO, locale: string): Promise<{
|
|
104
|
-
name: string;
|
|
105
|
-
id: number;
|
|
106
104
|
created_at: Date;
|
|
105
|
+
id: number;
|
|
107
106
|
updated_at: Date;
|
|
107
|
+
name: string;
|
|
108
108
|
photo_id: number | null;
|
|
109
109
|
suspended_until: Date | null;
|
|
110
110
|
last_login_at: Date | null;
|
|
@@ -121,11 +121,11 @@ export declare class UserController {
|
|
|
121
121
|
}>;
|
|
122
122
|
verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
|
|
123
123
|
value: string;
|
|
124
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
125
|
-
id: number;
|
|
126
124
|
created_at: Date;
|
|
125
|
+
id: number;
|
|
127
126
|
updated_at: Date;
|
|
128
127
|
user_id: number;
|
|
128
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
129
129
|
enabled: boolean;
|
|
130
130
|
verified_at: Date | null;
|
|
131
131
|
}>;
|
|
@@ -153,8 +153,8 @@ export declare class UserController {
|
|
|
153
153
|
roles: any;
|
|
154
154
|
}[]>;
|
|
155
155
|
assignRoleToUser(userId: number, roleId: number, locale: string): Promise<{
|
|
156
|
-
id: number;
|
|
157
156
|
created_at: Date;
|
|
157
|
+
id: number;
|
|
158
158
|
updated_at: Date;
|
|
159
159
|
user_id: number;
|
|
160
160
|
role_id: number;
|
|
@@ -21,11 +21,11 @@ export declare class UserService {
|
|
|
21
21
|
private validateEmailAvailable;
|
|
22
22
|
verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
|
|
23
23
|
value: string;
|
|
24
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
25
|
-
id: number;
|
|
26
24
|
created_at: Date;
|
|
25
|
+
id: number;
|
|
27
26
|
updated_at: Date;
|
|
28
27
|
user_id: number;
|
|
28
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
29
29
|
enabled: boolean;
|
|
30
30
|
verified_at: Date | null;
|
|
31
31
|
}>;
|
|
@@ -46,60 +46,60 @@ export declare class UserService {
|
|
|
46
46
|
get(locale: string, userId: number): Promise<{
|
|
47
47
|
user_identifier: {
|
|
48
48
|
value: string;
|
|
49
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
50
|
-
id: number;
|
|
51
49
|
created_at: Date;
|
|
50
|
+
id: number;
|
|
52
51
|
updated_at: Date;
|
|
53
52
|
user_id: number;
|
|
53
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
54
54
|
enabled: boolean;
|
|
55
55
|
verified_at: Date | null;
|
|
56
56
|
}[];
|
|
57
57
|
user_account: {
|
|
58
|
-
id: number;
|
|
59
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
60
58
|
created_at: Date;
|
|
59
|
+
id: number;
|
|
61
60
|
updated_at: Date;
|
|
62
|
-
email: string | null;
|
|
63
61
|
user_id: number;
|
|
62
|
+
email: string | null;
|
|
63
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
64
64
|
provider_user_id: string;
|
|
65
65
|
scopes: string | null;
|
|
66
66
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
67
67
|
token_expires_at: Date | null;
|
|
68
68
|
}[];
|
|
69
69
|
user_activity: {
|
|
70
|
-
id: number;
|
|
71
|
-
action: string;
|
|
72
70
|
created_at: Date;
|
|
71
|
+
id: number;
|
|
73
72
|
updated_at: Date;
|
|
74
73
|
user_id: number;
|
|
74
|
+
action: string;
|
|
75
75
|
}[];
|
|
76
76
|
user_credential: {
|
|
77
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
78
|
-
id: number;
|
|
79
|
-
hash: string;
|
|
80
77
|
created_at: Date;
|
|
78
|
+
id: number;
|
|
81
79
|
updated_at: Date;
|
|
82
80
|
user_id: number;
|
|
83
|
-
|
|
81
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
82
|
+
hash: string;
|
|
84
83
|
revoked_at: Date | null;
|
|
84
|
+
expires_at: Date | null;
|
|
85
85
|
requires_reset: boolean;
|
|
86
86
|
}[];
|
|
87
87
|
user_session: {
|
|
88
|
-
id: number;
|
|
89
|
-
hash: string;
|
|
90
88
|
created_at: Date;
|
|
89
|
+
id: number;
|
|
91
90
|
updated_at: Date;
|
|
91
|
+
user_id: number;
|
|
92
|
+
hash: string;
|
|
92
93
|
ip_address: string;
|
|
93
94
|
user_agent: string;
|
|
94
|
-
user_id: number;
|
|
95
|
-
expires_at: Date;
|
|
96
95
|
revoked_at: Date | null;
|
|
96
|
+
expires_at: Date;
|
|
97
97
|
}[];
|
|
98
98
|
} & {
|
|
99
|
-
name: string;
|
|
100
|
-
id: number;
|
|
101
99
|
created_at: Date;
|
|
100
|
+
id: number;
|
|
102
101
|
updated_at: Date;
|
|
102
|
+
name: string;
|
|
103
103
|
photo_id: number | null;
|
|
104
104
|
suspended_until: Date | null;
|
|
105
105
|
last_login_at: Date | null;
|
|
@@ -108,10 +108,10 @@ export declare class UserService {
|
|
|
108
108
|
}>;
|
|
109
109
|
createWithEmailAndPassword(locale: string, { email, name, password }: CreateWithEmailAndPasswordDTO): Promise<{
|
|
110
110
|
user: {
|
|
111
|
-
name: string;
|
|
112
|
-
id: number;
|
|
113
111
|
created_at: Date;
|
|
112
|
+
id: number;
|
|
114
113
|
updated_at: Date;
|
|
114
|
+
name: string;
|
|
115
115
|
photo_id: number | null;
|
|
116
116
|
suspended_until: Date | null;
|
|
117
117
|
last_login_at: Date | null;
|
|
@@ -123,10 +123,10 @@ export declare class UserService {
|
|
|
123
123
|
};
|
|
124
124
|
}>;
|
|
125
125
|
update(locale: string, userId: number, { name }: UpdateDTO): Promise<{
|
|
126
|
-
name: string;
|
|
127
|
-
id: number;
|
|
128
126
|
created_at: Date;
|
|
127
|
+
id: number;
|
|
129
128
|
updated_at: Date;
|
|
129
|
+
name: string;
|
|
130
130
|
photo_id: number | null;
|
|
131
131
|
suspended_until: Date | null;
|
|
132
132
|
last_login_at: Date | null;
|
|
@@ -146,60 +146,60 @@ export declare class UserService {
|
|
|
146
146
|
findUserById(locale: string, id: number): Promise<{
|
|
147
147
|
user_identifier: {
|
|
148
148
|
value: string;
|
|
149
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
150
|
-
id: number;
|
|
151
149
|
created_at: Date;
|
|
150
|
+
id: number;
|
|
152
151
|
updated_at: Date;
|
|
153
152
|
user_id: number;
|
|
153
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
154
154
|
enabled: boolean;
|
|
155
155
|
verified_at: Date | null;
|
|
156
156
|
}[];
|
|
157
157
|
user_account: {
|
|
158
|
-
id: number;
|
|
159
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
160
158
|
created_at: Date;
|
|
159
|
+
id: number;
|
|
161
160
|
updated_at: Date;
|
|
162
|
-
email: string | null;
|
|
163
161
|
user_id: number;
|
|
162
|
+
email: string | null;
|
|
163
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
164
164
|
provider_user_id: string;
|
|
165
165
|
scopes: string | null;
|
|
166
166
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
167
167
|
token_expires_at: Date | null;
|
|
168
168
|
}[];
|
|
169
169
|
user_activity: {
|
|
170
|
-
id: number;
|
|
171
|
-
action: string;
|
|
172
170
|
created_at: Date;
|
|
171
|
+
id: number;
|
|
173
172
|
updated_at: Date;
|
|
174
173
|
user_id: number;
|
|
174
|
+
action: string;
|
|
175
175
|
}[];
|
|
176
176
|
user_credential: {
|
|
177
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
178
|
-
id: number;
|
|
179
|
-
hash: string;
|
|
180
177
|
created_at: Date;
|
|
178
|
+
id: number;
|
|
181
179
|
updated_at: Date;
|
|
182
180
|
user_id: number;
|
|
183
|
-
|
|
181
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
182
|
+
hash: string;
|
|
184
183
|
revoked_at: Date | null;
|
|
184
|
+
expires_at: Date | null;
|
|
185
185
|
requires_reset: boolean;
|
|
186
186
|
}[];
|
|
187
187
|
user_session: {
|
|
188
|
-
id: number;
|
|
189
|
-
hash: string;
|
|
190
188
|
created_at: Date;
|
|
189
|
+
id: number;
|
|
191
190
|
updated_at: Date;
|
|
191
|
+
user_id: number;
|
|
192
|
+
hash: string;
|
|
192
193
|
ip_address: string;
|
|
193
194
|
user_agent: string;
|
|
194
|
-
user_id: number;
|
|
195
|
-
expires_at: Date;
|
|
196
195
|
revoked_at: Date | null;
|
|
196
|
+
expires_at: Date;
|
|
197
197
|
}[];
|
|
198
198
|
} & {
|
|
199
|
-
name: string;
|
|
200
|
-
id: number;
|
|
201
199
|
created_at: Date;
|
|
200
|
+
id: number;
|
|
202
201
|
updated_at: Date;
|
|
202
|
+
name: string;
|
|
203
203
|
photo_id: number | null;
|
|
204
204
|
suspended_until: Date | null;
|
|
205
205
|
last_login_at: Date | null;
|
|
@@ -209,41 +209,41 @@ export declare class UserService {
|
|
|
209
209
|
findUserByEmail(_locale: string, email: string): Promise<{
|
|
210
210
|
user_identifier: {
|
|
211
211
|
value: string;
|
|
212
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
213
|
-
id: number;
|
|
214
212
|
created_at: Date;
|
|
213
|
+
id: number;
|
|
215
214
|
updated_at: Date;
|
|
216
215
|
user_id: number;
|
|
216
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
217
217
|
enabled: boolean;
|
|
218
218
|
verified_at: Date | null;
|
|
219
219
|
}[];
|
|
220
220
|
user_credential: {
|
|
221
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
222
|
-
id: number;
|
|
223
|
-
hash: string;
|
|
224
221
|
created_at: Date;
|
|
222
|
+
id: number;
|
|
225
223
|
updated_at: Date;
|
|
226
224
|
user_id: number;
|
|
227
|
-
|
|
225
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
226
|
+
hash: string;
|
|
228
227
|
revoked_at: Date | null;
|
|
228
|
+
expires_at: Date | null;
|
|
229
229
|
requires_reset: boolean;
|
|
230
230
|
}[];
|
|
231
231
|
user_session: {
|
|
232
|
-
id: number;
|
|
233
|
-
hash: string;
|
|
234
232
|
created_at: Date;
|
|
233
|
+
id: number;
|
|
235
234
|
updated_at: Date;
|
|
235
|
+
user_id: number;
|
|
236
|
+
hash: string;
|
|
236
237
|
ip_address: string;
|
|
237
238
|
user_agent: string;
|
|
238
|
-
user_id: number;
|
|
239
|
-
expires_at: Date;
|
|
240
239
|
revoked_at: Date | null;
|
|
240
|
+
expires_at: Date;
|
|
241
241
|
}[];
|
|
242
242
|
} & {
|
|
243
|
-
name: string;
|
|
244
|
-
id: number;
|
|
245
243
|
created_at: Date;
|
|
244
|
+
id: number;
|
|
246
245
|
updated_at: Date;
|
|
246
|
+
name: string;
|
|
247
247
|
photo_id: number | null;
|
|
248
248
|
suspended_until: Date | null;
|
|
249
249
|
last_login_at: Date | null;
|
|
@@ -273,8 +273,8 @@ export declare class UserService {
|
|
|
273
273
|
roles: any;
|
|
274
274
|
}[]>;
|
|
275
275
|
assignRoleToUser(locale: string, userId: number, roleId: number): Promise<{
|
|
276
|
-
id: number;
|
|
277
276
|
created_at: Date;
|
|
277
|
+
id: number;
|
|
278
278
|
updated_at: Date;
|
|
279
279
|
user_id: number;
|
|
280
280
|
role_id: number;
|
|
@@ -283,11 +283,11 @@ export declare class UserService {
|
|
|
283
283
|
count: number;
|
|
284
284
|
}>;
|
|
285
285
|
registerUserActivity(userId: number | null | undefined, action: string): Promise<{
|
|
286
|
-
id: number;
|
|
287
|
-
action: string;
|
|
288
286
|
created_at: Date;
|
|
287
|
+
id: number;
|
|
289
288
|
updated_at: Date;
|
|
290
289
|
user_id: number;
|
|
290
|
+
action: string;
|
|
291
291
|
}>;
|
|
292
292
|
private validateDeleteIds;
|
|
293
293
|
private deleteOldAvatar;
|
package/hedhog/data/menu.yaml
CHANGED
|
@@ -139,37 +139,37 @@
|
|
|
139
139
|
slug: admin
|
|
140
140
|
- where:
|
|
141
141
|
slug: admin-mail
|
|
142
|
-
- menu_id:
|
|
143
|
-
where:
|
|
144
|
-
slug: /core/management
|
|
145
|
-
url: /core/ai_agent
|
|
146
|
-
order: 6
|
|
147
|
-
icon: bot
|
|
142
|
+
- menu_id:
|
|
143
|
+
where:
|
|
144
|
+
slug: /core/management
|
|
145
|
+
url: /core/ai_agent
|
|
146
|
+
order: 6
|
|
147
|
+
icon: bot
|
|
148
148
|
name:
|
|
149
149
|
en: AI Agents
|
|
150
150
|
pt: Agentes IA
|
|
151
151
|
slug: /core/ai-agent
|
|
152
152
|
relations:
|
|
153
|
-
role:
|
|
154
|
-
- where:
|
|
155
|
-
slug: admin
|
|
156
|
-
- menu_id:
|
|
157
|
-
where:
|
|
158
|
-
slug: /core/management
|
|
159
|
-
url: /core/integrations-webhooks
|
|
160
|
-
order: 7
|
|
161
|
-
icon: webhook
|
|
162
|
-
name:
|
|
163
|
-
en: Integrations and Webhooks
|
|
164
|
-
pt: Integrações e Webhook
|
|
165
|
-
slug: /core/integrations-webhooks
|
|
166
|
-
relations:
|
|
167
|
-
role:
|
|
168
|
-
- where:
|
|
169
|
-
slug: admin
|
|
170
|
-
- url: /core/users
|
|
171
|
-
order: 0
|
|
172
|
-
icon: users
|
|
153
|
+
role:
|
|
154
|
+
- where:
|
|
155
|
+
slug: admin
|
|
156
|
+
- menu_id:
|
|
157
|
+
where:
|
|
158
|
+
slug: /core/management
|
|
159
|
+
url: /core/integrations-webhooks
|
|
160
|
+
order: 7
|
|
161
|
+
icon: webhook
|
|
162
|
+
name:
|
|
163
|
+
en: Integrations and Webhooks
|
|
164
|
+
pt: Integrações e Webhook
|
|
165
|
+
slug: /core/integrations-webhooks
|
|
166
|
+
relations:
|
|
167
|
+
role:
|
|
168
|
+
- where:
|
|
169
|
+
slug: admin
|
|
170
|
+
- url: /core/users
|
|
171
|
+
order: 0
|
|
172
|
+
icon: users
|
|
173
173
|
name:
|
|
174
174
|
en: Users
|
|
175
175
|
pt: Usuários
|
|
@@ -180,3 +180,17 @@
|
|
|
180
180
|
slug: admin
|
|
181
181
|
- where:
|
|
182
182
|
slug: admin-user
|
|
183
|
+
|
|
184
|
+
- url: /core/mcp_chat
|
|
185
|
+
order: 8
|
|
186
|
+
icon: terminal
|
|
187
|
+
name:
|
|
188
|
+
en: Chat
|
|
189
|
+
pt: Chat
|
|
190
|
+
slug: /core/mcp-chat
|
|
191
|
+
relations:
|
|
192
|
+
role:
|
|
193
|
+
- where:
|
|
194
|
+
slug: admin
|
|
195
|
+
- where:
|
|
196
|
+
slug: admin-access
|