@hed-hog/core 0.0.330 → 0.0.332

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/ai/ai.service.d.ts +1 -1
  2. package/dist/auth/auth.controller.d.ts +23 -23
  3. package/dist/auth/auth.service.d.ts +41 -41
  4. package/dist/challenge/challenge.service.d.ts +14 -14
  5. package/dist/core/system.controller.d.ts +2 -2
  6. package/dist/core/system.service.d.ts +2 -2
  7. package/dist/dashboard/dashboard/dashboard.controller.d.ts +87 -87
  8. package/dist/dashboard/dashboard/dashboard.service.d.ts +87 -87
  9. package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +33 -33
  10. package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +33 -33
  11. package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +42 -42
  12. package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +42 -42
  13. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +12 -12
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +12 -12
  15. package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +7 -7
  16. package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +7 -7
  17. package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +33 -33
  18. package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +33 -33
  19. package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
  20. package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
  21. package/dist/file/file.controller.d.ts +8 -8
  22. package/dist/file/file.service.d.ts +18 -18
  23. package/dist/mail/mail.controller.d.ts +15 -15
  24. package/dist/mail/mail.service.d.ts +15 -15
  25. package/dist/mail-profile/mail-profile.controller.d.ts +9 -9
  26. package/dist/mail-profile/mail-profile.service.d.ts +9 -9
  27. package/dist/mail-sent/mail-sent.controller.d.ts +17 -17
  28. package/dist/mail-sent/mail-sent.service.d.ts +17 -17
  29. package/dist/mcp-chat/mcp-chat.controller.d.ts +10 -10
  30. package/dist/mcp-chat/mcp-chat.service.d.ts +10 -10
  31. package/dist/menu/menu.controller.d.ts +11 -11
  32. package/dist/menu/menu.service.d.ts +11 -11
  33. package/dist/profile/profile.controller.d.ts +17 -17
  34. package/dist/profile/profile.service.d.ts +17 -17
  35. package/dist/role/role.controller.d.ts +12 -12
  36. package/dist/role/role.service.d.ts +12 -12
  37. package/dist/route/route.service.d.ts.map +1 -1
  38. package/dist/route/route.service.js +14 -0
  39. package/dist/route/route.service.js.map +1 -1
  40. package/dist/screen/screen.controller.d.ts +3 -3
  41. package/dist/screen/screen.service.d.ts +3 -3
  42. package/dist/session/session.controller.d.ts +4 -4
  43. package/dist/session/session.service.d.ts +12 -12
  44. package/dist/setting/setting.controller.d.ts +13 -13
  45. package/dist/setting/setting.service.d.ts +13 -13
  46. package/dist/user/user.controller.d.ts +24 -24
  47. package/dist/user/user.service.d.ts +55 -55
  48. package/hedhog/data/menu.yaml +18 -4
  49. package/hedhog/frontend/app/account/layout.tsx.ejs +1 -1
  50. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +27 -23
  51. package/hedhog/frontend/app/mail/template/page.tsx.ejs +5 -5
  52. package/hedhog/frontend/app/menu/page.tsx.ejs +7 -2
  53. package/hedhog/frontend/app/preferences/page.tsx.ejs +1 -1
  54. package/hedhog/frontend/app/roles/page.tsx.ejs +7 -2
  55. package/hedhog/frontend/app/routes/page.tsx.ejs +1339 -0
  56. package/hedhog/frontend/app/users/page.tsx.ejs +1 -1
  57. package/hedhog/frontend/messages/en.json +108 -1
  58. package/hedhog/frontend/messages/pt.json +108 -1
  59. package/package.json +5 -5
  60. package/src/route/route.service.ts +14 -0
@@ -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" | "image" | "pdf-text" | "text";
71
+ mode: "image" | "text" | "binary" | "pdf-text";
72
72
  textLength: number;
73
73
  textSample: string;
74
74
  sha256: string;
