@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
package/dist/ai/ai.service.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class AiService implements OnModuleInit {
|
|
|
68
68
|
filename: string;
|
|
69
69
|
mimeType: string;
|
|
70
70
|
bytes: number;
|
|
71
|
-
mode: "binary" | "
|
|
71
|
+
mode: "binary" | "image" | "pdf-text" | "text";
|
|
72
72
|
textLength: number;
|
|
73
73
|
textSample: string;
|
|
74
74
|
sha256: string;
|
|
@@ -21,59 +21,59 @@ export declare class AuthController {
|
|
|
21
21
|
requires_password_reset: boolean;
|
|
22
22
|
user_identifier: {
|
|
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
|
}[];
|
|
32
32
|
user_account: {
|
|
33
|
-
id: number;
|
|
34
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
35
33
|
created_at: Date;
|
|
34
|
+
id: number;
|
|
36
35
|
updated_at: Date;
|
|
37
|
-
email: string | null;
|
|
38
36
|
user_id: number;
|
|
37
|
+
email: string | null;
|
|
38
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
39
39
|
provider_user_id: string;
|
|
40
40
|
scopes: string | null;
|
|
41
41
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
42
42
|
token_expires_at: Date | null;
|
|
43
43
|
}[];
|
|
44
44
|
user_activity: {
|
|
45
|
-
id: number;
|
|
46
|
-
action: string;
|
|
47
45
|
created_at: Date;
|
|
46
|
+
id: number;
|
|
48
47
|
updated_at: Date;
|
|
49
48
|
user_id: number;
|
|
49
|
+
action: string;
|
|
50
50
|
}[];
|
|
51
51
|
user_credential: {
|
|
52
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
53
|
-
id: number;
|
|
54
|
-
hash: string;
|
|
55
52
|
created_at: Date;
|
|
53
|
+
id: number;
|
|
56
54
|
updated_at: Date;
|
|
57
55
|
user_id: number;
|
|
58
|
-
|
|
56
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
57
|
+
hash: string;
|
|
59
58
|
revoked_at: Date | null;
|
|
59
|
+
expires_at: Date | null;
|
|
60
60
|
requires_reset: boolean;
|
|
61
61
|
}[];
|
|
62
62
|
user_session: {
|
|
63
|
-
id: number;
|
|
64
|
-
hash: string;
|
|
65
63
|
created_at: Date;
|
|
64
|
+
id: number;
|
|
66
65
|
updated_at: Date;
|
|
66
|
+
user_id: number;
|
|
67
|
+
hash: string;
|
|
67
68
|
ip_address: string;
|
|
68
69
|
user_agent: string;
|
|
69
|
-
user_id: number;
|
|
70
|
-
expires_at: Date;
|
|
71
70
|
revoked_at: Date | null;
|
|
71
|
+
expires_at: Date;
|
|
72
72
|
}[];
|
|
73
|
-
name: string;
|
|
74
|
-
id: number;
|
|
75
73
|
created_at: Date;
|
|
74
|
+
id: number;
|
|
76
75
|
updated_at: Date;
|
|
76
|
+
name: string;
|
|
77
77
|
photo_id: number | null;
|
|
78
78
|
suspended_until: Date | null;
|
|
79
79
|
last_login_at: Date | null;
|
|
@@ -123,10 +123,10 @@ export declare class AuthController {
|
|
|
123
123
|
emailVerificationLoginResend(locale: string, { token }: LoginEmailVerificationResendDTO): Promise<any>;
|
|
124
124
|
registerWithEmailAndPassword(locale: string, data: CreateWithEmailAndPasswordDTO): Promise<{
|
|
125
125
|
user: {
|
|
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;
|
|
@@ -172,15 +172,15 @@ export declare class AuthController {
|
|
|
172
172
|
accessToken: string;
|
|
173
173
|
refreshToken: string;
|
|
174
174
|
session: {
|
|
175
|
-
id: number;
|
|
176
|
-
hash: string;
|
|
177
175
|
created_at: Date;
|
|
176
|
+
id: number;
|
|
178
177
|
updated_at: Date;
|
|
178
|
+
user_id: number;
|
|
179
|
+
hash: string;
|
|
179
180
|
ip_address: string;
|
|
180
181
|
user_agent: string;
|
|
181
|
-
user_id: number;
|
|
182
|
-
expires_at: Date;
|
|
183
182
|
revoked_at: Date | null;
|
|
183
|
+
expires_at: Date;
|
|
184
184
|
};
|
|
185
185
|
}>;
|
|
186
186
|
}
|
|
@@ -22,15 +22,15 @@ export declare class AuthService {
|
|
|
22
22
|
accessToken: string;
|
|
23
23
|
refreshToken: string;
|
|
24
24
|
session: {
|
|
25
|
-
id: number;
|
|
26
|
-
hash: string;
|
|
27
25
|
created_at: Date;
|
|
26
|
+
id: number;
|
|
28
27
|
updated_at: Date;
|
|
28
|
+
user_id: number;
|
|
29
|
+
hash: string;
|
|
29
30
|
ip_address: string;
|
|
30
31
|
user_agent: string;
|
|
31
|
-
user_id: number;
|
|
32
|
-
expires_at: Date;
|
|
33
32
|
revoked_at: Date | null;
|
|
33
|
+
expires_at: Date;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
36
|
private hasPendingPasswordReset;
|
|
@@ -83,59 +83,59 @@ export declare class AuthService {
|
|
|
83
83
|
requires_password_reset: boolean;
|
|
84
84
|
user_identifier: {
|
|
85
85
|
value: string;
|
|
86
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
87
|
-
id: number;
|
|
88
86
|
created_at: Date;
|
|
87
|
+
id: number;
|
|
89
88
|
updated_at: Date;
|
|
90
89
|
user_id: number;
|
|
90
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
91
91
|
enabled: boolean;
|
|
92
92
|
verified_at: Date | null;
|
|
93
93
|
}[];
|
|
94
94
|
user_account: {
|
|
95
|
-
id: number;
|
|
96
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
97
95
|
created_at: Date;
|
|
96
|
+
id: number;
|
|
98
97
|
updated_at: Date;
|
|
99
|
-
email: string | null;
|
|
100
98
|
user_id: number;
|
|
99
|
+
email: string | null;
|
|
100
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
101
101
|
provider_user_id: string;
|
|
102
102
|
scopes: string | null;
|
|
103
103
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
104
104
|
token_expires_at: Date | null;
|
|
105
105
|
}[];
|
|
106
106
|
user_activity: {
|
|
107
|
-
id: number;
|
|
108
|
-
action: string;
|
|
109
107
|
created_at: Date;
|
|
108
|
+
id: number;
|
|
110
109
|
updated_at: Date;
|
|
111
110
|
user_id: number;
|
|
111
|
+
action: string;
|
|
112
112
|
}[];
|
|
113
113
|
user_credential: {
|
|
114
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
115
|
-
id: number;
|
|
116
|
-
hash: string;
|
|
117
114
|
created_at: Date;
|
|
115
|
+
id: number;
|
|
118
116
|
updated_at: Date;
|
|
119
117
|
user_id: number;
|
|
120
|
-
|
|
118
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
119
|
+
hash: string;
|
|
121
120
|
revoked_at: Date | null;
|
|
121
|
+
expires_at: Date | null;
|
|
122
122
|
requires_reset: boolean;
|
|
123
123
|
}[];
|
|
124
124
|
user_session: {
|
|
125
|
-
id: number;
|
|
126
|
-
hash: string;
|
|
127
125
|
created_at: Date;
|
|
126
|
+
id: number;
|
|
128
127
|
updated_at: Date;
|
|
128
|
+
user_id: number;
|
|
129
|
+
hash: string;
|
|
129
130
|
ip_address: string;
|
|
130
131
|
user_agent: string;
|
|
131
|
-
user_id: number;
|
|
132
|
-
expires_at: Date;
|
|
133
132
|
revoked_at: Date | null;
|
|
133
|
+
expires_at: Date;
|
|
134
134
|
}[];
|
|
135
|
-
name: string;
|
|
136
|
-
id: number;
|
|
137
135
|
created_at: Date;
|
|
136
|
+
id: number;
|
|
138
137
|
updated_at: Date;
|
|
138
|
+
name: string;
|
|
139
139
|
photo_id: number | null;
|
|
140
140
|
suspended_until: Date | null;
|
|
141
141
|
last_login_at: Date | null;
|
|
@@ -146,15 +146,15 @@ export declare class AuthService {
|
|
|
146
146
|
accessToken: string;
|
|
147
147
|
refreshToken: string;
|
|
148
148
|
session: {
|
|
149
|
-
id: number;
|
|
150
|
-
hash: string;
|
|
151
149
|
created_at: Date;
|
|
150
|
+
id: number;
|
|
152
151
|
updated_at: Date;
|
|
152
|
+
user_id: number;
|
|
153
|
+
hash: string;
|
|
153
154
|
ip_address: string;
|
|
154
155
|
user_agent: string;
|
|
155
|
-
user_id: number;
|
|
156
|
-
expires_at: Date;
|
|
157
156
|
revoked_at: Date | null;
|
|
157
|
+
expires_at: Date;
|
|
158
158
|
};
|
|
159
159
|
}>;
|
|
160
160
|
forgotPassword(locale: string, { email }: ForgetDTO): Promise<{
|
|
@@ -167,30 +167,30 @@ export declare class AuthService {
|
|
|
167
167
|
accessToken: string;
|
|
168
168
|
refreshToken: string;
|
|
169
169
|
session: {
|
|
170
|
-
id: number;
|
|
171
|
-
hash: string;
|
|
172
170
|
created_at: Date;
|
|
171
|
+
id: number;
|
|
173
172
|
updated_at: Date;
|
|
173
|
+
user_id: number;
|
|
174
|
+
hash: string;
|
|
174
175
|
ip_address: string;
|
|
175
176
|
user_agent: string;
|
|
176
|
-
user_id: number;
|
|
177
|
-
expires_at: Date;
|
|
178
177
|
revoked_at: Date | null;
|
|
178
|
+
expires_at: Date;
|
|
179
179
|
};
|
|
180
180
|
}>;
|
|
181
181
|
verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery'): Promise<{
|
|
182
182
|
accessToken: string;
|
|
183
183
|
refreshToken: string;
|
|
184
184
|
session: {
|
|
185
|
-
id: number;
|
|
186
|
-
hash: string;
|
|
187
185
|
created_at: Date;
|
|
186
|
+
id: number;
|
|
188
187
|
updated_at: Date;
|
|
188
|
+
user_id: number;
|
|
189
|
+
hash: string;
|
|
189
190
|
ip_address: string;
|
|
190
191
|
user_agent: string;
|
|
191
|
-
user_id: number;
|
|
192
|
-
expires_at: Date;
|
|
193
192
|
revoked_at: Date | null;
|
|
193
|
+
expires_at: Date;
|
|
194
194
|
};
|
|
195
195
|
requiresPasswordReset: boolean;
|
|
196
196
|
}>;
|
|
@@ -198,15 +198,15 @@ export declare class AuthService {
|
|
|
198
198
|
accessToken: string;
|
|
199
199
|
refreshToken: string;
|
|
200
200
|
session: {
|
|
201
|
-
id: number;
|
|
202
|
-
hash: string;
|
|
203
201
|
created_at: Date;
|
|
202
|
+
id: number;
|
|
204
203
|
updated_at: Date;
|
|
204
|
+
user_id: number;
|
|
205
|
+
hash: string;
|
|
205
206
|
ip_address: string;
|
|
206
207
|
user_agent: string;
|
|
207
|
-
user_id: number;
|
|
208
|
-
expires_at: Date;
|
|
209
208
|
revoked_at: Date | null;
|
|
209
|
+
expires_at: Date;
|
|
210
210
|
};
|
|
211
211
|
requiresPasswordReset: boolean;
|
|
212
212
|
}>;
|
|
@@ -219,15 +219,15 @@ export declare class AuthService {
|
|
|
219
219
|
accessToken: string;
|
|
220
220
|
refreshToken: string;
|
|
221
221
|
session: {
|
|
222
|
-
id: number;
|
|
223
|
-
hash: string;
|
|
224
222
|
created_at: Date;
|
|
223
|
+
id: number;
|
|
225
224
|
updated_at: Date;
|
|
225
|
+
user_id: number;
|
|
226
|
+
hash: string;
|
|
226
227
|
ip_address: string;
|
|
227
228
|
user_agent: string;
|
|
228
|
-
user_id: number;
|
|
229
|
-
expires_at: Date;
|
|
230
229
|
revoked_at: Date | null;
|
|
230
|
+
expires_at: Date;
|
|
231
231
|
};
|
|
232
232
|
requiresPasswordReset: boolean;
|
|
233
233
|
}>;
|
|
@@ -20,22 +20,22 @@ export declare class ChallengeService {
|
|
|
20
20
|
codeHash: string;
|
|
21
21
|
}>;
|
|
22
22
|
forgotEmail(locale: string, email: string): Promise<{
|
|
23
|
-
id: number;
|
|
24
|
-
hash: string;
|
|
25
23
|
created_at: Date;
|
|
24
|
+
id: number;
|
|
26
25
|
updated_at: Date;
|
|
27
|
-
|
|
26
|
+
hash: string;
|
|
28
27
|
expires_at: Date;
|
|
29
28
|
verified_at: Date | null;
|
|
30
29
|
user_mfa_id: number;
|
|
30
|
+
attempts: number;
|
|
31
31
|
}>;
|
|
32
32
|
verifyCodePassword(locale: string, code: string): Promise<{
|
|
33
33
|
user_mfa: {
|
|
34
34
|
user: {
|
|
35
|
-
name: string;
|
|
36
|
-
id: number;
|
|
37
35
|
created_at: Date;
|
|
36
|
+
id: number;
|
|
38
37
|
updated_at: Date;
|
|
38
|
+
name: string;
|
|
39
39
|
photo_id: number | null;
|
|
40
40
|
suspended_until: Date | null;
|
|
41
41
|
last_login_at: Date | null;
|
|
@@ -43,32 +43,32 @@ export declare class ChallengeService {
|
|
|
43
43
|
deactivated_at: Date | null;
|
|
44
44
|
};
|
|
45
45
|
} & {
|
|
46
|
-
name: string;
|
|
47
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
48
|
-
id: number;
|
|
49
46
|
created_at: Date;
|
|
47
|
+
id: number;
|
|
50
48
|
updated_at: Date;
|
|
51
49
|
user_id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
52
52
|
suspended_until: Date | null;
|
|
53
53
|
verified_at: Date | null;
|
|
54
54
|
};
|
|
55
55
|
} & {
|
|
56
|
-
id: number;
|
|
57
|
-
hash: string;
|
|
58
56
|
created_at: Date;
|
|
57
|
+
id: number;
|
|
59
58
|
updated_at: Date;
|
|
60
|
-
|
|
59
|
+
hash: string;
|
|
61
60
|
expires_at: Date;
|
|
62
61
|
verified_at: Date | null;
|
|
63
62
|
user_mfa_id: number;
|
|
63
|
+
attempts: number;
|
|
64
64
|
}>;
|
|
65
65
|
verifyCode(locale: string, userId: number, code: string, providedHash: string, name?: string, email?: string): Promise<{
|
|
66
|
-
name: string;
|
|
67
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
68
|
-
id: number;
|
|
69
66
|
created_at: Date;
|
|
67
|
+
id: number;
|
|
70
68
|
updated_at: Date;
|
|
71
69
|
user_id: number;
|
|
70
|
+
name: string;
|
|
71
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
72
72
|
suspended_until: Date | null;
|
|
73
73
|
verified_at: Date | null;
|
|
74
74
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,kBAAkB,EAAU,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,kBAAkB,EAAU,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA0BlH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,qBAsEa,UAAW,YAAW,UAAU,EAAE,YAAY;IAGvD,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGjD,YAAY;IAKZ,SAAS,CAAC,QAAQ,EAAE,kBAAkB;CAKvC"}
|
package/dist/core.module.js
CHANGED
|
@@ -29,12 +29,15 @@ const dashboard_module_1 = require("./dashboard/dashboard.module");
|
|
|
29
29
|
const file_module_1 = require("./file/file.module");
|
|
30
30
|
const install_module_1 = require("./install/install.module");
|
|
31
31
|
const integration_module_1 = require("./integration/integration.module");
|
|
32
|
-
const mail_sent_module_1 = require("./mail-sent/mail-sent.module");
|
|
33
32
|
const mail_profile_module_1 = require("./mail-profile/mail-profile.module");
|
|
33
|
+
const mail_sent_module_1 = require("./mail-sent/mail-sent.module");
|
|
34
34
|
const mail_module_1 = require("./mail/mail.module");
|
|
35
|
+
const mcp_chat_module_1 = require("./mcp-chat/mcp-chat.module");
|
|
36
|
+
const mcp_module_1 = require("./mcp/mcp.module");
|
|
35
37
|
const menu_module_1 = require("./menu/menu.module");
|
|
36
38
|
const locale_injection_middleware_1 = require("./middlewares/locale-injection.middleware");
|
|
37
39
|
const oauth_module_1 = require("./oauth/oauth.module");
|
|
40
|
+
const pdf_module_1 = require("./pdf/pdf.module");
|
|
38
41
|
const profile_module_1 = require("./profile/profile.module");
|
|
39
42
|
const role_module_1 = require("./role/role.module");
|
|
40
43
|
const route_module_1 = require("./route/route.module");
|
|
@@ -45,11 +48,11 @@ const setting_module_1 = require("./setting/setting.module");
|
|
|
45
48
|
const setting_service_1 = require("./setting/setting.service");
|
|
46
49
|
const task_module_1 = require("./task/task.module");
|
|
47
50
|
const user_module_1 = require("./user/user.module");
|
|
48
|
-
const webhook_integration_module_1 = require("./webhook-integration/webhook-integration.module");
|
|
49
51
|
const is_email_with_settings_validator_1 = require("./validators/is-email-with-settings.validator");
|
|
50
52
|
const is_pin_code_with_setting_validator_1 = require("./validators/is-pin-code-with-setting.validator");
|
|
51
53
|
const is_strong_password_with_settings_validator_1 = require("./validators/is-strong-password-with-settings.validator");
|
|
52
54
|
const service_locator_1 = require("./validators/service-locator");
|
|
55
|
+
const webhook_integration_module_1 = require("./webhook-integration/webhook-integration.module");
|
|
53
56
|
let CoreModule = class CoreModule {
|
|
54
57
|
constructor(settingService) {
|
|
55
58
|
this.settingService = settingService;
|
|
@@ -97,6 +100,9 @@ exports.CoreModule = CoreModule = __decorate([
|
|
|
97
100
|
(0, common_1.forwardRef)(() => oauth_module_1.OAuthModule),
|
|
98
101
|
(0, common_1.forwardRef)(() => integration_module_1.IntegrationModule),
|
|
99
102
|
(0, common_1.forwardRef)(() => webhook_integration_module_1.WebhookIntegrationModule),
|
|
103
|
+
(0, common_1.forwardRef)(() => mcp_module_1.McpModule),
|
|
104
|
+
(0, common_1.forwardRef)(() => mcp_chat_module_1.McpChatModule),
|
|
105
|
+
(0, common_1.forwardRef)(() => pdf_module_1.PdfModule),
|
|
100
106
|
],
|
|
101
107
|
exports: [
|
|
102
108
|
user_module_1.UserModule,
|
|
@@ -117,6 +123,7 @@ exports.CoreModule = CoreModule = __decorate([
|
|
|
117
123
|
is_strong_password_with_settings_validator_1.IsStrongPasswordWithSettingsConstraint,
|
|
118
124
|
is_email_with_settings_validator_1.IsEmailWithSettingsConstraint,
|
|
119
125
|
is_pin_code_with_setting_validator_1.IsPinCodeWithSettingConstraint,
|
|
126
|
+
pdf_module_1.PdfModule,
|
|
120
127
|
],
|
|
121
128
|
providers: [
|
|
122
129
|
core_1.Reflector,
|
package/dist/core.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA8C;AAC9C,oDAAmD;AACnD,gDAAiE;AACjE,4DAA2D;AAC3D,oDAAkE;AAClE,yCAA2C;AAC3C,2CAAkH;AAClH,2CAA8C;AAC9C,uCAA0D;AAC1D,8CAA0C;AAC1C,oDAAgD;AAChD,wDAAoD;AACpD,mEAA+D;AAC/D,oDAAgD;AAChD,6DAAyD;AACzD,yEAAqE;AACrE,mEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA8C;AAC9C,oDAAmD;AACnD,gDAAiE;AACjE,4DAA2D;AAC3D,oDAAkE;AAClE,yCAA2C;AAC3C,2CAAkH;AAClH,2CAA8C;AAC9C,uCAA0D;AAC1D,8CAA0C;AAC1C,oDAAgD;AAChD,wDAAoD;AACpD,mEAA+D;AAC/D,oDAAgD;AAChD,6DAAyD;AACzD,yEAAqE;AACrE,4EAAuE;AACvE,mEAA8D;AAC9D,oDAAgD;AAChD,gEAA2D;AAC3D,iDAA6C;AAC7C,oDAAgD;AAChD,2FAAsF;AACtF,uDAAmD;AACnD,iDAA6C;AAC7C,6DAA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