@hed-hog/core 0.0.360 → 0.0.361

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 (62) hide show
  1. package/dist/ai/ai.service.d.ts +1 -1
  2. package/dist/auth/auth.controller.d.ts +26 -26
  3. package/dist/auth/auth.service.d.ts +34 -34
  4. package/dist/challenge/challenge.service.d.ts +12 -12
  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 +66 -66
  8. package/dist/dashboard/dashboard/dashboard.service.d.ts +66 -66
  9. package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +26 -26
  10. package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +26 -26
  11. package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +34 -34
  12. package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +34 -34
  13. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +8 -8
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +8 -8
  15. package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +5 -5
  16. package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +5 -5
  17. package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +25 -25
  18. package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +25 -25
  19. package/dist/file/file.controller.d.ts +6 -6
  20. package/dist/file/file.service.d.ts +50 -24
  21. package/dist/file/file.service.d.ts.map +1 -1
  22. package/dist/file/file.service.js +37 -0
  23. package/dist/file/file.service.js.map +1 -1
  24. package/dist/integration-profile/integration-profile.controller.d.ts +15 -15
  25. package/dist/integration-profile/integration-profile.service.d.ts +15 -15
  26. package/dist/locale/locale.controller.d.ts +4 -4
  27. package/dist/locale/locale.service.d.ts +4 -4
  28. package/dist/mail/mail.controller.d.ts +7 -7
  29. package/dist/mail/mail.service.d.ts +7 -7
  30. package/dist/mail-sent/mail-sent.controller.d.ts +12 -12
  31. package/dist/mail-sent/mail-sent.service.d.ts +12 -12
  32. package/dist/mcp/mcp-api-key.controller.d.ts +2 -2
  33. package/dist/mcp/mcp-api-key.service.d.ts +2 -2
  34. package/dist/mcp-chat/mcp-chat.controller.d.ts +8 -8
  35. package/dist/mcp-chat/mcp-chat.service.d.ts +8 -8
  36. package/dist/menu/menu.controller.d.ts +10 -10
  37. package/dist/menu/menu.service.d.ts +10 -10
  38. package/dist/notification/notification.controller.d.ts +36 -36
  39. package/dist/notification/notification.service.d.ts +36 -36
  40. package/dist/profile/profile.controller.d.ts +16 -16
  41. package/dist/profile/profile.service.d.ts +16 -16
  42. package/dist/role/role.controller.d.ts +6 -6
  43. package/dist/role/role.service.d.ts +6 -6
  44. package/dist/screen/screen.controller.d.ts +3 -3
  45. package/dist/screen/screen.service.d.ts +3 -3
  46. package/dist/session/session.controller.d.ts +2 -2
  47. package/dist/session/session.service.d.ts +6 -6
  48. package/dist/setting/setting.controller.d.ts +18 -18
  49. package/dist/setting/setting.service.d.ts +18 -18
  50. package/dist/setting/setting.service.d.ts.map +1 -1
  51. package/dist/setting/setting.service.js +0 -1
  52. package/dist/setting/setting.service.js.map +1 -1
  53. package/dist/user/user.controller.d.ts +29 -29
  54. package/dist/user/user.service.d.ts +67 -67
  55. package/dist/webhook-integration/webhook-integration.controller.d.ts +2 -2
  56. package/dist/webhook-integration/webhook-integration.service.d.ts +2 -2
  57. package/hedhog/data/setting_group.yaml +0 -26
  58. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +1 -33
  59. package/hedhog/table/setting_runtime_state.yaml +9 -0
  60. package/package.json +4 -3
  61. package/src/file/file.service.ts +88 -0
  62. package/src/setting/setting.service.ts +0 -1