@@ -20,60 +20,60 @@ export declare class AuthController {
20
20
  }, locale: string): Promise<{
21
21
  requires_password_reset: boolean;
22
22
  user_identifier: {
23
+ type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
24
+ id: number;
23
25
  value: string;
24
26
  created_at: Date;
25
- id: number;
26
27
  updated_at: Date;
27
28
  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
- created_at: Date;
34
33
  id: number;
35
- updated_at: Date;
36
- user_id: number;
37
34
  email: string | null;
38
35
  provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
36
+ created_at: Date;
37
+ updated_at: Date;
38
+ user_id: number;
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
- created_at: Date;
46
45
  id: number;
46
+ action: string;
47
+ created_at: Date;
47
48
  updated_at: Date;
48
49
  user_id: number;
49
- action: string;
50
50
  }[];
51
51
  user_credential: {
52
- created_at: Date;
52
+ type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
53
53
  id: number;
54
+ hash: string;
55
+ created_at: Date;
54
56
  updated_at: Date;
55
57
  user_id: number;
56
- type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
57
- hash: string;
58
- revoked_at: Date | null;
59
58
  expires_at: Date | null;
59
+ revoked_at: Date | null;
60
60
  requires_reset: boolean;
61
61
  }[];
62
62
  user_session: {
63
- created_at: Date;
64
63
  id: number;
65
- updated_at: Date;
66
- user_id: number;
67
64
  hash: string;
65
+ created_at: Date;
66
+ updated_at: Date;
68
67
  ip_address: string;
69
68
  user_agent: string;
70
- revoked_at: Date | null;
69
+ user_id: number;
71
70
  expires_at: Date;
71
+ revoked_at: Date | null;
72
72
  }[];
73
- created_at: Date;
73
+ name: string;
74
74
  id: number;
75
+ created_at: Date;
75
76
  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
- created_at: Date;
126
+ name: string;
127
127
  id: number;
128
+ created_at: Date;
128
129
  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
- created_at: Date;
176
175
  id: number;
177
- updated_at: Date;
178
- user_id: number;
179
176
  hash: string;
177
+ created_at: Date;
178
+ updated_at: Date;
180
179
  ip_address: string;
181
180
  user_agent: string;
182
- revoked_at: Date | null;
181
+ user_id: number;
183
182
  expires_at: Date;
183
+ revoked_at: Date | null;
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
- created_at: Date;
26
25
  id: number;
27
- updated_at: Date;
28
- user_id: number;
29
26
  hash: string;
27
+ created_at: Date;
28
+ updated_at: Date;
30
29
  ip_address: string;
31
30
  user_agent: string;
32
- revoked_at: Date | null;
31
+ user_id: number;
33
32
  expires_at: Date;
33
+ revoked_at: Date | null;
34
34
  };
35
35
  }>;
36
36
  private hasPendingPasswordReset;
@@ -82,60 +82,60 @@ export declare class AuthService {
82
82
  verifyUser(locale: string, userId: number): Promise<{
83
83
  requires_password_reset: boolean;
84
84
  user_identifier: {
85
+ type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
86
+ id: number;
85
87
  value: string;
86
88
  created_at: Date;
87
- id: number;
88
89
  updated_at: Date;
89
90
  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
- created_at: Date;
96
95
  id: number;
97
- updated_at: Date;
98
- user_id: number;
99
96
  email: string | null;
100
97
  provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
98
+ created_at: Date;
99
+ updated_at: Date;
100
+ user_id: number;
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
- created_at: Date;
108
107
  id: number;
108
+ action: string;
109
+ created_at: Date;
109
110
  updated_at: Date;
110
111
  user_id: number;
111
- action: string;
112
112
  }[];
113
113
  user_credential: {
114
- created_at: Date;
114
+ type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
115
115
  id: number;
116
+ hash: string;
117
+ created_at: Date;
116
118
  updated_at: Date;
117
119
  user_id: number;
118
- type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
119
- hash: string;
120
- revoked_at: Date | null;
121
120
  expires_at: Date | null;
121
+ revoked_at: Date | null;
122
122
  requires_reset: boolean;
123
123
  }[];
124
124
  user_session: {
125
- created_at: Date;
126
125
  id: number;
127
- updated_at: Date;
128
- user_id: number;
129
126
  hash: string;
127
+ created_at: Date;
128
+ updated_at: Date;
130
129
  ip_address: string;
131
130
  user_agent: string;
132
- revoked_at: Date | null;
131
+ user_id: number;
133
132
  expires_at: Date;
133
+ revoked_at: Date | null;
134
134
  }[];
135
- created_at: Date;
135
+ name: string;
136
136
  id: number;
137
+ created_at: Date;
137
138
  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
- created_at: Date;
150
149
  id: number;
151
- updated_at: Date;
152
- user_id: number;
153
150
  hash: string;
151
+ created_at: Date;
152
+ updated_at: Date;
154
153
  ip_address: string;
155
154
  user_agent: string;
156
- revoked_at: Date | null;
155
+ user_id: number;
157
156
  expires_at: Date;
157
+ revoked_at: Date | null;
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
- created_at: Date;
171
170
  id: number;
172
- updated_at: Date;
173
- user_id: number;
174
171
  hash: string;
172
+ created_at: Date;
173
+ updated_at: Date;
175
174
  ip_address: string;
176
175
  user_agent: string;
177
- revoked_at: Date | null;
176
+ user_id: number;
178
177
  expires_at: Date;
178
+ revoked_at: Date | null;
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
- created_at: Date;
186
185
  id: number;
187
- updated_at: Date;
188
- user_id: number;
189
186
  hash: string;
187
+ created_at: Date;
188
+ updated_at: Date;
190
189
  ip_address: string;
191
190
  user_agent: string;
192
- revoked_at: Date | null;
191
+ user_id: number;
193
192
  expires_at: Date;
193
+ revoked_at: Date | null;
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
- created_at: Date;
202
201
  id: number;
203
- updated_at: Date;
204
- user_id: number;
205
202
  hash: string;
203
+ created_at: Date;
204
+ updated_at: Date;
206
205
  ip_address: string;
207
206
  user_agent: string;
208
- revoked_at: Date | null;
207
+ user_id: number;
209
208
  expires_at: Date;
209
+ revoked_at: Date | null;
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
- created_at: Date;
223
222
  id: number;
224
- updated_at: Date;
225
- user_id: number;
226
223
  hash: string;
224
+ created_at: Date;
225
+ updated_at: Date;
227
226
  ip_address: string;
228
227
  user_agent: string;
229
- revoked_at: Date | null;
228
+ user_id: number;
230
229
  expires_at: Date;
230
+ revoked_at: Date | null;
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
- created_at: Date;
24
23
  id: number;
25
- updated_at: Date;
26
24
  hash: string;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ attempts: number;
27
28
  expires_at: Date;
28
29
  verified_at: Date | null;
29
30
  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
- created_at: Date;
35
+ name: string;
36
36
  id: number;
37
+ created_at: Date;
37
38
  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
- created_at: Date;
46
+ name: string;
47
+ type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
47
48
  id: number;
49
+ created_at: Date;
48
50
  updated_at: Date;
49
51
  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
- created_at: Date;
57
56
  id: number;
58
- updated_at: Date;
59
57
  hash: string;
58
+ created_at: Date;
59
+ updated_at: Date;
60
+ attempts: number;
60
61
  expires_at: Date;
61
62
  verified_at: Date | null;
62
63
  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
- created_at: Date;
66
+ name: string;
67
+ type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
67
68
  id: number;
69
+ created_at: Date;
68
70
  updated_at: Date;
69
71
  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
  } | {
@@ -27,11 +27,11 @@ export declare class SystemController {
27
27
  admin: number;
28
28
  active: number;
29
29
  activities: {
30
- created_at: Date;
31
30
  user: {
32
- id: number;
33
31
  name: string;
32
+ id: number;
34
33
  };
34
+ created_at: Date;
35
35
  }[];
36
36
  };
37
37
  database: {
@@ -27,11 +27,11 @@ export declare class SystemService {
27
27
  admin: number;
28
28
  active: number;
29
29
  activities: {
30
- created_at: Date;
31
30
  user: {
32
- id: number;
33
31
  name: string;
32
+ id: number;
34
33
  };
34
+ created_at: Date;
35
35
  }[];
36
36
  };
37
37
  database: {