@@ -66,7 +66,7 @@ export declare class AiService implements OnModuleInit {
66
66
  filename: string;
67
67
  mimeType: string;
68
68
  bytes: number;
69
- mode: "image" | "text" | "binary" | "pdf-text";
69
+ mode: "binary" | "image" | "pdf-text" | "text";
70
70
  textLength: number;
71
71
  textSample: string;
72
72
  sha256: string;
@@ -19,16 +19,6 @@ export declare class AuthController {
19
19
  id: any;
20
20
  }, locale: string): Promise<{
21
21
  requires_password_reset: boolean;
22
- user_identifier: {
23
- type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
24
- id: number;
25
- value: string;
26
- enabled: boolean;
27
- user_id: number;
28
- created_at: Date;
29
- updated_at: Date;
30
- verified_at: Date | null;
31
- }[];
32
22
  role_user: ({
33
23
  role: {
34
24
  id: number;
@@ -45,54 +35,64 @@ export declare class AuthController {
45
35
  })[];
46
36
  user_account: {
47
37
  id: number;
48
- email: string | null;
49
- provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
50
38
  user_id: number;
51
39
  created_at: Date;
52
40
  updated_at: Date;
53
- provider_user_id: string;
54
- scopes: string | null;
41
+ email: string | null;
55
42
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
43
+ provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
44
+ scopes: string | null;
45
+ provider_user_id: string;
56
46
  token_expires_at: Date | null;
57
47
  }[];
58
48
  user_activity: {
59
49
  id: number;
60
- action: string;
61
50
  user_id: number;
62
51
  created_at: Date;
63
52
  updated_at: Date;
53
+ action: string;
64
54
  }[];
65
55
  user_credential: {
66
- type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
67
56
  id: number;
68
- hash: string;
69
57
  user_id: number;
70
58
  created_at: Date;
71
59
  updated_at: Date;
72
- expires_at: Date | null;
60
+ type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
61
+ hash: string;
73
62
  revoked_at: Date | null;
63
+ expires_at: Date | null;
74
64
  requires_reset: boolean;
75
65
  }[];
66
+ user_identifier: {
67
+ id: number;
68
+ user_id: number;
69
+ created_at: Date;
70
+ updated_at: Date;
71
+ type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
72
+ value: string;
73
+ enabled: boolean;
74
+ verified_at: Date | null;
75
+ }[];
76
76
  user_session: {
77
77
  id: number;
78
- hash: string;
79
78
  user_id: number;
80
79
  user_agent: string;
81
80
  created_at: Date;
82
81
  updated_at: Date;
82
+ hash: string;
83
83
  ip_address: string;
84
- expires_at: Date;
85
84
  revoked_at: Date | null;
85
+ expires_at: Date;
86
86
  }[];
87
- name: string;
88
87
  id: number;
89
88
  created_at: Date;
90
- updated_at: Date;
89
+ name: string;
91
90
  photo_id: number | null;
92
91
  suspended_until: Date | null;
93
92
  last_login_at: Date | null;
94
93
  suspended_reason: string | null;
95
94
  deactivated_at: Date | null;
95
+ updated_at: Date;
96
96
  }>;
97
97
  roles(user: any, locale: string): Promise<{
98
98
  roles: {
@@ -137,15 +137,15 @@ export declare class AuthController {
137
137
  emailVerificationLoginResend(locale: string, { token }: LoginEmailVerificationResendDTO): Promise<any>;
138
138
  registerWithEmailAndPassword(locale: string, data: CreateWithEmailAndPasswordDTO): Promise<{
139
139
  user: {
140
- name: string;
141
140
  id: number;
142
141
  created_at: Date;
143
- updated_at: Date;
142
+ name: string;
144
143
  photo_id: number | null;
145
144
  suspended_until: Date | null;
146
145
  last_login_at: Date | null;
147
146
  suspended_reason: string | null;
148
147
  deactivated_at: Date | null;
148
+ updated_at: Date;
149
149
  };
150
150
  challenge: {
151
151
  challengeId: number;
@@ -187,14 +187,14 @@ export declare class AuthController {
187
187
  refreshToken: string;
188
188
  session: {
189
189
  id: number;
190
- hash: string;
191
190
  user_id: number;
192
191
  user_agent: string;
193
192
  created_at: Date;
194
193
  updated_at: Date;
194
+ hash: string;
195
195
  ip_address: string;
196
- expires_at: Date;
197
196
  revoked_at: Date | null;
197
+ expires_at: Date;
198
198
  };
199
199
  }>;
200
200
  }
@@ -23,14 +23,14 @@ export declare class AuthService {
23
23
  refreshToken: string;
24
24
  session: {
25
25
  id: number;
26
- hash: string;
27
26
  user_id: number;
28
27
  user_agent: string;
29
28
  created_at: Date;
30
29
  updated_at: Date;
30
+ hash: string;
31
31
  ip_address: string;
32
- expires_at: Date;
33
32
  revoked_at: Date | null;
33
+ expires_at: Date;
34
34
  };
35
35
  }>;
36
36
  private hasPendingPasswordReset;
@@ -81,16 +81,6 @@ export declare class AuthService {
81
81
  }[]>;
82
82
  verifyUser(locale: string, userId: number): Promise<{
83
83
  requires_password_reset: boolean;
84
- user_identifier: {
85
- type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
86
- id: number;
87
- value: string;
88
- enabled: boolean;
89
- user_id: number;
90
- created_at: Date;
91
- updated_at: Date;
92
- verified_at: Date | null;
93
- }[];
94
84
  role_user: ({
95
85
  role: {
96
86
  id: number;
@@ -107,68 +97,78 @@ export declare class AuthService {
107
97
  })[];
108
98
  user_account: {
109
99
  id: number;
110
- email: string | null;
111
- provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
112
100
  user_id: number;
113
101
  created_at: Date;
114
102
  updated_at: Date;
115
- provider_user_id: string;
116
- scopes: string | null;
103
+ email: string | null;
117
104
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
105
+ provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
106
+ scopes: string | null;
107
+ provider_user_id: string;
118
108
  token_expires_at: Date | null;
119
109
  }[];
120
110
  user_activity: {
121
111
  id: number;
122
- action: string;
123
112
  user_id: number;
124
113
  created_at: Date;
125
114
  updated_at: Date;
115
+ action: string;
126
116
  }[];
127
117
  user_credential: {
128
- type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
129
118
  id: number;
130
- hash: string;
131
119
  user_id: number;
132
120
  created_at: Date;
133
121
  updated_at: Date;
134
- expires_at: Date | null;
122
+ type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
123
+ hash: string;
135
124
  revoked_at: Date | null;
125
+ expires_at: Date | null;
136
126
  requires_reset: boolean;
137
127
  }[];
128
+ user_identifier: {
129
+ id: number;
130
+ user_id: number;
131
+ created_at: Date;
132
+ updated_at: Date;
133
+ type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
134
+ value: string;
135
+ enabled: boolean;
136
+ verified_at: Date | null;
137
+ }[];
138
138
  user_session: {
139
139
  id: number;
140
- hash: string;
141
140
  user_id: number;
142
141
  user_agent: string;
143
142
  created_at: Date;
144
143
  updated_at: Date;
144
+ hash: string;
145
145
  ip_address: string;
146
- expires_at: Date;
147
146
  revoked_at: Date | null;
147
+ expires_at: Date;
148
148
  }[];
149
- name: string;
150
149
  id: number;
151
150
  created_at: Date;
152
- updated_at: Date;
151
+ name: string;
153
152
  photo_id: number | null;
154
153
  suspended_until: Date | null;
155
154
  last_login_at: Date | null;
156
155
  suspended_reason: string | null;
157
156
  deactivated_at: Date | null;
157
+ updated_at: Date;
158
158
  }>;
159
159
  refreshAccessToken(locale: string, refreshToken: string, ipAddress: string, userAgent: string): Promise<{
160
160
  accessToken: string;
161
161
  refreshToken: string;
162
162
  session: {
163
163
  id: number;
164
- hash: string;
165
164
  user_id: number;
166
165
  user_agent: string;
167
166
  created_at: Date;
168
167
  updated_at: Date;
168
+ hash: string;
169
169
  ip_address: string;
170
- expires_at: Date;
171
170
  revoked_at: Date | null;
171
+ expires_at: Date;
172
172
  };
173
173
  }>;
174
174
  forgotPassword(locale: string, { email }: ForgetDTO): Promise<{
@@ -182,14 +182,14 @@ export declare class AuthService {
182
182
  refreshToken: string;
183
183
  session: {
184
184
  id: number;
185
- hash: string;
186
185
  user_id: number;
187
186
  user_agent: string;
188
187
  created_at: Date;
189
188
  updated_at: Date;
189
+ hash: string;
190
190
  ip_address: string;
191
- expires_at: Date;
192
191
  revoked_at: Date | null;
192
+ expires_at: Date;
193
193
  };
194
194
  }>;
195
195
  verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery'): Promise<{
@@ -197,14 +197,14 @@ export declare class AuthService {
197
197
  refreshToken: string;
198
198
  session: {
199
199
  id: number;
200
- hash: string;
201
200
  user_id: number;
202
201
  user_agent: string;
203
202
  created_at: Date;
204
203
  updated_at: Date;
204
+ hash: string;
205
205
  ip_address: string;
206
- expires_at: Date;
207
206
  revoked_at: Date | null;
207
+ expires_at: Date;
208
208
  };
209
209
  requiresPasswordReset: boolean;
210
210
  }>;
@@ -213,14 +213,14 @@ export declare class AuthService {
213
213
  refreshToken: string;
214
214
  session: {
215
215
  id: number;
216
- hash: string;
217
216
  user_id: number;
218
217
  user_agent: string;
219
218
  created_at: Date;
220
219
  updated_at: Date;
220
+ hash: string;
221
221
  ip_address: string;
222
- expires_at: Date;
223
222
  revoked_at: Date | null;
223
+ expires_at: Date;
224
224
  };
225
225
  requiresPasswordReset: boolean;
226
226
  }>;
@@ -234,14 +234,14 @@ export declare class AuthService {
234
234
  refreshToken: string;
235
235
  session: {
236
236
  id: number;
237
- hash: string;
238
237
  user_id: number;
239
238
  user_agent: string;
240
239
  created_at: Date;
241
240
  updated_at: Date;
241
+ hash: string;
242
242
  ip_address: string;
243
- expires_at: Date;
244
243
  revoked_at: Date | null;
244
+ expires_at: Date;
245
245
  };
246
246
  requiresPasswordReset: boolean;
247
247
  }>;
@@ -21,55 +21,55 @@ export declare class ChallengeService {
21
21
  }>;
22
22
  forgotEmail(locale: string, email: string): Promise<{
23
23
  id: number;
24
- hash: string;
25
24
  created_at: Date;
26
25
  updated_at: Date;
27
- attempts: number;
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
35
  id: number;
37
36
  created_at: Date;
38
- updated_at: Date;
37
+ name: string;
39
38
  photo_id: number | null;
40
39
  suspended_until: Date | null;
41
40
  last_login_at: Date | null;
42
41
  suspended_reason: string | null;
43
42
  deactivated_at: Date | null;
43
+ updated_at: Date;
44
44
  };
45
45
  } & {
46
- name: string;
47
- type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
48
46
  id: number;
49
47
  user_id: number;
50
48
  created_at: Date;
51
- updated_at: Date;
49
+ name: string;
52
50
  suspended_until: Date | null;
51
+ updated_at: Date;
52
+ type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
53
53
  verified_at: Date | null;
54
54
  };
55
55
  } & {
56
56
  id: number;
57
- hash: string;
58
57
  created_at: Date;
59
58
  updated_at: Date;
60
- attempts: number;
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
66
  id: number;
69
67
  user_id: number;
70
68
  created_at: Date;
71
- updated_at: Date;
69
+ name: string;
72
70
  suspended_until: Date | null;
71
+ updated_at: Date;
72
+ type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
73
73
  verified_at: Date | null;
74
74
  } | {
75
75
  success: boolean;
@@ -27,11 +27,11 @@ export declare class SystemController {
27
27
  admin: number;
28
28
  active: number;
29
29
  activities: {
30
+ created_at: Date;
30
31
  user: {
31
- name: string;
32
32
  id: number;
33
+ name: string;
33
34
  };
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;
30
31
  user: {
31
- name: string;
32
32
  id: number;
33
+ name: string;
33
34
  };
34
- created_at: Date;
35
35
  }[];
36
36
  };
37
37
  database: {